/* 
    惠车网 (Huiche.com) 全新独立设计模板
    Style: Energetic Orange & Modern White
    Design Concept: Value, Trust, Efficiency
*/

/* 基础重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.6; color: #333; background-color: #f5f7f9; }
a { color: #333; text-decoration: none; transition: 0.2s; }
a:hover { color: #ff6600; }
ul, li { list-style: none; }
img { max-width: 100%; border: none; vertical-align: middle; }

/* 颜色定义 */
:root {
    --primary-color: #ff6600;
    --primary-hover: #e65c00;
    --secondary-color: #2c3e50;
    --text-muted: #999;
    --bg-light: #fff;
    --border-color: #eee;
}

/* 布局容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 10px; }
.row { display: flex; flex-wrap: wrap; margin-left: -10px; margin-right: -10px; }
.col-8 { width: 66.66%; padding: 0 10px; }
.col-4 { width: 33.33%; padding: 0 10px; }
.col-9 { width: 75%; padding: 0 10px; }
.col-3 { width: 25%; padding: 0 10px; }
.margin-top-10 { margin-top: 10px; }
.margin-top-20 { margin-top: 20px; }
.margin-top-30 { margin-top: 30px; }

/* 通用盒子样式 */
.box-container { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.03); }

/* 头部样式 */
.header { background: #fff; }
.top-bar { background: #f8f8f8; color: #666; font-size: 12px; padding: 6px 0; border-bottom: 1px solid #eee; }
.top-bar .container { display: flex; justify-content: space-between; }
.top-bar a { color: #666; margin-right: 15px; }
.top-bar .sep { color: #ddd; margin-right: 15px; }

.header-main { display: flex; align-items: center; padding: 20px 0; }
.logo img { height: 120px; }
.city-select { margin-left: 20px; font-size: 14px; }
.current-city { font-weight: bold; color: var(--primary-color); }
.change-city { font-size: 12px; color: #999; margin-left: 5px; }

.search-box { flex: 1; margin: 0 60px; }
.search-group { display: flex; border: 2px solid var(--primary-color); border-radius: 25px; overflow: hidden; }
.search-input { flex: 1; border: none; padding: 10px 20px; outline: none; font-size: 14px; }
.search-btn { background: var(--primary-color); color: #fff; border: none; padding: 0 30px; cursor: pointer; font-weight: bold; }
.hot-tags { margin-top: 8px; font-size: 12px; color: #999; padding-left: 20px; }
.hot-tags a { color: #999; margin-right: 12px; }

.service-tel { text-align: right; }
.tel-label { font-size: 12px; color: #999; }
.tel-num { font-size: 20px; font-weight: bold; color: var(--primary-color); font-family: Impact, sans-serif; }

.nav-bar { background: var(--secondary-color); }
.nav-menu { display: flex; align-items: center; }
.nav-menu li a { display: block; padding: 14px 25px; color: #fff; font-size: 16px; }
.nav-menu li.active a, .nav-menu li a:hover { background: var(--primary-color); }
.nav-item-hot a { color: #ffeb3b !important; font-weight: bold; }
.nav-right { margin-left: auto; }

/* 首页 Banner 区 */
.banner-section { background: #fff; padding: 20px 0; }
.banner-wrap { display: flex; gap: 20px; }
.category-sidebar { width: 220px; background: #fdfdfd; border: 1px solid #f0f0f0; border-radius: 8px; padding: 15px; }
.cat-title { font-size: 15px; font-weight: bold; border-left: 4px solid var(--primary-color); padding-left: 10px; margin-bottom: 12px; }
.cat-list { display: flex; flex-wrap: wrap; margin-bottom: 15px; }
.cat-list li { width: 50%; margin-bottom: 8px; }
.cat-list a { font-size: 13px; color: #666; display: inline-block; margin-right: 5px; }
.cat-list a:hover { color: var(--primary-color); }

.main-slider { flex: 1; border-radius: 8px; overflow: hidden; height: 380px; }
.hc-banner { height: 100%; }
.hc-banner img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); padding: 40px 20px 20px; color: #fff; }
.slide-caption h2 { font-size: 24px; margin-bottom: 5px; }
.slide-caption span { color: #ffeb3b; font-weight: bold; }

.deal-sidebar { width: 260px; background: #fff9f5; border: 1px solid #ffe8d9; border-radius: 8px; padding: 15px; }
.deal-title { font-size: 14px; font-weight: bold; color: #e65100; margin-bottom: 15px; }
.deal-title span { float: right; font-weight: normal; font-size: 12px; color: #999; }
.deal-title em { font-style: normal; color: #fff; background: #e65100; padding: 2px 4px; border-radius: 3px; }
.deal-item { display: flex; gap: 10px; margin-bottom: 20px; background: #fff; padding: 8px; border-radius: 4px; }
.d-img img { width: 80px; height: 50px; object-fit: cover; }
.d-name { font-size: 13px; font-weight: bold; margin-bottom: 4px; }
.d-price { color: #e65100; font-weight: bold; font-size: 14px; }
.d-btn { display: inline-block; background: #e65100; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 20px; }
.deal-more { text-align: center; font-size: 12px; border-top: 1px dashed #ffd8bf; padding-top: 10px; }

/* 标题栏 */
.section-title { display: flex; align-items: center; margin-bottom: 20px; }
.section-title h3 { font-size: 22px; color: #333; margin-right: 30px; }
.title-tags { flex: 1; }
.title-tags a { margin-right: 20px; color: #666; font-size: 14px; }
.title-tags a.active { color: var(--primary-color); font-weight: bold; border-bottom: 2px solid var(--primary-color); padding-bottom: 5px; }
.view-more { font-size: 13px; color: #999; }

/* 特价网格 */
.hot-sale-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.sale-card { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #f0f0f0; transition: 0.3s; }
.sale-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); border-color: var(--primary-color); }
.s-img { position: relative; }
.s-img img { width: 100%; height: 140px; object-fit: cover; }
.s-tag { position: absolute; top: 10px; left: 10px; background: #e65100; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 2px; }
.s-info { padding: 12px; }
.s-info h4 { font-size: 15px; margin-bottom: 8px; height: 42px; overflow: hidden; }
.s-price-row { margin-bottom: 10px; }
.now-p { color: #e65100; font-size: 18px; font-weight: bold; }
.old-p { color: #999; font-size: 11px; text-decoration: line-through; margin-left: 8px; }
.s-bottom { display: flex; justify-content: space-between; align-items: center; }
.s-loc { font-size: 12px; color: #999; }
.s-btn { background: var(--primary-color); color: #fff; font-size: 12px; padding: 4px 12px; border-radius: 20px; }

/* 新闻与列表 */
.news-list-large .news-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid #f5f5f5; }
.news-list-large .news-item:last-child { border-bottom: none; }
.n-img img { width: 160px; height: 100px; border-radius: 4px; object-fit: cover; }
.n-info h4 { font-size: 18px; margin-bottom: 10px; }
.n-info p { font-size: 14px; color: #666; margin-bottom: 10px; }
.n-meta { font-size: 12px; color: #999; }
.n-meta span { margin-right: 20px; }

.guide-list li { padding: 10px 0; border-bottom: 1px dashed #eee; display: flex; align-items: center; }
.guide-list .idx { width: 18px; height: 18px; background: #eee; color: #999; font-size: 11px; text-align: center; line-height: 18px; border-radius: 2px; margin-right: 12px; }
.guide-list li:nth-child(-n+3) .idx { background: var(--primary-color); color: #fff; }

/* 品牌墙 */
.brand-wall-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; }
.brand-logo-item { border: 1px solid #f0f0f0; padding: 10px; text-align: center; border-radius: 4px; }
.brand-logo-item:hover { border-color: var(--primary-color); }
.brand-logo-item img { width: 32px; height: 32px; object-fit: contain; }

/* 详情页 */
.article-header-wrap { text-align: center; padding-bottom: 30px; border-bottom: 1px solid #eee; margin-bottom: 30px; }
.article-header-wrap h1 { font-size: 28px; color: #333; margin-bottom: 15px; }
.article-meta-info { font-size: 13px; color: #999; }
.article-meta-info span { margin: 0 15px; }

.car-summary-box { background: #fdfdfd; border: 1px solid #eee; padding: 25px; border-radius: 8px; display: flex; gap: 30px; margin-bottom: 30px; }
.summary-left { width: 320px; }
.summary-left img { border-radius: 4px; }
.summary-right h3 { font-size: 22px; margin-bottom: 15px; }
.summary-price { margin-bottom: 15px; }
.summary-price .val { font-size: 28px; color: #e65100; font-weight: bold; }
.summary-info { display: flex; gap: 30px; margin-bottom: 25px; color: #666; }
.summary-btns .btn-primary { display: inline-block; padding: 12px 35px; background: var(--primary-color); color: #fff; border-radius: 4px; font-weight: bold; margin-right: 15px; }
.summary-btns .btn-outline { display: inline-block; padding: 12px 35px; border: 1px solid var(--primary-color); color: var(--primary-color); border-radius: 4px; font-weight: bold; }

/* 询价表单 */
.side-form { background: #fff9f5; border: 1px solid #ffe8d9; }
.side-title { font-size: 18px; font-weight: bold; color: #e65100; margin-bottom: 15px; border-bottom: 1px solid #ffd8bf; padding-bottom: 10px; }
.form-desc { font-size: 12px; color: #666; margin-bottom: 20px; }
.form-item { margin-bottom: 15px; }
.form-item input, .form-item select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; outline: none; }
.btn-submit { width: 100%; padding: 12px; background: #e65100; color: #fff; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; }
.privacy-text { font-size: 11px; color: #999; margin-top: 10px; text-align: center; }

/* 底部 */
.footer { background: #2c3e50; color: #fff; padding-top: 50px; margin-top: 60px; }
.footer-advantage { background: rgba(255,255,255,0.05); padding: 30px 0; margin-bottom: 40px; }
.adv-list { display: flex; justify-content: space-around; }
.adv-item { display: flex; align-items: center; gap: 15px; }
.adv-icon { width: 48px; height: 48px; background: rgba(255,255,255,0.1); border-radius: 50%; }
.adv-info h5 { font-size: 18px; margin-bottom: 4px; }
.adv-info p { font-size: 12px; color: #aaa; }

.footer-cols { display: flex; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.f-col { flex: 1; }
.logo-col { flex: 2; }
.logo-col img { height: 40px; margin-bottom: 20px; }
.logo-col p { font-size: 13px; color: #aaa; line-height: 1.8; }
.f-col h5 { font-size: 16px; margin-bottom: 20px; }
.f-col ul li { margin-bottom: 10px; }
.f-col ul li a { color: #aaa; font-size: 13px; }
.qr-col { display: flex; gap: 20px; }
.qr-item { text-align: center; font-size: 12px; color: #aaa; }
.qr-item img { width: 80px; height: 80px; margin-bottom: 8px; padding: 5px; background: #fff; border-radius: 4px; }

.footer-copyright { padding: 30px 0; text-align: center; font-size: 12px; color: #888; background: #243342; }
.f-links { margin-bottom: 20px; }
.f-links strong { color: #aaa; }
.f-links a { color: #888; margin: 0 10px; }

/* 侧边工具栏 */
.fix-toolbar { position: fixed; right: 20px; bottom: 150px; z-index: 100; }
.fix-toolbar .item { width: 60px; height: 60px; background: #fff; border: 1px solid #eee; margin-bottom: -1px; text-align: center; display: flex; align-items: center; justify-content: center; }
.fix-toolbar .item a { font-size: 11px; color: #666; }
.fix-toolbar .item:hover { background: var(--primary-color); }
.fix-toolbar .item:hover a { color: #fff; }

/* 响应式适配 */
@media (max-width: 992px) {
    .col-8, .col-4, .col-9, .col-3 { width: 100%; }
    .category-sidebar, .deal-sidebar { display: none; }
    .hot-sale-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-cols { flex-direction: column; }
    .search-box { margin: 20px 0; }
    .header-main { flex-direction: column; text-align: center; }
}
