:root {
    --bg: #f7f8fb;
    --card: #ffffff;
    --ink: #14213d;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #e5484d;
    --brand-dark: #b4232a;
    --accent: #1d4ed8;
    --soft: #fff3f3;
    --shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.68;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
button, input, textarea, select { font: inherit; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.topbar, .main-nav, .search-wrap, main, .footer-grid, .copyright {
    width: min(1180px, calc(100% - 32px));
    margin: auto;
}
.topbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.brand span { display: grid; line-height: 1.22; }
.brand strong { font-size: 1.2rem; letter-spacing: .03em; }
.brand em { color: var(--muted); font-size: .82rem; font-style: normal; }
.domain-pill {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: #fff;
    font-size: .9rem;
}
.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 12px;
}
.main-nav a {
    padding: 9px 13px;
    border-radius: 999px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid transparent;
    font-size: .95rem;
}
.main-nav a.active, .main-nav a:hover {
    color: var(--brand-dark);
    background: var(--soft);
    border-color: #ffd3d3;
}
.search-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding-bottom: 14px;
}
.search-wrap input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    outline: none;
}
.search-wrap input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(229, 72, 77, .1); }
.search-wrap button, .primary-btn, .ghost-btn, .card-actions button, .form-card button {
    border: 0;
    border-radius: 14px;
    padding: 12px 18px;
    cursor: pointer;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}
.search-tip {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    min-height: 1.4em;
    font-size: .9rem;
}

main { padding: 28px 0 56px; }
.hero {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 24px;
    align-items: stretch;
}
.hero-panel, .feature-panel, .section-card, .module-card, .content-card, .author-card, .comment-card, .faq-item, .form-card, .rule-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}
.hero-panel {
    padding: 36px;
    background:
        radial-gradient(circle at top right, rgba(229, 72, 77, .12), transparent 30%),
        linear-gradient(135deg, #fff, #fff8f8);
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--brand-dark);
    font-weight: 800;
}
.hero h1, .page-title h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.12;
    letter-spacing: -.04em;
}
.hero p, .page-title p { color: var(--muted); font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.ghost-btn { background: #fff; color: var(--brand-dark); border: 1px solid #ffd3d3; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.74);
}
.stat strong { display: block; font-size: 1.35rem; }
.stat span { color: var(--muted); font-size: .9rem; }
.feature-panel { padding: 18px; }
.feature-panel h2 { margin: 10px 8px 12px; }
.trend-list { display: grid; gap: 12px; }
.trend-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #f8fafc;
}
.trend-rank {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--brand);
    font-weight: 900;
}
.trend-item h3 { margin: 0; font-size: 1rem; }
.trend-item p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.hot-score { color: var(--brand-dark); font-weight: 800; }

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 46px 0 18px;
}
.section-head h2 { margin: 0; font-size: clamp(1.45rem, 2.5vw, 2.2rem); }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.more-link { color: var(--brand-dark); font-weight: 800; white-space: nowrap; }
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.module-card, .content-card, .author-card, .comment-card, .faq-item, .form-card, .rule-card { padding: 18px; }
.module-card h3, .content-card h3, .author-card h3, .rule-card h3 { margin: 12px 0 6px; }
.module-card p, .content-card p, .author-card p, .comment-card p, .rule-card p { color: var(--muted); margin: 0 0 12px; }
.meta, .tag-row, .source-line, .card-actions, .author-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.meta span, .tag, .source-line span {
    color: var(--muted);
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: .82rem;
}
.tag { color: var(--accent); }
.video-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #111827;
    aspect-ratio: 16 / 9;
    isolation: isolate;
}
.video-thumb img, .video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .35s ease;
}
.video-thumb:hover img, .content-card:hover .video-thumb img { transform: scale(1.05); opacity: .88; }
.play-badge {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.42));
    opacity: 0;
    transition: opacity .2s ease;
}
.video-thumb:hover .play-badge, .content-card:hover .play-badge { opacity: 1; }
.play-badge span {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(229, 72, 77, .92);
    box-shadow: 0 12px 28px rgba(0,0,0,.2);
    font-weight: 900;
}
.video-label {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(20, 33, 61, .78);
    font-size: .78rem;
}
.heat {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .9rem;
}
.card-actions { margin-top: 14px; }
.card-actions button {
    padding: 8px 11px;
    color: var(--ink);
    background: #f8fafc;
    border: 1px solid var(--line);
    font-weight: 700;
}
.card-actions button.active { color: var(--brand-dark); background: var(--soft); border-color: #ffd3d3; }
.figure-note { color: var(--muted); font-size: .84rem; margin-top: 8px; }

.author-card { text-align: center; }
.avatar {
    width: 76px;
    height: 76px;
    margin: auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 12px 24px rgba(15,23,42,.12);
}
.author-meta { justify-content: center; }
.author-meta span { color: var(--muted); font-size: .88rem; }

.community-band {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 18px;
    align-items: stretch;
}
.section-card { padding: 24px; }
.notice-list, .update-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.notice-list li, .update-list li {
    padding: 12px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
}
.update-list time { color: var(--brand-dark); font-weight: 800; margin-right: 8px; }

.form-card form { display: grid; gap: 12px; }
.form-card input, .form-card textarea, .form-card select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    outline: none;
}
.form-card textarea { min-height: 128px; resize: vertical; }
.form-card small { color: var(--muted); }

.faq-list { display: grid; gap: 12px; }
.faq-item summary { cursor: pointer; font-weight: 900; }
.faq-item p { color: var(--muted); margin-bottom: 0; }
.comment-card blockquote { margin: 0; color: var(--ink); }
.comment-card cite { display: block; margin-top: 10px; color: var(--muted); font-style: normal; }

.page-title {
    padding: 34px;
    border-radius: 30px;
    background: linear-gradient(135deg, #fff, #fff3f3);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: .93rem;
}
.breadcrumb a { color: var(--brand-dark); font-weight: 800; }
.rule-card ul { padding-left: 20px; margin-bottom: 0; color: var(--muted); }
.share-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.share-panel button {
    border: 1px solid var(--line);
    background: #fff;
    padding: 9px 12px;
    border-radius: 999px;
    cursor: pointer;
}
.ad-note {
    border-left: 4px solid var(--brand);
    padding: 12px 14px;
    background: #fff;
    border-radius: 16px;
    color: var(--muted);
}
.site-footer {
    background: #101827;
    color: #dbeafe;
    padding: 40px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .9fr;
    gap: 28px;
}
.site-footer p, .site-footer em { color: #b6c4d9; }
.site-footer h2 { color: #fff; font-size: 1rem; }
.site-footer a { display: block; color: #dbeafe; margin: 7px 0; }
.footer-time { color: #fff; font-weight: 800; }
.copyright {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 26px;
    padding-top: 18px;
    color: #b6c4d9;
}

@media (max-width: 900px) {
    .hero, .community-band, .footer-grid { grid-template-columns: 1fr; }
    .grid.cols-3, .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr 1fr; }
    .stat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .topbar { align-items: flex-start; flex-direction: column; padding-top: 14px; }
    .domain-pill { width: 100%; }
    .search-wrap { grid-template-columns: 1fr; }
    .hero-panel, .page-title { padding: 24px; }
    .grid.cols-3, .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr; }
    .section-head { align-items: flex-start; flex-direction: column; }
    .stat-row { grid-template-columns: 1fr; }
}
