/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0 60px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;
    z-index: 999;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}

header.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

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

nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

nav a {
    color: #1a2f6e;
    text-decoration: none;
    font-size: 0.92rem;
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 400;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 4px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #cc2229;
    transition: width 0.25s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover {
    opacity: 1;
    color: #cc2229;
}

nav a.active {
    color: #cc2229;
}

/* 語言切換 */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-btn {
    background: none;
    border: none;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 0.78rem;
    color: #888;
    cursor: pointer;
    padding: 4px 2px;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.lang-btn:hover {
    color: #1a2f6e;
}

.lang-btn.active {
    color: #cc2229;
    font-weight: 500;
}

.lang-divider {
    color: #ddd;
    font-size: 0.75rem;
}

   
/* Hero */
.about-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    margin-top: 80px;
    overflow: hidden;
}

.about-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.about-hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20%;
}

.about-since {
    font-size: 0.9rem;
    letter-spacing: 0.6em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.4rem;
}

.about-hero-text h1 {
    font-family: 'Noto Serif TC', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #ffffff;
    letter-spacing: 0.03em;
    margin-bottom: 2.5rem;
}

.about-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.4);
}

.about-scroll-hint span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    line-height: 1;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* 公司背景 */
.about-section {
    padding: 100px;
    background: #f8f9fb;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text h2 {
    font-family: 'Noto Serif TC', serif;
    font-size: clamp(1.9rem, 3vw, 2.5rem);   /* ← unified */
    font-weight: 700;
    color: #1a2f6e;
    margin-bottom: 2rem;
    padding-left: 1.2rem;
    border-left: 3px solid #cc2229;
    line-height: 1.3;
}

.journey-title {
    font-family: 'Noto Serif TC', serif;
    font-size: clamp(1.9rem, 3vw, 2.5rem);   /* ← unified */
    font-weight: 700;
    color: #1a2f6e;
    text-align: center;
    margin-bottom: 3rem;
}

.why-us-header h2 {
    font-family: 'Noto Serif TC', serif;
    font-size: clamp(1.9rem, 3vw, 2.5rem);   /* ← unified, was 2rem */
    font-weight: 700;
    color: #1a2f6e;
    margin-bottom: 1.2rem;
}

.about-text p {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.9;
    margin-bottom: 1rem;
    font-weight: 300;
}

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

/* ===== 發展歷程 & 地圖 ===== */
.journey-title {
    font-family: 'Noto Serif TC', serif;
    font-size: clamp(1.9rem, 3vw, 2.5rem);   /* ← unified */
    font-weight: 700;
    color: #1a2f6e;
    text-align: center;
    margin-bottom: 3rem;
}

.journey-section {
    padding: 100px;
    background: #fff;
}

.journey-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}


.map-col h2 {
    font-family: 'Noto Serif TC', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a2f6e;
    margin-top: 1rem;
    margin-bottom: 0;
}

.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: #ddd;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -1.85rem;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cc2229;
}

.timeline-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a2f6e;
    margin-bottom: 0.2rem;
    font-variant-numeric: oldstyle-nums;
}

.timeline-content p {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 0.88rem;
    color: #666;
    line-height: 1.8;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 0.3rem;
}
 .map-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.map-col h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

#world-map {
    width: 100%;
    height: auto;
}

#world-map svg {
    width: 100%;
    height: auto;
    display: block;
}

#world-map .country {
    fill: #d8e4f0;
    stroke: #fff;
    stroke-width: 0.5px;
}

#world-map .ping-outer {
    fill: #cc2229;
    opacity: 0.3;
    animation: ping 2s ease-out infinite;
}

#world-map .ping-inner {
    fill: #cc2229;
    width: 100%;
}


@keyframes ping {
    0% { r: 4; opacity: 0.6; }
    100% { r: 12; opacity: 0; }
}


/* 生產能力 */
.cap-static {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 300;
    color: #ffffff;
    line-height: 1;
    white-space: nowrap;
}

.cap-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 300;
    color: #ffffff;
    line-height: 1;
    font-variant-numeric: oldstyle-nums;
}

.capacity-section {
    padding: 100px;
    background: #1a2f6e;
    text-align: center;
}

.capacity-row-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.capacity-row-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 4rem;
    padding-left: 4rem;
    padding-right: 4rem;
}

.cap-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.cap-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.cap-unit {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: rgba(255,255,255,0.5);
}


.cap-display .cap-unit {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: rgba(255,255,255,0.5);
}

.cap-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #cc2229;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.8rem;
}

/* ===== 為什麼選擇長聯 ===== */
.why-us {
    padding: 100px;
    background: #ffffff;
    text-align: center;
}

.why-us-header {
    margin-bottom: 4rem;
}

.why-us-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    color: #cc2229;
    font-weight: 600;
    margin-bottom: 1rem;
}

.why-us-header h2 {
    font-family: 'Noto Serif TC', serif;
    font-size: clamp(1.9rem, 3vw, 2.5rem);   /* ← unified, was 2rem */
    font-weight: 700;
    color: #1a2f6e;
    margin-bottom: 1.2rem;
}
.why-us-line {
    width: 50px;
    height: 2px;
    background: #cc2229;
    margin: 0 auto;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
}

.why-us-card {
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e8edf5;
    background: #f8f9fb;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.why-us-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(26,47,110,0.1);
    border-color: #cc2229;
}

.why-us-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 300;
    color: #cc2229;
    opacity: 0.35;
    line-height: 1;
    margin-bottom: 1rem;
}

.why-us-card h4 {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2f6e;
    margin-bottom: 0.8rem;
}

.why-us-card p {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 0.88rem;
    color: #666;
    line-height: 1.9;
    font-weight: 300;
}
/* ===== EN version — typography overrides ===== */
.lang-en .about-hero-text h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.lang-en .about-since {
    font-family: 'Montserrat', sans-serif;
}

/* All section h2 titles */
.lang-en .about-text h2,
.lang-en .journey-title,
.lang-en .why-us-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 0.005em;
}

/* Map col small heading */
.lang-en .map-col h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Why-us card titles */
.lang-en .why-us-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.01em;
}

/* Why-us label */
.lang-en .why-us-label {
    font-family: 'Montserrat', sans-serif;
}

/* Body paragraphs */
.lang-en .about-text p,
.lang-en .timeline-content p,
.lang-en .why-us-card p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.8;
}

/* ===== Simplified Chinese font overrides ===== */
.lang-cn {
    font-family: 'Noto Sans SC', sans-serif;
}

.lang-cn h1,
.lang-cn h2,
.lang-cn h3,
.lang-cn h4,
.lang-cn .why-us-card h4 {
    font-family: 'Noto Serif SC', serif;
}

.lang-cn .timeline-content h3,
.lang-cn .cap-static,
.lang-cn .cap-number,
.lang-cn .cap-unit,
.lang-cn .why-us-num {
    font-family: 'Cormorant Garamond', serif !important;
}

.lang-cn .about-since,
.lang-cn .why-us-label,
.lang-cn .cap-label {
    font-family: 'Montserrat', sans-serif;
}

/* ===== RESPONSIVE — Mobile & Tablet ===== */
@media (max-width: 768px) {

    /* Hero */
    .about-hero {
        height: 50vh;
        margin-top: 60px;
    }

    .about-hero-text {
        padding: 0 8%;
    }

    .about-hero-text h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1.5rem;
    }

    .about-since {
        font-size: 0.7rem;
        letter-spacing: 0.4em;
    }

    .scroll-line {
        height: 30px;
    }

    /* About section */
    .about-section {
        padding: 40px 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text h2 {
        font-size: 1.6rem;
        padding-left: 1rem;
    }

    .about-text p {
        font-size: 0.88rem;
    }

    /* Journey */
    .journey-section {
        padding: 40px 20px;
    }

    .journey-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .journey-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .timeline-content h3 {
        font-size: 1.4rem;
    }

    .timeline-content p {
        font-size: 0.82rem;
    }

    .map-col h2 {
        font-size: 0.9rem;
    }

    /* Capacity */
    .capacity-section {
        padding: 40px 20px;
    }

    .capacity-row-top,
    .capacity-row-bottom {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1.5rem;
    }

    .capacity-row-bottom {
        padding-left: 0;
        padding-right: 0;
    }

    .cap-static,
    .cap-number {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .cap-label {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    /* Why Us */
    .why-us {
        padding: 40px 20px;
    }

    .why-us-header h2 {
        font-size: 1.6rem;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .why-us-card {
        padding: 1.8rem;
    }

    .why-us-num {
        font-size: 2.2rem;
    }

    .why-us-card h4 {
        font-size: 1rem;
    }

    .why-us-card p {
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {

    .about-hero {
        height: 40vh;
    }

    .about-text h2 {
        font-size: 1.3rem;
    }

    .capacity-row-top,
    .capacity-row-bottom {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}