:root {
    --bg: #f7efe2;
    --panel: #ffffff;
    --ink: #2c2f35;
    --muted: #69717e;
    --line: #eadfce;
    --accent: #d86f45;
    --accent-soft: #fff0e7;
    --deep: #263b4a;
    --green: #496f63;
    --shadow: 0 16px 42px rgba(44, 47, 53, .10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, var(--bg), #fffaf3 34%, #f8f6f1);
    line-height: 1.72;
}

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

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

button,
input {
    font: inherit;
}

.site-header,
.site-footer,
main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    padding: 18px 0 0;
}

.topbar,
.main-nav,
.search-strip,
.hero,
.section-block,
.site-footer {
    background: rgba(255, 255, 255, .86);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border-radius: 24px 24px 0 0;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--deep);
    color: #fff;
    font-weight: 900;
    letter-spacing: .04em;
}

.brand-logo strong,
.brand-logo small {
    display: block;
}

.brand-logo small {
    color: var(--muted);
}

.domain-pill {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--deep);
    font-size: 14px;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    border-top: 0;
    box-shadow: none;
}

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--deep);
    font-weight: 700;
}

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

.search-strip {
    display: grid;
    grid-template-columns: auto 1fr auto minmax(220px, auto);
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 0 0 24px 24px;
    border-top: 0;
    box-shadow: none;
}

.search-strip label {
    font-weight: 800;
}

.search-strip input {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 11px 14px;
    background: #fff;
}

.search-strip button,
.btn,
.card-actions button,
.card-actions a,
.action-row button,
.action-row a,
.share-row button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--deep);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn.primary,
.share-row button:first-child {
    background: var(--accent);
}

.hero,
.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr);
    gap: 22px;
    margin: 22px 0;
    padding: 28px;
    border-radius: 28px;
}

.page-hero {
    background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,240,231,.92));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.section-kicker {
    margin: 0 0 8px;
    color: var(--accent);
    font-weight: 900;
    letter-spacing: .06em;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(32px, 6vw, 62px);
    line-height: 1.08;
    color: var(--deep);
}

.hero-lead,
.page-hero p {
    font-size: 18px;
    color: var(--muted);
}

.hero-actions,
.hero-meta,
.metric-row,
.card-actions,
.action-row,
.share-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.metric-row span,
.tag-row span {
    border-radius: 999px;
    background: #f4f1eb;
    padding: 7px 11px;
    color: var(--deep);
    font-size: 14px;
    font-weight: 700;
}

.hero-panel,
.notice-card,
.content-panel {
    border-radius: 24px;
    background: var(--deep);
    color: #fff;
    padding: 22px;
}

.hero-panel.compact {
    align-self: center;
}

.hero-panel a {
    color: #fff;
    text-decoration: underline;
}

.hero-panel p,
.hero-panel li,
.notice-card p,
.notice-card li {
    color: rgba(255,255,255,.84);
}

.section-block {
    margin: 22px 0;
    padding: 26px;
    border-radius: 28px;
}

.section-head {
    max-width: 820px;
    margin-bottom: 18px;
}

.section-head h2,
.content-panel h2,
.notice-card h2,
.site-footer h2 {
    margin: 0 0 8px;
    color: var(--deep);
    line-height: 1.2;
}

.notice-card h2,
.hero-panel h2,
.content-panel h2 {
    color: #fff;
}

.section-head p,
.subtitle,
.video-body p,
.module-card p,
.author-card p,
.comment-card p,
.category-row span,
.muted {
    color: var(--muted);
}

.video-grid,
.module-grid,
.author-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.video-card,
.module-card,
.author-card,
.comment-card,
.category-row {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.video-card:hover,
.module-card:hover,
.author-card:hover,
.category-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(44,47,53,.12);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e7e0d2;
}

.video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    background: rgba(38, 59, 74, .24);
    transition: opacity .2s ease;
}

.video-card:hover .play-mask,
.video-card:focus-within .play-mask {
    opacity: 1;
}

.play-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    position: relative;
}

.play-icon::after {
    content: "";
    position: absolute;
    left: 28px;
    top: 21px;
    border-left: 20px solid var(--accent);
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
}

.video-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(216, 111, 69, .95);
    color: #fff;
    font-weight: 900;
    font-size: 13px;
}

.video-body,
.module-card,
.author-card,
.comment-card {
    padding: 18px;
}

.eyebrow,
.image-description {
    font-size: 13px;
    color: var(--muted);
}

.video-body h3 {
    margin: 6px 0 8px;
    line-height: 1.35;
}

.video-body h3 a:hover,
.category-row:hover strong {
    color: var(--accent);
}

.card-actions button,
.card-actions a {
    padding: 8px 12px;
    background: #f4f1eb;
    color: var(--deep);
    font-size: 14px;
}

.card-actions button.is-active,
.action-row button.is-active {
    background: var(--accent);
    color: #fff;
}

.module-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--accent);
    font-weight: 900;
}

.module-card ul,
.notice-card ul,
.site-footer ul {
    padding-left: 18px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .75fr);
    gap: 18px;
}

.category-list,
.faq-list,
.comment-list {
    display: grid;
    gap: 12px;
}

.category-row {
    display: grid;
    gap: 4px;
    padding: 16px;
}

.category-row em {
    color: var(--accent);
    font-style: normal;
    font-weight: 900;
}

.faq-list details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--deep);
}

.author-card {
    text-align: center;
}

.avatar {
    width: 68px;
    height: 68px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 30px;
    font-weight: 900;
}

.author-card a {
    color: var(--accent);
    font-weight: 900;
}

.contact-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
}

.site-footer {
    margin-top: 26px;
    margin-bottom: 26px;
    padding: 26px;
    border-radius: 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) .7fr .7fr;
    gap: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--line);
    margin-top: 20px;
    padding-top: 16px;
    color: var(--muted);
}

@media (max-width: 920px) {
    .hero,
    .page-hero,
    .split,
    .contact-strip,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .video-grid,
    .module-grid,
    .author-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .site-header,
    .site-footer,
    main {
        width: min(100% - 20px, 1180px);
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .video-grid,
    .module-grid,
    .author-grid {
        grid-template-columns: 1fr;
    }

    .hero,
    .page-hero,
    .section-block,
    .site-footer {
        padding: 18px;
        border-radius: 22px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 34px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
