/* ============================================================
   π老师 · 分步解题 —— 页面样式
   风格：暖纸底 + 网格纹理 + 玻璃拟态 + 靛紫渐变 + 琥珀点缀
   ============================================================ */

:root {
  color-scheme: light; /* 阻止手机浏览器“夜间模式”把页面自动变暗 */
  --paper: #f6f4ee;
  --ink: #232a3d;
  --ink-soft: #4b5671;
  --ink-faint: #8b94a8;
  --line: rgba(35, 42, 61, 0.08);
  --card: rgba(255, 255, 255, 0.85);
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --pink: #db2777;
  --amber: #f59e0b;

  /* 主题色（可被 data-theme 覆盖） */
  --c1: #4f46e5;
  --c2: #7c3aed;
  --c3: #db2777;
  --accent: #f59e0b;
  --accent-2: #f97316;
  --grad: linear-gradient(120deg, #4f46e5, #7c3aed 55%, #db2777);
  --grad-soft: linear-gradient(120deg, #eef2ff, #f5f3ff 55%, #fdf2f8);
  --final-grad: linear-gradient(135deg, #6366f1, #a855f7 45%, #f59e0b);
  --badge-grad: linear-gradient(135deg, #f59e0b, #f97316);
  --ok-grad: linear-gradient(120deg, #10b981, #34d399);
  --timeline-grad: linear-gradient(180deg, #a5b4fc 0%, #c4b5fd 55%, #fcd34d 92%, transparent);
  --blob1: #c7d2fe;
  --blob2: #fde68a;
  --blob3: #fecdd3;
  --chip-hover: #eef2ff;
  --spinner-track: #e0e7ff;
  --focus-border: rgba(79, 70, 229, 0.35);
  --focus-strong: rgba(79, 70, 229, 0.5);
  --focus-ring: rgba(99, 102, 241, 0.12);
  --live-border: rgba(99, 102, 241, 0.4);
  --sel: rgba(99, 102, 241, 0.22);
  --glow: rgba(99, 102, 241, 0.55);
  --glow-strong: rgba(99, 102, 241, 0.65);
  --shadow-lg: 0 18px 50px -12px rgba(35, 42, 61, 0.18);
  --shadow-md: 0 8px 28px -8px rgba(35, 42, 61, 0.12);
  --radius: 20px;
}

/* ---------- 主题：海洋蓝 ---------- */
:root[data-theme="ocean"] {
  --indigo: #0284c7; --violet: #0ea5e9; --pink: #06b6d4; --amber: #fbbf24;
  --c1: #0284c7; --c2: #0ea5e9; --c3: #06b6d4; --accent: #fbbf24; --accent-2: #f59e0b;
  --grad: linear-gradient(120deg, #0284c7, #0ea5e9 55%, #06b6d4);
  --grad-soft: linear-gradient(120deg, #e0f2fe, #ecfeff 55%, #f0f9ff);
  --final-grad: linear-gradient(135deg, #0284c7, #38bdf8 45%, #fbbf24);
  --timeline-grad: linear-gradient(180deg, #7dd3fc 0%, #a5f3fc 55%, #fde68a 92%, transparent);
  --blob1: #bae6fd; --blob2: #a5f3fc; --blob3: #bfdbfe;
  --chip-hover: #e0f2fe; --spinner-track: #e0f2fe;
  --focus-border: rgba(2, 132, 199, 0.35); --focus-strong: rgba(2, 132, 199, 0.5);
  --focus-ring: rgba(14, 165, 233, 0.12); --live-border: rgba(14, 165, 233, 0.4);
  --sel: rgba(14, 165, 233, 0.22);
  --glow: rgba(2, 132, 199, 0.55); --glow-strong: rgba(2, 132, 199, 0.65);
}

/* ---------- 主题：森林绿 ---------- */
:root[data-theme="forest"] {
  --indigo: #059669; --violet: #10b981; --pink: #84cc16; --amber: #f59e0b;
  --c1: #059669; --c2: #10b981; --c3: #84cc16; --accent: #f59e0b; --accent-2: #f97316;
  --grad: linear-gradient(120deg, #059669, #10b981 55%, #84cc16);
  --grad-soft: linear-gradient(120deg, #ecfdf5, #f0fdf4 55%, #f7fee7);
  --final-grad: linear-gradient(135deg, #059669, #34d399 45%, #f59e0b);
  --timeline-grad: linear-gradient(180deg, #6ee7b7 0%, #a7f3d0 55%, #fde68a 92%, transparent);
  --blob1: #a7f3d0; --blob2: #fde68a; --blob3: #bbf7d0;
  --chip-hover: #ecfdf5; --spinner-track: #d1fae5;
  --focus-border: rgba(5, 150, 105, 0.35); --focus-strong: rgba(5, 150, 105, 0.5);
  --focus-ring: rgba(16, 185, 129, 0.12); --live-border: rgba(16, 185, 129, 0.4);
  --sel: rgba(16, 185, 129, 0.22);
  --glow: rgba(5, 150, 105, 0.55); --glow-strong: rgba(5, 150, 105, 0.65);
}

/* ---------- 主题：暖阳橙 ---------- */
:root[data-theme="sunset"] {
  --indigo: #ea580c; --violet: #f97316; --pink: #e11d48; --amber: #facc15;
  --c1: #ea580c; --c2: #f97316; --c3: #e11d48; --accent: #facc15; --accent-2: #fbbf24;
  --grad: linear-gradient(120deg, #ea580c, #f97316 55%, #e11d48);
  --grad-soft: linear-gradient(120deg, #fff7ed, #fffbeb 55%, #fef2f2);
  --final-grad: linear-gradient(135deg, #ea580c, #fb7185 45%, #facc15);
  --timeline-grad: linear-gradient(180deg, #fdba74 0%, #fda4af 55%, #fde68a 92%, transparent);
  --blob1: #fed7aa; --blob2: #fde68a; --blob3: #fecdd3;
  --chip-hover: #fff7ed; --spinner-track: #ffedd5;
  --focus-border: rgba(234, 88, 12, 0.35); --focus-strong: rgba(234, 88, 12, 0.5);
  --focus-ring: rgba(249, 115, 22, 0.12); --live-border: rgba(249, 115, 22, 0.4);
  --sel: rgba(249, 115, 22, 0.22);
  --glow: rgba(234, 88, 12, 0.55); --glow-strong: rgba(234, 88, 12, 0.65);
}

/* ---------- 主题：樱花粉 ---------- */
:root[data-theme="sakura"] {
  --indigo: #db2777; --violet: #ec4899; --pink: #a855f7; --amber: #f59e0b;
  --c1: #db2777; --c2: #ec4899; --c3: #a855f7; --accent: #f59e0b; --accent-2: #fbbf24;
  --grad: linear-gradient(120deg, #db2777, #ec4899 55%, #a855f7);
  --grad-soft: linear-gradient(120deg, #fdf2f8, #fce7f3 55%, #faf5ff);
  --final-grad: linear-gradient(135deg, #db2777, #c084fc 45%, #f59e0b);
  --timeline-grad: linear-gradient(180deg, #f9a8d4 0%, #d8b4fe 55%, #fde68a 92%, transparent);
  --blob1: #fbcfe8; --blob2: #e9d5ff; --blob3: #fecdd3;
  --chip-hover: #fdf2f8; --spinner-track: #fce7f3;
  --focus-border: rgba(219, 39, 119, 0.35); --focus-strong: rgba(219, 39, 119, 0.5);
  --focus-ring: rgba(236, 72, 153, 0.12); --live-border: rgba(236, 72, 153, 0.4);
  --sel: rgba(236, 72, 153, 0.22);
  --glow: rgba(219, 39, 119, 0.55); --glow-strong: rgba(219, 39, 119, 0.65);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* 确保 hidden 属性永远生效，不被 display 规则覆盖 */
html { scroll-behavior: smooth; color-scheme: light; } /* 注意：不给 html 设背景，否则会挡住背景光斑 */

/* 系统深色偏好下也强制保持浅色（不改背景，保护装饰层） */
@media (prefers-color-scheme: dark) {
  html, body { color-scheme: light !important; }
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans SC", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden; /* 防止横向溢出把页面撑宽 */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--sel); }
button, .btn, .chip, .icon-btn, .mode-btn { touch-action: manipulation; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: rgba(35,42,61,.18); border-radius: 8px; border: 2px solid var(--paper); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 背景装饰 ---------------- */
.bg-deco { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-deco .grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(35, 42, 61, 0.10) 1.1px, transparent 1.1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 35%, transparent 100%);
}
.bg-deco .blob { position: absolute; border-radius: 50%; filter: blur(72px); opacity: 0.52; animation: drift 20s ease-in-out infinite alternate; }
.bg-deco .b1 { width: 480px; height: 480px; left: -140px; top: -130px; background: var(--blob1); }
.bg-deco .b2 { width: 430px; height: 430px; right: -130px; top: 150px; background: var(--blob2); animation-delay: -7s; }
.bg-deco .b3 { width: 400px; height: 400px; left: 30%; bottom: -170px; background: var(--blob3); animation-delay: -14s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(46px, 28px) scale(1.07); } }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 238, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 880px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo {
  width: 40px; height: 40px; border-radius: 13px;
  background: var(--grad); color: #fff;
  display: grid; place-items: center;
  font-family: Georgia, "Times New Roman", serif; font-style: italic;
  font-size: 24px; font-weight: 700; line-height: 1;
  box-shadow: 0 6px 18px -4px var(--glow);
}
.brand-text { font-size: 16px; font-weight: 700; display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 12px; font-weight: 500; color: var(--ink-faint); letter-spacing: 0.12em; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.pill {
  border: 1px solid var(--line); background: var(--card);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; color: var(--ink-soft);
  cursor: pointer; transition: all 0.2s ease; font-family: inherit;
}
.pill:hover { border-color: var(--focus-border); color: var(--indigo); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.pill b { color: var(--ink); font-weight: 700; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-soft); cursor: pointer;
  display: grid; place-items: center; transition: all 0.2s ease; font-size: 15px;
}
.icon-btn:hover { color: var(--indigo); border-color: var(--focus-border); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ---------------- 主体 ---------------- */
.wrap { max-width: 880px; margin: 0 auto; padding: 28px 20px 80px; }

.hero { text-align: center; padding: 34px 0 26px; }
.hero h1 {
  margin: 0; font-size: clamp(2rem, 5.2vw, 3.1rem); font-weight: 900;
  letter-spacing: -0.02em; line-height: 1.25;
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
}
.hero .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { margin: 14px 0 0; color: var(--ink-faint); font-size: 14.5px; }
.hero .sub b { color: var(--ink-soft); }

/* ---------------- 输入卡片 ---------------- */
.ask-card {
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
  transition: box-shadow 0.3s ease;
}
.ask-card:focus-within { box-shadow: var(--shadow-lg), 0 0 0 4px var(--focus-ring); }
.ask-card textarea {
  width: 100%; resize: vertical; min-height: 84px; max-height: 240px;
  border: none; outline: none; background: transparent;
  font: inherit; font-size: 16px; line-height: 1.7; color: var(--ink);
  caret-color: var(--indigo);
}
.ask-card textarea::placeholder {
  color: rgba(139, 148, 168, 0.42); /* 提示文字明显淡化，与真实输入区分 */
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.chip {
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft); border-radius: 999px; padding: 6px 14px;
  font-size: 13px; cursor: pointer; font-family: inherit;
  transition: all 0.18s ease; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chip:hover { background: var(--chip-hover); color: var(--indigo); border-color: var(--focus-border); transform: translateY(-1px); }
.ask-row { display: flex; align-items: center; gap: 10px; }

/* ---------------- 按钮 ---------------- */
.btn {
  border: none; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600;
  border-radius: 14px; padding: 12px 20px; display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s ease; color: var(--ink);
}
.btn.primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 26px -8px var(--glow);
  padding: 13px 24px;
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px var(--glow-strong); }
.btn.primary:active { transform: translateY(0); }
.btn.primary.danger { background: linear-gradient(120deg, #ef4444, #db2777); box-shadow: 0 10px 26px -8px rgba(239, 68, 68, 0.5); }
.btn-spark { font-size: 16px; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.82); } }
.btn kbd {
  font-family: inherit; font-size: 11px; font-weight: 500;
  background: rgba(255, 255, 255, 0.22); border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px; padding: 2px 7px; margin-left: 4px;
}
.btn.ghost { background: transparent; color: var(--ink-faint); }
.btn.ghost:hover { background: rgba(35, 42, 61, 0.05); color: var(--ink-soft); }
.btn.soft {
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line);
  color: var(--ink-soft); font-size: 13.5px; padding: 10px 16px; border-radius: 12px;
}
.btn.soft:hover { color: var(--indigo); border-color: var(--focus-border); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ---------------- 加载 ---------------- */
.loading-card {
  margin-top: 26px; background: var(--card); border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 26px 26px 30px; display: flex; flex-direction: column; align-items: center; gap: 14px;
  animation: fadeUp 0.35s ease both;
}
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--spinner-track); border-top-color: var(--indigo);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-status { font-size: 14.5px; color: var(--ink-soft); font-weight: 500; }
.skeleton { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.sk-line {
  height: 14px; border-radius: 8px;
  background: linear-gradient(90deg, #edf0f7 25%, #f7f9fd 50%, #edf0f7 75%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
.sk-line.w60 { width: 60%; } .sk-line.w75 { width: 75%; } .sk-line.w90 { width: 90%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------------- 思考过程 ---------------- */
.thinking {
  margin-top: 26px; background: rgba(241, 245, 249, 0.9); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 18px; animation: fadeUp 0.4s ease both;
}
.thinking summary { cursor: pointer; font-size: 14px; color: var(--ink-soft); font-weight: 600; user-select: none; }
.thinking-body { margin-top: 10px; font-size: 14px; color: var(--ink-faint); line-height: 1.8; max-height: 320px; overflow-y: auto; }

/* ---------------- 步骤时间轴 ---------------- */
.timeline { list-style: none; margin: 26px 0 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 29px; top: 10px; bottom: 10px; width: 2px;
  background: var(--timeline-grad);
  border-radius: 2px;
}
.step-card {
  position: relative; margin: 0 0 14px; padding: 20px 24px 20px 72px;
  background: var(--card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  animation: stepIn 0.55s cubic-bezier(0.22, 0.9, 0.32, 1.15) both;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.step-num {
  position: absolute; left: 12px; top: 20px; width: 34px; height: 34px; border-radius: 12px;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  font-size: 15px; font-weight: 700; font-family: Georgia, serif;
  box-shadow: 0 6px 14px -4px var(--glow);
}
.step-card.intro .step-num { background: var(--badge-grad); box-shadow: 0 6px 14px -4px rgba(245, 158, 11, 0.55); }
.step-kicker {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--indigo); text-transform: uppercase; margin-bottom: 3px;
}
.step-title { margin: 0 0 10px; font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.step-body { font-size: 15.5px; line-height: 1.85; color: var(--ink-soft); overflow-x: auto; }
.step-body p { margin: 0 0 10px; }
.step-body p:last-child { margin-bottom: 0; }
.step-body strong { color: var(--ink); }
.step-body ul, .step-body ol { margin: 6px 0 10px; padding-left: 22px; }
.step-body li { margin: 3px 0; }
.step-body .katex-display { margin: 12px 0; padding: 10px 14px; background: var(--grad-soft); border-radius: 12px; overflow-x: auto; }
.step-body .katex { font-size: 1.04em; }

/* 正在书写的“活”步骤 */
.step-card.live { border-color: var(--live-border); }
.step-card.live .step-body::after {
  content: ""; display: inline-block; width: 8px; height: 1.05em; margin-left: 2px;
  vertical-align: -0.15em; background: var(--indigo); border-radius: 3px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------------- 最终答案 ---------------- */
.final-card {
  margin-top: 22px; padding: 2px; border-radius: 22px;
  background: var(--final-grad);
  box-shadow: 0 16px 40px -12px var(--live-border);
  animation: stepIn 0.6s cubic-bezier(0.22, 0.9, 0.32, 1.15) both;
}
.final-inner {
  background: #fffdf8; border-radius: 20px; padding: 22px 24px;
}
.final-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.final-badge {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--badge-grad); color: #fff;
  display: grid; place-items: center; font-size: 16px; font-weight: 900;
  box-shadow: 0 6px 14px -4px rgba(245, 158, 11, 0.55);
}
.final-head h3 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.final-body { font-size: 16.5px; line-height: 1.9; color: var(--ink); }
.final-body p { margin: 0; }
.final-body .katex { font-size: 1.06em; }

/* ---------------- 操作行 ---------------- */
.action-row { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; animation: fadeUp 0.5s ease both; }

/* ---------------- 错误卡片 ---------------- */
.error-card {
  margin-top: 26px; background: #fff7f6; border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-md);
  animation: fadeUp 0.35s ease both;
}
.error-icon {
  width: 42px; height: 42px; border-radius: 14px; background: #ffe4e6; color: #e11d48;
  display: grid; place-items: center; font-size: 21px; margin-bottom: 10px;
}
.error-card h3 { margin: 0 0 6px; font-size: 17px; }
.error-card p { margin: 0 0 10px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; }
.error-card code {
  background: #f1f5f9; border: 1px solid var(--line); border-radius: 8px;
  padding: 2px 8px; font-size: 13px; font-family: Consolas, "Courier New", monospace;
  color: #0f172a; word-break: break-all;
}
#errorHint { color: var(--ink-soft); font-size: 14px; line-height: 1.8; }

/* ---------------- 页脚 ---------------- */
.footer { text-align: center; padding: 10px 20px 34px; color: var(--ink-faint); font-size: 12.5px; }
.footer p { margin: 0; }
.footer-lan { margin-top: 8px !important; }
.footer-lan code {
  background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line);
  border-radius: 7px; padding: 1px 7px; font-size: 12px; color: var(--ink-soft);
  font-family: Consolas, "Courier New", monospace; word-break: break-all;
}

/* ---------------- 设置抽屉 ---------------- */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px); animation: fadeIn 0.25s ease both;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(400px, 92vw);
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(20px);
  box-shadow: -18px 0 50px rgba(15, 23, 42, 0.18);
  transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.32, 1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 12px; border-bottom: 1px solid var(--line);
}
.drawer-head h2 { margin: 0; font-size: 18px; }
.drawer-body { padding: 18px 22px 26px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-top: 10px; }
.drawer-body input[type="text"], .drawer-body input[type="password"], .drawer-body input[type="number"], .drawer-body input:not([type]) {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
  font: inherit; font-size: 14px; background: #fff; color: var(--ink); outline: none;
  transition: all 0.18s ease;
}
.drawer-body input:focus { border-color: var(--focus-strong); box-shadow: 0 0 0 3px var(--focus-ring); }
.drawer-body input[type="range"] { accent-color: var(--indigo); }
.mode-group { display: flex; gap: 8px; }
.mode-btn {
  flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 10px 6px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-soft);
  cursor: pointer; transition: all 0.18s ease;
}
.mode-btn:hover { border-color: var(--live-border); }
.mode-btn.active {
  background: var(--grad-soft); color: var(--indigo); border-color: var(--indigo);
  box-shadow: 0 4px 14px -4px var(--live-border);
}
.drawer-actions { display: flex; gap: 10px; margin-top: 22px; }
.drawer-actions .btn { flex: 1; justify-content: center; }
.drawer-note { font-size: 12.5px; color: var(--ink-faint); line-height: 1.7; margin: 14px 0 0; word-break: break-all; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 200;
  background: #111827; color: #fff; border-radius: 999px; padding: 11px 22px;
  font-size: 14px; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.4);
  animation: toastUp 0.3s cubic-bezier(0.22, 0.9, 0.32, 1.15) both;
  max-width: 86vw; text-align: center;
}
@keyframes toastUp { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------------- 通用动画 ---------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.shake { animation: shake 0.45s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); } 40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); } 80% { transform: translateX(5px); }
}

/* ---------------- 判题行 ---------------- */
.judge-row {
  margin-top: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 16px; animation: fadeUp 0.5s ease both;
}
.judge-label { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }
.btn.judge {
  font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); transition: all 0.18s ease;
}
.btn.judge.ok:hover, .btn.judge.ok.active { background: #ecfdf5; border-color: #34d399; color: #059669; }
.btn.judge.bad:hover, .btn.judge.bad.active { background: #fff1f2; border-color: #fb7185; color: #e11d48; }
.btn.judge.disabled { opacity: 0.45; pointer-events: none; }

/* ---------------- 统计面板 ---------------- */
.stats-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn 0.25s ease both;
}
.stats-panel {
  width: min(780px, 100%); max-height: 92vh; display: flex; flex-direction: column;
  background: var(--paper); border-radius: 24px; box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
  animation: statsUp 0.32s cubic-bezier(0.22, 0.9, 0.32, 1.1) both; overflow: hidden;
}
@keyframes statsUp { from { opacity: 0; transform: translateY(26px) scale(0.98); } to { opacity: 1; transform: none; } }
.stats-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px 12px; border-bottom: 1px solid var(--line);
}
.stats-head h2 { margin: 0; font-size: 18px; }
.stats-body {
  overflow-y: auto; padding: 18px 22px 26px;
  display: flex; flex-direction: column; gap: 16px;
}
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat-card {
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px; padding: 14px 10px; text-align: center; box-shadow: var(--shadow-md);
}
.stat-num {
  font-size: 24px; font-weight: 800; color: transparent;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
}
.stat-card:nth-child(2) .stat-num { background: var(--badge-grad); -webkit-background-clip: text; background-clip: text; }
.stat-card:nth-child(4) .stat-num { background: var(--ok-grad); -webkit-background-clip: text; background-clip: text; }
.stat-label { font-size: 12px; color: var(--ink-faint); margin-top: 4px; }
.chart-row { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; }
.chart-card {
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px; padding: 14px 14px 6px; box-shadow: var(--shadow-md);
}
.chart-card h3 { margin: 0 0 4px; font-size: 13.5px; color: var(--ink-soft); }
.chart { width: 100%; height: 220px; }
.section-title { margin: 4px 0 0; font-size: 15px; }
.empty-hint { text-align: center; color: var(--ink-faint); font-size: 13.5px; padding: 22px 0 8px; }
.wrong-list { display: flex; flex-direction: column; gap: 10px; }
.wrong-item {
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-md);
}
.wrong-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.wrong-q { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.6; flex: 1; }
.wrong-date { font-size: 11.5px; color: var(--ink-faint); white-space: nowrap; }
.wrong-item details { margin-top: 8px; }
.wrong-item summary { cursor: pointer; font-size: 12.5px; color: var(--indigo); font-weight: 600; user-select: none; }
.wrong-item .timeline { margin-top: 10px; }
.wrong-item .final-inner { padding: 12px 16px; margin-top: 10px; }
.wrong-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.wrong-actions button {
  font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 12px;
  transition: all 0.18s ease; color: var(--ink-soft);
}
.wrong-actions button:hover { border-color: var(--live-border); color: var(--indigo); }

/* ---------------- 主题色板（设置抽屉） ---------------- */
.theme-swatches { display: flex; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.theme-swatch {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; padding: 0; transition: all 0.18s ease;
}
.theme-swatch:hover { transform: scale(1.1); }
.theme-swatch.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--card), 0 4px 12px rgba(15, 23, 42, 0.25);
}
.sw-indigo { background: linear-gradient(135deg, #4f46e5, #db2777); }
.sw-ocean { background: linear-gradient(135deg, #0284c7, #06b6d4); }
.sw-forest { background: linear-gradient(135deg, #059669, #84cc16); }
.sw-sunset { background: linear-gradient(135deg, #ea580c, #e11d48); }
.sw-sakura { background: linear-gradient(135deg, #db2777, #a855f7); }

/* ---------------- 正确率曲线（宽图） ---------------- */
.chart-card.chart-wide { margin-bottom: 2px; }
.chart-rate { height: 240px; }

/* ---------------- 弹窗（登录/购买/账户/排行榜） ---------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn 0.25s ease both;
}
.modal-panel {
  width: min(440px, 100%); max-height: 90vh; display: flex; flex-direction: column;
  background: var(--paper); border-radius: 24px; box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
  animation: statsUp 0.32s cubic-bezier(0.22, 0.9, 0.32, 1.1) both; overflow: hidden;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px 12px; border-bottom: 1px solid var(--line);
}
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-body { overflow-y: auto; padding: 16px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.modal-body input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px;
  font: inherit; font-size: 15px; background: #fff; color: var(--ink); outline: none;
  transition: all 0.18s ease;
}
.modal-body input:focus { border-color: var(--focus-strong); box-shadow: 0 0 0 3px var(--focus-ring); }
.auth-tabs { display: flex; gap: 8px; }
.auth-tab {
  flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 10px 6px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  cursor: pointer; transition: all 0.18s ease;
}
.auth-tab.active {
  background: var(--grad-soft); color: var(--indigo); border-color: var(--indigo);
  box-shadow: 0 4px 14px -4px var(--live-border);
}
.auth-submit { justify-content: center; margin-top: 4px; }
.auth-submit:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.agree-row {
  display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--ink-soft);
  line-height: 1.6; cursor: pointer; user-select: none;
}
.agree-row input { margin-top: 3px; accent-color: var(--indigo); }
.agree-row a { color: var(--indigo); text-decoration: none; }
.agree-row a:hover { text-decoration: underline; }
.auth-msg { margin: 0; font-size: 13px; color: var(--ink-faint); min-height: 18px; line-height: 1.6; }
.auth-msg.err { color: #e11d48; }
.auth-msg.ok { color: #059669; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; width: auto !important; }
.code-row .btn { white-space: nowrap; font-size: 13px; }
.code-row .btn:disabled { opacity: 0.5; cursor: not-allowed; }

.plan-cards { display: flex; flex-direction: column; gap: 10px; }
.plan-card {
  border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 14px 16px;
  cursor: pointer; transition: all 0.18s ease; display: flex; align-items: center; gap: 12px;
}
.plan-card.active { border-color: var(--indigo); background: var(--grad-soft); box-shadow: 0 6px 18px -6px var(--live-border); }
.plan-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; display: grid; place-items: center; }
.plan-card.active .plan-radio { border-color: var(--indigo); }
.plan-card.active .plan-radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--indigo); }
.plan-info { flex: 1; }
.plan-name { font-weight: 700; font-size: 15px; }
.plan-desc { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.plan-price { font-weight: 800; font-size: 17px; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; white-space: nowrap; }
.plan-orig { font-size: 11px; font-weight: 500; color: var(--ink-faint); text-decoration: line-through; -webkit-text-fill-color: var(--ink-faint); }
.plan-tag { color: #e11d48; font-weight: 700; }

.user-info-card {
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 16px;
  padding: 16px; text-align: center; box-shadow: var(--shadow-md);
}
.user-phone { font-size: 17px; font-weight: 800; }
.user-quota { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.user-quota b { font-size: 20px; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.user-rank { margin-top: 4px; font-size: 12.5px; color: var(--ink-faint); }

/* ---------------- 乐小pai聊天 ---------------- */
.chat-banner {
  margin-top: 26px; display: flex; align-items: center; gap: 14px;
  background: var(--grad); border-radius: 20px; padding: 18px 20px;
  text-decoration: none; color: #fff; box-shadow: 0 12px 30px -10px var(--glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeUp 0.5s ease both;
}
.chat-banner:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px var(--glow-strong); }
.chat-banner:active { transform: translateY(0); }
.chat-banner-icon {
  width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, 0.22);
  display: grid; place-items: center; font-family: Georgia, serif; font-style: italic;
  font-size: 30px; font-weight: 700; flex: 0 0 auto;
}
.chat-banner-text { flex: 1; min-width: 0; }
.chat-banner-title { font-size: 17px; font-weight: 800; }
.chat-banner-desc { font-size: 13px; opacity: 0.92; margin-top: 3px; line-height: 1.5; }
.chat-banner-arrow { font-size: 30px; font-weight: 700; opacity: 0.9; }

/* 独立聊天页布局 */
.chat-page-main {
  display: flex; flex-direction: column;
  height: calc(100vh - 61px);
  max-width: 880px; margin: 0 auto; width: 100%;
}
.chat-page-main .chat-body { flex: 1; overflow-y: auto; padding: 16px 18px; background: transparent; }
.back-home { font-size: 15px; }

.chat-panel { width: min(560px, 100%); height: min(680px, 88vh); }
.chat-body {
  flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px;
  background: rgba(255, 255, 255, 0.4);
}
.chat-msg { display: flex; gap: 8px; align-items: flex-end; animation: fadeUp 0.3s ease both; }
.chat-msg.user { justify-content: flex-end; }
.chat-avatar {
  width: 32px; height: 32px; border-radius: 12px; flex: 0 0 auto;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  font-family: Georgia, serif; font-style: italic; font-weight: 700; font-size: 17px;
}
.chat-bubble {
  max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.75;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  box-shadow: var(--shadow-md); word-break: break-word;
}
.chat-msg.assistant .chat-bubble { border-bottom-left-radius: 6px; }
.chat-msg.user .chat-bubble {
  background: var(--grad); color: #fff; border: none; border-bottom-right-radius: 6px;
}
.chat-msg.user .chat-bubble p { margin: 0; }
.chat-bubble p { margin: 0 0 8px; }
.chat-bubble p:last-child { margin-bottom: 0; }
.chat-bubble .katex-display { margin: 8px 0; overflow-x: auto; }
.typing-dots { display: flex; gap: 4px; align-items: center; padding: 14px 16px; }
.typing-dots span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint);
  animation: bounce 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-input-row {
  display: flex; gap: 8px; align-items: flex-end; padding: 12px 14px;
  border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.6);
}
.chat-input-row textarea {
  flex: 1; resize: none; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 14px; font: inherit; font-size: 15px; max-height: 96px; min-height: 42px;
  outline: none; background: #fff; color: var(--ink);
}
.chat-input-row textarea:focus { border-color: var(--focus-strong); box-shadow: 0 0 0 3px var(--focus-ring); }
.chat-input-row .btn { padding: 10px 16px; font-size: 13.5px; align-self: flex-end; flex: none; }

@media (max-width: 640px) {
  .chat-input-row .btn.primary { flex: none; width: auto; padding: 8px 14px; font-size: 13px; }
  .chat-banner { padding: 14px 16px; border-radius: 18px; gap: 12px; }
  .chat-banner-icon { width: 44px; height: 44px; font-size: 26px; border-radius: 14px; }
  .chat-banner-title { font-size: 15.5px; }
  .chat-banner-desc { font-size: 12px; }
  .chat-page-main { height: calc(100vh - 50px); }
}

/* ---------------- 响应式（移动端优先优化） ---------------- */
@media (max-width: 640px) {
  .wrap { padding: 14px 12px 60px; }
  .topbar-inner { padding: 8px 10px; gap: 6px; }
  .brand-text { font-size: 13px; }
  .brand-text b { display: none; } /* 手机端隐藏副标题，给右侧让位 */
  .logo { width: 34px; height: 34px; font-size: 20px; border-radius: 11px; }
  .topbar-right { gap: 4px; }
  .icon-btn { width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }
  .pill {
    max-width: 30vw; padding: 6px 10px; font-size: 11.5px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .pill-sub { display: none; } /* 手机端只显示手机号，隐藏会员状态后缀 */
  .hero { padding: 18px 4px 14px; }
  .hero h1 { font-size: 1.85rem; line-height: 1.32; }
  .hero .sub { font-size: 13px; line-height: 1.65; padding: 0 8px; }

  .ask-card { padding: 14px; border-radius: 22px; }
  .ask-card textarea { min-height: 74px; font-size: 16px; } /* 16px 防 iOS 聚焦自动放大 */
  .chips {
    flex-wrap: nowrap; overflow-x: auto; margin: 4px 0 12px; padding-bottom: 4px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; padding: 7px 14px; }
  .ask-row { gap: 8px; }
  .btn.primary { flex: 1; justify-content: center; padding: 14px 10px; font-size: 15px; }
  .btn.primary kbd { display: none; }
  .btn.ghost { padding: 12px 16px; min-width: 64px; justify-content: center; }

  .loading-card { padding: 22px 16px; border-radius: 18px; }
  .thinking { border-radius: 14px; padding: 12px 14px; }

  .timeline { margin-top: 20px; }
  .timeline::before { left: 21px; }
  .step-card { padding: 14px 12px 14px 50px; border-radius: 18px; margin-bottom: 12px; }
  .step-num { left: 8px; top: 14px; width: 28px; height: 28px; font-size: 13px; border-radius: 10px; }
  .step-kicker { font-size: 10px; }
  .step-title { font-size: 1rem; margin-bottom: 8px; }
  .step-body { font-size: 15px; line-height: 1.8; }
  .step-body .katex { font-size: 1em; }
  .step-body .katex-display { margin: 10px 0; padding: 8px 10px; border-radius: 10px; }

  .final-card { border-radius: 18px; }
  .final-inner { padding: 14px; border-radius: 16px; }
  .final-head h3 { font-size: 1.05rem; }
  .final-body { font-size: 15.5px; line-height: 1.85; }

  .action-row { gap: 8px; margin-top: 20px; }
  .action-row .btn { flex: 1; justify-content: center; min-height: 46px; font-size: 13px; padding: 10px 8px; }

  .error-card { padding: 18px 16px; border-radius: 18px; }

  .drawer { width: 100vw; }
  .drawer-body { padding: 14px 18px 24px; }

  .toast {
    bottom: calc(18px + env(safe-area-inset-bottom));
    font-size: 13px; padding: 10px 18px; border-radius: 24px;
  }
  .footer { padding: 8px 16px calc(22px + env(safe-area-inset-bottom)); font-size: 11px; line-height: 1.7; }
  .footer-lan { display: none; } /* 手机端无需显示“手机访问”地址 */
  .bg-deco .blob { opacity: 0.62; } /* 手机端让背景色块更明快一些 */

  .judge-row { padding: 10px 12px; border-radius: 14px; }
  .judge-label { width: 100%; }
  .stats-overlay { padding: 0; align-items: stretch; }
  .stats-panel { width: 100%; max-height: 100vh; border-radius: 0; }
  .stats-body { padding: 14px 14px 24px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 21px; }
  .chart-row { grid-template-columns: 1fr; }
  .chart { height: 200px; }
  .wrong-q { font-size: 13.5px; }
}

/* ---------------- 消息中心 ---------------- */
.icon-btn { position: relative; }
.msg-badge {
  position: absolute; top: -5px; right: -7px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 9px; background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
  box-sizing: border-box;
}
.msg-list { max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 2px 0; }
.msg-item { background: #f8f7f4; border: 1px solid rgba(17,24,39,.06); border-radius: 12px; padding: 10px 12px; }
.msg-item.unread { border-color: var(--indigo); background: var(--grad-soft); }
.msg-item-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; }
.msg-item-time { font-size: 11px; color: var(--ink-faint); white-space: nowrap; }
.msg-item-body { margin-top: 6px; font-size: 13px; line-height: 1.65; color: var(--ink-soft); }

/* ---------------- 我的邀请码（账户面板） ---------------- */
.my-invite { margin: 14px 0 4px; padding: 12px 14px; border: 1.5px dashed var(--indigo); border-radius: 14px; background: var(--grad-soft); }
.my-invite-label { font-size: 12px; color: var(--ink-faint); }
.my-invite-code { font-size: 22px; font-weight: 900; letter-spacing: 2px; color: var(--indigo); margin: 2px 0 4px; }
.my-invite-sub { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.my-invite input { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1.5px solid #e5e7eb; border-radius: 10px; font-size: 14px; outline: none; margin-bottom: 8px; }
.my-invite input:focus { border-color: var(--indigo); }

/* ---------------- 错因自评（判题行） ---------------- */
.wrong-reason-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px dashed var(--indigo); border-radius: 14px; margin-top: 10px; background: var(--grad-soft); }
.wrong-reason-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.wrong-reason-chips button { border: 1px solid #e2e8f0; background: #fff; color: var(--ink-soft); font-size: 12.5px; padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: all .15s ease; }
.wrong-reason-chips button:hover { border-color: var(--indigo); color: var(--indigo); background: #eef2ff; }

/* ---------------- 无障碍 ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
}
