/* ================================================
   Default Theme — Editorial Magazine
   纸面质感 / 衬线标题 / 细线分割 / 克制单 accent
   ================================================ */
:root {
    --paper: #faf8f4;
    --paper-warm: #f3efe7;
    --ink: #1c1a17;
    --ink-soft: #4a4640;
    --ink-mute: #8a847b;
    --rule: #e2ddd2;
    --rule-dark: #1c1a17;
    --accent: #9a3412;
    --accent-hover: #7c2d12;
    --card: #ffffff;
    --serif: "Noto Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
    --sans: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, monospace;
    --content-width: 1160px;
    --reading-width: 720px;
    --radius: 4px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
.container { max-width: var(--content-width); margin: 0 auto; padding: 0 28px; }

/* ---------- top strip ---------- */
.top-strip {
    border-bottom: 1px solid var(--rule);
    font-size: 12.5px;
    color: var(--ink-mute);
    letter-spacing: .02em;
}
.top-strip-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 36px; gap: 16px;
}
.top-strip .dateline { display: flex; gap: 12px; align-items: center; }
.top-strip .dateline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-mute); }
.lang-switcher-wrap { position: relative; display: inline-block; }
.lang-switcher-trigger {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 1px solid var(--rule); border-radius: 999px;
    padding: 3px 12px; font-size: 12.5px; color: var(--ink-soft); cursor: pointer;
}
.lang-switcher-trigger:hover { border-color: var(--ink); color: var(--ink); }
.lang-switcher-panel {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 999;
    min-width: 160px; background: #fff; border: 1px solid var(--rule);
    border-radius: 8px; box-shadow: 0 12px 32px rgba(28,26,23,.12);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .2s ease;
}
.lang-switcher-wrap.open .lang-switcher-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.ls-option { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 13px; color: var(--ink-soft); }
.ls-option:hover { background: var(--paper-warm); color: var(--ink); }
.ls-option.active { color: var(--accent); font-weight: 600; }

/* ---------- masthead ---------- */
.masthead { text-align: center; padding: 40px 0 0; }
.masthead-kicker {
    font-size: 12px; letter-spacing: .32em; text-transform: uppercase;
    color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.masthead-title {
    font-family: var(--serif);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 900; letter-spacing: -0.01em; line-height: 1.05;
}
.masthead-title a:hover { color: var(--accent); }
.masthead-tagline { margin-top: 10px; color: var(--ink-mute); font-size: 14.5px; }
.masthead-rule { border: none; border-top: 3px double var(--rule-dark); margin: 28px 0 0; }

/* ---------- nav ---------- */
.main-nav { border-bottom: 1px solid var(--rule-dark); }
.main-nav-inner {
    display: flex; align-items: center; justify-content: center;
    gap: 4px; flex-wrap: wrap; padding: 4px 0;
}
.main-nav a {
    font-size: 13.5px; font-weight: 600; letter-spacing: .12em;
    padding: 10px 18px; color: var(--ink-soft); text-transform: uppercase;
}
.main-nav a:hover { color: var(--accent); }
.nav-search { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.nav-search input {
    border: 1px solid var(--rule); background: #fff; border-radius: 999px;
    height: 32px; padding: 0 14px; font-size: 13px; width: 150px; outline: none;
    font-family: var(--sans); color: var(--ink);
}
.nav-search input:focus { border-color: var(--ink); width: 200px; }
.nav-search button {
    border: 1px solid var(--rule-dark); background: var(--ink); color: #fff;
    border-radius: 999px; height: 32px; padding: 0 16px; font-size: 13px; cursor: pointer;
}
.nav-search button:hover { background: var(--accent); border-color: var(--accent); }

.site-main { flex: 1; padding: 40px 0 72px; }

/* ---------- home: feature + grid ---------- */
.ed-kicker {
    font-size: 12px; font-weight: 700; letter-spacing: .24em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    border-bottom: 2px solid var(--rule-dark); padding-bottom: 10px; margin-bottom: 28px;
}
.section-head h2 { font-family: var(--serif); font-size: 26px; font-weight: 800; }
.section-head .more { font-size: 13px; font-weight: 600; color: var(--ink-mute); }
.section-head .more:hover { color: var(--accent); }

.feature-story {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px;
    padding-bottom: 40px; margin-bottom: 40px;
    border-bottom: 1px solid var(--rule);
}
.feature-story .thumb {
    aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius);
    background: var(--paper-warm);
}
.feature-story .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.feature-story:hover .thumb img { transform: scale(1.03); }
.feature-letter {
    aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
    background: var(--ink); color: var(--paper);
    font-family: var(--serif); font-size: 120px; font-weight: 900;
}
.feature-story h1 {
    font-family: var(--serif); font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.18; font-weight: 800; margin-bottom: 14px;
}
.feature-story h1 a:hover { color: var(--accent); }
.feature-story .excerpt { color: var(--ink-soft); font-size: 16px; line-height: 1.7; margin-bottom: 18px; }
.byline { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-mute); }
.byline .who { font-weight: 700; color: var(--ink); }
.byline .sep { opacity: .5; }

.ed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.ed-card {
    padding: 26px 26px 30px; border-bottom: 1px solid var(--rule);
    border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px;
    background: transparent; transition: background .25s ease;
}
.ed-card:nth-child(3n) { border-right: none; }
.ed-card:hover { background: var(--card); }
.ed-card .num {
    font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
    letter-spacing: .1em;
}
.ed-card .thumb { aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius); background: var(--paper-warm); }
.ed-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ed-card:hover .thumb img { transform: scale(1.04); }
.ed-card .letterbox {
    aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
    background: var(--paper-warm); font-family: var(--serif);
    font-size: 44px; font-weight: 800; color: var(--ink);
}
.ed-card h3 { font-family: var(--serif); font-size: 20px; line-height: 1.35; font-weight: 700; }
.ed-card h3 a:hover { color: var(--accent); }
.ed-card .excerpt { font-size: 14px; color: var(--ink-soft); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ed-card .meta { margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--ink-mute); display: flex; gap: 10px; align-items: center; }
.read-more { font-size: 13px; font-weight: 700; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
.read-more:hover { gap: 10px; }

/* ---------- archive hero ---------- */
.archive-head { text-align: center; padding: 16px 0 36px; border-bottom: 2px solid var(--rule-dark); margin-bottom: 36px; }
.archive-head h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 8px 0; }
.archive-head p { color: var(--ink-mute); font-size: 14.5px; }

/* ---------- article ---------- */
.article { max-width: var(--reading-width); margin: 0 auto; }
.article .kicker { text-align: center; }
.article-title {
    font-family: var(--serif); font-size: clamp(30px, 4.4vw, 46px);
    line-height: 1.2; font-weight: 800; text-align: center; margin-bottom: 20px;
    text-wrap: pretty;
}
.article-byline {
    display: flex; justify-content: center; align-items: center; gap: 14px;
    font-size: 13.5px; color: var(--ink-mute);
    padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
    margin-bottom: 32px; flex-wrap: wrap;
}
.article-byline .who { font-weight: 700; color: var(--ink); }
.article-figure { margin-bottom: 32px; }
.article-figure img { width: 100%; border-radius: var(--radius); }
.article-lede {
    font-family: var(--serif); font-size: 19px; line-height: 1.7; color: var(--ink-soft);
    border-left: 3px solid var(--accent); padding-left: 20px; margin-bottom: 32px;
}
.post-content-full { font-size: 17px; line-height: 1.85; color: var(--ink); }
.post-content-full > p:first-of-type::first-letter {
    font-family: var(--serif); font-size: 3.4em; font-weight: 800;
    float: left; line-height: 1; padding: 4px 10px 0 0; color: var(--accent);
}
.post-content-full p { margin-bottom: 1.5em; }
.post-content-full h2 { font-family: var(--serif); font-size: 26px; margin: 2em 0 .7em; font-weight: 800; }
.post-content-full h3 { font-family: var(--serif); font-size: 21px; margin: 1.6em 0 .6em; }
.post-content-full img { border-radius: var(--radius); margin: 28px 0; }
.post-content-full blockquote { border-left: 3px solid var(--rule-dark); padding: 6px 0 6px 20px; margin: 28px 0; font-family: var(--serif); font-size: 19px; color: var(--ink-soft); }
.post-content-full pre { background: #201c18; color: #e8e0d2; border-radius: 8px; padding: 20px; overflow-x: auto; margin: 28px 0; font-size: 13.5px; }
.post-content-full code { font-family: var(--mono); background: var(--paper-warm); padding: 1px 7px; border-radius: 4px; font-size: .86em; }
.post-content-full pre code { background: none; padding: 0; color: inherit; }
.post-content-full ul, .post-content-full ol { padding-left: 1.5em; margin-bottom: 1.5em; }
.post-content-full ul li { list-style: disc; margin-bottom: .4em; }
.post-content-full ol li { list-style: decimal; margin-bottom: .4em; }
.post-content-full hr { border: none; border-top: 1px solid var(--rule); margin: 40px 0; }
.article-foot {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    border-top: 2px solid var(--rule-dark); margin-top: 40px; padding-top: 24px; flex-wrap: wrap;
}
.btn-ink {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--ink); color: #fff; border-radius: 999px;
    padding: 10px 22px; font-size: 14px; font-weight: 600; border: none; cursor: pointer;
}
.btn-ink:hover { background: var(--accent); color: #fff; }
.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--rule-dark); border-radius: 999px;
    padding: 9px 20px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- comments ---------- */
.comments { margin-top: 48px; border-top: 1px solid var(--rule); padding-top: 32px; }
.comments h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 20px; }
.comment { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.comment .ava {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    background: var(--ink); color: #fff; display: flex; align-items: center;
    justify-content: center; font-weight: 700; font-size: 15px;
}
.comment-form-box { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 24px; margin-top: 24px; }
.comment-form-box input, .comment-form-box textarea {
    width: 100%; border: 1px solid var(--rule); border-radius: 6px;
    padding: 10px 14px; font-size: 14.5px; font-family: var(--sans); outline: none; background: #fff;
}
.comment-form-box input:focus, .comment-form-box textarea:focus { border-color: var(--ink); }

/* ---------- pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.page-num {
    min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--rule); border-radius: 50%; font-size: 14px; font-weight: 600; color: var(--ink-soft); background: transparent;
}
.page-num:hover { border-color: var(--ink); color: var(--ink); }
.page-num.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-btn { font-size: 14px; font-weight: 600; padding: 9px 20px; border: 1px solid var(--rule-dark); border-radius: 999px; }
.page-btn:hover { background: var(--ink); color: #fff; }

/* ---------- error / empty ---------- */
.error-page { text-align: center; padding: 90px 0; }
.error-code { font-family: var(--serif); font-size: 110px; font-weight: 900; line-height: 1; }
.error-code em { font-style: normal; color: var(--accent); }
.empty-state { text-align: center; padding: 64px 0; color: var(--ink-mute); grid-column: 1 / -1; }

/* ---------- footer ---------- */
.site-footer { border-top: 3px double var(--rule-dark); margin-top: auto; padding: 40px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand { font-family: var(--serif); font-size: 24px; font-weight: 800; }
.footer-note { font-size: 13px; color: var(--ink-mute); margin-top: 6px; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--accent); }
.footer-colophon { width: 100%; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--ink-mute); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.scroll-top {
    position: fixed; bottom: 28px; right: 28px; width: 42px; height: 42px; border-radius: 50%;
    background: var(--ink); color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(16px); transition: all .3s ease; z-index: 999;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--accent); }

@media (max-width: 900px) {
    .feature-story { grid-template-columns: 1fr; gap: 24px; }
    .ed-grid { grid-template-columns: 1fr 1fr; }
    .ed-card:nth-child(3n) { border-right: 1px solid var(--rule); }
    .ed-card:nth-child(2n) { border-right: none; }
}
@media (max-width: 600px) {
    .container { padding: 0 18px; }
    .ed-grid { grid-template-columns: 1fr; }
    .ed-card { border-right: none; }
    .masthead { padding-top: 28px; }
    .nav-search input { width: 110px; }
    .footer-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 小部件槽位（空区零输出；有部件时） */
.site-sidebar { border-top: 1px solid var(--rule); padding: 32px 0; }
.site-sidebar [data-widget] { margin-bottom: 24px; }
.widget-title { font-size: 15px; letter-spacing: .08em; margin: 0 0 12px; }
.widget-posts, .widget-cats, .widget-menu { list-style: none; margin: 0; padding: 0; }
.widget-posts li, .widget-cats li, .widget-menu li { padding: 6px 0; border-bottom: 1px dashed var(--rule); }
.widget-posts li:last-child, .widget-cats li:last-child, .widget-menu li:last-child { border-bottom: none; }
.widget-menu ul { list-style: none; margin: 4px 0 0 16px; padding: 0; }
.widget-tagcloud a { display: inline-block; margin: 0 10px 8px 0; }
.widget-search { display: flex; gap: 8px; }
.widget-search input { flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 6px; }
.widget-search button { padding: 8px 16px; border: 1px solid var(--rule); border-radius: 6px; background: none; cursor: pointer; }
.footer-widgets { min-width: 180px; }
.footer-widgets:empty { display: none; }
@media (max-width: 600px) {
    .widget-cols { grid-template-columns: 1fr !important; }
    .footer-widgets { width: 100%; }
}
