      :root {
        /* color-* 家族 → 新设计系统 */
        --color-bg-deep: var(--bg-deep, #0a0a0f);
        --color-bg-surface: var(--bg-surface, #12121a);
        --color-bg-subtle: var(--bg-card, #1a1a24);
        --color-bg-card: var(--bg-card, #1a1a24);
        --color-bg-input: var(--bg-input, #0e0e14);
        --color-text-primary: var(--text-primary, #e8e8ed);
        --color-text-secondary: var(--text-secondary, #8888a0);
        --color-text-muted: var(--text-muted, #55556a);
        --color-border-default: var(--border-subtle, #2a2a3a);
        --color-border-subtle: var(--border-subtle, #2a2a3a);
        --color-border-strong: var(--border-strong, #3a3a4a);
        --color-accent-primary: var(--accent-cyan, #00f5d4);
        --color-accent-secondary: var(--accent-magenta, #f72585);
        --color-accent-tertiary: var(--accent-blue, #4cc9f0);
        --color-accent-cyan: var(--accent-cyan, #00f5d4);
        --color-accent-purple: var(--accent-purple, #8b5cf6);
        --color-accent-pink: var(--accent-magenta, #f72585);
        --color-accent-orange: #ff9f1c;
        --color-success: var(--accent-green, #10b981);
        --color-warning: var(--accent-yellow, #fbbf24);
        --color-error: var(--accent-red, #f43f5e);
        --color-danger: var(--accent-red, #f43f5e);
        --color-info: var(--accent-blue, #4cc9f0);
        --color-safe: var(--accent-green, #10b981);

        /* 玻璃拟态 */
        --glass-bg: rgba(26, 26, 36, 0.72);
        --glass-border: rgba(255, 255, 255, 0.08);
        --glass-blur: 24px;
        --glass-saturate: 180%;
        --glass-radius: 16px;
        --glass-border-width: 1px;
        --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);

        /* 间距尺度 */
        --space-1: 4px;
        --space-2: 8px;
        --space-3: 12px;
        --space-4: 16px;
        --space-5: 20px;
        --space-6: 24px;
        --space-8: 32px;
        --spacing-sm: 8px;
        --spacing-md: 16px;
        --spacing-lg: 24px;
        --spacing-card: 16px;

        /* 阴影 */
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
        --shadow-glow: 0 0 20px rgba(0, 245, 212, 0.15);
        --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);

        /* 辉光 */
        --glow-cyan: 0 0 20px rgba(0, 245, 212, 0.4);
        --glow-purple: 0 0 20px rgba(139, 92, 246, 0.4);
        --glow-green: 0 0 20px rgba(16, 185, 129, 0.4);
        --glow-red: 0 0 20px rgba(244, 63, 94, 0.4);
        --glow-magenta: 0 0 20px rgba(247, 37, 133, 0.4);
        --accent-glow: 0 0 20px rgba(0, 245, 212, 0.4);

        /* 过渡 */
        --transition-fast: 150ms ease;
        --transition-normal: 250ms ease;
        --transition: 200ms ease;

        /* 圆角 */
        --radius-full: 9999px;
        --radius-xl: 24px;
        --border-radius: 8px;

        /* 布局 */
        --nav-height: 56px;
        --container-max: 1400px;
        --container-bg: var(--bg-card, #1a1a24);
        --safe-area-top: env(safe-area-inset-top, 0px);
        --safe-area-bottom: env(safe-area-inset-bottom, 0px);

        /* 单名旧约定 */
        --bg-color: var(--bg-deep, #0a0a0f);
        --bg-secondary: var(--bg-surface, #12121a);
        --bg-tertiary: var(--bg-card, #1a1a24);
        --bg-elevated: var(--bg-card-hover, #22222e);
        --bg-hover: var(--bg-card-hover, #22222e);
        --bg-card-hover: #22222e;
        --bg-gradient: linear-gradient(135deg, #0a0a0f 0%, #12121a 100%);
        --primary-gradient: linear-gradient(135deg, #00f5d4 0%, #4cc9f0 100%);
        --text-color: var(--text-primary, #e8e8ed);
        --primary-color: var(--accent-cyan, #00f5d4);
        --primary-focus: rgba(0, 245, 212, 0.25);
        --secondary-color: var(--accent-magenta, #f72585);
        --tertiary-color: var(--text-muted, #55556a);
        --accent-color: var(--accent-cyan, #00f5d4);
        --accent-hover: #2dffe2;
        --accent-light: rgba(0, 245, 212, 0.15);
        --accent-pink: var(--accent-magenta, #f72585);
        --accent-orange: #ff9f1c;
        --accent-gold: #ffd166;
        --accent-brown: #a0522d;
        --success-color: var(--accent-green, #10b981);
        --good-color: var(--accent-green, #10b981);
        --warning-color: var(--accent-yellow, #fbbf24);
        --error-color: var(--accent-red, #f43f5e);
        --danger-color: var(--accent-red, #f43f5e);
        --info-color: var(--accent-blue, #4cc9f0);
        --muted-color: var(--text-muted, #55556a);
        --muted-border-color: var(--border-subtle, #2a2a3a);
        --hover-color: var(--accent-cyan, #00f5d4);
        --border-default: var(--border-subtle, #2a2a3a);
        --border-focus: var(--accent-cyan, #00f5d4);
        --border-accent: var(--accent-cyan, #00f5d4);
        --card-background-color: var(--bg-card, #1a1a24);
        --code-background-color: var(--bg-input, #0e0e14);

        /* Pico CSS 框架默认 */
        --pico-background-color: var(--bg-deep, #0a0a0f);
        --pico-color: var(--text-primary, #e8e8ed);
        --pico-muted-color: var(--text-muted, #55556a);
        --pico-muted-border-color: var(--border-subtle, #2a2a3a);
        --pico-muted-background: var(--bg-surface, #12121a);
        --pico-card-background-color: var(--bg-card, #1a1a24);
        --pico-code-background-color: var(--bg-input, #0e0e14);
        --pico-primary: var(--accent-cyan, #00f5d4);
        --pico-primary-background: var(--accent-cyan, #00f5d4);
        --pico-primary-inverse: #0a0a0f;
        --pico-primary-focus: rgba(0, 245, 212, 0.25);
        --pico-primary-rgb: 0, 245, 212;
        --pico-secondary: var(--text-secondary, #8888a0);
        --pico-secondary-background: var(--bg-card, #1a1a24);
        --pico-border-radius: 8px;
        --pico-contrast: var(--text-primary, #e8e8ed);
        --pico-contrast-background: var(--bg-card-hover, #22222e);
        --pico-del-color: var(--accent-red, #f43f5e);
        --pico-ins-color: var(--accent-green, #10b981);
        --pico-form-element-border-color: var(--border-strong, #3a3a4a);
        --pico-form-element-background-color: var(--bg-input, #0e0e14);
      }

      /* 浅色主题覆盖：glass/shadow/glow 等主题敏感变量 */
      [data-theme="light"] {
        /* 玻璃拟态 — 浅色版（半透明白） */
        --glass-bg: rgba(255, 255, 255, 0.78);
        --glass-border: rgba(0, 0, 0, 0.06);
        --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);

        /* 阴影 — 浅色版（更淡） */
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
        --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
        --shadow-glow: 0 0 20px rgba(0, 184, 148, 0.12);
        --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

        /* 辉光 — 浅色版（透明度降低） */
        --glow-cyan: 0 0 16px rgba(0, 184, 148, 0.18);
        --glow-purple: 0 0 16px rgba(139, 92, 246, 0.18);
        --glow-green: 0 0 16px rgba(16, 185, 129, 0.18);
        --glow-red: 0 0 16px rgba(244, 63, 94, 0.18);
        --glow-magenta: 0 0 16px rgba(247, 37, 133, 0.18);
        --accent-glow: 0 0 16px rgba(0, 184, 148, 0.18);

        /* 渐变 — 浅色版 */
        --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #fff 100%);

        /* hover/elevated 替换为浅色调 */
        --bg-card-hover: #f1f5f9;
        --bg-elevated: #fff;
        --bg-hover: #f1f5f9;
        --accent-light: rgba(0, 184, 148, 0.12);
        --accent-hover: #00d4aa;

        /* Pico 浅色覆盖（默认 Pico 行为） */
        --pico-primary-inverse: #fff;
        --pico-contrast-background: #f1f5f9;
      }

      :root {
        --bg-deep: #0a0a0f;
        --bg-surface: #12121a;
        --bg-card: #1a1a24;
        --bg-input: #0e0e14;
        --text-primary: #e8e8ed;
        --text-secondary: #8888a0;
        --text-muted: #55556a;
        --border-subtle: #2a2a3a;
        --border-strong: #3a3a4a;
        --accent-cyan: #00f5d4;
        --accent-magenta: #f72585;
        --accent-green: #10b981;
        --accent-red: #f43f5e;
        --accent-yellow: #fbbf24;
        --accent-blue: #4cc9f0;
        --accent-purple: #7b2cbf;
        --radius-sm: 4px;
        --radius-md: 8px;
        --radius-lg: 12px;
        --font-sans:
          "Space Grotesk", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, sans-serif;
        --font-mono: "JetBrains Mono", "Courier New", monospace;
        --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
      }

      [data-theme="light"] {
        --bg-deep: #fafafa;
        --bg-surface: #fff;
        --bg-card: #fff;
        --bg-input: #f5f5f5;
        --text-primary: #1a1a1a;
        --text-secondary: #666;
        --text-muted: #999;
        --border-subtle: #e5e5e5;
        --border-strong: #d5d5d5;
        --accent-cyan: #00d4b8;
        --accent-magenta: #e63975;
        --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      :root {
        --bg-primary: #0a0a0f;
        --bg-secondary: #1a1a2e;
        --bg-tertiary: #16213e;
        --color-text-primary: #fff;
        --color-text-secondary: #a0a0a0;
        --accent: #00d9ff;
        --accent-glow: rgba(0, 217, 255, 0.3);
        --cell-hidden: #2d3748;
        --cell-hidden-hover: #3d4a5c;
        --cell-revealed: #1a202c;
        --cell-border: #4a5568;
        --mine: #ff4757;
        --flag: #feca57;
        --num-1: #3498db;
        --num-2: #27ae60;
        --num-3: #e74c3c;
        --num-4: #9b59b6;
        --num-5: #e67e22;
        --num-6: #1abc9c;
        --num-7: #34495e;
        --num-8: #7f8c8d;
      }

      [data-theme="light"] {
        --bg-primary: #f0f4f8;
        --bg-secondary: #fff;
        --bg-tertiary: #e8eef4;
        --color-text-primary: #1a1a2e;
        --color-text-secondary: #666;
        --accent: #06c;
        --accent-glow: rgba(0, 102, 204, 0.2);
        --cell-hidden: #c0c0c0;
        --cell-hidden-hover: #d0d0d0;
        --cell-revealed: #e0e0e0;
        --cell-border: #808080;
      }

      body {
        font-family: var(--font-sans);
        background: var(--bg-deep);
        color: var(--color-text-primary);
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        transition: all 0.3s ease;
      }

      .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 500px;
        margin-bottom: 20px;
      }

      .back-link {
        color: var(--color-text-secondary);
        text-decoration: none;
        font-size: 14px;
        transition: color 0.2s;
      }
      .back-link:hover {
        color: var(--accent-cyan);
      }

      h1 {
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        gap: 10px;
      }

      .header-controls {
        display: flex;
        gap: 10px;
      }

      .icon-btn {
        background: var(--bg-secondary);
        border: 1px solid var(--bg-tertiary);
        color: var(--color-text-primary);
        width: 40px;
        height: 40px;
        border-radius: 10px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        transition: all 0.3s ease;
      }

      .icon-btn:hover {
        background: var(--bg-tertiary);
        transform: scale(1.05);
      }

      .game-container {
        background: var(--bg-secondary);
        border-radius: 20px;
        padding: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        width: 100%;
        max-width: 500px;
      }

      .status-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        padding: 15px;
        background: var(--bg-tertiary);
        border-radius: 12px;
      }

      .status-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 1.2rem;
      }

      .status-icon {
        font-size: 1.4rem;
      }

      .status-value {
        font-weight: bold;
        font-family: var(--font-mono);
        min-width: 40px;
        color: var(--accent-cyan);
      }

      .face-btn {
        background: var(--bg-secondary);
        border: 2px solid var(--cell-border);
        font-size: 2rem;
        width: 50px;
        height: 50px;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .face-btn:hover {
        transform: scale(1.1);
      }

      .face-btn:active {
        transform: scale(0.95);
      }

      .difficulty-selector {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
      }

      .diff-btn {
        flex: 1;
        background: var(--bg-tertiary);
        border: 1px solid var(--cell-border);
        color: var(--color-text-primary);
        padding: 10px;
        border-radius: 10px;
        cursor: pointer;
        font-size: 0.9rem;
        transition: all 0.2s ease;
      }

      .diff-btn:hover {
        background: var(--cell-hidden-hover);
      }

      .diff-btn.active {
        background: var(--accent-cyan);
        color: white;
        border-color: var(--accent-cyan);
      }

      .board-container {
        overflow: auto;
        max-height: 60vh;
        border-radius: 8px;
      }

      .board {
        display: grid;
        gap: 2px;
        background: var(--cell-border);
        padding: 2px;
        border-radius: 8px;
        margin: 0 auto;
      }

      .cell {
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.1s ease;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        border-radius: 3px;
        font-size: 14px;
      }

      .cell.hidden {
        background: var(--cell-hidden);
        box-shadow:
          inset -2px -2px 0 rgba(0, 0, 0, 0.2),
          inset 2px 2px 0 rgba(255, 255, 255, 0.1);
      }

      .cell.hidden:hover {
        background: var(--cell-hidden-hover);
      }

      .cell.revealed {
        background: var(--cell-revealed);
        cursor: default;
      }

      .cell.flagged {
        background: var(--cell-hidden);
      }

      .cell.mine {
        background: var(--mine);
      }

      .cell.mine-hit {
        background: #f00;
      }

      .cell.wrong-flag {
        background: #ff6b6b;
      }

      .cell[data-num="1"] {
        color: var(--num-1);
      }
      .cell[data-num="2"] {
        color: var(--num-2);
      }
      .cell[data-num="3"] {
        color: var(--num-3);
      }
      .cell[data-num="4"] {
        color: var(--num-4);
      }
      .cell[data-num="5"] {
        color: var(--num-5);
      }
      .cell[data-num="6"] {
        color: var(--num-6);
      }
      .cell[data-num="7"] {
        color: var(--num-7);
      }
      .cell[data-num="8"] {
        color: var(--num-8);
      }

      .game-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 100;
      }

      .game-overlay.visible {
        opacity: 1;
        pointer-events: all;
      }

      .overlay-content {
        background: var(--bg-secondary);
        padding: 30px;
        border-radius: 20px;
        text-align: center;
        max-width: 300px;
      }

      .overlay-icon {
        font-size: 4rem;
        margin-bottom: 15px;
      }

      .overlay-title {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 10px;
        color: var(--accent-cyan);
      }

      .overlay-stats {
        margin: 15px 0;
        font-size: 0.95rem;
        color: var(--color-text-secondary);
      }

      .overlay-stats div {
        padding: 5px 0;
      }

      .play-btn {
        background: linear-gradient(135deg, var(--accent-cyan), #09c);
        color: white;
        border: none;
        padding: 12px 30px;
        font-size: 1rem;
        font-weight: bold;
        border-radius: 25px;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 10px;
      }

      .play-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 20px var(--accent-glow);
      }

      .mobile-controls {
        display: none;
        margin-top: 15px;
        padding: 15px;
        background: var(--bg-tertiary);
        border-radius: 12px;
      }

      .mode-toggle {
        display: flex;
        gap: 10px;
      }

      .mode-btn {
        flex: 1;
        background: var(--bg-secondary);
        border: 1px solid var(--cell-border);
        color: var(--color-text-primary);
        padding: 12px;
        border-radius: 10px;
        cursor: pointer;
        font-size: 1.5rem;
        transition: all 0.2s ease;
      }

      .mode-btn.active {
        background: var(--accent-cyan);
        border-color: var(--accent-cyan);
      }

      .instructions {
        margin-top: 20px;
        padding: 15px;
        background: var(--bg-tertiary);
        border-radius: 12px;
        font-size: 0.85rem;
        color: var(--color-text-secondary);
      }

      .instructions h3 {
        font-size: 0.9rem;
        color: var(--color-text-primary);
        margin-bottom: 10px;
      }

      .instructions ul {
        list-style: none;
        display: grid;
        gap: 5px;
      }

      .instructions li {
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .records {
        margin-top: 15px;
        padding: 15px;
        background: var(--bg-tertiary);
        border-radius: 12px;
      }

      .records h3 {
        font-size: 0.9rem;
        margin-bottom: 10px;
      }

      .record-row {
        display: flex;
        justify-content: space-between;
        padding: 5px 0;
        font-size: 0.85rem;
        color: var(--color-text-secondary);
      }

      .record-row span:last-child {
        color: var(--accent-cyan);
        font-weight: bold;
      }

      /* Animations */
      @keyframes reveal {
        0% {
          transform: scale(0.8);
          opacity: 0;
        }
        100% {
          transform: scale(1);
          opacity: 1;
        }
      }

      @keyframes explode {
        0% {
          transform: scale(1);
        }
        50% {
          transform: scale(1.3);
        }
        100% {
          transform: scale(1);
        }
      }

      .cell.revealing {
        animation: reveal 0.15s ease;
      }

      .cell.exploding {
        animation: explode 0.3s ease;
      }

      @keyframes shake {
        0%,
        100% {
          transform: translateX(0);
        }
        25% {
          transform: translateX(-5px);
        }
        75% {
          transform: translateX(5px);
        }
      }

      .shake {
        animation: shake 0.3s ease;
      }

      /* Mobile */
      @media (max-width: 500px) {
        body {
          padding: 10px;
        }

        h1 {
          font-size: 1.2rem;
        }

        .game-container {
          padding: 15px;
        }

        .mobile-controls {
          display: block;
        }

        .cell {
          font-size: 12px;
        }
      }

      @media (pointer: coarse) {
        .mobile-controls {
          display: block;
        }
      }

      .breadcrumb {
        background: rgba(255, 255, 255, 0.95);
        padding: 8px 15px;
        border-radius: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        font-size: 0.85rem;
      }
      .breadcrumb a {
        color: #667eea;
        text-decoration: none;
      }
      .breadcrumb a:hover {
        text-decoration: underline;
      }
      .breadcrumb span {
        color: #999;
        margin: 0 5px;
      }