/* ═══════════════════════════════════════════════════════════════
   EmpireCMS 官网主题 —— 换肤只需改 :root 里的 CSS 变量
   覆盖模板使用的全部 class：header/hero/cards/detail/footer/表单等
   ═══════════════════════════════════════════════════════════════ */
:root {
  --pri: #1a56db;          /* 主色 */
  --pri-dark: #12409f;
  --accent: #ff6600;       /* 价格/强调 */
  --accent-text: #c2410c;  /* 强调色用于文字时的深色版：#ff6600 白底对比度只有 2.9:1，读屏不友好 */
  --text: #1f2937;
  --muted: #4b5563;           /* 13px 次要文字要过 4.5:1，原 #6b7280 在浅灰底上只有 4.47 */
  --line: #e5e9ef;
  --bg: #f5f6f8;
  --card-bg: #ffffff;
  --radius: 10px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 15px/1.7 -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pri); }
img { max-width: 100%; display: block; }
table { border-collapse: collapse; }
/* 图片加载失败(main.js 换成占位 SVG 后): 给出可辨识的弱化样式, 而不是浏览器破图图标 */
img.img-fallback { background: #eef1f6; border: 1px solid var(--line); border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }

/* ── 图片懒加载占位(防布局跳动) ── */
.cards article picture, .cards article > a > picture { display: block; aspect-ratio: 4/3; overflow: hidden;
  background: linear-gradient(100deg,#f1f5f9 40%,#e2e8f0 50%,#f1f5f9 60%); background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear; }
.cards article picture img { width: 100%; height: 100%; object-fit: cover; }
.hero .slide picture { display: block; aspect-ratio: 16/6; overflow: hidden; background: #0f1b33; }
.hero .slide picture img { width: 100%; height: 100%; object-fit: cover; }
.detail-body picture, .entry-cover picture { display: block; background: #f1f5f9; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .cards article picture { animation: none; } }

/* ── 顶部导航 ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 20px; height: 60px;
}
.logo {
  font-size: 20px; font-weight: 700; color: var(--pri);
  letter-spacing: .5px; white-space: nowrap;
}
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  padding: 8px 14px; border-radius: 8px;
  font-size: 15px; color: var(--text);
}
.nav a:hover { background: #eef2ff; color: var(--pri); }
.nav a.on { background: var(--pri); color: #fff; }
.nav-burger { display: none; }
.searchbar { display: flex; align-items: center; gap: 6px; }
.searchbar input[type="search"] {
  width: 170px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 8px; outline: none;
  font-size: 13px;
}
.searchbar input[type="search"]:focus { border-color: var(--pri); }
.searchbar button {
  padding: 7px 14px; border: 0; border-radius: 8px;
  background: var(--pri); color: #fff; cursor: pointer; font-size: 13px;
}
.lang-switch { font-size: 13px; color: var(--muted); white-space: nowrap; }
.lang-switch a.on { color: var(--pri); font-weight: 600; }

/* ── Hero 轮播 ── */
.hero { position: relative; overflow: hidden; background: #0f1b33; }
.hero .slide { display: none; position: relative; }
.hero .slide.on { display: block; }
.hero .slide-txt {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 8%;
  background: linear-gradient(90deg, rgba(6,14,33,.62) 0%, rgba(6,14,33,.15) 70%);
}
.hero .slide-txt h2 {
  margin: 0 0 12px; color: #fff;
  font-size: clamp(22px, 3.4vw, 40px); line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.hero .slide-txt p {
  margin: 0 0 18px; color: rgba(255,255,255,.88);
  font-size: clamp(14px, 1.4vw, 17px); max-width: 560px;
}
.hero .slide-txt .btn { align-self: flex-start; border: 0; }
.hero .dots {
  position: absolute; bottom: 14px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 10px; z-index: 2;
}
/* 分页点是真按钮：可 Tab 到达、可回车激活，外观与原来的 <i> 一致 */
.hero .dots .dot {
  width: 10px; height: 10px; border-radius: 50%; padding: 0; border: 0;
  background: rgba(255,255,255,.45); cursor: pointer;
  /* 不能写 transition: all —— 会让 outline-color 一起补间，焦点环淡入 250ms，
     键盘用户按下 Tab 后看不清现在在哪 */
  transition: background-color .25s, width .25s, border-radius .25s;
  -webkit-appearance: none; appearance: none;
}
.hero .dots .dot.on { background: #fff; width: 26px; border-radius: 5px; }
.hero .dots .dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px rgba(0,0,0,.45); }

/* ── 首页内容区块 ── */
.home-block { padding: 42px 0 10px; }
.block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px;
}
.block-head h2 { margin: 0; font-size: 24px; }
.block-head .more { color: var(--muted); font-size: 13px; }
.block-head .more:hover { color: var(--pri); }

/* ── 卡片 ── */
.cards {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  padding-bottom: 20px;
}
.card {
  background: var(--card-bg); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(17,38,88,.12); }
.card h3 {
  margin: 12px 14px 6px; font-size: 16px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .price { margin: 0 14px; color: var(--accent-text); font-weight: 700; font-size: 17px; }
.card .muted { margin: 0 14px 6px; }
.card .desc {
  margin: 0 14px 14px; color: var(--muted); font-size: 13px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── 页面标题/面包屑 ── */
.page-title { font-size: 26px; margin: 26px 0 10px; }
.crumbs {
  padding: 14px 0 0; font-size: 13px; color: var(--muted);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--pri); }
.crumbs b { color: var(--text); font-weight: 600; }

/* ── 工具条/筛选 ── */
.sort-bar, .range-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 14px 0; font-size: 14px;
}
.sort-bar select, .range-bar input[type="text"] {
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font-size: 14px; outline: none;
}
.sort-bar select:focus, .range-bar input:focus { border-color: var(--pri); }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.chip {
  padding: 5px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; color: var(--muted); cursor: pointer;
}
.chip:hover { border-color: var(--pri); color: var(--pri); }
.chip.on { background: var(--pri); border-color: var(--pri); color: #fff; }
.chip .cnt { opacity: .75; font-size: 12px; }

/* ── 按钮 ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff;
  font-size: 14px; cursor: pointer; color: var(--text);
  transition: all .18s;
}
.btn:hover { border-color: var(--pri); color: var(--pri); }
.btn.pri { background: var(--pri); border-color: var(--pri); color: #fff; }
.btn.pri:hover { background: var(--pri-dark); color: #fff; }
.btn.sm { padding: 4px 12px; font-size: 12px; border-radius: 6px; }

/* ── 详情页 ── */
.detail {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 26px 30px 30px; margin: 16px 0 30px; border: 1px solid var(--line);
}
.price { color: var(--pri); font-weight: 700; font-size: 17px; margin: 4px 0; }
.price.big { color: var(--accent-text); font-size: 26px; font-weight: 700; margin: 4px 0 8px; }
.meta { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
/* 带 width/height 属性的图片需要显式 height:auto，否则 max-width 收缩时会压扁 */
.cover { border-radius: var(--radius); margin: 16px 0; height: auto; }
.detail-body { padding-top: 8px; }
.detail-body section { margin: 14px 0; }
.detail-body .line strong { color: var(--muted); font-weight: 500; margin-right: 6px; }
.rich { line-height: 1.9; }
.rich img { border-radius: 8px; margin: 10px 0; max-width: 100%; height: auto; }
.rich p, .rich li, .detail-body .line, .crumbs, .card .desc { overflow-wrap: anywhere; }
.rich table { border: 1px solid var(--line); }
.rich td, .rich th { border: 1px solid var(--line); padding: 8px 12px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; height: auto; }
.video video, .video-list video { width: 100%; max-width: 720px; border-radius: 8px; background: #000; }
.spec { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.spec h3 { margin: 0 0 10px; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.tbl-spec { width: 100%; }
.tbl-spec th { background: #f4f6fa; text-align: left; }
.tbl-spec td, .tbl-spec th { border-bottom: 1px solid var(--line); padding: 9px 12px; font-size: 14px; }
.spec.collapsed .tbl-spec { max-height: 180px; overflow: hidden; }
.spec-toggle { border: 0; background: none; color: var(--pri); cursor: pointer; font-size: 13px; }
.timeline .tl-item { border-left: 3px solid var(--pri); padding: 2px 0 2px 16px; margin: 14px 0; }
.timeline dt { font-weight: 600; margin-bottom: 4px; }
.timeline dd { margin: 0; color: var(--muted); font-size: 14px; }
.entry-nav { display: flex; gap: 12px; border-top: 1px solid var(--line); margin-top: 26px; padding-top: 16px; font-size: 14px; }
.entry-nav a { color: var(--pri); }

/* ── 分页 ── */
.pager {
  display: flex; justify-content: center; align-items: center; gap: 16px;
  padding: 22px 0 40px; font-size: 14px;
}
.pager a { color: var(--pri); }
.pager span { color: var(--muted); }

/* ── 空态/提示 ── */
.empty-tip { text-align: center; color: var(--muted); padding: 46px 0; font-size: 14px; }

/* ── 联系表单 ── */
.form { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 16px 0 40px; }
.form .field { margin-bottom: 14px; }
.form label { display: block; font-size: 14px; margin-bottom: 6px; }
/* 第八十六轮(审查): ①作者 .form label 压过 UA [hidden] → cap-box 常驻(验证码未要求也显示); 兜底回显 hidden 语义
.form [hidden] { display: none; }
/* 第八十六轮: 提交成功收起字段区但保留 #form-result 结果段(form.hidden 曾把结果一起藏掉) */
.form.form-done > :not(#form-result) { display: none; }
.form input, .form textarea {
  width: 100%; padding: 10px 12px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 8px; outline: none; font-family: inherit;
}
.form input:focus, .form textarea:focus { border-color: var(--pri); }
.form textarea { min-height: 120px; resize: vertical; }
.form-result.ok { color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; padding: 10px 14px; border-radius: 8px; margin-top: 12px; font-size: 14px; }
.form-result.err { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; padding: 10px 14px; border-radius: 8px; margin-top: 12px; font-size: 14px; }

/* ── 页脚 ── */
.site-footer { background: #101828; color: #cbd5e1; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding: 34px 16px; }
.footer-grid a { color: #94a3b8; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { margin: 4px 0; font-size: 13px; }
.qr-slot { text-align: center; font-size: 12px; color: #94a3b8; }
.qr-slot img, .qr-slot .qr-ph { width: 96px; height: 96px; border-radius: 8px; display: block; object-fit: cover; margin: 0 auto 6px; }
/* 深色页脚上的次要文字要单独给亮色，--muted 在深底上只有 2~3:1 */
.site-footer .muted { color: #93a3bd; }
.qr-ph { background: #243244; display: flex; align-items: center; justify-content: center; color: #93a3bd; }

/* ── 返回顶部/灯箱 ── */
#back-top {
  position: fixed; right: 22px; bottom: 30px; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--pri); color: #fff; font-size: 18px;
  cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .25s;
  box-shadow: 0 6px 16px rgba(26,86,219,.35);
}
#back-top.show { opacity: 1; pointer-events: auto; }
#lightbox { align-items: center; justify-content: center; }

/* ── 移动端 ── */
@media (max-width: 820px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 8px 12px 14px;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08);
    max-height: calc(100dvh - 64px); overflow-y: auto; z-index: 60;
  }
  .nav.open { display: flex; }
  .nav-burger {
    display: block; background: none; border: 1px solid var(--line);
    border-radius: 8px; min-width: 44px; min-height: 40px; font-size: 17px;
    cursor: pointer; color: var(--text); flex-shrink: 0;
  }
  /* flex-basis 用固定小值, 不吃 input 的固有宽度(size=20), 否则窄屏会被撑出横向溢出 */
  .searchbar input[type="search"] { flex: 1 1 80px; min-width: 0; width: auto; font-size: 16px; }
  .searchbar button { padding: 10px 14px; min-height: 40px; }
  .lang-switch a { padding: 10px 4px; }
  .header-inner { gap: 10px; }
  /* 轮播: 手势区禁止横向平移手势, 圆点扩大点击热区(视觉尺寸不变) */
  .hero { touch-action: pan-y; }
  .hero .slide picture { aspect-ratio: 16/8; }
  .hero .dots { gap: 14px; bottom: 10px; }
  .hero .dots .dot { position: relative; }
  .hero .dots .dot::before { content: ''; position: absolute; inset: -16px; }
  .hero .slide-txt h2 { font-size: 21px; margin-bottom: 8px; }
  .hero .slide-txt p { font-size: 14px; margin-bottom: 14px; }
  .nav a { padding: 13px 14px; }
  .chip { padding: 10px 16px; }
  .btn { padding: 11px 18px; min-height: 44px; }
  .btn.sm { padding: 9px 12px; min-height: 40px; }
  .pager a { padding: 10px 12px; }
  .spec-toggle { padding: 12px 6px; }
  /* 小屏表单控件 16px 起, 避 iOS 聚焦时整页自动放大 */
  .form input, .form textarea, .sort-bar select, .range-bar input[type="text"] {
    font-size: 16px; padding: 11px 12px;
  }
  /* 宽表格在滚动容器里保持列宽, 不再被压成一坨 */
  .rich { overflow-x: auto; max-width: 100%; }
  .rich table, .tbl-spec { min-width: 420px; }
  /* 宽表首列冻结: 横向滚动时"这一行是什么参数"不跟着跑掉 */
  .rich table th:first-child, .rich table td:first-child,
  .spec .tbl-spec th:first-child, .spec .tbl-spec td:first-child {
    position: sticky; left: 0; z-index: 1; background: var(--card-bg);
    box-shadow: inset -1px 0 0 var(--line);
  }
  .spec .tbl-spec th:first-child { background: #f4f6fa; }
  /* 滑动提示由 main.js 按"是否真的溢出"插入, 不再无条件显示 */
  .tbl-hint { text-align: center; color: var(--muted); font-size: 12px; padding: 6px 0 2px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(46%, 1fr)); gap: 12px; }
  .detail { padding: 18px 16px 22px; }
  .footer-grid { flex-direction: column; }
  .spec { overflow-x: auto; }
  /* 触屏没有"移出"动作, 别让 hover 样式把卡片/链接钉在激活态 */
  @media (hover: none) {
    .card:hover { transform: none; box-shadow: none; }
    a:hover, .crumbs a:hover, .footer-grid a:hover { color: inherit; }
    .nav a:not(.on):hover { background: transparent; color: var(--text); }
    .chip:hover { border-color: var(--line); color: var(--muted); }
    .btn:not(.pri):hover { border-color: var(--line); color: var(--text); }
    .btn.pri:hover { background: var(--pri); color: #fff; }
  }
}

/* 小屏(手机竖屏)专属 */
@media (max-width: 520px) {
  .wrap { padding: 0 12px; }
  /* 头部两行化: 第一行 logo/语言/汉堡, 第二行整宽搜索 */
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 8px; }
  .logo { font-size: 19px; }
  .lang-switch { margin-left: auto; }
  /* 搜索行: 语言切换也在同一个 form 内, 放不下就让它换到下一行 */
  .searchbar { order: 5; flex: 1 1 100%; min-width: 0; flex-wrap: wrap; }
  .searchbar input[type="search"] { flex: 1 1 60px; min-width: 0; }
  .lang-switch { flex: 0 0 auto; }
  .hero .slide picture { aspect-ratio: 4/3; }
  .hero .slide-txt { padding: 0 6% 6%; }
  .hero .slide-txt h2 { font-size: 20px; }
  .hero .slide-txt p { font-size: 13.5px; }
  .home-block { padding: 28px 0 6px; }
  .block-head h2 { font-size: 20px; }
  .page-title { font-size: 21px; margin: 20px 0 8px; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .detail { padding: 16px 14px 22px; border-radius: 8px; }
  .entry-nav { flex-direction: column; gap: 8px; }
  .form { padding: 16px; }
  .footer-grid { padding: 26px 16px; gap: 18px; }
  .qr-slot img, .qr-slot .qr-ph { width: 88px; height: 88px; }
  #back-top { width: 44px; height: 44px; right: 14px; bottom: 18px; }
}

/* 超窄屏(320px 级): 再收一档, 保证头部与搜索行不溢出 */
@media (max-width: 360px) {
  .wrap, .header-inner { padding-left: 8px; padding-right: 8px; }
  .logo { font-size: 17px; }
  .lang-switch { font-size: 12px; }
  .searchbar { gap: 4px; }
  .searchbar button { padding: 10px 12px; }
  .searchbar input[type="search"] { padding: 10px 8px; }
  .hero .slide-txt h2 { font-size: 18px; }
  .btn { padding: 11px 14px; }
  .cards { gap: 10px; }
  .detail { padding: 14px 10px 20px; }
  .spec { padding: 12px 10px; }
}

/* ── 无障碍基线(第二十二轮): 跳过导航 + 统一键盘焦点环 ── */
.skip-link {
  position: absolute; left: 8px; top: -52px; z-index: 200;
  padding: 10px 16px; background: var(--pri); color: #fff; border-radius: 0 0 8px 8px;
  font-size: 14px; transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; }
/* main 是跳转目标, 程序化聚焦时不需要焦点环 */
main[tabindex='-1']:focus { outline: none; }
:where(a, button, summary, [role='button']):focus-visible {
  outline: 2px solid var(--pri); outline-offset: 2px; border-radius: 4px;
}
/* 这些控件原本 outline:none 只靠边框变色, 键盘焦点几乎不可见, 必须显式补环 */
.searchbar input[type='search']:focus-visible,
.form input:focus-visible, .form textarea:focus-visible,
.sort-bar select:focus-visible, .range-bar input:focus-visible {
  outline: 2px solid var(--pri); outline-offset: 2px;
}
/* 灯箱里的关闭按钮与可放大的图片 */
.lb-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gallery img:focus-visible, .rich img[role='button']:focus-visible {
  outline: 3px solid var(--pri); outline-offset: 2px;
}

/* ── 单页区块化渲染(第三十一轮): detail.ejs 的 .blk 区块 ── */
.blk { margin: 0 0 22px; }
.blk:last-child { margin-bottom: 0; }
h2.blk-title { margin: 0 0 10px; font-size: 22px; line-height: 1.4; }
.blk .rich { margin: 0; }
figure.blk-image { margin: 0; }
figure.blk-image img,
.blk-grid-item img {
  display: block; width: 100%; height: auto; border-radius: 8px;
}
.blk-grid { display: grid; gap: 12px; margin: 0; }
.blk-grid-item { margin: 0; }
ul.blk-list { margin: 0; padding-left: 20px; }
ul.blk-list li { margin: 6px 0; line-height: 1.6; }
.blk .blk-form { max-width: 560px; }
h2.blk-form-title { margin: 0 0 10px; font-size: 20px; }
/* 区块图栅格的列数是内联 style, 小屏只能用 !important 压回安全列数 */
@media (max-width: 640px) {
  .blk-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 420px) {
  .blk-grid { grid-template-columns: 1fr !important; }
}

/* ── 列表页字段级筛选(第三十八轮): .filter-bar, 视觉与 .sort-bar/.range-bar 一致 ── */
.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 14px 0; font-size: 14px;
}
.filter-bar .f-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.filter-bar select,
.filter-bar input[type="number"] {
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font-size: 14px; outline: none;
  /* 教训8: number input 固有宽度会撑破小屏, 必须掐宽度并允许收缩 */
  width: 96px; min-width: 0;
}
.filter-bar select { max-width: 180px; }
.filter-bar select:focus,
.filter-bar input[type="number"]:focus { border-color: var(--pri); }
.filter-bar select:focus-visible,
.filter-bar input[type="number"]:focus-visible {
  outline: 2px solid var(--pri); outline-offset: 2px;
}
/* 小屏换行: 每个筛选项独占一行起, 控件放宽; 16px 防 iOS 聚焦缩放(教训10) */
@media (max-width: 520px) {
  .filter-bar { gap: 8px; }
  .filter-bar .f-item { flex: 1 1 100%; white-space: normal; }
  .filter-bar select,
  .filter-bar input[type="number"] { font-size: 16px; flex: 1 1 auto; width: auto; }
}

/* ===== 第七十四轮: 页脚栏目/社交/友链 + 首页公告横幅(兑现后台已下发但前台零消费的配置) ===== */
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 10px; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-social { margin: 8px 0 0; font-size: 13px; }
.footer-social a { color: inherit; opacity: .85; }
.footer-social a:hover { opacity: 1; text-decoration: underline; }
.footer-friends { margin-top: 10px; font-size: 13px; }
.footer-friends p { margin: 4px 0; line-height: 1.9; }
.ff-label { opacity: .75; }
.footer-friends a { color: inherit; opacity: .85; }
.footer-friends a:hover { opacity: 1; text-decoration: underline; }
.ann-banner { margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; border: 1px solid; font-size: 14px; line-height: 1.7; }
.ann-banner strong { margin-right: 8px; }
.ann-content p { margin: 4px 0 0; }
.ann-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.ann-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.ann-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.ann-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* ===== 第七十五轮: 联系页联系方式区(后台配置前台兑现, R74 同族收官) ===== */
.contact-info { margin: 18px 0 24px; }
.contact-info h2 { font-size: 17px; margin: 0 0 10px; }
.contact-info dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.contact-info dt { color: var(--muted); font-size: 14px; white-space: nowrap; }
.contact-info dd { margin: 0; font-size: 14px; color: var(--text); }
.contact-info dd a { color: var(--pri); }
@media (max-width: 520px) {
  .contact-info dl { grid-template-columns: 1fr; gap: 2px; }
  .contact-info dt { margin-top: 8px; white-space: normal; }
}
