.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }


/* =============================================
   Base UI Components — 追加到各模板 style.css 末尾
   使用 CSS 属性选择器匹配不同模板的类名变体
   主题色通过 CSS 变量继承（各模板自定义）
   ============================================= */

/* === Class Name Mapping Fixes === */
/* Many templates have HTML class mismatches: .header vs .site-header, .footer vs .site-footer, etc. */

/* Header: basic layout — use nowrap so logo + nav stay on one row */
.header { position: sticky; top: 0; z-index: 1000; }
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: 60px; flex-wrap: nowrap; gap: 12px; }
header[class*="header"] { position: sticky; top: 0; z-index: 1000; }

/* Logo: keep on one line, truncate if absurdly long */
[class*="logo"] { flex-shrink: 0; max-width: 260px; }
[class*="logo"] a, [class*="logo-text"] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* Nav list items: nowrap on desktop so items never wrap to a new row */
.main-nav > ul, .nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; flex-wrap: nowrap; align-items: center; }
.main-nav > ul > li, .nav-list > li { position: relative; flex-shrink: 0; }
.main-nav > ul > li > a, .nav-list > li > a { 
  display: block; padding: 10px 14px; white-space: nowrap;
  text-decoration: none; font-size: 14px; transition: background 0.3s ease, color 0.3s ease;
}
.main-nav > ul > li > a:hover, .nav-list > li > a:hover { opacity: 0.8; }

/* Submenu: visibility + opacity transition (no hover flash) */
.main-nav li ul, .nav-list li ul, .subnav {
  visibility: hidden; opacity: 0; position: absolute; top: 100%; left: 0;
  min-width: 160px; z-index: 300; padding: 8px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: visibility 0.15s, opacity 0.15s ease;
}
.main-nav li:hover > ul, .nav-list li:hover > ul { visibility: visible; opacity: 1; }
.main-nav li ul a, .nav-list li ul a { padding: 8px 18px; display: block; white-space: nowrap; text-decoration: none; }
.main-nav li ul a:hover, .nav-list li ul a:hover { opacity: 0.8; }

/* Nav toggle (hamburger) */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; border-radius: 2px; transition: 0.3s; }
@media (max-width: 992px) {
  .header .container { flex-wrap: nowrap; }
}
@media (max-width: 768px) {
  .header .container { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .main-nav { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; width: 100%; }
  .main-nav.active { max-height: 90vh; overflow-y: auto; }
  .main-nav > ul { flex-direction: column; width: 100%; flex-wrap: wrap; }
  .main-nav > ul > li > a { padding: 12px 16px; border-bottom: 1px solid rgba(128,128,128,0.1); }
  .main-nav li ul { position: static; box-shadow: none; padding-left: 16px; }
}

/* Footer: layout only, colors from template CSS */
.footer { padding: 50px 0 0; }
.footer .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
footer[class*="footer"] .footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(128,128,128,0.2); }
@media(max-width:992px){ footer[class*="footer"] .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:768px){ footer[class*="footer"] .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-family: var(--font-serif, inherit); color: #fff; font-size: 1rem; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 14px; transition: color 0.3s ease; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* --- Buttons --- */
[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  line-height: 1.4;
}
[class*="btn"][class*="primary"],
[class*="btn-primary"] {
  background: var(--primary, #2563eb);
  color: #fff;
}
[class*="btn"][class*="primary"]:hover,
[class*="btn-primary"]:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
[class*="btn"][class*="outline"],
[class*="btn-outline"] {
  background: transparent;
  color: var(--primary, #2563eb);
  border: 2px solid var(--primary, #2563eb);
}
[class*="btn"][class*="outline"]:hover,
[class*="btn-outline"]:hover {
  background: var(--primary, #2563eb);
  color: #fff;
}
[class*="btn"][class*="white"],
[class*="btn-white"] {
  background: #fff;
  color: var(--primary, #2563eb);
}
[class*="btn"][class*="white"]:hover,
[class*="btn-white"]:hover {
  background: rgba(255,255,255,0.85);
}
[class*="btn"][class*="lg"],
[class*="btn-lg"] {
  padding: 16px 36px;
  font-size: 1.05rem;
}
[class*="btn"][class*="sm"],
[class*="btn-sm"] {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* --- Cards --- */
[class*="card"] {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
[class*="card"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
[class*="card"] a {
  text-decoration: none;
  color: inherit;
}
[class*="card"] h3,
[class*="card"] h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text, #1e293b);
}
[class*="card"] p {
  color: var(--gray, #64748b);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Grids --- */
[class*="grid"] {
  display: grid;
  gap: 24px;
}

/* --- Section / Page Sections --- */
[class*="section"] {
  padding: 80px 0;
}
[class*="section"][class*="alt"],
[class*="section"][class*="dark"],
[class*="section-bg-dark"],
[class*="section"][class*="gray"],
[class*="section"][class*="grey"] {
  background: var(--gray-100, #f1f5f9);
}
[class*="section-header"] {
  text-align: center;
  margin-bottom: 48px;
}
[class*="section-title"] {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text, #0f172a);
  margin-bottom: 8px;
}
[class*="section-subtitle"],
[class*="section-desc"],
[class*="section-header"] p {
  color: var(--gray, #64748b);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}
[class*="section-more"] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary, #2563eb);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}
[class*="section-more"]:hover {
  opacity: 0.8;
}

/* --- Hero --- */
[class*="hero"] {
  padding: 100px 0 80px;
  background: var(--primary, #2563eb);
  color: #fff;
  position: relative;
  overflow: hidden;
}
[class*="hero"] h1,
[class*="hero"] [class*="title"] {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}
[class*="hero"] p {
  font-size: 1.1rem;
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 32px;
  color: rgba(255,255,255,0.85);
}
[class*="hero-badge"] {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 24px;
}
[class*="hero-actions"] {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Tags / Labels / Badges --- */
[class*="tag"],
[class*="label"],
[class*="badge"] {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--primary-light, #dbeafe);
  color: var(--primary, #2563eb);
  text-decoration: none;
}

/* --- Meta / Info lines --- */
[class*="meta"] {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--gray, #94a3b8);
}
[class*="meta"] span {
  white-space: nowrap;
}

/* --- Links with arrows --- */
[class*="link"]:not([class*="nav"]):not([class*="footer"]) {
  color: var(--primary, #2563eb);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.3s;
}
[class*="link"]:not([class*="nav"]):not([class*="footer"]):hover {
  opacity: 0.8;
}

/* --- News / Article items --- */
[class*="news"] article,
[class*="news"] [class*="item"],
[class*="article"] {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100, #f1f5f9);
}
[class*="news"] h3,
[class*="news"] h3 a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text, #1e293b);
  text-decoration: none;
}
[class*="news"] h3 a:hover {
  color: var(--primary, #2563eb);
}

/* --- Category / Feature icons --- */
[class*="icon"] {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Empty state --- */
[class*="empty"] {
  text-align: center;
  padding: 40px 0;
  color: var(--gray, #94a3b8);
  font-size: 0.95rem;
}

/* --- Stats counter --- */
[class*="stat"] [class*="number"],
[class*="stat"] [class*="num"] {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary, #2563eb);
  line-height: 1;
}
[class*="stat"] [class*="label"] {
  font-size: 0.9rem;
  color: var(--gray, #64748b);
  margin-top: 4px;
}

/* --- CTA --- */
[class*="cta"] {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--primary, #2563eb), var(--secondary, #0891b2));
  color: #fff;
  border-radius: 16px;
}
[class*="cta"] h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
[class*="cta"] p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.85);
}

/* --- Partner / client logos --- */
[class*="partner"],
[class*="client"] {
  opacity: 0.6;
  transition: opacity 0.3s;
}
[class*="partner"]:hover,
[class*="client"]:hover {
  opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  [class*="grid"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [class*="hero"] h1 {
    font-size: 2rem;
  }
  [class*="section-title"] {
    font-size: 1.6rem;
  }
}
@media (max-width: 768px) {
  [class*="grid"] {
    grid-template-columns: 1fr !important;
  }
  [class*="hero"] {
    padding: 60px 0;
  }
  [class*="hero"] h1 {
    font-size: 1.65rem;
  }
  [class*="section"] {
    padding: 48px 0;
  }
  [class*="btn"] {
    padding: 10px 22px;
  }
  [class*="cta"] {
    padding: 48px 16px;
  }
}

/* Skip-to-content link (accessibility) */
.skip-link {
  position: absolute; top: -100%; left: 50%; z-index: 9999;
  transform: translateX(-50%);
  background: #2563eb; color: #fff; padding: 8px 20px; border-radius: 0 0 8px 8px;
  font-size: 14px; text-decoration: none; white-space: nowrap;
}
.skip-link:focus { top: 0; }

/* Article subtitle (extracted from inline style) */
.article-subtitle {
  color: #888; font-size: 1.05rem; line-height: 1.6; margin: -8px 0 16px 0;
}

/* --- Advertisement slots --- */
.ad-slot {
  margin: 16px 0;
  position: relative;
}
.ad-slot:first-child { margin-top: 0; }
.ad-slot img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.ad-item { margin-bottom: 12px; }
.ad-item:last-child { margin-bottom: 0; }
.ad-item-card {
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  background: #f8fafc;
}
.ad-item-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #1f2937;
}
.ad-item-card p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.5;
}
.ad-item-text a {
  color: #2563eb;
  text-decoration: underline;
}
.header-banner, .footer-banner {
  background: #f8fafc;
}
.header-banner .ad-slot,
.footer-banner .ad-slot {
  margin: 0 auto;
  max-width: 1200px;
  padding: 12px 16px;
}

/* === Template Specific Fixes (auto-added) === */
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.site-header .container, .site-header .header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.site-header .logo a { font-size: 1.2rem; font-weight: 700; color: var(--primary, #2563eb); text-decoration: none; white-space: nowrap; }
.site-header .nav-toggle, .site-header button { display: none; background: none; border: none; cursor: pointer; font-size: 20px; }
.site-header .main-nav, .site-header nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 0; flex-wrap: nowrap; align-items: center; }
.site-header .main-nav li a, .site-header nav ul li a { display: block; padding: 10px 14px; white-space: nowrap; text-decoration: none; font-size: 14px; color: #333; transition: color .2s; }
.site-header .main-nav li a:hover, .site-header .main-nav li.active a, .site-header nav ul li a:hover { color: var(--primary, #2563eb); }

.hero { padding: 80px 0 60px; background: linear-gradient(135deg, var(--primary, #2563eb), var(--secondary, #0891b2)); color: #fff; text-align: center; }
.hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; color: #fff; }
.hero p, .hero .hero-subtitle { font-size: 1.1rem; opacity: .85; max-width: 600px; margin: 0 auto; color: rgba(255,255,255,.85); }

.page-breadcrumb { padding: 16px 0; font-size: .9rem; color: #64748b; }
.page-breadcrumb a { color: var(--primary, #2563eb); text-decoration: none; }

.page-body, .list-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; padding: 40px 0; }
.list-main { min-width: 0; }

.article-header h1 { font-size: 1.8rem; font-weight: 800; color: #1e293b; margin-bottom: 8px; }
.article-meta { color: #64748b; font-size: .9rem; margin-bottom: 16px; }
.article-body { line-height: 1.8; color: #333; }
.article-body h2 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 12px; color: #1e293b; }
.article-body p { margin-bottom: 16px; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; }

.pagination { display: flex; justify-content: center; gap: 6px; padding: 32px 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 6px; text-decoration: none; font-size: .9rem; border: 1px solid #e2e8f0; color: #475569; transition: all .2s; }
.pagination a:hover { background: var(--primary, #2563eb); color: #fff; border-color: var(--primary, #2563eb); }
.pagination .current { background: var(--primary, #2563eb); color: #fff; border-color: var(--primary, #2563eb); }

.sidebar .widget, .sidebar-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.06); padding: 20px; margin-bottom: 20px; }
.sidebar .widget h3, .sidebar-title { font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: #1e293b; }
.sidebar .widget ul { list-style: none; padding: 0; }
.sidebar .widget li { padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
.sidebar .widget li a { color: #475569; text-decoration: none; font-size: .9rem; }
.sidebar .widget li a:hover { color: var(--primary, #2563eb); }

.cta { text-align: center; padding: 60px 24px; background: linear-gradient(135deg, var(--primary, #2563eb), var(--secondary, #0891b2)); color: #fff; margin: 40px 0; border-radius: 12px; }
.cta h2 { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.cta p { font-size: 1rem; opacity: .9; margin-bottom: 20px; color: rgba(255,255,255,.9); }
.btn-cta { display: inline-block; background: #fff; color: var(--primary, #2563eb); padding: 12px 32px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: transform .2s, box-shadow .2s; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.15); }

.city-links-section, .friend-links-section { padding: 40px 0; border-top: 1px solid #e2e8f0; }
.city-links-section h3, .friend-links-section h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; color: #1e293b; }
.city-links-grid, .friend-links { display: flex; flex-wrap: wrap; gap: 8px; }
.city-links-grid a, .friend-links a { display: inline-block; padding: 6px 14px; background: #f1f5f9; border-radius: 4px; color: #475569; text-decoration: none; font-size: .85rem; transition: background .2s, color .2s; }
.city-links-grid a:hover, .friend-links a:hover { background: var(--primary, #2563eb); color: #fff; }

.float-top { position: fixed; right: 20px; bottom: 80px; width: 44px; height: 44px; background: var(--primary, #2563eb); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); z-index: 999; font-size: 18px; transition: opacity .2s; }
.float-top:hover { opacity: .85; }

.empty-state { text-align: center; padding: 60px 0; color: #94a3b8; }

@media (max-width: 992px) {
  .page-body, .list-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .site-header .nav-toggle, .site-header button { display: block; }
  .site-header .main-nav, .site-header nav ul { display: none; flex-direction: column; width: 100%; }
  .site-header .main-nav.active, .site-header nav ul.active { display: flex; position: absolute; top: 60px; left: 0; right: 0; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.1); z-index: 999; }
  .site-header .main-nav li a, .site-header nav ul li a { padding: 12px 20px; border-bottom: 1px solid #f1f5f9; }
  .hero h1 { font-size: 1.5rem; }
}

/* === Page-specific fixes (auto-added) === */
.breadcrumb { padding: 16px 0; font-size: .9rem; color: #64748b; }
.breadcrumb a { color: var(--primary, #2563eb); text-decoration: none; }
.breadcrumb .sep { margin: 0 8px; color: #cbd5e1; }
.section { padding: 40px 0; }
.content-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.main-content { min-width: 0; }
.article-detail h1 { font-size: 1.8rem; font-weight: 800; color: #1e293b; margin-bottom: 12px; line-height: 1.3; }
.article-detail .meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: .9rem; color: #64748b; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #f1f5f9; }
.article-cover { margin-bottom: 24px; border-radius: 12px; overflow: hidden; }
.article-content { line-height: 1.8; color: #374151; font-size: 1rem; }
.article-content h2 { font-size: 1.3rem; font-weight: 700; color: #1e293b; margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #f1f5f9; }
.article-content p { margin-bottom: 16px; }
.article-content a { color: var(--primary, #2563eb); text-decoration: none; }
.article-content a:hover { text-decoration: underline; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.related-articles { margin-top: 48px; padding-top: 32px; border-top: 1px solid #e5e7eb; }
.related-articles h3 { font-size: 1.2rem; font-weight: 700; color: #1e293b; margin-bottom: 20px; }
.related-articles .article-list { display: grid; gap: 12px; }
.related-articles .article-item { padding: 16px; background: #f8fafc; border-radius: 8px; transition: background .2s; }
.related-articles .article-item:hover { background: #f1f5f9; }
.related-articles .article-item h2 { font-size: 1rem; font-weight: 600; margin: 0 0 4px; }
.related-articles .article-item h2 a { color: #1e293b; text-decoration: none; }
.related-articles .article-item h2 a:hover { color: var(--primary, #2563eb); }
.related-articles .article-item .meta { font-size: .8rem; color: #94a3b8; margin: 0; border: 0; padding: 0; }
.prev-next { margin-top: 32px; padding-top: 24px; border-top: 1px solid #e5e7eb; }
.prev-next a { display: block; padding: 16px; background: #f8fafc; border-radius: 8px; color: #1e293b; text-decoration: none; font-weight: 500; transition: background .2s; }
.prev-next a:hover { background: #f1f5f9; color: var(--primary, #2563eb); }
.sidebar .widget { background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.06); padding: 20px; margin-bottom: 20px; }
.sidebar .widget h4 { font-size: 1rem; font-weight: 700; color: #1e293b; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--primary, #2563eb); }
.side-nav { list-style: none; padding: 0; margin: 0; }
.side-nav > li { margin-bottom: 8px; }
.side-nav > li > a { display: block; padding: 8px 12px; background: #f0f5ff; border-radius: 6px; font-weight: 600; font-size: 14px; color: #1e3a5f; text-decoration: none; }
.side-nav > li > a:hover { background: #dbeafe; color: var(--primary, #2563eb); }
.side-nav > li > ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 2px 8px; list-style: none; padding: 6px 0 0 4px; margin: 0; }
.side-nav > li > ul > li { font-size: 12px; line-height: 1.6; }
.side-nav > li > ul > li a { color: #6b7280; display: block; padding: 3px 0; text-decoration: none; }
.side-nav > li > ul > li a:hover { color: var(--primary, #2563eb); }
.hot-list { list-style: none; padding: 0; margin: 0; }
.hot-list li { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.hot-list li:last-child { border-bottom: none; }
.hot-list .num { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; background: #e2e8f0; border-radius: 4px; font-size: 11px; font-weight: 700; color: #64748b; flex-shrink: 0; margin-top: 2px; }
.hot-list li:nth-child(1) .num, .hot-list li:nth-child(2) .num, .hot-list li:nth-child(3) .num { background: var(--primary, #2563eb); color: #fff; }
.hot-list a { color: #475569; text-decoration: none; font-size: .85rem; line-height: 1.5; }
.hot-list a:hover { color: var(--primary, #2563eb); }
.site-footer { background: #1e293b; color: #fff; padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-col h4 { font-size: 1rem; font-weight: 600; margin-bottom: 14px; color: #fff; }
.footer-col p { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.7; margin: 4px 0; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: 14px; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 13px; color: rgba(255,255,255,.5); }
.float-top { position: fixed; right: 20px; bottom: 80px; width: 44px; height: 44px; background: var(--primary, #2563eb); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); z-index: 999; font-size: 18px; text-decoration: none; }
.float-top:hover { opacity: .85; }
@media (max-width: 992px) { .content-with-sidebar { grid-template-columns: 1fr; } .sidebar { margin-top: 32px; } }
@media (max-width: 768px) { .article-detail h1 { font-size: 1.4rem; } .footer-grid { grid-template-columns: 1fr; } }
