/* =========================================================
   南京全盛铸造材料厂 — 响应式企业站（基于艺源模板改版）
   目录: css/style.css   |  断点: 640px / 900px / 1200px
   ========================================================= */
:root {
  --c-primary: #b23b2e;
  --c-primary-dark: #8e2b21;
  --c-primary-light: #fdeae6;
  --c-dark: #1c1917;
  --c-text: #292524;
  --c-muted: #78716c;
  --c-bg: #faf9f7;
  --c-card: #ffffff;
  --c-line: #e7e5e4;
  --c-ok: #15803d;
  --shadow-sm: 0 1px 3px rgba(28, 25, 23, .08);
  --shadow-md: 0 6px 18px rgba(28, 25, 23, .10);
  --shadow-lg: 0 16px 40px rgba(28, 25, 23, .16);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 64px;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 42px; height: 42px; object-fit: cover; border-radius: 10px; }
.brand-name { font-weight: 700; font-size: 17px; color: var(--c-dark); white-space: nowrap; }
.brand-sub { font-size: 11px; color: var(--c-muted); letter-spacing: 1px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--c-text);
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--c-primary-light); color: var(--c-primary-dark); }
.main-nav a.active { background: var(--c-primary); color: #fff; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 8px; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 10px; width: 22px; height: 2px;
  background: var(--c-dark); border-radius: 2px; transition: transform .25s, opacity .25s;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-md); padding: 8px 12px 14px;
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: 8px; font-size: 16px; }
  .brand-name { font-size: 15px; }
}

/* ---------- Hero 轮播 ----------
   横幅原图自带宣传文案，采用等比展示，不再叠加文字，避免重叠
   ---------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; background: #ece9e4;
  width: 100%; aspect-ratio: 1650 / 500; max-height: 560px;
}
.hero-slide {
  display: block;
  position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease;
  background-size: cover; background-position: center;
}
.hero-slide:focus-visible { outline: 3px solid rgba(255, 255, 255, .85); outline-offset: -3px; }
.hero-slide.active { opacity: 1; }
@media (max-width: 900px) {
  /* 保持原始 1650:500 比例，保证横幅文案完整可见、不变形 */
  .hero { aspect-ratio: 1650 / 500; min-height: 110px; max-height: none; }
  .hero-slide { background-position: center; }
  .hero-dots { bottom: 8px; gap: 6px; }
  .hero-dots button { width: 7px; height: 7px; }
  .hero-dots button.active { width: 18px; }
}
.hero-dots { position: absolute; z-index: 3; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.45); transition: all .3s; }
.hero-dots button.active { background: #fff; width: 26px; border-radius: 6px; }

/* ---------- 页内小轮播（关于我们右侧图，3 图轮播） ---------- */
.mini-slider { position: relative; aspect-ratio: 3 / 2; background: #ece9e4; }
.ms-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .8s ease;
}
.ms-slide.active { opacity: 1; }
.ms-slide img { width: 100%; height: 100%; object-fit: cover; }
/* 底部渐变遮罩：浅色图片上也能看清圆点 */
.mini-slider::after {
  content: ''; position: absolute; z-index: 2;
  left: 0; right: 0; bottom: 0; height: 56px;
  background: linear-gradient(to top, rgba(0, 0, 0, .30), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.slider-dots {
  position: absolute; z-index: 3; bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
}
.slider-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 1px 3px rgba(28, 25, 23, .25);
  transition: all .3s;
}
.slider-dots button.active { background: #fff; width: 24px; border-radius: 6px; }
@media (max-width: 900px) {
  .mini-slider { aspect-ratio: 16 / 9; }
  .slider-dots { bottom: 8px; gap: 6px; }
  .slider-dots button { width: 7px; height: 7px; }
  .slider-dots button.active { width: 16px; }
}

/* ---------- 首页：品牌口号 + 全国销售热线横条 ---------- */
.hotline-band { padding: 32px 0 0; }
.hb-inner {
  display: flex; align-items: stretch;
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
/* 左：口号区 */
.hb-slogan {
  flex: 0 0 38%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 30px 34px;
  background: #8a5a48; color: #fff;
}
.hb-slogan h2 {
  font-size: clamp(17px, 1.45vw, 21px); font-weight: 700;
  letter-spacing: .5px; line-height: 1.45;
}
.hb-slogan p {
  margin-top: 10px; font-size: 12px; letter-spacing: .8px;
  text-transform: uppercase; color: rgba(255, 255, 255, .82);
}
/* 右：热线 + 按钮（同一底色，保持渐变连续） */
.hb-right {
  flex: 1 1 auto; display: flex; align-items: stretch;
  background: linear-gradient(100deg, #c14f35 0%, #a83e28 100%);
  color: #fff;
}
.hb-call {
  flex: 1 1 auto; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 26px 24px;
}
.hb-label { font-size: 15px; letter-spacing: 1px; color: rgba(255, 255, 255, .95); }
.hb-tel {
  display: block; margin-top: 2px;
  font-size: clamp(26px, 3.1vw, 40px); font-weight: 700;
  letter-spacing: 1px; line-height: 1.18;
  font-variant-numeric: tabular-nums;
  transition: opacity .2s;
}
.hb-tel:hover { opacity: .85; }
.hb-action {
  flex: 0 0 auto; display: flex; align-items: center;
  padding: 0 30px;
  border-left: 1px dashed rgba(255, 255, 255, .6);
}
.hb-btn {
  display: inline-block;
  padding: 12px 26px;
  background: #fff; color: #a83e28;
  font-size: 15px; font-weight: 700; letter-spacing: 2px;
  border-radius: 2px;
  transition: transform .2s ease, box-shadow .2s ease, color .2s;
  white-space: nowrap;
}
.hb-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(140, 50, 30, .28);
  color: var(--c-primary-dark);
}
@media (max-width: 900px) {
  .hotline-band { padding: 22px 0 0; }
  .hb-inner { flex-wrap: wrap; }
  .hb-slogan { flex: 1 0 100%; padding: 20px 22px; }
  .hb-slogan p { margin-top: 6px; }
  .hb-right { flex: 1 0 100%; }
  .hb-call { padding: 18px 16px; }
  .hb-action { padding: 0 18px; }
}
@media (max-width: 560px) {
  .hb-right { flex-direction: column; }
  .hb-call { padding: 20px 16px 14px; }
  .hb-action {
    border-left: none; border-top: 1px dashed rgba(255, 255, 255, .6);
    padding: 16px; justify-content: center;
  }
  .hb-btn { width: 100%; text-align: center; padding: 13px 20px; }
}

/* ---------- 通用区块 ---------- */
.section { padding: 64px 0; }
.section.alt { background: #fff; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); color: var(--c-dark); letter-spacing: 1px; }
.section-head h2 em { font-style: normal; color: var(--c-primary); }
.section-head p { margin-top: 8px; color: var(--c-muted); font-size: 15px; }
.section-head .bar { width: 46px; height: 4px; background: var(--c-primary); border-radius: 2px; margin: 14px auto 0; }

/* 滚动显现 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 优势卡片 ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feat-card { padding: 18px 12px; }
  .feat-icon { width: 44px; height: 44px; font-size: 21px; margin-bottom: 10px; }
  .feat-card h3 { font-size: 15px; }
  .feat-card p { font-size: 12.5px; line-height: 1.55; }
}
.feat-card {
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feat-icon {
  width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 14px;
  background: var(--c-primary-light); color: var(--c-primary-dark);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.feat-card h3 { font-size: 17px; color: var(--c-dark); margin-bottom: 6px; }
.feat-card p { font-size: 13.5px; color: var(--c-muted); }

/* ---------- 分类卡 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card { aspect-ratio: 1 / .82; }
  .cat-card .cat-label { padding: 26px 10px 10px; font-size: 14px; }
  .cat-card .cat-label small { display: none; }
}
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); aspect-ratio: 4 / 2.6; background: #ddd;
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card .cat-label {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px;
  background: linear-gradient(to top, rgba(28,25,23,.78), transparent);
  color: #fff; font-size: 17px; font-weight: 600; letter-spacing: 1px;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.cat-card .cat-label small { font-weight: 400; opacity: .85; font-size: 12px; }

/* ---------- 产品网格 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.filter-bar button, .filter-bar a {
  padding: 8px 18px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--c-line); background: #fff; color: var(--c-text);
  transition: all .2s;
}
.filter-bar button:hover, .filter-bar a:hover { border-color: var(--c-primary); color: var(--c-primary-dark); }
.filter-bar button.active, .filter-bar a.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
@media (max-width: 560px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .prod-card .info { padding: 10px 11px 12px; }
  .prod-card .info h3 { font-size: 13.5px; }
  .prod-card .info span { font-size: 11px; padding: 1px 8px; }
}
.prod-card {
  background: var(--c-card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--c-line); box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.prod-card .thumb { aspect-ratio: 1 / .82; overflow: hidden; background: #f1efe9; }
.prod-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.prod-card:hover .thumb img { transform: scale(1.05); }
.prod-card .info { padding: 14px 16px 16px; }
.prod-card .info h3 { font-size: 15.5px; color: var(--c-dark); font-weight: 600; }
.prod-card .info span { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--c-primary-dark); background: var(--c-primary-light); padding: 2px 10px; border-radius: 999px; }

/* ---------- 产品详情弹层 ---------- */
/* ---------- 独立详情页（产品 / 新闻共用框架） ---------- */
.page-banner.has-crumbs { text-align: left; padding: 30px 20px 26px; }
.crumbs { font-size: 13.5px; color: rgba(255,255,255,.75); max-width: var(--maxw); margin: 0 auto; }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs i { margin: 0 8px; font-style: normal; opacity: .5; }
.crumbs b { color: #fff; font-weight: 500; }

/* 产品详情两栏布局 */
.pd-layout {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 38px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow-sm);
}
.pd-stage { border-radius: var(--radius-sm); overflow: hidden; background: var(--c-bg); aspect-ratio: 4 / 3; }
.pd-stage img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.pd-stage:hover img { transform: scale(1.03); }

/* 产品详情区：完整简介 + 主图之外的其他图片 */
.pd-detail {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow-sm); margin-top: 26px;
}
.pd-detail-text { color: var(--c-text); font-size: 14.5px; line-height: 1.9; }
.pd-detail-imgs { display: grid; gap: 14px; margin-top: 20px; }
.pd-detail-imgs img {
  display: block; width: 100%; background: var(--c-bg);
  border-radius: var(--radius-sm); border: 1px solid var(--c-line);
}

.pd-info .tag { font-size: 12px; color: var(--c-primary-dark); background: var(--c-primary-light); padding: 3px 14px; border-radius: 999px; }
.pd-info h1 { font-size: clamp(22px, 3vw, 30px); color: var(--c-dark); margin: 12px 0 14px; line-height: 1.4; }
.pd-desc { color: var(--c-muted); font-size: 14.5px; margin-bottom: 20px; }
.pd-specs { border-top: 1px dashed var(--c-line); margin-bottom: 24px; }
.pd-specs li { display: flex; padding: 11px 2px; border-bottom: 1px dashed var(--c-line); font-size: 14px; }
.pd-specs li span { color: var(--c-muted); width: 90px; flex: none; }
.pd-specs li b { font-weight: 500; color: var(--c-text); }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-note { margin-top: 14px; font-size: 13px; color: var(--c-muted); }

/* 上一篇 / 下一篇 */
.pd-nav, .nd-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px;
}
.pd-nav a, .nd-nav a {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 14px 18px; transition: box-shadow .2s, border-color .2s;
}
.pd-nav a:hover, .nd-nav a:hover { border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.pd-nav a span, .nd-nav a span { display: block; font-size: 12px; color: var(--c-muted); margin-bottom: 4px; }
.pd-nav a strong, .nd-nav a strong { font-size: 14px; font-weight: 500; color: var(--c-text); line-height: 1.5; }
.nd-nav a:last-child { text-align: right; }
.nd-nav.single, .pd-nav.single { grid-template-columns: 1fr; }
.nd-nav.single a:last-child { text-align: left; }

/* 详情页相关推荐 */
.pd-related, .nd-related { margin-top: 54px; }
.detail-empty { text-align: center; padding: 70px 0; color: var(--c-muted); }
.detail-empty p { margin-bottom: 20px; font-size: 15px; }
.pd-back { text-align: center; margin-top: 40px; }
@media (max-width: 900px) {
  .pd-layout { grid-template-columns: 1fr; gap: 22px; }
  .pd-nav, .nd-nav { grid-template-columns: 1fr; }
  .nd-nav a:last-child { text-align: left; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  transition: all .2s;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); }
.btn-ghost { border: 1.5px solid var(--c-line); color: var(--c-text); background: #fff; }
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary-dark); }

/* ---------- 关于页 ---------- */
.about-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .about-layout { grid-template-columns: 1fr; } }
.about-text p { margin-bottom: 14px; color: var(--c-text); font-size: 15.5px; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 640px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card { text-align: center; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px 10px; }
.stat-card b { display: block; font-size: 26px; color: var(--c-primary); }
.stat-card span { font-size: 13px; color: var(--c-muted); }

/* ---------- 新闻 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-card .date { font-size: 12.5px; color: var(--c-primary-dark); background: var(--c-primary-light); display: inline-block; padding: 2px 10px; border-radius: 999px; }
.news-card h3 { margin: 10px 0 8px; font-size: 16.5px; color: var(--c-dark); line-height: 1.5; }
.news-card p { font-size: 13.5px; color: var(--c-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 新闻文章视图 */
.article { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: clamp(22px, 4vw, 46px); box-shadow: var(--shadow-sm); }
.article .meta { font-size: 13px; color: var(--c-muted); margin-bottom: 6px; }
.article h1 { font-size: clamp(20px, 3vw, 26px); color: var(--c-dark); line-height: 1.5; margin-bottom: 18px; }
.article .content p { margin: 12px 0; font-size: 15.5px; color: var(--c-text); line-height: 1.95; text-align: justify; }
.article .content p.sub { font-weight: 600; color: var(--c-dark); font-size: 16px; margin: 22px 0 6px; text-align: left; }
.article .content img { margin: 16px auto; border-radius: var(--radius-sm); }
.article .back { margin-top: 26px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 44px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px 20px; text-align: center; box-shadow: var(--shadow-sm); }
.contact-card .ico { font-size: 26px; margin-bottom: 10px; }
.contact-card h3 { font-size: 14px; color: var(--c-muted); font-weight: 500; }
.contact-card p { margin-top: 6px; font-size: 15px; color: var(--c-dark); font-weight: 600; word-break: break-all; }

.form-wrap { max-width: 680px; margin: 0 auto; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: clamp(20px, 4vw, 38px); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; color: var(--c-text); margin-bottom: 6px; font-weight: 600; }
.field label i { color: #dc2626; font-style: normal; margin-left: 2px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--c-line); border-radius: 10px;
  font-size: 14.5px; font-family: inherit; color: var(--c-text); background: var(--c-bg);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(180, 83, 9, .12); }
.field .err { display: none; font-size: 12px; color: #dc2626; margin-top: 4px; }
.field.invalid input, .field.invalid textarea { border-color: #dc2626; }
.field.invalid .err { display: block; }
.form-tip { font-size: 12.5px; color: var(--c-muted); margin-top: 14px; text-align: center; }
.form-ok {
  display: none; margin-top: 16px; padding: 14px 18px; border-radius: 10px;
  background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--c-ok); font-size: 14.5px;
}

/* ---------- CTA 条 ---------- */
.cta-band { background: linear-gradient(120deg, var(--c-dark), #44403c); color: #fff; text-align: center; padding: 56px 20px; }
.cta-band h2 { font-size: clamp(20px, 3vw, 28px); letter-spacing: 1px; }
.cta-band p { margin: 10px 0 22px; opacity: .85; font-size: 15px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--c-dark); color: #d6d3d1; padding: 48px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; padding-bottom: 30px; border-bottom: 1px solid #44403c; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 14px; letter-spacing: 1px; }
.site-footer p, .site-footer li { color: #a8a29e; font-size: 13.5px; margin: 6px 0; }
.site-footer a:hover { color: var(--c-primary); }
.footer-bottom { text-align: center; padding-top: 20px; color: #78716c; font-size: 12.5px; line-height: 1.9; }

.svg-ico svg { width: 100%; height: 100%; display: block; }
.feat-icon { padding: 13px; }
.contact-card .ico { width: 46px; height: 46px; margin: 0 auto 10px; color: var(--c-primary); }
.page-banner .bar, .section-head .bar { }

/* ---------- 列表统计与分页 ---------- */
.list-meta { text-align: center; color: var(--c-muted); font-size: 13.5px; margin-bottom: 24px; min-height: 20px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 38px; flex-wrap: wrap; }
.pager button, .pager a {
  min-width: 40px; height: 40px; padding: 0 15px; border-radius: 10px;
  border: 1px solid var(--c-line); background: #fff; font-size: 14px; color: var(--c-text);
  transition: border-color .2s, color .2s, background .2s;
}
.pager button:hover:not(:disabled):not(.active), .pager a:hover:not(.active) { border-color: var(--c-primary); color: var(--c-primary-dark); }
.pager button.active, .pager a.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-weight: 600; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager .ellipsis { color: var(--c-muted); padding: 0 2px; }
.pager-info { font-size: 13px; color: var(--c-muted); margin-left: 10px; }
.grid-loading {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center;
  padding: 56px 0; color: var(--c-muted); font-size: 14px; gap: 14px;
}
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--c-line); border-top-color: var(--c-primary);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-primary); color: #fff; font-size: 19px;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); }

/* ---------- 页面标题横幅 ---------- */
.page-banner {
  background: linear-gradient(120deg, #292524, #57534e);
  color: #fff; text-align: center; padding: 52px 20px 46px;
}
.page-banner h1 { font-size: clamp(22px, 3.4vw, 30px); letter-spacing: 2px; }
.page-banner p { margin-top: 8px; opacity: .8; font-size: 14px; }

/* 文字品牌标（无 logo 图时使用） */
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  background: var(--c-primary); color: #fff;
  font-size: 17px; font-weight: 700; letter-spacing: 2px;
  border-radius: 10px;
}
/* 新闻正文列表项 */
.article .content p.li { padding-left: 1.2em; text-indent: -1.2em; margin: 6px 0; }
