:root {
    --ink: #172033;
    --muted: #697386;
    --paper: #ffffff;
    --wash: #f5f7fb;
    --brand: #ff416c;
    --brand-2: #ff8a4c;
    --night: #111827;
    --line: #e7eaf0;
    --shadow: 0 18px 55px rgba(23, 32, 51, 0.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; font-size: 16px; line-height: 1.75; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { flex: 0 0 auto; }
.brand img { width: 166px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link { min-height: 44px; padding: 9px 10px; display: inline-flex; align-items: center; gap: 5px; border-radius: 12px; color: #505b6f; font-size: 14px; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--brand); background: #fff0f4; }
.nav-link span { font-size: 16px; }
.menu-toggle { display: none; margin-left: auto; padding: 8px; border: 0; background: transparent; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: var(--ink); }
.hero { margin-top: 38px; min-height: 520px; display: grid; grid-template-columns: 0.88fr 1.12fr; align-items: center; gap: 54px; padding-block: 54px; }
.hero h1 { margin: 10px 0 0; font-size: clamp(3.8rem, 7vw, 7.2rem); letter-spacing: -0.07em; line-height: 0.95; }
.hero h1 a { background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; color: transparent; }
.hero h2 { margin: 26px 0 10px; font-size: clamp(1.6rem, 3vw, 2.55rem); line-height: 1.3; }
.hero p { color: var(--muted); font-size: 1.05rem; }
.eyebrow { color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.hero-actions { display: flex; gap: 12px; margin: 28px 0; }
.primary-button, .ghost-button { min-height: 46px; padding: 11px 22px; display: inline-flex; justify-content: center; align-items: center; border-radius: 14px; font-weight: 700; border: 1px solid transparent; cursor: pointer; }
.primary-button { color: white; background: linear-gradient(120deg, var(--brand), var(--brand-2)); box-shadow: 0 12px 25px rgba(255, 65, 108, .22); }
.ghost-button { border-color: var(--line); background: white; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 14px; }
.hero-visual { position: relative; aspect-ratio: 16/10; overflow: hidden; border-radius: 34px 34px 90px 34px; box-shadow: var(--shadow); }
.hero-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,15,26,.75), transparent 55%); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-play, .play-mark { position: absolute; z-index: 2; display: grid; place-items: center; color: white; background: rgba(255,65,108,.92); box-shadow: 0 8px 25px rgba(0,0,0,.24); }
.hero-play { width: 76px; height: 76px; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; font-size: 24px; }
.hero-caption { position: absolute; z-index: 2; left: 28px; bottom: 24px; color: white; font-weight: 700; }
.section { padding-block: 72px; }
.section-tint { background: var(--wash); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { margin: 2px 0 0; font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.2; }
.section-heading > a { color: var(--brand); font-weight: 700; }
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.video-card { min-width: 0; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 20px; transition: transform .25s, box-shadow .25s; }
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cover { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: #dfe4ec; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.video-card:hover .cover img { transform: scale(1.04); }
.play-mark { width: 46px; height: 46px; left: 16px; bottom: 14px; border-radius: 50%; }
.duration { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; color: white; background: rgba(10,15,26,.8); border-radius: 7px; font-size: 12px; }
.card-body { padding: 18px; }
.category-pill { display: inline-flex; padding: 3px 9px; color: var(--brand); background: #fff0f4; border-radius: 999px; font-size: 12px; font-weight: 700; }
.card-body h3 { min-height: 3.1em; margin: 9px 0 7px; font-size: 17px; line-height: 1.52; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body p { min-height: 4.8em; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; color: #8b94a6; font-size: 12px; }
.feature-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.feature-split > .video-card { display: grid; grid-template-columns: 1.2fr 1fr; }
.feature-split > .video-card .cover { aspect-ratio: auto; }
.compact-stack { display: grid; gap: 12px; }
.compact-stack a { min-width: 0; display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 16px; padding: 10px; border-radius: 16px; background: var(--wash); }
.compact-stack img { width: 140px; aspect-ratio: 16/9; object-fit: cover; border-radius: 11px; }
.compact-stack b, .compact-stack small { display: block; }
.compact-stack small { color: var(--muted); }
.poster-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.poster-card { position: relative; min-height: 390px; overflow: hidden; border-radius: 24px; background: var(--night); }
.poster-card::after { content: ''; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(5,8,15,.94)); }
.poster-card img { width: 100%; height: 100%; object-fit: cover; }
.poster-card > div { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 20px; color: white; }
.poster-card b, .poster-card small { display: block; }
.poster-index { position: absolute; z-index: 2; top: 14px; left: 14px; color: white; font-size: 30px; font-weight: 900; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-tile { position: relative; padding: 24px; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 18px; }
.category-tile > span { color: var(--accent); font-size: 28px; }
.category-tile h3 { margin: 14px 0 6px; }
.category-tile p { margin: 0; color: var(--muted); font-size: 14px; }
.short-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; overflow: hidden; border-radius: 20px; background: var(--line); }
.short-strip a { min-height: 170px; padding: 24px 18px; display: flex; flex-direction: column; background: white; }
.short-strip span { color: var(--brand); font-size: 13px; }
.short-strip b { margin: auto 0; font-size: 18px; line-height: 1.5; }
.short-strip small { color: var(--muted); }
.section-dark { color: white; background: #101728; }
.section-heading.light > a { color: #ff97ae; }
.anime-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.section-dark .video-card { color: var(--ink); border: 0; }
.classic-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.classic-list a { display: grid; grid-template-columns: 160px 1fr 32px; align-items: center; gap: 18px; padding: 12px; border-bottom: 1px solid var(--line); }
.classic-list img { width: 160px; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }
.classic-list b, .classic-list small, .classic-list em { display: block; }
.classic-list small { color: var(--brand); }
.classic-list em { color: var(--muted); font-size: 13px; font-style: normal; }
.classic-list i { color: var(--brand); font-style: normal; }
.timeline-section { background: linear-gradient(135deg, #fff5f7, #fff9f2); }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.timeline div { padding: 28px; border-left: 4px solid var(--brand); background: white; box-shadow: 0 10px 30px rgba(23,32,51,.06); }
.timeline time, .timeline b, .timeline span { display: block; }
.timeline time { color: var(--brand); font-weight: 900; font-size: 24px; }
.timeline span { color: var(--muted); }
.ranking-list { border-top: 1px solid var(--line); }
.ranking-list a { display: grid; grid-template-columns: 62px 1fr 100px 110px; align-items: center; gap: 14px; min-height: 72px; border-bottom: 1px solid var(--line); }
.ranking-list strong { color: var(--brand); font-size: 26px; }
.ranking-list span b, .ranking-list span small { display: block; }
.ranking-list span small, .ranking-list time { color: var(--muted); font-size: 13px; }
.ranking-list em { color: #ff7d42; font-style: normal; font-weight: 700; }
.topic-section { background: #fff6ec; }
.topic-grid { display: grid; grid-template-columns: 1.25fr .85fr .85fr; gap: 20px; }
.topic-grid a { overflow: hidden; background: white; border-radius: 24px; box-shadow: 0 14px 35px rgba(80,45,20,.08); }
.topic-grid img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.topic-grid a:first-child img { aspect-ratio: 16/9; }
.topic-grid a > div { padding: 22px; }
.topic-grid span { color: var(--brand); font-size: 13px; font-weight: 700; }
.topic-grid h3 { margin: 6px 0; }
.topic-grid p { color: var(--muted); font-size: 14px; }
.topic-grid b { color: var(--brand); font-size: 14px; }
.editor-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.editor-picks article { display: flex; gap: 16px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; }
.editor-avatar { flex: 0 0 52px; width: 52px; height: 52px; display: grid; place-items: center; color: white; background: var(--night); border-radius: 50%; font-size: 20px; }
.editor-picks small { color: var(--brand); }
.editor-picks h3 { margin: 5px 0; }
.editor-picks p { margin: 0; color: var(--muted); font-size: 14px; }
.tag-section { color: white; background: linear-gradient(120deg, #ff416c, #ff8349); }
.tag-section .eyebrow { color: white; }
.tag-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 60px; }
.tag-layout h2 { font-size: 2.5rem; line-height: 1.2; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-cloud a { padding: 12px 20px; border: 1px solid rgba(255,255,255,.42); border-radius: 999px; background: rgba(255,255,255,.12); }
.about { display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 60px; }
.about-number { color: var(--brand); font-size: 8rem; font-weight: 900; line-height: 1; }
.about-number span { font-size: 2rem; }
.about h2 { margin: 4px 0 12px; font-size: 2.6rem; }
.about p { color: var(--muted); }
.subscribe-section { padding: 72px 0; }
.subscribe-panel { display: grid; grid-template-columns: 1fr 250px; align-items: center; gap: 50px; padding: 54px 64px; color: white; background: #131b2d; border-radius: 32px; }
.subscribe-copy h2 { margin: 4px 0 10px; font-size: 2.5rem; }
.subscribe-copy p { max-width: 700px; color: #b8c0d0; }
.brand-code { width: 190px; height: 190px; margin: auto; padding: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; color: white; background: white; border-radius: 18px; }
.brand-code > span { position: absolute; inset: 52px; z-index: 2; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border: 8px solid white; border-radius: 18px; font-size: 30px; font-weight: 900; }
.brand-code i { background: #151d30; border-radius: 4px; }
.brand-code i:nth-of-type(2), .brand-code i:nth-of-type(4), .brand-code i:nth-of-type(8) { background: #ff5c7a; }
.brand-code small { position: absolute; bottom: -30px; width: 100%; text-align: center; }
.site-footer { padding: 58px 0 20px; color: #b9c1d0; background: #0b1120; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 42px; }
.footer-grid h2 { color: white; font-size: 16px; }
.footer-grid a, .footer-grid p { display: block; margin: 8px 0; font-size: 14px; }
.footer-grid > div:first-child p { max-width: 350px; }
.copyright { margin-top: 40px; padding-top: 18px; border-top: 1px solid #263044; font-size: 13px; }
.back-top { position: fixed; right: 24px; bottom: 24px; z-index: 30; width: 44px; height: 44px; border: 0; border-radius: 50%; color: white; background: var(--brand); opacity: 0; pointer-events: none; transition: opacity .2s; }
.back-top.show { opacity: 1; pointer-events: auto; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; padding-block: 28px 12px; color: var(--muted); font-size: 14px; }
.breadcrumb strong { color: var(--ink); }
.channel-hero { margin-top: 18px; color: white; background: linear-gradient(125deg, var(--channel), #151d30 70%); }
.channel-inner { min-height: 380px; display: grid; grid-template-columns: 1fr 420px; align-items: center; gap: 70px; padding-block: 52px; }
.channel-icon { font-size: 46px; }
.channel-inner h1 { margin: 6px 0; font-size: 3.8rem; }
.channel-inner p { color: rgba(255,255,255,.8); }
.channel-feature { position: relative; aspect-ratio: 16/10; overflow: hidden; border-radius: 26px; }
.channel-feature::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(5,8,15,.9)); }
.channel-feature img { width: 100%; height: 100%; object-fit: cover; }
.channel-feature span, .channel-feature b { position: absolute; z-index: 2; left: 22px; color: white; }
.channel-feature span { bottom: 52px; font-size: 13px; }
.channel-feature b { right: 22px; bottom: 20px; }
.channel-lead { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.channel-lead > div p { color: var(--muted); }
.return-home { padding-bottom: 72px; text-align: center; }
.detail-page { max-width: 1100px; }
.detail-header { padding: 30px 0 24px; }
.detail-header h1 { margin: 12px 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.22; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; color: var(--muted); font-size: 14px; }
.favorite-button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: white; cursor: pointer; }
.favorite-button.active { color: white; background: var(--brand); border-color: var(--brand); }
.player { position: relative; aspect-ratio: 16/9; overflow: hidden; color: white; background: #080c14; border-radius: 26px; box-shadow: var(--shadow); }
.player::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.88)); }
.player > img { width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.player-center { position: absolute; z-index: 3; left: 50%; top: 50%; translate: -50% -50%; width: 82px; height: 82px; color: white; border: 0; border-radius: 50%; background: var(--brand); font-size: 26px; cursor: pointer; }
.player-controls { position: absolute; z-index: 4; left: 22px; right: 22px; bottom: 18px; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.player-controls button { color: white; border: 0; background: transparent; cursor: pointer; }
.progress { height: 5px; flex: 1; overflow: hidden; background: rgba(255,255,255,.35); border-radius: 99px; }
.progress i { display: block; width: 0; height: 100%; background: var(--brand); transition: width .4s; }
.player.playing .player-center { opacity: 0; }
.watch-note { margin: 16px 0 50px; padding: 16px 20px; color: var(--muted); background: var(--wash); border-radius: 14px; }
.story-section { display: grid; grid-template-columns: 1.25fr .75fr; gap: 55px; padding: 30px 0 70px; }
.story-section p { color: var(--muted); }
.story-section aside { padding: 26px; background: var(--wash); border-radius: 20px; }
.story-section aside h2 { margin-top: 0; }
.story-section dl div { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.story-section dt { color: var(--muted); }
.story-section dd { margin: 0; text-align: right; }
.scene-gallery > div:last-child { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.scene-gallery figure { margin: 0; overflow: hidden; border-radius: 18px; background: var(--wash); }
.scene-gallery img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.scene-gallery figcaption { padding: 14px 18px; color: var(--muted); font-size: 14px; }
.highlight-panel { margin: 60px 0 30px; padding: 40px; display: flex; align-items: center; gap: 30px; color: white; background: linear-gradient(120deg, var(--brand), var(--brand-2)); border-radius: 24px; }
.highlight-panel > span { font-size: 46px; }
.highlight-panel h2, .highlight-panel p { margin: 0; }
.end-note { padding: 32px; text-align: center; background: var(--wash); border-radius: 20px; }
.end-note p { color: var(--muted); }
.episode-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 38px 0; }
.episode-nav > a:not(.back-channel) { padding: 15px; border: 1px solid var(--line); border-radius: 14px; }
.episode-nav a span, .episode-nav a b { display: block; }
.episode-nav a span { color: var(--muted); font-size: 13px; }
.episode-nav .next { text-align: right; }
.back-channel { color: var(--brand); font-weight: 700; }
.related { padding-bottom: 20px; }
