/* ==========================================================
   辉达利模具 — 全站样式表
   Design tokens for Huidali Mold (深圳市辉达利模具科技有限公司)
   ========================================================== */

/* ---------- Design Tokens ---------- */
:root {
    /* Brand Colors */
    --accent-blue: #014DB2;
    --accent-blue-dark: #001745;
    --accent-blue-light: #4F8ED9;
    --accent-green: #10B961;
    --accent-amber: #F59E0B;

    /* Backgrounds */
    --bg-card: #FFFFFF;
    --bg-primary: #F8F9FA;
    --bg-section-dark: #0A1628;

    /* Borders */
    --border-strong: #D6D9DB;
    --border-subtle: #EBEBEB;

    /* Text */
    --text-primary: #0A1628;
    --text-secondary: #6B7073;
    --text-white: #FFFFFF;

    /* Radius */
    --radius-button: 8px;
    --radius-card: 16px;
    --radius-tag: 6px;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 48px;
    --spacing-2xl: 80px;

    /* Layout */
    --max-width: 1440px;
    --side-padding: 120px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(1, 77, 178, 0.06);
    --shadow-md: 0 4px 16px rgba(1, 77, 178, 0.08);
    --shadow-lg: 0 8px 32px rgba(1, 77, 178, 0.12);

    /* Typography */
    --font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.text-tag {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-blue-light);
}

.text-section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

.text-section-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    text-align: center;
}

/* ---------- Layout Utilities ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--side-padding);
}

.section {
    padding: var(--spacing-2xl) 0;
}

.section-dark {
    background: var(--bg-section-dark);
    color: var(--text-white);
}

.section-light {
    background: var(--bg-primary);
}

.section-white {
    background: #FFFFFF;
}

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

.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }

/* ---------- Header / Navigation ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-subtle);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-blue);
    text-decoration: none;
}

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

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
}

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

.nav-link {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-blue);
    font-weight: 500;
}

/* ---------- Language Toggle ---------- */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border: 1.5px solid var(--accent-blue);
    border-radius: 20px;
    background: transparent;
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}

.lang-toggle:hover {
    background: var(--accent-blue);
    color: #FFFFFF;
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-button);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-blue);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--accent-blue-dark);
}

.btn-secondary {
    background: #FFFFFF;
    color: var(--accent-blue);
}

.btn-secondary:hover {
    background: var(--bg-primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

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

.btn-header {
    padding: 10px 24px;
    font-size: 14px;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 14px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 80px var(--side-padding);
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    text-align: center;
    background: linear-gradient(135deg, #014DB2 0%, #001745 100%);
    color: var(--text-white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-white);
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    max-width: 800px;
    color: var(--text-white);
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.8;
    max-width: 640px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

/* Page Hero (smaller, for inner pages) */
.page-hero {
    padding: 80px var(--side-padding);
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    text-align: center;
    background: var(--bg-section-dark);
    color: var(--text-white);
}

.page-hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
}

.page-hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.7;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px var(--side-padding);
    background: #FFFFFF;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    color: var(--accent-blue);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
}

/* ---------- Cards ---------- */
.card {
    background: #FFFFFF;
    border-radius: var(--radius-card);
    padding: 32px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-bordered {
    border: 1px solid var(--border-subtle);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card-desc {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- Grid ---------- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

/* ---------- Factory Cards ---------- */
.factory-card {
    background: #FFFFFF;
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.factory-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.factory-card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: var(--bg-primary);
}

.factory-card-content {
    padding: 28px;
}

.factory-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.factory-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ---------- CTA Section ---------- */
.cta-section {
    padding: 64px var(--side-padding);
    background: var(--accent-blue);
    color: var(--text-white);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-white);
}

.cta-subtitle {
    font-size: 18px;
    opacity: 0.8;
}

/* ---------- Footer ---------- */
.footer {
    padding: 64px var(--side-padding) 32px;
    background: var(--bg-section-dark);
    color: var(--text-white);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-white);
    text-decoration: none;
}

.footer-logo .logo-img {
    height: 36px;
    width: auto;
    background: #FFFFFF;
    padding: 6px 8px;
    border-radius: 6px;
}

.footer-logo .logo-text {
    color: var(--text-white);
}

.footer-desc {
    font-size: 14px;
    opacity: 0.6;
    line-height: 1.6;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 120px;
}

.footer-col-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
}

.footer-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text-white);
}

.footer-copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    opacity: 0.5;
}

/* ---------- Timeline ---------- */
.timeline-item {
    display: flex;
    gap: 32px;
    align-items: center;
    padding: 20px 0;
}

.timeline-year {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-blue);
    min-width: 120px;
}

.timeline-desc {
    font-size: 16px;
    color: var(--text-primary);
}

/* ---------- Company Section ---------- */
.company-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.company-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: var(--radius-card);
}

.company-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.company-text + .company-text {
    margin-top: 20px;
}

/* ---------- Products Grid ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ---------- Featured Case ---------- */
.featured-case {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px;
    background: #FFFFFF;
    border-radius: var(--radius-card);
}

.featured-case-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
}

.featured-case-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 16px;
}

.featured-case-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ---------- Contact Section ---------- */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}

.form-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.form-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-button);
    background: #FFFFFF;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-textarea {
    min-height: 140px;
    padding: 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-button);
    background: #FFFFFF;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    resize: vertical;
    transition: border-color 0.2s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.info-card {
    background: var(--bg-section-dark);
    color: var(--text-white);
    border-radius: var(--radius-card);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-label {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.5;
}

.info-value {
    font-size: 16px;
    font-weight: 500;
}

/* ---------- Location Cards ---------- */
.location-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.location-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.location-map {
    width: 100%;
    height: 200px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 12px;
    position: relative;
    overflow: hidden;
}

.location-content {
    padding: 28px;
}

.location-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.location-address {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- News Page ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: #FFFFFF;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-primary);
}

.news-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.news-card-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.news-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.news-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.news-card-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(1, 77, 178, 0.08);
    color: var(--accent-blue);
    border-radius: var(--radius-tag);
    font-size: 12px;
    font-weight: 500;
    width: fit-content;
}

.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border-radius: var(--radius-card);
    border: 1px dashed var(--border-strong);
}

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #FFFFFF;
    border-radius: var(--radius-card);
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
}

.modal-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
}

.modal-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(1, 77, 178, 0.08);
    color: var(--accent-blue);
    border-radius: var(--radius-tag);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 8px;
}

.modal-date {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.modal-body {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.modal-body p + p {
    margin-top: 16px;
}

/* ---------- Mobile Menu ---------- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.2s ease;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    :root {
        --side-padding: 60px;
    }
    .hero-title { font-size: 44px; }
    .page-hero-title { font-size: 36px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .products-grid,
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --side-padding: 24px;
        --spacing-2xl: 48px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #FFFFFF;
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border-subtle);
        gap: 20px;
    }

    .nav.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .header-cta-desktop {
        display: none;
    }

    .btn-header-download {
        padding: 8px 12px;
    }
    .btn-header-download .btn-text {
        display: none;
    }

    .lang-toggle {
        order: -1;
    }

    .hero {
        padding: 60px var(--side-padding);
        min-height: 480px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .page-hero-title {
        font-size: 32px;
    }

    .stats-bar {
        flex-wrap: wrap;
        gap: 24px;
        justify-content: center;
    }

    .stat-item {
        flex: 1 1 40%;
    }

    .grid-4,
    .grid-3,
    .grid-2,
    .products-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .company-section,
    .featured-case,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 32px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .modal {
        padding: 24px;
    }

    .modal-title {
        font-size: 22px;
    }
}

/* ---------- Factory Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
}

/* ---------- Equipment Table ---------- */
.equipment-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    font-size: 14px;
}

.equipment-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--bg-section-dark);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.equipment-table th:first-child { border-radius: 8px 0 0 0; }
.equipment-table th:last-child { border-radius: 0 8px 0 0; }

.equipment-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.equipment-table tr:hover td {
    background: var(--bg-primary);
}

.equipment-table .eq-qty {
    font-weight: 600;
    color: var(--accent-blue);
    text-align: center;
}

/* ---------- Partner Section ---------- */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.partner-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.partner-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
}

/* ---------- Process Flow ---------- */
.process-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    justify-content: center;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    max-width: 130px;
    text-align: center;
}

.process-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.process-step-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

.process-arrow {
    display: flex;
    align-items: center;
    color: var(--accent-blue-light);
    font-size: 20px;
    align-self: center;
    margin-top: 18px;
}

/* ---------- Certification Badge ---------- */
.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(1, 77, 178, 0.08);
    border: 1px solid rgba(1, 77, 178, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-blue);
}

.cert-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    text-align: center;
    transition: transform 0.2s ease;
}

.cert-badge-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cert-badge-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(1, 77, 178, 0.08);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-badge-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.cert-badge-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---------- Stat Highlight ---------- */
.stat-highlight {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.stat-highlight-item {
    text-align: center;
    padding: 24px;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
}

.stat-highlight-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-blue);
    line-height: 1;
}

.stat-highlight-unit {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-blue);
    margin-left: 4px;
}

.stat-highlight-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ---------- Software Tags ---------- */
.software-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
}

.software-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #FFFFFF;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.software-tag:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-1px);
}

/* ---------- Section Image ---------- */
.section-image {
    width: 100%;
    max-width: 900px;
    margin: 32px auto 0;
    border-radius: var(--radius-card);
    overflow: hidden;
}

.section-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- Dev Plan ---------- */
.dev-plan-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.dev-plan-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ---------- Responsive for new components ---------- */
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .partner-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-highlight { grid-template-columns: repeat(2, 1fr); }
    .dev-plan-card { grid-template-columns: 1fr; }
    .process-flow { flex-direction: column; align-items: center; }
    .process-arrow { transform: rotate(90deg); margin: 0; }
    .vn-highlight-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .vn-dept-grid { grid-template-columns: 1fr !important; }
}

/* ---------- Factory Section Banner ---------- */
.factory-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.factory-banner-china {
    background: linear-gradient(135deg, rgba(1, 77, 178, 0.08) 0%, rgba(1, 77, 178, 0.03) 100%);
    border-left: 6px solid var(--accent-blue);
}

.factory-banner-vietnam {
    background: linear-gradient(135deg, rgba(16, 185, 97, 0.08) 0%, rgba(16, 185, 97, 0.03) 100%);
    border-left: 6px solid var(--accent-green);
}

.factory-banner-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
}

.factory-banner-icon-china {
    background: var(--accent-blue);
}

.factory-banner-icon-vietnam {
    background: var(--accent-green);
}

.factory-banner-text {
    flex: 1;
}

.factory-banner-name {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.factory-banner-name-china {
    color: var(--accent-blue);
}

.factory-banner-name-vietnam {
    color: var(--accent-green);
}

.factory-banner-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.factory-banner-stats {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
}

.factory-banner-stat {
    text-align: center;
}

.factory-banner-stat-num {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.factory-banner-stat-num-china {
    color: var(--accent-blue);
}

.factory-banner-stat-num-vietnam {
    color: var(--accent-green);
}

.factory-banner-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Equipment category sub-header within factory section */
.equip-cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    margin-top: 40px;
}

.equip-cat-header:first-of-type {
    margin-top: 0;
}

.equip-cat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    flex-shrink: 0;
}

.equip-cat-icon-china {
    background: var(--accent-blue);
}

.equip-cat-icon-vietnam {
    background: var(--accent-green);
}

.equip-cat-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.equip-cat-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: auto;
}

/* Factory badge tag for gallery items */
.gallery-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    z-index: 2;
}

.gallery-tag-china {
    background: var(--accent-blue);
}

.gallery-tag-vietnam {
    background: var(--accent-green);
}

@media (max-width: 768px) {
    .factory-banner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .factory-banner-stats {
        justify-content: center;
    }
    .equip-cat-subtitle {
        display: none;
    }
}

/* ===== Download Section ===== */
.download-section {
    padding: 48px 0;
    background: var(--bg-primary);
}

.download-card {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 32px 40px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}

.download-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.download-icon-wrap {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-icon-wrap svg {
    color: #FFFFFF;
}

.download-info {
    flex: 1;
    min-width: 0;
}

.download-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.download-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.download-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.download-meta::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    flex-shrink: 0;
}

.download-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-blue);
    color: #FFFFFF;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-download:hover {
    background: var(--accent-blue-light);
    transform: translateY(-1px);
}

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--accent-blue);
    border: 1.5px solid var(--accent-blue);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-view:hover {
    background: rgba(1, 77, 178, 0.08);
}

/* Footer download link */
.footer-download-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.footer-download-link:hover {
    background: rgba(255,255,255,0.15);
    color: #FFFFFF;
}

.footer-download-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Header PDF download button */
.btn-header-download {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #E63946 0%, #C1121F 100%);
    color: #FFFFFF !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(230, 57, 70, 0.25);
}

.btn-header-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

.btn-header-download svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-header-download::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background: #00C853;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.85; }
}

/* Mobile responsive: hide text, show icon only */
@media (max-width: 1200px) {
    .btn-header-download {
        padding: 8px 12px;
    }
    .btn-header-download .btn-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .download-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        gap: 20px;
    }
    .download-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}