/* ===== Brand Logo ===== */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: #111;
    text-decoration: none;
    font-size: 30px;
    letter-spacing: 0.8px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.05);
}

.brand-logo, .nt-logo {
    height: 64px;
    width: auto;
    display: block;
}

.brand-text {
    font-family: "Noto Sans TC", sans-serif;
}

.brand:hover img {
    filter: brightness(1.1);
}

/* ===== 響應式 ===== */
@media (max-width: 768px) {
    .brand {
        font-size: 16px;
        gap: 8px;
    }

    .brand-logo, .nt-logo {
        height: 48px;
    }
}

@media (max-width: 480px) {
    .brand {
        font-size: 14px;
        gap: 6px;
    }

    .brand-logo, .nt-logo {
        height: 42px;
    }
}

/* ===== Intro / Landing ===== */
.section.fullbleed {
    padding: 0;
}

    .section.fullbleed .container {
        max-width: var(--container);
        padding: 0 1rem;
    }

.intro-hero {
    min-height: calc(100vh - 64px);
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #f9fafc 0%, #f3f6fb 100%);
    border-bottom: 1px solid var(--line);
}

.intro-wrap {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 32px;
    align-items: center;
    padding: 40px 0;
}

.intro-figure {
    order: -1;
    margin-bottom: 16px;
}

.headline-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 24px;
}

    .headline-bar .intro-title {
        margin: 0;
        flex-shrink: 0;
    }

@media (max-width: 600px) {
    .headline-bar {
        justify-content: flex-start;
        gap: 16px;
    }
}

.intro-title {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: .5px;
}

.intro-p {
    margin: 0 0 20px;
    color: #3c3c3c;
    font-size: 18px;
    line-height: 1.9;
    background: #efe7f2;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid #e3d8ea;
}

.intro-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.intro-skip {
    font-size: 14px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-figure {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #eee;
}

    .hero-figure img {
        width: 100%;
        height: auto;
        display: block;
    }

/* ===== Reset & Base ===== */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

:root {
    --bg: #fafafa;
    --panel: #ffffff;
    --text: #222;
    --muted: #666;
    --line: #e0e0e0;
    --brand: #005bac;
    --container: 1200px;
    --radius: 12px;
}

body {
    font-family: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", Roboto, Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a {
    color: var(--brand);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

img {
    max-width: 100%;
    display: block;
}

/* ===== Layout ===== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 40px 0;
}

.visually-hidden {
    position: absolute;
    left: -9999px;
}

/* ===== Header ===== */
.site-header.is-scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.3s ease-out;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

/* ===== 漢堡選單 ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    gap: 4px;
}

    .menu-toggle span {
        height: 3px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
        box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }

    /* 漢堡變 X */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

/* ===== Nav ===== */
.nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

    .nav a {
        color: #333;
        font-size: 15px;
    }

        .nav a:hover, .nav a[aria-current="page"] {
            color: var(--brand);
            font-weight: 600;
        }

/* ===== 手機漢堡選單 + 文字內縮 ===== */
@media (max-width: 768px) {
    /* 漢堡選單 */
    .menu-toggle {
        display: flex;
        z-index: 101;
    }

    .nav {
        display: none !important;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        border-bottom: 1px solid var(--line);
        z-index: 100;
        max-height: 80vh;
        overflow-y: auto;
    }

        .nav.active {
            display: flex !important;
        }

        .nav a {
            padding: 16px 24px;
            font-size: 16px;
            border-bottom: 1px solid #f0f0f0;
            transition: background 0.2s;
            width: 100%;
            text-align: left;
        }

            .nav a:hover,
            .nav a[aria-current="page"] {
                background: #f8faff;
                color: var(--brand);
                font-weight: 600;
            }

    .navbar {
        padding: 12px 0;
    }

    /* 🎯 新增：手機文字內縮 20px */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .section,
    main .container,
    .intro-wrap,
    .intro-hero .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cards,
    .video-grid {
        padding-left: 4px;
        padding-right: 4px;
    }
}

@media (max-width: 480px) {
    /* 超小手機：16px 內縮 */
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .section,
    main .container,
    .intro-wrap,
    .intro-hero .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand {
        font-size: 14px;
        gap: 6px;
    }

    .brand-logo, .nt-logo {
        height: 42px;
    }
}

/* ===== Banner ===== */
.banner {
    background: #f0f2f5;
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    border: 1px solid var(--line);
}

    .banner h1 {
        margin: 0 0 8px;
        font-size: 28px;
    }

    .banner p {
        margin: 0;
        color: var(--muted);
    }

/* ===== 卡片網格 ===== */
.cards {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

/* ===== 卡片 ===== */
.card {
    display: block;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,.06);
        border-color: #d5d5d5;
    }

        .card:hover .cover {
            transform: scale(1.05);
        }

    .card .cover {
        aspect-ratio: 16 / 9;
        object-fit: cover;
        object-position: center;
        width: 100%;
        background: #ddd;
        transition: transform 0.3s ease-out;
    }

    .card .body {
        padding: 16px;
    }

    .card .name {
        font-weight: 700;
        font-size: 18px;
        margin: 0 0 6px;
    }

    .card .meta {
        color: var(--muted);
        font-size: 14px;
        margin: 0;
    }

    .card .desc {
        color: #444;
        font-size: 14px;
        margin: 8px 0 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

/* ===== 按鈕 ===== */
.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    border: 1px solid var(--brand);
    text-decoration: none;
    font-weight: 600;
    transition: all .2s ease;
}

    .btn:hover {
        filter: brightness(.95);
        text-decoration: none;
        transform: translateY(-1px);
    }

/* ===== Footer ===== */
.site-footer {
    border-top: 1px solid var(--line);
    background: #f7f7f7;
    color: #444;
}

    .site-footer .inner {
        padding: 24px 0;
        font-size: 14px;
        text-align: center;
    }

/* ===== 名人頁 ===== */
.breadcrumb {
    font-size: 14px;
    color: var(--muted);
    margin: 16px 0 8px;
}

.hero {
    display: grid;
    gap: 24px;
    align-items: start;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }
}

.hero .portrait {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #ddd;
}

.hero .title {
    margin: 0 0 4px;
    font-size: 32px;
    font-weight: 800;
}

.hero .sport {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 18px;
}

.hero .highlights li {
    margin: 0 0 6px;
}

.section h2 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.videos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .videos {
        grid-template-columns: 1fr;
    }
}

.videos iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    border-radius: 8px;
}

.videos video {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    border-radius: 8px;
    background: #000;
    display: block;
}

.article-list li {
    margin: 6px 0;
}

.subtle {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.cover.lin-jia-ying {
  margin-top: 0px !important;
}

@media (max-width: 768px) {
  .cover.lin-jia-ying {
    margin-top: 0px !important;
  }
}