/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 4px;
}

/* Contact Us Page */
.contact-section {
    padding: 24px 0;
}
.brand-banner { 
    display:flex; justify-content:center; align-items:center; 
    margin-bottom: 8px;
}
.brand-banner h1 { 
    font-size: 48px; font-weight: 800; letter-spacing: 2px; color:#2c3e50; 
}
.contact-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 16px;
    border-bottom: 2px solid #f0c419;
    display: inline-block;
    padding-bottom: 6px;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    align-items: start;
}
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
.contact-form .form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}
.contact-form label { font-weight: 700; margin-bottom: 8px; font-size: 14px; }
.contact-form .req { color: #e74c3c; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: 16px;
    background: #fff;
    outline: none;
}
.contact-form input::placeholder { color:#b0b6be; }
.contact-form textarea {
    border-radius: 14px;
    resize: vertical;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
    transform: translateX(4px);
}
.form-actions {
    margin-top: 12px;
}
.btn.btn-primary {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 10px 18px;
    border-radius: 24px;
    cursor: pointer;
}
.btn.btn-primary:hover { opacity: 0.9; }

.contact-aside .brand-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}
.contact-aside .brand-visual img {
    max-width: 100%;
    height: auto;
}
.aside-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 768px) {
    .aside-columns {
        grid-template-columns: 1fr;
    }
}
.aside-block h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 8px 0 12px;
    border-bottom: 2px solid #e5e7eb;
    display: inline-block;
    padding-bottom: 4px;
}
.aside-block p { line-height: 1.8; }

/* Top Header */
.top-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
    font-size: 13px;
    display: none;
}

@media (min-width: 768px) {
    .top-header {
        display: block;
    }
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left span {
    color: #666;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.auth-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    color: #007bff;
}

/* Language switcher */
.lang-switcher { position: relative; }
.lang-btn { background: #f6f7f8; color: #333; border: 1px solid #e5e7eb; border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: 12px; }
.lang-menu { position: absolute; right: 0; top: 110%; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; list-style: none; margin: 0; padding: 6px 0; min-width: 120px; display: none; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.lang-menu li { padding: 6px 10px; font-size: 12px; color: #111; cursor: pointer; white-space: nowrap; }
.lang-menu li:hover { background: #f3f4f6; }

/* Ensure language dropdown overlays main header */
.top-header { position: relative; z-index: 1200; }
.lang-switcher { position: relative; z-index: 1300; }
.lang-menu { z-index: 1400; }

/* Main Header */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(151, 164, 175, 0.1);
    position: relative;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    padding: 8px 0;
    position: relative;
    max-width: 1800px;
    margin: 0 auto;
    padding-left: 4px;
    padding-right: 4px;
}

.logo {
    flex-shrink: 0;
    margin-right: 30px;
}

.logo img {
    height: 100px;
    width: auto;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: none;
}

@media (min-width: 768px) {
    .main-nav {
        display: block;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #007bff;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 230px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

/* Caret inline with text */
.nav-caret { display:inline-block; width:auto; height:auto; margin-left:6px; opacity:1; vertical-align:middle; }
.nav-caret::before { content: "▾"; font-size: 12px; line-height: 1; color: currentColor; }

/* Space the two dropdown groups apart more */
.nav-menu { gap: 40px; }

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
}

/* Support Info */
.support-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.support-info i {
    font-size: 24px;
    color: #666;
}

.support-text {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.support-text strong {
    font-size: 14px;
    color: #333;
}

.support-text span {
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.support-text small {
    font-size: 11px;
    color: #666;
}

/* Search Bar */
.search-bar {
    background-color: #000;
    padding: 10px 0;
}

.search-content {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 4px;
}

.categories-dropdown {
    position: relative;
}

.categories-btn {
    background: transparent;
    color: #fff;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 1px solid #555;
}

.categories-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.categories-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.categories-dropdown:hover .categories-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.categories-menu a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s;
}

.categories-menu a:hover {
    background-color: #f8f9fa;
}

.search-input-container {
    flex: 1;
    display: flex;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 25px 0 0 25px;
    outline: none;
    font-size: 14px;
}

.search-btn {
    background-color: #666;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #555;
}

.header-icons {
    display: flex;
    gap: 8px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Section
   轮播图区域，包含品牌宣传语、主视觉图片和按钮。
   主要参数：
   - .hero-section：控制整体背景和上下内边距（padding），影响轮播区高度。
   - .hero-content：flex布局，左右分布文字和图片。
   - .hero-image img：主图，max-width和height可调节图片尺寸。
*/
.hero-section {
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
    height: 500px; /* 可根据需要调整高度 */
    padding: 0;
    margin: 0 auto;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-section .container {
    width: 100vw;
    max-width: 100vw;
    padding: 0;
    margin: 0;
}
.hero-content {
    display: flex;
    align-items: center;
    gap: 40px; /* 控制左右内容间距 */
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.2;
}

.hero-text h1 sup {
    font-size: 20px;
    top: -8px;
}

.hero-text .highlight {
    font-size: 55px;
    font-weight: bold;
    display: block;
}

.hero-text h2 {
    color: #0066cc;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.4;
}

.shop-btn {
    background-color: #000;
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 7px;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.3s;
}

.shop-btn:hover {
    background-color: #333;
}

.hero-image {
    flex: 1;
    text-align: center;
}
.hero-image img {
    max-width: 100%;
    height: 380px; /* 可调整主图高度，auto为自适应 */
    object-fit: contain;
}

.hero-carousel {
    position: relative;
    width: 100vw;
    height: 500px;
    max-width: 100vw;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-carousel-img {
    position: absolute;
    left: 0; top: 0;
    width: 100vw;
    height: 500px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
}
.hero-carousel-img.active {
    opacity: 1;
    z-index: 2;
}
.hero-carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.hero-indicator {
    width: 16px;
    height: 6px;
    border-radius: 3px;
    background: #fff;
    opacity: 0.5;
    transition: opacity 0.2s;
    cursor: pointer;
}
.hero-indicator.active {
    opacity: 1;
    background: #1976d2;
}

/* Filter Section */
.filter-section {
    background-color: #f8f9fa;
    padding: 40px 0;
}

.filter-tabs {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0;
}

.filter-tab {
    background: transparent;
    border: 2.5px solid transparent; /* 边框加粗，未激活时透明 */
    border-radius: 0; /* 无圆角 */
    padding: 20px 40px; /* 更高更宽 */
    font-size: 24px; /* 更大字体 */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 12px;
    box-sizing: border-box;
}

.filter-tab.active {
    background-color: #000;
    color: #fff;
    border-color: #fff; /* 激活时白色边框 */
    border-bottom-color: #000; /* 底部黑色与内容衔接 */
    z-index: 2;
}

.filter-tab:not(.active) {
    color: #666;
}

.filter-tab:not(.active):hover {
    background-color: #f8f9fa;
    color: #333;
}

.filter-content {
    background-color: #000;
    color: #fff;
    padding: 30px;
    border-radius: 0 4px 4px 4px;
}

.filter-content.hidden {
    display: none;
}

/* Filter Section 优化
   - .filter-content h3：筛选卡片标题字体（适当放大）
   - .form-group select, .form-group input：下拉框和输入框字体（适当放大）
   - .filter-form .search-btn, .number-form .search-btn：搜索按钮尺寸（适当放大）
*/
.filter-content h3 {
    font-size: 22px; /* 标题字体放大 */
    margin-bottom: 24px;
    font-weight: normal;
}

.filter-form,
.number-form {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 16px 20px; /* 输入框高度加大 */
    border: none;
    border-radius: 4px;
    font-size: 17px; /* 输入框字体放大 */
    outline: none;
}

.filter-form .search-btn,
.number-form .search-btn {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff; /* 边框加粗 */
    padding: 20px 48px; /* 按钮更大 */
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px; /* 按钮字体更大 */
    font-weight: 700;
    transition: all 0.3s;
    white-space: nowrap;
    /* 搜索按钮整体放大，提升可点击性和视觉权重 */
}

.filter-form .search-btn:hover,
.number-form .search-btn:hover {
    background-color: #fff;
    color: #000;
}

/* Browse Section */
.browse-section {
    background-color: #fff;
    padding: 60px 0;
}

.browse-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.browse-category h4 {
    font-size: 20px;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

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

.brand-item,
.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.brand-item:hover,
.category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #ddd;
}

.brand-icon,
.category-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    border-radius: 50%;
    overflow: hidden;
}

.brand-icon img,
.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-item span,
.category-item span {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.most-viewed {
    text-align: center;
}

.most-viewed-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s;
}

.most-viewed-btn:hover {
    background-color: #333;
}

/* Products Section */
.products-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.view-all-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 15px 0;
    width: 100%;
    max-width: 400px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s;
}

.view-all-btn:hover {
    background-color: #333;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 24px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    min-width: 0;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.more-details {
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.more-details:hover {
    color: #007bff;
}

/* Footer */
.footer {
    background: #000;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: normal;
}

.contact-info p {
    margin-bottom: 10px;
    color: #ccc;
}

.address h4 {
    margin: 15px 0 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.address p {
    color: #aaa;
    line-height: 1.5;
    font-size: 13px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-link {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: #555;
    border-radius: 4px;
    text-align: center;
    line-height: 35px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-link:hover {
    background: #666;
}

.security-badges {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #444;
    padding: 12px 15px;
    border-radius: 6px;
}

.badge i {
    font-size: 20px;
    color: #fff;
}

.badge strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}

.badge p,
.badge small {
    color: #ccc;
    font-size: 11px;
    margin: 0;
}

.popular-parts h4 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.part-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #444;
    border-radius: 6px;
    transition: background-color 0.3s;
    cursor: pointer;
}

.part-item:hover {
    background: #555;
}

.part-image {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.part-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.part-item span {
    font-size: 12px;
    color: #ccc;
    text-transform: uppercase;
}

.newsletter h4 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 4px;
    outline: none;
    font-size: 13px;
}

.newsletter-btn {
    background-color: #666;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: background-color 0.3s;
}

.newsletter-btn:hover {
    background-color: #777;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    display: flex;
    align-items: center;
    gap: 15px;
}

.copyright span {
    color: #ccc;
    font-size: 13px;
}

.payment-methods {
    display: flex;
    gap: 8px;
}

.payment-methods i {
    font-size: 20px;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 1800px) {
    .container {
        max-width: 1400px;
        padding: 0 8px;
    }
    
    .header-content {
        max-width: 1400px;
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .search-content {
        max-width: 1400px;
        padding: 0 8px;
    }
}

@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
        padding: 0 12px;
    }
    
    .header-content {
        max-width: 1200px;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .browse-grid {
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .browse-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .brand-grid,
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .filter-form,
    .number-form {
        flex-direction: column;
    }
    
    .form-group {
        min-width: auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .footer-links {
        justify-content: center;
        gap: 20px;
    }
    
    .search-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-input-container {
        order: 1;
    }
    
    .categories-dropdown {
        order: 2;
    }
    
    .header-icons {
        order: 3;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 24px;
    }
    
    .brand-grid,
    .category-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .parts-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 8px;
    }
}

/* Browse Section 三列布局与纵向虚线分隔 */
.browse-grid-3col {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: stretch;
    gap: 0;
    margin-bottom: 40px;
}
.browse-make, .browse-category-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}
.browse-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 36px;
    text-align: center;
    color: #374151;
    letter-spacing: 1px;
}
.browse-divider-vertical {
    width: 2px;
    min-height: 340px;
    height: 90%;
    margin: 0 auto;
    border-right: 2px dashed #bbb;
    align-self: center;
}
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px 32px;
    justify-items: center;
    align-items: center;
}
.brand-item {
    width: 150px;
    height: 150px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    padding: 0;
    transition: box-shadow 0.2s, border-color 0.2s;
    overflow: hidden;
}
.brand-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    border-color: #1976d2;
}
.brand-icon {
    width: 90px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
}
.brand-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: #fff;
}
.brand-item span {
    font-size: 18px;
    font-weight: 500;
    color: #222;
    text-align: center;
    margin-top: 0;
    line-height: 1.2;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
}

/* VIEW ALL BODY KITS 黑色大卡片和按钮样式 */
.view-all-card {
    background: #000;
    border-radius: 8px;
    width: 100%;
    margin: 0 auto 28px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
}
.view-all-btn {
    width: 100%;
    max-width: 520px;
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 6px;
    font-size: 1.4rem;
    font-weight: 800;
    padding: 12px 0;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: none;
    transition: background 0.2s, color 0.2s, border 0.2s;
    outline: none;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    white-space: nowrap;
    line-height: 1.2;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}
.view-all-btn:hover {
    background: #222;
    color: #fff;
    border-color: #fff;
}
.most-viewed-btn {
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Engines Info & Carousel Section 样式 */
.engines-section {
    background: #fff;
    padding: 48px 0 32px 0;
    margin-top: 0;
}
.engines-flex {
    margin-top: 0;
    padding-top: 0;
    display: flex;
    gap: 36px;
    align-items: center; /* 让轮播区上下居中 */
}
.engines-info {
    width: 320px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.engines-info-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
}
.engines-info-item:last-child {
    border-bottom: none;
}
.engines-info-item i {
    font-size: 2rem;
    color: #222;
    flex-shrink: 0;
}
.engines-info-item strong {
    font-size: 1.08rem;
    color: #222;
    font-weight: 700;
}
.engines-info-item p {
    font-size: 0.98rem;
    color: #666;
    margin: 0;
}
.engine-carousel {
    flex: 1;
    display: flex;
    gap: 32px;
    align-items: stretch;
    position: relative;
    min-width: 0;
}
.engine-carousel-horizontal {
    display: flex;
    gap: 30px;/* 轮播图间距 */
    align-items: center; /* 轮播卡片在自身区域内上下居中 */
    position: relative;
    min-width: 0;
    justify-content: center;
    max-width: 1500px;/* 轮播图宽度 */
    margin: 0 auto;
}
.engine-card-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    min-width: 0;
}
.engine-card-flex img {
    flex: 1 1 0;
    width: 100%;
    max-width: none;
    height: 240px;
    object-fit: contain;
    border-radius: 10px;
    background: #f8f9fa;
    display: block;
    margin: 0;
}
.engine-card {
    background: #fff;
    border: 2px solid #222;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 0 32px;
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    width: 48%;
    max-width: none;
    height: 260px;/* 轮播图高度 */
    opacity: 1;
    transition: opacity 0.3s, box-shadow 0.3s;
}
.engine-card.active {
    opacity: 1;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 2;
}
.engine-card img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
    margin-right: 28px;
    background: #f8f9fa;
}
.engine-card-info {
    flex: 1 1 0;
    width: 100%;
    text-align: left;
    padding-left: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
.engine-title {
    color: #1976d2;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 6px;
}
.engine-num {
    color: #e53935;
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 8px;
}
.engine-desc {
    color: #222;
    font-size: 1rem;
    margin-top: 4px;
}
.engine-carousel-indicators {
    position: absolute;
    left: 50%;
    bottom: -24px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.engine-carousel-indicators .indicator {
    width: 18px;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    display: inline-block;
    transition: background 0.2s;
}
.engine-carousel-indicators .indicator.active {
    background: #222;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.prev-arrow { left: 8px; }
.next-arrow { right: 8px; }
.carousel-arrow:hover {
    background: #1976d2;
}
@media (max-width: 1100px) {
    .engines-flex {
        flex-direction: column;
        gap: 24px;
    }
    .engines-info {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        padding: 16px 0;
    }
    .engine-card img {
        width: 100%;
        max-width: 320px;
        height: 180px;
    }
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px 32px; /* 对齐左侧品牌区的行/列间距 */
    justify-items: center;
    width: 100%;
    max-width: none;
    margin: 0;
}
.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    width: 150px;  /* 与品牌卡片一致的宽度 */
    height: 150px; /* 与品牌卡片一致的高度，保证两侧行高平行 */
    box-sizing: border-box;
    min-width: 0;
}
.category-item span {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 8px;
}
.category-icon {
    width: 90px;
    height: 60px;
    margin-bottom: 8px;
    border-radius: 0; /* 不使用圆形裁剪 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
@media (min-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 1199px) and (min-width: 769px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}
@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}