/* ── FilmAV 影视导航 · 主样式 ── */

/* 变量 - 深色主题（默认） */
:root {
  --bg:       #141418;
  --bg2:      #17171f;
  --bg3:      #1e1e28;
  --card:     #1c1c25;
  --card-h:   #242432;
  --border:   rgba(255,255,255,0.07);
  --accent:   #1690FF;
  --accent2:  #4AA8FF;
  --blue:     #3a86ff;
  --text:     #e8e8f0;
  --text2:    #9898b2;
  --text3:    #606070;
  --radius:   10px;
  --radius-lg:16px;
  --shadow:   0 4px 24px rgba(0,0,0,0.4);
  --transition:0.22s ease;
  --header-h: 60px;
}

/* 变量 - 浅色主题 */
[data-theme="light"] {
  --bg:       #f0f0f3;
  --bg2:      #ffffff;
  --bg3:      #eaeaef;
  --card:     #ffffff;
  --card-h:   #f0f0f5;
  --border:   rgba(0,0,0,0.08);
  --text:     #1a1a2e;
  --text2:    #555566;
  --text3:    #8888a0;
  --shadow:   0 4px 24px rgba(0,0,0,0.08);
}
[data-theme="light"] .search-hero{ background:var(--bg) }
[data-theme="light"] .search-hero-box{ background:#fff; border-color:var(--border) }
[data-theme="light"] .search-hero-box input{ background:transparent; color:var(--text) }
[data-theme="light"] .search-hero-icon{ stroke:var(--text3) }
[data-theme="light"] .tab-bar{ background:#fff }
[data-theme="light"] .site-card.featured{ background:#F8F9FA }
[data-theme="light"] .tab-item{ color:var(--text2) }
[data-theme="light"] .logo-text{ background:linear-gradient(135deg,#1690FF,#0B7AD9);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text }
[data-theme="light"] .header{ background:rgba(255,255,255,0.96) }
[data-theme="light"] .site-card{ background:#F8F9FA }
[data-theme="light"] .site-logo{ background:transparent; border-color:var(--border) }
[data-theme="light"] .site-card:hover{ box-shadow:0 8px 24px rgba(0,0,0,0.08) }
[data-theme="light"] .related-card:hover{ box-shadow:0 8px 24px rgba(0,0,0,0.08) }
[data-theme="light"] .article-card:hover{ box-shadow:var(--shadow) }
[data-theme="light"] .article-card-full:hover{ box-shadow:var(--shadow) }
[data-theme="light"] .md-code-block{ background:#f0f0f5; color:#333 }
[data-theme="light"] .md-table tr:nth-child(odd) td{ background:var(--bg3) }
[data-theme="light"] .modal-overlay{ background:rgba(0,0,0,0.3) }
[data-theme="light"] .modal-box{ box-shadow:0 16px 48px rgba(0,0,0,0.15) }

/* 主题切换按钮 */
.theme-toggle{
  width:34px;height:34px;border-radius:8px;
  background:var(--bg3);color:var(--text2);font-size:16px;
  display:flex;align-items:center;justify-content:center;
  transition:var(--transition);cursor:pointer;border:none;
}
.theme-toggle:hover{background:var(--accent);color:#fff}

/* 重置 */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;font-size:14px;line-height:1.6;min-height:100vh}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
ul{list-style:none}
button{cursor:pointer;border:none;background:none;font-family:inherit}

/* ── 滚动条 ── */
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{background:var(--bg2)}
::-webkit-scrollbar-thumb{background:var(--bg3);border-radius:3px}
::-webkit-scrollbar-thumb:hover{background:var(--accent)}

/* ── Header ── */
.header{
  position:sticky;top:0;z-index:100;
  background:rgba(15,15,19,0.92);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
}
.header-inner{
  max-width:1280px;margin:0 auto;
  padding:0 20px;height:var(--header-h);
  display:flex;align-items:center;gap:16px;
}

/* Logo */
.logo{display:flex;align-items:center;gap:8px;flex-shrink:0}
.logo-icon{font-size:22px}
.logo-text{font-size:18px;font-weight:700;background:linear-gradient(135deg,#1690FF,#4AA8FF);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.logo-sub{font-size:11px;color:var(--text3);display:none}
@media(min-width:768px){.logo-sub{display:block}}

/* 主导航 */
.main-nav{display:flex;align-items:center;gap:4px;overflow-x:auto;flex:1;padding:4px 0}
.main-nav::-webkit-scrollbar{display:none}
.nav-item{
  white-space:nowrap;padding:6px 14px;border-radius:20px;
  font-size:13px;color:var(--text2);
  transition:var(--transition);cursor:pointer;
}
.nav-item:hover{background:var(--bg3);color:var(--text)}
.nav-item.active{background:var(--accent);color:#fff}

/* 头部操作 */
.header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;margin-left:auto}
.btn-search-toggle{
  width:34px;height:34px;border-radius:8px;
  background:var(--bg3);color:var(--text2);font-size:16px;
  display:flex;align-items:center;justify-content:center;
  transition:var(--transition);
}
.btn-search-toggle:hover{background:var(--accent);color:#fff}

/* 搜索栏 */
.search-bar{
  border-top:1px solid var(--border);
  padding:12px 20px;
  display:none;
  background:var(--bg2);
  position:relative;
}
.search-bar.open{display:block}
.search-inner{display:flex;gap:8px;max-width:640px;margin:0 auto}
#searchInput{
  flex:1;padding:8px 16px;border-radius:8px;
  background:var(--bg3);border:1px solid var(--border);
  color:var(--text);font-size:14px;outline:none;
  transition:var(--transition);
}
#searchInput:focus{border-color:var(--accent)}
#searchBtn{
  padding:8px 20px;border-radius:8px;
  background:var(--accent);color:#fff;font-size:13px;
  transition:var(--transition);flex-shrink:0;
}
#searchBtn:hover{background:var(--accent2)}

/* 热搜标签 */
.hot-tags{
  display:flex;flex-wrap:wrap;gap:6px;
  max-width:640px;margin:10px auto 0;
}
.hot-tag{
  padding:3px 12px;border-radius:14px;font-size:12px;
  background:var(--bg3);color:var(--text2);cursor:pointer;
  border:1px solid var(--border);transition:var(--transition);
}
.hot-tag:hover{background:var(--accent);color:#fff;border-color:transparent}

/* 搜索结果 */
.search-results{
  position:absolute;left:20px;right:20px;top:100%;
  background:var(--bg2);border:1px solid var(--border);
  border-radius:var(--radius);box-shadow:var(--shadow);
  max-height:400px;overflow-y:auto;z-index:200;
}
.search-results-inner{padding:8px}
.search-result-item{
  display:flex;align-items:center;gap:12px;
  padding:10px 12px;border-radius:var(--radius);
  cursor:pointer;transition:var(--transition);
}
.search-result-item:hover{background:var(--card-h)}
.sr-logo{width:32px;height:32px;border-radius:6px;object-fit:cover;background:var(--bg3);flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:18px}
.sr-info{flex:1;min-width:0}
.sr-name{font-weight:600;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sr-desc{font-size:11px;color:var(--text3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sr-cat{font-size:11px;color:var(--accent);flex-shrink:0}
.no-results{padding:20px;text-align:center;color:var(--text3)}

/* ── 搜索英雄区 ── */
.search-hero{
  padding:36px 20px 24px;text-align:center;
  background:var(--bg);
}
.search-hero-inner{max-width:640px;margin:0 auto}
.search-hero-box{
  display:flex;align-items:center;gap:0;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:4px;
  transition:var(--transition);
}
.search-hero-box:focus-within{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(22,144,255,0.15);
}
.search-hero-icon{
  width:20px;height:20px;color:var(--text3);
  margin:0 10px 0 12px;flex-shrink:0;
}
.search-hero-box input{
  flex:1;border:none;outline:none;background:transparent;
  font-size:15px;color:var(--text);padding:10px 0;
  min-width:0;
}
.search-hero-box input::placeholder{color:var(--text3)}
.search-hero-box #heroSearchBtn{
  background:var(--accent);color:#fff;
  border:none;border-radius:8px;
  padding:10px 24px;font-size:14px;font-weight:600;
  cursor:pointer;transition:var(--transition);
  flex-shrink:0;
}
.search-hero-box #heroSearchBtn:hover{background:var(--accent2)}
.search-hero-results{
  margin-top:8px;background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;max-height:360px;overflow-y:auto;
  text-align:left;
}
.search-hero-results .sr-item{
  display:flex;align-items:center;gap:12px;
  padding:12px 16px;cursor:pointer;
  transition:var(--transition);
}
.search-hero-results .sr-item:hover{background:var(--card-h)}
.search-hero-results .sr-item+.sr-item{border-top:1px solid var(--border)}
.search-hero-results .sr-logo{
  width:36px;height:36px;border-radius:50%;
  background:var(--bg3);display:flex;align-items:center;
  justify-content:center;font-size:16px;flex-shrink:0;
  border:1px solid var(--border);
}
.search-hero-results .sr-info{flex:1;min-width:0}
.search-hero-results .sr-name{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-hero-results .sr-cat{font-size:11px;color:var(--accent);flex-shrink:0}
.hero-stats{display:flex;justify-content:center;flex-wrap:wrap;gap:16px;margin-top:16px}
.hero-stats span{color:var(--text3);font-size:13px}

/* ── 主内容 ── */
.main-content{max-width:1280px;margin:0 auto;padding:0 0 40px}
.nav-content{padding:0 20px}

/* ── 分类 Section ── */
.cat-section{
  margin-top:32px;
  background:var(--bg2);
  border-radius:var(--radius-lg);
  border:1px solid var(--border);
  overflow:hidden;
}
.cat-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 20px;border-bottom:1px solid var(--border);
}
.cat-title{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:700}
.cat-icon{font-size:20px}

/* Tab */
.tab-bar{
  display:flex;align-items:center;gap:8px;
  overflow-x:auto;padding:8px 20px;
  flex-wrap:wrap;
}
.tab-bar::-webkit-scrollbar{display:none}
.tab-item{
  padding:6px 16px;font-size:13px;white-space:nowrap;
  color:var(--text2);cursor:pointer;
  border:1px solid var(--border);
  border-radius:8px;
  transition:var(--transition);
  background:transparent;
}
.tab-item:hover{color:var(--text);border-color:var(--text3)}
.tab-item.active{color:#fff;background:var(--accent);border-color:var(--accent)}

/* 站点网格 */
.tab-pane{display:none;padding:20px}
.tab-pane.active{display:block}
.sites-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}

/* 站点卡片 */
.site-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:10px 12px;
  display:flex;flex-direction:row;align-items:center;gap:10px;
  cursor:pointer;transition:var(--transition);
  position:relative;
}
.site-card:hover{
  background:var(--card-h);
  border-color:rgba(22,144,255,0.35);
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(0,0,0,0.3);
}
.site-card.featured::before{
  content:'推荐';position:absolute;top:6px;right:6px;
  background:var(--accent);color:#fff;font-size:10px;
  padding:2px 6px;border-radius:4px;
}
.site-logo{
  width:44px;height:44px;border-radius:50%;
  background:var(--bg3);
  display:flex;align-items:center;justify-content:center;
  font-size:20px;overflow:hidden;
  border:1px solid var(--border);flex-shrink:0;
}
.site-logo img{width:100%;height:100%;object-fit:cover}
.site-info{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}
.site-name{font-size:13px;font-weight:600;margin-bottom:3px;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.site-desc{font-size:11px;color:var(--text3);line-height:1.4;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}

/* 更多按钮 */
.show-more-btn{
  display:flex;align-items:center;justify-content:center;gap:6px;
  width:100%;padding:10px;margin-top:10px;
  background:var(--bg3);border:1px dashed var(--border);
  border-radius:var(--radius);color:var(--text3);font-size:12px;
  cursor:pointer;transition:var(--transition);
}
.show-more-btn:hover{border-color:var(--accent);color:var(--accent)}

/* ── 观影指南 ── */
.article-section{
  margin:32px 20px 0;
  padding:20px;
  background:var(--bg2);
  border-radius:var(--radius-lg);
  border:1px solid var(--border);
}
.section-header{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:16px;
}
.section-header h2{font-size:18px;font-weight:700}
.more-link{color:var(--accent);font-size:13px}
.more-link:hover{text-decoration:underline}

.article-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}
.article-card{
  display:flex;align-items:center;gap:12px;cursor:pointer;
  padding:10px 14px;
  background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius-lg);
  transition:var(--transition);
}
.article-card:hover{box-shadow:0 0 8px rgba(22,144,255,0.3);border-color:rgba(22,144,255,0.5);border-width:1px}
.article-cover{
  width:200px;height:132px;min-width:200px;
  background:var(--bg3);
  display:flex;align-items:center;justify-content:center;font-size:32px;overflow:hidden;
  border-radius:var(--radius);
}
.article-cover img{width:100%;height:100%;object-fit:cover}
.article-body{padding:2px 0;display:flex;flex-direction:column;justify-content:space-between;flex:1;min-width:0}
.article-title{font-size:18px;font-weight:700;line-height:1.4;margin-bottom:4px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.article-summary{font-size:12px;color:var(--text2);line-height:1.5;margin-bottom:4px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
.article-meta{font-size:12px;color:var(--text3)}

/* ── 加载动画 ── */
.loading-placeholder{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:80px 20px;color:var(--text3);gap:16px;
}
.spinner{
  width:32px;height:32px;border:3px solid var(--border);
  border-top-color:var(--accent);border-radius:50%;
  animation:spin 0.8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

/* ── Footer ── */
.footer{
  border-top:1px solid var(--border);
  background:var(--bg2);
  padding:32px 20px;text-align:center;
  margin-top:40px;
}
.footer-inner{max-width:600px;margin:0 auto}
.footer-logo{font-size:20px;font-weight:700;margin-bottom:10px;color:var(--accent)}
.footer-desc,.footer-copy{font-size:12px;color:var(--text3);margin-bottom:8px}
.footer-links{display:flex;justify-content:center;gap:12px;margin-bottom:8px;font-size:13px}
.footer-links a{color:var(--text2)}
.footer-links a:hover{color:var(--accent)}

/* ── 回到顶部 ── */
.back-top{
  position:fixed;right:20px;bottom:30px;
  width:40px;height:40px;border-radius:50%;
  background:var(--accent);color:#fff;font-size:18px;
  box-shadow:var(--shadow);transition:var(--transition);
  display:none;z-index:99;
}
.back-top.show{display:flex;align-items:center;justify-content:center}
.back-top:hover{background:var(--accent2);transform:scale(1.1)}

/* ── 弹窗 ── */
.modal-overlay{
  position:fixed;inset:0;background:rgba(0,0,0,0.7);
  display:none;z-index:1000;
  align-items:center;justify-content:center;
  padding:20px;
}
.modal-overlay.open{display:flex}
.modal-box{
  background:var(--bg2);border:1px solid var(--border);
  border-radius:var(--radius-lg);width:100%;max-width:700px;
  max-height:85vh;overflow-y:auto;position:relative;
  box-shadow:0 16px 48px rgba(0,0,0,0.6);
}
.modal-close{
  position:sticky;top:0;float:right;
  width:32px;height:32px;border-radius:50%;
  background:var(--bg3);color:var(--text2);font-size:16px;
  display:flex;align-items:center;justify-content:center;
  margin:12px 12px 0 0;transition:var(--transition);z-index:10;
}
.modal-close:hover{background:var(--accent);color:#fff}
#modalContent{padding:20px 24px 24px;clear:both}
#modalContent h2{font-size:20px;margin-bottom:12px;line-height:1.4}
#modalContent .meta{color:var(--text3);font-size:12px;margin-bottom:16px}
#modalContent .content{color:var(--text2);line-height:1.8;font-size:14px;white-space:pre-wrap}

/* ── 响应式 ── */
@media(max-width:640px){
  .sites-grid{grid-template-columns:repeat(2,1fr)}
  .search-hero{padding:24px 16px}
  .nav-content{padding:0 12px}
  .cat-section{border-radius:12px}
}

/* ── 标签页内嵌展示 ── */
.cat-preview{padding:16px 20px}
.preview-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px;
}

/* ════════════════════════════════════════
   站点详情页样式
════════════════════════════════════════ */

/* 详情页布局 */
.detail-page{ padding-top:20px; padding-bottom:60px }
.detail-container{
  max-width:1200px; margin:0 auto; padding:0 20px;
  display:flex; gap:24px;
}
.detail-main{ flex:1; min-width:0 }
.detail-sidebar{ width:320px; flex-shrink:0 }

@media(max-width:900px){
  .detail-container{ flex-direction:column }
  .detail-sidebar{ width:100% }
}

/* 面包屑 */
.breadcrumb{
  display:flex; align-items:center; gap:8px;
  font-size:13px; color:var(--text3);
  margin-bottom:20px;
}
.breadcrumb a{ color:var(--text2); transition:var(--transition) }
.breadcrumb a:hover{ color:var(--accent) }
.breadcrumb .current{ color:var(--text) }
.breadcrumb span{ color:var(--text3) }

/* 站点头信息 */
.site-hero{
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:28px;
  display:flex; gap:20px; align-items:flex-start;
  margin-bottom:24px;
}
.site-hero-logo{
  width:72px; height:72px; border-radius:var(--radius);
  background:var(--bg2); display:flex; align-items:center; justify-content:center;
  font-size:32px; flex-shrink:0; overflow:hidden;
  border:1px solid var(--border);
}
.site-hero-logo img{ width:100%; height:100%; object-fit:cover }
.site-hero-info{ flex:1; min-width:0 }
.site-hero-info h1{
  font-size:22px; font-weight:700; margin-bottom:6px;
  display:flex; align-items:center; gap:10px;
}
.site-hero-info p{
  color:var(--text2); font-size:13px; margin-bottom:16px;
  line-height:1.5;
}
.site-hero-actions{ display:flex; gap:10px; flex-wrap:wrap }

.btn-primary{
  display:inline-flex; align-items:center; gap:6px;
  background:var(--accent); color:#fff; font-size:13px;
  padding:8px 18px; border-radius:var(--radius);
  font-weight:500; transition:var(--transition);
}
.btn-primary:hover{ background:#0B7AD9; transform:translateY(-1px) }
.btn-primary svg{ flex-shrink:0 }

.btn-outline{
  display:inline-flex; align-items:center; gap:6px;
  background:transparent; color:var(--text2); font-size:13px;
  padding:8px 16px; border-radius:var(--radius);
  border:1px solid var(--border); font-weight:500;
  transition:var(--transition);
}
.btn-outline:hover{ border-color:var(--accent); color:var(--accent); transform:translateY(-1px) }
.btn-outline svg{ flex-shrink:0 }

@media(max-width:600px){
  .site-hero{ flex-direction:column; align-items:center; text-align:center }
  .site-hero-actions{ justify-content:center }
}

/* 区块标题 */
.section-label{
  font-size:14px; font-weight:600; color:var(--text);
  margin-bottom:14px; display:flex; align-items:center; gap:8px;
}
.section-label::before{
  content:''; display:inline-block;
  width:3px; height:16px; border-radius:2px;
  background:var(--accent);
}

/* 核心指标 */
.metrics-section{ margin-bottom:24px }
.metrics-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:12px;
}
.metric-card{
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--radius); padding:16px;
  transition:var(--transition);
}
.metric-card:hover{ border-color:rgba(255,255,255,0.12); transform:translateY(-2px) }
.metric-label{
  font-size:12px; color:var(--text3); margin-bottom:8px;
}
.metric-value{
  font-size:14px; color:var(--text); font-weight:500;
  display:flex; align-items:center; gap:6px;
}
.status-dot{
  width:8px; height:8px; border-radius:50%; display:inline-block;
}
.status-dot.online{ background:#22c55e; box-shadow:0 0 6px rgba(34,197,94,0.5) }

@media(max-width:768px){
  .metrics-grid{ grid-template-columns:repeat(2,1fr) }
}
@media(max-width:400px){
  .metrics-grid{ grid-template-columns:1fr }
}

/* 网站介绍 & 特别声明 */
.intro-section, .notice-section{ margin-bottom:24px }
.intro-body, .notice-body{
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--radius); padding:18px 20px;
  font-size:13px; color:var(--text2); line-height:1.8;
}
.notice-body{ color:var(--text3); line-height:1.9 }

/* 相关网站 */
.related-section{ margin-bottom:24px }
.no-related{ color:var(--text3); font-size:13px; padding:20px; text-align:center }

/* 右侧边栏 - 观影指南 */
.sidebar-block{
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:20px;
  position:sticky; top:80px;
}
.guide-list{ display:flex; flex-direction:column; gap:10px }
.guide-item{
  display:flex; align-items:center; gap:10px;
  padding:8px 0; border-bottom:1px solid var(--border);
  font-size:13px; color:var(--text2); transition:var(--transition);
  cursor:pointer;
}
.guide-item:last-child{ border-bottom:none }
.guide-item:hover{ color:var(--accent) }
.guide-num{
  width:20px; height:20px; border-radius:4px;
  background:var(--bg2); color:var(--text3);
  font-size:11px; font-weight:600;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.guide-item:nth-child(1) .guide-num{ background:rgba(22,144,255,0.15); color:var(--accent) }
.guide-item:nth-child(2) .guide-num{ background:rgba(22,144,255,0.12); color:#4AA8FF }
.guide-item:nth-child(3) .guide-num{ background:rgba(230,57,70,0.08); color:#ff8fa3 }
.guide-title{
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* ════════════════════════════════════════
   文章列表页样式
════════════════════════════════════════ */
.article-list-container{
  max-width:1200px; margin:0 auto; padding:30px 20px 60px;
}
.article-list-header{
  text-align:center; margin-bottom:32px;
}
.article-list-header h1{
  font-size:26px; font-weight:700; color:var(--text);
  margin-bottom:8px;
}
.article-list-desc{
  font-size:14px; color:var(--text3);
}

/* 全宽文章卡片 */
.article-cards{ display:flex; flex-direction:column; gap:16px }
.article-card-full{
  display:flex; gap:20px; padding:24px;
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--radius-lg); transition:var(--transition);
  text-decoration:none; color:inherit;
}
.article-card-full:hover{
  border-color:rgba(255,255,255,0.15); transform:translateY(-2px);
  box-shadow:var(--shadow);
}
.ac-full-left{
  flex-shrink:0; width:72px; height:72px;
  border-radius:var(--radius); background:var(--bg2);
  display:flex; align-items:center; justify-content:center;
  color:var(--text3); border:1px solid var(--border);
}
.ac-full-right{ flex:1; min-width:0 }
.ac-full-right h3{
  font-size:16px; font-weight:600; color:var(--text);
  margin-bottom:8px; line-height:1.4;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.ac-full-right p{
  font-size:13px; color:var(--text2); line-height:1.5;
  margin-bottom:10px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
  overflow:hidden;
}
.ac-full-meta{
  display:flex; gap:16px; font-size:12px; color:var(--text3);
}

@media(max-width:600px){
  .article-card-full{ flex-direction:column; gap:14px; padding:18px }
  .ac-full-left{ width:100%; height:48px; border-radius:8px }
}

/* 加载更多按钮 */
.load-more-wrap{ text-align:center; margin-top:24px }
.btn-load-more{
  background:var(--card); color:var(--text2);
  border:1px solid var(--border); border-radius:var(--radius);
  padding:10px 32px; font-size:14px; cursor:pointer;
  transition:var(--transition);
}
.btn-load-more:hover{
  border-color:var(--accent); color:var(--accent);
}

/* 分页 */
.pagination{
  display:flex; align-items:center; justify-content:center;
  gap:6px; margin-top:24px; padding-bottom:20px;
}
.page-btn{
  min-width:36px; height:36px; padding:0 10px;
  border:1px solid var(--border); border-radius:var(--radius);
  background:var(--card); color:var(--text2);
  font-size:14px; cursor:pointer; transition:var(--transition);
  display:flex; align-items:center; justify-content:center;
}
.page-btn:hover:not(:disabled){ border-color:var(--accent); color:var(--accent) }
.page-btn.active{ background:var(--accent); color:#fff; border-color:var(--accent) }
.page-btn:disabled{ opacity:0.4; cursor:not-allowed }
.page-dots{ color:var(--text3); font-size:14px; padding:0 4px }

/* ════════════════════════════════════════
   文章详情页样式
════════════════════════════════════════ */

/* 文章头部 */
.article-hero{
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:28px 32px;
  margin-bottom:24px;
}
.article-hero h1{
  font-size:24px; font-weight:700; color:var(--text);
  line-height:1.5; margin-bottom:16px;
}
.article-meta{
  display:flex; align-items:center; gap:20px;
  flex-wrap:wrap;
}
.article-meta-item{
  display:flex; align-items:center; gap:6px;
  font-size:13px; color:var(--text3);
}
.article-meta-item svg{ flex-shrink:0; opacity:0.6 }

@media(max-width:600px){
  .article-hero{ padding:20px }
  .article-hero h1{ font-size:20px }
}

/* 文章摘要 */
.article-summary-section{ margin-bottom:24px }
.article-summary-section .article-summary{
  background:var(--bg2);
  border-radius:0 var(--radius) var(--radius) 0;
  padding:16px 20px; font-size:14px; color:var(--text2);
  line-height:1.7;
}

/* 文章正文 */
.article-content-section{ margin-bottom:24px }
.article-body{
  background:var(--card);
  border-radius:var(--radius-lg); padding:32px;
  font-size:15px; line-height:1.9; color:var(--text2);
}

/* Markdown 渲染样式 */
.md-h1{
  font-size:22px; font-weight:700; color:var(--text);
  margin:32px 0 16px; padding-bottom:10px;
  border-bottom:1px solid var(--border);
}
.md-h2{
  font-size:19px; font-weight:700; color:var(--text);
  margin:28px 0 14px; padding-bottom:8px;
  border-bottom:1px solid var(--border);
}
.md-h3{
  font-size:16px; font-weight:600; color:var(--text);
  margin:24px 0 12px;
}
.md-p{ margin-bottom:12px }
.md-li{ margin-left:20px; margin-bottom:6px; list-style:disc }
.md-ul{ margin-bottom:16px }
.md-code-block{
  background:#0d1117; color:#c9d1d9;
  padding:16px 20px; border-radius:var(--radius);
  font-size:13px; line-height:1.6; overflow-x:auto;
  margin-bottom:16px; font-family:'Fira Code','Consolas',monospace;
}
.md-inline-code{
  background:var(--bg2); color:#e06c75;
  padding:2px 6px; border-radius:4px; font-size:13px;
  font-family:'Fira Code','Consolas',monospace;
}
.md-hr{
  border:none; border-top:1px solid var(--border);
  margin:28px 0;
}
.md-table{
  width:100%; border-collapse:collapse; margin-bottom:16px;
  font-size:13px;
}
.md-table td{
  padding:10px 14px; border:1px solid var(--border);
  text-align:left; color:var(--text2);
}
.md-table tr:nth-child(odd) td{ background:var(--bg2) }

@media(max-width:600px){
  .article-body{ padding:20px 16px; font-size:14px }
  .md-h1{ font-size:18px }
  .md-h2{ font-size:16px }
}

/* 相关文章列表 */
.related-article-item{
  display:flex; align-items:center; gap:12px;
  padding:14px 18px; margin-bottom:8px;
  background:var(--card); border:1px solid var(--border);
  border-radius:var(--radius); transition:var(--transition);
  text-decoration:none; color:inherit;
}
.related-article-item:hover{
  border-color:rgba(255,255,255,0.15); transform:translateX(4px);
}
.rai-dot{
  width:6px; height:6px; border-radius:50%;
  background:var(--accent); flex-shrink:0;
}
.rai-title{
  flex:1; font-size:14px; color:var(--text);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.rai-views{
  font-size:12px; color:var(--text3); flex-shrink:0;
}
