/* ============================================
   配件中心页面样式
   继承官网主色调，独立页面布局
   ============================================ */

/* Hero */
.parts-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    text-align: center;
    color: var(--white);
}
.parts-hero h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 8px;
}
.parts-hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
}

/* 筛选栏 */
.parts-filter {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 60px;
    z-index: 50;
}
.filter-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.filter-btn {
    flex-shrink: 0;
    padding: 8px 20px;
    border: 1.5px solid var(--gray-200);
    border-radius: 24px;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.filter-btn:hover {
    border-color: var(--blue-400);
    color: var(--blue-500);
}
.filter-btn.active {
    background: var(--blue-500);
    border-color: var(--blue-500);
    color: var(--white);
}

/* Section */
.parts-section {
    padding: 48px 0;
}
.parts-section-alt {
    background: var(--gray-50);
}
.section-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--blue-500);
}
.section-header h2 {
    font-size: 28px;
    font-weight: 900;
    color: var(--navy-900);
}
.section-badge {
    font-size: 13px;
    color: var(--blue-500);
    font-weight: 600;
}

.sub-category {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy-700);
    margin: 32px 0 16px;
    padding: 10px 16px;
    background: linear-gradient(90deg, var(--blue-500), var(--blue-400));
    color: var(--white);
    border-radius: 8px;
}

/* 产品网格 */
.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 8px;
}

/* 产品卡片 */
.part-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: transform 0.25s, box-shadow 0.25s;
}
.part-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.part-img {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    padding: 12px;
    overflow: hidden;
}
.part-img img {
    max-height: 180px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.part-info {
    padding: 16px;
}
.part-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 2px;
}
.part-en {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 10px;
}
.part-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.spec {
    font-size: 11px;
    background: var(--gray-50);
    color: var(--gray-700);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

/* CTA */
.parts-cta {
    padding: 64px 0;
    background: var(--navy-900);
    text-align: center;
    color: var(--white);
}
.parts-cta h2 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 8px;
}
.parts-cta p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
}
.cta-phone {
    display: inline-block;
    padding: 16px 48px;
    background: var(--blue-500);
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    border-radius: 32px;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
}
.cta-phone:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 24px rgba(37,99,235,0.4);
}

/* 导航active状态 */
.nav-links a.active {
    color: var(--blue-400) !important;
}

/* 响应式 */
@media (max-width: 768px) {
    .parts-hero { padding: 100px 0 40px; }
    .parts-hero h1 { font-size: 28px; }
    .section-header h2 { font-size: 22px; }
    .parts-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
    .parts-cta h2 { font-size: 24px; }
    .cta-phone { font-size: 20px; padding: 14px 36px; }
}
