/* ============================================================================
   尧明堂 官网 - 全站样式表
   ----------------------------------------------------------------------------
   设计语言：
   宣纸底色 + 墨色文字 + 朱砂红点缀；标题用宋体，正文用黑体；
   以细线分栏、留白和竖排口号建立编辑感，不使用圆角阴影卡片。
   设计原则：
   1. 移动优先（Mobile First）：基础样式面向手机，媒体查询逐步增强到桌面端。
   2. 零外部依赖：不引用任何 CDN 字体/框架，避免第三方资源阻塞。
   3. 内容优先：所有品牌文案由 HTML 承载，CSS 只负责呈现，不用伪元素
      注入任何有意义的文字内容（伪元素文字爬虫无法稳定抓取）。
   4. 无动画也能读：过渡效果仅为视觉增强，关闭后不影响任何内容。
   ----------------------------------------------------------------------------
   目录：
     1. 设计变量 (CSS 自定义属性)
     2. 基础重置与排版
     3. 通用布局工具类
     4. 页头与导航
     5. 首屏 Hero
     6. 通用区块 (section)
     7. 卡片 / 列表 / 时间线
     8. 产品详情
     9. 联系页专用
    10. 行动号召 (CTA)
    11. 页脚
    12. 响应式断点
   ========================================================================== */


/* ==========================================================================
   1. 设计变量
   ========================================================================== */
:root {
  /* 主题色：取自尧明堂 LOGO 品牌红，向朱砂色收敛 */
  --color-primary: #b32528;
  --color-primary-dark: #8c171a;
  --color-primary-soft: #f3e4e1;

  /* 中性色：宣纸底 + 墨色文字，避免冷灰的“科技模板感” */
  --color-text: #26221c;
  --color-text-soft: #5f574c;
  --color-text-mute: #70675a;
  --color-border: #e2dacb;
  --color-border-strong: #c9bda9;
  --color-bg: #fbf8f1;
  --color-bg-alt: #f4eee2;

  /* 排版：宋体标题 + 黑体正文，中文官网的编辑式搭配 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Songti SC", "STSong", "Source Han Serif SC",
    "Noto Serif CJK SC", "SimSun", serif;
  --line-height: 1.8;

  /* 尺寸 */
  --container: 1120px;
  --radius: 2px;
  --radius-sm: 2px;
  --radius-card: 3px;
  --header-height: 76px;

  /* 阴影：只用墨色做极轻的“纸片离开桌面 1px”，不产生重投影 */
  --shadow-sm: 0 1px 2px rgba(38, 34, 28, .05);
  --shadow-md: 0 6px 18px -10px rgba(38, 34, 28, .18);
  /* 悬停时抬起的投影，仅用于有底色的卡片与按钮 */
  --shadow-lift: 0 10px 22px -14px rgba(38, 34, 28, .28);
}


/* ==========================================================================
   2. 基础重置与排版
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* 锚点跳转时为固定页头预留空间 */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-bg);
  /* 极淡的纸纹颗粒，避免纯色底的模板感 */
  background-image: radial-gradient(rgba(94, 74, 43, .035) .5px, transparent .5px);
  background-size: 4px 4px;
  /* 中文字体渲染优化 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--color-primary);
  color: #fff;
}

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  font-family: var(--font-serif);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--color-text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.15rem; }

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  text-underline-offset: .22em;
}

a:hover,
a:focus {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li {
  margin-bottom: .4em;
}

img {
  max-width: 100%;
  height: auto;
}

address {
  font-style: normal; /* 去掉浏览器默认斜体 */
}

/* 屏幕阅读器专用文本：视觉隐藏但保留给辅助技术与爬虫 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 键盘导航的跳转链接 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--color-primary);
  color: #fff;
}

.skip-link:focus {
  left: 0;
}


/* ==========================================================================
   3. 通用布局工具类
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* 正文排版块：用于长文本段落，控制可读宽度 */
.prose {
  max-width: 78ch;
}

.prose h3 {
  margin-top: 1.6em;
}

.prose b,
.prose strong {
  color: var(--color-text);
}

/* 行内链接行 */
.inline-link {
  margin-top: 2.2em;
  font-weight: 600;
}

.inline-link a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--color-border-strong);
}

.inline-link a:hover {
  text-decoration-color: var(--color-primary);
}

/* 提示框 */
.notice {
  padding: 14px 18px;
  background: var(--color-primary-soft);
  border-left: 3px solid var(--color-primary);
  border-radius: 0;
  color: var(--color-text-soft);
  font-size: .94rem;
}


/* ==========================================================================
   4. 页头与导航
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 241, .97);
  border-bottom: 1px solid var(--color-border-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
}

/* --- 品牌标识 --- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
  color: var(--color-text);
}

/* 正式 LOGO：矢量文件，按高度缩放，宽度自适应 */
.brand-logo {
  display: block;
  width: auto;
  height: 52px;
}

@media (max-width: 640px) {
  .brand-logo {
    height: 44px;
  }
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.brand-sub {
  font-size: .72rem;
  color: var(--color-text-mute);
}

/* --- 主导航 --- */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  position: relative;
  display: block;
  padding: 6px 0;
  color: var(--color-text-soft);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
  transition: color .18s ease;
}

/* 下划线从中间向两侧展开，比整行变色更克制 */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-border-strong);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease, background-color .25s ease;
}

.site-nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

/* 当前页高亮：下划线式，而不是色块胶囊 */
.site-nav a.is-active {
  color: var(--color-primary);
  font-weight: 600;
}

.site-nav a.is-active::after {
  background: var(--color-primary);
  transform: scaleX(1);
}

/* --- 移动端汉堡按钮（桌面端隐藏） --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--color-border-strong);
  border-radius: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}


/* ==========================================================================
   5. 首屏 Hero
   ========================================================================== */
.hero {
  padding: 96px 0 76px;
  /* 右上角一层极淡的朱砂晕染（主色 5% 透明），给纯文字首屏一点空气感 */
  background-color: transparent;
  background-image: radial-gradient(
    120% 90% at 88% 0%,
    rgba(179, 37, 40, .05) 0,
    rgba(179, 37, 40, 0) 58%
  );
  border-bottom: 1px solid var(--color-border-strong);
}

.hero .container {
  position: relative;
}

/* 首屏右侧竖排品牌口号，补足大面积留白 */
.hero-aside {
  position: absolute;
  top: 6px;
  right: 0;
  display: flex;
  gap: 16px;
  margin: 0;
  padding-right: 18px;
  border-right: 1px solid var(--color-border-strong);
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: .9rem;
  letter-spacing: .34em;
  color: var(--color-text-mute);
}

.hero-title {
  font-size: 3.1rem;
  line-height: 1.26;
  letter-spacing: .02em;
  margin-bottom: .42em;
  /* 渐进增强：新内核下换行更均衡，旧浏览器忽略该属性、布局不受影响 */
  text-wrap: balance;
}

.hero-lead {
  max-width: 60ch;
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--color-text-soft);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 28px 0 36px;
  padding: 0;
  list-style: none;
}

/* 关键词改为“朱砂方点 + 文字”的编辑式排列，不再使用胶囊标签 */
.hero-tags li {
  position: relative;
  margin: 0;
  padding: 0 20px 0 14px;
  background: none;
  border: 0;
  font-size: .88rem;
  letter-spacing: .1em;
  color: var(--color-text-soft);
}

.hero-tags li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 5px;
  height: 5px;
  background: var(--color-primary);
  transform: rotate(45deg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

/* --- 首屏实力数据条 ---
   用宋体大数字 + 朱砂短线，把“40 年积淀 / 106 个基地 / 4 大类别 / 百余款产品”
   这些散落在正文里的信任状提炼成首屏可扫读的一行，
   既是信息模块，也是首屏唯一的视觉锚点（不引入图片与外部字体）。 */
.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 52px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--color-border-strong);
}

/* 数据条上沿的朱砂短线，与区块标题左侧竖线形成同一套记号 */
.hero-stats::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 64px;
  height: 2px;
  background: var(--color-primary);
}

.hero-stats > div {
  padding-right: 24px;
  border-right: 1px solid var(--color-border);
}

.hero-stats > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.hero-stats dt {
  font-size: .8rem;
  letter-spacing: .14em;
  color: var(--color-text-mute);
}

.hero-stats dd {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--color-primary);
}

/* 单位用小号黑体，避免“40年”三个字同样粗重 */
.hero-stats dd span {
  margin-left: 5px;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--color-text-mute);
}

/* --- 按钮 --- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease,
    color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}


/* ==========================================================================
   6. 通用区块
   ========================================================================== */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--color-bg-alt);
  /* 用一条与正文同色的细线收边，让相邻浅色区块与宣纸底之间有明确分界 */
  border-block: 1px solid var(--color-border);
}

/* 区块头：标题左、说明右，底部一条通栏细线，形成编辑式栏头 */
.section-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 15px;
  border-bottom: 0;
}

/* 栏头底线：起笔是朱砂，向右过渡为浅墨，像校对校样上的分栏线 */
.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0,
    var(--color-primary) 40px,
    var(--color-border-strong) 132px,
    var(--color-border-strong) 100%
  );
}

.section-title {
  padding-left: 16px;
  margin: 0 0 32px;
  border-left: 3px solid var(--color-primary);
  font-size: 1.8rem;
  line-height: 1.35;
  letter-spacing: .04em;
}

/* 区块内的小节标题（如“品牌优势”） */
.subsection-title {
  margin: 8px 0 20px;
  font-size: 1.15rem;
  color: var(--color-text);
}

.section-head .section-title {
  margin-bottom: 0;
}

.section-desc {
  margin: 0 0 3px;
  color: var(--color-text-mute);
  font-size: .82rem;
  letter-spacing: .16em;
  text-align: right;
}

/* --- 页面标题区（内页） --- */
.page-hero {
  padding: 52px 0 44px;
  /* 与首页首屏同一套晕染语言，保持四个页面的一致性 */
  background-color: var(--color-bg-alt);
  background-image: radial-gradient(
    120% 100% at 92% 0%,
    rgba(179, 37, 40, .045) 0,
    rgba(179, 37, 40, 0) 60%
  );
  border-bottom: 1px solid var(--color-border-strong);
}

.page-title {
  margin-bottom: .28em;
  font-size: 2.4rem;
  line-height: 1.28;
}

.page-lead {
  margin: 0;
  max-width: 62ch;
  color: var(--color-text-soft);
  font-size: 1.05rem;
}

/* --- 面包屑 --- */
.breadcrumb {
  margin-bottom: 16px;
  font-size: .86rem;
  color: var(--color-text-mute);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  margin: 0;
}

/* 分隔符使用 CSS 伪元素，不占用 HTML 文本 */
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--color-border-strong);
}

.breadcrumb a {
  color: var(--color-text-soft);
}


/* ==========================================================================
   7. 卡片 / 列表 / 时间线
   ========================================================================== */

/* --- 卡片网格：编辑式分栏，用细线分栏而非浮起的盒子 --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  column-gap: 32px;
  row-gap: 32px;
  margin-bottom: 8px;
}

/* 四列卡片：用于四大产品类别，桌面端一行展示 */
.card-grid.card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 32px;
}

/* 正文段落后接卡片或小节标题时留出呼吸空间 */
.prose + .card-grid {
  margin-top: 32px;
}

.prose + .subsection-title {
  margin-top: 28px;
}

.card {
  padding: 24px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--color-border-strong);
  border-radius: 0;
  box-shadow: none;
  transition: border-color .2s ease, transform .2s ease;
}

/* 悬停：细线转朱砂 + 整体上浮 2px，不加底色，保持“分栏而非盒子”的版式 */
.card:hover {
  border-top-color: var(--color-primary);
  box-shadow: none;
  transform: translateY(-2px);
}

/* --- 目录序号 ---
   01/02/03/04 的编号由 CSS 计数器生成，不写进 HTML，
   既给卡片区建立“索引感”的节奏，也不影响内容抓取与屏幕阅读器。 */
.card-grid {
  counter-reset: card;
}

.card {
  position: relative;
  counter-increment: card;
}

.card::before {
  content: counter(card, decimal-leading-zero);
  position: absolute;
  top: 25px;
  right: 0;
  font-family: var(--font-serif);
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--color-border-strong);
  transition: color .2s;
}

.card:hover::before {
  color: var(--color-primary);
}

.card-title {
  margin-bottom: .55em;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--color-text);
}

.card-text {
  margin: 0;
  font-size: .95rem;
  line-height: 1.85;
  color: var(--color-text-soft);
}

.card-meta {
  margin: .9em 0 0;
  padding-top: .7em;
  border-top: 1px solid var(--color-border);
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--color-text-mute);
}

/* 四大类别：放大汉字，像目录索引 */
.card-grid.card-grid-4 .card {
  padding-top: 26px;
}

.card-grid.card-grid-4 .card-title {
  font-size: 1.8rem;
  letter-spacing: .08em;
  transition: color .2s;
}

/* 四大类别悬停时汉字转为朱砂：一个只需要移动鼠标就能记住的细节 */
.card-grid.card-grid-4 .card:hover .card-title {
  color: var(--color-primary);
}

/* --- 数据统计 --- */
.stat-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 0;
}

.stat {
  padding: 18px 0 0;
  border-top: 1px solid var(--color-border-strong);
  background: transparent;
  border-radius: 0;
  text-align: left;
}

.stat-label {
  font-size: .88rem;
  color: var(--color-text-mute);
}

.stat-value {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-primary);
}

.stat-unit {
  font-size: 1.1rem;
  margin-left: 2px;
}

/* --- 愿景/价值观：左侧朱砂竖线，像箴言批注 --- */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  column-gap: 40px;
  row-gap: 28px;
  margin-bottom: 28px;
}

.vision-item {
  padding: 2px 0 2px 20px;
  background: transparent;
  border: 0;
  border-left: 2px solid var(--color-primary);
  border-radius: 0;
}

.vision-item h3 {
  margin-bottom: .4em;
  font-size: 1.06rem;
  color: var(--color-text);
}

.vision-item p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: .95rem;
}

/* --- 纯文本列表（荣誉、能力清单等） --- */
.plain-list {
  max-width: 78ch;
  padding-left: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: .55em;
  color: var(--color-text-soft);
}

/* 项目符号用 CSS 绘制，不依赖特殊字符 */
.plain-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .72em;
  width: 5px;
  height: 5px;
  background: var(--color-primary);
  transform: rotate(45deg);
}

/* --- 锚点导航列表 --- */
.anchor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.anchor-list li {
  margin: 0;
}

.anchor-list a {
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border-strong);
  background: transparent;
  border-radius: 0;
  font-size: .9rem;
  font-weight: 500;
}

/* --- 时间线（发展历程 / 服务流程） --- */
.timeline {
  position: relative;
  max-width: 78ch;
  margin: 0;
  padding-left: 30px;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
  margin: 0;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: .55em;
  width: 12px;
  height: 12px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  background: #fff;
}

.section-alt .timeline-item::before {
  background: var(--color-bg-alt);
}

.timeline-year {
  margin-bottom: .25em;
  font-size: 1rem;
  color: var(--color-primary);
}

.timeline-item p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: .95rem;
}


/* ==========================================================================
   8. 产品详情
   ========================================================================== */
.product-summary {
  max-width: 78ch;
  font-size: 1.02rem;
  color: var(--color-text-soft);
}

.product-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin: 28px 0;
}

.product-body h3 {
  padding-bottom: .4em;
  margin-bottom: .7em;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
  color: var(--color-primary-dark);
}

/* 规格参数表 */
.spec-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid var(--color-border-strong);
  border-bottom: 1px solid var(--color-border-strong);
  background: transparent;
  border-radius: 0;
}

.section-alt .spec-list {
  background: transparent;
}

.spec-list > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-list dt {
  font-size: .82rem;
  color: var(--color-text-mute);
}

.spec-list dd {
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-text);
}


/* ==========================================================================
   9. 联系页专用
   ========================================================================== */
.contact-dl {
  max-width: 78ch;
  margin: 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-row:first-child {
  border-top: 1px solid var(--color-border);
}

.contact-row dt {
  font-size: .92rem;
  font-weight: 600;
  color: var(--color-text-mute);
}

.contact-row dd {
  margin: 0;
  color: var(--color-text);
}

/* 电话是联系页第一重要的信息：用宋体放大，让视线先落在这里 */
.contact-row dd a[href^="tel:"] {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  letter-spacing: .04em;
  color: var(--color-primary);
}

.contact-row dd a[href^="tel:"]:hover {
  color: var(--color-primary-dark);
}


/* ==========================================================================
   10. 行动号召 (CTA)
   ========================================================================== */
.cta {
  background: var(--color-primary-dark);
  border-top: 1px solid var(--color-primary-dark);
  border-bottom: 1px solid var(--color-primary-dark);
  color: #fff;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-title {
  margin-bottom: .25em;
  font-size: 1.7rem;
  line-height: 1.35;
  color: #fff;
  letter-spacing: .04em;
}

.cta-text {
  margin: 0;
  max-width: 56ch;
  color: rgba(255, 255, 255, .86);
}

.cta-actions {
  margin: 0;
  flex-shrink: 0;
}

.cta .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--color-primary);
}

.cta .btn-primary:hover {
  background: var(--color-primary-soft);
  border-color: var(--color-primary-soft);
  color: var(--color-primary-dark);
}


/* ==========================================================================
   11. 页脚
   ========================================================================== */
.site-footer {
  padding-top: 64px;
  background: #211c17;
  color: rgba(255, 255, 255, .7);
  font-size: .92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-title {
  margin-bottom: .9em;
  padding-left: 10px;
  border-left: 2px solid var(--color-primary);
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: .08em;
  color: #fff;
}

.footer-text {
  margin: 0;
  max-width: 40ch;
  line-height: 1.85;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: .5em;
}

.footer-links a {
  color: rgba(255, 255, 255, .74);
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact p {
  margin-bottom: .7em;
}

.footer-contact a {
  color: rgba(255, 255, 255, .9);
}

/* 联系信息前的短标签 */
.contact-label {
  display: inline-block;
  min-width: 72px;
  margin-right: 8px;
  color: rgba(255, 255, 255, .5);
  font-size: .84rem;
}

/* 页脚底条：左侧版权、右侧备案号，分两行展示避免拥挤 */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 32px;
  padding: 24px 20px 34px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .86rem;
  line-height: 1.75;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .5);
}

.footer-bottom p {
  margin: 0;
}

/* 备案号之间的间隔：适量留白，纯空格不分隔线 */
.footer-bottom .beian-sep {
  display: inline-block;
  width: 2.5em;
  vertical-align: middle;
}

/* 备案链接里「备案名：」前缀，颜色略淡形成层次 */
.footer-bottom .beian-label {
  color: rgba(255, 255, 255, .5);
}

/* 备案号链接：留出呼吸感，hover 有下划线反馈 */
.footer-bottom a {
  display: inline-block;
  padding: 1px 2px;
  color: rgba(255, 255, 255, .66);
  text-decoration: none;
  transition: color .18s ease;
}

.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}


/* ==========================================================================
   12. 响应式断点
   ========================================================================== */

/* ---- 平板及以下 (<= 900px) ---- */
@media (max-width: 900px) {

  /* 空间不足时隐藏首屏竖排口号 */
  .hero-aside {
    display: none;
  }

  /* 四大类别在平板上改为两列，避免过窄 */
  .card-grid.card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 页脚改为两列 */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col:first-child {
    grid-column: 1 / -1;
  }
}

/* ---- 手机 (<= 720px) ---- */
@media (max-width: 720px) {

  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }

  /* 内页标题在手机上收一档，避免放大后挤满一行 */
  .page-title { font-size: 1.95rem; }

  .hero {
    padding: 56px 0 48px;
  }

  .hero-title {
    font-size: 2.05rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  /* 数据条在手机上排两列，去掉分栏竖线避免拥挤 */
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
    margin-top: 40px;
  }

  .hero-stats > div {
    padding-right: 0;
    border-right: 0;
  }

  .hero-stats dd {
    font-size: 1.8rem;
  }

  .hero-tags li {
    padding-right: 14px;
  }

  .section {
    padding: 56px 0;
  }

  /* 栏头在手机上改为上下排列 */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .section-desc {
    margin: 0;
    text-align: left;
  }

  /* --- 移动端导航：默认收起，点击汉堡按钮后展开 --- */
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 4px 20px 12px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-strong);
    box-shadow: none;
  }

  /* 由 main.js 切换 is-open 类来展开 */
  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav li + li {
    border-top: 1px solid var(--color-border);
  }

  .site-nav a {
    padding: 13px 2px;
    border-bottom: 0;
    font-size: 1rem;
  }

  /* 移动端菜单是纵向列表，下划线动画在这里没有意义，关掉 */
  .site-nav a::after {
    display: none;
  }

  .site-nav a.is-active {
    border-bottom: 0;
    border-left: 3px solid var(--color-primary);
    padding-left: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  /* 页头需要作为定位上下文 */
  .header-inner {
    position: relative;
  }

  /* 按钮在窄屏下占满整行 */
  .hero-actions .btn,
  .cta .btn {
    width: 100%;
    text-align: center;
  }

  /* 四大产品类别在手机上排成两列，避免单列过长 */
  .card-grid.card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
    row-gap: 28px;
  }

  .card-grid.card-grid-4 .card {
    padding: 20px 0 0;
  }

  /* 窄屏内边距变小，序号位置同步回收，避免压到标题 */
  .card::before {
    top: 21px;
  }

  .card-grid.card-grid-4 .card-title {
    font-size: 1.5rem;
  }

  .cta-inner {
    flex-direction: column;
    align-items: stretch;
  }

  /* 联系方式表：标签与内容改为上下排列 */
  .contact-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  /* 页脚改为单列 */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* 窄屏时备案号间隔收窄 */
  .footer-bottom .beian-sep {
    width: 1.6em;
  }

  .contact-label {
    min-width: 0;
    display: block;
  }
}

/* ---- 超小屏 (<= 400px) ---- */
@media (max-width: 400px) {
  .brand-sub {
    display: none; /* 极窄屏只保留品牌简称 */
  }

  .container {
    padding-inline: 16px;
  }

  /* 收一格字号，让“药食同源大健康供应链企业”在 390px 下整行排完，避免末行只剩两个字 */
  .hero-title {
    font-size: 1.8rem;
    letter-spacing: .02em;
  }

  .hero-stats dd {
    font-size: 1.65rem;
  }

  .page-title {
    font-size: 1.7rem;
  }
}


/* ==========================================================================
   13. 无障碍 / 打印 / 降低动效偏好
   ========================================================================== */

/* 尊重系统「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* 键盘焦点可见 */
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(179, 37, 40, .45);
  outline-offset: 2px;
}

/* 打印样式：隐藏导航与页脚装饰，保留正文文本 */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .cta {
    display: none;
  }

  body {
    color: #000;
    font-size: 12pt;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* 卡片只有标题、没有描述时，去掉标题下多余的间距 */
.card > .card-title:only-child {
  margin-bottom: 0;
}

/* --- 代表性产品（产品页） --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* 产品图做成“白框产品照”：细边框 + 3px 圆角 + 极轻投影，悬停抬起 2px */
.product-card {
  overflow: hidden;
  padding: 10px 10px 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.product-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.product-card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  /* 悬停时图片轻微推近，容器已 overflow:hidden，不会溢出卡片 */
  transition: transform .45s ease;
}

@media (hover: hover) {
  .product-card:hover .product-card-img {
    transform: scale(1.03);
  }
}

.product-card-name {
  margin: 0;
  padding: 14px 8px 16px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
  color: var(--color-text);
}

@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .product-card-name { padding: 12px 8px 14px; font-size: .92rem; }
}

/* --- 邮箱复制按钮（联系页） --- */
.contact-email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.copy-email {
  padding: 3px 10px;
  font: inherit;
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--color-primary);
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: 0;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.copy-email:hover {
  color: #fff;
  background: var(--color-primary);
}

.copy-email:focus-visible {
  outline: 2px solid rgba(179, 37, 40, .45);
  outline-offset: 2px;
}

.copy-feedback {
  font-size: .82rem;
  color: var(--color-text-mute);
}


/* ==========================================================================
   14. 触屏设备：关掉悬停位移，避免点按后状态残留
   ========================================================================== */
@media (hover: none) {
  .card:hover,
  .btn:hover {
    transform: none;
    box-shadow: none;
  }

  .product-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
}


/* ==========================================================================
   15. 滚动入场动画【新增】
   ----------------------------------------------------------------------------
   约束：
   1. 只动 opacity 与 translate，不改变元素占位尺寸，不产生 CLS；
   2. 默认（禁用 JS / 不支持 IntersectionObserver）内容完全可见，
      只有 <html> 带 .has-anim 时才进入「未入场」初始态，不会影响抓取；
   3. 位移动画用独立的 translate 属性，避免覆盖卡片 :hover 的 transform；
   4. 系统开启「减弱动画」时全部还原为静态，不做隐藏、不做动画。
   ========================================================================== */

/* ---- 单个元素入场：淡入 + 上移 14px ---- */
.has-anim [data-reveal] {
  opacity: 0;
  translate: 0 14px;
  transition: opacity .55s ease-out, translate .55s ease-out;
}

.has-anim [data-reveal].is-in {
  opacity: 1;
  translate: none;
}

/* ---- 成组入场：容器进入视口后，子项按 90ms 依次淡入 ---- */
.has-anim [data-reveal-group] > * {
  opacity: 0;
  translate: 0 14px;
  /* 保留原有 hover 过渡（边框色 / 位移 / 阴影），只追加入场用的两条 */
  transition: opacity .55s ease-out, translate .55s ease-out,
    border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  transition-delay: calc(var(--reveal-i, 0) * 90ms),
    calc(var(--reveal-i, 0) * 90ms), 0ms, 0ms, 0ms;
}

.has-anim [data-reveal-group].is-in > * {
  opacity: 1;
  translate: none;
}

/* ---- 首屏元素：直接呈现，不参与淡入（避免“先隐藏再淡入”的闪动） ---- */
.has-anim [data-reveal].is-static,
.has-anim [data-reveal-group].is-static > * {
  opacity: 1;
  translate: none;
  transition: none;
}

/* 错开节奏：最多排到第 6 个（450ms 封顶），避免长列表排长队 */
.has-anim [data-reveal-group] > :nth-child(1) { --reveal-i: 0; }
.has-anim [data-reveal-group] > :nth-child(2) { --reveal-i: 1; }
.has-anim [data-reveal-group] > :nth-child(3) { --reveal-i: 2; }
.has-anim [data-reveal-group] > :nth-child(4) { --reveal-i: 3; }
.has-anim [data-reveal-group] > :nth-child(5) { --reveal-i: 4; }
.has-anim [data-reveal-group] > :nth-child(n+6) { --reveal-i: 5; }

/* ---- 区块标题的朱砂竖线：从顶部向下展开 ---- */
.has-anim .section-head .section-title {
  position: relative;
  border-left-color: transparent;
}

.has-anim .section-head .section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-primary);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform .5s ease-out .12s;
}

.has-anim .section-head.is-in .section-title::before {
  transform: scaleY(1);
}

/* 首屏的区块头：竖线直接到位，不参与展开动画 */
.has-anim .section-head.is-static .section-title::before {
  transform: scaleY(1);
  transition: none;
}

/* ---- 数字计数：等宽数字，避免 40→0 时字宽跳动 ---- */
.has-anim .hero-stats dd {
  font-variant-numeric: tabular-nums;
}

/* ---- 无障碍兜底：系统减弱动画时完全静态，内容始终可见 ---- */
@media (prefers-reduced-motion: reduce) {
  .has-anim [data-reveal],
  .has-anim [data-reveal-group] > * {
    opacity: 1;
    translate: none;
    transition: none;
    transition-delay: 0ms;
  }

  .has-anim .section-head .section-title {
    border-left-color: var(--color-primary);
  }

  .has-anim .section-head .section-title::before {
    display: none;
  }
}


/* ==========================================================================
   16. 页面载入过渡【新增】
   ----------------------------------------------------------------------------
   与第 15 节的滚动入场是两套动画，职责分开：
   - 本节：整页从透明浮现，随首帧开始，只播一次，不阻塞任何渲染；
   - 第 15 节：区块进入视口才入场，由 IntersectionObserver 触发。
   时序由 JS 串起来：body 载入动画结束 → 再放行首屏区块入场。
   ========================================================================== */

/* 仅在用户未要求减弱动画时播放；减少动态效果时整段不生效 */
@media (prefers-reduced-motion: no-preference) {

  /* 整页淡入：只动 opacity，不改变任何布局尺寸 */
  body {
    animation: page-fade-in .7s ease-out both;
  }

  /* 内容区上移 5px 后归位：位移放在 main 而非 body，
     避免整页位移在顶部露出一条画布白边 */
  main {
    animation: page-rise-in .7s ease-out both;
  }
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes page-rise-in {
  from { translate: 0 5px; }
  to   { translate: none; }
}

/* 从往返缓存恢复：不再重播整页淡入，直接呈现已有画面 */
.is-restored body,
.is-restored main {
  animation: none;
}


/* ==========================================================================
   17. 细节打磨【新增】
   ========================================================================== */

/* ---- 滚动条：与宣纸底色同调，避免系统默认的蓝灰色打断整体质感 ---- */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-strong) var(--color-bg-alt);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border: 2px solid var(--color-bg-alt);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-mute);
}
