/* 廠區與交通 頁面專用樣式
   命名前綴：lp-（locations page）
   依賴：about-history.css 提供 .ah-inner-header 與 .ah-breadcrumb 樣式
*/

:root {
    --lp-red: #E0121A;
    --lp-red-dark: #B30E14;
    --lp-red-soft: #FEE2E4;
    --lp-ink: #0E0F11;
    --lp-paper: #F1F1F4;
    --lp-paper-2: #FAFAFB;
    --lp-white: #FFFFFF;
    --lp-muted: #6B7280;
    --lp-muted-2: #9CA3AF;
    --lp-border: #E5E7EB;
    --lp-yellow: #FACC15;
    --lp-shadow-card: 0 1px 2px rgba(15,17,21,.04), 0 8px 24px rgba(15,17,21,.06);
    --lp-shadow-card-hover: 0 6px 12px rgba(15,17,21,.06), 0 24px 48px rgba(15,17,21,.10);
    --lp-radius: 14px;
    --lp-radius-lg: 22px;
}

/* ============ CONTAINER ============ */
.lp-container {
    width: min(1280px, calc(100% - 80px));
    margin-inline: auto;
}

/* ============ EYEBROW / BOLT ============ */
.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--lp-red);
    letter-spacing: .04em;
    font-family: 'Noto Sans TC', sans-serif;
    margin-bottom: 22px;
}
.lp-bolt {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: var(--lp-yellow);
    clip-path: polygon(40% 0, 100% 0, 60% 45%, 100% 45%, 0 100%, 40% 55%, 0 55%);
    flex: none;
}

/* ============ HERO ============ */
.lp-hero {
    position: relative;
    padding: 84px 0 96px;
    background:
        radial-gradient(ellipse 800px 600px at 8% 50%, #F4EFEC 0%, transparent 60%),
        linear-gradient(180deg, #F7F5F2 0%, #FBFAF8 100%);
    overflow: hidden;
}
.lp-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
}
.lp-hero-grid h1 {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 800;
    font-size: clamp(44px, 5.5vw, 76px);
    line-height: 1.1;
    letter-spacing: -.01em;
    margin: 0 0 24px;
    color: var(--lp-ink);
}
.lp-hero-grid p {
    font-size: 17px;
    line-height: 1.75;
    color: #3F4350;
    max-width: 540px;
    margin: 0 0 18px;
    font-family: 'Noto Sans TC', sans-serif;
}
.lp-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 56px;
    max-width: 540px;
}
.lp-hero-stat .n {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
    font-family: 'Manrope', sans-serif;
}
.lp-hero-stat .l {
    margin-top: 8px;
    font-size: 13.5px;
    color: var(--lp-muted);
    font-family: 'Noto Sans TC', sans-serif;
}
.lp-hero-art {
    border-radius: var(--lp-radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #F4EFEC 0%, #FAF8F5 100%);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--lp-shadow-card);
}
.lp-hero-art img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* ============ ZONE LABEL ============ */
.lp-zone-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}
.lp-zone-label h2 {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 3.5vw, 40px);
    margin: 0;
    color: var(--lp-ink);
    line-height: 1.2;
}
.lp-zone-line {
    flex: 1;
    height: 2px;
    background: var(--lp-border);
}
.lp-zone-badge {
    background: var(--lp-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 6px 14px;
    border-radius: 999px;
    font-family: 'Manrope', sans-serif;
    white-space: nowrap;
}
.lp-zone-badge.overseas { background: #1A6E3C; }

/* ============ DOMESTIC SECTION ============ */
.lp-domestic-section {
    padding: 100px 0;
    background: var(--lp-paper);
}
.lp-overseas-section {
    padding: 100px 0;
    background: var(--lp-white);
}

/* ============ LOCATION CARD ============ */
.lp-location-card {
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg);
    overflow: hidden;
    box-shadow: var(--lp-shadow-card);
    transition: transform .25s ease, box-shadow .25s ease;
}
.lp-location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--lp-shadow-card-hover);
}
.lp-lc-photo {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #EEF0F2 0%, #F5F5F7 100%);
    position: relative;
}
.lp-lc-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.lp-lc-body {
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--lp-border);
}
.lp-lc-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--lp-red);
    background: var(--lp-red-soft);
    padding: 5px 12px;
    border-radius: 999px;
    font-family: 'Manrope', sans-serif;
    margin-bottom: 12px;
}
.lp-lc-tag.overseas { color: #1A6E3C; background: #D1FAE5; }
.lp-lc-name {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--lp-ink);
    margin: 0 0 16px;
    line-height: 1.3;
}
.lp-lc-meta { display: flex; flex-direction: column; gap: 10px; }
.lp-lc-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--lp-muted);
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.55;
}
.lp-lc-meta-row .lp-ico {
    flex: none;
    width: 20px; height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    color: var(--lp-red);
}
.lp-lc-meta-row .lp-label {
    font-weight: 600;
    color: var(--lp-ink);
    margin-right: 4px;
}
.lp-lc-map {
    position: relative;
    height: 280px;
    background: #EEF0F2;
}
.lp-lc-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.lp-lc-map-link {
    position: absolute;
    bottom: 12px; right: 12px;
    background: #fff;
    color: var(--lp-ink);
    font-size: 12.5px;
    font-weight: 700;
    font-family: 'Noto Sans TC', sans-serif;
    padding: 8px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background .15s, color .15s;
    z-index: 2;
}
.lp-lc-map-link:hover { background: var(--lp-red); color: #fff; }

/* ============ FEATURED CARD (中壢) ============ */
.lp-location-card-featured {
    display: grid;
    grid-template-columns: 420px 1fr;
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-lg);
    overflow: hidden;
    box-shadow: var(--lp-shadow-card);
    transition: transform .25s ease, box-shadow .25s ease;
    margin-bottom: 32px;
}
.lp-location-card-featured:hover {
    transform: translateY(-5px);
    box-shadow: var(--lp-shadow-card-hover);
}
.lp-lcf-photo {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #EEF0F2 0%, #F5F5F7 100%);
}
.lp-lcf-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.lp-lcf-right {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--lp-border);
}
.lp-lcf-body {
    padding: 32px 36px 24px;
    flex: 1;
    border-bottom: 1px solid var(--lp-border);
}
.lp-lcf-map {
    height: 260px;
    position: relative;
    background: #EEF0F2;
    flex: none;
}
.lp-lcf-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 2-column grid for 楊湖 + 竹南 */
.lp-locations-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* ============ OVERSEAS CARD (越南) ============ */
.lp-location-card-overseas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--lp-ink);
    border-radius: var(--lp-radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(14,15,17,.18);
    transition: transform .25s ease, box-shadow .25s ease;
}
.lp-location-card-overseas:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 56px rgba(14,15,17,.24);
}
.lp-lco-left {
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-right: 1px solid rgba(255,255,255,.1);
    position: relative;
    /* 點陣 + 紅光暈背景花紋（沿用設計稿 .lco-left） */
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 1.6px),
        radial-gradient(130% 120% at 0% 0%, rgba(224,18,26,.20), transparent 48%);
    background-size: 22px 22px, 100% 100%;
    background-position: 0 0, 0 0;
}
.lp-lco-left > * { position: relative; z-index: 1; }
.lp-lco-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #34D399;
    background: rgba(52,211,153,.12);
    padding: 5px 12px;
    border-radius: 999px;
    font-family: 'Manrope', sans-serif;
    margin-bottom: 18px;
    align-self: flex-start;
}
.lp-lco-name {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 800;
    font-size: 26px;
    color: #fff;
    margin: 0 0 24px;
    line-height: 1.3;
}
.lp-lco-meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}
.lp-lco-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: #9CA3AF;
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.55;
}
.lp-lco-meta-row .lp-ico {
    flex: none;
    width: 20px; height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    color: #34D399;
}
.lp-lco-meta-row .lp-label {
    font-weight: 600;
    color: #E5E7EB;
    margin-right: 4px;
}
.lp-lco-photo {
    position: relative;
    overflow: hidden;
    background: #1A1B1F;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lp-lco-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    opacity: .85;
}
.lp-lco-photo .lp-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.3);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    text-align: center;
    padding: 24px;
}
.lp-lco-photo .lp-ph svg { opacity: .35; }
.lp-lco-map-wrap {
    margin-top: auto;
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
    position: relative;
}
.lp-lco-map-wrap iframe {
    width: 100%; height: 100%;
    border: 0;
    display: block;
}
.lp-lco-map-link {
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(255,255,255,.9);
    color: var(--lp-ink);
    font-size: 12px;
    font-weight: 700;
    font-family: 'Noto Sans TC', sans-serif;
    padding: 7px 12px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background .15s, color .15s;
    z-index: 2;
}
.lp-lco-map-link:hover { background: #34D399; color: #fff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .lp-location-card-featured { grid-template-columns: 1fr; }
    .lp-lcf-photo { height: 280px; }
    .lp-location-card-overseas { grid-template-columns: 1fr; }
    .lp-lco-photo { min-height: 280px; }
}
@media (max-width: 780px) {
    .lp-hero-grid { grid-template-columns: 1fr; }
    .lp-locations-grid-2 { grid-template-columns: 1fr; }
    .lp-hero-stats { grid-template-columns: repeat(2, 1fr); }
}
