:root{
  --bg:#0d0f14; --bg-card:#161a22; --bg-soft:#1f2937; --bg-inset:#11141a;
  --border:#2a2e38; --border-2:#374151;
  --text:#d1d5db; --heading:#ffffff; --text-2:#9ca3af; --text-3:#6b7280;
  --on-accent:#ffffff; --input-bg:#0d0f14; --header-bg:#161a22;
  --shadow:rgba(0,0,0,.5); --hero-rgb:13,15,20;
  --link:#60a5fa; --link-bg:rgba(59,130,246,.1); --link-border:#3b82f6;
}
[data-theme="light"]{
  --bg:#f0f2f5; --bg-card:#ffffff; --bg-soft:#e6e9ee; --bg-inset:#edf0f4;
  --border:#d8dde4; --border-2:#cbd5e0;
  --text:#4a5568; --heading:#1a202c; --text-2:#8a95a5; --text-3:#a0aec0;
  --on-accent:#ffffff; --input-bg:#ffffff; --header-bg:#ffffff;
  --shadow:rgba(26,32,44,.08); --hero-rgb:240,242,245;
  --link:#2b6cb0; --link-bg:rgba(43,108,176,.1); --link-border:#2b6cb0;
}
/* ===== 浅色（雾霾蓝灰）主题：强调色统一为沉静蓝 #2b6cb0 ===== */
[data-theme="light"] .btn-mindmap,
[data-theme="light"] .btn-watch{ background:#2b6cb0; border-color:#2b6cb0; color:#fff; }
[data-theme="light"] .btn-mindmap:hover{ background:#2c5282; }
[data-theme="light"] .emotion-section{ border-color:#2b6cb0; }
[data-theme="light"] .emotion-title span,
[data-theme="light"] .review-user,
[data-theme="light"] .rv-user,
[data-theme="light"] .film-year,
[data-theme="light"] .year,
[data-theme="light"] .rel-tag,
[data-theme="light"] .em-tld{ color:#2b6cb0; }
[data-theme="light"] .emotion-tag,
[data-theme="light"] .rel-tag,
[data-theme="light"] .em-tag{ background:rgba(43,108,176,.1); color:#2b6cb0; }
[data-theme="light"] .em-tl,
[data-theme="light"] .timeline{ border-left-color:#2b6cb0; }
[data-theme="light"] .em-tli::before,
[data-theme="light"] .timeline-item::before{ background:#2b6cb0; }
[data-theme="light"] .star-card:hover{ border-color:#2b6cb0; }
[data-theme="light"] .mm-filter-btn.active{ background:rgba(43,108,176,.1); border-color:#2b6cb0; color:#2b6cb0; }
[data-theme="light"] .mm-card:hover{ border-color:#2b6cb0; box-shadow:0 10px 30px rgba(43,108,176,.12); }
[data-theme="light"] .mm-btn{ background:#2b6cb0; }
[data-theme="light"] .mm-btn:hover{ background:#2c5282; }
[data-theme="light"] a[style*="60a5fa"]{ color:#2b6cb0 !important; }
[data-theme="light"] a[style*="3b82f6"]{ color:#2b6cb0 !important; }

/* ===== 白天（雾霾蓝灰）主题：全局品牌红在浅色下统一映射为强调蓝 ===== */
[data-theme="light"] a:hover,
[data-theme="light"] .logo,
[data-theme="light"] .nav a.active,
[data-theme="light"] .nav a:hover,
[data-theme="light"] .diff-title span,
[data-theme="light"] .mm-img,
[data-theme="light"] .mm-entry-icon,
[data-theme="light"] .mb-avatar,
[data-theme="light"] .news-box-title:hover,
[data-theme="light"] .day-item:hover,
[data-theme="light"] .home-tv-card:hover .home-tv-more,
[data-theme="light"] .timeline-back:hover,
[data-theme="light"] .random-btn:hover,
[data-theme="light"] .rv-title,
[data-theme="light"] .sidebar-title,
[data-theme="light"] .section-title2,
[data-theme="light"] .topic-sec-title{ color:#2b6cb0; }

[data-theme="light"] .hero-tag,
[data-theme="light"] .btn-play,
[data-theme="light"] .status-badge,
[data-theme="light"] .btn-watch-big,
[data-theme="light"] .ep-btn.active,
[data-theme="light"] .submit-btn,
[data-theme="light"] .filter-bar a.on,
[data-theme="light"] .btn-primary,
[data-theme="light"] .pages .current,
[data-theme="light"] .search-btn,
[data-theme="light"] .tl-search button,
[data-theme="light"] .mb-btn,
[data-theme="light"] .comment-avatar,
[data-theme="light"] .filter-links a.active,
[data-theme="light"] .alphabet-bar a.active,
[data-theme="light"] .rv-pub-btn{ background:#2b6cb0; border-color:#2b6cb0; color:#fff; }

[data-theme="light"] .tab-item.active,
[data-theme="light"] .filter-tag.active{ color:#2b6cb0; border-bottom-color:#2b6cb0; border-color:#2b6cb0; }

[data-theme="light"] .tag-bad,
[data-theme="light"] .schedule-tag,
[data-theme="light"] .filter-links a:hover,
[data-theme="light"] .director-card-lg .info-lg .btn-link,
[data-theme="light"] .rv-vote-btn.bad{ background:rgba(43,108,176,.1); color:#2b6cb0; border-color:rgba(43,108,176,.3); }

[data-theme="light"] .emotion-reason{ border-left-color:#2b6cb0; }
[data-theme="light"] .mb-sec h3:before{ background:#2b6cb0; }
[data-theme="light"] .timeline-item::before{ background:#2b6cb0; }

[data-theme="light"] .card:hover .poster,
[data-theme="light"] .topic-card:hover,
[data-theme="light"] .cast-card:hover,
[data-theme="light"] .topic-card-sm:hover,
[data-theme="light"] .mm-entry:hover,
[data-theme="light"] .rel-card:hover,
[data-theme="light"] .star-card:hover,
[data-theme="light"] .movie-card:hover,
[data-theme="light"] .film-item:hover,
[data-theme="light"] .poster-card:hover,
[data-theme="light"] .director-card:hover,
[data-theme="light"] .director-card-lg:hover,
[data-theme="light"] .timeline-card:hover,
[data-theme="light"] .article-card:hover,
[data-theme="light"] .home-tv-card:hover,
[data-theme="light"] .home-tl-card:hover{ border-color:#2b6cb0; }

[data-theme="light"] .search-box:focus,
[data-theme="light"] .mb-form input:focus,
[data-theme="light"] .tl-search input:focus{ border-color:#2b6cb0; }

/* ================= 戏曲猫 · 深色影院风（按设计稿） ================= */
* { margin:0; padding:0; box-sizing:border-box; }
body { background:var(--bg); color:var(--text); font-family:"Microsoft YaHei","PingFang SC",system-ui,Arial,sans-serif; line-height:1.6; }
a { text-decoration:none; color:inherit; transition:.2s; }
a:hover { color:#2b6cb0; }
ul { list-style:none; }
img { display:block; }
.container { max-width:1300px; margin:0 auto; padding:0 20px; }

/* ================= 头部 ================= */
.header { background:var(--bg-card); padding:15px 0; border-bottom:1px solid var(--border); position:sticky; top:0; z-index:100; }
.header .container { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.logo { font-size:26px; font-weight:900; color:#2b6cb0; letter-spacing:1px; white-space:nowrap; }
.logo span { display:none; }
.logo img { height:34px; width:auto; display:block; }
.nav { display:flex; flex-wrap:wrap; gap:0; }
.nav a { margin-left:25px; color:var(--text-2); font-size:15px; font-weight:500; white-space:nowrap; }
.nav a.active, .nav a:hover { color:#2b6cb0; }
.search-box { background:var(--bg); border:1px solid var(--border-2); padding:8px 15px; border-radius:20px; color:var(--heading); width:280px; outline:none; font-size:14px; }
.search-box:focus { border-color:#2b6cb0; }
.search-box button { display:none; }

/* ================= Hero ================= */
.hero { height:480px; background:linear-gradient(to right,rgba(var(--hero-rgb),1) 15%,rgba(var(--hero-rgb),.4) 100%); background-size:cover; background-position:center 20%; border-bottom:1px solid var(--bg-soft); display:flex; align-items:center; position:relative; }
.hero-inner { display:flex; justify-content:space-between; align-items:flex-end; width:100%; }
.hero-text { max-width:600px; }
.hero-tag { background:#2b6cb0; color:var(--on-accent); font-size:12px; padding:4px 10px; border-radius:4px; display:inline-block; margin-bottom:15px; font-weight:700; }
.hero-title { font-size:48px; color:var(--heading); font-weight:900; margin-bottom:15px; text-shadow:2px 2px 5px rgba(0,0,0,.5); line-height:1.15; }
.hero-desc { font-size:17px; color:var(--text); margin-bottom:25px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; text-shadow:1px 1px 3px rgba(0,0,0,.8); }
.btn-group { display:flex; gap:15px; flex-wrap:wrap; }
.btn { padding:12px 30px; border-radius:6px; font-size:16px; font-weight:700; cursor:pointer; border:none; display:inline-flex; align-items:center; gap:8px; }
.btn-play { background:#2b6cb0; color:var(--on-accent); }
.btn-play:hover { background:#2c5282; color:var(--on-accent); }
.btn-mindmap { background:rgba(59,130,246,.2); color:#60a5fa; border:1px solid #3b82f6; }
.btn-mindmap:hover { background:#3b82f6; color:var(--on-accent); }

/* ================= 差异化区块 ================= */
.differentiation-section { display:flex; gap:30px; margin:-50px auto 40px; position:relative; z-index:10; background:var(--bg-card); padding:20px 30px; border-radius:12px; border:1px solid var(--border); }
.diff-col { flex:1; min-width:0; }
.diff-title { font-size:18px; color:var(--heading); font-weight:700; margin-bottom:15px; display:flex; align-items:center; gap:8px; border-bottom:1px solid var(--border); padding-bottom:10px; }
.diff-title span { color:#2b6cb0; font-size:20px; }
.avoid-list li { display:flex; justify-content:space-between; gap:10px; font-size:14px; margin-bottom:12px; }
.avoid-tag { padding:2px 6px; border-radius:4px; font-size:12px; font-weight:700; white-space:nowrap; }
.tag-good { background:rgba(16,185,129,.1); color:#10b981; }
.tag-bad { background:rgba(43,108,176,.1); color:#2b6cb0; }
.mindmap-preview { display:flex; gap:15px; align-items:center; background:var(--bg-inset); padding:10px; border-radius:8px; border:1px solid var(--bg-soft); }
.mm-img { width:100px; height:70px; background:var(--bg-soft); border-radius:4px; display:flex; justify-content:center; align-items:center; color:#2b6cb0; font-size:24px; font-weight:700; flex-shrink:0; }
.mindmap-preview h4 { color:var(--heading); font-size:15px; margin-bottom:4px; }
.mindmap-preview p { font-size:12.5px; color:var(--text-2); }

/* ================= 模块标题 ================= */
.section-header { display:flex; justify-content:space-between; align-items:flex-end; margin:40px 0 20px; border-bottom:1px solid var(--border); padding-bottom:10px; }
.section-title { font-size:24px; color:var(--heading); font-weight:700; }
.section-title span { color:var(--text-3); font-size:14px; font-weight:400; margin-left:10px; }
.more-link { font-size:14px; color:var(--text-2); }

/* ================= 情绪处方 ================= */
.emotion-section { background:linear-gradient(135deg,var(--bg-soft),var(--bg-card)); border:1px solid #3b82f6; border-radius:12px; padding:25px; position:relative; overflow:hidden; margin-bottom:40px; }
.emotion-section::before { content:"💊"; position:absolute; right:-20px; top:-20px; font-size:150px; opacity:.05; transform:rotate(20deg); }
.emotion-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; position:relative; z-index:1; }
.emotion-title { font-size:22px; color:var(--heading); font-weight:700; display:flex; align-items:center; gap:10px; }
.emotion-title span { font-size:14px; color:#60a5fa; font-weight:400; }
.emotion-date { font-size:13px; color:var(--text-3); }
.emotion-card-wrap { display:flex; gap:20px; background:var(--bg); padding:20px; border-radius:8px; border:1px solid var(--border); align-items:center; position:relative; z-index:1; }
.emotion-poster { width:100px; height:150px; background:var(--bg-soft); border-radius:6px; flex-shrink:0; overflow:hidden; }
.emotion-poster img { width:100%; height:100%; object-fit:cover; }
.emotion-info { flex:1; min-width:0; }
.emotion-info h3 { font-size:24px; color:var(--heading); margin-bottom:10px; }
.emotion-tag { display:inline-block; background:rgba(59,130,246,.1); color:#3b82f6; padding:4px 10px; border-radius:4px; font-size:13px; margin-bottom:15px; font-weight:700; }
.emotion-reason { font-size:17px; color:var(--text); line-height:1.85; margin-bottom:15px; font-style:italic; border-left:3px solid #2b6cb0; padding-left:10px; }
.emotion-links { display:flex; gap:15px; align-items:center; flex-wrap:wrap; }
.btn-watch { background:#3b82f6; color:var(--on-accent); padding:8px 20px; border-radius:4px; font-size:14px; font-weight:700; }
.btn-watch:hover { background:#2563eb; color:var(--on-accent); }
.btn-detail { background:transparent; border:1px solid var(--border-2); color:var(--text); padding:8px 20px; border-radius:4px; font-size:14px; }
.btn-detail:hover { border-color:var(--heading); color:var(--heading); }

/* ================= 更新日历（7列） ================= */
.update-calendar { display:grid; grid-template-columns:repeat(7,1fr); gap:10px; background:var(--bg-card); padding:15px; border-radius:8px; border:1px solid var(--border); }
.day-col { border-right:1px dashed var(--border); padding-right:10px; min-width:0; }
.day-col:last-child { border-right:none; }
.day-title { color:var(--heading); font-size:14px; font-weight:700; margin-bottom:10px; text-align:center; }
.day-item { font-size:12px; color:var(--text-2); margin-bottom:5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.day-item:hover { color:#2b6cb0; cursor:pointer; }

/* ================= 卡片网格 ================= */
.grid-cards { display:grid; grid-template-columns:repeat(6,1fr); gap:20px; }
.card { display:block; }
.poster { width:100%; aspect-ratio:2/3; background:var(--bg-soft); border-radius:8px; margin-bottom:10px; position:relative; transition:.3s; border:1px solid var(--border-2); overflow:hidden; }
.poster img { width:100%; height:100%; object-fit:cover; }
.card:hover .poster { transform:translateY(-5px); border-color:#2b6cb0; box-shadow:0 10px 20px rgba(43,108,176,.1); }
.poster-rating { position:absolute; top:8px; right:8px; background:rgba(0,0,0,.85); color:#f5c518; font-size:12px; padding:2px 6px; border-radius:4px; font-weight:700; }
.card-title { font-size:15px; color:var(--heading); font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:4px; }
.card-meta { font-size:13px; color:var(--text-3); display:flex; justify-content:space-between; gap:6px; }

/* ================= 资讯 + 专题双栏 ================= */
.two-col { display:flex; gap:30px; margin-bottom:60px; }
.col-news { flex:2; min-width:0; }
.col-topic { flex:1; min-width:0; }
.news-item { display:flex; gap:15px; margin-bottom:20px; background:var(--bg-card); padding:15px; border-radius:8px; border:1px solid var(--border); transition:.2s; }
.news-item:hover { background:var(--bg-soft); }
.news-img { width:140px; height:90px; background:var(--bg-soft); border-radius:6px; flex-shrink:0; overflow:hidden; }
.news-img img { width:100%; height:100%; object-fit:cover; }
.news-info { min-width:0; }
.news-info h3 { font-size:16px; color:var(--heading); margin-bottom:8px; }
.news-info p { font-size:13px; color:var(--text-2); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.topic-card { position:relative; border-radius:10px; overflow:hidden; cursor:pointer; border:1px solid var(--border); background:var(--bg-card); display:block; transition:.3s; padding:0 !important; }
.topic-card:hover { border-color:#2b6cb0; }
.topic-bg { width:100%; height:170px; background:var(--bg-soft); overflow:hidden; }
.topic-bg img { width:100%; height:100%; object-fit:cover; transition:.3s; }
.topic-card:hover .topic-bg img { transform:scale(1.05); }
.topic-card .topic-info { padding-top:14px !important; padding-bottom:16px !important; padding-left:16px !important; padding-right:16px !important; }
.topic-info h3 { color:var(--heading); font-size:17px; font-weight:700; margin-bottom:6px; }
.topic-sub { color:var(--text-2); font-size:13px; line-height:1.5; margin-bottom:10px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.topic-meta { display:flex; align-items:center; gap:14px; color:var(--text-3); font-size:12px; }
.topic-meta .topic-views { display:inline-flex; align-items:center; gap:4px; }

/* ================= 底部 ================= */
.footer { background:var(--bg-inset); border-top:1px solid var(--border); padding:40px 0 20px; margin-top:50px; color:var(--text-3); font-size:14px; }
.footer-top { display:flex; justify-content:space-between; margin-bottom:30px; flex-wrap:wrap; gap:15px; }
.footer-links a { margin-right:15px; color:var(--text-2); }
.footer-desc { text-align:center; font-size:13px; border-top:1px dashed var(--border); padding-top:20px; }

/* ================= 详情页 ================= */
.hero-detail { background:linear-gradient(to right,var(--bg-card) 30%,var(--bg) 100%); padding:50px 0; border-bottom:1px solid var(--bg-soft); }
.hero-content { display:flex; gap:45px; }
.poster-box { width:250px; height:375px; background:var(--bg-soft); border-radius:10px; display:flex; align-items:center; justify-content:center; color:var(--border-2); border:1px solid var(--border-2); flex-shrink:0; overflow:hidden; }
.poster-box img { width:100%; height:100%; object-fit:cover; }
.info-box { flex:1; display:flex; flex-direction:column; justify-content:center; min-width:0; }
.title { font-size:38px; font-weight:900; color:var(--heading); margin-bottom:15px; display:flex; align-items:center; gap:15px; flex-wrap:wrap; }
.en-name { font-size:16px; color:var(--text-2); margin:2px 0 14px; }
.head-intro { font-size:15px; color:var(--text); line-height:1.85; margin:4px 0 20px; text-indent:2em; }
.status-badge { background:#2b6cb0; color:var(--on-accent); padding:4px 12px; border-radius:4px; font-size:14px; font-weight:700; }
.meta-tags { display:flex; gap:10px; margin-bottom:20px; flex-wrap:wrap; }
.meta-tags span { background:var(--bg-soft); padding:5px 14px; border-radius:4px; font-size:13px; color:var(--text-2); border:1px solid var(--border-2); }
.calendar-box { background:var(--bg-inset); border:1px dashed var(--border-2); border-radius:6px; padding:10px 20px; display:inline-flex; align-items:center; gap:15px; margin-bottom:20px; width:fit-content; }
.calendar-box span { color:#f5c518; font-weight:700; font-size:15px; }
.calendar-box p { font-size:14px; color:var(--text); }
.action-row { display:flex; align-items:flex-end; gap:30px; flex-wrap:wrap; }
.score-area { display:flex; flex-direction:column; }
.score-val { font-size:36px; font-weight:700; color:#f5c518; line-height:1; }
.score-label { font-size:13px; color:var(--text-3); margin-top:5px; }
.btn-watch-big { background:#2b6cb0; color:var(--on-accent); padding:12px 35px; border-radius:6px; font-weight:700; font-size:16px; display:inline-flex; align-items:center; gap:8px; box-shadow:0 4px 15px rgba(43,108,176,.4); }
.btn-watch-big:hover { background:#2c5282; transform:translateY(-2px); color:var(--on-accent); }

/* Tab 导航 */
.tab-nav { background:transparent; border-bottom:1px solid var(--border); position:sticky; top:0; z-index:90; }
.tab-nav .tab-list { display:flex; max-width:1300px; margin:0 auto; padding:0 20px; overflow-x:auto; }
.tab-nav .tab-item { padding:14px 26px; font-size:16px; font-weight:400; color:var(--text-2); cursor:pointer; border:0; border-bottom:3px solid transparent; white-space:nowrap; background:none; border-radius:0; text-decoration:none; font-family:inherit; }
.tab-nav .tab-item:hover { color:var(--heading); background:none; }
.tab-nav .tab-item.active { color:var(--link); background:none; border:0; border-bottom:3px solid var(--link); font-weight:700; }

.main-layout { display:flex; gap:40px; padding:40px 0 60px; }
.left-col { flex:1; min-width:0; }
.right-col { width:340px; flex-shrink:0; }
.tab-content { display:none; animation:fadeIn .3s; }
.tab-content.active { display:block; }
@keyframes fadeIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.section-title2 { font-size:20px; color:var(--heading); border-left:4px solid #2b6cb0; padding-left:12px; margin-bottom:20px; margin-top:35px; font-weight:700; }
.section-title2:first-child { margin-top:0; }
.intro-text { background:var(--bg-card); padding:25px; border-radius:8px; border:1px solid var(--bg-soft); font-size:17px; line-height:1.85; color:var(--text); }
.ep-tabs { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:15px; }
.ep-btn { padding:6px 15px; background:var(--bg-soft); border:1px solid var(--border-2); border-radius:4px; cursor:pointer; color:var(--text); font-size:14px; transition:.2s; }
.ep-btn:hover { background:var(--border-2); }
.ep-btn.active { background:#2b6cb0; border-color:#2b6cb0; color:var(--on-accent); }
/* 简介区演员表（竖版三栏，原始样式） */
#castGrid.cast-grid { display:grid; grid-template-columns:repeat(9,1fr); gap:16px; }
#castGrid .cast-card { background:var(--bg-card); border:1px solid var(--border); border-radius:10px; padding:10px; text-align:left; display:block; min-width:0; transition:.3s; }
#castGrid .cast-card:hover { transform:translateY(-3px); border-color:#2b6cb0; box-shadow:0 8px 20px rgba(43,108,176,.1); }
#castGrid .cast-avatar { width:100%; min-width:0; aspect-ratio:3/5; border-radius:6px; background:var(--bg-soft); margin:0 0 8px; overflow:hidden; }
#castGrid .cast-avatar img { width:100%; max-width:100%; height:100%; object-fit:cover; }
#castGrid .cast-name { color:var(--heading); font-weight:700; font-size:13px; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#castGrid .cast-en { color:var(--text-3); font-weight:400; font-size:12px; }
#castGrid .cast-role { font-size:12px; color:var(--text-2); margin-top:3px; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#castGrid .cast-more { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; background:var(--bg-card); border:1px dashed var(--border-2); border-radius:10px; aspect-ratio:3/5; text-decoration:none; }
#castGrid .cast-more-arrow { color:var(--link); font-size:30px; line-height:1; font-weight:700; }
#castGrid .cast-more-text { font-size:12px; color:var(--text-2); }

/* 演员表详情页（横版两栏卡片） */
#cast .cast-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
#cast .cast-card { position:relative; display:flex; align-items:center; gap:14px; background:var(--bg-card); border:1px solid var(--border); border-radius:10px; padding:14px 16px; text-align:left; transition:.3s; }
#cast .cast-card:hover { transform:translateY(-2px); border-color:#2b6cb0; box-shadow:0 8px 20px rgba(43,108,176,.1); }
#cast .cast-avatar { flex:0 0 84px; width:84px; height:84px; border-radius:8px; background:var(--bg-soft); overflow:hidden; }
#cast .cast-avatar img { width:100%; height:100%; object-fit:cover; }
#cast .cast-info { flex:1; min-width:0; }
#cast .cast-name { color:var(--heading); font-weight:700; font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#cast .cast-en { color:var(--text-3); font-weight:400; font-size:13px; }
#cast .cast-role { font-size:13px; color:var(--text-2); margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#cast .cast-index { position:absolute; right:0; bottom:0; min-width:26px; height:26px; padding:0 8px; background:#161a22; color:#fff; font-size:12px; border-radius:0 10px 0 8px; display:flex; align-items:center; justify-content:center; }
.topic-grid { display:flex; gap:20px; }
.topic-card-sm { flex:1; background:var(--bg-card); border-radius:8px; overflow:hidden; border:1px solid var(--border); display:block; transition:.3s; }
.topic-card-sm:hover { border-color:#2b6cb0; }
.topic-img { height:130px; background:var(--bg-soft); display:flex; align-items:center; justify-content:center; color:var(--border-2); font-size:13px; overflow:hidden; }
.topic-img img { width:100%; height:100%; object-fit:cover; }
.ep-content { background:var(--bg-card); padding:25px; border-radius:8px; border:1px solid var(--bg-soft); font-size:17px; line-height:1.85; }
.schedule-table { width:100%; border-collapse:collapse; background:var(--bg-card); border-radius:8px; overflow:hidden; }
.schedule-table th,.schedule-table td { padding:15px; text-align:left; border-bottom:1px solid var(--border); font-size:14px; }
.schedule-table th { background:var(--bg-soft); color:var(--text-2); }
.schedule-tag { background:rgba(43,108,176,.1); color:#2b6cb0; padding:2px 8px; border-radius:4px; font-size:12px; margin-right:10px; }
#mindmap-intro { width:100%; height:450px; background:var(--bg-card); border-radius:8px; border:1px solid var(--border); margin-bottom:30px; }
#mindmap { width:100%; height:500px; background:var(--bg-card); border-radius:8px; border:1px solid var(--border); }
.gallery-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:15px; }
.gallery-item { background:var(--bg-card); border-radius:8px; overflow:hidden; border:1px solid var(--border); }
.gallery-img { height:200px; background:var(--bg-soft); overflow:hidden; }
.gallery-img img { width:100%; height:100%; object-fit:cover; }
.gallery-desc { padding:10px; font-size:14px; text-align:center; color:var(--heading); }
.dl-table { width:100%; border-collapse:collapse; font-size:14px; background:var(--bg-card); border-radius:8px; overflow:hidden; }
.dl-table th,.dl-table td { padding:15px; text-align:left; border-bottom:1px solid var(--border); }
.dl-table th { color:var(--text-3); background:var(--bg-inset); }
.tag { font-size:12px; padding:2px 8px; border-radius:4px; background:var(--border); color:var(--text-2); margin-right:5px; display:inline-block; }
.dl-link { color:#10b981; font-weight:700; background:rgba(16,185,129,.1); padding:5px 10px; border-radius:4px; }
.comment-box { background:var(--bg-card); padding:20px; border-radius:8px; border:1px solid var(--border); margin-bottom:20px; }
.comment-box textarea { width:100%; height:80px; background:var(--bg); border:1px solid var(--border-2); border-radius:6px; padding:10px; color:var(--heading); margin-bottom:10px; resize:none; outline:none; font-family:inherit; }
.submit-btn { background:#2b6cb0; color:var(--on-accent); padding:8px 20px; border:none; border-radius:4px; cursor:pointer; float:right; }
.review-item { border-bottom:1px dashed var(--border); padding:15px 0; }
.review-user { color:#3b82f6; font-weight:700; margin-bottom:5px; }
.sidebar-box { background:var(--bg-card); border-radius:8px; padding:20px; border:1px solid var(--border); margin-bottom:25px; }
.sidebar-title { color:var(--heading); font-size:18px; border-left:4px solid #2b6cb0; padding-left:10px; margin-bottom:15px; }
.sidebar-news li { margin-bottom:15px; border-bottom:1px dashed var(--border); padding-bottom:10px; }
.sidebar-news a { color:var(--text); font-size:14px; display:block; margin-bottom:5px; }
.sidebar-news span { font-size:12px; color:var(--text-3); }
.rec-item { display:flex; gap:15px; margin-bottom:15px; }
.rec-img { width:70px; height:100px; background:var(--bg-soft); border-radius:4px; flex-shrink:0; overflow:hidden; }
.rec-img img { width:100%; height:100%; object-fit:cover; }
.rec-name { color:var(--heading); font-weight:700; margin-bottom:5px; font-size:14px; }
.rec-desc { font-size:12px; color:var(--text-3); }
.rec-score { color:#f5c518; font-size:13px; font-weight:700; margin-top:5px; }

/* ================= 兼容旧类（列表页/搜索/其他页） ================= */
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:20px; }
.movie-card { display:block; }
.movie-card .poster { position:relative; }
.badge { position:absolute; top:8px; right:8px; background:rgba(0,0,0,.85); color:#f5c518; font-size:12px; padding:2px 6px; border-radius:4px; font-weight:700; z-index:2; }
.rating { position:absolute; bottom:8px; left:8px; background:rgba(0,0,0,.8); color:var(--text); font-size:11.5px; padding:2px 6px; border-radius:4px; z-index:2; }
.card-info { padding-top:2px; }
.card-info h3 { font-size:15px; color:var(--heading); font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:4px; }
.card-info .sub { font-size:13px; color:var(--text-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.list-hero { padding:30px 0 10px; }
.list-hero h1 { font-size:32px; color:var(--heading); font-weight:900; margin-bottom:8px; }
.list-hero .desc { color:var(--text-2); font-size:14px; }
.content-block { background:var(--bg-card); border:1px solid var(--border); border-radius:10px; padding:24px; margin-bottom:24px; }
.content-block h3 { font-size:17px; color:var(--heading); margin-bottom:16px; }
.article-body { font-size:17px; line-height:1.9; color:var(--text); }
.article-body p { margin-bottom:12px; }
.pill-list { display:flex; flex-wrap:wrap; gap:8px; }
.pill { background:var(--bg-soft); border:1px solid var(--border-2); color:var(--text); padding:5px 14px; border-radius:20px; font-size:13px; }
.pill.hot { border-color:#2b6cb0; color:#ff6b73; }
.filter-bar { display:flex; gap:10px; margin:20px 0; flex-wrap:wrap; }
.filter-bar a { padding:7px 16px; border-radius:20px; background:var(--bg-soft); border:1px solid var(--border-2); color:var(--text-2); font-size:13.5px; }
.filter-bar a.on { background:#2b6cb0; border-color:#2b6cb0; color:var(--on-accent); }
.btn-primary { background:#2b6cb0; color:var(--on-accent); }
.btn-ghost { background:transparent; border:1px solid var(--border-2); color:var(--text); }
.search-page-box { display:flex; gap:10px; margin:20px 0 30px; }
.search-page-box input { flex:1; background:var(--bg-card); border:1px solid var(--border-2); border-radius:8px; padding:12px 16px; color:var(--heading); outline:none; font-size:15px; }

@media (max-width:1100px) {
  .grid-cards { grid-template-columns:repeat(4,1fr); }
  .update-calendar { grid-template-columns:repeat(4,1fr); }
  .two-col { flex-direction:column; }
  .main-layout { flex-direction:column; }
  .right-col { width:100%; }
  .hero-content { flex-direction:column; align-items:flex-start; }
  .poster-box { width:180px; height:270px; }
  #castGrid.cast-grid { grid-template-columns:repeat(7,1fr); }
}
@media (max-width:860px) {
  .nav { display:none; }
  .hero { height:auto; padding:60px 0; }
  .hero-title { font-size:32px; }
  .grid-cards { grid-template-columns:repeat(3,1fr); }
  .update-calendar { grid-template-columns:repeat(2,1fr); }
  .differentiation-section { flex-direction:column; margin-top:20px; }
  #castGrid.cast-grid { grid-template-columns:repeat(5,1fr); }
  #cast .cast-grid { grid-template-columns:repeat(1,1fr); }
  .gallery-grid { grid-template-columns:repeat(2,1fr); }
  .emotion-card-wrap { flex-direction:column; align-items:flex-start; }
  .title { font-size:26px; }
}

/* ================= 专题页（按 topic.html） ================= */
.topic-banner{width:100vw;margin-left:calc(50% - 50vw);height:350px;background-size:contain;background-position:center;background-repeat:no-repeat;
  display:flex;align-items:flex-end;padding:40px;border-bottom:3px solid #2b6cb0;
  background-color:var(--bg-soft);position:relative;overflow:hidden}
.topic-banner::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,var(--bg) 5%,rgba(var(--hero-rgb),.15) 100%);z-index:0}
.topic-banner .tb-inner{position:relative;z-index:1;max-width:1250px;margin:0 auto;width:100%}
.topic-title{font-size:40px;color:var(--heading);font-weight:900;line-height:1.2;text-shadow:0 2px 10px rgba(0,0,0,.6)}
.topic-desc{font-size:16px;color:var(--text-2);margin-top:10px;max-width:800px;line-height:1.7;text-shadow:0 1px 6px rgba(0,0,0,.7)}
.topic-sec-title{font-size:24px;color:var(--heading);border-left:5px solid #2b6cb0;padding-left:15px;margin:40px 0 20px;display:flex;justify-content:space-between;align-items:center;font-weight:700}
.topic-intro{font-size:17px;color:var(--text);line-height:1.95}
.topic-intro p{margin-bottom:15px;text-indent:2em}
.news-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.news-box{background:var(--bg-card);padding:20px;border-radius:8px;border:1px solid var(--border);display:flex;gap:15px;transition:.2s}
.news-box:hover{border-color:var(--border-2);background:var(--bg-inset)}
.news-box .nb-img{width:120px;height:80px;background:var(--border);border-radius:4px;flex-shrink:0;overflow:hidden}
.news-box .nb-img img{width:100%;height:100%;object-fit:cover}
.news-box-title{color:var(--heading);font-weight:700;font-size:16px;margin-bottom:10px;display:block}
.news-box-title:hover{color:#2b6cb0}
.topic-list-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:22px;margin:24px 0 60px}
@media(max-width:860px){
  .topic-banner{height:240px;padding:25px 20px}
  .topic-title{font-size:26px}
  .topic-desc{font-size:14px}
  .news-grid{grid-template-columns:1fr}
}
.mm-entry{display:flex;align-items:center;gap:18px;background:var(--bg-card);border:1px solid var(--border);border-radius:12px;
  padding:26px 28px;cursor:pointer;transition:.2s;margin-bottom:14px}
.mm-entry:hover{border-color:#2b6cb0;background:var(--bg-inset)}
.mm-entry-icon{font-size:34px;color:#2b6cb0;line-height:1}

/* ================= SEO增强页脚样式 ================= */
.seo-footer {
    background: var(--bg-inset);
    border-top: 1px solid var(--border);
    padding: 50px 20px 30px;
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.8;
    margin-top: 50px;
}
.footer-container {
    max-width: 1800px;
    margin: 0 auto;
}
.footer-top-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.footer-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}
.footer-card h3 {
    color: var(--heading);
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-2);
}
.footer-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-card a {
    color: var(--text-2);
    text-decoration: none;
    transition: 0.2s;
}
.footer-card a:hover {
    color: #2b6cb0;
}
.footer-tags-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}
.footer-tags-section h3 {
    color: var(--heading);
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 15px;
}
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border);
}
.tag-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.tag-group-label {
    color: var(--text-3);
    font-weight: bold;
    width: 50px;
    flex-shrink: 0;
    padding-top: 2px;
}
.tag-group-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-group-links a {
    color: var(--text-2);
    text-decoration: none;
    background: var(--bg-soft);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    transition: 0.2s;
    border: 1px solid transparent;
}
.tag-group-links a:hover {
    background: rgba(43,108,176,0.1);
    color: #2b6cb0;
    border-color: #2b6cb0;
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 25px;
    text-align: center;
    font-size: 12px;
    color: var(--text-3);
}
.footer-bottom-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}
.footer-bottom-links a {
    color: var(--text-2);
    text-decoration: none;
}
.footer-bottom-links a:hover {
    color: #2b6cb0;
}
.footer-bottom p {
    margin-bottom: 5px;
}
@media (max-width: 1024px) {
    .footer-top-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .seo-footer { padding: 30px 15px 20px; }
    .footer-top-grid { grid-template-columns: 1fr; }
    .tag-group { flex-direction: column; gap: 8px; }
    .tag-group-label { width: auto; }
}
    .star-hero { display: flex; gap: 40px; padding: 50px 0; border-bottom: 1px solid var(--border); max-width: 1800px; margin: 0 auto; }
    .star-avatar { width: 200px; height: 200px; border-radius: 50%; background: var(--bg-soft); border: 4px solid var(--border-2); flex-shrink: 0; overflow: hidden; }
    .star-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .star-info { flex: 1; }
    .star-name { font-size: 42px; font-weight: 900; color: var(--heading); margin-bottom: 10px; }
    .star-en-name { font-size: 20px; color: var(--text-3); margin-bottom: 20px; }
    .star-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 25px; }
    .star-tag { background: var(--bg-soft); border: 1px solid var(--border-2); padding: 6px 15px; border-radius: 20px; font-size: 14px; color: var(--text); }
    .star-bio { font-size: 17px; color: var(--text-2); line-height: 1.85; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .star-bio.full { -webkit-line-clamp: unset; }
    .star-stats { display: flex; gap: 30px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
    .stat-item { text-align: center; }
    .stat-value { font-size: 28px; font-weight: bold; color: #f5c518; display: block; }
    .stat-label { font-size: 13px; color: var(--text-3); }
    .section-title { font-size: 22px; color: var(--heading); border-left: 4px solid #2b6cb0; padding-left: 12px; margin: 40px auto 25px; max-width: 1800px; font-weight: bold; }
    .filmography-list { display: flex; flex-direction: column; gap: 15px; max-width: 1800px; margin: 0 auto; padding-bottom: 50px; }
    .film-item { display: flex; gap: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 15px; align-items: center; transition: 0.3s; text-decoration: none; }
    .film-item:hover { border-color: #2b6cb0; }
    .film-year { width: 60px; text-align: center; font-weight: bold; color: #60a5fa; font-size: 18px; flex-shrink: 0; }
    .film-poster { width: 70px; height: 100px; background: var(--bg-soft); border-radius: 4px; flex-shrink: 0; overflow: hidden; }
    .film-poster img { width: 100%; height: 100%; object-fit: cover; }
    .film-details { flex: 1; }
    .film-title { font-size: 18px; font-weight: bold; color: var(--heading); margin-bottom: 5px; }
    .film-role { font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
    .film-role strong { color: var(--text); }
    .film-rating { font-size: 14px; color: #f5c518; font-weight: bold; }
    @media (max-width: 768px) {
        .star-hero { flex-direction: column; align-items: center; text-align: center; padding: 30px 20px; }
        .star-avatar { width: 150px; height: 150px; }
        .star-name { font-size: 32px; }
        .star-stats { justify-content: center; gap: 20px; }
        .film-item { flex-wrap: wrap; }
        .film-year { width: auto; }
    }
/* ===== index.php 样式 ===== */
/* 强制重置方向，防止竖排 */
* {
    writing-mode: horizontal-tb !important;
    direction: ltr !important;
    box-sizing: border-box;
}

/* 所有flex容器自动换行 */
div[style*="display:flex"], div[style*="display: flex"] {
    flex-wrap: wrap !important;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    /* Hero区域 */
    section[style*="height:500px"], section[style*="height: 500px"] {
        height: 360px !important;
    }
    section h1 {
        font-size: 28px !important;
    }
    
    /* 所有网格布局变单列 */
    div[style*="display:grid"], div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
    }
    
    /* 今日必看区域变单列 */
    div[style*="flex:1.8"], div[style*="flex:1"] {
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }
    
    /* 电影卡片变全宽 */
    a[style*="flex:1;display:flex"] {
        flex-direction: column !important;
        height: auto !important;
    }
    a[style*="flex:1;display:flex"] > div:first-child {
        width: 100% !important;
        height: 200px !important;
    }
    
    /* 所有section的padding调整 */
    section[style*="max-width: 1800px"] {
        padding: 0 15px !important;
    }
}
/* ===== list.php 样式 ===== */
.filter-section { background: var(--bg-card); border-radius: 8px; padding: 25px; margin: 30px 0; border: 1px solid var(--border); }
.filter-row { display: flex; margin-bottom: 20px; font-size: 14px; align-items: flex-start; border-bottom: 1px dashed var(--border); padding-bottom: 20px;}
.filter-row:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.filter-label { color: var(--text-2); width: 60px; flex-shrink: 0; font-weight: bold; padding-top: 4px; line-height: 1.5;}
.filter-links { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }
.filter-links a { color: var(--text); background: var(--bg-soft); padding: 4px 14px; border-radius: 4px; font-size: 13px; border: 1px solid transparent; white-space: nowrap; text-decoration: none; }
.filter-links a:hover, .filter-links a.active { background: rgba(43,108,176,0.1); color: #2b6cb0; border-color: #2b6cb0; }
.filter-links a.highlight { color: #f5c518; background: rgba(245,197,24,0.1); border-color: rgba(245,197,24,0.3);}
.movie-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 25px; margin-bottom: 50px; }
.movie-card { background: var(--bg-card); border-radius: 8px; overflow: hidden; border: 1px solid var(--border); transition: 0.3s; display: flex; flex-direction: column; text-decoration: none; }
.movie-card:hover { transform: translateY(-5px); border-color: #2b6cb0; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.poster-box { position: relative; width: 100%; height: 280px; background: var(--bg-soft); overflow: hidden; }
.poster-box img { width: 100%; height: 100%; object-fit: cover; }
.score-badge { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.85); color: #f5c518; font-size: 13px; padding: 2px 8px; border-radius: 4px; font-weight: bold; }
.card-info { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.movie-title { color: var(--heading); font-size: 15px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 5px; }
.movie-meta { font-size: 12px; color: var(--text-3); margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media screen and (max-width: 768px) {
    .filter-section { padding: 15px; }
    .filter-row { flex-direction: column; padding-bottom: 15px; margin-bottom: 15px;}
    .filter-label { margin-bottom: 10px; width: auto; }
    .filter-links a { padding: 4px 10px; font-size: 12px; }
    .movie-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
    .card-info { padding: 8px; }
    .movie-title { font-size: 13px; }
    .movie-meta { font-size: 11px; margin-bottom: 6px; }
}
</style>
<style>
.star-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-bottom: 60px; }
.star-card { background: var(--bg-card); border-radius: 12px; padding: 25px 15px; text-align: center; border: 1px solid var(--border); transition: 0.3s; cursor: pointer; display: block; }
.star-card:hover { transform: translateY(-8px); border-color: #2b6cb0; box-shadow: 0 15px 30px rgba(43,108,176,0.15); }
.star-avatar { width: 100px; height: 100px; border-radius: 50%; background: var(--bg-soft); margin: 0 auto 15px; border: 3px solid var(--border-2); overflow: hidden; display: flex; justify-content: center; align-items: center; color: var(--border-2); }
.star-card:hover .star-avatar { border-color: #2b6cb0; }
.star-avatar img { width: 100%; height: 100%; object-fit: cover; }
.star-name { font-size: 18px; color: var(--heading); font-weight: bold; margin-bottom: 5px; }
.star-en-name { font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.star-rep { font-size: 13px; color: var(--text-2); background: var(--bg-soft); padding: 2px 8px; border-radius: 4px; display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.filter-box { background: var(--bg-card); padding: 20px; border-radius: 8px; margin-bottom: 30px; border: 1px solid var(--border); }
.filter-row { display: flex; margin-bottom: 10px; font-size: 14px; align-items: center; }
.filter-row:last-child { margin-bottom: 0; }
.filter-label { color: var(--text-3); width: 80px; flex-shrink: 0; }
.filter-links a { margin-right: 15px; color: var(--text); padding: 4px 12px; border-radius: 4px; }
.filter-links a:hover, .filter-links a.active { background: #2b6cb0; color: var(--on-accent); }
@media (max-width: 1024px) { .star-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .star-grid { grid-template-columns: repeat(3, 1fr); } }
/* ===== show.php 样式 ===== */
  /* 默认保持原来的两栏布局 */
  /* 只有脑图tab的时候，改成单栏全屏 */
  body.mindmap-active .main-layout { display: block !important; }
  body.mindmap-active .left-col { width: 100% !important; float: none !important; }
  body.mindmap-active .right-col { display: none !important; }
  
  /* 人物关系卡片强制两列布局 */
  .relation-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; margin-bottom: 40px !important; }
  .rel-card { background: var(--bg-card) !important; border: 1px solid var(--border) !important; border-radius: 8px !important; padding: 20px !important; transition: 0.3s !important; }
  .rel-card:hover { border-color: #2b6cb0 !important; }
  .rel-header { display: flex !important; justify-content: space-between !important; align-items: center !important; margin-bottom: 12px !important; }
  .rel-name { font-size: 18px !important; font-weight: bold !important; color: var(--heading) !important; }
  .rel-tag { font-size: 12px !important; color: #60a5fa !important; background: rgba(59,130,246,0.1) !important; padding: 4px 10px !important; border-radius: 12px !important; }
  .rel-desc { color: var(--text-2) !important; line-height: 1.6 !important; font-size: 14px !important; }
  
  /* 手机端自适应 */
  @media (max-width: 768px) {
    #castGrid.cast-grid { grid-template-columns: repeat(3, 1fr) !important; }
    #cast .cast-grid { grid-template-columns: repeat(1, 1fr) !important; }
    #cast .cast-avatar { flex:0 0 72px; width:72px; height:72px; }
    #mindmap { height: 400px !important; }
    .relation-grid { grid-template-columns: 1fr !important; }
  }
  @media (max-width:480px) {
    #castGrid.cast-grid { grid-template-columns: repeat(2, 1fr) !important; }
  }
</style>';
<style>
  /* 改成单栏布局，删掉右侧边栏 */
  .main-layout { display: block !important; }
  .left-col { width: 100% !important; float: none !important; }
  .right-col { display: none !important; }
</style>
      <style>
        .rv-extra > div:first-of-type { padding:0 !important; background:transparent !important; }
        .rv-extra [style*="overflow:hidden"][style*="display:flex"] { align-items:stretch; }
        .rv-extra [style*="overflow:hidden"][style*="display:flex"] > div:first-child { width:110px !important; min-width:110px !important; flex-shrink:0; display:flex; align-items:center; justify-content:center; white-space:nowrap; }
        @media (max-width:640px){
          .rv-extra [style*="overflow:hidden"][style*="display:flex"] { flex-direction:column !important; }
          .rv-extra [style*="overflow:hidden"][style*="display:flex"] > div:first-child { width:100% !important; min-width:0 !important; padding:8px 14px !important; justify-content:flex-start !important; }
        }
        .rv-extra [style*="grid-template-columns:repeat(2,1fr)"], .rv-extra [style*="grid-template-columns: repeat(2, 1fr)"], .rv-extra [style*="grid-template-columns:repeat(3,1fr)"], .rv-extra [style*="grid-template-columns: repeat(3, 1fr)"] { }
        @media (max-width:640px){
          .rv-extra [style*="grid-template-columns:repeat(2,1fr)"], .rv-extra [style*="grid-template-columns: repeat(2, 1fr)"], .rv-extra [style*="grid-template-columns:repeat(3,1fr)"], .rv-extra [style*="grid-template-columns: repeat(3, 1fr)"] { grid-template-columns:1fr !important; }
        }
      </style>
    <style>
      .rv-btime > div:first-child{padding:0 !important;background:transparent !important;max-width:100% !important;width:100% !important}
      .rv-btime .em-tl{border-left:2px solid #3b82f6;padding-left:20px;margin-left:10px}
      .rv-btime .em-tli{position:relative;margin-bottom:15px;background:var(--bg-card);padding:15px 20px;border-radius:8px;border:1px solid var(--border)}
      .rv-btime .em-tli::before{content:'';position:absolute;left:-27px;top:20px;width:12px;height:12px;border-radius:50%;background:#3b82f6;border:3px solid var(--bg)}
      .rv-btime .em-tld{color:#60a5fa;font-size:15px;font-weight:bold;margin-bottom:4px}
      .rv-btime .em-tlt{color:var(--heading);font-size:14px;font-weight:bold}
      .rv-btime .em-tlr{color:var(--text-2);font-size:13px;margin-top:4px}
      .rv-btime .em-tag{display:inline-block;background:rgba(59,130,246,.1);color:#60a5fa;font-size:12px;padding:2px 8px;border-radius:4px;margin-top:8px}
      .rv-btime .em-cal{background:var(--bg-card);border-radius:8px;border:1px solid var(--border);overflow:hidden}
      .rv-btime .em-calh{background:var(--bg-soft);padding:12px 20px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border)}
      .rv-btime .em-calh h3{color:var(--heading);font-size:15px;margin:0}
      .rv-btime .em-calh span{color:#f5c518;font-weight:bold;font-size:13px}
      .rv-btime table{width:100%;border-collapse:collapse;font-size:14px}
      .rv-btime th,.rv-btime td{padding:12px 20px;text-align:left;border-bottom:1px solid var(--border)}
      .rv-btime th{color:var(--text-3);font-weight:normal;background:var(--bg-inset)}
      .rv-btime td{color:var(--text)}
      .rv-btime tr:hover td{background:var(--bg-inset)}
      @media(max-width:640px){.rv-btime th,.rv-btime td{padding:10px 12px;font-size:13px}}
    </style>
    <style>
      .relation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }
      .rel-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 20px; transition: 0.3s; }
      .rel-card:hover { border-color: #2b6cb0; }
      .rel-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
      .rel-name { color: var(--heading); font-size: 18px; font-weight: bold; }
      .rel-tag { background: var(--bg-soft); color: var(--text-2); font-size: 12px; padding: 2px 8px; border-radius: 4px; }
      .rel-desc { font-size: 14px; color: var(--text-2); line-height: 1.8; }
      .rel-desc strong { color: var(--text); }
      @media (max-width: 768px) { .relation-grid { grid-template-columns: 1fr; } }
    </style>
<style>
.rv-summary{display:flex;justify-content:space-between;align-items:center;background:var(--bg-card);border:1px solid var(--border);padding:25px;border-radius:12px;margin-bottom:30px;flex-wrap:wrap;gap:20px}
.rv-score{display:flex;align-items:baseline;gap:12px}
.rv-score-num{font-size:48px;font-weight:900;color:#f5c518;line-height:1}
.rv-score-label{color:var(--heading);font-size:16px;font-weight:bold;margin-bottom:4px}
.rv-score-sub{font-size:13px;color:var(--text-3)}
.rv-vote{display:flex;gap:15px}
.rv-vote-btn{padding:12px 28px;border-radius:8px;font-size:15px;font-weight:bold;cursor:pointer;background:var(--bg-soft);border:2px solid transparent;color:var(--heading);transition:.3s}
.rv-vote-btn.good{border-color:rgba(16,185,129,.5);color:#10b981}
.rv-vote-btn.good:hover{background:rgba(16,185,129,.1)}
.rv-vote-btn.bad{border-color:rgba(43,108,176,.5);color:#2b6cb0}
.rv-vote-btn.bad:hover{background:rgba(43,108,176,.1)}
.rv-title{font-size:18px;color:var(--heading);border-left:4px solid #2b6cb0;padding-left:12px;margin:25px 0 15px;font-weight:bold}
.rv-list{display:flex;flex-direction:column;gap:15px;margin-bottom:25px}
.rv-item{display:flex;gap:15px;background:var(--bg-card);border:1px solid var(--border);padding:18px;border-radius:8px}
.rv-avatar{width:44px;height:44px;border-radius:50%;background:var(--bg-soft);flex-shrink:0;display:flex;justify-content:center;align-items:center;font-size:11px;color:var(--text-3)}
.rv-body{flex:1}
.rv-head{display:flex;justify-content:space-between;margin-bottom:6px;align-items:center}
.rv-user{color:#3b82f6;font-weight:bold;font-size:14px}
.rv-star{color:#f5c518;font-size:13px;letter-spacing:1px}
.rv-text{font-size:14px;color:var(--text);line-height:1.6}
.rv-pub{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;padding:20px}
.rv-pub textarea{width:100%;height:90px;background:var(--bg-inset);border:1px solid var(--border);border-radius:8px;padding:14px;color:var(--heading);font-size:14px;resize:none;outline:none;margin-bottom:12px;font-family:inherit;box-sizing:border-box}
.rv-pub textarea:focus{border-color:#2b6cb0}
.rv-pub-foot{display:flex;justify-content:space-between;align-items:center}
.rv-pub-foot span{font-size:12px;color:var(--text-3)}
.rv-pub-btn{background:#2b6cb0;color:var(--on-accent);border:none;padding:9px 26px;border-radius:6px;font-weight:bold;font-size:14px;cursor:pointer}
.rv-pub-btn:hover{background:#2c5282}
</style>
<style>
.star-hero { background: linear-gradient(to right, var(--bg-card) 30%, var(--bg) 100%); padding: 50px 0; border-bottom: 1px solid var(--bg-soft); }
.hero-content { display: flex; gap: 50px; }
.big-avatar { width: 200px; height: 200px; border-radius: 50%; background: var(--bg-soft); border: 4px solid var(--border-2); flex-shrink: 0; display: flex; justify-content: center; align-items: center; color: var(--border-2); overflow: hidden; }
.big-avatar img { width: 100%; height: 100%; object-fit: cover; }
.info-box { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.name-row { display: flex; align-items: flex-end; gap: 15px; margin-bottom: 15px; }
.star-name { font-size: 38px; font-weight: bold; color: var(--heading); }
.star-en-name { font-size: 20px; color: var(--text-3); padding-bottom: 5px; }
.meta-tags { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.meta-tags span { background: var(--bg-soft); padding: 5px 14px; border-radius: 4px; font-size: 14px; color: var(--text-2); border: 1px solid var(--border-2); }
.intro-text { font-size: 17px; color: var(--text); line-height: 1.85; margin-bottom: 20px; max-width: 900px; }
.main-content { padding: 40px 0 60px 0; }
.tab-nav { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.tab-item { padding: 12px 30px; font-size: 17px; font-weight: 400; color: var(--text-2); cursor: pointer; border-bottom: 3px solid transparent; }
.tab-item.active { color: #2b6cb0; border-bottom-color: #2b6cb0; font-weight: 700; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.timeline { border-left: 2px solid #3b82f6; padding-left: 30px; margin-left: 15px; }
.timeline-item { position: relative; margin-bottom: 30px; background: var(--bg-card); padding: 20px; border-radius: 8px; border: 1px solid var(--border); }
.timeline-item::before { content: ''; position: absolute; left: -38px; top: 25px; width: 14px; height: 14px; border-radius: 50%; background: #3b82f6; border: 3px solid var(--bg); }
.year { color: #60a5fa; font-size: 18px; font-weight: bold; margin-bottom: 8px; }
.movie-title { color: var(--heading); font-size: 16px; font-weight: bold; }
.poster-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.poster-card { display: block; }
.poster-img { width: 100%; aspect-ratio: 2/3; background: var(--bg-soft); border-radius: 8px; border: 1px solid var(--border-2); margin-bottom: 10px; position: relative; overflow: hidden; }
.poster-card:hover .poster-img { border-color: #2b6cb0; }
.poster-img img { width: 100%; height: 100%; object-fit: cover; }
.poster-rating { position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,0.8); color: #f5c518; font-size: 12px; padding: 2px 6px; border-radius: 4px; font-weight: bold; }
.poster-title { font-size: 14px; color: var(--heading); font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
@media (max-width: 768px) { .poster-grid { grid-template-columns: repeat(3, 1fr); } .hero-content { flex-direction: column; align-items: center; } }

/* 人物关系深度解析卡片样式 */
.relation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.rel-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 20px; transition: 0.3s; }
.rel-card:hover { border-color: #2b6cb0; }
.rel-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rel-name { color: var(--heading); font-size: 18px; font-weight: bold; }
.rel-tag { background: var(--bg-soft); color: var(--text-2); font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.rel-desc { font-size: 14px; color: var(--text-2); line-height: 1.8; }
.rel-desc strong { color: var(--text); }
@media (max-width: 768px) { .relation-grid { grid-template-columns: 1fr; } }
/* ===== topic.php 样式 ===== */
/* ===== news-list.php 样式 ===== */
/* ===== news-detail.php 样式 ===== */
/* ===== mood.php 样式 ===== */
/* ===== timeline.php 样式 ===== */
.tl-hero { padding: 50px 0 30px; border-bottom: 1px solid var(--bg-soft); }
.tl-hero h1 { font-size: 36px; color: var(--heading); font-weight: 900; margin-bottom: 10px; }
.tl-hero p { font-size: 17px; color: var(--text-3); max-width: 600px; margin-bottom: 20px; }
.tl-hero-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.random-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; background: transparent; border: 1px dashed var(--border-2); border-radius: 8px; color: var(--text-2); font-size: 14px; cursor: pointer; transition: 0.3s; text-decoration: none; }
.random-btn:hover { border-color: #2b6cb0; color: #2b6cb0; }

.tl-search { position: relative; }
.tl-search input { background: var(--bg-card); border: 1px solid var(--border-2); border-radius: 8px; padding: 10px 16px 10px 40px; color: var(--heading); font-size: 14px; width: 260px; outline: none; transition: border-color 0.2s; }
.tl-search input:focus { border-color: #2b6cb0; }
.tl-search::before { content: '🔍'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: 0.5; }
.tl-search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: #2b6cb0; color: var(--on-accent); border: none; border-radius: 6px; padding: 6px 12px; font-size: 13px; cursor: pointer; }

.tl-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--bg-soft); margin-bottom: 40px; }
.alphabet-bar { display: flex; flex-wrap: nowrap; gap: 3px; flex: 1; overflow-x: auto; }
.alphabet-bar a { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 6px; font-size: 13px; color: var(--text-2); background: var(--bg-card); border: 1px solid var(--border); transition: 0.2s; text-decoration: none; }
.alphabet-bar a:hover, .alphabet-bar a.active { background: #2b6cb0; color: var(--on-accent); border-color: #2b6cb0; }

.sort-select { background: var(--bg-card); border: 1px solid var(--border-2); border-radius: 8px; padding: 10px 16px; color: var(--text); font-size: 14px; outline: none; cursor: pointer; }

.featured-label { font-size: 14px; font-weight: bold; color: #f5c518; margin-bottom: 16px; letter-spacing: 1px; }
.director-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 50px; }
.director-card-lg { background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-card) 100%); border-radius: 12px; border: 1px solid var(--border); padding: 30px; display: flex; gap: 24px; align-items: center; transition: 0.3s; cursor: pointer; text-decoration: none; color: inherit; }
.director-card-lg:hover { border-color: #2b6cb0; transform: translateY(-4px); box-shadow: 0 15px 30px rgba(43,108,176,0.15); }
.director-card-lg .avatar-lg { width: 100px; height: 100px; border-radius: 50%; background: var(--border); flex-shrink: 0; border: 3px solid var(--border-2); overflow: hidden; display: flex; justify-content: center; align-items: center; font-size: 32px; color: var(--border-2); }
.director-card-lg .avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.director-card-lg .info-lg h3 { font-size: 22px; color: var(--heading); font-weight: bold; margin-bottom: 6px; }
.director-card-lg .info-lg .count { font-size: 14px; color: var(--text-3); margin-bottom: 10px; }
.director-card-lg .info-lg .tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.director-card-lg .info-lg .tag-row span { background: var(--bg-soft); border: 1px solid var(--border-2); padding: 3px 10px; border-radius: 4px; font-size: 12px; color: var(--text-2); }
.director-card-lg .info-lg .btn-link { display: inline-block; padding: 8px 18px; background: rgba(43,108,176,0.1); color: #2b6cb0; border: 1px solid rgba(43,108,176,0.3); border-radius: 6px; font-size: 13px; font-weight: bold; }
.director-card-lg:hover .btn-link { background: #2b6cb0; color: var(--on-accent); }

.director-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 30px; }
.director-card { background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); padding: 24px 16px; text-align: center; transition: 0.3s; cursor: pointer; text-decoration: none; color: inherit; display: block; }
.director-card:hover { border-color: #2b6cb0; transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,0.3); }
.director-card .avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--bg-soft); margin: 0 auto 14px; border: 2px solid var(--border-2); overflow: hidden; display: flex; justify-content: center; align-items: center; font-size: 26px; color: var(--border-2); transition: 0.3s; }
.director-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.director-card:hover .avatar { border-color: #2b6cb0; }
.director-card h3 { font-size: 17px; color: var(--heading); font-weight: bold; margin-bottom: 4px; }
.director-card .count { font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
.director-card .rep-tag { display: inline-block; background: var(--bg-soft); color: var(--text-2); font-size: 12px; padding: 3px 10px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.pages { display: flex; gap: 8px; justify-content: center; margin: 30px 0 60px; }
.pages a, .pages span { padding: 8px 14px; background: var(--bg-inset); color: var(--text); border-radius: 6px; text-decoration: none; }
.pages .current { background: #2b6cb0; color: var(--on-accent); }

.timeline-wrap { padding: 40px 0; }
.timeline-back { display: inline-block; margin-bottom: 20px; color: #888; text-decoration: none; }
.timeline-back:hover { color: #2b6cb0; }
.timeline-title { font-size: 28px; color: var(--heading); margin-bottom: 30px; }
.timeline-list { position: relative; padding-left: 30px; border-left: 2px solid var(--border); }
.timeline-item { margin-bottom: 30px; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -38px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: #2b6cb0; border: 3px solid var(--bg); }
.timeline-year { font-size: 18px; color: #f5c518; font-weight: bold; margin-bottom: 8px; }
.timeline-card { background: var(--bg-inset); border: 1px solid var(--border); border-radius: 10px; padding: 16px; display: flex; gap: 16px; text-decoration: none; color: inherit; transition: 0.2s; }
.timeline-card:hover { border-color: #2b6cb0; }
.timeline-card img { width: 60px; height: 80px; object-fit: cover; border-radius: 6px; }
.timeline-card .info h4 { font-size: 16px; color: var(--heading); margin-bottom: 4px; }
.timeline-card .info .meta { font-size: 13px; color: #888; margin-bottom: 6px; }
.timeline-card .info .rating { color: #f5c518; font-weight: bold; }

@media (max-width: 1800px) { .director-grid { grid-template-columns: repeat(4, 1fr); } .director-featured { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .director-grid { grid-template-columns: repeat(2, 1fr); } .director-featured { grid-template-columns: 1fr; } .tl-hero-row { flex-direction: column; align-items: stretch; } .tl-search input { width: 100%; } }
/* ===== mindmap.php 样式 ===== */
.mm-page-header{
  padding:50px 20px;
  text-align:center;
  background:linear-gradient(to bottom,var(--bg-card),var(--bg));
  border-bottom:1px solid var(--bg-soft);
  margin-bottom:40px;
}
.mm-page-header h1{
  font-size:36px;color:var(--heading);font-weight:900;margin-bottom:15px; text-align:center;
}
.mm-page-header p{
  font-size:17px;color:var(--text-2);max-width:600px;margin:0 auto;
}
.mm-container{ max-width:1250px;margin:0 auto;padding:0 20px; }
.mm-filter-bar{
  display:flex;justify-content:center;gap:15px;margin-bottom:30px;flex-wrap:wrap;
}
.mm-filter-btn{
  padding:8px 20px;background:var(--bg-soft);border:1px solid var(--border-2);border-radius:20px;
  font-size:14px;cursor:pointer;color:var(--text);
}
.mm-filter-btn.active{
  background:rgba(59,130,246,0.1);border-color:#3b82f6;color:#3b82f6;
}
.mm-grid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:30px;margin-bottom:60px;
}
@media(max-width:768px){ .mm-grid{ grid-template-columns:1fr; } }
.mm-card{
  background:var(--bg-card);border:1px solid var(--border);border-radius:12px;overflow:hidden;
  transition:0.3s;display:flex;flex-direction:column;
}
.mm-card:hover{
  transform:translateY(-5px);border-color:#3b82f6;box-shadow:0 10px 30px rgba(59,130,246,0.15);
}
.mm-preview{
  height:220px;background:var(--bg-inset);position:relative;display:flex;justify-content:center;
  align-items:center;border-bottom:1px solid var(--border);overflow:hidden;
}
.mm-preview::after{
  content:'🕸️';font-size:60px;opacity:0.1;
}
.mm-preview-icon{
  position:absolute;top:15px;left:15px;background:rgba(59,130,246,0.2);color:#60a5fa;
  padding:4px 10px;border-radius:4px;font-size:12px;font-weight:bold;
}
.mm-info{ padding:20px;flex:1;display:flex;flex-direction:column; }
.mm-info h3{ font-size:22px;color:var(--heading);font-weight:bold;margin-bottom:10px; }
.mm-info p{
  font-size:14px;color:var(--text-2);margin-bottom:20px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;flex:1;
}
.mm-actions{ display:flex;justify-content:space-between;align-items:center; }
.mm-btn{
  background:#3b82f6;color:var(--on-accent);padding:8px 20px;border-radius:6px;
  font-size:14px;font-weight:bold;text-decoration:none;
}
.mm-btn:hover{ background:#2563eb;color:var(--on-accent); }
.mm-tags span{
  font-size:12px;color:var(--text-3);background:var(--bg-soft);padding:2px 8px;border-radius:4px;margin-left:10px;
}
/* ===== calendar.php 样式 ===== */
/* ===== search.php 样式 ===== */
.search-hero { padding: 40px 0 20px; background: linear-gradient(to bottom, var(--bg-card), var(--bg)); text-align: center; }
.search-form { max-width: 700px; margin: 0 auto; display: flex; background: var(--bg-soft); border: 2px solid var(--border-2); border-radius: 30px; overflow: hidden; transition: 0.3s; }
.search-form:focus-within { border-color: #2b6cb0; box-shadow: 0 0 15px rgba(43,108,176,0.2); }
.search-input { flex: 1; background: transparent; border: none; padding: 15px 25px; color: var(--heading); font-size: 16px; outline: none; }
.search-btn { background: #2b6cb0; color: var(--on-accent); border: none; padding: 0 35px; font-size: 16px; font-weight: bold; cursor: pointer; }
.search-tabs { display: flex; justify-content: center; gap: 10px; margin-top: 25px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.tab-item { padding: 8px 20px; background: transparent; color: var(--text-2); font-size: 17px; font-weight: 400; border-radius: 20px; transition: 0.3s; border: 1px solid transparent; text-decoration: none; }
.tab-item:hover { color: var(--heading); background: var(--bg-soft); }
.tab-item.active { background: rgba(43,108,176,0.1); color: #2b6cb0; border-color: rgba(43,108,176,0.3); font-weight: 700; }
.tab-item span { font-size: 13px; font-weight: normal; margin-left: 4px; }
.result-section { padding: 20px 0 60px; }
.section-title { font-size: 20px; color: var(--heading); margin: 25px 0 15px; border-left: 4px solid #2b6cb0; padding-left: 12px; font-weight: bold; }
.movie-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; }
.movie-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: 0.3s; text-decoration: none; }
.movie-card:hover { border-color: #2b6cb0; transform: translateY(-5px); }
.movie-poster { width: 100%; aspect-ratio: 2/3; background: var(--bg-soft); position: relative; overflow: hidden; }
.movie-poster img { width: 100%; height: 100%; object-fit: cover; }
.movie-score { position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,0.85); color: #f5c518; font-size: 12px; padding: 2px 6px; border-radius: 4px; font-weight: bold; }
.movie-info { padding: 10px; }
.movie-title { color: var(--heading); font-size: 14px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.movie-meta { font-size: 12px; color: var(--text-3); }
.star-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.star-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 15px; display: flex; align-items: center; gap: 12px; transition: 0.3s; text-decoration: none; }
.star-card:hover { border-color: #3b82f6; transform: translateY(-3px); }
.star-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--bg-soft); flex-shrink: 0; overflow: hidden; border: 2px solid var(--border-2); }
.star-avatar img { width: 100%; height: 100%; object-fit: cover; }
.star-info h4 { color: var(--heading); font-size: 16px; margin-bottom: 4px; }
.star-info p { font-size: 12px; color: var(--text-3); }
.article-list { display: flex; flex-direction: column; gap: 12px; }
.article-card { display: flex; gap: 15px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 12px; transition: 0.3s; text-decoration: none; }
.article-card:hover { border-color: #2b6cb0; }
.article-img { width: 120px; height: 80px; background: var(--bg-soft); border-radius: 6px; flex-shrink: 0; overflow: hidden; }
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-info { flex: 1; }
.article-title { font-size: 16px; color: var(--heading); font-weight: bold; margin-bottom: 6px; }
.article-desc { font-size: 13px; color: var(--text-2); }
.empty-state { text-align: center; padding: 50px 20px; background: var(--bg-card); border-radius: 12px; border: 1px dashed var(--border-2); margin: 30px 0; }
.empty-icon { font-size: 50px; margin-bottom: 10px; }
.empty-title { font-size: 18px; color: var(--heading); margin-bottom: 8px; }
.empty-desc { font-size: 14px; color: var(--text-3); }
.hot-section { margin-top: 30px; }
@media (max-width: 1024px) { .movie-grid { grid-template-columns: repeat(4, 1fr); } .star-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
.movie-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.movie-info { padding: 8px; }
.movie-title { font-size: 13px; }
.star-grid { grid-template-columns: 1fr; }
.search-tabs { overflow-x: auto; justify-content: flex-start; padding-bottom: 10px; }
.tab-item { white-space: nowrap; }
.article-img { width: 100px; height: 70px; }
/* 详情页 TAB：每行 4 个网格排列，下划线选中态 */
.tab-nav .tab-list { display:flex !important; flex-wrap:wrap; width:100%; max-width:100%; overflow:visible !important; padding:6px 12px; }
.tab-nav .tab-item { flex:0 0 33.333%; width:33.333%; display:flex; align-items:center; justify-content:center; padding:10px 2px !important; font-size:14px !important; font-weight:400; white-space:nowrap; text-align:center; border-bottom:3px solid transparent !important; border-radius:0 !important; background:none !important; border-left:0; border-right:0; border-top:0; color:var(--text-2); box-sizing:border-box; }
.tab-nav .tab-item.active { color:var(--link) !important; border-bottom-color:var(--link) !important; background:none !important; font-weight:700; }
}
/* ===== member.php 样式 ===== */
.mb-wrap{max-width:760px;margin:0 auto;padding:20px 0 60px}
.mb-hero{background:linear-gradient(135deg,var(--bg-inset) 0%,var(--bg-inset) 100%);border:1px solid var(--bg-inset);border-radius:16px;padding:34px;display:flex;align-items:center;gap:22px;margin-bottom:24px}
.mb-avatar{width:76px;height:76px;border-radius:50%;background:var(--bg-soft);display:flex;align-items:center;justify-content:center;font-size:30px;color:#2b6cb0;flex:none;overflow:hidden}
.mb-avatar img{width:100%;height:100%;object-fit:cover}
.mb-hero h2{font-size:22px;margin:0 0 6px}
.mb-hero .meta{color:var(--text-2);font-size:13px}
.mb-stats{display:flex;gap:30px;margin-left:auto}
.mb-stat .num{font-size:24px;font-weight:700;color:#f5c518}
.mb-stat .lbl{font-size:12px;color:var(--text-2)}
.mb-sec{background:var(--bg-inset);border:1px solid var(--bg-inset);border-radius:14px;padding:22px;margin-bottom:20px}
.mb-sec h3{font-size:16px;margin:0 0 16px;display:flex;align-items:center;gap:8px}
.mb-sec h3:before{content:"";width:3px;height:14px;background:#2b6cb0}
.mb-form{max-width:400px;margin:30px auto 0;background:var(--bg-inset);border:1px solid var(--bg-inset);border-radius:16px;padding:34px}
.mb-form h2{font-size:20px;margin:0 0 6px;text-align:center}
.mb-form .sub{text-align:center;color:var(--text-2);font-size:13px;margin-bottom:24px}
.mb-form label{display:block;font-size:13px;color:var(--text-2);margin-bottom:6px}
.mb-form input{width:100%;padding:12px 14px;border-radius:10px;border:1px solid var(--border-2);background:var(--input-bg);color:var(--heading);font-size:15px;box-sizing:border-box;margin-bottom:16px;outline:none}
.mb-form input:focus{border-color:#2b6cb0}
.mb-btn{width:100%;padding:13px;border:0;border-radius:10px;background:#2b6cb0;color:var(--on-accent);font-size:15px;font-weight:600;cursor:pointer}
.mb-btn.ghost{background:transparent;border:1px solid var(--border-2);color:var(--text);margin-top:10px}
.mb-switch{text-align:center;font-size:13px;color:var(--text-2);margin-top:18px}
.mb-switch a{color:#f5c518}
.mb-msg{background:rgba(43,108,176,.12);border:1px solid rgba(43,108,176,.4);color:#ff8a90;padding:10px 14px;border-radius:9px;font-size:13px;margin-bottom:16px}
.mb-empty{text-align:center;color:var(--text-2);font-size:14px;padding:30px 0}
.fav-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:14px}
.fav-item{position:relative}
.fav-item img{width:100%;height:160px;object-fit:cover;border-radius:10px;background:#222}
.fav-item .t{font-size:13px;margin-top:7px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* 电影列表页样式 */
.filter-bar { max-width: 1800px;margin:30px auto;padding:20px;background:var(--bg-card);border:1px solid var(--border);border-radius:12px; }
.filter-row { margin-bottom:15px; }
.filter-label { color:var(--text-2);font-size:14px;margin-right:10px; }
.filter-tag { display:inline-block;padding:6px 14px;margin:0 5px 8px 0;background:var(--bg-soft);border:1px solid var(--border-2);border-radius:6px;color:var(--text);font-size:14px;cursor:pointer;text-decoration:none; }
.filter-tag:hover, .filter-tag.active { border-color:#2b6cb0;color:var(--heading); }
.movie-grid { max-width: 1800px;margin:30px auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:20px; }
.movie-card { background:var(--bg-card);border:1px solid var(--border);border-radius:12px;overflow:hidden;text-decoration:none;transition:0.3s; }
.movie-card:hover { border-color:#2b6cb0;transform:translateY(-4px); }
.movie-poster { width:100%;aspect-ratio:2/3;object-fit:cover;background:var(--bg-soft); }
.movie-info { padding:15px; }
.movie-title { color:var(--heading);font-size:16px;font-weight:bold;margin-bottom:8px; }
.movie-meta { color:var(--text-2);font-size:13px; }
.container { max-width: 1800px;margin:0 auto; }
.header { background:var(--bg-card);border-bottom:1px solid var(--border);padding:15px 0; }
.header .container { display:flex;align-items:center;justify-content:space-between; }
.logo { font-size:28px;font-weight:900;color:#2b6cb0;text-decoration:none; }
.logo img { height:34px; width:auto; display:block; }
.nav { display:flex;gap:25px; }
.nav a { color:var(--text);text-decoration:none;font-size:15px; }
.nav a.active { color:#2b6cb0; }
.search-box { width:300px;padding:10px 15px;border-radius:20px;border:1px solid var(--border);background:var(--bg-soft);color:var(--heading); }
body { background:var(--bg);color:var(--text);font-family:"Microsoft YaHei","PingFang SC",system-ui,Arial,sans-serif;margin:0; }
/* 导航条修复 */
.header .container { display:flex !important; align-items:center !important; justify-content:space-between !important; max-width: var(--site-width) !important; margin:0 auto !important; padding:0 20px !important; }
.nav { display:flex !important; flex-direction:row !important; flex-wrap:nowrap !important; gap:25px !important; align-items:center !important; }
.nav a { margin-left:0 !important; }
.search-box { flex-shrink:0 !important; }
/* 全站统一宽度 */
.container, .main-layout, .main-content, .footer, .section-title, .movie-grid, .filter-bar, .star-hero, .filmography-list { max-width: var(--site-width) !important; margin-left:auto !important; margin-right:auto !important; width:100% !important; padding-left:20px !important; padding-right:20px !important; box-sizing:border-box !important; }
.footer { background:var(--bg-card); padding:40px 0; margin-top:50px; }
.footer .container { display:grid; grid-template-columns:repeat(4,1fr); gap:30px; }
/* 全站统一宽度1800px，覆盖所有原来写死的max-width */
:root { --site-width: 1800px; }
.container, .header .container, .hero, .mood-section, .latest-section, .topic-section, .director-section, .comment-section, .filter-bar, .movie-grid, .pagination, .footer, .footer .container { max-width: var(--site-width) !important; margin-left: auto !important; margin-right: auto !important; }
/* 强制所有中间板块宽度1800px，最高优先级 */
section, .mood-section, .latest-section, .topic-section, .director-section, .comment-section, .news-section, .rank-section, .hot-section, .star-section { max-width: var(--site-width) !important; margin-left: auto !important; margin-right: auto !important; padding-left: 20px !important; padding-right: 20px !important; box-sizing: border-box !important; }
/* 情绪急诊室板块四卡片均匀填满1800px宽度 */
.mood-section .mood-grid { width:100% !important; display:grid !important; grid-template-columns:repeat(4,1fr) !important; gap:20px !important; }
.mood-section .mood-card { width:100% !important; }
/* 强制所有内容div宽度1800px居中，不管标签是什么 */
div[class*='section'], div[class*='container'], div[class*='mood'], div[class*='latest'], div[class*='topic'], div[class*='director'], div[class*='comment'] { max-width: var(--site-width) !important; margin-left: auto !important; margin-right: auto !important; padding-left: 20px !important; padding-right: 20px !important; box-sizing: border-box !important; }
/* 强制main下面所有直接子元素（所有内容板块）全部1800px居中，不管有没有class */
main > div, main > section, main > article { max-width: var(--site-width) !important; margin-left: auto !important; margin-right: auto !important; padding-left: 20px !important; padding-right: 20px !important; box-sizing: border-box !important; }
/* 头部和footer保持全宽背景，内容内部居中 */
.header, .footer { width: 100% !important; }
.header > div, .footer > div { max-width: var(--site-width) !important; margin-left: auto !important; margin-right: auto !important; }
/* 全站宽度统一设置，所有调整宽度都只需要改这一行！ */
:root { --site-width: 1800px; }

/* 1. 头部导航宽度 */
.header, .header > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 2. 幻灯轮播宽度 */
.hero, .hero > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 3. 情绪急诊室板块宽度 */
.mood-section, .mood-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 4. 今日必看 & 深度专题板块宽度 */
.latest-section, .latest-section > div, .topic-section, .topic-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 5. 影视吃瓜情报局板块宽度 */
.news-section, .news-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 6. 高能榜单聚合板块宽度 */
.rank-section, .rank-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 7. 今日热播速递板块宽度 */
.hot-section, .hot-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 8. 本周热搜影人板块宽度 */
.star-section, .star-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 9. 影人时间线板块宽度 */
.director-section, .director-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 10. 神评吐槽墙板块宽度 */
.comment-section, .comment-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 11. 筛选栏宽度 */
.filter-bar, .filter-bar > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 12. 电影卡片网格宽度 */
.movie-grid, .movie-grid > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 13. 分页宽度 */
.pagination, .pagination > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 14. 底部footer宽度 */
.footer, .footer > div, .footer .footer-grid, .footer .explore-box { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 所有板块统一左右内边距，保证对齐 */
.header, .hero, .mood-section, .latest-section, .topic-section, .news-section, .rank-section, .hot-section, .star-section, .director-section, .comment-section, .filter-bar, .movie-grid, .pagination, .footer { padding-left: 20px !important; padding-right: 20px !important; box-sizing: border-box !important; }
/* 全站宽度统一设置，所有调整宽度都只需要改这一行！ */
:root { --site-width: 1600px; }

/* 1. 头部导航宽度 */
.header, .header > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 2. 幻灯轮播宽度 */
.hero, .hero > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 3. 情绪急诊室板块宽度 */
.mood-section, .mood-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 4. 今日必看 & 深度专题板块宽度 */
.latest-section, .latest-section > div, .topic-section, .topic-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 5. 影视吃瓜情报局板块宽度 */
.news-section, .news-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 6. 高能榜单聚合板块宽度 */
.rank-section, .rank-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 7. 今日热播速递板块宽度 */
.hot-section, .hot-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 8. 本周热搜影人板块宽度 */
.star-section, .star-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 9. 影人时间线板块宽度 */
.director-section, .director-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 10. 神评吐槽墙板块宽度 */
.comment-section, .comment-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 11. 筛选栏宽度 */
.filter-bar, .filter-bar > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 12. 电影卡片网格宽度 */
.movie-grid, .movie-grid > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 13. 分页宽度 */
.pagination, .pagination > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 14. 底部footer宽度 */
.footer, .footer > div, .footer .footer-grid, .footer .explore-box { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 所有板块统一左右内边距，保证对齐 */
.header, .hero, .mood-section, .latest-section, .topic-section, .news-section, .rank-section, .hot-section, .star-section, .director-section, .comment-section, .filter-bar, .movie-grid, .pagination, .footer { padding-left: 20px !important; padding-right: 20px !important; box-sizing: border-box !important; }
/* 全站宽度统一设置，所有调整宽度都只需要改这一行！ */
:root { --site-width: 1600px; }

/* 1. 头部导航：背景全宽铺满屏幕，只有内容居中 */
.header { width: 100% !important; }
.header > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 2. 幻灯轮播宽度 */
.hero, .hero > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 3. 情绪急诊室板块宽度 */
.mood-section, .mood-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 4. 今日必看 & 深度专题板块宽度 */
.latest-section, .latest-section > div, .topic-section, .topic-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 5. 影视吃瓜情报局板块宽度 */
.news-section, .news-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 6. 高能榜单聚合板块宽度 */
.rank-section, .rank-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 7. 今日热播速递板块宽度 */
.hot-section, .hot-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 8. 本周热搜影人板块宽度 */
.star-section, .star-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 9. 影人时间线板块宽度 */
.director-section, .director-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 10. 神评吐槽墙板块宽度 */
.comment-section, .comment-section > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 11. 筛选栏宽度 */
.filter-bar, .filter-bar > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 12. 电影卡片网格宽度 */
.movie-grid, .movie-grid > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 13. 分页宽度 */
.pagination, .pagination > div { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 14. 底部footer：背景全宽铺满屏幕，只有内容居中 */
.footer { width: 100% !important; }
.footer > div, .footer .footer-grid, .footer .explore-box { max-width: var(--site-width) !important; margin: 0 auto !important; }

/* 所有板块统一左右内边距，保证对齐 */
.hero, .mood-section, .latest-section, .topic-section, .news-section, .rank-section, .hot-section, .star-section, .director-section, .comment-section, .filter-bar, .movie-grid, .pagination { padding-left: 20px !important; padding-right: 20px !important; box-sizing: border-box !important; }
/* 强制header背景全宽，只有内容居中，最高优先级 */
.header { width:100% !important; max-width:100% !important; }
.header .container { max-width:1600px !important; margin:0 auto !important; }
/* 强制footer背景全宽，只有内容居中 */
.footer { width:100% !important; max-width:100% !important; }
.footer .container { max-width:1600px !important; margin:0 auto !important; }
/* 详情页两栏布局修复 */
.container { max-width: 1600px; margin: 0 auto; padding: 0 20px; }
.main-layout { display: flex; gap: 30px; margin-top: 30px; }
.left-col { width: 70%; }
.right-col { width: 30%; }
.movie-poster { width: 100%; border-radius: 12px; margin-bottom: 20px; }
.movie-info h1 { font-size: 36px; color: var(--heading); margin-bottom: 15px; }
.movie-meta { color: var(--text-2); margin-bottom: 20px; line-height: 1.8; }
/* 详情页两栏布局强制修复 */
.container { max-width: 1600px !important; margin: 0 auto !important; padding: 0 20px !important; }
.main-layout { display: flex !important; gap: 30px !important; margin-top: 30px !important; flex-direction: row !important; }
.left-col { width: 70% !important; float: none !important; flex-shrink: 0 !important; }
.right-col { width: 30% !important; float: none !important; flex-shrink: 0 !important; }
/* 封面竖版海报样式 */
.poster-box { width: 250px !important; height: 360px !important; float: left !important; margin-right: 30px !important; border-radius: 12px !important; overflow: hidden !important; }
.poster-box img { width: 100% !important; height: 360px !important; object-fit: cover !important; }

/* ===== 首页·今日热播速递（对齐参考站，独立类名避免与既有规则冲突） ===== */
.home-tv-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-bottom:40px;}
.home-tv-card{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;overflow:hidden;text-decoration:none;transition:transform .3s,border-color .3s,box-shadow .3s;display:flex;flex-direction:column;}
.home-tv-card:hover{transform:translateY(-5px);border-color:#2b6cb0;box-shadow:0 10px 20px rgba(43,108,176,.1);}
.home-tv-img-box{width:100%;aspect-ratio:16/9;overflow:hidden;position:relative;background:var(--bg-soft);}
.home-tv-img{width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .4s ease;}
.home-tv-card:hover .home-tv-img{transform:scale(1.05);}
.home-tv-ph{display:flex;align-items:center;justify-content:center;color:var(--border-2);font-size:13px;}
.home-tv-info{padding:16px;display:flex;flex-direction:column;flex:1;}
.home-tv-title-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;gap:10px;}
.home-tv-title{color:var(--heading);font-size:17px;font-weight:bold;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:75%;}
.home-tv-score{color:#f39c12;font-weight:bold;font-size:15px;flex-shrink:0;}
.home-tv-meta{font-size:13px;color:var(--text-2);line-height:1.6;margin:0 0 12px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.home-tv-more{display:inline-block;margin-top:auto;color:#58a6ff;font-size:13px;transition:color .3s;}
.home-tv-card:hover .home-tv-more{color:#2b6cb0;}
@media (max-width:1200px){.home-tv-grid{grid-template-columns:repeat(3,1fr);}}
@media (max-width:992px){.home-tv-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:768px){.home-tv-grid{grid-template-columns:1fr;}.home-tv-title{font-size:16px;}}

/* ===== 首页·影人时间线（竖版人像海报） ===== */
.home-tl-grid{display:grid;gap:20px;margin-bottom:50px;grid-template-columns:repeat(6,1fr);}
@media (max-width:1400px){.home-tl-grid{grid-template-columns:repeat(5,1fr);}}
@media (max-width:1200px){.home-tl-grid{grid-template-columns:repeat(4,1fr);}}
@media (max-width:992px){.home-tl-grid{grid-template-columns:repeat(3,1fr);}}
@media (max-width:768px){.home-tl-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:480px){.home-tl-grid{grid-template-columns:1fr;}}
.home-tl-card{position:relative;border-radius:12px;overflow:hidden;text-decoration:none;display:flex;flex-direction:column;justify-content:flex-end;background:var(--bg-card);box-shadow:0 4px 15px rgba(0,0,0,.3);transition:transform .4s cubic-bezier(.175,.885,.32,1.275),box-shadow .4s ease;aspect-ratio:3/4;}
.home-tl-card:hover{transform:translateY(-8px) scale(1.02);box-shadow:0 12px 25px rgba(43,108,176,.2);}
.home-tl-img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center 20%;transition:transform .5s ease;z-index:1;}
.home-tl-card:hover .home-tl-img{transform:scale(1.08);}
.home-tl-ph{display:flex;align-items:center;justify-content:center;color:var(--border-2);font-size:13px;}
.home-tl-info{position:relative;z-index:2;padding:40px 15px 15px;background:linear-gradient(to top,rgba(13,17,23,.95) 0%,rgba(13,17,23,.7) 50%,transparent 100%);text-align:center;}
.home-tl-name{color:var(--heading);font-size:16px;font-weight:bold;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 2px 4px rgba(0,0,0,.5);}
.home-tl-desc{color:var(--text-2);font-size:12px;opacity:.8;}

/* ===== 短评与互动（重设计 · 自适应） ===== */
.comment-section{background:var(--bg-card);border:1px solid var(--border);border-radius:14px;padding:24px 22px;margin-top:20px;}
.comment-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--border-2);padding-bottom:16px;margin-bottom:20px;}
.comment-head .section-title2{margin:0;font-size:18px;}
.comment-controls{display:flex;align-items:center;gap:22px;flex-wrap:wrap;}
.comment-sort{display:flex;gap:20px;}
.comment-sort span{font-size:14px;cursor:pointer;color:var(--text-3);padding-bottom:4px;user-select:none;white-space:nowrap;}
.comment-sort .sort-on{color:var(--link);font-weight:bold;border-bottom:2px solid var(--link);}
.comment-filter{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.comment-filter span{font-size:13px;cursor:pointer;color:var(--text-3);padding:4px 12px;border-radius:15px;border:1px solid var(--border-2);user-select:none;white-space:nowrap;}
.comment-filter .filter-on{color:#fff;background:var(--link);border-color:var(--link);font-weight:bold;}

.comment-list{display:flex;flex-direction:column;}
.comment-item{display:flex;gap:14px;padding:15px 0;border-bottom:1px dashed var(--border);align-items:flex-start;}
.comment-item:last-child{border-bottom:none;}
.comment-avatar{width:40px;height:40px;border-radius:50%;background:#2b6cb0;color:#fff;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:15px;flex-shrink:0;}
.comment-body{flex:1;min-width:0;}
.comment-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px;}
.cm-meta-left{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap;}
.comment-nick{color:var(--link);font-weight:bold;font-size:14px;}
.comment-star{color:#f5c518;font-size:13px;letter-spacing:1px;}
.comment-time{color:var(--text-3);font-size:12px;flex-shrink:0;margin-left:auto;}
.comment-content{color:var(--text);font-size:15px;line-height:1.65;word-break:break-word;}
.comment-vote{margin-top:8px;color:var(--text-2);font-size:13px;cursor:pointer;display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:14px;background:var(--bg-inset);user-select:none;}
.comment-vote:hover{color:var(--link);}
.comment-vote.voted{color:var(--link);cursor:default;}
.comment-empty{color:var(--text-3);text-align:center;padding:36px 0;font-size:14px;}

.comment-publish{margin-top:22px;padding-top:20px;border-top:1px solid var(--border-2);}
.cm-form-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px;}
#comment-nick{flex:1;min-width:150px;height:42px;background:var(--bg-inset);border:1px solid var(--border-2);border-radius:10px;padding:0 15px;color:var(--heading);font-size:14px;outline:none;font-family:inherit;box-sizing:border-box;}
#comment-nick::placeholder{color:var(--text-3);}
#comment-nick:focus{border-color:var(--link);}
.cm-stars{display:flex;gap:5px;align-items:center;flex-shrink:0;}
.cm-star{font-size:20px;color:var(--border-2);cursor:pointer;line-height:1;transition:color .2s;}
.cm-star.on{color:#f5c518;}
.cm-star:hover{color:#f5c518;}
#comment-text{width:100%;min-height:96px;background:var(--bg-inset);border:1px solid var(--border-2);border-radius:10px;padding:14px 15px;color:var(--heading);font-size:15px;outline:none;resize:vertical;font-family:inherit;box-sizing:border-box;}
#comment-text:focus{border-color:var(--link);}
.comment-publish-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;}
.comment-tip{font-size:13px;color:var(--text-3);}
.comment-publish .submit-btn{float:none;}
/* 复位通配 div[class*=comment] 误加到评论内部元素的内边距/限宽（后代选择器提高特异性压过通配规则） */
.comment-section .comment-head,
.comment-section .comment-controls,
.comment-section .comment-sort,
.comment-section .comment-filter,
.comment-section .comment-list,
.comment-section .comment-item,
.comment-section .comment-avatar,
.comment-section .comment-body,
.comment-section .comment-meta,
.comment-section .cm-meta-left,
.comment-section .comment-nick,
.comment-section .comment-star,
.comment-section .comment-time,
.comment-section .comment-content,
.comment-section .comment-vote,
.comment-section .comment-publish,
.comment-section .comment-publish-row,
.comment-section .comment-tip,
.comment-section .cm-form-row,
.comment-section .cm-stars{
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
}
.comment-section #comment-nick{padding:0 15px !important;}
.comment-section #comment-text{padding:14px 15px !important;}

/* 平板及手机自适应 */
@media (max-width:768px){
  .comment-section{padding:20px 16px;}
  .comment-head{flex-direction:column;align-items:flex-start;gap:12px;}
  .comment-controls{width:100%;justify-content:flex-start;gap:16px;}
  .comment-item{gap:12px;padding:13px 0;}
  .comment-avatar{width:36px;height:36px;font-size:14px;}
  .comment-meta{flex-wrap:wrap;}
  .comment-time{margin-left:0;}
  .cm-form-row{flex-direction:column;align-items:stretch;}
  #comment-nick{width:100%;}
  .cm-stars{justify-content:flex-start;padding:2px 0;}
  #comment-text{min-height:88px;}
}
@media (max-width:480px){
  .comment-filter span{font-size:12px;padding:3px 10px;}
  .comment-sort{gap:16px;}
  .comment-sort span{font-size:13px;}
}

/* ===== 首页 今日必看 & 深度专题（响应式） ===== */
.home-pick{display:flex;gap:40px;flex-wrap:wrap;}
.home-pick .home-pick-left{width:700px;max-width:100%;margin:0!important;padding:0!important;}
.home-pick .hp-list{display:flex;flex-direction:column;gap:20px;}
.home-pick .hp-movie{display:flex;background:var(--bg-card);border:1px solid var(--border);border-radius:12px;overflow:hidden;text-decoration:none;transition:.3s;height:220px;}
.home-pick .hp-movie-poster{width:140px;flex-shrink:0;position:relative;background:var(--bg-soft);}
.home-pick .hp-movie-info{padding:20px;display:flex;flex-direction:column;justify-content:center;min-width:0;flex:1;}
.home-pick .home-pick-right{flex:1;min-width:280px;margin:0!important;max-width:100%!important;padding:0!important;}
.home-pick .hp-topic{display:flex;background:var(--bg-card);border:1px solid var(--border);border-radius:12px;overflow:hidden;text-decoration:none;transition:.3s;height:220px;margin-bottom:20px;padding:0!important;}
.home-pick .hp-topic-cover{width:350px;flex-shrink:0;position:relative;background:var(--bg-soft);padding:0!important;}
.home-pick .hp-topic-info{padding:20px;display:flex;flex-direction:column;justify-content:center;min-width:0;flex:1;padding-left:20px!important;padding-right:20px!important;}

@media (max-width:1100px){
  .home-pick .home-pick-left{width:100%;}
  .home-pick .home-pick-right{min-width:0;}
}
@media (max-width:860px){
  .home-pick{flex-direction:column;gap:20px;}
  .home-pick .home-pick-left,.home-pick .home-pick-right{width:100%;}
  .home-pick .hp-movie{height:auto;min-height:150px;}
  .home-pick .hp-movie-poster{width:100px;}
  .home-pick .hp-topic{height:auto;min-height:0;flex-direction:column;}
  .home-pick .hp-topic-cover{width:100%;height:160px;}
  .home-pick .hp-topic-info{width:100%;}
  .home-pick .hp-movie-info,.home-pick .hp-topic-info{padding:14px!important;}
}
@media (max-width:480px){
  .home-pick .hp-movie-poster{width:88px;}
  .home-pick .hp-topic-cover{height:150px;}
  .home-pick .hp-movie-info h3{font-size:17px;}
  .home-pick .hp-topic-info h3{font-size:16px;}
}

/* ================= 全站广告位（后台 phome_ecms_ad 可控） ================= */
.ad-slot{margin:24px 0;display:flex;flex-direction:column;gap:16px;}
.ad-slot:empty{display:none;}
.ad-slot a{display:block;text-decoration:none;color:inherit;}
.ad-slot img{width:100%;height:auto;display:block;border-radius:12px;border:1px solid var(--border-2,var(--border));background:var(--bg-card);box-shadow:0 2px 10px rgba(0,0,0,.08);}
@media (max-width:768px){
  .ad-slot{margin:16px 0;gap:12px;}
  .ad-slot img{border-radius:10px;}
}

/* ================= 明星详情档案（sp-*） ================= */
.sp-container{max-width:1400px;margin:0 auto;padding:30px 20px;box-sizing:border-box;}
.sp-breadcrumb{margin-bottom:20px;font-size:14px;color:var(--text-2);}
.sp-breadcrumb a:hover{color:#2b6cb0;}
.sp-breadcrumb span{color:#2b6cb0;}
.sp-profile{display:flex;gap:30px;margin-bottom:40px;flex-wrap:wrap;}
.sp-poster{flex:0 0 300px;}
.sp-poster-inner{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;padding:15px;text-align:center;}
.sp-poster img{width:100%;border-radius:8px;object-fit:cover;aspect-ratio:3/4;display:block;background:var(--bg-soft);}
.sp-details{flex:1;min-width:300px;background:var(--bg-card);border:1px solid var(--border);border-radius:12px;padding:30px;}
.sp-header{display:flex;justify-content:space-between;align-items:flex-end;border-bottom:1px dashed var(--border);padding-bottom:15px;margin-bottom:20px;gap:15px;flex-wrap:wrap;}
.sp-title{font-size:36px;color:var(--heading);font-weight:900;margin:0;line-height:1.2;}
.sp-title span{font-size:16px;color:var(--text-2);font-weight:normal;display:block;margin-top:5px;}
.sp-tag{background:rgba(43,108,176,0.1);color:#2b6cb0;padding:6px 15px;border-radius:20px;font-size:14px;font-weight:bold;border:1px solid rgba(43,108,176,0.3);}
.sp-info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;font-size:14px;margin-bottom:25px;}
.sp-info-grid strong{color:var(--text-2);margin-right:8px;}
.sp-info-grid .sp-noval{color:var(--text-3);}
.sp-stats{display:flex;gap:20px;padding-top:20px;border-top:1px dashed var(--border);}
.sp-stat{text-align:center;flex:1;background:rgba(255,255,255,0.02);padding:10px;border-radius:8px;}
.sp-stat-val{font-size:24px;font-weight:bold;}
.sp-stat-val.score{color:#f39c12;} .sp-stat-val.works{color:var(--heading);} .sp-stat-val.awards{color:#2b6cb0;}
.sp-stat-label{font-size:12px;color:var(--text-2);margin-top:4px;}
.sp-section{background:var(--bg-card);border:1px solid var(--border);border-radius:12px;padding:25px;margin-bottom:30px;}
.sp-tab-header{display:flex;gap:30px;border-bottom:1px solid var(--border);margin-bottom:25px;}
.sp-tab-btn{font-size:20px;font-weight:bold;color:var(--text-2);padding-bottom:12px;cursor:pointer;position:relative;transition:color .3s;border:none;background:none;outline:none;}
.sp-tab-btn:hover{color:var(--heading);}
.sp-tab-btn.active{color:var(--heading);}
.sp-tab-btn.active::after{content:'';position:absolute;bottom:-1px;left:0;width:100%;height:3px;background:#2b6cb0;border-radius:3px;}
.sp-tab-content{display:none;} .sp-tab-content.active{display:block;animation:spfade .4s ease;}
@keyframes spfade{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:translateY(0);}}
.sp-river{display:flex;overflow-x:auto;padding-bottom:15px;scroll-snap-type:x mandatory;position:relative;}
.sp-river::-webkit-scrollbar{height:6px;}
.sp-river::-webkit-scrollbar-thumb{background:var(--border);border-radius:10px;}
.sp-timeline-line{position:absolute;top:50px;left:20px;right:20px;height:2px;background:linear-gradient(to right,rgba(43,108,176,0.5),rgba(42,46,56,0.5));z-index:1;}
.sp-node{flex:0 0 auto;width:160px;margin-right:20px;scroll-snap-align:start;position:relative;z-index:2;}
.sp-node:last-child{margin-right:0;}
.sp-year{height:50px;display:flex;flex-direction:column;align-items:center;}
.sp-year-text{font-size:14px;color:var(--text-2);font-weight:bold;margin-bottom:12px;}
.sp-dot{width:12px;height:12px;background:var(--bg-card);border:3px solid var(--border-2);border-radius:50%;}
.sp-node:hover .sp-dot{border-color:#2b6cb0;background:#2b6cb0;}
.sp-node .sp-poster{display:block;position:relative;width:100%;aspect-ratio:2/3;border-radius:8px;overflow:hidden;background:var(--bg-soft);box-shadow:0 4px 15px rgba(0,0,0,.5);margin-bottom:10px;border:1px solid transparent;}
.sp-node .sp-poster img{width:100%;height:100%;object-fit:cover;}
.sp-node:hover .sp-poster{border-color:#2b6cb0;}
.sp-score{position:absolute;top:8px;right:8px;background:rgba(0,0,0,.8);color:#f39c12;font-size:12px;font-weight:bold;padding:2px 6px;border-radius:4px;}
.sp-name{color:var(--heading);font-size:14px;font-weight:bold;text-align:center;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sp-main{display:flex;gap:30px;flex-wrap:wrap;}
.sp-left{flex:2;min-width:300px;} .sp-right{flex:1;min-width:280px;}
.sp-section-title{font-size:20px;color:var(--heading);border-left:4px solid #2b6cb0;padding-left:12px;margin:0 0 20px 0;}
.sp-text{font-size:17px;line-height:1.8;text-align:justify;color:var(--text-2);}
.sp-related{display:flex;flex-wrap:wrap;gap:15px;}
.sp-related-item{display:block;width:calc(50% - 7.5px);text-align:center;}
.sp-related-avatar{width:80px;height:80px;border-radius:50%;overflow:hidden;margin:0 auto 10px;border:2px solid var(--border);background:var(--bg-soft);display:flex;align-items:center;justify-content:center;}
.sp-related-avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.sp-related-avatar .sp-avatar-empty{color:var(--border-2);font-size:28px;font-weight:bold;}
.sp-related-name{color:var(--heading);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sp-empty{color:var(--text-3);text-align:center;padding:30px;font-size:14px;}
@media (max-width:992px){.sp-profile{flex-direction:column;}.sp-poster{flex:0 0 auto;width:100%;max-width:300px;margin:0 auto;}.sp-main{flex-direction:column;}.sp-info-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:768px){.sp-info-grid{grid-template-columns:1fr;}.sp-title{font-size:28px;}.sp-stats{flex-direction:column;gap:10px;}.sp-node{width:130px;margin-right:15px;}.sp-timeline-line{top:45px;}}
