@charset "utf-8";
/* CSS Document */

        :root {
            --primary-color: #0b2545;
            --accent-color: #134074;
            --highlight-color: #0077b6;
            --text-dark: #1d2d44;
            --text-muted: #64748b;
            --bg-light: #f8f9fa;
            --white: #ffffff;
            --border-color: #e2e8f0;
            --footer-bg: #07192f;
            --badge-ev: #059669;
            --badge-hybrid: #0284c7;
            --badge-ice: #d97706;
            --transition: all 0.3s ease;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
        }

        body {
            color: var(--text-dark);
            background-color: var(--bg-light);
            line-height: 1.6;
        }

        a { text-decoration: none; color: inherit; }
        ul { list-style: none; }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

 
        /* 页面 Header */
        .page-header {
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            color: var(--white);
            padding: 40px 0 30px;
        }

        .page-header h1 {
            font-size: 2.2rem;
            font-weight: 800;
            margin-bottom: 8px;
        }

        .page-header p {
            color: #cbd5e1;
            font-size: 1rem;
        }

        /* ========================================================
           大图标品牌分类栏样式 (Large Brand Cards Grid)
        ======================================================== */
        .brand-section {
            background: var(--white);
            border-bottom: 1px solid var(--border-color);
            padding: 25px 0 30px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.02);
        }

        .brand-title-box {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 18px;
        }

        .brand-title {
            font-size: 15px;
            font-weight: 800;
            color: var(--primary-color);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .brand-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
            gap: 15px;
        }

        .brand-card {
            background: var(--white);
            border: 2px solid var(--border-color);
            border-radius: 12px;
            padding: 16px 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
            position: relative;
            user-select: none;
        }

        .brand-card:hover {
            transform: translateY(-4px);
            border-color: var(--highlight-color);
            box-shadow: 0 8px 20px rgba(0, 119, 182, 0.12);
        }

        .brand-card.active {
            border-color: var(--highlight-color);
            background: rgba(0, 119, 182, 0.04);
            box-shadow: 0 6px 16px rgba(0, 119, 182, 0.15);
        }

        .brand-card.active::after {
            content: "\f00c";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            top: 6px;
            right: 8px;
            font-size: 11px;
            color: var(--highlight-color);
        }

        /* 放大品牌 Icon 核心样式 */
        .brand-logo-img {
            width: 64px;
            height: 64px;
            object-fit: contain;
            margin-bottom: 10px;
            transition: var(--transition);
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
        }

        .brand-card:hover .brand-logo-img {
            transform: scale(1.1);
        }

        /* 全部品牌 Icon 占位图标 */
        .brand-logo-all {
            width: 64px;
            height: 64px;
            background: var(--bg-light);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 10px;
            color: var(--primary-color);
            font-size: 26px;
            transition: var(--transition);
        }

        .brand-card:hover .brand-logo-all {
            background: var(--highlight-color);
            color: var(--white);
        }

        .brand-name {
            font-size: 14px;
            font-weight: 700;
            color: var(--primary-color);
            text-align: center;
            line-height: 1.2;
        }

        /* 综合筛选与排序区 */
        .filter-section {
            background: var(--white);
            border-radius: 8px;
            padding: 20px;
            margin: 25px 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.03);
            border: 1px solid var(--border-color);
        }

        .filter-row {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            align-items: center;
            justify-content: space-between;
        }

        .filter-group {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .filter-label {
            font-size: 14px;
            font-weight: 700;
            color: var(--primary-color);
        }

        .filter-chips {
            display: flex;
            gap: 8px;
        }

        .chip {
            padding: 6px 14px;
            border-radius: 4px;
            border: 1px solid var(--border-color);
            background: var(--bg-light);
            font-size: 13.5px;
            cursor: pointer;
            transition: var(--transition);
            font-weight: 500;
        }

        .chip:hover, .chip.active {
            background: var(--primary-color);
            color: var(--white);
            border-color: var(--primary-color);
        }

        .filter-selects {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .select-input {
            padding: 7px 12px;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            font-size: 13.5px;
            color: var(--text-dark);
            outline: none;
            background-color: var(--white);
            cursor: pointer;
        }

        .select-input:focus { border-color: var(--highlight-color); }

        .sort-box {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* 车源统计与列表视图 */
        .inventory-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            font-size: 14px;
            color: var(--text-muted);
        }

        .inventory-count span {
            font-weight: 700;
            color: var(--primary-color);
        }

        .car-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
            margin-bottom: 50px;
        }

        .car-card {
            background: var(--white);
            border-radius: 8px;
            border: 1px solid var(--border-color);
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.03);
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .car-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 25px rgba(0,0,0,0.08);
            border-color: var(--highlight-color);
        }

        .car-img-wrapper {
            position: relative;
            width: 100%;
            height: 240px;
            overflow: hidden;
            background: #e2e8f0;
        }

        .car-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .car-card:hover .car-img { transform: scale(1.05); }

        .energy-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            padding: 4px 10px;
            border-radius: 4px;
            color: var(--white);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .energy-badge.ev { background-color: var(--badge-ev); }
        .energy-badge.hybrid { background-color: var(--badge-hybrid); }
        .energy-badge.ice { background-color: var(--badge-ice); }

        .condition-tag {
            position: absolute;
            top: 12px;
            right: 12px;
            background: rgba(11, 37, 69, 0.85);
            color: var(--white);
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            backdrop-filter: blur(4px);
        }

        .car-body {
            padding: 18px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .car-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 6px;
            line-height: 1.3;
        }

        .car-subtitle {
            font-size: 12.5px;
            color: var(--text-muted);
            margin-bottom: 15px;
        }

        .car-specs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            background: var(--bg-light);
            padding: 10px 12px;
            border-radius: 6px;
            margin-bottom: 15px;
            font-size: 12.5px;
        }

        .spec-item {
            display: flex;
            align-items: center;
            gap: 6px;
            color: #475569;
        }

        .spec-item i { color: var(--highlight-color); }

        .price-row {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-top: auto;
            padding-top: 12px;
            border-top: 1px dashed var(--border-color);
        }

        .price-label { font-size: 12px; color: var(--text-muted); }

        .price-value {
            font-size: 1.3rem;
            font-weight: 800;
            color: #d97706;
        }

        .car-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-top: 15px;
        }

        .btn-card {
            padding: 8px 0;
            border-radius: 4px;
            font-size: 13px;
            font-weight: 600;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
        }

        .btn-card-primary {
            background: var(--primary-color);
            color: var(--white);
            border: 1px solid var(--primary-color);
        }

        .btn-card-primary:hover { background: var(--highlight-color); border-color: var(--highlight-color); }

        .btn-card-outline {
            background: transparent;
            color: var(--primary-color);
            border: 1px solid var(--border-color);
        }

        .btn-card-outline:hover { background: var(--bg-light); border-color: var(--primary-color); }

        /* 页脚 */
        footer {
            background-color: var(--footer-bg);
            color: #cbd5e1;
            padding: 40px 0 20px;
            font-size: 13.5px;
            margin-top: 60px;
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            padding-bottom: 20px;
            margin-bottom: 20px;
        }

        @media (max-width: 992px) {
            .filter-row { flex-direction: column; align-items: flex-start; }
            .brand-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
            .brand-logo-img, .brand-logo-all { width: 48px; height: 48px; }
        }

        @media (max-width: 600px) {
            .car-grid { grid-template-columns: 1fr; }
            .car-actions { grid-template-columns: 1fr; }
        }