/* 全站基础布局 + 上白(LOGO+JPG广告位) + 下深色主导航 + 面包屑 + 底部通栏JPG广告 + 页脚 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0; min-height: 100vh;
  display: flex; flex-direction: column;
  background: #f5f7fa; color: #1d2433;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
}

.site-hd, .site-hd *, .site-bc-wrap, .site-bc-wrap *, .site-bottom-ad-wrap, .site-bottom-ad-wrap *, .site-ft, .site-ft * { box-sizing: border-box; }
.site-hd { width: 100%; position: relative; z-index: 200; box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08); }
.site-hd a { text-decoration: none; }
.site-hd-in { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* 第一层：纯白品牌区 + 右侧单条 JPG 长横幅广告位 */
.site-top-bar { width: 100%; background: #ffffff; border-bottom: 1px solid #e5e7eb; }
.site-brand-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; gap: 24px;
}
.site-logo {
  display: inline-flex; flex-direction: row; align-items: center; gap: 10px;
  line-height: 1.2; flex-shrink: 0;
}
.site-logo-text { display: flex; flex-direction: column; }
.site-logo-mark { width: 44px; height: 44px; flex: none; display: block; }
.site-logo-main { font-size: 28px; font-weight: 800; letter-spacing: -0.6px; font-style: italic; }
.site-logo-main .c1 { color: #1d68c4; }
.site-logo-main .c2 { color: #94a3b8; font-weight: 700; font-style: normal; font-size: 20px; }
.site-logo-sub { font-size: 12px; color: #64748b; margin-top: 4px; letter-spacing: 0.3px; }
.site-logo-sub strong { color: #0f172a; font-weight: 700; margin-right: 5px; }

/* 广告位通用样式（按图片比例完整展示，不裁切文字） */
.site-ad-wrap { flex: 1; min-width: 0; }
.site-ad-banner {
  position: relative;
  display: block; width: 100%;
  border-radius: 8px; overflow: hidden;
  border: 1px solid #dbeafe; background: #0f172a;
  line-height: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.site-ad-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.20);
}
.site-ad-banner.is-img img {
  width: 100%; height: auto; display: block;
}
.site-ad-tag {
  position: absolute; top: 0; right: 0;
  background: rgba(15, 23, 42, 0.55); color: #ffffff;
  font-size: 10px; line-height: 1; padding: 3px 7px;
  border-radius: 0 0 0 6px; pointer-events: none;
}

/* 底部通栏 JPG 广告容器（与主卡片 1120px 等宽，位于卡片正下方、页脚上方） */
.site-bottom-ad-wrap {
  width: 100%; max-width: 1120px;
  margin: 6px auto 0; padding: 0 20px;
}
.site-ad-bottom { border-radius: 10px; }

/* 第二层：深色主导航栏 */
.site-nav-bar { width: 100%; background: #131c31; }
.site-nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 48px;
}
.site-nav { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav > li { position: relative; margin: 0; padding: 0; }
.site-nav > li > a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 12px 15px; font-size: 14px; font-weight: 500;
  color: #cbd5e1; border-bottom: 3px solid transparent;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.site-nav > li > a:hover { color: #ffffff; background: rgba(255, 255, 255, 0.06); }
.site-nav > li.active > a {
  color: #ffffff; font-weight: 600;
  background: rgba(56, 189, 248, 0.12);
  border-bottom-color: #38bdf8;
}
.site-nav-badge {
  display: inline-block; padding: 1px 5px; margin-left: 2px;
  font-size: 10px; font-weight: 800; line-height: 1.2;
  color: #0f172a; background: #facc15; border-radius: 3px;
}
.site-nav .caret { font-size: 10px; color: #94a3b8; transition: transform 0.18s; }
.site-nav > li:hover .caret { transform: rotate(180deg); color: #38bdf8; }

.site-sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 184px;
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16); padding: 6px; z-index: 300;
}
.site-nav > li:hover .site-sub { display: block; }
.site-sub a {
  display: block; padding: 8px 12px; font-size: 13px; color: #334155;
  border-radius: 7px; white-space: nowrap;
}
.site-sub a:hover { background: #eff6ff; color: #1d68c4; }

/* 深色导航内的搜索框 */
.site-search {
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px; padding: 0 10px;
  height: 34px; width: 210px; flex-shrink: 0; margin: 0;
  transition: border-color 0.18s, background 0.18s;
}
.site-search:focus-within { border-color: #38bdf8; background: rgba(255, 255, 255, 0.15); }
.site-search input {
  border: none; background: transparent; outline: none; font-size: 12.5px;
  color: #f8fafc; width: 100%; padding: 0; box-shadow: none !important;
}
.site-search input::placeholder { color: #94a3b8; }
.site-search button {
  border: none; background: transparent; color: #94a3b8; cursor: pointer;
  padding: 0 2px; font-size: 15px; display: inline-flex; align-items: center;
}
.site-search button:hover { color: #38bdf8; }

/* 面包屑 */
.site-bc-wrap { width: 100%; max-width: 1120px; margin: 16px auto 0; padding: 0 20px; }
.site-bc {
  width: 100%; background: #fff; border: 1px solid #ebedf0; border-radius: 8px;
  padding: 10px 18px; font-size: 12.5px; color: #64748b;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.site-bc a { color: #1d68c4; text-decoration: none; }
.site-bc a:hover { text-decoration: underline; }
.site-bc .sep { margin: 0 7px; color: #cbd5e1; }
.site-bc-tip { font-size: 11.5px; color: #94a3b8; }

/* 底部页脚 + 友情链接 */
.site-ft {
  width: 100%; margin-top: 24px; padding: 20px 20px 34px;
  background: #fff; border-top: 1px solid #e5e7eb;
  text-align: center; font-size: 12.5px; color: #94a3b8; line-height: 2;
}
.site-ft-friends {
  max-width: 1080px; margin: 0 auto 14px; padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 14px;
  font-size: 12.5px; color: #64748b;
}
.site-ft-friends strong { color: #334155; font-weight: 600; }
.site-ft-friends a { color: #64748b; text-decoration: none; }
.site-ft-friends a:hover { color: #1d68c4; text-decoration: underline; }

.site-ft-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 2px; margin-bottom: 6px; }
.site-ft-links a { color: #64748b; text-decoration: none; padding: 0 10px; }
.site-ft-links a:hover { color: #1d68c4; text-decoration: underline; }
.site-ft-links .pipe { color: #cbd5e1; user-select: none; }
.site-ft-copy a { color: #1d68c4; text-decoration: none; }
.site-ft-copy a:hover { text-decoration: underline; }

/* 响应式适配 */
@media (max-width: 900px) {
  .site-brand-row { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px; }
  .site-logo-mark { width: 36px; height: 36px; }
  .site-nav-row { flex-direction: column; align-items: stretch; padding: 6px 16px 10px; gap: 8px; }
  .site-search { width: 100%; }
  .site-nav > li > a { padding: 9px 11px; font-size: 13.5px; }
  .site-bottom-ad-wrap { padding: 0 16px; }
}
@media print { .site-hd, .site-bc-wrap, .site-bottom-ad-wrap, .site-ft { display: none !important; } }