:root {
      --bg-deep: #0a0c10;
      --bg-page: #0f111a;
      --bg-panel: rgba(255, 255, 255, 0.04);
      --bg-panel-hover: rgba(255, 255, 255, 0.08);
      --c-primary: #00f2ff;
      --c-secondary: #a855f7;
      --c-accent: #f472b6;
      --c-warn: #fbbf24;
      --c-success: #34d399;
      --text-main: #f8fafc;
      --text-muted: #94a3b8;
      --text-dim: #64748b;
      --border: rgba(255, 255, 255, 0.08);
      --glow-primary: 0 0 20px rgba(0, 242, 255, 0.35);
      --glow-secondary: 0 0 24px rgba(168, 85, 247, 0.35);
      --glow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
    }

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

    body {
      font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
      margin: 0;
      min-height: 100vh;
      background:
        radial-gradient(circle at 10% 20%, rgba(0, 242, 255, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 35%),
        var(--bg-page);
      color: var(--text-main);
      line-height: 1.6;
    }

    .app {
      max-width: 1100px;
      margin: 0 auto;
      padding: 40px 24px 80px;
      display: grid;
      gap: 28px;
    }

    @media (max-width: 640px) {
      .app {
        padding: 24px 16px 60px;
        gap: 20px;
      }
    }

    /* 顶部标题 */
    .hero {
      text-align: center;
      margin-bottom: 12px;
    }

    .hero-title {
      font-size: clamp(2rem, 6vw, 3rem);
      font-weight: 900;
      background: linear-gradient(90deg, var(--c-primary), var(--c-secondary), var(--c-accent));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      letter-spacing: -1px;
      margin-bottom: 10px;
    }

    .hero-subtitle {
      color: var(--text-muted);
      font-size: 1.05rem;
      max-width: 560px;
      margin: 0 auto;
    }

    /* 玻璃卡片 */
    .glass-card {
      background: var(--bg-panel);
      border: 1px solid var(--border);
      border-radius: 20px;
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      box-shadow: var(--glow-card);
      padding: 28px;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      animation: fade-up 0.5s ease both;
    }

    .glass-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), var(--glow-primary);
    }

    .section-title {
      font-size: 18px;
      font-weight: 700;
      margin: 0 0 20px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .section-title .icon {
      font-size: 22px;
      filter: drop-shadow(0 0 6px var(--c-primary));
    }

    /* 页面切换 */
    .screen.hidden {
      display: none;
    }

    .screen {
      animation: fade-in 0.5s ease;
    }

    /* 按钮 */
    button {
      font-family: inherit;
      cursor: pointer;
      border: none;
      border-radius: 12px;
      padding: 14px 28px;
      font-size: 1rem;
      font-weight: 700;
      transition: all 0.2s ease;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
      color: #000;
      box-shadow: var(--glow-primary);
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
    }

    .btn-primary:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none !important;
    }

    .btn-ghost {
      background: transparent;
      color: var(--text-main);
      border: 1px solid rgba(255, 255, 255, 0.16);
    }

    .btn-ghost:hover {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(255, 255, 255, 0.3);
    }

    /* 开始界面 */
    .start-card {
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .energy-scene {
      position: relative;
      width: 260px;
      height: 260px;
      margin: 0 auto 32px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .energy-core {
      position: relative;
      width: 160px;
      height: 160px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 0.3s ease;
      outline: none;
      -webkit-tap-highlight-color: transparent;
    }

    .energy-core:hover {
      transform: scale(1.1);
    }

    .energy-core:focus-visible .core-body {
      box-shadow: 0 0 60px rgba(0, 242, 255, 0.8), inset 0 0 30px rgba(255, 255, 255, 0.5), 0 0 0 4px rgba(0, 242, 255, 0.3);
    }

    .core-body {
      position: relative;
      width: 110px;
      height: 110px;
      border-radius: 50%;
      background: radial-gradient(circle at 30% 30%, #fff 0%, var(--c-primary) 30%, var(--c-secondary) 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 60px rgba(0, 242, 255, 0.6), inset 0 0 30px rgba(255, 255, 255, 0.4);
      z-index: 3;
      animation: core-pulse 2.5s ease-in-out infinite;
      transition: all 0.3s ease;
    }

    .core-icon {
      font-size: 2.8rem;
      line-height: 1;
      transition: all 0.3s ease;
    }

    .core-hint {
      position: absolute;
      font-size: 0.75rem;
      font-weight: 700;
      color: rgba(0, 0, 0, 0.7);
      opacity: 0;
      transform: translateY(10px);
      transition: all 0.3s ease;
      letter-spacing: 1px;
    }

    .energy-core:hover .core-icon {
      transform: translateY(-8px) scale(0.85);
    }

    .energy-core:hover .core-hint {
      opacity: 1;
      transform: translateY(10px);
    }

    .core-tooltip {
      position: absolute;
      top: -58px;
      left: 50%;
      transform: translateX(-50%) translateY(12px);
      background: linear-gradient(135deg, rgba(0, 242, 255, 0.95), rgba(168, 85, 247, 0.95));
      border: 2px solid rgba(255, 255, 255, 0.4);
      color: #000;
      padding: 12px 24px;
      border-radius: 16px;
      font-size: 1.25rem;
      font-weight: 900;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: all 0.25s ease;
      box-shadow: 0 0 30px rgba(0, 242, 255, 0.5), 0 8px 30px rgba(0, 0, 0, 0.4);
      z-index: 10;
      text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
      animation: tooltip-bounce 1.2s ease-in-out infinite;
    }

    .core-tooltip .tooltip-arrow {
      position: absolute;
      bottom: -8px;
      left: 50%;
      transform: translateX(-50%) rotate(45deg);
      width: 14px;
      height: 14px;
      background: var(--c-primary);
      border-right: 2px solid rgba(255, 255, 255, 0.4);
      border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    }

    .energy-core:hover .core-tooltip,
    .energy-core:focus-visible .core-tooltip {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    @keyframes tooltip-bounce {
      0%, 100% { margin-top: 0; transform: translateX(-50%) scale(1); }
      50% { margin-top: -8px; transform: translateX(-50%) scale(1.08); }
    }

    .core-glow {
      position: absolute;
      width: 140px;
      height: 140px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(0, 242, 255, 0.4) 0%, transparent 70%);
      filter: blur(20px);
      z-index: 2;
      animation: glow-pulse 2.5s ease-in-out infinite;
    }

    .core-ring {
      position: absolute;
      border-radius: 50%;
      border: 2px solid rgba(0, 242, 255, 0.3);
      z-index: 1;
      opacity: 0;
    }

    .ring-1 { width: 160px; height: 160px; animation: ring-expand 3s ease-out infinite; }
    .ring-2 { width: 200px; height: 200px; animation: ring-expand 3s ease-out infinite 1s; }
    .ring-3 { width: 240px; height: 240px; animation: ring-expand 3s ease-out infinite 2s; }

    .energy-particles {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 0;
    }

    .particle {
      position: absolute;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--c-primary);
      box-shadow: 0 0 10px var(--c-primary);
      opacity: 0.6;
      animation: float-particle 4s ease-in-out infinite;
    }

    .start-title {
      font-size: 1.8rem;
      margin-bottom: 12px;
      background: linear-gradient(90deg, #fff, var(--c-primary));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .start-desc {
      color: var(--text-muted);
      margin-bottom: 32px;
      line-height: 1.7;
      max-width: 460px;
      margin-left: auto;
      margin-right: auto;
    }

    .start-hint {
      margin-top: 24px;
      font-size: 0.85rem;
      color: var(--text-dim);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .pulse-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--c-success);
      box-shadow: 0 0 10px var(--c-success);
      animation: pulse-dot 2s ease-in-out infinite;
    }

    /* 能量核心充能完成爆发 */
    .energy-core.charged .core-body {
      animation: core-burst 0.8s ease forwards;
    }

    .energy-core.charged .core-glow {
      animation: glow-burst 0.8s ease forwards;
    }

    .energy-core.charged .core-ring {
      animation: ring-burst 0.8s ease forwards;
    }

    .burst-particle {
      position: absolute;
      border-radius: 50%;
      background: var(--c-primary);
      box-shadow: 0 0 10px var(--c-primary);
      pointer-events: none;
      animation: burst-fly 1s ease-out forwards;
    }

    @keyframes core-pulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.05); }
    }

    @keyframes glow-pulse {
      0%, 100% { opacity: 0.6; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.2); }
    }

    @keyframes ring-expand {
      0% { transform: scale(0.5); opacity: 0.8; }
      100% { transform: scale(1.3); opacity: 0; }
    }

    @keyframes float-particle {
      0%, 100% { transform: translateY(0) translateX(0); opacity: 0.4; }
      25% { transform: translateY(-20px) translateX(10px); opacity: 0.8; }
      50% { transform: translateY(-10px) translateX(-10px); opacity: 0.6; }
      75% { transform: translateY(-30px) translateX(5px); opacity: 0.9; }
    }

    @keyframes spark-spin {
      from { transform: translateY(-50%) rotate(0deg); }
      to { transform: translateY(-50%) rotate(360deg); }
    }

    @keyframes dot-blink {
      0%, 100% { content: ''; }
      25% { content: '.'; }
      50% { content: '..'; }
      75% { content: '...'; }
    }

    @keyframes pulse-dot {
      0%, 100% { opacity: 0.5; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.3); }
    }

    @keyframes core-burst {
      0% { transform: scale(1); }
      50% { transform: scale(1.4); filter: brightness(1.5); }
      100% { transform: scale(0); opacity: 0; }
    }

    @keyframes glow-burst {
      0% { transform: scale(1); opacity: 0.8; }
      100% { transform: scale(3); opacity: 0; }
    }

    @keyframes ring-burst {
      0% { transform: scale(1); opacity: 0.6; }
      100% { transform: scale(2.5); opacity: 0; }
    }

    @keyframes burst-fly {
      0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
      100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
    }

    /* 进度条 */
    .progress-bar {
      width: 100%;
      height: 10px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 6px;
      overflow: hidden;
      margin-bottom: 8px;
    }

    .progress-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
      border-radius: 6px;
      transition: width 0.4s ease;
    }

    .progress-text {
      text-align: right;
      color: var(--text-muted);
      font-size: 0.9rem;
      margin-bottom: 16px;
    }

    /* 题目卡片 */
    .question-card {
      text-align: center;
    }

    .dimension-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 16px;
      border-radius: 20px;
      background: rgba(0, 242, 255, 0.12);
      color: var(--c-primary);
      font-size: 0.9rem;
      font-weight: 700;
      margin-bottom: 16px;
      letter-spacing: 1px;
      border: 1px solid rgba(0, 242, 255, 0.2);
    }

    .question-text {
      font-size: 1.35rem;
      margin-bottom: 28px;
      min-height: 3.5em;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 500;
    }

    /* 选项 */
    .options {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
      margin-bottom: 28px;
    }

    @media (max-width: 640px) {
      .options {
        grid-template-columns: 1fr;
      }
    }

    .option-btn {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid var(--border);
      color: var(--text-main);
      padding: 18px 16px;
      border-radius: 14px;
      font-weight: 500;
      transition: all 0.2s ease;
      text-align: left;
      line-height: 1.5;
    }

    .option-btn:hover {
      background: rgba(0, 242, 255, 0.1);
      border-color: rgba(0, 242, 255, 0.4);
      transform: translateY(-2px);
    }

    .option-btn.selected {
      background: linear-gradient(135deg, rgba(0, 242, 255, 0.2), rgba(168, 85, 247, 0.2));
      border-color: var(--c-primary);
      box-shadow: var(--glow-primary);
    }

    .option-emoji {
      display: inline-block;
      margin-right: 8px;
      font-size: 1.3rem;
    }

    /* 导航按钮 */
    .nav-buttons {
      display: flex;
      justify-content: space-between;
      gap: 12px;
    }

    .nav-buttons button {
      flex: 1;
    }

    .nav-buttons button.hidden {
      display: none;
    }

    /* 结果界面 */
    .result-summary {
      text-align: center;
    }

    .score-ring {
      position: relative;
      width: 220px;
      height: 220px;
      margin: 0 auto 24px;
      border-radius: 50%;
      background: conic-gradient(var(--c-primary) calc(var(--score-deg, 0deg)), rgba(255, 255, 255, 0.08) 0);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      box-shadow: 0 0 40px rgba(0, 242, 255, 0.25);
    }

    .score-ring::before {
      content: "";
      position: absolute;
      width: 180px;
      height: 180px;
      border-radius: 50%;
      background: var(--bg-page);
    }

    .total-score {
      position: relative;
      font-size: 3.6rem;
      font-weight: 900;
      background: linear-gradient(180deg, #fff 0%, var(--c-primary) 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      text-shadow: 0 0 30px rgba(0, 242, 255, 0.35);
    }

    .score-unit {
      position: relative;
      font-size: 1rem;
      color: var(--text-muted);
    }

    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 22px;
      border-radius: 999px;
      font-size: 1.1rem;
      font-weight: 700;
      background: rgba(0, 242, 255, 0.1);
      border: 1px solid rgba(0, 242, 255, 0.25);
      color: var(--c-primary);
      box-shadow: 0 0 18px rgba(0, 242, 255, 0.15);
      margin-bottom: 14px;
    }

    .status-title {
      font-size: 1.6rem;
      font-weight: 700;
      margin-bottom: 12px;
      background: linear-gradient(90deg, #fff, var(--c-primary));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .status-advice {
      color: var(--text-muted);
      margin-bottom: 28px;
      line-height: 1.7;
      max-width: 620px;
      margin-left: auto;
      margin-right: auto;
    }

    /* 各维度分布 */
    .dimensions-breakdown h3 {
      margin-bottom: 20px;
      font-size: 1.2rem;
    }

    .dimensions-chart {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .dimension-row {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .dimension-label {
      width: 80px;
      font-size: 0.9rem;
      color: var(--text-muted);
      text-align: right;
      flex-shrink: 0;
    }

    .dimension-bar-wrap {
      flex: 1;
      height: 12px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 8px;
      overflow: hidden;
    }

    .dimension-bar {
      height: 100%;
      width: 0%;
      border-radius: 8px;
      background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
      transition: width 1s ease;
    }

    .dimension-value {
      width: 46px;
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--text-main);
      flex-shrink: 0;
    }

    /* 结果操作 */
    .result-actions {
      display: flex;
      justify-content: center;
      gap: 14px;
      flex-wrap: wrap;
      margin-top: 28px;
    }

    /* 动画 */
    @keyframes fade-in {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes fade-up {
      from { opacity: 0; transform: translateY(16px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes pulse-glow {
      0%, 100% { text-shadow: 0 0 20px rgba(0, 242, 255, 0.35); }
      50% { text-shadow: 0 0 40px rgba(0, 242, 255, 0.7); }
    }

    .total-score.animating {
      animation: pulse-glow 1.2s ease-in-out infinite;
    }

    /* 顶部进度条 */
    .top-progress {
      position: fixed;
      top: 0;
      left: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
      box-shadow: var(--glow-primary);
      transition: width 0.3s ease;
      z-index: 100;
      width: 0%;
    }