﻿/* =========================================================
   IEAT 80 週年紀念網站 - index.css
========================================================= */

/* =========================
   基礎設定
========================= */
:root {
    --primary-color: #004a99;
    --secondary-color: #f4f6f9;
    --accent-color: #f6c024;
    --text-dark: #222222;
    --bg-dark: #1e1e28;
    --card-dark: #2c2c38;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans TC', sans-serif;
    background: var(--secondary-color);
    overflow-x: hidden;
    color: var(--text-dark);
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    box-sizing: border-box;
}

#carnival,
#dinner,
#knowledge,
#award,
#videos,
#letters,
#media,
#other-info {
    scroll-margin-top: 10px;
}

/* =========================
   導覽列 Navbar
========================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #350057;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    box-sizing: border-box;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.nav-logo-placeholder {
    width: 150px;
    height: 40px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: 700;
    color: var(--secondary-color);
}

    .nav-links a {
        color: var(--secondary-color);
        transition: color 0.25s ease;
    }

        .nav-links a:hover {
            color: #ffd64a;
        }

/* 手機選單按鈕 */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

    .menu-toggle span {
        width: 30px;
        height: 3px;
        background-color: var(--secondary-color);
        transition: 0.3s;
    }

/* =========================
   上方橫幅 Hero
========================= */
#hero-slider {
    position: relative;
    width: 100%;
    height: 390px;
    margin-top: 80px;
    overflow: hidden;
    background: #111111;
    margin-bottom: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

    .slide::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient( 180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.04) 58%, rgba(15, 23, 42, 0.14) 100% );
        z-index: 0;
    }

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-image: url('../images/mainbg.png');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-label-box {
    position: absolute;
    left: 50%;
    bottom: 35px;
    transform: translateX(-50%);
    z-index: 2;
    padding: 10px 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    background: rgba(65, 31, 120, 0.68);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    text-align: center;
}

/* =========================
   理事長的話區塊
========================= */
.chairman-message-section {
    background: #f4f6f9;
    padding: 22px 6% 18px;
    position: relative;
    z-index: 5;
}

.chairman-message-card {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 22px;
    padding: 30px 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: 0 18px 45px rgba(28, 49, 92, 0.14);
    border: 1px solid rgba(31, 79, 157, 0.08);
    position: relative;
    overflow: hidden;
}

    .chairman-message-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 7px;
        height: 100%;
        background: linear-gradient(180deg, #d7b56d 0%, #31559d 100%);
    }

    .chairman-message-card::after {
        content: "";
        position: absolute;
        right: -70px;
        top: -70px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: rgba(31, 79, 157, 0.07);
    }

.chairman-message-text {
    flex: 1;
    position: relative;
    z-index: 2;
}

.chairman-label {
    display: inline-block;
    font-size: 22px;
    letter-spacing: 1.5px;
    color: #b08a3c;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.chairman-message-text h2 {
    margin: 0 0 10px;
    font-size: 30px;
    color: #273f7d;
    font-weight: 900;
    letter-spacing: 2px;
}

.chairman-message-text p {
    margin: 0;
    color: #4d5565;
    font-size: 17px;
    line-height: 1.8;
}

.chairman-message-action {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.chairman-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 14px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #263f7e 0%, #4a6fc0 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 1px;
    box-shadow: 0 10px 24px rgba(38, 63, 126, 0.25);
    transition: all 0.25s ease;
}

    .chairman-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(38, 63, 126, 0.32);
        background: linear-gradient(135deg, #1d3268 0%, #3e63b4 100%);
    }

/* =========================
   共用區塊
========================= */
.anniversary-section {
    padding: 45px 6% 65px;
    background: #f4f6f9;
}

#carnival {
    padding-top: 28px;
}

#knowledge {
    padding: 45px 6% 65px;
    background: #ffffff;
}

#award {
    padding: 45px 6% 65px;
}

#dinner {
    padding: 45px 6% 65px;
}

#videos {
    padding: 45px 6% 65px;
    background: #f4f6f9;
}

#media {
    padding: 45px 6% 65px;
    background: #ffffff;
    overflow: hidden;
}

#other-info {
    padding: 45px 6% 65px;
    background: #f4f6f9;
}

.section-title {
    text-align: center;
    color: #1f4f9d;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 4px;
    margin-top: 0;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: #5f6673;
    font-size: 18px;
    line-height: 1.8;
    margin: 0 auto 30px;
    max-width: 860px;
}

/* =========================
   單一活動大區塊
========================= */
.feature-block {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 55px;
    align-items: center;
}

    .feature-block.reverse {
        grid-template-columns: 0.95fr 1.05fr;
    }

.feature-image {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 22px 45px rgba(20, 40, 80, 0.18);
    background: #ffffff;
}

    .feature-image img {
        width: 100%;
        height: 390px;
        object-fit: cover;
        display: block;
    }

.feature-badge {
    position: absolute;
    left: 28px;
    bottom: 26px;
    padding: 9px 24px;
    border-radius: 999px;
    background: #238c4f;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.feature-content {
    background: #ffffff;
    border-radius: 22px;
    padding: 40px 44px;
    box-shadow: 0 20px 45px rgba(20, 40, 80, 0.10);
}

.feature-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(31, 79, 157, 0.1);
    color: #1f4f9d;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
}

.feature-content h3 {
    margin: 0 0 16px;
    color: #182033;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.35;
}

.feature-content p {
    color: #4d5565;
    font-size: 18px;
    line-height: 1.85;
    margin: 0 0 22px;
}

.feature-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

    .feature-info-list li {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        color: #224f9a;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.7;
        margin-bottom: 9px;
    }

        .feature-info-list li span {
            color: #333a48;
            font-weight: 700;
        }

.feature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.feature-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    padding: 13px 24px;
    border-radius: 8px;
    border: 2px solid #1f4f9d;
    color: #1f4f9d;
    background: #ffffff;
    font-weight: 900;
    font-size: 17px;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s ease;
}

    .feature-btn:hover {
        background: #1f4f9d;
        color: #ffffff;
    }

    .feature-btn.primary {
        background: #1f4f9d;
        color: #ffffff;
    }

        .feature-btn.primary:hover {
            background: #173f80;
            border-color: #173f80;
        }

/* =========================
   台灣貿易新局區塊
========================= */
.forum-block {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 55px;
    align-items: center;
}

.forum-info-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 40px 44px;
    box-shadow: 0 20px 45px rgba(20, 40, 80, 0.10);
    border-left: 8px solid #1f4f9d;
    text-align: center;
}

.forum-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(31, 79, 157, 0.1);
    color: #1f4f9d;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
}

.forum-info-card h3 {
    margin: 0 0 22px;
    color: #0f4f87;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.35;
}

.forum-list {
    list-style: none;
    max-width: 520px;
    margin: 0 auto 28px;
    padding: 0;
}

    .forum-list li {
        display: grid;
        grid-template-columns: 70px 1fr;
        gap: 12px;
        align-items: start;
        padding: 10px 0;
        border-bottom: 1px solid #e5eaf2;
        font-size: 17px;
        line-height: 1.65;
        color: #333333;
        text-align: left;
    }

        .forum-list li strong {
            color: #1f4f9d;
            font-weight: 900;
            white-space: nowrap;
            text-align: left;
        }

        .forum-list li span {
            color: #333333;
            text-align: left;
            justify-self: start;
        }

.forum-info-card .feature-actions {
    justify-content: center;
}

.forum-info-card .feature-btn {
    min-width: 300px;
    text-align: center;
}

.forum-note {
    color: #5f6673;
    font-size: 15px;
    line-height: 1.8;
    margin-top: 16px;
    text-align: center;
}

.forum-image {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 22px 45px rgba(20, 40, 80, 0.18);
    background: #111111;
}

    .forum-image img {
        width: 100%;
        height: 430px;
        object-fit: cover;
        display: block;
    }

/* =========================
   淺金色區塊：傑出貿易企業獎
========================= */
.gold-bg {
    background: linear-gradient(180deg, #fff6d9 0%, #f8e6a8 100%);
    color: #111111;
}

    .gold-bg .section-title {
        color: #1a1a1a;
    }

    .gold-bg .section-subtitle {
        color: #4a3b16;
    }

    .gold-bg .feature-content {
        background: rgba(255, 255, 255, 0.78);
        color: #111111;
        border: 1px solid rgba(190, 145, 35, 0.28);
        box-shadow: 0 20px 45px rgba(120, 90, 20, 0.16);
    }

    .gold-bg .feature-kicker {
        background: rgba(177, 123, 0, 0.12);
        color: #8a5a00;
    }

    .gold-bg .feature-content h3 {
        color: #111111;
    }

    .gold-bg .feature-content p {
        color: #333333;
    }

    .gold-bg .feature-info-list li {
        color: #9a6a00;
    }

        .gold-bg .feature-info-list li span {
            color: #222222;
        }

    .gold-bg .feature-btn {
        border-color: #8a5a00;
        color: #8a5a00;
        background: #ffffff;
    }

        .gold-bg .feature-btn:hover {
            background: #8a5a00;
            color: #ffffff;
        }

    .gold-bg .feature-badge {
        background: #b17b00;
        color: #ffffff;
    }

/* =========================
   IEAT 80週年慶祝晚宴
========================= */
.dinner-section {
    background: linear-gradient(180deg, #f7f1ff 0%, #eef3ff 100%);
}

    .dinner-section .section-title {
        color: #2f348f;
    }

    .dinner-section .section-subtitle {
        color: #5f6673;
    }

    .dinner-section .feature-content {
        border: 1px solid rgba(47, 52, 143, 0.12);
    }

    .dinner-section .feature-kicker {
        background: rgba(47, 52, 143, 0.1);
        color: #2f348f;
    }

    .dinner-section .feature-info-list li {
        color: #2f348f;
    }

    .dinner-section .feature-btn {
        border-color: #2f348f;
        color: #2f348f;
    }

        .dinner-section .feature-btn:hover {
            background: #2f348f;
            color: #ffffff;
        }

/* =========================
   全球合作夥伴祝賀影片
========================= */
.video-header-row {
    max-width: 1180px;
    margin: 0 auto 30px;
    text-align: center;
}

.video-subtitle-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    color: #5f6673;
    font-size: 18px;
    line-height: 1.8;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 8px;
    background: #c96f5f;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

    .view-all-btn:hover {
        background: #a95548;
    }

.video-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
}

.video-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(20, 40, 80, 0.10);
}

.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111111;
    overflow: hidden;
}

    .video-frame iframe {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }

.video-info {
    padding: 24px 22px 28px;
    text-align: center;
}

    .video-info h3 {
        margin: 0 0 10px;
        color: #2b3140;
        font-size: 22px;
        font-weight: 700;
        line-height: 1.5;
    }

    .video-info p {
        margin: 0;
        color: #5f6673;
        font-size: 16px;
        line-height: 1.7;
    }

/* =========================
   國內外祝賀信函：首頁區塊
========================= */
.letters-section {
    padding: 45px 6% 65px;
    background: linear-gradient(180deg, #fffaf0 0%, #f4ead2 100%);
    overflow: hidden;
}

.letters-header-row {
    max-width: 1180px;
    margin: 0 auto 34px;
    text-align: center;
}

.letters-subtitle-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    color: #5f6673;
    font-size: 18px;
    line-height: 1.8;
}

.letters-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 42px;
    align-items: start;
}

.letter-card {
    background: transparent;
    text-align: center;
}

.letter-image-link {
    display: block;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .letter-image-link:hover {
        transform: translateY(-6px);
        box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
    }

    .letter-image-link img {
        width: 100%;
        height: 520px;
        object-fit: contain;
        display: block;
        background: #ffffff;
    }

.letter-info {
    padding: 18px 10px 0;
}

    .letter-info h3 {
        margin: 0 0 6px;
        color: #2b3140;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.4;
    }

    .letter-info p {
        margin: 0;
        color: #5f6673;
        font-size: 20px;
        line-height: 1.5;
    }

/* =========================
   80週年相關報導：條列式版型
========================= */
.media-subtitle-row {
    max-width: 980px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

#media .media-subtitle-row .section-subtitle {
    margin: 0;
    max-width: none;
    line-height: 1.8;
}

.media-more-btn {
    flex-shrink: 0;
}

.media-list-wrap {
    max-width: 980px;
    margin: 35px auto 0;
    border-top: 2px solid #111111;
}

.media-list-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 28px;
    align-items: center;
    padding: 34px 0;
    border-bottom: 1px solid #e8e8e8;
    text-decoration: none;
    transition: all 0.25s ease;
}

    .media-list-item:hover {
        transform: translateX(8px);
    }

.media-thumb {
    width: 150px;
    height: 115px;
    overflow: hidden;
    background: #f1f1f1;
}

    .media-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: none;
        transition: all 0.35s ease;
    }

.media-list-item:hover .media-thumb img {
    filter: none;
    transform: scale(1.05);
}

.media-text {
    min-width: 0;
}

    .media-text .mag-source {
        display: block;
        margin-bottom: 10px;
        color: #c49a2c;
        font-size: 22px;
        font-weight: 900;
        letter-spacing: 3px;
    }

    .media-text h3 {
        margin: 0;
        color: #111111;
        font-family: 'Noto Serif TC', serif;
        font-size: 28px;
        font-weight: 700;
        line-height: 1.45;
    }

.media-list-item:hover .media-text h3 {
    color: #1f4f9d;
}

/* 原本 section-subtitle 的媒體區設定保留，但不再影響 media-subtitle-row */
#media > .section-subtitle {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 30px;
    color: #555555;
    font-size: 18px;
    line-height: 1.8;
}

/* =========================
   其他資訊
========================= */
.legacy-grid {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.legacy-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    padding: 28px 24px;
    background: #ffffff;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 18px 38px rgba(20, 40, 80, 0.10);
    transition: all 0.25s ease;
    border: 1px solid rgba(31, 79, 157, 0.08);
}

    .legacy-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 24px 48px rgba(20, 40, 80, 0.16);
    }

.legacy-logo-wrap {
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

    .legacy-logo-wrap img {
        max-width: 180px;
        max-height: 90px;
        object-fit: contain;
        display: block;
    }

.legacy-title {
    color: #1f4f9d;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 6px;
}

.legacy-text {
    color: #5f6673;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

.legacy-placeholder {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f4f9d 0%, #6c4bb5 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 1px;
    box-shadow: 0 12px 24px rgba(31, 79, 157, 0.22);
}

/* =========================
   letter.aspx 國內外祝賀信函獨立頁
========================= */
.letter-page-hero {
    margin-top: 80px;
    padding: 70px 6% 56px;
    background: linear-gradient(135deg, rgba(31, 79, 157, 0.92), rgba(53, 0, 87, 0.9)), url('../images/mainbg.png') center center / cover no-repeat;
    color: #ffffff;
    text-align: center;
}

.letter-page-hero-inner {
    max-width: 960px;
    margin: 0 auto;
}

.letter-page-kicker {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
}

.letter-page-hero h1 {
    margin: 0 0 16px;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 4px;
}

.letter-page-hero p {
    margin: 0 auto;
    max-width: 860px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.9;
}

.letter-page-main {
    padding: 50px 6% 75px;
    background: linear-gradient(180deg, #f3f6fb 0%, #e9eef6 100%);
}

.letter-page-toolbar {
    max-width: 1320px;
    margin: 0 auto 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

    .letter-page-toolbar h2 {
        color: #1f4f9d;
        font-size: 32px;
        font-weight: 900;
        letter-spacing: 2px;
    }

.letter-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    background: #1f4f9d;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

    .letter-back-btn:hover {
        background: #173f80;
    }

.letter-page-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 42px;
    align-items: start;
}

.letter-page-card {
    text-align: center;
}

.letter-page-image {
    display: block;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 18px 34px rgba(20, 40, 80, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .letter-page-image:hover {
        transform: translateY(-6px);
        box-shadow: 0 24px 44px rgba(20, 40, 80, 0.25);
    }

    .letter-page-image img {
        width: 100%;
        height: 520px;
        object-fit: contain;
        display: block;
        background: #ffffff;
    }

.letter-page-info {
    padding: 18px 10px 0;
}

    .letter-page-info h3 {
        margin: 0 0 6px;
        color: #1f4f9d;
        font-size: 24px;
        font-weight: 900;
        line-height: 1.4;
    }

    .letter-page-info p {
        margin: 0;
        color: #5f6673;
        font-size: 20px;
        line-height: 1.5;
    }

/* =========================
   頁尾
========================= */
.site-footer {
    background: #25004d;
    color: rgba(255,255,255,0.82);
    padding: 46px 6% 22px;
}

.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 42px;
    align-items: flex-start;
}

.footer-logo img {
    width: 190px;
    max-width: 100%;
    display: block;
    margin-bottom: 18px;
}

.footer-desc {
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
    max-width: 420px;
}

.footer-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    margin: 0 0 16px;
    letter-spacing: 1px;
}

.footer-links {
    display: grid;
    gap: 10px;
}

    .footer-links a {
        color: rgba(255,255,255,0.78);
        text-decoration: none;
        font-size: 15px;
        line-height: 1.6;
        transition: color 0.2s ease;
    }

        .footer-links a:hover {
            color: #ffd64a;
        }

.footer-contact p {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.7;
}

.footer-contact a {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
}

    .footer-contact a:hover {
        color: #ffd64a;
    }

.footer-bottom {
    max-width: 1320px;
    margin: 34px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: rgba(255,255,255,0.62);
}

.footer-top-link {
    color: #ffffff;
    text-decoration: none;
    padding: 7px 14px;
    border: 1px solid rgba(255,255,255,0.32);
    border-radius: 999px;
    transition: all 0.25s ease;
}

    .footer-top-link:hover {
        background: #ffffff;
        color: #25004d;
    }

/* =========================
   平板版
========================= */
@media (max-width: 960px) {
    .feature-block,
    .feature-block.reverse,
    .forum-block {
        grid-template-columns: 1fr;
        gap: 28px;
    }

        .feature-block.reverse .feature-image {
            order: 1;
        }

        .feature-block.reverse .feature-content {
            order: 2;
        }

    .feature-image img,
    .forum-image img {
        height: 300px;
    }

    .video-grid,
    .legacy-grid,
    .letters-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .letter-page-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 34px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* =========================
   手機版
========================= */
@media (max-width: 900px) {
    .navbar {
        padding: 0 20px;
        height: 70px;
    }

    #hero-slider {
        margin-top: 70px !important;
    }

    .hero-slide {
        background-image: url('../images/mainbg_mb.png') !important;
        background-position: center center !important;
    }

    .menu-toggle {
        display: flex;
        z-index: 101;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 50%);
        background: #350057;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: 0.4s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

        .nav-links.active {
            right: 0;
        }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 30px;
    }

    #carnival,
    #dinner,
    #knowledge,
    #award,
    #videos,
    #letters,
    #media,
    #other-info {
        scroll-margin-top: 20px;
    }

    #hero-slider {
        height: 325px;
    }

    .hero-label-box {
        left: 50%;
        bottom: 18px;
        transform: translateX(-50%);
        padding: 8px 18px;
        font-size: 15px;
        letter-spacing: 1px;
        max-width: 88%;
        white-space: nowrap;
        background: rgba(65, 31, 120, 0.72);
    }

    .chairman-message-section {
        padding: 18px 5% 18px;
    }

    .chairman-message-card {
        margin-top: 0;
        padding: 26px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        border-radius: 18px;
    }

        .chairman-message-card::before {
            width: 6px;
        }

    .chairman-message-text h2 {
        font-size: 26px;
        letter-spacing: 1.5px;
    }

    .chairman-message-text p {
        font-size: 16px;
    }

    .chairman-message-action {
        width: 100%;
    }

    .chairman-btn {
        width: 100%;
        min-width: auto;
        box-sizing: border-box;
    }

    .anniversary-section,
    #knowledge,
    #award,
    #dinner,
    #videos,
    #letters,
    #media,
    #other-info {
        padding: 32px 5% 48px;
    }

    #carnival {
        padding-top: 24px;
    }

    .section-title {
        font-size: 34px;
        letter-spacing: 2px;
        margin-bottom: 6px;
    }

    .section-subtitle,
    #media > .section-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .feature-content,
    .forum-info-card {
        padding: 28px 22px;
    }

        .feature-content h3,
        .forum-info-card h3 {
            font-size: 26px;
        }

        .feature-content p {
            font-size: 16px;
        }

    .feature-info-list li,
    .forum-list li {
        font-size: 15px;
    }

    .forum-list {
        max-width: 100%;
    }

        .forum-list li {
            grid-template-columns: 58px 1fr;
            gap: 10px;
        }

    .feature-btn,
    .forum-info-card .feature-btn {
        width: 100%;
        min-width: auto;
        font-size: 16px;
    }

    .feature-badge {
        left: 18px;
        bottom: 18px;
        font-size: 14px;
        padding: 8px 18px;
    }

    .video-header-row,
    .letters-header-row {
        margin-bottom: 24px;
    }

    .video-subtitle-wrap,
    .letters-subtitle-wrap {
        font-size: 16px;
        gap: 12px;
    }

    .view-all-btn {
        font-size: 15px;
        padding: 8px 16px;
    }

    .video-info h3 {
        font-size: 20px;
    }

    .letter-image-link img {
        height: auto;
        max-height: none;
    }

    .letter-info h3 {
        font-size: 22px;
    }

    .letter-info p {
        font-size: 18px;
    }

    .media-subtitle-row {
        margin-bottom: 24px;
        gap: 12px;
    }

    #media .media-subtitle-row .section-subtitle {
        width: auto;
        text-align: center;
        margin: 0;
    }

    .media-more-btn {
        width: auto;
    }

    .media-list-wrap {
        margin-top: 28px;
    }

    .media-list-item {
        grid-template-columns: 110px 1fr;
        gap: 18px;
        padding: 26px 0;
    }

    .media-thumb {
        width: 110px;
        height: 90px;
    }

    .media-text .mag-source {
        font-size: 13px;
        letter-spacing: 2px;
        margin-bottom: 6px;
    }

    .media-text h3 {
        font-size: 21px;
        line-height: 1.45;
    }

    .legacy-card {
        min-height: 190px;
    }

    .letter-page-hero {
        margin-top: 70px;
        padding: 52px 5% 42px;
    }

        .letter-page-hero h1 {
            font-size: 36px;
            letter-spacing: 2px;
        }

        .letter-page-hero p {
            font-size: 16px;
        }

    .letter-page-main {
        padding: 38px 5% 56px;
    }

    .letter-page-toolbar {
        justify-content: center;
        text-align: center;
    }

        .letter-page-toolbar h2 {
            width: 100%;
            font-size: 28px;
        }

    .letter-page-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .letter-page-image img {
        height: auto;
    }

    .letter-page-info h3 {
        font-size: 22px;
    }

    .letter-page-info p {
        font-size: 18px;
    }

    .site-footer {
        padding: 38px 5% 22px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================
   小手機版
========================= */
@media (max-width: 480px) {
    #hero-slider {
        height: 325px;
    }

    .hero-label-box {
        bottom: 14px;
        padding: 8px 16px;
        font-size: 14px;
        letter-spacing: 0.5px;
        max-width: 90%;
    }

    .chairman-message-card {
        padding: 24px 20px;
    }

    .chairman-label {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .chairman-message-text h2 {
        font-size: 24px;
    }

    .chairman-message-text p {
        font-size: 15px;
        line-height: 1.75;
    }

    .chairman-btn {
        font-size: 15px;
        padding: 13px 20px;
    }

    .feature-image img,
    .forum-image img {
        height: 240px;
    }

    .forum-list li {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .letters-grid {
        gap: 30px;
    }

    .letter-info h3 {
        font-size: 20px;
    }

    .letter-info p {
        font-size: 17px;
    }

    .media-subtitle-row {
        flex-direction: column;
        gap: 12px;
    }

    .media-list-item {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .media-thumb {
        width: 100%;
        height: 180px;
    }

    .media-list-item:hover {
        transform: none;
    }

    .legacy-logo-wrap img {
        max-width: 150px;
    }

    .footer-logo img {
        width: 170px;
    }
}

/* =========================================================
   傑出貿易企業獎圖片修正：留白版
========================================================= */

#award .feature-block.reverse {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: center;
}

#award .feature-image {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-sizing: border-box;
    padding: 35px;
    box-shadow: 0 18px 45px rgba(80, 60, 20, 0.18);
}

    #award .feature-image img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

/* 手機版調整 */
@media (max-width: 768px) {
    #award .feature-block.reverse {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    #award .feature-image {
        padding: 22px;
    }

        #award .feature-image img {
            width: 100%;
            max-width: 100%;
            height: auto;
        }
}