
    :root {
      --primary: #6366f1;
      --primary-2: #8b5cf6;
      --ink: #202236;
      --text: #4b5563;
      --muted: #8b93a7;
      --line: #e7e9f4;
      --soft: #f7f7ff;
      --white: #ffffff;
      --success: #10b981;
      --warning: #f59e0b;
      --danger: #ef476f;
      --shadow: 0 18px 48px rgba(59, 65, 120, 0.14);
      --shadow-soft: 0 12px 34px rgba(99, 102, 241, 0.12);
      --radius-lg: 20px;
      --radius-md: 16px;
      --footer-height: 62px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      min-height: 100%;
      background: #f4f5ff;
    }

    body {
      min-height: 100vh;
      margin: 0;
      color: var(--text);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
      line-height: 1.7;
      letter-spacing: 0;
      background:
        radial-gradient(circle at 8% 4%, rgba(139, 92, 246, 0.16), transparent 28%),
        radial-gradient(circle at 96% 12%, rgba(20, 184, 166, 0.12), transparent 26%),
        linear-gradient(145deg, #f8f9ff 0%, #eff2ff 48%, #fbf7ff 100%);
      padding-bottom: calc(var(--footer-height) + env(safe-area-inset-bottom));
      overflow-x: hidden;
    }

    button,
    input {
      font: inherit;
    }

    button {
      border: 0;
      cursor: pointer;
    }

    button:disabled {
      cursor: not-allowed;
      opacity: 0.55;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .app-shell {
      width: min(100%, 760px);
      margin: 0 auto;
      padding: 22px 16px 28px;
    }

    .screen {
      display: none;
      animation: screenIn 0.3s ease both;
    }

    .screen.is-active {
      display: block;
    }

    @keyframes screenIn {
      from {
        opacity: 0;
        transform: translateY(12px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .glass-panel,
    .card {
      border: 1px solid rgba(255, 255, 255, 0.72);
      border-radius: var(--radius-lg);
      background: rgba(255, 255, 255, 0.92);
      box-shadow: var(--shadow);
      backdrop-filter: blur(18px);
    }

    .hero {
      min-height: calc(100vh - 118px);
      display: grid;
      align-content: center;
      gap: 20px;
    }

    .hero-card {
      padding: 34px 22px 24px;
      overflow: hidden;
      position: relative;
    }

    .hero-card::before {
      content: "";
      position: absolute;
      inset: 0 0 auto 0;
      height: 6px;
      background: linear-gradient(90deg, var(--primary), var(--primary-2), #14b8a6);
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--primary);
      font-size: 13px;
      font-weight: 700;
      background: rgba(99, 102, 241, 0.1);
      border: 1px solid rgba(99, 102, 241, 0.16);
      border-radius: 999px;
      padding: 6px 11px;
    }

    .title {
      margin: 18px 0 8px;
      color: var(--ink);
      font-size: 34px;
      line-height: 1.14;
      font-weight: 900;
    }

    .gradient-text {
      background: linear-gradient(96deg, #4f46e5 0%, #8b5cf6 48%, #0f766e 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .subtitle {
      margin: 0;
      color: #34384d;
      font-size: 17px;
      font-weight: 700;
    }

    .intro-copy {
      margin: 14px 0 0;
      color: var(--text);
      font-size: 15px;
    }

    .tag-list {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
      margin: 22px 0 0;
      padding: 0;
      list-style: none;
    }

    .tag-list li {
      color: #3f3f59;
      font-size: 13px;
      font-weight: 700;
      border: 1px solid rgba(99, 102, 241, 0.14);
      border-radius: 999px;
      background: linear-gradient(180deg, #ffffff, #f6f7ff);
      padding: 7px 11px;
      box-shadow: 0 8px 22px rgba(99, 102, 241, 0.08);
    }

    .hero-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-top: 22px;
    }

    .stat {
      border: 1px solid rgba(99, 102, 241, 0.12);
      border-radius: 16px;
      background: #fbfbff;
      padding: 12px 10px;
      text-align: center;
    }

    .stat strong {
      display: block;
      color: var(--ink);
      font-size: 19px;
      line-height: 1.2;
    }

    .stat span {
      display: block;
      margin-top: 3px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }

    .primary-button,
    .secondary-button,
    .ghost-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      border-radius: 16px;
      padding: 0 18px;
      font-weight: 800;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
    }

    .primary-button {
      width: 100%;
      margin-top: 24px;
      color: #fff;
      background: linear-gradient(135deg, var(--primary), var(--primary-2));
      box-shadow: 0 16px 30px rgba(99, 102, 241, 0.32);
    }

    .primary-button:active,
    .secondary-button:active,
    .ghost-button:active,
    .option-card:active {
      transform: scale(0.98);
    }

    .secondary-button {
      color: var(--primary);
      border: 1px solid rgba(99, 102, 241, 0.2);
      background: rgba(99, 102, 241, 0.08);
    }

    .ghost-button {
      color: #596074;
      border: 1px solid var(--line);
      background: #fff;
    }

    .page-top {
      display: grid;
      gap: 12px;
      margin-bottom: 16px;
    }

    .progress-card {
      padding: 16px;
    }

    .progress-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }

    .progress-track {
      height: 10px;
      margin-top: 10px;
      overflow: hidden;
      border-radius: 999px;
      background: #eceeff;
    }

    .progress-fill {
      width: 0%;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--primary), var(--primary-2));
      transition: width 0.3s ease;
    }

    .question-card {
      padding: 22px 18px;
    }

    .question-index {
      color: var(--primary);
      font-size: 13px;
      font-weight: 800;
    }

    .question-title {
      margin: 8px 0 18px;
      color: var(--ink);
      font-size: 22px;
      line-height: 1.32;
      font-weight: 900;
    }

    .option-list {
      display: grid;
      gap: 12px;
    }

    .option-card {
      width: 100%;
      min-height: 76px;
      display: grid;
      grid-template-columns: 34px 1fr;
      align-items: center;
      gap: 12px;
      color: #34384d;
      text-align: left;
      border: 1px solid #dfe3f3;
      border-radius: 18px;
      background: #fff;
      padding: 14px 14px;
      box-shadow: 0 8px 22px rgba(33, 39, 72, 0.06);
      transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    }

    .option-card.is-selected {
      border-color: rgba(99, 102, 241, 0.9);
      background: linear-gradient(180deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.08));
      box-shadow: 0 12px 28px rgba(99, 102, 241, 0.16);
    }

    .option-letter {
      width: 34px;
      height: 34px;
      display: inline-grid;
      place-items: center;
      color: var(--primary);
      border-radius: 50%;
      background: rgba(99, 102, 241, 0.1);
      font-size: 14px;
      font-weight: 900;
    }

    .option-card.is-selected .option-letter {
      color: #fff;
      background: linear-gradient(135deg, var(--primary), var(--primary-2));
    }

    .question-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-top: 18px;
    }

    .result-card {
      overflow: hidden;
      color: #fff;
      padding: 24px 20px;
      position: relative;
      box-shadow: var(--shadow);
    }

    .result-card::after {
      content: "";
      position: absolute;
      right: -46px;
      top: -60px;
      width: 170px;
      height: 170px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.18);
    }

    .result-card > * {
      position: relative;
      z-index: 1;
    }

    .result-kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 800;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.18);
      padding: 6px 11px;
    }

    .result-type {
      margin: 14px 0 4px;
      font-size: 42px;
      line-height: 1;
      font-weight: 950;
      color: #fff;
    }

    .result-name {
      margin: 0;
      font-size: 17px;
      font-weight: 800;
    }

    .result-quote {
      margin: 15px 0 0;
      color: rgba(255, 255, 255, 0.94);
      font-size: 14px;
      line-height: 1.75;
    }

    .section-card {
      margin-top: 14px;
      padding: 20px 18px;
    }

    .section-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
    }

    .section-heading h2,
    .report-module h3 {
      margin: 0;
      color: var(--ink);
      font-size: 20px;
      line-height: 1.35;
      font-weight: 900;
    }

    .section-note {
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap;
    }

    .score-grid {
      display: grid;
      gap: 12px;
    }

    .score-row {
      display: grid;
      gap: 7px;
    }

    .score-label {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      color: #51576b;
      font-size: 13px;
      font-weight: 800;
    }

    .score-track {
      position: relative;
      height: 9px;
      overflow: hidden;
      border-radius: 999px;
      background: #edf0fb;
    }

    .score-fill {
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--primary), var(--primary-2));
    }

    .preview-box {
      position: relative;
      overflow: hidden;
    }

    .preview-open {
      color: #3d4358;
      font-size: 15px;
    }

    .locked-content {
      max-height: 260px;
      overflow: hidden;
      color: #3f465b;
      filter: blur(5px);
      user-select: none;
      pointer-events: none;
    }

    .locked-content h3 {
      margin: 18px 0 6px;
      color: var(--ink);
      font-size: 17px;
    }

    .locked-content p,
    .report-module p {
      margin: 0;
      color: #4b5563;
      font-size: 15px;
      line-height: 1.8;
    }

    .unlock-mask {
      position: absolute;
      inset: auto 0 0;
      min-height: 168px;
      display: grid;
      place-items: end center;
      padding: 72px 14px 8px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 62%);
      text-align: center;
    }

    .unlock-tip {
      width: min(100%, 320px);
      color: var(--primary);
      border: 1px solid rgba(99, 102, 241, 0.18);
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.88);
      box-shadow: var(--shadow-soft);
      padding: 13px 12px;
      font-weight: 900;
    }

    .pay-card {
      border: 1px solid rgba(99, 102, 241, 0.28);
      background:
        linear-gradient(180deg, rgba(99, 102, 241, 0.08), rgba(255, 255, 255, 0.96)),
        #fff;
      box-shadow: 0 20px 48px rgba(99, 102, 241, 0.16);
    }

    .price-rule {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      justify-content: center;
      gap: 6px;
      color: #4b5563;
      font-size: 15px;
      font-weight: 800;
      text-align: center;
    }

    .price-original {
      color: #9aa3b5;
      text-decoration: line-through;
      text-decoration-thickness: 2px;
    }

    .price-now {
      color: var(--danger);
      font-size: 38px;
      line-height: 1;
      font-weight: 950;
    }

    .qr-wrap {
      width: min(100%, 278px);
      margin: 18px auto 12px;
      border-radius: 18px;
      border: 1px solid #e5e7f1;
      background: #fff;
      padding: 12px;
      box-shadow: 0 12px 30px rgba(33, 39, 72, 0.08);
    }

    .qr-wrap img {
      display: block;
      width: 100%;
      aspect-ratio: 1 / 1;
      object-fit: cover;
      border-radius: 12px;
    }

    .qr-caption {
      margin: 8px 0 0;
      color: var(--muted);
      font-size: 12px;
      text-align: center;
    }

    .payment-meta {
      display: grid;
      gap: 10px;
      margin: 16px 0 0;
    }

    .payment-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      min-height: 42px;
      border: 1px solid rgba(99, 102, 241, 0.12);
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.72);
      padding: 8px 11px;
    }

    .payment-row span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .payment-row strong {
      color: var(--ink);
      font-size: 13px;
      word-break: break-all;
      text-align: right;
    }

    .copy-order-button {
      min-height: 34px;
      border-radius: 12px;
      color: var(--primary);
      background: rgba(99, 102, 241, 0.1);
      padding: 0 11px;
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }

    .payment-steps {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      margin: 14px 0 0;
    }

    .payment-step {
      display: grid;
      place-items: center;
      min-height: 44px;
      border-radius: 14px;
      color: #626b82;
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid rgba(99, 102, 241, 0.12);
      font-size: 12px;
      font-weight: 900;
      text-align: center;
    }

    .payment-step.is-active {
      color: #fff;
      border-color: transparent;
      background: linear-gradient(135deg, var(--primary), var(--primary-2));
      box-shadow: 0 12px 22px rgba(99, 102, 241, 0.22);
    }

    .payment-hint {
      margin: 12px 0 0;
      color: #6b7280;
      font-size: 13px;
      line-height: 1.65;
      text-align: center;
    }

    .payment-status {
      margin: 12px 0 0;
      color: var(--primary);
      font-size: 13px;
      font-weight: 900;
      text-align: center;
    }

    .payment-modal {
      position: fixed;
      inset: 0;
      z-index: 60;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 18px;
      background: rgba(23, 25, 45, 0.45);
      backdrop-filter: blur(12px);
    }

    .payment-modal.is-active {
      display: flex;
      animation: screenIn 0.24s ease both;
    }

    .payment-dialog {
      width: min(100%, 420px);
      border-radius: 20px;
      background: #fff;
      box-shadow: 0 26px 80px rgba(18, 22, 46, 0.28);
      padding: 22px 18px 18px;
    }

    .payment-dialog h2 {
      margin: 0;
      color: var(--ink);
      font-size: 21px;
      line-height: 1.35;
      font-weight: 950;
    }

    .payment-dialog p {
      margin: 9px 0 0;
      color: #5f6678;
      font-size: 14px;
      line-height: 1.7;
    }

    .payment-summary {
      display: grid;
      gap: 8px;
      margin: 16px 0;
      border-radius: 16px;
      background: #f7f7ff;
      padding: 12px;
    }

    .payment-summary div {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: #61697d;
      font-size: 13px;
      font-weight: 800;
    }

    .payment-summary strong {
      color: var(--ink);
      text-align: right;
    }

    .payment-confirm-check {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      color: #43495c;
      font-size: 14px;
      font-weight: 800;
      line-height: 1.55;
      margin-bottom: 16px;
    }

    .payment-confirm-check input {
      width: 18px;
      height: 18px;
      margin-top: 3px;
      accent-color: var(--primary);
      flex: 0 0 auto;
    }

    .dialog-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .pay-card .question-actions,
    .dialog-actions {
      margin-top: 14px;
    }

    .pay-card .primary-button,
    .dialog-actions .primary-button {
      margin-top: 0;
    }

    .report-header {
      display: grid;
      gap: 14px;
    }

    .report-module {
      display: grid;
      gap: 8px;
      border-top: 1px solid var(--line);
      padding-top: 16px;
      margin-top: 16px;
    }

    .report-module:first-of-type {
      border-top: 0;
      padding-top: 0;
      margin-top: 0;
    }

    .final-actions {
      display: grid;
      gap: 12px;
      margin-top: 16px;
    }

    .site-footer {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 20;
      min-height: var(--footer-height);
      display: grid;
      align-content: center;
      gap: 2px;
      padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
      color: #a0a6b8;
      text-align: center;
      font-size: 12px;
      background: rgba(248, 249, 255, 0.9);
      border-top: 1px solid rgba(220, 224, 240, 0.72);
      backdrop-filter: blur(16px);
    }

    .site-footer a {
      color: #8c93a7;
    }

    .site-footer p {
      margin: 0;
    }

    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    @media (min-width: 680px) {
      .app-shell {
        padding-top: 34px;
      }

      .hero-card,
      .question-card,
      .section-card {
        padding: 28px;
      }

      .title {
        font-size: 46px;
      }

      .result-type {
        font-size: 56px;
      }

      .final-actions {
        grid-template-columns: 1fr 1fr;
      }
    }

    @media (max-width: 390px) {
      .app-shell {
        padding-left: 12px;
        padding-right: 12px;
      }

      .title {
        font-size: 31px;
      }

      .hero-stats {
        gap: 8px;
      }

      .stat {
        padding: 10px 6px;
      }

      .stat strong {
        font-size: 17px;
      }

      .question-title {
        font-size: 20px;
      }

      .question-actions {
        grid-template-columns: 1fr;
      }
    }
  