/* 李國為教授個人頁 — 深色金融都市風 + 大量圖文區塊 */

:root {
    --bg: #0c0f14;
    --bg-elevated: #141a22;
    --surface: #1a222d;
    --text: #e8ecf1;
    --text-muted: #9aa5b5;
    --accent: #c9a962;
    --accent-soft: rgba(201, 169, 98, 0.15);
    --border: rgba(255, 255, 255, 0.08);
    --radius: 12px;
    --radius-lg: 20px;
    --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    --font-serif: "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
    --header-h: 64px;
    --content-max: 1280px;
    --wrap: min(var(--content-max), calc(100% - 40px));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.wrap {
    width: var(--wrap);
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(12, 15, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 20px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
    min-width: 0;
}

.brand:hover {
    color: var(--accent);
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.lang-switch__btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    padding: 7px 10px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s, background 0.2s;
}

.lang-switch__btn:hover {
    color: var(--text);
}

.lang-switch__btn.is-active {
    color: var(--bg);
    background: var(--accent);
}

@media (min-width: 901px) {
    .header-inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }

    .header-actions {
        order: 3;
    }

    .nav {
        order: 2;
        justify-self: end;
    }
}

.nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
}

.nav a {
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-decoration: none;
    padding: 6px 0;
    position: relative;
}

.nav a:hover {
    color: var(--accent);
}

.nav a.is-active {
    color: var(--accent);
    font-weight: 500;
}

@media (min-width: 901px) {
    .nav a.is-active::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        background: var(--accent);
        border-radius: 1px;
    }
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
    position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--text);
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle::before {
    top: 16px;
    box-shadow: 0 6px 0 var(--text);
}

.nav-toggle::after {
    bottom: 16px;
    opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before {
    top: 21px;
    box-shadow: none;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
    opacity: 1;
    bottom: 21px;
    transform: rotate(-45deg);
}

@media (max-width: 900px) {
    .header-inner {
        position: relative;
    }

    .brand {
        flex: 1 1 auto;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.875rem;
    }

    .header-actions {
        flex-shrink: 0;
        margin-left: 8px;
    }

    .nav-toggle {
        display: block;
        flex-shrink: 0;
    }

    .nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px 24px;
        background: rgba(12, 15, 20, 0.98);
        border-bottom: 1px solid var(--border);
        gap: 0;
        z-index: 10;
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        padding: 12px 0 12px 10px;
        border-bottom: 1px solid var(--border);
    }

    .nav a.is-active {
        border-left: 2px solid var(--accent);
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 64px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(12, 15, 20, 0.5) 0%,
        rgba(12, 15, 20, 0.75) 45%,
        rgba(12, 15, 20, 0.95) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 12px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 12px;
    letter-spacing: 0.02em;
}

.hero__roles {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0 0 20px;
}

.hero__lede {
    max-width: 36em;
    margin: 0 0 24px;
    font-size: 1.05rem;
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero__chips span {
    font-size: 0.8125rem;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(201, 169, 98, 0.35);
    color: var(--accent);
}

/* Bands */
.band {
    padding: 80px 0;
    background: var(--bg-elevated);
}

.band__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
    width: var(--wrap);
    margin-inline: auto;
}

.band__grid--reverse {
    grid-template-columns: 1.1fr 1fr;
}

.band__grid--reverse .band__text {
    order: 2;
}

.band__grid--reverse .band__visual {
    order: 1;
}

.band__visual img {
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.band__visual--stack {
    position: relative;
    padding-bottom: 48px;
}

.band__img-primary {
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.band__img-secondary {
    position: absolute;
    right: -4%;
    bottom: 0;
    width: 55%;
    border-radius: var(--radius);
    border: 3px solid var(--bg-elevated);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.pull-quote {
    margin: 0;
    padding: 0;
    border: none;
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    line-height: 1.55;
    color: var(--text);
}

.pull-quote p {
    margin: 0 0 1em;
}

.pull-quote p:last-child {
    margin-bottom: 0;
}

.note {
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.band--human {
    background: linear-gradient(145deg, #151c26 0%, #0c1018 100%);
    border-block: 1px solid var(--border);
}

.section__label--on-dark {
    color: var(--accent);
}

.prose--on-dark .prose p,
.prose--on-dark p {
    color: var(--text-muted);
}

.prose--on-dark strong {
    color: var(--text);
}

@media (max-width: 900px) {
    .band__grid,
    .band__grid--reverse {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .band__grid--reverse .band__text,
    .band__grid--reverse .band__visual {
        order: unset;
    }

    .band__img-secondary {
        position: static;
        width: 100%;
        margin-top: 16px;
    }

    .band__visual--stack {
        padding-bottom: 0;
    }
}

/* Sections */
.section {
    padding: 88px 0;
}

.section--about {
    background: var(--bg);
}

.section__head {
    margin-bottom: 48px;
}

.section__head--light .section__label {
    color: var(--accent);
}

.section__head--light h2 {
    color: var(--text);
}

.section__label {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 10px;
}

.section h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.2;
}

.section__sub {
    margin: 0;
    max-width: 52em;
    color: var(--text-muted);
    font-size: 1rem;
}

.section--dark {
    background: var(--bg-elevated);
    padding-bottom: 0;
}

/* Split about */
.split {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    align-items: start;
}

.split__media {
    position: relative;
}

.split__media--tall img {
    border-radius: var(--radius-lg);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.split__caption {
    margin-top: 14px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.prose p {
    margin: 0 0 1.1em;
    color: var(--text-muted);
}

.prose strong {
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 900px) {
    .split {
        grid-template-columns: 1fr;
    }
}

/* Philosophy */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.phil-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 0 0 28px;
    overflow: hidden;
}

.phil-card__img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.phil-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.phil-card:hover .phil-card__img img {
    transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
    .phil-card:hover .phil-card__img img {
        transform: none;
    }
}

.phil-card__num {
    display: inline-block;
    margin: 20px 24px 8px;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--accent);
    line-height: 1;
}

.phil-card h3 {
    margin: 0 24px 12px;
    font-size: 1.15rem;
    font-weight: 600;
}

.phil-card p {
    margin: 0 24px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.philosophy-foot {
    text-align: center;
    max-width: 40em;
    margin: 0 auto 56px;
    color: var(--text-muted);
}

.parallax-strip {
    height: min(38vh, 420px);
    overflow: hidden;
    margin-top: 8px;
}

.parallax-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    opacity: 0.85;
}

@media (max-width: 900px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
}

/* System */
.system-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.system-hero img {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}

.system-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 28px 32px;
    background: linear-gradient(0deg, rgba(12, 15, 20, 0.9) 0%, transparent 55%);
}

.system-hero__overlay p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.module-grid {
    list-style: none;
    margin: 0 0 48px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.module-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    overflow: hidden;
}

.module-card__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--accent-soft);
    border: 1px solid rgba(201, 169, 98, 0.28);
    color: var(--accent);
}

.module-card__icon svg {
    width: 26px;
    height: 26px;
}

.module-card__body {
    min-width: 0;
}

.module-card__body h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
}

.module-card__body p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.callout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
}

.callout__visual img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.callout__body {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.callout__body h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    font-family: var(--font-serif);
}

.callout__body p {
    margin: 0;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .module-grid {
        grid-template-columns: 1fr;
    }

    .callout {
        grid-template-columns: 1fr;
    }

    .system-hero img {
        aspect-ratio: 16 / 10;
    }

    .vision-hero img {
        aspect-ratio: 16 / 10;
    }
}

/* Statement */
.section--statement {
    background: var(--bg);
    padding: 96px 0;
}

.statement-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: center;
}

.statement__figure img {
    border-radius: var(--radius-lg);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    max-height: min(720px, 85vh);
    object-fit: cover;
    width: 100%;
}

.statement-quote {
    margin: 28px 0 0;
    padding: 24px 28px;
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    font-family: var(--font-serif);
    font-size: 1.35rem;
    line-height: 1.45;
    color: var(--text);
}

@media (max-width: 900px) {
    .statement-layout {
        grid-template-columns: 1fr;
    }

    .statement__figure img {
        max-height: 400px;
    }
}

/* Vision */
.section--vision {
    background: var(--bg-elevated);
}

.vision-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.vision-hero img {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    display: block;
}

.prose--wide {
    margin-bottom: 40px;
}

.vision-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.vision-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.vision-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
}

.vision-card h3 {
    margin: 20px 22px 10px;
    font-size: 1.1rem;
}

.vision-card p {
    margin: 0 22px 24px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .vision-cards {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.site-footer {
    padding: 40px 20px 48px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-brand strong {
    font-size: 1.05rem;
}

.footer-brand span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-note {
    flex: 1 1 100%;
    max-width: 36em;
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.85;
}

.footer-top {
    font-size: 0.875rem;
    color: var(--accent);
    white-space: nowrap;
}
