/* =========================================================
   scxbbt.cn — 设计系统（源自 Logo：深绿 #1f7a4d / 薄荷 #eafff3 / 本草）
   自然 · 植物 · 可信赖的科技本草
   ========================================================= */
:root {
  --green: #1f7a4d;
  --green-700: #18653f;
  --green-800: #145a38;
  --leaf: #3fae74;
  --mint: #eafff3;
  --mint-soft: #f1faf5;
  --gold: #c9a227;
  --ink: #1c2b22;
  --muted: #5d7268;
  --bg: #ffffff;
  --bg-soft: #f4f8f5;
  --border: #dcebe2;
  --max: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 90, 56, .08);
  --shadow-hover: 0 20px 46px rgba(20, 90, 56, .18);
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
/* R1：overflow-x: clip 必须挂在 html 上（而不是 .main）。
   .main 同时带 .container（max-width 1160px），在其上裁剪会把 .hero--full 的
   100vw 通栏背景硬裁回容器宽度（上一轮回归）。clip 不创建滚动容器，
   既能吃掉 100vw 相对滚动条宽度产生的溢出（不出横向滚动条），
   也不会破坏 .site-header 的 position: sticky。 */
html { scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--green-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--green-800); line-height: 1.3; font-weight: 800; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
/* 注意：此处禁止再加 overflow-x（见上方 html 规则），否则通栏 banner 会被裁回 1160px */
.main { padding: 40px 0 64px; min-height: 52vh; overflow-x: visible; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px; flex-wrap: wrap; gap: 10px; }
.brand { display: flex; align-items: center; color: var(--green-800); }
.brand img { height: 52px; width: auto; display: block; }
.nav { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a {
  position: relative; color: var(--ink); font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 5px;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--green); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover { color: var(--green-700); text-decoration: none; }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- Hero（品牌化企业横幅，非影视大图） ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 480px at 88% -15%, rgba(63, 174, 116, .38), transparent 60%),
    linear-gradient(115deg, #0f4a2d 0%, #145a38 45%, #1f7a4d 100%);
  color: #fff; padding: clamp(54px, 7.5vw, 92px) 0; border-radius: 0 0 28px 28px;
}
.hero-deco {
  position: absolute; right: -3%; top: 50%; transform: translateY(-50%) rotate(10deg);
  width: clamp(180px, 26vw, 360px); opacity: .1; z-index: 1;
  filter: brightness(0) invert(1); pointer-events: none;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.hero-inner { max-width: 600px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; letter-spacing: 1px; margin-bottom: 18px;
}
.hero .eyebrow img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.hero h1 {
  color: #fff; font-family: var(--serif); font-weight: 900;
  font-size: clamp(30px, 5vw, 52px); line-height: 1.2; margin: 0 0 16px; letter-spacing: 1px;
}
.hero .lead { font-size: clamp(15px, 2vw, 19px); color: #e7f6ee; max-width: 600px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
/* 右侧产品展示拼贴（企业感，非影视横屏） */
.hero-showcase { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-showcase .shot {
  border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 18px 42px rgba(0, 0, 0, .32);
  animation: floaty 6s ease-in-out infinite;
}
.hero-showcase .shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.hero-showcase .shot.tall { grid-row: span 2; }
.hero-showcase .shot.tall img { aspect-ratio: 3 / 4; }
.hero-showcase .shot:nth-child(2) { animation-delay: 1.6s; }
.hero-showcase .shot:nth-child(3) { animation-delay: 3.2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes floaty-tall { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-showcase .shot.tall { animation-name: floaty-tall; }

.stat-chips { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.stat-chip {
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px; padding: 14px 20px; min-width: 130px;
}
.stat-chip b { display: block; font-size: 26px; color: #fff; font-family: var(--serif); }
.stat-chip span { font-size: 13px; color: #cdeede; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-deco { display: none; }
}

/* ---------- 区块标题 ---------- */
.section { margin: clamp(48px, 7vw, 80px) 0; }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--green);
  font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px;
}
.section-head .eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--green); border-radius: 2px; }
.section-head h2 {
  font-family: var(--serif); font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 8px;
}
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff; padding: 11px 22px; border: 0; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
  box-shadow: 0 8px 20px rgba(31, 122, 77, .28);
}
.btn:hover { background: var(--green-700); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31, 122, 77, .36); }
.btn.secondary { background: #fff; color: var(--green-700); border: 1.5px solid var(--green); box-shadow: none; }
.btn.secondary:hover { background: var(--mint-soft); }
.btn.on-dark { background: #fff; color: var(--green-800); box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.btn.on-dark:hover { background: var(--mint); }
.btn.ghost-dark { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); box-shadow: none; }
.btn.ghost-dark:hover { background: rgba(255, 255, 255, .12); }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

/* ---------- 核心优势 ---------- */
.advantages { margin-top: 8px; }
.advantage {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .2s, box-shadow .2s, border-color .2s; height: 100%;
}
.advantage:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--leaf); }
.adv-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--mint), #cdeede); margin-bottom: 16px;
}
.adv-icon svg { width: 28px; height: 28px; }
.advantage h3 { font-size: 18px; margin: 0 0 8px; }
.advantage p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- 产品分类 ---------- */
.cat-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--leaf); }
.cat-icon {
  width: 56px; height: 56px; border-radius: 16px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--green-700)); color: #fff;
}
.cat-icon img { width: 30px; height: 30px; filter: brightness(0) invert(1); }
/* R16：语义化内联图标（奖章 / 书 / 厂房）。继承 .cat-icon 的白色 currentColor，
   不需要 img 那套 brightness(0) invert(1) 反色 hack。 */
.cat-icon svg { width: 28px; height: 28px; display: block; }
.cat-card h3 { margin: 0; font-size: 18px; }
.cat-card p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.cat-card .arrow { margin-left: auto; color: var(--green); font-weight: 700; font-size: 20px; }

/* ---------- 产品卡片 ---------- */
.product-card {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff;
  transition: transform .25s, box-shadow .25s, border-color .2s; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.product-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-hover); border-color: var(--leaf); }
.product-card a { color: var(--ink); display: block; }
.product-card .thumb {
  position: relative; aspect-ratio: 4 / 3; background: #f6f8f7; overflow: hidden;
  display: grid; place-items: center; padding: 18px;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s; }
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .tag {
  position: absolute; top: 12px; right: 12px; background: var(--green); color: #fff;
  font-size: 12px; padding: 4px 12px; border-radius: 999px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(31, 122, 77, .25);
}
.product-card .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.45; font-weight: 700; }
.product-card .excerpt { color: var(--muted); font-size: 13.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .more { margin-top: auto; padding-top: 14px; color: var(--green-700); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.product-card .more::after { content: "→"; transition: transform .2s; }
.product-card:hover .more::after { transform: translateX(4px); }

/* ---------- 工艺流程 ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 10px; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }
.step { text-align: center; padding: 24px 14px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); position: relative; }
.step .num {
  width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--green-700)); color: #fff; font-family: var(--serif); font-size: 20px; font-weight: 800;
}
.step h3 { font-size: 16px; margin: 0 0 4px; }
.step p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ---------- 资质信任栏 ---------- */
.trust { background: var(--mint-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.trust-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.trust-pill {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border);
  border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--green-800);
  box-shadow: 0 4px 12px rgba(20, 90, 56, .05);
}
.trust-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.trust-pill.premium { border-color: #ecd98a; }
.trust-pill.premium .dot { background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, .2); }

/* ---------- 新闻 ---------- */
.news-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card .thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--mint), #cdeede); }
.news-card .body { padding: 16px 18px; }
.news-card .date { color: var(--muted); font-size: 13px; }
.news-card h3 { font-size: 16px; margin: 6px 0 0; line-height: 1.45; }

/* ---------- 资质卡片 ---------- */
.cert-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; text-align: center; transition: transform .2s, box-shadow .2s; }
.cert-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cert-card .media { background: var(--mint-soft); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.cert-card .media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.cert-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--green-700); font-weight: 700; }
.cert-placeholder .seal { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--gold); display: grid; place-items: center; color: var(--gold); font-family: var(--serif); font-size: 22px; }
.cert-card figcaption { padding: 12px 14px; font-weight: 600; color: var(--ink); }
.cert-type { display: inline-block; margin-top: 4px; font-size: 12px; color: #fff; background: var(--green); border-radius: 6px; padding: 2px 8px; }

/* ---------- CTA 横幅 ---------- */
.cta {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #145a38, #1f7a4d 60%, #2c8f5e);
  color: #fff; padding: clamp(32px, 5vw, 52px); border-radius: 22px; text-align: center;
}
.cta h2 { color: #fff; font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); margin: 0 0 12px; }
.cta p { color: #e7f6ee; margin: 0 0 20px; }

/* ---------- 面包屑 ---------- */
.breadcrumb ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 18px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 8px; color: var(--border); }

/* ---------- 内页通用 ---------- */
.page-hero {
  background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 40px 0;
  /* 通屏背景：section 本身铺满视口，内部 .container 约束内容宽度。
     html 已设 overflow-x: clip（main.css:33），故 100vw 不会触发横向滚动。 */
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.page-hero > .container { padding-left: 24px; padding-right: 24px; }
@media (max-width: 768px) {
  .page-hero { padding: 28px 0; }
  .page-hero > .container { padding-left: 22px; padding-right: 22px; }
}
.page-hero h1 { font-family: var(--serif); font-size: clamp(26px, 4vw, 38px); margin: 0 0 8px; }
.page-hero p { color: var(--muted); margin: 0; max-width: 700px; }
.lead { font-size: 17px; color: var(--muted); }
.body { font-size: 16px; }
.body p { margin: 0 0 1.1em; }
.body h3 { margin: 1.4em 0 .5em; }

table.spec { width: 100%; border-collapse: collapse; margin: 16px 0 24px; overflow: hidden; border-radius: 12px; }
table.spec th, table.spec td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
table.spec th { background: var(--mint-soft); color: var(--green-800); font-weight: 700; }
table.spec tr:nth-child(even) td { background: #fbfdfc; }

.detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
@media (max-width: 860px) { .detail-layout { grid-template-columns: 1fr; } }
.detail-aside { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.detail-aside h3 { margin-top: 0; }
.aside-list { list-style: none; margin: 10px 0 0; padding: 0; }
.aside-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.aside-list li:last-child { border-bottom: 0; }
.aside-list a { color: var(--ink); font-weight: 500; }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.contact-card h3 { margin-top: 0; }
.contact-card .row { display: flex; gap: 10px; margin: 10px 0; }
.contact-card .row b { color: var(--green-800); min-width: 64px; }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 14px; background: #fff; }
.faq-item h3 { margin: 0 0 8px; font-size: 17px; }
.faq-item p { margin: 0; color: var(--muted); }

/* 列表分隔 */
.divider-leaf { display: flex; align-items: center; gap: 12px; margin: 36px 0; color: var(--green); }
.divider-leaf::before, .divider-leaf::after { content: ""; height: 1px; flex: 1; background: var(--border); }

/* ---------- 页脚 ---------- */
.site-footer { background: linear-gradient(160deg, #114a2d, #145a38); color: #d7f0e4; margin-top: 56px; padding: 48px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h2 { color: #fff; font-family: var(--serif); font-size: 20px; }
.site-footer h3 { color: #bff0d6; font-size: 15px; margin: 0 0 12px; }
.site-footer p { color: #c7e7d6; font-size: 14.5px; }
.site-footer a { color: #bff0d6; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { border-radius: 10px; }
.footer-brand span { color: #fff; font-weight: 800; font-family: var(--serif); font-size: 18px; }
.footer-certs { list-style: none; margin: 0; padding: 0; }
.footer-certs li { padding: 5px 0; color: #c7e7d6; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.footer-certs li::before { content: "🌿"; font-size: 12px; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 28px; padding-top: 16px; color: #9fd3b6; font-size: 13px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 移动端底部固定电话条 ---------- */
.mobile-call-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  height: 54px;
  background: var(--green); color: #fff;
  align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 16px;
  text-decoration: none;
  transition: background .2s;
}
.mobile-call-bar svg { width: 22px; height: 22px; flex: none; }
.mobile-call-bar:hover { background: var(--green-700); color: #fff; }
@media (max-width: 768px) {
  body { padding-bottom: 54px; }
  .site-footer { display: none; }
  .mobile-call-bar { display: flex; }
  /* 避免悬浮组件与底部电话条重叠 */
  .floating-widget.is-visible { bottom: 68px; }
}

/* ---------- 后台（保持可用；外壳布局见文件末尾「后台外壳」小节） ---------- */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { border: 1px solid var(--border); padding: 8px 10px; }
.form-row { margin: 12px 0; display: flex; flex-direction: column; }
.form-row label { font-weight: 600; margin-bottom: 4px; }
.form-row input, .form-row textarea, .form-row select { padding: 8px; border: 1px solid var(--border); border-radius: 6px; font: inherit; }

/* ===== 后台增强组件（多图/动态字段/筛选/分页） ===== */
.form-fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.form-fieldset legend { font-weight: 600; color: var(--green-700); padding: 0 6px; }
.hint { color: #7a8a82; font-size: 12.5px; margin: 6px 0 0; }
.img-gallery-edit { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.img-thumb { position: relative; width: 92px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; cursor: pointer; }
.img-thumb img { width: 100%; height: 70px; object-fit: cover; display: block; }
.img-thumb .rm { display: block; text-align: center; font-size: 12px; color: #c0392b; padding: 3px 0; }
.img-thumb input { position: absolute; top: 6px; left: 6px; }

/* ---------- R17 · 后台图集排序 / 主图置顶 ----------
   .img-item 是包裹层：删除复选框仍在 <label class="img-thumb"> 内（语义不变），
   排序按钮放在 label 之外 —— 否则点按钮会连带切换「删除」勾选。 */
.img-item { position: relative; width: 92px; display: flex; flex-direction: column; gap: 4px; }
.img-item .img-thumb { width: 100%; }
.img-item-tools { display: flex; gap: 3px; }
.img-item-tools .btn {
  flex: 1; padding: 2px 0; min-width: 0; font-size: 11px; line-height: 1.6;
  border-radius: 6px; box-shadow: none; justify-content: center;
}
.img-main-flag {
  display: none; position: absolute; z-index: 2; top: -7px; right: -6px;
  padding: 1px 7px; border-radius: 999px;
  background: var(--green); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.7;
}
.img-item.is-main .img-main-flag { display: block; }
.img-item.is-main .img-thumb { border-color: var(--green); box-shadow: 0 0 0 2px rgba(31, 122, 77, .18); }

/* R21 · 「推荐」复选框行 */
.form-row-check .check-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.form-row-check .check-label input { width: auto; margin: 0; }
.dyn-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-start; }
.dyn-row input, .dyn-row textarea { flex: 1; padding: 8px; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
.dyn-row.faq-row { align-items: stretch; }
.dyn-row .btn-rm { flex: 0 0 auto; padding: 6px 12px; line-height: 1.2; }
.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.admin-toolbar input, .admin-toolbar select { padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.pager { display: flex; gap: 8px; align-items: center; margin: 16px 0; }
.recent-list { list-style: none; padding: 0; margin: 0; }
.recent-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.recent-list .rt { color: #7a8a82; font-size: 12.5px; white-space: nowrap; }
.error { color: #b00020; }

/* 错误页 */
.error-page { text-align: center; padding: 80px 20px; }
.error-page .code { font-family: var(--serif); font-size: 80px; color: var(--green); margin: 0; }

/* ---------- 内页富内容补充 ---------- */
.feature-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.feature-img img { width: 100%; height: auto; display: block; }

.info-list { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.info-list li { margin: 6px 0; }

/* 内页实力数据（白底上深色文字） */
.section .stat-chips { margin-top: 20px; }
.section .stat-chip { background: var(--bg-soft); border: 1px solid var(--border); }
.section .stat-chip b { color: var(--green-800); }
.section .stat-chip span { color: var(--muted); }

/* 联系表单 */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink); }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .contact-form .form-row { grid-template-columns: 1fr; } }
.contact-form input, .contact-form textarea {
  padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(63, 174, 116, .12); }

.map-placeholder {
  background: var(--bg-soft); border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 42px 24px; text-align: center; color: var(--muted);
}
.map-placeholder p { margin: 4px 0; }

.info-box {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 26px; color: var(--muted);
}
.info-box p { margin: 0; }

/* Footer logo 适配 */
.footer-brand img { height: 40px; width: auto; border-radius: 0; }

/* ---------- 产品详情：多图展示 ---------- */
.gallery { margin-bottom: 26px; }
/* R18 兜底：0 图时模板已不渲染 .gallery；万一渲染出空壳也不占位、不留白。
   用 :empty 而非 :not(:has(img))——:has() 在旧 Safari/Firefox ESR 不支持，
   而单图时 .gallery-thumbs 根本不渲染，:empty 只是防御性双保险。 */
.gallery:empty, .gallery-thumbs:empty { display: none; }
.gallery-main {
  border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow); aspect-ratio: 4 / 3; display: grid; place-items: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #f6f8f7; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.gthumb {
  width: 88px; height: 88px; border-radius: 12px; overflow: hidden; padding: 0; cursor: pointer;
  border: 2px solid var(--border); background: #f6f8f7; transition: border-color .2s, transform .2s;
}
.gthumb img { width: 100%; height: 100%; object-fit: contain; }
.gthumb:hover { transform: translateY(-2px); }
.gthumb.active { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 122, 77, .15); }

/* 应用领域 */
.app-list { list-style: none; margin: 10px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.app-list li { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; }
.app-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); flex: none; }

/* 产品优势 mini */
.advantage-mini { margin: 10px 0 8px; }
.adv-mini { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; height: 100%; }
.adv-mini-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--mint), #cdeede); margin-bottom: 12px; }
.adv-mini-icon svg { width: 24px; height: 24px; }
.adv-mini h3 { margin: 0 0 6px; font-size: 17px; }
.adv-mini p { margin: 0; color: var(--muted); font-size: 14px; }

/* 货号 */
.sku-box { margin-top: 18px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px dashed var(--border); border-radius: 12px; padding: 12px 16px; }
.sku-label { font-size: 13px; color: var(--muted); }
.sku-value { font-weight: 800; color: var(--green-800); letter-spacing: .5px; }

/* 常见问题列表（复用 faq-item） */
.faq-list { margin: 8px 0 4px; }

/* ---------- 新闻卡片缩略图 ---------- */
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.news-card:hover .thumb img { transform: scale(1.05); }

/* ---------- 企业 / 工厂 / 证书 展示画廊 ---------- */
.showcase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 8px 0 4px; }
.showcase-grid .shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.showcase-grid .shot img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
.showcase-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .showcase-grid, .showcase-grid.cols-3 { grid-template-columns: 1fr; } }

/* 子页导航卡（企业展示入口） */
.subnav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .subnav-grid { grid-template-columns: 1fr; } }

/* 能力清单 */
.cap-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.cap-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 15px; }
.cap-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); margin-top: 9px; flex: none; }
@media (max-width: 600px) { .cap-list { grid-template-columns: 1fr; } }

/* 产品详情侧栏联系入口（获客） */
.contact-mini { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.contact-mini a { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-weight: 600; color: var(--green-800); transition: border-color .2s, color .2s; }
.contact-mini a:hover { border-color: var(--leaf); color: var(--green); text-decoration: none; }

/* 分类卡片：代表图 + 数量徽标 */
.cat-cover { width: 64px; height: 64px; border-radius: 16px; flex: none; overflow: hidden; background: var(--mint-soft); display: grid; place-items: center; }
.cat-cover img { width: 100%; height: 100%; object-fit: cover; }
.cat-card h3 { margin: 0 0 8px; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.cat-count { font-size: 12px; font-weight: 700; color: #fff; background: var(--leaf); border-radius: 999px; padding: 1px 9px; }

/* =========================================================
   T09 — 本轮新增组件样式（统一接入 --green / --mint 设计变量）
   ========================================================= */

/* ---------- 全屏 Hero ----------
   R6：原 T09 的 .hero--full 定义已删除（与下方 T13 段完全重复且被其覆盖），
   全屏 Hero 的唯一权威定义见「T13 — 1 · 首页 Banner：横向通栏 + 高度降低」。 */

/* ---------- 关于我们模块（首页精简导读卡：左图 + 右文） ---------- */
.about-module {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; align-items: center;
  background: var(--mint-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.about-module-media {
  display: block; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: #fff;
}
.about-module-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; display: block; transition: transform .5s; }
.about-module:hover .about-module-media img { transform: scale(1.04); }
.about-module-body { min-width: 0; }
.about-module-intro { color: var(--muted); font-size: 15.5px; line-height: 1.85; margin: 0 0 22px; }
@media (max-width: 760px) { .about-module { grid-template-columns: 1fr; } }

/* ---------- 关于我们页：顶部锚点导航条 ---------- */
.about-tabs {
  position: sticky; top: 84px; z-index: 40;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 8px; margin: 28px auto 8px; max-width: 760px; box-shadow: var(--shadow);
}
.about-tabs a {
  padding: 9px 20px; border-radius: 999px; font-weight: 700; font-size: 15px;
  color: var(--ink); transition: background .2s, color .2s;
}
.about-tabs a:hover { color: var(--green-700); background: var(--mint); }
.about-tabs a.active { background: var(--green); color: #fff; }
.about-tabs a.active:hover { color: #fff; }

/* 公司简介长文正文 */
.company-profile-body { color: var(--ink); }
.company-profile-body p { margin: 0 0 1em; }

/* 公司简介右侧双图（一上一下，移动端自然堆叠） */
.about-images { display: grid; grid-template-columns: 1fr; gap: 16px; }
.about-images .feature-img { margin: 0; }
.about-images img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* ---------- 全站悬浮入口（电话 / 留言 / 回顶） ---------- */
.floating-widget {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease;
}
.floating-widget.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.float-btn {
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(31, 122, 77, .32);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.float-btn:hover { background: var(--green-700); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31, 122, 77, .42); }
.float-btn svg { width: 24px; height: 24px; }
@media (max-width: 600px) {
  .floating-widget { right: 14px; bottom: 14px; gap: 10px; }
  .float-btn { width: 46px; height: 46px; }
  .float-btn svg { width: 22px; height: 22px; }
}

/* ---------- 图文交错特性行（技术服务 / 定制页） ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: center; margin: 30px 0; }
.feature-row__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.feature-row__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; display: block; }
.feature-row__body { min-width: 0; }
.feature-row.reverse .feature-row__media { order: 2; }
@media (max-width: 800px) {
  .feature-row { grid-template-columns: 1fr; gap: 18px; }
  .feature-row.reverse .feature-row__media { order: 0; }
}

/* ---------- 能力参数卡片 ---------- */
.cap-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px; height: 100%;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cap-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--leaf); }
.cap-card .cap-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--mint), #cdeede); margin-bottom: 14px;
}
.cap-card .cap-icon svg { width: 26px; height: 26px; }
.cap-card h3 { font-size: 17px; margin: 0 0 8px; }
.cap-card p { color: var(--muted); font-size: 14px; margin: 0; }
.cap-metrics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cap-metric { background: var(--mint-soft); border: 1px solid var(--border); border-radius: 10px; padding: 6px 11px; font-size: 13px; color: var(--green-800); font-weight: 700; }

/* ---------- 新闻卡片简介 ---------- */
.news-card .excerpt {
  color: var(--muted); font-size: 13.5px; margin: 8px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 分页条（products / news 共用） ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 28px 0 8px; }
.page-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
  padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--border);
  color: var(--green-800); font-weight: 700; font-size: 14px;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.page-link:hover { border-color: var(--leaf); background: var(--mint-soft); text-decoration: none; }
.page-link.current { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 8px 18px rgba(31, 122, 77, .28); cursor: default; }
.page-link.disabled { color: #b6c5bd; background: #fafcfb; border-color: var(--border); cursor: not-allowed; }
.pager-info { color: var(--muted); font-size: 13.5px; margin-right: 6px; }
.pager-empty { color: var(--muted); margin: 20px 0; }

/* ---------- 新闻详情底部推荐区块 ---------- */
.related-block { margin-top: 48px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
.related-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .related-grid, .related-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .related-grid, .related-grid.cols-3 { grid-template-columns: 1fr; } }
.related-card {
  display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--leaf); }
.related-card .thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--mint), #cdeede); }
.related-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-card .body { padding: 12px 14px; }
.related-card .date { color: var(--muted); font-size: 12.5px; }
.related-card h4 { margin: 4px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.related-card .excerpt { color: var(--muted); font-size: 13px; margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- CTA 点状底纹变体（技术服务 / 定制页） ---------- */
.cta--dots {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .12) 0 6px, transparent 7px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, .10) 0 8px, transparent 9px),
    radial-gradient(circle at 50% 90%, rgba(255, 255, 255, .08) 0 5px, transparent 6px),
    linear-gradient(120deg, #145a38, #1f7a4d 60%, #2c8f5e);
  background-size: 120px 120px, 160px 160px, 90px 90px, auto;
}

/* ---------- 后台：草稿/发布状态徽标 + 表单校验提示（T04 / T10） ---------- */
.badge {
  display: inline-block; padding: 1px 9px; border-radius: 999px;
  font-size: 12px; line-height: 1.8; font-weight: 700; white-space: nowrap;
}
.badge-draft { background: #eef1ef; color: #6b7a72; border: 1px solid #dbe3de; }
.badge-pub { background: #e6f5ec; color: var(--green-800); border: 1px solid #bfe3cf; }
.form-errors {
  margin: 14px 0 18px; padding: 12px 16px; border-radius: 10px;
  background: #fdecea; border: 1px solid #f5c2bd; color: #a33228;
}
.form-errors strong { display: block; margin-bottom: 6px; }
.form-errors ul { margin: 0; padding-left: 20px; }
.form-errors li { line-height: 1.8; }
.req-star { color: #c0392b; margin-left: 3px; font-weight: 700; }
.field-error { color: #c0392b; font-size: 12.5px; margin: 6px 0 0; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 24px 0 6px; }

/* ---------- 后台：回收站 + 批量操作条（T05 / T06） ---------- */
.nav-badge {
  display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 6px;
  border-radius: 999px; background: #c0392b; color: #fff;
  font-size: 11px; line-height: 18px; text-align: center; font-weight: 700;
}
.flash {
  margin: 12px 0 16px; padding: 10px 14px; border-radius: 10px;
  background: #e6f5ec; border: 1px solid #bfe3cf; color: var(--green-800);
}
.batch-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 12px 0 14px; padding: 10px 14px; border-radius: 10px;
  background: #f5f9f7; border: 1px solid var(--border);
}
.batch-bar select { padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.batch-bar .btn[disabled] { opacity: .5; cursor: not-allowed; }
.batch-bar #sel-count { font-weight: 700; color: var(--green-800); }
.row-check, #check-all { width: 15px; height: 15px; cursor: pointer; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.tab {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; color: var(--green-800); font-size: 14px; font-weight: 600;
}
.tab:hover { border-color: var(--leaf); background: var(--mint-soft); text-decoration: none; }
.tab.active { background: var(--green); border-color: var(--green); color: #fff; }
.trash-clear { margin: 16px 0 0; }
.stat-link { text-decoration: none; }
.stat-link:hover { border-color: var(--leaf); text-decoration: none; }

/* ---------- 后台：301 重定向管理 + 分类层级（T07 / T09） ---------- */
.rd-result { margin: 6px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.rd-result.rd-ok { color: var(--green-800); font-weight: 600; }
.rd-result.rd-bad { color: #c0392b; font-weight: 600; }
.rd-warn {
  display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px;
  background: #fdecea; border: 1px solid #f5c2bd; color: #a33228;
  font-size: 11.5px; line-height: 18px; font-weight: 700; white-space: nowrap;
}
.rd-tester {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 12px 0 4px; padding: 12px 14px; border-radius: 10px;
  background: #f5f9f7; border: 1px solid var(--border);
}
.rd-tester input { padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; }
.rd-tester .rd-result { flex-basis: 100%; margin: 0; }
.cat-name { display: inline-block; }
.cat-branch { color: var(--muted); margin-right: 4px; }

/* ---------- 后台：图片库 + 选图器 + 操作日志（T08 / T11） ---------- */
.media-grid {
  display: grid; gap: 12px; margin: 14px 0 4px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.media-grid-sm { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.media-thumb {
  margin: 0; padding: 8px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; display: flex; flex-direction: column; gap: 6px;
}
.media-thumb img {
  width: 100%; height: 104px; object-fit: cover; border-radius: 8px;
  background: #f3f6f4; display: block;
}
.media-grid-sm .media-thumb img { height: 78px; }
.media-thumb figcaption { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.media-name {
  font-size: 12px; color: var(--green-800); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.media-meta { font-size: 11.5px; color: var(--muted); }
.media-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.media-actions .btn { padding: 3px 9px; font-size: 12px; }
.media-actions form { display: inline; margin: 0; }
.media-picker-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0 6px; }
.media-picker {
  margin: 8px 0 4px; padding: 10px 12px; border: 1px dashed var(--border);
  border-radius: 10px; background: #f9fbfa; max-height: 340px; overflow-y: auto;
}
.picked-library { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.picked-chip { position: relative; display: inline-block; line-height: 0; }
.picked-chip img {
  width: 76px; height: 76px; object-fit: cover;
  border: 1px solid var(--border); border-radius: 8px;
}
.picked-rm {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
  border: none; border-radius: 50%; background: #c0392b; color: #fff;
  font-size: 13px; line-height: 20px; text-align: center; cursor: pointer; padding: 0;
}
.log-table td { vertical-align: top; font-size: 13px; }
.log-table code { font-size: 12px; color: var(--muted); }
.log-action {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: var(--mint-soft); border: 1px solid var(--border);
  color: var(--green-800); font-size: 12px; font-weight: 600; white-space: nowrap;
}

/* =========================================================
   后台外壳（T12）：左侧栏 sidebar + 右侧内容区
   —— 所有后台页共享 admin/layout.ejs，改这里即全局生效
   ========================================================= */

.admin-body { background: var(--bg-soft); }

/* 外层 flex：左 aside（固定 220px、sticky）+ 右 main（自适应） */
.admin-wrap {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px;
  min-height: 100vh;
}

/* ---------- 左侧栏 ---------- */
.admin-side {
  flex: 0 0 220px;
  width: 220px;
  position: sticky;
  top: 22px;
  align-self: flex-start;
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 16px 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(20, 90, 56, .07);
}

.side-brand {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 2px 4px 14px; margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.side-brand-link { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side-brand-link:hover { text-decoration: none; }
.side-brand-mark {
  width: 34px; height: 34px; flex: none; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--leaf), var(--green-700));
  color: #fff; font-family: var(--serif); font-weight: 800; font-size: 17px;
  box-shadow: 0 6px 14px rgba(31, 122, 77, .26);
}
.side-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.side-brand-text strong { font-size: 14.5px; color: var(--green-800); }
.side-brand-text em {
  font-style: normal; font-size: 11.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 汉堡按钮：仅窄屏显示 */
.side-toggle {
  display: none; width: 36px; height: 36px; flex: none; padding: 0;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
  cursor: pointer; place-items: center;
}
.side-toggle:hover { border-color: var(--leaf); background: var(--mint-soft); }
.side-toggle-bar,
.side-toggle-bar::before,
.side-toggle-bar::after {
  content: ""; display: block; width: 16px; height: 2px; border-radius: 2px;
  background: var(--green-800); position: relative;
}
.side-toggle-bar::before { position: absolute; top: -5px; }
.side-toggle-bar::after { position: absolute; top: 5px; }

/* ---------- 侧栏导航 ---------- */
.side-nav { display: flex; flex-direction: column; gap: 14px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group-title {
  padding: 0 11px; margin-bottom: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  color: #9ab0a4; text-transform: uppercase;
}
.nav-group-foot { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border); }

.side-nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 10px;
  color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.45;
  transition: background .18s, color .18s, box-shadow .18s;
}
.side-nav a:hover { background: var(--mint-soft); color: var(--green-700); text-decoration: none; }
.side-nav a.active {
  background: var(--green); color: #fff;
  box-shadow: 0 8px 18px rgba(31, 122, 77, .24);
}
.side-nav a.active:hover { background: var(--green-700); color: #fff; }
.side-nav a.active .nav-badge { background: #fff; color: var(--green-800); }
.side-nav a.nav-accent::before {
  content: "+"; width: 18px; height: 18px; flex: none; border-radius: 6px;
  display: grid; place-items: center; font-size: 14px; font-weight: 800; line-height: 1;
  background: var(--mint); color: var(--green-700);
}
.side-nav a.nav-accent.active::before { background: rgba(255, 255, 255, .22); color: #fff; }
.side-logout { color: var(--muted) !important; }
.side-logout:hover { background: #fdecea !important; color: #a33228 !important; }

/* ---------- 右侧内容区 ---------- */
.admin-content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 26px 28px 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(20, 90, 56, .07);
}
.admin-content > h1:first-of-type { margin-top: 0; }
.admin-content h1 {
  font-size: clamp(21px, 2.4vw, 26px); margin: 0 0 18px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.admin-content h2 { font-size: 19px; }

/* ---------- 仪表盘统计卡 ---------- */
.stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 18px 20px; background: #fff;
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 4px 14px rgba(20, 90, 56, .05);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.stat b { font-family: var(--serif); font-size: 28px; line-height: 1.2; color: var(--green-800); }
.stat span { font-size: 13px; color: var(--muted); }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--leaf); }
.stat-link { color: inherit; }
.stat-link:hover { color: inherit; }

.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }

/* ---------- 工具条 / 批量条：卡片化 ---------- */
.admin-toolbar {
  padding: 12px 14px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--border);
}
.admin-toolbar input, .admin-toolbar select { background: #fff; border-radius: 9px; }
.batch-bar { border-radius: 12px; }

/* ---------- 表格 ---------- */
.admin-table {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  border-collapse: separate; border-spacing: 0;
}
.admin-table th, .admin-table td { border: 0; border-bottom: 1px solid var(--border); padding: 10px 12px; }
.admin-table thead th {
  background: var(--mint-soft); color: var(--green-800);
  font-size: 13px; font-weight: 700; text-align: left; white-space: nowrap;
}
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover td { background: #fbfdfc; }
.admin-table td .btn { padding: 5px 12px; font-size: 13px; box-shadow: none; }
.admin-table td .btn:hover { transform: none; }

/* ---------- 表单：分区 / 对齐 / 校验 ---------- */
.admin-content .form-row { margin: 14px 0; }
.admin-content .form-row > label {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13.5px; font-weight: 700; color: var(--green-800); margin-bottom: 6px;
}
.admin-content .form-row input,
.admin-content .form-row textarea,
.admin-content .form-row select {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; font: inherit; color: var(--ink);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.admin-content .form-row input:focus,
.admin-content .form-row textarea:focus,
.admin-content .form-row select:focus {
  outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(63, 174, 116, .14);
}
.admin-content .form-row select:disabled,
.admin-content .form-row input:disabled {
  background: var(--bg-soft); color: var(--green-800); font-weight: 700; cursor: not-allowed;
}
.form-fieldset { background: #fcfefd; }
.form-fieldset legend { font-size: 13.5px; letter-spacing: .3px; }
.form-row-locked { position: relative; }
.lock-tip {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 6px;
  padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 19px;
  background: var(--mint); color: var(--green-700); border: 1px solid #bfe3cf;
}
.field-error {
  padding-left: 8px; border-left: 3px solid #e5a49c; margin-top: 7px;
}
.form-errors { box-shadow: 0 6px 18px rgba(163, 50, 40, .08); }

/* 表单操作区：吸底浮条，长表单也能随手保存 */
.form-actions {
  position: sticky; bottom: 12px; z-index: 5;
  margin: 26px 0 10px; padding: 12px 16px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 10px 26px rgba(20, 90, 56, .10);
  backdrop-filter: saturate(160%) blur(6px);
}

/* ---------- 状态徽标：草稿 / 已发布 更醒目 ---------- */
.badge { padding: 2px 10px; display: inline-flex; align-items: center; gap: 5px; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-draft { background: #fff6e8; color: #97601c; border: 1px solid #f0dcbb; }
.badge-pub { background: #e6f5ec; color: var(--green-800); border: 1px solid #bfe3cf; }
/* R21 · 后台列表「推荐」徽标：与草稿/已发布同一套 .badge 尺寸，配色用主绿区分 */
.badge-featured { background: var(--green); color: #fff; border: 1px solid var(--green-700); margin-left: 6px; }

/* ---------- 登录页（独立卡片，不走 flex 外壳） ---------- */
.admin-body-login { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.admin-login {
  width: 100%; max-width: 400px; padding: 32px 30px 34px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.admin-login h1 { font-size: 22px; margin: 14px 0 20px; }
.admin-login .btn { width: 100%; justify-content: center; margin-top: 8px; }
.login-mark { width: 44px; height: 44px; border-radius: 13px; font-size: 21px; }

/* ---------- 响应式：窄屏侧栏折叠为顶部抽屉 ---------- */
@media (max-width: 900px) {
  .admin-wrap { flex-direction: column; gap: 14px; padding: 12px; }
  .admin-side {
    position: static; width: 100%; flex: 0 0 auto;
    max-height: none; overflow: visible; padding: 12px 14px;
  }
  .side-brand { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
  .side-toggle { display: grid; }
  .side-nav { display: none; }
  .admin-side.is-open .side-brand {
    padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border);
  }
  .admin-side.is-open .side-nav { display: flex; }
  .admin-content { padding: 18px 16px 24px; }
  /* 表格窄屏横向滚动，不破版 */
  .admin-table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .form-actions { position: static; }
}
@media (max-width: 520px) {
  .admin-wrap { padding: 10px; }
  .admin-content { padding: 16px 13px 20px; }
  .admin-toolbar { padding: 10px; }
  .admin-toolbar input, .admin-toolbar select, .admin-toolbar .btn { width: 100%; }
}

/* ---------- 需求3 · 二级分类（前台分类卡片 / 子分类导航 + 后台空态） ---------- */
.cat-card-wrap { display: flex; flex-direction: column; gap: 8px; }
.cat-card-wrap .cat-card { flex: 1 1 auto; }
.subcat-list {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 2px 4px 0;
}
.subcat-nav {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 14px; padding: 10px 14px;
  background: #f5f9f7; border: 1px solid var(--border); border-radius: 10px;
}
.subcat-nav-title { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.subcat-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; font-size: 13.5px;
  color: var(--green); background: #fff; border: 1px solid var(--border);
  text-decoration: none; transition: background .18s, border-color .18s, color .18s;
}
.subcat-link:hover { background: var(--green); border-color: var(--green); color: #fff; }
.subcat-link:hover .subcat-count { background: rgba(255, 255, 255, .28); color: #fff; }
.subcat-count {
  font-size: 11.5px; font-weight: 700; line-height: 1.6;
  padding: 0 7px; border-radius: 999px; background: #eef5f1; color: var(--green);
}
.subcat-chip { opacity: .92; }
.cat-parent-link { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.cat-parent-link a { color: var(--green); font-weight: 600; }
.hint-muted { margin: -6px 0 16px; color: var(--muted); font-size: 13.5px; }

/* 后台列表空态单元格 */
.empty-cell { padding: 26px 12px; text-align: center; color: var(--muted); font-size: 14px; }

/* =========================================================
   T13 — 前台 UI 调整
   1 Banner 通栏降高 / 2 重点产品三列紧凑 / 3 CTA 修复 /
   4 关于我们打磨 / 5 产品列表字号 / 6 新闻图片统一 /
   7 文章详情右侧推荐栏 / 8 地址区块去占位
   ========================================================= */

/* ---------- 1 · 首页 Banner：横向通栏 + 高度降低 ---------- */
.hero--full {
  /* 通栏铺满：背景与内容都不受 .container 的 1160px 限制 */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-radius: 0 0 20px 20px;
  padding: clamp(29px, 3.4vw, 46px) 0;   /* T03·R3：随高度 +20% 同步放大内边距 */
  min-height: 456px;               /* T03·R3：380 × 1.2 —— 首屏整体加高 20% */
  display: flex;
  align-items: center;             /* 文字垂直居中 */
}
.hero--full > .container {
  width: 100%;
  max-width: var(--max);           /* 与全站 .container 内容宽度保持一致 */
  padding-left: 24px;
  padding-right: 24px;
}
/* T03·R4：图文居中 —— 两列各自垂直居中，文案块与拼贴块在列内水平居中，
   正文本身仍左对齐（长句居中会显著降低可读性）。 */
.hero--full .hero-grid {
  width: 100%; gap: clamp(24px, 3.2vw, 46px);
  align-items: center; justify-items: center;
  padding: 0;
}
.hero--full .hero-inner { max-width: 560px; width: 100%; margin: 0; align-self: center; justify-self: start; }
.hero--full .hero-showcase { align-self: center; justify-self: end; }
.hero--full .eyebrow { margin-bottom: 12px; padding: 5px 13px; font-size: 12.5px; }
.hero--full h1 { font-size: clamp(24px, 3.2vw, 38px); line-height: 1.22; margin: 0 0 10px; }
.hero--full .lead {
  font-size: clamp(14px, 1.2vw, 15.5px); line-height: 1.7;
  max-width: 660px; margin-bottom: 18px;
}
.hero--full .hero-cta { gap: 12px; }
.hero--full .hero-cta .btn { padding: 10px 20px; font-size: 14.5px; }
.hero--full .stat-chips { gap: 10px; margin-top: 18px; }
.hero--full .stat-chip { padding: 9px 16px; min-width: 108px; border-radius: 12px; }
.hero--full .stat-chip b { font-size: 20px; line-height: 1.3; }
.hero--full .stat-chip span { font-size: 12px; }
/* 右侧拼贴：固定像素高度，锁死 banner 总高（T03·R3 全部 ×1.2） */
.hero--full .hero-showcase { gap: 12px; align-content: center; justify-self: center; width: 100%; }
.hero--full .hero-showcase .shot { border-radius: 14px; box-shadow: 0 12px 28px rgba(0, 0, 0, .26); }
.hero--full .hero-showcase .shot img { aspect-ratio: auto; height: 178px; object-fit: cover; }
/* 368 = 178 × 2 + 12（gap）—— 左侧竖图与右侧两张小图严格等高，不许出现半格错位 */
.hero--full .hero-showcase .shot.tall img { aspect-ratio: auto; height: 368px; }

/* T03·R5：拼贴张数自适应（.shots-N 由 home.ejs 按 heroShots.length 输出）。
   1 张 → 单列整高；2 张 → 左右等高两列；3 张 → 默认的「左 1 大 + 右 2 小」。
   任何档位都不补空 .shot，也不硬凑 3 张。 */
.hero--full .hero-showcase.shots-1 { grid-template-columns: 1fr; }
.hero--full .hero-showcase.shots-1 .shot.tall { grid-row: auto; }
.hero--full .hero-showcase.shots-1 .shot.tall img { height: 368px; }
.hero--full .hero-showcase.shots-2 { grid-template-columns: 1fr 1fr; }
.hero--full .hero-showcase.shots-2 .shot.tall { grid-row: auto; }
.hero--full .hero-showcase.shots-2 .shot img,
.hero--full .hero-showcase.shots-2 .shot.tall img { height: 268px; }

@media (max-width: 1120px) {
  .hero--full { min-height: 408px; }                                  /* 340 × 1.2 */
  .hero--full .hero-showcase .shot img { height: 146px; }             /* 122 × 1.2 */
  .hero--full .hero-showcase .shot.tall img { height: 304px; }        /* 146 × 2 + 12 */
  .hero--full .hero-showcase.shots-1 .shot.tall img { height: 304px; }
  .hero--full .hero-showcase.shots-2 .shot img,
  .hero--full .hero-showcase.shots-2 .shot.tall img { height: 222px; }
}
@media (max-width: 900px) {
  /* 移动端：隐藏拼贴、整体再降一档（220–280px） */
  .hero--full { width: auto; margin-left: 0; min-height: 300px; padding: 34px 0; border-radius: 0 0 18px 18px; }
  .hero--full > .container { padding-left: 22px; padding-right: 22px; }
  .hero--full .hero-inner { justify-self: center; }
  .hero--full .hero-showcase { justify-self: center; }
  .hero--full .hero-showcase { display: none; }
  .hero--full .hero-inner { max-width: none; }
  .hero--full h1 { font-size: clamp(22px, 5.6vw, 28px); }
  .hero--full .stat-chips { margin-top: 14px; }
}
@media (max-width: 560px) {
  /* 手机端目标高度 220–280px：正文限 2 行、按钮收窄、数据条降级为紧凑文字（信息不丢） */
  .hero--full { min-height: 264px; padding: 26px 0; }
  .hero--full .eyebrow { margin-bottom: 10px; font-size: 12px; }
  .hero--full h1 { margin-bottom: 8px; }
  .hero--full .lead {
    margin-bottom: 14px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .hero--full .hero-cta { gap: 10px; }
  .hero--full .hero-cta .btn { padding: 9px 15px; font-size: 13px; box-shadow: none; }
  .hero--full .stat-chips { gap: 5px 14px; margin-top: 12px; }
  .hero--full .stat-chip {
    display: flex; align-items: baseline; gap: 5px;
    min-width: 0; padding: 0; background: none; border: 0; border-radius: 0;
  }
  .hero--full .stat-chip b { display: inline; font-size: 15px; line-height: 1.5; }
  .hero--full .stat-chip span { font-size: 11.5px; }
}

/* ---------- 2 & 5 · 产品卡片：更紧凑、字号下调一档 ---------- */
.product-card { box-shadow: 0 6px 18px rgba(20, 90, 56, .06); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-card .thumb { aspect-ratio: 4 / 3; padding: 12px; }
.product-card .tag { top: 10px; right: 10px; font-size: 11px; padding: 3px 10px; }
.product-card .body { padding: 13px 15px 15px; }
.product-card h3 {
  margin: 0 0 5px; font-size: 14.5px; line-height: 1.42; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* .intro 是 product-card 模板实际使用的类名，此前无样式 → 会继承 16px 正文，卡片被撑高 */
.product-card .intro,
.product-card .excerpt {
  margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .more { padding-top: 10px; font-size: 12.5px; }

/* 首页「重点产品」：一排三个 + 图片区更扁 */
.featured-grid .product-card .thumb { aspect-ratio: 16 / 10; padding: 10px; }
.featured-grid .product-card .body { padding: 12px 14px 14px; }

/* 产品列表页：分类卡 / 子分类 / 分页 字号同步收紧 */
.cat-card h3 { font-size: 16.5px; }
.cat-card p { font-size: 13px; line-height: 1.6; }
.cat-count { font-size: 11.5px; }
.subcat-link { font-size: 13px; }
.divider-leaf { font-size: 15px; margin: 30px 0; }
.page-link { min-width: 34px; height: 34px; padding: 0 10px; font-size: 13px; }
.pager-info { font-size: 13px; }

/* ---------- 3 · CTA「需要样品或技术合作？」 ---------- */
.cta {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(30px, 4vw, 46px) clamp(20px, 4vw, 48px);
}
.cta h2 { max-width: 760px; margin: 0 0 10px; }
.cta p { max-width: 640px; margin: 0 0 22px; font-size: 15.5px; }
.cta > .btn { align-self: center; }
.cta-contact {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
  width: 100%; margin-top: 24px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.cta-contact-item {
  display: inline-flex; align-items: center; gap: 8px;
  color: #e7f6ee; font-size: 14.5px; font-weight: 600; line-height: 1.6;
}
.cta-contact-item svg { width: 17px; height: 17px; flex: none; color: #bff0d6; }
.cta-contact-item a { color: #fff; font-weight: 700; }
.cta-contact-item a:hover { color: var(--mint); text-decoration: underline; }
@media (max-width: 560px) {
  .cta { padding: 26px 18px; border-radius: 18px; }
  .cta > .btn { width: 100%; justify-content: center; }
  .cta-contact { flex-direction: column; align-items: center; gap: 10px; margin-top: 20px; padding-top: 16px; }
  .cta-contact-item { font-size: 13.5px; }
}

/* ---------- 4 · 关于我们页：容器 / 间距 / tab / 长文排版 ---------- */
.about-tabs { top: 78px; margin: 24px auto 6px; }
@media (max-width: 640px) {
  .about-tabs {
    max-width: none; border-radius: 14px; padding: 6px;
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .about-tabs a { flex: none; padding: 8px 14px; font-size: 14px; white-space: nowrap; }
}
/* 锚点跳转不被 header + tab 条遮挡 */
#intro, #qualification, #culture, #workshop { scroll-margin-top: 150px; }

/* ---------- R15 · 公司简介两栏排版 ----------
   选择器必须带上 .grid.cols-2 前缀（特异度 0,3,0）：
   基础栅格 .grid.cols-2（0,2,0，见本文件 line 160）已声明 grid-template-columns，
   单写 .about-intro（0,1,0）压不过它 —— 这正是「880px 断点写了却不生效」的存量 bug 根因，
   也是右列被固定 1fr + align-items:start 撑出大片空白的来源。
   minmax(0, …)：禁止右图的 intrinsic 宽度把栅格撑破（横向溢出的经典成因，
   overflow-x:clip 只在 html 上兜底，布局本身必须自洽）。 */
.grid.cols-2.about-intro {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: stretch;
  gap: 40px;
}
/* 右列图片随行高铺满：文字列更高时不再在右侧留下半屏空白 */
.grid.cols-2.about-intro > .feature-img { align-self: stretch; min-width: 0; }
.grid.cols-2.about-intro .feature-img img {
  width: 100%; height: 100%; min-height: 300px;
  aspect-ratio: auto; object-fit: cover;
}
@media (max-width: 880px) {
  /* 平板及以下单列（原规则因特异度不足而失效，这里一并修复） */
  .grid.cols-2.about-intro { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .grid.cols-2.about-intro .feature-img img { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
}

.company-profile-body { font-size: 15.5px; line-height: 1.85; }
.company-profile-body > *:first-child { margin-top: 0; }
.company-profile-body p { margin: 0 0 1.05em; }
.company-profile-body h2,
.company-profile-body h3,
.company-profile-body h4 {
  margin: 1.5em 0 .5em; padding-left: 12px; line-height: 1.45;
  border-left: 3px solid var(--leaf);
}
.company-profile-body h2 { font-size: 19px; }
.company-profile-body h3 { font-size: 17px; }
.company-profile-body h4 { font-size: 15.5px; }
.company-profile-body ul,
.company-profile-body ol { margin: 0 0 1.05em; padding-left: 20px; }
.company-profile-body li { margin: 4px 0; }
.company-profile-body img {
  border-radius: var(--radius-sm); margin: 12px 0; box-shadow: var(--shadow);
}
.company-profile-body table { width: 100%; max-width: 100%; border-collapse: collapse; overflow-x: auto; display: block; }

/* 关于我们页正文块统一节奏 */
.about-lead { max-width: 820px; font-size: 16px; line-height: 1.85; color: var(--muted); }
.about-page .section-head { margin-bottom: 24px; }
.about-page .section { margin: clamp(40px, 5.5vw, 64px) 0; }
.about-page .showcase-grid .shot img { aspect-ratio: 4 / 3; object-fit: cover; }
.about-page .cap-list li { line-height: 1.8; }
@media (max-width: 600px) {
  .about-page .stat-chips { gap: 10px; }
  .about-page .stat-chip { min-width: 112px; padding: 10px 14px; }
}

/* ---------- 6 · 新闻卡片：图片比例统一 + 卡片对齐 ---------- */
.news-card { height: 100%; }
.news-card .thumb {
  position: relative; flex: none; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, var(--mint), #cdeede);
}
.news-card .thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.news-card .body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.news-card .date { font-size: 12.5px; line-height: 1.6; }
.news-card h3 {
  margin: 5px 0 0; font-size: 15px; line-height: 1.45;
  min-height: 2.9em;               /* 标题 1/2 行时卡片仍对齐 */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .excerpt { margin: 8px 0 0; font-size: 13px; line-height: 1.65; -webkit-line-clamp: 3; }
@media (max-width: 600px) { .news-card h3 { min-height: 0; } }

/* ---------- 7 · 文章详情：正文 + 右侧推荐栏 ---------- */
.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px; align-items: start;
}
.article-main { min-width: 0; }
.article-main .body { line-height: 1.85; overflow-wrap: break-word; }
/* 富文本正文常带编辑器写死的 width/height 内联样式，栏宽变窄后需强制自适应，避免拉伸/溢出 */
.article-main .body img {
  max-width: 100%; height: auto !important;
  border-radius: var(--radius-sm); margin: 14px 0;
}
.article-main .body table { max-width: 100%; display: block; overflow-x: auto; }
.article-main .body pre { max-width: 100%; overflow-x: auto; }
.article-main .feature-img { margin: 0 0 22px; }

.article-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.aside-card {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 18px 20px;
}
.aside-card__title {
  display: flex; align-items: center; gap: 9px; margin: 0 0 14px;
  font-size: 16px; line-height: 1.4; color: var(--green-800);
}
.aside-card__title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--green); flex: none; }

.aside-news { list-style: none; margin: 0; padding: 0; }
.aside-news li + li { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.aside-news a { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--ink); }
.aside-news a:hover { text-decoration: none; }
.aside-news a:hover .aside-news__title { color: var(--green); }
.aside-news__thumb {
  position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, var(--mint), #cdeede);
}
.aside-news__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aside-news__title {
  font-size: 13.5px; font-weight: 600; line-height: 1.5; color: var(--ink); transition: color .2s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.aside-news__date { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

.aside-products { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aside-product {
  display: block; background: #fff; border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.aside-product:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--leaf); text-decoration: none; }
.aside-product__thumb { display: block; position: relative; aspect-ratio: 1 / 1; background: #f6f8f7; }
.aside-product__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.aside-product__name {
  padding: 7px 9px 9px; font-size: 12.5px; font-weight: 600; line-height: 1.45; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.aside-cta { background: linear-gradient(135deg, var(--green-800), var(--green)); border-color: transparent; text-align: center; }
.aside-cta .aside-card__title { justify-content: center; color: #fff; }
.aside-cta .aside-card__title::before { background: rgba(255, 255, 255, .75); }
.aside-cta p { margin: 0 0 14px; color: #e7f6ee; font-size: 13.5px; line-height: 1.7; }
.aside-cta .btn { width: 100%; justify-content: center; }

@media (max-width: 960px) {
  /* 移动端：侧栏整体下移到正文底部 */
  .article-layout { grid-template-columns: 1fr; gap: 30px; }
  .article-aside { position: static; }
  .aside-products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) { .aside-products { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   R4 — 富文本渲染层防御（数据清洗为主，这里只做视觉兜底）
   页面标题区已经有唯一 h1；若编辑器又把 h1 写进正文，
   视觉上降级为 h2 尺寸，避免「正文突然出现巨大标题」破相。
   ========================================================= */
.article-main .body h1,
.detail-layout .body h1,
.company-profile-body h1 {
  font-size: 19px;
  line-height: 1.45;
  margin: 1.4em 0 .5em;
  font-weight: 800;
  color: var(--green-800);
}
/* 富文本里 <table width="NaN"> 这类脏属性会被浏览器忽略，
   统一交给下面的宽度约束兜底，保证不撑破栏宽 */
.article-main .body table,
.detail-layout .body table { width: auto; max-width: 100%; }

/* N1 兜底：内容图加载失败时替换为占位图，避免出现破图空白框 */
img.img-fallback { object-fit: contain; background: #f4f7f2; padding: 8%; opacity: .85; }

/* =========================================================
   T14 — 迭代 v2 · 全局框架层（T02）
   R1 页脚备案外链 / R2 首页 hero 顶部零间隙 /
   R7·R8 CTA 100vw 通栏贴底 / R9·R10 导航二级下拉
   —— 本节只追加规则，不重排既有声明；覆盖靠「同特异度 + 后置」生效。
   ========================================================= */

/* ---------- R2 / R7 / R8 · bodyClass 页面级布局降维（架构 §8.3） ----------
   .main 的 `padding: 40px 0 64px`（main.css:51）是全站共用值，不能全局改，
   否则所有内页塌陷；这里只对挂了对应 class 的页面精准降维。
   特异度：body.is-home .main = (0,2,1) > .main = (0,1,0)，稳定覆盖。 */
body.is-home .main { padding-top: 0; }          /* 首页 hero 贴住 sticky header */
body.has-full-cta .main { padding-bottom: 0; }  /* 通栏 CTA 贴住 footer */
body.has-full-cta .site-footer { margin-top: 0; }  /* 通栏 CTA 贴底：消除 CTA↔footer 间 56px 白带（基础 .site-footer 仍保留 56px 供非 has-full-cta 页） */

/* 区块下外边距归零（.section 的 clamp(48px,7vw,80px) 是 CTA 白边来源之二） */
.section--flush { margin-bottom: 0; }

/* ---------- R7 / R8 · CTA 横向通栏 ----------
   与 .hero--full 同一套 100vw 方案（main.css:1023-1026）。
   ⚠️ 该元素的任何祖先都不得新增 overflow-*，overflow-x: clip 只挂 html。 */
.cta--full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-radius: 0;
  padding: clamp(38px, 5vw, 64px) 22px;
}
/* 内部文案再包一层容器居中，避免超宽屏下单行文字被拉到两端 */
.cta--full .cta-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cta--full .cta-inner > .btn { align-self: center; }
@media (max-width: 560px) {
  /* 覆盖 main.css:1144 的 .cta 手机端圆角/内边距（同特异度后置生效） */
  .cta--full { padding: 30px 18px; border-radius: 0; }
  .cta--full .cta-inner > .btn { width: 100%; justify-content: center; }
}

/* ---------- R9 / R10 · 主导航二级下拉 ----------
   纯 CSS（:hover / :focus-within），零 JS、零新依赖。 */
.nav > li { position: relative; }
.nav .has-dropdown { position: relative; }
/* .nav .has-dropdown > a 的 inline-flex 已统一在 .nav a 中声明，确保与纯文字项基线一致 */
.nav-caret {
  display: inline-flex; align-items: center; justify-content: center;
  width: 10px; height: 10px; font-size: 9px; line-height: 1; opacity: .62;
  transition: transform .2s, opacity .2s;
}
.nav .has-dropdown:hover > a .nav-caret,
.nav .has-dropdown:focus-within > a .nav-caret { opacity: 1; transform: rotate(180deg); }

/* 透明鼠标桥：补齐父项与面板之间的 12px 空隙，鼠标斜向移动不会断开 hover（AC-5.4） */
.nav .has-dropdown::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px;
}

.dropdown-panel {
  position: absolute; top: calc(100% + 12px); left: 0;
  z-index: 60;                 /* > .site-header 的 z-index:50（main.css:55） */
  min-width: 196px; margin: 0; padding: 8px; list-style: none;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.nav .has-dropdown:hover > .dropdown-panel,
.nav .has-dropdown:focus-within > .dropdown-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
.dropdown-panel > li { margin: 0; }
.dropdown-panel a {
  display: block; white-space: nowrap;
  padding: 8px 12px; border-radius: 8px;
  color: var(--ink); font-size: 14.5px; font-weight: 600;
}
.dropdown-panel a::after { display: none; }   /* 关掉 .nav a::after 的下划线动画 */
.dropdown-panel a:hover,
.dropdown-panel a:focus-visible { background: var(--mint-soft); color: var(--green-700); }
.dropdown-panel .is-more { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border); }
.dropdown-panel .is-more a { color: var(--green); }

@media (max-width: 900px) {
  /* 移动端降级：面板转为行内展开（不脱离文档流、不遮挡内容），
     默认收起以免撑破 header；聚焦父项（Tab / 长按）时整行展开。
     完整手风琴交互见 R24（下一轮）。 */
  .nav .has-dropdown::after { display: none; }
  .dropdown-panel {
    position: static; transform: none; opacity: 1; visibility: visible;
    display: none; min-width: 0; padding: 4px 0 6px;
    background: transparent; border: 0; box-shadow: none; transition: none;
  }
  .nav .has-dropdown:focus-within { flex-basis: 100%; }
  .nav .has-dropdown:focus-within > .dropdown-panel {
    display: flex; flex-wrap: wrap; gap: 6px; width: 100%;
  }
  .dropdown-panel a {
    padding: 5px 10px; font-size: 13.5px;
    background: var(--mint-soft); border-radius: 999px;
  }
  .dropdown-panel .is-more { margin: 0; padding: 0; border-top: 0; }
}

/* ---------- R1 · 页脚备案外链 ---------- */
.icp-link { color: inherit; text-decoration: none; }
.icp-link:hover { color: #fff; text-decoration: underline; }

/* =========================================================
   R25 富文本正文样式 —— 「后台所见 = 前台所得」
   ---------------------------------------------------------
   背景：后台编辑器（static/js/editor.js）能产出 blockquote / h2~h4 /
   ul·ol·li / hr / table·th·td / sup·sub / img / a，编辑区内有
   editor.css 的 .rte-area 规则托底；但前台 main.css 在正文作用域下
   一条都没有 —— 运营排好的版发布后全是浏览器默认样式。本节按
   editor.css `.rte-area *` 逐条对齐移植过来。

   ⚠️ 作用域铁律：只允许 `.article-main .body` 与 `.company-profile-body`
      两个前缀。裸 `.body`（main.css:289-291）是**列表卡片共用基类**
      （.news-card .body 见 line 1281），在其上挂正文排版会把卡片搞错位。
   ⚠️ 零 !important：全部靠特异度取胜
      —— .article-main .body X = (0,2,1) > .body X = (0,1,1) > X = (0,0,1)。
   ⚠️ 本节不出现任何 overflow-* 声明：横向滚动沿用既有
      `.article-main .body table`(line 1303) / `.company-profile-body table`(1258)
      的「滚动容器只挂 table 自身」方案；overflow-x: clip 依旧只在 html 上。
   ⚠️ 本节不重复声明 .company-profile-body 的 h2/h3/h4（1243-1251）、
      ul/ol/li（1252-1254）、img（1255-1257）、table 宽度（1258），
      避免同特异度后置覆盖掉已调好的关于页排版。
   ========================================================= */

/* ---------- R25.1 · 正文容器：首元素贴顶 + 浮动清除 ---------- */
.article-main .body > *:first-child { margin-top: 0; }
/* 图片 .align-left/.align-right 用了 float，容器需自清除，否则正文塌陷 */
.article-main .body::after,
.company-profile-body::after { content: ""; display: block; clear: both; }

/* ---------- R25.2 · 引用块 blockquote ----------
   移植 editor.css:150-157（左侧绿色条 + 浅底 + 右侧圆角） */
.article-main .body blockquote,
.company-profile-body blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  color: var(--muted);
  background: var(--mint-soft);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-main .body blockquote > *:first-child,
.company-profile-body blockquote > *:first-child { margin-top: 0; }
.article-main .body blockquote > *:last-child,
.company-profile-body blockquote > *:last-child { margin-bottom: 0; }

/* ---------- R25.3 · 正文标题层级 ----------
   移植 editor.css:141-143（22 / 19 / 16.5px）。
   仅作用于 .article-main .body：.company-profile-body 的标题已由
   R15（1243-1251，带左侧 leaf 色条）定义，重复声明会把它覆盖掉。
   压制关系：.article-main .body h3 (0,2,1) > .body h3 (0,1,1) @289-291。 */
.article-main .body h2,
.article-main .body h3,
.article-main .body h4 {
  color: var(--green-800);
  font-weight: 800;
  line-height: 1.45;
}
.article-main .body h2 {
  margin: 1.5em 0 .6em;
  padding-bottom: .32em;
  font-size: 22px;
  color: var(--green-700);
  border-bottom: 2px solid var(--border);
}
.article-main .body h3 {
  margin: 1.35em 0 .5em;
  padding-left: 11px;
  font-size: 19px;
  border-left: 3px solid var(--leaf);
}
.article-main .body h4 {
  margin: 1.2em 0 .45em;
  font-size: 16.5px;
}

/* ---------- R25.4 · 列表 ul / ol / li ----------
   移植 editor.css:144-145。list-style 显式还原：站内多处
   （.nav / .breadcrumb ol / .aside-list …）把 list-style 清成 none，
   一旦将来收敛成通用 reset，正文列表就会没有项目符号 —— 这里先钉死。 */
.article-main .body ul,
.company-profile-body ul { list-style: disc outside; }
.article-main .body ol,
.company-profile-body ol { list-style: decimal outside; }
.article-main .body ul ul,
.company-profile-body ul ul { list-style-type: circle; }
.article-main .body ul ul ul,
.company-profile-body ul ul ul { list-style-type: square; }
.article-main .body ol ol,
.company-profile-body ol ol { list-style-type: lower-alpha; }
/* 缩进与行高只给 .article-main（关于页 20px 缩进见 1252-1253，保持不动） */
.article-main .body ul,
.article-main .body ol { margin: 0 0 1.1em; padding-left: 26px; }
.article-main .body li { margin: 5px 0; line-height: 1.85; }
.article-main .body li > ul,
.article-main .body li > ol,
.company-profile-body li > ul,
.company-profile-body li > ol { margin-top: 5px; margin-bottom: 5px; }

/* ---------- R25.5 · 分隔线 hr ----------
   移植 editor.css:148（虚线细分隔） */
.article-main .body hr,
.company-profile-body hr {
  height: 0;
  margin: 26px 0;
  border: 0;
  border-top: 1px dashed var(--border);
}

/* ---------- R25.6 · 表格 table / th / td ----------
   移植 editor.css:159-161，配色对齐站内 table.spec（293-296）。
   只补「边框合并 + 单元格内边距 + 表头底色」；
   宽度 / display / overflow 一律不碰 —— 窄屏横向滚动由既有
   1258 与 1303 的 `display:block; overflow-x:auto`（只挂 table 自身）负责，
   本节新增 0 条 overflow 声明。 */
.article-main .body table,
.company-profile-body table {
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14.5px;
  line-height: 1.7;
}
.article-main .body th,
.article-main .body td,
.company-profile-body th,
.company-profile-body td {
  padding: 9px 13px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--border);
}
.article-main .body th,
.company-profile-body th {
  color: var(--green-800);
  font-weight: 700;
  background: var(--mint-soft);
}
.article-main .body tbody tr:nth-child(even) td,
.company-profile-body tbody tr:nth-child(even) td { background: #fbfdfc; }
.article-main .body caption,
.company-profile-body caption {
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 13.5px;
  text-align: left;
}

/* ---------- R25.7 · 上下标 sup / sub ----------
   生物科技正文高频：分子式 H₂O / CO₂、脚注 [1]、单位 m³。

   ⚠️ 必须与 editor.css:203 `.rte-area sup, .rte-area sub { font-size:.75em; line-height:0 }`
      **逐字一致** —— 这是「后台所见 = 前台所得」的硬约束。
      早期版本这里写的是 `.72em` + `vertical-align:baseline` + `position:relative` + top/bottom
      手写偏移，实测（15px 父字号归一化）与编辑器差出：字号小 4%、sub 中心浮起 1.63px、
      sup 中心低 1.05px —— 分子式在后台排好、发到前台就是另一个样子。

   为什么只收字号与行高、把垂直定位交还浏览器：
      sup/sub 的原生 vertical-align（super / sub）本身就是正确的基线偏移，
      浏览器会按字体的 superscript/subscript 度量走，比手写 em 偏移更准；
      且 editor.css 那侧**必须**保留原生 vertical-align，否则 Chrome 的
      queryCommandState('superscript') 读到 baseline 会返回 false，
      工具栏按钮激活态回显失灵（见 editor.css:200-202 与 test/richtext.test.js T03 防回归）。
      两侧写法统一，才不会再次跑偏。 */
.article-main .body sup,
.article-main .body sub,
.company-profile-body sup,
.company-profile-body sub {
  font-size: .75em;
  line-height: 0;
}

/* ---------- R25.8 · 正文图片与对齐类 ----------
   基础尺寸约束：1299-1302（.article-main）/ 1255-1257（关于页）已覆盖，
   这里只做「防溢出兜底 + 对齐类」，不重复声明圆角与外边距。 */
.article-main .body img,
.company-profile-body img { max-width: 100%; }
/* .align-center：特异度 (0,3,1) 稳压 1299 的 (0,2,1) */
.article-main .body img.align-center,
.company-profile-body img.align-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.article-main .body img.align-left,
.company-profile-body img.align-left {
  float: left;
  max-width: 50%;
  margin: 6px 22px 14px 0;
}
.article-main .body img.align-right,
.company-profile-body img.align-right {
  float: right;
  max-width: 50%;
  margin: 6px 0 14px 22px;
}
/* 同名类作用在块级文本上时只做文本对齐，不产生浮动 */
.article-main .body p.align-center,
.article-main .body h2.align-center,
.article-main .body h3.align-center,
.article-main .body h4.align-center,
.company-profile-body p.align-center { text-align: center; }
.article-main .body p.align-right,
.company-profile-body p.align-right { text-align: right; }
.article-main .body p.align-left,
.company-profile-body p.align-left { text-align: left; }

/* ---------- R25.9 · 正文链接 ----------
   移植 editor.css:147（正文链接必须有下划线，纯变色在长文里辨识度不足）。
   压制全局 `a`(0,0,1) @43-44。 */
.article-main .body a,
.company-profile-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.article-main .body a:hover,
.company-profile-body a:hover {
  color: var(--green-800);
  text-decoration-thickness: 2px;
}

/* ---------- R25.10 · 移动端降级（≤640px） ----------
   表格字号缩小、单元格内边距收紧、浮动图片转整宽，
   同样不引入任何 overflow 声明。 */
@media (max-width: 640px) {
  .article-main .body h2 { font-size: 19px; }
  .article-main .body h3 { font-size: 17px; padding-left: 9px; }
  .article-main .body h4 { font-size: 15.5px; }
  .article-main .body blockquote,
  .company-profile-body blockquote { margin: 13px 0; padding: 10px 13px; }
  .article-main .body ul,
  .article-main .body ol { padding-left: 22px; }
  .article-main .body hr,
  .company-profile-body hr { margin: 20px 0; }
  .article-main .body table,
  .company-profile-body table { font-size: 13px; line-height: 1.6; }
  .article-main .body th,
  .article-main .body td,
  .company-profile-body th,
  .company-profile-body td { padding: 6px 8px; }
  /* 窄屏取消浮动环绕：50% 宽的图配 2 行文字会挤成一团 */
  .article-main .body img.align-left,
  .article-main .body img.align-right,
  .company-profile-body img.align-left,
  .company-profile-body img.align-right {
    float: none;
    display: block;
    max-width: 100%;
    margin: 14px auto;
  }
}
