﻿/* 4S店精品二手车 - 仿瓜子二手车展示（ES5/IE 兼容，避免 grid 用 flex） */

/* 列表页头部 */
.uc-hero { background: linear-gradient(110deg, #1d2126 0%, #2b3138 60%, #3a3020 100%); border-radius: 14px; padding: 34px 36px; margin: 18px 0; color: #fff; }
.uc-hero-inner { max-width: 720px; }
.uc-hero-badge { display: inline-block; background: #ffcc00; color: #1a1a1a; font-weight: 800; font-size: 12px; padding: 4px 12px; border-radius: 14px; letter-spacing: .5px; }
.uc-hero h1 { margin: 14px 0 8px; font-size: 30px; }
.uc-hero p { margin: 0 0 16px; color: #d7dbe0; font-size: 14px; }
.uc-trust span { display: inline-block; margin-right: 20px; color: #ffd84d; font-size: 12px; }
.uc-filter { margin-top: 4px; }

/* 二手车卡片网格（flex 兼容 IE） */
.uc-grid { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.uc-card { display: block; width: 25%; padding: 0 8px; margin-bottom: 18px; box-sizing: border-box; text-decoration: none; color: inherit; }
.uc-card .uc-img { position: relative; height: 168px; border-radius: 10px 10px 0 0; overflow: hidden; background: #eceff3; }
.uc-photo { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s; }
.uc-card:hover .uc-photo { transform: scale(1.04); }
.uc-photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; background: #e6eaef; }
.uc-cert { position: absolute; left: 8px; top: 8px; background: #ffcc00; color: #1a1a1a; font-weight: 800; font-size: 11px; padding: 3px 9px; border-radius: 4px; }
.uc-cert.big { font-size: 13px; padding: 5px 14px; }
.uc-body { background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; padding: 12px 12px 14px; }
.uc-title { font-size: 15px; font-weight: 800; color: var(--ink); }
.uc-model { font-size: 12px; color: #6b7280; margin-top: 3px; height: 34px; line-height: 17px; overflow: hidden; }
.uc-params { margin-top: 8px; font-size: 11px; color: #6b7280; }
.uc-params span { margin-right: 10px; position: relative; }
.uc-params span + span:before { content: '·'; position: absolute; left: -7px; color: #c4c9d0; }
.uc-tags { margin-top: 8px; }
.uc-tag { display: inline-block; font-size: 10px; color: #b8860b; background: #fff7d6; padding: 2px 6px; border-radius: 3px; margin-right: 5px; }
.uc-price-row { margin-top: 10px; display: flex; align-items: baseline; justify-content: space-between; }
.uc-price { color: #e64518; font-size: 12px; }
.uc-price b { font-size: 21px; font-weight: 800; }
.uc-save { font-size: 11px; color: #8a9099; }

/* 详情页 */
.ucd-crumb { font-size: 12px; color: #8a9099; margin: 16px 0; }
.ucd-crumb a { color: #5f6b7a; }
.ucd-layout { display: flex; gap: 20px; align-items: flex-start; }
.ucd-main { flex: 1; min-width: 0; }
.ucd-side { width: 280px; flex: none; }
.ucd-gallery { position: relative; height: 380px; border-radius: 12px; overflow: hidden; background: #eceff3; }
.ucd-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.ucd-photo-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 90px; }
.ucd-gallery .uc-cert { left: 14px; top: 14px; }
.ucd-title { font-size: 22px; margin: 18px 0 8px; }
.ucd-title small { font-size: 14px; color: #8a9099; font-weight: 400; }
.ucd-tags { margin-bottom: 16px; }
.ucd-section { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
.ucd-section h3 { font-size: 15px; margin: 0 0 14px; }
.ucd-specs { display: flex; flex-wrap: wrap; }
.ucd-spec { width: 25%; padding: 8px 0; box-sizing: border-box; }
.ucd-spec .k { font-size: 11px; color: #8a9099; }
.ucd-spec .v { font-size: 14px; color: var(--ink); font-weight: 600; margin-top: 3px; }
.ucd-desc { font-size: 13px; line-height: 1.8; color: #4b5563; margin: 0; }
.ucd-promise span { display: inline-block; margin-right: 22px; color: #b8860b; font-size: 13px; }
.ucd-side .side-panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; position: sticky; top: 16px; }
.ucd-price { color: #e64518; margin: 10px 0 4px; }
.ucd-price b { font-size: 32px; font-weight: 800; }
.ucd-save { font-size: 11px; color: #8a9099; }
.ucd-dealer { font-size: 13px; color: #4b5563; margin: 14px 0 18px; padding: 10px; background: #f7f8fa; border-radius: 6px; }
.ucd-side .btn { display: block; width: 100%; margin-bottom: 10px; text-align: center; }

@media (max-width: 1100px) { .uc-card { width: 33.333%; } }
@media (max-width: 820px) { .uc-card { width: 50%; } .ucd-layout { flex-direction: column; } .ucd-side { width: 100%; } }
@media (max-width: 560px) { .uc-card { width: 100%; } .ucd-spec { width: 50%; } .uc-trust span { display: block; margin: 4px 0; } }

/* 首页二手车专区 */
.uc-home-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 4px; }
.uc-home-head .section-title { margin-bottom: 0; }
.uc-home-intro { margin: 6px 0 0; font-size: 13px; color: #8a9099; }
@media (max-width: 560px) { .uc-home-head { flex-direction: column; align-items: flex-start; gap: 8px; } }
