/* ==========================================================================
   本玛机械官网迁移原型 — 统一视觉方案 v2（Apple 风格 + 品牌红蓝双色分工）
   红 #C00000 = 识别（Logo/眉题/标签/点缀）· 蓝 #0071e3 = 交互（按钮/链接/焦点）
   字阶 8 级 token 化 · 页头组件 .page-hero 全站统一 · inline style 零容忍
   ========================================================================== */

:root {
  /* 颜色 */
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-soft: #fbfbfd;
  --brand: #c00000;                              /* 品牌红：识别 */
  --brand-soft: rgba(192, 0, 0, 0.08);
  --blue: #0071e3;                               /* 交互蓝 */
  --blue-hover: #0077ed;
  --link: #0071e3;                               /* 正文链接统一用蓝（4.7:1 AA） */
  --ok: #34c759;
  --err: #e30000;
  --border: #d2d2d7;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);

  /* 字阶（8 级，全站唯一定义处） */
  --fs-display: clamp(36px, 4.5vw, 60px);        /* Hero 图上标题 */
  --fs-h1: clamp(32px, 3.8vw, 48px);             /* 页面主标题（全站唯一档） */
  --fs-h2: clamp(28px, 3.4vw, 44px);             /* 区块标题 */
  --fs-h3: 22px;                                 /* 大卡题 / 子区块题 */
  --fs-body: 17px;
  --fs-body-s: 15px;
  --fs-cap: 13px;
  --fs-micro: 11px;

  /* 间距 */
  --sp-section: 96px;
  --sp-block: 48px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --wrap: 1320px;
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
.mt-gap { margin-top: 72px; }
.section-tight { padding: 64px 0; }

/* 右箭头图标（替代文本字符 ›） */
.chev-r { width: 0.5em; height: 0.5em; stroke: currentColor; stroke-width: 2.4; fill: none; flex-shrink: 0; }

/* ── 品牌标识（透明底 logo 图 · 深色变体贴浅色界面） ─────────────── */
/* 原图 379×114（比例 3.33:1）：红色方形标记 + 公司名两行文字 */
.brand-img { height: 40px; width: auto; display: block; }
.brand-img--lg { height: 32px; }

/* ── 毛玻璃吸顶导航 ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  min-width: 0;
}

.nav-logo { flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: clamp(4px, 1vw, 8px); flex: 1; justify-content: center; min-width: 0; }
.nav-link {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.8);
  padding: 7px clamp(8px, 1vw, 12px);
  border-radius: 980px;
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); font-weight: 600; }

.nav-phone {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}
.nav-phone svg { width: 18px; height: 18px; fill: var(--blue); }

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  margin: 4px 0;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 20px 30px 40px;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mobile-menu { background: rgba(255, 255, 255, 0.99); }
}
.mobile-menu .brand { margin-bottom: 14px; }
.mobile-menu a.m-item {
  display: block;
  padding: 14px 0;
  font-size: 22px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a.m-item.active { color: var(--brand); }

/* ── Hero（沉浸式：图上叠白字） ──────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: #101014; }

.hero-slide { display: none; }
.hero-slide.on { display: block; }

.hero-media {
  position: relative;
  width: 100%;
  height: clamp(480px, 72vh, 820px);
  min-height: 380px;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.88) saturate(1.04);
}

/* 底部深色渐变，保证白字可读（亮图实测 165-216 亮度） */
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.12) 42%,
    rgba(0, 0, 0, 0.56) 100%);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(56px, 9vh, 104px);
  width: min(760px, calc(100% - 48px));
  text-align: center;
  color: #fff;
  animation: fadeUp 0.7s ease both;
}

.hero-eyebrow {
  font-size: var(--fs-cap);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 10px;
}

.hero-title {
  font-size: var(--fs-display);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.08;
  color: #fff;
  text-wrap: balance;
}

.hero-sub {
  font-size: var(--fs-body);
  color: rgba(255, 255, 255, 0.78);
  margin-top: 14px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.01em;
}

.hero-links {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.hero-links .btn-light { background: #fff; color: var(--text); }
.hero-links .btn-light:hover { background: rgba(255, 255, 255, 0.9); }
.hero-links a.link-plain {
  color: #fff;
  font-size: var(--fs-body);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hero-links a.link-plain:hover { text-decoration: underline; }

.hero-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(18px, 3.2vh, 32px);
  display: flex;
  gap: 12px;
  z-index: 5;
}
.hero-dots button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  background-image: radial-gradient(circle 4.5px at center, rgba(255, 255, 255, 0.42) 0 4.5px, transparent 5px);
  cursor: pointer;
  transition: transform 0.25s;
  padding: 0;
}
.hero-dots button.on {
  background-image: radial-gradient(circle 4.5px at center, #fff 0 4.5px, transparent 5px);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  transform: scale(1.15);
}

/* ── 统一页头组件 .page-hero（全站子页唯一页头） ─────────────────── */
.breadcrumb {
  font-size: var(--fs-micro);
  color: var(--text-3);
  padding: 16px 0 0;
  letter-spacing: 0.02em;
}
.breadcrumb a:hover { color: var(--text-2); }

.page-hero {
  background: var(--bg-soft);
  padding: 30px 0 52px;
}
.page-hero h1 {
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-top: 0;
  text-wrap: balance;
}
.ph-sub { font-size: var(--fs-body); color: var(--text-2); margin-top: 12px; text-wrap: pretty; }
.ph-actions { margin-top: 22px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.ph-actions .tel { font-size: var(--fs-body-s); color: var(--text-2); }
.ph-actions .tel a { color: var(--link); font-weight: 600; }

/* ── 通用分区 ────────────────────────────────────────────────────── */
.section { padding: var(--sp-section) 0; }
.section-alt { background: var(--bg-alt); }
/* 紧跟在页头后面的第一个区块：顶部留白收一收（页头自带底部留白，叠加起来会空出一大片） */
.page-hero + .section { padding-top: 44px; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head.left { text-align: left; margin-left: 0; }

.eyebrow {
  font-size: var(--fs-cap);
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.section-sub { font-size: 18px; color: var(--text-2); margin-top: 12px; }

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-body);
  color: var(--link);
  margin-top: 16px;
}
.more-link:hover { text-decoration: underline; }

.subhead {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ── 企业文化六板块 ─────────────────────────────────────────────── */
.culture-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.culture-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  transition: transform 0.3s, box-shadow 0.3s;
}
.culture-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.culture-item img { width: 88px; height: 88px; object-fit: contain; flex-shrink: 0; }
.culture-item .ci-t { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.culture-item .ci-d { font-size: 14px; color: var(--text-2); line-height: 1.75; }
@media (max-width: 734px) {
  .culture-grid { grid-template-columns: 1fr; }
  .culture-item { flex-direction: column; }
  .culture-item img { width: 72px; height: 72px; }
}

/* ── 荣誉资质证书卡 ─────────────────────────────────────────────── */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.cert-media {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.025) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #f7f7f9 0%, #ececed 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.cert-media.has-img { aspect-ratio: 3 / 4; background: #fff; padding: 10px; }
.cert-media.has-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.cert-media svg { width: 44px; height: 44px; }
.cert-media .cm-tip { font-size: var(--fs-cap); color: var(--text-3); letter-spacing: 0.04em; }
.cert-body { padding: 22px 24px 26px; text-align: center; }
.cert-body h3 { font-size: var(--fs-body); font-weight: 600; }
.cert-body p { font-size: 13px; color: var(--text-2); margin-top: 8px; line-height: 1.65; }
/* 产品详情页「应用案例」：只放产品图集里没有的案例照片，点击放大 */
/* 只设上下内边距：这个元素同时带着 .wrap，写成 padding: 0 0 8px 会冲掉 .wrap 的左右 22px，手机上应用案例的标题和照片就贴着屏幕两边 */
.case-section { padding-block: 0 8px; }
.case-section .section-sub { margin-top: 6px; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 22px; }
.case-grid .case-item { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--bg-alt); }
.case-grid .case-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; border-radius: 0; }
.case-grid .case-item:hover img { transform: scale(1.03); }
@media (max-width: 1080px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 734px) { .cert-grid { grid-template-columns: 1fr; } }

/* ── 地图卡 ─────────────────────────────────────────────────────── */
.map-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.map-canvas { position: relative; aspect-ratio: 16 / 7; background: #eef0ee; }
.map-canvas svg.map-bg { width: 100%; height: 100%; display: block; }
.map-pin-wrap {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.map-bubble {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  position: relative;
}
.map-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #fff;
}
.map-pin { width: 22px; height: 30px; fill: var(--brand); filter: drop-shadow(0 3px 4px rgba(192, 0, 0, 0.35)); }
.map-actions {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
  align-items: center;
}
.map-actions .map-addr { font-size: var(--fs-cap); color: var(--text-2); flex: 1; min-width: 200px; }

/* ── 社交三码组件（页脚 / 联系页共用） ──────────────────────────── */
.social-qr { display: flex; gap: 14px; }
.social-qr .sq-item { text-align: center; width: 78px; }
.social-qr .sq-item img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  display: block;
}
.social-qr .sq-name { font-size: var(--fs-micro); color: var(--text-2); margin-top: 7px; white-space: nowrap; }
.social-qr .sq-item.is-placeholder img { opacity: 0.88; }
.social-qr .sq-item.is-placeholder .sq-name::after { content: "（待提供）"; color: var(--text-3); }
/* 页脚列内缩码（列宽较窄） */
.footer-cols .social-qr .sq-item { width: 62px; }
.footer-cols .social-qr .sq-item img { width: 62px; height: 62px; }

/* ── 产品图集（主图 + 缩略图条） ────────────────────────────────── */
.detail-figure .gallery-main {
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: opacity 0.25s ease;
}
.detail-figure .gallery-main.swap { opacity: 0; }
.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  min-width: 0;
  max-width: 100%;
  padding-bottom: 6px;
  scrollbar-width: thin;
  /* 右侧渐隐，提示可横向滑动 */
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
}
.gallery-thumbs button {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 2px solid transparent;
  padding: 0;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.2s, transform 0.2s;
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs button:hover { transform: translateY(-2px); }
.gallery-thumbs button.on { border-color: var(--blue); }

/* ── 卡片网格 ───────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}
.section-alt .card, .section .card { background: #fff; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* contain：产品 PNG 需要白底衬；cover：实拍图贴满无衬 */
.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}
.card-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card-media.cover { padding: 0; }
.card-media.cover img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.card--padded .card-body, .card--padded-body { padding: 34px 28px; }
.card-title { font-size: var(--fs-body-s); font-weight: 600; letter-spacing: -0.005em; line-height: 1.45; }
.card-title--lg { font-size: var(--fs-h3); letter-spacing: -0.01em; }
.card-text { font-size: 14px; color: var(--text-2); margin-top: 8px; flex: 1; }
.card .more-link { margin-top: 14px; font-size: 14px; }

/* ── 按钮 ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.btn:hover { background: var(--blue-hover); }
.btn:active { transform: scale(0.97); }
.btn-lg { font-size: var(--fs-body); padding: 13px 30px; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: color-mix(in srgb, var(--blue) 6%, transparent); }

/* ── Tab 选项卡 ─────────────────────────────────────────────────── */
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 44px; flex-wrap: wrap; }
.tabs#news-pager { margin: 36px 0 0; }
.tab-btn {
  font-size: 14px;
  padding: 9px 22px;
  border-radius: 980px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.25s;
}
.tab-btn:hover { color: var(--text); border-color: #a1a1a6; }
.tab-btn.on { background: var(--text); color: #fff; border-color: var(--text); }
.tab-btn:disabled { opacity: 0.35; cursor: default; }
.tab-btn:disabled:hover { color: var(--text-2); border-color: var(--border); }

.tab-panel { display: none; animation: fadeUp 0.5s ease both; }
.tab-panel.on { display: block; }

.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-block);
  align-items: center;
}
.about-split .lead { font-size: var(--fs-body); line-height: 1.65; }
.about-split .lead--muted { color: var(--text-2); }
.lead-wrap { margin-top: 16px; display: grid; gap: 14px; }
.about-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); }

.milestone { margin-top: 18px; border-left: 2px solid var(--border); padding-left: 22px; }
.milestone li { position: relative; padding: 6px 0; color: var(--text-2); font-size: 14px; }
.milestone li::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.milestone b { color: var(--text); display: block; font-size: var(--fs-body-s); }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-item { background: #fff; border-radius: var(--radius); padding: 28px 24px; text-align: center; }
.value-item .vi-t { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 6px; }
.value-item .vi-d { font-size: 14px; color: var(--text-2); }

/* 首页企业文化 Tab：全宽单列容器 */
.culture-tab { max-width: 1080px; margin: 0 auto; }
.culture-tab .lead-wrap { margin: 18px 0 26px; }
.culture-tab .more-link { margin-top: 22px; }

/* ── 工艺流程 ───────────────────────────────────────────────────── */
.process-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.process-item {
  text-align: center;
  padding: 30px 12px;
  background: #fff;
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s;
}
.process-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.process-item img { width: 52px; height: 52px; object-fit: contain; margin: 0 auto 14px; }
.process-item .pi-t { font-size: 14px; font-weight: 600; line-height: 1.4; }

/* ── 数字统计 ───────────────────────────────────────────────────── */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 34px 10px; background: #fff; border-radius: var(--radius); }
.stat .st-n { font-size: clamp(34px, 4vw, 52px); font-weight: 600; letter-spacing: -0.02em; }
.stat .st-n em { font-style: normal; font-size: 0.5em; color: var(--text-2); margin-left: 2px; }
.stat .st-l { font-size: 14px; color: var(--text-2); margin-top: 4px; }

/* ── 新闻 ───────────────────────────────────────────────────────── */
.news-meta { font-size: var(--fs-cap); color: var(--text-3); margin-top: 10px; display: flex; gap: 12px; align-items: center; }
.news-tag {
  font-size: var(--fs-micro);
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 2px 10px;
  border-radius: 980px;
}

/* ── FAQ 手风琴 ─────────────────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 26px;
  font-size: var(--fs-body);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text);
}
.faq-q .chev { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq-q .chev::before,
.faq-q .chev::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 12px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform 0.3s;
}
.faq-q .chev::before { transform: translate(-50%, -50%); }
.faq-q .chev::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .chev::before { transform: translate(-50%, -50%) rotate(180deg); }
.faq-item.open .chev::after { transform: translate(-50%, -50%) rotate(270deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a-inner { padding: 0 26px 24px; color: var(--text-2); font-size: 14px; line-height: 1.7; }

/* ── 联系 + 表单 ────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: start; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 30px 28px; margin-bottom: 16px; }
.contact-card h3 { font-size: var(--fs-h3); margin-bottom: 14px; }
.contact-card li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  font-size: var(--fs-body-s);
  color: var(--text-2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  align-items: flex-start;
}
.contact-card li:last-child { border-bottom: none; }
.contact-card li svg { width: 17px; height: 17px; fill: var(--blue); flex-shrink: 0; margin-top: 3px; }
.contact-card li a { color: var(--link); }
/* 联系我们页「公司位置」卡片：腾讯地图（可拖动、可缩放）。地图脚本没加载出来时，显示下面的地址和链接 */
.contact-card--map { padding-bottom: 20px; }
.map-box { position: relative; height: 300px; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.map-box .map-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.map-info { padding: 6px 2px; font-size: 13px; line-height: 1.6; white-space: nowrap; max-width: 260px; }
.map-info b { font-size: 14px; }
.map-open { display: inline-block; margin-top: 12px; font-size: var(--fs-body-s); }
/* 窄屏下地图只有 290px 宽：信息窗里的公司名和地址允许换行，否则会被裁掉 */
@media (max-width: 480px) { .map-info { white-space: normal; font-size: 12px; max-width: 190px; } }

.form-card { background: #fff; border-radius: var(--radius-lg); padding: 40px 38px; box-shadow: var(--shadow-card); }
.form-card h3 { font-size: var(--fs-h2); font-weight: 600; margin-bottom: 4px; }
.form-card .form-tip { font-size: 14px; color: var(--text-2); margin-bottom: 26px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: var(--fs-cap); font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.field label b { color: var(--err); font-weight: 600; }
.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 16px; /* ≥16px：避免 iOS Safari 聚焦时自动缩放页面 */
  color: var(--text);
  background: var(--bg-alt);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 12%, transparent);
}
.field.err input, .field.err textarea { border-color: var(--err); background: #fff; }
.field .msg { display: none; font-size: 12px; color: var(--err); margin-top: 6px; }
.field.err .msg { display: block; }

.form-success { display: none; text-align: center; padding: 46px 0 30px; animation: fadeUp 0.5s ease both; }
.form-success.on { display: block; }
.form-success .ok-ic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.form-success .ok-ic svg { width: 30px; height: 30px; fill: var(--ok); }
.form-success h3 { font-size: var(--fs-h3); font-weight: 600; }
.form-success p { color: var(--text-2); font-size: 14px; margin-top: 8px; line-height: 1.7; }
.form-success a { color: var(--link); }

/* ── 详情布局 ───────────────────────────────────────────────────── */
/* 只设上下内边距（padding-block）。这个元素同时带着 .wrap，写成 padding: X 0 会把 .wrap 的左右 22px 一起冲掉：
   电脑上容器居中看不出来，手机上「产品简介 / 详细介绍 / 售后服务」的文字就贴着屏幕两边了 */
.detail-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-block);
  align-items: start;
  padding-block: var(--sp-section);
}
/* 关键：grid 子项默认 min-width:auto，多图缩略图条会把列撑爆视口 */
.detail-split > * { min-width: 0; }
.detail-figure {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  max-width: 100%;
}
.detail-figure img { max-height: 380px; object-fit: contain; margin: 0 auto; }
.detail-body h2 { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -0.01em; margin: 34px 0 12px; }
.detail-body h2:first-child { margin-top: 0; }
.detail-body p { color: var(--text-2); font-size: var(--fs-body-s); margin-bottom: 12px; }
.detail-body .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tag {
  font-size: var(--fs-cap);
  font-weight: 500;
  color: var(--text);
  background: var(--bg-alt);
  padding: 6px 14px;
  border-radius: 980px;
}

/* 新闻详情：整页和其它模块共用同一个内容区（.wrap）——面包屑、标题、导语、正文、相关新闻、上一篇/下一篇同宽、同一条左边线。
   第十四轮曾把这些收进一条 800px 的居中窄栏，第十九轮用户反馈「标题、摘要、日期阅读量、相关新闻、上一篇下一篇都挤在中间一小块」，
   改回铺满内容区 */
.page-hero--article h1 { font-size: clamp(24px, 3vw, 36px); }
.article-body p { color: var(--text-2); font-size: var(--fs-body); margin-bottom: 14px; }
.article-wrap { padding: 56px 0 20px; margin-left: auto; margin-right: auto; }   /* 隐私政策页的正文带内联 max-width，靠这里的 auto 居中；新闻详情没有限宽，不受影响 */
.article-figure { border-radius: 14px; overflow: hidden; margin-bottom: 28px; }
.article-figure img { width: 100%; height: auto; display: block; }
/* 正文配图：按原尺寸显示、居中，最大不超过内容区宽度、高度不超过 640px（内容区铺满后有 1276px 宽，
   压缩版的配图最大 1000px，再拉大会发虚） */
.article-body figure.article-img {
  margin: 22px auto;
  text-align: center;
}
.article-body figure.article-img img {
  display: inline-block;
  width: auto;
  max-width: 100%;
  max-height: 640px;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}
/* 正文结构（原站文章转换而来）：小标题、列表、引用、表格 */
.article-body h3 { font-size: var(--fs-body); font-weight: 600; line-height: 1.5; color: var(--text); margin: 30px 0 12px; text-wrap: pretty; }
.article-body > :first-child { margin-top: 0; }
.article-body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: currentColor; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 1.4em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { color: var(--text-2); font-size: var(--fs-body); line-height: 1.7; margin-bottom: 6px; padding-left: 4px; }
.article-body li::marker { color: var(--text-3); }
.article-body blockquote { margin: 0 0 16px; padding: 2px 0 2px 18px; border-left: 3px solid var(--border); color: var(--text-2); font-size: var(--fs-body-s); }
.article-body hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
.article-body pre { overflow-x: auto; font-size: 13px; line-height: 1.6; padding: 14px 16px; border-radius: 10px; background: var(--bg-soft); }
.article-table { overflow-x: auto; margin: 0 0 18px; }
.article-table table { width: 100%; border-collapse: collapse; font-size: var(--fs-body-s); }
.article-table th, .article-table td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; color: var(--text-2); }
.article-table th { color: var(--text); font-weight: 600; }
/* 同一组的配图并排：按原尺寸显示、不放大（原站很多配图只有 150～250px 宽） */
.article-img-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 22px 0; justify-items: center; align-items: center; }
.article-img-row figure.article-thumb { margin: 0; max-width: 100%; }
.article-img-row figure.article-thumb img { display: block; max-width: 100%; max-height: 340px; width: auto; height: auto; border-radius: 12px; box-shadow: var(--shadow-card); }
@media (max-width: 734px) { .article-img-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 新闻详情：标题下的摘要导语 */
.article-lead { font-size: clamp(15px, 2.6vw, 17px); line-height: 1.65; color: var(--text-2); margin-top: 12px; text-wrap: pretty; }
.article-lead + .news-meta { margin-top: 16px; }
/* 后台编辑器里插入的小标题（编辑器默认给的是 h2） */
.article-body h2 { font-size: 21px; font-weight: 600; line-height: 1.5; color: var(--text); margin: 34px 0 12px; text-wrap: pretty; }
.article-body h4, .article-body h5, .article-body h6 { font-size: var(--fs-body-s); font-weight: 600; line-height: 1.5; color: var(--text); margin: 26px 0 10px; }
.page-hero-meta { padding: 22px 0 0; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-related { margin-top: 24px; }
/* 相关新闻：3 张带封面的卡片，一排 3 列（列数来自 .grid-3，手机上 1 列），和产品详情页的「相关产品」一致 */
.related-grid { margin: 20px 0 56px; }

.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding: 30px 0 64px;
}
.prev-next a { background: var(--bg-alt); border-radius: var(--radius); padding: 20px 24px; transition: background 0.25s; }
.prev-next a:hover { background: #ebebef; }
.prev-next .pn-l { font-size: 12px; color: var(--text-3); }
.prev-next .pn-t { font-size: var(--fs-body-s); font-weight: 600; margin-top: 4px; }
.prev-next a.next { text-align: right; }

.pager-info { align-self: center; font-size: 14px; color: var(--text-2); }

/* ── 视频占位 + Toast ───────────────────────────────────────────── */
.video-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-hover);
  aspect-ratio: 16 / 8;
  background: #000;
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.82; }
.video-frame .play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  cursor: pointer;
}
.video-frame .play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s;
}
.video-frame .play:hover .play-btn { transform: scale(1.08); background: rgba(255, 255, 255, 0.32); }
.video-frame .play-btn svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.video-frame .play span { font-size: var(--fs-body-s); font-weight: 500; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(29, 29, 31, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 14px;
  padding: 12px 26px;
  border-radius: 980px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1200;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── 工厂页：生产线实拍横向图列 ─────────────────────────────────── */
.factory-strip { margin-top: 34px; }
.factory-strip .fs-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.factory-strip .fs-hint { font-size: var(--fs-cap); color: var(--text-3); }
.factory-strip .fs-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  min-width: 0;
  padding-bottom: 8px;
  scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
}
.factory-strip .fs-track figure {
  margin: 0;
  flex: 0 0 clamp(240px, 32vw, 380px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}
.factory-strip .fs-track figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.factory-strip .fs-track img { width: 100%; height: clamp(170px, 24vw, 270px); object-fit: cover; display: block; }

/* ── 页脚 ───────────────────────────────────────────────────────── */
.footer { background: var(--bg-alt); border-top: 1px solid rgba(0, 0, 0, 0.06); padding: 48px 0 34px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.footer-cols h4 { font-size: var(--fs-cap); font-weight: 600; margin-bottom: 12px; }
.footer-cols a { display: block; font-size: 12px; color: var(--text-2); padding: 4px 0; }
.footer-cols a:hover { color: var(--text); }
.footer-qr { display: flex; align-items: center; gap: 12px; }
.footer-qr img { width: 76px; height: auto; }
.footer-qr .qr-tip { font-size: 12px; color: var(--text-2); line-height: 1.5; }

.footer-legal {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-3);
}
.footer-legal a { color: var(--text-3); }
.footer-legal a:hover { color: var(--text-2); }
/* 页脚备案号：徽章图 + 文字，各自带链接（ICP → 工信部；公安备案 → 公安部）。两个备案号始终排在同一行；
   整行放不下时由外层 .footer-legal 把这一组整体换到下一行，而不是在这一组内部拆成两行 */
.footer-beian { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 18px; white-space: nowrap; flex-shrink: 0; }
.footer-beian a { display: inline-flex; align-items: center; gap: 6px; }
.footer-beian a:hover .beian-badge { opacity: .8; }
.beian-badge { display: inline-block; width: 18px; height: 18px; object-fit: contain; }
/* 窄屏（手机）：两个备案号加起来约 350px，缩小间距和字号，保证 360px 宽的手机也是一行 */
@media (max-width: 480px) {
  .footer-beian { gap: 12px; font-size: 11px; }
  .footer-beian a { gap: 4px; }
  .beian-badge { width: 16px; height: 16px; }
}
@media (max-width: 380px) {
  .footer-beian { gap: 10px; font-size: 10px; }
}
/* 320px 这类极窄屏一行确实放不下：才允许拆成两行，避免横向溢出（max-width 让这一组受容器宽度约束，内部才会换行） */
@media (max-width: 340px) {
  .footer-beian { flex-wrap: wrap; white-space: normal; gap: 6px 12px; max-width: 100%; }
}

/* ── 返回顶部 ───────────────────────────────────────────────────── */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 900;
}
.back-top.on { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-3px); }
.back-top svg { width: 18px; height: 18px; stroke: var(--text); stroke-width: 2.2; fill: none; }

/* ── 入场动画 ───────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-copy { animation-name: heroFade; }
@keyframes heroFade {
  from { opacity: 0; transform: translateX(-50%) translateY(18px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── 响应式 ─────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .nav-links, .nav-phone { display: none; }
  .nav-burger { display: block; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-row { grid-template-columns: repeat(3, 1fr); }
  .about-split, .detail-split, .contact-grid { grid-template-columns: 1fr; }
  .detail-figure { position: static; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .hero-media { height: clamp(420px, 66vw, 640px); }
}

@media (max-width: 734px) {
  :root { --sp-section: 64px; --sp-block: 32px; }
  body { font-size: var(--fs-body-s); }
  .section { padding: var(--sp-section) 0; }
  .hero-media { height: auto; aspect-ratio: 25 / 14; min-height: 200px; }
  .hero-copy { bottom: 46px; width: calc(100% - 40px); }
  .hero-eyebrow { margin-bottom: 6px; }
  .hero-title { font-size: clamp(28px, 8vw, 38px); }
  .hero-sub { font-size: 14px; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-links { margin-top: 16px; }
  .hero-links .link-plain { display: none; }
  .hero-links .btn-lg { padding: 10px 22px; font-size: 14px; }
  .hero-dots { bottom: 14px; gap: 8px; }
  .page-hero { padding: 22px 0 40px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  /* 工艺流程：单列横向紧凑条目，避免 5 项 2-2-1 孤行 */
  .process-row { grid-template-columns: 1fr; gap: 10px; }
  .process-item { display: flex; align-items: center; text-align: left; gap: 16px; padding: 18px 20px; }
  .process-item img { width: 44px; height: 44px; margin: 0; flex-shrink: 0; }
  .process-item .pi-t { font-size: 15px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .map-box { height: 260px; }
  /* 页脚单列，三码居中（214px 三码组超出两列布局的列宽） */
  .footer-cols { grid-template-columns: 1fr; }
  .footer-cols > div { text-align: center; }
  .footer-cols a { display: inline-block; padding: 5px 10px; }
  .footer-cols .social-qr { justify-content: center; }
  .footer-cols .footer-qr { justify-content: center; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .prev-next { grid-template-columns: 1fr; }
  .prev-next a.next { text-align: left; }
  /* 产品图集区收紧边距（375 屏主图可达 ~310px） */
  .detail-figure { padding: 24px; }
  /* 新闻分页器纵向堆叠，避免误触 */
  .tabs#news-pager { flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; }
}

/* ═══ 图形验证码（在线留言表单，assets/js/captcha.js）═══ */
.ic { display: flex; align-items: stretch; gap: 10px; max-width: 340px; }
.field .ic-input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); font-size: 17px; font-weight: 600; letter-spacing: .18em; outline: none; font-family: inherit; }
.field .ic-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, .14); }
.ic-img { flex: 0 0 150px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; cursor: pointer; position: relative; }
.ic-img img { display: block; width: 100%; height: 100%; }
.ic-img:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ic[data-state="loading"] .ic-img img { visibility: hidden; }
.ic[data-state="loading"] .ic-img::after, .ic[data-state="error"] .ic-img::after { content: "点击重新加载"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-2); background: var(--bg-alt); }
.ic[data-state="loading"] .ic-img::after { content: "加载中…"; }
.ic-tip { margin: 8px 0 0; font-size: var(--fs-micro); color: var(--text-3); line-height: 1.7; }
.ic-tip b { color: var(--text-2); font-weight: 600; }
/* 极窄屏（320 这类）一行放不下输入框 + 图片：图片换到下一行 */
@media (max-width: 359px) { .ic { flex-wrap: wrap; } .ic .ic-input { flex: 1 0 100%; } }

/* ═══ 站内搜索（页头右上角的放大镜，assets/js/search.js）═══ */
.nav-search { flex-shrink: 0; width: 36px; height: 36px; border: none; border-radius: 50%; background: none; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.nav-search:hover { background: var(--bg-alt); }
.nav-search svg { width: 18px; height: 18px; }
/* 搜索按钮把自己推到右边，汉堡按钮跟在它后面（原来汉堡按钮用 auto 边距占住这个位置） */
.nav-search { margin-left: auto; }
.nav-search ~ .nav-burger { margin-left: 0; }
.search-backdrop { position: fixed; inset: 0; z-index: 997; background: rgba(0, 0, 0, .32); opacity: 0; pointer-events: none; transition: opacity .22s; }
.search-panel { position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 998; background: rgba(255, 255, 255, .98); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0, 0, 0, .1); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
.search-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.search-backdrop.open { opacity: 1; pointer-events: auto; }
.search-panel-inner { max-width: 760px; margin: 0 auto; padding: 22px 22px 18px; }
.search-box { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 18px; border-radius: 14px; background: var(--bg-alt); border: 1.5px solid transparent; }
.search-box:focus-within { border-color: var(--blue); background: #fff; }
.search-box > svg { flex: 0 0 auto; width: 20px; height: 20px; stroke: var(--text-3); }
.search-box input { flex: 1; min-width: 0; border: none; background: none; outline: none; font-size: 17px; color: var(--text); -webkit-appearance: none; appearance: none; font-family: inherit; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-close { flex: 0 0 auto; width: 36px; height: 36px; border: none; border-radius: 50%; background: none; color: var(--text-2); font-size: 24px; cursor: pointer; line-height: 1; }
.search-close:hover { background: rgba(0, 0, 0, .06); }
.search-drop { margin-top: 12px; }
.sr-cap { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-cap); color: var(--text-3); padding: 6px 10px; }
.sr-cap button { border: none; background: none; color: var(--link); cursor: pointer; font-size: var(--fs-cap); padding: 2px 4px; }
.sr-hist { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 10px 10px; }
.sr-hist button { border: 1px solid var(--border); background: #fff; border-radius: 980px; padding: 6px 14px; font-size: var(--fs-cap); color: var(--text); cursor: pointer; font-family: inherit; }
.sr-hist button:hover { border-color: var(--blue); color: var(--blue); }
.sr-group { font-size: var(--fs-cap); font-weight: 600; color: var(--text-3); padding: 12px 10px 4px; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--text); }
.sr-item:hover, .sr-item.on { background: var(--bg-alt); }
.sr-item img { width: 56px; height: 38px; object-fit: cover; border-radius: 6px; background: var(--bg-alt); flex: 0 0 auto; }
.sr-item > span:last-child { flex: 1; min-width: 0; }
.sr-item .sr-t { display: block; font-size: 15px; line-height: 1.4; }
.sr-item .sr-s { display: block; font-size: var(--fs-cap); color: var(--text-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-more { display: block; text-align: center; padding: 12px; font-size: var(--fs-cap); color: var(--link); border-top: 1px solid var(--border); margin-top: 6px; }
.sr-empty { padding: 26px 10px; text-align: center; color: var(--text-2); font-size: var(--fs-body-s); }
.sr-mark { color: var(--brand); font-weight: 600; }
/* 搜索结果页 search.html */
.search-page { min-height: 320px; }
.sp-summary { font-size: var(--fs-body-s); color: var(--text-2); margin-bottom: 6px; }
.sp-summary b { color: var(--text); }
.sp-group { font-size: var(--fs-h3); font-weight: 600; margin: 30px 0 14px; display: flex; align-items: baseline; gap: 10px; }
.sp-group small { font-size: var(--fs-cap); font-weight: 400; color: var(--text-3); }
.sp-news { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.sp-news a { display: block; padding: 18px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-card); color: var(--text); }
.sp-news a:hover { box-shadow: var(--shadow-hover); }
.sp-news .sp-t { font-size: 16px; font-weight: 600; line-height: 1.45; }
.sp-news .sp-m { font-size: var(--fs-cap); color: var(--text-3); margin: 6px 0 8px; }
.sp-news .sp-s { font-size: var(--fs-cap); color: var(--text-2); line-height: 1.6; }
.sp-empty { padding: 60px 0; text-align: center; }
.sp-empty h2 { font-size: var(--fs-h3); margin-bottom: 8px; }
.sp-empty p { color: var(--text-2); }
@media (max-width: 734px) {
  .sp-news { grid-template-columns: 1fr; }
  .search-panel-inner { padding: 14px 14px 12px; }
}
