: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; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* =========================================================
   平铺版视觉系统：直角、无卡片阴影、通栏分区
   ========================================================= */
: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; }
}

/* 详情页长标题截断 */
.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; }

/* 固定吸顶导航 */
:root { --header-height: 68px; }
html { scroll-padding-top: calc(var(--header-height) + 16px); }
.site-header { position: fixed; inset: 0 0 auto; width: 100%; z-index: 1000; }
.site-header + .page { margin-top: var(--header-height); }
@media (max-width: 820px) {
  .main-nav { top: var(--header-height); }
}

/* 首页子分类快捷入口 */
.section-head .section-subtypes { display: block; max-width: min(68vw, 720px); height: 19px; margin: 3px 0 0; overflow: hidden; color: var(--muted); line-height: 1.35; 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: var(--line); }

/* 最近访问 */
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(--accent); }
}
