/* articles.css — 深色版（配合 dark.css 变量），覆盖：资讯聚合 hub / 文章栏目 ac- / 标签 tag- / 通用正文 */

/* ===== 通用正文排版 ===== */
.content-body { font-size: 1rem; line-height: 2; color: var(--body-color); }
.content-body p { margin-bottom: 18px; }
.content-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 24px 0; border: 1px solid var(--border); }
.content-body h2, .content-body h3 { font-weight: 700; margin: 32px 0 14px; color: var(--title-color); }
.content-body h2 { font-size: 1.5rem; }
.content-body h3 { font-size: 1.2rem; }
.content-body ul, .content-body ol { padding-left: 24px; margin-bottom: 18px; }
.content-body li { margin-bottom: 8px; }
.content-body blockquote {
  border-left: 4px solid var(--accent);
  background: var(--card-2); padding: 16px 20px;
  border-radius: 0 10px 10px 0; margin: 20px 0;
  color: var(--text); font-style: italic;
}
.content-body a { color: var(--accent2); text-decoration: underline; }
.content-body a:hover { color: var(--accent); }
.content-body table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.content-body th, .content-body td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; color: var(--body-color); }
.content-body th { background: var(--card-2); color: var(--title-color); font-weight: 600; }

/* ===== 面包屑（共用） ===== */
.breadcrumb-bar { background: var(--bg-2); padding: 12px 0; }
.breadcrumb-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: .85rem; color: var(--muted); }
.breadcrumb-inner a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; padding: 2px 8px; border-radius: 6px; transition: all .2s; }
.breadcrumb-inner a:hover { color: var(--accent2); background: var(--card); }
.breadcrumb-sep { color: var(--muted); display: inline-flex; align-items: center; }
.breadcrumb-current { color: var(--text); font-weight: 600; padding: 2px 8px; background: var(--card); border-radius: 6px; }

/* ===== 通用横幅（article_hub 等复用） ===== */
.page-hero {
  position: relative; padding: 168px 0 96px;
  background: linear-gradient(180deg, #0d1117 0%, #10151d 100%);
  color: #fff; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -40%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,92,51,.14) 0%, transparent 70%);
  border-radius: 50%; z-index: 0; pointer-events: none;
}
.page-hero.hero-has-bg::after {
  content: ''; position: absolute; inset: 0; width: auto; height: auto; top: 0; right: 0; border-radius: 0;
  background: linear-gradient(180deg, rgba(13,17,23,.72) 0%, rgba(13,17,23,.94) 100%);
  z-index: 1;
}
.page-hero .hero-custom-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.page-hero.hero-ov::after { display: none; }
.page-hero .hero-inner { position: relative; z-index: 2; text-align: center; }
.page-hero .hero-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.page-hero .hero-breadcrumb a { color: var(--muted); }
.page-hero .hero-breadcrumb a:hover { color: var(--accent2); }
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 12px; line-height: 1.25; color: #fff; }
.page-hero p { font-size: clamp(.95rem, 1.3vw, 1.05rem); color: rgba(230,237,243,.75); max-width: 820px; margin: 0 auto; line-height: 1.8; }

/* ===== 资讯聚合 hub-*（article_hub） ===== */
.hub-section { padding: 72px 0; }
.hub-section:last-of-type { padding-bottom: 88px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.hub-card {
  display: block; background: var(--card); border-radius: 16px; padding: 28px;
  border: 1px solid var(--border); text-decoration: none; transition: all .35s ease;
}
.hub-card:hover { transform: translateY(-6px); border-color: rgba(255,92,51,.45); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.hub-card-img { margin: -28px -28px 20px; border-radius: 16px 16px 0 0; overflow: hidden; height: 180px; background: var(--card-2); }
.hub-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hub-card:hover .hub-card-img img { transform: scale(1.05); }
.hub-card-title { font-size: 1.15rem; font-weight: 700; color: var(--title-color); margin: 0 0 10px; line-height: 1.45; transition: color .3s ease; }
.hub-card:hover .hub-card-title { color: var(--accent2); }
.hub-card-summary { font-size: .9rem; color: var(--body-color); line-height: 1.75; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hub-card-meta { font-size: .85rem; color: var(--muted); }

/* ===== 文章栏目页 ac-*（article_class） ===== */
.ac-content-section { padding: 72px 0 88px; background: var(--bg); min-height: 600px; }
.ac-content-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }

.ac-sidebar { position: sticky; top: 100px; align-self: start; }
.ac-sidebar-card { background: var(--card); border-radius: 18px; padding: 26px; margin-bottom: 24px; border: 1px solid var(--border); }
.ac-sidebar-header { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; font-weight: 700; color: var(--title-color); margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.ac-sidebar-header svg { color: var(--accent2); flex-shrink: 0; }
.ac-sidebar-nav { display: flex; flex-direction: column; gap: 8px; }
.ac-nav-item {
  display: flex; align-items: center; justify-content: space-between; padding: 13px 18px;
  background: var(--card-2); border-radius: 12px; color: var(--body-color);
  text-decoration: none; font-weight: 500; font-size: .95rem; transition: all .3s ease; border: 1px solid transparent;
}
.ac-nav-item:hover { background: rgba(255,92,51,.08); color: var(--accent2); border-color: rgba(255,92,51,.3); transform: translateX(4px); }
.ac-nav-item svg { opacity: 0; transform: translateX(-10px); transition: all .3s ease; }
.ac-nav-item:hover svg { opacity: 1; transform: translateX(0); }
.ac-nav-active { background: linear-gradient(135deg, var(--accent), #e5471d); color: #fff; border-color: transparent; }
.ac-nav-active svg { opacity: 1; transform: translateX(0); color: #fff; }

.ac-contact-card { background: linear-gradient(150deg, var(--card-2) 0%, #1a1410 100%); color: #fff; border: 1px solid rgba(255,92,51,.35); }
.ac-contact-icon { width: 54px; height: 54px; background: rgba(255,92,51,.15); border: 1px solid rgba(255,92,51,.35); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--accent2); }
.ac-contact-card h4 { font-size: 1.15rem; font-weight: 700; text-align: center; margin: 0 0 10px; color: #fff; }
.ac-contact-card p { font-size: .9rem; text-align: center; color: var(--body-color); margin: 0 0 20px; line-height: 1.7; }
.ac-contact-btn { display: block; width: 100%; padding: 13px 20px; background: linear-gradient(135deg, var(--accent), #e5471d); color: #fff; text-align: center; font-weight: 600; text-decoration: none; border-radius: 12px; transition: all .3s ease; font-size: .95rem; }
.ac-contact-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,92,51,.4); }

.ac-main { min-width: 0; }
.ac-class-detail { margin-bottom: 32px; font-size: .95rem; line-height: 1.85; color: var(--body-color); }
.ac-class-detail a { color: var(--accent2); }
.ac-list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.ac-list-title { font-size: 1.7rem; font-weight: 800; color: var(--title-color); margin: 0; }
.ac-list-count { font-size: .95rem; color: var(--muted); }
.ac-list-count strong { color: var(--accent); font-weight: 700; font-size: 1.1rem; }

.ac-article-list { display: flex; flex-direction: column; gap: 24px; }
.ac-article-card {
  background: var(--card); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); transition: all .3s ease; display: flex; gap: 0;
}
.ac-article-card:hover { transform: translateY(-4px); border-color: rgba(255,92,51,.45); box-shadow: 0 16px 44px rgba(0,0,0,.5); }
.ac-article-thumb { width: 280px; flex-shrink: 0; position: relative; overflow: hidden; background: var(--card-2); }
.ac-article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ac-article-card:hover .ac-article-thumb img { transform: scale(1.05); }
.ac-article-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,92,51,.12) 0%, transparent 55%); }
.ac-article-content { flex: 1; padding: 24px; display: flex; flex-direction: column; }
.ac-article-tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.ac-tag { display: inline-block; padding: 4px 12px; background: rgba(255,184,107,.1); color: var(--accent2); border: 1px solid rgba(255,184,107,.22); font-size: .78rem; font-weight: 600; border-radius: 999px; }
.ac-article-title { font-size: 1.28rem; font-weight: 700; margin: 0 0 12px; line-height: 1.45; }
.ac-article-title a { color: var(--title-color); text-decoration: none; transition: color .3s ease; }
.ac-article-title a:hover { color: var(--accent2); }
.ac-article-summary { color: var(--body-color); font-size: .95rem; line-height: 1.75; margin: 0 0 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ac-article-meta { display: flex; gap: 20px; align-items: center; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.ac-meta-date { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; }
.ac-meta-date svg { width: 14px; height: 14px; }

.ac-article-featured { border-color: rgba(255,92,51,.5); background: linear-gradient(135deg, rgba(255,92,51,.06) 0%, var(--card) 55%); position: relative; }
.ac-article-featured::before {
  content: '推荐'; position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: .72rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), #e5471d); padding: 4px 12px; border-radius: 999px;
}

.ac-empty { text-align: center; padding: 80px 20px; }
.ac-empty-icon { width: 80px; height: 80px; margin: 0 auto 20px; background: var(--card); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.ac-empty h3 { font-size: 1.3rem; font-weight: 700; color: var(--title-color); margin: 0 0 10px; }
.ac-empty p { font-size: .95rem; color: var(--muted); margin: 0; }

.ac-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 48px; }
.ac-page-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--body-color); text-decoration: none; transition: all .3s ease; }
.ac-page-btn svg { width: 16px; height: 16px; }
.ac-page-btn:hover { border-color: rgba(255,92,51,.5); color: var(--accent2); background: rgba(255,92,51,.06); }
.ac-page-btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.ac-page-numbers { display: flex; align-items: center; gap: 8px; }
.ac-page-num { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--body-color); text-decoration: none; transition: all .3s ease; }
.ac-page-num:hover { border-color: rgba(255,92,51,.5); color: var(--accent2); }
.ac-page-num.is-active { background: linear-gradient(135deg, var(--accent), #e5471d); color: #fff; border-color: transparent; box-shadow: 0 8px 22px rgba(255,92,51,.35); }
.ac-page-dots { color: var(--muted); padding: 0 8px; }

@media(max-width: 1024px) {
  .ac-content-wrap { grid-template-columns: 1fr; }
  .ac-sidebar { position: static; }
  .ac-article-thumb { width: 220px; }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 768px) {
  .page-hero { padding: 116px 0 56px; }
  .ac-content-section { padding: 48px 0 64px; }
  .ac-article-card { flex-direction: column; }
  .ac-article-thumb { width: 100%; height: 200px; }
  .ac-list-title { font-size: 1.4rem; }
  .ac-pagination { flex-wrap: wrap; gap: 12px; }
  .ac-page-numbers { order: -1; width: 100%; justify-content: center; }
  .hub-section { padding: 48px 0; }
  .hub-grid { grid-template-columns: 1fr; }
  .hub-card { padding: 20px; }
}
@media(max-width: 480px) {
  .ac-article-title { font-size: 1.1rem; }
  .ac-article-summary { -webkit-line-clamp: 2; }
  .ac-list-header { flex-direction: column; gap: 8px; align-items: flex-start; }
  .hub-card-title { font-size: 1.05rem; }
}

/* ===== 标签聚合页 tag-*（tag_articles） ===== */
.tag-list-section { padding: 72px 0 88px; background: var(--bg); min-height: 500px; }
.tag-list-items { display: flex; flex-direction: column; gap: 20px; }
.tag-list-item { display: block; padding: 28px; text-decoration: none; }
.tag-list-item-title { font-size: 1.2rem; font-weight: 700; color: var(--title-color); margin: 0 0 12px; line-height: 1.45; transition: color .3s ease; }
.tag-list-item:hover .tag-list-item-title { color: var(--accent2); }
.tag-list-item-summary { font-size: .95rem; color: var(--body-color); line-height: 1.85; margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tag-list-item-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag-list-item-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); }
.tag-list-item-date { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.tag-list-item-date svg { width: 14px; height: 14px; }
.tag-list-item-more { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--accent2); transition: all .3s ease; }
.tag-list-item-more svg { width: 14px; height: 14px; transition: transform .3s ease; }
.tag-list-item:hover .tag-list-item-more svg { transform: translateX(4px); }

.tag-list-empty { text-align: center; padding: 80px 20px; }
.tag-list-empty-icon { width: 80px; height: 80px; margin: 0 auto 20px; background: var(--card); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.tag-list-empty-icon svg { width: 44px; height: 44px; }
.tag-list-empty h3 { font-size: 1.3rem; font-weight: 700; color: var(--title-color); margin: 0 0 10px; }
.tag-list-empty p { font-size: .95rem; color: var(--muted); margin: 0; }

.tag-list-pagination { display: flex; align-items: center; justify-content: center; margin-top: 48px; }
.tag-page-numbers { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tag-page-num { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--body-color); text-decoration: none; transition: all .3s ease; }
.tag-page-num:hover { border-color: rgba(255,92,51,.5); color: var(--accent2); }
.tag-page-num.is-active { background: linear-gradient(135deg, var(--accent), #e5471d); color: #fff; border-color: transparent; box-shadow: 0 8px 22px rgba(255,92,51,.35); }

@media(max-width: 768px) {
  .tag-list-section { padding: 48px 0 64px; }
  .tag-list-item { padding: 20px; }
  .tag-list-item-footer { flex-direction: column; gap: 12px; align-items: flex-start; }
}
@media(max-width: 480px) {
  .tag-list-item-title { font-size: 1.05rem; }
}

/* ===== 文章栏目页·现代模板（article_class_modern） ===== */
.acm-filter { padding: 28px 0 0; background: var(--bg); }
.acm-filter-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.acm-chip { display: inline-flex; align-items: center; padding: 9px 20px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); color: var(--body-color); font-size: .88rem; font-weight: 600; text-decoration: none; transition: all .3s ease; }
.acm-chip:hover { border-color: rgba(255,92,51,.5); color: var(--accent2); }
.acm-chip.is-active { background: linear-gradient(135deg, var(--accent), #e5471d); color: #fff; border-color: transparent; box-shadow: 0 8px 22px rgba(255,92,51,.35); }
.acm-section { padding: 56px 0 88px; background: var(--bg); min-height: 500px; }
.acm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.acm-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; text-decoration: none; transition: all .35s ease; }
.acm-card:hover { transform: translateY(-6px); border-color: rgba(255,92,51,.45); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.acm-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.acm-card-date { font-size: .82rem; color: var(--muted); }
.acm-card-title { font-size: 1.2rem; font-weight: 700; color: var(--title-color); margin: 0 0 12px; line-height: 1.45; transition: color .3s ease; }
.acm-card:hover .acm-card-title { color: var(--accent2); }
.acm-card-summary { font-size: .92rem; color: var(--body-color); line-height: 1.8; margin: 0 0 20px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acm-card-more { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--accent2); }
.acm-card-more svg { width: 14px; height: 14px; transition: transform .3s ease; }
.acm-card:hover .acm-card-more svg { transform: translateX(4px); }
@media(max-width: 768px) {
  .acm-section { padding: 40px 0 64px; }
  .acm-grid { grid-template-columns: 1fr; }
  .acm-card { padding: 22px; }
}

/* ===== 淡入动画 ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: all .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }