/* 夫子查官网 — page-level styles.
   The visual language comes from the product itself: /assets/workbench.css is
   copied from src/main/resources/static/app/workbench.css at build time, so the
   nav, hero, bands, sample report and footer stay in step with the app.
   This file only adds what the app does not have: inner-page headers, prose,
   FAQ, changelog, contact and the filing block. */

/* Sprite icons used in the landing sections */
.i {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.hero-note .i { width: 14px; height: 14px; color: #d6b376; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 300;
    padding: 10px 16px;
    background: var(--paper-raised, #fcf8ee);
    color: var(--ink, #101b2b);
    border: 1px solid var(--seal, #b3402e);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- inner page header ---------- */
.page-head {
    position: relative;
    overflow: hidden;
    padding: 86px 0 76px;
    color: #f7f0e3;
    background:
        radial-gradient(ellipse 52% 70% at 88% 4%, rgba(180, 140, 82, .25), transparent 68%),
        linear-gradient(112deg, #0d1726 0%, #132238 58%, #1b2c3e 100%);
    border-bottom: 1px solid rgba(214, 179, 118, .22);
}
.page-head::before {
    content: "阅";
    position: absolute;
    top: -70px;
    left: max(18px, calc((100vw - var(--max, 1240px)) / 2 - 90px));
    color: rgba(247, 240, 227, .03);
    font: 460px/1 var(--serif);
    pointer-events: none;
}
.page-head .wrap { position: relative; }
.page-head .chapter-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: auto;
    padding: 6px 13px;
    border-radius: 999px;
    border-color: rgba(214, 179, 118, .7);
    color: #d6b376;
    font: 500 12px/1 var(--sans);
    letter-spacing: .16em;
}
.page-head h1 {
    max-width: 18em;
    margin: 22px 0 0;
    color: #f8f1e4;
    font-family: var(--serif);
    font-size: clamp(34px, 3.6vw, 50px);
    font-weight: 500;
    line-height: 1.35;
}
.page-head p {
    max-width: 42em;
    margin: 16px 0 0;
    color: #b9c0c4;
    font-family: var(--serif);
    font-size: 14.5px;
    line-height: 1.95;
}

/* ---------- prose blocks ---------- */
.prose { max-width: 46em; }
.band .prose { padding: 0; }
.prose h2 {
    margin: 44px 0 12px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.4;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
    margin: 28px 0 8px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 18px;
}
.prose p, .prose li { color: var(--text); font-size: 14.5px; line-height: 1.95; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose blockquote {
    margin: 18px 0;
    padding: 12px 18px;
    border-left: 2px solid var(--seal);
    background: rgba(231, 222, 206, .35);
    color: var(--muted);
    font-family: var(--serif);
}
.prose code {
    padding: 1px 5px;
    background: rgba(231, 222, 206, .6);
    font: 12px/1.6 ui-monospace, Menlo, monospace;
}
.prose .callout {
    margin: 22px 0;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--seal);
    background: rgba(242, 221, 213, .4);
}
.prose .callout strong { color: var(--seal-dark); }
.prose .quiet { color: var(--muted); font-size: 13px; }
.prose .lead { font-size: 16px; }

/* ---------- bullets and steps ---------- */
.bullets {
    margin: 22px 0 0;
    padding-left: 0;
    list-style: none;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}
.bullets li { position: relative; margin: 8px 0; padding-left: 15px; }
.bullets li::before { content: "·"; position: absolute; left: 0; color: var(--seal); }
.bullets strong { color: var(--ink); font-weight: 600; }

.steps {
    counter-reset: step;
    margin: 44px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--ink);
}
.steps li {
    position: relative;
    padding: 26px 30px 26px 62px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.9;
}
.steps li:nth-child(2n) { border-right: 0; }
.steps li strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 600;
}
.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 26px;
    top: 28px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1px solid var(--seal);
    border-radius: 50%;
    color: var(--seal);
    font: 500 12px/1 var(--serif);
}

/* ---------- limits ---------- */
.limits { margin: 44px 0 0; border-top: 1px solid var(--ink); }
.limit {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}
.limit dt {
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 15.5px;
    font-weight: 600;
}
.limit dd { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.9; }

/* ---------- FAQ ---------- */
.faq { margin-top: 44px; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "问"; flex: none; color: var(--seal); font-size: 12px; font-weight: 400; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--muted); font-weight: 400; font-size: 18px; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 22px 26px; color: var(--text); font-size: 14px; line-height: 1.95; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- changelog ---------- */
.timeline { margin-top: 44px; border-top: 1px solid var(--ink); }
.entry {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 30px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.entry time { color: var(--seal); font: 13px/1.7 var(--latin); letter-spacing: .04em; }
.entry h2 { margin: 0 0 8px; color: var(--ink); font-family: var(--serif); font-size: 19px; font-weight: 600; }
.entry ul { margin: 6px 0 0; padding-left: 18px; }
.entry li { color: var(--muted); font-size: 13.5px; line-height: 1.9; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 30px; margin-top: 44px; }
.contact-card {
    min-width: 0;
    padding: 30px;
    border: 1px solid var(--line);
    background: rgba(252, 248, 238, .55);
}
.contact-card h2 { margin: 0 0 10px; color: var(--ink); font-family: var(--serif); font-size: 22px; font-weight: 600; }
.contact-card p { margin: 0 0 10px; color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.contact-card .bullets { margin-top: 16px; font-size: 13.5px; }
.contact-main h2 { color: var(--seal); word-break: break-all; }
.contact-main a { color: var(--seal); text-underline-offset: 3px; }

.smallprint { margin-top: 26px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.smallprint a { color: var(--seal); text-underline-offset: 3px; }

/* ---------- 404 ---------- */
.notfound { padding: 110px 0 120px; text-align: center; }
.notfound h1 { margin: 0 0 14px; color: var(--ink); font-family: var(--serif); font-size: 42px; font-weight: 500; }
.notfound p { margin: 0 0 30px; color: var(--muted); }
.notfound .hero-cta { justify-content: center; }

/* ---------- filing (footer) ---------- */
.filing {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 18px;
    font-size: 11px;
}
.filing a { color: #6f7c87; text-decoration: none; }
.filing a:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .page-head { padding: 64px 0 58px; }
    .steps { grid-template-columns: 1fr; }
    .steps li { border-right: 0; }
    .limit { grid-template-columns: 1fr; gap: 6px; }
    .entry { grid-template-columns: 1fr; gap: 6px; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .page-head h1 { font-size: 30px; }
    .section-head { grid-template-columns: 42px minmax(0, 1fr); }
    .section-head p { grid-column: 2; }
    .faq summary { font-size: 15.5px; }
    .notfound h1 { font-size: 32px; }
}

/* verdict chips: no outer box, the ruler and the word carry the mark */
.chip {
    border: 0;
    padding: 0;
    font-family: "夫子查批字", "Xingkai SC", "STXingkai", "Kaiti SC", "STKaiti", "KaiTi", serif;
    font-size: 20px;
}

/* verdict with the small ruler mark */
.comment-verdict {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: "夫子查批字", "Xingkai SC", "STXingkai", "Kaiti SC", "STKaiti", "KaiTi", serif;
    font-size: 24px;
}
.comment-verdict .i, .chip .i { width: 26px; height: 26px; flex: none; color: #c8994b; }

/* Single-glyph brush font (Ma Shan Zheng, OFL) subset to 批 / 像 / AI, self-hosted */
@font-face {
    font-family: "夫子查批字";
    src: url("/assets/fonts/mashanzheng-mark.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    unicode-range: U+50CF, U+6279;
}

/* The master's mark: a single 批 in 草书, brush red, tilted like a marginal note */
.master-signature {
    display: inline-block;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: #b3402e;
    font-family: "夫子查批字", "Xingkai SC", "STXingkai", "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif SC", serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    transform: rotate(-7deg);
    opacity: .92;
}
.demo-verdict .master-signature {
    width: auto;
    height: auto;
    margin-right: 4px;
    font-size: 32px;
}

/* 内测提示：纯 CSS :target 弹层，点「开始检测 / 检测我的文章」打开，无脚本 */
.notice {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.notice:target { display: flex; }
body:has(.notice:target) { overflow: hidden; }
.notice-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 20, 33, .58);
}
.notice-card {
    position: relative;
    width: min(430px, 100%);
    padding: 36px 36px 32px;
    border: 1px solid var(--line-strong);
    background: var(--paper-raised, #fcf8ee);
    box-shadow: 0 28px 70px rgba(11, 20, 33, .35);
}
.notice-kicker { color: var(--seal); font-size: 12px; letter-spacing: .18em; }
.notice-card h2 {
    margin: 12px 0 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.4;
}
.notice-card p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
@media (max-width: 480px) {
    .notice-card { padding: 28px 24px 26px; }
    .notice-card h2 { font-size: 24px; }
    .notice-actions { flex-direction: column; }
    .notice-actions .btn { justify-content: center; }
}
