﻿/* 4S淘车网 - 页面专用样式 */

/* ===== 首页焦点区 ===== */
.hero-section { margin-top: 20px; }
.hero-banner {
  position: relative; min-height: 320px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(110deg, #1c2128 0%, #2b323b 52%, #3a414b 100%);
  display: flex; align-items: center; padding: 42px 48px; color: #fff;
}
.hero-content { position: relative; z-index: 2; max-width: 590px; }
.hero-tag { display: inline-block; background: var(--brand); color: #1a1a1a; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 4px; margin-bottom: 16px; }
.hero-content h1 { font-size: 40px; font-weight: 800; line-height: 1.25; letter-spacing: -1px; }
.hero-content p { color: #c8ced6; margin: 14px 0 22px; font-size: 15px; }
.hero-search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 26px; padding: 5px 6px 5px 18px; max-width: 520px; color: var(--ink-3); }
.hero-search input { flex: 1; border: none; outline: none; font-size: 14px; color: var(--ink); min-width: 0; }
.hero-search .btn { border-radius: 22px; padding: 9px 22px; }
.hero-hot { display: flex; gap: 14px; margin-top: 14px; font-size: 12px; color: #9aa2ac; align-items: center; }
.hero-hot button { background: none; border: none; color: #c8ced6; font-size: 12px; padding: 0; }
.hero-hot button:hover { color: var(--brand); }
.hero-art { position: absolute; right: 0; top: 0; bottom: 0; width: 45%; pointer-events: none; }
.art-car {
  position: absolute; right: 8%; bottom: 22%; width: 300px; height: 95px;
  background: linear-gradient(175deg, #4a525d 0%, #2a3038 100%);
  border-radius: 90px 120px 22px 22px / 70px 80px 22px 22px;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.art-car::before {
  content: ''; position: absolute; left: 38px; top: -38px; width: 190px; height: 62px;
  background: linear-gradient(175deg, #59626e 0%, #363d46 100%);
  border-radius: 90px 90px 0 0 / 60px 60px 0 0;
}
.art-car::after {
  content: ''; position: absolute; left: 20px; bottom: -13px; width: 260px; height: 26px;
  background: repeating-linear-gradient(90deg, #15181c 0 44px, transparent 44px 82px);
  border-radius: 50%;
}
.art-circle { position: absolute; border-radius: 50%; border: 1px solid rgba(255,204,0,.18); }
.art-circle.c1 { width: 320px; height: 320px; right: 2%; top: -12%; }
.art-circle.c2 { width: 220px; height: 220px; right: 10%; top: 8%; border-color: rgba(255,204,0,.12); }
.art-badge { position: absolute; right: 12%; top: 18%; background: var(--brand); color: #1a1a1a; font-weight: 800; font-size: 15px; line-height: 1.35; padding: 12px 16px; border-radius: 10px; transform: rotate(6deg); box-shadow: 0 10px 30px rgba(255,204,0,.25); }

/* ===== 金刚区 ===== */
.quick-nav { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin: 20px 0; background: #fff; border-radius: 12px; padding: 20px 12px; box-shadow: var(--shadow-sm); }
.quick-nav a { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.quick-nav a:hover { color: var(--price); }
.qn-icon { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; }
.qn-yellow { background: #fff4c2; color: #b8860b; }
.qn-blue { background: #e6f0ff; color: #3370ff; }
.qn-red { background: #ffece5; color: #ff5000; }
.qn-orange { background: #fff1e0; color: #e8710a; }
.qn-green { background: #e3f8ef; color: #00a870; }
.qn-purple { background: #f0eaff; color: #722ed1; }

/* ===== 车型卡片 ===== */
.vehicle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.vehicle-card { display: block; }
.vc-img { height: 140px; position: relative; overflow: hidden; }
.vc-car-shape {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  width: 170px; height: 58px; background: rgba(255,255,255,.9);
  border-radius: 60px 80px 12px 12px / 45px 50px 12px 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,.2);
}
.vc-car-shape::before { content: ''; position: absolute; left: 26px; top: -22px; width: 105px; height: 34px; background: rgba(255,255,255,.85); border-radius: 50px 50px 0 0 / 30px 30px 0 0; }
.vc-car-shape::after { content: ''; position: absolute; left: 12px; bottom: -9px; width: 146px; height: 18px; background: rgba(0,0,0,.55); border-radius: 50%; }
.vc-badge { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.5); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.vc-hot { position: absolute; right: 10px; top: 10px; background: var(--brand); color: #1a1a1a; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.vc-body { padding: 12px 14px 14px; }
.vc-name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-meta { font-size: 12px; color: var(--ink-3); margin: 4px 0 8px; }
.vc-price { color: var(--price); font-size: 14px; font-weight: 600; }
.vc-price b { font-size: 19px; }
.vc-price span { font-size: 12px; margin-left: 2px; }

/* ===== 门店卡片 ===== */
.dealer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dealer-card { display: block; padding: 16px; }
.dc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dc-brand { background: #fff8d6; color: #a67c00; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.dc-auth { background: #e3f8ef; color: var(--green); font-size: 11px; padding: 2px 7px; border-radius: 4px; }
.dc-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-addr { font-size: 12px; color: var(--ink-2); min-height: 38px; line-height: 1.6; }
.dc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--ink-3); }
.dc-promocount { color: var(--price); font-weight: 600; }

/* ===== 优惠卡片 ===== */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.promo-card { display: block; padding: 16px 18px; border-top: 3px solid var(--brand); }
.promo-card.promo-drop { border-top-color: var(--price); }
.promo-card.promo-gift { border-top-color: var(--green); }
.promo-card.promo-activity { border-top-color: #e8710a; }
.pc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pc-type { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 4px; background: #fff8d6; color: #a67c00; }
.promo-drop .pc-type { background: #ffece5; color: var(--price); }
.promo-gift .pc-type { background: #e3f8ef; color: var(--green); }
.pc-date { font-size: 11px; color: var(--ink-3); }
.pc-title { font-size: 15px; font-weight: 700; line-height: 1.45; min-height: 44px; }
.pc-prices { display: flex; align-items: baseline; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.pc-old { font-size: 12px; color: var(--ink-3); text-decoration: line-through; }
.pc-new { font-size: 20px; font-weight: 800; color: var(--price); }
.pc-save { font-size: 11px; color: var(--price); background: #ffece5; padding: 2px 7px; border-radius: 4px; }
.pc-desc { font-size: 13px; color: var(--price); margin: 10px 0; }
.pc-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 11px; color: var(--ink-3); }
.pc-disclaimer { white-space: nowrap; }

/* ===== 选车工具 ===== */
.tool-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tool-card { background: #fff; border-radius: 12px; padding: 22px; text-align: center; border: 1px solid var(--line); transition: all .18s; }
.tool-card:hover { border-color: var(--brand-deep); transform: translateY(-2px); }
.tool-emoji { font-size: 30px; margin-bottom: 8px; }
.tool-card h4 { font-size: 15px; margin-bottom: 4px; }
.tool-card p { font-size: 12px; color: var(--ink-3); }

/* ===== 列表页通用 ===== */
.page-head { background: #fff; border-radius: 12px; padding: 22px 24px; margin: 20px 0; box-shadow: var(--shadow-sm); }
.page-head h1 { font-size: 24px; font-weight: 800; }
.page-head p { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.filter-panel { background: #fff; border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; border: 1px solid var(--line); }
.filter-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.filter-row:last-child { border-bottom: none; }
.filter-label { font-size: 13px; color: var(--ink-3); width: 60px; flex: none; }
.filter-options { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-opt { background: none; border: none; padding: 5px 12px; border-radius: 6px; font-size: 13px; color: var(--ink-2); }
.filter-opt:hover { color: var(--price); }
.filter-opt.active { background: var(--brand); color: #1a1a1a; font-weight: 700; }
.cascader { display: flex; gap: 8px; flex-wrap: wrap; }
.cascader select { border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 10px; background: #fff; color: var(--ink); font-size: 13px; outline: none; }
.cascader select:focus { border-color: var(--brand-deep); }
.toolbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #fff; border-radius: 10px; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.sort-opts { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.sort-opts .sort-btn { background: none; border: none; color: var(--ink-2); padding: 6px 12px; border-radius: 6px; font-size: 13px; }
.sort-opts .sort-btn.active { background: #fff8d6; color: #a67c00; font-weight: 700; }
.result-total { color: var(--ink-3); font-size: 13px; }
.pagination { display: flex; justify-content: center; gap: 6px; margin: 30px 0; }
.pagination button { border: 1px solid var(--line-2); background: #fff; border-radius: 6px; padding: 7px 13px; font-size: 13px; color: var(--ink-2); }
.pagination button:hover, .pagination button.active { background: var(--brand); border-color: var(--brand); color: #1a1a1a; font-weight: 700; }

/* ===== 车型列表 ===== */
.cars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* ===== 门店列表 ===== */
.stores-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.store-card { padding: 18px; display: flex; flex-direction: column; }
.store-card .sc-top { display: flex; gap: 12px; align-items: flex-start; }
.sc-avatar { width: 44px; height: 44px; border-radius: 8px; background: var(--brand); color: #1a1a1a; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; flex: none; }
.sc-title { flex: 1; min-width: 0; }
.sc-name { font-size: 16px; font-weight: 700; }
.sc-badges { display: flex; gap: 6px; margin-top: 4px; }
.sc-badges span { font-size: 11px; padding: 1px 7px; border-radius: 4px; background: var(--bg); color: var(--ink-2); }
.sc-badges .b-auth { background: #e3f8ef; color: var(--green); }
.sc-info { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.sc-info div { display: flex; gap: 8px; }
.sc-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.sc-tags span { background: var(--bg); color: var(--ink-2); font-size: 11px; padding: 2px 9px; border-radius: 4px; }
.sc-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.sc-actions .btn { flex: 1; }

/* ===== 优惠列表 ===== */
.promos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ===== 文章列表 ===== */
.news-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item { display: flex; gap: 16px; background: #fff; border-radius: 10px; padding: 14px; border: 1px solid var(--line); transition: all .18s; }
.news-item:hover { border-color: var(--brand-deep); }
.news-thumb { width: 160px; height: 100px; border-radius: 8px; flex: none; position: relative; overflow: hidden; }
.news-thumb .nt-shape { position: absolute; left: 50%; top: 55%; transform: translate(-50%,-50%); width: 90px; height: 32px; background: rgba(255,255,255,.85); border-radius: 40px 50px 8px 8px / 30px 30px 8px 8px; }
.news-body { flex: 1; min-width: 0; }
.news-body h3 { font-size: 16px; font-weight: 700; line-height: 1.45; margin-bottom: 6px; }
.news-body p { font-size: 13px; color: var(--ink-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.news-aside { position: sticky; top: 130px; }
.aside-card { background: #fff; border-radius: 10px; padding: 18px; border: 1px solid var(--line); margin-bottom: 14px; }
.aside-card h4 { font-size: 15px; margin-bottom: 12px; padding-left: 10px; border-left: 3px solid var(--brand); }
.aside-link { display: block; padding: 8px 0; font-size: 13px; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.aside-link:hover { color: var(--price); }

/* ===== 详情页 ===== */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; margin: 20px 0; }
.detail-main { background: #fff; border-radius: 12px; padding: 24px; border: 1px solid var(--line); }
.detail-hero { height: 260px; border-radius: 10px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; }
.detail-hero .dh-car { width: 320px; height: 90px; background: rgba(255,255,255,.9); border-radius: 90px 110px 16px 16px / 60px 70px 16px 16px; }
.detail-main h1 { font-size: 26px; font-weight: 800; margin: 20px 0 8px; }
.detail-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.spec-item { background: var(--bg); border-radius: 8px; padding: 14px; text-align: center; }
.spec-item .sv { font-size: 18px; font-weight: 800; color: var(--price); }
.spec-item .sl { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.detail-section-block { margin-top: 24px; }
.detail-section-block h3 { font-size: 17px; margin-bottom: 12px; padding-left: 10px; border-left: 4px solid var(--brand); }
.detail-line { display: flex; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.detail-line .l { width: 100px; color: var(--ink-3); flex: none; }
.detail-side { position: sticky; top: 130px; }
.side-panel { background: #fff; border-radius: 12px; padding: 20px; border: 1px solid var(--line); }
.side-panel .sp-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.side-price { color: var(--price); font-size: 26px; font-weight: 800; margin: 10px 0; }
.side-price small { font-size: 13px; }
.side-panel .btn { width: 100%; margin-top: 8px; }

/* ===== 登录页 ===== */
.auth-wrap { min-height: calc(100vh - 260px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-card { background: #fff; border-radius: 14px; box-shadow: var(--shadow); width: min(420px, 100%); overflow: hidden; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); }
.auth-tab { flex: 1; padding: 16px 0; text-align: center; background: none; border: none; font-size: 16px; font-weight: 600; color: var(--ink-3); border-bottom: 3px solid transparent; }
.auth-tab.active { color: var(--ink); border-bottom-color: var(--brand); }
.auth-body { padding: 28px; }
.auth-body .btn-brand { width: 100%; padding: 12px; font-size: 15px; margin-top: 6px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 16px; }

/* 通用内容页 / 资讯详情（后台可编辑正文） */
.page-content { min-height: 260px; line-height: 1.9; font-size: 14px; color: var(--ink-2); }
.page-content h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 18px 0 10px; }
.page-content h3:first-child { margin-top: 0; }
.page-content p { margin: 10px 0; }
.page-content b { color: var(--ink); }
.page-content a { color: var(--blue); }
.news-body h3 a { color: var(--ink); text-decoration: none; }
.news-body h3 a:hover { color: var(--price); }
.aside-link.active { color: var(--brand-deep); font-weight: 700; }

@media (max-width: 1000px) {
  .vehicle-grid, .cars-grid, .dealer-grid, .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .promo-grid, .promos-grid { grid-template-columns: repeat(2, 1fr); }
  .news-layout, .detail-layout { grid-template-columns: 1fr; }
  .news-aside, .detail-side { position: static; }
}
@media (max-width: 700px) {
  .hero-banner { padding: 28px 20px; min-height: auto; }
  .hero-content h1 { font-size: 27px; }
  .hero-art { display: none; }
  .quick-nav { grid-template-columns: repeat(3, 1fr); }
  .vehicle-grid, .cars-grid, .dealer-grid, .tool-grid, .promo-grid, .promos-grid, .stores-grid { grid-template-columns: 1fr 1fr; }
  .detail-specs { grid-template-columns: repeat(2, 1fr); }
  .news-thumb { width: 110px; height: 76px; }
}
@media (max-width: 480px) {
  .vehicle-grid, .cars-grid, .dealer-grid, .tool-grid, .promo-grid, .promos-grid, .stores-grid { grid-template-columns: 1fr; }
  .quick-nav { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .hero-content h1 { font-size: 23px; }
  .filter-label { width: 100%; }
}

/* v5：图片内容页适配 */
.page-content img, .article-content img { max-width: 100%; height: auto; }

/* ===== v5.2 首页精细化：标语 / 主视觉 / 图片卡片 ===== */
/* 顶部标语条 */
.slogan-bar {
  display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 22px;
  background: linear-gradient(100deg, #ffcc00 0%, #ffd84d 55%, #ffe38a 100%);
  border-radius: 12px; color: #1a1a1a; box-shadow: 0 6px 18px rgba(255,204,0,.22);
}
.slogan-badge {
  flex: none; background: #1d2126; color: #ffcc00; font-weight: 800; font-size: 14px;
  padding: 6px 12px; border-radius: 7px; letter-spacing: .5px;
}
.slogan-text { flex: 1; font-size: 21px; font-weight: 800; letter-spacing: 1px; }
.slogan-en { flex: none; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: #6b5400; }

/* 主视觉：有图片时隐藏 CSS 汽车装饰，避免图文重叠混乱 */
.hero-banner.has-image .hero-art { display: none !important; }
.hero-banner.has-image { padding: 0; min-height: 360px; }
.hero-banner.has-image .hero-content {
  padding: 50px 48px; background: linear-gradient(90deg, rgba(16,19,23,.92) 0%, rgba(16,19,23,.72) 46%, rgba(16,19,23,.15) 78%, rgba(16,19,23,0) 100%);
  border-radius: 14px; max-width: 720px;
}
.hero-banner.has-image .hero-content h1 { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.hero-img { object-position: center right; }

/* 图片专区：统一 16:9 比例、精细描边与阴影 */
.banner-card { height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.banner-card img { aspect-ratio: 16 / 9; }
.banner-caption { padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.banner-caption b { font-size: 15px; letter-spacing: .3px; }
.banner-caption i { color: #ffd84d; font-weight: 600; }

@media (max-width: 700px) {
  .slogan-bar { gap: 8px; padding: 10px 12px; }
  .slogan-text { font-size: 15px; letter-spacing: 0; }
  .slogan-en { display: none; }
  .slogan-badge { font-size: 12px; padding: 5px 8px; }
  .hero-banner.has-image .hero-content { padding: 30px 22px; max-width: 100%; background: linear-gradient(90deg, rgba(16,19,23,.94) 0%, rgba(16,19,23,.78) 100%); }
}

/* v5.2：附近门店定位徽标（与后台提示副标题区分，明确为功能信息） */
.loc-tag { display:inline-block; margin-left:10px; padding:3px 10px; background:#fff7d6; color:#9a6b00; font-size:12px; font-weight:600; border-radius:14px; vertical-align:middle; }

/* v5.3：恢复首页文字频道栏（用户不保留图标金刚区） */
body.page-home .channel-bar { display: block; }

/* ===== v5.5 导购信息栏目（卡片复用 news-card） ===== */
.guide-card .news-card-body { position: relative; }
.gc-price { position: absolute; right: 10px; top: 11px; background: #fff1e0; color: #e8710a; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.gc-tags { margin: 12px 0; }
.gc-tags .uc-tag { margin-right: 6px; }
.gc-cta { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--line); }
.gc-cta .btn { margin-right: 8px; }
