:root {
    --bg: #f7f5ef;
    --paper: #ffffff;
    --ink: #202126;
    --muted: #666b73;
    --line: #e6e0d5;
    --brand: #222222;
    --soft: #f0ece2;
    --accent: #a4652a;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(31, 28, 22, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.72;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
.site-header, .site-footer { background: var(--paper); }
.topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px clamp(16px, 4vw, 56px);
    background: #202126;
    color: #fff;
    font-size: 14px;
}
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px clamp(16px, 4vw, 56px);
    border-bottom: 1px solid var(--line);
}
.logo, .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.logo img, .footer-logo img { width: 44px; height: 44px; border-radius: 12px; }
.site-tagline { color: var(--muted); font-size: 15px; }
.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px clamp(16px, 4vw, 56px);
    border-bottom: 1px solid var(--line);
}
.main-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--soft);
    font-weight: 700;
}
.search-wrap {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 16px clamp(16px, 4vw, 56px);
    border-bottom: 1px solid var(--line);
}
.search-wrap label { font-weight: 800; }
.search-wrap input {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 16px;
    background: #fff;
}
button, .btn {
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    padding: 11px 18px;
    font-weight: 800;
    cursor: pointer;
}
.btn.secondary { background: var(--soft); color: var(--ink); }
.search-tip { grid-column: 2 / -1; margin: 0; color: var(--muted); font-size: 14px; }
main { width: min(1180px, calc(100% - 32px)); margin: 28px auto 56px; }
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
    gap: 24px;
    align-items: stretch;
}
.card, .section-card, .article-card, .video-card, .author-card, .comment-card, .faq-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hero-lead { padding: clamp(22px, 4vw, 42px); }
.kicker { color: var(--accent); font-weight: 900; letter-spacing: 0.06em; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 6vw, 58px); }
h2 { font-size: clamp(24px, 4vw, 34px); }
h3 { font-size: 21px; }
p { margin: 0 0 12px; }
.meta, .tags, .stats { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--muted); font-size: 14px; }
.tags span, .tag, .meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--soft);
    padding: 4px 9px;
}
.hero-aside { padding: 22px; display: grid; gap: 14px; }
.update-list, .rank-list { padding: 0; list-style: none; margin: 0; display: grid; gap: 12px; }
.update-list li, .rank-list li { padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.section { margin-top: 32px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-card { overflow: hidden; }
.article-card .content, .video-card .content, .author-card, .comment-card, .faq-item, .section-card { padding: 18px; }
.video-shell { position: relative; overflow: hidden; background: #111; aspect-ratio: 16 / 9; }
.video-shell video, .video-shell img { width: 100%; height: 100%; object-fit: cover; opacity: 0.96; }
.play-btn {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    color: #111;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    font-weight: 900;
}
.video-card:hover .play-btn, .video-card:focus-within .play-btn { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-card:hover img { filter: brightness(0.82); }
.image-desc { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.topic-band { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.topic-band .section-card { min-height: 180px; }
.author-list, .comment-list, .faq-list { display: grid; gap: 14px; }
.author-card { display: flex; gap: 14px; align-items: center; }
.author-card img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; }
.breadcrumb { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; }
.article-body { background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); padding: clamp(20px, 4vw, 42px); box-shadow: var(--shadow); }
.article-body p { margin-bottom: 18px; }
.article-body ul { padding-left: 22px; }
.sidebar { display: grid; gap: 18px; align-content: start; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.site-footer { padding: 32px clamp(16px, 4vw, 56px); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 24px; }
.footer-grid a { display: block; margin: 6px 0; }
@media (max-width: 860px) {
    .topbar, .header-main, .section-head { align-items: flex-start; flex-direction: column; }
    .hero, .grid, .grid.two, .topic-band, .article-layout, .footer-grid { grid-template-columns: 1fr; }
    .search-wrap { grid-template-columns: 1fr; }
    .search-tip { grid-column: auto; }
}
