:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-2: #edf3f1;
  --ink: #17201d;
  --muted: #66736e;
  --line: #dfe7e4;
  --brand: #087f5b;
  --brand-dark: #056646;
  --accent: #e7a73d;
  --danger: #d74a49;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(24, 58, 47, .08);
  --max: 1240px;
}
* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { max-width: 100%; margin: 0; overflow-x: hidden; color: var(--ink); background: var(--bg); font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: 310px; z-index: -1; background: radial-gradient(circle at 15% 0, rgba(8,127,91,.14), transparent 35%), radial-gradient(circle at 92% 4%, rgba(231,167,61,.13), transparent 27%); }
a { color: inherit; text-decoration: none; transition: color .2s, background .2s, border-color .2s, transform .2s; }
a:hover { color: var(--brand); }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(calc(100% - 36px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(223,231,228,.9); backdrop-filter: blur(16px); }
.header-row { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px 11px 11px 3px; color: #fff; font-size: 17px; background: linear-gradient(145deg, var(--brand), #11a777); box-shadow: 0 8px 18px rgba(8,127,91,.22); }
.main-nav { display: flex; align-items: center; gap: 3px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { white-space: nowrap; padding: 9px 12px; border-radius: 9px; color: #46534e; font-weight: 600; }
.main-nav a:hover, .main-nav a.active { color: var(--brand); background: #e7f4ef; }
.header-search { width: 260px; display: flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.header-search input { width: 100%; min-width: 0; padding: 9px 12px; border: 0; outline: 0; background: transparent; }
.header-search button { width: 44px; border: 0; color: #fff; background: var(--brand); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; }
.page { padding: 28px 0 58px; }
.hero-carousel { position: relative; overflow: hidden; min-height: 362px; border-radius: 28px; background: #09261e; box-shadow: 0 24px 60px rgba(8,96,70,.2); }
.hero-track { position: relative; min-height: 362px; }
.hero { position: relative; min-height: 362px; padding: 50px 54px 58px; overflow: hidden; color: #fff; background: #09261e; }
.hero-slide { position: absolute; inset: 0; z-index: 0; opacity: 0; visibility: hidden; transform: scale(1.015); transition: opacity .55s ease, transform .75s ease, visibility .55s; pointer-events: none; }
.hero-slide.active { z-index: 1; opacity: 1; visibility: visible; transform: scale(1); pointer-events: auto; }
.hero-backdrop { position: absolute; inset: 0 0 0 auto; width: 68%; height: 100%; object-fit: cover; object-position: center 28%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, #08271f 0%, rgba(8,39,31,.96) 30%, rgba(8,39,31,.72) 55%, rgba(8,39,31,.1) 100%), linear-gradient(0deg, rgba(6,25,20,.55), transparent 65%); }
.hero-content { position: relative; z-index: 1; min-width: 0; max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: #bdebdc; font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.hero h1, .hero h2 { width: 100%; max-width: 620px; margin: 0 0 12px; overflow: hidden; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.18; letter-spacing: -1px; text-overflow: ellipsis; white-space: nowrap; }
.hero p { margin: 0 0 26px; color: #d3eee5; font-size: 17px; }
.hero .hero-meta { margin-bottom: 12px; color: #e7f5f0; font-size: 14px; font-weight: 700; }
.hero .hero-desc { max-width: 620px; min-height: 54px; margin-bottom: 22px; display: -webkit-box; overflow: hidden; color: #bed3cc; font-size: 15px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 18px; color: #c7ddd5; font-size: 13px; }
.hero-controls { position: absolute; right: 20px; bottom: 18px; z-index: 4; display: flex; align-items: center; gap: 10px; }
.hero-arrow { width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 10px; color: #fff; background: rgba(8,27,21,.48); font-size: 24px; line-height: 1; backdrop-filter: blur(8px); }
.hero-arrow:hover { background: var(--brand); border-color: var(--brand); }
.hero-dots { display: flex; align-items: center; gap: 7px; }
.hero-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.5); }
.hero-dot.active { width: 23px; background: var(--accent); }
.hero-search { display: flex; max-width: 650px; padding: 7px; border-radius: 15px; background: #fff; box-shadow: 0 14px 32px rgba(0,0,0,.16); }
.hero-search input { flex: 1; min-width: 0; padding: 10px 13px; border: 0; outline: 0; color: var(--ink); }
.hero-search button { padding: 10px 22px; border: 0; border-radius: 10px; color: #fff; background: var(--accent); font-weight: 800; }
.hot-words { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 18px; font-size: 13px; color: #c9e8df; }
.hot-words a:hover { color: #fff; }
.section { margin-top: 38px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; min-width: 0; margin-bottom: 18px; }
.section-title { min-width: 0; margin: 0; font-size: 25px; line-height: 1.25; letter-spacing: -.7px; }
.section-title small { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.more-link { flex: 0 0 auto; color: var(--brand); font-weight: 700; white-space: nowrap; }
.more-link::after { content: " →"; }
.poster-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 16px; }
.poster-card { min-width: 0; }
.poster { position: relative; overflow: hidden; aspect-ratio: 2/3; border-radius: 14px; background: linear-gradient(145deg, #dce8e4, #cbd9d4); box-shadow: 0 8px 22px rgba(22,43,36,.09); }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.poster-card:hover .poster img { transform: scale(1.045); }
.badge { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 4px 8px; overflow: hidden; border-radius: 7px; color: #fff; background: rgba(10,27,22,.78); backdrop-filter: blur(6px); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.score { position: absolute; right: 8px; top: 8px; padding: 3px 7px; border-radius: 7px; color: #392500; background: var(--accent); font-size: 12px; font-weight: 800; }
.poster-name { margin: 9px 0 1px; overflow: hidden; font-size: 15px; font-weight: 750; white-space: nowrap; text-overflow: ellipsis; }
.poster-meta { margin: 0; overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.category-block { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.rank-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, .7fr); gap: 24px; }
.rank-list { counter-reset: rank; margin: 0; padding: 0; list-style: none; }
.rank-list li { counter-increment: rank; border-bottom: 1px dashed var(--line); }
.rank-list li:last-child { border: 0; }
.rank-list a { display: flex; align-items: center; gap: 12px; padding: 11px 2px; }
.rank-list a::before { content: counter(rank, decimal-leading-zero); color: #98a49f; font: 800 13px/1 ui-monospace, monospace; }
.rank-list li:nth-child(-n+3) a::before { color: var(--accent); }
.rank-list .rank-name { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rank-list small { color: var(--muted); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.breadcrumb span::before { content: "/"; margin-right: 7px; color: #aeb8b4; }
.filter-panel { padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.filter-row { display: grid; grid-template-columns: 54px 1fr; align-items: start; gap: 10px; padding: 9px 0; }
.filter-label { padding: 5px 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.filter-options { display: flex; flex-wrap: wrap; gap: 5px; }
.filter-options a { padding: 5px 10px; border-radius: 8px; font-size: 13px; }
.filter-options a:hover, .filter-options a.current { color: #fff; background: var(--brand); }
.sort-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 24px 0 18px; }
.sort-tabs { display: flex; gap: 6px; }
.sort-tabs a { padding: 7px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 13px; font-weight: 700; }
.sort-tabs a.current { color: #fff; border-color: var(--brand); background: var(--brand); }
.detail-hero { display: grid; grid-template-columns: 220px 1fr; gap: 34px; padding: 30px; border-radius: 24px; background: linear-gradient(135deg, #10241e, #153d31); color: #fff; box-shadow: var(--shadow); }
.detail-poster { overflow: hidden; aspect-ratio: 2/3; border-radius: 16px; background: #263d35; }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy h1 { margin: 3px 0 8px; font-size: clamp(29px, 4vw, 44px); line-height: 1.2; }
.detail-subtitle { margin: 0 0 18px; color: #adc5bc; }
.info-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 20px; margin: 0 0 22px; padding: 0; list-style: none; color: #d8e4df; }
.info-list b { color: #91aaa1; font-size: 13px; }
.info-list .actor-item { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 0; min-width: 0; }
.actor-item > b { flex: 0 0 auto; }
.actor-list { min-width: 0; }
.actor-list a { display: inline; margin-right: 7px; }
.actor-list a:nth-of-type(n+4) { display: none; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 20px; border: 1px solid transparent; border-radius: 11px; font-weight: 800; }
.button-primary { color: #fff; background: var(--accent); }
.button-primary:hover { color: #fff; background: #f0b54f; transform: translateY(-1px); }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.button-ghost:hover { color: #fff; border-color: #fff; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
.panel { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.panel h2, .panel h3 { margin-top: 0; }
.summary { color: #495650; line-height: 1.9; }
.playlist-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.playlist-tab { padding: 7px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; font-weight: 700; }
.playlist-tab.active { color: #fff; border-color: var(--brand); background: var(--brand); }
.playlist-panel { display: none; }
.playlist-panel.active { display: block; }
.episode-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; }
.episode-list a { display: block; padding: 9px 7px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.episode-list a:hover, .episode-list li.active a { color: #fff; border-color: var(--brand); background: var(--brand); }
.player-shell { position: relative; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; aspect-ratio: 16/9; border-radius: 18px; background: #080d0b; }
.player-shell .MacPlayer, .player-shell iframe, .player-shell video, .player-shell embed, .player-shell object { display: block; width: 100% !important; max-width: 100% !important; height: 100% !important; max-height: 100% !important; margin: 0 !important; padding: 0 !important; }
.player-shell > *, .player-shell .MacPlayer > * { max-width: 100% !important; }
.play-title { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin: 20px 0; }
.play-title h1 { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 24px; }
.search-summary { padding: 22px 26px; border-radius: 16px; background: #e7f4ef; }
.search-summary h1 { margin: 0 0 4px; font-size: 24px; }
.search-summary p { margin: 0; color: var(--muted); }
.search-results { display: grid; gap: 14px; margin-top: 20px; }
.result-card { display: grid; grid-template-columns: 112px 1fr; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.result-card img { width: 112px; aspect-ratio: 2/3; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.result-card h2 { margin: 3px 0 8px; font-size: 20px; }
.result-card p { margin: 4px 0; color: var(--muted); }
.article-list { display: grid; gap: 16px; }
.article-card { display: grid; grid-template-columns: 180px 1fr; gap: 22px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.article-card img { width: 180px; height: 116px; object-fit: cover; border-radius: 11px; background: var(--surface-2); }
.article-card h2 { margin: 0 0 7px; font-size: 20px; }
.article-card p { margin: 0; color: var(--muted); }
.article { padding: 36px clamp(22px, 5vw, 64px); }
.article-header { padding-bottom: 24px; border-bottom: 1px solid var(--line); text-align: center; }
.article-header h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); }
.article-meta { color: var(--muted); font-size: 13px; }
.article-body { max-width: 820px; margin: 28px auto 0; color: #34413c; font-size: 17px; line-height: 1.95; }
.article-body img { height: auto !important; margin: 22px auto; border-radius: 12px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.topic-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.topic-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--surface-2); }
.topic-card div { padding: 18px; }
.topic-card h2 { margin: 0 0 6px; font-size: 19px; }
.topic-card p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 30px; }
.pagination a, .pagination span { min-width: 39px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; text-align: center; }
.pagination .current { color: #fff; border-color: var(--brand); background: var(--brand); }
.empty { padding: 60px 20px; border: 1px dashed #bdcbc6; border-radius: var(--radius); color: var(--muted); text-align: center; }
.footer-tags-wrap { margin-top: 40px; color: var(--ink); }
.footer-tags-wrap:empty { display: none; }
.footer-tags-wrap + .site-footer { margin-top: 12px; }
.site-footer { margin-top: 40px; padding: 42px 0 28px; color: #afc2bb; background: #10251e; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.footer-brand { color: #fff; font-size: 21px; font-weight: 800; }
.footer-copy { max-width: 620px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: start; gap: 7px 18px; }
.footer-links a { color: #d3e0db; }
.copyright { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.backtop { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 42px; height: 42px; display: none; border: 0; border-radius: 12px; color: #fff; background: var(--brand); box-shadow: 0 10px 24px rgba(8,127,91,.25); }
.backtop.show { display: block; }
.seo-intro { margin-top: 32px; padding: 22px 26px; border-left: 4px solid var(--brand); border-radius: 4px 14px 14px 4px; color: var(--muted); background: #fff; }
.seo-intro h2 { margin: 0 0 8px; color: var(--ink); font-size: 18px; }
.seo-intro p { margin: 0; }
.form-grid { display: grid; gap: 14px; }
.form-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.form-grid input, .form-grid textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: #fff; }
.form-grid input:focus, .form-grid textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(8,127,91,.1); }
.form-grid textarea { min-height: 130px; resize: vertical; }
.verify-row { display: flex; align-items: center; gap: 10px; }
.form-grid .verify-row .verify-input { flex: 0 1 140px; width: 140px; }
.verify-row .mac_verify_img { flex: 0 0 auto; width: 110px; height: 42px; object-fit: cover; cursor: pointer; }
.map-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.map-list > li { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.map-list h2 { margin: 0 0 10px; font-size: 18px; }
.inline-links { display: flex; flex-wrap: wrap; gap: 7px 14px; color: var(--muted); }
@media (max-width: 1050px) {
  .poster-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .header-search { width: 210px; }
  .episode-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .shell { width: min(calc(100% - 26px), var(--max)); }
  .header-row { min-height: 64px; gap: 12px; }
  .menu-toggle { display: block; order: 3; }
  .main-nav { display: none; position: absolute; left: 13px; right: 13px; top: 64px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.open { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
  .main-nav a { text-align: center; }
  .header-search { margin-left: auto; width: min(300px, 42vw); }
  .hero-carousel, .hero-track, .hero { min-height: 340px; }
  .hero { padding: 38px 30px 58px; }
  .hero-backdrop { width: 78%; }
  .hero-overlay { background: linear-gradient(90deg, #08271f 0%, rgba(8,39,31,.92) 44%, rgba(8,39,31,.3) 100%), linear-gradient(0deg, rgba(6,25,20,.7), transparent 75%); }
  .hero-content { max-width: 76%; }
  .poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rank-layout, .content-grid { grid-template-columns: 1fr; }
  .detail-hero { grid-template-columns: 180px 1fr; gap: 24px; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .page { padding-top: 18px; }
  .player-shell { width: 100%; min-height: 0; border-radius: 12px; }
  .play-title { gap: 10px; margin: 15px 0; }
  .play-title h1 { font-size: 21px; line-height: 1.35; }
  .brand { font-size: 18px; }
  .brand-mark { width: 30px; height: 30px; }
  .header-search { width: 42px; border: 0; background: transparent; }
  .header-search input { display: none; }
  .header-search button { height: 42px; border-radius: 11px; }
  .hero-carousel { min-height: 370px; border-radius: 20px; }
  .hero-track, .hero { min-height: 370px; }
  .hero { padding: 25px 20px 64px; }
  .hero-backdrop { width: 100%; opacity: .7; }
  .hero-overlay { background: linear-gradient(0deg, #08271f 0%, rgba(8,39,31,.88) 47%, rgba(8,39,31,.28) 100%); }
  .hero-content { max-width: 100%; }
  .hero h1, .hero h2 { font-size: 25px; line-height: 1.25; letter-spacing: -.5px; }
  .hero .hero-desc { -webkit-line-clamp: 3; }
  .hero-actions span { display: none; }
  .hero-controls { right: 14px; bottom: 14px; }
  .hero-search { display: grid; grid-template-columns: 1fr auto; }
  .hero-search button { padding-inline: 16px; }
  .section { margin-top: 30px; }
  .section-title { font-size: 22px; }
  .section-head { gap: 10px; }
  .category-block .section-head { align-items: flex-start; }
  .category-block .section-title small { max-width: 62vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .more-link { font-size: 13px; }
  .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
  .poster { border-radius: 11px; }
  .poster-name { font-size: 14px; }
  .category-block, .panel { padding: 18px; }
  .detail-hero { grid-template-columns: 115px 1fr; gap: 17px; padding: 18px; border-radius: 18px; }
  .detail-copy h1 { margin-top: 0; font-size: 25px; }
  .detail-subtitle, .info-list li:nth-child(n+5) { display: none; }
  .info-list { grid-template-columns: 1fr; gap: 4px; margin-bottom: 13px; }
  .button { min-height: 39px; padding: 7px 13px; }
  .episode-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .filter-panel { padding: 14px; }
  .filter-row { grid-template-columns: 44px 1fr; }
  .filter-options { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filter-options a { flex: 0 0 auto; }
  .sort-bar { align-items: start; flex-direction: column; }
  .result-card { grid-template-columns: 82px 1fr; gap: 13px; padding: 13px; }
  .result-card img { width: 82px; }
  .result-card h2 { font-size: 17px; }
  .result-card p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .article-card { grid-template-columns: 100px 1fr; gap: 13px; padding: 13px; }
  .article-card img { width: 100px; height: 78px; }
  .article-card h2 { font-size: 17px; }
  .article-card p { display: none; }
  .topic-grid { grid-template-columns: 1fr; }
  .map-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 390px) {
  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-hero { grid-template-columns: 96px 1fr; }
  .detail-actions .button-ghost { display: none; }
  .category-block .section-head { display: grid; grid-template-columns: minmax(0,1fr) auto; }
}
/* =========================================================
   平铺版视觉系统：直角、无卡片阴影、通栏分区
   ========================================================= */
:root {
  --bg: #f1efe7;
  --surface: #f1efe7;
  --surface-2: #e5e2d8;
  --ink: #18201d;
  --muted: #626963;
  --line: #c9c5b9;
  --brand: #075f51;
  --brand-dark: #06483e;
  --accent: #e56836;
  --danger: #c5453e;
  --radius: 0;
  --shadow: none;
  --max: 1320px;
}
body { background: var(--bg); }
body::before { display: none; }
.shell { width: min(calc(100% - 48px), var(--max)); }
.skip-link { border-radius: 0; }

.site-header { background: rgba(241,239,231,.97); border-bottom: 3px solid var(--ink); backdrop-filter: none; }
.header-row { min-height: 68px; }
.brand { letter-spacing: -1px; text-transform: uppercase; }
.brand-mark { width: 38px; height: 38px; border-radius: 0; background: var(--brand); box-shadow: none; }
.main-nav { gap: 0; }
.main-nav a { padding: 22px 13px 20px; border-bottom: 3px solid transparent; border-radius: 0; }
.main-nav a:hover, .main-nav a.active { color: var(--brand); border-bottom-color: var(--brand); background: transparent; }
.header-search { border-color: var(--ink); border-radius: 0; background: transparent; }
.header-search button, .menu-toggle { border-radius: 0; box-shadow: none; }
.menu-toggle { background: transparent; }

.page { padding-top: 34px; }
.hero-carousel, .hero-track, .hero { min-height: 390px; }
.hero-carousel { border-radius: 0; border-top: 5px solid var(--accent); background: #102a24; box-shadow: none; }
.hero { padding: 55px 58px 62px; background: #102a24; }
.hero-overlay { background: linear-gradient(90deg, #0b2721 0%, rgba(11,39,33,.96) 34%, rgba(11,39,33,.66) 61%, rgba(11,39,33,.1) 100%); }
.eyebrow { color: #d7e9e3; letter-spacing: 2px; }
.eyebrow::before { width: 34px; background: var(--accent); }
.hero h1, .hero h2 { max-width: 720px; font-weight: 900; letter-spacing: -1.5px; }
.hero-arrow { border-radius: 0; background: #102a24; backdrop-filter: none; }
.hero-dot, .hero-dot.active { height: 4px; border-radius: 0; }
.hero-search { padding: 0; border: 2px solid var(--ink); border-radius: 0; background: #f7f4eb; box-shadow: none; }
.hero-search button { border-radius: 0; background: var(--accent); }

.section { margin-top: 48px; }
.section-head { align-items: center; padding-bottom: 13px; border-bottom: 2px solid var(--ink); }
.section-title { font-size: 27px; text-transform: none; }
.section-title small { display: inline; margin: 0 0 0 12px; }
.more-link { color: var(--brand); }
.poster-grid { gap: 28px 18px; }
.poster { border-radius: 0; background: #d7d4ca; box-shadow: none; }
.poster-card:hover .poster img { transform: none; opacity: .9; }
.badge { left: 0; bottom: 0; max-width: 100%; border-radius: 0; background: rgba(9,28,23,.9); backdrop-filter: none; }
.score { right: 0; top: 0; border-radius: 0; }
.poster-name { margin-top: 10px; font-weight: 800; }

.category-block { padding: 30px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.category-block .section-head { margin-bottom: 24px; }
.rank-layout { gap: 34px; }
.rank-layout aside { padding-left: 26px; border-left: 1px solid var(--line); }
.rank-list li { border-bottom-style: solid; }
.breadcrumb { padding-bottom: 12px; border-bottom: 1px solid var(--line); }

.filter-panel { padding: 18px 0; border: 1px solid var(--line); border-width: 1px 0; border-radius: 0; background: transparent; }
.filter-options a { border-radius: 0; border-bottom: 2px solid transparent; }
.filter-options a:hover, .filter-options a.current { color: var(--brand); border-bottom-color: var(--brand); background: transparent; }
.sort-tabs { gap: 0; }
.sort-tabs a { border-width: 1px 1px 1px 0; border-radius: 0; background: transparent; }
.sort-tabs a:first-child { border-left-width: 1px; }

.detail-hero { grid-template-columns: 240px 1fr; gap: 40px; padding: 38px; border-radius: 0; border-left: 8px solid var(--accent); background: #12382f; box-shadow: none; }
.detail-poster { border-radius: 0; }
.button { border-radius: 0; }
.button-primary:hover { transform: none; }
.content-grid { gap: 32px; }
.panel { padding: 26px 0; border: 1px solid var(--line); border-width: 1px 0 0; border-radius: 0; background: transparent; box-shadow: none; }
.content-grid > aside { padding-left: 24px; border-width: 1px 0 0 1px; }
.playlist-tab { border-radius: 0; background: transparent; }
.episode-list { gap: 1px; background: var(--line); border: 1px solid var(--line); }
.episode-list a { border: 0; border-radius: 0; background: var(--bg); }
.player-shell { border-radius: 0; border-bottom: 5px solid var(--accent); }
.play-title { padding-bottom: 14px; border-bottom: 2px solid var(--ink); }

.search-summary { padding: 24px 28px; border-radius: 0; border-left: 7px solid var(--brand); background: #dce7e1; }
.search-results, .article-list { gap: 0; }
.result-card { padding: 20px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.result-card img { border-radius: 0; }
.article-card { padding: 22px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.article-card img { border-radius: 0; }
.article { padding-inline: clamp(0px, 3vw, 40px); }
.article-body img { border-radius: 0; }

.topic-grid { gap: 1px; border: 1px solid var(--line); background: var(--line); }
.topic-card { border: 0; border-radius: 0; background: var(--bg); }
.pagination { gap: 0; }
.pagination a, .pagination span { border-radius: 0; background: transparent; }
.empty { border-radius: 0; }
.seo-intro { padding: 22px 0 22px 24px; border-radius: 0; background: transparent; }
.form-grid input, .form-grid textarea { border-radius: 0; background: transparent; }
.form-grid input:focus, .form-grid textarea:focus { box-shadow: inset 4px 0 0 var(--brand); }
.map-list { gap: 1px; border: 1px solid var(--line); background: var(--line); }
.map-list > li { border: 0; border-radius: 0; background: var(--bg); }

.footer-tags-wrap { padding-top: 22px; border-top: 2px solid var(--ink); }
.footer-tags-wrap + .site-footer { margin-top: 20px; }
.site-footer { border-top: 7px solid var(--accent); background: #11241f; }
.backtop { border-radius: 0; box-shadow: none; }

@media (max-width: 820px) {
  .shell { width: min(calc(100% - 30px), var(--max)); }
  .main-nav { left: 15px; right: 15px; padding: 0; border-radius: 0; background: var(--bg); box-shadow: none; }
  .main-nav a { padding: 13px 8px; border-bottom: 1px solid var(--line); }
  .hero-content { max-width: 82%; }
  .detail-hero { grid-template-columns: 190px 1fr; }
}

@media (max-width: 600px) {
  .page { padding-top: 20px; }
  .hero-carousel { min-height: 365px; border-radius: 0; }
  .hero-track, .hero { min-height: 365px; }
  .hero { padding: 28px 20px 62px; }
  .hero-content { max-width: 100%; }
  .hero-overlay { background: linear-gradient(0deg, #0b2721 0%, rgba(11,39,33,.92) 56%, rgba(11,39,33,.3) 100%); }
  .hero h1, .hero h2 { letter-spacing: -.8px; }
  .section { margin-top: 38px; }
  .section-head { align-items: flex-end; }
  .section-title small { display: block; margin: 5px 0 0; }
  .poster { border-radius: 0; }
  .category-block, .panel { padding: 22px 0 0; }
  .rank-layout aside { padding: 22px 0 0; border: 0; border-top: 1px solid var(--line); }
  .detail-hero { grid-template-columns: 112px 1fr; gap: 18px; padding: 20px; border-radius: 0; border-left-width: 5px; }
  .content-grid > aside { padding: 22px 0 0; border-width: 1px 0 0; }
  .player-shell { border-radius: 0; }
  .filter-panel { padding-inline: 0; }
  .result-card, .article-card { padding: 16px 0; }
  .topic-grid, .map-list { border-left: 0; border-right: 0; }
}

/* 紧凑布局 */
.page { padding-top: 25px; padding-bottom: 44px; }
.section { margin-top: 32px; }
.section-head { margin-bottom: 15px; padding-bottom: 10px; }
.poster-grid { gap: 20px 15px; }
.category-block { padding-top: 22px; }
.category-block .section-head { margin-bottom: 18px; }
.rank-layout, .content-grid { gap: 24px; }
.panel { padding-top: 20px; padding-bottom: 20px; }
.article-card, .result-card { padding-top: 17px; padding-bottom: 17px; }
.topic-card div { padding: 15px; }
.play-title { margin-block: 15px; }
.seo-intro { margin-top: 24px; }
.footer-tags-wrap { margin-top: 30px; padding-top: 17px; }
.site-footer { margin-top: 30px; }
.footer-tags-wrap + .site-footer { margin-top: 12px; }

@media (max-width: 600px) {
  .page { padding-top: 14px; padding-bottom: 36px; }
  .section { margin-top: 25px; }
  .section-head { margin-bottom: 11px; }
  .poster-grid { gap: 15px 9px; }
  .category-block, .panel { padding-top: 17px; }
  .rank-layout, .content-grid { gap: 17px; }
  .rank-layout aside, .content-grid > aside { padding-top: 17px; }
  .seo-intro { margin-top: 19px; }
  .site-footer { padding-top: 32px; }
}

/* 紧凑标题字号 */
h1 { font-size: clamp(24px, 3vw, 32px); }
h2 { font-size: clamp(18px, 2vw, 23px); }
.hero h1, .hero h2 { font-size: clamp(26px, 2.8vw, 36px); }
.section-title { font-size: 22px; }
.detail-copy h1 { font-size: clamp(27px, 3vw, 35px); }
.play-title h1, .search-summary h1 { font-size: 21px; }
.article-header h1 { font-size: clamp(26px, 3vw, 33px); }
.result-card h2, .article-card h2, .topic-card h2 { font-size: 18px; }

@media (max-width: 600px) {
  h1 { font-size: 23px; }
  h2 { font-size: 19px; }
  .hero h1, .hero h2 { font-size: 22px; }
  .section-title { font-size: 20px; }
  .detail-copy h1 { font-size: 23px; }
  .play-title h1, .search-summary h1 { font-size: 19px; }
  .article-header h1 { font-size: 25px; }
  .result-card h2, .article-card h2, .topic-card h2 { font-size: 17px; }
}

/* 移动端常驻搜索框 */
@media (max-width: 600px) {
  .header-row { gap: 8px; }
  .brand { min-width: 0; max-width: 30%; }
  .brand > span:last-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .header-search { flex: 1 1 140px; width: auto; min-width: 110px; max-width: 220px; margin-left: auto; border: 1px solid var(--ink); border-radius: 0; background: transparent; }
  .header-search input { display: block; min-width: 0; padding: 8px 9px; font-size: 13px; }
  .header-search button { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 0; }
  .menu-toggle { flex: 0 0 42px; }
}

/* =========================================================
   黑金主题：深色平铺分区 + 金色强调 + 圆角图片
   ========================================================= */
:root {
  --bg: #090909;
  --surface: #0f0f0f;
  --surface-2: #171612;
  --ink: #eee7d8;
  --muted: #a69e8e;
  --line: #353126;
  --brand: #d3ad55;
  --brand-dark: #a9822f;
  --accent: #e5bd5a;
  --danger: #d85a50;
  --radius: 0;
  --shadow: none;
}
body { color: var(--ink); background: var(--bg); }
a:hover { color: var(--brand); }
.site-header { background: rgba(9,9,9,.96); border-bottom: 1px solid #403822; }
.brand { color: #f4dfaa; }
.brand-mark { color: #111; background: linear-gradient(145deg, #f0d486, #b98729); }
.main-nav a { color: #bbb3a3; }
.main-nav a:hover, .main-nav a.active { color: #f0cd76; border-bottom-color: var(--brand); }
.header-search { border-color: #554a2d; background: #111; }
.header-search input { color: var(--ink); }
.header-search button { color: #111; background: var(--brand); }
.menu-toggle { color: var(--brand); border-color: #554a2d; }

.hero-carousel, .hero-carousel .hero-track, .hero-carousel .hero { min-height: 430px; }
.hero-carousel { overflow: hidden; border: 1px solid #3b3422; border-radius: 18px; background: #080808; }
.hero-carousel .hero { padding: 0; background: #080808; }
.hero-slide-link { position: absolute; inset: 0; display: block; color: #fff; }
.hero-carousel .hero-backdrop { inset: 0; width: 100%; object-position: center 30%; border-radius: 0; }
.hero-carousel .hero-overlay { background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.4) 38%, transparent 68%); }
.hero-carousel .hero-content { position: absolute; left: 0; right: 0; bottom: 0; max-width: none; padding: 34px 110px 34px 34px; }
.hero-carousel .hero h1, .hero-carousel .hero h2 { width: 100%; max-width: 820px; margin: 0; color: #fff3d0; font-size: clamp(25px, 2.7vw, 36px); text-shadow: 0 2px 15px rgba(0,0,0,.7); }
.page > .hero:not(.hero-slide) { min-height: 250px; padding: 42px; border-top: 4px solid var(--brand); background: linear-gradient(125deg,#0e0e0d,#241d0e) !important; }
.page > .hero:not(.hero-slide) .hero-content { position: relative; max-width: 760px; padding: 0; }
.hero-controls { right: 24px; bottom: 25px; }
.hero-arrow { color: #f3d889; border-color: rgba(229,189,90,.65); background: rgba(0,0,0,.65); }
.hero-arrow:hover { color: #111; border-color: var(--brand); background: var(--brand); }
.hero-dot { background: rgba(255,255,255,.42); }
.hero-dot.active { background: var(--brand); }

.section-head { border-bottom-color: #625435; }
.section-title, .panel h2, .panel h3 { color: #f2e3bc; }
.section-title small, .poster-meta, .article-meta { color: var(--muted); }
.more-link { color: var(--brand); }
.poster { border: 1px solid #2f2b22; border-radius: 12px; background: #171612; }
.poster img { border-radius: 11px; }
.poster-card:hover .poster img { opacity: .82; }
.badge { left: 6px; bottom: 6px; max-width: calc(100% - 12px); border-radius: 6px; color: #f6e7bd; background: rgba(0,0,0,.82); }
.score { right: 6px; top: 6px; border-radius: 6px; color: #111; background: var(--brand); }
.poster-name { color: #eee7d8; }
.category-block { border-top-color: #353126; }
.rank-layout aside, .content-grid > aside { border-color: #353126; }
.rank-list li, .breadcrumb { border-color: #353126; }
.rank-list li:nth-child(-n+3) a::before { color: var(--brand); }
.breadcrumb { color: var(--muted); }

.filter-panel { border-color: #353126; }
.filter-options a:hover, .filter-options a.current { color: #f2cd73; border-bottom-color: var(--brand); }
.sort-tabs a { color: #c7beab; border-color: #403a2c; }
.sort-tabs a.current { color: #111; border-color: var(--brand); background: var(--brand); }

.detail-hero { border: 1px solid #3c3525; border-left: 7px solid var(--brand); background: #10100f; }
.detail-poster { border: 1px solid #51462b; border-radius: 14px; background: #171612; }
.detail-poster img { border-radius: 13px; }
.detail-copy h1 { color: #f5e8c6; }
.detail-subtitle { color: #aaa18e; }
.info-list { color: #d1c8b6; }
.info-list b { color: #b59a5d; }
.detail-info-wrap .actor-list a:nth-of-type(n+4) { display: inline; }
.detail-info-toggle { display: none; align-items: center; gap: 6px; padding: 5px 0; border: 0; color: var(--brand); background: transparent; font-weight: 700; }
.detail-info-toggle[hidden] { display: none !important; }
.button-primary { color: #111; background: var(--brand); }
.button-primary:hover { color: #111; background: #edcc7a; }
.button-ghost { color: #e2d5b5; border-color: #6c5d39; }
.button-ghost:hover { color: #fff1c9; border-color: var(--brand); }
.panel { border-color: #353126; }
.summary { color: #c5bcaa; }
.playlist-tab { color: #aaa18f; border-color: #403a2c; }
.playlist-tab.active { color: #111; border-color: var(--brand); background: var(--brand); }
.episode-list { border-color: #302c23; background: #302c23; }
.episode-list a { color: #cfc6b5; background: #0d0d0d; }
.episode-list a:hover, .episode-list li.active a { color: #111; border-color: var(--brand); background: var(--brand); }
.player-shell { border-bottom-color: var(--brand); }
.play-title { border-bottom-color: #625435; }

.search-summary { border-left-color: var(--brand); background: #17150f; }
.result-card, .article-card { border-color: #353126; }
.result-card img, .article-card img, .article-body img { border-radius: 10px; background: #171612; }
.result-card h2, .article-card h2, .topic-card h2 { color: #eee1bf; }
.result-card p, .article-card p, .article-body { color: #b8af9f; }
.article-header { border-color: #353126; }
.topic-grid, .map-list { border-color: #353126; background: #353126; }
.topic-card, .map-list > li { background: #0d0d0d; }
.topic-card { overflow: visible; }
.topic-card img { border-radius: 10px; background: #171612; }
.pagination a, .pagination span { color: #bdb4a2; border-color: #403a2c; }
.pagination .current { color: #111; border-color: var(--brand); background: var(--brand); }
.empty { border-color: #504833; }
.seo-intro { color: #aaa18f; border-left-color: var(--brand); }
.seo-intro h2 { color: #eadcb8; }
.form-grid input, .form-grid textarea { color: var(--ink); border-color: #49412e; background: #0d0d0d; }
.form-grid input:focus, .form-grid textarea:focus { border-color: var(--brand); box-shadow: inset 4px 0 0 var(--brand); }
.footer-tags-wrap { color: #aaa18f; border-top-color: #5b4d2e; }
.site-footer { color: #9e9584; border-top-color: var(--brand); background: #050505; }
.footer-brand { color: #efd994; }
.footer-links a { color: #c7b98f; }
.backtop { color: #111; background: var(--brand); }
.verify-row .mac_verify_img { border-radius: 7px; }

@media (max-width: 820px) {
  .main-nav { border-color: #403822; background: #0d0d0d; }
  .hero-carousel, .hero-carousel .hero-track, .hero-carousel .hero { min-height: 330px; }
}

@media (max-width: 600px) {
  .header-search { border-color: #554a2d; background: #0d0d0d; }
  .hero-carousel, .hero-carousel .hero-track, .hero-carousel .hero { min-height: 235px; }
  .hero-carousel { border-radius: 12px; }
  .hero-carousel .hero-backdrop { opacity: 1; }
  .hero-carousel .hero-overlay { background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.28) 55%, transparent 78%); }
  .hero-carousel .hero-content { padding: 22px 86px 22px 18px; }
  .hero-carousel .hero h1, .hero-carousel .hero h2 { font-size: 22px; }
  .page > .hero:not(.hero-slide) { min-height: 210px; padding: 28px 20px; }
  .hero-controls { right: 12px; bottom: 15px; gap: 7px; }
  .hero-arrow { width: 30px; height: 30px; }
  .hero-dots { display: none; }
  .poster { border-radius: 10px; }
  .poster img { border-radius: 9px; }
  .detail-hero { grid-template-columns: 108px 1fr; align-items: start; padding: 16px; border-left-width: 5px; }
  .detail-poster, .detail-poster img { border-radius: 10px; }
  .detail-subtitle { display: block; margin-bottom: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .detail-info-wrap .info-list li:nth-child(n+5) { display: none; }
  .detail-info-wrap .actor-list a:nth-of-type(n+4) { display: none; }
  .detail-info-wrap.expanded .info-list li:nth-child(n+5) { display: block; }
  .detail-info-wrap.expanded .actor-list a:nth-of-type(n+4) { display: inline; }
  .detail-info-toggle { display: inline-flex; }
  .detail-info-wrap.expanded .detail-info-toggle { margin-top: 4px; }
  .result-card img, .article-card img, .article-body img, .topic-card img { border-radius: 8px; }
}

/* 详情页长标题截断 */
.detail-copy { min-width: 0; overflow: hidden; }
.detail-copy h1, .detail-subtitle { width: 100%; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.detail-info-wrap, .info-list, .info-list li { min-width: 0; }

/* 详情页与播放页选集滚动 */
.detail-playlist .playlist-panel.active { max-height: 340px; padding-right: 6px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.detail-playlist .episode-list { align-content: start; }
.detail-playlist .playlist-panel.active, .player-sidebar .playlist-panel.active { scrollbar-width: thin; scrollbar-color: var(--brand) #171612; }
.detail-playlist .playlist-panel.active::-webkit-scrollbar, .player-sidebar .playlist-panel.active::-webkit-scrollbar { width: 7px; }
.detail-playlist .playlist-panel.active::-webkit-scrollbar-thumb, .player-sidebar .playlist-panel.active::-webkit-scrollbar-thumb { border-radius: 7px; background: var(--brand); }
.detail-playlist .playlist-panel.active::-webkit-scrollbar-track, .player-sidebar .playlist-panel.active::-webkit-scrollbar-track { background: #171612; }
.play-stage { position: relative; }
.player-sidebar h2 { flex: 0 0 auto; margin: 0 0 12px; font-size: 19px; }
.player-sidebar .playlist-tabs { flex: 0 0 auto; }
.player-sidebar .episode-list { grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; }

@media (min-width: 1051px) {
  .play-stage { padding-right: 358px; }
  .player-sidebar { position: absolute; top: 0; right: 0; bottom: 0; width: 340px; min-height: 0; padding: 18px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
  .player-sidebar .playlist-panel.active { flex: 1 1 auto; min-height: 0; padding-right: 5px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 1050px) {
  .player-sidebar { margin-top: 14px; padding: 17px; border: 1px solid var(--line); }
  .player-sidebar .playlist-panel.active { max-height: 300px; padding-right: 5px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 600px) {
  .detail-playlist .playlist-panel.active { max-height: 280px; }
  .player-sidebar .playlist-panel.active { max-height: 280px; }
}

/* 黑金圆角表单与按钮 */
button, input, textarea { border-radius: 8px; }
.button, .playlist-tab, .episode-list a, .sort-tabs a, .filter-options a, .pagination a, .pagination span { border-radius: 8px; }
.form-grid input, .form-grid textarea { border-radius: 9px; }
.header-search { overflow: hidden; border-radius: 10px; }
.header-search input { border-radius: 9px 0 0 9px; }
.header-search button { border-radius: 0 9px 9px 0; }
.hero-arrow, .menu-toggle, .backtop { border-radius: 8px; }

/* 黑金大模块紧凑间距 */
.section { margin-top: 22px; }
.panel.section { margin-top: 18px; }
.section-head { margin-bottom: 11px; }
.content-grid, .rank-layout { gap: 16px; }
.article-list.section { margin-top: 16px; }
.seo-intro { margin-top: 18px; }
.footer-tags-wrap { margin-top: 24px; }
.site-footer { margin-top: 24px; }
.footer-tags-wrap + .site-footer { margin-top: 10px; }

@media (max-width: 600px) {
  .section { margin-top: 16px; }
  .panel.section { margin-top: 14px; }
  .section-head { margin-bottom: 9px; padding-bottom: 8px; }
  .content-grid, .rank-layout { gap: 8px; }
  .content-grid > aside { padding-top: 0; }
  .rank-layout aside { padding-top: 12px; }
  .panel { padding-top: 14px; padding-bottom: 14px; }
  .article-list.section { margin-top: 12px; }
  .form-grid { gap: 10px; }
  .seo-intro { margin-top: 14px; }
  .footer-tags-wrap { margin-top: 20px; }
}

/* =========================================================
   橙白主题：明亮、温暖、快速克制的动效
   ========================================================= */
:root {
  --bg: #fffaf5;
  --surface: #ffffff;
  --surface-2: #fff1e4;
  --ink: #2b241f;
  --muted: #796d64;
  --line: #eadfd6;
  --brand: #f26a21;
  --brand-dark: #d85412;
  --accent: #ff8a35;
  --danger: #d94b43;
  --shadow: 0 12px 30px rgba(114,65,30,.08);
  --header-height: 68px;
}
html { scroll-padding-top: calc(var(--header-height) + 16px); }
body { color: var(--ink); background: linear-gradient(180deg,#fff 0,#fffaf5 260px,#fffaf5 100%); }
a:hover { color: var(--brand); }
.site-header { position: fixed; inset: 0 0 auto; width: 100%; z-index: 1000; background: rgba(255,255,255,.96); border-bottom: 1px solid #f0ded1; box-shadow: 0 5px 18px rgba(112,67,35,.05); }
.site-header + .page { margin-top: var(--header-height); }
.brand { color: #3b2a20; }
.brand-mark { color: #fff; background: linear-gradient(145deg,#ff943f,#e85b16); box-shadow: 0 7px 18px rgba(242,106,33,.22); }
.main-nav a { color: #695d55; }
.main-nav a:hover, .main-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }
.header-search { border-color: #e9cdbb; background: #fffaf6; }
.header-search input { color: var(--ink); background: transparent; }
.header-search button { color: #fff; background: var(--brand); }
.menu-toggle { color: var(--brand); border-color: #e9cdbb; background: #fff; }

.hero-carousel { border-color: #f1b186; background: #2d1b12; box-shadow: 0 16px 38px rgba(168,81,25,.14); }
.hero-carousel .hero { background: #2d1b12; }
.hero-carousel .hero-overlay { background: linear-gradient(0deg,rgba(71,26,3,.9) 0%,rgba(109,43,8,.4) 40%,transparent 70%); }
.hero-carousel .hero h1, .hero-carousel .hero h2 { color: #fff; text-shadow: 0 2px 14px rgba(58,21,4,.6); }
.hero-arrow { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(214,79,12,.72); }
.hero-arrow:hover { color: #fff; border-color: #ff9b52; background: var(--brand); }
.hero-dot { background: rgba(255,255,255,.55); }
.hero-dot.active { background: #ffb06d; }
.page > .hero:not(.hero-slide) { border-top-color: var(--brand); background: linear-gradient(125deg,#fff2e7,#ffe1cb) !important; }
.page > .hero:not(.hero-slide), .page > .hero:not(.hero-slide) h1 { color: var(--ink); }
.page > .hero:not(.hero-slide) p { color: #6f5c50; }
.eyebrow { color: var(--brand-dark); }
.eyebrow::before { background: var(--brand); }

.section-head { align-items: center; justify-content: flex-start; gap: 10px; border-bottom-color: #efc7aa; }
.section-head::before { content: ""; align-self: center; width: 4px; height: 38px; flex: 0 0 4px; border-radius: 4px; background: var(--brand); }
.section-head .section-title small { display: block; margin: 3px 0 0; line-height: 1.35; }
.section-head .section-subtypes { max-width: min(68vw, 720px); height: 19px; overflow: hidden; color: var(--muted); white-space: nowrap; }
.section-subtypes a { display: inline-block; color: var(--muted); font-weight: 500; }
.section-subtypes a:hover { color: var(--brand); }
.section-subtypes a + a::before { content: "·"; margin: 0 7px; color: #c9a58d; }
.section-head .more-link { margin-left: auto; }
@media (max-width: 390px) {
  .category-block .section-head { display: flex; align-items: center; }
}
.section-title, .panel h2, .panel h3 { color: #332820; }
.section-title small, .poster-meta, .article-meta { color: var(--muted); }
.more-link { color: var(--brand); }
.poster { border-color: #edd9ca; background: #f7ede5; box-shadow: 0 7px 20px rgba(120,70,35,.06); }
.poster-card:hover .poster img { opacity: 1; transform: scale(1.025); }
.badge { color: #fff; background: rgba(80,35,12,.82); }
.score { color: #fff; background: var(--brand); }
.poster-name { color: var(--ink); }
.category-block { border-top-color: #eadfd6; }
.rank-layout aside, .content-grid > aside, .rank-list li, .breadcrumb { border-color: #eadfd6; }
.rank-list li:nth-child(-n+3) a::before { color: var(--brand); }
.breadcrumb { color: var(--muted); }

.filter-panel { border-color: #eadfd6; }
.filter-options a:hover, .filter-options a.current { color: var(--brand); border-bottom-color: var(--brand); }
.sort-tabs a { color: #6e6259; border-color: #e7d4c6; background: #fff; }
.sort-tabs a.current { color: #fff; border-color: var(--brand); background: var(--brand); }

.detail-hero { color: var(--ink); border-color: #f0c5a6; border-left-color: var(--brand); background: linear-gradient(120deg,#fff 0%,#fff3e8 100%); box-shadow: var(--shadow); }
.detail-poster { border-color: #efc6a8; background: #f7ede5; }
.detail-copy h1 { color: #30251e; }
.detail-subtitle { color: #82736a; }
.info-list { color: #5c5149; }
.info-list b { color: var(--brand-dark); }
.detail-info-toggle { color: var(--brand); }
.button-primary { color: #fff; background: var(--brand); }
.button-primary:hover { color: #fff; background: #ff8135; }
.button-ghost { color: var(--brand-dark); border-color: #e8ad83; background: #fff; }
.button-ghost:hover { color: #fff; border-color: var(--brand); background: var(--brand); }
.panel { border-color: #eadfd6; }
.summary { color: #5f554e; }
.playlist-tab { color: #75685f; border-color: #e7d4c6; background: #fff; }
.playlist-tab.active { color: #fff; border-color: var(--brand); background: var(--brand); }
.episode-list { border-color: #f0dfd2; background: #f0dfd2; }
.episode-list a { color: #62564e; background: #fff; }
.episode-list a:hover, .episode-list li.active a { color: #fff; border-color: var(--brand); background: var(--brand); }
.detail-playlist .playlist-panel.active, .player-sidebar .playlist-panel.active { scrollbar-color: var(--brand) #fff0e4; }
.detail-playlist .playlist-panel.active::-webkit-scrollbar-track, .player-sidebar .playlist-panel.active::-webkit-scrollbar-track { background: #fff0e4; }
.player-sidebar { background: #fff; }
.player-shell { border-bottom-color: var(--brand); background: #18120f; }
.play-title { border-bottom-color: #efc7aa; }

.search-summary { border-left-color: var(--brand); background: #fff0e4; }
.result-card, .article-card, .article-header { border-color: #eadfd6; }
.result-card img, .article-card img, .article-body img, .topic-card img { background: #f7ede5; }
.result-card h2, .article-card h2, .topic-card h2 { color: #382b23; }
.result-card p, .article-card p, .article-body { color: #665a52; }
.topic-grid, .map-list { border-color: #eadfd6; background: #eadfd6; }
.topic-card, .map-list > li { background: #fff; }
.pagination a, .pagination span { color: #6f6259; border-color: #e5d2c3; background: #fff; }
.pagination .current { color: #fff; border-color: var(--brand); background: var(--brand); }
.empty { border-color: #e6c8b3; }
.seo-intro { color: #71645b; border-left-color: var(--brand); }
.seo-intro h2 { color: #372b23; }
.form-grid input, .form-grid textarea { color: var(--ink); border-color: #e4c9b7; background: #fff; }
.form-grid input:focus, .form-grid textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(242,106,33,.1); }
.footer-tags-wrap { color: #75685f; border-top-color: #efc7aa; }
.site-footer { color: #fff1e7; border-top-color: #ffb47d; background: linear-gradient(135deg,#eb5d16,#f47a2d); }
.footer-brand { color: #fff; }
.footer-links a { color: #fff5ed; }
.copyright { border-top-color: rgba(255,255,255,.26); }
.backtop { color: #fff; background: var(--brand); box-shadow: 0 8px 20px rgba(242,106,33,.24); }
.verify-row .mac_verify_img { border: 1px solid #e7c8b2; }

@media (max-width: 820px) {
  .main-nav { top: var(--header-height); }
  .main-nav { border-color: #ecd4c3; background: #fff; box-shadow: 0 12px 28px rgba(120,70,35,.1); }
}
@media (max-width: 600px) {
  .header-search { border-color: #e9cdbb; background: #fffaf6; }
  .hero-carousel .hero-overlay { background: linear-gradient(0deg,rgba(75,25,2,.9) 0%,rgba(121,45,6,.28) 56%,transparent 80%); }
}

/* 参考模板 9 的视口触发节奏：模块上浮，详情左右进入，移动端减弱位移。 */
.motion-ready:not(.motion-initialized) :where(.hero-carousel, .breadcrumb, .detail-poster, .detail-copy, .player-shell, .player-sidebar, .play-title, .section-head, .poster-card, .panel, .result-card, .article-card, .topic-card, .map-list > li, .search-summary, .filter-panel, .sort-bar, .pagination, .empty, .seo-intro) { opacity: 0; }
.motion-ready .site-header { animation: cbHeaderIn .42s cubic-bezier(.22,.8,.3,1) both; }
.motion-ready .motion-reveal { opacity: 0; }
.motion-ready .motion-reveal.is-visible { opacity: 1; animation: cbFadeInUp .72s cubic-bezier(.22,.8,.3,1) var(--motion-delay,0ms) backwards; }
.motion-ready .motion-short.is-visible { animation-name: cbTopFadeInUp; animation-duration: .6s; }
.motion-ready .motion-left.is-visible { animation-name: cbFadeInLeft; }
.motion-ready .motion-right.is-visible { animation-name: cbFadeInRight; }
.motion-ready .motion-hero.is-visible { animation-name: cbHeroIn; animation-duration: .7s; }
.motion-ready .motion-card.is-visible { animation-duration: .66s; }
.motion-ready .poster-card.motion-reveal.is-visible:hover, .motion-ready .topic-card.motion-reveal.is-visible:hover, .motion-ready .result-card.motion-reveal.is-visible:hover, .motion-ready .article-card.motion-reveal.is-visible:hover { transform: translateY(-4px); }
.poster-card, .topic-card, .result-card, .article-card, .button, .playlist-tab, .episode-list a { transition: transform .2s ease, box-shadow .2s ease, color .2s ease, background .2s ease, border-color .2s ease; }
.topic-card:hover, .result-card:hover, .article-card:hover { box-shadow: 0 10px 24px rgba(132,73,35,.1); }
.button:hover, .playlist-tab:hover { transform: translateY(-2px); }
.button:active, .playlist-tab:active, .episode-list a:active { transform: scale(.98); }
@keyframes cbHeaderIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes cbTopFadeInUp { from { opacity: 0; transform: translate3d(0,18px,0); } to { opacity: 1; transform: none; } }
@keyframes cbFadeInUp { from { opacity: 0; transform: translate3d(0,50px,0); } to { opacity: 1; transform: none; } }
@keyframes cbFadeInLeft { from { opacity: 0; transform: translate3d(-42px,0,0); } to { opacity: 1; transform: none; } }
@keyframes cbFadeInRight { from { opacity: 0; transform: translate3d(42px,0,0); } to { opacity: 1; transform: none; } }
@keyframes cbHeroIn { from { opacity: 0; transform: translate3d(0,18px,0) scale(.985); } to { opacity: 1; transform: none; } }

.playlist-panel.active { animation: cbTopFadeInUp .28s ease-out both; }
.detail-info-wrap.expanded .info-list li:nth-child(n+5), .detail-info-wrap.expanded .actor-list a:nth-of-type(n+4) { animation: cbTopFadeInUp .3s ease-out both; }

@media (max-width: 600px) {
  @keyframes cbFadeInUp { from { opacity: 0; transform: translate3d(0,22px,0); } to { opacity: 1; transform: none; } }
  @keyframes cbFadeInLeft { from { opacity: 0; transform: translate3d(-16px,0,0); } to { opacity: 1; transform: none; } }
  @keyframes cbFadeInRight { from { opacity: 0; transform: translate3d(16px,0,0); } to { opacity: 1; transform: none; } }
  .motion-ready .motion-reveal.is-visible { animation-duration: .46s; }
  .motion-ready .motion-card.is-visible { animation-duration: .42s; }
}

/* 最近访问 */
body.history-open { overflow: hidden; }
.recent-history-toggle { position: fixed; right: 20px; bottom: 92px; z-index: 950; width: 62px; height: 62px; display: grid; place-content: center; gap: 1px; padding: 0; border: 2px solid var(--surface); border-radius: 50%; color: var(--surface); background: var(--brand); box-shadow: 0 10px 28px rgba(0,0,0,.2); line-height: 1.05; text-align: center; }
.recent-history-toggle > span { font-size: 16px; }
.recent-history-toggle > b { font-size: 12px; letter-spacing: 1px; }
.recent-history-toggle:hover { transform: translateY(-3px); }
.recent-history-overlay[hidden] { display: none; }
.recent-history-overlay { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 18px; opacity: 0; background: rgba(0,0,0,.58); transition: opacity .18s ease; }
.recent-history-overlay.open { opacity: 1; }
.recent-history-dialog { width: min(430px,100%); max-height: min(680px,82vh); display: flex; flex-direction: column; overflow: hidden; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 24px 70px rgba(0,0,0,.28); transform: translateY(18px) scale(.98); transition: transform .18s ease; }
.recent-history-overlay.open .recent-history-dialog { transform: none; }
.recent-history-dialog > header, .recent-history-dialog > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.recent-history-dialog > header h2 { margin: 0; color: var(--ink); font-size: 18px; }
.recent-history-dialog > footer { justify-content: flex-end; border-top: 1px solid var(--line); border-bottom: 0; background: var(--surface-2); }
.recent-history-close { width: 34px; height: 34px; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 26px; line-height: 1; }
.recent-history-list { counter-reset: recent; min-height: 90px; margin: 0; padding: 5px 16px; overflow-y: auto; list-style: none; }
.recent-history-list li { counter-increment: recent; display: grid; grid-template-columns: 44px minmax(0,1fr); align-items: center; gap: 12px; min-height: 76px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.recent-history-list li:last-child { border-bottom: 0; }
.recent-history-list li.no-pic { grid-template-columns: minmax(0,1fr); }
.recent-history-list img { width: 44px; height: 60px; object-fit: cover; border-radius: 7px; background: var(--surface-2); }
.recent-history-list a { min-width: 0; overflow: hidden; color: var(--ink); font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.recent-history-list a::before { content: counter(recent) ". "; color: var(--brand); }
.recent-history-empty { display: grid !important; grid-template-columns: 1fr !important; place-items: center; color: var(--muted); text-align: center; }
.recent-history-empty::before { display: none; }
.recent-history-clear { padding: 7px 13px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.recent-history-clear:hover { color: var(--brand); border-color: var(--brand); }
@media (max-width: 600px) {
  .recent-history-toggle { right: 12px; bottom: 82px; width: 56px; height: 56px; }
  .recent-history-dialog { max-height: 76vh; border-radius: 12px; }
}

/* 服务端最近访问列表（与旧模板一致） */
.recent-history-dialog > header h3 { margin: 0; color: var(--ink); font-size: 18px; }
.recent-history-list li { grid-template-columns: 24px minmax(0,1fr) 70px; min-height: 52px; gap: 10px; }
.recent-history-list li::before { content: counter(recent); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--surface); background: var(--muted); font-size: 11px; font-weight: 800; }
.recent-history-list li:nth-child(-n+3)::before { background: var(--brand); }
.recent-history-list a::before { content: none; }
.recent-history-list .recent-visit-t { color: var(--muted); font-size: 11px; text-align: right; white-space: nowrap; }
.recent-history-list .recent-visit-empty { grid-template-columns: 1fr; place-items: center; min-height: 110px; color: var(--muted); text-align: center; }
.recent-history-list .recent-visit-empty::before { display: none; }

/* 移动端播放器安全区：装饰线移到容器外，避免遮挡底部控制栏。 */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  .player-shell { box-sizing: content-box; margin-bottom: 4px; padding-bottom: 25px; border-bottom: 0; box-shadow: 0 4px 0 var(--brand); }
}
