/* ==========================================================================
   tannastar 天翊星 — 官网共享样式表 main.css
   合肥乐兹信息技术有限公司

   目录
   0.  设计令牌 Design Tokens (:root)
   1.  Reset & 基础元素
   2.  排版 Typography
   3.  布局容器 Layout / Container / Section / Grid
   4.  Header / 导航 / 移动端汉堡菜单
   5.  Footer
   6.  组件 — 按钮 Buttons
   7.  组件 — 卡片 Cards
   8.  组件 — 标签 / 状态点 Tags & Status
   9.  组件 — 参数表格 Spec Table
   10. 组件 — 统计数字 / LED 读数 Stat & LED Readout
   11. 主题母题 — 网格纹理 / 表盘 / 脉冲分隔线 Motifs
   12. 组件 — 面包屑 / 分割线 / 证书卡片 / 时间线
   13. 表单元素 Forms
   14. 滚动淡入动效 Reveal Animation
   15. 工具类 Utilities
   16. 响应式断点 Responsive Overrides
   ========================================================================== */


/* ==========================================================================
   0. 设计令牌 Design Tokens
   ========================================================================== */
:root {
  /* ---- 色板 Color Palette --------------------------------------------- */
  /* 中性色 / 墨色阶梯（正文、标题；非纯黑，偏冷石墨色，精密仪器质感） */
  --c-ink-900: #10141A;   /* 最深墨色，深色板块背景（header/footer/hero-dark） */
  --c-ink-800: #171C24;
  --c-ink-700: #232A34;
  --c-ink-600: #333B47;
  --c-ink-500: #4B5563;   /* 正文次要文字 */
  --c-ink-400: #6B7280;   /* 说明性 / meta 文字 */
  --c-ink-300: #98A1AC;   /* 弱化文字、占位 */
  --c-ink-100: #E2E6EA;   /* 细分割线（亮底） */
  --c-ink-050: #EEF1F3;   /* 极浅分割 / 卡片描边备用 */

  --c-title: #12161C;     /* 标题主色（非纯黑） */
  --c-body:  #414A56;     /* 正文主色 */
  --c-muted: #6E7787;     /* 弱化说明文字 */

  /* 背景 Surfaces */
  --c-canvas:      #F4F6F7;  /* 页面主背景，冷灰白 */
  --c-canvas-alt:  #ECEFF1;  /* 分区备用背景（斑马分区） */
  --c-surface:     #FFFFFF;  /* 卡片 / 表面 */
  --c-surface-line:#E2E6EA;  /* 卡片描边 */

  /* 深色板块（header / footer / dark hero） */
  --c-dark-bg:     #10141A;
  --c-dark-bg-alt: #171C24;
  --c-dark-line:   rgba(255,255,255,0.10);
  --c-dark-text:   #F3F5F6;
  --c-dark-muted:  #98A3B0;

  /* 品牌强调色 — “精密青” Precision Cyan（刻意避开紫蓝AI渐变） */
  --c-brand:       #0E7A8C;
  --c-brand-600:   #0B6577;
  --c-brand-700:   #0A5563;
  --c-brand-300:   #4FAEBE;
  --c-brand-100:   #DFF1F3;   /* 品牌浅色填充 */
  --c-brand-050:   #EFF8F9;

  /* 语义状态色 — 对时状态灯（同步网络设备的三态指示） */
  --c-sync:      #1F9D55;  /* 已同步 / 正常 */
  --c-sync-100:  #E4F5EA;
  --c-warn:      #C77C11;  /* 预警 */
  --c-warn-100:  #FBF1DE;
  --c-alarm:     #C23B3B;  /* 告警 / 离线 */
  --c-alarm-100: #FBE9E9;

  /* ---- 字体栈 Typography --------------------------------------------- */
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC',
               'Microsoft YaHei', 'Segoe UI', sans-serif;
  --font-display: 'Red Hat Display', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  /* ---- 字号阶梯 Font Scale（clamp 响应式） ---------------------------- */
  --fs-display: clamp(2.5rem, 2.05rem + 2vw, 3.75rem);   /* 首屏超大标题 */
  --fs-h1:      clamp(2rem, 1.75rem + 1.1vw, 2.75rem);
  --fs-h2:      clamp(1.5rem, 1.35rem + 0.65vw, 1.875rem);
  --fs-h3:      1.375rem;   /* 22px */
  --fs-h4:      1.125rem;   /* 18px */
  --fs-lg:      1.125rem;   /* 18px 正文大 */
  --fs-base:    1rem;       /* 16px 正文 */
  --fs-sm:      0.9375rem;  /* 15px */
  --fs-xs:      0.8125rem;  /* 13px caption */
  --fs-2xs:     0.75rem;    /* 12px micro */

  --lh-tight: 1.15;
  --lh-snug:  1.35;
  --lh-body:  1.7;

  /* ---- 间距阶梯 Spacing Scale（4px 基准） ----------------------------- */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-7:  32px;
  --sp-8:  40px;
  --sp-9:  48px;
  --sp-10: 64px;
  --sp-11: 80px;
  --sp-12: 96px;
  --sp-13: 128px;

  /* ---- 圆角 Radius ------------------------------------------------------ */
  --radius-xs:  4px;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-pill: 999px;   /* 仅用于小标签 / 徽标 / 状态点，禁止用于按钮或卡片大容器 */

  /* ---- 阴影 Shadows（低饱和、贴近背景色的弥散阴影，不用默认重阴影） ------ */
  --shadow-xs: 0 1px 2px rgba(16, 20, 26, 0.05);
  --shadow-sm: 0 2px 10px rgba(16, 20, 26, 0.06);
  --shadow-md: 0 12px 28px -12px rgba(16, 20, 26, 0.14);
  --shadow-lg: 0 24px 48px -20px rgba(16, 20, 26, 0.20);
  --shadow-focus: 0 0 0 3px rgba(14, 122, 140, 0.28);

  /* ---- 容器 / 断点 --------------------------------------------------- */
  --container-max: 1280px;
  --container-pad: clamp(20px, 4vw, 64px);

  /* ---- 层级 Z-index ---------------------------------------------------- */
  --z-header: 100;
  --z-dropdown: 200;
  --z-overlay: 900;
  --z-modal: 1000;

  /* ---- 动效 Motion（MOTION_INTENSITY=4，克制的流体过渡） --------------- */
  --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-slow: 420ms;
}

/* ==========================================================================
   1. Reset & 基础元素
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--c-canvas);
  color: var(--c-body);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 打开移动端菜单时锁定滚动 */
body.nav-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--c-title);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--c-brand);
  text-decoration: none;
}
a:hover { color: var(--c-brand-600); }

ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; height: auto; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
button { cursor: pointer; background: none; border: none; }

table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-xs);
}

hr {
  border: none;
  border-top: 1px solid var(--c-ink-100);
  margin: var(--sp-8) 0;
}

::selection { background: var(--c-brand-100); color: var(--c-brand-700); }

/* ==========================================================================
   2. 排版 Typography
   ========================================================================== */
.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-title);
}

.lede {
  font-size: var(--fs-lg);
  color: var(--c-body);
  line-height: var(--lh-body);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-brand-600);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-brand);
  flex-shrink: 0;
}
.section--dark .eyebrow { color: var(--c-brand-300); }

.text-muted { color: var(--c-muted); }
.text-body  { color: var(--c-body); }
.text-brand { color: var(--c-brand); }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  color: var(--c-title);
  border-bottom: 1px solid var(--c-ink-100);
  padding-bottom: 2px;
  transition: border-color var(--dur-base) var(--ease-fluid), color var(--dur-base) var(--ease-fluid), gap var(--dur-base) var(--ease-fluid);
}
.link-arrow::after {
  content: "";
  width: 14px;
  height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M9.3.7a1 1 0 0 1 1.4 0l4.6 4.6a1 1 0 0 1 0 1.4L10.7 11.3a1 1 0 0 1-1.4-1.4L12.6 7H1a1 1 0 1 1 0-2h11.6L9.3 2.1a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M9.3.7a1 1 0 0 1 1.4 0l4.6 4.6a1 1 0 0 1 0 1.4L10.7 11.3a1 1 0 0 1-1.4-1.4L12.6 7H1a1 1 0 1 1 0-2h11.6L9.3 2.1a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.link-arrow:hover { color: var(--c-brand); border-color: var(--c-brand); gap: var(--sp-3); }

/* ==========================================================================
   3. 布局容器 Layout / Container / Section / Grid
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container--narrow { max-width: 860px; }
.container--wide   { max-width: 1440px; }

.section {
  padding-top: var(--sp-12);
  padding-bottom: var(--sp-12);
  position: relative;
}
.section--sm { padding-top: var(--sp-9); padding-bottom: var(--sp-9); }
.section--lg { padding-top: var(--sp-13); padding-bottom: var(--sp-13); }

.section--alt { background: var(--c-canvas-alt); }
.section--surface { background: var(--c-surface); }

.section--dark {
  background: var(--c-dark-bg);
  color: var(--c-dark-text);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #FFFFFF; }
.section--dark p, .section--dark .lede { color: var(--c-dark-muted); }
.section--dark .text-muted { color: rgba(255,255,255,0.55); }

.section__head {
  max-width: 720px;
  margin-bottom: var(--sp-9);
}
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  max-width: none;
}
.section__head--split .lede { margin-top: var(--sp-3); }

/* --- Grid 系统 ---------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--sp-6);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* 非对称网格（DESIGN_VARIANCE=6 用于打破居中/等分平铺） */
.grid--asym-2 { grid-template-columns: 1.6fr 1fr; }
.grid--asym-2-rev { grid-template-columns: 1fr 1.6fr; }
.grid--asym-3 { grid-template-columns: 1.3fr 1fr 1fr; }

/* 自适应卡片网格：卡片数量不定时使用 */
.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* 两栏“主内容 / 侧栏媒体”分屏（Hero / 图文区通用），避免居中大标题范式 */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split--tight { gap: var(--sp-8); }

/* ==========================================================================
   4. Header / 导航 / 移动端汉堡菜单
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(16, 20, 26, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-dark-line);
  transition: box-shadow var(--dur-base) var(--ease-fluid);
}
.site-header.is-scrolled { box-shadow: 0 12px 28px -18px rgba(0,0,0,0.6); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: #fff;
  flex-shrink: 0;
  margin-right: auto;
}
.brand:hover { color: #fff; }
.brand__mark {
  display: inline-flex;
  color: var(--c-brand-300);
  flex-shrink: 0;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--c-dark-muted);
}

.nav { display: flex; align-items: center; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--sp-7);
}
.nav__menu a {
  position: relative;
  display: inline-block;
  padding: var(--sp-2) 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-dark-muted);
  transition: color var(--dur-base) var(--ease-fluid);
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -3px;
  height: 2px;
  background: var(--c-brand-300);
  transition: right var(--dur-base) var(--ease-fluid);
}
.nav__menu a:hover { color: #fff; }
.nav__menu a:hover::after { right: 0; }
.nav__menu a.is-active {
  color: #fff;
}
.nav__menu a.is-active::after { right: 0; background: var(--c-brand-300); }

.site-header__cta { flex-shrink: 0; }

/* 移动端菜单内的 CTA 副本：桌面隐藏，<1024px 展开菜单时显示（见 §16 响应式） */
.nav__menu-cta { display: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  flex-shrink: 0;
}
.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-fluid), opacity var(--dur-base) var(--ease-fluid);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   5. Footer
   ========================================================================== */
.site-footer {
  background: var(--c-dark-bg-alt);
  color: var(--c-dark-muted);
  border-top: 1px solid var(--c-dark-line);
}

.site-footer__top {
  padding-top: var(--sp-11);
  padding-bottom: var(--sp-9);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-8);
}

.footer-brand__mark {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: #fff;
  margin-bottom: var(--sp-4);
}
.footer-brand__mark svg { color: var(--c-brand-300); }
.footer-brand__mark span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}
.site-footer p { color: var(--c-dark-muted); font-size: var(--fs-sm); }

.footer-col__title {
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}
.footer-col li { margin-bottom: var(--sp-3); }
.footer-col a {
  color: var(--c-dark-muted);
  font-size: var(--fs-sm);
  transition: color var(--dur-base) var(--ease-fluid);
}
.footer-col a:hover { color: #fff; }

.footer-contact li {
  display: flex;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--c-dark-muted);
  align-items: flex-start;
}
.footer-contact svg { flex-shrink: 0; margin-top: 2px; color: var(--c-brand-300); }

.site-footer__bottom {
  border-top: 1px solid var(--c-dark-line);
  padding: var(--sp-5) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--c-ink-300);
}
.footer__icp-placeholder {
  color: var(--c-ink-300);
  font-family: var(--font-mono);
}

/* ==========================================================================
   6. 组件 — 按钮 Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 48px;
  padding: 0 var(--sp-6);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-fluid),
              background-color var(--dur-base) var(--ease-fluid),
              border-color var(--dur-base) var(--ease-fluid),
              color var(--dur-base) var(--ease-fluid),
              box-shadow var(--dur-base) var(--ease-fluid);
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--c-title);
  color: #fff;
}
.btn--primary:hover { background: var(--c-ink-700); color: #fff; }

.btn--accent {
  background: var(--c-brand);
  color: #fff;
}
.btn--accent:hover { background: var(--c-brand-600); color: #fff; }

.btn--outline {
  background: transparent;
  border-color: var(--c-ink-100);
  color: var(--c-title);
}
.btn--outline:hover { border-color: var(--c-title); background: var(--c-canvas-alt); color: var(--c-title); }

.btn--ghost {
  background: transparent;
  color: var(--c-title);
  height: auto;
  padding: var(--sp-2) 0;
}
.btn--ghost:hover { color: var(--c-brand); }

.btn--dark {
  background: transparent;
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.btn--dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); color: #fff; }

.btn--sm { height: 40px; padding: 0 var(--sp-5); font-size: var(--fs-xs); }
.btn--lg { height: 56px; padding: 0 var(--sp-8); font-size: var(--fs-base); }
.btn--block { width: 100%; }

.btn-group { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* ==========================================================================
   7. 组件 — 卡片 Cards
   ========================================================================== */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-surface-line);
  border-radius: var(--radius-md);
  padding: var(--sp-7);
}
.card--pad-lg { padding: var(--sp-9); }
.card--pad-sm { padding: var(--sp-5); }

.card--interactive {
  transition: transform var(--dur-base) var(--ease-fluid),
              box-shadow var(--dur-base) var(--ease-fluid),
              border-color var(--dur-base) var(--ease-fluid);
}
.card--interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-ink-100);
}

.card--dark {
  background: var(--c-ink-800);
  border-color: var(--c-dark-line);
  color: var(--c-dark-text);
}
.card--dark h3, .card--dark h4 { color: #fff; }
.card--dark p { color: var(--c-dark-muted); }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--c-brand-050);
  color: var(--c-brand);
  margin-bottom: var(--sp-5);
}
.section--dark .card__icon,
.card--dark .card__icon {
  background: rgba(14, 122, 140, 0.18);
  color: var(--c-brand-300);
}

.card__eyebrow-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-ink-500);
  margin-bottom: var(--sp-3);
}
.section--dark .card__eyebrow-num,
.card--dark .card__eyebrow-num { color: var(--c-dark-muted); }

.card__title { margin-bottom: var(--sp-3); }
.card__desc { color: var(--c-muted); font-size: var(--fs-sm); }

/* 产品卡（用于产品中心网格） */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-surface-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease-fluid), transform var(--dur-base) var(--ease-fluid);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product-card__media {
  aspect-ratio: 4 / 3;
  background: var(--c-ink-900);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--sp-5);
}
.product-card__body { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.product-card__model {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-brand-600);
  letter-spacing: 0.04em;
}
.product-card__price {
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-title);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-ink-050);
}
.product-card__price small { font-family: var(--font-sans); font-weight: 400; font-size: var(--fs-xs); color: var(--c-muted); }

/* ==========================================================================
   8. 组件 — 标签 / 状态点 Tags & Status
   ========================================================================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-pill);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--c-ink-050);
  color: var(--c-ink-500);
}
.tag--brand { background: var(--c-brand-100); color: var(--c-brand-700); }
.tag--sync  { background: var(--c-sync-100); color: #17753F; }
.tag--warn  { background: var(--c-warn-100); color: #93600D; }
.tag--alarm { background: var(--c-alarm-100); color: #96302F; }
.tag--dark  { background: rgba(255,255,255,0.1); color: #fff; }

/* 状态指示点（同步 / 预警 / 离线），带呼吸动效，MOTION_INTENSITY=4 克制表现 */
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-ink-500);
}
.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-ink-300);
  flex-shrink: 0;
}
.status-dot--sync { color: #17753F; }
.status-dot--sync::before { background: var(--c-sync); animation: statusBreathe 2.4s ease-in-out infinite; }
.status-dot--warn { color: #93600D; }
.status-dot--warn::before { background: var(--c-warn); }
.status-dot--alarm { color: #96302F; }
.status-dot--alarm::before { background: var(--c-alarm); }

@keyframes statusBreathe {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(31, 157, 85, 0.35); }
  50% { opacity: 0.72; box-shadow: 0 0 0 4px rgba(31, 157, 85, 0); }
}

/* ==========================================================================
   9. 组件 — 参数表格 Spec Table
   ========================================================================== */
.table-specs {
  width: 100%;
  border: 1px solid var(--c-surface-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-surface);
}
.table-specs th,
.table-specs td {
  text-align: left;
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--c-ink-050);
}
.table-specs thead th {
  background: var(--c-ink-900);
  color: var(--c-dark-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: none;
}
.table-specs tbody tr:last-child td { border-bottom: none; }
.table-specs tbody tr:nth-child(even) { background: var(--c-canvas); }
.table-specs td:first-child {
  color: var(--c-muted);
  width: 38%;
}
.table-specs td.num,
.table-specs td[data-num] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--c-title);
  font-weight: 600;
}

/* 紧凑版参数表（用于卡片内嵌） */
.spec-list { border-top: 1px solid var(--c-ink-050); }
.spec-list__row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-ink-050);
  font-size: var(--fs-sm);
}
.spec-list__row dt { color: var(--c-muted); }
.spec-list__row dd {
  margin: 0;
  font-family: var(--font-mono);
  color: var(--c-title);
  font-weight: 600;
  text-align: right;
}
.section--dark .spec-list__row dd,
.card--dark .spec-list__row dd { color: #fff; }

/* ==========================================================================
   10. 组件 — 统计数字 / LED 读数 Stat & LED Readout
   ========================================================================== */
.led-readout {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--c-title);
}
.section--dark .led-readout,
.card--dark .led-readout { color: #fff; text-shadow: 0 0 18px rgba(79, 174, 190, 0.35); }

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 1.4rem + 1.1vw, 2.5rem);
  font-weight: 700;
  color: var(--c-title);
  line-height: 1;
}
.stat__value .unit {
  font-size: max(11px, 0.5em);
  font-weight: 500;
  color: var(--c-muted);
  margin-left: var(--sp-1);
}
.section--dark .stat__value { color: #fff; }
.stat__label {
  font-size: var(--fs-xs);
  color: var(--c-muted);
}
.section--dark .stat__label { color: var(--c-dark-muted); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-7);
}
.stat-row .stat + .stat {
  border-left: 1px solid var(--c-ink-100);
  padding-left: var(--sp-7);
}
.section--dark .stat-row .stat + .stat { border-left-color: var(--c-dark-line); }

/* ==========================================================================
   11. 主题母题 — 网格纹理 / 表盘 / 脉冲分隔线 Motifs
   （精密计时 / 同步网络视觉母题，全部 CSS/SVG 实现，无需额外配图）
   ========================================================================== */

/* 11.1 网格纹理背景（示波器 / 制图纸质感），装饰用，需配合定位容器 */
.bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-grid--light {
  background-image:
    linear-gradient(to right, rgba(18,22,28,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18,22,28,0.05) 1px, transparent 1px);
}

/* 11.2 表盘装饰（同心刻度环），用于 Hero / 关于我们等区块的背景装饰 */
.dial-decor {
  position: absolute;
  pointer-events: none;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(79, 174, 190, 0.5) 0deg 0.6deg,
      transparent 0.6deg 6deg
    );
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 68%, transparent 69%);
  mask: radial-gradient(circle, transparent 62%, #000 63%, #000 68%, transparent 69%);
  opacity: 0.55;
}
.dial-decor::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(79, 174, 190, 0.28);
}
.dial-decor--sm { width: 220px; }
.dial-decor--md { width: 420px; }
.dial-decor--lg { width: 640px; }

/* 11.3 同步脉冲分隔线（区块之间的装饰性波形分隔） */
.pulse-divider {
  width: 100%;
  height: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14 H150 L162 4 L174 24 L186 14 H400' fill='none' stroke='%230E7A8C' stroke-opacity='0.35' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 400px 28px;
  opacity: 0.9;
}
.section--dark .pulse-divider {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14 H150 L162 4 L174 24 L186 14 H400' fill='none' stroke='%234FAEBE' stroke-opacity='0.4' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* 11.4 刻度尺分隔线（顶部/底部细刻度装饰条，呼应精密仪器刻度） */
.ticks-rule {
  height: 8px;
  width: 100%;
  background-image: repeating-linear-gradient(
    to right,
    var(--c-ink-100) 0, var(--c-ink-100) 1px,
    transparent 1px, transparent 8px
  );
  background-position: bottom;
  background-size: 100% 8px;
  background-repeat: repeat-x;
}
.section--dark .ticks-rule,
.ticks-rule--dark {
  background-image: repeating-linear-gradient(
    to right,
    rgba(255,255,255,0.18) 0, rgba(255,255,255,0.18) 1px,
    transparent 1px, transparent 8px
  );
}

/* 11.5 数码管风格数字（用于强调超大数值，如精度/年份/编号），克制使用 */
.digit-display {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--c-brand);
}

/* ==========================================================================
   12. 组件 — 面包屑 / 分割线 / 证书卡片 / 时间线
   ========================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--c-ink-300);
}
.breadcrumb a { color: var(--c-ink-300); }
.breadcrumb a:hover { color: var(--c-brand-300); }
.breadcrumb__sep { opacity: 0.5; }
.breadcrumb__current { color: var(--c-dark-muted); }

.divider { border-top: 1px solid var(--c-ink-100); margin: var(--sp-8) 0; }
.section--dark .divider { border-color: var(--c-dark-line); }

/* 证书 / 资质卡片（关于我们页使用），扫描件在浅灰底上做等比展示 */
.cert-card {
  background: var(--c-surface);
  border: 1px solid var(--c-surface-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cert-card__frame {
  aspect-ratio: 3 / 4;
  background: var(--c-canvas-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}
.cert-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}
.cert-card__caption {
  padding: var(--sp-5) var(--sp-6);
  border-top: 1px solid var(--c-ink-050);
}
.cert-card__caption h3 { font-size: var(--fs-base); margin-bottom: var(--sp-1); }
.cert-card__caption p { font-size: var(--fs-xs); color: var(--c-muted); margin: 0; }

/* 时间线（关于我们 — 公司发展节点） */
.timeline { border-left: 1px solid var(--c-ink-100); padding-left: var(--sp-7); }
.section--dark .timeline { border-left-color: var(--c-dark-line); }
.timeline__item { position: relative; padding-bottom: var(--sp-9); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--sp-7) - 5px);
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-brand);
  box-shadow: 0 0 0 4px var(--c-brand-100);
}
.section--dark .timeline__item::before { box-shadow: 0 0 0 4px rgba(14,122,140,0.25); }
.timeline__year {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-brand-600);
  margin-bottom: var(--sp-2);
}
.section--dark .timeline__year { color: var(--c-brand-300); }

/* ==========================================================================
   13. 表单元素 Forms（联系我们页使用）
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.field__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-title);
}
.field__label .required { color: var(--c-alarm); margin-left: var(--sp-1); }
.field__hint { font-size: var(--fs-xs); color: var(--c-muted); }
.field__error { font-size: var(--fs-xs); color: var(--c-alarm); }

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid var(--c-ink-100);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  padding: 0 var(--sp-4);
  height: 48px;
  font-size: var(--fs-sm);
  color: var(--c-title);
  transition: border-color var(--dur-base) var(--ease-fluid), box-shadow var(--dur-base) var(--ease-fluid);
}
.textarea { height: auto; min-height: 140px; padding: var(--sp-4); resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--c-ink-300); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: var(--shadow-focus);
}
.input.is-invalid, .textarea.is-invalid { border-color: var(--c-alarm); }

.checkbox-row { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--c-muted); }

/* ==========================================================================
   14. 滚动淡入动效 Reveal Animation（配合 main.js IntersectionObserver）
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-fluid), transform var(--dur-slow) var(--ease-fluid);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* 子元素级联延迟：在父级加 .reveal-stagger，子项按 --index 顺序错峰 */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-fluid), transform var(--dur-slow) var(--ease-fluid);
  transition-delay: calc(var(--index, 0) * 80ms);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .status-dot--sync::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   15. 工具类 Utilities
   ========================================================================== */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mt-9 { margin-top: var(--sp-9); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }

.text-center { text-align: center; }
.text-right { text-align: right; }

.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;
}

.w-full { width: 100%; }

/* ==========================================================================
   16. 响应式断点 Responsive Overrides
   断点约定：
     - 桌面 Desktop:  >= 1024px（默认样式即桌面，向下适配）
     - 平板 Tablet:   640px – 1023px
     - 手机 Mobile:   < 640px
   导航在 < 1024px 收起为汉堡菜单。
   ========================================================================== */

/* ---- < 1280px：宽屏收紧最大宽度已由 clamp 处理，這裡只调整少量间距 ---- */
@media (max-width: 1279px) {
  .site-footer__top { grid-template-columns: 1.2fr 1fr 1fr; }
}

/* ---- < 1024px：导航收起为汉堡菜单；footer 收为两栏 ---- */
@media (max-width: 1023px) {
  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--c-dark-bg);
    padding: var(--sp-6) var(--container-pad);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-fluid),
                transform var(--dur-base) var(--ease-fluid),
                visibility 0s linear var(--dur-base);
    overflow-y: auto;
  }
  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity var(--dur-base) var(--ease-fluid),
                transform var(--dur-base) var(--ease-fluid),
                visibility 0s linear 0s;
  }
  .nav__menu li { border-bottom: 1px solid var(--c-dark-line); }
  .nav__menu a {
    display: block;
    padding: var(--sp-5) 0;
    font-size: var(--fs-lg);
  }
  .nav__menu a::after { display: none; }

  .site-header__cta { display: none; }

  .nav__menu li.nav__menu-cta {
    display: block;
    border-bottom: none;
    margin-top: var(--sp-6);
  }
  .nav__menu-cta a {
    padding: 0;
  }
  .nav__menu-cta .btn {
    height: 52px;
    font-size: var(--fs-base);
  }

  .split { grid-template-columns: 1fr; gap: var(--sp-8); }
  .split--reverse { direction: ltr; }

  .grid--asym-2, .grid--asym-2-rev, .grid--asym-3 { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }

  .site-footer__top { grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
  .stat-row .stat + .stat { border-left: none; padding-left: 0; }
}

/* ---- < 768px：平板竖屏 / 大屏手机 ---- */
@media (max-width: 767px) {
  :root { --container-pad: 20px; }

  .section { padding-top: var(--sp-10); padding-bottom: var(--sp-10); }
  .section--sm { padding-top: var(--sp-8); padding-bottom: var(--sp-8); }
  .section--lg { padding-top: var(--sp-11); padding-bottom: var(--sp-11); }

  .grid--2, .grid--3, .grid--4,
  .grid--asym-2, .grid--asym-2-rev, .grid--asym-3 { grid-template-columns: 1fr; }

  .site-footer__top { grid-template-columns: 1fr; gap: var(--sp-8); }

  .section__head--split { flex-direction: column; align-items: flex-start; }

  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { width: 100%; }
}

/* ---- < 480px：小屏手机 ---- */
@media (max-width: 479px) {
  .site-header__inner { height: 64px; }
  .nav__menu { top: 64px; }
  .brand__sub { display: none; }
  .display { letter-spacing: -0.01em; }
  .card, .card--pad-lg { padding: var(--sp-6); }
}
