:root {
    --accent: #f18648;
    --accent-soft: #fff4ed;
    --ink: #303133;
    --muted: #8b8f94;
    --line: #ececec;
    --paper: #fff;
    --wash: #f7f8fa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--wash);
    font: 14px/1.7 "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
}
.site-header-inner {
    width: min(1240px, calc(100% - 32px));
    min-height: 70px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 26px;
}
.brand { width: 113px; flex: 0 0 113px; }
.brand img { width: 113px; height: 50px; object-fit: contain; }
.site-nav { display: flex; align-items: stretch; gap: 6px; flex: 1; }
.nav-link { position: relative; padding: 21px 10px 19px; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 10px; height: 3px; background: transparent; border-radius: 3px; }
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link.active::after { background: var(--accent); }
.site-search { position: relative; width: 200px; flex: 0 0 200px; }
.site-search input { width: 100%; height: 36px; padding: 0 42px 0 16px; border: 0; border-radius: 18px; background: #f5f5f5; color: var(--ink); }
.site-search button { position: absolute; top: 6px; right: 10px; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.site-search button img { width: 24px; height: 24px; opacity: .65; }
.menu-toggle { display: none; }

.page-shell { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 70px; }
.intro-band, .category-hero {
    margin-bottom: 28px;
    padding: 34px 38px;
    background: var(--paper);
    border-left: 4px solid var(--accent);
}
.intro-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.eyebrow, .section-kicker { margin: 0 0 6px; color: var(--accent); font-size: 11px; letter-spacing: 1.5px; font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }
.intro-band h1, .category-hero h1 { margin-bottom: 6px; font-size: clamp(26px, 3vw, 38px); line-height: 1.25; }
.intro-copy, .category-hero p { margin-bottom: 0; color: var(--muted); }
.outline-link, .solid-link { display: inline-block; padding: 8px 16px; border: 1px solid var(--accent); color: var(--accent); border-radius: 3px; white-space: nowrap; }
.solid-link { background: var(--accent); color: #fff; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
.content-column { min-width: 0; }
.single-column { max-width: 900px; margin: auto; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: 24px; }
.section-heading > a { color: var(--accent); }
.article-list { display: grid; gap: 10px; }
.article-card, .text-card, .article-detail, .sidebar-block, .tag-cloud { background: var(--paper); }
.article-card { display: flex; gap: 20px; padding: 15px; border-radius: 2px; transition: box-shadow .2s; }
.article-card:hover { box-shadow: 0 4px 18px rgba(0, 0, 0, .08); }
.article-thumb { position: relative; width: 240px; height: 160px; flex: 0 0 240px; overflow: hidden; border-radius: 2px; background: #eee; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.article-thumb:hover img { transform: scale(1.06); }
.thumb-label { position: absolute; top: 10px; left: 10px; padding: 1px 8px; color: #fff; background: rgba(0, 0, 0, .56); font-size: 12px; }
.article-card-body { min-width: 0; display: flex; flex: 1; flex-direction: column; justify-content: space-between; }
.article-meta, .detail-meta { display: flex; gap: 14px; color: var(--muted); font-size: 12px; }
.article-meta span:first-child { color: var(--accent); }
.article-card h3 { margin: 4px 0; font-size: 19px; line-height: 1.45; }
.article-card h3 a:hover, .text-card h2 a:hover, .side-list a:hover, .rank-list a:hover { color: var(--accent); }
.article-card p, .text-card p { display: -webkit-box; overflow: hidden; margin: 0; color: #666; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.sidebar { display: grid; gap: 16px; }
.sidebar-block { padding: 24px 22px; }
.sidebar-block h2 { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--line); font-size: 17px; }
.rank-list, .side-list { margin: 0; padding: 0; list-style: none; }
.rank-list li { display: flex; gap: 12px; align-items: start; margin-bottom: 14px; line-height: 1.5; }
.rank-list li:last-child, .side-list li:last-child { margin-bottom: 0; }
.rank-list b { min-width: 24px; color: var(--accent); font-size: 17px; font-family: Georgia, serif; }
.rank-list a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.side-list li { padding: 10px 0; border-bottom: 1px solid #f1f1f1; }
.side-list li:last-child { border-bottom: 0; }
.side-list time { display: block; color: var(--muted); font-size: 11px; }
.chip-list, .tag-row, .tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; color: #666; background: #f6f6f6; border-radius: 3px; font-size: 12px; }
.chip:hover { color: var(--accent); background: var(--accent-soft); }
.chip-large { padding: 10px 15px; font-size: 14px; }
.chip small { color: var(--muted); }
.pagination { margin: 18px 0 0; text-align: center; }
.pagination a, .pagination span { display: inline-block; min-width: 34px; margin: 0 3px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.pagination .active span, .pagination a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.article-detail { min-width: 0; padding: 34px 40px 44px; }
.detail-header { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.detail-header h1 { margin: 4px 0 12px; font-size: clamp(26px, 3vw, 34px); line-height: 1.4; }
.article-summary { display: flex; gap: 16px; margin: 24px 0; padding: 16px 20px; color: #555; background: #fafafa; border-left: 3px solid var(--accent); }
.article-summary b { color: var(--accent); white-space: nowrap; }
.article-summary p { margin: 0; }
.article-body { color: #333; font-size: 16px; line-height: 2; word-break: break-word; }
.article-body h2, .article-body h3, .article-body h4 { margin: 1.4em 0 .5em; line-height: 1.45; }
.article-body p { margin: 0 0 1em; }
.article-body img, .article-body video { height: auto; margin: 16px auto; }
.article-body a { color: var(--accent); }
.article-body table { width: 100%; border-collapse: collapse; }
.article-body th, .article-body td { padding: 8px; border: 1px solid var(--line); }
.tag-row { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.text-card { padding: 24px 28px; border-bottom: 1px solid var(--line); }
.text-card h2 { margin: 5px 0 8px; font-size: 21px; }
.tag-cloud { padding: 30px; }
.site-footer { padding: 28px 16px; color: #777; background: #282828; text-align: center; }
.site-footer p { display: inline; margin: 0 14px; }
.site-footer a { color: #bbb; }
.to-top { position: fixed; right: 24px; bottom: 24px; display: none; width: 40px; height: 40px; border: 0; border-radius: 3px; color: var(--accent); background: #fff; box-shadow: 0 1px 8px rgba(0, 0, 0, .14); cursor: pointer; font-size: 20px; }
.to-top.is-visible { display: block; }
.empty-state { min-height: 65vh; padding: 120px 16px; text-align: center; }
.empty-state strong { color: var(--accent); font: 80px/1 Georgia, serif; }
.empty-state h1 { margin: 18px 0 8px; }
.empty-state p { color: var(--muted); }

@media (max-width: 900px) {
    .site-header-inner { gap: 14px; }
    .site-nav { gap: 0; }
    .nav-link { padding-left: 6px; padding-right: 6px; font-size: 13px; }
    .nav-link::after { left: 6px; right: 6px; }
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .site-header-inner { min-height: 58px; }
    .brand { width: 92px; flex-basis: 92px; }
    .brand img { width: 92px; height: 42px; }
    .menu-toggle { display: block; padding: 5px 8px; border: 1px solid var(--line); color: var(--accent); background: #fff; }
    .site-nav { position: absolute; top: 58px; left: 0; right: 0; display: none; padding: 8px 16px; background: #fff; border-bottom: 1px solid var(--line); }
    .site-nav.is-open { display: grid; }
    .nav-link { padding: 9px 0; }
    .nav-link::after { display: none; }
    .site-search { width: auto; flex: 1; }
    .page-shell { width: min(100% - 20px, 1240px); padding-top: 20px; }
    .intro-band { display: block; padding: 25px 22px; }
    .intro-band h1, .category-hero h1 { font-size: 27px; }
    .outline-link { margin-top: 18px; }
    .article-card { gap: 12px; padding: 10px; }
    .article-thumb { width: 112px; height: 84px; flex-basis: 112px; }
    .thumb-label { top: 5px; left: 5px; padding: 0 5px; font-size: 10px; }
    .article-card h3 { font-size: 16px; line-height: 1.35; }
    .article-card p { display: none; }
    .article-meta { justify-content: space-between; }
    .article-detail { padding: 24px 18px 30px; }
    .article-body { font-size: 15px; }
    .sidebar { grid-template-columns: 1fr; }
    .site-footer p { display: block; margin: 2px 0; }
}
