/* ===== SECTION: reset.css ===== */
/* ========== 样式重置 ========== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

img {
  max-width: 100%;
  display: block;
}

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

button {
  cursor: pointer;
}

/* ===== SECTION: style.css ===== */
/* ========== 全局样式 ========== */

/* ---------- 色彩与全局变量 ---------- */
:root {
  --primary: #d70000;
  --primary-dark: #a80000;
  --primary-light: #fdecec;
  --accent: #fdd435;
  --accent-dark: #e6b800;
  --bg-white: #ffffff;
  --bg-gray: #f7f7f7;
  --text-main: #222222;
  --text-sub: #666666;
  --text-light: #999999;
  --border: #e5e5e5;
  --success: #2e9e44;
  --error: #e53935;
  --radius: 8px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(215, 0, 0, 0.15);
  --container: 1200px;
  --header-h: 76px;
  --slogan-h: 36px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:"PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-main);
  background: var(--bg-white);
  overflow-x: hidden;
}

h1 { font-size: 34px; line-height: 1.35; }
h2 { font-size: 26px; line-height: 1.4; }
h3 { font-size: 20px; line-height: 1.45; }

/* ---------- 布局容器 ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-gray { background: var(--bg-gray); }

/* ---------- 区块标题 ---------- */
.sec-head {
  text-align: center;
  margin-bottom: 52px;
}

.sec-head .en {
  display: block;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sec-head h2 {
  display: inline-block;
  position: relative;
  font-size: 30px;
  font-weight: bold;
  color: var(--text-main);
  padding-bottom: 14px;
}

.sec-head h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--primary);
}

.sec-head p {
  margin-top: 14px;
  color: var(--text-sub);
  font-size: 16px;
}

/* 居左标题变体 */
.sec-head.left { text-align: left; }
.sec-head.left h2::after { left: 0; transform: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-accent {
  background: var(--accent);
  color: #3a2a00;
}

.btn-accent:hover {
  background: #ffe25e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(253, 212, 53, 0.45);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* ======================================================
   顶部口号条
   ====================================================== */
.slogan-bar {
  height: var(--slogan-h);
  line-height: var(--slogan-h);
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  position: relative;
  z-index: 101;
}

.slogan-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slogan-bar .slogan-text {
  letter-spacing: 2px;
}

.slogan-bar .slogan-text strong {
  color: var(--accent);
  font-weight: bold;
}

.slogan-bar .slogan-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.slogan-bar .slogan-tel i { font-size: 15px; }

/* ======================================================
   页头导航
   ====================================================== */
.site-header {
  height: var(--header-h);
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: inline-block;
  width: 169px;
  height: 50px;
  padding: 5px 0;
  background: url('../image/main-logo.png') no-repeat;
  background-size: 169px auto;
  background-position: 0 -9px;
  background-origin: content-box;
}

/* 深色背景变体：显示白色 */
.logo-white {
  filter: brightness(0) invert(1);
}

/* 小尺寸变体（抽屉头部 / 页脚），红色带顶部偏移按比例缩放 */
.logo.logo-sm {
  width: 119px;
  height: 37px;
  padding: 0;
  background-size: 119px auto;
  background-position: 0 -2px;
  background-origin: padding-box;
}

/* 主菜单 */
.main-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.main-nav > li {
  position: relative;
  height: 100%;
}

.main-nav > li > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 22px;
  font-size: 17px;
  color: var(--text-main);
  position: relative;
  transition: color 0.25s;
}

.main-nav > li > a::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -6px;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.main-nav > li > a:hover,
.main-nav > li.active > a {
  color: var(--primary);
}

.main-nav > li > a:hover::after,
.main-nav > li.active > a::after {
  width: 6px;
}

/* 下拉菜单 */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 150px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.sub-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #fff;
}

.main-nav > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.sub-menu li a {
  display: block;
  padding: 10px 26px;
  font-size: 15px;
  color: var(--text-sub);
  white-space: nowrap;
  transition: all 0.2s;
}

.sub-menu li a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* 导航右侧咨询按钮 */
.nav-cta {
  margin-left: 24px;
  padding: 10px 26px;
  background: var(--primary);
  color: #fff !important;
  border-radius: 30px;
  font-size: 15px;
  transition: all 0.25s;
}

.nav-cta:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-lg);
}

.nav-cta::after { display: none !important; }

/* 汉堡按钮（移动端） */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--primary);
}

/* 移动端抽屉遮罩 */
.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: none;
}

/* 移动端侧滑菜单 */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -290px;
  width: 280px;
  height: 100vh;
  background: #fff;
  z-index: 201;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  transition: right 0.32s ease;
}

.mobile-drawer.open { right: 0; }

.mobile-drawer .drawer-head {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: var(--primary);
  color: #fff;
}

.mobile-drawer .drawer-close {
  font-size: 24px;
  color: #fff;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  color: var(--text-main);
}

.mobile-drawer ul li a .bi-chevron-right { font-size: 13px; color: var(--text-light); }

.mobile-drawer .drawer-sub { display: none; background: var(--bg-gray); }
.mobile-drawer .drawer-sub li a { padding-left: 38px; font-size: 15px; color: var(--text-sub); border-bottom: 1px solid #eee; }
.mobile-drawer .drawer-sub li a .bi-chevron-right { display: none; }

.mobile-drawer .drawer-tel {
  margin: 24px 20px;
  padding: 14px;
  background: var(--primary-light);
  border-radius: var(--radius);
  text-align: center;
  color: var(--primary);
  font-weight: bold;
}

/* ======================================================
   页脚
   ====================================================== */
.site-footer {
  background: #1c1c1e;
  color: #a8a8ad;
  font-size: 15px;
}

.footer-main {
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
}

.footer-brand .f-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-brand p {
  line-height: 1.9;
  color: #8b8b90;
  max-width: 340px;
}

.footer-brand .f-tel {
  margin-top: 20px;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .f-tel span { font-size: 13px; color: #8b8b90; font-weight: normal; }

.footer-col h4 {
  color: #fff;
  font-size: 17px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--primary);
}

.footer-col li a {
  display: block;
  padding: 6px 0;
  color: #8b8b90;
  transition: all 0.2s;
}

.footer-col li a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  color: #8b8b90;
  line-height: 1.7;
}

.footer-contact li i {
  color: var(--primary);
  font-size: 16px;
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-qr {
  margin-top: 16px;
  display: flex;
  gap: 16px;
}

.footer-qr .qr-box {
  text-align: center;
  font-size: 12px;
  color: #8b8b90;
}

.footer-qr .qr-img {
  width: 96px;
  height: 96px;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #6b6b70;
  line-height: 2;
}

.footer-bottom a { color: #6b6b70; }
.footer-bottom a:hover { color: var(--accent); }

/* ======================================================
   返回顶部
   ====================================================== */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 90px;
  width: 48px;
  height: 48px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-sub);
  box-shadow: var(--shadow);
  z-index: 90;
  transition: all 0.25s;
}

.back-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

/* 侧边悬浮客服条 */
.side-service {
  position: fixed;
  right: 24px;
  bottom: 160px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.side-service a {
  width: 48px;
  height: 48px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-sub);
  position: relative;
  transition: all 0.25s;
}

.side-service a:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.side-service a:last-child { border-radius: 0 0 var(--radius) var(--radius); }

.side-service a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ======================================================
   滚动淡入动画（jQuery 驱动）
   ====================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* 延迟梯度 */
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

    /* FAQ 折叠（页面内独立实现，不改 main.js） */
    .faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
    .faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.25s, box-shadow 0.25s; }
    .faq-item.active { border-color: var(--primary); box-shadow: var(--shadow); }
    .faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; background: none; border: none; font-size: 16px; font-weight: bold; color: var(--text-main); cursor: pointer; text-align: left; }
    .faq-q i { color: var(--primary); font-size: 18px; flex-shrink: 0; transition: transform 0.3s; }
    .faq-item.active .faq-q i { transform: rotate(180deg); }
    .faq-a { display: none; padding: 0 24px 20px; font-size: 14.5px; color: var(--text-sub); line-height: 1.9; }
    .faq-a strong { color: var(--primary); }
    
    /* position-bar 内 em 强调（与 strong 同色，去斜体） */
    .position-bar p em { font-style: normal; color: var(--accent); }