/* ============================================================
   砺邦租车 · 前台样式
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #e60012;      /* 主色 中国红 */
  --primary-dark: #c4000f;
  --dark: #171717;
  --dark2: #101828;
  --gray: #f6f7f9;
  --border: #e5e7eb;
  --text: #171717;
  --muted: #6a7282;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(0,0,0,.08);
}
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text); line-height: 1.7; background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============ 头部 ============ */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; height: 72px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 46px; width: auto; }
.logo-badge {
  width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 19px; font-weight: 800; }
.logo-text small { font-size: 11px; color: var(--muted); font-weight: 400; }
.main-nav { display: flex; gap: 2px; flex: 1; }
.main-nav a { padding: 8px 14px; border-radius: 8px; font-size: 15px; color: #333; transition: .2s; }
.main-nav a:hover { background: var(--gray); }
.main-nav a.active { color: var(--primary); font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang-switch { font-size: 13px; border: 1px solid var(--border); border-radius: 20px; padding: 5px 14px; color: #555; }
.lang-switch:hover { border-color: var(--primary); color: var(--primary); }
.header-phone { color: #fff; background: var(--primary); padding: 10px 20px; border-radius: 30px; font-weight: 700; font-size: 15px; }
.header-phone .ico { margin-right: 6px; }
.header-phone:hover { background: var(--primary-dark); }

/* ============ Hero ============ */
.hero { position: relative; background: var(--dark); color: #fff; padding: 90px 0 100px; overflow: hidden; }
.hero.has-img { background-size: cover; background-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.2) 100%); }
.hero .container { position: relative; z-index: 2; max-width: 900px; }
.hero-eyebrow { color: var(--primary); font-weight: 700; font-size: 15px; letter-spacing: 1px; margin-bottom: 16px; }
.hero-title { font-size: 46px; font-weight: 800; line-height: 1.25; margin-bottom: 22px; }
.hero-desc { font-size: 17px; color: #cfcfcf; max-width: 680px; margin-bottom: 34px; line-height: 1.9; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff;
  border: none; padding: 13px 30px; border-radius: 10px; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: .2s; font-family: inherit;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn-line { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-line:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }

/* ============ 区块 ============ */
.section { padding: 64px 0; }
.section-gray { background: var(--gray); }
.section-dark { background: var(--dark); color: #fff; }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head h2 { font-size: 32px; font-weight: 800; }
.section-head.center h2::after { content: ""; display: block; width: 52px; height: 4px; border-radius: 3px; background: var(--primary); margin: 14px auto 0; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 15px; }
.section-dark .section-head p { color: #a1a1a1; }

/* ============ 服务优势 ============ */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv-card { background: #fff; border-radius: var(--radius); padding: 32px 24px; text-align: center; box-shadow: var(--shadow); transition: .25s; }
.adv-card:hover { transform: translateY(-6px); }
.adv-icon { font-size: 40px; margin-bottom: 14px; }
.adv-title { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.adv-desc { color: var(--muted); font-size: 14px; }

/* ============ 服务场景 ============ */
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.scene-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; transition: .25s; display: block; }
.scene-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.scene-img { aspect-ratio: 16/10; overflow: hidden; background: #f0f0f0; }
.scene-img img { width: 100%; height: 100%; object-fit: cover; }
.scene-name { padding: 18px 20px; font-size: 17px; font-weight: 700; text-align: center; }
.scene-card.highlight .scene-name { color: var(--primary); }

/* 图片占位 */
.img-ph {
  width: 100%; height: 100%; min-height: 160px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; color: #b0b0b0; font-size: 13px;
  background: linear-gradient(135deg, #f3f4f6, #e8eaee);
}
.img-ph svg { width: 34px; height: 34px; opacity: .5; }
.img-ph .ph-key { font-size: 11px; color: #c4c4c4; }

/* ============ 车型 ============ */
.car-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.car-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; transition: .25s; }
.car-card:hover { box-shadow: var(--shadow); }
.car-img { aspect-ratio: 16/10; overflow: hidden; background: #f0f0f0; }
.car-img img { width: 100%; height: 100%; object-fit: cover; }
.car-body { padding: 20px; }
.car-name { font-size: 18px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.car-seat { font-size: 12px; font-weight: 700; color: var(--primary); background: rgba(230,0,18,.08); border: 1px solid rgba(230,0,18,.2); border-radius: 20px; padding: 2px 10px; flex-shrink: 0; }
.car-meta { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.car-price { color: var(--primary); display: flex; align-items: baseline; gap: 3px; min-width: 0; }
.car-price .num { font-size: 30px; font-weight: 800; line-height: 1.05; white-space: nowrap; }
.car-price .unit { font-size: 13px; color: var(--muted); white-space: nowrap; }
.car-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.car-foot .btn { flex: 0 0 auto; white-space: nowrap; }
.center-btn { text-align: center; margin-top: 40px; }

/* 车型报价页卡片：单价说明较长（如「元/天(含司机)」），
   价格与按钮改为上下两行，避免挤在一行换行错位、更整齐美观 */
.vehicle-card .car-foot { flex-direction: column; align-items: stretch; gap: 12px; }
.vehicle-card .car-foot .btn { width: 100%; justify-content: center; }
.vehicle-card .car-price .num { font-size: 28px; }

/* ============ 攻略 ============ */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guide-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; transition: .25s; display: flex; flex-direction: column; }
.guide-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.guide-img { aspect-ratio: 16/9; overflow: hidden; background: #f0f0f0; }
.guide-img img { width: 100%; height: 100%; object-fit: cover; }
.guide-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.guide-body h3 { font-size: 18px; font-weight: 800; margin-bottom: 12px; line-height: 1.5; }
.guide-excerpt { color: var(--muted); font-size: 14px; flex: 1; }
.guide-more { color: var(--primary); font-weight: 700; font-size: 14px; margin-top: 16px; }

/* ============ CTA ============ */
.cta { background: var(--primary); color: #fff; padding: 60px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.cta p { opacity: .9; }
.cta-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-phone { background: #fff; color: var(--primary); padding: 14px 28px; border-radius: 10px; font-weight: 800; font-size: 20px; display: inline-flex; align-items: center; gap: 8px; }
.cta .btn-ghost { border-color: rgba(255,255,255,.7); }
.cta .btn-ghost:hover { background: #fff; color: var(--primary); }

/* ============ 内页布局（侧栏在左，正文在右） ============ */
.layout { display: grid; grid-template-columns: 280px 1fr; gap: 36px; padding: 40px 20px 64px; align-items: start; max-width: 1200px; margin: 0 auto; }
.content-main { min-width: 0; grid-column: 2; grid-row: 1; }
.layout > .content-main:only-child { grid-column: 1 / -1; }
.sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; grid-column: 1; grid-row: 1; }
.side-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: #fff; }
.side-box h4 { font-size: 16px; font-weight: 800; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.side-contact-item { display: flex; gap: 10px; margin-bottom: 14px; font-size: 14px; }
.side-contact-item .sc-ico { color: var(--primary); font-size: 16px; }
.side-contact-item .sc-label { color: var(--muted); font-size: 12px; }
.side-contact-item .sc-val { font-weight: 700; }
.side-contact-item a { color: var(--primary); }
.side-qr { text-align: center; }
.side-qr .qr-box { width: 100%; aspect-ratio: 1/1; max-width: 200px; margin: 0 auto; border: 1px dashed #ccc; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fafafa; }
.side-qr .qr-box img { width: 100%; height: 100%; object-fit: cover; }
.side-qr .qr-id { font-size: 13px; color: var(--muted); margin-top: 10px; }
.side-tips li { position: relative; padding-left: 24px; font-size: 13px; color: #555; margin-bottom: 12px; }
.side-tips li::before { content: "·"; position: absolute; left: 8px; color: var(--primary); font-weight: 800; font-size: 18px; top: -2px; }
.tip-title { display: flex; align-items: center; gap: 6px; font-weight: 800; margin-bottom: 14px; }

/* 内页顶部 HERO（① 全宽大图，高度与首页 Hero 一致，标题叠在图上） */
.inner-hero { padding: 0; color: #fff; }
.inner-hero-box {
  position: relative; width: 100%;
  min-height: 440px; padding: 90px 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1f2430 0%, #3a1f22 100%);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  overflow: hidden;
}
.inner-hero-box.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.30) 45%, rgba(0,0,0,.55) 100%); }
.inner-hero-inner { position: relative; z-index: 2; text-align: center; max-width: 860px; }
.inner-hero-inner h1 { font-size: 40px; font-weight: 800; line-height: 1.3; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.inner-hero-inner p { margin-top: 14px; color: #ececec; font-size: 16px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }

/* 内页标题 */
.page-title { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.page-title.center { text-align: center; }
.page-title.center::after { content: ""; display: block; width: 52px; height: 4px; border-radius: 3px; background: var(--primary); margin: 14px auto 0; }
.page-sub { color: var(--muted); font-size: 16px; margin-bottom: 32px; }
.page-sub.center { text-align: center; }
.intro-text-block { color: #444; font-size: 15px; line-height: 2; margin-bottom: 32px; }

/* 通栏 Banner 图 */
.banner-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; aspect-ratio: 21/7; background: #f0f0f0; }
.banner-img img { width: 100%; height: 100%; object-fit: cover; }

/* 自适应 Banner：按图片原始比例完整显示，不裁剪、不变形、四周无灰底
   （用于租车流程等上传图尺寸不定的场景：无论什么尺寸都铺满整宽、高度按原比例自适应）
   注：用 .banner-img.banner-img--auto 提高优先级，避免被媒体查询里的
       .banner-img{aspect-ratio:...} 覆盖而重新裁切。 */
.banner-img.banner-img--auto { aspect-ratio: auto; background: transparent; }
.banner-img.banner-img--auto img { display: block; width: 100%; height: auto; }

/* 车型列表（带分类筛选） */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-bar a { padding: 8px 20px; border: 1px solid var(--border); border-radius: 30px; font-size: 14px; color: #555; transition: .2s; }
.filter-bar a:hover { border-color: var(--primary); color: var(--primary); }
.filter-bar a.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.vehicle-cat-title { font-size: 20px; font-weight: 800; margin: 36px 0 20px; padding-left: 12px; border-left: 4px solid var(--primary); scroll-margin-top: 90px; }
.vehicle-card .car-img { aspect-ratio: 16/9; }
.vehicle-specs { display: flex; gap: 14px; color: var(--muted); font-size: 13px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--border); }

/* 价格区间 */
.price-range-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.price-range-card { border: 1px solid var(--border); border-radius: 10px; padding: 18px 12px; text-align: center; }
.price-range-card .pr-name { font-size: 14px; color: #444; margin-bottom: 6px; }
.price-range-card .pr-val { color: var(--primary); font-weight: 800; font-size: 15px; }

/* ============ 租车流程 ============ */
.process-group { margin-bottom: 44px; }
.process-group h3 { font-size: 22px; font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.process-steps { display: flex; flex-direction: column; gap: 0; }
.process-step { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px dashed var(--border); }
.process-step:last-child { border-bottom: none; }
.step-no { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.step-text { padding-top: 4px; font-size: 15px; color: #333; }

/* 用户评价 */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.review-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; }
.review-quote { font-size: 44px; color: var(--primary); line-height: 1; font-family: Georgia, serif; opacity: .3; }
.review-content { font-size: 15px; color: #333; margin: 10px 0 18px; line-height: 1.9; }
.review-author { font-weight: 800; }
.review-role { color: var(--muted); font-size: 13px; }

/* ============ 文章详情 ============ */
.breadcrumb { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--primary); }
.article-title { font-size: 30px; font-weight: 800; margin-bottom: 16px; line-height: 1.4; }
.article-meta { color: var(--muted); font-size: 13px; margin-bottom: 28px; display: flex; gap: 18px; }
.article-faq { margin: 32px 0; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px; margin-bottom: 14px; }
.faq-q { font-weight: 800; margin-bottom: 10px; display: flex; gap: 10px; }
.faq-q::before { content: "Q"; color: var(--primary); font-weight: 800; }
.faq-a { color: #555; font-size: 15px; display: flex; gap: 10px; }
.faq-a::before { content: "A"; color: var(--muted); font-weight: 800; }
.faq-call { text-align: center; padding: 26px; background: var(--gray); border-radius: var(--radius); margin: 28px 0; }
.faq-call p { margin-bottom: 12px; }
.faq-call a { color: var(--primary); font-weight: 800; font-size: 22px; }

/* Markdown 渲染 */
.md-body { font-size: 16px; color: #333; line-height: 1.9; }
.md-body h1, .md-body h2, .md-body h3, .md-body h4 { margin: 28px 0 14px; font-weight: 800; }
.md-body h2 { font-size: 22px; }
.md-body h3 { font-size: 19px; }
.md-body p { margin: 14px 0; }
.md-body ul, .md-body ol { margin: 14px 0 14px 24px; }
.md-body ul li { list-style: disc; }
.md-body ol li { list-style: decimal; }
.md-body blockquote { border-left: 4px solid var(--primary); background: var(--gray); padding: 14px 20px; border-radius: 0 8px 8px 0; margin: 18px 0; color: #555; }
.md-body code { background: var(--gray); padding: 2px 6px; border-radius: 4px; font-size: .92em; }
.md-body pre { background: #1e1e1e; color: #eee; padding: 18px; border-radius: 10px; overflow-x: auto; margin: 18px 0; }
.md-body a { color: var(--primary); }
.md-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.md-table th, .md-table td { border: 1px solid var(--border); padding: 11px 15px; text-align: left; }
.md-table thead th { background: var(--gray); font-weight: 700; }
.md-table tbody tr:nth-child(even) { background: #fafbfc; }

/* ============ 表单 ============ */
.form-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; background: #fff; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; color: #333; }
.form-row .req { color: var(--primary); }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; outline: none; color: var(--text); background: #fff;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--primary); }
.form-row textarea { min-height: 120px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-tip { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.alert { padding: 14px 20px; border-radius: 10px; margin-bottom: 22px; font-size: 15px; }
.alert-success { background: #e7f7ed; color: #1a7f45; border: 1px solid #b6e8c8; }
.alert-error { background: #fdecee; color: #b02a37; border: 1px solid #f5c2c7; }

/* ============ 联系卡片 ============ */
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 36px; }
.contact-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; background: #fff; }
.contact-card .cc-ico { font-size: 32px; color: var(--primary); margin-bottom: 12px; }
.contact-card .cc-label { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.contact-card .cc-val { font-size: 18px; font-weight: 800; }
.contact-card .cc-val a { color: var(--primary); }
.contact-card .cc-qr { max-width: 160px; margin: 14px auto 0; aspect-ratio: 1/1; border: 1px dashed #ccc; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.contact-card .cc-qr img { width: 100%; height: 100%; object-fit: cover; }

/* ============ 浮动按钮 ============ */
.float-btns { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.float-btn { width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; position: relative; cursor: pointer; transition: .2s; box-shadow: 0 6px 18px rgba(230,0,18,.35); }
.float-btn:hover { background: var(--primary-dark); }
.fb-text { position: absolute; right: 62px; white-space: nowrap; background: #333; color: #fff; font-size: 13px; padding: 6px 12px; border-radius: 6px; opacity: 0; pointer-events: none; transition: .2s; font-weight: 600; }
.float-btn:hover .fb-text { opacity: 1; }
.float-qr-pop { position: absolute; right: 62px; top: 50%; transform: translateY(-50%); background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px; box-shadow: 0 12px 34px rgba(0,0,0,.16); opacity: 0; pointer-events: none; transition: .2s; text-align: center; width: 172px; }
.float-qr:hover .float-qr-pop { opacity: 1; pointer-events: auto; }
.float-qr-pop img { width: 150px; height: 150px; object-fit: cover; border-radius: 8px; margin: 0 auto; }
.float-qr-pop p { font-size: 12px; color: var(--muted); margin-top: 8px; }
.float-top { background: #666; box-shadow: none; }
.float-top:hover { background: #444; }

/* ============ 页脚 ============ */
.site-footer { background: var(--dark); color: #b8b8b8; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 20px 40px; }
.footer-col h4 { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 18px; }
.footer-desc { font-size: 14px; color: #9a9a9a; line-height: 1.9; margin-bottom: 16px; }
.footer-contact { font-size: 14px; margin-bottom: 8px; }
.footer-contact a { color: var(--primary); font-weight: 700; }
.f-ico { color: var(--primary); margin-right: 6px; }
.footer-links li { margin-bottom: 10px; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-cities { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.footer-cities li { margin-bottom: 0; }
.footer-qr { width: 130px; height: 130px; border-radius: 10px; overflow: hidden; background: #fff; margin-top: 16px; display: flex; align-items: center; justify-content: center; }
.footer-qr img { width: 100%; height: 100%; object-fit: cover; }
.footer-bottom { border-top: 1px solid #2a2a2a; padding: 18px 0; font-size: 13px; color: #7a7a7a; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ============ 分页 ============ */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.empty-tip { text-align: center; color: var(--muted); padding: 50px 0; }

/* ============ 汉堡菜单按钮 ============ */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; padding: 0 10px; }
.nav-toggle span { display: block; height: 2px; background: #333; border-radius: 2px; transition: .25s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ 响应式（多端适配） ============ */

/* —— 中屏：平板横屏 / 小笔记本 —— */
@media (max-width: 1100px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .price-range-grid { grid-template-columns: repeat(3, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .content-main { grid-column: 1; grid-row: auto; }
  .sidebar { grid-column: 1; grid-row: auto; position: static; display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; }
  .side-qr .qr-box { max-width: 180px; }
}

/* —— 平板：导航折叠为汉堡菜单 —— */
@media (max-width: 992px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--border); box-shadow: 0 16px 30px rgba(0,0,0,.08);
    padding: 8px 16px 16px; display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 12px; border-radius: 8px; border-bottom: 1px solid var(--border); font-size: 16px; }
  .main-nav a:last-child { border-bottom: none; }
  .header-inner { position: relative; justify-content: space-between; }
  .site-header { position: sticky; }
  .banner-img { aspect-ratio: 16/7; }
  .inner-hero-box { min-height: 340px; padding: 56px 22px; }
  .inner-hero-inner h1 { font-size: 30px; }
}

/* —— 小平板 / 大手机 —— */
@media (max-width: 768px) {
  .section { padding: 52px 0; }
  .scene-grid, .car-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 34px; }
  .hero-desc { font-size: 16px; }
  .hero { padding: 70px 0 78px; }
  .section-head h2 { font-size: 27px; }
  .page-title { font-size: 27px; }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .inner-hero-box { min-height: 300px; padding: 48px 20px; }
  .inner-hero-inner h1 { font-size: 26px; }
  /* 浮动按钮移至右下角并缩小，避免遮挡正文与误触 */
  .float-btns { top: auto; bottom: 18px; right: 14px; transform: none; }
  .fb-text { display: none; }
}

/* —— 手机 —— */
@media (max-width: 620px) {
  .container { padding: 0 16px; }
  .header-inner { height: 62px; gap: 12px; }
  .logo-text small { display: none; }
  .logo img { height: 38px; }
  .phone-num { display: none; }          /* 手机上只留电话图标，避免头部拥挤 */
  .header-phone { padding: 9px 12px; }
  .lang-switch { padding: 5px 10px; font-size: 12px; }

  .scene-grid, .car-grid, .guide-grid, .adv-grid, .contact-cards, .form-grid, .price-range-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }

  .hero { padding: 52px 0 58px; }
  .hero-title { font-size: 26px; }
  .hero-eyebrow { font-size: 13px; }
  .hero-desc { font-size: 15px; margin-bottom: 26px; }
  .hero-btns { gap: 12px; }
  .hero-btns .btn { flex: 1 1 auto; justify-content: center; }

  .section { padding: 40px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: 23px; }
  .section-head p { font-size: 14px; }
  .page-title { font-size: 24px; }
  .page-sub { font-size: 15px; margin-bottom: 24px; }
  .article-title { font-size: 23px; }
  .banner-img { aspect-ratio: 16/9; }
  .inner-hero-box { min-height: 240px; padding: 40px 18px; }
  .inner-hero-inner h1 { font-size: 22px; }
  .inner-hero-inner p { font-size: 14px; }

  .btn { padding: 12px 24px; font-size: 15px; }
  .car-price .num { font-size: 26px; }
  .car-foot { flex-wrap: wrap; gap: 12px; }
  .cta { padding: 44px 0; }
  .cta h2 { font-size: 21px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; }
  .cta-phone { font-size: 17px; padding: 12px 20px; flex: 1; justify-content: center; }
  .section-head.center h2::after, .page-title.center::after { margin-left: auto; margin-right: auto; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 40px 16px 30px; }
  .footer-bottom .container { justify-content: center; text-align: center; }
  .form-card { padding: 22px 18px; }
  .process-step { gap: 12px; }
  .review-card { padding: 22px; }
  .article-meta { flex-wrap: wrap; gap: 10px 18px; }

  /* 浮动按钮：缩小，靠右下但留出安全边距 */
  .float-btns { bottom: 14px; gap: 8px; }
  .float-btn { width: 46px; height: 46px; font-size: 18px; }
  .float-top { display: none; }
}

/* —— 超小屏 —— */
@media (max-width: 380px) {
  .hero-title { font-size: 23px; }
  .logo-text strong { font-size: 17px; }
}

/* ============ 移动端横向滚动防护 ============ */
@media (max-width: 992px) {
  .md-body pre, .md-table, .table-wrap { -webkit-overflow-scrolling: touch; }
  .md-body { overflow-wrap: break-word; word-break: break-word; }
}
/* 长表格在窄屏允许自身横向滚动，避免撑破页面 */
.md-body .md-table { display: block; overflow-x: auto; white-space: nowrap; }
@media (min-width: 768px) { .md-body .md-table { display: table; white-space: normal; } }

/* 触屏设备：点击浮动二维码显示 */
.float-qr.show-pop .float-qr-pop { opacity: 1; pointer-events: auto; }
