/* ============================================
   八桂畅行科技官网 - 主样式
   ============================================ */
:root {
  --primary: #0b5cad;
  --primary-dark: #084a8c;
  --primary-light: #e8f1fb;
  --accent: #f5a623;
  --text: #333;
  --text-light: #666;
  --bg-gray: #f5f7fa;
  --white: #fff;
  --border: #e5e9f0;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  background: var(--white);
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #fff; margin-left: 18px; }
.topbar a:hover { color: var(--accent); }

/* ---------- 导航 ---------- */
.header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #2f8fe0);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.logo-text { font-size: 20px; font-weight: 700; color: var(--primary-dark); }
.logo-text small { display: block; font-size: 11px; font-weight: 400; color: var(--text-light); letter-spacing: 2px; }
.nav { display: flex; list-style: none; gap: 6px; }
.nav li a {
  display: block; padding: 8px 16px; border-radius: 6px;
  color: var(--text); font-size: 15px; transition: all .25s;
}
.nav li a:hover, .nav li a.active { color: var(--primary); background: var(--primary-light); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--primary-dark); cursor: pointer; }

/* ---------- Banner ---------- */
.banner {
  background: linear-gradient(135deg, #084a8c 0%, #0b5cad 55%, #1e7fd4 100%);
  color: #fff;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.banner::after {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.banner::before {
  content: "";
  position: absolute; right: 60px; bottom: -160px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.banner .container { position: relative; z-index: 2; }
.banner h1 { font-size: 44px; font-weight: 700; margin-bottom: 18px; letter-spacing: 2px; }
.banner p { font-size: 17px; max-width: 620px; color: rgba(255,255,255,.9); margin-bottom: 10px; }
.banner .tag {
  display: inline-block; margin-top: 22px; padding: 10px 28px;
  background: var(--accent); color: #fff; border-radius: 30px;
  font-size: 15px; font-weight: 600;
}

/* ---------- 通用区块 ---------- */
.section { padding: 70px 0; }
.section.gray { background: var(--bg-gray); }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head h2 { font-size: 30px; color: var(--primary-dark); margin-bottom: 10px; }
.section-head .en { font-size: 13px; color: #9aa7b8; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 8px; }
.section-head p { color: var(--text-light); max-width: 680px; margin: 0 auto; }

/* ---------- 卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.card {
  background: var(--white); border-radius: 12px; padding: 30px 24px;
  box-shadow: 0 4px 16px rgba(11,92,173,.08);
  transition: transform .3s, box-shadow .3s;
  border: 1px solid var(--border);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(11,92,173,.15); }
.card .icon {
  width: 54px; height: 54px; border-radius: 12px; margin-bottom: 16px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.card h3 { font-size: 17px; margin-bottom: 8px; color: var(--primary-dark); }
.card p { font-size: 13.5px; color: var(--text-light); }

/* ---------- 两栏 ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.two-col h3 { font-size: 22px; color: var(--primary-dark); margin-bottom: 14px; }
.two-col p { color: var(--text-light); margin-bottom: 12px; }
.two-col .feature-list { list-style: none; }
.two-col .feature-list li { padding: 8px 0 8px 26px; position: relative; color: var(--text); }
.two-col .feature-list li::before {
  content: "✔"; position: absolute; left: 0; top: 8px; color: var(--primary); font-weight: 700;
}
.panel {
  background: var(--white); border-radius: 14px; padding: 36px;
  box-shadow: 0 6px 24px rgba(11,92,173,.1); border: 1px solid var(--border);
}

/* ---------- 案例 ---------- */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.case-card {
  background: var(--white); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); transition: all .3s;
}
.case-card:hover { box-shadow: 0 10px 28px rgba(11,92,173,.15); transform: translateY(-4px); }
.case-card .case-img {
  height: 150px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), #d6e9fb);
  font-size: 40px; color: var(--primary);
}
.case-card .case-body { padding: 20px; }
.case-card h3 { font-size: 17px; color: var(--primary-dark); margin-bottom: 6px; }
.case-card p { font-size: 13px; color: var(--text-light); }
.case-tag {
  display: inline-block; font-size: 12px; color: var(--primary);
  background: var(--primary-light); border-radius: 20px; padding: 2px 12px; margin-bottom: 10px;
}

/* ---------- 流程 ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.step {
  background: var(--white); border-radius: 12px; padding: 26px 24px;
  border: 1px solid var(--border); position: relative;
}
.step .num {
  counter-increment: step;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-size: 18px;
}
.step h3 { font-size: 16px; color: var(--primary-dark); margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--text-light); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 14px; overflow: hidden;
}
.faq-q {
  padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center; color: var(--primary-dark);
}
.faq-q::after { content: "+"; font-size: 22px; color: var(--primary); transition: transform .3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 22px 18px; color: var(--text-light); font-size: 14px; }
.faq-item.open .faq-a { display: block; }

/* ---------- 合作CTA ---------- */
.cta {
  background: linear-gradient(135deg, #084a8c, #0b5cad);
  color: #fff; text-align: center; padding: 60px 0;
}
.cta h2 { font-size: 28px; margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,.85); margin-bottom: 26px; }
.cta .btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 12px 40px; border-radius: 30px; font-size: 16px; font-weight: 600;
  transition: all .3s;
}
.cta .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }

/* ---------- 页脚 ---------- */
.footer { background: #0d2c4f; color: rgba(255,255,255,.75); padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer p, .footer li { font-size: 13.5px; margin-bottom: 8px; }
.footer ul { list-style: none; }
.footer .logo-text { color: #fff; }
.footer .logo-text small { color: rgba(255,255,255,.55); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 16px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.65); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 10px 20px 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
  }
  .nav.open { display: flex; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .banner h1 { font-size: 32px; }
  .banner { padding: 60px 0; }
  .section { padding: 50px 0; }
  .topbar .container { flex-direction: column; gap: 2px; }
}
