/* ============================================================
   全局基础
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; font-size: 16px; }
body {
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #f5f0eb;
  color: #2d2d2d;
  line-height: 1.75;
  min-width: 320px;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #c0392b; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, button { font-family: inherit; }

/* ============================================================
   CSS 变量
============================================================ */
:root {
  --primary: #c0392b;
  --primary-dark: #a93226;
  --primary-light: #fdecea;
  --accent: #e67e22;
  --text-main: #2d2d2d;
  --text-muted: #888;
  --text-light: #bbb;
  --bg-body: #f5f0eb;
  --bg-card: #fff;
  --bg-header: #1a0a0a;
  --bg-footer: #1a0a0a;
  --border: #ece5de;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 14px rgba(0,0,0,.08);
  --shadow-hover: 0 6px 24px rgba(192,57,43,.15);
  --container: 1240px;
  --sidebar-w: 300px;
  --gap: 28px;
}

/* ============================================================
   工具类
============================================================ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  min-width: 0;
}

/* ============================================================
   Header
============================================================ */
.site-header {
  background: var(--bg-header);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.header-inner { max-width: var(--container); margin: 0 auto; padding: 0 20px; min-width: 0; }

.header-top-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
}

/* Logo */
.site-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}
.logo-text {
  font-size: 22px; font-weight: 900; color: #fff;
  letter-spacing: -0.5px; line-height: 1;
}
.logo-badge {
  background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 20px; white-space: nowrap;
  letter-spacing: 0.5px;
}

/* Search */
.header-search-wrap { flex: 1; min-width: 0; max-width: 360px; margin-left: auto; }
.search-form {
  display: flex; align-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 25px; overflow: hidden;
  transition: border-color .2s;
}
.search-form:focus-within { border-color: var(--primary); background: rgba(255,255,255,.15); }
.search-input {
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  padding: 8px 14px; color: #fff; font-size: 13px;
}
.search-input::placeholder { color: rgba(255,255,255,.5); }
.search-btn {
  background: var(--primary); border: none; cursor: pointer;
  padding: 8px 14px; color: #fff; display: flex; align-items: center;
  transition: background .2s; flex-shrink: 0;
}
.search-btn:hover { background: var(--primary-dark); }

/* Nav Toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  flex-shrink: 0;
}
.hamburger {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.active .hamburger:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .hamburger:nth-child(2) { opacity: 0; }
.nav-toggle.active .hamburger:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav */
.site-nav {
  display: flex; align-items: center; flex-wrap: wrap;
  padding: 0; gap: 2px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.site-nav a {
  display: block; padding: 9px 14px;
  color: rgba(255,255,255,.82); font-size: 14px; font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  white-space: nowrap;
  overflow-wrap: anywhere; word-break: break-word;
}
.site-nav a:hover, .site-nav a.active { color: #fff; background: rgba(192,57,43,.55); }
.site-nav a.nav-home { color: #fff; font-weight: 700; }

/* ============================================================
   Main layout
============================================================ */
.site-main { padding: 28px 0 40px; min-width: 0; }

/* ============================================================
   Home
============================================================ */
.home-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
  gap: var(--gap);
  margin-top: 28px;
  align-items: start;
}

/* Banner */
.home-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  margin-bottom: 36px;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.banner-featured { position: relative; min-width: 0; }
.banner-card-link { display: block; position: relative; }
.banner-img-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.banner-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.banner-card-link:hover .banner-img-wrap img { transform: scale(1.04); }
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,5,5,.75) 0%, transparent 55%);
}
.banner-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 22px 18px;
  min-width: 0;
}
.banner-tag {
  display: inline-block; background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 20px;
  margin-bottom: 8px; letter-spacing: 0.5px;
}
.banner-title {
  font-size: clamp(16px, 2.2vw, 22px); font-weight: 800; color: #fff;
  line-height: 1.4;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere; word-break: break-word;
}
.banner-meta { color: rgba(255,255,255,.7); font-size: 12px; margin-top: 6px; }

.banner-side-list { padding: 16px 14px; min-width: 0; display: flex; flex-direction: column; }
.banner-side-header { margin-bottom: 10px; }
.section-label { font-size: 13px; font-weight: 700; color: var(--primary); }
.hot-label { }
.banner-side-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--text-main); min-width: 0;
  transition: color .2s;
}
.banner-side-item:last-child { border-bottom: none; }
.banner-side-item:hover { color: var(--primary); }
.side-rank-dot {
  flex-shrink: 0; width: 7px; height: 7px;
  border-radius: 50%; background: var(--primary); opacity: .6;
}
.side-title {
  flex: 1; min-width: 0;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  overflow-wrap: anywhere; word-break: break-word;
}
.side-views { flex-shrink: 0; font-size: 11px; color: var(--text-muted); }

/* Section header */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; min-width: 0; }
.section-title {
  font-size: 18px; font-weight: 800; color: var(--text-main);
  display: flex; align-items: center; gap: 6px;
}
.title-accent { font-size: 18px; }
.section-more { font-size: 13px; color: var(--primary); white-space: nowrap; }
.section-more:hover { text-decoration: underline; }
.home-section { margin-bottom: 36px; }

/* Card Grid */
.card-grid { display: grid; gap: 20px; }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.news-card {
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  min-width: 0;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-thumb-link { display: block; }
.card-thumb-wrap { position: relative; aspect-ratio: 8/5; overflow: hidden; }
.card-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.news-card:hover .card-thumb-wrap img { transform: scale(1.06); }
.card-category-badge {
  position: absolute; top: 10px; left: 10px;
}
.card-category-badge a {
  display: inline-block; background: rgba(192,57,43,.88); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px;
}
.card-body { padding: 14px 16px 16px; }
.card-title {
  font-size: 15px; font-weight: 700; line-height: 1.45;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px; min-width: 0;
  overflow-wrap: anywhere; word-break: break-word;
}
.card-title a { color: var(--text-main); }
.card-title a:hover { color: var(--primary); }
.card-intro {
  font-size: 13px; color: var(--text-muted); line-height: 1.6;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 10px;
  overflow-wrap: anywhere; word-break: break-word;
}
.card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-date, .card-views { font-size: 12px; color: var(--text-muted); }

/* Recommend List */
.recommend-list-wrap { display: flex; flex-direction: column; gap: 16px; }
.recommend-item {
  display: flex; gap: 14px; background: var(--bg-card);
  border-radius: var(--radius); padding: 14px;
  box-shadow: var(--shadow); min-width: 0;
  transition: box-shadow .2s;
}
.recommend-item:hover { box-shadow: var(--shadow-hover); }
.rec-thumb-link { flex-shrink: 0; }
.rec-thumb-link img { width: 120px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); }
.rec-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.rec-title {
  font-size: 15px; font-weight: 700;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 6px;
  overflow-wrap: anywhere; word-break: break-word;
}
.rec-title a { color: var(--text-main); }
.rec-title a:hover { color: var(--primary); }
.rec-intro {
  font-size: 12px; color: var(--text-muted);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; flex: 1;
  overflow-wrap: anywhere; word-break: break-word;
}
.rec-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.rec-cat { font-size: 11px; background: var(--primary-light); color: var(--primary); padding: 2px 8px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.rec-date { font-size: 11px; color: var(--text-muted); }

/* ============================================================
   Sidebar
============================================================ */
.home-sidebar, .list-sidebar, .content-sidebar, .search-sidebar, .about-sidebar {
  display: flex; flex-direction: column; gap: 22px; min-width: 0;
}
.sidebar-widget {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); min-width: 0;
}
.widget-title {
  font-size: 15px; font-weight: 800; color: var(--text-main);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: flex; align-items: center; gap: 6px;
}

/* Rank list */
.rank-list { counter-reset: rank; }
.rank-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border); min-width: 0;
  counter-increment: rank;
}
.rank-item:last-child { border-bottom: none; }
.rank-num {
  flex-shrink: 0; width: 22px; height: 22px;
  background: var(--border); color: var(--text-muted);
  border-radius: 50%; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.rank-num::before { content: counter(rank); }
.rank-item:nth-child(1) .rank-num { background: var(--primary); color: #fff; }
.rank-item:nth-child(2) .rank-num { background: var(--accent); color: #fff; }
.rank-item:nth-child(3) .rank-num { background: #f39c12; color: #fff; }
.rank-title {
  font-size: 13px; line-height: 1.5; color: var(--text-main);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; min-width: 0;
  overflow-wrap: anywhere; word-break: break-word;
}
.rank-title:hover { color: var(--primary); }

/* Sidebar news list */
.sidebar-news-list { display: flex; flex-direction: column; gap: 0; }
.sidebar-news-item { border-bottom: 1px solid var(--border); }
.sidebar-news-item:last-child { border-bottom: none; }
.sidebar-news-item a {
  display: flex; gap: 10px; padding: 10px 0;
  align-items: center;
}
.sidebar-news-item img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.snl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.snl-title {
  font-size: 13px; color: var(--text-main); line-height: 1.45;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere; word-break: break-word;
}
.sidebar-news-item a:hover .snl-title { color: var(--primary); }
.snl-date { font-size: 11px; color: var(--text-muted); }

/* Simple list */
.sidebar-simple-list li { border-bottom: 1px solid var(--border); }
.sidebar-simple-list li:last-child { border-bottom: none; }
.sidebar-simple-list a {
  display: block; padding: 8px 0 8px 14px;
  font-size: 13px; color: var(--text-main); position: relative;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  overflow-wrap: anywhere; word-break: break-word;
  transition: color .2s;
}
.sidebar-simple-list a::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; background: var(--primary); border-radius: 50%;
}
.sidebar-simple-list a:hover { color: var(--primary); }

/* ============================================================
   Breadcrumb
============================================================ */
.breadcrumb { margin-bottom: 18px; }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0; font-size: 13px; color: var(--text-muted);
}
.breadcrumb ol li { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.breadcrumb ol li[aria-current] { color: var(--text-main); }
.breadcrumb ol a { color: var(--text-muted); }
.breadcrumb ol a:hover { color: var(--primary); }
.bc-sep { padding: 0 6px; flex-shrink: 0; }

/* ============================================================
   List page
============================================================ */
.list-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
  gap: var(--gap);
  align-items: start;
}
.list-page-title {
  font-size: 22px; font-weight: 900; color: var(--text-main);
  margin-bottom: 22px; padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
  overflow-wrap: anywhere; word-break: break-word;
}

.article-list-wrap { display: flex; flex-direction: column; gap: 0; }
.article-list-item {
  display: flex; gap: 18px;
  padding: 20px 0; border-bottom: 1px solid var(--border);
  min-width: 0;
}
.article-list-item:first-child { padding-top: 0; }
.ali-thumb-link { flex-shrink: 0; }
.ali-thumb-wrap { width: 200px; height: 130px; overflow: hidden; border-radius: var(--radius-sm); }
.ali-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-list-item:hover .ali-thumb-wrap img { transform: scale(1.05); }
.ali-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.ali-top { margin-bottom: 6px; }
.ali-cat {
  font-size: 11px; background: var(--primary-light); color: var(--primary);
  padding: 2px 9px; border-radius: 20px; font-weight: 700;
}
.ali-title {
  font-size: 17px; font-weight: 700; line-height: 1.45;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px; min-width: 0;
  overflow-wrap: anywhere; word-break: break-word;
}
.ali-title a { color: var(--text-main); }
.ali-title a:hover { color: var(--primary); }
.ali-intro {
  font-size: 13px; color: var(--text-muted); line-height: 1.65;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; flex: 1;
  overflow-wrap: anywhere; word-break: break-word;
}
.ali-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.ali-date, .ali-views { font-size: 12px; color: var(--text-muted); }
.ali-read-more { font-size: 12px; color: var(--primary); font-weight: 600; margin-left: auto; white-space: nowrap; }
.ali-read-more:hover { text-decoration: underline; }

/* Pagination */
.pagination {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-top: 32px;
}
.pagination a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  color: var(--text-main); transition: all .2s;
}
.pagination a:hover, .pagination a.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* ============================================================
   Content page
============================================================ */
.content-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
  gap: var(--gap);
  align-items: start;
}
.article-detail {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 32px 36px; box-shadow: var(--shadow); min-width: 0;
}
.article-header { margin-bottom: 22px; }
.article-main-title {
  font-size: clamp(20px, 3vw, 26px); font-weight: 900; color: var(--text-main);
  line-height: 1.4; margin-bottom: 14px;
  overflow-wrap: anywhere; word-break: break-word;
}
.article-meta-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted);
  padding-bottom: 18px; border-bottom: 1px solid var(--border);
}
.art-date { }
.art-cat {
  background: var(--primary-light); color: var(--primary);
  padding: 2px 10px; border-radius: 20px; font-weight: 700; font-size: 12px;
}
.art-views { }

/* Article body styles */
.article-content-body {
  font-size: 16px; line-height: 1.9; color: #333;
  min-width: 0;
}
.article-content-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 16px 0; }
.article-content-body p { margin-bottom: 1.2em; overflow-wrap: anywhere; word-break: break-word; }
.article-content-body h2 { font-size: 20px; font-weight: 800; margin: 1.6em 0 .8em; color: var(--text-main); }
.article-content-body h3 { font-size: 17px; font-weight: 700; margin: 1.4em 0 .6em; }
.article-content-body ul, .article-content-body ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.article-content-body li { margin-bottom: .5em; }
.article-content-body blockquote {
  border-left: 4px solid var(--primary); padding: 12px 18px;
  margin: 1.4em 0; background: var(--primary-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #555; font-style: italic;
}
.article-content-body pre, .article-content-body code {
  background: #f4f4f4; border-radius: var(--radius-sm); font-size: 14px;
  overflow-wrap: anywhere; word-break: break-word;
}
.article-content-body pre { padding: 14px 18px; overflow-x: auto; max-width: 100%; }
.article-content-body code { padding: 2px 6px; }
.article-content-body table { width: 100%; border-collapse: collapse; max-width: 100%; }
.article-content-body .table-wrap { overflow-x: auto; max-width: 100%; }
.article-content-body td, .article-content-body th { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.article-content-body a { color: var(--primary); text-decoration: underline; overflow-wrap: anywhere; word-break: break-word; }
.article-content-body iframe, .article-content-body video { max-width: 100%; }

/* Related */
.related-section { margin-top: 32px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-width: 0; transition: box-shadow .2s; }
.related-card:hover { box-shadow: var(--shadow-hover); }
.related-thumb-link img { width: 100%; aspect-ratio: 8/5; object-fit: cover; transition: transform .3s; }
.related-card:hover .related-thumb-link img { transform: scale(1.05); }
.related-body { padding: 10px 12px 12px; }
.related-title { font-size: 13px; font-weight: 700; margin-bottom: 5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; word-break: break-word; }
.related-title a { color: var(--text-main); }
.related-title a:hover { color: var(--primary); }
.related-date { font-size: 11px; color: var(--text-muted); }

/* ============================================================
   Search page
============================================================ */
.search-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
  gap: var(--gap);
  align-items: start;
}
.search-header-block {
  margin-bottom: 22px;
}
.search-result-title {
  font-size: 22px; font-weight: 900; color: var(--text-main);
  margin-bottom: 6px;
  overflow-wrap: anywhere; word-break: break-word;
}
.search-result-tip { font-size: 13px; color: var(--text-muted); }
.search-no-result { display: none; text-align: center; padding: 48px 20px; }
.no-result-icon { font-size: 48px; margin-bottom: 14px; }
.no-result-text { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; }
.btn-back-home {
  display: inline-block; padding: 10px 26px;
  background: var(--primary); color: #fff;
  border-radius: 25px; font-size: 14px; font-weight: 600;
  transition: background .2s;
}
.btn-back-home:hover { background: var(--primary-dark); color: #fff; }

/* ============================================================
   About page
============================================================ */
.about-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
  gap: var(--gap);
  align-items: start;
}
.about-main-title {
  font-size: 26px; font-weight: 900; color: var(--text-main);
  margin-bottom: 28px;
  overflow-wrap: anywhere; word-break: break-word;
}
.about-section { margin-bottom: 30px; }
.about-section-title {
  font-size: 18px; font-weight: 800; color: var(--text-main);
  margin-bottom: 14px; padding-left: 12px;
  border-left: 4px solid var(--primary);
  overflow-wrap: anywhere; word-break: break-word;
}
.about-desc-block, .about-brand-block {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow);
  font-size: 15px; color: #444; line-height: 1.8;
  overflow-wrap: anywhere; word-break: break-word;
}
.about-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.contact-item {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
  display: flex; align-items: flex-start; gap: 14px;
  min-width: 0;
}
.contact-icon { font-size: 24px; flex-shrink: 0; }
.contact-detail { flex: 1; min-width: 0; }
.contact-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.contact-value { font-size: 15px; font-weight: 600; color: var(--text-main); overflow-wrap: anywhere; word-break: break-word; }
.about-info-widget .about-info-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border); gap: 10px; flex-wrap: wrap;
}
.about-info-list li:last-child { border-bottom: none; }
.about-info-list li span { font-size: 13px; color: var(--text-muted); flex-shrink: 0; }
.about-info-list li strong { font-size: 13px; font-weight: 600; text-align: right; overflow-wrap: anywhere; word-break: break-word; }

/* ============================================================
   Footer
============================================================ */
.site-footer {
  background: var(--bg-footer); color: rgba(255,255,255,.75);
  padding: 44px 0 0; min-width: 0;
}
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 20px; min-width: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 1fr 1fr;
  gap: 36px; margin-bottom: 32px;
}
.footer-logo { font-size: 20px; font-weight: 900; color: #fff; display: block; margin-bottom: 10px; }
.footer-desc { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.6); overflow-wrap: anywhere; word-break: break-word; }
.footer-section-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-links ul li, .footer-contact p { margin-bottom: 9px; font-size: 13px; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.65); transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--primary); }
.footer-contact p { display: flex; align-items: flex-start; gap: 7px; }
.footer-contact svg { flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0; text-align: center;
  font-size: 13px; color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.55); margin: 0 6px; }
.footer-bottom a:hover { color: var(--primary); }

/* ============================================================
   Responsive – Tablet 1024px
============================================================ */
@media (max-width: 1024px) {
  :root { --sidebar-w: 260px; --gap: 22px; }
  .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-banner { grid-template-columns: 1fr; }
  .banner-side-list { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-detail { padding: 24px 22px; }
}

/* ============================================================
   Responsive – Tablet 768px
============================================================ */
@media (max-width: 768px) {
  :root { --sidebar-w: 100%; --gap: 16px; }

  .nav-toggle { display: flex; }
  .site-nav {
    display: none; flex-direction: column; align-items: stretch;
    padding: 8px 0 12px; border-top: 1px solid rgba(255,255,255,.1);
    gap: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 16px; border-radius: 0; }

  .home-body { grid-template-columns: 1fr; }
  .list-body { grid-template-columns: 1fr; }
  .content-body { grid-template-columns: 1fr; }
  .search-body { grid-template-columns: 1fr; }
  .about-body { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .ali-thumb-wrap { width: 140px; height: 95px; }
  .article-detail { padding: 20px 16px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   Responsive – Mobile 480px
============================================================ */
@media (max-width: 480px) {
  .card-grid-3 { grid-template-columns: 1fr; }
  .article-list-item { flex-direction: column; }
  .ali-thumb-wrap { width: 100%; height: 180px; }
  .related-grid { grid-template-columns: 1fr; }
  .about-contact-grid { grid-template-columns: 1fr; }
  .header-search-wrap { max-width: 100%; order: 3; flex-basis: 100%; }
  .header-top-bar { flex-wrap: wrap; }
  .recommend-item { flex-direction: column; }
  .rec-thumb-link img { width: 100%; height: auto; aspect-ratio: 16/9; }
}

/* ============================================================
   Responsive – Mobile 375px
============================================================ */
@media (max-width: 375px) {
  .container { padding: 0 14px; }
  .article-detail { padding: 16px 12px; }
  .banner-title { font-size: 15px; }
  .ali-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
}