/* 組織架構與人力資源 頁面專用樣式
   命名前綴：og-（org-chart）
   依賴：about-history.css 提供 .ah-inner-header 與 .ah-breadcrumb 樣式
*/

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

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

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

/* ============ HERO ============ */
.og-hero {
    position: relative;
    background:
        radial-gradient(ellipse 800px 600px at 8% 50%, #F4EFEC 0%, transparent 60%),
        linear-gradient(180deg, #F7F5F2 0%, #FBFAF8 100%);
    overflow: hidden;
    padding: 84px 0 96px;
}
.og-tower-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .35;
    z-index: 1;
}
.og-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.og-hero-grid h1 {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 800;
    font-size: clamp(48px, 6.2vw, 84px);
    line-height: 1.04;
    letter-spacing: -.01em;
    margin: 0 0 28px;
    color: var(--og-ink);
}
.og-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;
}
.og-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 56px;
    max-width: 540px;
}
.og-hero-stat .n {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
    font-family: 'Manrope', sans-serif;
}
.og-hero-stat .l {
    margin-top: 8px;
    font-size: 13.5px;
    color: var(--og-muted);
    font-family: 'Noto Sans TC', sans-serif;
}
.og-hero-art {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}
.og-hero-photo {
    background: linear-gradient(180deg, #2A2C32 0%, #16171B 100%);
    aspect-ratio: 4/3.2;
    border-radius: 18px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}
.og-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.og-hero-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 16px, transparent 16px 36px);
    pointer-events: none;
}

/* ============ ORG SECTION ============ */
.og-org-section {
    padding: 110px 0;
    background: var(--og-paper-2);
    position: relative;
    overflow: hidden;
}
.og-org-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 1200px 600px at 50% -10%, rgba(224,18,26,.04) 0%, transparent 60%);
    pointer-events: none;
}
.og-org-section > .og-container { position: relative; z-index: 1; }

/* HQ Feature */
.og-hq-feature {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 88px;
}
.og-hq-feature-text h2 {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 800;
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.18;
    letter-spacing: -.01em;
    color: var(--og-ink);
    margin: 14px 0 0;
}
.og-hq-feature-text p {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 16px;
    line-height: 1.85;
    color: var(--og-muted);
    margin: 20px 0 0;
    max-width: 38em;
}
.og-hq-feature-stats {
    display: flex;
    gap: 14px;
    margin-top: 34px;
}
.og-hqf-stat {
    flex: 1;
    background: #fff;
    border: 1px solid var(--og-border);
    border-radius: 14px;
    padding: 18px 18px 16px;
    position: relative;
    overflow: hidden;
}
.og-hqf-stat::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--og-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.og-hqf-stat:hover::before { transform: scaleX(1); }
.og-hqf-stat .n {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 46px;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--og-ink);
}
.og-hqf-stat .l {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--og-ink);
    margin-top: 8px;
    line-height: 1.4;
}
.og-hqf-stat .l span {
    display: block;
    font-weight: 500;
    font-size: 11.5px;
    color: var(--og-muted-2);
    margin-top: 3px;
    letter-spacing: .01em;
}
.og-hq-feature-photo {
    position: relative;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--og-shadow-card);
    border: 1px solid var(--og-border);
}
.og-hq-feature-photo img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}
.og-hq-feature-photo .og-photo-tag {
    position: absolute;
    top: 16px; left: 16px;
    z-index: 2;
    background: var(--og-ink);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    padding: 7px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.og-hq-feature-photo .og-photo-tag .og-pin {
    width: 8px; height: 8px;
    background: var(--og-red);
    border-radius: 50%;
}
.og-hq-feature-photo figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: 28px 18px 14px;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 12.5px;
    color: #fff;
    letter-spacing: .02em;
    background: linear-gradient(0deg, rgba(15,17,21,.82) 0%, transparent 100%);
}

/* President Node */
.og-president-node {
    position: relative;
    margin: 0 auto 0;
    width: 280px;
    background: var(--og-ink);
    color: #fff;
    border-radius: 16px;
    padding: 22px 24px 24px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(15,17,21,.06), 0 18px 40px rgba(15,17,21,.18);
    z-index: 3;
}
.og-president-node::after {
    content: "";
    position: absolute;
    left: 50%; top: 100%;
    width: 2px; height: 56px;
    background: linear-gradient(180deg, var(--og-red) 0%, var(--og-red) 60%, transparent 100%);
    transform: translateX(-50%);
    z-index: 1;
}
.og-president-node .og-ribbon {
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    background: var(--og-red);
    color: #fff;
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .14em;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}
.og-president-node .og-pres-title {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -.005em;
    color: #fff;
    margin: 6px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.og-president-node .og-pres-title .og-bolt-sm {
    width: 14px; height: 14px;
    background: var(--og-yellow);
    clip-path: polygon(40% 0, 100% 0, 60% 45%, 100% 45%, 0 100%, 40% 55%, 0 55%);
    flex: none;
}
.og-president-node .og-pres-sub {
    margin-top: 8px;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 12.5px;
    color: rgba(255,255,255,.6);
    letter-spacing: .04em;
}

/* HQ Building */
.og-hq-building {
    position: relative;
    margin: 56px auto 0;
    background: #fff;
    border: 1px solid var(--og-border);
    border-radius: 22px;
    padding: 28px 28px 36px;
    box-shadow: var(--og-shadow-card);
    overflow: hidden;
}
.og-hq-building::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(15,17,21,.02) 0 1px, transparent 1px 36px),
        repeating-linear-gradient(0deg, rgba(15,17,21,.02) 0 1px, transparent 1px 48px);
    pointer-events: none;
    opacity: .8;
}
.og-hq-building::after {
    content: "";
    position: absolute;
    top: 18px; right: 22px;
    width: 22px; height: 22px;
    background: var(--og-red);
    clip-path: polygon(40% 0, 100% 0, 60% 45%, 100% 45%, 0 100%, 40% 55%, 0 55%);
    opacity: .9;
}
.og-hq-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 6px 6px 22px;
    border-bottom: 1px dashed var(--og-border);
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
}
.og-hq-header .og-lhs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.og-hq-header .og-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: .18em;
    color: var(--og-red);
    text-transform: uppercase;
}
.og-hq-header .og-tag .og-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--og-red);
    box-shadow: 0 0 0 4px var(--og-red-soft);
}
.og-hq-header h3 {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -.01em;
    margin: 0;
    color: var(--og-ink);
}
.og-hq-header .og-rhs {
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--og-muted);
    font-size: 13.5px;
    text-align: right;
    line-height: 1.6;
}
.og-hq-header .og-rhs strong {
    color: var(--og-ink);
    font-weight: 700;
}
.og-dept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    position: relative;
    z-index: 1;
}
.og-dept-card {
    background: var(--og-paper-2);
    border: 1px solid var(--og-border);
    border-radius: 14px;
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
    position: relative;
}
.og-dept-card:hover {
    transform: translateY(-3px);
    border-color: var(--og-red);
    box-shadow: var(--og-shadow-card-hover);
    background: #fff;
}
.og-dept-card .og-dept-num {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 11px;
    color: var(--og-muted-2);
    letter-spacing: .14em;
}
.og-dept-card .og-dept-name {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 800;
    font-size: 19px;
    color: var(--og-ink);
    letter-spacing: -.005em;
    line-height: 1.3;
}
.og-dept-card .og-dept-en {
    margin-top: auto;
    padding-top: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 11.5px;
    color: var(--og-muted);
    letter-spacing: .03em;
    font-weight: 500;
}

/* Org Bridge */
.og-org-bridge {
    position: relative;
    height: 80px;
    margin-top: 36px;
}
.og-org-bridge::before {
    content: "";
    position: absolute;
    top: 0; bottom: 22px;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, var(--og-border) 0%, var(--og-border) 50%, transparent 100%);
    transform: translateX(-50%);
}
.og-org-bridge::after {
    content: "";
    position: absolute;
    left: 16.67%;
    right: 16.67%;
    bottom: 22px;
    height: 2px;
    background: var(--og-border);
}
.og-branch-stub {
    position: absolute;
    bottom: 0;
    width: 2px;
    height: 22px;
    background: var(--og-border);
}
.og-branch-stub.l { left: 16.67%; transform: translateX(-1px); }
.og-branch-stub.c { left: 50%; transform: translateX(-1px); }
.og-branch-stub.r { right: 16.67%; transform: translateX(1px); }
.og-bridge-label {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--og-paper-2);
    padding: 0 14px;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--og-red);
    letter-spacing: .12em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.og-bridge-label .og-bolt-sm {
    width: 10px; height: 10px;
    background: var(--og-yellow);
    clip-path: polygon(40% 0, 100% 0, 60% 45%, 100% 45%, 0 100%, 40% 55%, 0 55%);
}

/* Regional Grid */
.og-regional-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.og-regional-card {
    background: #fff;
    border: 1px solid var(--og-border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--og-shadow-card);
    transition: transform .25s ease, box-shadow .25s ease;
}
.og-regional-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--og-shadow-card-hover);
}
.og-regional-photo {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #E9EAEC 0%, #D4D6DB 100%);
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
}
.og-regional-photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.og-regional-photo .og-photo-tag {
    position: absolute;
    top: 16px; left: 16px;
    z-index: 2;
    background: var(--og-ink);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.og-regional-photo .og-photo-tag .og-pin {
    width: 8px; height: 8px;
    background: var(--og-red);
    border-radius: 50%;
}
.og-regional-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.og-regional-body .og-r-name {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -.005em;
    color: var(--og-ink);
    margin: 0;
}
.og-regional-body .og-r-en {
    font-family: 'Manrope', sans-serif;
    font-size: 12.5px;
    color: var(--og-muted);
    font-weight: 500;
    letter-spacing: .04em;
}
.og-regional-body .og-r-desc {
    margin-top: 8px;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--og-muted);
}

/* ============ WORKFORCE SECTION ============ */
.og-workforce-section {
    padding: 110px 0;
    background: var(--og-ink);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.og-workforce-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 600px at 0% 0%, rgba(224,18,26,.10) 0%, transparent 60%),
        radial-gradient(ellipse 600px 500px at 100% 100%, rgba(250,204,21,.06) 0%, transparent 60%);
    pointer-events: none;
}
.og-workforce-section > .og-container { position: relative; z-index: 1; }
.og-wf-head {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 56px;
}
.og-wf-head .og-eyebrow { color: #FCA5AA; margin-bottom: 14px; }
.og-wf-head h2 {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 800;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.12;
    letter-spacing: -.01em;
    margin: 0;
    color: #fff;
}
.og-wf-head h2 em { color: var(--og-red); font-style: normal; }
.og-wf-head p {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #B3B6BD;
    margin: 0;
}
.og-wf-head p strong { color: #fff; font-weight: 700; }
.og-wf-total {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
    background: linear-gradient(135deg, rgba(224,18,26,.18) 0%, rgba(224,18,26,.05) 100%);
    border: 1px solid rgba(224,18,26,.35);
    border-radius: 18px;
    padding: 28px 36px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}
.og-wf-total::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 16px, transparent 16px 36px);
    pointer-events: none;
}
.og-wf-total > * { position: relative; z-index: 1; }
.og-wf-total .og-big {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 108px;
    line-height: .9;
    letter-spacing: -.04em;
    color: #fff;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}
.og-wf-total .og-big .og-unit {
    font-size: 28px;
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 700;
    color: #FCA5AA;
    letter-spacing: 0;
}
.og-wf-total .og-desc {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 18px;
    line-height: 1.65;
    color: #fff;
}
.og-wf-total .og-desc strong { font-weight: 700; }
.og-wf-total .og-desc .og-sub {
    display: block;
    margin-top: 6px;
    color: #B3B6BD;
    font-size: 14px;
    font-weight: 500;
}
.og-wf-total .og-bolt-deco {
    width: 84px; height: 84px;
    background: var(--og-yellow);
    clip-path: polygon(40% 0, 100% 0, 60% 45%, 100% 45%, 0 100%, 40% 55%, 0 55%);
    opacity: .95;
}
.og-wf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.og-wf-card {
    background: var(--og-ink-2, #1A1B1F);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 44px 26px 26px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 22px;
    align-items: center;
    transition: transform .25s ease, border-color .2s, background .2s;
    position: relative;
    overflow: hidden;
}
.og-wf-card:hover {
    transform: translateY(-4px);
    border-color: var(--og-red);
    background: #1F2025;
}
.og-wf-card::before {
    content: "";
    position: absolute;
    top: 18px; left: 22px;
    width: 14px; height: 14px;
    background: var(--og-yellow);
    clip-path: polygon(40% 0, 100% 0, 60% 45%, 100% 45%, 0 100%, 40% 55%, 0 55%);
    z-index: 2;
}
.og-wf-card .og-wf-num {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 64px;
    line-height: 1;
    letter-spacing: -.03em;
    color: #fff;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}
.og-wf-card .og-wf-num .og-u {
    font-size: 18px;
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 700;
    color: rgba(255,255,255,.5);
    letter-spacing: 0;
}
.og-wf-card .og-wf-body { display: flex; flex-direction: column; gap: 2px; }
.og-wf-card .og-wf-name {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    line-height: 1.35;
    margin: 0;
}
.og-wf-card .og-wf-en {
    font-family: 'Manrope', sans-serif;
    font-size: 11.5px;
    color: #8B8E96;
    letter-spacing: .04em;
    margin-top: 4px;
    font-weight: 500;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
    .og-hq-feature { grid-template-columns: 1fr; gap: 32px; margin-bottom: 60px; }
    .og-hq-feature-photo img { height: 380px; }
    .og-dept-grid { grid-template-columns: repeat(2, 1fr); }
    .og-regional-grid { grid-template-columns: 1fr; }
    .og-org-bridge { display: none; }
    .og-wf-grid { grid-template-columns: repeat(2, 1fr); }
    .og-wf-head { grid-template-columns: 1fr; gap: 24px; }
    .og-wf-total { grid-template-columns: 1fr; text-align: left; }
    .og-wf-total .og-bolt-deco { display: none; }
    .og-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .og-hq-feature-stats { flex-direction: column; }
    .og-hq-feature-photo img { height: 280px; }
    .og-dept-grid { grid-template-columns: 1fr; }
    .og-wf-grid { grid-template-columns: 1fr; }
    .og-president-node { width: auto; max-width: 320px; }
    .og-hq-header { flex-direction: column; align-items: flex-start; }
    .og-hq-header .og-rhs { text-align: left; }
    .og-wf-total .og-big { font-size: 84px; }
    .og-hero-stats { grid-template-columns: repeat(2, 1fr); }
}
