/* --- 1. Global Setup --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    color: #111;
    background-color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.section-padding { padding: 30px 20px; }
.history-heading { padding: 15px 20px; }

/* --- 2. Header (与 Home 页同步) --- */
header {
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}
.logo-container { display: flex; align-items: center; gap: 10px; }
.logo-svg { height: 28px; }
.logo-text { font-size: 18px; font-weight: 700; letter-spacing: -0.5px; }
nav ul { display: flex; list-style: none; gap: 25px; }
nav a { font-size: 13px; font-weight: 500; text-transform: uppercase; color: #666; text-decoration: none; padding: 8px 16px; border-radius: 999px; transition: background-color 0.25s ease, color 0.25s ease; }
nav a:hover { color: #0070c0; }
nav a.active { background: #0070c0; color: #fff; }
nav a.active:hover { color: #fff; }

/* ====================== About Container ====================== */
/* 与 home page 的 .container 保持一致 */
.about-container {
    max-width: 100%;
    width: 100%;
    margin-top: 0;
}

/* PC 端额外优化（与 home page 的 experience 部分风格对齐） */
@media (min-width: 769px) {
    .about-container {
        padding: 0 0px;
        margin-top: 0;
    }
}

/* Mobile Header: 灰色按钮条 */
@media (max-width: 768px) {
    header { padding: 10px 15px; flex-direction: column; gap: 12px; }
    nav { width: 100%; }
    nav ul { justify-content: space-between; gap: 4px; width: 100%; }
    nav li { flex: 1; }
    nav a {
        display: block; background: #f5f5f5; padding: 8px 0; text-align: center;
        border-radius: 4px; font-size: 10px; font-weight: 700; border: 1px solid #e0e0e0; color: #333;
    }
    nav a:active, nav a.active { background: #0070c0; color: #fff; border-color: #0070c0; }
}

/* --- 3. Mobile Content Styles (保持原有移动端调优) --- */
.mobile-hero { width: 100vw; height: 75vh; position: relative; overflow: hidden; background: #000; }
.mobile-hero img { width: 100%; height: 100%; object-fit: cover; }

.factory-img-mobile { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.timeline-block { margin-bottom: 0; }
.bg-neutral  { background-color: #f5f5f5; }
.bg-peach    { background-color: #fff3ec; }
.bg-blue-soft{ background-color: #e8f4fc; }
.timeline-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 20px;
}
.mobile-timeline .timeline-block:first-of-type .timeline-inner { padding-top: 12px; }
.timeline-text { flex: 1; min-width: 0; }
.timeline-img-box { flex-shrink: 0; width: 180px; }
.timeline-img-box img {
    width: 180px;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.mobile-year { color: #6cb4e4; font-size: 2rem; font-weight: 800; line-height: 1.1; }
.mobile-sub-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; }
.mobile-desc { font-size: 14px; color: #666; line-height: 1.4; margin-bottom: 5px; }
.timeline-single-img, .full-width-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.cali-map-box img { width: 350px; height: 350px; object-fit: contain; }

.mobile-section-title { color: #0070c0; font-size: 1.4rem; font-weight: 800; text-transform: uppercase; border-left: 5px solid #0070c0; padding-left: 12px; margin-bottom: 20px; }
.history-heading .mobile-section-title { margin-bottom: 0; }
.mobile-tech-grid { display: flex; flex-direction: column; gap: 15px; }
.tech-item { display: flex; align-items: center; gap: 15px; }
.tech-item img {
    width: 165px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 0;
}
.tech-main-title { font-size: 14px; font-weight: 800; text-transform: uppercase; }
.tech-subtitle { font-size: 12.5px; color: #666; }

.mobile-fabric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fabric-card { background: #f9f9f9; padding: 40px 16px; text-align: center; border-radius: 10px; border: 1px solid #f0f0f0; }
.fabric-card img { width: 96px; height: 96px; margin: 0 auto 14px auto; display: block; }
.fabric-card p { font-size: 18px; font-weight: 700; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mobile-products { scroll-margin-top: 90px; }
.prod-item { position: relative; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; }
.prod-item img { width: 100%; height: 100%; object-fit: cover; }
.prod-item span {
    position: absolute;
    bottom: 12px;
    left: 12px;
    color: #fff;
    font-weight: 800;
    font-size: 28px;
    line-height: 0.95;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.mobile-footer { background: #0070c0; color: #fff; text-align: center; padding: 26px 20px; }
.mobile-footer a { color: inherit; text-decoration: none; }
.mobile-footer a:hover { text-decoration: underline; }
.mobile-footer .footer-tagline { margin-top: 12px; font-style: italic; opacity: 0.9; }
.copyright { font-size: 10px; opacity: 0.5; margin-top: 16px; }

/* --- 4. PC WEB SPECIFIC LAYOUT (分离 PC 逻辑) --- */
@media (min-width: 769px) {
    .section-padding { padding: 80px 10%; }
    .history-heading { padding: 40px 10%; }

    /* Timeline PC: inner row, larger image */
    .timeline-block { margin-bottom: 0; }
    .timeline-inner { gap: 60px; padding: 60px 10%; }
    .mobile-timeline .timeline-block:first-of-type .timeline-inner { padding-top: 30px; }
    .timeline-img-box { width: 640px; }
    .timeline-img-box img { width: 640px; height: 440px; }
    .timeline-image-wrapper, .cali-map-box { flex: 1; }
    .cali-map-box img { width: 100%; height: auto; max-width: 500px; }
    .mobile-year { font-size: 4rem; }
    .mobile-sub-title { font-size: 2.2rem; margin-bottom: 10px; }
    .mobile-desc { font-size: 28px; line-height: 1.5; }
    .mobile-section-title { font-size: 2.667rem; border-left-width: 7px; padding-left: 16px; margin-bottom: 24px; }

    /* Technology PC: 4列网格 */
    .mobile-tech-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
    }
    .tech-item {
        background: #fafafa;
        padding: 22px 16px;
        border-radius: 12px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    .tech-item img {
        width: auto;
        height: 140px;
        object-fit: contain;
    }
    .tech-main-title {
        font-size: 21px;
    }
    .tech-subtitle {
        font-size: 18.75px;
        line-height: 1.35;
    }

    /* Fabrics PC: 4列展示，图标与文字放大 */
    .mobile-fabric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
    .fabric-card { padding: 28px 18px; }
    .fabric-card img { width: 90px; height: 90px; }
    .fabric-card p { font-size: 16px; }

    /* Products PC: 3列一行 */
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }

    .mobile-footer { text-align: center; padding: 54px 10%; }
    .mobile-footer .section-padding { padding: 0; }
}

/* ==========================================================================
   5. Contact Modal Styles
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #111;
}

.modal-content h2 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.contact-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-list li {
    font-size: 15px;
    display: flex;
    align-items: center;
}

.contact-list strong {
    width: 100px;
    color: #555;
    font-weight: 700;
}

.contact-list a {
    color: #111;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-list a:hover {
    color: #0070c0;
    text-decoration: underline;
}

/* ====================== DESKTOP HERO 完整显示修复 ====================== */
@media (min-width: 769px) {
    .about-container .mobile-hero {
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        /* 抵消外层容器 40px 的 margin-top，让图片完美贴合在导航栏正下方，不留白也不被遮挡 */
        margin-top: -40px !important;
        /* 高度改为 auto，容器会完全根据图片的实际比例撑开 */
        height: auto !important;
    }

    .about-container .mobile-hero picture {
        display: block;
        width: 100%;
    }

    .about-container .mobile-hero img {
        width: 100% !important;
        /* 图片高度自适应，并取消 cover 属性，拒绝任何裁切 */
        height: auto !important;
        object-fit: unset !important;
        display: block;
    }
}
/* ==========================================================================
   Floating Contact QR (shared with home)
   ========================================================================== */
.floating-qr {
    position: fixed;
    right: 20px;
    top: 92px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.qr-item {
    width: clamp(96px, 11vw, 132px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(2px);
    cursor: pointer;
}
.qr-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}
.qr-item p {
    margin-top: 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #333;
    text-transform: none;
}
.qr-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 2600;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    padding: 20px;
}
.qr-preview-modal.show { display: flex; }
.qr-preview-content {
    width: min(90vw, 440px);
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    position: relative;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}
.qr-preview-content img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 8px;
}
.qr-preview-content p {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #222;
}
.qr-preview-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    color: #444;
    cursor: pointer;
}
@media (max-width: 768px) {
    .floating-qr { right: 10px; top: 108px; gap: 8px; }
    .qr-item { width: clamp(78px, 24vw, 98px); padding: 6px; border-radius: 8px; }
    .qr-item p { font-size: 10px; margin-top: 4px; }
    .qr-preview-content { width: min(92vw, 340px); padding: 12px; }
}
