/*
 * 红果漫剧站点样式
 * 视觉方向：暖白底、莓红主色、暖橙辅助、深紫灰正文。
 * 本文件只包含实际页面使用的布局、组件、响应式和可访问性样式。
 */
:root {
    --brand: #E85D75;
    --brand-strong: #D93F63;
    --orange: #F2A65A;
    --ink: #2F2530;
    --text: #332D34;
    --muted: #756A73;
    --bg: #FFF9F6;
    --soft: #F8EEF0;
    --paper: #FFFFFF;
    --line: #EADFE2;
    --shadow: 0 18px 44px rgba(80, 42, 54, .09);
    --shadow-small: 0 9px 24px rgba(80, 42, 54, .07);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shell: min(1180px, calc(100vw - 40px));
    --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid rgba(217, 63, 99, .35); outline-offset: 3px; }
::selection { background: rgba(232, 93, 117, .18); }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link {
    position: fixed; left: 16px; top: 12px; z-index: 999;
    transform: translateY(-150%); background: var(--ink); color: #fff;
    padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky; top: 0; z-index: 50; background: rgba(255, 249, 246, .94);
    border-bottom: 1px solid transparent; backdrop-filter: blur(14px);
    transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header[data-scrolled] { border-color: rgba(234, 223, 226, .92); box-shadow: 0 6px 20px rgba(47, 37, 48, .05); }
.site-header__inner { min-height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; background: var(--soft); }
.brand__text { display: grid; line-height: 1.2; }
.brand__text strong { color: var(--ink); font-size: 18px; letter-spacing: .02em; }
.brand__text small { color: var(--muted); font-size: 12px; margin-top: 5px; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.primary-nav a {
    padding: 10px 13px; border-radius: 999px; text-decoration: none; color: var(--muted);
    font-weight: 650; font-size: 14px; transition: background .18s ease, color .18s ease;
}
.primary-nav a:hover { background: var(--soft); color: var(--ink); }
.primary-nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.menu-toggle { display: none; margin-left: auto; border: 0; background: transparent; padding: 10px; border-radius: 10px; }
.menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after {
    width: 20px; height: 2px; background: currentColor; display: block; position: relative; transition: transform .2s ease;
}
.menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; }
.menu-toggle__icon::before { top: -6px; }
.menu-toggle__icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 0; transform: rotate(-45deg); }

.eyebrow { margin: 0 0 12px; color: var(--brand-strong); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.24; margin-top: 0; }
h1 { font-size: clamp(36px, 5vw, 66px); letter-spacing: -.04em; }
h2 { font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -.025em; }
h3 { font-size: 21px; letter-spacing: -.012em; }
p { margin-top: 0; }
.button {
    display: inline-flex; min-height: 46px; align-items: center; justify-content: center;
    padding: 11px 18px; border-radius: 999px; text-decoration: none; font-weight: 800;
    border: 1px solid transparent; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--brand-strong); color: #fff; box-shadow: 0 12px 24px rgba(217, 63, 99, .2); }
.button--primary:hover { background: #c93658; }
.button--secondary { background: var(--ink); color: #fff; }
.button--ghost { border-color: #d9c8ce; background: rgba(255,255,255,.58); color: var(--ink); }
.text-link { font-weight: 750; color: var(--brand-strong); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link--strong { display: inline-flex; margin-top: 8px; font-size: 17px; }
.inline-actions, .hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(330px, .72fr); gap: 58px; align-items: center; padding-block: 58px 72px; }
.hero__copy { padding-block: 28px; }
.hero h1 { max-width: 780px; margin-bottom: 22px; }
.hero__lead { max-width: 720px; font-size: 19px; color: #594e56; line-height: 1.85; }
.hero__actions { margin: 28px 0 30px; }
.hero__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.hero__facts div { padding: 16px 18px; background: var(--soft); border-radius: 16px; border: 1px solid #f0dfe4; }
.hero__facts dt { color: var(--muted); font-size: 12px; font-weight: 750; margin-bottom: 4px; }
.hero__facts dd { margin: 0; color: var(--ink); font-weight: 700; }
.hero__visual { margin: 0; position: relative; }
.hero__visual::before {
    content: ""; position: absolute; inset: 7% -7% -4% 10%; z-index: -1; border-radius: 42px;
    background: radial-gradient(circle at 20% 30%, rgba(242,166,90,.30), transparent 45%), var(--soft);
}
.hero__visual img { width: 100%; border-radius: 34px; box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; }
.hero__visual figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; text-align: center; }

.section-heading { max-width: 760px; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 13px; }
.section-heading > p:last-child { color: var(--muted); font-size: 17px; }
.section-heading--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 48px; align-items: end; }
.section-heading--split > p { margin-bottom: 3px; }
.home-rail, .content-shelf, .editorial, .faq, .process, .split-feature, .web-examples, .related, .desktop-layout, .tips, .keyboard, .desktop-content, .library { padding-block: 64px; }

.quick-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quick-links a { height: 100%; display: grid; align-content: start; gap: 8px; padding: 20px; border-radius: 18px; text-decoration: none; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-small); }
.quick-links strong { color: var(--ink); font-size: 18px; }
.quick-links span { color: var(--muted); }
.quick-links a:hover { border-color: #ddbcc5; transform: translateY(-2px); }

.card-grid { display: grid; gap: 18px; }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-card { display: flex; flex-direction: column; min-height: 290px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-small); }
.content-card h3 { margin: 12px 0 10px; }
.content-card h3 a { text-decoration: none; }
.content-card h3 a:hover { color: var(--brand-strong); }
.content-card p { color: var(--muted); }
.content-card .text-link { margin-top: auto; padding-top: 10px; }
.content-card--compact { min-height: 230px; box-shadow: none; }
.content-card__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.content-card__meta span { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; background: var(--soft); color: #70545d; border-radius: 999px; font-size: 12px; font-weight: 800; }
.tag-list { list-style: none; padding: 0; margin: 6px 0 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list li { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.section-cta { margin-top: 24px; text-align: center; }

.watch-band { margin-block: 52px; padding-block: 76px; background: var(--ink); color: #f9f1f3; }
.watch-band__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 52px; align-items: center; }
.watch-band__image img { border-radius: 26px; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 26px 60px rgba(0,0,0,.25); }
.watch-band h2 { color: #fff; }
.watch-band .eyebrow { color: #ffc9d2; }
.watch-band__copy > p { color: #e7dadd; font-size: 17px; }
.check-list { padding: 0; margin: 24px 0; list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: #f0e6e8; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; font-weight: 900; }
.watch-band .text-link { color: #ffbdc9; }

.editorial__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.editorial-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; padding: 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--paper); }
.editorial-card img { width: 100%; height: 100%; min-height: 160px; border-radius: 14px; object-fit: cover; }
.editorial-card h3 { margin-bottom: 8px; }
.editorial-card h3 a { text-decoration: none; }
.editorial-card p:last-child { color: var(--muted); margin-bottom: 0; }
.kicker { margin: 8px 0 7px; color: var(--brand-strong); font-size: 12px; font-weight: 800; }

.device-note { margin-block: 44px 76px; padding: 34px; background: linear-gradient(135deg, #f9e8eb, #fff5ea); border-radius: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); gap: 42px; align-items: center; }
.device-note__copy { padding: 14px 10px 14px 12px; }
.device-note__copy p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.device-note img { border-radius: 22px; aspect-ratio: 4 / 3; object-fit: cover; }

.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); overflow: clip; }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 800; color: var(--ink); position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--brand-strong); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 20px 20px; color: var(--muted); max-width: 900px; }

.page-intro { padding-block: 36px 58px; }
.breadcrumb { margin-bottom: 24px; }
.breadcrumb ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #b7a8ad; }
.breadcrumb a { text-decoration: none; }
.page-intro__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(330px, .75fr); gap: 48px; align-items: center; }
.page-intro__grid h1 { font-size: clamp(34px, 4.5vw, 58px); }
.page-intro__lead { max-width: 760px; color: var(--muted); font-size: 18px; line-height: 1.85; }
.page-intro__grid img { border-radius: 28px; background: var(--soft); box-shadow: var(--shadow); aspect-ratio: 6 / 5; object-fit: cover; }
.page-intro__compact { max-width: 900px; padding: 28px 0 12px; }
.page-intro__compact h1 { margin-bottom: 18px; }

.process-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.process-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.process-list__number { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 900; }
.process-list h3 { margin-bottom: 10px; font-size: 18px; }
.process-list p { color: var(--muted); margin-bottom: 0; }

.split-feature { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1fr); gap: 54px; align-items: center; }
.split-feature__image img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.split-feature__copy > p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.split-feature__copy h3 { margin: 30px 0 14px; }
.detail-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.detail-list li { color: #5f535a; }
.detail-list strong { color: var(--ink); }

.browser-notes { padding-block: 72px; background: var(--soft); }
.browser-notes__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 52px; align-items: start; }
.browser-notes h2 { margin-bottom: 16px; }
.browser-notes__grid > div:first-child > p:last-child { color: var(--muted); font-size: 17px; }
.browser-notes__cards { display: grid; gap: 14px; }
.browser-notes__cards article { background: var(--paper); border-radius: 18px; padding: 20px; border: 1px solid #eadde1; }
.browser-notes__cards h3 { margin-bottom: 8px; }
.browser-notes__cards p { color: var(--muted); margin: 0; }

.desktop-layout__mock { margin-top: 26px; min-height: 530px; background: #3b313b; padding: 26px; border-radius: 28px; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 22px; box-shadow: var(--shadow); }
.desktop-layout__sidebar { border-radius: 18px; background: #2c252d; padding: 24px 18px; display: grid; align-content: start; gap: 16px; }
.desktop-layout__sidebar span { height: 16px; border-radius: 999px; background: rgba(255,255,255,.12); }
.desktop-layout__sidebar span:nth-child(1) { width: 80%; background: rgba(232,93,117,.7); }
.desktop-layout__sidebar span:nth-child(3) { width: 64%; }
.desktop-layout__screen { min-width: 0; border-radius: 20px; padding: 22px; background: #fff9f6; display: grid; grid-template-columns: minmax(260px, .78fr) minmax(250px, 1fr); gap: 26px; align-items: center; }
.desktop-layout__media { height: 430px; width: min(100%, 270px); justify-self: center; border-radius: 24px; background: linear-gradient(160deg, var(--brand), var(--orange)); display: grid; place-items: center; color: #fff; font-weight: 850; box-shadow: 0 18px 40px rgba(47,37,48,.2); }
.desktop-layout__info { display: grid; gap: 14px; }
.desktop-layout__info strong { font-size: 22px; color: var(--ink); }
.desktop-layout__info > span { height: 11px; border-radius: 999px; background: #eadde1; }
.desktop-layout__info > span:nth-of-type(2) { width: 88%; }
.desktop-layout__info > span:nth-of-type(3) { width: 74%; }
.desktop-layout__info div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.desktop-layout__info b { padding: 7px 10px; border-radius: 999px; background: var(--soft); color: #70545d; font-size: 12px; }

.tips-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tips-grid article { min-height: 250px; padding: 22px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.tips-grid article > span { color: var(--brand-strong); font-size: 13px; font-weight: 900; letter-spacing: .1em; }
.tips-grid h3 { margin: 26px 0 10px; }
.tips-grid p { margin: 0; color: var(--muted); }

.keyboard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr); gap: 48px; align-items: center; }
.keyboard__copy > p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.keyboard img { border-radius: 26px; aspect-ratio: 9 / 7; object-fit: cover; }
.key-map { margin: 26px 0 0; display: grid; gap: 10px; }
.key-map div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.key-map dt, .key-map dd { margin: 0; }
kbd { padding: 3px 7px; border-radius: 7px; border: 1px solid #cbbbc0; background: #fff; box-shadow: 0 2px 0 #dccdd2; font-family: inherit; font-size: 12px; font-weight: 800; }

.filter-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; position: sticky; top: calc(var(--header-h) + 12px); z-index: 20; box-shadow: var(--shadow-small); }
.filter-panel > div { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.filter-label { font-size: 12px; font-weight: 850; color: var(--muted); margin-right: 3px; }
.filter-panel a { padding: 6px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 750; }
.filter-panel a:hover { background: var(--soft); color: var(--ink); }
.filter-panel a[aria-current="true"] { background: var(--brand); color: #fff; }
.filter-panel .filter-reset { margin-left: auto; color: var(--brand-strong); }
.library__summary { margin: 34px 0 20px; display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.library__summary h2 { margin: 0; font-size: 26px; }
.library__summary p { margin: 0; color: var(--muted); max-width: 650px; }
.library-list { display: grid; gap: 22px; }
.library-entry { scroll-margin-top: 150px; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 26px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; }
.library-entry:focus { outline: 3px solid rgba(217,63,99,.24); }
.library-entry__media img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; border-radius: 16px; }
.library-entry__body h3 { margin: 12px 0 8px; font-size: 26px; }
.library-entry__summary { font-size: 17px; color: #574b52; font-weight: 650; }
.library-entry__body > p:not(.library-entry__summary) { color: var(--muted); }
.library-entry__body h4 { margin: 20px 0 9px; font-size: 15px; }
.empty-state { padding: 48px; text-align: center; border: 1px dashed #d7c3ca; border-radius: 24px; background: rgba(255,255,255,.58); }
.empty-state p { color: var(--muted); }
.empty-state .inline-actions { justify-content: center; }

.error-page { padding-block: 48px 100px; }
.error-page__panel { max-width: 720px; margin: 40px auto; text-align: center; padding: 60px 28px; border-radius: 28px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-small); }
.error-code { margin: 0 0 10px; font-size: 82px; line-height: 1; font-weight: 900; color: var(--brand); letter-spacing: -.08em; }
.error-page__panel h1 { font-size: 40px; }
.error-page__panel > p:not(.error-code) { color: var(--muted); }
.error-page__panel .inline-actions { justify-content: center; margin-top: 28px; }

.site-footer { margin-top: 72px; padding-block: 48px; background: var(--ink); color: #ecdee2; }
.site-footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 28px 52px; align-items: start; }
.site-footer__brand strong { color: #fff; font-size: 20px; }
.site-footer__brand p { max-width: 650px; margin: 8px 0 0; color: #cdbec3; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: end; }
.footer-nav a { color: #fff; text-decoration: none; font-weight: 700; }
.footer-nav a:hover { color: #ffc7d1; }
.site-footer__note { grid-column: 1 / -1; margin: 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #af9fa5; font-size: 13px; }
.back-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--brand-strong); color: #fff; box-shadow: 0 12px 28px rgba(47,37,48,.2); cursor: pointer; font-size: 20px; font-weight: 900; }
.back-top:hover { transform: translateY(-2px); }
.back-top[hidden] { display: none; }

/* 交互细节：仅增强，不隐藏服务端输出的核心内容 */
.content-card, .quick-links a, .editorial-card, .tips-grid article, .library-entry { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.content-card:hover, .editorial-card:hover, .tips-grid article:hover, .library-entry:hover { transform: translateY(-2px); border-color: #dfc8cf; box-shadow: var(--shadow-small); }
.page-watch .site-header, .page-desktop .site-header, .page-library .site-header { background: rgba(255,249,246,.96); }
.page-desktop .page-intro__grid img { background: linear-gradient(145deg, #f6e2e7, #fff1dc); }
.page-library .page-intro { padding-bottom: 18px; }
.page-library .site-footer { margin-top: 40px; }

/* 中等屏幕 */
@media (max-width: 1080px) {
    :root { --shell: min(100% - 32px, 980px); }
    .hero, .page-intro__grid { gap: 36px; }
    .hero h1 { font-size: clamp(34px, 5vw, 54px); }
    .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-list, .tips-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .desktop-layout__mock { grid-template-columns: 150px minmax(0, 1fr); }
    .desktop-layout__screen { grid-template-columns: minmax(220px, .72fr) 1fr; }
    .editorial-card { grid-template-columns: 150px minmax(0, 1fr); }
}

@media (max-width: 860px) {
    :root { --header-h: 68px; }
    .site-header__inner { min-height: var(--header-h); }
    .brand__text small { display: none; }
    .menu-toggle { display: inline-flex; align-items: center; gap: 9px; }
    .primary-nav {
        position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); display: none; padding: 10px;
        border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow);
    }
    .primary-nav[data-open] { display: grid; }
    .primary-nav a { border-radius: 10px; padding: 12px 14px; }
    body[data-menu-open] { overflow: hidden; }
    .hero, .page-intro__grid, .watch-band__grid, .split-feature, .browser-notes__grid, .keyboard, .device-note { grid-template-columns: 1fr; }
    .hero { padding-top: 34px; }
    .hero__visual { max-width: 600px; }
    .hero__visual img { aspect-ratio: 16 / 11; }
    .section-heading--split { grid-template-columns: 1fr; gap: 8px; align-items: start; }
    .quick-links { grid-template-columns: 1fr; }
    .editorial__grid { grid-template-columns: 1fr; }
    .device-note { padding: 26px; }
    .page-intro__grid img { max-height: 500px; object-fit: cover; }
    .desktop-layout__mock { min-height: 0; grid-template-columns: 1fr; }
    .desktop-layout__sidebar { display: none; }
    .desktop-layout__screen { grid-template-columns: minmax(220px, .7fr) 1fr; }
    .library-entry { grid-template-columns: 220px minmax(0, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr; }
    .footer-nav { justify-content: start; }
}

@media (max-width: 680px) {
    :root { --shell: calc(100% - 24px); }
    body { font-size: 15px; }
    h1 { font-size: 36px; }
    h2 { font-size: 29px; }
    .brand img { width: 40px; height: 40px; }
    .brand__text strong { font-size: 17px; }
    .hero { gap: 26px; padding-bottom: 42px; }
    .hero__lead, .page-intro__lead { font-size: 16px; }
    .hero__facts { grid-template-columns: 1fr; }
    .hero__visual img { border-radius: 22px; }
    .home-rail, .content-shelf, .editorial, .faq, .process, .split-feature, .web-examples, .related, .desktop-layout, .tips, .keyboard, .desktop-content, .library { padding-block: 46px; }
    .card-grid--3, .card-grid--2, .process-list, .tips-grid { grid-template-columns: 1fr; }
    .watch-band { margin-block: 34px; padding-block: 52px; }
    .editorial-card { grid-template-columns: 116px minmax(0, 1fr); gap: 14px; }
    .editorial-card img { min-height: 145px; }
    .editorial-card h3 { font-size: 17px; }
    .editorial-card p:last-child { display: none; }
    .device-note { margin-block: 30px 50px; padding: 20px; }
    .page-intro { padding-block: 24px 38px; }
    .page-intro__grid h1 { font-size: 36px; }
    .split-feature { gap: 30px; }
    .desktop-layout__mock { padding: 14px; }
    .desktop-layout__screen { grid-template-columns: 1fr; }
    .desktop-layout__media { width: min(100%, 240px); height: 360px; }
    .key-map div { grid-template-columns: 105px minmax(0, 1fr); }
    .filter-panel { position: static; align-items: flex-start; }
    .filter-panel > div { width: 100%; }
    .filter-panel .filter-reset { margin-left: 0; }
    .library__summary { display: block; }
    .library__summary h2 { margin-bottom: 8px; }
    .library-entry { grid-template-columns: 1fr; padding: 14px; }
    .library-entry__media img { min-height: 0; aspect-ratio: 16 / 10; }
    .library-entry__body h3 { font-size: 23px; }
    .error-page__panel { padding: 44px 20px; }
    .error-code { font-size: 64px; }
    .error-page__panel h1 { font-size: 32px; }
}

@media (max-width: 430px) {
    .site-header__inner { gap: 10px; }
    .menu-toggle > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .hero__actions .button, .inline-actions .button { width: 100%; }
    .editorial-card { grid-template-columns: 1fr; }
    .editorial-card img { aspect-ratio: 16 / 9; min-height: 0; }
    .editorial-card p:last-child { display: block; }
    .filter-panel a { padding: 7px 9px; }
    .back-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
    .site-header, .site-footer, .back-top, .button, .filter-panel { display: none !important; }
    body { background: #fff; color: #000; }
    .shell { width: 100%; }
    .content-card, .library-entry, .faq-list details { box-shadow: none; break-inside: avoid; }
    a { text-decoration: none; }
}


/* 内容索引的长篇阅读辅助区 */
.reading-guides { padding-top: 30px; }
.guide-stack { display: grid; gap: 14px; }
.guide-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 22px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .78);
}
.guide-row__index {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--soft);
    color: var(--brand-strong);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .08em;
}
.guide-row__body h3 { margin-bottom: 10px; font-size: 24px; }
.guide-row__intro { max-width: 900px; color: #594d54; font-size: 16px; }
.guide-row__points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.guide-row__points > div { padding: 16px; border-radius: 16px; background: var(--soft); }
.guide-row__points strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 14px; }
.guide-row__points p { margin: 0; color: var(--muted); font-size: 14px; }
.guide-row__closing { margin: 0; padding-top: 14px; border-top: 1px dashed #dbcbd0; color: var(--muted); }

@media (max-width: 860px) {
    .guide-row__points { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .guide-row { grid-template-columns: 1fr; padding: 20px; }
    .guide-row__index { width: 48px; height: 48px; border-radius: 15px; }
    .guide-row__body h3 { font-size: 21px; }
}


.device-compare { padding-block: 54px; }
.compare-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-small); }
.compare-table table { width: 100%; min-width: 760px; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 17px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare-table thead th { background: var(--soft); color: var(--ink); font-size: 14px; }
.compare-table tbody th { width: 20%; color: var(--ink); font-size: 14px; }
.compare-table tbody td { color: var(--muted); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover { background: #fffdfb; }
