/* Secondary pages follow the visual tokens in index.html. */
:root {
  color-scheme: light;
  --paper: #f5f2ed; --paper-2: #eeeae2; --ink: #20211f;
  --muted: #74756f; --line: rgba(32,33,31,.13);
  --orange: #f06b4f; --orange-dark: #d85138; --lilac: #dcd9fb;
  --green: #d7e6d7; --white: #fffdfa;
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--orange-dark); }
:focus-visible { outline: 2px solid var(--orange-dark); outline-offset: 4px; }
::selection { background: var(--lilac); color: var(--ink); }
.site-wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(245,242,237,.9); }
.site-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 750; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.site-brand img, .brand img { display: block; width: 36px; height: 36px; object-fit: cover; background: #fff; border-radius: 10px; }
.site-links { display: flex; align-items: center; gap: 28px; }
.site-links a { font-size: 14px; text-decoration: none; }
.site-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 21px; border: 1px solid transparent; border-radius: 999px; background: var(--ink); color: white; font-size: 14px; font-weight: 650; text-decoration: none; }
.site-button:hover { background: #393a36; color: white; }
.site-button.secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.site-footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.8; }
.site-footer .site-wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.site-footer a { text-decoration: none; }
.legal-page .container { width: min(800px, calc(100% - 64px)); margin: 64px auto 80px; padding: 48px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); line-height: 1.9; overflow-wrap: anywhere; }
.legal-page h1 { margin: 0 0 36px; font-family: var(--serif); font-size: clamp(32px, 5vw, 46px); font-weight: 650; letter-spacing: -.05em; }
.legal-page h2 { margin: 36px 0 16px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 23px; font-weight: 650; }
.legal-page h3 { margin: 24px 0 12px; font-size: 17px; }
.legal-page p { margin: 0 0 16px; }
.legal-page ul, .legal-page ol { margin: 16px 0; padding-left: 24px; }
.legal-page li { margin-bottom: 8px; }
.legal-page .highlight { padding: 18px 22px; border-left: 3px solid var(--orange); border-radius: 0 12px 12px 0; background: #fce6df; }
.legal-page .last-updated { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.error-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.error-main { flex: 1; display: grid; place-items: center; padding: 70px 24px 80px; text-align: center; background: radial-gradient(ellipse at 75% 25%, rgba(220,217,251,.65), transparent 55%); }
.error-content { width: min(100%, 600px); }
.error-code { margin: 0; color: var(--orange-dark); font-size: clamp(90px, 17vw, 160px); font-family: var(--serif); line-height: 1.1; letter-spacing: -.06em; }
.error-main h1 { margin: 22px 0 18px; font-family: var(--serif); font-size: clamp(30px, 5vw, 46px); font-weight: 650; letter-spacing: -.05em; }
.error-desc { margin: 0 auto; max-width: 460px; color: var(--muted); line-height: 1.9; font-size: 15px; }
.error-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.error-tip { margin-top: 32px; color: var(--muted); font-size: 13px; line-height: 1.8; }
/* Keep share layouts and launch controls compatible with the WeChat webview. */
.share-page .page { width: min(100%, 640px); background: var(--paper); padding: max(24px, env(safe-area-inset-top)) 28px max(28px, env(safe-area-inset-bottom)); }
.share-page .brand { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); font-size: 19px; letter-spacing: -.04em; }
.share-page .brand-main { text-decoration: none; color: var(--ink); }
.share-page .header-download { min-height: 38px; background: var(--ink); color: white; font-size: 12px; font-weight: 650; }
.share-page h1 { font-family: var(--serif); font-size: clamp(26px, 5vw, 36px); font-weight: 650; line-height: 1.4; letter-spacing: -.04em; overflow-wrap: anywhere; }
.share-page .kicker { color: var(--orange-dark); font-size: 11px; letter-spacing: .13em; font-weight: 750; }
.share-page .cover, .share-page .preview { border-color: var(--line); border-radius: 24px; background: var(--lilac); }
.share-page .placeholder { color: var(--orange-dark); }
.share-page .button { background: var(--ink); color: white; font-size: 14px; font-weight: 650; }
.share-page .button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.share-page .hint, .share-page .meta, .share-page .subtitle, .share-page .course { color: var(--muted); }
.share-page .desc, .share-page .text { color: #666760; line-height: 1.9; }
.share-page .bubble { border-radius: 16px; }
.share-page .user .bubble { background: var(--lilac); color: var(--ink); }
.share-page .assistant .bubble { background: var(--white); border-color: var(--line); color: var(--ink); }
.share-page .bubble .md a { color: var(--orange-dark); }
.share-page .player-shell { overflow: hidden; border-radius: 24px; }
.share-page .actions { padding-top: 24px; }
.share-page .share-footer { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.8; text-align: center; }
.share-page .share-footer a { margin: 0 6px; }
@media (max-width: 600px) {
  .site-wrap { width: calc(100% - 40px); }
  .site-nav { gap: 12px; min-height: 70px; }
  .site-links { gap: 16px; }
  .site-links .desktop-link { display: none; }
  .legal-page .container { width: calc(100% - 32px); padding: 28px 22px; margin: 28px auto 48px; border-radius: 20px; font-size: 15px; }
  .site-footer .site-wrap { flex-direction: column; }
  .share-page .page { padding-inline: 20px; }
  .share-page .brand { gap: 8px; font-size: 17px; }
  .share-page .header-download { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
