/* ============================================================
   悦星行 · 苏州奔驰宝马专修官网 — 统一样式
   移动优先响应式 | 正文≥14px | 点击区≥44px
   GEO友好：浅色主题，无弹窗遮挡，正文区纯净
   ============================================================ */
:root {
  --brand: #b08d3e;        /* 低调金——豪华车质感 */
  --brand-dark: #8a6d2f;
  --ink: #22252a;
  --ink-2: #4a4e57;
  --ink-3: #7a7f8a;
  --bg: #ffffff;
  --bg-soft: #f6f5f1;
  --line: #e5e2d9;
  --red-accent: #b3342c;   /* 少量强调（警示/价格） */
  --radius: 8px;
  --shadow: 0 2px 10px rgba(0,0,0,.06);
  --maxw: 1080px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC","Microsoft YaHei","微软雅黑","Noto Sans SC",system-ui,sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;          /* 正文≥14px 达标 */
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- 页头 ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 6px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.brand .name { font-weight: 700; font-size: 18px; color: var(--ink); line-height: 1.25; }
.brand .name small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 12px; font-size: 15px; color: var(--ink-2);
  border-radius: 6px;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--brand-dark); font-weight: 600; }
.nav-toggle {
  display: none; min-width: 44px; min-height: 44px; border: 0;
  background: none; font-size: 24px; color: var(--ink); cursor: pointer;
}

/* ---------- 页脚 ---------- */
.site-footer { background: #1e2025; color: #c9ccd2; margin-top: 64px; }
.footer-inner { padding: 40px 20px 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; max-width: var(--maxw); margin: 0 auto; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-grid p, .footer-grid li { font-size: 14px; color: #b3b7bf; line-height: 2; }
.footer-grid ul { list-style: none; }
.footer-grid a { color: #b3b7bf; }
.footer-grid a:hover { color: #fff; }
.footer-copy { border-top: 1px solid #33363d; margin-top: 28px; padding-top: 18px; text-align: center; font-size: 13px; color: #8a8e96; }
.footer-copy a { color: #8a8e96; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 6px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: all .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn-outline:hover { background: var(--bg-soft); text-decoration: none; }

/* ---------- 首屏 Hero ---------- */
.hero { background: linear-gradient(135deg, #f9f7f1 0%, #efe9da 100%); border-bottom: 1px solid var(--line); }
.hero-inner { padding: 64px 20px 56px; text-align: center; }
.hero h1 { font-size: 30px; line-height: 1.4; margin-bottom: 16px; color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--brand-dark); }
.hero .lead { max-width: 760px; margin: 0 auto 28px; font-size: 17px; color: var(--ink-2); }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .facts { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; box-shadow: var(--shadow); }
.fact b { display: block; font-size: 24px; color: var(--brand-dark); }
.fact span { font-size: 13px; color: var(--ink-3); }

/* ---------- 区块 ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 26px; color: var(--ink); }
.section-head p { color: var(--ink-3); margin-top: 8px; font-size: 15px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); display: block; color: var(--ink);
}
.card:hover { border-color: var(--brand); text-decoration: none; transform: translateY(-2px); }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card h3 .tag { display: inline-block; font-size: 12px; background: var(--bg-soft); color: var(--brand-dark); border: 1px solid var(--line); border-radius: 4px; padding: 1px 8px; margin-left: 6px; font-weight: 400; }
.card p { font-size: 14px; color: var(--ink-2); }
.card .price { margin-top: 14px; font-size: 14px; color: var(--brand-dark); font-weight: 600; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; margin: 20px 0; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.data th, table.data td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
table.data th { background: var(--bg-soft); font-weight: 600; white-space: nowrap; }
table.data tr:nth-child(even) td { background: #fbfaf7; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 15px;
  list-style: none; position: relative; min-height: 48px; display: flex; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; font-size: 20px; color: var(--brand); }
.faq-item[open] summary::after { content: "−"; }
.faq-item .a { padding: 0 20px 18px; color: var(--ink-2); font-size: 15px; }

/* ---------- 步骤流程 ---------- */
.steps { counter-reset: step; list-style: none; }
.steps li { position: relative; padding: 0 0 22px 48px; font-size: 15px; color: var(--ink-2); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 32px; height: 32px;
  background: var(--brand); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.steps li b { color: var(--ink); display: block; }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 13px; color: var(--ink-3); padding: 16px 0 0; }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--brand-dark); }
.breadcrumb .sep { margin: 0 6px; color: var(--line); }

/* ---------- 正文排版（文章/资讯） ---------- */
.article-body h2 { font-size: 22px; margin: 36px 0 14px; color: var(--ink); }
.article-body h3 { font-size: 18px; margin: 26px 0 10px; color: var(--ink); }
.article-body p { margin: 12px 0; }
.article-body ul, .article-body ol { margin: 12px 0 12px 24px; }
.article-body li { margin: 6px 0; }
.article-body blockquote { border-left: 4px solid var(--brand); background: var(--bg-soft); padding: 12px 18px; margin: 16px 0; color: var(--ink-2); }
.article-meta { color: var(--ink-3); font-size: 13px; margin: 12px 0 20px; }

/* ---------- 页面头 ---------- */
.page-head { background: linear-gradient(135deg, #f9f7f1, #efe9da); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding: 44px 20px 36px; }
.page-head h1 { font-size: 28px; }
.page-head p { color: var(--ink-2); margin-top: 8px; max-width: 780px; }

/* ---------- NAP卡 ---------- */
.nap-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 24px 0; }
.nap-card dl { display: grid; grid-template-columns: 90px 1fr; row-gap: 10px; font-size: 15px; }
.nap-card dt { color: var(--ink-3); }
.nap-card dd { color: var(--ink); }

/* ---------- 案例卡 ---------- */
.case-card { border-left: 4px solid var(--brand); }
.case-card .case-meta { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }

/* ---------- 提示框 ---------- */
.note { background: #fdf6ec; border: 1px solid #f0e0c0; border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; font-size: 14px; color: #6b5a2e; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px; }
  .nav.open { display: flex; }
  .nav a { justify-content: flex-start; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero .facts { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 420px) {
  .hero .facts { grid-template-columns: 1fr; }
  .brand .name { font-size: 16px; }
}

/* ===== 门店地图（Leaflet 极简样式） ===== */
.map-wrap { margin: 16px 0; }
.store-map {
  width: 100%;
  height: 380px;
  border-radius: var(--radius, 12px);
  border: 1px solid var(--line, #e5e2dc);
  overflow: hidden;
  background: #eef1f5;
}
.store-map .leaflet-container {
  font-family: inherit;
}
.map-attribution {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-3, #8a857a);
  text-align: right;
}
/* 悦星行自定义标记 */
.store-marker { background: transparent; border: none; }
.store-marker-pin {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--brand, #b08d3e);
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-marker-pin::after {
  content: "悦";
  transform: rotate(45deg);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
/* 弹窗样式 */
.store-map .leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.store-map .leaflet-popup-content {
  margin: 12px 16px;
  line-height: 1.55;
  font-size: 13px;
}
