/* ============================================================
   筑材资讯 · 全局样式
   ============================================================ */
:root {
  --navy: #1a3a6b;
  --navy-d: #102a52;
  --navy-soft: #eef3fa;
  --accent: #ff8a3d;
  --accent-d: #f2711c;
  --red: #e5484d;
  --bg: #f1f4f8;
  --panel: #ffffff;
  --line: #e6eaf2;
  --text: #222a38;
  --muted: #76809a;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(16, 42, 82, .07);
  --shadow-lg: 0 16px 48px rgba(16, 42, 82, .14);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --w: 1280px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input { font-family: inherit; border: 0; outline: 0; }

.container { max-width: var(--w); margin: 0 auto; padding: 0 20px; }

/* ============ 顶部信息条 ============ */
.topbar { background: var(--navy-d); color: rgba(255,255,255,.75); font-size: 12.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-right a { transition: color .2s; }
.topbar-right a:hover { color: var(--accent); }
.date-chip { color: var(--accent); font-weight: 600; letter-spacing: .5px; }
.topbar-divider { width: 1px; height: 12px; background: rgba(255,255,255,.25); }

/* ============ 主头部 ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--panel);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(16,42,82,.05);
}
.header-main { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo, .brand svg { width: 46px; height: 46px; border-radius: 10px; box-shadow: 0 4px 10px rgba(26,58,107,.25); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 22px; letter-spacing: 1px; color: var(--navy); font-weight: 800; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: .6px; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: rgba(255,255,255,.55); }

.main-nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.main-nav a {
  position: relative; padding: 8px 15px; font-size: 16px; font-weight: 600;
  color: var(--text); border-radius: 8px; transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--navy); background: var(--navy-soft); }
.main-nav a.active { color: var(--accent-d); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -1px; width: 22px; height: 3px; border-radius: 3px; background: var(--accent);
}
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  width: 230px; height: 38px; padding: 0 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,138,61,.15); background: #fff; }
.search-box svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.search-box input { flex: 1; background: transparent; font-size: 13.5px; color: var(--text); min-width: 0; }
.search-box input::placeholder { color: #a4adc2; }
.nav-toggle { display: none; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 频道快链条 */
.channel-strip {
  background: linear-gradient(90deg, var(--navy), #2a5aa0);
  overflow-x: auto; scrollbar-width: none;
}
.channel-strip::-webkit-scrollbar { display: none; }
.channel-inner {
  display: flex; align-items: center; gap: 4px;
  height: 40px; min-width: max-content;
}
.channel-inner a {
  color: rgba(255,255,255,.85); font-size: 13px; padding: 5px 12px;
  border-radius: 6px; white-space: nowrap; transition: .2s;
}
.channel-inner a:hover { color: #fff; background: rgba(255,255,255,.14); }
.channel-inner a.tag-hot { color: var(--accent); font-weight: 600; }
.channel-inner .ch-label {
  color: rgba(255,255,255,.5); font-size: 12px; margin-right: 4px; padding-left: 2px; letter-spacing: 1px;
}

/* ============ 通用面板 ============ */
.panel {
  background: var(--panel); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--line);
  padding: 22px; margin-bottom: 22px;
}
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; color: var(--navy); }
.section-title::before {
  content: ""; width: 4px; height: 20px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-d));
}
.section-title em { font-style: normal; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 1px; }
.more-link { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; transition: .2s; }
.more-link:hover { color: var(--accent-d); }
.more-link svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px; border-radius: 22px; font-size: 14px; font-weight: 600;
  transition: .2s; white-space: nowrap;
}
.btn-solid { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(255,138,61,.35); }
.btn-solid:hover { background: var(--accent-d); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-d); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.chip {
  display: inline-flex; padding: 4px 13px; border-radius: 16px;
  font-size: 13px; color: var(--muted); background: var(--bg);
  border: 1px solid var(--line); cursor: pointer; transition: .2s; white-space: nowrap;
}
.chip:hover { color: var(--navy); border-color: #b9c7dd; }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 5px; font-size: 12px; font-weight: 600; }
.badge-cat { color: var(--accent-d); background: rgba(255,138,61,.12); }
.badge-red { color: #fff; background: var(--red); }
.badge-blue { color: var(--navy); background: var(--navy-soft); }
.badge-hollow { border: 1px solid rgba(255,255,255,.55); color: #fff; backdrop-filter: blur(2px); }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); padding: 14px 0 0; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent-d); }
.breadcrumb .sep { color: #c3cadd; }
.breadcrumb .now { color: var(--navy); font-weight: 600; }

/* ============ Hero 轮播 ============ */
.hero { position: relative; margin: 22px 0 20px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-slide {
  position: relative; height: 420px; display: block;
  background-size: cover; background-position: center;
  overflow: hidden;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,26,52,.82) 0%, rgba(10,26,52,.45) 45%, rgba(10,26,52,.05) 75%);
}
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,26,52,.55), transparent 40%); }
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 40px 46px; max-width: 640px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; width: fit-content; }
.hero-kicker .badge-cat { background: rgba(255,255,255,.16); color: #ffd9bd; border: 1px solid rgba(255,138,61,.5); }
.hero-content h2 { font-size: 34px; line-height: 1.35; color: #fff; font-weight: 800; margin-bottom: 14px; letter-spacing: .5px; }
.hero-content p { color: rgba(255,255,255,.85); font-size: 15px; margin-bottom: 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-meta { display: flex; gap: 16px; font-size: 12.5px; color: rgba(255,255,255,.6); }
.hero-dots { position: absolute; right: 24px; bottom: 20px; z-index: 3; display: flex; gap: 8px; }
.hero-dots span { width: 26px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.35); cursor: pointer; transition: .3s; }
.hero-dots span.active { background: var(--accent); width: 40px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #fff;
  backdrop-filter: blur(6px); transition: .2s;
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero-arrow svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }
@keyframes heroFade { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: scale(1); } }
.hero-slide.on { animation: heroFade .6s ease; }

/* ============ 快讯滚动 ============ */
.ticker { display: flex; align-items: center; gap: 14px; overflow: hidden; padding: 12px 18px; margin-bottom: 20px; }
.ticker-label {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: #fff; font-size: 13px; font-weight: 700;
  padding: 4px 12px; border-radius: 6px; letter-spacing: 2px;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-track ul { display: flex; animation: tickerMove 40s linear infinite; width: max-content; }
.ticker-track:hover ul { animation-play-state: paused; }
.ticker-track li { display: flex; align-items: center; gap: 10px; padding-right: 40px; white-space: nowrap; }
.ticker-track a { font-size: 13.5px; color: var(--text); transition: color .2s; }
.ticker-track a:hover { color: var(--accent-d); }
.ticker-track .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ 首页布局 ============ */
.home-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 22px; align-items: start; }
.latest-list > li { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.latest-list > li:first-child { padding-top: 2px; }
.latest-list > li:last-child { border-bottom: 0; padding-bottom: 2px; }
.latest-row { display: flex; gap: 16px; }
.latest-row:hover .lr-title { color: var(--accent-d); }
.lr-thumb { width: 150px; height: 96px; flex-shrink: 0; border-radius: 10px; overflow: hidden; position: relative; }
.lr-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.latest-row:hover .lr-thumb img { transform: scale(1.08); }
.lr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lr-title { font-size: 15.5px; font-weight: 600; color: var(--text); line-height: 1.5; transition: color .2s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lr-sub { font-size: 13px; color: var(--muted); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lr-meta { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 12px; color: #9aa3b8; padding-top: 8px; flex-wrap: wrap; }
.lr-meta .badge { margin-right: 2px; }
.lr-meta time::before { content: ""; }

/* 热度榜 */
.hot-list { counter-reset: hot; }
.hot-item { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px dashed var(--line); }
.hot-item:last-child { border-bottom: 0; }
.hot-num {
  counter-increment: hot; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 6px; text-align: center; line-height: 22px;
  font-size: 12.5px; font-weight: 800; color: #a7b0c4; background: var(--bg);
}
.hot-num::before { content: counter(hot); }
.hot-item:nth-child(-n+3) .hot-num { background: linear-gradient(135deg, var(--accent), var(--accent-d)); color: #fff; }
.hot-item a { font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.hot-item a:hover { color: var(--accent-d); }

/* 侧栏小图 */
.mini-card { position: relative; border-radius: 12px; overflow: hidden; display: block; }
.mini-card img { width: 100%; height: 150px; object-fit: cover; transition: transform .5s; }
.mini-card:hover img { transform: scale(1.05); }
.mini-card .mc-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px; background: linear-gradient(0deg, rgba(10,26,52,.75), transparent 60%);
}
.mini-card .mc-title { color: #fff; font-size: 14.5px; font-weight: 700; }
.mini-card .mc-tag { color: rgba(255,255,255,.75); font-size: 12px; }

/* 关键词云 */
.kw-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.kw-cloud a { font-size: 13px; color: var(--navy); background: var(--navy-soft); padding: 5px 13px; border-radius: 16px; transition: .2s; }
.kw-cloud a:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

/* ============ 分类专区 ============ */
.cat-zone { margin-bottom: 26px; }
.cat-zone-head {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(100deg, var(--navy), #2f62ae);
  border-radius: var(--radius) var(--radius) 0 0; padding: 16px 22px; color: #fff;
}
.cat-zone-head .cz-title { display: flex; align-items: center; gap: 12px; }
.cat-zone-head .cz-avatar { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.cat-zone-head h3 { font-size: 20px; font-weight: 800; }
.cat-zone-head small { display: block; color: rgba(255,255,255,.6); font-size: 11px; letter-spacing: 2px; font-weight: 400; }
.cat-zone-head .cz-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cat-zone-body {
  background: var(--panel); border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius); padding: 18px 20px 14px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}

/* 文章卡 */
.art-card { overflow: hidden; }
.art-card a.ac-thumb { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16/10; margin-bottom: 12px; }
.art-card a.ac-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.art-card:hover a.ac-thumb img { transform: scale(1.07); }
.art-card a.ac-thumb .play { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.45); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px; backdrop-filter: blur(4px); }
.art-card h4 { font-size: 15px; font-weight: 600; line-height: 1.55; margin-bottom: 8px; }
.art-card h4 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.art-card h4 a:hover { color: var(--accent-d); }
.art-card .ac-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #9aa3b8; }

/* 频道页横幅 */
.cat-hero {
  position: relative; border-radius: var(--radius); overflow: hidden; margin: 18px 0 20px;
  background-size: cover; background-position: center; box-shadow: var(--shadow-lg);
  min-height: 210px; display: flex; align-items: center;
}
.cat-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,26,52,.85), rgba(16,42,82,.45) 55%, rgba(16,42,82,.15)); }
.cat-hero .ch-body { position: relative; z-index: 2; padding: 34px 40px; color: #fff; }
.cat-hero .ch-tag { font-size: 12px; letter-spacing: 3px; color: var(--accent); font-weight: 700; }
.cat-hero h1 { font-size: 34px; margin: 8px 0 8px; letter-spacing: 1px; }
.cat-hero p { color: rgba(255,255,255,.82); max-width: 560px; font-size: 14.5px; }
.cat-hero .ch-count { margin-top: 14px; display: flex; gap: 26px; font-size: 12.5px; color: rgba(255,255,255,.65); }
.cat-hero .ch-count b { color: var(--accent); font-size: 18px; margin-right: 4px; }

/* 频道筛选 chips */
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-bar .fb-label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.filter-bar .chip { font-size: 13px; padding: 5px 15px; }

/* 图文资讯列表行 */
.channel-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 22px; align-items: start; }
.list-rows .row-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); transition: background .2s; }
.list-rows .row-item:first-child { padding-top: 6px; }
.list-rows .row-item:last-child { border-bottom: 0; }
.row-thumb { width: 200px; height: 130px; flex-shrink: 0; border-radius: 10px; overflow: hidden; position: relative; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.list-rows .row-item:hover .row-thumb img { transform: scale(1.07); }
.row-thumb .badge { position: absolute; left: 8px; top: 8px; font-size: 11px; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-main h3 { font-size: 18px; line-height: 1.5; font-weight: 700; }
.row-main h3 a { transition: color .2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-main h3 a:hover { color: var(--accent-d); }
.row-summary { color: var(--muted); font-size: 13.5px; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-meta { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 10px; font-size: 12.5px; color: #9aa3b8; }
.row-meta .src { color: var(--muted); }
.row-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.row-tags span { font-size: 12px; color: #8b96ab; border: 1px solid var(--line); background: var(--bg); border-radius: 4px; padding: 1px 7px; }

/* ============ 详情页 ============ */
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 22px; align-items: start; margin-top: 20px; }
.detail-wrap { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 46px; }
.detail-head { text-align: center; padding: 0 10px 26px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.detail-head .d-tag { margin-bottom: 16px; }
.detail-head h1 { font-size: 30px; line-height: 1.45; letter-spacing: .5px; font-weight: 800; }
.detail-meta { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 18px; }
.detail-meta a:hover { color: var(--accent-d); }
.detail-meta .d-hot { display: inline-flex; align-items: center; gap: 4px; color: var(--red); }
.detail-cover { margin-bottom: 26px; border-radius: 12px; overflow: hidden; }
.detail-cover img { width: 100%; max-height: 420px; object-fit: cover; }
.detail-body { font-size: 16px; line-height: 2; color: #333b4b; }
.detail-body p { margin-bottom: 22px; text-align: justify; }
.detail-body .lead { font-size: 16.5px; color: var(--navy); background: var(--navy-soft); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 0 10px 10px 0; font-weight: 600; line-height: 1.9; }
.detail-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 18px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin-top: 8px; }
.detail-tags .tt { font-size: 13px; color: var(--muted); font-weight: 600; }
.detail-tags a { font-size: 12.5px; color: var(--navy); background: var(--navy-soft); padding: 4px 12px; border-radius: 14px; transition: .2s; }
.detail-tags a:hover { background: var(--accent); color: #fff; }
.detail-foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 22px; }
.detail-foot a { font-size: 14px; color: var(--muted); flex: 1; transition: color .2s; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.detail-foot a:hover { color: var(--accent-d); }
.detail-foot a:last-child { text-align: right; }
.detail-foot .df-label { color: #a4adc2; margin-right: 6px; }

/* 侧栏推荐卡 */
.side-card { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.side-card:last-child { border-bottom: 0; }
.side-card img { width: 96px; height: 68px; object-fit: cover; border-radius: 8px; flex-shrink: 0; transition: transform .35s; }
.side-card:hover img { transform: scale(1.05); }
.side-card a.st { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-card a.st:hover { color: var(--accent-d); }

/* ============ CTA 横幅 ============ */
.cta-band {
  position: relative; border-radius: var(--radius); overflow: hidden; margin: 30px 0 40px;
  background: linear-gradient(110deg, #102a52 0%, #1a3a6b 55%, #24519a 100%);
  padding: 44px 46px; display: flex; align-items: center; justify-content: space-between; gap: 30px;
  color: #fff; flex-wrap: wrap;
}
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,138,61,.15); }
.cta-band h3 { font-size: 24px; letter-spacing: 1px; }
.cta-band p { color: rgba(255,255,255,.75); font-size: 14px; margin-top: 8px; }
.cta-band .cta-right { display: flex; gap: 14px; z-index: 1; }

/* ============ 页脚 ============ */
.site-footer { background: #0d1b33; color: #aab4c8; margin-top: 10px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 36px; padding: 46px 20px 30px; }
.footer-brand p { font-size: 13px; line-height: 1.9; margin: 16px 0; color: rgba(255,255,255,.6); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { font-size: 12.5px; color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.25); padding: 4px 14px; border-radius: 16px; transition: .2s; }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-col h4 { color: #fff; font-size: 15.5px; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; }
.footer-col p { margin-bottom: 10px; font-size: 13.5px; }
.footer-col a:hover { color: var(--accent); }
.footer-col .f-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.footer-col .f-channels a { font-size: 13.5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 16px; padding-bottom: 16px; font-size: 12.5px; color: rgba(255,255,255,.45); }
.footer-links { display: flex; align-items: center; gap: 10px; }
.footer-links a:hover { color: var(--accent); }
.footer-links em { font-style: normal; color: rgba(255,255,255,.2); }

/* ============ 回顶 ============ */
.to-top {
  position: fixed; right: 24px; bottom: 30px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent); }
.to-top svg { width: 20px; height: 20px; fill: currentColor; }

/* ============ 空状态 ============ */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty svg { width: 64px; height: 64px; margin: 0 auto 16px; stroke: #c6cddc; stroke-width: 1.2; fill: none; stroke-linecap: round; }
.empty h3 { color: #5a6478; margin-bottom: 6px; font-size: 17px; }
.empty p { font-size: 13.5px; }

/* ============ 动画 ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px);} to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .5s ease both; }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .header-main { gap: 14px; }
  .search-box { width: 180px; }
  .cat-zone-body { grid-template-columns: repeat(3, 1fr); }
  .home-layout, .channel-layout, .detail-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; }
}
@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--panel); border-top: 1px solid var(--line);
    box-shadow: var(--shadow-lg); display: none; padding: 10px 20px 16px; z-index: 99;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 6px; border-bottom: 1px dashed var(--line); border-radius: 0; font-size: 16px; }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a.active::after { display: none; }
  .main-nav a.active { color: var(--accent-d); }
  .search-box { flex: 1; }
  .home-layout, .channel-layout, .detail-layout { grid-template-columns: 1fr; }
  .hero-slide { height: 340px; }
  .hero-content { padding: 26px 28px; }
  .hero-content h2 { font-size: 26px; }
  .detail-wrap { padding: 26px 22px; }
  .detail-head h1 { font-size: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cat-hero .ch-body { padding: 24px 24px; }
}
@media (max-width: 620px) {
  .topbar-left span:nth-child(3) { display: none; }
  .header-main { height: 64px; }
  .brand-text strong { font-size: 18px; }
  .brand-logo, .brand svg { width: 38px; height: 38px; }
  .channel-inner { height: 36px; }
  .hero-slide { height: 300px; }
  .hero-content p { display: none; }
  .hero-content h2 { font-size: 22px; }
  .cat-zone-body { grid-template-columns: repeat(2, 1fr); }
  .cat-zone-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cat-zone-head .cz-links { justify-content: flex-start; }
  .latest-row { flex-direction: column; }
  .lr-thumb { width: 100%; height: 150px; }
  .list-rows .row-item { flex-direction: column; }
  .row-thumb { width: 100%; height: 170px; }
  .detail-meta { gap: 10px 14px; }
  .cta-band { padding: 30px 24px; }
  .cta-band h3 { font-size: 19px; }
  .cta-band .cta-right { flex-direction: column; width: 100%; }
  .cta-band .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; padding: 36px 20px 20px; }
  .hero-arrow { display: none; }
  .container { padding: 0 14px; }
  .detail-foot { flex-direction: column; }
  .detail-foot a:last-child { text-align: left; }
  .to-top { right: 14px; bottom: 18px; }
}

/* ============ 首页 · 品牌类目网格（每行两个类目） ============ */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; margin: 24px 0 8px; }
.cat-mod { padding: 22px 24px 14px; margin-bottom: 0; }
.cat-mod-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.cm-avatar { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; flex-shrink: 0; box-shadow: 0 6px 16px rgba(16, 42, 82, .18); }
.cm-tit { min-width: 0; }
.cm-tit h3 { font-size: 20px; line-height: 1.25; font-weight: 800; color: var(--navy); }
.cm-tit h3 a { transition: color .2s; }
.cm-tit h3 a:hover { color: var(--accent-d); }
.cm-tit small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); letter-spacing: .4px; }
.cm-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cm-nav .chip { font-size: 12.5px; padding: 4px 12px; }
.cat-mod .list-rows .row-item { padding: 14px 0; }
.row-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.row-kicker .badge { font-size: 11px; padding: 2px 8px; }

/* 缩略图 · 主题渐变封面（每篇按 id 配色，可替换为真实配图） */
.row-thumb.ph, .side-thumb.ph {
  position: relative; overflow: hidden; display: block;
  background:
    radial-gradient(120% 130% at 88% -5%, rgba(255, 255, 255, .30), transparent 48%),
    linear-gradient(140deg, hsl(var(--hue, 220) 46% 40%), hsl(calc(var(--hue, 220) + 45) 58% 62%));
}
.row-thumb.ph::after, .side-thumb.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 42, 82, .02), rgba(16, 42, 82, .32)); }
.row-thumb.ph .ph-tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .5px;
  background: rgba(16, 42, 82, .42); padding: 2px 10px; border-radius: 5px;
  backdrop-filter: blur(4px);
}
.side-card a.side-thumb.ph { width: 96px; height: 68px; border-radius: 8px; flex-shrink: 0; }

@media (max-width: 1260px) {
  .main-nav a { padding: 8px 11px; font-size: 15px; }
  .search-box { width: 170px; }
}
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 940px) {
  .cm-nav { margin-left: 0; width: 100%; justify-content: flex-start; }
}
@media (max-width: 620px) {
  .cat-mod { padding: 16px 14px 10px; }
  .cm-avatar { width: 46px; height: 46px; }
  .cm-nav .chip { display: none; }
}

/* ============ 右侧悬浮 · 在线留言 / QQ 沟通 ============ */
.float-dock {
  position: fixed; right: 20px; top: 46%; transform: translateY(-50%);
  z-index: 120; display: flex; flex-direction: column; gap: 12px;
}
.float-item {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 5px; width: 108px; padding: 11px 8px 10px; border-radius: 14px;
  color: #fff; background: var(--navy);
  box-shadow: 0 12px 28px rgba(16, 42, 82, .32);
  transition: .25s; text-decoration: none; overflow: hidden;
}
.float-item::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: .25s;
  background: linear-gradient(160deg, rgba(255,255,255,.16), transparent 55%);
}
.float-item:hover { transform: translateY(-3px); }
.float-item:hover::before { opacity: 1; }
.float-item .fi-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.float-item .fi-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.float-item b { position: relative; font-size: 13.5px; font-weight: 600; line-height: 1; }
.float-item small { position: relative; font-size: 10px; opacity: .82; line-height: 1; white-space: nowrap; }
.float-item.qq { background: linear-gradient(135deg, #3cc0f7, #0e93e6); }
.float-item.qq:hover { box-shadow: 0 14px 30px rgba(14, 147, 230, .45); }
.float-item.qq .fi-icon svg { fill: currentColor; stroke: none; }
.float-item.msg { background: linear-gradient(135deg, #1a3a6b, #102a52); }
.float-item.msg:hover { box-shadow: 0 14px 30px rgba(16, 42, 82, .45); }

/* 滚动到页脚时不遮挡版权栏（视觉微上浮） */
@media (max-width: 1100px) {
  .float-dock { top: auto; right: 12px; bottom: 120px; transform: none; }
  .float-item { flex-direction: row; gap: 8px; width: auto; height: 46px; padding: 0 16px; border-radius: 23px; }
  .float-item b { font-size: 13px; }
  .float-item small { display: none; }
}
@media (max-width: 620px) {
  .float-dock { bottom: 100px; }
  .float-item { width: 46px; height: 46px; padding: 0; border-radius: 50%; justify-content: center; }
  .float-item .fi-text { display: none; }
  .float-item .fi-icon svg { width: 21px; height: 21px; }
}

/* ============ 在线留言弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 18px; background: rgba(10, 22, 44, .5);
  opacity: 0; visibility: hidden; transition: .25s;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.modal-mask.show { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 420px; position: relative;
  background: var(--panel); border-radius: 16px; padding: 26px 26px 24px;
  box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); transition: .25s;
}
.modal-mask.show .modal { transform: none; }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: .2s;
}
.modal-close:hover { background: var(--navy-soft); color: var(--navy); }
.modal-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; }
.modal h3 { font-size: 20px; color: var(--navy); font-weight: 800; display: flex; align-items: center; gap: 9px; }
.modal h3::before {
  content: ""; width: 4px; height: 18px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-d));
}
.modal-sub { font-size: 12.5px; color: var(--muted); margin: 8px 0 18px; line-height: 1.7; }
.msg-field { margin-bottom: 13px; }
.msg-field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.msg-field label b { color: var(--red); font-weight: 600; margin-left: 1px; }
.msg-field input, .msg-field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; font-size: 14px; color: var(--text);
  background: #fff; font-family: inherit; outline: none; transition: .2s; resize: vertical;
}
.msg-field input::placeholder, .msg-field textarea::placeholder { color: #aab2c5; }
.msg-field input:focus, .msg-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 138, 61, .16); }
.msg-tip { min-height: 18px; font-size: 12.5px; margin: 2px 0 10px; line-height: 1.6; }
.msg-tip.err { color: var(--red); }
.msg-tip.ok { color: #1a9c5c; }
.msg-submit { width: 100%; height: 44px; border-radius: 22px; font-size: 15px; letter-spacing: 2px; }
.msg-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
body.modal-open { overflow: hidden; }
@media (max-width: 620px) {
  .modal { padding: 22px 18px 20px; }
}
