/* ==========================================================
   迅通通信企业官网 - 全站共享样式（工程师 A）
   顺序：Token -> Reset -> 基础排版 -> 通用组件 -> Header/Footer
         -> 首页版块 -> 内页组件 -> 响应式（992 / 768 / 480）
   ========================================================== */

/* ==========================================================
   设计 Token —— 全站唯一取值来源，禁止在页面内另写魔法值
   ========================================================== */
:root {
  /* ---- 颜色 ---- */
  --c-primary:        #0B3B71;   /* 主企业蓝：标题、导航、Footer 深色底、强调 */
  --c-primary-dark:   #082C55;   /* 更深蓝：Header/区块深色底、hover 加深 */
  --c-primary-light:  #145DA0;   /* 辅助蓝：链接、图标、次级强调、hover */
  --c-accent-red:     #C8102E;   /* 红：仅按钮底色 / 小圆点徽标，禁止大字块 */
  --c-text:           #333333;   /* 正文 */
  --c-text-sub:       #666666;   /* 次级文字、简介 */
  --c-text-light:     #999999;   /* 弱化文字、时间、面包屑 */
  --c-border:         #E5E7EB;   /* 卡片边框、分隔线 */
  --c-bg-gray:        #F5F7FA;   /* 灰色分区背景 */
  --c-bg-dark:        #0B2A4A;   /* Footer 深色底 */
  --c-white:          #FFFFFF;

  /* ---- 字号阶梯（8 档，全站只用这些） ---- */
  --fs-14: 14px;   /* 辅助信息、面包屑 */
  --fs-15: 15px;   /* 正文小 */
  --fs-16: 16px;   /* 正文默认 */
  --fs-18: 18px;   /* 卡片标题、导航 */
  --fs-20: 20px;   /* 小节标题 */
  --fs-22: 22px;   /* 区块标题（移动端降为 20px） */
  --fs-28: 28px;   /* 区块主标题 */
  --fs-36: 36px;   /* 首页 Banner 标题 / 数据大数字 */

  /* ---- 间距（8px 基数） ---- */
  --sp-1: 8px;  --sp-2: 16px;  --sp-3: 24px;  --sp-4: 32px;
  --sp-5: 40px; --sp-6: 48px;  --sp-8: 64px;  --sp-10: 80px; --sp-12: 96px;

  /* ---- 圆角（克制，仅两档） ---- */
  --radius-sm: 2px;
  --radius-md: 4px;

  /* ---- 阴影（克制，仅两档） ---- */
  --shadow-sm: 0 1px 4px rgba(11, 59, 113, 0.08);
  --shadow-md: 0 4px 16px rgba(11, 59, 113, 0.12);

  /* ---- 布局 ---- */
  --container:  1200px;
  --topbar-h:   36px;
  --header-h:   70px;

  /* ---- 字体栈 ---- */
  --font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* ==========================================================
   Reset
   ========================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-white);
}

h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  border: 0;
  vertical-align: middle;
}

em, i { font-style: normal; }
strong, b { font-weight: 700; }

button {
  font-family: inherit;
  cursor: pointer;
}

table { border-collapse: collapse; }

/* ==========================================================
   布局基件：容器 / 区块 / 标题组 / 网格
   ========================================================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

.section { padding: var(--sp-10) 0; }
.section--gray { background: var(--c-bg-gray); }

.section-head {
  text-align: center;
  margin-bottom: var(--sp-6);
}

.section-title {
  font-size: var(--fs-28);
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.4;
}

/* 标题下短划线：小图标级点缀（v26：红改绿，与全站主色统一） */
.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: var(--sp-2) auto 0;
  background: var(--c-primary);
}

.section-sub {
  margin-top: var(--sp-2);
  font-size: var(--fs-15);
  color: var(--c-text-light);
}

.section-more {
  text-align: center;
  margin-top: var(--sp-6);
}

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

/* ==========================================================
   按钮
   ========================================================== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: var(--fs-16);
  line-height: 1.4;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--c-primary);
  color: var(--c-white);
}
.btn-primary:hover {
  background: var(--c-primary-dark);
  color: var(--c-white);
}

/* 白底页面用：蓝框蓝字 */
.btn-outline {
  background: var(--c-white);
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn-outline:hover {
  background: var(--c-primary);
  color: var(--c-white);
}

.btn-red {
  background: var(--c-accent-red);
  color: var(--c-white);
}
.btn-red:hover {
  background: var(--c-accent-red);
  color: var(--c-white);
  filter: brightness(0.9);
}

/* ==========================================================
   Header：topbar + header-main
   ========================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* 顶部通栏：汉界式改版后隐藏（header 为固定深色半透明悬浮条） */
.topbar {
  display: none;
  height: var(--topbar-h);
  background: var(--c-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-14);
}

.header-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(34, 34, 34, 0.8);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
}

/* ---- Logo（深色底上的白色版本） ---- */
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: none;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1079CA;
  color: var(--c-white);
  font-size: var(--fs-22);
  font-weight: 700;
  border-radius: var(--radius-sm);
}

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

.logo-cn {
  font-size: var(--fs-22);
  font-weight: 700;
  color: var(--c-white);
}

.logo-en {
  font-size: var(--fs-14);
  color: rgba(255, 255, 255, 0.6);
}

/* ---- 主导航 ---- */
.nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  height: var(--header-h);
  padding: 0 18px;
  font-size: 15px;
  color: var(--c-white);
  white-space: nowrap;
}

.nav-link:hover { color: #0096FF; }

/* 当前页：汉界式亮蓝字 */
.nav-item.active > .nav-link,
.nav-item--active > .nav-link {
  color: #0096FF;
  font-weight: 700;
}

.nav-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* ---- 下拉子菜单（PC hover 展开） ---- */
.subnav {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 168px;
  padding: var(--sp-1) 0;
  background: var(--c-white);
  border-top: 2px solid #0096FF;
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 110;
}

.nav-item:hover > .subnav { display: block; }

.subnav a {
  display: block;
  padding: var(--sp-1) var(--sp-2);
  font-size: var(--fs-15);
  color: var(--c-text);
  text-align: center;
  white-space: nowrap;
}

.subnav a:hover {
  background: var(--c-bg-gray);
  color: #0096FF;
}

/* ---- 右侧电话强调位 ---- */
.header-tel {
  display: flex;
  align-items: center;
  margin-left: var(--sp-3);
  padding-left: var(--sp-3);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  flex: none;
}

.header-tel-info {
  position: relative;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

/* 红底白色话筒小图标（CSS + SVG data-URI 绘制） */
.header-tel-info::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c-accent-red)
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24 11.36 11.36 0 0 0 3.57.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.36 11.36 0 0 0 .57 3.57 1 1 0 0 1-.25 1.02z'/%3E%3C/svg%3E")
    center / 10px no-repeat;
}

.header-tel-label {
  font-size: var(--fs-14);
  color: rgba(255, 255, 255, 0.65);
}

.header-tel-num {
  font-size: var(--fs-20);
  font-weight: 700;
  color: var(--c-white);
}

/* ---- 汉堡按钮（≤768px 显示） ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: var(--sp-2);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle--open .nav-toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle--open .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle--open .nav-toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   首页轮播 Banner
   ========================================================== */
.banner {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--c-primary-dark);
}

.banner-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.banner-item--active { opacity: 1; }

/* v43：恢复 demo 深蓝蒙层（与模板首页海报效果一致，保证白字可读） */
.banner-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 44, 85, 0.55);
}

.banner-item .container {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.banner-text {
  max-width: 640px;
  color: var(--c-white);
}

.banner-tag {
  display: inline-block;
  padding-left: var(--sp-1);
  border-left: 3px solid var(--c-accent-red);
  font-size: var(--fs-14);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--sp-2);
}

.banner-title {
  font-size: var(--fs-36);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--sp-2);
}

.banner-desc {
  font-size: var(--fs-18);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--sp-4);
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* 深色底上的描边按钮：白字白框 */
.banner .btn-outline {
  background: transparent;
  color: var(--c-white);
  border-color: var(--c-white);
}
.banner .btn-outline:hover {
  background: var(--c-white);
  color: var(--c-primary);
}

.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--sp-3);
  display: flex;
  justify-content: center;
  gap: var(--sp-1);
  z-index: 2;
}

.banner-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: background-color 0.2s ease;
}

.banner-dot--active { background: var(--c-accent-red); }

.banner-prev,
.banner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(8, 44, 85, 0.4);
  transition: background-color 0.2s ease;
  z-index: 2;
}

.banner-prev:hover,
.banner-next:hover { background: rgba(8, 44, 85, 0.8); }

.banner-prev { left: 16px; }
.banner-next { right: 16px; }

.banner-prev::before,
.banner-next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-left: 2px solid var(--c-white);
  border-bottom: 2px solid var(--c-white);
}

.banner-prev::before { transform: translate(-50%, -50%) rotate(45deg); }
.banner-next::before { transform: translate(-50%, -50%) rotate(-135deg); }

/* ==========================================================
   数字优势条
   ========================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.stat-item {
  text-align: center;
  padding: var(--sp-2) 0;
}

.stat-num {
  display: block;
  font-size: var(--fs-36);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-primary);
}

.stat-label {
  display: block;
  margin-top: var(--sp-1);
  font-size: var(--fs-15);
  color: var(--c-text-sub);
}

/* ==========================================================
   分类卡 cat-card（图 + 深蓝底条白字分类名）
   ========================================================== */
.cat-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--c-bg-gray);
}

.cat-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cat-card:hover .cat-card-img { transform: scale(1.05); }

.cat-card-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--sp-1) var(--sp-1);
  background: rgba(11, 59, 113, 0.85);
  color: var(--c-white);
  font-size: var(--fs-16);
  font-weight: 700;
  text-align: center;
}

/* ==========================================================
   产品卡 product-card
   ========================================================== */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: var(--c-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-card-img {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
}

/* v47：图满幅圆角（容器圆角裁切，与案例图一致），商品图 cover 铺满 */
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-2);
}

.product-card-model {
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--c-primary);
}

.product-card-name {
  font-size: var(--fs-18);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.4;
}

.product-card-desc {
  font-size: var(--fs-14);
  color: var(--c-text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================
   能力竖版卡 vertical-card
   ========================================================== */
.vertical-card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.vertical-card:hover {
  border-color: var(--c-primary-light);
  box-shadow: var(--shadow-md);
}

.vertical-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 20 / 27;
  object-fit: cover;
}

.vertical-card-body {
  flex: 1;
  padding: var(--sp-2) var(--sp-2) var(--sp-3);
}

.vertical-card-title {
  font-size: var(--fs-18);
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: var(--sp-1);
}

.vertical-card-desc {
  font-size: var(--fs-15);
  color: var(--c-text-sub);
  line-height: 1.7;
}

/* ==========================================================
   方案卡 sol-card（图 + 深蓝半透明底条 + 白字行业名）
   ========================================================== */
.sol-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--c-bg-gray);
}

.sol-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sol-card:hover .sol-card-img { transform: scale(1.05); }

.sol-card-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--sp-1);
  background: rgba(11, 59, 113, 0.85);
  color: var(--c-white);
  font-size: var(--fs-16);
  font-weight: 700;
  text-align: center;
}

/* ==========================================================
   案例卡 case-card（大图 + 底部渐隐遮罩条 + 白字标题）
   ========================================================== */
.case-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--c-bg-gray);
}

.case-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.case-card:hover .case-card-img { transform: scale(1.03); }

.case-card-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--sp-6) var(--sp-3) var(--sp-2);
  background: linear-gradient(180deg, rgba(8, 44, 85, 0) 0%, rgba(8, 44, 85, 0.85) 100%);
  color: var(--c-white);
}

.case-card-title {
  font-size: var(--fs-20);
  font-weight: 700;
}

.case-card-desc {
  margin-top: var(--sp-1);
  font-size: var(--fs-14);
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================
   新闻卡 news-card（横图 16:9 + 日期 + 两行标题 + 摘要）
   ========================================================== */
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
  border-color: var(--c-primary-light);
  box-shadow: var(--shadow-md);
}

.news-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-card-body {
  flex: 1;
  padding: var(--sp-2);
}

.news-card-date {
  font-size: var(--fs-14);
  color: var(--c-text-light);
}

.news-card-title {
  margin: var(--sp-1) 0;
  font-size: var(--fs-18);
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card:hover .news-card-title { color: var(--c-primary); }

.news-card-desc {
  font-size: var(--fs-14);
  color: var(--c-text-sub);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================
   资质证书卡 cert-item
   ========================================================== */
.cert-item {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--sp-2);
  text-align: center;
}

.cert-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.cert-name {
  margin-top: var(--sp-1);
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--c-text);
}

/* ==========================================================
   选项卡 tab-bar
   ========================================================== */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-1);
  margin-bottom: var(--sp-4);
}

.tab-item {
  padding: 8px 24px;
  font-size: var(--fs-15);
  color: var(--c-text-sub);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab-item:hover {
  color: var(--c-primary);
  border-color: var(--c-primary-light);
}

.tab-item--active,
.tab-item--active:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
}

/* ==========================================================
   数字统计条 / 服务流程步骤
   ========================================================== */
.step-item {
  text-align: center;
  padding: var(--sp-2);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--sp-2);
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-white);
  font-size: var(--fs-20);
  font-weight: 700;
}

.step-title {
  font-size: var(--fs-18);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--sp-1);
}

.step-desc {
  font-size: var(--fs-14);
  color: var(--c-text-sub);
}

/* ==========================================================
   内页通用头：sub-banner + 面包屑
   ========================================================== */
.sub-banner {
  position: relative;
  display: flex;
  align-items: center;
  height: 300px;
  padding-top: 70px;
  background-size: cover;
  background-position: center;
}

.sub-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 44, 85, 0.55);
}

.sub-banner .container { position: relative; }

.sub-banner-title {
  font-size: var(--fs-28);
  font-weight: 700;
  color: var(--c-white);
}

.sub-banner-desc {
  margin-top: var(--sp-1);
  font-size: var(--fs-15);
  color: rgba(255, 255, 255, 0.8);
}

.crumb-bar {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
}

.crumb {
  padding: var(--sp-2) 15px;
  font-size: var(--fs-14);
  color: var(--c-text-light);
}

.crumb-label { color: var(--c-text-light); }

.crumb-link { color: var(--c-text-sub); }
.crumb-link:hover { color: var(--c-primary); }

.crumb-sep {
  margin: 0 var(--sp-1);
  color: var(--c-text-light);
}

.crumb-current {
  color: var(--c-primary);
  font-weight: 700;
}

/* ==========================================================
   参数表 table-param
   ========================================================== */
.table-param {
  width: 100%;
  background: var(--c-white);
  font-size: var(--fs-15);
}

.table-param th,
.table-param td {
  border: 1px solid var(--c-border);
  padding: 12px 16px;
  text-align: left;
  line-height: 1.6;
}

.table-param th {
  width: 220px;
  background: var(--c-bg-gray);
  color: var(--c-primary);
  font-weight: 700;
}

.table-param tbody tr:nth-child(even) { background: var(--c-bg-gray); }

/* ==========================================================
   表单 form-item / form-input / form-textarea
   ========================================================== */
.form-item { margin-bottom: var(--sp-2); }

.form-label {
  display: block;
  margin-bottom: var(--sp-1);
  font-size: var(--fs-15);
  color: var(--c-text);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 8px 12px;
  font-size: var(--fs-15);
  font-family: inherit;
  color: var(--c-text);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--c-primary-light);
  box-shadow: 0 0 0 2px rgba(20, 93, 160, 0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================
   产品详情页专属（product-detail.html）
   ========================================================== */
.detail-layout {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--sp-5);
  align-items: start;
}

.detail-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
}

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

.detail-model {
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--c-primary);
}

.detail-title {
  margin: var(--sp-1) 0 var(--sp-2);
  font-size: var(--fs-28);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.4;
}

.detail-desc {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-15);
  color: var(--c-text-sub);
}

.detail-points { margin-bottom: var(--sp-4); }

.detail-points li {
  position: relative;
  padding-left: 20px;
  margin-bottom: var(--sp-1);
  font-size: var(--fs-15);
  color: var(--c-text);
}

/* 红色小圆点徽标 */
.detail-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent-red);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
}

.feature-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--c-bg-gray);
  color: var(--c-primary);
}

.feature-title {
  margin-bottom: var(--sp-1);
  font-size: var(--fs-18);
  font-weight: 700;
  color: var(--c-text);
}

.feature-desc {
  font-size: var(--fs-15);
  color: var(--c-text-sub);
  line-height: 1.7;
}

/* ==========================================================
   Footer + 返回顶部
   ========================================================== */
.footer {
  background: var(--c-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-15);
}

.footer-main {
  padding: var(--sp-8) 0 var(--sp-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-4);
}

.footer-col { min-width: 0; }

/* 第一栏变体：联系信息，略宽（由 grid 1.5fr 承载） */
.footer-col-brand { padding-right: var(--sp-3); }

.footer-title {
  margin-bottom: var(--sp-2);
  font-size: var(--fs-18);
  font-weight: 700;
  color: var(--c-white);
}

.footer-list li {
  margin-bottom: var(--sp-1);
  line-height: 1.8;
}

.footer-links a { color: rgba(255, 255, 255, 0.7); }
.footer-links a:hover { color: var(--c-white); }

.footer-bar {
  padding: var(--sp-2) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-1);
  font-size: var(--fs-14);
}

.footer-copy { color: rgba(255, 255, 255, 0.5); }

.footer-icp a { color: rgba(255, 255, 255, 0.5); }
.footer-icp a:hover { color: var(--c-white); }

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--c-primary);
  color: var(--c-white);
  font-size: var(--fs-14);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease,
    background-color 0.2s ease;
  z-index: 200;
}

.back-top--show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover { background: var(--c-primary-dark); }

/* ==========================================================
   响应式：≤992px 平板
   ========================================================== */
@media (max-width: 992px) {
  .header-tel { display: none; }

  .banner { height: 480px; }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
  }

  .detail-layout { grid-template-columns: 1fr; }
}

/* ==========================================================
   响应式：≤768px 手机，导航折叠为汉堡
   ========================================================== */
@media (max-width: 768px) {
  .topbar-text { display: none; }
  .topbar-inner { justify-content: center; }

  .header-inner { height: 60px; }

  /* 导航面板：默认收起，JS 加 .nav--open 展开（汉界式全屏蓝） */
  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: #0096FF;
    box-shadow: var(--shadow-md);
  }

  .nav--open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0 1.2rem 2rem;
  }

  .nav-item { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .nav-item:last-child { border-bottom: none; }

  .nav-link {
    justify-content: space-between;
    width: 100%;
    height: auto;
    padding: 13px 2px;
    color: var(--c-white);
    font-weight: 300;
    justify-content: center;
  }

  .nav-link:hover { color: var(--c-white); }

  .nav-item.active > .nav-link,
  .nav-item--active > .nav-link {
    background: transparent;
    color: var(--c-white);
    font-weight: 700;
  }

  /* 移动端子菜单：禁用 hover 展开，仅随 .nav-item--open 展开 */
  .subnav {
    position: static;
    transform: none;
    display: none;
    min-width: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
  }

  .nav-item:hover > .subnav { display: none; }
  .nav-item--open > .subnav { display: block; }

  .subnav a {
    text-align: center;
    padding: 10px 15px;
    color: var(--c-white);
  }

  .subnav a:hover { background: rgba(255, 255, 255, 0.1); color: var(--c-white); }

  .nav-toggle { display: flex; }

  .banner { height: 320px; }
  .banner-title { font-size: var(--fs-28); }
  .banner-desc { font-size: var(--fs-15); margin-bottom: var(--sp-3); }
  .banner-actions .btn { padding: 10px 20px; }
  .banner-prev,
  .banner-next { display: none; }

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

  .section { padding: var(--sp-8) 0; }
  .section-title { font-size: var(--fs-20); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .sub-banner { height: 170px; padding-top: 56px; }
  .sub-banner-title { font-size: var(--fs-22); }

  .tab-bar { justify-content: flex-start; }

  .table-param th,
  .table-param td { padding: 8px 12px; }
  .table-param th { width: 128px; }
}

/* ==========================================================
   响应式：≤480px 小屏手机
   ========================================================== */
@media (max-width: 480px) {
  .grid-4,
  .grid-6 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .banner-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .banner-actions .btn { padding: 10px 24px; }

  .detail-actions { flex-direction: column; }
  .detail-actions .btn { width: 100%; }
}
