/* GUDCAR 网站样式 */
:root {
    --primary: #ff6b00;
    --primary-dark: #e55a00;
    --secondary: #1a1a2e;
    --accent: #16213e;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 6px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #fff;
}

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 28px;
    width: auto;
    display: block;
}

.logo-subtitle {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: rgba(255,107,0,0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-link:hover {
    color: var(--primary);
}

/* 语言切换 */
.lang-switcher {
    display: flex;
    gap: 4px;
    background: var(--light);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    color: var(--gray);
    transition: all 0.2s;
}

.lang-btn.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 100px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.badge {
    background: rgba(255,255,255,0.15);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1fad53;
}

.btn-telegram {
    background: #0088cc;
    color: #fff;
}

.btn-telegram:hover {
    background: #006699;
}

/* Section */
.section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 60px;
}

/* 优势卡片 */
.advantages {
    background: var(--light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
}

.advantage-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.advantage-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* 车型展示 */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.model-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.model-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.model-header {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: #fff;
    padding: 30px;
}

.model-header h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.model-stats {
    display: flex;
    gap: 20px;
    opacity: 0.9;
    font-size: 14px;
}

.model-body {
    padding: 24px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.category-item:hover {
    background: rgba(255,107,0,0.1);
}

.category-name {
    font-weight: 500;
}

.category-count {
    background: var(--primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* 产品目录 */
.catalog {
    background: #fff;
}

.catalog-filters {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #eee;
    background: #fff;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary);
    color: var(--primary);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.part-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.3s;
}

.part-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.part-model {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.part-number {
    font-family: monospace;
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 8px;
}

.part-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.4;
}

.part-stock {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.stock-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.stock-badge.original {
    background: #e8f5e9;
    color: var(--success);
}

.stock-badge.aftermarket {
    background: #fff3e0;
    color: #f57c00;
}

.stock-badge.used {
    background: #fce4ec;
    color: #c2185b;
}

.part-actions {
    display: flex;
    gap: 8px;
}

.part-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 10px 16px;
    font-size: 14px;
}

/* 搜索 */
.search-section {
    background: var(--secondary);
    color: #fff;
    padding: 60px 20px;
}

.search-box {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
}

.search-input {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
    border: none;
    border-radius: var(--radius);
    outline: none;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(255,107,0,0.3);
}

/* 联系我们 */
.contact-section {
    background: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,107,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item-content h4 {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 4px;
}

.contact-item-content p {
    font-size: 16px;
    font-weight: 600;
}

.contact-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.contact-actions .btn {
    flex: 1;
    justify-content: center;
}

/* 页脚 */
.footer {
    background: var(--secondary);
    color: #fff;
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo-text {
    margin-bottom: 16px;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.6;
    font-size: 14px;
}

/* 新版产品卡片（带图片） */
.part-card-v2 {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.part-card-v2:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.part-image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--light);
}

.part-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.part-card-v2:hover .part-image {
    transform: scale(1.05);
}

.part-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.part-content {
    padding: 20px;
}

.part-model-tag {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.part-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 42px;
}

.part-actions-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 13px;
}

/* 库存标签样式优化 */
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.stock-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.stock-badge.original::before {
    background: var(--success);
}

.stock-badge.aftermarket::before {
    background: #f57c00;
}

.stock-badge.used::before {
    background: #c2185b;
}

/* 图片上传提示 */
.image-upload-notice {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 2px dashed var(--primary);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    margin: 20px 0;
}

.image-upload-notice h3 {
    color: var(--primary);
    margin-bottom: 12px;
}

.image-upload-notice p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* 响应式 */
@media (max-width: 768px) {
    .navbar-container {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 16px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero {
        padding: 60px 16px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .section {
        padding: 60px 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .catalog-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #fff;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    padding: 40px;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-title {
    font-size: 24px;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--gray);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #eee;
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
}
