/* 品牌色与 Zhitu/Resources/ColorExtensions.swift 保持一致。
   无外部字体、无框架；所有页面共用这一份样式。 */
:root {
  color-scheme: light;
  --paper: #f7f5f0;
  --card: #fff;
  --ink: #1c2a3a;
  --muted: #5a6675;
  --line: #e8e2d8;
  --blue: #1e7bf5;
  --blue-text: #0b5fbf;
  --deep: #0b3f6a;
  --orange: #e08a00;
  --teal: #0fa97c;
  --page-width: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--blue-text); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 5px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.3; text-wrap: balance; }
::selection { background: #cee2fd; color: var(--deep); }
.container { width: min(var(--page-width), calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 10px 20px; background: var(--deep); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(247 245 240 / 94%); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.header-inner { width: min(var(--page-width), calc(100% - 80px)); margin: auto; min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand > span { font-size: 21px; font-weight: 750; letter-spacing: -.5px; }
.brand small { font-size: 13px; font-weight: 500; letter-spacing: 0; margin-left: 6px; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a { padding: 9px 15px; border-radius: 24px; font-size: 14px; font-weight: 550; color: var(--muted); text-decoration: none; }
.main-nav a:hover { background: #eeebe4; color: var(--ink); }
.main-nav a[aria-current="page"] { background: #e8eff8; color: var(--blue-text); }
.eyebrow, .mini-label { color: var(--blue-text); font-size: 11px; line-height: 1.6; font-weight: 700; letter-spacing: 1.7px; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-line { width: 25px; height: 2px; background: var(--blue); }
.hero { display: grid; grid-template-columns: 1fr 1.06fr; align-items: center; gap: 64px; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { margin: 24px 0; font-size: clamp(54px, 5.8vw, 78px); font-weight: 800; line-height: 1.2; letter-spacing: -3px; }
.blue-word { color: var(--blue-text); }
.hero-description { color: var(--muted); font-size: 17px; line-height: 1.95; max-width: 390px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; margin-top: 32px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 12px 24px; border: 1px solid transparent; border-radius: 13px; font-size: 14px; line-height: 1.5; font-weight: 600; text-decoration: none; transition: background .18s, transform .18s; }
.button:hover { text-decoration: none; transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--blue-text); box-shadow: 0 4px 12px #0b5fbf17; }
.button-primary:hover { background: #084d9c; }
.button-outline { border-color: #b7c7d5; color: var(--deep); background: transparent; }
.button-outline:hover { background: #eaf0f6; }
.text-link { color: var(--ink); font-size: 14px; text-decoration: none; }
.text-link span { margin-left: 8px; }
.hero-footnote { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 32px; font-size: 12px; color: var(--muted); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.dot-divider { color: #a4a6a7; margin: 0 3px; }

/* 概念手账只用于首页品牌展示，刻意标明不是 App 实际界面。 */
.journal-preview { position: relative; padding: 25px 27px 20px; background: var(--deep); border-radius: 26px; box-shadow: 0 20px 50px #0b3f6a12; }
.preview-topline { display: flex; justify-content: space-between; align-items: center; color: #e7f1fa; font-size: 11px; letter-spacing: 1.2px; margin-bottom: 18px; }
.preview-topline > span:last-child { font-size: 23px; line-height: 1; color: #86d7c4; }
.journal-paper { background: #fffcf6; padding: 25px 26px 0; border-radius: 10px; transform: rotate(-1.4deg); box-shadow: 0 12px 20px #00234324; }
.journal-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.journal-heading .mini-label { font-size: 9px; }
.semester-tag { color: #846e4a; font-size: 10px; border: 1px solid #dfd2b9; border-radius: 5px; padding: 2px 7px; }
.journal-paper h2 { font-size: clamp(19px, 1.9vw, 25px); letter-spacing: -.5px; }
.preview-caption { margin-top: 6px; font-size: 11px; color: var(--muted); }
.journal-records { margin-top: 18px; }
.journal-record { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 13px 0 19px; }
.journal-record:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 32px; bottom: -9px; width: 1px; background: #d2dbdc; }
.record-marker { z-index: 1; width: 13px; height: 13px; border: 3px solid #fffcf6; border-radius: 50%; flex: 0 0 13px; margin-top: 6px; box-shadow: 0 0 0 1px currentColor; }
.blue-marker { color: var(--blue); background: var(--blue); }
.orange-marker { color: var(--orange); background: var(--orange); }
.teal-marker { color: var(--teal); background: var(--teal); }
.record-category { display: block; font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.journal-record h3 { font-size: 15px; font-weight: 650; }
.journal-record p { font-size: 11px; color: var(--muted); margin-top: 4px; }
.record-number { margin-left: auto; color: #a8adae; font-size: 11px; padding-top: 3px; }
.journal-bottom { font-size: 10px; color: var(--muted); padding: 12px 0 16px; border-top: 1px dashed #e3dbcb; }
.tiny-leaf { color: #067a58; margin-right: 6px; }
.companion-note { display: flex; align-items: center; gap: 12px; padding: 16px 4px 9px; }
.companion-note img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #ffffff42; }
.companion-note strong { display: block; font-size: 13px; color: #fff; font-weight: 600; }
.companion-note span { display: block; font-size: 10px; color: #c0d5e7; margin-top: 3px; }
.preview-disclaimer { display: block; text-align: right; color: #bed1e2; font-size: 9px; }
.principle-strip { display: flex; align-items: center; gap: 27px; border-block: 1px solid var(--line); padding: 22px 0; font-size: 13px; font-weight: 550; }
.principle-strip > span:nth-child(even) { color: var(--teal); font-size: 19px; }
.principle-strip p { font-size: 10px; color: var(--muted); letter-spacing: 1.1px; margin-left: auto; }
.section { padding-block: 88px; }
.section-heading { position: relative; margin-bottom: 36px; }
.section-heading h2 { font-size: 38px; line-height: 1.4; letter-spacing: -1px; margin-top: 14px; }
.section-heading > p:last-child { position: absolute; right: 0; bottom: 9px; color: var(--muted); font-size: 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.feature { padding: 28px 32px 30px; position: relative; }
.feature:first-child { padding-left: 0; }
.feature:last-child { padding-right: 0; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature-index { color: var(--muted); font-size: 10px; letter-spacing: 1.1px; }
.feature-icon { display: flex; justify-content: center; align-items: center; width: 42px; height: 42px; border-radius: 12px; margin-top: 23px; margin-bottom: 19px; font-size: 27px; }
.blue-icon { color: var(--blue-text); background: #e8eff8; }
.orange-icon { color: #8a5300; background: #f5e9d0; }
.teal-icon { color: #067a58; background: #e0eee7; }
.feature h3 { font-size: 20px; letter-spacing: -.5px; }
.feature p { color: var(--muted); font-size: 14px; margin-top: 12px; }
.feature-tag { display: block; margin-top: 25px; color: var(--muted); font-size: 10px; letter-spacing: .7px; }
.section-note { font-size: 12px; line-height: 1.9; color: var(--muted); margin-top: 22px; max-width: 880px; }
.privacy-banner { padding: 46px 48px; border-radius: 20px; background: var(--deep); color: #fff; display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.privacy-banner .eyebrow { color: #a3e5d4; }
.privacy-banner h2 { font-size: 35px; margin-top: 16px; line-height: 1.4; }
.privacy-banner-copy p { font-size: 14px; color: #d6e2ed; }
.privacy-banner-copy p + p { margin-top: 12px; }
.light-link { display: inline-block; margin-top: 20px; color: white; font-size: 13px; text-decoration: none; }
.light-link span { margin-left: 12px; }
.contact-section { padding-block: 80px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.contact-section h2 { font-size: 28px; margin-block: 12px; }
.contact-section p:last-child { font-size: 14px; color: var(--muted); }
.contact-section .button { flex-shrink: 0; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 32px; }
.footer-brand { color: var(--ink); font-size: 18px; font-weight: 700; text-decoration: none; }
.footer-brand span { margin-left: 7px; font-size: 11px; color: var(--muted); font-weight: 500; }
.footer-inner p { font-size: 11px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--muted); font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: var(--blue-text); text-decoration: underline; }
.footer-credit { text-align: right; }

/* 支持页与政策页：正文直接写在 HTML 内，禁用脚本也能完整阅读。 */
.page-heading { padding-top: 68px; padding-bottom: 40px; }
.page-heading h1 { margin-block: 18px; font-size: clamp(36px, 4vw, 52px); letter-spacing: -1.5px; line-height: 1.3; }
.page-heading > p:last-of-type { color: var(--muted); font-size: 16px; }
.support-contact { background: #fffdfa; border: 1px solid var(--line); border-radius: 18px; padding: 30px 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.support-contact h2 { margin: 6px 0; font-size: clamp(20px, 2.5vw, 29px); font-weight: 650; letter-spacing: -.6px; overflow-wrap: anywhere; }
.support-contact h2 a { color: var(--deep); text-decoration: none; }
.support-contact h2 a:hover { text-decoration: underline; }
.support-contact p:last-child { color: var(--muted); font-size: 12px; }
.support-contact .button { flex-shrink: 0; }
.contact-hint { font-size: 12px; color: var(--muted); max-width: 820px; margin-top: 16px; }
.support-layout, .document-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 66px; align-items: start; padding-top: 52px; padding-bottom: 80px; }
.document-layout { padding-top: 0; }
.document-toc { position: sticky; top: 118px; padding-top: 7px; }
.document-toc ol { list-style: none; padding: 13px 0 0; margin: 0; }
.document-toc li { margin-bottom: 10px; }
.document-toc li a { font-size: 13px; color: var(--muted); text-decoration: none; }
.document-toc a:hover { text-decoration: underline; color: var(--blue-text); }
.toc-extra { font-size: 12px; display: block; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); text-decoration: none; }
.help-section + .help-section { margin-top: 50px; }
.help-section h2 { font-size: 25px; margin: 10px 0 20px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 20px 32px 20px 0; font-size: 15px; line-height: 1.7; font-weight: 600; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font-size: 22px; font-weight: 400; color: var(--blue-text); }
details[open] > summary::after { content: "−"; }
.answer { padding: 0 25px 22px 0; font-size: 14px; color: var(--muted); }
.answer p + p { margin-top: 12px; }
.help-section > p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.report-list { counter-reset: report; list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 20px; }
.report-list li { position: relative; padding-left: 42px; counter-increment: report; }
.report-list li::before { content: counter(report, decimal-leading-zero); position: absolute; left: 0; top: 1px; font-size: 12px; color: var(--blue-text); }
.report-list strong { display: block; font-size: 14px; }
.report-list span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.notice { padding: 20px 23px; border-left: 3px solid var(--orange); background: #f1ebdf; border-radius: 0 10px 10px 0; font-size: 14px; }
.notice p { color: var(--muted); margin-top: 9px; }
.policy-heading { border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.policy-meta { display: flex; flex-wrap: wrap; column-gap: 25px; row-gap: 5px; margin-top: 24px; font-size: 12px; color: var(--muted); }
.policy-content { min-width: 0; }
.policy-content section + section { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.policy-content h2 { font-size: 24px; margin: 9px 0 20px; }
.policy-content h3 { font-size: 17px; margin: 26px 0 12px; }
.policy-content p, .policy-content li { font-size: 14px; line-height: 1.95; overflow-wrap: anywhere; }
.policy-content p { color: var(--muted); }
.policy-content p + p { margin-top: 14px; }
.policy-content strong { color: var(--ink); font-weight: 650; }
.policy-content ul { margin: 18px 0; padding-left: 22px; }
.policy-content li { margin-top: 12px; color: var(--muted); }
.table-scroll { overflow-x: auto; margin-block: 24px; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; background: #fffcf7; }
caption { text-align: left; padding: 12px 16px; color: var(--muted); font-size: 11px; }
th, td { padding: 13px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); line-height: 1.9; }
thead { background: #eeebe3; }
th { color: var(--ink); font-weight: 600; }
th[scope="row"] { width: 116px; min-width: 116px; }
td { color: var(--muted); }
.policy-content .provider-list { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.provider-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; border-bottom: 1px solid var(--line); padding-block: 15px; margin-top: 0; }
.provider-list strong { font-size: 14px; }
.provider-list span { font-size: 12px; grid-column: 1; }
.provider-list a { font-size: 12px; grid-column: 2; grid-row: 1 / 3; align-self: center; }
.policy-content .notice { margin-block: 23px; }
.policy-contact { padding: 23px 26px; background: #eeebe3; border-radius: 12px; margin-top: 24px; }
.policy-contact p + p { margin-top: 6px; }
.policy-contact .mini-label { color: var(--blue-text); font-size: 11px; }

@media (max-width: 1000px) {
  .hero { gap: 35px; padding-top: 55px; }
  .brand small { display: none; }
  .journal-preview { padding: 22px 20px 18px; }
  .journal-paper { padding: 22px 18px 0; }
  .journal-record { gap: 13px; }
  .journal-record h3 { font-size: 13px; }
  .principle-strip { gap: 20px; }
  .principle-strip p { display: none; }
  .support-layout, .document-layout { grid-template-columns: 175px minmax(0, 1fr); gap: 36px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-credit { width: 100%; text-align: left; display: flex; justify-content: space-between; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 90px; }
  .container, .header-inner { width: calc(100% - 40px); }
  .header-inner { min-height: 72px; gap: 10px; }
  .brand { gap: 7px; }
  .brand img { width: 33px; height: 33px; border-radius: 9px; }
  .brand > span { font-size: 19px; }
  .main-nav { gap: 0; }
  .main-nav a { font-size: 12px; padding: 9px 10px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 45px; }
  .hero h1 { font-size: 64px; margin-block: 20px; }
  .hero-description { font-size: 16px; max-width: 370px; }
  .hero-footnote { margin-top: 25px; }
  .journal-preview { max-width: 480px; width: 100%; margin-inline: auto; padding: 23px; }
  .journal-paper { padding: 24px 23px 0; }
  .journal-paper h2 { font-size: 22px; }
  .journal-record h3 { font-size: 15px; }
  .journal-record { gap: 15px; }
  .principle-strip { justify-content: space-between; gap: 8px; font-size: 12px; }
  .section { padding-block: 52px; }
  .section-heading h2 { font-size: 32px; }
  .section-heading > p:last-child { position: static; margin-top: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature, .feature:first-child, .feature:last-child { padding: 27px 0; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .feature-icon { position: absolute; right: 0; top: 28px; margin: 0; }
  .feature h3 { margin-top: 18px; }
  .feature p { max-width: 500px; }
  .feature-tag { margin-top: 15px; }
  .privacy-banner { grid-template-columns: 1fr; padding: 30px 25px; gap: 24px; }
  .privacy-banner h2 { font-size: 30px; }
  .contact-section { align-items: flex-start; flex-direction: column; padding-block: 50px; gap: 23px; }
  .contact-section h2 { font-size: 24px; }
  .footer-inner { gap: 22px; padding-block: 27px; }
  .footer-links { gap: 18px; }
  .footer-credit { display: block; }
  .page-heading { padding-top: 42px; padding-bottom: 30px; }
  .page-heading h1 { font-size: 38px; }
  .page-heading > p:last-of-type { font-size: 14px; }
  .support-contact { align-items: flex-start; flex-direction: column; padding: 23px; gap: 20px; }
  .support-contact h2 { font-size: 24px; }
  .support-layout, .document-layout { grid-template-columns: 1fr; gap: 35px; padding-top: 35px; padding-bottom: 50px; }
  .document-layout { padding-top: 0; }
  .document-toc { position: static; border-block: 1px solid var(--line); padding-block: 18px; }
  .document-toc ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; row-gap: 7px; }
  .document-toc li { margin: 0; }
  .document-toc .toc-extra { border-top: none; padding-top: 0; margin-top: 14px; }
  .policy-heading { margin-bottom: 25px; border-bottom: 0; padding-bottom: 0; }
  .policy-content h2 { font-size: 22px; }
  .help-section h2 { font-size: 24px; }
  .provider-list li { grid-template-columns: 1fr; }
  .provider-list a { grid-column: 1; grid-row: auto; justify-self: start; }
  .notice { padding: 18px; }
}
@media (max-width: 360px) {
  .container, .header-inner { width: calc(100% - 32px); }
  .main-nav a { padding-inline: 7px; font-size: 11px; }
  .brand > span { font-size: 17px; }
  .brand img { width: 29px; height: 29px; }
  .hero h1 { font-size: 58px; }
  .journal-preview { padding-inline: 17px; }
  .journal-paper { padding-inline: 18px; }
  .journal-paper h2 { font-size: 19px; }
  .journal-record h3 { font-size: 13px; }
  .record-number { display: none; }
  .support-contact h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .document-toc, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  .container { width: 100%; }
  .document-layout, .support-layout { display: block; padding: 0; }
  .page-heading { padding-top: 0; }
  .policy-content p, .policy-content li { color: #222; }
  .table-scroll { overflow: visible; }
  .policy-content section { break-inside: auto; }
  h2, h3 { break-after: avoid; }
  details::details-content { display: block; }
}
