/* ============================================================
   main.css — 勤哲网站主样式
   ============================================================ */

/* ── CSS 变量 ─────────────────────────────────────────── */
:root {
  --c-primary:       #e63027;
  --c-primary-dark:  #c0261e;
  --c-primary-light: #fff0ef;
  --c-navy:          #1a2e4a;
  --c-navy-light:    #253d60;
  --c-blue:          #3a8ccc;
  --c-text:          #2c2c2c;
  --c-text-muted:    #666;
  --c-border:        #e4e4e4;
  --c-bg:            #fff;
  --c-bg-grey:       #f5f6f8;
  --c-bg-dark:       #1a2e4a;
  --font:            'PingFang SC','Hiragino Sans GB','Microsoft YaHei','WenQuanYi Micro Hei',sans-serif;
  --radius:          8px;
  --shadow:          0 2px 12px rgba(0,0,0,.08);
  --shadow-hover:    0 6px 24px rgba(0,0,0,.14);
  --transition:      .22s ease;
  --nav-height:      64px;
}

/* ── 基础重置 ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.75;
  font-size: 15px;
  padding-top: var(--nav-height);
  /* padding: 0px; */
  margin: 0px;
}

a { color: var(--c-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-primary-dark); }

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

h1,h2,h3,h4,h5,h6 { font-family: var(--font); }

.hidden {
  display: none !important;
}

/* ── 容器 ──────────────────────────────────────────────── */
.qz-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 顶部导航 ──────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 42px; }
.nav-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-primary);
  display: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  gap: 2px;
  align-items: center;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 13px;
  border-radius: 6px;
  color: var(--c-text);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  background: var(--c-bg-grey);
  color: var(--c-primary);
}

.nav-chevron {
  width: 10px; height: 10px;
  transition: transform var(--transition);
  flex-shrink: 0;
}

/* 下拉菜单 */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 148px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--c-border);
  padding: 6px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav-menu > li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu > li:hover .nav-chevron { transform: rotate(180deg); }

.nav-dropdown a {
  display: block;
  padding: 8px 13px;
  border-radius: 5px;
  color: var(--c-text);
  font-size: 14px;
  transition: background var(--transition), color var(--transition);
}

.nav-dropdown a:hover { background: var(--c-bg-grey); color: var(--c-primary); }

/* CTA 按钮 */
.btn-nav-cta {
  background: var(--c-primary) !important;
  color: #fff !important;
  padding: 7px 18px !important;
  border-radius: 20px !important;
  font-weight: 600;
  font-size: 14px !important;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-nav-cta:hover { background: var(--c-primary-dark) !important; color: #fff !important; }

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── 首页 Hero 轮播 ─────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }

.hero-slide {
  position: relative;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-color: var(--c-navy);
  display: flex;
  align-items: center;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,46,74,.88) 35%, rgba(26,46,74,.55) 100%);
}

.hero-slide-1 { background-image: url('../images/ad1.jpg'); }
.hero-slide-2 { background-image: url('../images/ad2.jpg'); }
.hero-slide-3 { background-image: url('../images/ad3.jpg'); }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 60px 0;
}

.hero-content h1 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 14px;
}

.hero-content p {
  font-size: 15px;
  color: rgba(255,255,255,.82);
  margin-bottom: 26px;
  line-height: 1.8;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.hero-badge {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.25);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.carousel-indicators [data-bs-target] {
  width: 28px; height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.5);
}

.carousel-indicators .active { background: var(--c-primary); width: 36px; }

/* ── 页面区块 ──────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-grey { background: var(--c-bg-grey); }
.section-dark { background: var(--c-bg-dark); color: #fff; }

.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  text-align: center;
  color: var(--c-text);
  margin-bottom: 6px;
}

.section-dark .section-title { color: #fff; }

.section-subtitle {
  text-align: center;
  color: var(--c-text-muted);
  font-size: 15px;
  margin-bottom: 0;
}

.section-dark .section-subtitle { color: rgba(255,255,255,.65); }

.section-line {
  display: block;
  width: 40px; height: 3px;
  background: var(--c-primary);
  border-radius: 2px;
  margin: 10px auto 40px;
}

/* ── 统计数字栏 ─────────────────────────────────────────── */
.stats-bar {
  background: var(--c-navy);
  padding: 36px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 12px 20px;
  border-right: 1px solid rgba(255,255,255,.12);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-num .highlight { color: var(--c-primary); }
.stat-num .unit { font-size: 20px; }

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.65);
}

/* ── 功能特性卡片 ─────────────────────────────────────── */
.feature-card {
  text-align: center;
  padding: 28px 18px 24px;
  border-radius: var(--radius);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  height: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--c-primary-light);
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--c-text);
}

.feature-card p {
  font-size: 13px;
  color: var(--c-text-muted);
  margin: 0;
  line-height: 1.65;
}

/* ── 客户评价 ──────────────────────────────────────────── */
.testimonial-card {
  background: var(--c-bg);
  border-radius: var(--radius);
  padding: 26px 28px;
  border-left: 4px solid var(--c-primary);
  box-shadow: var(--shadow);
  height: 100%;
}

.testimonial-text {
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.85;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  font-size: 13px;
  color: var(--c-text-muted);
  font-weight: 600;
}

.testimonial-author::before {
  content: '—— ';
  color: var(--c-primary);
}

/* ── Logo 走马灯 ────────────────────────────────────────── */
.logo-marquee-outer {
  overflow: hidden;
  padding: 16px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  animation: marquee-x 32s linear infinite;
  width: max-content;
}

.logo-marquee-track:hover { animation-play-state: paused; }

.logo-marquee-track img {
  height: 44px;
  width: auto;
  opacity: .8;
  transition: opacity .3s;
}

.logo-marquee-track img:hover { opacity: 1; }

@keyframes marquee-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── CTA 区块 ───────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--c-primary) 0%, #c0261e 100%);
  padding: 64px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.cta-section p {
  color: rgba(255,255,255,.85);
  font-size: 16px;
  margin-bottom: 32px;
}

/* ── 页脚 ──────────────────────────────────────────────── */
.site-footer {
  background: var(--c-bg-dark);
  color: rgba(255,255,255,.75);
  padding: 52px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr auto;
  gap: 40px;
  padding-bottom: 36px;
}

.footer-logo img { height: 40px; margin-bottom: 14px; }

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin-bottom: 20px;
}

.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li { font-size: 13px; margin-bottom: 7px; color: rgba(255,255,255,.7); }
.footer-contact-list a { color: rgba(255,255,255,.85); }
.footer-contact-list a:hover { color: #fff; }
.footer-contact-list .label {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  display: block;
  margin-bottom: 2px;
}

.footer-heading {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 14px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: 13px; }
.footer-links a:hover { color: #fff; }

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

.footer-qr-item { text-align: center; }
.footer-qr-item img {
  width: 76px; height: 76px;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
  display: block;
}

.footer-qr-item p {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  margin-top: 5px;
  margin-bottom: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding-top: 20px;
  font-size: 12px;
  color: rgba(255,255,255,.38);
  text-align: center;
  line-height: 2;
}

.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* ── 在线客服（PC 面板 + 移动端底部条）────────────────── */

/* PC：容器定位 */
.float-contact {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 1000;
}

/* PC：聊天面板外框 */
#chatwin {
  width: 206px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.08);
}

/* PC：标题栏（红色） */
#chatwin-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--c-primary);
  cursor: default;
}

#chatwin-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}

#chatwin-button {
  font-size: 12px;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  padding: 2px 8px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 10px;
  transition: background .15s;
}

#chatwin-button:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
}

/* PC：聊天内容区（由 qzkf-02.js 填充） */
#chatwin-area {
  background: #fff;
}

/* 移动端：底部全宽客服条 */
.chatwin-m {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: none;        /* JS / 媒体查询控制显示 */
  height: 52px;
  z-index: 1000;
}

.chatwin-m-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}

.chatwin-m-btn svg { flex-shrink: 0; }

.chatwin-m-btn span { font-size: 13px; }

.chatwin-m-btn-tel {
  background: var(--c-primary);
}

.chatwin-m-btn-tel:hover { background: var(--c-primary-dark); color: #fff; }

.chatwin-m-btn-qq {
  background: var(--c-navy);
  border-left: 1px solid rgba(255,255,255,.12);
}

.chatwin-m-btn-qq:hover { background: var(--c-navy-light); color: #fff; }

/* ── 内页 Hero ────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-light) 100%);
  padding: 52px 0 44px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* ── Hero 滚动消息条 ──────────────────────────────────── */
/* 挂在 .page-hero 或 section.hero 底部，绝对定位 */
.hero-ticker {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 34px;
  background: rgba(0,0,0,.30);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.08);
}

.ticker-label {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: rgba(230,48,39,.75);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .06em;
  white-space: nowrap;
}

.ticker-outer {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: ticker-scroll 20s linear infinite;
  padding: 0 24px;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-track a {
  color: rgba(255,255,255,.82);
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s;
}

.ticker-track a:hover { color: #fff; text-decoration: underline; }

.ticker-sep {
  color: rgba(255,255,255,.25);
  font-size: 12px;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 有消息条时，hero 底部留出空间 */
.page-hero.has-ticker   { padding-bottom: calc(44px + 34px); }
.has-ticker .hero-content { padding-bottom: 44px; }

.page-hero h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-hero p { color: rgba(255,255,255,.75); font-size: 15px; margin: 0; }

/* ── 面包屑 ────────────────────────────────────────────── */
.breadcrumb-bar {
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 13px;
  color: var(--c-text-muted);
}

.breadcrumb-bar a { color: var(--c-text-muted); }
.breadcrumb-bar a:hover { color: var(--c-primary); }
.breadcrumb-bar .sep { margin: 0 7px; opacity: .5; }
.breadcrumb-bar .current { color: var(--c-text); }

/* ── 二级导航条 ─────────────────────────────────────────── */
.sub-nav-bar {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  padding: 0;
}

.sub-nav-bar ul {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  gap: 0;
}

.sub-nav-bar li a {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--c-text-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.sub-nav-bar li a:hover,
.sub-nav-bar li.active a {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
}

/* ── 工具类 ────────────────────────────────────────────── */
.text-red { color: var(--c-primary) !important; }
.text-navy { color: var(--c-navy) !important; }
.text-muted { color: var(--c-text-muted) !important; }
.bg-light-grey { background: var(--c-bg-grey); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ── 响应式 ────────────────────────────────────────────── */
@media (max-width: 991px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,.12); }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 56px; }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 56px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    gap: 2px;
    align-items: stretch;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
  }

  .nav-menu.open { display: flex; }

  .nav-menu > li > a { padding: 10px 14px; }

  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 2px 0 4px 20px;
    display: none;
  }

  .nav-menu.open .nav-dropdown.open { display: block; }

  .nav-toggle { display: flex; }

  .hero-slide { min-height: 340px; }
  .hero-content { padding: 36px 0; }
  .hero-content h1 { font-size: 22px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 32px; }

  .section { padding: 44px 0; }

  /* 移动端：隐藏 PC 面板，让底部条接管 */
  .float-contact { display: none; }
  .chatwin-m { display: flex; }
  body { padding-bottom: 52px; }  /* 防止内容被底部条遮挡 */

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-qr-group { flex-direction: row; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.12) !important; }
  .stat-item:last-child { border-bottom: none !important; }
}
