:root {
    --bg: #fff8fa;
    --panel: #ffffff;
    --text: #2b1720;
    --muted: #72545e;
    --brand: #e7274f;
    --brand-dark: #8f1430;
    --line: #f2d7df;
    --soft: #ffe8ee;
    --shadow: 0 18px 50px rgba(143, 20, 48, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #fff, var(--bg) 22%, #fff 100%);
    line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img, video { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }
.sr-only {
    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(18px);
    border-bottom: 1px solid var(--line);
}
.topbar, .main-nav, .search-wrap, main, .site-footer > * {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0 10px;
}
.brand-logo, .footer-logo { display: inline-flex; align-items: center; }
.brand-logo img, .footer-logo img { border-radius: 18px; }
.domain-badge {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--soft);
    color: var(--brand-dark);
    font-size: 14px;
}
.main-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 0 12px;
    scrollbar-width: thin;
}
.main-nav a {
    flex: 0 0 auto;
    padding: 8px 13px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 14px;
}
.main-nav a:hover { background: var(--brand); color: #fff; }
.search-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 0 0 14px;
}
.search-wrap input {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 13px 15px;
    background: #fff;
    outline: none;
}
.search-wrap input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(231,39,79,.1); }
.search-wrap button, .btn, .action-btn {
    border: 0;
    border-radius: 16px;
    padding: 13px 18px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(231,39,79,.22);
}
.search-hint { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; }
main { padding: 28px 0 56px; }
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 26px;
    align-items: stretch;
    margin-bottom: 28px;
}
.hero-card, .panel, .module-card, .video-card, .author-card, .comment-card, .faq-card, .category-card, .form-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}
.hero-card { padding: 34px; position: relative; overflow: hidden; }
.hero-card:after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(231,39,79,.12);
}
.eyebrow {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin: 0 0 10px;
    color: var(--brand-dark);
    font-weight: 800;
}
h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.04em; }
.hero-card p { color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn.secondary { background: #fff; color: var(--brand-dark); border: 1px solid var(--line); box-shadow: none; }
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 26px; }
.stat-row strong { display: block; color: var(--brand-dark); font-size: 24px; }
.stat-row span { display: block; color: var(--muted); font-size: 13px; }
.hero-side { display: grid; gap: 16px; }
.notice-box { padding: 22px; }
.notice-box strong { color: var(--brand-dark); }
.breadcrumb { margin: 4px 0 22px; display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.breadcrumb a { color: var(--brand-dark); font-weight: 700; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 34px 0 16px; }
.section-head p { margin: 7px 0 0; color: var(--muted); }
.more-link { color: var(--brand-dark); font-weight: 800; white-space: nowrap; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.module-card .heat, .tag, .meta-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
}
.module-card p, .category-card p, .author-card p, .faq-card p { color: var(--muted); margin: 0; }
.module-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.module-card li { padding-left: 18px; position: relative; }
.module-card li:before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.video-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.video-card { overflow: hidden; }
.video-media { position: relative; background: #211018; aspect-ratio: 16 / 10; overflow: hidden; }
.video-media video, .video-media img { width: 100%; height: 100%; object-fit: cover; }
.video-media video { opacity: .96; }
.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.18);
    opacity: 0;
    transition: opacity .2s ease;
}
.video-card:hover .play-overlay, .video-card:focus-within .play-overlay { opacity: 1; }
.play-overlay span {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.96);
    color: var(--brand);
    font-size: 30px;
    box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.video-body { padding: 18px; }
.video-body h3 { font-size: 18px; margin-bottom: 9px; }
.video-body p { color: var(--muted); margin: 0 0 12px; }
.video-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.card-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 14px; }
.action-btn { padding: 8px 6px; border-radius: 12px; box-shadow: none; font-size: 13px; }
.action-btn.light { background: #fff; color: var(--brand-dark); border: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.author-grid, .category-grid, .comment-grid, .faq-grid, .contact-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.author-card, .category-card, .comment-card, .faq-card, .form-card { padding: 22px; }
.author-card h3, .category-card h3 { margin-bottom: 8px; }
.author-stats, .comment-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 12px; }
.comment-card blockquote { margin: 0; color: var(--text); }
.faq-card h3 { font-size: 18px; margin-bottom: 8px; }
.cta-panel {
    margin-top: 30px;
    padding: 28px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}
.cta-panel p { margin: 6px 0 0; color: rgba(255,255,255,.86); }
.cta-panel .btn { background: #fff; color: var(--brand-dark); box-shadow: none; }
.page-lead { padding: 30px; margin-bottom: 22px; }
.page-lead p { color: var(--muted); max-width: 860px; }
.timeline { display: grid; gap: 12px; }
.timeline article { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.form-grid { display: grid; gap: 14px; }
.form-grid input, .form-grid textarea, .form-grid select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    outline: none;
}
.form-grid textarea { min-height: 120px; resize: vertical; }
.site-footer {
    background: #31101a;
    color: #ffe9ef;
    padding: 42px 0 20px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 22px; }
.footer-grid h2 { font-size: 18px; margin-bottom: 10px; }
.footer-grid a { display: block; color: #ffe9ef; margin: 6px 0; }
.footer-grid p { color: rgba(255,255,255,.76); margin: 8px 0; }
.copyright { border-top: 1px solid rgba(255,255,255,.14); margin-top: 24px; padding-top: 18px; color: rgba(255,255,255,.72); font-size: 14px; }
figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    padding: 12px 18px;
    border-radius: 999px;
    background: #211018;
    color: #fff;
    box-shadow: 0 18px 45px rgba(0,0,0,.2);
    z-index: 50;
}
@media (max-width: 960px) {
    .hero, .split, .footer-grid { grid-template-columns: 1fr; }
    .module-grid, .video-grid { grid-template-columns: repeat(2,1fr); }
    .stat-row { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 680px) {
    .topbar { align-items: flex-start; flex-direction: column; }
    .search-wrap { grid-template-columns: 1fr; }
    .module-grid, .video-grid, .author-grid, .category-grid, .comment-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
    .section-head, .cta-panel { align-items: flex-start; flex-direction: column; }
    .hero-card, .page-lead { padding: 24px; }
    .card-actions { grid-template-columns: repeat(2,1fr); }
}
