/* PC 端公共样式 · 唯普汽车 C 端买家站点 */

:root {
  --pc-red: #d12c1f;
  --pc-red-dark: #b1281d;
  --pc-red-light: #fff4f3;
  --pc-orange: #f59e0b;
  --pc-text: #1f2937;
  --pc-muted: #64748b;
  --pc-border: #e2e8f0;
}

body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--pc-text); background: #f5f6f8; }
[v-cloak] { display: none; }

a { color: inherit; text-decoration: none; }

/* ============ 顶栏(灰黑色 announcement bar)============ */
.pc-topbar { background: #1f1f1f; color: #cbd5e1; font-size: 12px; }
.pc-topbar .topbar-inner { max-width: 1200px; margin: 0 auto; padding: 9px 20px; display: flex; justify-content: space-between; align-items: center; }
.pc-topbar a { color: #cbd5e1; }
.pc-topbar a:hover { color: #fff; }
.pc-topbar .danger { color: #f87171; }
.pc-topbar .sep { margin: 0 6px; color: #475569; }

/* ============ 主导航 ============ */
.pc-nav { background: #fff; }
.pc-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 32px; }
.pc-nav .brand { padding: 14px 0; }
.pc-nav .brand-zh { font-size: 32px; font-weight: 700; color: var(--pc-red); letter-spacing: 1px; line-height: 1; font-family: "STKaiti","KaiTi","STSong",serif; }
.pc-nav .brand-en { font-size: 11px; color: #94a3b8; letter-spacing: 2px; margin-top: 4px; }
.pc-nav .nav-list { display: flex; flex: 1; gap: 4px; }
.pc-nav .nav-item { padding: 28px 18px; font-size: 16px; color: #334155; cursor: pointer; position: relative; white-space: nowrap; }
.pc-nav .nav-item:hover { color: var(--pc-red); }
.pc-nav .nav-item.active { color: var(--pc-red); font-weight: 500; }
.pc-nav .nav-item.active::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; background: var(--pc-red); border-radius: 2px; }
.pc-nav .search-wrap { display: flex; align-items: center; }
.pc-nav .search-input { width: 240px; height: 32px; padding: 0 10px; border: 1px solid #cbd5e1; border-right: none; border-radius: 0; font-size: 13px; outline: none; background: #fff; }
.pc-nav .search-input:focus { border-color: var(--pc-red); }
.pc-nav .search-btn { height: 32px; padding: 0 22px; background: var(--pc-red); color: #fff; font-size: 14px; border: 1px solid var(--pc-red); cursor: pointer; }
.pc-nav .search-btn:hover { background: var(--pc-red-dark); }

/* ============ 容器 ============ */
.pc-main { max-width: 1200px; margin: 0 auto; padding: 14px 20px 60px; }

/* ============ 场次 / 时间 tab ============ */
.pc-section-tabs { display: flex; gap: 2px; margin-bottom: 14px; }
.pc-tab { padding: 10px 28px; font-size: 14px; color: #475569; background: #fff; border: 1px solid var(--pc-border); cursor: pointer; }
.pc-tab:hover { color: var(--pc-red); }
.pc-tab.active { background: var(--pc-red); border-color: var(--pc-red); color: #fff; font-weight: 500; }

/* ============ 筛选条 ============ */
.filter-card { background: #fff; border: 1px solid var(--pc-border); margin-bottom: 14px; }
.filter-row { display: flex; align-items: flex-start; padding: 10px 16px; border-bottom: 1px solid #f1f5f9; gap: 14px; }
.filter-row:last-child { border-bottom: none; }
.filter-label { width: 56px; flex-shrink: 0; font-size: 13px; color: var(--pc-muted); padding-top: 6px; }
.filter-chips { flex: 1; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.chip { padding: 4px 12px; font-size: 13px; color: #475569; cursor: pointer; border-radius: 2px; line-height: 1.6; }
.chip:hover { color: var(--pc-red); }
.chip.active { background: var(--pc-red); color: #fff; }
.range-input { width: 70px; height: 26px; padding: 0 8px; border: 1px solid #cbd5e1; font-size: 12px; outline: none; }
.range-input:focus { border-color: var(--pc-red); }
.confirm-btn { height: 26px; padding: 0 14px; background: var(--pc-red); color: #fff; font-size: 12px; border: none; cursor: pointer; }
.more-select { height: 28px; padding: 0 24px 0 10px; border: 1px solid #cbd5e1; background: #fff; font-size: 12px; color: var(--pc-muted); appearance: none; cursor: pointer; min-width: 110px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat; background-position: right 8px center; }

.filter-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: #fafbfc; border-top: 1px solid #f1f5f9; font-size: 12.5px; color: var(--pc-muted); }
.filter-foot .reset { color: var(--pc-red); cursor: pointer; }
.filter-foot .reset:hover { text-decoration: underline; }
.filter-foot .right-links { display: flex; gap: 18px; }
.filter-foot .right-links a { color: var(--pc-red); }
.filter-foot .right-links a:hover { text-decoration: underline; }

/* ============ 列表上方 tab + 排序 ============ */
.list-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; border-bottom: 1px solid var(--pc-border); margin-bottom: 14px; }
.list-tabs { display: flex; gap: 36px; }
.list-tab { padding: 12px 0; font-size: 15px; color: var(--pc-muted); cursor: pointer; position: relative; }
.list-tab:hover { color: var(--pc-red); }
.list-tab.active { color: var(--pc-red); font-weight: 600; }
.list-tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--pc-red); }
.list-sort { display: flex; gap: 22px; font-size: 13px; color: var(--pc-muted); }
.list-sort .sort-item { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 12px 0; }
.list-sort .sort-item:hover { color: var(--pc-red); }
.list-sort .sort-item.active { color: var(--pc-red); }

/* ============ 车辆卡片 ============ */
.car-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.car-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.car-card { background: #fff; border: 1px solid #f1f5f9; overflow: hidden; cursor: pointer; transition: box-shadow .15s, transform .15s; display: flex; flex-direction: column; }
.car-card:hover { box-shadow: 0 8px 18px rgba(0,0,0,.08); transform: translateY(-1px); }
.car-card .car-img { aspect-ratio: 4/3; background: #f1f5f9; position: relative; overflow: hidden; display:flex; align-items:center; justify-content:center; color: #cbd5e1; }
.car-card .car-img img { width: 100%; height: 100%; object-fit: cover; }
.car-card .badge-pro { position: absolute; left: 10px; top: 0; width: 38px; padding: 8px 4px 12px; background: var(--pc-red); color: #fff; font-size: 11px; line-height: 1.15; text-align: center; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%); font-weight: 500; }
.car-card .status-bar { background: var(--pc-orange); color: #fff; padding: 6px 12px; display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; }
.car-card .car-body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }
.car-card .car-title { font-size: 13.5px; line-height: 1.55; color: #1f2937; height: 42px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.car-card .car-title .pin { color: var(--pc-red); margin-right: 2px; }
.car-card .car-meta { font-size: 12px; color: #94a3b8; margin-top: 8px; }
.car-card .car-tags { margin-top: 8px; display: flex; gap: 4px; flex-wrap: wrap; min-height: 22px; }
.car-tag { font-size: 11.5px; padding: 1px 6px; background: #f1f5f9; color: #64748b; border-radius: 2px; }
.car-tag.energy { background: #ecfdf5; color: #059669; }
.car-tag.reserved { background: #fef3c7; color: #b45309; }
.car-tag.new { background: #dbeafe; color: #1d4ed8; }
.car-tag.scrap { background: #fee2e2; color: #b91c1c; }
.car-tag.discount { background: #fdf2f8; color: #be185d; }
.car-card .car-price { display: flex; justify-content: space-between; align-items: end; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1f5f9; }
.car-card .price-num { color: var(--pc-red); font-size: 13px; }
.car-card .price-num strong { font-size: 22px; font-weight: 700; line-height: 1; margin-right: 2px; }
.car-card .car-time { font-size: 12px; color: #ef4444; }

/* ============ 页脚分页 ============ */
.pc-pagination { display: flex; justify-content: center; gap: 4px; padding: 28px 0; }
.pc-pagination .page-item { min-width: 32px; height: 32px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--pc-border); font-size: 13px; color: #475569; cursor: pointer; }
.pc-pagination .page-item:hover { color: var(--pc-red); border-color: var(--pc-red); }
.pc-pagination .page-item.active { background: var(--pc-red); border-color: var(--pc-red); color: #fff; }
.pc-pagination .page-item[disabled] { color: #cbd5e1; cursor: not-allowed; }

/* ============ 通用页脚 ============ */
.pc-footer { background: #1f1f1f; color: #94a3b8; font-size: 12.5px; margin-top: 40px; }
.pc-footer-inner { max-width: 1200px; margin: 0 auto; padding: 28px 20px; display: flex; justify-content: space-between; gap: 40px; }
.pc-footer h4 { color: #e2e8f0; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.pc-footer .col { line-height: 2; }
.pc-footer a:hover { color: #fff; }
.pc-footer .copyright { text-align: center; padding: 14px 20px; border-top: 1px solid #334155; font-size: 12px; }

/* ============ 首页专用 ============ */
.hero-banner { aspect-ratio: 1200/360; background: linear-gradient(110deg, #1e293b 0%, #b91c1c 100%); border-radius: 4px; margin-bottom: 16px; position: relative; overflow: hidden; display: flex; align-items: center; padding: 0 60px; color: #fff; }
.hero-banner h1 { font-size: 38px; font-weight: 700; letter-spacing: 4px; }
.hero-banner h1 .accent { color: #fbbf24; }
.hero-banner p { margin-top: 14px; font-size: 16px; opacity: .9; letter-spacing: 1px; }
.hero-cta { margin-top: 24px; display: inline-flex; gap: 12px; }
.hero-cta .btn { padding: 10px 28px; font-size: 14px; font-weight: 500; border-radius: 4px; cursor: pointer; }
.hero-cta .btn-primary { background: #fff; color: var(--pc-red); }
.hero-cta .btn-ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }

.section-title { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 14px; }
.section-title h2 { font-size: 20px; font-weight: 700; color: #1f2937; }
.section-title .more { color: var(--pc-muted); font-size: 13px; cursor: pointer; }
.section-title .more:hover { color: var(--pc-red); }

.quick-entry { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 16px 0; }
.entry-card { background: #fff; padding: 18px 16px; border: 1px solid var(--pc-border); display: flex; align-items: center; gap: 14px; cursor: pointer; transition: box-shadow .15s; }
.entry-card:hover { box-shadow: 0 6px 14px rgba(0,0,0,.06); border-color: var(--pc-red); }
.entry-card .icon-wrap { width: 44px; height: 44px; border-radius: 50%; background: var(--pc-red-light); color: var(--pc-red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.entry-card .entry-text { font-size: 14px; color: #1f2937; font-weight: 500; }
.entry-card .entry-sub { font-size: 11.5px; color: #94a3b8; margin-top: 2px; }

/* ============ 专场卡片 ============ */
.special-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.special-card { background: #fff; border: 1px solid var(--pc-border); overflow: hidden; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.special-card:hover { box-shadow: 0 8px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.special-card .cover { aspect-ratio: 16/9; background: linear-gradient(135deg, #1e293b 0%, #b91c1c 100%); position: relative; display: flex; align-items: center; justify-content: center; color: #fff; }
.special-card .cover .label { font-size: 24px; font-weight: 700; letter-spacing: 4px; }
.special-card .cover .scene-tag { position: absolute; top: 10px; left: 10px; padding: 3px 10px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); font-size: 12px; border-radius: 2px; }
.special-card .body { padding: 14px 16px; }
.special-card h3 { font-size: 16px; font-weight: 600; }
.special-card .meta { color: var(--pc-muted); font-size: 13px; margin-top: 6px; display: flex; justify-content: space-between; }
.special-card .stats { display: flex; gap: 18px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1f5f9; font-size: 12.5px; color: var(--pc-muted); }
.special-card .stats strong { color: var(--pc-red); font-size: 16px; font-weight: 700; }
