/* ============================================================
   金杰汽车车身维修 — 商务蓝主题样式
   ============================================================ */
:root {
  --navy-900: #0a1f38;
  --navy-800: #0d2b4a;
  --navy-700: #123a63;
  --blue-600: #1d6fd0;
  --blue-500: #2f80ed;
  --blue-400: #4b9cff;
  --blue-50:  #eaf2ff;
  --ink:      #17263a;
  --muted:    #5c6b7d;
  --border:   #e3eaf3;
  --bg:       #ffffff;
  --bg-alt:   #f4f8fd;
  --shadow:   0 12px 34px rgba(13, 43, 74, .10);
  --shadow-sm:0 6px 18px rgba(13, 43, 74, .08);
  --radius:   16px;
  --maxw:     1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: var(--navy-900);
  color: #cfe0f5;
  font-size: 13px;
  padding: 7px 0;
}
.topbar-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-item a { color: inherit; text-decoration: none; }
.topbar-item a:hover { color: #fff; text-decoration: underline; }
.topbar-right { margin-left: auto; }

/* ---------- 导航栏 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-badge {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-700));
  color: #fff; font-weight: 800; font-size: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(29,111,208,.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 17px; color: var(--navy-800); letter-spacing: .5px; }
.brand-text small { font-size: 12px; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 15px; font-size: 15px; color: var(--navy-700);
  border-radius: 9px; transition: all .18s ease; position: relative;
}
.nav-links a:hover { color: var(--blue-600); background: var(--blue-50); }
.nav-links a.active { color: var(--blue-600); font-weight: 600; }

.nav-cta { flex: none; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span { width: 24px; height: 2.5px; background: var(--navy-800); border-radius: 3px; transition: .2s; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: all .2s ease; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: #fff;
  box-shadow: 0 8px 20px rgba(29,111,208,.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(29,111,208,.42); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.26); }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- 首屏 Hero ---------- */
.hero {
  position: relative;
  min-height: 660px;
  display: flex; align-items: center;
  color: #fff;
  background: #0d2b4a url("https://images.unsplash.com/photo-1487754180451-c456f719a1fc?w=1920&q=80") center/cover no-repeat;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(8,26,48,.92) 0%, rgba(13,43,74,.78) 45%, rgba(31,111,208,.42) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 70px 24px; }
.hero-eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2.5px; font-weight: 600;
  color: #bcd8ff; background: rgba(255,255,255,.1);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,.18);
}
.hero h1 { font-size: 52px; line-height: 1.22; font-weight: 800; letter-spacing: 1px; margin-bottom: 20px; }
.hero-sub { font-size: 18px; color: #d6e6fb; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.18); padding-top: 26px; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 30px; font-weight: 800; color: #fff; }
.stat span { font-size: 13px; color: #b9cfea; }

/* ---------- 特点 ---------- */
.features { background: #fff; position: relative; z-index: 4; margin-top: -40px; }
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px;
  transform: translateY(0);
}
.feature { padding: 8px; text-align: center; }
.feature-icon {
  width: 62px; height: 62px; margin: 0 auto 14px;
  display: grid; place-items: center; font-size: 28px;
  background: var(--blue-50); border-radius: 16px;
}
.feature h3 { font-size: 17px; color: var(--navy-800); margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--muted); }

/* ---------- 通用 section ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1px;
  color: var(--blue-600); background: var(--blue-50);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 16px;
}
.section-head h2 { font-size: 36px; color: var(--navy-800); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); height: 420px; object-fit: cover; width: 100%; }
.about-text h2 { font-size: 34px; color: var(--navy-800); margin: 14px 0 16px; }
.about-text .lead { font-size: 17px; color: var(--navy-700); margin-bottom: 16px; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-list { list-style: none; margin: 8px 0 26px; }
.about-list li { padding: 8px 0; color: var(--navy-700); font-weight: 500; border-bottom: 1px dashed var(--border); }

/* ---------- 服务项目 ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-img { height: 210px; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-img img { transform: scale(1.06); }
.service-body { padding: 24px; }
.service-body h3 { font-size: 20px; color: var(--navy-800); margin-bottom: 10px; }
.service-body p { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.service-link { color: var(--blue-600); font-weight: 600; font-size: 15px; }
.service-link:hover { text-decoration: underline; }

/* ---------- 门店风采 ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; height: 230px; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,31,56,.35), transparent 55%);
  opacity: 0; transition: opacity .3s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover img { transform: scale(1.05); }

/* ---------- 合作链接 ---------- */
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.partner-link {
  display: flex; align-items: center; gap: 16px;
  background: #fff; padding: 22px 26px; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: 17px; font-weight: 600; color: var(--navy-700);
  transition: all .2s ease;
}
.partner-link:hover { transform: translateY(-4px); border-color: var(--blue-400); box-shadow: var(--shadow); color: var(--blue-600); }
.partner-logo { font-size: 26px; width: 48px; height: 48px; display: grid; place-items: center; background: var(--blue-50); border-radius: 12px; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; }
.contact-info h2 { font-size: 34px; color: var(--navy-800); margin: 14px 0 16px; }
.contact-info > p { color: var(--muted); margin-bottom: 28px; }
.contact-list { list-style: none; }
.contact-list li {
  display: flex; gap: 18px; padding: 15px 0;
  border-bottom: 1px solid var(--border); font-size: 16px;
}
.contact-label { flex: none; width: 86px; color: var(--blue-600); font-weight: 600; }
.contact-value { color: var(--navy-800); font-weight: 700; }
.contact-value:hover { color: var(--blue-600); text-decoration: underline; }
.contact-form {
  background: #fff; border-radius: var(--radius); padding: 34px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.contact-form h3 { font-size: 22px; color: var(--navy-800); margin-bottom: 20px; }
.contact-form label { display: block; font-size: 14px; color: var(--navy-700); font-weight: 600; margin-bottom: 16px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; margin-top: 7px; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--ink);
  background: #fbfdff; transition: border-color .2s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--blue-500); background: #fff;
}
.contact-form textarea { resize: vertical; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy-900); color: #b7cae4; padding: 60px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer-brand .brand-badge { margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14.5px; }
.footer-links a:hover { color: var(--blue-400); }
.footer-contact p { font-size: 14.5px; }
.footer-contact a { color: var(--blue-400); }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 24px; text-align: center; font-size: 13.5px;
}
.footer-bottom a { color: var(--blue-400); }
.footer-bottom p { margin-bottom: 6px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
}

@media (max-width: 640px) {
  .topbar-item { display: none; }
  .topbar-right { display: inline-flex; margin: 0 auto; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 8px; border-radius: 8px; font-size: 16px; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid, .partners-grid { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 26px; }
  .section-head h2 { font-size: 28px; }
}
