/* =========================================================
   佛山华凯认证咨询有限公司 - 全站样式表
   颜色变量统一在 :root，改色只需改此处
   整体布局：header(120px) → nav(50px) → banner(400px) → main-content → footer
   ========================================================= */

:root {
  /* 品牌色 */
  --color-primary: #0B3D91;        /* 主色 深蓝 */
  --color-primary-light: #1E5BBF;  /* 辅色 亮蓝 */
  --color-nav: #1a3a5c;            /* 旧官网导航深蓝 */
  --color-bg-header-top: #e8f4fd;  /* header 渐变顶 */
  --color-bg-header-bot: #b8dff5;  /* header 渐变底 */
  --color-bg-banner: #0d1b2a;      /* banner 深蓝夜空 */

  --color-bg: #F5F7FA;
  --color-text: #333333;
  --color-text-muted: #666666;
  --color-border: #E5E7EB;
  --color-white: #FFFFFF;
  --shadow-card: 0 2px 12px rgba(11, 61, 145, 0.08);
  --shadow-card-hover: 0 6px 20px rgba(11, 61, 145, 0.14);
  --radius: 8px;
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

h1, h2, h3, h4 { color: var(--color-text); line-height: 1.4; font-weight: 700; }
h1 { font-size: 32px; }
h2 { font-size: 26px; margin-bottom: 16px; }
h3 { font-size: 20px; margin-bottom: 12px; }
h4 { font-size: 17px; margin-bottom: 8px; }
p { margin-bottom: 14px; color: var(--color-text); }

.container { max-width: var(--container); margin: 0 auto; padding: 0; }

/* ============================================================
   旧官网风格 Header —— 120px 浅蓝渐变
   ============================================================ */
.header {
  width: 100%;
  min-height: 120px;
  padding: 16px 0;
  background: linear-gradient(to bottom, var(--color-bg-header-top), var(--color-bg-header-bot));
  box-sizing: border-box;
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-logo .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
/* Logo 统一尺寸：高度主导，宽度等比自适应 */
.header-logo .logo img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}

.header-logo .logo-mark {
  width: 64px; height: 64px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800;
  flex-shrink: 0;
}

.header-logo .logo-text .cn {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 1px;
}

.header-logo .logo-text .en {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.header-hotline {
  text-align: right;
  color: var(--color-primary);
}

.header-hotline .label {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.header-hotline .phone {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 1px;
}

.header-hotline .contact {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* ============================================================
   旧官网风格 Nav —— 50px 深蓝 #1a3a5c，竖线分隔
   ============================================================ */
.nav {
  width: 100%;
  height: 50px;
  background: var(--color-nav);
}

.nav .container {
  height: 100%;
}

.nav-menu {
  display: flex;
  height: 100%;
  align-items: stretch;
}

.nav-menu li {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 竖线分隔 */
.nav-menu li:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
}

.nav-menu a {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 50px;
  text-align: center;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: background 0.2s, color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--color-primary-light);
  color: #fff;
}

/* 汉堡按钮（手机端） */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

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

/* ============================================================
   旧官网风格 Banner —— 400px 深蓝夜空
   ============================================================ */
.banner {
  width: 100%;
  height: 400px;
  background: var(--color-bg-banner);
  overflow: hidden;
  position: relative;
}

.banner .container {
  height: 100%;
  position: relative;
}

.banner-slides {
  position: absolute;
  inset: 0;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

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

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.banner-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s;
}

.banner-dots span.active {
  background: #fff;
}

.banner-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-caption h1 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.banner-caption p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  max-width: 720px;
  letter-spacing: 1px;
}

/* ============================================================
   main-content —— 最小 500px，上下 padding 40px
   ============================================================ */
.main-content {
  min-height: 500px;
  padding: 40px 0;
}

.section { padding: 40px 0; }
.section-alt { background: var(--color-bg); }
.section-title { text-align: center; margin-bottom: 32px; }
.section-title h2 { margin-bottom: 10px; }
.section-title p { color: var(--color-text-muted); max-width: 680px; margin: 0 auto; }

/* 页首（非首页） */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.page-hero h2 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, 0.9); max-width: 760px; margin: 0 auto; }

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

/* 卡片 */
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card h3 { color: var(--color-primary); }

.advantage-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(11, 61, 145, 0.1);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  margin-bottom: 16px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--color-primary);
  transition: all 0.2s;
  text-align: center;
}
.btn-primary { background: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background: var(--color-primary-light); border-color: var(--color-primary-light); color: #fff; }
.btn-outline { background: transparent; color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-block { display: flex; width: 100%; }

/* 步骤条 */
.steps {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 110px;
  text-align: center;
  position: relative;
  padding: 0 6px;
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin: 0 auto 10px;
  font-size: 16px;
}
.step-text { font-size: 14px; color: var(--color-text); font-weight: 500; }

@media (min-width: 769px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20px; left: 60%; right: -40%;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
  }
  .step-num { position: relative; z-index: 1; }
}

/* 服务卡片详细字段 */
.service-card .field { margin-bottom: 12px; }
.service-card .field-label {
  font-weight: 700; color: var(--color-primary);
  margin-bottom: 4px; font-size: 15px;
}
.service-card .field-content { color: var(--color-text-muted); font-size: 15px; }
.service-card .card-actions { margin-top: 18px; }

/* 培训卡片 */
.training-card .field-label {
  font-weight: 700; color: var(--color-primary);
  margin-bottom: 4px; font-size: 15px;
}
.training-card .field-content { color: var(--color-text-muted); font-size: 15px; margin-bottom: 12px; }

/* 案例卡片 */
.case-card .case-section { margin-bottom: 14px; }
.case-card .case-label {
  font-weight: 700; color: var(--color-primary);
  margin-bottom: 4px; font-size: 15px;
}
.case-card .case-content { color: var(--color-text-muted); font-size: 15px; }

/* 两列列表 */
.two-col-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.two-col-list li {
  position: relative;
  padding-left: 18px;
  color: var(--color-text);
  font-size: 15px;
}
.two-col-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* 关于我们信息栏 */
.about-info {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 24px;
}
.about-info dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.about-info dt { color: var(--color-text-muted); font-size: 14px; }
.about-info dd { color: var(--color-text); font-size: 15px; font-weight: 500; margin-bottom: 4px; }

/* CTA 引导条 */
.cta-bar {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.cta-bar h2, .cta-bar h3 { color: #fff; margin-bottom: 10px; }
.cta-bar p { color: rgba(255, 255, 255, 0.9); margin-bottom: 20px; }
.cta-bar a { color: #fff; }
.cta-bar .btn-primary {
  background: #fff; color: var(--color-primary); border-color: #fff;
}
.cta-bar .btn-primary:hover {
  background: transparent; color: #fff;
}

/* ============================================================
   联系页
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info-list { background: var(--color-bg); border-radius: var(--radius); padding: 24px; }
.contact-info-item { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.contact-info-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(11, 61, 145, 0.1);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.contact-info-text .label { font-size: 13px; color: var(--color-text-muted); margin-bottom: 2px; }
.contact-info-text .value { font-size: 16px; color: var(--color-text); font-weight: 500; word-break: break-all; }
.wechat-copy { cursor: pointer; color: var(--color-primary); font-weight: 600; }
.wechat-copy:hover { text-decoration: underline; }

.qrcode-box { margin-top: 20px; text-align: center; }
.qrcode-box img {
  width: 200px; height: 200px;
  margin: 0 auto 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}
.qrcode-box p { font-size: 13px; color: var(--color-text-muted); margin: 0; }

/* 表单 */
.contact-form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

/* 问卷星嵌入容器 */
.survey-wrap {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.survey-wrap iframe {
  width: 100%;
  height: 900px;
  border: none;
  display: block;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--color-text); }
.form-group .required { color: #C0392B; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text);
  transition: border-color 0.2s;
  background: #fff;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-error { color: #C0392B; font-size: 13px; margin-top: 4px; display: none; }
.form-group.has-error input, .form-group.has-error textarea { border-color: #C0392B; }
.form-group.has-error .form-error { display: block; }
.form-tip { font-size: 13px; color: var(--color-text-muted); margin-top: 14px; }
.form-message { padding: 14px 18px; border-radius: 6px; margin-top: 16px; font-size: 15px; display: none; }
.form-message.success { display: block; background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.form-message.error { display: block; background: #FFEBEE; color: #C62828; border: 1px solid #EF9A9A; }

/* 法律页面 */
.legal-content { max-width: 820px; margin: 0 auto; padding: 40px 24px; }
.legal-content h2 { font-size: 22px; margin-top: 28px; margin-bottom: 10px; color: var(--color-primary); }
.legal-content p { color: var(--color-text-muted); margin-bottom: 14px; }
.legal-content .update-date { color: var(--color-text-muted); font-size: 14px; margin-bottom: 24px; }

/* Toast */
.toast {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.toast.show { opacity: 1; }

/* ============================================================
   旧官网风格 Footer —— 80px 深灰 #333
   但为了保留业务页信息密度，采用两种 footer：
   .footer-home 用于首页（80px 版权行）
   .footer 用于内页（深灰背景 + 快速链接 + 联系方式 + 版权）
   ============================================================ */
.footer-home {
  background: #333;
  color: #ccc;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
  padding: 0 24px;
}
.footer-home a { color: #ccc; margin: 0 4px; }
.footer-home a:hover { color: #fff; }

.footer {
  background: #0A2A63;
  color: #C9D4E8;
  padding-top: 40px;
  margin-top: 40px;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 32px;
}
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-col p, .footer-col li, .footer-col a { color: #C9D4E8; font-size: 14px; line-height: 2; }
.footer-col a:hover { color: #fff; }
.footer-col .footer-company { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.footer-contact-item .label { color: #8FA3C7; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 24px;
  text-align: center;
  font-size: 13px;
  color: #8FA3C7;
  line-height: 1.9;
}
.footer-bottom a { color: #8FA3C7; margin: 0 4px; }
.footer-bottom a:hover { color: #fff; }

/* 悬浮电话按钮（手机端固定右下角） */
.floating-call {
  display: none;
  position: fixed;
  right: 18px; bottom: 80px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11, 61, 145, 0.4);
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.floating-call:hover { background: var(--color-primary-light); color: #fff; }

/* ============================================================
   响应式 ≤768px
   ============================================================ */
@media (max-width: 768px) {
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }

  .container { padding: 0 16px; }

  /* Header 缩小 */
  .header { min-height: auto; padding: 10px 0; }
  /* 页头容器改为上下排列 */
  .header .container { flex-direction: column; padding: 10px 16px; gap: 6px; }
  /* Logo 缩小：宽度不超过 80px，高度等比自适应 */
  .header-logo .logo img { max-width: 80px; height: auto; }
  .header-logo .logo-text .cn { font-size: 16px; letter-spacing: 0.5px; }
  .header-logo .logo-text .en { display: none; }
  /* 右侧服务热线缩小并居中 */
  .header-hotline { font-size: 14px; text-align: center; }
  .header-hotline .label { font-size: 13px; }
  .header-hotline .phone { font-size: 18px; letter-spacing: 0.5px; }
  .header-hotline .contact { font-size: 12px; }

  /* ===== 手机端 Logo 强力压制（覆盖 img 上的 inline 样式） ===== */
  .header-logo .logo img,
  .header-logo .logo svg,
  .header-logo img,
  .header-logo svg {
    width: 90px !important;
    max-width: 90px !important;
    height: auto !important;
    object-fit: contain !important;
  }

  /* 页头防横向溢出 */
  .header {
    width: 100% !important;
    overflow: hidden !important;
  }

  /* 热线信息防溢出 */
  .header-hotline {
    width: 100% !important;
    text-align: center !important;
    font-size: 12px !important;
  }
  .header-hotline .phone,
  .header-hotline a {
    font-size: 16px !important;
    word-break: break-all !important;
  }

  /* Nav 汉堡 */
  .nav { height: auto; background: var(--color-nav); }
  .nav .container { padding: 0 16px; height: 50px; display: flex; align-items: center; justify-content: flex-end; }
  .nav-menu {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: var(--color-nav);
    flex-direction: column;
    height: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    z-index: 50;
  }
  .nav-menu.open { max-height: 420px; }
  .nav-menu li { flex: none; }
  .nav-menu li:not(:last-child)::after { display: none; }
  .nav-menu a { line-height: normal; padding: 14px 16px; border-top: 1px solid rgba(255,255,255,0.1); }
  .nav-toggle { display: flex; }

  /* Banner 缩小 */
  .banner { height: 240px; }
  .banner-caption h1 { font-size: 22px; letter-spacing: 1px; }
  .banner-caption p { font-size: 13px; }

  /* main-content */
  .main-content { padding: 24px 0; }
  .section { padding: 28px 0; }

  /* 卡片单列 */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* 案例清单表格：横向滑动 + 表头吸顶 */
  /* 锁定滚动条，防止系统自动渐隐 */
  .cases-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    border-radius: 8px;
    /* 强制预留滚动条空间，阻止其隐藏 */
    scrollbar-gutter: stable both-edges !important;
    scrollbar-width: auto !important; /* 禁用系统的 thin 渐隐模式 */
    scrollbar-color: #475569 #e5e7eb;
    padding-bottom: 2px;
  }

  /* Webkit 浏览器滚动条全量样式重置 */
  .cases-table-wrapper::-webkit-scrollbar {
    height: 8px !important;
    display: block !important;
    opacity: 1 !important;
    background-color: #e5e7eb !important; /* 强制显示灰色轨道背景 */
  }
  .cases-table-wrapper::-webkit-scrollbar-track {
    background: #e5e7eb !important;
    border-radius: 4px;
  }
  .cases-table-wrapper::-webkit-scrollbar-thumb {
    background: #475569 !important; /* 深色滑块，始终可见 */
    border-radius: 4px;
    border: 1px solid #e5e7eb !important;
    opacity: 1 !important;
  }

  /* 禁用任何 hover 或 inactive 状态下的渐隐动画 */
  .cases-table-wrapper::-webkit-scrollbar-thumb:vertical,
  .cases-table-wrapper::-webkit-scrollbar-thumb:horizontal {
    visibility: visible !important;
    opacity: 1 !important;
  }
  .cases-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #334155 !important;
  }
  /* 表格强制撑开容器，保证有可滚动空间 */
  .cases-table {
    min-width: 600px !important;
  }
  .cases-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 12px 12px;
    font-size: 14px;
  }
  .cases-table tbody td {
    padding: 12px 12px;
    font-size: 14px;
    line-height: 1.7;
  }

  /* 联系页上下堆叠 */
  .contact-layout { grid-template-columns: 1fr; }

  /* 步骤条纵向 */
  .steps { flex-direction: column; gap: 12px; }
  .step { min-width: auto; display: flex; align-items: center; text-align: left; gap: 12px; }
  .step-num { margin: 0; flex-shrink: 0; }
  .step:not(:last-child)::after { display: none; }

  /* 关于我们信息栏单列 */
  .about-info dl { grid-template-columns: 1fr; }
  .two-col-list { grid-template-columns: 1fr; }

  /* Footer 单列 */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* 悬浮电话 */
  .floating-call { display: flex; }

  /* 问卷星嵌入容器手机适配 */
  .survey-wrap { padding: 12px; }
  .survey-wrap iframe { height: 900px; }

  /* 聊天对话框手机适配：上下吸附定位，避免固定高度把顶部标题裁掉 */
  .chat-dialog {
    top: calc(16px + env(safe-area-inset-top, 0px));
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    height: auto;
    max-height: none;
    overflow: hidden;
    box-sizing: border-box;
  }
  .chat-fab { right: 16px; }

  /* 弹窗头部：保证标题与关闭按钮完整显示、不被裁剪 */
  .chat-header {
    padding: 12px 16px;
    min-height: 50px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
  }
  .chat-header .chat-title {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
    color: #fff;
  }
  .chat-header .chat-close {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    font-size: 20px;
    line-height: 1;
    color: #fff;
    flex-shrink: 0;
  }
}

/* ============================================================
   成功案例清单表格（cases.html）
   ============================================================ */
.cases-table-wrapper {
  margin-top: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  background: #fff;
}
.cases-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* 关键：固定列宽，不自动压缩 */
  font-size: 16px;
  background: #fff;
}
.cases-table thead th {
  background: #1e3a5f;
  color: #fff;
  font-weight: bold;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
  white-space: nowrap;
}
.cases-table thead th:nth-child(1),
.cases-table thead th:nth-child(2) {
  text-align: center;
}
.cases-table tbody td {
  padding: 14px 16px;
  color: var(--color-text);
  border-bottom: 1px solid #e9ecef;
  line-height: 1.6;
}
.cases-table tbody tr:nth-child(odd) { background: #fff; }
.cases-table tbody tr:nth-child(even) { background: #f8f9fa; }
.cases-table tbody tr:hover { background: #eef4fb; }
/* 各列宽度分配 */
.cases-table th:nth-child(1),
.cases-table td:nth-child(1) {
  width: 60px;
  text-align: center;
}
.cases-table th:nth-child(2),
.cases-table td:nth-child(2) {
  width: 120px;
  text-align: center;
  white-space: nowrap;
}
.cases-table th:nth-child(3),
.cases-table td:nth-child(3) {
  width: 200px;
  text-align: left;
}
.cases-table th:nth-child(4),
.cases-table td:nth-child(4) {
  width: 220px;
  text-align: left;
  white-space: nowrap;
}
.cases-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
  font-size: 16px;
}

/* ============================================================
   新增：后台管理页 cases-admin.html
   ============================================================ */
.admin-login-wrap {
  max-width: 400px;
  margin: 60px auto;
  background: #fff;
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.admin-login-wrap h3 {
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 20px;
}
.admin-panel {
  display: none;
}
.admin-panel.active {
  display: block;
}
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 18px 22px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.admin-item-info { flex: 1; min-width: 0; }
.admin-item-info h4 { color: var(--color-text); margin-bottom: 4px; }
.admin-item-info .tag {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(11, 61, 145, 0.1);
  color: var(--color-primary);
  font-size: 12px;
  border-radius: 10px;
  margin-right: 8px;
}
.admin-item-info .desc { color: var(--color-text-muted); font-size: 14px; margin-top: 6px; }
.admin-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.admin-btn {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}
.admin-btn-primary { background: var(--color-primary); color: #fff; }
.admin-btn-primary:hover { background: var(--color-primary-light); }
.admin-btn-edit { background: #fff; color: var(--color-primary); border-color: var(--color-primary); }
.admin-btn-edit:hover { background: var(--color-primary); color: #fff; }
.admin-btn-del { background: #fff; color: #C0392B; border-color: #C0392B; }
.admin-btn-del:hover { background: #C0392B; color: #fff; }

/* 保存成功提示 */
.admin-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 20px);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.admin-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 编辑弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 800;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-mask.show { display: flex; }
.modal-box {
  background: #fff;
  border-radius: var(--radius);
  max-width: 520px;
  width: 90%;
  padding: 28px 32px;
  max-height: 85vh;
  overflow-y: auto;
}
.modal-box h3 { color: var(--color-primary); margin-bottom: 20px; }

/* ============================================================
   新增：微信绿聊天对话框（message.html）
   ============================================================ */
.chat-fab {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 80;
  padding: 10px 18px 10px 12px;
  border-radius: 30px;
  background: #07c160;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(7, 193, 96, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, background 0.2s;
}
.chat-fab:hover { transform: scale(1.05); background: #06ad56; }

.chat-dialog {
  position: fixed;
  right: 24px;
  bottom: 144px;
  z-index: 81;
  width: 370px;
  max-width: 90vw;
  height: 520px;
  max-height: 80vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}
.chat-dialog.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  background: #07c160;
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat-header .chat-title { font-size: 16px; font-weight: 700; }
.chat-header .chat-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-header .chat-close:hover { background: rgba(255, 255, 255, 0.35); }

.chat-body {
  flex: 1;
  background: #ededed;
  padding: 14px;
  overflow-y: auto;
}
.chat-msg {
  display: flex;
  margin-bottom: 14px;
  align-items: flex-start;
  gap: 8px;
}
.chat-msg.user { flex-direction: row-reverse; }
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: #07c160;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.chat-msg.user .chat-avatar { background: var(--color-primary); }
.chat-bubble {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}
.chat-msg.bot .chat-bubble {
  background: #fff;
  color: var(--color-text);
  border-top-left-radius: 2px;
}
.chat-msg.user .chat-bubble {
  background: #95ec69;
  color: var(--color-text);
  border-top-right-radius: 2px;
}
.chat-system {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 6px 0;
}

.chat-input-area {
  padding: 10px 12px 12px;
  background: #f7f7f7;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
}
.chat-input-area textarea {
  flex: 1;
  resize: none;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  min-height: 40px;
  max-height: 120px;
  background: #fff;
  color: var(--color-text);
  outline: none;
  line-height: 1.5;
}
.chat-input-area textarea:focus { border-color: #07c160; }
.chat-send-btn {
  min-height: 40px;
  padding: 0 18px;
  background: #07c160;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.chat-send-btn:hover { background: #06ad56; }

.chat-quick-replies {
  padding: 8px 12px 0;
  background: #f7f7f7;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chat-quick-replies span {
  font-size: 12px;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all 0.15s;
}
.chat-quick-replies span:hover { border-color: #07c160; color: #07c160; }

/* ============================================================
   基础响应式适配（手机端，第 2 层兜底，置于文件末尾）
   ============================================================ */
@media screen and (max-width: 768px) {
  .container, .wrapper, .main-content {
    max-width: 100% !important;
    padding: 0 15px !important;
  }
  img {
    max-width: 100% !important;
    height: auto !important;
  }
  .header-top {
    flex-direction: column;
    text-align: center;
    padding: 10px 15px;
  }
  .header-top .company-name { font-size: 16px; }
  .header-top .hotline { font-size: 14px; margin-top: 5px; }
  .nav {
    flex-direction: column;
  }
  .nav a {
    font-size: 14px !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .nav a::after { display: none !important; }
  .banner { height: 250px !important; }
  .banner h1, .banner h2 { font-size: 20px !important; }
  .cards-row {
    flex-direction: column;
    gap: 15px;
  }
  .card { width: 100% !important; }
  .process-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .process-steps .step { position: static !important; }
  .process-steps .step::before { display: none !important; }
  .footer {
    font-size: 12px;
    text-align: center;
    padding: 15px;
  }
}

/* 移动端适配：缩小悬浮咨询按钮，避免遮挡正文 */
@media screen and (max-width: 768px) {
  .chat-fab {
    right: 16px;
    bottom: 16px;
    padding: 8px 14px 8px 10px;
    font-size: 14px;
  }
}
