/* 三联生活周刊 · 静态站样式（由 StaticPageService 复制到 web/www/assets/site.css） */

:root {
    --ink: #1c1b19;
    --ink-soft: #4a4741;
    --muted: #8b8578;
    --line: #e4dfd4;
    --paper: #f7f4ee;
    --card: #ffffff;
    --accent: #a8322d;
    --accent-soft: #f3e6e3;
    --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.75;
}

a { color: inherit; text-decoration: none; }

a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

.wrap {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

/* ---------- 头部 ---------- */

.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 22px 0 18px;
    flex-wrap: wrap;
}

.brand { display: flex; align-items: baseline; gap: 14px; }

.brand-name {
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--ink);
    white-space: nowrap;
}

.brand-slogan {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    font-size: 14px;
}

.main-nav a {
    padding: 4px 0;
    color: var(--ink-soft);
    border-bottom: 2px solid transparent;
}

.main-nav a:hover { color: var(--accent); }

.main-nav a.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ---------- 面包屑 ---------- */

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12.5px;
    color: var(--muted);
    padding: 20px 0 0;
}

.crumbs a { color: var(--muted); }

.crumbs span.sep { color: #c8c1b3; }

/* ---------- 首页 ---------- */

.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 302px;
    gap: 46px;
    padding: 28px 0 60px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.hero__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--accent-soft);
}

.hero__media img { width: 100%; height: 100%; object-fit: cover; }

.hero--text { grid-template-columns: minmax(0, 1fr); }

.hero--text .hero__body { padding: 10px 0 4px; }

.hero__body { display: flex; flex-direction: column; justify-content: center; }

.eyebrow {
    display: inline-block;
    font-size: 11.5px;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero h1 {
    font-family: var(--serif);
    font-size: 34px;
    line-height: 1.35;
    margin: 0 0 14px;
    font-weight: 700;
}

.hero h1 a:hover { color: var(--accent); }

.hero p {
    margin: 0 0 16px;
    color: var(--ink-soft);
    font-size: 14.5px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta {
    font-size: 12.5px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.meta .dot { color: #cfc8ba; }

.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 38px 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ink);
}

.section-title h2 {
    font-family: var(--serif);
    font-size: 20px;
    margin: 0;
    letter-spacing: 1px;
}

.section-title .more {
    font-size: 12.5px;
    color: var(--muted);
}

.section-title .more:hover { color: var(--accent); }

.block-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 26px;
}

.card { display: flex; gap: 14px; }

.card__thumb {
    flex: 0 0 108px;
    height: 76px;
    background: var(--accent-soft);
    overflow: hidden;
}

.card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.card__body { min-width: 0; }

.card__title {
    font-family: var(--serif);
    font-size: 15.5px;
    line-height: 1.5;
    margin: 0 0 6px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__meta { font-size: 11.5px; color: var(--muted); }

.side { border-left: 1px solid var(--line); padding-left: 34px; }

.side h2 {
    font-family: var(--serif);
    font-size: 17px;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    letter-spacing: 1px;
}

.rank-list { list-style: none; margin: 0; padding: 0; counter-reset: rank; }

.rank-list li {
    counter-increment: rank;
    display: flex;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14px;
    line-height: 1.55;
}

.rank-list li::before {
    content: counter(rank);
    font-family: var(--serif);
    font-size: 17px;
    color: #c9c0af;
    flex: 0 0 20px;
    line-height: 1.5;
}

.rank-list li:nth-child(-n+3)::before { color: var(--accent); }

/* ---------- 栏目页 ---------- */

.cat-head { padding: 26px 0 8px; }

.cat-head h1 {
    font-family: var(--serif);
    font-size: 32px;
    margin: 0 0 10px;
    letter-spacing: 2px;
}

.cat-head p { margin: 0; color: var(--ink-soft); font-size: 14px; max-width: 780px; }

.cat-children {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 6px;
}

.cat-children a {
    font-size: 13px;
    padding: 4px 13px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink-soft);
    border-radius: 999px;
}

.cat-children a:hover { border-color: var(--accent); color: var(--accent); }

.article-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.article-list > li {
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr);
    gap: 22px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.article-list > li:first-child { padding-top: 8px; }

.article-list .thumb {
    aspect-ratio: 3 / 2;
    background: var(--accent-soft);
    overflow: hidden;
}

.article-list .thumb img { width: 100%; height: 100%; object-fit: cover; }

.article-list h3 {
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.5;
    margin: 0 0 8px;
    font-weight: 600;
}

.article-list .summary {
    color: var(--ink-soft);
    font-size: 13.5px;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0 50px;
    font-size: 12.5px;
    color: var(--muted);
}

/* ---------- 详情页 ---------- */

.article {
    max-width: 760px;
    margin: 0 auto;
    padding: 10px 0 60px;
}

.article-head { padding: 20px 0 0; }

.article-head .cat {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 2px 10px;
    margin-bottom: 16px;
}

.article-head h1 {
    font-family: var(--serif);
    font-size: 34px;
    line-height: 1.42;
    margin: 0 0 14px;
    font-weight: 700;
}

.article-head .subtitle {
    font-family: var(--serif);
    font-size: 16px;
    color: var(--muted);
    margin: 0 0 20px;
}

.article-head .meta {
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.article-cover { margin: 26px 0 6px; }

.article-cover figcaption {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
}

.article-body {
    font-size: 16px;
    line-height: 1.95;
    color: #26241f;
    padding: 26px 0 10px;
    word-break: break-word;
}

.article-body p { margin: 0 0 1.35em; }

.article-body h2,
.article-body h3 {
    font-family: var(--serif);
    line-height: 1.5;
    margin: 1.8em 0 0.8em;
}

.article-body h2 { font-size: 21px; }

.article-body h3 { font-size: 18px; }

.article-body img { margin: 1.4em auto; }

.article-body figure { margin: 1.4em 0; }

.article-body blockquote {
    margin: 1.6em 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--accent);
    color: var(--ink-soft);
    font-family: var(--serif);
}

.article-body a { color: var(--accent); text-decoration: underline; }

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: 14px;
}

.article-body td,
.article-body th {
    border: 1px solid var(--line);
    padding: 8px 10px;
}

.article-body ul,
.article-body ol { padding-left: 1.4em; }

.article-body iframe {
    max-width: 100%;
    margin: 1.4em auto;
    display: block;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

.tags a {
    font-size: 12.5px;
    color: var(--muted);
    background: var(--card);
    border: 1px solid var(--line);
    padding: 3px 11px;
}

.article-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
}

.article-nav .label {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.article-nav .next { text-align: right; }

.related { padding-top: 34px; }

/* ---------- 页脚 ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--card);
    padding: 30px 0 40px;
    font-size: 12.5px;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer a { color: var(--muted); }

/* ---------- 响应式 ---------- */

@media (max-width: 1024px) {
    .home-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 26px; }
    .hero { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
    .wrap { width: calc(100% - 32px); }
    .header-inner { padding: 16px 0 12px; gap: 10px; }
    .brand-name { font-size: 22px; }
    .brand-slogan { display: none; }
    .main-nav { gap: 2px 14px; font-size: 13px; }
    .hero h1 { font-size: 26px; }
    .block-grid { grid-template-columns: minmax(0, 1fr); }
    .article-list > li { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .article-list .thumb { aspect-ratio: 16 / 9; }
    .article-head h1 { font-size: 25px; }
    .article-body { font-size: 15.5px; }
    .article-nav { grid-template-columns: minmax(0, 1fr); }
    .article-nav .next { text-align: left; }
    .cat-head h1 { font-size: 25px; }
}
