/* --- 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; }

/* --- 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; }

/* ====================== About Container ====================== */
/* 与 home page 的 .container 保持一致 */
.about-container {
    max-width: 100%;
    width: 100%;
    margin-top: 40px;           /* 你要求的下移 */
}

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

/* 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: 15px; }
.mobile-year { color: #0070c0; 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; }
.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: 165px; object-fit: contain; flex-shrink: 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(4, 1fr); gap: 8px; }
.fabric-card { background: #f9f9f9; padding: 10px 4px; text-align: center; border-radius: 4px; border: 1px solid #f0f0f0; }
.fabric-card img { width: 28px; height: 28px; margin-bottom: 5px; margin: 0 auto 5px auto; display: block; }
.fabric-card p { font-size: 8px; font-weight: 700; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.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: 10px; left: 10px; color: #fff; font-weight: 800; font-size: 11px; z-index: 2; }

.mobile-footer { background: #0070c0; color: #fff; text-align: center; padding: 40px 20px; }
.copyright { font-size: 10px; opacity: 0.5; margin-top: 25px; }

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

    /* Timeline PC: 左右并排 */
    .timeline-block { display: flex; align-items: center; gap: 80px; margin-bottom: 100px; }
    .timeline-text { flex: 1; }
    .timeline-image-wrapper, .cali-map-box { flex: 1; }
    .cali-map-box img { width: 100%; height: auto; max-width: 500px; }

    /* Technology PC: 2x2 网格 */
    .mobile-tech-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .tech-item { background: #fafafa; padding: 30px; border-radius: 12px; }

    /* Fabrics PC: 8列一行 */
    .mobile-fabric-grid { grid-template-columns: repeat(8, 1fr); gap: 15px; }
    .fabric-card { padding: 25px 10px; }
    .fabric-card img { width: 45px; height: 45px; }

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

    .mobile-footer { text-align: left; padding: 80px 10%; }
}

/* ==========================================================================
   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;
    }
}