/* Commercial preview and premium UI styles. Extracted first to keep CSS migration low-risk. */
.premium-modal-bg {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,0.6); z-index:900;
  align-items:center; justify-content:center; padding:16px;
}
.premium-modal-bg.open { display:flex; }
.premium-modal {
  background:white; border-radius:24px; max-width:600px; width:100%;
  padding:36px 32px; box-shadow:0 32px 80px rgba(0,0,0,0.35);
  max-height:92vh; overflow-y:auto;
}
.premium-modal-head { text-align:center; margin-bottom:28px; }
.premium-modal-head .pm-crown { font-size:48px; margin-bottom:12px; }
.premium-modal-head h2 { font-size:24px; font-weight:800; color:#1e3a8a; margin-bottom:6px; }
.premium-modal-head p { color:#64748b; font-size:15px; }
.pricing-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:24px; }
.pricing-card {
  border:2px solid #e2e8f0; border-radius:16px; padding:20px 16px;
  text-align:center; cursor:pointer; transition:all 0.2s; position:relative;
}
.pricing-card:hover { border-color:#3b82f6; transform:translateY(-2px); }
.pricing-card.popular { border-color:#3b82f6; box-shadow:0 0 0 4px rgba(59,130,246,0.12); }
.pricing-popular-tag {
  position:absolute; top:-10px; left:50%; transform:translateX(-50%);
  background:#3b82f6; color:white; font-size:11px; font-weight:700;
  padding:3px 12px; border-radius:10px; white-space:nowrap;
}
.pricing-period { font-size:13px; font-weight:700; color:#64748b; margin-bottom:6px; }
.pricing-price { font-size:30px; font-weight:800; color:#1e3a8a; line-height:1; }
.pricing-price span { font-size:14px; color:#94a3b8; font-weight:400; }
.pricing-save { font-size:12px; color:#16a34a; font-weight:700; margin-top:4px; }
.pricing-features { text-align:left; margin-top:12px; font-size:12px; color:#475569; line-height:1.9; }
.pm-preview-note {
  background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px;
  padding:12px 14px; color:#475569; font-size:13px; line-height:1.6;
  margin-bottom:16px; text-align:left;
}
.pm-cta {
  width:100%; background:linear-gradient(135deg,#1e3a8a,#2563eb);
  color:white; font-size:16px; font-weight:700; padding:14px;
  border-radius:50px; border:none; cursor:pointer; margin-bottom:12px;
  transition:all 0.2s; box-shadow:0 4px 20px rgba(37,99,235,0.3);
}
.pm-cta:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(37,99,235,0.4); }
.pm-demo-btn {
  width:100%; background:#f1f5f9; color:#64748b;
  font-size:13px; font-weight:600; padding:10px;
  border-radius:50px; border:none; cursor:pointer; margin-bottom:16px;
  transition:all 0.2s;
}
.pm-demo-btn:hover { background:#e2e8f0; }
.pm-footer { text-align:center; font-size:12px; color:#94a3b8; }
.pm-close { position:absolute; top:16px; right:20px; background:none; border:none; font-size:24px; cursor:pointer; color:#94a3b8; }

.cu-premium-wall {
  background:linear-gradient(135deg,#eff6ff,#faf5ff);
  border:2px dashed #c4b5fd; border-radius:16px;
  padding:24px; text-align:center; margin-top:12px;
}
.cu-premium-wall h4 { font-size:16px; font-weight:800; color:#1e3a8a; margin-bottom:6px; }
.cu-premium-wall p { font-size:13px; color:#64748b; margin-bottom:14px; }
.curriculum-unit-card.premium-locked {
  opacity:0.45; pointer-events:none; position:relative;
}
.curriculum-unit-card.premium-locked::after {
  content:'👑'; position:absolute; right:10px; top:50%; transform:translateY(-50%);
  font-size:16px;
}

.premium-bar {
  background:linear-gradient(135deg,#1e3a8a,#7c3aed);
  color:white; font-size:13px; font-weight:600;
  padding:8px 20px; text-align:center; cursor:pointer;
  transition:opacity 0.2s;
}
.premium-bar:hover { opacity:0.9; }
.premium-bar.is-premium { background:linear-gradient(135deg,#15803d,#059669); cursor:default; }

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

/* Front-page structured feedback UI. */
.feedback-fab {
  position:fixed; bottom:80px; left:16px; z-index:1500;
  background:#fff; border:1px solid #e2e8f0; border-radius:50px;
  padding:8px 14px; font-size:13px; color:#64748b; cursor:pointer;
  box-shadow:0 2px 12px rgba(0,0,0,0.08);
  display:flex; align-items:center; gap:6px;
}
.feedback-fab:hover { border-color:#2563eb; color:#2563eb; }
.feedback-modal-bg {
  position:fixed; inset:0; background:rgba(15,23,42,0.38);
  z-index:7600; display:none; align-items:center; justify-content:center;
  padding:18px;
}
.feedback-modal-bg.open { display:flex; }
.feedback-modal {
  width:520px; max-width:100%; background:white; border-radius:16px;
  padding:22px; box-shadow:0 24px 80px rgba(0,0,0,0.24);
}
.feedback-modal h3 { margin:0 0 6px; font-size:20px; color:#172033; }
.feedback-modal p { margin:0 0 14px; color:#64748b; font-size:13px; line-height:1.6; }
.feedback-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.feedback-field { margin-bottom:12px; }
.feedback-field label {
  display:block; margin-bottom:6px; color:#334155; font-size:13px;
  font-weight:800;
}
.feedback-field select,
.feedback-field input,
.feedback-field textarea {
  width:100%; border:1px solid #dbe3ef; border-radius:8px;
  padding:10px 11px; font-size:14px; color:#172033; background:white;
}
.feedback-field textarea { min-height:108px; resize:vertical; line-height:1.55; }
.feedback-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:4px; }
.feedback-actions button {
  border:0; border-radius:8px; padding:10px 14px; font-weight:800;
  cursor:pointer;
}
.feedback-actions .ghost { background:#f1f5f9; color:#475569; }
.feedback-actions .primary { background:#2563eb; color:white; }
.feedback-status { min-height:20px; color:#64748b; font-size:13px; margin-top:10px; }
.feedback-status.ok { color:#15803d; }
.feedback-status.err { color:#b91c1c; }

@media (max-width:768px) {
  .feedback-fab { bottom:76px; }
}

/* Migrated from index.html main stylesheet. */
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f4f8fc;
    color: #2c3e50;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  /* ===== 顶部导航 ===== */
  .navbar {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e6ecf2;
    padding: 14px 32px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }
  .logo {
    font-size: 20px; font-weight: 700;
    color: #2563eb;
    display: flex; align-items: center; gap: 8px;
  }
  .logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 16px;
  }
  /* Level Selector */
  .level-selector {
    position: relative; display: inline-flex; align-items: center; margin-left: 8px;
  }
  .level-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 20px; cursor: pointer;
    font-size: 14px; font-weight: 600; border: 2px solid; transition: all 0.2s;
    background: white;
  }
  .level-btn:hover { transform: scale(1.05); }
  .level-btn .level-arrow { font-size: 10px; opacity: 0.6; }
  .level-dropdown {
    display: none; position: absolute; top: 100%; left: 0; margin-top: 6px;
    background: white; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    padding: 8px; z-index: 200; min-width: 220px;
  }
  .level-dropdown.show { display: block; }
  .level-option {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    border-radius: 8px; cursor: pointer; transition: background 0.15s;
    border: none; background: none; width: 100%; text-align: left; font-size: 14px;
  }
  .level-option:hover { background: #f1f5f9; }
  .level-option.active { background: #eff6ff; font-weight: 600; }
  .level-option .level-icon { font-size: 18px; }
  .level-option .level-info { flex: 1; }
  .level-option .level-name { font-weight: 600; }
  .level-option .level-desc { font-size: 12px; color: #94a3b8; }
  .level-option .level-lock { color: #94a3b8; font-size: 12px; }
  .nav-rank {
    display: flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: 20px;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    font-size: 13px; font-weight: 600; color: #92400e;
    white-space: nowrap; border: 1px solid #fde68a;
  }
  .nav-rank:hover { opacity: 0.85; }
  .nav-links {
    display: flex; gap: 8px;
  }
  .nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    border: none; background: none;
  }
  .nav-link:hover { background: #eff6ff; color: #2563eb; }
  .nav-link.active { background: #2563eb; color: white; }
  .mobile-nav-only { display: none; }
  .mobile-bottom-tabs {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border-top: 1px solid #e6ecf2;
    padding: 4px 0 env(safe-area-inset-bottom, 6px);
    justify-content: space-around;
  }
  .bottom-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 3px 8px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 600;
    transition: color 0.15s;
  }
  .bottom-tab.active { color: #2563eb; }
  .bottom-tab-icon { font-size: 20px; }
  .bottom-tab-label { font-size: 10px; }
  .tab-icon { font-size: 20px; }
  .tab-label { font-size: 10px; }

  /* ===== 主体容器 ===== */
  main { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }

  .global-back-btn {
    position: fixed;
    left: 24px;
    top: 92px;
    z-index: 96;
    width: 220px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(148,163,184,.22);
    border-radius: 16px;
    background: rgba(15,23,42,.9);
    color: #e2e8f0;
    box-shadow: 0 16px 38px rgba(0,0,0,.26);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, border-color .16s ease, background .16s ease;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .global-back-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .global-back-btn:hover {
    border-color: rgba(99,102,241,.58);
    background: rgba(30,41,59,.96);
  }

  .global-back-btn:disabled {
    cursor: default;
  }

  .global-back-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(99,102,241,.18);
    color: #c4b5fd;
    font-size: 16px;
    font-weight: 900;
    flex: 0 0 auto;
  }

  .global-back-text {
    font-size: 14px;
    font-weight: 900;
    color: #f8fafc;
  }

  @media (min-width: 769px) {
    .navbar {
      justify-content: flex-start;
      gap: 22px;
    }

    .nav-links {
      position: fixed;
      left: 24px;
      top: 144px;
      bottom: 24px;
      z-index: 90;
      width: 220px;
      height: calc(100vh - 168px);
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
      padding: 22px 16px;
      border-radius: 28px;
      overflow-y: auto;
      overflow-x: hidden;
      background:
        linear-gradient(180deg, rgba(255,255,255,.92), rgba(241,245,249,.82)),
        rgba(255,255,255,.88);
      border: 1px solid rgba(226,232,240,.9);
      box-shadow: 0 28px 70px rgba(15,23,42,.14);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }

    .nav-link {
      width: 100%;
      text-align: left;
      padding: 14px 16px;
      border-radius: 16px;
      font-size: 15px;
      font-weight: 800;
      white-space: nowrap;
      flex: 0 0 auto;
      min-height: 52px;
      display: flex;
      align-items: center;
    }

    main {
      width: min(1200px, calc(100vw - 300px));
      margin-left: max(280px, calc((100vw - 1200px) / 2));
      margin-right: auto;
    }
  }

  /* ===== 首页 hero ===== */
  .hero {
    background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
    padding: 48px 40px;
    border-radius: 20px;
    margin-bottom: 32px;
  }
  .hero h1 { font-size: 32px; color: #1e3a8a; margin-bottom: 12px; }
  .hero p { font-size: 16px; color: #475569; max-width: 600px; }

  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
  }
  .feature-card {
    background: white;
    padding: 28px 24px;
    border-radius: 16px;
    border: 1px solid #e6ecf2;
    cursor: pointer;
    transition: all 0.2s;
  }
  .feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
    border-color: #93c5fd;
  }
  .feature-card .emoji { font-size: 32px; margin-bottom: 12px; }
  .feature-card h3 { font-size: 18px; color: #1e3a8a; margin-bottom: 6px; }
  .feature-card p { font-size: 14px; color: #64748b; }

  /* ===== 板块 ===== */
  .section { display: none; }
  .section.active { display: block; }

  .section-header {
    margin-bottom: 24px;
  }
  .section-header h2 {
    font-size: 28px;
    color: #1e3a8a;
    margin-bottom: 8px;
  }
  .section-header p { color: #64748b; }

  /* ===== 词汇板块 ===== */
  .vocab-controls {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e6ecf2;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
  }
  .search-box {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    border: 2px solid #e6ecf2;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
  }
  .search-box:focus { border-color: #3b82f6; }

  .topic-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }
  .topic-tab {
    padding: 8px 14px;
    background: white;
    border: 1px solid #e6ecf2;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    color: #475569;
    transition: all 0.15s;
  }
  .topic-tab:hover { border-color: #93c5fd; color: #2563eb; }
  .topic-tab.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
  }

  .word-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
  }
  .word-card {
    background: white;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #eef2f7;
    transition: all 0.15s;
  }
  .word-card:hover {
    border-color: #93c5fd;
    transform: translateY(-1px);
  }
  .word-card .word { font-weight: 600; color: #1e293b; font-size: 15px; }
  .word-card .pos { font-size: 12px; color: #94a3b8; margin-left: 4px; }

  .topic-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e3a8a;
    margin: 24px 0 12px;
    padding-left: 12px;
    border-left: 4px solid #3b82f6;
  }

  /* ===== 语法板块 ===== */
  /* 兜底：所有语法表格在小屏幕横向可滚动 */
  #section-grammar table { display: block; max-width: 100%; overflow-x: auto; }

  .grammar-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
  }
  .grammar-toc {
    background: white;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e6ecf2;
    height: fit-content;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  .grammar-toc h3 {
    font-size: 14px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding: 0 8px;
  }
  .toc-item {
    display: block;
    padding: 8px 12px;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
  }
  .toc-item:hover { background: #eff6ff; color: #2563eb; }
  .toc-item.active { background: #dbeafe; color: #1d4ed8; font-weight: 600; }

  .grammar-content {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e6ecf2;
    min-height: 400px;
  }
  .grammar-content h2 {
    color: #1e3a8a;
    font-size: 26px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #dbeafe;
  }
  .grammar-content h3 {
    color: #1e40af;
    font-size: 18px;
    margin: 24px 0 10px;
  }
  .grammar-content h4 {
    color: #2563eb;
    font-size: 16px;
    margin: 18px 0 8px;
  }
  .grammar-content p { margin: 10px 0; color: #334155; }
  .grammar-content ul, .grammar-content ol { margin: 10px 0 10px 24px; color: #334155; }
  .grammar-content li { margin: 4px 0; }
  .grammar-content code {
    background: #fef3c7;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, monospace;
    font-size: 0.9em;
    color: #92400e;
  }
  .grammar-article-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 18px;
    border-bottom: 2px solid #dbeafe;
  }
  .grammar-article-label {
    color: #1e3a8a;
    font-weight: 700;
    font-size: 16px;
  }
  .grammar-toggle-btn {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
  }
  .grammar-toggle-btn:hover { background: #dbeafe; }
  .grammar-article-body {
    overflow-wrap: anywhere;
    transition: opacity 0.18s ease, max-height 0.18s ease;
  }
  .grammar-article-body.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
  }
  .grammar-article-body pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 14px 16px;
    border-radius: 10px;
    overflow-x: auto;
    white-space: pre-wrap;
    line-height: 1.6;
    margin: 12px 0;
  }
  .grammar-article-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
  }
  .grammar-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    margin: 12px 0;
  }
  .grammar-table-scroll table { margin: 0; }
  .example-box {
    background: #f0f9ff;
    border-left: 4px solid #38bdf8;
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 4px;
    color: #0c4a6e;
  }
  .note-box {
    background: #fefce8;
    border-left: 4px solid #facc15;
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 4px;
    color: #713f12;
  }
  .grammar-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 14px;
  }
  .grammar-table th, .grammar-table td {
    border: 1px solid #e6ecf2;
    padding: 8px 12px;
    text-align: left;
  }
  .grammar-table th {
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 600;
  }
  .grammar-table tr:nth-child(even) td { background: #f8fafc; }

  .exercise-block {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    margin: 16px 0;
    border: 1px solid #e6ecf2;
  }
  .exercise-block h4 {
    color: #1e40af;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .exercise-list {
    list-style: none;
    padding: 0;
    counter-reset: q;
  }
  .exercise-list li {
    counter-increment: q;
    padding: 8px 0 8px 32px;
    position: relative;
    color: #334155;
    border-bottom: 1px dashed #e2e8f0;
  }
  .exercise-list li:last-child { border-bottom: none; }
  .exercise-list li::before {
    content: counter(q) ".";
    position: absolute;
    left: 0; top: 8px;
    color: #3b82f6;
    font-weight: 600;
    width: 26px;
  }
  .exercise-list .answer {
    color: #059669;
    font-weight: 600;
    background: #d1fae5;
    padding: 1px 6px;
    border-radius: 4px;
    margin: 0 2px;
    display: none;
  }
  .answer-toggle {
    background: #2563eb;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
  }
  .answer-toggle:hover { background: #1d4ed8; }
  .show-answers .answer { display: inline; }

  .fill { color: #3b82f6; font-weight: 600; }

  /* 不规则动词表 */
  .verbs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
  .verbs-table th { background: #2563eb; color: white; padding: 10px; }
  .verbs-table td { padding: 8px 10px; border-bottom: 1px solid #f0f4f8; }
  .verbs-table tr:hover td { background: #f0f9ff; }

  /* 不显示首页 / 词汇 / 语法 默认隐藏 */
  #section-home.active { display: block; }

  @media (max-width: 768px) {
    .navbar { padding: 12px 14px; flex-direction: column; gap: 10px; align-items: stretch; }
    .logo { width: 100%; justify-content: space-between; flex-wrap: wrap; }
    .nav-rank { font-size: 12px; padding: 3px 8px; }
    .level-selector { margin-left: auto; max-width: 100%; }
    .level-btn { max-width: 100%; padding: 6px 10px; font-size: 13px; }
    .level-dropdown {
      left: auto;
      right: 0;
      min-width: 0;
      width: min(320px, calc(100vw - 28px));
      max-height: min(70vh, 420px);
      overflow-y: auto;
    }
    .nav-links {
      width: 100%;
      overflow-x: auto;
      gap: 6px;
      padding-bottom: 2px;
      -webkit-overflow-scrolling: touch;
    }
    .desktop-nav-only { display: none !important; }
    .mobile-nav-only { display: inline-flex; }
    .nav-link { flex: 0 0 auto; padding: 8px 12px; font-size: 14px; }
    main { padding: 24px 14px 72px; }
    .global-back-btn {
      left: 14px;
      top: 88px;
      width: auto;
      max-width: calc(100vw - 28px);
      min-height: 38px;
      padding: 8px 12px;
      border-radius: 14px;
      z-index: 120;
    }
    .global-back-icon {
      width: 20px;
      height: 20px;
      font-size: 14px;
    }
    .global-back-text { font-size: 13px; }
    .mobile-bottom-tabs { display: flex; }
    .card-grid,
    .reading-list,
    .dialogue-list,
    .writing-templates-list { grid-template-columns: minmax(0, 1fr); }
    .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .practice-card { padding: 20px 10px; }
    .feature-card,
    .reading-card,
    .dialogue-card,
    .writing-template-card { min-width: 0; }
    .grammar-layout { grid-template-columns: 1fr; }
    .grammar-toc { position: static; max-height: 200px; }
    .hero { padding: 32px 24px; }
    .hero h1 { font-size: 24px; }
    .grammar-content { padding: 20px; }
  }
  @media (max-width: 480px) {
    .logo { align-items: flex-start; }
    .level-selector { width: 100%; margin-left: 0; }
    .level-btn { width: 100%; justify-content: center; border-radius: 12px; }
    .level-dropdown { left: 0; right: auto; width: 100%; }
    .grammar-article-toolbar { align-items: flex-start; }
  }

  footer {
    text-align: center;
    padding: 32px 16px;
    color: #94a3b8;
    font-size: 13px;
    border-top: 1px solid #e6ecf2;
    margin-top: 48px;
  }

  /* ===== 课程系统 ===== */
  .curriculum-overview {
    background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 8px;
  }
  .co-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }
  .co-header h3 { color: #1e3a8a; margin-bottom: 4px; }
  .co-header p { color: #475569; font-size: 14px; }
  .co-percent { font-size: 36px; font-weight: 700; color: #2563eb; }
  .co-bar {
    height: 10px; background: rgba(255,255,255,0.7);
    border-radius: 5px; overflow: hidden;
  }
  .co-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 5px; transition: width 0.5s;
  }
  .learning-path-wrap { margin-bottom: 18px; }
  .learning-path-title { font-size: 14px; font-weight: 700; color: #334155; margin-bottom: 12px; }
  .learning-path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .learning-path-card {
    background: #fff; border: 1.5px solid #e2e8f0; border-radius: 16px;
    padding: 14px 12px; cursor: pointer; transition: all 0.15s;
    position: relative;
  }
  .learning-path-card:hover { border-color: #93c5fd; box-shadow: 0 4px 12px rgba(37,99,235,0.08); }
  .learning-path-card.active { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
  .learning-path-card.done { border-color: #d1fae5; background: #f0fdf4; }
  .learning-path-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
  .learning-path-chapter { font-size: 12px; font-weight: 700; color: #2563eb; }
  .learning-path-card.done .learning-path-chapter { color: #059669; }
  .learning-path-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #eff6ff; color: #2563eb; font-weight: 600; }
  .learning-path-badge.done { background: #d1fae5; color: #059669; }
  .learning-path-badge.locked { background: #f1f5f9; color: #94a3b8; }
  .learning-path-name { font-size: 12px; color: #64748b; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .learning-path-bar { height: 5px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
  .learning-path-bar-fill { height: 100%; background: linear-gradient(90deg, #2563eb, #7c3aed); border-radius: 3px; transition: width 0.4s; }
  .learning-path-card.done .learning-path-bar-fill { background: linear-gradient(90deg, #10b981, #059669); }
  .learning-path-count { font-size: 11px; color: #94a3b8; margin-top: 4px; }
  @media (max-width: 600px) { .learning-path-grid { grid-template-columns: repeat(2, 1fr); } }
  .curriculum-current {
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 16px;
    padding: 24px;
  }
  .cc-header { margin-bottom: 16px; }
  .cc-badge {
    background: #2563eb; color: white;
    padding: 4px 12px; border-radius: 12px;
    font-size: 13px; font-weight: 600;
  }
  .cc-header h3 { color: #1e3a8a; margin: 8px 0 4px; font-size: 20px; }
  .cc-header p { color: #64748b; font-size: 14px; }
  .cc-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
  }
  .cc-step {
    background: #f8fafc; border: 1px solid #e6ecf2;
    border-radius: 10px; padding: 12px;
    text-align: center; cursor: pointer; transition: all 0.15s;
  }
  .cc-step:hover { border-color: #93c5fd; background: #eff6ff; }
  .cc-step.done { background: #f0fdf4; border-color: #86efac; cursor: default; }
  .cc-step-icon { font-size: 20px; margin-bottom: 4px; }
  .cc-step-label { font-size: 13px; color: #475569; }
  .curriculum-list {
    background: white; border-radius: 16px;
    border: 1px solid #e6ecf2; padding: 20px;
  }
  .cu-list-scroll {
    max-height: 300px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 6px;
  }
  .curriculum-unit-card {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 10px;
    border: 1px solid #e6ecf2; cursor: pointer; transition: all 0.15s;
  }
  .curriculum-unit-card:hover { border-color: #93c5fd; background: #f8fafc; }
  .curriculum-unit-card.current { border-color: #3b82f6; background: #eff6ff; }
  .curriculum-unit-card.done { border-color: #86efac; background: #f0fdf4; }
  .curriculum-unit-card.locked { opacity: 0.5; cursor: not-allowed; }
  .cu-num {
    width: 32px; height: 32px; border-radius: 50%;
    background: #e6ecf2; display: flex;
    align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px; color: #475569; flex-shrink: 0;
  }
  .curriculum-unit-card.current .cu-num { background: #2563eb; color: white; }
  .curriculum-unit-card.done .cu-num { background: #22c55e; color: white; }
  .cu-info { flex: 1; }
  .cu-title { font-size: 14px; font-weight: 500; color: #1e293b; }
  .cu-meta { font-size: 12px; color: #94a3b8; }
  .cu-steps { font-size: 12px; color: #2563eb; font-weight: 500; }
  .cu-lock { font-size: 16px; }
  @media (max-width: 768px) {
    .cc-steps { grid-template-columns: repeat(3, 1fr); }
  }

  /* ===== 智学板块 ===== */
  .smart-view {
    background: white;
    border-radius: 16px;
    border: 1px solid #e6ecf2;
    padding: 24px;
    margin-top: 16px;
    min-height: 500px;
  }
  .smart-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; flex-wrap: wrap; gap: 8px;
  }
  .back-btn {
    background: #f1f5f9; border: none;
    padding: 8px 16px; border-radius: 8px;
    cursor: pointer; color: #475569; font-size: 14px;
  }
  .back-btn:hover { background: #e2e8f0; }
  .card-progress { color: #64748b; font-size: 14px; font-weight: 500; }

  /* 闪卡 */
  .flashcard-wrap {
    display: flex; justify-content: center;
    perspective: 1200px; padding: 20px 0;
  }
  .flashcard {
    width: 100%; max-width: 440px; height: 420px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s;
    cursor: pointer;
  }
  .flashcard.flipped { transform: rotateY(180deg); }
  .card-face {
    position: absolute; width: 100%; height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px; padding: 28px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  }
  .card-front {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
  }
  .card-back {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #7c2d12;
    transform: rotateY(180deg);
    justify-content: flex-start;
    padding-top: 24px;
  }
  .word-big { font-size: 42px; font-weight: 700; margin-bottom: 8px; text-align: center; }
  .ipa { font-size: 20px; opacity: 0.9; margin-bottom: 24px; }
  .speak-btn {
    background: rgba(255,255,255,0.25); color: white;
    border: 2px solid white;
    padding: 10px 22px; border-radius: 24px;
    font-size: 15px; cursor: pointer;
    transition: all 0.2s;
  }
  .speak-btn:hover { background: white; color: #2563eb; }
  .hint {
    position: absolute; bottom: 18px;
    font-size: 12px; opacity: 0.7;
  }
  .pos-tag {
    background: #ea580c; color: white;
    padding: 4px 12px; border-radius: 12px;
    font-size: 13px; font-weight: 600;
    margin-bottom: 10px;
  }
  .meaning-big {
    font-size: 26px; font-weight: 700;
    text-align: center; margin-bottom: 14px;
  }
  .example-en {
    font-size: 14px; font-style: italic;
    text-align: center; color: #9a3412; margin-bottom: 4px;
  }
  .example-zh {
    font-size: 13px; color: #c2410c;
    text-align: center; margin-bottom: 12px;
  }
  .root-section {
    background: rgba(255,255,255,0.65);
    border-radius: 10px; padding: 12px;
    width: 100%; margin-top: auto;
  }
  .root-title { font-size: 13px; font-weight: 600; color: #9a3412; margin-bottom: 8px; }
  .root-parts {
    display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
    margin-bottom: 6px;
  }
  .root-chip {
    background: #f97316; color: white;
    padding: 3px 10px; border-radius: 8px;
    font-size: 13px; font-weight: 600;
    margin-right: 2px;
  }
  .root-chip-meaning { font-size: 11px; color: #7c2d12; margin-right: 8px; }
  .root-explain { font-size: 12px; color: #7c2d12; line-height: 1.5; }
  .card-nav { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
  .nav-btn {
    padding: 10px 22px; border-radius: 10px;
    border: 2px solid #e6ecf2; background: white;
    color: #475569; cursor: pointer;
    font-size: 15px; font-weight: 500; transition: all 0.15s;
  }
  .nav-btn:hover { border-color: #3b82f6; color: #2563eb; }
  .nav-btn.primary { background: #2563eb; color: white; border-color: #2563eb; }
  .nav-btn.primary:hover { background: #1d4ed8; }

  /* 词根星空图 */
  .root-select {
    padding: 8px 14px; border: 2px solid #e6ecf2;
    border-radius: 10px; font-size: 14px;
    background: white; cursor: pointer;
  }
  .constellation-stage {
    position: relative; height: 460px;
    background: radial-gradient(ellipse at center, #1e1b4b 0%, #0f0a2e 100%);
    border-radius: 16px; overflow: hidden;
  }
  .star {
    position: absolute; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; text-align: center;
    cursor: pointer; transition: transform 0.2s;
    z-index: 2;
  }
  .star.center {
    width: 130px; height: 130px;
    background: radial-gradient(circle, #fbbf24, #f59e0b);
    color: #422006; font-weight: 700;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.6);
  }
  .star.center .label { font-size: 19px; }
  .star.center .sub { font-size: 11px; opacity: 0.85; padding: 0 8px; }
  .star.leaf {
    width: 90px; height: 90px;
    background: radial-gradient(circle, #93c5fd, #3b82f6);
    color: white; font-weight: 600;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
  }
  .star.leaf .label { font-size: 13px; }
  .star.leaf .sub { font-size: 10px; opacity: 0.85; padding: 0 4px; }
  .star:hover { transform: scale(1.1); }
  .twinkle {
    position: absolute; width: 2px; height: 2px;
    background: white; border-radius: 50%;
    opacity: 0.7; animation: twinkle 3s infinite;
  }
  @keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
  }
  .constellation-info {
    margin-top: 20px; padding: 18px;
    background: #f8fafc; border-radius: 12px;
    border-left: 4px solid #f59e0b;
  }
  .constellation-info h4 { color: #1e3a8a; margin-bottom: 8px; }
  .constellation-info p { color: #475569; font-size: 14px; }

  /* 闯关学习 */
  .quest-stage {
    display: flex; flex-direction: column; align-items: center;
    gap: 24px; padding: 20px 10px;
  }
  .quest-step-indicator { display: flex; gap: 12px; }
  .step-dot {
    width: 36px; height: 36px; border-radius: 50%;
    background: #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; color: #94a3b8;
    transition: all 0.2s;
  }
  .step-dot.active { background: #3b82f6; color: white; transform: scale(1.1); box-shadow: 0 4px 12px rgba(59,130,246,0.4); }
  .step-dot.done { background: #10b981; color: white; }
  .quest-card {
    background: white;
    border: 2px solid #e6ecf2;
    border-radius: 16px;
    padding: 32px 24px;
    width: 100%; max-width: 520px;
    text-align: center;
  }
  .quest-card h3 { color: #1e3a8a; margin-bottom: 16px; }
  .dictation-input {
    width: 100%; max-width: 320px;
    padding: 14px 16px; font-size: 18px;
    border: 2px solid #e6ecf2; border-radius: 10px;
    text-align: center; outline: none;
    margin: 16px 0; letter-spacing: 1px;
  }
  .dictation-input:focus { border-color: #3b82f6; }
  .dictation-input.correct { border-color: #10b981; background: #d1fae5; color: #065f46; }
  .dictation-input.wrong { border-color: #ef4444; background: #fee2e2; color: #991b1b; }
  .choices {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-top: 20px;
  }
  .choice-btn {
    padding: 14px; background: white;
    border: 2px solid #e6ecf2; border-radius: 10px;
    font-size: 15px; cursor: pointer;
    transition: all 0.15s; color: #1e293b;
    text-align: center;
  }
  .choice-btn:hover:not(:disabled) { border-color: #93c5fd; background: #eff6ff; }
  .choice-btn.correct { background: #d1fae5; border-color: #10b981; color: #065f46; }
  .choice-btn.wrong { background: #fee2e2; border-color: #ef4444; color: #991b1b; }
  .choice-btn:disabled { cursor: default; }
  .feedback {
    margin-top: 14px; padding: 10px;
    border-radius: 8px; font-weight: 500;
    display: none;
  }
  .feedback.show { display: block; }
  .feedback.success { background: #d1fae5; color: #065f46; }
  .feedback.error { background: #fee2e2; color: #991b1b; }
  .quest-action {
    margin-top: 16px; padding: 11px 28px;
    background: #2563eb; color: white;
    border: none; border-radius: 10px;
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: background 0.15s;
  }
  .quest-action:hover { background: #1d4ed8; }
  .quest-action:disabled { background: #cbd5e1; cursor: not-allowed; }
  .quest-finished { text-align: center; padding: 40px 20px; }
  .quest-finished .emoji { font-size: 64px; margin-bottom: 16px; }
  .quest-finished h2 { color: #1e3a8a; margin-bottom: 12px; }
  .quest-finished p { color: #64748b; margin-bottom: 16px; }

  /* 所有智学子视图 stage 居中 */
  #timeStage,
  #matchStage,
  #spellStage,
  #questStage,
  #grammarStage,
  #listeningStage {
    max-width: 680px;
    margin: 0 auto;
  }

  @media (min-width: 769px) {
    .quest-card { max-width: 640px; }
    .time-header { max-width: 640px; margin-left: auto; margin-right: auto; margin-bottom: 16px; }
    .choices { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 768px) {
    .flashcard { height: 460px; max-width: 100%; }
    .word-big { font-size: 32px; }
    .meaning-big { font-size: 22px; }
    .choices { grid-template-columns: 1fr; }
    .constellation-stage { height: 400px; }
    .star.center { width: 110px; height: 110px; }
    .star.leaf { width: 78px; height: 78px; }
    .star.leaf .label { font-size: 12px; }
  }

  /* ===== 个人中心 / 经验值 ===== */
  .profile-bar {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid #fde68a;
  }
  .profile-left { display: flex; align-items: center; gap: 16px; }
  .profile-avatar {
    font-size: 36px;
    width: 60px; height: 60px;
    background: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .profile-info { min-width: 200px; }
  .profile-level { font-size: 18px; font-weight: 700; color: #92400e; margin-bottom: 4px; }
  .xp-bar {
    width: 220px; height: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 5px; overflow: hidden;
  }
  .xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
    border-radius: 5px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .xp-text { font-size: 12px; color: #92400e; margin-top: 4px; }
  .profile-right { display: flex; gap: 12px; flex-wrap: wrap; }
  .profile-stat {
    text-align: center;
    background: white;
    padding: 10px 18px;
    border-radius: 12px;
    min-width: 80px;
  }
  .ps-num { font-size: 24px; font-weight: 700; color: #ea580c; line-height: 1.2; }
  .ps-label { font-size: 11px; color: #92400e; margin-top: 2px; }

  /* ===== 账号 / 云同步 ===== */
  .account-btn {
    border: none;
    background: #7c3aed;
    color: white;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(124,58,237,0.18);
  }
  .account-btn:hover { background: #6d28d9; }
  .auth-modal-bg,
  .profile-modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.56);
    z-index: 2200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .auth-modal-bg.open,
  .profile-modal-bg.open { display: flex; }
  .auth-modal,
  .profile-modal {
    background: white;
    width: min(440px, 100%);
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(15,23,42,0.28);
    padding: 28px;
    position: relative;
  }
  .profile-modal { width: min(520px, 100%); max-height: 88vh; overflow-y: auto; }
  .auth-close,
  .profile-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 22px;
    cursor: pointer;
  }
  .auth-close:hover,
  .profile-close:hover { background: #ede9fe; color: #7c3aed; }
  .danger-btn { background:none; border:1px solid #fca5a5; color:#b91c1c; border-radius:10px; padding:8px 16px; font-size:13px; cursor:pointer; }
  .danger-btn:hover { background:#fee2e2; }
  .auth-modal h2,
  .profile-modal h2 {
    color: #312e81;
    font-size: 24px;
    margin: 0 0 8px;
  }
  .auth-sub,
  .profile-sub { color: #64748b; font-size: 14px; margin-bottom: 22px; }
  .auth-field { margin-bottom: 12px; }
  .auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
  }
  .auth-field input {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
    color: #1e293b;
    background: #fff;
    -webkit-text-fill-color: #1e293b;
  }
  .auth-field input::placeholder { color: #94a3b8; -webkit-text-fill-color: #94a3b8; }
  .auth-field input:focus { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.12); }
  /* 覆盖 Chrome 自动填充的浅蓝底/浅色字，保证看得清 */
  .auth-field input:-webkit-autofill,
  .auth-field input:-webkit-autofill:hover,
  .auth-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: #1e293b;
    caret-color: #1e293b;
    box-shadow: 0 0 0 1000px #fff inset;
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
  }
  .auth-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 4px;
    border-radius: 14px;
    background: #f1f5f9;
    margin-bottom: 16px;
  }
  .auth-mode-tab {
    border: none;
    border-radius: 10px;
    padding: 10px 8px;
    background: transparent;
    color: #475569;
    font-weight: 800;
    cursor: pointer;
  }
  .auth-mode-tab.active {
    background: white;
    color: #5b21b6;
    box-shadow: 0 6px 16px rgba(15,23,42,0.08);
  }
  .auth-panel { display: none; }
  .auth-panel.active { display: block; }
  .phone-otp-row {
    display: grid;
    grid-template-columns: 1fr 118px;
    gap: 8px;
    align-items: end;
  }
  .auth-hint {
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
    margin: -2px 0 12px;
  }
  .privacy-modal-bg { position:fixed; inset:0; background:rgba(15,23,42,0.56); z-index:3000; display:none; align-items:center; justify-content:center; padding:20px; }
  .privacy-modal-bg.open { display:flex; }
  .privacy-modal { background:#fff; width:min(540px,100%); border-radius:22px; padding:28px; position:relative; max-height:85vh; overflow-y:auto; }
  .privacy-modal h2 { color:#1e3a8a; font-size:20px; margin:0 0 16px; }
  .privacy-modal h4 { color:#1e3a8a; font-size:14px; margin:14px 0 4px; }
  .privacy-body p { font-size:13px; color:#475569; line-height:1.7; margin:4px 0; }
  .privacy-consent { display:flex; align-items:flex-start; gap:8px; margin:14px 0 4px; font-size:13px; color:#475569; }
  .privacy-consent input[type=checkbox] { margin-top:2px; flex-shrink:0; }
  .privacy-consent a, .privacy-consent button {
    color:#2563eb; cursor:pointer; text-decoration:underline;
    border:0; background:transparent; padding:0; font:inherit;
  }
  .auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
  .auth-panel[data-auth-panel=phone] .auth-actions { grid-template-columns: 1fr; }
  .auth-btn {
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 800;
    cursor: pointer;
  }
  .auth-btn.primary { background: #7c3aed; color: white; }
  .auth-btn.secondary { background: #ede9fe; color: #5b21b6; }
  .auth-btn.ghost { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }
  .auth-btn:disabled { opacity: 0.62; cursor: not-allowed; }
  .auth-error {
    min-height: 22px;
    color: #b91c1c;
    font-size: 13px;
    margin-top: 12px;
    line-height: 1.5;
  }
  .auth-error.ok { color: #15803d; }
  .profile-account {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1.5px solid #e9d5ff;
    border-radius: 16px;
    background: #faf5ff;
    margin-bottom: 16px;
  }
  .cloud-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: white;
    background: #cbd5e1;
    flex-shrink: 0;
  }
  .profile-email { font-weight: 800; color: #1e293b; word-break: break-all; }
  .cloud-status { font-size: 13px; color: #64748b; margin-top: 2px; }
  .profile-cloud-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 4px; }
  .profile-cloud-actions button {
    border: none;
    border-radius: 10px;
    padding: 9px 14px;
    font-weight: 700;
    cursor: pointer;
  }
  .profile-cloud-actions .primary { background: #7c3aed; color: white; }
  .profile-cloud-actions .secondary { background: #f1f5f9; color: #475569; }
  .profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .profile-stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 12px;
    text-align: center;
  }
  .profile-stat-card b { display: block; font-size: 24px; color: #7c3aed; line-height: 1.2; }
  .profile-stat-card span { font-size: 12px; color: #64748b; }
  .growth-section { margin-top: 18px; }
  .growth-title { font-size: 1rem; font-weight: 700; color: #1e3a5f; margin-bottom: 12px; }
  .growth-group-label { font-size: 0.78rem; color: #64748b; font-weight: 600; margin: 12px 0 6px; text-transform: uppercase; letter-spacing: 0.05em; }
  .growth-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .growth-card { background: #f0f6ff; border-radius: 12px; padding: 10px 6px; text-align: center; }
  .growth-card b { display: block; font-size: 1.3rem; font-weight: 800; color: #1e40af; line-height: 1.2; }
  .growth-card b small { font-size: 0.75rem; font-weight: 600; }
  .growth-card span { font-size: 0.7rem; color: #64748b; margin-top: 2px; display: block; }
  .growth-heatmap { display: flex; gap: 6px; margin-top: 6px; }
  .growth-heat-cell { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .growth-heat-day { font-size: 0.65rem; color: #94a3b8; }
  .growth-heat-bar { width: 100%; border-radius: 6px; height: 36px; background: #e2e8f0; transition: background 0.2s; }
  .growth-heat-cell.intensity-1 .growth-heat-bar { background: #bfdbfe; }
  .growth-heat-cell.intensity-2 .growth-heat-bar { background: #60a5fa; }
  .growth-heat-cell.intensity-3 .growth-heat-bar { background: #2563eb; }
  .growth-heat-cell.intensity-4 .growth-heat-bar { background: #1e40af; }
  .growth-heat-cell.is-today .growth-heat-bar { outline: 2px solid #f59e0b; }
  .growth-heat-legend { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 10px; color: #64748b; flex-wrap: wrap; }
  .growth-heat-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; background: #e2e8f0; }
  .growth-heat-legend i.intensity-1 { background: #bfdbfe; }
  .growth-heat-legend i.intensity-2 { background: #60a5fa; }
  .growth-heat-legend i.intensity-3 { background: #2563eb; }
  .growth-heat-legend i.intensity-4 { background: #1e40af; }
  @media (max-width: 520px) {
    .auth-modal, .profile-modal { padding: 24px 18px; border-radius: 18px; }
    .profile-stats-grid { grid-template-columns: 1fr; }
    .growth-cards { grid-template-columns: repeat(2, 1fr); }
    .auth-actions { grid-template-columns: 1fr; }
  }

  /* XP 浮动提示 */
  .xp-toast {
    position: fixed; top: 80px; right: 20px; z-index: 1000;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white; padding: 12px 22px;
    border-radius: 24px; font-weight: 700;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    transform: translateX(140%); opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s;
    pointer-events: none;
  }
  .xp-toast.show { transform: translateX(0); opacity: 1; }
  .xp-toast.levelup {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    font-size: 16px;
  }

  /* ===== 连连看 ===== */
  .match-container {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; max-width: 600px; margin: 0 auto;
  }
  .match-col { display: flex; flex-direction: column; gap: 10px; }
  .match-btn {
    padding: 14px 16px;
    background: white;
    border: 2px solid #e6ecf2;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    color: #1e293b;
  }
  .match-btn:hover:not(:disabled):not(.matched) { border-color: #3b82f6; background: #eff6ff; }
  .match-btn.selected {
    border-color: #3b82f6; background: #dbeafe; color: #1e40af;
    transform: scale(1.02);
  }
  .match-btn.matched {
    background: #d1fae5; border-color: #10b981; color: #065f46;
    opacity: 0.6;
  }
  .match-btn.wrong { background: #fee2e2; border-color: #ef4444; color: #991b1b; animation: shake 0.4s; }
  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
  }
  .match-info {
    text-align: center;
    margin: 16px auto;
    color: #64748b;
    padding: 10px;
  }

  /* ===== 拼词 ===== */
  .spell-progress {
    text-align: center; color: #64748b;
    font-size: 13px; margin-bottom: 8px;
  }
  .spell-info {
    background: #f0f9ff; padding: 18px;
    border-radius: 12px; text-align: center;
    margin-bottom: 16px;
  }
  .spell-answer {
    min-height: 60px;
    background: white;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    text-align: center;
    line-height: 60px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #1e3a8a;
    margin-bottom: 16px;
  }
  .spell-answer .hint {
    color: #64748b; font-size: 14px;
    font-weight: 400; letter-spacing: 0;
  }
  .spell-letters {
    display: flex; flex-wrap: wrap; gap: 8px;
    justify-content: center; margin-bottom: 16px;
  }
  .letter-tile {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #fcd34d;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #92400e;
    cursor: pointer;
    transition: all 0.15s;
    text-transform: lowercase;
  }
  .letter-tile:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.1); }
  .letter-tile:disabled { opacity: 0.25; cursor: not-allowed; }
  .spell-actions {
    display: flex; justify-content: center;
    gap: 12px; margin-bottom: 12px;
  }

  /* ===== 限时挑战 ===== */
  .time-header {
    display: flex; justify-content: space-between;
    background: white; padding: 14px 20px;
    border-radius: 12px; margin-bottom: 16px;
    border: 1px solid #e6ecf2;
  }
  .time-timer {
    font-size: 22px; font-weight: 700;
    color: #ea580c;
  }
  .time-timer.warn { color: #dc2626; animation: pulse 1s infinite; }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }
  .time-score { font-size: 20px; color: #1e3a8a; align-self: center; }
  .time-score b { color: #2563eb; }

  /* ===== 错词本 ===== */
  .mistake-list {
    display: flex; flex-direction: column; gap: 10px;
  }
  .mistake-item {
    display: flex; justify-content: space-between;
    align-items: center; gap: 12px;
    background: white; padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #e6ecf2;
    border-left: 4px solid #ef4444;
  }
  .mistake-info { flex: 1; }
  .mistake-word { font-size: 17px; font-weight: 700; color: #1e293b; }
  .mistake-ipa { color: #64748b; font-size: 13px; font-weight: 400; margin-left: 6px; }
  .mistake-meaning { color: #475569; font-size: 14px; margin-top: 2px; }
  .mistake-count {
    color: #dc2626; font-size: 12px; font-weight: 600;
    margin-top: 4px;
  }
  .mistake-actions { display: flex; gap: 6px; flex-shrink: 0; }
  .mistake-actions .nav-btn { padding: 8px 14px; font-size: 13px; }

  /* ===== 成就日历 ===== */
  .cal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px; margin-bottom: 24px;
  }
  .cal-stat-card {
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
  }
  .cal-stat-num {
    font-size: 30px; font-weight: 700;
    color: #1e3a8a; line-height: 1;
  }
  .cal-stat-label { color: #475569; font-size: 12px; margin-top: 6px; }
  .cal-grid {
    display: grid;
    grid-template-columns: repeat(30, 1fr);
    gap: 3px;
    background: #f8fafc; padding: 14px;
    border-radius: 12px;
    border: 1px solid #e6ecf2;
  }
  .cal-cell {
    aspect-ratio: 1; min-height: 14px;
    background: #e2e8f0;
    border-radius: 3px;
    transition: transform 0.15s;
    cursor: help;
  }
  .cal-cell:hover { transform: scale(1.5); z-index: 2; }
  .cal-level-0 { background: #e2e8f0; }
  .cal-level-1 { background: #bbf7d0; }
  .cal-level-2 { background: #4ade80; }
  .cal-level-3 { background: #16a34a; }
  .cal-level-4 { background: #14532d; }
  .cal-legend {
    display: flex; gap: 4px; align-items: center;
    margin-top: 12px; justify-content: center;
    color: #64748b; font-size: 12px;
  }
  .cal-legend .cal-cell { width: 14px; height: 14px; min-height: 14px; cursor: default; }

  @media (max-width: 768px) {
    .profile-bar { padding: 16px; }
    .xp-bar { width: 160px; }
    .profile-stat { padding: 8px 12px; min-width: 70px; }
    .ps-num { font-size: 20px; }
    .match-container { grid-template-columns: 1fr 1fr; gap: 8px; }
    .match-btn { padding: 12px; font-size: 14px; }
    .cal-grid { grid-template-columns: repeat(20, 1fr); }
    .letter-tile { width: 38px; height: 38px; font-size: 18px; }
    .spell-answer { font-size: 22px; line-height: 50px; min-height: 50px; }
    .mistake-item { flex-direction: column; align-items: stretch; }
  }

  /* ===== 学习流程 ===== */
  .flow-banner {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    color: white;
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.2s;
  }
  .flow-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.4);
  }
  .flow-banner-emoji { font-size: 44px; }
  .flow-banner-content { flex: 1; }
  .flow-banner h3 { font-size: 20px; margin-bottom: 6px; color: white; }
  .flow-banner-content p { color: rgba(255,255,255,0.95); font-size: 13px; margin-bottom: 8px; }
  .flow-banner-pills { display: flex; gap: 6px; flex-wrap: wrap; }
  .flow-banner-pill {
    background: rgba(255,255,255,0.22);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
  }
  .flow-banner-arrow { font-size: 32px; flex-shrink: 0; }

  .flow-bar {
    background: linear-gradient(135deg, #ede9fe, #dbeafe);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border: 1px solid #c7d2fe;
  }
  .flow-title {
    font-weight: 700; color: #4f46e5;
    font-size: 13px; white-space: nowrap;
  }
  .flow-steps { display: flex; gap: 6px; flex-wrap: wrap; }
  .flow-step {
    background: white; padding: 5px 10px;
    border-radius: 8px; font-size: 12px;
    color: #94a3b8; border: 2px solid #e2e8f0;
    white-space: nowrap;
  }
  .flow-step.active { background: #6366f1; color: white; border-color: #6366f1; }
  .flow-step.done { background: #10b981; color: white; border-color: #10b981; }
  .flow-progress-text {
    background: white; padding: 4px 10px;
    border-radius: 8px; font-size: 12px;
    color: #4f46e5; font-weight: 700;
    margin-left: auto;
  }
  .flow-next-btn {
    background: #6366f1; color: white;
    border: none; padding: 6px 14px;
    border-radius: 8px; font-size: 12px;
    font-weight: 600; cursor: pointer;
  }
  .flow-next-btn:hover { background: #4f46e5; }
  .flow-quit-btn {
    background: #f1f5f9; border: none;
    padding: 6px 12px; border-radius: 8px;
    font-size: 12px; cursor: pointer; color: #475569;
  }
  .flow-quit-btn:hover { background: #e2e8f0; }

  .flow-transition {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: ftFadeIn 0.3s;
  }
  @keyframes ftFadeIn { from { opacity: 0; } to { opacity: 1; } }
  .flow-trans-card {
    background: white; border-radius: 20px;
    padding: 36px 28px; max-width: 420px;
    text-align: center;
    animation: ftPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  @keyframes ftPopIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  .flow-trans-card h2 { color: #1e3a8a; margin: 12px 0; font-size: 24px; }
  .flow-trans-card p { color: #475569; margin-bottom: 16px; line-height: 1.6; }

  /* ===== 今日推荐卡片 ===== */
  .today-card {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    border: 1px solid #6ee7b7;
  }
  .today-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
  }
  .today-header h3 { color: #065f46; font-size: 18px; }
  .today-header p { color: #047857; font-size: 13px; margin-top: 2px; }
  .today-time {
    margin-left: auto;
    background: rgba(255,255,255,0.7);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: #065f46;
    font-weight: 700;
  }
  .today-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
  }
  .today-item {
    background: white;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 13px;
    color: #065f46;
  }
  .today-item b {
    color: #047857;
    font-size: 17px;
    margin: 0 3px;
    font-weight: 700;
  }
  .today-action {
    width: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
  }
  .today-action:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
  }

  /* ===== 挑战模式开关 ===== */
  .challenge-toggle {
    background: #ede9fe;
    color: #6d28d9;
    border: 1px solid #c4b5fd;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
  }
  .challenge-toggle:hover { background: #ddd6fe; }
  .challenge-toggle.active {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: white;
    border-color: #7c3aed;
    box-shadow: 0 2px 8px rgba(124,58,237,0.3);
  }

  /* ===== 队列模式徽章 ===== */
  .queue-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
  }
  .queue-badge.mode-mistakes { background: #fee2e2; color: #b91c1c; }
  .queue-badge.mode-today { background: #d1fae5; color: #047857; }
  .queue-badge.mode-due { background: #fef3c7; color: #92400e; }

  /* ===== SRS 评级按钮 ===== */
  .srs-rating-buttons {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    width: 100%;
  }
  .srs-btn {
    flex: 1;
    padding: 8px 4px;
    border: 2px solid;
    border-radius: 8px;
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
    background: white;
    transition: all 0.15s;
  }
  .srs-btn.srs-again { color: #b91c1c; border-color: #fca5a5; }
  .srs-btn.srs-again:hover { background: #fee2e2; transform: translateY(-1px); }
  .srs-btn.srs-good { color: #059669; border-color: #6ee7b7; }
  .srs-btn.srs-good:hover { background: #d1fae5; transform: translateY(-1px); }
  .srs-btn.srs-easy { color: #d97706; border-color: #fbbf24; }
  .srs-btn.srs-easy:hover { background: #fef3c7; transform: translateY(-1px); }

  /* 挑战模式下闪卡正面样式调整 */
  .flashcard.challenge .card-front .word-big {
    font-size: 28px;
  }
  .flashcard.challenge .card-front .ipa {
    font-size: 14px;
    opacity: 0.85;
  }

  /* 闪卡高度稍微增加,适应 SRS 按钮 */
  .flashcard { height: 460px; }
  @media (max-width: 768px) {
    .flashcard { height: 510px; }
    .srs-btn { font-size: 10px; padding: 6px 2px; }
  }

  /* ===== 设置面板 / 数据管理 ===== */
  .profile-gear {
    background: rgba(255,255,255,0.6);
    border: 1.5px solid rgba(255,255,255,0.8);
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s, background 0.15s;
    align-self: center;
  }
  .profile-gear:hover { background: white; transform: rotate(60deg); }
  .settings-section { margin: 18px 0; }
  .settings-h3 {
    color: #1e3a8a; font-size: 14px;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 10px; padding-bottom: 6px;
    border-bottom: 1px solid #e6ecf2;
  }
  .settings-row {
    display: flex; justify-content: space-between;
    align-items: center; padding: 10px 12px;
    margin-bottom: 6px;
    background: #f8fafc; border-radius: 8px;
  }
  .settings-row-stack {
    align-items: flex-start;
    gap: 12px;
  }
  .settings-title { font-weight: 600; color: #1e293b; font-size: 14px; }
  .settings-info { color: #64748b; font-size: 12px; margin-top: 2px; }
  .settings-btn {
    background: white;
    border: 2px solid #cbd5e1;
    color: #475569;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
  }
  .settings-btn:hover { border-color: #3b82f6; color: #2563eb; }
  .settings-btn.danger { border-color: #fca5a5; color: #b91c1c; }
  .settings-btn.danger:hover { background: #fee2e2; border-color: #ef4444; }
  .tts-accent-toggle {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
  }
  .tts-accent-btn {
    min-width: 88px;
    border: 2px solid #cbd5e1;
    background: #fff;
    color: #475569;
    border-radius: 12px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 6px;
    align-items: center;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s, background .18s, color .18s, box-shadow .18s;
  }
  .tts-accent-btn span {
    grid-row: 1 / 3;
    font-size: 18px;
  }
  .tts-accent-btn b {
    font-size: 13px;
    line-height: 1.1;
  }
  .tts-accent-btn small {
    font-size: 10px;
    color: #94a3b8;
    line-height: 1.1;
  }
  .tts-accent-btn:hover {
    border-color: #60a5fa;
    color: #2563eb;
  }
  .tts-accent-btn.active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  }
  .tts-accent-btn.active small { color: #3b82f6; }
  @media (max-width: 520px) {
    .settings-row-stack { flex-direction: column; }
    .tts-accent-toggle { width: 100%; }
    .tts-accent-btn { flex: 1; }
  }
  .diff-selector {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    margin: 12px 0;
  }
  .diff-label {
    font-size: 13px;
    color: #64748b;
    margin-right: 4px;
  }
  .diff-btn {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 16px;
    border: 1.5px solid #e2e8f0;
    background: white;
    cursor: pointer;
    transition: all .2s;
  }
  .diff-btn.diff-active {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
  }
  .diff-auto { border-color: #a5b4fc; }
  .diff-basic { border-color: #86efac; }
  .diff-challenge { border-color: #fde68a; }
  .diff-elite { border-color: #fca5a5; }
  .diff-info {
    color: #64748b;
    font-size: 12px;
    margin-left: 2px;
  }
  .diff-rec {
    color: #2563eb;
    font-size: 10px;
    margin-left: 4px;
  }
  .diff-compact {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 10px;
  }
  .curr-time-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin: 8px 0 12px;
  }
  .curr-time-fill {
    height: 100%;
    background: #22c55e;
    border-radius: inherit;
    transition: width .1s linear, background .2s ease;
  }
  .time-timer.warn { color: #f59e0b; }
  .time-timer.danger { color: #dc2626; }
  .curr-time-fill.warn { background: #f59e0b; }
.curr-time-fill.danger { background: #ef4444; }

.curr-exam-card {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #c7d2fe;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
}
.curr-exam-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #3730a3;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}
.curr-exam-note {
  margin: 0 0 12px;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}
.curr-exam-tfng-item {
  margin: 12px 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
}
.curr-exam-choices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}
.curr-time-typing-note {
  margin: 6px 0 12px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

  /* ===== 每日金句 ===== */
  .daily-phrase {
    background: linear-gradient(135deg, #fef9c3, #fde68a);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #fcd34d;
  }
  .dp-icon { font-size: 28px; flex-shrink: 0; }
  .dp-content { flex: 1; min-width: 0; }
  .dp-label { color: #92400e; font-size: 11px; font-weight: 600; }
  .dp-text { margin-top: 2px; }
  .dp-text b { font-size: 17px; color: #78350f; margin-right: 6px; }
  .dp-text span { color: #92400e; font-size: 13px; }
  .dp-example { color: #b45309; font-size: 12px; font-style: italic; margin-top: 4px; }
  .dp-speak {
    background: #f59e0b;
    color: white; border: none;
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer; font-size: 16px;
    flex-shrink: 0;
  }
  .dp-speak:hover { background: #d97706; }

  /* ===== 阅读理解 ===== */
  .reading-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
  .reading-card {
    background: white; border: 1px solid #e6ecf2;
    border-radius: 12px; padding: 16px;
    cursor: pointer; transition: all 0.2s;
  }
  .reading-card:hover { border-color: #3b82f6; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.05); }
  .reading-card.done { background: #f0fdf4; border-color: #86efac; }
  .reading-card-title { font-weight: 700; color: #1e3a8a; margin-bottom: 6px; }
  .reading-card-info { font-size: 12px; color: #64748b; }
  .reading-card-done-badge { background: #10b981; color: white; padding: 2px 8px; border-radius: 8px; font-size: 11px; margin-left: 4px; }
  .reading-passage {
    background: linear-gradient(135deg, #fef3c7, #fffbeb);
    border-left: 5px solid #f59e0b;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #422006;
  }
  .reading-passage h3 { color: #92400e; margin-bottom: 10px; }
  .reading-question {
    background: white; border: 1px solid #e6ecf2;
    border-radius: 10px; padding: 16px;
    margin-bottom: 12px;
  }
  .reading-question .q-text { font-weight: 600; color: #1e293b; margin-bottom: 10px; }

  /* ===== 听力训练 ===== */
  .listening-stage { display: flex; flex-direction: column; align-items: center; padding: 16px; }
  .listening-card { background: white; border: 1px solid #e6ecf2; border-radius: 16px; padding: 24px; max-width: 640px; width: 100%; text-align: center; margin: 0 auto; }
  .listening-mode-badge {
    background: #ddd6fe; color: #5b21b6;
    padding: 4px 14px; border-radius: 12px;
    font-size: 13px; font-weight: 600;
    display: inline-block; margin-bottom: 14px;
  }
  .listening-play-btn {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white; border: none;
    width: 90px; height: 90px;
    border-radius: 50%; cursor: pointer;
    font-size: 36px;
    box-shadow: 0 8px 24px rgba(139,92,246,0.4);
    margin: 14px 0;
    transition: transform 0.15s;
  }
  .listening-play-btn:hover { transform: scale(1.1); }
  .listening-hint { color: #64748b; font-size: 13px; margin-bottom: 10px; }
  .listening-score { color: #2563eb; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
  .curr-listen-phase-panel { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px; margin: 10px 0 14px; text-align: left; }
  .curr-listen-phase-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .curr-listen-phase {
    border: 1px solid #dbe4ee; background: #fff; color: #64748b;
    border-radius: 12px; padding: 9px 8px; cursor: pointer;
    display: flex; flex-direction: column; gap: 2px; align-items: center;
  }
  .curr-listen-phase.active { border-color: #2563eb; color: #1d4ed8; background: #eff6ff; box-shadow: 0 0 0 2px rgba(37,99,235,0.1); }
  .curr-listen-phase.done { border-color: #86efac; color: #15803d; background: #f0fdf4; }
  .curr-listen-phase b { font-size: 13px; }
  .curr-listen-phase small { font-size: 11px; color: inherit; opacity: 0.75; }
  .curr-listen-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
  .curr-listen-controls .listening-play-btn {
    width: auto; height: auto; border-radius: 999px; font-size: 15px;
    padding: 10px 18px; margin: 0; box-shadow: 0 6px 16px rgba(139,92,246,0.24);
  }
  .curr-listen-controls .ghost-btn {
    border: 1px solid #e2e8f0; background: #fff; color: #475569;
    border-radius: 999px; padding: 9px 12px; cursor: pointer;
  }
  .curr-listen-caption { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #ecfdf5; color: #065f46; line-height: 1.5; text-align: center; }
  .curr-listen-caption b { display: block; font-size: 18px; }
  .curr-listen-caption span { display: block; color: #047857; font-size: 13px; margin-top: 2px; }
  .curr-listen-no-caption { margin-top: 10px; color: #64748b; font-size: 12px; text-align: center; }

  /* ===== 对话场景 ===== */
  .dialogue-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
  .dialogue-card {
    background: linear-gradient(135deg, #dbeafe, #c7d2fe);
    border-radius: 12px; padding: 16px; cursor: pointer;
    transition: all 0.2s; border: 1px solid #93c5fd;
  }
  .dialogue-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(59,130,246,0.15); }
  .dialogue-card-emoji { font-size: 32px; margin-bottom: 8px; }
  .dialogue-card-title { font-weight: 700; color: #1e3a8a; margin-bottom: 4px; }
  .dialogue-card-desc { font-size: 12px; color: #475569; }

  .dialogue-chat {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    max-height: 380px;
    overflow-y: auto;
  }
  .dialogue-intro {
    background: #fef3c7;
    padding: 10px 14px;
    border-radius: 10px;
    color: #78350f;
    font-style: italic;
    font-size: 13px;
    margin-bottom: 14px;
  }
  .dialogue-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 14px;
    margin-bottom: 10px;
    line-height: 1.5;
  }
  .dialogue-bubble.other {
    background: white;
    border: 1px solid #e2e8f0;
    margin-right: auto;
    color: #1e293b;
  }
  .dialogue-bubble.you {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    margin-left: auto;
  }
  .dialogue-bubble .who { font-size: 11px; opacity: 0.7; margin-bottom: 2px; }
  .dialogue-bubble .zh { font-size: 12px; opacity: 0.75; margin-top: 4px; }
  .dialogue-bubble.other .speak-line {
    background: none; border: none; color: #3b82f6;
    font-size: 14px; cursor: pointer; padding: 2px 4px;
  }
  .dialogue-options {
    display: flex; flex-direction: column; gap: 8px;
    margin-top: 10px;
  }
  .dialogue-option {
    text-align: left; padding: 10px 14px;
    background: white; border: 2px solid #e6ecf2;
    border-radius: 10px; cursor: pointer;
    font-size: 14px; color: #1e293b;
    transition: all 0.15s;
  }
  .dialogue-option:hover:not(:disabled) { border-color: #3b82f6; background: #eff6ff; }
  .dialogue-option.correct { border-color: #10b981; background: #d1fae5; color: #065f46; }
  .dialogue-option.wrong { border-color: #ef4444; background: #fee2e2; color: #991b1b; }

  /* ===== 写作翻译 ===== */
  .writing-tabs {
    display: flex; gap: 8px; margin-bottom: 18px;
    border-bottom: 2px solid #e6ecf2;
  }
  .writing-tab {
    padding: 10px 18px; background: none; border: none;
    cursor: pointer; font-size: 14px; color: #64748b;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
  }
  .writing-tab.active { color: #2563eb; border-bottom-color: #2563eb; font-weight: 700; }
  .writing-card {
    background: white; border: 1px solid #e6ecf2;
    border-radius: 12px; padding: 22px;
    max-width: 600px; margin: 0 auto;
  }
  .writing-zh {
    font-size: 22px; color: #1e3a8a; font-weight: 700;
    text-align: center; padding: 16px;
    background: #f0f9ff; border-radius: 10px;
    margin-bottom: 14px;
  }
  .writing-input {
    width: 100%; padding: 12px 14px;
    border: 2px solid #e6ecf2; border-radius: 10px;
    font-size: 15px; outline: none;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
  }
  .writing-input:focus { border-color: #3b82f6; }
  .writing-sentence {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 4px 6px; font-size: 18px; color: #1e293b;
    background: #f8fafc; border-radius: 10px;
    padding: 14px 16px; margin-bottom: 12px; line-height: 2.4;
  }
  .writing-sentence-word { display: inline; }
  .writing-blank {
    display: inline-block; min-width: 80px; width: 80px;
    padding: 4px 10px; border: 2px solid #93c5fd;
    border-radius: 8px; font-size: 16px; font-family: inherit;
    color: #1e293b; background: #fff; outline: none;
    text-align: center; transition: border-color 0.2s, background 0.2s;
  }
  .writing-blank:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px #dbeafe; }
  .writing-hint-row {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 8px; margin-bottom: 12px;
  }
  .writing-hint-chip {
    background: #eff6ff; border: 1px solid #bfdbfe;
    color: #1d4ed8; border-radius: 20px; padding: 4px 14px;
    font-size: 14px; cursor: pointer; transition: background 0.15s;
  }
  .writing-hint-chip:hover { background: #dbeafe; }
  .writing-model {
    background: #d1fae5; border-left: 4px solid #10b981;
    padding: 12px 14px; border-radius: 8px;
    margin-top: 12px;
    color: #065f46;
  }
  .writing-model b { color: #047857; }
  .writing-template {
    background: #fef3c7; padding: 16px; border-radius: 10px;
    line-height: 2.2; font-size: 16px; color: #78350f;
    margin-bottom: 14px;
  }
  .writing-template .blank-input {
    display: inline-block;
    border: none; border-bottom: 2px solid #f59e0b;
    background: transparent;
    width: 120px; padding: 2px 6px;
    font-size: 15px; color: #78350f;
    outline: none;
  }
  .writing-template .blank-input:focus { border-bottom-color: #ea580c; }
  .writing-templates-list {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
  }
  .writing-template-card {
    background: white; border: 1px solid #e6ecf2;
    border-radius: 10px; padding: 14px;
    cursor: pointer; transition: all 0.15s;
  }
  .writing-template-card:hover { border-color: #f59e0b; transform: translateY(-1px); }

  /* ===== 军衔表 ===== */
  .rank-ladder {
    margin: 16px 0;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 4px;
  }
  .rank-row {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 6px;
    border-radius: 10px;
    border-left: 5px solid #cbd5e1;
    background: #f8fafc;
    font-size: 14px;
    transition: all 0.15s;
  }
  .rank-row.current {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(245,158,11,0.25);
    transform: scale(1.02);
  }
  .rank-row.done {
    opacity: 0.55;
    background: #f1f5f9;
  }
  .rank-emoji { font-size: 24px; margin-right: 12px; flex-shrink: 0; }
  .rank-name { flex: 1; font-weight: 700; font-size: 15px; }
  .rank-range { color: #64748b; font-size: 12px; margin-right: 8px; }
  .rank-tag {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
  }
  .rank-tag.done { background: linear-gradient(135deg, #10b981, #059669); }
  .rank-theme-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 14px;
  }
  .rank-theme-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #64748b;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
  }
  .rank-theme-btn:hover { border-color: #2563eb; color: #2563eb; }
  .rank-theme-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    font-weight: 800;
  }
  .profile-level:hover { opacity: 0.85; }

  /* ===== 商业首页 ===== */
  .lp-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
    border-radius: 24px;
    padding: 64px 48px 56px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
  }
  .lp-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
  }
  .lp-hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 16px; border-radius: 20px;
    font-size: 13px; color: #bfdbfe; font-weight: 500;
    margin-bottom: 24px;
  }
  .lp-hero h1 {
    font-size: 42px; font-weight: 800; color: white;
    line-height: 1.2; margin-bottom: 16px;
    letter-spacing: -0.5px;
  }
  .lp-hero h1 span { color: #fbbf24; }
  .lp-hero-sub {
    font-size: 18px; color: #bfdbfe; margin-bottom: 36px;
    line-height: 1.6; max-width: 560px; margin-left: auto; margin-right: auto;
  }
  .lp-hero-sub strong { color: #e0f2fe; }
  .lp-cta-row {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 40px;
  }
  .btn-primary {
    background: #fbbf24; color: #1e3a8a;
    padding: 14px 32px; border-radius: 50px;
    font-size: 17px; font-weight: 800; cursor: pointer;
    border: none; transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(251,191,36,0.4);
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(251,191,36,0.5); }
  .btn-secondary {
    background: rgba(255,255,255,0.12); color: white;
    padding: 14px 32px; border-radius: 50px;
    font-size: 17px; font-weight: 600; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.3); transition: all 0.2s;
  }
  .btn-secondary:hover { background: rgba(255,255,255,0.2); }
  .lp-trust-tags {
    display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  }
  .lp-trust-tag {
    color: #93c5fd; font-size: 14px; font-weight: 500;
    display: flex; align-items: center; gap: 5px;
  }

  /* 快速学习入口 */
  .quick-home-card {
    background: white;
    border: 1px solid #dbeafe;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: center;
    box-shadow: 0 18px 50px rgba(37,99,235,0.08);
  }
  .quick-home-kicker {
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
  }
  .quick-home-title {
    font-size: 30px;
    font-weight: 850;
    color: #0f172a;
    line-height: 1.18;
    margin-bottom: 8px;
  }
  .quick-home-sub {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 18px;
  }
  .quick-start-btn {
    border: none;
    border-radius: 16px;
    padding: 16px 28px;
    color: white;
    font-size: 18px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(37,99,235,0.24);
    transition: transform 0.18s, box-shadow 0.18s;
  }
  .quick-start-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(37,99,235,0.28); }
  .quick-home-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .quick-stat {
    border-radius: 16px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
  }
  .quick-stat-value {
    font-size: 28px;
    font-weight: 850;
    color: #1e3a8a;
    line-height: 1;
  }
  .quick-stat-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
    font-weight: 650;
  }
  .home-command {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 60%, #0ea5e9 100%);
    border-radius: 0 0 28px 28px;
    padding: 20px 20px 24px;
    color: #fff;
    margin-bottom: 20px;
  }
  .home-command-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
  }
  .home-greeting { font-size: 18px; font-weight: 700; }
  .home-streak-badge {
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }
  .home-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
  }
  .home-progress-bar-wrap {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.25);
    border-radius: 4px;
    overflow: hidden;
  }
  .home-progress-bar-fill {
    height: 100%;
    background: #fbbf24;
    border-radius: 4px;
    transition: width 0.4s ease;
  }
  .home-progress-text { font-size: 12px; opacity: 0.85; white-space: nowrap; }
  .home-action-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 10px;
  }
  .home-action-btn {
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
  }
  .home-action-btn:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }
  .home-action-btn.primary {
    background: #fff;
    color: #1e40af;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  }
  .home-action-btn.primary:hover { background: #f0f9ff; }
  .home-action-icon { font-size: 22px; }
  .home-action-label { font-size: 14px; font-weight: 700; }
  .home-action-sub { font-size: 11px; opacity: 0.7; }
  .home-action-btn.primary .home-action-sub { opacity: 0.5; }
  .home-tasks-row { margin-top: 14px; }
  .home-task-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    font-size: 13px;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    cursor: pointer;
  }
  .home-task-item.done { opacity: 0.5; text-decoration: line-through; }
  .home-task-xp { font-weight: 700; color: #fbbf24; }
  .home-task-item.done .home-task-xp { color: rgba(255,255,255,0.5); }
  .home-ui01-blue {
    max-width: 1120px;
    margin: 0 auto;
  }
  .home-ui01-blue .home-command {
    position: relative;
    overflow: hidden;
    color: #172033;
    background:
      linear-gradient(135deg, rgba(37,99,235,0.12), transparent 38%),
      linear-gradient(220deg, rgba(14,165,233,0.12), transparent 34%),
      #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 28px;
    padding: 26px;
    margin-bottom: 22px;
    box-shadow: 0 24px 60px rgba(37,99,235,0.12);
  }
  .home-ui01-blue .home-command::before {
    content: "";
    position: absolute;
    inset: auto -80px -110px auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(37,99,235,0.10);
    pointer-events: none;
  }
  .home-command-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 24px;
    align-items: stretch;
  }
  .home-command-copy {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 8px;
  }
  .home-command-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .home-command-copy h1 {
    margin: 18px 0 12px;
    color: #102a5c;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: 0;
  }
  .home-command-copy p {
    max-width: 520px;
    margin: 0;
    color: #52637a;
    font-size: 16px;
    line-height: 1.75;
  }
  .home-command-panel {
    border: 1px solid #d8e6f7;
    border-radius: 22px;
    background: rgba(255,255,255,0.86);
    padding: 20px;
    box-shadow: 0 18px 42px rgba(37,99,235,0.10);
    backdrop-filter: blur(12px);
  }
  .home-ui01-blue .home-command-top {
    align-items: flex-start;
    margin-bottom: 18px;
  }
  .home-ui01-blue .home-greeting {
    color: #102a5c;
    font-size: 20px;
    font-weight: 900;
  }
  .home-ui01-blue .home-streak-badge {
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
  }
  .home-ui01-blue .home-progress-bar-wrap {
    height: 9px;
    background: #dbeafe;
  }
  .home-ui01-blue .home-progress-bar-fill {
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
  }
  .home-ui01-blue .home-progress-text {
    color: #64748b;
    opacity: 1;
    font-weight: 700;
  }
  .home-ui01-blue .home-action-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-ui01-blue .home-action-btn {
    color: #102a5c;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    box-shadow: none;
  }
  .home-ui01-blue .home-action-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
  }
  .home-ui01-blue .home-action-btn.primary {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 14px 28px rgba(37,99,235,0.24);
  }
  .home-ui01-blue .home-action-btn.primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #0284c7);
  }
  .home-ui01-blue .home-action-sub,
  .home-ui01-blue .home-action-btn.primary .home-action-sub {
    opacity: 0.72;
  }
  .home-ui01-blue .home-task-item {
    color: #334155;
    border-top: 1px solid #e2e8f0;
  }
  .home-ui01-blue .home-task-xp {
    color: #2563eb;
  }
  .home-ui01-blue .home-rec-section,
  .home-ui01-blue .home-level-strip,
  .home-ui01-blue .dash-card {
    border-color: #dbeafe;
    box-shadow: 0 16px 38px rgba(37,99,235,0.08);
  }
  .home-scroll-ui01 {
    display: grid;
    gap: 24px;
    margin-top: 4px;
  }
  .home-scroll-ui01 .lp-hero {
    text-align: left;
    color: #102a5c;
    background:
      linear-gradient(135deg, rgba(37,99,235,0.10), transparent 42%),
      linear-gradient(220deg, rgba(14,165,233,0.12), transparent 38%),
      #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 28px;
    box-shadow: 0 18px 44px rgba(37,99,235,0.08);
    margin-bottom: 0;
  }
  .home-scroll-ui01 .lp-hero::before {
    background: linear-gradient(135deg, rgba(219,234,254,0.42), transparent);
  }
  .home-scroll-ui01 .lp-hero-badge {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
    font-weight: 800;
  }
  .home-scroll-ui01 .lp-hero h1 {
    max-width: 720px;
    color: #102a5c;
    font-size: clamp(30px, 4.2vw, 48px);
    letter-spacing: 0;
  }
  .home-scroll-ui01 .lp-hero h1 span { color: #2563eb; }
  .home-scroll-ui01 .lp-hero-sub {
    max-width: 680px;
    margin-left: 0;
    margin-right: 0;
    color: #52637a;
  }
  .home-scroll-ui01 .lp-hero-sub strong { color: #1d4ed8; }
  .home-scroll-ui01 .lp-cta-row {
    justify-content: flex-start;
    margin-bottom: 26px;
  }
  .home-scroll-ui01 .btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 14px 28px rgba(37,99,235,0.22);
  }
  .home-scroll-ui01 .btn-secondary {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
  }
  .home-scroll-ui01 .lp-trust-tags {
    justify-content: flex-start;
    gap: 10px;
  }
  .home-scroll-ui01 .lp-trust-tag {
    color: #52637a;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 7px 11px;
  }
  .home-scroll-ui01 .lp-stats,
  .home-scroll-ui01 .lp-levels,
  .home-scroll-ui01 .lp-steps,
  .home-scroll-ui01 .lp-features {
    margin-bottom: 0;
  }
  .home-scroll-ui01 .lp-stat,
  .home-scroll-ui01 .lp-level-card,
  .home-scroll-ui01 .lp-step,
  .home-scroll-ui01 .lp-feature,
  .home-scroll-ui01 .home-spelling-feature,
  .home-scroll-ui01 .lp-bottom-cta {
    border-color: #dbeafe !important;
    box-shadow: 0 16px 38px rgba(37,99,235,0.08);
  }
  .home-scroll-ui01 .lp-stat {
    border-radius: 18px;
    text-align: left;
  }
  .home-scroll-ui01 .lp-stat-num {
    color: #2563eb;
    font-size: 36px;
  }
  .home-scroll-ui01 .lp-stat-label {
    color: #52637a;
    font-weight: 700;
  }
  .home-scroll-ui01 .lp-section-title {
    text-align: left;
    margin: 8px 0 16px;
    padding: 0 2px;
  }
  .home-scroll-ui01 .lp-section-title h2 {
    color: #102a5c;
    font-size: 26px;
  }
  .home-scroll-ui01 .lp-section-title p {
    color: #52637a;
  }
  .home-scroll-ui01 .lp-level-card {
    border-width: 1px;
    border-radius: 20px;
    background: #fff;
  }
  .home-scroll-ui01 .lp-level-card.lp-current {
    border-color: #93c5fd;
    box-shadow: inset 4px 0 0 #2563eb, 0 16px 38px rgba(37,99,235,0.08);
  }
  .home-scroll-ui01 .lp-level-progress-fill {
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
  }
  .home-scroll-ui01 .lp-step {
    border-radius: 18px;
    min-height: 132px;
    background: #fff;
  }
  .home-scroll-ui01 .lp-step-num {
    background: #eff6ff;
    color: #2563eb;
  }
  .home-scroll-ui01 .lp-step-name {
    color: #102a5c;
  }
  .home-scroll-ui01 .lp-step-desc {
    color: #64748b;
  }
  .home-scroll-ui01 .lp-feature {
    border-radius: 22px;
    min-height: 300px;
  }
  .home-scroll-ui01 .lp-feature-icon {
    background: #eff6ff !important;
    color: #2563eb;
  }
  .home-scroll-ui01 .lp-feature h3 {
    color: #102a5c;
  }
  .home-scroll-ui01 .lp-feature-tag {
    background: #eff6ff;
    color: #1d4ed8;
  }
  .home-scroll-ui01 .home-spelling-feature {
    background: linear-gradient(135deg, #eff6ff, #ffffff) !important;
    border-radius: 24px !important;
    margin-bottom: 0 !important;
  }
  .home-scroll-ui01 .home-spelling-feature h3 {
    color: #102a5c !important;
  }
  .home-scroll-ui01 .home-spelling-feature p {
    color: #52637a !important;
  }
  .home-scroll-ui01 .home-spelling-feature .btn-primary {
    background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
    box-shadow: 0 14px 28px rgba(37,99,235,0.22) !important;
  }
  .home-scroll-ui01 .lp-bottom-cta {
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    border-radius: 28px;
    margin-bottom: 0;
  }
  .home-scroll-ui01 .lp-bottom-cta .btn-secondary {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
  }
  .home-rec-section { margin: 0 0 16px; }
  .home-rec-title { font-size: 14px; font-weight: 700; color: #334155; margin-bottom: 10px; padding: 0 2px; }
  .home-rec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .home-rec-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  .home-rec-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37,99,235,0.1);
    border-color: #bfdbfe;
  }
  .home-rec-icon { font-size: 20px; margin-bottom: 6px; }
  .home-rec-num { font-size: 20px; font-weight: 800; color: #1e40af; margin-bottom: 2px; }
  .home-rec-label { font-size: 11px; color: #64748b; }
  .home-level-strip {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 16px;
  }
  .home-level-strip-title { font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 12px; }
  .home-level-strip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
  .home-level-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 52px;
    padding: 10px 6px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
  }
  .home-level-chip:hover { border-color: #2563eb; background: #eff6ff; }
  .home-level-chip.current {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
  }
  .home-level-chip-badge { font-size: 12px; font-weight: 800; color: #1e40af; }
  .home-level-chip-label { font-size: 10px; color: #64748b; text-align: center; }
  .home-level-chip.current .home-level-chip-badge { color: #1d4ed8; }
  .home-level-chip.current .home-level-chip-label { color: #3b82f6; }
  .lp-hero.compact {
    padding: 32px 34px 30px;
    border-radius: 18px;
    margin-bottom: 28px;
  }
  .lp-hero.compact .lp-hero-badge { margin-bottom: 12px; }
  .lp-hero.compact h1 { font-size: 30px; margin-bottom: 10px; }
  .lp-hero.compact .lp-hero-sub { font-size: 15px; margin-bottom: 18px; }
  .lp-hero.compact .lp-cta-row { margin-bottom: 18px; }
  .hero-toggle-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.14);
    color: white;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    z-index: 1;
  }
  .lp-hero.collapsed {
    padding: 18px 24px;
    text-align: left;
  }
  .lp-hero.collapsed .lp-hero-badge,
  .lp-hero.collapsed .lp-hero-sub,
  .lp-hero.collapsed .lp-cta-row,
  .lp-hero.collapsed .lp-trust-tags { display: none; }
  .lp-hero.collapsed h1 { font-size: 20px; margin: 0; padding-right: 88px; }

  /* 快速学习一屏一题 */
  .quick-shell {
    min-height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    max-width: 840px;
    margin: 0 auto;
  }
  .quick-topbar {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 16px;
  }
  .quick-progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: #475569;
    font-size: 14px;
    font-weight: 750;
  }
  .quick-progress-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
  }
  .quick-progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    transition: width 0.25s ease;
  }
  .quick-card {
    background: white;
    border: 1px solid #dbeafe;
    border-radius: 26px;
    padding: 42px;
    box-shadow: 0 22px 70px rgba(15,23,42,0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .quick-card.correct-flash { animation: quickCorrect 0.75s ease; }
  .quick-card.wrong-shake { animation: quickWrong 0.45s ease; }
  .combo-display {
    min-height: 54px;
    margin: -12px auto 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .combo-display.combo-hidden {
    min-height: 0;
    height: 0;
    margin: 0;
    gap: 0;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    visibility: hidden;
    overflow: hidden;
  }
  .combo-counter {
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.2px;
    background: #eff6ff;
    color: #2563eb;
    box-shadow: 0 8px 22px rgba(37,99,235,0.1);
  }
  .combo-display.combo-orange .combo-counter {
    background: #fff7ed;
    color: #ea580c;
    box-shadow: 0 8px 24px rgba(249,115,22,0.16);
  }
  .combo-display.combo-purple .combo-counter {
    color: white;
    font-size: 18px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    box-shadow: 0 0 0 4px rgba(124,58,237,0.12), 0 14px 34px rgba(124,58,237,0.28);
    text-shadow: 0 0 16px rgba(255,255,255,0.5);
  }
  .combo-bar {
    width: min(260px, 78%);
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
  }
  .combo-bar-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #2563eb;
    transition: width 0.22s ease, background 0.22s ease;
  }
  .combo-display.combo-orange .combo-bar-fill { background: #f97316; }
  .combo-display.combo-purple .combo-bar-fill { background: linear-gradient(90deg, #7c3aed, #db2777); }
  .combo-next {
    min-height: 13px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
  }
  .combo-pop .combo-counter { animation: combo-pop 0.3s cubic-bezier(0.2, 1.35, 0.4, 1); }
  .combo-display.combo-orange .combo-counter { animation: combo-pulse 0.9s ease infinite alternate; }
  .combo-display.combo-orange.combo-pop .combo-counter {
    animation: combo-pop 0.3s cubic-bezier(0.2, 1.35, 0.4, 1),
               combo-pulse 0.9s ease 0.32s infinite alternate;
  }
  .combo-break {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: combo-break-shake 0.4s ease;
  }
  .combo-break .combo-counter {
    background: #f1f5f9;
    color: #64748b;
    box-shadow: none;
  }
  @keyframes combo-pop {
    0% { transform: scale(1); }
    45% { transform: scale(1.3); }
    100% { transform: scale(1); }
  }
  @keyframes combo-pulse {
    from { transform: scale(1); }
    to { transform: scale(1.04); }
  }
  @keyframes combo-break-shake {
    0%,100% { transform: translateX(0); }
    20% { transform: translateX(-7px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(3px); }
  }
  @keyframes quickCorrect {
    0% { box-shadow: 0 22px 70px rgba(15,23,42,0.08); }
    35% { box-shadow: 0 0 0 6px rgba(34,197,94,0.18), 0 22px 70px rgba(34,197,94,0.18); }
    100% { box-shadow: 0 22px 70px rgba(15,23,42,0.08); }
  }
  @keyframes quickWrong {
    0%,100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(7px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(4px); }
  }
  .quick-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 12px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 18px;
  }
  .quick-prompt {
    font-size: 34px;
    color: #0f172a;
    font-weight: 850;
    line-height: 1.18;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
  }
  .quick-sub {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 26px;
  }
  .quick-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
    margin: 0 auto;
  }
  .quick-choice {
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 16px;
    padding: 15px 16px;
    font-size: 16px;
    color: #1e293b;
    font-weight: 700;
    cursor: pointer;
    min-height: 58px;
    transition: transform 0.12s, border-color 0.12s, background 0.12s;
  }
  .quick-choice:hover { transform: translateY(-1px); border-color: #93c5fd; background: #eff6ff; }
  .quick-choice.correct { border-color: #22c55e; background: #dcfce7; color: #166534; }
  .quick-choice.wrong { border-color: #ef4444; background: #fee2e2; color: #991b1b; }
  .quick-input-row {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
  }
  .quick-input {
    flex: 1;
    border: 2px solid #dbeafe;
    border-radius: 16px;
    padding: 15px 16px;
    font-size: 18px;
    font-weight: 700;
    outline: none;
    font-family: inherit;
  }
  .quick-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 4px #dbeafe; }
  .quick-input.correct { border-color: #22c55e; background: #dcfce7; color: #166534; }
  .quick-input.wrong { border-color: #ef4444; background: #fee2e2; color: #991b1b; }
  .quick-submit {
    border: none;
    border-radius: 16px;
    color: white;
    padding: 0 22px;
    font-size: 16px;
    font-weight: 850;
    cursor: pointer;
  }
  .quick-listen-btn {
    border: none;
    color: white;
    border-radius: 50%;
    width: 88px;
    height: 88px;
    font-size: 34px;
    cursor: pointer;
    margin: 0 auto 18px;
    box-shadow: 0 16px 36px rgba(37,99,235,0.22);
  }
  .quick-feedback {
    min-height: 34px;
    margin-top: 18px;
    font-size: 17px;
    font-weight: 800;
  }
  .quick-feedback.ok { color: #16a34a; }
  .quick-feedback.bad { color: #dc2626; }
  .quick-summary {
    background: linear-gradient(135deg, #1d4ed8, #7c3aed);
    color: white;
    border-radius: 28px;
    padding: 44px 34px;
    text-align: center;
    box-shadow: 0 24px 80px rgba(37,99,235,0.28);
  }
  .quick-summary-score {
    font-size: 76px;
    line-height: 1;
    font-weight: 900;
    margin: 12px 0;
  }
  .quick-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 24px 0;
  }
  .quick-summary-stat {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 16px;
    padding: 14px;
  }
  .quick-summary-stat b { display: block; font-size: 24px; }
  .quick-summary-stat span { color: #dbeafe; font-size: 12px; font-weight: 700; }
  .discover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
  }
  .discover-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  }
  .discover-card:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 12px 28px rgba(37,99,235,0.08);
  }
  .discover-card .emoji { font-size: 30px; margin-bottom: 8px; }
  .discover-card h3 { font-size: 18px; color: #1e3a8a; margin-bottom: 6px; }
  .discover-card p { color: #64748b; font-size: 14px; }
  .discover-levels {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 28px;
  }
  .discover-level-btn {
    padding: 8px 18px;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    background: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .discover-level-btn:hover { border-color: #2563eb; color: #2563eb; }
  .discover-level-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
  }
  .discover-level-btn.locked {
    opacity: 0.5;
    color: #94a3b8;
  }
  .discover-section { margin-bottom: 36px; }
  .discover-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1e293b;
  }
  .discover-units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  .discover-unit-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
  }
  .discover-unit-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 16px rgba(37,99,235,0.1);
    transform: translateY(-2px);
  }
  .discover-unit-card.completed { border-color: #16a34a; background: #f0fdf4; }
  .discover-unit-card.in-progress { border-color: #f59e0b; background: #fffbeb; }
  .discover-unit-card.locked { opacity: 0.5; cursor: default; }
  .discover-unit-card.locked:hover { border-color: #e2e8f0; box-shadow: none; transform: none; }
  .discover-unit-title { font-size: 13px; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
  .discover-unit-topic { font-size: 12px; color: #64748b; margin-bottom: 8px; min-height: 30px; }
  .discover-unit-progress { font-size: 11px; color: #94a3b8; }
  .discover-unit-status { font-size: 18px; margin-bottom: 6px; }
  .discover-entry-row { display: flex; flex-direction: column; gap: 10px; }
  .discover-entry-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s;
  }
  .discover-entry-card:hover { border-color: #2563eb; box-shadow: 0 4px 16px rgba(37,99,235,0.1); }
  .discover-entry-icon { font-size: 28px; }
  .discover-entry-info { flex: 1; }
  .discover-entry-name { font-size: 15px; font-weight: 700; color: #1e293b; }
  .discover-entry-desc { font-size: 12px; color: #64748b; margin-top: 2px; }
  .discover-entry-arrow { font-size: 18px; color: #94a3b8; }
  .library-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 34px;
  }
  .library-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    cursor: pointer;
    transition: all 0.2s;
  }
  .library-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 24px rgba(37,99,235,0.1);
    transform: translateY(-2px);
  }
  .library-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
  .library-card-icon { font-size: 32px; }
  .library-card-title { font-size: 17px; font-weight: 800; color: #1e293b; }
  .library-card-meta { font-size: 13px; color: #64748b; line-height: 1.6; }
  .library-card-action { margin-top: 14px; color: #2563eb; font-size: 13px; font-weight: 800; }
  .template-intro {
    margin: -6px 0 14px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
  }
  .template-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 0 14px;
    margin: -4px 0 12px;
    scrollbar-width: none;
  }
  .template-tabs::-webkit-scrollbar { display: none; }
  .template-tab {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    padding: 9px 14px;
    border-radius: 999px;
    transition: all 0.18s;
  }
  .template-tab:hover { background: #eff6ff; color: #2563eb; }
  .template-tab.active { background: #2563eb; color: white; }
  .template-tab-count {
    margin-left: 5px;
    opacity: 0.72;
    font-size: 11px;
  }
  .template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
  }
  .template-card {
    position: relative;
    overflow: hidden;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
  }
  .template-card:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 26px rgba(37,99,235,0.12);
    transform: translateY(-2px);
  }
  .template-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: var(--template-color, #2563eb);
  }
  .template-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
  .template-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--template-soft, #eff6ff);
    font-size: 22px;
  }
  .template-badge {
    background: #f1f5f9;
    color: #475569;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
  }
  .template-title { font-size: 16px; font-weight: 900; color: #0f172a; line-height: 1.35; margin-bottom: 8px; }
  .template-desc { font-size: 12px; color: #64748b; line-height: 1.6; margin-bottom: 12px; }
  .template-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; margin-bottom: 14px; }
  .template-meta span {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
  }
  .template-actions { display: flex; gap: 8px; align-items: center; }
  .template-add-btn {
    border: none;
    border-radius: 999px;
    background: #2563eb;
    color: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    padding: 10px 14px;
    flex: 1;
    transition: all 0.18s;
  }
  .template-add-btn:hover { box-shadow: 0 8px 20px rgba(37,99,235,0.24); transform: translateY(-1px); }
  .template-add-btn.added { background: #dcfce7; color: #15803d; cursor: default; box-shadow: none; }
  .template-status { display: block; min-height: 20px; margin-top: 12px; color: #64748b; font-size: 13px; }
  .material-uploader {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
  }
  .material-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
  }
  .material-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
  }
  .material-input, .material-textarea {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.18s;
  }
  .material-textarea { min-height: 150px; resize: vertical; line-height: 1.65; }
  .material-input:focus, .material-textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
  }
  .material-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
  .material-primary-btn, .material-ghost-btn, .material-danger-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.18s;
  }
  .material-primary-btn { background: #2563eb; color: white; box-shadow: 0 6px 18px rgba(37,99,235,0.22); }
  .material-primary-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37,99,235,0.28); }
  .material-ghost-btn { background: #eff6ff; color: #1d4ed8; }
  .material-danger-btn { background: #fee2e2; color: #b91c1c; }
  .material-status { font-size: 13px; color: #64748b; min-height: 20px; }
  .material-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
  .material-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
  }
  .material-card h4 { font-size: 15px; font-weight: 800; color: #1e293b; margin-bottom: 6px; }
  .material-card-meta { font-size: 12px; color: #64748b; line-height: 1.6; margin-bottom: 10px; }
  .material-chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
  .material-chip {
    background: #f1f5f9;
    color: #475569;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
  }
  .material-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
  .material-lesson-card { display: flex; flex-direction: column; gap: 8px; }
  .material-lesson-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .material-lesson-badge { background: #eff6ff; color: #1d4ed8; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 900; }
  .material-lesson-source { color: #94a3b8; font-size: 11px; font-weight: 800; }
  .material-lesson-actions { margin-top: auto; }
  .material-combo-btn { background: #ecfdf5; color: #047857; }
  .material-empty-course { display: grid; gap: 10px; justify-items: center; }
  .material-empty-course strong { color: #1e293b; font-size: 16px; }
  .material-empty-course span { max-width: 520px; line-height: 1.7; }
  .material-empty {
    text-align: center;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 26px;
    grid-column: 1 / -1;
  }
  .back-to-discover {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .back-to-discover:hover { text-decoration: underline; }
  .quick-back-btn { margin: -4px 0 8px; padding: 0; }
  .practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 36px;
  }
  .practice-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
  }
  .practice-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 24px rgba(37,99,235,0.12);
    transform: translateY(-3px);
  }
  .practice-card-icon { font-size: 36px; margin-bottom: 12px; }
  .practice-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
  }
  .practice-card-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
  }
  .practice-mistakes-section { margin-top: 8px; }
  .practice-mistakes-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s;
  }
  .practice-mistakes-card:hover { border-color: #ef4444; box-shadow: 0 4px 16px rgba(239,68,68,0.12); }
  .practice-mistakes-icon { font-size: 28px; }
  .practice-mistakes-info { flex: 1; }
  .practice-mistakes-title { font-size: 15px; font-weight: 700; color: #991b1b; }
  .practice-mistakes-count { font-size: 12px; color: #b91c1c; margin-top: 2px; }
  @media (max-width: 720px) {
    .library-overview-grid, .material-upload-grid { grid-template-columns: 1fr; }
    .library-card { padding: 18px; }
    .template-grid, .material-list { grid-template-columns: 1fr; }
  }

  /* 数据条 */
  .lp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
  }
  .lp-stat {
    background: white; border-radius: 16px;
    padding: 24px 20px; text-align: center;
    border: 1px solid #e6ecf2;
    transition: all 0.2s;
  }
  .lp-stat:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.08); }
  .lp-stat-num {
    font-size: 34px; font-weight: 800; color: #1e3a8a;
    line-height: 1;
  }
  .lp-stat-num span { font-size: 18px; color: #3b82f6; }
  .lp-stat-label { font-size: 13px; color: #64748b; margin-top: 6px; font-weight: 500; }

  /* 级别体系 */
  .lp-section-title {
    text-align: center; margin-bottom: 28px;
  }
  .lp-section-title h2 { font-size: 26px; font-weight: 800; color: #1e3a8a; margin-bottom: 8px; }
  .lp-section-title p { color: #64748b; font-size: 15px; }
  .lp-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 40px;
  }
  .lp-level-card {
    background: white; border-radius: 16px;
    border: 2px solid #e6ecf2;
    padding: 22px 18px;
    cursor: pointer; transition: all 0.2s;
    position: relative; overflow: hidden;
  }
  .lp-level-card:hover:not(.lp-locked) { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
  .lp-level-card.lp-current { border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59,130,246,0.15); }
  .lp-level-card.lp-locked { opacity: 0.55; cursor: default; }
  .lp-level-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
  .lp-level-icon { font-size: 28px; }
  .lp-level-badge {
    font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 10px;
    background: #eff6ff; color: #2563eb;
  }
  .lp-level-badge.free { background: #f0fdf4; color: #16a34a; }
  .lp-level-badge.lock { background: #f1f5f9; color: #94a3b8; }
  .lp-level-name { font-size: 20px; font-weight: 800; margin-bottom: 2px; }
  .lp-level-exam { font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 6px; }
  .lp-level-desc { font-size: 13px; color: #94a3b8; }
  .lp-level-progress {
    margin-top: 12px; height: 4px; background: #f1f5f9; border-radius: 4px;
  }
  .lp-level-progress-fill {
    height: 4px; border-radius: 4px; background: #3b82f6; transition: width 0.5s;
  }

  /* 10步学习法 */
  .lp-steps {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 12px; margin-bottom: 40px;
  }
  .lp-step {
    background: white; border-radius: 14px;
    padding: 18px 14px; text-align: center;
    border: 1px solid #e6ecf2; transition: all 0.2s;
  }
  .lp-step:hover { border-color: #93c5fd; box-shadow: 0 4px 16px rgba(59,130,246,0.1); }
  .lp-step-num {
    width: 26px; height: 26px; border-radius: 50%;
    background: #dbeafe; color: #2563eb;
    font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
  }
  .lp-step-icon { font-size: 22px; margin-bottom: 6px; }
  .lp-step-name { font-size: 13px; font-weight: 700; color: #1e3a8a; margin-bottom: 2px; }
  .lp-step-desc { font-size: 11px; color: #94a3b8; line-height: 1.4; }

  /* 功能区 */
  .lp-features {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; margin-bottom: 40px;
  }
  .lp-feature {
    background: white; border-radius: 20px;
    padding: 32px 24px; border: 1px solid #e6ecf2;
    cursor: pointer; transition: all 0.2s;
  }
  .lp-feature:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(37,99,235,0.1); border-color: #93c5fd; }
  .lp-feature-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 18px;
  }
  .lp-feature h3 { font-size: 20px; font-weight: 800; color: #1e3a8a; margin-bottom: 10px; }
  .lp-feature p { font-size: 14px; color: #64748b; line-height: 1.7; margin-bottom: 16px; }
  .lp-feature-tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .lp-feature-tag {
    background: #f1f5f9; color: #475569;
    font-size: 12px; padding: 4px 10px; border-radius: 8px; font-weight: 500;
  }

  /* 底部CTA */
  .lp-bottom-cta {
    background: linear-gradient(135deg, #eff6ff 0%, #faf5ff 100%);
    border-radius: 24px; padding: 56px 40px; text-align: center;
    border: 1px solid #dbeafe; margin-bottom: 16px;
  }
  .lp-bottom-cta h2 { font-size: 30px; font-weight: 800; color: #1e3a8a; margin-bottom: 10px; }
  .lp-bottom-cta p { color: #64748b; font-size: 16px; margin-bottom: 28px; }

  @media (max-width: 768px) {
    .lp-hero { padding: 40px 24px; }
    .lp-hero h1 { font-size: 28px; }
    .lp-hero-sub { font-size: 15px; }
    .quick-home-card { grid-template-columns: 1fr; padding: 22px; }
    .quick-home-title { font-size: 25px; }
    .quick-shell { min-height: calc(100vh - 180px); }
    .quick-card { padding: 30px 20px; border-radius: 22px; }
    .quick-prompt { font-size: 27px; }
    .quick-choices { grid-template-columns: 1fr; }
    .quick-input-row { flex-direction: column; }
    .quick-submit { min-height: 52px; }
    .quick-summary-grid { grid-template-columns: 1fr; }
    .discover-grid { grid-template-columns: 1fr; }
    .lp-stats { grid-template-columns: repeat(2, 1fr); }
    .lp-levels { grid-template-columns: repeat(2, 1fr); }
    .lp-steps { grid-template-columns: repeat(2, 1fr); }
    .lp-features { grid-template-columns: 1fr; }
    .lp-trust-tags { display: none; }
    .home-command-main { grid-template-columns: 1fr; }
    .home-command-copy { min-height: auto; padding: 4px 0 0; }
    .home-command-panel { padding: 18px; }
  }
  @media (max-width: 480px) {
    .home-action-row { grid-template-columns: 1fr 1fr 1fr; }
    .home-action-sub { display: none; }
    .home-rec-grid { grid-template-columns: repeat(2, 1fr); }
    .home-ui01-blue .home-command { border-radius: 22px; padding: 18px; }
    .home-command-copy h1 { font-size: 28px; }
    .home-ui01-blue .home-action-row { grid-template-columns: 1fr; }
    .lp-levels { grid-template-columns: 1fr; }
    .lp-steps { grid-template-columns: repeat(2, 1fr); }
  }

  /* ===== 拼写模块 ===== */
  .sg-wrapper { max-width: 700px; margin: 0 auto; }
  .sg-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
  .sg-stat-box {
    background: white; border-radius: 14px; padding: 14px 10px;
    border: 1px solid #e6ecf2; text-align: center;
  }
  .sg-stat-num { font-size: 26px; font-weight: 800; color: #1e3a8a; }
  .sg-stat-wpm .sg-stat-num { color: #3B6D11; }
  .sg-stat-errors .sg-stat-num { color: #A32D2D; }
  .sg-stat-label { font-size: 12px; color: #64748b; margin-top: 2px; }
  .sg-topic-selector { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
  .sg-topic-btn {
    padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
    border: 2px solid #e2e8f0; background: white; color: #64748b; cursor: pointer;
    transition: all 0.15s;
  }
  .sg-topic-btn:hover { border-color: #93c5fd; color: #2563eb; }
  .sg-topic-btn.active { background: #2563eb; border-color: #2563eb; color: white; }
  .sg-progress-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
  .sg-progress-bar { flex: 1; height: 4px; background: #e2e8f0; border-radius: 4px; }
  .sg-progress-fill { height: 100%; background: linear-gradient(90deg,#3b82f6,#8b5cf6); border-radius: 4px; transition: width 0.4s; }
  .sg-progress-label { font-size: 11px; color: #94a3b8; white-space: nowrap; min-width: 36px; text-align: right; }
  .sg-card {
    background: white; border-radius: 20px;
    border: 2px solid #e6ecf2; overflow: hidden; margin-bottom: 20px;
    transition: border-color 0.3s;
  }
  .sg-card.correct-state { border-color: #22c55e; }
  .sg-card.wrong-state { border-color: #ef4444; }
  .sg-card-top {
    padding: 22px 24px 18px;
    background: linear-gradient(135deg,#f8faff,#f5f3ff);
    border-bottom: 1px solid #f1f5f9;
  }
  .sg-type-header { margin-bottom: 10px; }
  .sg-progress-bar-wrap { height: 4px; background: #e2e8f0; border-radius: 2px; margin-bottom: 8px; position: relative; }
  .sg-progress-bar-fill { height: 100%; background: var(--level-color, #3b82f6); border-radius: 2px; transition: width .3s; }
  .sg-progress-text { font-size: 12px; color: #94a3b8; }
  .sg-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
  .sg-topic-tag {
    background: #eff6ff; color: #2563eb;
    font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 8px;
  }
  .sg-num { font-size: 12px; color: #94a3b8; }
  .sg-cn { font-size: 21px; font-weight: 700; color: #1e3a8a; line-height: 1.4; margin-bottom: 6px; }
  .sg-hint { font-size: 13px; color: #94a3b8; }
  .sg-mode-selector { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
  .sg-mode-hint { font-size: 11px; color: #94a3b8; margin-top: 4px; min-height: 14px; }
  .sg-mode-btn {
    border: 1px solid #dbeafe; background: white; color: #2563eb;
    border-radius: 999px; padding: 7px 13px; font-size: 12px; font-weight: 700;
    cursor: pointer; transition: all 0.18s;
  }
  .sg-mode-btn:hover { border-color: #2563eb; transform: translateY(-1px); }
  .sg-mode-btn.active {
    background: linear-gradient(135deg,#2563eb,#7c3aed); color: white; border-color: transparent;
    box-shadow: 0 6px 18px rgba(37,99,235,0.18);
  }
  .sg-mode-btn.blind.active { background: linear-gradient(135deg,#111827,#475569); }
  .sg-answer-area {
    min-height: 60px; padding: 14px 20px;
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    border-bottom: 2px dashed #e2e8f0; background: #fafcff;
    cursor: default;
  }
  .sg-answer-area.has-words { border-style: solid; border-color: #bfdbfe; }
  .sg-answer-area.typing { display: block; border-bottom: 0; background: white; padding: 16px 20px 10px; }
  .sg-placeholder { color: #cbd5e1; font-size: 14px; font-style: italic; pointer-events: none; }
  .sg-manual-input {
    width: 100%; min-height: 96px; resize: vertical;
    border: 2px solid #e2e8f0; border-radius: 16px; padding: 14px 16px;
    font-size: 18px; line-height: 1.5; font-weight: 600; color: #1e293b;
    outline: none; transition: all 0.18s; font-family: inherit; background: #f8fafc;
  }
  .sg-manual-input:focus { border-color: #2563eb; background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,0.08); }
  .sg-manual-input.correct-input { border-color: #22c55e; background: #f0fdf4; color: #15803d; }
  .sg-manual-input.wrong-input { border-color: #ef4444; background: #fef2f2; color: #991b1b; animation: sgInputShake 0.26s ease; }
  .sg-type-target {
    display: none; margin-bottom: 12px; padding: 12px 14px;
    border: 1px solid #dbeafe; border-radius: 14px; background: #eff6ff;
    color: #1e3a8a; font-size: 18px; line-height: 1.75; font-weight: 700;
  }
  .sg-type-target.show { display: block; }
  .sg-type-char {
    display: inline-block; min-width: 9px; border: 1px solid transparent; border-bottom: 2px solid transparent;
    font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace); font-size: 15px;
  }
  .sg-type-char.ok { color: #27500A; background: #C0DD97; border-color: #97C459; }
  .sg-type-char.cur { color: #0C447C; background: #B5D4F4; border-color: #185FA5; border-bottom: 2px solid #185FA5; }
  .sg-type-char.bad { color: #A32D2D; background: #F7C1C1; border-color: #E24B4A; }
  .sg-type-char.pending { color: #94a3b8; }
  .sg-live-coach {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
    color: #475569; font-size: 12px; font-weight: 700;
  }
  .sg-live-pill {
    padding: 5px 9px; border-radius: 999px; background: #f1f5f9; border: 1px solid #e2e8f0;
  }
  .sg-live-pill.good { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
  .sg-live-pill.warn { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
  .sg-live-pill.error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
  .sg-shake { animation: sgShake 0.1s ease; }
  .sg-manual-note { margin-top: 8px; color: #94a3b8; font-size: 12px; }
  .sg-dict-toolbar { display: flex; gap: 10px; justify-content: center; margin: 12px 0 4px; }
  .sg-dict-btn { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 18px; font-size: 14px; cursor: pointer; color: #334155; }
  .sg-dict-btn:hover { background: #e2e8f0; }
  .sg-dict-hint-text { text-align: center; font-size: 15px; color: #64748b; margin-top: 6px; padding: 8px 16px; background: #f8fafc; border-radius: 8px; }
  .sg-type-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 20px 12px; }
  .sg-type-tools.hidden { display: none; }
  .sg-hint-btn {
    background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0;
    border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 700;
    cursor: pointer; transition: all 0.15s;
  }
  .sg-hint-btn:hover { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
  .sg-manual-hint {
    display: none; margin: 0 20px 12px; padding: 12px 14px; border-radius: 12px;
    background: #f8fafc; border: 1px solid #e2e8f0; color: #475569;
    font-size: 13px; line-height: 1.6;
  }
  .sg-manual-hint.show { display: block; }
  .sg-pool { padding: 14px 20px 18px; display: flex; flex-wrap: wrap; gap: 8px; min-height: 56px; }
  .sg-pool.hidden { display: none; }
  .sg-tile {
    display: inline-flex; align-items: center;
    background: white; border: 2px solid #e2e8f0;
    border-radius: 10px; padding: 8px 14px;
    font-size: 15px; font-weight: 600; color: #1e3a8a;
    cursor: pointer; transition: all 0.15s; user-select: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  .sg-tile:hover { border-color: #3b82f6; background: #eff6ff; transform: translateY(-1px); }
  .sg-tile.in-answer { background: #eff6ff; border-color: #3b82f6; color: #1d4ed8; }
  .sg-tile.correct-tile { background: #dcfce7 !important; border-color: #22c55e !important; color: #15803d !important; }
  .sg-tile.wrong-tile { background: #fee2e2 !important; border-color: #ef4444 !important; color: #b91c1c !important; }
  .sg-tile.punct { color: #64748b; padding: 8px 8px; min-width: 30px; text-align: center; }
  .sg-result {
    margin: 0 20px 12px; padding: 12px 16px; border-radius: 12px;
    font-size: 14px; font-weight: 600; display: none; gap: 8px; flex-direction: column;
  }
  .sg-result.show { display: flex; }
  .sg-result.ok { background: #dcfce7; color: #15803d; }
  .sg-result.bad { background: #fee2e2; color: #b91c1c; }
  .sg-result-en { font-weight: 400; font-size: 13px; opacity: 0.85; }
  .sg-controls { display: flex; gap: 12px; justify-content: center; padding: 0 20px 20px; }
  .sg-check-btn {
    flex: 1; max-width: 240px;
    background: linear-gradient(135deg,#2563eb,#7c3aed);
    color: white; font-size: 16px; font-weight: 700;
    padding: 13px 24px; border-radius: 50px; border: none; cursor: pointer;
    transition: all 0.2s; box-shadow: 0 4px 16px rgba(37,99,235,0.3);
  }
  .sg-check-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.4); }
  .sg-check-btn:disabled { opacity: 0.35; cursor: not-allowed; }
  .sg-skip-btn {
    background: #f1f5f9; color: #64748b; font-size: 15px; font-weight: 600;
    padding: 13px 20px; border-radius: 50px; border: none; cursor: pointer;
    transition: all 0.2s;
  }
  .sg-skip-btn:hover { background: #e2e8f0; }
  .sg-next-btn {
    flex: 1; max-width: 240px;
    background: #22c55e; color: white; font-size: 16px; font-weight: 700;
    padding: 13px 24px; border-radius: 50px; border: none; cursor: pointer;
    transition: all 0.2s; box-shadow: 0 4px 16px rgba(34,197,94,0.3);
    display: none;
  }
  .sg-next-btn.show { display: block; }
  .sg-next-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34,197,94,0.4); }
  .sg-summary {
    background: white; border-radius: 20px; border: 2px solid #22c55e;
    padding: 48px 32px; text-align: center; display: none;
  }
  .sg-summary.show { display: block; }
  .sg-summary-icon { font-size: 60px; margin-bottom: 16px; }
  .sg-summary h3 { font-size: 26px; font-weight: 800; color: #15803d; margin-bottom: 8px; }
  .sg-summary p { color: #64748b; margin-bottom: 20px; font-size: 16px; }
  .sg-result-panel { max-width: 720px; margin: 0 auto; }
  .sg-result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
  .sg-result-cell { background: var(--color-bg-2, #f8fafc); border-radius: 8px; padding: 8px; text-align: center; }
  .sg-result-num { font-size: 22px; font-weight: 500; color: #1e3a8a; }
  .sg-result-lbl { font-size: 11px; color: #94a3b8; margin-top: 2px; }
  .sg-result-stat { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 10px; }
  .sg-result-stat b { display: block; color: #1d4ed8; font-size: 24px; line-height: 1; margin-bottom: 6px; }
  .sg-result-stat span { color: #64748b; font-size: 12px; font-weight: 700; }
  .sg-result-words { text-align: left; background: #fef2f2; border: 1px solid #fecaca; border-radius: 14px; padding: 14px 16px; margin: 12px 0; color: #7f1d1d; }
  .sg-result-words-title { font-size: 13px; font-weight: 800; margin-bottom: 8px; }
  .sg-result-words ul { margin: 0; padding-left: 20px; display: grid; gap: 5px; }
  .sg-result-words p { margin: 0; color: #64748b; font-size: 13px; }
  .sg-result-reinforce { margin: 10px 0 6px; color: #475569; font-size: 13px; font-weight: 800; }
  .sg-weak-sentences { margin-top: 10px; font-size: 12px; }
  .sg-weak-title { color: #94a3b8; margin-bottom: 5px; }
  .sg-weak-tag { display: inline-block; background: #EAF3DE; color: #3B6D11; padding: 2px 8px; border-radius: 20px; margin: 2px; font-size: 11px; }
  .sg-summary-btns { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
  .sg-summary-btn-again { padding: 8px 20px; border-radius: 8px; background: #639922; color: #fff; font-size: 13px; border: none; cursor: pointer; }
  .sg-summary-btn-alt { padding: 8px 20px; border-radius: 8px; background: var(--color-bg-2,#f1f5f9); color: #334155; font-size: 13px; border: 0.5px solid #e2e8f0; cursor: pointer; }
  .sg-result-mode-selector { justify-content: center; margin: 16px 0 8px; }
  .sg-result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
  .sg-result-btn {
    border: 1px solid #dbeafe; background: white; color: #2563eb;
    border-radius: 999px; padding: 12px 24px; font-size: 15px; font-weight: 800;
    cursor: pointer; transition: all 0.18s;
  }
  .sg-result-btn.primary { background: linear-gradient(135deg,#2563eb,#7c3aed); color: white; border-color: transparent; box-shadow: 0 4px 16px rgba(37,99,235,0.25); }
  .sg-result-btn:hover { transform: translateY(-1px); }
  @media (max-width: 640px) {
    .sg-cn { font-size: 17px; }
    .sg-mode-selector { gap: 6px; }
    .sg-mode-btn { flex: 1; min-width: 84px; padding: 8px 8px; }
    .sg-manual-input { min-height: 88px; font-size: 16px; }
    .sg-tile { font-size: 14px; padding: 7px 11px; }
    .sg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .sg-stat-num { font-size: 22px; }
    .sg-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  /* ===== 连击动画 ===== */
  @keyframes sgComboIn {
    from { opacity:0; transform:translate(-50%,-50%) scale(0.2) rotate(-8deg); }
    60%  { transform:translate(-50%,-50%) scale(1.15) rotate(2deg); }
    to   { opacity:1; transform:translate(-50%,-50%) scale(1) rotate(0deg); }
  }
  @keyframes sgComboOut {
    to { opacity:0; transform:translate(-50%,-50%) scale(1.4) translateY(-20px); }
  }
  @keyframes sgXpFloat { to { opacity:0; transform:translateY(-64px) scale(0.7); } }
  @keyframes sgFlash { 0%,100%{opacity:0} 25%{opacity:1} }
  @keyframes sgStatPop { 0%,100%{transform:scale(1)} 50%{transform:scale(1.18)} }
  @keyframes sgTileBounce { 0%,100%{transform:scale(1)} 40%{transform:scale(0.86)} }
  @keyframes sgShake { 0%,100%{transform:translateX(0)} 50%{transform:translateX(-4px)} }
  @keyframes sgInputShake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-3px); }
  }

  .sg-combo {
    position:fixed; top:40%; left:50%;
    transform:translate(-50%,-50%);
    font-size:54px; font-weight:900; line-height:1.1;
    pointer-events:none; z-index:9999; text-align:center; white-space:nowrap;
    animation: sgComboIn 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards,
               sgComboOut 0.3s ease 0.9s forwards;
  }
  .sg-combo-label {
    display:block; font-size:15px; font-weight:800;
    letter-spacing:3px; margin-top:2px; opacity:0.9;
  }
  .sg-xp-pop {
    position:absolute; right:16px; top:8px;
    font-size:19px; font-weight:800; color:#22c55e;
    pointer-events:none; z-index:600; white-space:nowrap;
    text-shadow:0 2px 8px rgba(34,197,94,0.4);
    animation: sgXpFloat 1.1s ease forwards;
  }
  .sg-flash-overlay {
    position:fixed; inset:0; pointer-events:none; z-index:9990;
    animation: sgFlash 0.45s ease forwards;
  }
  .sg-stat-pop { animation: sgStatPop 0.3s ease; }
  .sg-tile-pop { animation: sgTileBounce 0.14s ease; }

  /* ===== 导入词汇 Modal ===== */
  .import-modal-bg {
    display:none; position:fixed; inset:0;
    background:rgba(0,0,0,0.55); z-index:800;
    align-items:center; justify-content:center; padding:20px;
  }
  .import-modal-bg.open { display:flex; }
  .import-modal {
    background:white; border-radius:20px; max-width:560px; width:100%;
    padding:32px; box-shadow:0 24px 80px rgba(0,0,0,0.3);
    max-height:90vh; overflow-y:auto;
  }
  .import-modal h3 { font-size:20px; font-weight:800; color:#1e3a8a; }
  .import-format {
    background:#f8fafc; border-radius:8px; padding:10px 14px;
    margin:12px 0; font-family:monospace; font-size:13px;
    color:#475569; line-height:1.9; border:1px solid #e2e8f0;
  }
  #importTextarea {
    width:100%; height:200px; border:2px solid #e2e8f0; border-radius:12px;
    padding:14px; font-size:15px; font-family:inherit; resize:vertical; outline:none;
    transition:border-color 0.2s;
  }
  #importTextarea:focus { border-color:#3b82f6; }
  .import-actions { display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; }
  .import-btn-primary {
    flex:1; background:linear-gradient(135deg,#2563eb,#7c3aed); color:white;
    font-size:15px; font-weight:700; padding:12px 20px; border-radius:12px;
    border:none; cursor:pointer; min-width:120px;
  }
  .import-btn-danger {
    padding:12px 14px; background:#fee2e2; color:#b91c1c;
    font-size:13px; font-weight:600; border-radius:12px; border:none; cursor:pointer;
  }
  .import-btn-cancel {
    padding:12px 14px; background:#f1f5f9; color:#64748b;
    font-size:13px; font-weight:600; border-radius:12px; border:none; cursor:pointer;
  }
  #importStatus { margin-top:10px; font-size:13px; font-weight:600; min-height:18px; }
  .custom-word-badge {
    display:inline-flex; align-items:center; gap:4px;
    background:linear-gradient(135deg,#ede9fe,#dbeafe);
    border:1px solid #c4b5fd; color:#5b21b6;
    font-size:12px; font-weight:700; padding:4px 10px; border-radius:8px;
    margin-left:8px; cursor:pointer;
  }

  /* ===== AI助教聊天 ===== */
  .ai-tutor-fab {
    position:fixed; bottom:24px; right:24px; z-index:8000;
    background:linear-gradient(135deg,#7c3aed,#3b82f6);
    color:white; border:none; border-radius:56px;
    padding:13px 20px; font-size:15px; font-weight:700;
    cursor:pointer; box-shadow:0 8px 24px rgba(124,58,237,0.4);
    display:flex; align-items:center; gap:8px;
    transition:transform 0.2s,box-shadow 0.2s,border-radius 0.2s,padding 0.2s;
    white-space:nowrap; user-select:none;
  }
  .ai-tutor-fab:hover { transform:translateY(-2px); box-shadow:0 12px 32px rgba(124,58,237,0.5); }
  .ai-tutor-fab.open { border-radius:50%; padding:13px 15px; font-size:20px; }
  .ai-chat-panel {
    position:fixed; bottom:86px; right:24px;
    width:380px; max-width:calc(100vw - 32px);
    height:520px; max-height:calc(100vh - 120px);
    background:white; border-radius:20px;
    box-shadow:0 24px 80px rgba(0,0,0,0.18);
    display:flex; flex-direction:column; z-index:7999;
    transform:scale(0.88) translateY(24px); opacity:0; pointer-events:none;
    transition:all 0.25s cubic-bezier(0.34,1.56,0.64,1); overflow:hidden;
  }
  .ai-chat-panel.open { transform:scale(1) translateY(0); opacity:1; pointer-events:all; }
  .ai-chat-header {
    background:linear-gradient(135deg,#7c3aed,#3b82f6);
    color:white; padding:14px 18px;
    display:flex; align-items:center; gap:10px; flex-shrink:0;
  }
  .ai-chat-avatar {
    width:34px; height:34px; background:rgba(255,255,255,0.2);
    border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:18px;
  }
  .ai-chat-header-info h4 { margin:0; font-size:14px; font-weight:700; }
  .ai-chat-header-info span { font-size:11px; opacity:0.8; }
  .ai-chat-close {
    margin-left:auto; background:none; border:none; color:white;
    font-size:22px; cursor:pointer; opacity:0.75; padding:0; line-height:1;
  }
  .ai-chat-close:hover { opacity:1; }
  .ai-chat-messages {
    flex:1; overflow-y:auto; padding:14px;
    display:flex; flex-direction:column; gap:10px;
  }
  .ai-msg { display:flex; gap:7px; max-width:100%; }
  .ai-msg-user { flex-direction:row-reverse; }
  .ai-msg-icon {
    width:26px; height:26px; border-radius:50%; font-size:13px;
    display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:2px;
  }
  .ai-msg-bot .ai-msg-icon { background:linear-gradient(135deg,#7c3aed,#3b82f6); color:white; }
  .ai-msg-user .ai-msg-icon { background:#e2e8f0; }
  .ai-msg-bubble {
    max-width:78%; padding:9px 13px; border-radius:16px;
    font-size:13.5px; line-height:1.6; word-break:break-word;
  }
  .ai-msg-bot .ai-msg-bubble { background:#f1f5f9; color:#1e293b; border-top-left-radius:4px; }
  .ai-msg-user .ai-msg-bubble {
    background:linear-gradient(135deg,#7c3aed,#3b82f6);
    color:white; border-top-right-radius:4px;
  }
  .ai-msg-bubble code {
    background:rgba(0,0,0,0.08); padding:1px 5px;
    border-radius:4px; font-family:monospace; font-size:12px;
  }
  .ai-msg-user .ai-msg-bubble code { background:rgba(255,255,255,0.2); }
  .ai-typing { display:flex; gap:4px; align-items:center; padding:9px 13px; background:#f1f5f9; border-radius:16px; border-top-left-radius:4px; width:fit-content; }
  .ai-typing span { width:7px; height:7px; background:#94a3b8; border-radius:50%; animation:aiDot 1.2s infinite; }
  .ai-typing span:nth-child(2) { animation-delay:0.2s; }
  .ai-typing span:nth-child(3) { animation-delay:0.4s; }
  @keyframes aiDot { 0%,60%,100%{transform:translateY(0);opacity:0.4;} 30%{transform:translateY(-6px);opacity:1;} }
  .ai-quick-chips {
    padding:8px 14px; display:flex; gap:6px; flex-wrap:wrap;
    flex-shrink:0; border-top:1px solid #f1f5f9;
  }
  .ai-chip {
    background:#f1f5f9; color:#475569; border:none; border-radius:20px;
    padding:5px 11px; font-size:12px; cursor:pointer; transition:background 0.15s; white-space:nowrap;
  }
  .ai-chip:hover { background:#e2e8f0; }
  .ai-chat-input-row {
    padding:10px 14px; display:flex; gap:8px;
    align-items:flex-end; border-top:1px solid #f1f5f9; flex-shrink:0;
  }
  #aiChatInput {
    flex:1; border:1.5px solid #e2e8f0; border-radius:12px;
    padding:9px 13px; font-size:14px; resize:none; outline:none;
    max-height:100px; line-height:1.4; font-family:inherit;
  }
  #aiChatInput:focus { border-color:#7c3aed; }
  .ai-send-btn {
    width:38px; height:38px; background:linear-gradient(135deg,#7c3aed,#3b82f6);
    border:none; border-radius:11px; color:white; font-size:16px;
    cursor:pointer; display:flex; align-items:center; justify-content:center;
    transition:opacity 0.2s; flex-shrink:0;
  }
  .ai-send-btn:hover { opacity:0.9; }
  .ai-send-btn:disabled { opacity:0.35; cursor:default; }
  @media (max-width:480px) {
    .ai-chat-panel {
      left:8px; right:8px; width:auto; bottom:72px;
      height:calc(100vh - 92px); height:calc(100dvh - 92px);
      max-height:calc(100vh - 92px); max-height:calc(100dvh - 92px);
      border-radius:16px;
    }
    .ai-chat-messages { min-height:0; padding:12px; }
    .ai-quick-chips { max-height:86px; overflow-y:auto; }
    .ai-msg-bubble { max-width:82%; }
    .ai-tutor-fab { right:16px; bottom:16px; }
  }

  /* ===== 家长报告 ===== */
  .pr-modal-bg {
    position:fixed; inset:0; background:rgba(0,0,0,0.55);
    z-index:9500; display:none; align-items:flex-start; justify-content:center;
    overflow-y:auto; padding:24px 12px;
  }
  .pr-modal-bg.open { display:flex; }
  .pr-modal {
    background:white; border-radius:20px; width:100%; max-width:680px;
    box-shadow:0 32px 80px rgba(0,0,0,0.2); overflow:hidden;
  }
  .pr-header {
    background:linear-gradient(135deg,#1e3a8a,#3b82f6);
    color:white; padding:24px 28px;
    display:flex; justify-content:space-between; align-items:flex-start;
  }
  .pr-header h2 { margin:0 0 4px; font-size:20px; }
  .pr-header p { margin:0; font-size:13px; opacity:0.8; }
  .pr-close { background:none; border:none; color:white; font-size:24px; cursor:pointer; opacity:0.8; padding:0; line-height:1; }
  .pr-close:hover { opacity:1; }
  .pr-body { padding:24px 28px; display:flex; flex-direction:column; gap:20px; }
  .pr-section-title {
    font-size:13px; font-weight:700; text-transform:uppercase;
    letter-spacing:0.8px; color:#64748b; margin-bottom:10px;
  }
  .pr-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
  .pr-card {
    background:#f8fafc; border-radius:12px; padding:14px 12px; text-align:center;
    border:1.5px solid #e2e8f0;
  }
  .pr-card-icon { font-size:22px; line-height:1; }
  .pr-card-val { font-size:22px; font-weight:800; color:#1e293b; margin:4px 0 2px; }
  .pr-card-lbl { font-size:11px; color:#64748b; font-weight:500; }
  .pr-week { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
  .pr-day { text-align:center; }
  .pr-day-name { font-size:10px; color:#94a3b8; margin-bottom:4px; font-weight:600; }
  .pr-day-dot {
    width:32px; height:32px; border-radius:8px; margin:0 auto;
    display:flex; align-items:center; justify-content:center;
    font-size:11px; font-weight:600; color:white;
  }
  .pr-day-dot.none  { background:#f1f5f9; color:#94a3b8; }
  .pr-day-dot.low   { background:#bfdbfe; color:#1e40af; }
  .pr-day-dot.mid   { background:#60a5fa; color:white; }
  .pr-day-dot.high  { background:#2563eb; color:white; }
  .pr-day-dot.today { box-shadow:0 0 0 2px #2563eb, 0 0 0 4px #bfdbfe; }
  .pr-levels { display:flex; flex-direction:column; gap:8px; }
  .pr-level-row { display:flex; align-items:center; gap:10px; }
  .pr-level-badge {
    width:32px; height:32px; border-radius:8px; font-size:11px; font-weight:800;
    display:flex; align-items:center; justify-content:center; color:white; flex-shrink:0;
  }
  .pr-level-info { flex:1; }
  .pr-level-name { font-size:13px; font-weight:600; color:#1e293b; }
  .pr-level-sub { font-size:11px; color:#64748b; }
  .pr-level-bar { width:100%; height:6px; background:#f1f5f9; border-radius:3px; margin-top:4px; }
  .pr-level-fill { height:100%; border-radius:3px; transition:width 0.8s; }
  .pr-level-xp { font-size:12px; font-weight:700; color:#475569; flex-shrink:0; }
  .pr-vocab { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
  .pr-vocab-card { background:#f8fafc; border-radius:12px; padding:14px 16px; border:1.5px solid #e2e8f0; }
  .pr-vocab-num { font-size:28px; font-weight:800; color:#2563eb; }
  .pr-vocab-lbl { font-size:12px; color:#64748b; margin-top:2px; }
  .pr-reco { background:#fffbeb; border:1.5px solid #fde68a; border-radius:12px; padding:16px; }
  .pr-reco h4 { margin:0 0 8px; font-size:14px; color:#92400e; }
  .pr-reco ul { margin:0; padding-left:18px; }
  .pr-reco li { font-size:13px; color:#78350f; margin-bottom:4px; line-height:1.5; }
  .pr-actions { display:flex; gap:10px; padding-top:4px; }
  .pr-btn {
    flex:1; padding:12px; border-radius:10px; border:none;
    font-size:14px; font-weight:600; cursor:pointer; transition:opacity 0.15s;
  }
  .pr-btn:hover { opacity:0.88; }
  .pr-btn-primary { background:linear-gradient(135deg,#1e3a8a,#3b82f6); color:white; }
  .pr-btn-outline { background:#f8fafc; color:#475569; border:1.5px solid #e2e8f0; }
  @media (max-width:480px) {
    .pr-cards { grid-template-columns:repeat(2,1fr); }
    .pr-vocab { grid-template-columns:1fr; }
    .pr-body { padding:16px; }
  }
  @media print {
    body > *:not(.pr-modal-bg) { display:none !important; }
    .pr-modal-bg { position:static; display:block !important; padding:0; background:none; }
    .pr-modal { box-shadow:none; max-width:100%; }
    .pr-close, .pr-actions { display:none !important; }
  }
  /* AI 设置面板 */
  .ai-settings-panel {
    background:#f8fafc; border-bottom:1px solid #e2e8f0;
    padding:14px 16px; display:none; flex-direction:column; gap:10px; flex-shrink:0;
  }
  .ai-settings-panel.open { display:flex; }
  .ai-settings-label { font-size:11px; font-weight:600; color:#64748b; text-transform:uppercase; letter-spacing:0.5px; }
  .ai-settings-select, .ai-settings-input {
    border:1.5px solid #e2e8f0; border-radius:8px;
    padding:7px 10px; font-size:13px; outline:none; background:white;
    width:100%; box-sizing:border-box; font-family:inherit; margin-top:4px;
  }
  .ai-settings-select:focus, .ai-settings-input:focus { border-color:#7c3aed; }
  .ai-settings-key-row { display:flex; gap:6px; align-items:flex-end; }
  .ai-settings-key-row .ai-settings-input { flex:1; font-family:monospace; letter-spacing:0.5px; }
  .ai-key-eye { background:#e2e8f0; border:none; border-radius:8px; padding:8px 10px; cursor:pointer; font-size:14px; flex-shrink:0; height:36px; }
  .ai-settings-footer { display:flex; gap:8px; margin-top:2px; }
  .ai-settings-save {
    flex:1; background:linear-gradient(135deg,#7c3aed,#3b82f6);
    color:white; border:none; border-radius:8px; padding:8px;
    font-size:13px; font-weight:600; cursor:pointer; transition:opacity 0.15s;
  }
  .ai-settings-save:hover { opacity:0.9; }
  .ai-settings-status { font-size:12px; color:#16a34a; text-align:center; min-height:16px; }
  .manual-input-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(12px);
    background: #0f172a;
    color: white;
    padding: 10px 16px;
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
    font-size: 13px;
    font-weight: 700;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .manual-input-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  .sound-toggle {
    position: fixed;
    right: 24px;
    bottom: 82px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    font-size: 21px;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
    cursor: pointer;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease;
  }
  .sound-toggle:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(37, 99, 235, 0.34); }
  .sound-toggle.muted {
    background: #94a3b8;
    opacity: 0.82;
    box-shadow: 0 10px 24px rgba(100, 116, 139, 0.22);
  }
  .placement-overlay {
    position:fixed;
    inset:0;
    background:rgba(15,23,42,0.7);
    z-index:20000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:16px;
  }
  .placement-card {
    background:#fff;
    border-radius:24px;
    padding:32px 28px;
    max-width:460px;
    width:100%;
    box-shadow:0 32px 80px rgba(0,0,0,0.25);
    text-align:center;
    position:relative;
  }
  .placement-close {
    position:absolute;
    top:14px;
    right:16px;
    background:none;
    border:none;
    font-size:22px;
    color:#94a3b8;
    cursor:pointer;
    line-height:1;
  }
  .placement-progress-bar { height:6px; background:#e2e8f0; border-radius:3px; margin-bottom:20px; overflow:hidden; }
  .placement-progress-fill { height:100%; background:linear-gradient(90deg,#2563eb,#7c3aed); border-radius:3px; transition:width 0.3s ease; }
  .placement-level-badge { display:inline-block; background:#eff6ff; color:#2563eb; font-size:12px; font-weight:700; padding:3px 10px; border-radius:20px; margin-bottom:14px; }
  .placement-question { font-size:15px; font-weight:600; color:#1e293b; line-height:1.6; margin-bottom:22px; text-align:left; }
  .placement-options { display:flex; flex-direction:column; gap:10px; }
  .placement-option { padding:12px 16px; border:1.5px solid #e2e8f0; border-radius:12px; background:#fff; font-size:14px; color:#334155; cursor:pointer; text-align:left; transition:border-color 0.15s,background 0.15s; }
  .placement-option:hover { border-color:#2563eb; background:#eff6ff; color:#1e40af; }
  .placement-result-level { font-size:38px; font-weight:900; color:#1e40af; margin:10px 0 6px; }
  .placement-result-desc { font-size:14px; color:#64748b; margin-bottom:22px; line-height:1.5; }
  .placement-start-btn { width:100%; padding:14px; background:linear-gradient(135deg,#2563eb,#7c3aed); color:#fff; border:none; border-radius:14px; font-size:16px; font-weight:700; cursor:pointer; margin-bottom:12px; }
  .placement-start-btn:hover { opacity:0.9; }
  .placement-other-link { font-size:13px; color:#94a3b8; cursor:pointer; margin-bottom:14px; display:block; }
  .placement-other-link:hover { color:#2563eb; }
  .placement-level-picker { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-top:8px; }
  .placement-level-btn { padding:6px 14px; border:1.5px solid #e2e8f0; border-radius:20px; background:#f8fafc; font-size:13px; font-weight:700; cursor:pointer; transition:all 0.15s; }
  .placement-level-btn:hover { border-color:#2563eb; background:#eff6ff; color:#1e40af; }
  .ai-cfg-badge {
    font-size:10px; padding:1px 7px; border-radius:10px;
    background:rgba(255,255,255,0.25); margin-left:5px; font-weight:600; vertical-align:middle;
  }

  /* ===== Dashboard ===== */
  .dash-wrap { margin-bottom: 22px; display: flex; flex-direction: column; gap: 16px; }
  .dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
  .dash-row-single { grid-template-columns: 1fr; }
  @media (max-width: 600px) { .dash-row { grid-template-columns: 1fr; } }

  .dash-card { background: #fff; border: 1px solid #dbeafe; border-radius: 20px; padding: 22px 24px; box-shadow: 0 18px 50px rgba(37,99,235,0.08); }
  .dash-card-title { font-size: 14px; font-weight: 800; color: #334155; margin-bottom: 12px; }

  .checkin-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    border-radius: 16px;
    padding: 16px;
    color: #fff;
    margin-bottom: 14px;
    box-shadow: 0 18px 50px rgba(37,99,235,0.16);
  }
  .checkin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
  }
  .checkin-streak {
    display: flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
  }
  .checkin-flame { font-size: 20px; line-height: 1; }
  .checkin-streak-num {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
  }
  .checkin-streak-label {
    font-size: 13px;
    opacity: 0.82;
    white-space: nowrap;
  }
  .checkin-today {
    font-size: 13px;
    background: rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
  }
  .checkin-week {
    display: flex;
    justify-content: space-between;
    gap: 4px;
  }
  .checkin-card .checkin-day {
    flex: 1;
    min-width: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    color: rgba(255,255,255,0.76);
  }
  .checkin-card .checkin-day-label {
    font-size: 11px;
    opacity: 0.78;
  }
  .checkin-card .checkin-day-dot {
    font-size: 18px;
    line-height: 1;
  }
  .checkin-card .checkin-day.today .checkin-day-label {
    font-weight: 700;
    opacity: 1;
    color: #fff;
  }
  .checkin-card .checkin-day.done .checkin-day-dot {
    filter: drop-shadow(0 0 4px rgba(74,222,128,0.5));
  }

  .dash-checkin { display: flex; flex-direction: column; justify-content: space-between; }
  .dash-checkin-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 14px; }
  .dash-checkin-streak { font-size: 28px; font-weight: 800; color: #f59e0b; line-height: 1; }
  .dash-checkin-streak span { font-size: 14px; color: #64748b; font-weight: 500; margin-left: 2px; }
  .dash-checkin-status { font-size: 13px; color: #64748b; margin-top: 4px; }
  .dash-week-dots { display: flex; gap: 6px; }
  .dash-week-dot { display: flex; flex-direction: column; align-items: center; gap: 3px; }
  .dash-week-dot-circle { width: 22px; height: 22px; border-radius: 50%; background: #e2e8f0; }
  .dash-week-dot.done .dash-week-dot-circle { background: #22c55e; }
  .dash-week-dot span { font-size: 10px; color: #94a3b8; }
  .dash-progress-label { font-size: 12px; color: #64748b; margin-bottom: 4px; }
  .dash-progress-bar { background: #e2e8f0; border-radius: 99px; height: 8px; overflow: hidden; }
  .dash-progress-fill { height: 100%; background: linear-gradient(90deg,#3b82f6,#06b6d4); border-radius: 99px; transition: width .4s; }

  .dash-tasks { display: flex; flex-direction: column; }
  .dash-tasks-list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
  .dash-task { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
  .dash-task:last-child { border-bottom: none; }
  .dash-task.done .dash-task-label { text-decoration: line-through; color: #94a3b8; }
  .dash-task-icon { font-size: 18px; width: 24px; text-align: center; }
  .dash-task-label { flex: 1; font-size: 13px; color: #334155; }
  .dash-task-xp { font-size: 12px; font-weight: 700; color: #3b82f6; background: #eff6ff; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
  .dash-task-xp.claimed { color: #94a3b8; background: #f1f5f9; }

  .dash-mistake { background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #991b1b; cursor: pointer; }
  .dash-mistake-btn { margin-left: auto; background: #ef4444; color: #fff; border-radius: 8px; padding: 4px 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }

  .dash-mat-card { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
  .dash-mat-card:last-child { border-bottom: none; }
  .dash-mat-icon { font-size: 22px; width: 30px; text-align: center; }
  .dash-mat-info { flex: 1; min-width: 0; }
  .dash-mat-title { font-size: 13px; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dash-mat-meta { font-size: 11px; color: #94a3b8; margin-top: 2px; }
  .dash-mat-btn { background: #3b82f6; color: #fff; border: none; border-radius: 8px; padding: 5px 12px; font-size: 12px; cursor: pointer; white-space: nowrap; }
  .dash-empty { font-size: 13px; color: #3b82f6; cursor: pointer; padding: 8px 0; }

  .dash-course-builder { display: grid; gap: 18px; }
  .dash-course-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
  .dash-course-kicker { color: #2563eb; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
  .dash-course-heading { color: #0f172a; font-size: 22px; font-weight: 950; line-height: 1.25; }
  .dash-course-head p { margin: 8px 0 0; color: #64748b; font-size: 13px; line-height: 1.7; max-width: 680px; }
  .dash-course-count { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 900; white-space: nowrap; }
  .dash-course-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .dash-course-flow div { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px; min-width: 0; }
  .dash-course-flow b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #2563eb; color: white; font-size: 12px; margin-bottom: 8px; }
  .dash-course-flow span { display: block; color: #1e293b; font-size: 13px; font-weight: 900; }
  .dash-course-flow small { display: block; color: #64748b; font-size: 11px; margin-top: 3px; }
  .dash-course-actions { display: flex; gap: 10px; flex-wrap: wrap; }
  .dash-course-btn, .dash-course-mini, .dash-course-empty-btn {
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: all .18s;
  }
  .dash-course-btn.primary, .dash-course-mini.primary, .dash-course-empty-btn { background: #2563eb; color: #fff; border-color: #2563eb; box-shadow: 0 10px 22px rgba(37,99,235,.2); }
  .dash-course-btn.split, .dash-course-mini.split { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
  .dash-course-btn:hover, .dash-course-mini:hover, .dash-course-empty-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(37,99,235,.14); }
  .dash-course-list { display: grid; gap: 10px; }
  .dash-course-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 14px; min-width: 0; }
  .dash-course-card-main { min-width: 0; }
  .dash-course-lesson { display: inline-flex; align-items: center; border-radius: 999px; background: #fff7ed; color: #c2410c; font-size: 11px; font-weight: 900; padding: 4px 8px; margin-bottom: 7px; }
  .dash-course-title { color: #0f172a; font-size: 15px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dash-course-meta { color: #64748b; font-size: 12px; margin-top: 3px; }
  .dash-course-card-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
  .dash-course-mini { padding: 8px 11px; font-size: 12px; }
  .dash-course-empty { display: grid; gap: 8px; justify-items: start; background: #f8fafc; border: 1px dashed #bfdbfe; border-radius: 16px; padding: 18px; }
  .dash-course-empty strong { color: #0f172a; font-size: 15px; }
  .dash-course-empty span { color: #64748b; font-size: 13px; line-height: 1.6; }
  @media (max-width: 700px) {
    .dash-course-head,
    .dash-course-card {
      align-items: stretch;
      flex-direction: column;
    }
    .dash-course-flow { grid-template-columns: 1fr; }
    .dash-course-btn { flex: 1 1 140px; }
    .dash-course-card-actions { justify-content: flex-start; }
  }

/* ===== UI v0.57 dark immersive theme overrides ===== */
:root {
  --bg: #08091a;
  --bg-card: rgba(17,24,39,.72);
  --bg-card-active: rgba(99,102,241,.12);
  --border: rgba(148,163,184,.2);
  --border-active: rgba(99,102,241,.4);
  --accent: #6366f1;
  --accent2: #8b5cf6;
  --accent-grad: linear-gradient(135deg,#6366f1,#8b5cf6);
  --text-1: #f8fafc;
  --text-2: #eef1f6;
  --text-3: #d4dbe6;
  --text-4: #c2cdda;
  --text-5: #aab6c9;
  --text-6: #97a5ba;
  --gold: #fbbf24;
  --success: #34d399;
}

html,
body {
  background: var(--bg);
  color: var(--text-2);
}

body {
  background: linear-gradient(180deg, #08091a 0%, #0b1024 44%, #08091a 100%);
}

main,
.section,
.app-shell {
  background: transparent;
  color: var(--text-2);
}

.section-header h2,
.lp-section-title h2,
.profile-title,
.modal-title {
  color: var(--text-1);
}

.section-header p,
.lp-section-title p,
.muted,
.small-muted {
  color: var(--text-3);
}

.navbar {
  background: rgba(8,9,26,.97);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@media (min-width: 769px) {
  .nav-links {
    background:
      radial-gradient(circle at 30% 0%, rgba(99,102,241,.28), transparent 34%),
      linear-gradient(180deg, rgba(15,23,42,.96), rgba(8,9,26,.92));
    border: 1px solid rgba(148,163,184,.2);
    box-shadow: 0 28px 78px rgba(0,0,0,.34);
  }

  .nav-links::before {
    content: "学习导航";
    display: block;
    margin: 0 4px 12px;
    color: var(--text-5);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
  }

  .nav-links::after {
    content: "";
    display: block;
    min-height: 120px;
    margin-top: auto;
    border-radius: 20px;
    background:
      linear-gradient(135deg, rgba(99,102,241,.18), rgba(139,92,246,.08)),
      rgba(255,255,255,.04);
    border: 1px dashed rgba(148,163,184,.24);
  }

  .nav-links::-webkit-scrollbar {
    width: 0;
  }
}

.logo-icon {
  background: var(--accent-grad);
  border-radius: 9px;
  color: #fff;
  box-shadow: 0 0 16px rgba(99,102,241,.4);
}

.logo span,
.logo-text {
  color: #fff;
  font-weight: 800;
}

.level-select,
.level-badge,
#currentLevelBadge {
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.4);
  border-radius: 20px;
  color: #a5b4fc;
  font-weight: 700;
}

.rank-badge,
#rankBadge {
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 20px;
  color: var(--gold);
  font-weight: 700;
}

.nav-link {
  color: var(--text-2);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.085);
  transition: all .15s;
}

.nav-link:hover {
  color: #a5b4fc;
  background: rgba(99,102,241,.14);
  border-color: rgba(129,140,248,.28);
}

.nav-link.active,
.nav-link.on {
  background: linear-gradient(135deg,#4f46e5,#7c3aed);
  border-color: rgba(196,181,253,.42);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(99,102,241,.28);
}

.mobile-bottom-tabs {
  background: rgba(8,9,26,.97);
  border-top: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.bottom-tab {
  color: var(--text-4);
}

.bottom-tab.active {
  color: #818cf8;
}

.home-command,
.home-ui01-blue .home-command {
  background: linear-gradient(135deg, rgba(30,27,75,.96), rgba(17,24,39,.92));
  border: 1px solid rgba(129,140,248,.38);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  color: var(--text-2);
}

.home-ui01-blue .home-command::before {
  display: none;
}

.home-command-copy h1,
.home-greeting,
.home-action-label {
  color: var(--text-1);
}

.home-ui01-blue .home-greeting {
  color: var(--text-1);
}

.home-command-copy p,
.home-action-sub,
.home-progress-text,
.home-command-kicker {
  color: var(--text-3);
}

.home-command-kicker {
  background: rgba(219,234,254,.12);
  border: 1px solid rgba(219,234,254,.22);
  color: #dbeafe;
}

.home-action-sub,
.home-ui01-blue .home-action-sub,
.home-action-btn.primary .home-action-sub,
.home-ui01-blue .home-action-btn.primary .home-action-sub {
  opacity: 1;
}

.home-command-panel,
.home-action-btn,
.home-ui01-blue .home-command-panel,
.home-ui01-blue .home-action-btn {
  background: rgba(15,23,42,.72);
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 14px;
  color: var(--text-2);
}

.home-action-btn:hover,
.home-ui01-blue .home-action-btn:hover {
  background: rgba(30,41,59,.82);
  border-color: rgba(129,140,248,.45);
}

.home-action-btn.primary,
.home-ui01-blue .home-action-btn.primary {
  background: rgba(99,102,241,.22);
  border: 1px solid rgba(99,102,241,.45);
  box-shadow: 0 0 16px rgba(99,102,241,.15);
  color: #fff;
}

.home-ui01-blue .home-action-sub {
  color: var(--text-4);
}

.home-ui01-blue .home-task-item {
  color: var(--text-4);
  border-top-color: rgba(148,163,184,.24);
}

.home-ui01-blue .home-task-xp {
  color: #60a5fa;
}

.home-streak-badge,
.dash-checkin,
.home-command-panel .home-checkin-box {
  background: rgba(15,23,42,.7);
  border: 1px solid rgba(148,163,184,.2);
  border-radius: 16px;
}

.dash-checkin-streak,
.home-streak-badge strong,
.streak-number {
  color: var(--gold);
  text-shadow: 0 0 16px rgba(251,191,36,.35);
}

.home-progress-bar-wrap,
.dash-progress-bar,
.quick-progress-track {
  background: rgba(255,255,255,.07);
}

.home-progress-bar-fill,
.dash-progress-fill,
.quick-progress-fill {
  background: linear-gradient(90deg,#6366f1,#8b5cf6);
}

.dash-week-dot-circle,
.week-dot,
.checkin-day {
  background: rgba(148,163,184,.16);
  color: var(--text-4);
}

.dash-week-dot span,
.dash-checkin-status,
.dash-progress-label {
  color: var(--text-4);
}

.dash-week-dot.done .dash-week-dot-circle,
.week-dot.today,
.checkin-day.today {
  background: #f59e0b;
  color: #fff;
  box-shadow: 0 0 10px rgba(245,158,11,.4);
}

.dash-card,
.quick-home-card,
.quick-topbar,
.quick-card,
.home-rec-card,
.home-level-strip,
.feature-card,
.reading-card,
.dialogue-card,
.discover-unit-card,
.discover-entry-card,
.practice-card,
.curriculum-current,
.curriculum-list,
.lp-stat,
.lp-level-card,
.lp-step,
.lp-feature,
.lp-bottom-cta,
.profile-stat-card,
.growth-card,
.rank-ladder-modal,
.placement-card {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-2);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.dash-card-title,
.home-rec-title,
.home-level-strip-title,
.quick-home-title,
.feature-card h3,
.lp-feature h3,
.lp-level-name,
.lp-step-name,
.discover-entry-name,
.practice-card-title {
  color: var(--text-2);
}

.dash-task,
.dash-mat-card,
.grammar-table th,
.grammar-table td {
  border-color: var(--border);
}

.dash-task-label,
.dash-mat-title,
.home-rec-label,
.home-level-chip-label,
.quick-home-sub,
.feature-card p,
.lp-feature p,
.lp-level-desc,
.lp-step-desc,
.discover-entry-desc,
.practice-card-desc {
  color: var(--text-4);
}

.dash-task-xp,
.dash-mat-btn,
.quick-start-btn,
.quick-submit,
.quick-listen-btn,
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  border: none;
}

.dash-course-heading,
.dash-course-title,
.dash-course-empty strong,
.dash-course-flow span {
  color: var(--text-1);
}

.dash-course-head p,
.dash-course-meta,
.dash-course-empty span,
.dash-course-flow small {
  color: var(--text-4);
}

.dash-course-flow div,
.dash-course-card,
.dash-course-empty {
  background: rgba(255,255,255,.04);
  border-color: rgba(148,163,184,.18);
}

.dash-course-count,
.dash-course-lesson {
  background: rgba(99,102,241,.14);
  border-color: rgba(99,102,241,.25);
  color: #c4b5fd;
}

.dash-course-btn,
.dash-course-mini,
.dash-course-empty-btn {
  background: rgba(99,102,241,.12);
  border-color: rgba(99,102,241,.25);
  color: #c4b5fd;
}

.dash-course-btn.split,
.dash-course-mini.split {
  background: rgba(20,184,166,.12);
  border-color: rgba(20,184,166,.24);
  color: #99f6e4;
}

.material-lesson-card,
.material-empty-course {
  background: rgba(255,255,255,.04);
  border-color: rgba(148,163,184,.18);
}

.material-lesson-card h4,
.material-empty-course strong {
  color: var(--text-1);
}

.material-card-meta,
.material-empty-course span,
.material-lesson-source {
  color: var(--text-4);
}

.home-rec-card:hover,
.lp-level-card:hover:not(.lp-locked),
.lp-step:hover,
.lp-feature:hover,
.feature-card:hover,
.content-card:hover,
.discover-entry-card:hover,
.practice-card:hover {
  border-color: rgba(99,102,241,.4);
  box-shadow: 0 10px 30px rgba(99,102,241,.12);
}

.home-rec-num,
.lp-stat-num,
.profile-stat-card b,
.growth-card b,
.stat-number {
  color: #a5b4fc;
}

.home-level-chip,
.level-chip,
.lp-level-card,
.discover-level-btn {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.1);
  color: var(--text-3);
}

.home-level-chip.current,
.level-chip.active,
.lp-level-card.lp-current,
.discover-level-btn.active {
  background: rgba(99,102,241,.25);
  border-color: rgba(99,102,241,.5);
  color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

.home-level-chip-badge,
.lp-level-card.lp-current .lp-level-name,
.lp-step-name,
.feature-tag {
  color: #a5b4fc;
}

.lp-level-progress,
.lp-step,
.quick-choice,
.quick-input,
.sg-topic-btn,
.sg-mode-btn,
.placement-option,
input,
textarea,
select {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  color: var(--text-2);
}

.quick-choice:hover,
.placement-option:hover {
  background: rgba(99,102,241,.12);
  border-color: rgba(99,102,241,.45);
  color: #c7d2fe;
}

.lp-step-num {
  background: #4f46e5;
  color: #fff;
}

.lp-step:nth-child(n+6) .lp-step-num {
  background: #7c3aed;
}

.lp-feature-tag,
.tag,
.chip {
  background: rgba(99,102,241,.15);
  border-color: rgba(99,102,241,.25);
  color: #a5b4fc;
}

.lp-hero,
.lp-hero.compact {
  background: linear-gradient(135deg,rgba(99,102,241,.18),rgba(139,92,246,.12));
  border: 1px solid rgba(99,102,241,.25);
}

#levelBtn.level-btn {
  background: rgba(15,23,42,.78) !important;
  border-color: rgba(129,140,248,.58) !important;
  color: var(--text-1) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

#levelBtnLabel,
.level-btn .level-arrow {
  color: inherit !important;
  opacity: 1 !important;
}

.level-dropdown {
  background: rgba(15,23,42,.98) !important;
  border: 1px solid rgba(148,163,184,.22);
  box-shadow: 0 18px 48px rgba(0,0,0,.38);
}

.level-option,
.level-option .level-name {
  color: var(--text-1) !important;
}

.level-option .level-desc,
.level-option .level-lock {
  color: var(--text-3) !important;
}

.level-option:hover,
.level-option.active {
  background: rgba(99,102,241,.18) !important;
  color: var(--text-1) !important;
}

.home-scroll-ui01 .lp-hero,
.home-scroll-ui01 .lp-stat,
.home-scroll-ui01 .lp-level-card,
.home-scroll-ui01 .lp-step,
.home-scroll-ui01 .lp-feature,
.home-scroll-ui01 .home-spelling-feature,
.home-scroll-ui01 .lp-bottom-cta {
  background: var(--bg-card) !important;
  border-color: rgba(148,163,184,.26) !important;
  color: var(--text-2) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.2) !important;
}

.home-scroll-ui01 .lp-hero h1,
.home-scroll-ui01 .lp-section-title h2,
.home-scroll-ui01 .lp-step-name,
.home-scroll-ui01 .lp-feature h3,
.home-scroll-ui01 .home-spelling-feature h3,
.home-scroll-ui01 .lp-level-name,
.home-scroll-ui01 .lp-level-exam,
.home-scroll-ui01 .lp-bottom-cta h2 {
  color: var(--text-1) !important;
}

.home-scroll-ui01 .lp-hero-sub,
.home-scroll-ui01 .lp-hero-sub strong,
.home-scroll-ui01 .lp-section-title p,
.home-scroll-ui01 .lp-stat-label,
.home-scroll-ui01 .lp-step-desc,
.home-scroll-ui01 .lp-feature p,
.home-scroll-ui01 .home-spelling-feature p,
.home-scroll-ui01 .lp-level-desc,
.home-scroll-ui01 .lp-bottom-cta p {
  color: var(--text-3) !important;
  opacity: 1 !important;
}

.home-scroll-ui01 .lp-hero h1 span,
.home-scroll-ui01 .lp-stat-num,
.home-scroll-ui01 .lp-stat-num span,
.home-scroll-ui01 .lp-feature-icon {
  color: #a5b4fc !important;
}

.home-scroll-ui01 .lp-hero-badge,
.home-scroll-ui01 .lp-trust-tag,
.home-scroll-ui01 .lp-feature-tag,
.home-scroll-ui01 .btn-secondary {
  background: rgba(219,234,254,.12) !important;
  border-color: rgba(219,234,254,.24) !important;
  color: #dbeafe !important;
}

.home-scroll-ui01 .lp-level-badge {
  color: var(--text-1) !important;
}

.lp-stats,
.lp-levels,
.lp-steps,
.lp-features {
  color: var(--text-2);
}

.quick-shell {
  background: transparent;
}

.quick-card {
  border: 1px solid rgba(99,102,241,.25);
}

.quick-prompt {
  color: var(--text-1);
}

.quick-sub,
.quick-progress-text {
  color: var(--text-3);
}

footer {
  background: rgba(5,7,16,.8);
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--text-4);
}

footer a,
.footer-link {
  color: var(--text-3);
}

footer a:hover,
.footer-link:hover {
  color: var(--text-3);
}

/* ===== UI v0.58 inner dark page overrides ===== */
/* Grammar library */
#section-grammar .grammar-layout { color: var(--text-2); }
#section-grammar .grammar-toc,
#section-grammar .grammar-content {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
}
#section-grammar .grammar-toc h3,
#section-grammar .grammar-content h2,
#section-grammar .grammar-content h3,
#section-grammar .grammar-content h4 { color: var(--text-1); }
#section-grammar .grammar-content h2 { border-bottom-color: rgba(99,102,241,.28); }
#section-grammar .grammar-content p,
#section-grammar .grammar-content ul,
#section-grammar .grammar-content ol,
#section-grammar .grammar-content li { color: var(--text-2); }
#section-grammar .grammar-content code {
  background: rgba(251,191,36,.12);
  color: #fde68a;
  border: 1px solid rgba(251,191,36,.22);
}
#section-grammar .toc-item { color: var(--text-3); }
#section-grammar .toc-item:hover {
  background: rgba(99,102,241,.12);
  color: #a5b4fc;
}
#section-grammar .toc-item.active {
  background: rgba(99,102,241,.22);
  color: #c4b5fd;
  border: 1px solid rgba(99,102,241,.35);
}
#section-grammar input,
#section-grammar [type="search"],
#section-grammar .grammar-search,
#section-grammar .search-input {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: var(--text-2);
}
#section-grammar input::placeholder,
#section-grammar [type="search"]::placeholder { color: var(--text-5); }
#section-grammar .grammar-toggle-btn,
#section-grammar .discover-level-btn,
#section-grammar .filter-btn,
#section-grammar .level-chip {
  border: 1px solid rgba(255,255,255,.1);
  background: transparent;
  color: var(--text-4);
  border-radius: 20px;
}
#section-grammar .grammar-toggle-btn:hover,
#section-grammar .discover-level-btn:hover,
#section-grammar .filter-btn:hover,
#section-grammar .level-chip:hover {
  border-color: rgba(99,102,241,.45);
  color: #a5b4fc;
  background: rgba(99,102,241,.1);
}
#section-grammar .grammar-toggle-btn.active,
#section-grammar .discover-level-btn.active,
#section-grammar .filter-btn.active,
#section-grammar .level-chip.active {
  border-color: rgba(99,102,241,.6);
  background: rgba(99,102,241,.2);
  color: #a5b4fc;
}
#section-grammar .grammar-article-toolbar,
#section-grammar .grammar-table,
#section-grammar table {
  background: rgba(255,255,255,.025);
  border-color: rgba(255,255,255,.08);
  color: var(--text-2);
}
#section-grammar th,
#section-grammar td { border-color: rgba(255,255,255,.08); }

/* Smart learning path */
.curriculum-overview {
  background: linear-gradient(135deg,rgba(99,102,241,.18),rgba(139,92,246,.12));
  border: 1px solid rgba(99,102,241,.25);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.co-header h3,
.learning-path-title,
.cc-header h3 { color: var(--text-1); }
.co-header p,
.learning-path-name,
.cc-header p,
.learning-path-count { color: var(--text-4); }
.co-percent {
  color: #a5b4fc;
  text-shadow: 0 0 18px rgba(99,102,241,.35);
}
.co-bar,
.learning-path-bar { background: rgba(255,255,255,.06); }
.co-bar-fill,
.learning-path-bar-fill { background: linear-gradient(90deg,#6366f1,#8b5cf6); }
.learning-path-grid { position: relative; }
.learning-path-grid::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg,rgba(99,102,241,.8),rgba(99,102,241,.05));
  pointer-events: none;
}
.learning-path-card {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.05);
  color: var(--text-2);
  overflow: hidden;
}
.learning-path-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: rgba(255,255,255,.08);
}
.learning-path-card:hover {
  border-color: rgba(99,102,241,.4);
  box-shadow: 0 8px 22px rgba(99,102,241,.12);
}
.learning-path-card:not(.done):not(.active) { opacity: .45; }
.learning-path-card:not(.done):not(.active):nth-child(n+5) { opacity: .35; }
.learning-path-card:not(.done):not(.active):nth-child(n+9) { opacity: .25; }
.learning-path-card.active {
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.4);
  box-shadow: 0 0 20px rgba(99,102,241,.18);
  opacity: 1;
}
.learning-path-card.active::before {
  background: linear-gradient(90deg,#6366f1,#8b5cf6);
  box-shadow: 0 0 20px rgba(99,102,241,.5);
}
.learning-path-card.done {
  background: rgba(52,211,153,.06);
  border: 1px solid rgba(52,211,153,.2);
  opacity: 1;
}
.learning-path-card.done::before { background: linear-gradient(90deg,#34d399,#10b981); }
.learning-path-chapter { color: #a5b4fc; }
.learning-path-card.done .learning-path-chapter { color: #34d399; }
.learning-path-badge {
  background: rgba(99,102,241,.15);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,.25);
}
.learning-path-badge.done {
  background: rgba(52,211,153,.12);
  color: #34d399;
  border-color: rgba(52,211,153,.25);
}
.learning-path-badge.locked {
  background: rgba(255,255,255,.06);
  color: var(--text-5);
  border-color: rgba(255,255,255,.1);
}
.learning-path-card.done .learning-path-bar-fill { background: linear-gradient(90deg,#34d399,#10b981); }
.curriculum-current,
.curriculum-list {
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.08);
  color: var(--text-2);
}
.cc-step,
.curriculum-unit-card {
  background: rgba(255,255,255,.025);
  border-color: rgba(255,255,255,.07);
}
.cc-step:hover,
.curriculum-unit-card:hover {
  background: rgba(99,102,241,.1);
  border-color: rgba(99,102,241,.32);
}
.curriculum-unit-card.current {
  background: rgba(99,102,241,.14);
  border-color: rgba(99,102,241,.42);
}
.cc-step.done,
.curriculum-unit-card.done {
  background: rgba(52,211,153,.07);
  border-color: rgba(52,211,153,.22);
}
.cc-step-label { color: var(--text-3); }
.cu-num {
  background: rgba(255,255,255,.06);
  color: var(--text-3);
}
#section-smart .dictation-input,
#section-smart .writing-input {
  background: #fff;
  border: 2px solid #3b82f6;
  color: #0f172a;
  font-weight: 700;
  caret-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}
#section-smart .dictation-input::placeholder,
#section-smart .writing-input::placeholder {
  color: #64748b;
  opacity: 1;
}
#section-smart .dictation-input:focus,
#section-smart .writing-input:focus {
  background: #fff;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,.16);
}
#section-smart .dictation-input.correct,
#section-smart .writing-input.correct {
  background: #f0fdf4;
  color: #166534;
  border-color: #22c55e;
}
#section-smart .dictation-input.wrong,
#section-smart .writing-input.wrong {
  background: #fef2f2;
  color: #991b1b;
  border-color: #ef4444;
}

/* Spelling and dictation */
#section-sentence .sg-wrapper { color: var(--text-2); }
#section-sentence .sg-stats,
#section-sentence .sg-stat-box,
#section-sentence .sg-summary,
#section-sentence .sg-result-stat {
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.08);
  color: var(--text-2);
}
#section-sentence .sg-stat-num,
#section-sentence .sg-cn,
#section-sentence .sg-summary h3 { color: var(--text-1); }
#section-sentence .sg-progress-bar,
#section-sentence .sg-progress-bar-wrap { background: rgba(255,255,255,.07); }
#section-sentence .sg-progress-fill,
#section-sentence .sg-progress-bar-fill { background: linear-gradient(90deg,#6366f1,#8b5cf6); }
#section-sentence .sg-card {
  background: linear-gradient(135deg,rgba(99,102,241,.15),rgba(139,92,246,.1));
  border: 1px solid rgba(99,102,241,.35);
  border-radius: 24px;
  box-shadow: 0 22px 70px rgba(0,0,0,.22);
}
#section-sentence .sg-card-top {
  background: rgba(8,9,26,.35);
  border-bottom-color: rgba(255,255,255,.08);
}
#section-sentence .sg-card.correct-state {
  border-color: rgba(52,211,153,.55);
  box-shadow: 0 0 28px rgba(52,211,153,.15);
}
#section-sentence .sg-card.wrong-state {
  border-color: rgba(248,113,113,.55);
  box-shadow: 0 0 28px rgba(248,113,113,.13);
}
#section-sentence .sg-topic-btn,
#section-sentence .sg-mode-btn,
#section-sentence .sg-hint-btn {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: #a5b4fc;
}
#section-sentence .sg-topic-btn:hover,
#section-sentence .sg-mode-btn:hover,
#section-sentence .sg-hint-btn:hover {
  border-color: rgba(99,102,241,.45);
  background: rgba(99,102,241,.12);
}
#section-sentence .sg-topic-btn.active,
#section-sentence .sg-mode-btn.active {
  background: linear-gradient(135deg,#4f46e5,#7c3aed);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(99,102,241,.25);
}
#section-sentence .sg-topic-tag,
#section-sentence .sg-live-pill {
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.25);
  color: #a5b4fc;
}
#section-sentence .sg-answer-area,
#section-sentence .sg-answer-area.typing {
  background: #fff;
  border-color: #dbeafe;
}
#section-sentence .sg-manual-input {
  background: #fff;
  border: 2px solid #3b82f6;
  border-radius: 12px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .5px;
  caret-color: #2563eb;
}
#section-sentence .sg-manual-input::placeholder {
  color: #64748b;
  opacity: 1;
}
#section-sentence .sg-manual-input:focus {
  background: #fff;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,.14);
}
#section-sentence .sg-manual-input.correct-input {
  background: #f0fdf4;
  color: #166534;
  border-color: #22c55e;
}
#section-sentence .sg-manual-input.wrong-input {
  background: #fef2f2;
  color: #991b1b;
  border-color: #ef4444;
}
#section-sentence .sg-type-target,
#section-sentence .sg-manual-hint,
#section-sentence .sg-dict-hint-text {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
  color: var(--text-3);
}
#section-sentence .sg-dict-btn {
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  color: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: 0 0 32px rgba(99,102,241,.38);
  font-weight: 700;
}
#section-sentence .sg-dict-btn:hover { background: linear-gradient(135deg,#818cf8,#a78bfa); }
#section-sentence .sg-pool { background: rgba(8,9,26,.38); }
#section-sentence .sg-tile {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
  color: var(--text-2);
  box-shadow: none;
}
#section-sentence .sg-tile:hover,
#section-sentence .sg-tile.in-answer {
  background: rgba(99,102,241,.14);
  border-color: rgba(99,102,241,.42);
  color: #c4b5fd;
}
#section-sentence .sg-result.ok {
  background: rgba(52,211,153,.06);
  border: 1px solid rgba(52,211,153,.2);
  border-radius: 16px;
  color: #bbf7d0;
}
#section-sentence .sg-result.bad {
  background: rgba(248,113,113,.07);
  border: 1px solid rgba(248,113,113,.22);
  border-radius: 16px;
  color: #fecaca;
}
#section-sentence .sg-skip-btn {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-4);
  border-radius: 14px;
}
#section-sentence .sg-check-btn,
#section-sentence .sg-next-btn {
  background: linear-gradient(135deg,#4f46e5,#7c3aed);
  color: #fff;
  border: none;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(99,102,241,.4);
  font-weight: 700;
}
#section-sentence .sg-check-btn:hover:not(:disabled),
#section-sentence .sg-next-btn:hover:not(:disabled) {
  box-shadow: 0 8px 24px rgba(99,102,241,.48);
}
/* ===== UI v0.58 inner dark page overrides END ===== */

/* ===== Smart Hub two-column layout (sh = smart hub) v0.65 ===== */
.sh-layout {
  display: grid;
  grid-template-columns: 272px 1fr;
  gap: 20px;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}
.sh-left { display: flex; flex-direction: column; gap: 12px; min-height: 0; align-self: stretch; }

.sh-lv-card {
  background: linear-gradient(135deg,rgba(99,102,241,.18),rgba(139,92,246,.1));
  border: 1px solid rgba(99,102,241,.35);
  border-radius: 20px;
  padding: 16px;
}
.sh-lv-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-1,#f1f5f9);
  margin-bottom: 12px;
}
.sh-lv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sh-lv-stat {
  background: rgba(0,0,0,.2);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.sh-lv-val { font-size: 18px; font-weight: 800; color: #c4b5fd; line-height: 1.2; }
.sh-lv-lbl { font-size: 10px; color: #94a3b8; margin-top: 3px; }

.sh-chapters {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 14px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.sh-ch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.sh-ch-head .sh-sec-title {
  margin-bottom: 0;
}
.sh-ch-toggle {
  border: 1px solid rgba(129,140,248,.28);
  background: rgba(99,102,241,.12);
  color: #c4b5fd;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.sh-ch-current {
  width: 100%;
  border: 1px solid rgba(99,102,241,.22);
  background: rgba(99,102,241,.1);
  color: inherit;
  border-radius: 12px;
  padding: 11px 12px;
  text-align: left;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 9px;
  cursor: pointer;
}
.sh-ch-current-label {
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 900;
}
.sh-ch-current-title {
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sh-ch-current-prog {
  grid-column: 1 / -1;
  color: #94a3b8;
  font-size: 11px;
}
.sh-ch-list {
  display: block;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}
.sh-chapters.open .sh-ch-current {
  margin-bottom: 10px;
}
.sh-chapters.open .sh-ch-list {
  flex: 1;
  max-height: 280px;
}
.sh-chapters.collapsed .sh-ch-list {
  display: none;
}
.sh-sec-title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.sh-ch-item {
  padding: 9px 12px;
  border-radius: 11px;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 3px;
  border-left: 3px solid transparent;
}
.sh-ch-item:hover { background: rgba(255,255,255,.05); }
.sh-ch-item.active {
  background: rgba(99,102,241,.12);
  border-left-color: #6366f1;
}
.sh-ch-item.locked { opacity: .5; cursor: default; }
.sh-ch-name { font-size: 13px; font-weight: 600; color: #cbd5e1; }
.sh-ch-item.active .sh-ch-name { color: #c4b5fd; }
.sh-ch-prog { font-size: 11px; color: #94a3b8; margin-top: 2px; }

.sh-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; min-height: 0; align-self: stretch; }

.sh-unit-card {
  background: linear-gradient(135deg,rgba(99,102,241,.14),rgba(139,92,246,.08));
  border: 1px solid rgba(99,102,241,.35);
  border-radius: 24px;
  padding: 24px;
  flex: 0 0 auto;
}
.sh-unit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sh-unit-badge {
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.sh-unit-nav { display: flex; gap: 6px; }
.sh-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: #cbd5e1;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.sh-nav-btn:hover:not(:disabled) { background: rgba(255,255,255,.1); color: #f1f5f9; }
.sh-nav-btn:disabled { opacity: .45; cursor: default; }
.sh-unit-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-1,#f1f5f9);
  margin-bottom: 4px;
}
.sh-unit-sub { font-size: 12px; color: #94a3b8; margin-bottom: 20px; }

.sh-steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-bottom: 16px; }
.sh-step {
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.sh-step:hover { border-color: rgba(99,102,241,.4); background: rgba(99,102,241,.08); }
.sh-step.done { background: rgba(52,211,153,.07); border-color: rgba(52,211,153,.25); }
.sh-step.active {
  background: linear-gradient(135deg,rgba(99,102,241,.22),rgba(139,92,246,.14));
  border-color: rgba(99,102,241,.6);
  box-shadow: 0 0 14px rgba(99,102,241,.3);
}
.sh-step-n { font-size: 10px; color: #94a3b8; font-weight: 700; margin-bottom: 4px; }
.sh-step-icon { font-size: 16px; margin-bottom: 3px; }
.sh-step-name { font-size: 11px; font-weight: 600; color: #cbd5e1; }
.sh-step.done .sh-step-name { color: #34d399; }
.sh-step.active .sh-step-name { color: #c4b5fd; }

.sh-prog-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sh-prog-bar { flex: 1; height: 5px; background: rgba(255,255,255,.07); border-radius: 3px; overflow: hidden; }
.sh-prog-fill { height: 100%; background: linear-gradient(90deg,#6366f1,#8b5cf6); border-radius: 3px; transition: width .4s; }
.sh-prog-txt { font-size: 12px; color: #94a3b8; white-space: nowrap; }
.sh-start-btn {
  width: 100%;
  padding: 15px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg,#4f46e5,#7c3aed);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(99,102,241,.4);
  transition: all .2s;
}
.sh-start-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,.5); }

.sh-unit-list {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 14px;
  flex: 1;
  min-height: 0;
  max-height: 280px;
  overflow-y: auto;
}
.sh-ul-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 3px;
  border-left: 3px solid transparent;
}
.sh-ul-item:hover { background: rgba(255,255,255,.05); }
.sh-ul-item.active { background: rgba(99,102,241,.1); border-left-color: #6366f1; }
.sh-ul-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(99,102,241,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #c4b5fd;
  flex-shrink: 0;
}
.sh-ul-num.done { background: rgba(52,211,153,.15); color: #34d399; }
.sh-ul-name { font-size: 13px; font-weight: 600; color: var(--text-2,#e2e8f0); }
.sh-ul-meta { font-size: 11px; color: #94a3b8; }
.sh-ul-prog { margin-left: auto; font-size: 11px; color: #818cf8; font-weight: 600; white-space: nowrap; }

@media (max-width: 700px) {
  .sh-layout { grid-template-columns: 1fr; padding: 14px 12px 60px; }
  .sh-left { display: none; }
  .sh-steps { grid-template-columns: repeat(5,1fr); gap: 6px; }
  .sh-step { padding: 10px 4px; }
  .sh-step-icon { font-size: 14px; }
  .sh-step-name { font-size: 10px; }
}

/* ===== Discover two-column layout (dc = discover column) v0.66 ===== */
.dc-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 20px 60px;
}
.dc-left {
  display: flex;
  flex-direction: column;
}
.dc-lv-title,
.dc-nav-title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 8px 10px;
}
.dc-nav-title { margin-top: 20px; }
.dc-lv-list,
.dc-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dc-lv-item,
.dc-nav-item {
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}
.dc-lv-item:hover,
.dc-nav-item:hover {
  background: rgba(255,255,255,.05);
  color: #f8fafc;
}
.dc-lv-item.active,
.dc-nav-item.active {
  background: rgba(99,102,241,.14);
  color: #c4b5fd;
}
.dc-lv-item.locked {
  opacity: .55;
  cursor: default;
}
.dc-lv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dc-nav-icon { font-size: 15px; }
.dc-right { min-width: 0; }
.dc-section { display: none; }
.dc-section.show { display: block; }

.dc-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.dc-main-card {
  border-radius: 20px;
  padding: 28px 24px;
  cursor: pointer;
  transition: all .2s;
}
.dc-main-card:hover { transform: translateY(-2px); }
.dc-vocab-card {
  background: linear-gradient(135deg,rgba(59,130,246,.14),rgba(37,99,235,.07));
  border: 1px solid rgba(59,130,246,.3);
}
.dc-gram-card {
  background: linear-gradient(135deg,rgba(139,92,246,.14),rgba(109,40,217,.07));
  border: 1px solid rgba(139,92,246,.3);
}
.dc-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.dc-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-1,#f1f5f9);
  margin-bottom: 4px;
}
.dc-card-meta {
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 14px;
}
.dc-card-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 4px;
}
.dc-card-stat {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-1,#f1f5f9);
}
.dc-card-stat-lbl {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}
.dc-card-action {
  font-size: 13px;
  font-weight: 700;
  margin-top: 16px;
}

.dc-upload-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 24px;
  max-width: 580px;
}
.dc-upload-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-1,#f1f5f9);
  margin-bottom: 4px;
}
.dc-upload-desc {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 20px;
}

@media (max-width: 700px) {
  .dc-layout {
    grid-template-columns: 1fr;
    padding: 12px 12px 60px;
    gap: 14px;
  }
  .dc-lv-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .dc-lv-item {
    padding: 6px 10px;
    font-size: 12px;
  }
  .dc-duo { grid-template-columns: 1fr; }
}
/* ===== Discover two-column layout END ===== */

/* ===== Pinxue upgrade UI (px = pinxue) v0.68 ===== */
.px-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 16px 48px;
}
.px-heading h2 {
  margin: 0 0 4px;
  color: #f8fafc;
  font-size: 22px;
  font-weight: 900;
}
.px-heading p {
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 13px;
}
.px-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.px-mode-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(99,102,241,.22);
  border-radius: 18px;
  padding: 20px;
  transition: all .18s;
}
.px-mode-card:hover {
  background: rgba(99,102,241,.1);
  border-color: rgba(99,102,241,.55);
  transform: translateY(-2px);
}
.px-mode-icon {
  font-size: 30px;
  margin-bottom: 8px;
}
.px-mode-name {
  color: #f8fafc;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}
.px-mode-desc {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.5;
  min-height: 36px;
}
.px-mode-progress {
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 700;
  margin: 12px 0 10px;
}
.px-mode-start,
.px-ready-btn,
.px-btn-primary {
  border: none;
  background: linear-gradient(135deg,#4f46e5,#7c3aed);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(99,102,241,.35);
}
.px-mode-start {
  width: 100%;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
}
.px-diff-panel {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  padding: 16px;
}
.px-panel-title {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}
.px-diff-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
}
.px-diff-btn {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  border-radius: 12px;
  padding: 10px 8px;
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.px-diff-btn span {
  font-size: 13px;
  font-weight: 800;
}
.px-diff-btn small {
  color: #94a3b8;
  font-size: 10px;
}
.px-diff-btn.active {
  background: linear-gradient(135deg,#4f46e5,#7c3aed);
  border-color: transparent;
  color: #fff;
}
.px-diff-btn.active small { color: rgba(255,255,255,.82); }
.px-custom-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.px-toggle {
  flex: 1;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: #cbd5e1;
  border-radius: 12px;
  padding: 9px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.px-toggle.active {
  border-color: rgba(52,211,153,.45);
  background: rgba(52,211,153,.12);
  color: #86efac;
}
.px-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(2,6,23,.72);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.px-modal-box {
  width: min(560px, 100%);
  max-height: min(720px, 90vh);
  overflow: auto;
  background: #111827;
  border: 1px solid rgba(99,102,241,.35);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}
.px-modal-title {
  color: #f8fafc;
  font-size: 22px;
  font-weight: 900;
}
.px-modal-meta {
  color: #94a3b8;
  font-size: 12px;
  margin: 4px 0 16px;
}
.px-preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.px-preview-item {
  display: flex;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}
.px-preview-index {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(99,102,241,.2);
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 900;
}
.px-preview-en {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}
.px-preview-cn,
.px-preview-more,
.px-preview-empty {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 2px;
}
.px-preview-more,
.px-preview-empty { text-align: center; padding: 12px; }
.px-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}
.px-btn {
  border-radius: 13px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.px-btn-ghost {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: #cbd5e1;
}
.px-btn:disabled {
  opacity: .45;
  cursor: default;
}
.px-ready-screen {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}
.px-back {
  border: none;
  background: none;
  color: #cbd5e1;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 16px;
}
.px-ready-card {
  min-height: 320px;
  border-radius: 24px;
  border: 1px solid rgba(99,102,241,.35);
  background: linear-gradient(135deg,rgba(99,102,241,.16),rgba(139,92,246,.08));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 34px 22px;
}
.px-ready-kicker {
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
}
.px-ready-card h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 34px;
  font-weight: 950;
}
.px-ready-card p {
  color: #cbd5e1;
  font-size: 14px;
  margin: 10px 0 24px;
}
.px-ready-btn {
  border-radius: 16px;
  padding: 14px 38px;
  font-size: 16px;
}
.px-exercise-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.px-progress-count {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 900;
}
.px-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.px-tool-btn {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: #cbd5e1;
  border-radius: 11px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.px-tool-btn.active {
  border-color: rgba(99,102,241,.55);
  background: rgba(99,102,241,.18);
  color: #c4b5fd;
}
.px-timer {
  min-width: 82px;
  text-align: right;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 900;
}
.px-shell-v2 {
  max-width: 860px;
  padding-top: 18px;
}
.px-focus-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}
.px-focus-copy {
  border: 1px solid rgba(99,102,241,.24);
  background:
    radial-gradient(circle at 0 0, rgba(56,189,248,.14), transparent 34%),
    linear-gradient(135deg, rgba(79,70,229,.18), rgba(15,23,42,.18));
  border-radius: 18px;
  padding: 24px;
}
.px-focus-copy h2 {
  margin: 0 0 10px;
  color: #f8fafc;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 950;
}
.px-focus-copy p {
  max-width: 620px;
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.8;
}
.px-focus-score {
  border: 1px solid rgba(52,211,153,.28);
  background: linear-gradient(160deg, rgba(20,184,166,.16), rgba(15,23,42,.35));
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.px-focus-score span {
  color: #99f6e4;
  font-size: 12px;
  font-weight: 900;
}
.px-focus-score strong {
  color: #f8fafc;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 950;
}
.px-focus-score small {
  color: #94a3b8;
  font-size: 14px;
}
.px-material-context {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(34,197,94,.28);
  background: rgba(20,83,45,.22);
  border-radius: 16px;
  padding: 14px 16px;
}
.px-material-context div { min-width: 0; }
.px-material-context span {
  display: block;
  color: #86efac;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 4px;
}
.px-material-context strong {
  display: block;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.px-material-context small {
  display: block;
  color: #bbf7d0;
  font-size: 12px;
  margin-top: 3px;
}
.px-shell-content-first .px-focus-hero {
  margin-bottom: 16px;
}
.px-step-panel {
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(15,23,42,.54);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
}
.px-step-panel.active {
  border-color: rgba(99,102,241,.38);
  background: linear-gradient(145deg, rgba(79,70,229,.13), rgba(15,23,42,.62));
}
.px-step-headline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.px-step-headline h3 {
  margin: 0 0 4px;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 950;
}
.px-step-headline p {
  margin: 0;
  color: #a8b3cf;
  font-size: 13px;
  line-height: 1.6;
}
.px-step-index {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #4f46e5;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 0 20px rgba(79,70,229,.35);
}
.px-step-index.muted {
  background: rgba(148,163,184,.18);
  color: #94a3b8;
  box-shadow: none;
}
.px-source-grid {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(0, 1.6fr);
  gap: 12px;
  margin-bottom: 16px;
}
.px-source-materials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.px-source-card {
  min-width: 0;
  text-align: left;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: inherit;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
}
.px-source-card:hover,
.px-source-card.active {
  border-color: rgba(52,211,153,.48);
  background: rgba(20,184,166,.12);
  transform: translateY(-1px);
}
.px-source-card-system {
  min-height: 150px;
  background: linear-gradient(145deg, rgba(14,165,233,.12), rgba(15,23,42,.42));
}
.px-source-kicker {
  display: block;
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 950;
  margin-bottom: 8px;
}
.px-source-card strong {
  display: block;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 950;
  margin-bottom: 7px;
}
.px-source-card small {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.55;
  min-height: 38px;
}
.px-source-card em {
  display: inline-flex;
  margin-top: 10px;
  color: #86efac;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}
.px-source-empty {
  border: 1px dashed rgba(148,163,184,.22);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,.03);
  min-height: 150px;
}
.px-source-empty strong,
.px-source-empty span {
  display: block;
}
.px-source-empty strong {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 950;
  margin-bottom: 6px;
}
.px-source-empty span {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.55;
}
.px-mini-btn,
.px-change-content {
  border: 1px solid rgba(99,102,241,.35);
  background: rgba(99,102,241,.16);
  color: #c4b5fd;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.px-mini-btn {
  margin-top: 12px;
}
.px-range-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 10px;
}
.px-range-head strong {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 950;
}
.px-range-head span {
  color: #94a3b8;
  font-size: 12px;
}
.px-content-panel {
  margin-bottom: 18px;
}
.px-content-panel-selected .px-step-headline {
  align-items: center;
  margin-bottom: 0;
}
.px-content-panel-selected .px-step-headline > div {
  min-width: 0;
  flex: 1;
}
.px-content-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.px-content-card {
  min-width: 0;
  text-align: left;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all .18s;
}
.px-content-card:hover,
.px-content-card.active {
  border-color: rgba(99,102,241,.55);
  background: rgba(99,102,241,.14);
  transform: translateY(-1px);
}
.px-content-icon {
  display: block;
  font-size: 24px;
  margin-bottom: 10px;
}
.px-content-card strong {
  display: block;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 950;
  margin-bottom: 5px;
}
.px-content-card small {
  display: block;
  min-height: 38px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.55;
}
.px-content-card em {
  display: inline-flex;
  margin-top: 10px;
  color: #c4b5fd;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.px-custom-row-content {
  max-width: 420px;
}
.px-mode-disabled {
  border: 1px dashed rgba(148,163,184,.22);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 18px;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}
.px-mode-step .px-step-headline {
  align-items: center;
}
.px-mode-step .px-step-headline > div {
  min-width: 0;
  flex: 1;
}
.px-mode-locked {
  border: 1px dashed rgba(148,163,184,.24);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 6px;
  color: #94a3b8;
}
.px-mode-locked strong {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 950;
}
.px-mode-locked span {
  font-size: 12px;
  line-height: 1.55;
}
.px-mode-step-head {
  margin-top: 12px;
}
.px-mode-grid-choice {
  margin-bottom: 0;
}
.px-mode-card-choice {
  display: flex;
  flex-direction: column;
}
.px-practice-mode-switch {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(99,102,241,.22);
  background: rgba(15,23,42,.62);
  border-radius: 16px;
  padding: 10px;
}
.px-practice-mode-meta b {
  display: block;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 950;
}
.px-practice-mode-meta span {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  margin-top: 2px;
}
.px-practice-mode-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.px-practice-mode-btn {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  color: #cbd5e1;
  border-radius: 12px;
  padding: 8px 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.px-practice-mode-btn.active {
  border-color: rgba(99,102,241,.62);
  background: rgba(99,102,241,.22);
  color: #fff;
}
.px-practice-mode-btn span {
  font-size: 16px;
}
.px-practice-mode-btn strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
}
.px-writing-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.px-path-item {
  min-height: 94px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding: 14px;
}
.px-path-item b {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 50%;
  background: rgba(99,102,241,.2);
  color: #c4b5fd;
  font-size: 12px;
}
.px-path-item span {
  display: block;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 900;
}
.px-path-item small {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.45;
}
.px-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 12px;
}
.px-section-head h3 {
  margin: 0 0 3px;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 900;
}
.px-section-head p {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
}
.px-mode-grid-v2 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.px-mode-grid-v2 .px-mode-card {
  min-height: 206px;
  padding: 16px;
  border-radius: 16px;
}
.px-mode-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.px-mode-grid-v2 .px-mode-icon {
  margin: 0;
  font-size: 24px;
}
.px-mode-tag {
  color: #a5b4fc;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.px-mode-grid-v2 .px-mode-name {
  font-size: 15px;
}
.px-mode-grid-v2 .px-mode-desc {
  min-height: 40px;
}
.px-mode-grid-v2 .px-mode-start {
  margin-top: auto;
}
.px-diff-panel-v2 {
  margin-top: 4px;
}

/* 核心输入训练 / 辅助感知训练 分区 */
.px-mode-grid-core {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 6px;
}
.px-mode-grid-aux {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 6px;
}
.px-section-head-aux {
  margin-top: 14px;
}
/* 核心卡片：强调边框 + 主色调 */
.px-mode-card-core {
  border: 1px solid rgba(99,102,241,.38) !important;
  background: linear-gradient(145deg, rgba(99,102,241,.14), rgba(15,23,42,.5)) !important;
}
.px-mode-card-core .px-mode-name {
  color: #e0e7ff;
  font-size: 16px;
}
.px-mode-card-core .px-mode-start {
  background: #4f46e5;
  border-color: #4f46e5;
}
.px-mode-card-core .px-mode-start:hover {
  background: #4338ca;
}
.px-mode-tag-core {
  background: rgba(99,102,241,.22) !important;
  color: #a5b4fc !important;
  border: 1px solid rgba(99,102,241,.3) !important;
}
/* 辅助卡片：低调样式 */
.px-mode-card-aux {
  border: 1px solid rgba(255,255,255,.07) !important;
  background: rgba(15,23,42,.35) !important;
  opacity: .88;
}
.px-mode-card-aux .px-mode-name {
  color: #cbd5e1;
  font-size: 14px;
}
.px-mode-card-aux .px-mode-start {
  background: rgba(99,102,241,.22);
  border-color: rgba(99,102,241,.3);
  font-size: 13px;
}
.px-mode-card-aux .px-mode-start:hover {
  background: rgba(99,102,241,.36);
}
/* 去掉 desc 固定最小高度，避免大字号错位 */
.px-mode-grid-v2 .px-mode-desc,
.px-mode-grid-core .px-mode-desc,
.px-mode-grid-aux .px-mode-desc {
  min-height: unset;
}

@media (max-width: 700px) {
  .px-focus-hero {
    grid-template-columns: 1fr;
  }
  .px-focus-copy {
    padding: 20px;
  }
  .px-focus-copy h2 {
    font-size: 24px;
  }
  .px-focus-score {
    min-height: 90px;
  }
  .px-material-context {
    align-items: stretch;
    flex-direction: column;
  }
  .px-source-grid {
    grid-template-columns: 1fr;
  }
  .px-writing-path {
    grid-template-columns: 1fr 1fr;
  }
  .px-content-grid {
    grid-template-columns: 1fr 1fr;
  }
  .px-mode-grid-v2,
  .px-mode-grid-core,
  .px-mode-grid-aux {
    grid-template-columns: 1fr 1fr;
  }
  .px-practice-mode-switch {
    grid-template-columns: 1fr;
  }
  .px-diff-grid { grid-template-columns: 1fr 1fr; }
  .px-modal-actions { flex-direction: column-reverse; }
  .px-btn { width: 100%; }
  .px-exercise-top { align-items: flex-start; flex-direction: column; }
  .px-toolbar { width: 100%; justify-content: space-between; }
}
@media (max-width: 430px) {
  .px-step-panel {
    padding: 14px;
  }
  .px-step-headline,
  .px-range-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .px-source-materials {
    grid-template-columns: 1fr;
  }
  .px-writing-path {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .px-path-item {
    min-height: 74px;
    padding: 10px 7px;
  }
  .px-path-item b {
    width: 20px;
    height: 20px;
    margin-bottom: 6px;
    font-size: 11px;
  }
  .px-path-item span {
    font-size: 11px;
  }
  .px-path-item small {
    display: none;
  }
  .px-content-grid,
  .px-mode-grid-v2,
  .px-mode-grid-core,
  .px-mode-grid-aux {
    grid-template-columns: 1fr;
  }
  .px-practice-mode-buttons {
    grid-template-columns: 1fr 1fr;
  }
}
/* ===== Pinxue upgrade UI END ===== */

/* ===== Retell workspace UI ===== */
.rt-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 22px 16px 54px;
  color: var(--text-2);
}
.rt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}
.rt-hero > div:first-child {
  border: 1px solid rgba(99,102,241,.24);
  background:
    radial-gradient(circle at 0 0, rgba(45,212,191,.14), transparent 35%),
    linear-gradient(135deg, rgba(30,41,105,.7), rgba(17,24,39,.48));
  border-radius: 18px;
  padding: 24px;
}
.rt-hero h2 {
  margin: 0 0 8px;
  color: var(--text-1);
  font-size: 28px;
  line-height: 1.16;
  font-weight: 950;
}
.rt-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.8;
}
.rt-hero-stats {
  border: 1px solid rgba(20,184,166,.34);
  background: linear-gradient(180deg, rgba(20,184,166,.13), rgba(8,47,73,.16));
  border-radius: 18px;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 120px;
}
.rt-hero-stats span {
  color: #99f6e4;
  font-size: 12px;
  font-weight: 800;
}
.rt-hero-stats strong {
  color: #fff;
  font-size: 38px;
  line-height: 1;
  margin-top: 8px;
  font-weight: 950;
}
.rt-hero-stats small {
  color: #94a3b8;
  font-size: 17px;
  margin-left: 2px;
}
.rt-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.rt-flow div {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding: 13px 14px;
}
.rt-flow b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: rgba(99,102,241,.22);
  color: #c4b5fd;
  font-size: 12px;
}
.rt-flow span,
.rt-flow small {
  display: block;
  min-width: 0;
}
.rt-flow span {
  color: var(--text-1);
  font-size: 14px;
  font-weight: 900;
}
.rt-flow small {
  margin-top: 2px;
  color: var(--text-5);
  font-size: 11px;
}
.rt-import-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .86fr);
  gap: 14px;
  margin-bottom: 14px;
}
.rt-panel,
.rt-workspace {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(17,24,39,.66);
  border-radius: 18px;
  box-shadow: 0 20px 54px rgba(0,0,0,.18);
}
.rt-panel {
  padding: 18px;
}
.rt-panel-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.rt-panel-title > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(99,102,241,.22);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 950;
}
.rt-panel-title b {
  display: block;
  color: var(--text-1);
  font-size: 15px;
  line-height: 1.25;
}
.rt-panel-title small {
  display: block;
  color: var(--text-5);
  font-size: 12px;
  line-height: 1.55;
  margin-top: 2px;
}
.rt-input,
.rt-textarea,
.rt-transcript {
  width: 100%;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(8,9,26,.58);
  color: var(--text-1);
  border-radius: 12px;
  outline: none;
  box-sizing: border-box;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.rt-input {
  height: 42px;
  padding: 0 13px;
  font-size: 13px;
  margin-bottom: 10px;
}
.rt-textarea {
  min-height: 142px;
  resize: vertical;
  padding: 13px;
  font-size: 13px;
  line-height: 1.65;
}
.rt-input::placeholder,
.rt-textarea::placeholder,
.rt-transcript::placeholder {
  color: var(--text-6);
}
.rt-input:focus,
.rt-textarea:focus,
.rt-transcript:focus {
  border-color: rgba(99,102,241,.62);
  background: rgba(8,9,26,.78);
  box-shadow: 0 0 0 4px rgba(99,102,241,.14);
}
.rt-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.rt-upload-row input[type="file"] {
  min-width: 0;
  color: var(--text-4);
  font-size: 12px;
}
.rt-btn,
.rt-record-btn {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.055);
  color: var(--text-3);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s, border-color .16s, background .16s, color .16s, box-shadow .16s;
}
.rt-btn:hover,
.rt-record-btn:hover {
  border-color: rgba(129,140,248,.44);
  background: rgba(99,102,241,.12);
  color: #fff;
}
.rt-btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg,#4f46e5,#7c3aed);
  color: #fff;
  box-shadow: 0 10px 24px rgba(99,102,241,.32);
}
.rt-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(99,102,241,.42);
}
.rt-file-status {
  margin-top: 10px;
  min-height: 22px;
  color: var(--text-5);
  font-size: 12px;
  line-height: 1.55;
}
.rt-source-list {
  display: grid;
  gap: 8px;
}
.rt-source-subtitle {
  margin: 14px 0 8px;
  color: #99f6e4;
  font-size: 12px;
  font-weight: 900;
}
.rt-source-card {
  width: 100%;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.045);
  color: var(--text-3);
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s, background .16s, transform .16s;
}
.rt-source-card:hover {
  border-color: rgba(20,184,166,.42);
  background: rgba(20,184,166,.09);
  transform: translateY(-1px);
}
.rt-source-card strong,
.rt-source-card span,
.rt-source-card em {
  display: block;
}
.rt-source-card strong {
  color: var(--text-1);
  font-size: 13px;
  line-height: 1.3;
}
.rt-source-card span {
  margin-top: 4px;
  color: var(--text-5);
  font-size: 11px;
}
.rt-source-card em {
  margin-top: 8px;
  color: #60a5fa;
  font-style: normal;
  font-size: 11px;
  font-weight: 850;
}
.rt-source-card-soft:hover {
  border-color: rgba(251,191,36,.38);
  background: rgba(251,191,36,.08);
}
.rt-files-panel {
  margin-bottom: 14px;
}
.rt-file-list {
  display: grid;
  gap: 9px;
}
.rt-file-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}
.rt-file-card button {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.045);
  color: var(--text-3);
  border-radius: 12px;
  cursor: pointer;
}
.rt-file-card > button:first-child {
  min-width: 0;
  padding: 12px 13px;
  text-align: left;
}
.rt-file-card strong,
.rt-file-card span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rt-file-card strong {
  color: var(--text-1);
  font-size: 14px;
}
.rt-file-card span {
  margin-top: 4px;
  color: var(--text-5);
  font-size: 11px;
}
.rt-file-card.active > button:first-child {
  border-color: rgba(99,102,241,.58);
  background: rgba(99,102,241,.18);
}
.rt-delete {
  padding: 0 12px;
  color: #fca5a5 !important;
}
.rt-workspace {
  padding: 18px;
}
.rt-work-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.rt-work-head h3 {
  margin: 0 0 4px;
  color: var(--text-1);
  font-size: 18px;
  font-weight: 950;
}
.rt-work-head p {
  margin: 0;
  color: var(--text-5);
  font-size: 12px;
}
.rt-listen-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.rt-rate-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: var(--text-4);
  font-size: 12px;
  font-weight: 850;
}
.rt-rate-control input {
  width: 108px;
  accent-color: #22c55e;
}
.rt-rate-control span {
  min-width: 30px;
  color: #99f6e4;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.rt-work-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(280px, .9fr);
  gap: 12px;
  align-items: stretch;
}
.rt-segments {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}
.rt-segments button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--text-4);
  border-radius: 12px;
  padding: 9px;
  cursor: pointer;
}
.rt-segments button.active {
  border-color: rgba(99,102,241,.62);
  background: rgba(99,102,241,.2);
  color: #fff;
}
.rt-segments b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(99,102,241,.24);
  color: #c4b5fd;
  font-size: 11px;
}
.rt-segments span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}
.rt-segments em {
  color: #99f6e4;
  font-style: normal;
  font-size: 12px;
  text-align: right;
}
.rt-source-pane,
.rt-record-pane {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(8,9,26,.34);
  border-radius: 16px;
  padding: 16px;
}
.rt-pane-label {
  color: #99f6e4;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.rt-source-pane p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.85;
}
.rt-source-text .rt-word {
  border-radius: 5px;
  padding: 1px 2px;
  transition: background .12s, color .12s, box-shadow .12s;
}
.rt-source-text .rt-word.active {
  background: rgba(248,113,113,.2);
  color: #fecaca;
  box-shadow: 0 0 0 1px rgba(248,113,113,.22);
}
.rt-source-text .rt-word.missed {
  background: rgba(245,158,11,.16);
  color: #fde68a;
  box-shadow: 0 0 0 1px rgba(245,158,11,.22);
}
.rt-shadow-stage {
  margin-top: 14px;
  border: 1px solid rgba(99,102,241,.18);
  background: rgba(99,102,241,.07);
  border-radius: 14px;
  padding: 12px;
}
.rt-shadow-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.rt-shadow-head b {
  color: var(--text-1);
  font-size: 13px;
  font-weight: 950;
}
.rt-shadow-head span {
  color: var(--text-5);
  font-size: 11px;
  text-align: right;
}
.rt-sentence-list {
  display: grid;
  gap: 8px;
}
.rt-sentence-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}
.rt-sentence-text {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(8,9,26,.32);
  color: var(--text-2);
  border-radius: 11px;
  padding: 9px 10px;
  text-align: left;
  font-size: 13px;
  line-height: 1.55;
  cursor: pointer;
}
.rt-sentence-text:hover {
  border-color: rgba(99,102,241,.36);
  background: rgba(99,102,241,.1);
}
.rt-sentence-actions {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.rt-mini-btn {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.055);
  color: var(--text-3);
  border-radius: 10px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}
.rt-mini-btn:hover {
  border-color: rgba(20,184,166,.38);
  background: rgba(20,184,166,.1);
  color: #99f6e4;
}
.rt-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.rt-keywords span {
  border: 1px solid rgba(20,184,166,.25);
  background: rgba(20,184,166,.09);
  color: #99f6e4;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
}
.rt-record-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.rt-record-btn {
  border-color: rgba(20,184,166,.42);
  background: rgba(20,184,166,.12);
  color: #99f6e4;
}
.rt-record-btn.recording {
  border-color: rgba(248,113,113,.48);
  background: rgba(248,113,113,.14);
  color: #fecaca;
}
.rt-waveform {
  display: block;
  width: 100%;
  height: 78px;
  margin: 0 0 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(8,9,26,.48);
  border-radius: 12px;
}
.rt-waveform.active {
  border-color: rgba(94,234,212,.32);
  box-shadow: 0 0 0 4px rgba(20,184,166,.08);
}
.rt-compare-tools {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.rt-self-playback {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  border-radius: 12px;
  padding: 8px 10px;
  color: var(--text-4);
  font-size: 12px;
}
.rt-self-playback span {
  display: block;
  margin-bottom: 5px;
  color: #99f6e4;
  font-weight: 900;
}
.rt-self-playback.muted {
  color: var(--text-5);
}
.rt-transcript {
  min-height: 164px;
  resize: vertical;
  padding: 13px;
  font-size: 13px;
  line-height: 1.65;
}
.rt-submit {
  width: 100%;
  margin-top: 10px;
}
.rt-score-card {
  margin-top: 12px;
  border: 1px solid rgba(20,184,166,.24);
  background: rgba(20,184,166,.08);
  border-radius: 14px;
  padding: 12px;
}
.rt-score-card strong {
  display: inline-block;
  margin-right: 8px;
  color: #99f6e4;
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}
.rt-score-card span {
  color: var(--text-1);
  font-size: 13px;
  font-weight: 900;
}
.rt-score-card small {
  display: block;
  margin-top: 7px;
  color: var(--text-5);
  font-size: 11px;
}
.rt-score-card.muted {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}
.rt-score-card.muted strong {
  color: #c4b5fd;
}
.rt-score-card-rich {
  border-color: rgba(129,140,248,.22);
  background: rgba(15,23,42,.54);
}
.rt-score-top {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.rt-score-dial {
  --rt-score: 0;
  --rt-score-color: #ef4444;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(circle, rgba(15,23,42,.96) 57%, transparent 59%),
    conic-gradient(var(--rt-score-color) calc(var(--rt-score) * 1%), rgba(148,163,184,.18) 0);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.rt-score-dial strong {
  margin: 0;
  color: #fff;
  font-size: 25px;
  line-height: 1;
}
.rt-score-dial span {
  margin-top: 30px;
  color: var(--text-5);
  font-size: 10px;
  font-weight: 900;
  position: absolute;
}
.rt-score-copy b {
  color: var(--text-1);
  font-size: 13px;
  font-weight: 950;
}
.rt-score-copy small {
  margin-top: 3px;
}
.rt-score-breakdown {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}
.rt-score-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: center;
}
.rt-score-row span,
.rt-score-row b {
  color: var(--text-4);
  font-size: 11px;
  font-weight: 900;
}
.rt-score-row b {
  text-align: right;
}
.rt-score-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148,163,184,.14);
}
.rt-score-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ef4444;
}
.rt-score-track i.mid {
  background: #f59e0b;
}
.rt-score-track i.high {
  background: #22c55e;
}
.rt-missed-words {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.rt-missed-words b {
  width: 100%;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 950;
}
.rt-missed-words span {
  color: #fde68a;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.24);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 850;
}
.rt-missed-words.clear b {
  color: #99f6e4;
}
.rt-missed-words.clear span {
  color: #99f6e4;
  background: rgba(20,184,166,.1);
  border-color: rgba(20,184,166,.22);
}
.rt-ai-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.rt-ai-tools small {
  margin: 0;
  color: var(--text-5);
  font-size: 11px;
}
.rt-ai-feedback {
  margin-top: 10px;
  border: 1px solid rgba(96,165,250,.22);
  background: rgba(96,165,250,.08);
  color: var(--text-3);
  border-radius: 12px;
  padding: 10px;
  font-size: 12px;
  line-height: 1.65;
}
.rt-history-panel {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.045);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
}
.rt-history-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.rt-history-head b {
  color: var(--text-1);
  font-size: 14px;
  font-weight: 950;
}
.rt-history-head span {
  color: var(--text-5);
  font-size: 11px;
}
.rt-history-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.rt-history-stats div {
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(8,9,26,.28);
  border-radius: 12px;
  padding: 9px;
  text-align: center;
}
.rt-history-stats strong,
.rt-history-stats span {
  display: block;
}
.rt-history-stats strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 950;
}
.rt-history-stats span {
  color: var(--text-5);
  font-size: 11px;
  margin-top: 2px;
}
.rt-heatmap {
  display: grid;
  grid-template-columns: repeat(21, minmax(0, 1fr));
  gap: 4px;
}
.rt-heat-cell {
  min-width: 0;
  height: 18px;
  border-radius: 5px;
  background: rgba(148,163,184,.12);
  color: #fff;
  font-size: 9px;
  line-height: 18px;
  text-align: center;
  font-weight: 850;
}
.rt-heat-cell.low {
  background: rgba(59,130,246,.28);
}
.rt-heat-cell.mid {
  background: rgba(20,184,166,.36);
}
.rt-heat-cell.strong {
  background: rgba(34,197,94,.5);
}
.rt-feedback {
  margin-top: 10px;
  color: var(--text-3);
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.6;
}
.rt-audio {
  width: 100%;
  margin: 8px 0 10px;
}
.rt-empty,
.rt-empty-mini {
  color: var(--text-5);
  border: 1px dashed rgba(255,255,255,.11);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  font-size: 13px;
}
.rt-empty-mini {
  padding: 14px;
  font-size: 12px;
}
@media (max-width: 980px) {
  .rt-hero,
  .rt-import-grid,
  .rt-work-grid {
    grid-template-columns: 1fr;
  }
  .rt-hero-stats {
    min-height: auto;
  }
  .rt-segments {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .rt-segments button {
    min-width: 120px;
  }
}
@media (max-width: 700px) {
  .rt-shell {
    padding: 12px 0 88px;
  }
  .rt-hero h2 {
    font-size: 22px;
  }
  .rt-hero > div:first-child,
  .rt-panel,
  .rt-workspace {
    padding: 14px;
    border-radius: 16px;
  }
  .rt-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rt-upload-row,
  .rt-file-card,
  .rt-work-head,
  .rt-listen-tools,
  .rt-record-actions,
  .rt-compare-tools {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
  .rt-upload-row .rt-btn,
  .rt-work-head .rt-btn,
  .rt-listen-tools .rt-btn,
  .rt-record-actions .rt-btn,
  .rt-record-actions .rt-record-btn {
    width: 100%;
  }
  .rt-rate-control {
    justify-content: space-between;
  }
  .rt-rate-control input {
    width: min(180px, 52vw);
  }
  .rt-delete {
    min-height: 38px;
  }
  .rt-sentence-row {
    grid-template-columns: 1fr;
  }
  .rt-score-top,
  .rt-history-stats {
    grid-template-columns: 1fr;
  }
  .rt-score-dial {
    margin: 0 auto;
  }
  .rt-sentence-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .rt-mini-btn {
    min-height: 34px;
  }
  .rt-textarea,
  .rt-transcript {
    min-height: 132px;
  }
}
/* ===== Retell workspace UI END ===== */

/* ===== Smart Hub v2 single-column ===== */
.sh-v2 {
  max-width: 860px;
  margin: 0 auto;
  padding: 8px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sh-v2-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.sh-v2-chip {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: #94a3b8;
}
.sh-v2-chip strong {
  color: #f1f5f9;
  font-weight: 700;
}
.sh-v2-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.sh-v2-tabs::-webkit-scrollbar { display: none; }
.sh-v2-tab {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
}
.sh-v2-tab:hover {
  background: rgba(255,255,255,.07);
  color: #cbd5e1;
}
.sh-v2-tab.active {
  background: rgba(99,102,241,.18);
  border-color: rgba(99,102,241,.45);
  color: #c4b5fd;
}
.sh-v2-tab.locked {
  opacity: .4;
  cursor: default;
}
.sh-v2-tab-prog {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  opacity: .6;
}
.sh-unit-list {
  max-height: 260px;
  overflow-y: auto;
}
.sh-v2-bottom {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  align-items: start;
}
@media (max-width: 700px) {
  .sh-v2 {
    padding: 8px 12px 60px;
  }
  .sh-v2-bottom {
    grid-template-columns: 1fr;
  }
}
/* ===== Smart Hub v2 END ===== */

/* ===== Smart page cleanup ===== */
#premiumBar,
.feedback-fab,
#section-smart > .back-to-discover,
#section-smart > .section-header {
  display: none !important;
}
#section-smart #smartHubGrid.card-grid {
  display: block;
  width: 100%;
  margin-bottom: 32px;
}
#section-smart .sh-layout,
#section-smart .sh-v2 {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
#section-smart .sh-unit-list {
  max-height: none;
  overflow-y: auto;
}
#section-smart .sh-ch-list,
#section-smart .sh-unit-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(196,181,253,.55) transparent;
}
#section-smart .sh-ch-list::-webkit-scrollbar,
#section-smart .sh-unit-list::-webkit-scrollbar {
  width: 6px;
}
#section-smart .sh-ch-list::-webkit-scrollbar-track,
#section-smart .sh-unit-list::-webkit-scrollbar-track {
  background: transparent;
}
#section-smart .sh-ch-list::-webkit-scrollbar-thumb,
#section-smart .sh-unit-list::-webkit-scrollbar-thumb {
  background: rgba(196,181,253,.46);
  border-radius: 999px;
}
@media (min-width: 701px) {
  #section-smart #smartHubGrid {
    padding-bottom: 96px;
  }
  #section-smart .sh-layout {
    height: clamp(820px, calc(100vh - 88px), 980px);
    min-height: 0;
    padding-bottom: 20px;
  }
  #section-smart .sh-left,
  #section-smart .sh-right {
    height: 100%;
  }
  #section-smart .sh-chapters.open .sh-ch-list,
  #section-smart .sh-unit-list {
    flex: 1 1 auto;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
  }
}
/* ===== Smart page cleanup END ===== */

/* ===== 成长分析页 (an = analytics) v0.72 ===== */
.an-layout {
  max-width: 860px; margin: 0 auto; padding: 8px 20px 60px;
  display: flex; flex-direction: column; gap: 20px;
}
.an-block {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px; padding: 20px;
}
.an-block-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 800; color: #f1f5f9; margin-bottom: 16px;
}
.an-title-note { font-size: 11px; color: #94a3b8; font-weight: 600; margin-left: 4px; }
.an-metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 16px; }
.an-metric-card { background: rgba(0,0,0,.2); border-radius: 14px; padding: 14px 12px; text-align: center; }
.an-metric-val { font-size: 26px; font-weight: 900; line-height: 1.1; margin-bottom: 6px; }
.an-unit { font-size: 13px; font-weight: 600; margin-left: 2px; opacity: .8; }
.an-metric-lbl { font-size: 11px; color: #94a3b8; }
.an-chart-label { font-size: 11px; color: #94a3b8; margin-bottom: 8px; }
.an-bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding-bottom: 24px; }
.an-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.an-bar-val { font-size: 10px; color: #94a3b8; min-height: 14px; }
.an-bar { width: 100%; border-radius: 4px 4px 0 0; transition: height .3s; }
.an-bar-lbl { font-size: 10px; color: #64748b; }
.an-mode-trend {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  background: rgba(0,0,0,.16);
}
.an-mode-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.an-mode-head b { display: block; color: #e2e8f0; font-size: 13px; margin-bottom: 2px; }
.an-mode-head span { display: block; color: #94a3b8; font-size: 11px; }
.an-mode-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.an-mode-tab {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: #a5b4fc;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.an-mode-tab.active {
  color: #fff;
  border-color: rgba(99,102,241,.8);
  background: linear-gradient(135deg,#4f46e5,#7c3aed);
}
.an-line-chart {
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  padding: 8px 10px 6px;
}
.an-line-svg { width: 100%; height: 132px; overflow: visible; }
.an-line-svg line { stroke: rgba(255,255,255,.12); stroke-width: 1; }
.an-line-svg polyline { fill: none; stroke: #8b5cf6; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(139,92,246,.45)); }
.an-line-svg circle { fill: #c4b5fd; stroke: #111827; stroke-width: 2; }
.an-line-labels > div { display: flex; justify-content: space-between; color: #64748b; font-size: 10px; }
.an-mode-note { margin-top: 8px; color: #64748b; font-size: 11px; line-height: 1.5; }
.an-prog-row { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.an-prog-bar { flex: 1; height: 6px; background: rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; }
.an-prog-fill { height: 100%; background: linear-gradient(90deg,#6366f1,#8b5cf6); border-radius: 10px; transition: width .4s; }
.an-prog-txt { font-size: 12px; color: #94a3b8; white-space: nowrap; }
.an-heatmap { display: grid; grid-template-columns: repeat(12,1fr); gap: 3px; }
.an-heat-cell { aspect-ratio: 1; border-radius: 3px; background: rgba(255,255,255,.05); }
.an-heat-cell.intensity-1 { background: rgba(99,102,241,.3); }
.an-heat-cell.intensity-2 { background: rgba(99,102,241,.55); }
.an-heat-cell.intensity-3 { background: rgba(99,102,241,.78); }
.an-heat-cell.intensity-4 { background: rgba(99,102,241,.98); box-shadow: 0 0 10px rgba(99,102,241,.18); }
.an-heat-legend { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 11px; color: #64748b; flex-wrap: wrap; }
.an-heat-legend .an-heat-cell { width: 14px; height: 14px; flex-shrink: 0; }
@media (max-width:700px) {
  .an-layout { padding: 8px 12px 60px; }
  .an-metric-grid { grid-template-columns: repeat(2,1fr); }
  .an-heatmap { grid-template-columns: repeat(7,1fr); }
  .an-mode-head { flex-direction: column; }
  .an-mode-tabs { justify-content: flex-start; }
}
/* ===== 成长分析页 END ===== */

/* ===== 学习档案 (pf = portfolio) v0.70 ===== */
.pf-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 0 60px;
}
.pf-left {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 18px;
  background: rgba(15,23,42,.54);
  overflow-x: auto;
  scrollbar-width: none;
}
.pf-left::-webkit-scrollbar { display: none; }
.pf-nav-title {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0;
  padding: 0 6px;
  white-space: nowrap;
}
.pf-nav-list {
  display: flex;
  flex: 1;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.pf-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 12px; border: none; background: none;
  color: #94a3b8; font-size: 13px; font-weight: 600; cursor: pointer;
  text-align: left; width: auto; min-height: 42px; transition: all .18s;
  margin-bottom: 0; white-space: nowrap; flex: 0 0 auto;
}
.pf-nav-item:hover { background: rgba(255,255,255,.05); color: #cbd5e1; }
.pf-nav-item.active { background: rgba(99,102,241,.15); color: #c4b5fd; }
.pf-nav-icon { font-size: 16px; }
.pf-right { width: 100%; min-width: 0; }
.pf-section-wrap { display: flex; flex-direction: column; gap: 12px; }
.pf-section-title { font-size: 15px; font-weight: 800; color: #f1f5f9; margin-bottom: 4px; }
.pf-stat-row { display: flex; gap: 12px; margin-bottom: 4px; }
.pf-stat { flex: 1; background: rgba(0,0,0,.2); border-radius: 14px; padding: 14px 12px; text-align: center; }
.pf-stat-val { font-size: 24px; font-weight: 900; line-height: 1.1; margin-bottom: 4px; }
.pf-stat-lbl { font-size: 11px; color: #94a3b8; }
.pf-count-bar { font-size: 12px; color: #64748b; }
.pf-count-bar strong { color: #cbd5e1; }
.pf-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
}
.pf-item-icon { font-size: 18px; flex-shrink: 0; }
.pf-item-body { flex: 1; min-width: 0; }
.pf-item-title { font-size: 14px; font-weight: 700; color: #f1f5f9; }
.pf-item-meta { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.pf-item-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.pf-badge-green { background: rgba(52,211,153,.15); color: #34d399; }
.pf-item-btn {
  font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 10px;
  border: 1px solid rgba(99,102,241,.35); background: rgba(99,102,241,.1);
  color: #a5b4fc; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.pf-btn-del { border-color: rgba(239,68,68,.3); background: rgba(239,68,68,.08); color: #fca5a5; }
.pf-primary-btn {
  width: 100%; padding: 12px; border-radius: 14px; border: none;
  background: linear-gradient(135deg,#4f46e5,#7c3aed); color: #fff;
  font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 16px rgba(99,102,241,.3);
}
.pf-add-row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.pf-input {
  flex: 1; min-width: 140px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05);
  color: #f1f5f9; font-size: 13px; outline: none;
}
.pf-input:focus { border-color: rgba(99,102,241,.5); }
.pf-add-btn {
  padding: 10px 16px; border-radius: 12px; border: none;
  background: rgba(99,102,241,.2); color: #c4b5fd;
  font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.pf-note-input-wrap { display: flex; flex-direction: column; gap: 8px; }
.pf-textarea {
  padding: 12px 14px; border-radius: 12px; resize: vertical;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05);
  color: #f1f5f9; font-size: 13px; line-height: 1.6; outline: none;
}
.pf-textarea:focus { border-color: rgba(99,102,241,.5); }
.pf-note-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 16px; }
.pf-note-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pf-note-title { font-size: 14px; font-weight: 700; color: #f1f5f9; }
.pf-note-date { font-size: 11px; color: #64748b; }
.pf-note-content { font-size: 13px; color: #cbd5e1; line-height: 1.7; white-space: pre-wrap; margin-bottom: 10px; }
.pf-empty { text-align: center; color: #64748b; font-size: 13px; padding: 32px 0; }
.mobile-bottom-tabs { overflow-x: auto; scrollbar-width: none; }
.mobile-bottom-tabs::-webkit-scrollbar { display: none; }
@media (max-width:700px) {
  .pf-left { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 4px; }
  .pf-nav-list { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pf-nav-list::-webkit-scrollbar { display: none; }
  .pf-nav-item { flex: 0 0 auto; }
  .pf-stat-row { flex-wrap: wrap; }
  .pf-stat { min-width: calc(50% - 6px); }
}
/* ===== 学习档案 END ===== */

/* ===== 学习档案 v1.0 新增组件 ===== */
/* 角标 */
.pf-nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 10px; background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 800; margin-left: 4px;
}
.pf-nav-badge.pf-badge-blue { background: #6366f1; }

/* 全站概览大卡片网格 */
.pf-overview-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px;
}
.pf-ov-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 14px 12px; text-align: center;
}
.pf-ov-icon { font-size: 20px; margin-bottom: 4px; }
.pf-ov-val { font-size: 18px; font-weight: 900; line-height: 1.2; }
.pf-ov-lbl { font-size: 10px; color: #64748b; margin-top: 4px; }

/* 各模块成就网格 */
.pf-module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.pf-mod-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; padding: 14px 16px;
}
.pf-mod-card.active { border-color: rgba(99,102,241,.4); background: rgba(99,102,241,.06); }
.pf-mod-head { font-size: 13px; font-weight: 800; color: #f1f5f9; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
.pf-mod-row { display: flex; justify-content: space-between; margin-bottom: 5px; }
.pf-mod-lbl { font-size: 11px; color: #94a3b8; }
.pf-mod-val { font-size: 12px; font-weight: 700; color: #c4b5fd; }

/* 进度条 */
.pf-prog-wrap { margin-bottom: 10px; }
.pf-prog-label { font-size: 12px; color: #94a3b8; margin-bottom: 5px; }
.pf-prog-bar { height: 8px; background: rgba(255,255,255,.08); border-radius: 8px; overflow: hidden; }
.pf-prog-fill { height: 100%; background: linear-gradient(90deg,#4f46e5,#7c3aed); border-radius: 8px; transition: width .4s; }

/* 复习 Tab */
.pf-review-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pf-review-tab {
  padding: 6px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,.1);
  background: transparent; color: #64748b; font-size: 12px; font-weight: 600; cursor: pointer;
}
.pf-review-tab.active { background: rgba(99,102,241,.15); border-color: rgba(99,102,241,.5); color: #818cf8; }
.pf-tab-cnt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: rgba(255,255,255,.15); font-size: 10px; font-weight: 800; margin-left: 3px;
}

/* 来源标签 */
.pf-src-tag {
  font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 8px;
  margin-left: 5px; display: inline-block; vertical-align: middle;
}

/* SRS 词汇 chip */
.pf-word-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pf-word-chip {
  position: relative; background: rgba(6,182,212,.1); border: 1px solid rgba(6,182,212,.25);
  border-radius: 10px; padding: 5px 12px; font-size: 12px; font-weight: 700; color: #67e8f9;
  cursor: default;
}
.pf-chip-meaning {
  display: none; position: absolute; bottom: calc(100% + 4px); left: 50%;
  transform: translateX(-50%); background: #1e2035; border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; padding: 4px 10px; font-size: 11px; color: #cbd5e1; white-space: nowrap;
  z-index: 10; font-weight: 400;
}
.pf-word-chip:hover .pf-chip-meaning { display: block; }

@media (max-width: 600px) {
  .pf-overview-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-module-grid   { grid-template-columns: 1fr; }
  .pf-review-tabs   { gap: 4px; }
  .pf-review-tab    { font-size: 11px; padding: 5px 10px; }
}
/* ===== 学习档案 v1.0 END ===== */

/* ===== 学习资料库 v1.0 分类浏览 ===== */
.dc-v2-layout { display: flex; flex-direction: column; gap: 0; }

/* 一级分类 Tab */
.dc-cat-bar {
  display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto;
  padding: 0 0 14px 0; scrollbar-width: none;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.dc-cat-bar::-webkit-scrollbar { display: none; }
.dc-cat-tab {
  flex-shrink: 0; display: flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 24px; border: 1.5px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04); color: #94a3b8;
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: all .18s;
}
.dc-cat-tab:hover { border-color: rgba(99,102,241,.4); color: #c4b5fd; }
.dc-cat-tab.active {
  background: linear-gradient(135deg, rgba(99,102,241,.25), rgba(139,92,246,.25));
  border-color: rgba(99,102,241,.6); color: #a5b4fc; font-weight: 800;
}

/* 二级分类 chips */
.dc-sub-row {
  display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto;
  padding: 14px 0 10px; scrollbar-width: none;
}
.dc-sub-row::-webkit-scrollbar { display: none; }
.dc-sub-chip {
  flex-shrink: 0; padding: 5px 16px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.1); background: transparent;
  color: #64748b; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.dc-sub-chip:hover { border-color: rgba(99,102,241,.3); color: #a5b4fc; }
.dc-sub-chip.active {
  background: rgba(99,102,241,.15); border-color: rgba(99,102,241,.5);
  color: #818cf8; font-weight: 800;
}

/* 搜索/操作栏 */
.dc-top-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0 4px; flex-wrap: wrap;
}
.dc-search-wrap {
  flex: 1; min-width: 160px; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 8px 14px;
}
.dc-search-icon { font-size: 14px; opacity: .6; }
.dc-search-input {
  flex: 1; background: none; border: none; outline: none;
  color: #f1f5f9; font-size: 13px;
}
.dc-search-input::placeholder { color: #475569; }
.dc-upload-btn {
  padding: 9px 18px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(99,102,241,.3);
}
.dc-mine-btn {
  padding: 9px 16px; border-radius: 12px;
  border: 1px solid rgba(99,102,241,.35); background: rgba(99,102,241,.1);
  color: #a5b4fc; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
}

/* 统计条 */
.dc-count-bar { font-size: 12px; color: #64748b; padding: 6px 0 12px; }
.dc-mine-hint { color: #818cf8; }

/* 卡片网格 */
.dc-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.dc-res-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .2s, transform .15s;
}
.dc-res-card.clickable { cursor: pointer; }
.dc-res-card.clickable:hover {
  border-color: rgba(99,102,241,.4); transform: translateY(-2px);
  background: rgba(99,102,241,.06);
}
.dc-res-card.coming { opacity: .55; cursor: default; }
.dc-res-card-head { display: flex; justify-content: space-between; align-items: center; }
.dc-res-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.dc-res-tag {
  font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 20px;
  white-space: nowrap;
}
.dc-res-title {
  font-size: 13px; font-weight: 800; color: #f1f5f9; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dc-res-desc {
  font-size: 11px; color: #94a3b8; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.dc-res-footer { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 4px; }
.dc-card-sub {
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
  background: rgba(255,255,255,.06); color: #64748b;
}
.dc-res-count { font-size: 10px; color: #475569; margin-left: auto; }

/* 面板 */
.dc-panel {
  margin-top: 16px; border-radius: 20px;
  border: 1px solid rgba(99,102,241,.2); background: rgba(15,16,40,.8);
  overflow: hidden;
}
.dc-panel-inner { padding: 20px 24px; }
.dc-panel-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.dc-panel-header h3 { font-size: 16px; font-weight: 800; color: #f1f5f9; margin: 0; }
.dc-panel-close {
  background: none; border: none; color: #64748b; cursor: pointer;
  font-size: 16px; padding: 4px 8px; border-radius: 8px;
}
.dc-panel-close:hover { color: #f1f5f9; background: rgba(255,255,255,.08); }
.dc-panel-desc { font-size: 13px; color: #94a3b8; line-height: 1.6; margin-bottom: 16px; }

.dc-empty { text-align: center; color: #64748b; font-size: 13px; padding: 48px 0; }

@media (max-width: 900px) { .dc-card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .dc-card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dc-cat-tab { padding: 8px 14px; font-size: 12px; }
  .dc-top-bar { gap: 8px; }
}
@media (max-width: 400px) { .dc-card-grid { grid-template-columns: 1fr; } }

/* 分组纵览 */
.dc-group-section { margin-bottom: 28px; }
.dc-group-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.dc-group-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 800; color: #f1f5f9;
}
.dc-group-emoji { font-size: 15px; }
.dc-group-count {
  background: rgba(255,255,255,.07); color: #64748b;
  font-size: 11px; font-weight: 700; border-radius: 20px; padding: 2px 8px;
}
.dc-group-more {
  background: none; border: none; cursor: pointer;
  font-size: 12px; font-weight: 700; color: #6366f1;
  padding: 5px 10px; border-radius: 6px;
  transition: background .15s;
}
.dc-group-more:hover { background: rgba(99,102,241,.12); }
/* ===== 学习资料库 v1.0 END ===== */

/* ===== 课程包详情页 ===== */
.dc-detail-wrap { display: flex; flex-direction: column; gap: 0; }

.dc-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; color: #64748b; cursor: pointer;
  font-size: 13px; font-weight: 600; padding: 0 0 14px 0;
}
.dc-back-btn:hover { color: #a5b4fc; }

.dc-detail-header {
  display: flex; align-items: flex-start; gap: 16px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px; padding: 20px; margin-bottom: 16px;
}
.dc-detail-icon {
  width: 60px; height: 60px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.dc-detail-info { flex: 1; min-width: 0; }
.dc-detail-title { font-size: 17px; font-weight: 900; color: #f1f5f9; margin-bottom: 6px; }
.dc-detail-meta { font-size: 12px; color: #94a3b8; margin-bottom: 8px; }
.dc-level-warn { color: #f59e0b; font-size: 11px; }
.dc-detail-desc { font-size: 13px; color: #94a3b8; line-height: 1.5; }
.dc-detail-btns { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.dc-start-all-btn {
  padding: 12px 20px; border-radius: 14px; border: none; white-space: nowrap;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff; font-size: 14px; font-weight: 800; cursor: pointer;
  box-shadow: 0 4px 16px rgba(99,102,241,.35); transition: transform .15s;
}
.dc-start-all-btn:hover { transform: translateY(-1px); }
.dc-del-pack-btn {
  padding: 8px 16px; border-radius: 12px; border: 1px solid rgba(239,68,68,.3);
  background: rgba(239,68,68,.08); color: #fca5a5; font-size: 12px;
  font-weight: 700; cursor: pointer;
}

.dc-detail-prog { margin-bottom: 16px; }
.dc-detail-prog-txt { font-size: 12px; color: #94a3b8; }

/* 单元列表 */
.dc-unit-list { display: flex; flex-direction: column; gap: 0; }
.dc-unit-list-title { font-size: 13px; font-weight: 800; color: #94a3b8; margin-bottom: 10px; }
.dc-unit-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .15s;
}
.dc-unit-card:first-of-type { border-radius: 16px 16px 0 0; border: 1px solid rgba(255,255,255,.08); border-bottom-color: rgba(255,255,255,.06); }
.dc-unit-card:last-of-type  { border-radius: 0 0 16px 16px; border: 1px solid rgba(255,255,255,.08); border-top: none; }
.dc-unit-card:only-of-type  { border-radius: 16px; border: 1px solid rgba(255,255,255,.08); }
.dc-unit-card.done { background: rgba(52,211,153,.04); }
.dc-unit-card:hover { background: rgba(99,102,241,.06); }
.dc-unit-num {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #64748b; flex-shrink: 0;
}
.dc-unit-card.done .dc-unit-num { background: rgba(52,211,153,.15); color: #34d399; }
.dc-unit-body { flex: 1; min-width: 0; }
.dc-unit-title { font-size: 13px; font-weight: 700; color: #f1f5f9; }
.dc-unit-meta { font-size: 11px; color: #64748b; margin-top: 2px; }
.dc-unit-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.dc-unit-done-badge { font-size: 11px; color: #34d399; font-weight: 700; }
.dc-unit-start-btn {
  padding: 7px 16px; border-radius: 10px; border: 1px solid rgba(99,102,241,.4);
  background: rgba(99,102,241,.12); color: #a5b4fc;
  font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.dc-unit-start-btn:hover { background: rgba(99,102,241,.25); }

/* 上传表单 */
.dc-upload-form { display: flex; flex-direction: column; gap: 10px; }
.dc-upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (max-width: 640px) {
  .dc-detail-header { flex-direction: column; }
  .dc-detail-btns { flex-direction: row; flex-wrap: wrap; }
  .dc-unit-card { flex-wrap: wrap; }
  .dc-upload-row { grid-template-columns: 1fr; }
}
/* 上传免责声明 */
.dc-upload-disclaimer {
  background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.25);
  border-radius: 10px; padding: 10px 14px; font-size: 12px; color: #fcd34d;
  line-height: 1.6; margin-bottom: 4px;
}
/* ===== 课程包详情页 END ===== */

/* ===== 成长分析 v0.71 新增组件 ===== */
/* 今日概览 */
.an-today-block { border-left: 3px solid #6366f1; }
.an-today-date { font-size: 11px; color: #64748b; font-weight: 400; margin-left: 8px; }
.an-today-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.an-today-chip {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px; padding: 7px 14px;
  font-size: 13px; font-weight: 600; color: #94a3b8;
}
.an-today-chip.done {
  background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.25); color: #34d399;
}
.an-today-detail {
  font-size: 11px; font-weight: 400; color: #64748b;
  background: rgba(255,255,255,.06); border-radius: 10px; padding: 2px 8px; margin-left: 2px;
}
.an-today-chip.done .an-today-detail { color: #6ee7b7; background: rgba(52,211,153,.1); }

/* 各模块练习网格 */
.an-module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.an-mod-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; padding: 14px 16px;
  transition: border-color .2s;
}
.an-mod-card.active { border-color: rgba(99,102,241,.4); background: rgba(99,102,241,.06); }
.an-mod-title {
  font-size: 13px; font-weight: 800; color: #f1f5f9;
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.an-mod-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.an-mod-lbl { font-size: 11px; color: #94a3b8; }
.an-mod-val { font-size: 12px; font-weight: 700; color: #c4b5fd; }

@media (max-width: 600px) {
  .an-module-grid { grid-template-columns: 1fr; }
  .an-today-chips { gap: 8px; }
}
/* ===== 成长分析 v0.71 END ===== */

/* ===== Mixed Quiz Curriculum v1 START ===== */
.mq-shell {
  width: min(760px, 92vw);
  margin: 0 auto;
}
.mq-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 18px;
}
.mq-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
}
.mq-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
}
.mq-dot.done { background: #2563eb; }
.mq-count {
  min-width: 52px;
  text-align: right;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}
.mq-card {
  border: 2px solid #e2e8f0;
  border-radius: 22px;
  padding: 32px;
  background: #fff;
  text-align: center;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .06);
}
.mq-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 22px;
}
.mq-badge span {
  padding-left: 8px;
  border-left: 1px solid #bfdbfe;
  color: #dc2626;
}
.mq-badge .mq-review-badge,
.curr-review-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
.mq-badge .mq-review-badge {
  padding-left: 9px;
  border-left: 1px solid #fed7aa;
}
.mq-badge .mq-review-return {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}
.fc-review-badge-wrap {
  display: flex;
  justify-content: center;
  margin: -2px 0 8px;
}
.match-btn .curr-review-badge,
.choice-btn .curr-review-badge {
  margin-left: 6px;
  vertical-align: middle;
}
#section-smart .quest-card > .curr-review-badge,
#section-smart #spellStage > .curr-review-badge {
  margin: 0 auto 10px;
}
.mq-prompt {
  color: #1e3a8a;
  font-size: clamp(32px, 6vw, 62px);
  line-height: 1.12;
  font-weight: 900;
  margin: 10px 0 18px;
  overflow-wrap: anywhere;
}
.mq-prompt-sub {
  color: #334155;
  font-size: 18px;
  font-weight: 800;
  margin: 12px 0 26px;
}
.mq-sound {
  width: 92px;
  height: 92px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  font-size: 38px;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(37, 99, 235, .28);
}
.mq-mini-sound {
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 18px;
}
.mq-choices { margin-top: 20px; }
.mq-choice {
  min-height: 58px;
  font-size: 17px;
}
.mq-spell-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 24px auto 0;
  max-width: 560px;
}
.mq-spell-input {
  width: 100%;
  min-height: 58px;
  font-size: 20px;
  text-align: center;
  font-weight: 800;
}
.mq-submit {
  margin: 0;
  min-height: 58px;
  padding-left: 26px;
  padding-right: 26px;
}
.mq-combo {
  min-height: 22px;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
  margin-top: 16px;
}
.mq-feedback { margin-top: 14px; }
.mq-finished {
  width: min(600px, 92vw);
  margin: 0 auto;
}

@media (max-width: 640px) {
  .mq-card {
    padding: 24px 18px;
    border-radius: 18px;
  }
  .mq-spell-wrap { grid-template-columns: 1fr; }
  .mq-submit { width: 100%; }
}
/* ===== Mixed Quiz Curriculum v1 END ===== */

/* ===== Page fit pass ===== */
@media (min-width: 769px) {
  main {
    max-width: none;
    width: min(1680px, calc(100vw - 304px));
    margin-left: 280px;
    margin-right: auto;
    padding: 32px 0 72px;
  }

  #section-home.home-ui01-blue,
  #section-home .dash-wrap,
  #section-discover #discoverRoot,
  #section-smart #smartHubGrid,
  #section-smart .sh-layout,
  #section-smart .sh-v2,
  #section-pinxue #pinxue-root,
  #section-retell #retell-root,
  #section-analytics #analyticsRoot,
  #section-portfolio #portfolioRoot,
  #section-pinxue .px-shell,
  #section-pinxue .px-shell-v2,
  #section-pinxue .px-ready-screen,
  #section-retell .rt-shell,
  #section-analytics .an-layout,
  #section-portfolio .pf-layout {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  #section-pinxue .px-shell,
  #section-pinxue .px-ready-screen,
  #section-retell .rt-shell,
  #section-smart .sh-layout,
  #section-smart .sh-v2,
  #section-analytics .an-layout,
  #section-portfolio .pf-layout {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 769px) and (max-width: 1240px) {
  .home-command-main {
    grid-template-columns: 1fr;
  }
  .home-command-copy {
    min-height: auto;
    padding: 6px 4px 0;
  }
  .home-command-copy h1 {
    max-width: 780px;
    font-size: clamp(34px, 4vw, 44px);
    line-height: 1.14;
  }
  .home-command-copy p {
    max-width: 760px;
  }
  .home-command-panel {
    max-width: none;
  }
}

#section-home .dash-wrap,
#section-discover #discoverRoot,
#section-smart #smartHubGrid,
#section-smart .sh-layout,
#section-smart .sh-v2,
#section-pinxue #pinxue-root,
#section-retell #retell-root,
#section-analytics #analyticsRoot,
#section-portfolio #portfolioRoot {
  width: 100%;
}

#section-analytics .an-checkin-card {
  margin-top: 12px;
  min-height: 132px;
  box-shadow: none;
}

#section-analytics .an-checkin-card .dash-progress-bar-wrap {
  margin-top: 18px;
}

@media (min-width: 769px) and (max-width: 1180px) {
  #section-discover .dc-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #section-smart .sh-v2-stats,
  #section-analytics .an-metric-grid,
  #section-portfolio .pf-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #section-pinxue .px-mode-grid-v2,
  #section-pinxue .px-mode-grid-core,
  #section-pinxue .px-mode-grid-aux {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #section-retell .rt-hero,
  #section-retell .rt-import-grid,
  #section-retell .rt-work-grid,
  #section-analytics .an-module-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ===== Page fit pass END ===== */

/* Shared word structure annotations */
.ws-panel {
  width: 100%;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1px solid rgba(99,102,241,.22);
  background: rgba(255,255,255,.04);
  padding: 16px;
}
.ws-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.ws-panel-title {
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 900;
}
.ws-panel-subtitle {
  color: #94a3b8;
  font-size: 11px;
  margin-top: 3px;
}
.ws-toggle {
  display: inline-flex;
  gap: 5px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15,23,42,.48);
  border: 1px solid rgba(255,255,255,.08);
}
.ws-toggle-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
}
.ws-toggle-btn.active {
  background: rgba(99,102,241,.24);
  color: #c4b5fd;
}
.ws-word-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ws-word {
  --ws-color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(15,23,42,.42);
  padding: 8px 10px;
  color: #e2e8f0;
}
.ws-word-main {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--ws-color);
  text-underline-offset: 5px;
}
.ws-emoji {
  margin-right: 4px;
}
.ws-pos-tag {
  color: var(--ws-color);
  background: color-mix(in srgb, var(--ws-color) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--ws-color) 30%, transparent);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 900;
}
.ws-ipa {
  color: #94a3b8;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.ws-meaning {
  width: 100%;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.5;
}
.ws-phonics {
  width: 100%;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.ws-phonic {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  padding: 2px 6px;
}
.ws-phonic b {
  color: #f8fafc;
  font-size: 11px;
}
.ws-phonic small {
  color: #94a3b8;
  font-size: 10px;
}
.ws-plain-word,
.ws-off-note {
  color: #94a3b8;
  font-size: 13px;
}
.ws-pos-noun { --ws-color: #60a5fa; }
.ws-pos-verb { --ws-color: #34d399; }
.ws-pos-adjective { --ws-color: #fbbf24; }
.ws-pos-adverb { --ws-color: #a78bfa; }
.ws-pos-preposition { --ws-color: #fb7185; }
.ws-pos-conjunction { --ws-color: #2dd4bf; }
.ws-pos-pronoun { --ws-color: #f472b6; }
.ws-pos-determiner { --ws-color: #c084fc; }
.ws-pos-modal { --ws-color: #f97316; }
.ws-pos-auxiliary { --ws-color: #22d3ee; }
.ws-pos-interjection { --ws-color: #fde047; }
.ws-pos-numeral { --ws-color: #818cf8; }
.ws-pos-phrase { --ws-color: #4ade80; }
.ws-pos-idiom { --ws-color: #e879f9; }
.ws-pos-other { --ws-color: #94a3b8; }

@media (max-width: 640px) {
  .ws-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .ws-toggle {
    width: 100%;
  }
  .ws-toggle-btn {
    flex: 1;
  }
}
/* Shared leveled typing component */
.px-typing {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(99,102,241,.22);
  border-radius: 18px;
  padding: 18px;
  box-sizing: border-box;
}
.px-typing-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.px-typing-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(99,102,241,.16);
  color: #c4b5fd;
  border: 1px solid rgba(99,102,241,.32);
  font-size: 12px;
  font-weight: 800;
}
.px-typing-desc {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
}
.px-typing-prompt {
  color: #f1f5f9;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 12px;
}
.px-typing-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  color: #94a3b8;
  font-size: 11px;
  margin-bottom: 12px;
}
.px-typing-progress::before {
  content: "";
  display: block;
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(148,163,184,.2);
}
.px-typing-progress-fill {
  display: block;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  max-width: calc(100% - 56px);
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg,#2563eb,#7c3aed);
  transition: width .2s ease;
}
.px-typing-target {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 42px;
  align-items: center;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(15,23,42,.5);
  border: 1px solid rgba(255,255,255,.08);
}
.px-typing-char {
  min-width: 18px;
  height: 28px;
  padding: 0 4px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 800;
  color: #94a3b8;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.px-typing-char.ok {
  color: #052e16;
  background: #86efac;
  border-color: #22c55e;
}
.px-typing-char.bad {
  color: #7f1d1d;
  background: #fecaca;
  border-color: #ef4444;
}
.px-typing-char.cur {
  color: #1d4ed8;
  background: #bfdbfe;
  border-color: #3b82f6;
  box-shadow: inset 0 -2px 0 #2563eb;
}
.px-typing-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.px-typing-letter,
.px-typing-tool,
.px-typing-submit {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform .15s, border-color .15s, background .15s;
}
.px-typing-letter {
  min-width: 38px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,.12);
}
.px-typing-letter:hover,
.px-typing-tool:hover,
.px-typing-submit:hover {
  transform: translateY(-1px);
}
.px-typing-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 58px;
  border-radius: 14px;
  border: 2px solid rgba(59,130,246,.8);
  background: #fff;
  color: #0f172a;
  caret-color: #2563eb;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  resize: vertical;
  outline: none;
  box-shadow: 0 0 0 4px rgba(59,130,246,.1);
}
.px-typing:focus-within {
  border-color: rgba(37,99,235,.5);
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}
.px-typing-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 5px rgba(37,99,235,.18);
}
.px-typing-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.px-typing-hint {
  flex: 1;
  min-width: 220px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
}
.px-typing-tool {
  border-radius: 11px;
  background: rgba(255,255,255,.06);
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,.12);
  padding: 9px 12px;
  font-size: 12px;
}
.px-typing-submit {
  border-radius: 12px;
  background: linear-gradient(135deg,#2563eb,#7c3aed);
  color: #fff;
  padding: 10px 18px;
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(59,130,246,.24);
}
.px-typing-feedback {
  min-height: 22px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
}
.px-typing-feedback.ok { color: #34d399; }
.px-typing-feedback.bad { color: #fca5a5; }

/* px-typing 实际渲染在白色 .quest-card 内：以下覆盖为"白底深字"自洽配色，
   修复浅色字落在白卡上看不清的问题（桌面端尤为明显）。 */
.px-typing { background: #f8fafc; }
.px-typing-badge { background: #ede9fe; color: #6d28d9; border-color: #c4b5fd; }
.px-typing-desc { color: #64748b; }
.px-typing-prompt { color: #0f172a; }
.px-typing-progress { color: #64748b; }
.px-typing-progress::before { background: #e2e8f0; }
.px-typing-target { background: #fff; border-color: #e2e8f0; }
.px-typing-char { color: #475569; background: #f1f5f9; border-color: #e2e8f0; }
.px-typing-char.ok { color: #052e16; background: #86efac; border-color: #22c55e; }
.px-typing-char.bad { color: #7f1d1d; background: #fecaca; border-color: #ef4444; }
.px-typing-char.cur { color: #1d4ed8; background: #bfdbfe; border-color: #3b82f6; }
.px-typing-letter { background: #eef2f7; color: #1e293b; border-color: #cbd5e1; }
.px-typing-hint { color: #64748b; }
.px-typing-tool { background: #eef2f7; color: #475569; border-color: #cbd5e1; }
.px-typing-feedback.ok { color: #16a34a; }
.px-typing-feedback.bad { color: #dc2626; }

@media (max-width: 640px) {
  .px-typing { padding: 14px; }
  .px-typing-prompt { font-size: 16px; }
  .px-typing-hint { min-width: 100%; }
  .px-typing-submit,
  .px-typing-tool { flex: 1; }
}

/* Real-user readability fixes: avoid pale text on white cards and modal overlays. */
.flow-trans-card,
.flow-trans-card * {
  opacity: 1;
}
.flow-trans-card .word-big,
#mistakeGateOverlay .word-big {
  color: #1e3a8a !important;
  -webkit-text-fill-color: #1e3a8a;
  text-shadow: none;
}
#mistakeGateOverlay .choice-btn,
.flow-trans-card .choice-btn {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a;
}
.flow-trans-card p,
.flow-trans-card div,
.flow-trans-card span {
  color: inherit;
}
#mistakeGateOverlay .flow-trans-card > div:first-child,
#mistakeGateOverlay .flow-trans-card p {
  color: #475569 !important;
}
#section-smart .hint,
#section-smart .ipa,
#section-smart .root-explain,
#section-smart .example-zh,
#section-smart .card-progress,
#section-pinxue .px-step-headline p,
#section-pinxue .px-step-index.muted,
#section-pinxue .px-typing-desc,
#section-pinxue .px-typing-hint {
  color: #475569;
  opacity: 1;
}
#section-smart .smart-view {
  scroll-margin-top: 96px;
}
#smart-flashcard.cob-active .flashcard-wrap,
#smart-flashcard.cob-active .card-nav {
  display: none;
}
#smart-flashcard.cob-active #fcRootRing {
  display: block !important;
}
.curr-output-bridge {
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 55px rgba(15,23,42,.08);
  scroll-margin-top: 96px;
}
.curr-output-bridge .cob-kicker,
.curr-output-bridge .cob-hint-row,
.curr-output-bridge .cob-trace {
  color: #475569;
}
.curr-output-bridge h3,
.curr-output-bridge .cob-prompt {
  color: #0f172a;
}

/* Smart Learn flashcard visual metadata */
.fc-visual {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.fc-visual-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, .16));
}
.fc-visual-emoji {
  font-size: 62px;
  line-height: 1;
}
.fc-visual-fallback {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  color: #1d4ed8;
  font-size: 30px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .18);
}
.fc-phonics {
  min-height: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px auto 4px;
  max-width: 460px;
}
.fc-phonics-chip {
  border: 1px solid rgba(59, 130, 246, .24);
  background: rgba(239, 246, 255, .92);
  color: #1d4ed8;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 13px;
  font-weight: 700;
}
.fc-pos-noun { background: #dbeafe; color: #1d4ed8; }
.fc-pos-verb { background: #dcfce7; color: #15803d; }
.fc-pos-adjective { background: #fef3c7; color: #b45309; }
.fc-pos-adverb { background: #f3e8ff; color: #7e22ce; }
.fc-pos-preposition,
.fc-pos-conjunction,
.fc-pos-pronoun,
.fc-pos-determiner,
.fc-pos-numeral,
.fc-pos-other {
  background: #e2e8f0;
  color: #334155;
}
.grammar-lesson-card {
  max-width: 680px;
  max-height: 260px;
  overflow: auto;
  margin: 12px auto 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  text-align: left;
  font-size: 14px;
  line-height: 1.65;
}
.grammar-lesson-card h2,
.grammar-lesson-card h3,
.grammar-lesson-card h4 {
  color: #1e3a8a;
  margin: 8px 0;
}
.grammar-lesson-card ul,
.grammar-lesson-card ol {
  padding-left: 22px;
}

/* Pinxue WO-9~12: shared typing + structure panel */
.px-practice-shell {
  color: #e2e8f0;
}
.px-practice-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.px-practice-progress b {
  display: block;
  color: #f8fafc;
  font-size: 14px;
}
.px-practice-progress span {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 12px;
}
.px-practice-progress strong {
  color: #c4b5fd;
  font-size: 20px;
  font-weight: 900;
}
.px-practice-bar {
  height: 5px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, .16);
}
.px-practice-bar > div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width .3s ease;
}
.px-typing-card {
  padding: 22px;
  border: 1px solid rgba(99, 102, 241, .26);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(99, 102, 241, .12), rgba(139, 92, 246, .08));
}
.px-typing-kicker {
  margin-bottom: 12px;
  color: #818cf8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.px-typing-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.px-typing-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
}
.px-typing-result.ok {
  border: 1px solid #86efac;
  background: #dcfce7;
  color: #166534;
}
.px-typing-result.bad {
  border: 1px solid #fca5a5;
  background: #fee2e2;
  color: #991b1b;
}
.px-typing-result span {
  color: #475569;
}
.px-structure-panel-slot {
  margin-top: 14px;
}
.px-structure-panel-slot .ws-panel {
  background: rgba(15, 23, 42, .58);
  border-color: rgba(99, 102, 241, .24);
}

.srs-rec-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0;
  padding: 16px 18px;
  border: 1px solid rgba(45, 212, 191, .26);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(20, 184, 166, .12), rgba(59, 130, 246, .08));
  color: #dbeafe;
}
.srs-rec-card.smart {
  margin: 14px 0 18px;
}
.srs-rec-title {
  font-size: 16px;
  font-weight: 900;
  color: #f8fafc;
}
.srs-rec-title b {
  color: #5eead4;
}
.srs-rec-sub {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
}
.srs-rec-btn,
.srs-speak-btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #14b8a6, #2563eb);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.srs-review-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 23, .72);
  backdrop-filter: blur(8px);
}
.srs-review-card {
  width: min(560px, 100%);
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(2, 6, 23, .35);
  color: #0f172a;
  text-align: center;
}
.srs-review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748b;
  font-weight: 800;
}
.srs-review-top button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 20px;
  cursor: pointer;
}
.srs-review-progress,
.srs-review-type {
  margin-top: 12px;
  color: #64748b;
  font-size: 13px;
}
.srs-review-type {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 800;
}
.srs-review-title {
  margin: 26px 0 12px;
  color: #1e3a8a;
  font-size: clamp(28px, 6vw, 54px);
  font-weight: 900;
  overflow-wrap: anywhere;
}
.srs-review-sub {
  margin: 18px 0 24px;
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  color: #334155;
  font-size: 17px;
  line-height: 1.6;
}
.srs-rate-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.srs-rate {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.srs-rate.again { background: #ef4444; }
.srs-rate.good { background: #2563eb; }
.srs-rate.easy { background: #059669; }
.srs-review-emoji {
  font-size: 56px;
}
@media (max-width: 640px) {
  .srs-rec-card,
  .srs-rate-row {
    grid-template-columns: 1fr;
  }
  .srs-rec-card {
    display: grid;
  }
}

/* Tap-to-lookup */
.tap-lookup-word {
  display: inline;
  padding: 0 1px;
  border: 0;
  border-bottom: 1px dotted rgba(37, 99, 235, 0.45);
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
}
.tap-lookup-word:hover,
.tap-lookup-word:focus-visible {
  color: #2563eb;
  background: rgba(219, 234, 254, 0.85);
  border-radius: 4px;
  outline: none;
}
.tap-lookup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(3px);
}
.tap-lookup-card {
  position: relative;
  width: min(360px, 100%);
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  text-align: center;
}
.tap-lookup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 20px;
  cursor: pointer;
}
.tap-lookup-emoji {
  font-size: 38px;
  margin-bottom: 8px;
}
.tap-lookup-word-main {
  font-size: 32px;
  font-weight: 800;
  color: #1e3a8a;
  word-break: break-word;
}
.tap-lookup-ipa {
  margin-top: 4px;
  color: #64748b;
  font-size: 15px;
}
.tap-lookup-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  min-height: 22px;
}
.tap-lookup-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
}
.tap-lookup-meaning {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}
.tap-lookup-example {
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
  font-style: italic;
}
.tap-lookup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.tap-lookup-action {
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
}
.tap-lookup-action.primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}
/* ===== Exam sprint ===== */
.exam-sprint-entry { background:#0f172a; color:#fff; border-color:#0f172a; }
.exam-sprint-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15,23,42,.62);
}
.exam-sprint-modal-bg.open { display: flex; }
.exam-sprint-modal {
  position: relative;
  width: min(1040px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(15,23,42,.28);
}
.exam-sprint-close { position: absolute; top: 14px; right: 16px; }
.exam-sprint-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  padding-right: 42px;
}
.exam-sprint-head h2 { margin: 10px 0 6px; color: #1e3a8a; }
.exam-sprint-head p { margin: 0; color: #64748b; line-height: 1.7; }
.exam-sprint-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #1d4ed8;
  background: #dbeafe;
}
.exam-sprint-passage,
.exam-sprint-card {
  margin-top: 18px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 18px;
  background: #f8fbff;
}
.exam-sprint-passage h3 { margin: 0 0 10px; color: #0f172a; }
.exam-sprint-passage p { margin: 0; color: #334155; line-height: 1.85; }
.exam-sprint-card-title { color: #1e3a8a; font-weight: 900; font-size: 16px; margin-bottom: 6px; }
.exam-sprint-note { margin: 0 0 12px; color: #64748b; font-size: 13px; line-height: 1.65; }
.exam-sprint-tfng { padding: 12px 0; border-top: 1px solid #e2e8f0; }
.exam-sprint-tfng:first-of-type { border-top: 0; }
.exam-sprint-writing-prompt {
  border-radius: 12px;
  background: #eef2ff;
  color: #1e3a8a;
  padding: 12px 14px;
  line-height: 1.7;
  font-weight: 700;
}
.exam-sprint-writing-input {
  width: 100%;
  min-height: 160px;
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  padding: 14px;
  font-size: 15px;
  line-height: 1.7;
  outline: none;
  resize: vertical;
}
.exam-sprint-writing-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.exam-sprint-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.exam-sprint-ai-result {
  margin-top: 12px;
  border-radius: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  color: #475569;
  line-height: 1.7;
  font-size: 14px;
}
.exam-sprint-ai-result.ok { background:#ecfdf5; color:#065f46; }
.exam-sprint-ai-result.warn { background:#fff7ed; color:#9a3412; }
.exam-sprint-empty { text-align: center; padding: 60px 20px; color: #64748b; }
.exam-sprint-empty h3 { color:#1e3a8a; margin:10px 0; }
.exam-sprint-icon { font-size: 46px; }

/* WO-17 主题情景闭环：单元主题横幅 */
.curr-theme-banner{background:linear-gradient(135deg,#eff6ff,#f5f7fb);border:1px solid #dbeafe;border-radius:14px;padding:12px 16px;margin-bottom:14px}
.curr-theme-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.curr-theme-unit{background:#2563eb;color:#fff;font-size:12px;font-weight:700;padding:3px 10px;border-radius:8px}
.curr-theme-title{font-size:15px;font-weight:800;color:#1e3a5f}
.curr-theme-topic{font-size:13px;color:#64748b}
.curr-theme-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.curr-theme-chip{background:#fff;border:1px solid #bfdbfe;color:#1d4ed8;font-size:12px;font-weight:600;padding:4px 10px;border-radius:10px;cursor:pointer}
.curr-theme-chip:hover{background:#dbeafe}

/* 学习留存率看板 */
.ret-panel{padding:4px 2px}
.ret-title{font-size:14px;font-weight:800;color:#1e3a5f;margin-bottom:12px}
.ret-head{display:flex;align-items:center;gap:14px;background:#f8fafc;border-radius:12px;padding:14px;margin-bottom:14px}
.ret-big{font-size:34px;font-weight:900;line-height:1;min-width:72px;text-align:center}
.ret-sub{font-size:12px;color:#64748b;line-height:1.5}
.ret-rows{display:flex;flex-direction:column;gap:8px}
.ret-row{display:flex;align-items:center;gap:10px}
.ret-label{font-size:12px;color:#64748b;width:56px;flex-shrink:0}
.ret-bar{flex:1;height:14px;background:#e2e8f0;border-radius:7px;overflow:hidden}
.ret-fill{height:100%;border-radius:7px;transition:width .3s}
.ret-val{font-size:11px;color:#475569;width:78px;text-align:right;flex-shrink:0}
.ret-note{font-size:11px;color:#94a3b8;margin-top:12px}

/* 遗忘曲线 + 置信度 */
.ret-curve{width:100%;height:auto;background:#f8fafc;border-radius:12px;margin-bottom:14px;display:block}
.ret-val.ret-low{color:#94a3b8}

/* 顽固错词 leech */
.leech-panel{padding:4px 2px}
.leech-title{font-size:14px;font-weight:800;color:#1e3a5f;margin-bottom:12px}
.leech-empty{font-size:13px;color:#64748b;background:#f8fafc;border-radius:12px;padding:16px;text-align:center}
.leech-chips{display:flex;flex-wrap:wrap;gap:8px}
.leech-chip{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;font-size:13px;font-weight:600;padding:6px 12px;border-radius:12px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.leech-chip:hover{background:#fee2e2}
.leech-n{font-size:11px;color:#ef4444;background:#fff;border-radius:8px;padding:1px 6px}
.leech-note{font-size:11px;color:#94a3b8;margin-top:12px}

/* 性能修复：常驻栏(顶栏/底栏/导航/返回键/首页面板)去掉 backdrop-filter 毛玻璃。
   它们背景本就近乎不透明(.96-.97)，去掉无可见变化；但毛玻璃会让弱 GPU 每次重绘模糊整屏→持续卡顿。
   modal/overlay(srs-review/tap-lookup/px-preview)是临时出现，保留毛玻璃无妨。 */
.navbar, .mobile-bottom-tabs, .nav-links, .global-back-btn, .home-command-panel {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* ===== 修复：桌面端白卡文字继承了深色主题的浅字、看不清 =====
   .quest-card 等白底卡片本身没设文字色 → 继承 body 的深色主题浅字 → 浅字白底看不清。
   .grammar-lesson-card 的浅底深字样式被关在手机端 @media 里，桌面端丢失。
   这里统一补上深色文字（全局生效），保证白卡上文字清晰可读。 */
.quest-card { color: #1e293b; }
.grammar-lesson-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 12px auto 16px;
  max-width: 680px;
  text-align: left;
  font-size: 14px;
  line-height: 1.7;
}
.grammar-lesson-card h2, .grammar-lesson-card h3, .grammar-lesson-card h4 { color: #1e3a8a; }
.grammar-lesson-card b, .grammar-lesson-card strong { color: #1e293b; }

/* === 全站对比度修复 — headless WCAG 渲染审计 2026-05-30 === */
/* 桌面首页学习路径卡:深色迁移把文字改浅,却漏改徽章底色(浅字落浅徽章≈隐形) */
.home-scroll-ui01 .lp-level-badge { background: rgba(99,102,241,.20); color: #c7d2fe !important; }
.home-scroll-ui01 .lp-level-badge.free { background: rgba(34,197,94,.20); color: #86efac !important; }
.home-scroll-ui01 .lp-level-badge.lock { background: rgba(148,163,184,.18); color: #cbd5e1 !important; }
.home-scroll-ui01 .home-level-chip.current .home-level-chip-badge { color: #c7d2fe !important; }
.home-scroll-ui01 .home-level-chip-badge { color: #c7d2fe; }
/* 步骤序号:当前步为浅底,固定深底+白字保证可读 */
.home-scroll-ui01 .lp-step-num { background: #4f46e5 !important; color: #fff !important; }
/* 首页深色卡片上的弱化标签/蓝紫强调字(实测父类:command-panel/dash-card/level-strip) */
.home-command-panel .home-progress-text { color: #aab6c9; }
.dash-course-builder .dash-course-kicker { color: #60a5fa; }
.home-level-strip .home-level-chip.current .home-level-chip-badge { color: #93c5fd; }
/* 拼学造句白卡上的浅字(#section-sentence 特异性更高,需同级覆盖) */
#section-sentence .sg-live-pill { color: #4338ca; }
.sg-manual-note { color: #64748b; }
.sg-type-char.pending { color: #64748b; }
/* 快速学习顶栏 + 成长分析连续天数(深底弱化字) */
.quick-topbar .quick-progress-row { color: #aab6c9; }
.back-to-discover.quick-back-btn { color: #93c5fd; }
.checkin-streak-label, .dash-checkin-streak, .dash-checkin-streak span { color: #aab6c9; }

/* WO-27/28/29 智学可视化：本地 SVG 图卡 + 视觉题型 + 词根环 */
.fc-visual {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 8px;
}
.wv {
  width: min(138px, 36vw);
  aspect-ratio: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 26px;
  background: #f8fafc;
  border: 1px solid #dbeafe;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .10);
  overflow: hidden;
}
.wv svg {
  width: 100%;
  height: 100%;
  display: block;
}
.wv-compact {
  width: 76px;
  border-radius: 18px;
  box-shadow: none;
}
.wv-emoji {
  font-size: 58px;
  line-height: 1;
}
.wv-concept {
  background: linear-gradient(135deg, color-mix(in srgb, var(--wv-accent, #8b5cf6) 16%, #fff), #fff);
}
.wv-concept-mark {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: var(--wv-accent, #8b5cf6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
}
.wv-label {
  display: block;
  margin-top: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}
.vq-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 104px;
  width: 100%;
  color: #1e293b;
}
.vq-card .wv {
  width: 96px;
}
.vq-card .wv-compact {
  width: 66px;
}
.vq-word {
  color: #1e3a8a;
  font-size: 20px;
  font-weight: 900;
}
.vq-meaning {
  color: #0f766e;
  font-size: 14px;
  font-weight: 800;
}
.vq-quest-preview,
.vq-spell-prompt,
.mq-visual-prompt {
  display: flex;
  justify-content: center;
  margin: 10px auto 14px;
}
.curr-time-typed-title {
  margin: 6px auto 12px;
  color: #1e3a8a;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}
.vq-small-prompt .vq-card {
  min-height: 80px;
}
.vq-choices,
.mq-visual-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.choice-btn.vq-choice-btn,
.choice-btn.mq-visual-choice {
  min-height: 104px;
  padding: 8px;
  background: #f8fafc;
  border-color: #dbeafe;
  color: #1e293b;
  text-align: center;
}
.choice-btn.vq-choice-btn .wv-compact,
.choice-btn.mq-visual-choice .wv-compact {
  width: 58px;
}
.choice-btn.vq-choice-btn:hover,
.choice-btn.mq-visual-choice:hover {
  background: #eef6ff;
  border-color: #93c5fd;
}
.vq-choice-word,
.mq-choice-word {
  display: inline-flex;
  color: #1e3a8a;
  font-size: 19px;
  font-weight: 900;
}
.vq-match-tile {
  padding: 8px;
}
.vq-match-tile .vq-card {
  min-height: 88px;
}
.curr-time-visual-note {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 10px;
}
.root-ring-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 800;
  cursor: pointer;
}
.root-ring-open:hover {
  background: #e0e7ff;
}
.fc-root-ring-front {
  margin-top: 8px;
  padding: 7px 12px;
  font-size: 12px;
}
.root-ring-inline {
  width: min(420px, 92vw);
  min-height: 310px;
  margin: 16px auto 0;
}
.root-ring {
  position: relative;
  width: min(360px, 86vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(99,102,241,.16) 0 24%, transparent 25%),
    radial-gradient(circle at center, transparent 0 46%, rgba(99,102,241,.10) 47% 49%, transparent 50%);
}
.root-ring-center {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 118px;
  min-height: 88px;
  border-radius: 24px;
  background: #312e81;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  box-shadow: 0 16px 34px rgba(49, 46, 129, .28);
}
.root-ring-center b {
  font-size: 22px;
  line-height: 1.1;
}
.root-ring-center span {
  margin-top: 4px;
  font-size: 12px;
  opacity: .86;
}
.root-ring-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: rotate(var(--angle)) translate(132px) rotate(calc(-1 * var(--angle))) translate(-50%, -50%);
  width: 92px;
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid #c7d2fe;
  background: #fff;
  color: #1e293b;
  padding: 7px 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .10);
  cursor: pointer;
}
.root-ring-node.current {
  border-color: #22c55e;
  background: #ecfdf5;
}
.root-ring-node b,
.root-ring-node span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.root-ring-node b {
  color: #1e3a8a;
  font-size: 13px;
}
.root-ring-node span {
  color: #64748b;
  font-size: 11px;
  margin-top: 2px;
}
.root-ring-empty {
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
}
@media (max-width: 720px) {
  .vq-choices,
  .mq-visual-choices {
    grid-template-columns: 1fr;
  }
  .root-ring {
    width: min(320px, 92vw);
  }
  .root-ring-node {
    transform: rotate(var(--angle)) translate(112px) rotate(calc(-1 * var(--angle))) translate(-50%, -50%);
    width: 82px;
  }
}

/* ===== WO-23 pronunciation assessment (pron = pronunciation) ===== */
.pron-card {
  margin-top: 14px;
  border: 1px solid rgba(99, 102, 241, .26);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(30, 41, 59, .82));
  padding: 18px;
  color: #e5e7eb;
  box-shadow: 0 18px 36px rgba(15, 23, 42, .24);
}
.pron-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.pron-kicker {
  display: inline-block;
  margin-bottom: 5px;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 800;
}
.pron-head h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.2;
}
.pron-quota {
  flex: 0 0 auto;
  border: 1px solid rgba(45, 212, 191, .28);
  border-radius: 999px;
  background: rgba(20, 184, 166, .12);
  color: #99f6e4;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
}
.pron-reference {
  margin-top: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  padding: 14px;
}
.pron-status,
.pron-fallback-note {
  margin-top: 10px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
}
.pron-status.live {
  color: #fbbf24;
}
.pron-error {
  margin-top: 10px;
  border: 1px solid rgba(248, 113, 113, .32);
  border-radius: 12px;
  background: rgba(127, 29, 29, .18);
  color: #fecaca;
  padding: 10px 12px;
  font-size: 13px;
}
.pron-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.pron-btn {
  border: 0;
  border-radius: 12px;
  min-height: 42px;
  padding: 10px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.pron-btn.primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 10px 22px rgba(79, 70, 229, .28);
}
.pron-btn.secondary {
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(255, 255, 255, .07);
  color: #cbd5e1;
}
.pron-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none;
}
.pron-result {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}
.pron-total {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  border-radius: 16px;
  padding: 14px;
}
.pron-total span {
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 800;
}
.pron-total strong {
  font-size: 34px;
  line-height: 1;
}
.pron-total small {
  color: #cbd5e1;
  font-size: 12px;
}
.pron-total.good,
.pron-score-band.good,
.pron-word-chip.good,
.pron-phoneme.good {
  background: rgba(16, 185, 129, .14);
  border-color: rgba(16, 185, 129, .34);
  color: #6ee7b7;
}
.pron-total.warn,
.pron-score-band.warn,
.pron-word-chip.warn,
.pron-phoneme.warn {
  background: rgba(245, 158, 11, .14);
  border-color: rgba(245, 158, 11, .36);
  color: #fcd34d;
}
.pron-total.bad,
.pron-score-band.bad,
.pron-word-chip.bad,
.pron-phoneme.bad {
  background: rgba(239, 68, 68, .14);
  border-color: rgba(239, 68, 68, .36);
  color: #fca5a5;
}
.pron-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pron-score-band {
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 13px;
  display: grid;
  grid-template-columns: 56px 1fr 34px;
  gap: 8px;
  align-items: center;
  padding: 10px;
}
.pron-score-band span,
.pron-score-band b {
  font-size: 12px;
  font-weight: 800;
}
.pron-score-band div {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
}
.pron-score-band i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
}
.pron-word-title {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 900;
}
.pron-words {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pron-word-wrap {
  display: grid;
  gap: 6px;
}
.pron-word-chip,
.pron-phoneme {
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 999px;
  color: #e2e8f0;
}
.pron-word-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.pron-word-chip b,
.pron-phoneme b {
  color: currentColor;
  font-size: 11px;
}
.pron-phoneme-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 260px;
}
.pron-phoneme {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}
.pron-empty {
  border: 1px dashed rgba(148, 163, 184, .24);
  border-radius: 12px;
  color: #94a3b8;
  padding: 12px;
  font-size: 13px;
}
@media (max-width: 720px) {
  .pron-head,
  .pron-total {
    grid-template-columns: 1fr;
    display: grid;
  }
  .pron-quota {
    justify-self: start;
  }
  .pron-metrics {
    grid-template-columns: 1fr;
  }
  .pron-actions {
    display: grid;
  }
}

/* ===== Global white theme reset (light-first readability) ===== */
:root {
  --bg: #f6f9ff;
  --bg-card: #ffffff;
  --bg-card-active: #eef2ff;
  --border: #dbe4ef;
  --border-active: #93c5fd;
  --accent: #2563eb;
  --accent2: #7c3aed;
  --accent-grad: linear-gradient(135deg,#2563eb,#7c3aed);
  --text-1: #0f172a;
  --text-2: #1e293b;
  --text-3: #334155;
  --text-4: #475569;
  --text-5: #64748b;
  --text-6: #7c889a;
  --gold: #d97706;
  --success: #059669;
}

html,
body {
  background: #f6f9ff !important;
  color: var(--text-2) !important;
}

body {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 46%, #eef4ff 100%) !important;
}

main,
.section,
.app-shell,
#section-home.home-ui01-blue,
#section-home .dash-wrap,
#section-discover #discoverRoot,
#section-smart #smartHubGrid,
#section-smart .sh-layout,
#section-smart .sh-v2,
#section-pinxue #pinxue-root,
#section-retell #retell-root,
#section-analytics #analyticsRoot,
#section-portfolio #portfolioRoot {
  background: transparent !important;
  color: var(--text-2) !important;
}

.navbar,
.mobile-bottom-tabs {
  background: rgba(255,255,255,.98) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 12px rgba(15,23,42,.06) !important;
  color: var(--text-2) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.logo span,
.logo-text {
  color: var(--text-1) !important;
}

#levelBtn.level-btn,
.level-btn,
.level-select,
.level-badge,
#currentLevelBadge {
  background: #ffffff !important;
  border-color: #93c5fd !important;
  color: #1e3a8a !important;
}

.level-dropdown {
  background: #ffffff !important;
  border: 1px solid #dbe4ef !important;
  box-shadow: 0 18px 46px rgba(15,23,42,.14) !important;
}

.level-option,
.level-option .level-name {
  color: var(--text-2) !important;
}

@media (min-width: 769px) {
  .nav-links {
    background: #ffffff !important;
    border: 1px solid #dbe4ef !important;
    box-shadow: 0 24px 58px rgba(15,23,42,.10) !important;
  }

  .nav-links::before {
    color: var(--text-5) !important;
  }

  .nav-links::after {
    background: #f1f5f9 !important;
    border-color: #dbe4ef !important;
  }
}

.nav-link,
.bottom-tab {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: var(--text-3) !important;
}

.nav-link:hover,
.bottom-tab:hover {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}

.nav-link.active,
.nav-link.on,
.bottom-tab.active {
  background: linear-gradient(135deg,#2563eb,#7c3aed) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(37,99,235,.22) !important;
}

.global-back-btn {
  background: #ffffff !important;
  border-color: #dbe4ef !important;
  color: var(--text-2) !important;
  box-shadow: 0 14px 34px rgba(15,23,42,.10) !important;
}

.global-back-text {
  color: var(--text-1) !important;
}

.section-header h2,
.lp-section-title h2,
.profile-title,
.modal-title,
.home-command-copy h1,
.home-greeting,
.home-action-label,
.px-focus-copy h2,
.px-step-headline h3,
.rt-hero h2,
.rt-panel h3,
.sh-title,
.sh-v2 h2,
.an-block-title,
.an-mod-title,
.pf-section-title,
.dc-card-title,
.dc-detail-title,
.dc-unit-title {
  color: var(--text-1) !important;
}

.section-header p,
.lp-section-title p,
.muted,
.small-muted,
.home-command-copy p,
.home-action-sub,
.home-progress-text,
.home-command-kicker,
.px-focus-copy p,
.px-step-headline p,
.rt-hero p,
.rt-panel p,
.sh-subtitle,
.an-title-note,
.pf-item-meta,
.dc-card-sub,
.dc-detail-desc,
.dc-unit-meta {
  color: var(--text-4) !important;
  opacity: 1 !important;
}

.home-command,
.home-command-panel,
.home-action-btn,
.home-ui01-blue .home-command,
.home-ui01-blue .home-command-panel,
.home-ui01-blue .home-action-btn,
.dash-card,
.dash-checkin,
.dash-course-card,
.quick-card,
.grammar-layout,
.grammar-card,
.toc-item,
.course-card,
.curriculum-card,
.listening-card,
.dialogue-card,
.writing-template-card,
.sg-card,
.sh-layout,
.sh-v2,
.sh-card,
.sh-unit-list,
.px-shell,
.px-shell-v2,
.px-focus-hero,
.px-step-panel,
.px-mode-card,
.px-ready-card,
.px-typing-card,
.px-practice-shell,
.px-practice-mode-switch,
.rt-shell,
.rt-hero,
.rt-panel,
.rt-card,
.an-layout,
.an-block,
.an-metric-card,
.an-mod-card,
.pf-layout,
.pf-item,
.pf-note-card,
.pf-mod-card,
.pf-ov-card,
.dc-layout,
.dc-card,
.dc-panel,
.dc-main-card,
.dc-res-card,
.dc-unit-card,
.dc-upload-card,
.pron-card {
  background: #ffffff !important;
  border-color: #dbe4ef !important;
  color: var(--text-2) !important;
  box-shadow: 0 16px 42px rgba(15,23,42,.08) !important;
}

.home-action-btn.primary,
.home-ui01-blue .home-action-btn.primary,
.px-mode-start,
.px-ready-btn,
.px-btn-primary,
.pron-btn.primary,
.dc-upload-btn,
.pf-add-btn,
.pf-primary-btn {
  background: linear-gradient(135deg,#2563eb,#7c3aed) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

.home-action-btn.primary .home-action-sub,
.home-ui01-blue .home-action-btn.primary .home-action-sub {
  color: rgba(255,255,255,.86) !important;
}

.home-command-kicker,
.px-focus-kicker,
.px-ready-kicker,
.pron-kicker {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
}

.home-progress-bar-wrap,
.dash-progress-bar,
.quick-progress-track,
.px-practice-bar,
.an-prog-bar {
  background: #e2e8f0 !important;
}

.pron-reference,
.pron-score-band,
.pron-word-chip,
.pron-phoneme,
.pron-empty {
  background: #f8fafc !important;
  border-color: #dbe4ef !important;
  color: var(--text-2) !important;
}

.pron-status,
.pron-fallback-note,
.pron-word-title,
.pron-total span,
.pron-total small {
  color: var(--text-4) !important;
}

.pron-btn.secondary {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: var(--text-2) !important;
}

.pron-total.good,
.pron-score-band.good,
.pron-word-chip.good,
.pron-phoneme.good {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #047857 !important;
}

.pron-total.warn,
.pron-score-band.warn,
.pron-word-chip.warn,
.pron-phoneme.warn {
  background: #fffbeb !important;
  border-color: #fde68a !important;
  color: #b45309 !important;
}

.pron-total.bad,
.pron-score-band.bad,
.pron-word-chip.bad,
.pron-phoneme.bad {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #b91c1c !important;
}

[style*="background:rgba(8,9,26"],
[style*="background: rgba(8,9,26"],
[style*="background:rgba(15,23,42"],
[style*="background: rgba(15,23,42"],
[style*="background:#08091a"],
[style*="background: #08091a"],
[style*="background:#0f172a"],
[style*="background: #0f172a"] {
  background: #ffffff !important;
  border-color: #dbe4ef !important;
  color: var(--text-2) !important;
  box-shadow: 0 14px 34px rgba(15,23,42,.08) !important;
}

[style*="color:#f8fafc"],
[style*="color: #f8fafc"],
[style*="color:#f1f5f9"],
[style*="color: #f1f5f9"],
[style*="color:#e2e8f0"],
[style*="color: #e2e8f0"],
[style*="color:#cbd5e1"],
[style*="color: #cbd5e1"] {
  color: var(--text-1) !important;
}

input,
textarea,
select,
.px-typing-target,
.px-typing-input,
.sg-manual-input,
.pf-input {
  background: #ffffff !important;
  color: var(--text-1) !important;
  border-color: #cbd5e1 !important;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8 !important;
}

/* WO-C/A/B: Pinxue article-first writing flow. */
.px-article-shell {
  max-width: 980px;
  margin: 0 auto;
}

.px-article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.px-article-card,
.px-article-difficulty-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  border: 1px solid #d8e0ee;
  background: #fff;
  color: #172033;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.px-article-card.active,
.px-article-difficulty-card.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .12), 0 10px 28px rgba(37, 99, 235, .12);
}

.px-article-card span,
.px-article-card small,
.px-article-difficulty-card span,
.px-selected-passage span {
  color: #64748b;
  line-height: 1.5;
}

.px-article-card strong,
.px-article-difficulty-card strong {
  color: #111827;
  font-size: 16px;
}

.px-article-card em {
  color: #2563eb;
  font-style: normal;
  font-weight: 800;
}

.px-selected-passage {
  margin-top: 14px;
  border: 1px solid #d8e0ee;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.px-selected-passage b {
  color: #0f172a;
}

.px-article-difficulty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.px-article-start {
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  background: #2563eb;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.px-article-hint {
  margin-top: 14px;
  border: 1px solid #d8e0ee;
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 12px;
  color: #334155;
}

.px-article-hint summary {
  cursor: pointer;
  color: #1d4ed8;
  font-weight: 800;
}

.px-article-hint-body {
  padding-top: 10px;
}

.px-article-hint-body p {
  color: #64748b;
  margin-bottom: 10px;
}

.px-article-empty {
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  color: #334155;
  border-radius: 12px;
  padding: 18px;
  display: grid;
  gap: 8px;
}

.px-article-done {
  max-width: 560px;
  margin: 64px auto;
  padding: 32px 24px;
  border: 1px solid #d8e0ee;
  background: #fff;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.px-article-done-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dcfce7;
  color: #15803d;
  font-size: 28px;
  font-weight: 900;
}

.px-article-done h2 {
  color: #111827;
  margin-bottom: 8px;
}

.px-article-done p {
  color: #475569;
}

.px-article-done-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

/* Pinxue article flow contrast: force dark readable text on the light redesign. */
#section-pinxue .px-article-shell,
#section-pinxue .px-article-shell .px-focus-copy,
#section-pinxue .px-article-shell .px-focus-score,
#section-pinxue .px-article-shell .px-step-panel,
#section-pinxue .px-article-shell .px-path-item,
#section-pinxue .px-article-shell .px-article-card,
#section-pinxue .px-article-shell .px-article-difficulty-card,
#section-pinxue .px-article-shell .px-selected-passage {
  background: #ffffff !important;
  border-color: #d6e0ef !important;
  color: #172033 !important;
}

#section-pinxue .px-article-shell .px-focus-copy h2,
#section-pinxue .px-article-shell .px-step-headline h3,
#section-pinxue .px-article-shell .px-path-item span,
#section-pinxue .px-article-shell .px-article-card strong,
#section-pinxue .px-article-shell .px-article-difficulty-card strong,
#section-pinxue .px-article-shell .px-selected-passage b,
#section-pinxue .px-article-shell .px-focus-score strong {
  color: #0f172a !important;
}

#section-pinxue .px-article-shell .px-focus-copy p,
#section-pinxue .px-article-shell .px-step-headline p,
#section-pinxue .px-article-shell .px-path-item small,
#section-pinxue .px-article-shell .px-article-card span,
#section-pinxue .px-article-shell .px-article-card small,
#section-pinxue .px-article-shell .px-article-difficulty-card span,
#section-pinxue .px-article-shell .px-selected-passage span,
#section-pinxue .px-article-shell .px-focus-score small {
  color: #334155 !important;
  opacity: 1 !important;
}

#section-pinxue .px-article-shell .px-focus-score span,
#section-pinxue .px-article-shell .px-article-card em {
  color: #1d4ed8 !important;
}

#section-pinxue .px-article-shell .px-path-item b,
#section-pinxue .px-article-shell .px-step-index {
  background: #2563eb !important;
  color: #ffffff !important;
}

#section-pinxue .px-article-shell .px-article-card.active,
#section-pinxue .px-article-shell .px-article-difficulty-card.active {
  background: #eff6ff !important;
  border-color: #2563eb !important;
}

@media (max-width: 720px) {
  .px-article-grid,
  .px-article-difficulty-grid {
    grid-template-columns: 1fr;
  }

  .px-article-done-actions {
    flex-direction: column;
  }
}

/* WO-C/A/B: Retell three-step minimalist flow. */
.rt-simple-shell {
  max-width: 1040px;
  margin: 0 auto;
}

.rt-simple-choose {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.rt-simple-upload .rt-textarea {
  min-height: 180px;
}

.rt-file-pills {
  display: grid;
  gap: 8px;
}

.rt-file-pill {
  border: 1px solid #d8e0ee;
  background: #fff;
  color: #172033;
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.rt-file-pill.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .12);
}

.rt-simple-workspace {
  background: #fff;
  border: 1px solid #d8e0ee;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.rt-step-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.rt-step-tabs button {
  border: 1px solid #d8e0ee;
  background: #f8fafc;
  color: #334155;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}

.rt-step-tabs button.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 900;
}

.rt-step-card {
  border: 1px solid #d8e0ee;
  background: #fff;
  border-radius: 14px;
  padding: 18px;
}

.rt-step-kicker {
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 12px;
}

.rt-single-action {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.rt-mode-switch {
  display: inline-flex;
  gap: 8px;
  border: 1px solid #d8e0ee;
  background: #f8fafc;
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 14px;
}

.rt-mode-switch button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
}

.rt-mode-switch button.active {
  background: #2563eb;
  color: #fff;
}

.rt-record-actions-simple {
  justify-content: flex-start;
  margin-bottom: 12px;
}

.rt-record-actions-simple .rt-record-btn {
  width: auto;
  min-width: 168px;
  height: auto;
  border-radius: 12px;
  padding: 14px 18px;
}

.rt-simple-score {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
}

.rt-simple-score strong {
  color: #2563eb;
  font-size: 44px;
  line-height: 1;
}

.rt-simple-score span,
.rt-simple-feedback {
  color: #475569;
}

.rt-keyword-result {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.rt-keyword-result span {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
}

.rt-keyword-result .hit {
  background: #dcfce7;
  color: #166534;
}

.rt-keyword-result .miss {
  background: #fee2e2;
  color: #991b1b;
}

.rt-details {
  margin-top: 14px;
  border: 1px solid #d8e0ee;
  background: #f8fafc;
  color: #334155;
  border-radius: 12px;
  padding: 10px 12px;
}

.rt-details summary {
  cursor: pointer;
  color: #1d4ed8;
  font-weight: 900;
}

.rt-history-details {
  margin-top: 16px;
}

@media (max-width: 820px) {
  .rt-simple-choose {
    grid-template-columns: 1fr;
  }

  .rt-step-tabs {
    grid-template-columns: 1fr;
  }
}
/* ===== 学习资料库 v1.0 (.dc-*) 亮色彻底对齐 — 修复白底下深色主题浅字隐形 ===== */
/* 这一组(.dc-res-*/.dc-group-*/.dc-panel-*/.dc-cat-*/.dc-sub-*)原为深色主题硬编码 #f1f5f9 浅字 + 半透明白卡，白底下隐形，此处统一改为白卡+深字。 */
.dc-cat-tab {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
}
.dc-cat-tab:hover { color: #4f46e5 !important; border-color: #c7d2fe !important; }
.dc-cat-tab.active {
  background: linear-gradient(135deg, rgba(99,102,241,.14), rgba(139,92,246,.14)) !important;
  border-color: #a5b4fc !important;
  color: #4f46e5 !important;
}
.dc-sub-chip {
  background: #ffffff !important;
  color: #64748b !important;
  border-color: #e2e8f0 !important;
}
.dc-sub-chip:hover { color: #4f46e5 !important; border-color: #c7d2fe !important; }
.dc-sub-chip.active {
  background: #eef2ff !important;
  border-color: #a5b4fc !important;
  color: #4338ca !important;
}
.dc-search-wrap {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}
.dc-search-input { color: #1e293b !important; }
.dc-search-input::placeholder { color: #94a3b8 !important; }
.dc-count-bar { color: #64748b !important; }
.dc-mine-hint { color: #4f46e5 !important; }
.dc-res-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}
.dc-res-card.clickable:hover { border-color: #a5b4fc !important; }
.dc-res-tag {
  background: #f1f5f9 !important;
  color: #475569 !important;
}
.dc-res-title { color: #1e293b !important; }
.dc-res-desc { color: #64748b !important; }
.dc-res-foot-tag {
  background: #f1f5f9 !important;
  color: #64748b !important;
}
.dc-res-count { color: #64748b !important; }
.dc-panel-header h3 { color: #1e293b !important; }
.dc-panel-close { color: #64748b !important; }
.dc-panel-close:hover { color: #1e293b !important; background: #f1f5f9 !important; }
.dc-panel-desc { color: #475569 !important; }
.dc-empty { color: #64748b !important; }
.dc-group-title { color: #1e293b !important; }
.dc-group-count {
  background: #f1f5f9 !important;
  color: #64748b !important;
}
.dc-group-more { color: #4f46e5 !important; }
/* ===== 资料库亮色对齐 END ===== */

/* ===== 智学 .sh-* 亮色彻底对齐 — 半透明白卡+浅字在白底下隐形，统一白卡+深字（保留实心彩色按钮 .sh-unit-badge/.sh-start-btn 不动） ===== */
.sh-chapters,
.sh-unit-list {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}
.sh-ch-current { background: #eef2ff !important; border-color: #c7d2fe !important; }
.sh-ch-current-label { color: #4f46e5 !important; }
.sh-ch-current-title { color: #1e293b !important; }
.sh-ch-current-prog { color: #64748b !important; }
.sh-sec-title { color: #64748b !important; }
.sh-ch-item:hover { background: #f1f5f9 !important; }
.sh-ch-item.active { background: #eef2ff !important; }
.sh-ch-name { color: #334155 !important; }
.sh-ch-item.active .sh-ch-name { color: #4338ca !important; }
.sh-ch-prog { color: #64748b !important; }
.sh-nav-btn { background: #f1f5f9 !important; border-color: #e2e8f0 !important; color: #475569 !important; }
.sh-nav-btn:hover:not(:disabled) { background: #e2e8f0 !important; color: #1e293b !important; }
.sh-step { background: #ffffff !important; border-color: #e2e8f0 !important; }
.sh-step:hover { border-color: #a5b4fc !important; background: #eef2ff !important; }
.sh-step.done { background: #ecfdf5 !important; border-color: #a7f3d0 !important; }
.sh-step-n { color: #64748b !important; }
.sh-step-name { color: #334155 !important; }
.sh-step.done .sh-step-name { color: #059669 !important; }
.sh-step.active .sh-step-name { color: #4338ca !important; }
.sh-prog-bar { background: #e2e8f0 !important; }
.sh-prog-txt { color: #64748b !important; }
.sh-unit-sub { color: #64748b !important; }
.sh-ul-item:hover { background: #f1f5f9 !important; }
.sh-ul-item.active { background: #eef2ff !important; }
.sh-ul-num { color: #4338ca !important; }

@media (max-width: 768px) {
  #section-smart #smartHubGrid,
  #section-smart .sh-layout,
  #section-smart .sh-v2 {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #section-smart .sh-start-btn {
    position: relative;
    z-index: 130;
    scroll-margin-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }

  #section-smart .smart-view {
    padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px));
  }

  #section-smart #timeStage,
  #section-smart #matchStage,
  #section-smart #spellStage,
  #section-smart #questStage,
  #section-smart #grammarStage,
  #section-smart #listeningStage,
  #section-smart #readingStage,
  #section-smart #dialogueStage,
  #section-smart #writingStage {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
    scroll-margin-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }

  #section-smart .quest-action,
  #section-smart .choice-btn,
  #section-smart .match-btn,
  #section-smart .ghost-btn,
  #section-smart .listening-play-btn,
  #section-smart .writing-input,
  #section-smart .dictation-input {
    position: relative;
    z-index: 130;
  }

  #section-smart .listening-card,
  #section-smart .quest-card,
  #section-smart #timeStage .time-card,
  #section-smart .match-container,
  #section-smart .reading-card,
  #section-smart .dialogue-card,
  #section-smart .writing-card,
  #section-smart .grammar-card {
    margin-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  body:has(#section-smart.active) .ai-tutor-fab {
    left: 16px;
    right: auto;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    font-size: 20px;
  }

  body:has(#section-smart.active) .ai-tutor-fab #aiFabLabel {
    display: none;
  }

  #section-smart .flashcard-wrap {
    padding: 8px 0;
  }

  #section-smart .flashcard {
    height: 380px !important;
  }

  #section-smart .card-nav {
    position: relative;
    z-index: 130;
    margin-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  #section-smart #timeStage .time-header {
    margin-bottom: 8px;
  }

  #section-smart #timeStage .curr-time-bar {
    margin: 6px 0 8px;
  }

  #section-smart #timeStage .quest-card {
    padding: 16px;
    margin-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
  }

  #section-smart #timeStage .curr-time-typed-title {
    margin: 2px auto 8px;
    font-size: 18px;
  }

  #section-smart #timeStage .speak-btn {
    margin: 6px 0 !important;
  }

  #section-smart #timeStage .curr-time-typing-note {
    margin: 4px 0 8px;
  }

  #section-smart #currTimeTypingMount,
  #section-smart #timeStage .px-typing,
  #section-smart #timeStage .px-typing-input,
  #section-smart #timeStage .px-typing-submit {
    scroll-margin-bottom: calc(148px + env(safe-area-inset-bottom, 0px));
  }

  #section-smart #timeStage .px-typing {
    padding: 10px;
    margin-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  #section-smart #timeStage .px-typing-head {
    display: none;
  }

  #section-smart #timeStage .px-typing-progress,
  #section-smart #timeStage .px-typing-target {
    margin-bottom: 6px;
  }

  #section-smart #timeStage .px-typing-prompt {
    margin-bottom: 6px;
    font-size: 14px;
  }

  #section-smart #timeStage .px-typing-target {
    min-height: 30px;
    padding: 6px;
  }

  #section-smart #timeStage .px-typing-char {
    min-width: 16px;
    height: 24px;
    font-size: 12px;
  }

  #section-smart #timeStage .px-typing-input {
    min-height: 42px;
    padding: 8px 10px;
    resize: none;
  }

  #section-smart #timeStage .px-typing-foot {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 6px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }

  #section-smart #timeStage .px-typing-hint {
    min-width: 0;
    font-size: 11px;
  }

  #section-smart #timeStage .px-typing-tool {
    display: none;
  }

  #section-smart #timeStage .px-typing-submit {
    width: 100%;
    padding: 9px 14px;
  }
}
.sh-ul-num.done { color: #059669 !important; }
.sh-ul-name { color: #1e293b !important; }
.sh-ul-meta { color: #64748b !important; }
.sh-ul-prog { color: #4f46e5 !important; }
/* 系统学习进度卡(.sh-lv-*)：统计格原 rgba(0,0,0,.2) 深块+浅紫数字，白底下变浅灰块+隐形数字 */
.sh-lv-title { color: #1e293b !important; }
.sh-lv-stat { background: #ffffff !important; border: 1px solid #e2e8f0 !important; }
.sh-lv-val { color: #4338ca !important; }
.sh-lv-lbl { color: #64748b !important; }
/* 今日推荐复习卡(.srs-rec-*)：浅蓝/近白字在浅色卡上隐形(保留实心彩底按钮不动) */
.srs-rec-card { color: #334155 !important; }
.srs-rec-title { color: #0f766e !important; }
.srs-rec-title b { color: #0d9488 !important; }
.srs-rec-sub { color: #475569 !important; }
/* ===== 智学亮色对齐 END ===== */

/* ===== 成长分析 .an-mode-* 趋势卡 亮色对齐(灰卡+浅字→白卡+深字, 保留激活态渐变) ===== */
.an-mode-trend { background: #ffffff !important; border: 1px solid #e2e8f0 !important; }
.an-mode-head b { color: #1e293b !important; }
.an-mode-head span { color: #64748b !important; }
.an-mode-tab { background: #f1f5f9 !important; color: #4f46e5 !important; border-color: #e2e8f0 !important; }
.an-mode-tab.active { color: #ffffff !important; border-color: #6366f1 !important; }
.an-line-chart { background: #f8fafc !important; }
.an-chart-label, .an-bar-val { color: #64748b !important; }
.an-prog-txt { color: #64748b !important; }
/* ===== 成长分析趋势卡 END ===== */

/* ===== 学习档案 .pf-* 亮色彻底对齐(深灰tab条/黑块+#f1f5f9浅字→白卡+深字) ===== */
.pf-left { background: #ffffff !important; border: 1px solid #e2e8f0 !important; }
.pf-nav-title { color: #64748b !important; }
.pf-nav-item { color: #475569 !important; }
.pf-nav-item:hover { background: #f1f5f9 !important; color: #1e293b !important; }
.pf-nav-item.active { background: #eef2ff !important; color: #4338ca !important; }
.pf-section-title { color: #1e293b !important; }
.pf-stat { background: #ffffff !important; border: 1px solid #e2e8f0 !important; }
.pf-stat-lbl { color: #64748b !important; }
.pf-count-bar { color: #64748b !important; }
.pf-count-bar strong { color: #334155 !important; }
.pf-item-title { color: #1e293b !important; }
.pf-item-meta { color: #64748b !important; }
.pf-note-card { background: #ffffff !important; border-color: #e2e8f0 !important; }
.pf-note-title { color: #1e293b !important; }
.pf-note-date { color: #64748b !important; }
.pf-note-content { color: #334155 !important; }
.pf-empty { color: #64748b !important; }
.pf-ov-card { background: #ffffff !important; border-color: #e2e8f0 !important; }
.pf-ov-lbl { color: #64748b !important; }
.pf-mod-card { background: #ffffff !important; border-color: #e2e8f0 !important; }
.pf-mod-card.active { background: #eef2ff !important; border-color: #a5b4fc !important; }
.pf-mod-head { color: #1e293b !important; border-bottom-color: #e2e8f0 !important; }
.pf-mod-lbl { color: #64748b !important; }
.pf-mod-val { color: #4338ca !important; }
.pf-prog-label { color: #64748b !important; }
.pf-prog-bar { background: #e2e8f0 !important; }
.pf-review-tab { background: #ffffff !important; border-color: #e2e8f0 !important; color: #64748b !important; }
.pf-review-tab.active { background: #eef2ff !important; border-color: #a5b4fc !important; color: #4338ca !important; }
/* ===== 学习档案亮色对齐 END ===== */

/* ===== 首页"我的自建课程" .dash-course-* 亮色对齐(深色遗留块把按钮改成 #c4b5fd 浅紫,白底发淡) ===== */
.dash-course-count { background: #eff6ff !important; color: #1d4ed8 !important; border-color: #bfdbfe !important; }
.dash-course-btn, .dash-course-mini { background: #eff6ff !important; color: #1d4ed8 !important; border-color: #dbeafe !important; }
.dash-course-btn.primary, .dash-course-mini.primary, .dash-course-empty-btn { background: #2563eb !important; color: #ffffff !important; border-color: #2563eb !important; }
.dash-course-btn.split, .dash-course-mini.split { background: #ecfdf5 !important; color: #047857 !important; border-color: #a7f3d0 !important; }
/* ===== 自建课程按钮亮色对齐 END ===== */

/* ===== 智学写作选项：避免变成小号原生按钮 ===== */
.writing-options {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.writing-option {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #1e293b;
  text-align: left;
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.writing-option:hover {
  border-color: #3b82f6;
  background: #eff6ff;
  transform: translateY(-1px);
}
.writing-option:focus-visible {
  outline: 3px solid rgba(59, 130, 246, .28);
  outline-offset: 2px;
}
/* ===== 智学写作选项 END ===== */
