/* PotPlayer 资料站：暖米白、深铜棕、灰蓝与琥珀色的索引式界面 */
:root {
    --color-primary: #884829;
    --color-secondary: #4D6272;
    --color-dark: #24282C;
    --color-background: #F8F5EE;
    --color-surface: #EDE9DF;
    --color-text: #292723;
    --color-muted: #57554F;
    --color-accent: #E5B64B;
    --line: rgba(41, 39, 35, .16);
    --line-light: rgba(248, 245, 238, .18);
    --content-width: 1160px;
    --reading-width: 760px;
    --radius-small: 5px;
    --shadow-soft: 0 18px 45px rgba(36, 40, 44, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
    font-size: 15px;
    line-height: 1.82;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-primary); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3, strong { font-weight: 650; }
h1, h2, h3 { line-height: 1.3; }
.content-width { width: min(var(--content-width), calc(100% - 56px)); margin-inline: auto; }
.section-space { padding-block: 88px; }
.section-tint { background: var(--color-surface); }
.section-dark { background: var(--color-dark); color: var(--color-background); }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; letter-spacing: .04em; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; z-index: 1000; top: -60px; left: 16px;
    padding: 8px 14px; background: var(--color-dark); color: white;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* 页眉与导航 */
.site-header {
    position: relative; z-index: 20; background: rgba(248, 245, 238, .96);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    width: min(1280px, calc(100% - 56px)); min-height: 82px; margin: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-lockup img { width: 44px; height: 44px; object-fit: contain; border-radius: 4px; }
.brand-copy { display: grid; line-height: 1.35; }
.brand-copy strong { font-size: 17px; letter-spacing: .015em; }
.brand-copy small { margin-top: 4px; color: var(--color-muted); font-size: 11px; letter-spacing: .08em; }
.primary-nav { display: flex; align-items: center; gap: 9px; }
.primary-nav a {
    position: relative; padding: 10px 16px; color: var(--color-muted);
    font-size: 13px; transition: color .2s ease, background .2s ease;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] {
    color: var(--color-primary); background: rgba(136, 72, 41, .06);
}
.primary-nav a[aria-current="page"]::after {
    position: absolute; content: ""; left: 16px; right: 16px; bottom: 3px;
    height: 2px; background: var(--color-primary);
}
.nav-toggle {
    display: none; width: 44px; height: 42px; padding: 10px;
    border: 1px solid var(--line); background: transparent; border-radius: var(--radius-small);
}
.nav-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--color-dark); }

/* 首页首屏 */
.hero-section {
    overflow: hidden; background:
        linear-gradient(110deg, rgba(237, 233, 223, .55), transparent 62%),
        var(--color-background);
    border-bottom: 1px solid var(--line);
}
.hero-inner {
    min-height: 570px; display: grid; grid-template-columns: 1.05fr .95fr;
    align-items: center; gap: 70px; padding-block: 72px;
}
.hero-copy { max-width: 590px; }
.eyebrow, .section-kicker {
    display: flex; align-items: center; gap: 10px; margin: 0 0 18px;
    color: var(--color-secondary); font-size: 11px; font-weight: 700;
    letter-spacing: .12em;
}
.eyebrow-mark { width: 22px; height: 3px; background: var(--color-accent); }
.hero-copy h1 { max-width: 620px; margin: 0 0 22px; font-size: clamp(36px, 4.5vw, 58px); letter-spacing: -.045em; }
.hero-lead { max-width: 570px; color: var(--color-muted); font-size: 16px; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 16px;
    min-height: 48px; padding: 11px 19px; border: 1px solid transparent;
    border-radius: var(--radius-small); font-size: 13px; font-weight: 650;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--color-primary); color: #fffaf2; }
.button-primary:hover { background: #71391f; color: #fffaf2; }
.button-dark { background: var(--color-dark); color: var(--color-background); }
.button-dark:hover { background: #111416; color: white; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--color-primary); font-size: 13px; font-weight: 650; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 36px; color: var(--color-muted); font-size: 11px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--color-accent); }
.hero-visual { position: relative; max-width: 540px; justify-self: end; width: 100%; }
.visual-frame {
    position: relative; padding: 12px; background: #fffdf8; border: 1px solid var(--line);
    box-shadow: var(--shadow-soft); transform: rotate(1.1deg);
}
.visual-frame img { width: 100%; aspect-ratio: 1.48; object-fit: cover; background: var(--color-surface); }
.visual-caption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px 3px; font-size: 11px; color: var(--color-muted); }
.caption-index { color: var(--color-primary); font-family: Consolas, monospace; }
.visual-ruler { display: flex; align-items: center; gap: 9px; margin: 18px 0 0 20px; color: var(--color-secondary); font: 10px Consolas, monospace; }
.visual-ruler i { width: 26px; height: 5px; border-left: 1px solid var(--color-secondary); border-bottom: 1px solid var(--color-secondary); opacity: .55; }
.visual-ruler i:nth-of-type(2n) { height: 9px; }

/* 通用标题和信息段 */
.section-heading {
    display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 42px;
}
.section-heading h2 { max-width: 620px; margin: 0; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.035em; }
.section-kicker { margin-bottom: 12px; }
.section-intro { max-width: 430px; margin: 0; color: var(--color-muted); font-size: 13px; line-height: 1.9; }
.identity-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr); gap: 70px; align-items: start; }
.identity-main { max-width: var(--reading-width); }
.identity-main > p { color: #45423d; line-height: 2.05; }
.source-status-box {
    margin-top: 30px; padding: 20px 23px; border-left: 3px solid var(--color-accent);
    background: #f0ece2;
}
.status-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.status-symbol {
    display: inline-grid; width: 20px; height: 20px; place-items: center;
    border-radius: 50%; background: var(--color-accent); color: var(--color-dark); font-size: 12px;
}
.source-status-box ul { margin: 0; padding-left: 18px; color: var(--color-muted); font-size: 12px; }
.source-status-box li { padding: 3px 0; }
.fact-panel { padding: 22px 24px 18px; background: #fffdf8; border: 1px solid var(--line); }
.panel-topline { display: flex; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--color-primary); font-size: 12px; font-weight: 700; }
.panel-topline .mono { color: var(--color-secondary); font-weight: 400; }
.fact-panel dl { margin: 0; }
.fact-row { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact-row dt { color: var(--color-muted); font-size: 11px; }
.fact-row dd { margin: 0; font-size: 12px; font-weight: 600; }
.fact-row dd small { display: block; margin-top: 4px; color: var(--color-muted); font-size: 10px; font-weight: 400; }
.panel-footnote { margin: 15px 0 0; color: var(--color-muted); font-size: 10px; }

/* 版本选择索引 */
.selection-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.selection-list { border-top: 1px solid rgba(41, 39, 35, .28); }
.selection-row {
    display: grid; grid-template-columns: 70px minmax(0, 1fr) 34px; gap: 22px;
    padding: 25px 8px 25px 4px; border-bottom: 1px solid var(--line); align-items: start;
}
.row-number { padding-top: 3px; color: var(--color-primary); font-size: 12px; }
.row-content h3 { margin: 0 0 8px; font-size: 19px; }
.row-content p { max-width: 850px; margin: 0 0 8px; color: #45423d; font-size: 13px; }
.row-content small { display: block; max-width: 850px; color: var(--color-muted); font-size: 11px; }
.row-tick { color: var(--color-secondary); font-size: 20px; text-align: right; }
.inline-callout {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    margin-top: 30px; padding: 22px 25px; background: rgba(248, 245, 238, .72);
    border: 1px solid rgba(41, 39, 35, .12);
}
.inline-callout strong { font-size: 15px; }
.inline-callout p { margin: 4px 0 0; color: var(--color-muted); font-size: 12px; }

/* 插件分类 */
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.resource-item { min-height: 280px; padding: 24px 23px; border: 1px solid var(--line); background: rgba(255, 253, 248, .48); }
.resource-index { padding-bottom: 17px; border-bottom: 1px solid var(--line); color: var(--color-secondary); font-size: 10px; }
.resource-item h3 { margin: 22px 0 10px; font-size: 18px; }
.resource-item > p { min-height: 52px; margin: 0; color: var(--color-muted); font-size: 12px; }
.resource-rule { width: 34px; height: 2px; margin: 18px 0 14px; background: var(--color-accent); }
.resource-item .resource-check { min-height: 0; font-size: 11px; }
.resource-check strong { display: block; margin-bottom: 4px; color: var(--color-primary); font-size: 11px; }
.section-footnote { margin: 20px 0 0; color: var(--color-muted); font-size: 11px; }

/* 皮肤与外观 */
.section-heading-light .section-kicker { color: #d4b18e; }
.section-heading-light .section-intro { color: rgba(248, 245, 238, .68); }
.skin-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 58px; align-items: center; }
.skin-visual { position: relative; padding: 10px; border: 1px solid var(--line-light); background: rgba(255,255,255,.04); }
.skin-visual img { width: 100%; aspect-ratio: 1.32; object-fit: cover; background: #33383d; }
.image-note { display: block; padding: 10px 4px 2px; color: rgba(248,245,238,.62); font-size: 10px; }
.skin-list { border-top: 1px solid var(--line-light); }
.skin-entry { display: grid; grid-template-columns: 44px 1fr; gap: 15px; padding: 20px 0; border-bottom: 1px solid var(--line-light); }
.skin-number { color: var(--color-accent); font-size: 11px; }
.skin-entry h3 { margin: 0 0 7px; font-size: 17px; }
.skin-entry p { margin: 0 0 7px; color: rgba(248,245,238,.78); font-size: 12px; }
.skin-entry small { color: rgba(248,245,238,.53); font-size: 10px; }
.dark-footnote { margin: 22px 0 0; color: rgba(248,245,238,.5); font-size: 10px; }

/* 收尾引导与页脚 */
.closing-section { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.closing-copy { max-width: 680px; }
.closing-copy h2 { margin: 0 0 12px; font-size: 28px; }
.closing-copy p:last-child { margin: 0; color: var(--color-muted); font-size: 13px; }
.site-footer { padding: 45px 0 30px; background: #e9e4d9; border-top: 1px solid var(--line); }
.footer-inner { width: min(var(--content-width), calc(100% - 56px)); margin: auto; }
.footer-brand strong { font-size: 15px; }
.footer-brand p { margin: 5px 0 16px; color: var(--color-muted); font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer-links a { color: var(--color-muted); font-size: 11px; }
.footer-links a:hover { color: var(--color-primary); }
.footer-note { max-width: 780px; margin: 17px 0 10px; color: var(--color-muted); font-size: 10px; }
.footer-inner > small { color: #777168; font: 10px Consolas, monospace; }

/* 下载页 */
.download-hero { background: var(--color-dark); color: var(--color-background); }
.download-hero-inner { min-height: 340px; display: flex; align-items: center; justify-content: space-between; gap: 50px; padding-block: 65px; }
.download-hero .section-kicker { color: #d8b18c; }
.download-hero h1 { max-width: 700px; margin: 0 0 18px; font-size: clamp(34px, 4vw, 48px); letter-spacing: -.04em; }
.download-hero p:not(.section-kicker) { max-width: 680px; margin-bottom: 23px; color: rgba(248,245,238,.72); font-size: 14px; }
.text-link-light { color: #e6c18e; }
.download-stamp {
    flex: 0 0 150px; width: 150px; height: 150px; display: flex; flex-direction: column;
    justify-content: center; align-items: center; border: 1px solid rgba(248,245,238,.25);
    border-radius: 50%; transform: rotate(8deg); color: rgba(248,245,238,.75);
}
.download-stamp strong { color: var(--color-accent); font: 46px Consolas, monospace; line-height: 1.1; }
.download-stamp span, .download-stamp small { font-size: 10px; letter-spacing: .12em; }
.verification-panel {
    display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 18px;
    padding: 23px 25px; border: 1px solid rgba(136,72,41,.24); background: #fffaf0;
}
.verification-mark {
    display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%;
    background: var(--color-accent); color: var(--color-dark); font-weight: 800;
}
.verification-panel strong { font-size: 15px; }
.verification-panel p { max-width: 790px; margin: 5px 0 0; color: var(--color-muted); font-size: 12px; }
.verification-state { padding: 5px 10px; background: #f1e4c3; color: #70501b; font-size: 10px; white-space: nowrap; }
.record-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.record-card { min-height: 160px; padding: 19px; background: #fffdf8; border: 1px solid var(--line); }
.record-label { display: block; color: var(--color-secondary); font-size: 10px; }
.record-card strong { display: block; margin: 17px 0 7px; font-size: 17px; }
.record-card p { margin: 0; color: var(--color-muted); font-size: 11px; }
.comparison-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: rgba(255,253,248,.72); }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 620px; text-align: left; }
.comparison-table th, .comparison-table td { padding: 17px 20px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 12px; }
.comparison-table thead th { background: rgba(136,72,41,.08); color: var(--color-primary); font-size: 11px; }
.comparison-table tbody th { width: 18%; white-space: nowrap; }
.comparison-table tbody tr:last-child th, .comparison-table tbody tr:last-child td { border-bottom: 0; }
.download-checklist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.download-checklist li {
    display: grid; grid-template-columns: 52px 160px minmax(0,1fr) 22px; align-items: center;
    gap: 16px; padding: 19px 8px; border-bottom: 1px solid var(--line);
}
.check-index { color: var(--color-primary); font-size: 12px; }
.download-checklist strong { font-size: 14px; }
.download-checklist p { margin: 0; color: var(--color-muted); font-size: 12px; }
.check-box { width: 17px; height: 17px; border: 1px solid #a9a397; border-radius: 2px; }
.language-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.language-layout .section-kicker { color: #d8b18c; }
.language-layout h2 { margin: 0 0 16px; font-size: 30px; }
.language-layout > div:first-child p:last-child { color: rgba(248,245,238,.7); font-size: 13px; }
.language-notes { border-top: 1px solid var(--line-light); }
.language-notes > div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line-light); }
.language-notes b { color: var(--color-accent); font-size: 12px; }
.language-notes span { color: rgba(248,245,238,.72); font-size: 11px; }
.download-bottom { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.download-bottom > div { max-width: 720px; }
.download-bottom h2 { margin: 0 0 10px; font-size: 26px; }
.download-bottom p:last-child { margin: 0; color: var(--color-muted); font-size: 12px; }

/* 404 */
.error-page { min-height: 540px; padding-block: 100px; }
.error-code { color: var(--color-primary); font-size: clamp(80px, 15vw, 150px); line-height: 1; }
.error-page h1 { margin: 18px 0 12px; font-size: 32px; }
.error-page > p:not(.section-kicker) { max-width: 520px; color: var(--color-muted); }

/* 轻量进入效果；无脚本时内容保持可见 */
.will-reveal { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.will-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
    .hero-inner { gap: 38px; grid-template-columns: 1fr  .82fr; }
    .identity-layout { gap: 34px; }
    .skin-layout { gap: 34px; }
    .section-heading { gap: 28px; }
    .record-grid { grid-template-columns: repeat(2, 1fr); }
    .language-layout { gap: 40px; }
}
@media (max-width: 700px) {
    html { scroll-padding-top: 72px; }
    .content-width, .footer-inner { width: min(100% - 36px, var(--content-width)); }
    .header-inner { width: calc(100% - 36px); min-height: 70px; }
    .brand-lockup img { width: 38px; height: 38px; }
    .brand-copy strong { font-size: 15px; }
    .brand-copy small { font-size: 10px; }
    .nav-toggle { display: block; }
    .primary-nav {
        display: none; position: absolute; top: 69px; left: 0; right: 0; padding: 10px 18px 17px;
        flex-direction: column; align-items: stretch; gap: 3px; background: var(--color-background);
        border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(36,40,44,.08);
    }
    .primary-nav.is-open { display: flex; }
    .primary-nav a { padding: 12px 10px; }
    .primary-nav a[aria-current="page"]::after { left: 10px; right: auto; width: 24px; bottom: 5px; }
    .section-space { padding-block: 62px; }
    .hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 42px; padding-block: 58px 50px; }
    .hero-copy h1 { font-size: 38px; }
    .hero-lead { font-size: 14px; }
    .hero-visual { width: min(100%, 520px); align-self: center; }
    .hero-meta { gap: 10px 18px; margin-top: 25px; }
    .section-heading { display: block; margin-bottom: 30px; }
    .section-heading h2 { font-size: 29px; }
    .section-intro { margin-top: 16px; }
    .identity-layout, .skin-layout, .language-layout { grid-template-columns: 1fr; gap: 30px; }
    .fact-panel { max-width: none; }
    .selection-row { grid-template-columns: 42px minmax(0,1fr) 20px; gap: 12px; padding-block: 20px; }
    .row-content h3 { font-size: 17px; }
    .row-content p { font-size: 12px; }
    .inline-callout, .closing-section, .download-bottom { align-items: flex-start; flex-direction: column; }
    .resource-grid { grid-template-columns: 1fr; gap: 12px; }
    .resource-item { min-height: 0; }
    .resource-item > p { min-height: 0; }
    .skin-visual { max-width: 520px; }
    .closing-copy h2 { font-size: 25px; }
    .download-hero-inner { min-height: 0; padding-block: 58px; }
    .download-stamp { display: none; }
    .download-hero h1 { font-size: 35px; }
    .verification-panel { grid-template-columns: 34px minmax(0,1fr); padding: 18px; }
    .verification-state { grid-column: 2; justify-self: start; }
    .record-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .record-card { min-height: 150px; padding: 15px; }
    .record-card strong { font-size: 15px; }
    .download-checklist li { grid-template-columns: 34px minmax(0,1fr) 20px; gap: 10px; }
    .download-checklist li > div { grid-column: 2; }
    .check-box { grid-column: 3; grid-row: 1; }
    .language-layout h2 { font-size: 26px; }
    .language-notes > div { grid-template-columns: 1fr; gap: 5px; }
    .footer-links { gap: 12px 20px; }
}
@media (max-width: 420px) {
    .hero-copy h1 { font-size: 33px; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
    .record-grid { grid-template-columns: 1fr; }
    .record-card { min-height: 0; }
    .visual-caption { font-size: 9px; }
    .download-checklist li { grid-template-columns: 28px minmax(0,1fr) 18px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important; animation-duration: .01ms !important;
        animation-iteration-count: 1 !important; transition-duration: .01ms !important;
    }
    .will-reveal { opacity: 1; transform: none; }
}

/* 表格、链接和状态的细节 */
.comparison-table tbody tr:hover { background: rgba(229, 182, 75, .08); }
.button:focus-visible, .primary-nav a:focus-visible { outline-offset: 4px; }
.source-status-box li::marker { color: var(--color-primary); }
.resource-item, .record-card { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.resource-item:hover, .record-card:hover { border-color: rgba(136,72,41,.38); box-shadow: 0 10px 25px rgba(36,40,44,.05); }
.skin-entry:last-child { border-bottom: 0; }
.download-checklist li:hover { background: rgba(237,233,223,.45); }
.error-page .button { margin-right: 10px; }
@media print {
    body { background: #fff; color: #000; font-size: 11pt; }
    .site-header, .site-footer, .nav-toggle, .hero-actions, .button { display: none !important; }
    .content-width { width: 100%; }
    .section-space { padding-block: 24px; }
    .section-dark { background: #fff; color: #000; }
    .section-dark p, .section-dark small, .section-dark .section-intro { color: #333 !important; }
    a { text-decoration: underline; }
}
