/*
    经典国产电视剧 静态站点样式
    视觉基调参考上传素材中的白底、橙色渐变、阴影卡片、Hero 大图和响应式布局。
*/
:root {
    --bg: #f9fafb;
    --surface: #ffffff;
    --surface-soft: #fff7ed;
    --text: #111827;
    --muted: #6b7280;
    --muted-light: #9ca3af;
    --line: #e5e7eb;
    --orange: #ea580c;
    --orange-dark: #c2410c;
    --amber: #d97706;
    --black: #000000;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.18);
    --radius: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.78);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, #f97316, #d97706);
    box-shadow: 0 10px 26px rgba(234, 88, 12, 0.26);
}

.brand-text,
.footer-brand span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong,
.footer-brand strong {
    font-size: 19px;
    color: var(--text);
}

.brand-text small,
.footer-brand small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    flex: 1;
    white-space: nowrap;
}

.nav-link {
    color: #374151;
    font-weight: 650;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--orange);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--orange);
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    padding: 12px 16px 18px;
    background: #ffffff;
}

.mobile-nav.open {
    display: grid;
    gap: 12px;
}

.mobile-nav a {
    color: #374151;
    font-weight: 650;
    padding: 8px 0;
}

.hero-carousel {
    position: relative;
    min-height: 72vh;
    background: #111827;
    overflow: hidden;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img,
.category-hero > img,
.detail-hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay,
.category-hero-overlay,
.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.90), rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.10)),
        radial-gradient(circle at 20% 70%, rgba(234, 88, 12, 0.28), transparent 36%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 72vh;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding-bottom: 92px;
    color: #ffffff;
    max-width: 1180px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: var(--orange);
}

.eyebrow {
    color: var(--orange);
    background: #ffedd5;
}

.hero-content h1,
.page-hero h1,
.category-hero h1,
.detail-hero h1 {
    max-width: 820px;
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.hero-content p,
.page-hero p,
.category-hero p,
.detail-hero p {
    max-width: 780px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #ffffff;
    background: var(--orange);
    box-shadow: 0 16px 32px rgba(234, 88, 12, 0.30);
}

.button-primary:hover {
    background: var(--orange-dark);
}

.button-glass {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.button-outline,
.button-ghost {
    background: #ffffff;
    color: var(--orange);
    border-color: #fed7aa;
}

.button-ghost {
    color: #374151;
    border-color: var(--line);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 14px;
}

.hero-meta span {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-meta-dark span {
    color: #4b5563;
    background: #f3f4f6;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 5;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.50);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: #ffffff;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border-bottom: 1px solid var(--line);
}

.stats-strip div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 112px;
    background: #ffffff;
}

.stats-strip strong {
    color: var(--orange);
    font-size: 34px;
    line-height: 1;
}

.stats-strip span {
    margin-top: 8px;
    color: var(--muted);
}

.content-section {
    padding: 76px 0;
}

.section-white {
    background: #ffffff;
}

.section-muted {
    background: #f3f4f6;
}

.section-light {
    background: var(--bg);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.section-heading h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.category-tile {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    border: 1px solid #fed7aa;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-tile strong {
    font-size: 22px;
}

.category-tile span {
    color: var(--orange);
    font-weight: 800;
}

.category-tile p {
    margin: 12px 0 0;
    color: var(--muted);
}

.movie-grid {
    display: grid;
    gap: 22px;
}

.movie-grid-large {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-grid-small {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(229, 231, 235, 0.86);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: #fed7aa;
    box-shadow: var(--shadow-lg);
}

.poster-link {
    position: relative;
    display: block;
    height: 318px;
    overflow: hidden;
    background: #e5e7eb;
}

.movie-card-featured .poster-link {
    height: 360px;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: rgba(0, 0, 0, 0.28);
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #111827;
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(0.65);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.70);
    font-size: 12px;
}

.movie-card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.card-meta a {
    color: var(--orange);
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    background: #fff7ed;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--orange);
}

.card-summary {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-list span {
    padding: 3px 8px;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 12px;
}

.rank-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 44px 74px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: #fed7aa;
}

.rank-no,
.ranking-number {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--orange);
    font-weight: 900;
}

.rank-item img {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 10px;
}

.rank-info {
    min-width: 0;
}

.rank-info strong,
.rank-info small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info small {
    margin-top: 4px;
    color: var(--muted);
}

.section-more {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.search-panel {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr 0.8fr auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.search-panel label {
    display: grid;
    gap: 7px;
    color: #374151;
    font-weight: 800;
    font-size: 13px;
}

.search-panel input,
.search-panel select {
    height: 44px;
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0 12px;
    color: var(--text);
    background: #ffffff;
    outline: 0;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.filter-result {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.compact-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.movie-card-compact {
    border-radius: 14px;
}

.movie-card-compact a {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
}

.movie-card-compact img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 10px;
    background: #e5e7eb;
}

.movie-card-compact strong,
.movie-card-compact small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card-compact strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.35;
}

.movie-card-compact small {
    margin-top: 5px;
    color: var(--muted);
    white-space: nowrap;
}

.page-hero,
.category-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.page-hero {
    padding: 86px 0;
}

.page-hero-soft {
    color: var(--text);
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.page-hero-soft p {
    color: var(--muted);
}

.page-hero-dark {
    background:
        radial-gradient(circle at 18% 24%, rgba(234, 88, 12, 0.32), transparent 32%),
        linear-gradient(135deg, #111827, #030712);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: inherit;
    opacity: 0.86;
    font-size: 14px;
}

.breadcrumb a::after {
    content: "/";
    margin-left: 8px;
    opacity: 0.55;
}

.category-overview-list {
    display: grid;
    gap: 24px;
}

.category-overview-card {
    padding: 24px;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.category-overview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.category-overview-head h2 {
    margin: 8px 0;
    font-size: 30px;
}

.category-overview-head p {
    margin: 0;
    color: var(--muted);
}

.category-hero {
    min-height: 520px;
}

.category-hero > img,
.detail-hero > img {
    position: absolute;
    inset: 0;
}

.category-hero-content,
.detail-hero-content {
    position: relative;
    z-index: 2;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 72px 0;
}

.compact-grid-feature {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-hero {
    min-height: 540px;
}

.detail-hero-content {
    min-height: 540px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.detail-main {
    display: grid;
    gap: 22px;
}

.player-card,
.detail-card,
.aside-card {
    padding: 22px;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.player-heading h2,
.detail-card h2,
.aside-card h2 {
    margin: 8px 0 16px;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #000000;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow-lg);
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
    font-size: 18px;
    font-weight: 900;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-start span {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--text);
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.player-shell.playing .player-start {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-card p {
    margin: 0;
    color: #374151;
    font-size: 16px;
}

.detail-card-warm {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border-color: #fed7aa;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.info-list div {
    padding: 12px;
    border-radius: 12px;
    background: #f9fafb;
}

.info-list dt {
    color: var(--muted);
    font-size: 13px;
}

.info-list dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.info-list a {
    color: var(--orange);
}

.tag-list-detail span {
    font-size: 13px;
    color: var(--orange-dark);
    background: #ffedd5;
}

.sticky-card {
    position: sticky;
    top: 100px;
}

.side-related {
    grid-template-columns: 1fr;
}

.ranking-list {
    display: grid;
    gap: 14px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 52px 92px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 14px;
}

.ranking-poster img {
    width: 92px;
    height: 122px;
    object-fit: cover;
    border-radius: 12px;
}

.ranking-body h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.ranking-body h2 a:hover {
    color: var(--orange);
}

.ranking-body p {
    margin: 0 0 12px;
    color: var(--muted);
}

.site-footer {
    color: #d1d5db;
    background: #111827;
    padding: 54px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}

.site-footer .brand-mark {
    box-shadow: none;
}

.site-footer strong {
    color: #ffffff;
}

.site-footer small,
.site-footer p,
.site-footer a {
    color: #9ca3af;
}

.site-footer p {
    max-width: 520px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.site-footer a:hover {
    color: #fb923c;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 1080px) {
    .desktop-nav {
        gap: 14px;
    }

    .movie-grid-large,
    .movie-grid-small,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .compact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .sticky-card {
        position: static;
    }
}

@media (max-width: 820px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .header-inner {
        height: 68px;
    }

    .hero-carousel,
    .hero-content {
        min-height: 640px;
    }

    .hero-content {
        height: 640px;
        padding-bottom: 84px;
    }

    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .movie-grid-large,
    .movie-grid-small,
    .category-grid,
    .compact-grid,
    .compact-grid-feature,
    .rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-overview-head {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .brand-text small {
        display: none;
    }

    .hero-content h1,
    .page-hero h1,
    .category-hero h1,
    .detail-hero h1 {
        font-size: 36px;
    }

    .hero-content p,
    .page-hero p,
    .category-hero p,
    .detail-hero p {
        font-size: 16px;
    }

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

    .content-section {
        padding: 52px 0;
    }

    .movie-grid-large,
    .movie-grid-small,
    .category-grid,
    .compact-grid,
    .compact-grid-feature,
    .rank-grid {
        grid-template-columns: 1fr;
    }

    .poster-link,
    .movie-card-featured .poster-link {
        height: 330px;
    }

    .rank-item,
    .ranking-row {
        grid-template-columns: 42px 72px minmax(0, 1fr);
        gap: 12px;
    }

    .ranking-poster img {
        width: 72px;
        height: 96px;
    }

    .ranking-body h2 {
        font-size: 18px;
    }

    .ranking-body p {
        display: none;
    }

    .info-list {
        grid-template-columns: 1fr;
    }
}
