/* ===================================
   Dulizhan Frontend Styles
   =================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #0052a3;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Header */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-weight: 700;
    font-size: 24px;
}

.logo-img {
    height: 40px;
    width: auto;
}

/* Navigation */
.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.main-nav a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #0066cc;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 移动端菜单底部 CTA, 桌面端隐藏 (a.nav-cta 提高特异性以压过 .btn 的 display) */
a.nav-cta {
    display: none;
}

@media (max-width: 1200px) {
    .header-inner {
        gap: 14px;
    }

    .main-nav .nav-list {
        gap: 20px;
    }
}

/* Language Switcher */
.lang-switcher select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: #0066cc;
    border-color: #0066cc;
}

.btn-outline:hover {
    background-color: #0066cc;
    color: #fff;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 18px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

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

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

/* Page Section */
.page-section {
    padding: 60px 0;
}

.page-title {
    font-size: 36px;
    margin-bottom: 30px;
    color: #333;
}

.page-content {
    line-height: 1.8;
    color: #555;
}

.page-content h2 {
    font-size: 28px;
    margin: 30px 0 15px;
    color: #333;
}

.page-content h3 {
    font-size: 22px;
    margin: 25px 0 12px;
    color: #333;
}

.page-content p {
    margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
    margin: 16px 0;
    padding-left: 30px;
}

/* Error Section */
.error-section {
    padding: 100px 0;
    text-align: center;
}

.error-content .error-code {
    font-size: 120px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 20px;
}

.error-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.error-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 20px;
}

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

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col p {
    line-height: 1.6;
    color: #bdc3c7;
}

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

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

.footer-col a {
    color: #bdc3c7;
    transition: color 0.3s;
}

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

.contact-list li {
    margin-bottom: 12px;
    color: #bdc3c7;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #34495e;
    border-radius: 50%;
    color: #fff;
    font-weight: 600;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: #0066cc;
}

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

.footer-bottom p {
    color: #bdc3c7;
    margin: 0;
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.footer-links a {
    color: #bdc3c7;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s;
}

/* 移动端导航 (<=992px: 单行头部 + 汉堡下拉面板) */
@media (max-width: 992px) {
    .header-inner {
        height: 64px;
        gap: 12px;
    }

    .header-actions {
        gap: 10px;
    }

    /* 头部独立 CTA 移动端隐藏, 移至菜单面板底部 */
    .header-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* 下拉面板: 悬于头部下方, 自带背景与阴影, 不挤压页面内容 */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 4px 20px;
    }

    .main-nav .nav-list li {
        border-bottom: 1px solid #f2f2f2;
    }

    .main-nav .nav-list li:last-child {
        border-bottom: none;
    }

    .main-nav .nav-list a {
        display: block;
        padding: 14px 4px;
        font-size: 16px;
    }

    a.nav-cta {
        display: block;
        margin: 12px 20px 20px;
    }

    /* 汉堡按钮展开时变 X */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* 语言选择器紧凑化 */
    .lang-switcher select {
        padding: 6px 8px;
        font-size: 14px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ================================================================
   Product Pages
   ================================================================ */

/* Breadcrumbs */
.breadcrumbs {
    padding: 12px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}
.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #666;
}
.breadcrumb-list li + li::before {
    content: '/';
    margin-right: 6px;
    color: #ccc;
}
.breadcrumb-list a {
    color: #555;
    text-decoration: none;
}
.breadcrumb-list a:hover {
    color: var(--primary, #1a73e8);
}

/* Page Hero */
.page-hero {
    padding: 48px 0 32px;
    text-align: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f5e9 100%);
}
.page-hero h1 {
    font-size: 32px;
    margin-bottom: 8px;
}
.page-hero .hero-desc {
    color: #555;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Result count */
.result-count {
    padding: 12px 0;
    font-size: 14px;
    color: #666;
}
.result-count b {
    color: #333;
}

/* Product Grid */
.products-section {
    padding: 32px 0 60px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.product-grid.grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Product Card */
.product-card {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.card-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .card-image img {
    transform: scale(1.05);
}
.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ccc;
    font-size: 14px;
}
.badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}
.badge-hot {
    background: #e74c3c;
}
.badge-new {
    background: #27ae60;
    left: auto;
    right: 8px;
}
.card-body {
    padding: 16px;
    flex: 1;
}
.card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-summary {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    font-size: 14px;
}
.card-meta .price {
    font-weight: 700;
    color: #e74c3c;
}
.card-meta .moq {
    font-size: 12px;
    color: #888;
}
.price-inquiry {
    font-size: 14px;
    color: #f39c12;
    font-weight: 600;
}
.card-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
}
.card-actions .btn {
    flex: 1;
    text-align: center;
    font-size: 13px;
    padding: 8px 12px;
}
.product-card.compact .card-body {
    padding: 12px;
}
.product-card.compact .card-title {
    font-size: 14px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}
.page-link:hover {
    border-color: var(--primary, #1a73e8);
    color: var(--primary, #1a73e8);
}
.page-link.active {
    background: var(--primary, #1a73e8);
    border-color: var(--primary, #1a73e8);
    color: #fff;
}
.page-dots {
    padding: 0 6px;
    color: #999;
}

/* ================================================================
   Product Detail
   ================================================================ */
.product-detail-section {
    padding: 32px 0 60px;
}
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

/* Gallery */
.gallery-main {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.thumb-item {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border: 2px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}
.thumb-item:hover,
.thumb-item.active {
    border-color: var(--primary, #1a73e8);
}
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-wrap {
    margin-top: 24px;
}
.video-wrap h4 {
    margin-bottom: 8px;
    font-size: 15px;
}

/* Info */
.product-info h1 {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 12px;
}
.product-summary {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.price-block {
    background: #fff8f0;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}
.price-row .label {
    font-size: 14px;
    color: #666;
}
.price-value {
    font-size: 24px;
    font-weight: 700;
    color: #e74c3c;
}
.moq-row {
    font-size: 14px;
    color: #555;
}
.moq-row .label {
    color: #888;
}
.cert-row {
    margin-bottom: 20px;
    font-size: 14px;
}
.cert-row .label {
    color: #888;
    margin-right: 8px;
}
.cert-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 4px;
}

/* CTA */
.cta-group {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.cta-group .btn-lg {
    flex: 1;
    min-width: 180px;
    text-align: center;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
}
.btn-alibaba {
    background: #ff6a00;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-alibaba:hover {
    background: #e55d00;
}
.alibaba-icon {
    flex-shrink: 0;
}

/* Quick Specs */
.quick-specs h4 {
    font-size: 15px;
    margin-bottom: 8px;
}
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.spec-table th,
.spec-table td {
    padding: 8px 12px;
    border: 1px solid #eee;
    text-align: left;
}
.spec-table th {
    background: #f8f9fa;
    font-weight: 600;
    width: 35%;
    color: #555;
}
.spec-table.full th {
    width: 30%;
}

/* Tabs */
.product-tabs {
    margin-bottom: 48px;
}
.tab-headers {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #eee;
    margin-bottom: 24px;
}
.tab-btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}
.tab-btn:hover {
    color: var(--primary, #1a73e8);
}
.tab-btn.active {
    color: var(--primary, #1a73e8);
    border-bottom-color: var(--primary, #1a73e8);
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}
.rich-content {
    line-height: 1.8;
    font-size: 15px;
    color: #333;
}
.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
.rich-content h2, .rich-content h3, .rich-content h4 {
    margin: 24px 0 12px;
}
.rich-content p {
    margin-bottom: 12px;
}
.rich-content ul, .rich-content ol {
    padding-left: 24px;
    margin-bottom: 12px;
}
.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.rich-content table th,
.rich-content table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}
.rich-content table th {
    background: #f5f5f5;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.feature-list li {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary, #1a73e8);
}
.feature-list li strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}
.feature-list li span {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Related */
.related-section {
    padding-top: 32px;
    border-top: 1px solid #eee;
}
.related-section .section-title {
    font-size: 22px;
    margin-bottom: 20px;
}

/* Buttons */
.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}
.btn-outline {
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}
.btn-outline:hover {
    border-color: var(--primary, #1a73e8);
    color: var(--primary, #1a73e8);
}

/* Responsive */
@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .product-info h1 {
        font-size: 22px;
    }
    .cta-group {
        flex-direction: column;
    }
    .cta-group .btn-lg {
        min-width: auto;
    }
    .feature-list {
        grid-template-columns: 1fr;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
}

/* ===================================
   Inquiry Page Styles
   =================================== */
.inquiry-section {
    padding: 40px 0 80px;
}

.inquiry-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.inquiry-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.inquiry-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* Product Card in Inquiry */
.inquiry-product-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 24px;
}

.inquiry-product-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.inquiry-product-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.inquiry-product-info .product-sku,
.inquiry-product-info .product-price,
.inquiry-product-info .product-moq {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

/* Form Styles */
.inquiry-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.inquiry-form .form-group {
    display: flex;
    flex-direction: column;
}

.inquiry-form .form-group-full {
    margin-bottom: 16px;
}

.inquiry-form label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.inquiry-form .required {
    color: #e74c3c;
}

.inquiry-form input,
.inquiry-form textarea {
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.inquiry-form input.input-error,
.inquiry-form textarea.input-error {
    border-color: #e74c3c;
}

.inquiry-form textarea {
    resize: vertical;
    min-height: 120px;
}

.field-error {
    display: none;
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
}

.char-count {
    font-size: 12px;
    color: #999;
    text-align: right;
    margin-top: 4px;
}

.form-actions {
    margin-top: 20px;
}

.form-actions .btn-lg {
    min-width: 200px;
}

/* Result Messages */
.inquiry-result {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 15px;
}

.result-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Sidebar */
.inquiry-sidebar .sidebar-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.sidebar-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.benefit-list {
    list-style: none;
    padding: 0;
}

.benefit-list li {
    padding: 8px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.benefit-list li:last-child {
    border-bottom: none;
}

.contact-info-list {
    list-style: none;
    padding: 0;
}

.contact-info-list li {
    padding: 6px 0;
    font-size: 14px;
    color: #555;
}

.contact-info-list a {
    color: #0066cc;
}

.response-time-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* HP field (honeypot) */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 992px) {
    .inquiry-layout {
        grid-template-columns: 1fr;
    }
    .inquiry-sidebar {
        order: -1;
    }
}

@media (max-width: 576px) {
    .inquiry-form .form-row {
        grid-template-columns: 1fr;
    }
    .inquiry-title {
        font-size: 24px;
    }
    .inquiry-product-card {
        flex-direction: column;
    }
}

/* =====================================================================
   P3 - 博客模块样式
   ===================================================================== */

.blog-section {
    padding: 40px 0 60px;
    background: #fafbfc;
}

.blog-header {
    text-align: center;
    margin-bottom: 32px;
}

.blog-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.blog-count {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

.blog-main {
    min-width: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.blog-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.blog-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.blog-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f2f5;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

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

.blog-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #c0c4cc;
}

.blog-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #0066cc;
    background: #e7f1fb;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.blog-card-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-card-title {
    color: #0066cc;
}

.blog-card-excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: #6c757d;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #909399;
    padding-top: 10px;
    border-top: 1px solid #f0f2f5;
}

.blog-views {
    color: #909399;
}

/* 空状态 */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    color: #6c757d;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s;
}

.page-link:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.page-link.active {
    background: #0066cc;
    border-color: #0066cc;
    color: #fff;
    font-weight: 600;
}

/* 侧边栏 */
.blog-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.sidebar-widget h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f2f5;
}

.sidebar-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background .2s, color .2s;
}

.sidebar-cat-list li a:hover {
    background: #f5f7fa;
    color: #0066cc;
}

.sidebar-cat-list li a.active {
    background: #e7f1fb;
    color: #0066cc;
    font-weight: 600;
}

.cat-count {
    font-size: 12px;
    color: #909399;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-item {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f7fa;
    color: #606266;
    border-radius: 12px;
    font-size: 12px;
    transition: all .2s;
    cursor: default;
}

.tag-item:hover {
    background: #e7f1fb;
    color: #0066cc;
}

.sidebar-cta {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    border-color: transparent;
    color: #fff;
}

.sidebar-cta h3 {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, .2);
}

.sidebar-cta p {
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 14px;
}

.sidebar-cta .btn-primary {
    background: #fff;
    color: #0066cc;
    border-color: #fff;
}

.sidebar-cta .btn-primary:hover {
    background: #f0f7ff;
}

/* =====================================================================
   博客详情页
   ===================================================================== */

.article-header {
    text-align: center;
    padding: 20px 0 30px;
}

.article-cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #0066cc;
    background: #e7f1fb;
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 14px;
    text-decoration: none;
}

.article-cat:hover {
    background: #d0e4f7;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0 0 16px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #6c757d;
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-cover {
    margin: 20px 0 30px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f2f5;
}

.article-cover img {
    width: 100%;
    display: block;
}

.article-excerpt {
    font-size: 17px;
    line-height: 1.7;
    color: #495057;
    padding: 18px 22px;
    background: #f8f9fa;
    border-left: 4px solid #0066cc;
    border-radius: 4px;
    margin-bottom: 28px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    font-size: 24px;
    margin: 32px 0 14px;
    color: #1a1a1a;
}

.article-content h3 {
    font-size: 20px;
    margin: 26px 0 12px;
    color: #1a1a1a;
}

.article-content p {
    margin: 0 0 16px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 12px 0;
}

.article-content ul, .article-content ol {
    padding-left: 24px;
    margin: 0 0 16px;
}

.article-content li {
    margin-bottom: 6px;
}

.article-content blockquote {
    margin: 20px 0;
    padding: 12px 20px;
    background: #f8f9fa;
    border-left: 4px solid #0066cc;
    color: #495057;
    font-style: italic;
}

.article-content a {
    color: #0066cc;
    text-decoration: underline;
}

.article-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 14px 18px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.5;
}

.article-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
    color: #d63384;
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0;
    margin-top: 24px;
    border-top: 1px solid #e9ecef;
}

.article-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f5f7fa;
    color: #606266;
    border-radius: 14px;
    font-size: 13px;
    text-decoration: none;
    transition: all .2s;
}

.article-tag:hover {
    background: #0066cc;
    color: #fff;
}

.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.nav-item {
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: all .2s;
    display: block;
}

.nav-item:hover {
    border-color: #0066cc;
    background: #f8fbff;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: #909399;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.nav-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-item.next {
    text-align: right;
}

.article-cta {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: #fff;
    padding: 28px 24px;
    border-radius: 8px;
    text-align: center;
    margin: 30px 0;
}

.article-cta h3 {
    font-size: 22px;
    margin: 0 0 8px;
    color: #fff;
}

.article-cta p {
    font-size: 14px;
    color: rgba(255, 255, 255, .9);
    margin: 0 0 16px;
}

.article-cta .btn {
    background: #fff;
    color: #0066cc;
    border-color: #fff;
}

.article-cta .btn:hover {
    background: #f0f7ff;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
}

.related-list li:last-child {
    border-bottom: none;
}

.related-list a {
    display: block;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: color .2s;
}

.related-list a:hover {
    color: #0066cc;
}

.related-date {
    display: block;
    font-size: 12px;
    color: #909399;
    margin-top: 4px;
}

/* 响应式 */
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 16px;
    }
    .sidebar-widget {
        margin-bottom: 0;
    }
    .article-title {
        font-size: 26px;
    }
    .article-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-header h1 {
        font-size: 24px;
    }
    .article-title {
        font-size: 22px;
    }
    .article-excerpt {
        font-size: 15px;
        padding: 14px 16px;
    }
    .article-content {
        font-size: 15px;
    }
    .article-content h2 {
        font-size: 20px;
    }
    .article-content h3 {
        font-size: 17px;
    }
}

/* ===================================
   P4 首页区块样式 (home)
   =================================== */

/* Hero 轮播 */
.home-hero {
    position: relative;
    overflow: hidden;
    background: #0b1220;
}

.hero-slides {
    position: relative;
    height: 520px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: #12233d;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(6,16,32,.82) 0%, rgba(6,16,32,.45) 60%, rgba(6,16,32,.15) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 640px;
}

.hero-slide-content h1 {
    font-size: 46px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 18px;
}

.hero-slide-content p {
    font-size: 19px;
    opacity: .92;
    margin-bottom: 32px;
}

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

.btn-on-dark:hover {
    background-color: #fff;
    color: #0066cc;
    border-color: #fff;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background .3s;
}

.hero-nav:hover { background: rgba(255,255,255,.32); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    transition: all .3s;
}

.hero-dot.active {
    background: #fff;
    width: 28px;
    border-radius: 5px;
}

/* 通用区块 */
.home-section { padding: 72px 0; }
.home-section:nth-of-type(even) { background-color: #f8f9fa; }

.home-section-head {
    text-align: center;
    margin-bottom: 44px;
}

.home-section-head .section-title { margin-bottom: 12px; }

.section-subtitle {
    font-size: 17px;
    color: #6c757d;
    max-width: 640px;
    margin: 0 auto;
}

.home-section-more {
    text-align: center;
    margin-top: 40px;
}

.container-narrow { max-width: 860px; }

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.category-card {
    display: block;
    text-align: center;
    padding: 32px 20px;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    color: #1a1a1a;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    border-color: #0066cc;
    color: #0066cc;
}

.category-thumb {
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #f0f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-thumb img { width: 100%; height: 100%; object-fit: cover; }
.category-emoji { font-size: 40px; }

.category-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
    font-weight: 600;
}

.category-count { font-size: 13px; color: #909399; }
.category-card:hover .category-count { color: #0066cc; }

/* Brand Story + Stats */
.brand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.brand-text h2 {
    font-size: 34px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.brand-text p {
    font-size: 16px;
    color: #5a6472;
    margin-bottom: 28px;
    line-height: 1.8;
}

.brand-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.stat-item {
    text-align: center;
    padding: 28px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.stat-num {
    font-size: 42px;
    font-weight: 800;
    color: #0066cc;
    line-height: 1;
}

.stat-plus { font-size: 30px; font-weight: 800; color: #0066cc; }

.stat-label {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #6c757d;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    margin: 0;
    display: flex;
    flex-direction: column;
}

.testimonial-stars {
    font-size: 18px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.star-on { color: #ffb400; }
.star-off { color: #dfe3e8; }

.testimonial-card blockquote {
    font-size: 15px;
    color: #495057;
    line-height: 1.8;
    margin: 0 0 22px;
    flex: 1;
}

.testimonial-card figcaption {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-avatar-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0066cc;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.testimonial-meta { display: flex; flex-direction: column; }
.testimonial-meta strong { font-size: 15px; color: #1a1a1a; }
.testimonial-meta em { font-size: 13px; color: #909399; font-style: normal; }

/* FAQ 手风琴 */
.faq-accordion {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    background: #fff;
}

.faq-item { border-bottom: 1px solid #e9ecef; }
.faq-item:last-child { border-bottom: none; }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: left;
    transition: color .3s;
}

.faq-question:hover { color: #0066cc; }

.faq-toggle {
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 400;
    color: #0066cc;
    transition: transform .3s;
}

.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer-inner {
    padding: 0 24px 22px;
    font-size: 15px;
    color: #5a6472;
    line-height: 1.8;
}

/* 滚动显现动效 (JS 门控: <html class="js"> 时才隐藏) */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

.js [data-reveal].revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* 首页 CTA 微调 */
.home-cta { text-align: center; }
.home-cta .hero-buttons { margin-top: 8px; }

/* 首页响应式 */
@media (max-width: 992px) {
    .hero-slides { height: 440px; }
    .hero-slide-content h1 { font-size: 36px; }
    .brand-grid { grid-template-columns: 1fr; gap: 40px; }
    .home-section { padding: 56px 0; }
    .section-title { font-size: 30px; }
}

@media (max-width: 768px) {
    .hero-slides { height: 400px; }
    .hero-slide-content h1 { font-size: 28px; }
    .hero-slide-content p { font-size: 16px; }
    .hero-nav { display: none; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .brand-stats { gap: 16px; }
    .stat-num { font-size: 34px; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .faq-question { font-size: 15px; padding: 16px 18px; }
    .faq-answer-inner { padding: 0 18px 18px; }
}

@media (max-width: 480px) {
    .hero-slides { height: 360px; }
    .hero-slide-content h1 { font-size: 24px; }
    .category-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   FAQ 页 (/{lang}/faq/) — 手风琴本体样式见上方「FAQ 手风琴」
   ================================================================ */
.faq-page { padding: 40px 0 60px; }
.faq-page .faq-question { font-family: inherit; }
.faq-group + .faq-group { margin-top: 36px; }
.faq-group-title {
    font-size: 22px;
    margin-bottom: 16px;
    color: #1a1a1a;
}
.faq-cta {
    text-align: center;
    margin-top: 48px;
    padding: 44px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}
.faq-cta h2 { font-size: 26px; margin-bottom: 8px; }
.faq-cta p { color: #555; margin-bottom: 22px; }
@media (max-width: 768px) {
    .faq-page { padding: 28px 0 44px; }
    .faq-cta h2 { font-size: 22px; }
}
