/* ========================================
   CN/biz 统一样式表 v3 — 紧凑商务风格
   单一引用入口，覆盖所有页面公共样式
   品牌色：#10B981 / #059669 / #047857
   ======================================== */

/* ========== CSS 变量 ========== */
:root {
  --primary:        #10B981;
  --primary-dark:   #059669;
  --primary-darker: #047857;
  --text-main:      #0f172a;
  --text-muted:     #4b5563;
  --text-light:     #6b7280;
  --bg-page:        #f8fafc;
  --bg-white:       #ffffff;
  --border:         #e5e7eb;
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      16px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.05);
  --shadow-md:      0 4px 16px rgba(0,0,0,.06);
  --nav-h:          42px;   /* 一级导航高度 */
  --tab-h:          36px;   /* 二级Tab导航高度 */
}

/* ========== 全局基础 ========== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Inter", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 0.9375rem;   /* 15px 基准，移动端稍小 */
  /* 覆盖 common.css 的 body{padding-top:80px}：
     我们的 #navbar 是 fixed 定位、高度 42px，
     body 只需要 42px 给它留出空间 */
  padding-top: var(--nav-h) !important;
  margin-top: 0 !important;
}

a { color: inherit; text-decoration: none; }

/* ========== 全局标题体系 ==========
   统一覆盖 Tailwind text-* 和各页面内联 font-size
   ======================================== */
h1 {
  font-size: 1.5rem !important;       /* 24px */
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
h2 {
  font-size: 1.25rem !important;      /* 20px */
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
h3 {
  font-size: 1.0625rem !important;    /* 17px */
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 10px;
}
h4 {
  font-size: 0.9375rem !important;    /* 15px */
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 6px;
}
h5 {
  font-size: 0.875rem !important;     /* 14px */
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 4px;
}
h6 {
  font-size: 0.8125rem !important;    /* 13px */
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.4;
}
/* Hero 内标题继承白色（颜色不用 !important，让下方 Hero 规则覆盖） */
.hero h1, .hero h2, .hero h3, .hero h4,
[class*="-hero"] h1, [class*="-hero"] h2,
[class*="-hero"] h3, [class*="-hero"] h4 {
  color: #fff;
}

/* 绿色/深色渐变背景区域内的标题统一为白色
   适用于 from-[#10B981]、from-green、bg-gradient-to-* 等区块 */
[class*="from-green"] h1,
[class*="from-green"] h2,
[class*="from-green"] h3,
[class*="from-green"] h4 {
  color: #fff !important;
}

/* 凡带 text-white 的标题（Tailwind 内联写法），确保白色不被全局 h* 颜色覆盖 */
h1.text-white, h2.text-white, h3.text-white, h4.text-white {
  color: #fff !important;
}
p {
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0 0 14px;
}

ul, ol {
  color: var(--text-muted);
  line-height: 1.85;
  margin: 14px 0;
  padding-left: 22px;
}
li { margin-bottom: 8px; }

/* ========== 一级导航 ========== */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-h) !important;
  min-height: var(--nav-h) !important;
  z-index: 200;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);  /* 只向下1px，不产生模糊扩散 */
  border-bottom: none;
}

#navbar .container,
#navbar .flex.items-center,
#navbar .flex.items-center.justify-between {
  height: var(--nav-h) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Logo 高度适配 */
#navbar img { height: 28px !important; max-height: 28px !important; }

/* 下拉菜单层级 */
.dropdown { position: relative; }
.dropdown-content { z-index: 190 !important; }

/* ========== common.css 冲突修复 ========== */
/* common.css 的 .hero 背景定义与我们的品牌色冲突 */
body.has-biz-nav .hero,
body.compact-business .hero {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  padding: 20px 24px !important;
  margin-bottom: 16px !important;
  text-align: center !important;
}
/* common.css 的 .timeline::before 中心对齐与我们的左对齐冲突 */
body.has-biz-nav .timeline::before {
  left: 6px !important;
  top: 4px !important;
  bottom: 4px !important;
  width: 2px !important;
  transform: none !important;
}

/* ========== 二级 Tab 导航 ========== */
.biz-tab-navigation {
  background: #fff;
  border-bottom: 2px solid var(--primary);  /* 底部绿色高亮线 */
  border-top: none;  /* 去掉顶部边框，与导航无缝衔接 */
  position: sticky;
  top: var(--nav-h);
  z-index: 150;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.biz-tab-nav-container {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #f0f0f0;
  padding: 4px 0;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
}

.biz-tab-nav-container::-webkit-scrollbar { height: 3px; }
.biz-tab-nav-container::-webkit-scrollbar-track { background: #f0f0f0; }
.biz-tab-nav-container::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

.biz-tab-item {
  padding: 5px 10px;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.8rem;
  border-radius: 6px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  flex-shrink: 0;
  transition: color .2s, background .2s, border-color .2s;
}

.biz-tab-item i { font-size: 0.8125rem; }

.biz-tab-item:hover {
  color: var(--primary);
  background: #f0fdf4;
  border-color: #a7f3d0;
}

.biz-tab-item.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  font-weight: 600;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(16,185,129,.2);
}

/* ========== 页面主体偏移 ========== */
/* body 已经有 padding-top: 42px（给 fixed 导航留出空间） */
/* main 和内容容器不需要额外偏移 */
body.has-biz-nav .max-w-6xl.mx-auto.px-6,
body.has-biz-nav main,
body.compact-business .max-w-6xl.mx-auto.px-6,
body.compact-business main,
body.business-style .max-w-6xl.mx-auto.px-6,
body.business-style main {
  padding-top: 0;
}

/* 当 Tab导航在 main 外部时，main.pt-0 重置 padding-top */
/* （Tab导航本身擐开了高度，main 不需要额外偏移） */
body.has-biz-nav main.pt-0,
body.compact-business main.pt-0,
body.business-style main.pt-0 {
  padding-top: 0 !important;
}

/* ========== Hero 区域 ========== */
.hero,
.comparison-hero, .roi-hero, .case-hero, .pricing-hero,
.guide-hero, .checklist-hero, .workflow-hero, .toolkit-hero,
.cert-hero, .vendor-hero, .feature-hero, .hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(16,185,129,.15);
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.hero h1, .hero p,
[class*="-hero"] h1, [class*="-hero"] p { color: #fff; position: relative; z-index: 1; }

/* Hero 标题统一：强制覆盖 Tailwind 的 text-3xl / text-4xl / text-5xl 等 */
.hero h1, [class*="-hero"] h1 {
  font-size: 1.5rem !important;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Hero 内 h2（如精选案例大标题） */
.hero h2, [class*="-hero"] h2 {
  font-size: 1.25rem !important;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
}

/* Hero 副标题（p / .tagline） */
.hero p, [class*="-hero"] p {
  font-size: 0.9rem !important;
  opacity: .92;
  max-width: 680px;
  margin: 0 auto 6px;
  line-height: 1.5;
}

/* Hero 内 span/div 文字（如徽章文字） */
.hero span, [class*="-hero"] span { color: inherit; }

/* Hero 内嵌徽章/标签 */
.hero .inline-flex, [class*="-hero"] .inline-flex {
  margin-bottom: 6px;
  padding: 3px 10px;
  font-size: 0.75rem;
}

/* Hero 统计 */
.hero-stats { display: flex; justify-content: center; gap: 32px; margin-top: 10px; flex-wrap: wrap; }
.hero-stat-item { text-align: center; }
.hero-stat-number { font-size: 1.4rem; font-weight: 700; color: #fff; line-height: 1; }
.hero-stat-label  { font-size: 0.7rem; color: rgba(255,255,255,.85); margin-top: 4px; }

/* Hero 标签横排 */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(4px);
}

/* Hero 内 slogan（company-overview 等使用） */
.hero .slogan {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  margin: 6px auto;
  opacity: .95;
}

/* ========== Section 卡片 ========== */
.section-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226,232,240,.8);
  transition: box-shadow .2s;
}
.section-card:hover {
  box-shadow: var(--shadow-md);
}

/* section-card 变体 */
.section-card.critical {
  border-left: 4px solid #ef4444;
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}
.section-card.important {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
}

/* section-card h2 图标+文字横排 */
.section-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* section-icon 图标圆形徽章 */
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.section-icon.critical {
  background: #ef4444;
}
.section-icon.important {
  background: #f59e0b;
}

/* critical/important 下 h2 底线颜色 */
.section-card.critical h2 { border-bottom-color: #ef4444; }
.section-card.important h2 { border-bottom-color: #f59e0b; }

.section-card h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.section-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-darker);
  margin: 20px 0 12px;
}

.section-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-darker);
  margin: 12px 0 6px;
}

/* ========== 表格 ========== */
.biz-table, .mode-table, .comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 16px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.05), 0 0 0 1px rgba(226,232,240,.8);
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.biz-table thead, .mode-table thead, .comparison-table thead {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.biz-table th, .mode-table th, .comparison-table th {
  padding: 12px 14px;
  text-align: center;
  font-weight: 600;
  color: #fff;
  font-size: 0.85rem;
  border: none;
}

.biz-table td, .mode-table td, .comparison-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(226,232,240,.8);
  vertical-align: top;
  font-size: 0.875rem;
  line-height: 1.6;
}

.biz-table tbody tr:nth-child(even),
.mode-table tbody tr:nth-child(even),
.comparison-table tbody tr:nth-child(even) { background: #fafbfd; }

.biz-table tbody tr:hover,
.mode-table tbody tr:hover,
.comparison-table tbody tr:hover { background: #f0fdf4; }

.biz-table tbody tr:last-child td,
.mode-table tbody tr:last-child td,
.comparison-table tbody tr:last-child td { border-bottom: none; }

.biz-table td:first-child,
.mode-table td:first-child,
.comparison-table td:first-child {
  font-weight: 600;
  color: var(--primary-darker);
  background: #f8fafc;
}

/* ========== 特性项 ========== */
.feature-item {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border-left: 3px solid var(--primary);
  padding: 14px 18px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.feature-item h4 { font-weight: 600; color: var(--primary-darker); margin-bottom: 4px; font-size: 0.9rem; }
.feature-item p  { color: var(--text-muted); line-height: 1.5; margin: 0; font-size: 0.85rem; }

/* ========== 高亮框 ========== */
.highlight-box {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1.5px solid rgba(16,185,129,.4);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 20px 0;
}

.highlight-box h4 { color: var(--primary-darker); font-weight: 700; margin-bottom: 8px; font-size: 0.9375rem; }
.highlight-box p, .highlight-box ul { color: #065f46; line-height: 1.55; font-size: 0.875rem; }
.highlight-box .price { font-size: 2rem; font-weight: 700; color: var(--primary-darker); margin: 8px 0; }
.highlight-box .note  { color: #065f46; font-size: 0.85rem; line-height: 1.5; }

/* ========== 优势卡片 ========== */
.advantage-card, .advantage-grid .advantage-card {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1.5px solid rgba(16,185,129,.25);
  border-radius: var(--radius-md);
  padding: 22px 20px;
}

.advantage-card .icon { font-size: 2rem; margin-bottom: 10px; }
.advantage-card h3 { font-size: 1rem; font-weight: 700; color: var(--primary-darker); margin: 0 0 6px; }
.advantage-card p  { color: var(--text-muted); line-height: 1.55; font-size: 0.875rem; }
.advantage-card ul { color: var(--text-muted); font-size: 0.875rem; }

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0;
}

/* ========== 卡片网格 ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.card-item {
  background: var(--bg-white);
  border: 1.5px solid rgba(226,232,240,.8);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.card-item h4 { color: var(--primary-darker); font-weight: 600; margin-bottom: 6px; font-size: 0.9375rem; }
.card-item p  { color: var(--text-light); font-size: 0.875rem; line-height: 1.55; }

/* ========== 徽章 ========== */
.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 5px;
}

.badge-outline {
  display: inline-block;
  border: 1.5px solid var(--primary);
  color: var(--primary-darker);
  background: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 5px;
}

/* ========== 平台徽章 ========== */
.platform-badge {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 7px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 2px 6px rgba(16,185,129,.25);
}

.platform-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }

/* ========== CTA 区域 ========== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  color: #fff;
  margin-top: 24px;
}

.cta-section h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; color: #fff; }
.cta-section p  { color: #fff; opacity: .95; margin-bottom: 16px; font-size: 0.9rem; }

.cta-button {
  display: inline-block;
  background: #fff;
  color: var(--primary-darker);
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  margin: 4px 6px;
  transition: box-shadow .2s;
}

.cta-button:hover { box-shadow: 0 4px 12px rgba(0,0,0,.15); }

/* ========== 价格卡 ========== */
.price-tag {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  text-align: center;
}
.price-tag .price-label  { font-size: 0.875rem; opacity: .9; margin-bottom: 6px; }
.price-tag .price-value  { font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.price-tag .price-note   { font-size: 0.8rem; opacity: .9; margin-top: 4px; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .price-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .price-tag { padding: 14px 14px; }
  .price-tag .price-value { font-size: 1.4rem; }
}

/* ========== index.html 专属组件 ========== */

/* 分类区块标题 */
.category-title {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.category-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-right: 14px;
  box-shadow: 0 4px 12px rgba(16,185,129,.2);
}
.category-title h2 { font-size: 1.4rem; font-weight: 700; color: var(--text-main); margin: 0; letter-spacing: -.01em; }
.category-title p  { margin: 2px 0 0; color: var(--text-muted); font-size: 0.875rem; }

/* 资源卡片 */
.resource-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1.5px solid rgba(226,232,240,.8);
  height: 100%;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.resource-card:hover {
  border-color: rgba(16,185,129,.4);
  box-shadow: 0 6px 20px rgba(16,185,129,.1);
  transform: translateY(-2px);
}
.resource-card-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
  box-shadow: 0 4px 10px rgba(16,185,129,.2);
}
.resource-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; color: var(--primary-darker); letter-spacing: -.01em; }
.resource-card p  { color: var(--text-light); font-size: 0.875rem; line-height: 1.6; margin-bottom: 14px; flex-grow: 1; }
.resource-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: var(--primary-darker);
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(16,185,129,.2);
}

/* 主按钮 */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 3px 10px rgba(16,185,129,.2);
  width: 100%;
  font-size: 0.9rem;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(16,185,129,.28);
}

/* 外链卡片 */
.external-link-card {
  background: var(--bg-white);
  border: 1.5px solid rgba(226,232,240,.8);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.external-link-card:hover {
  border-color: rgba(16,185,129,.3);
  box-shadow: 0 4px 14px rgba(16,185,129,.1);
  transform: translateY(-1px);
}
.external-link-card h4 { color: var(--primary-darker); font-size: 0.9375rem; font-weight: 600; margin-bottom: 6px; }
.external-link-card p  { color: var(--text-light); font-size: 0.85rem; }

/* ========== 汉堡菜单 ========== */
.burger-menu { position: relative; width: 22px; height: 18px; cursor: pointer; }
.burger-bar {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: #1D2129;
  transition: all .28s ease;
}
.burger-bar:nth-child(1) { top: 0; }
.burger-bar:nth-child(2) { top: 8px; }
.burger-bar:nth-child(3) { top: 16px; }
.burger-menu.active .burger-bar:nth-child(1) { transform: rotate(45deg); top: 8px; }
.burger-menu.active .burger-bar:nth-child(2) { opacity: 0; }
.burger-menu.active .burger-bar:nth-child(3) { transform: rotate(-45deg); top: 8px; }

/* 移动端导航动画 */
#mobileNav { max-height: 0; overflow: hidden; transition: max-height .3s ease-in-out; }
#mobileNav.open { max-height: 90vh; overflow-y: auto; }
#mobileNav a { padding: 11px 14px; font-size: 15px; border-radius: 7px; transition: all .2s ease; display: block; }
#mobileResourcesMenu { transition: all .3s ease-in-out; }

/* ========== 浮动联系按钮 ========== */
.floating-contact { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }

.floating-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  cursor: pointer;
  color: #fff;
  font-size: 20px;
}

.floating-btn-primary  { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.floating-btn-secondary{ background: linear-gradient(135deg, #6366f1, #4f46e5); }

.floating-tooltip {
  position: absolute;
  right: 60px;
  background: #fff;
  color: #1f2937;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s;
  z-index: 1000;
}

.floating-btn:hover .floating-tooltip { opacity: 1; visibility: visible; }

/* ========== 移动端 ========== */
@media (max-width: 768px) {
  body { font-size: 0.875rem; }

  /* ---- 全局标题移动端缩放 ---- */
  h1 { font-size: 1.2rem !important; }
  h2 { font-size: 1.05rem !important; }
  h3 { font-size: 0.9375rem !important; }
  h4 { font-size: 0.875rem !important; }

  /* 导航 */
  #navbar { --nav-h: 38px; }
  #navbar .container,
  #navbar .flex.items-center,
  #navbar .flex.items-center.justify-between { height: 38px !important; }
  #navbar img { height: 24px !important; }

  .biz-tab-navigation { top: 38px; }
  .biz-tab-item { padding: 4px 8px; font-size: 0.75rem; }
  .biz-tab-item i { font-size: 0.75rem; }

  /* 页面偏移：移动端 body 已有 padding-top: 38px，main 不需额外偏移 */
  body.has-biz-nav .max-w-6xl.mx-auto.px-6,
  body.has-biz-nav main,
  body.compact-business .max-w-6xl.mx-auto.px-6,
  body.compact-business main,
  body.business-style .max-w-6xl.mx-auto.px-6,
  body.business-style main { padding-top: 0; }

  /* 移动端 body 的 padding-top 覆盖 */
  body { padding-top: 38px !important; }

  /* Hero */
  .hero, [class*="-hero"] { padding: 14px 14px; margin-bottom: 12px; border-radius: 10px; }
  .hero h1, [class*="-hero"] h1 { font-size: 1.1rem !important; margin-bottom: 5px; }
  .hero p,  [class*="-hero"] p  { font-size: 0.8rem !important; }
  .hero-stats { gap: 16px; }
  .hero-stat-number { font-size: 1.1rem; }
  .hero-stat-label  { font-size: 0.6rem; }

  /* Section 卡片 */
  .section-card { padding: 16px; margin-bottom: 14px; }
  .section-card h2 { font-size: 1.05rem; margin-bottom: 12px; }
  .section-card h3 { font-size: 0.9375rem; margin: 12px 0 8px; }

  /* 表格 — 横向滚动 */
  .biz-table, .mode-table, .comparison-table {
    font-size: 0.78rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }
  .biz-table th, .mode-table th, .comparison-table th { padding: 8px 8px; font-size: 0.78rem; }
  .biz-table td, .mode-table td, .comparison-table td { padding: 8px 8px; font-size: 0.78rem; }

  /* 优势卡片 */
  .advantage-grid { grid-template-columns: 1fr; gap: 10px; }
  .advantage-card { padding: 14px; }
  .advantage-card .icon { font-size: 1.6rem; margin-bottom: 8px; }
  .advantage-card h3 { font-size: 0.9375rem; }

  /* 卡片网格 */
  .card-grid { grid-template-columns: 1fr; gap: 10px; }
  .card-item { padding: 14px; }

  /* highlight-box */
  .highlight-box { padding: 14px 16px; }
  .highlight-box .price { font-size: 1.5rem; }

  /* CTA */
  .cta-section { padding: 20px 16px; }
  .cta-section h3 { font-size: 1.1rem; }
  .cta-button { padding: 9px 18px; font-size: 0.85rem; margin: 3px 4px; display: block; }

  /* 浮动按钮 */
  .floating-btn { width: 44px; height: 44px; font-size: 18px; }
  .floating-contact { bottom: 16px; right: 16px; }

  /* 分类标题 */
  .category-icon { width: 36px; height: 36px; font-size: 1.1rem; margin-right: 10px; }
  .category-title h2 { font-size: 1.15rem; }

  /* 资源卡片 */
  .resource-card { padding: 16px; }
  .resource-card-icon { width: 36px; height: 36px; font-size: 1.2rem; margin-bottom: 10px; }
  .resource-card h3 { font-size: 0.9375rem; }
  .resource-card p  { font-size: 0.825rem; }

  /* 主按钮 */
  .btn-primary { padding: 9px 14px; font-size: 0.85rem; }

  /* 外链卡片 */
  .external-link-card { padding: 14px; }

  /* 移动端导航字体缩小 */
  #mobileNav a { font-size: 14px; padding: 10px 12px; }

  /* 场景卡片 */
  .scenario-card { padding: 12px 14px; margin-bottom: 8px; }

  /* 阶段卡片 */
  .phase-card { padding: 16px; margin-bottom: 12px; }

  /* 清单项 */
  .checklist-item { padding: 9px 10px; }

  /* 案例卡片 */
  .case-card { padding: 14px; }

  /* 认证卡片 */
  .cert-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cert-card { padding: 14px; }
  .cert-icon { font-size: 1.75rem; }

  /* 时间轴 */
  .timeline-item { padding-left: 28px; margin-bottom: 16px; }
  .timeline-dot { width: 12px; height: 12px; left: 0; }

  /* 过滤标签 */
  .filter-tab { padding: 5px 12px; font-size: 0.78rem; }

  /* 度量卡片 */
  .metric-card { padding: 14px; }
  .metric-value { font-size: 1.5rem; }
}

/* ========== 手机端进一步紧凑 ========== */
@media (max-width: 576px) {
  body { font-size: 0.8125rem; }

  h1 { font-size: 1.05rem !important; }
  h2 { font-size: 0.95rem !important; }
  h3 { font-size: 0.875rem !important; }
  h4 { font-size: 0.8125rem !important; }

  p { line-height: 1.7; margin: 0 0 10px; }
  ul, ol { margin: 10px 0; }
  li { margin-bottom: 6px; }

  .hero, [class*="-hero"] { padding: 12px 10px; margin-bottom: 10px; border-radius: 8px; }
  .hero h1, [class*="-hero"] h1 { font-size: 1rem !important; margin-bottom: 4px; }
  .hero p, [class*="-hero"] p { font-size: 0.75rem !important; }
  .hero-stats { gap: 12px; margin-top: 8px; }
  .hero-stat-number { font-size: 0.95rem; }
  .hero-stat-label { font-size: 0.55rem; }
  .hero-tags { gap: 5px; margin-top: 8px; }
  .hero-tag { padding: 3px 10px; font-size: 0.7rem; }

  .section-card { padding: 14px; margin-bottom: 12px; }
  .section-card h2 { font-size: 0.95rem; margin-bottom: 14px; padding-bottom: 8px; gap: 8px; }
  .section-card h3 { font-size: 0.85rem; margin: 14px 0 8px; }
  .section-icon { width: 26px; height: 26px; font-size: 0.75rem; }

  .biz-table, .mode-table, .comparison-table { font-size: 0.72rem; }
  .biz-table th, .mode-table th, .comparison-table th { padding: 6px; font-size: 0.72rem; }
  .biz-table td, .mode-table td, .comparison-table td { padding: 6px; font-size: 0.72rem; }

  .feature-item { padding: 10px 12px; margin-bottom: 10px; }
  .feature-item h4 { font-size: 0.8rem; }
  .feature-item p { font-size: 0.78rem; }

  .highlight-box { padding: 14px 16px; margin: 14px 0; }
  .highlight-box .price { font-size: 1.3rem; }

  .advantage-grid { gap: 8px; }
  .advantage-card { padding: 14px; }
  .advantage-card .icon { font-size: 1.4rem; margin-bottom: 6px; }

  .card-grid { gap: 8px; }
  .card-item { padding: 12px; }

  .cta-section { padding: 16px 12px; }
  .cta-section h3 { font-size: 0.95rem; }
  .cta-button { padding: 8px 14px; font-size: 0.8rem; }

  .floating-btn { width: 40px; height: 40px; font-size: 16px; }
  .floating-contact { bottom: 12px; right: 12px; gap: 8px; }

  .resource-card { padding: 12px; }
  .resource-card h3 { font-size: 0.85rem; }
  .resource-card p { font-size: 0.78rem; }

  .scenario-card { padding: 10px 12px; }
  .phase-card { padding: 12px; }
  .checklist-item { padding: 7px 8px; }
  .case-card { padding: 12px; }
  .cert-card { padding: 12px; }
  .guarantee-box { padding: 14px 16px; }
  .tool-card { padding: 12px; }
  .vendor-card { padding: 12px; }
  .metric-card { padding: 10px; }
  .metric-value { font-size: 1.2rem; }
  .external-link-card { padding: 12px; }
  .timeline-item { padding-left: 22px; margin-bottom: 12px; }
  .filter-tab { padding: 4px 10px; font-size: 0.72rem; }
}

/* ========== 额外组件（各页面专属） ========== */

/* 精选案例大卡片 — success-stories 使用 */
.case-card-featured {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}
.case-card-featured h2 { font-size: 1.2rem !important; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.case-card-featured h3 { font-size: 1.05rem !important; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }

/* 案例数据指标网格 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.stat-item {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
}
.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-darker);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}

@media (max-width: 768px) {
  .case-card-featured .grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-value { font-size: 1.1rem; }
}

/* 场景卡片 — service-package 使用 */
.scenario-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.scenario-card h4 { color: var(--primary-darker); font-weight: 600; margin-bottom: 4px; font-size: 0.9375rem; }
.scenario-card p  { color: var(--text-muted); font-size: 0.875rem; line-height: 1.55; margin: 0; }

/* 阶段卡片 — implementation-checklist 使用 */
.phase-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

/* 清单项 */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(226,232,240,.5);
  cursor: pointer;
  transition: background .15s;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item:hover { background: #f8fffe; }
.checklist-item input[type=checkbox] { margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); width: 16px; height: 16px; }

/* 进度条 */
.progress-bar {
  background: #e5e7eb;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}
.progress-fill {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  height: 100%;
  border-radius: 999px;
  transition: width .4s ease;
  width: 0%;
}

/* 分类头部 */
.category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid rgba(16,185,129,.15);
}

/* 优先级徽章 */
.priority-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 6px;
}
.priority-high   { background: #fee2e2; color: #b91c1c; }
.priority-medium { background: #fef9c3; color: #854d0e; }
.priority-low    { background: #e0f2fe; color: #0369a1; }

/* 案例卡片 — business-roi 使用 */
.case-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
/* 强制覆盖 Tailwind text-2xl / text-3xl */
.case-card h3 { color: var(--text-main); font-size: 1.0rem !important; font-weight: 700; margin-bottom: 4px; }
.case-card h2 { color: var(--primary-darker); font-size: 1.1rem !important; font-weight: 700; margin-bottom: 8px; }

/* 认证卡片 */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.cert-card {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1.5px solid rgba(16,185,129,.25);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.cert-icon { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.cert-card h3 { color: var(--primary-darker); font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.cert-card p  { color: var(--text-muted); font-size: 0.85rem; }

/* 时间轴 */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
  border-radius: 1px;
  opacity: .4;
}
.timeline-item {
  position: relative;
  padding-left: 24px;
  margin-bottom: 20px;
}
.timeline-dot {
  position: absolute;
  left: -18px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(16,185,129,.3);
}
.timeline-content { }
.timeline-content h3 { font-size: 0.9375rem; font-weight: 700; color: var(--text-main); margin: 0 0 4px; }
.timeline-content p  { color: var(--text-muted); font-size: 0.875rem; margin: 0; }

/* 过滤标签 — success-stories 使用 */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.filter-tab {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-white);
  transition: all .2s;
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(16,185,129,.2);
}

/* 指标卡片 — ROI页使用 */
.metric-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-darker);
  line-height: 1.1;
  margin-bottom: 4px;
}
.metric-label { color: var(--text-muted); font-size: 0.825rem; }

/* 低代码标签粗体样式 */
.vendor-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s;
}
.vendor-card:hover { border-color: rgba(16,185,129,.4); }

/* 工具卡片 */
.tool-card {
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 14px;
}

/* 提示框 */
.tip-box {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 12px 0;
  font-size: 0.875rem;
  color: #92400e;
}

/* 警告框 */
.warning-box {
  background: #fef2f2;
  border-left: 3px solid #ef4444;
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 12px 0;
  font-size: 0.875rem;
  color: #991b1b;
}

/* 保障框 */
.guarantee-box {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1.5px solid rgba(16,185,129,.3);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin: 14px 0;
}

/* ========== 站内关联导航 ========== */
.site-cross-links {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1.5px solid rgba(16,185,129,.2);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 28px 0 20px;
}
.site-cross-links h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-darker);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-cross-links h3 i { color: var(--primary); font-size: 0.9rem; }
.cross-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.cross-link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  transition: all .2s;
  text-decoration: none;
}
.cross-link-item:hover {
  border-color: var(--primary);
  color: var(--primary-darker);
  background: #fff;
  box-shadow: 0 2px 8px rgba(16,185,129,.12);
  transform: translateY(-1px);
}
.cross-link-item i {
  color: var(--primary);
  font-size: 0.8rem;
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .site-cross-links { padding: 16px; margin: 20px 0 14px; }
  .site-cross-links h3 { font-size: 0.95rem; margin-bottom: 12px; }
  .cross-link-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cross-link-item { padding: 8px 10px; font-size: 0.78rem; }
}

