:root {
    --bg: #0f1a20;
    --panel: rgba(10, 20, 28, 0.78);
    --line: rgba(255, 255, 255, 0.14);
    --text: rgba(255, 255, 255, 0.88);
    --muted: rgba(255, 255, 255, 0.64);
    --accent: #90cdf4;
    --accent-strong: #63b3ed;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 固定背景：模糊壓暗的海報 */
.bg-fill { position: fixed; inset: -40px; z-index: -1; background: url("/bg-m.jpg") center / cover no-repeat; filter: blur(24px) brightness(0.35); }

/* 頂部導覽列 */
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(8, 16, 22, 0.82);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { max-width: 1080px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: #fff; text-decoration: none; line-height: 1.25; }
.brand-zh { display: block; font-size: 19px; font-weight: 700; letter-spacing: 0.04em; }
.brand-en { display: block; font-size: 11px; color: var(--muted); }
.site-nav ul { list-style: none; display: flex; gap: 4px; }
.site-nav a {
    display: block; padding: 6px 12px; border-radius: 8px; text-decoration: none; text-align: center;
    color: rgba(255, 255, 255, 0.82); font-size: 14px; font-weight: 600; line-height: 1.3;
    transition: background-color 0.2s ease;
}
.site-nav a .en { display: block; font-size: 11px; font-weight: 500; opacity: 0.7; }
.site-nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.site-nav a[aria-current="page"] { background: rgba(144, 205, 244, 0.18); color: #bee3f8; box-shadow: inset 0 -2px 0 var(--accent-strong); }

/* 首頁主視覺 */
.hero { position: relative; background: #000; overflow: hidden; }
.hero picture, .hero img { display: block; width: 100%; }
.hero img { max-height: calc(100vh - 64px); object-fit: contain; margin: 0 auto; position: relative; }
.hero::before { content: ""; position: absolute; inset: -30px; background: url("/bg.jpg") center / cover no-repeat; filter: blur(22px) brightness(0.5); }

/* 內頁標題帶 */
.page-hero { text-align: center; padding: 48px 20px 28px; }
.page-hero h1 { font-size: 30px; font-weight: 700; color: #fff; letter-spacing: 0.06em; line-height: 1.3; }
.page-hero h1 .en { display: block; font-size: 15px; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); margin-top: 4px; }

/* 內容區 */
.content { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 0 20px 48px; }
.home .content { padding-top: 36px; }
.panel {
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    padding: 28px 32px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.panel + .panel { margin-top: 20px; }
.center { text-align: center; }

.status-badge {
    display: inline-block; background-color: rgba(144, 205, 244, 0.16); border: 1px solid rgba(144, 205, 244, 0.35);
    color: #bee3f8; padding: 6px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; margin-bottom: 16px; line-height: 1.4;
}
.status-badge .en { display: block; font-size: 12px; font-weight: 500; opacity: 0.85; }
.description { font-size: 16px; margin-bottom: 12px; }
.description-en { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.yt-button {
    display: inline-block; background-color: #2f855a; color: #fff; padding: 12px 28px; border-radius: 8px;
    text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.4; transition: background-color 0.2s ease;
}
.yt-button:hover { background-color: #276749; }
.yt-button .en { display: block; font-size: 13px; font-weight: 500; opacity: 0.9; }

.section-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.section-title .en { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.more-link { display: inline-block; margin-top: 14px; color: var(--accent); font-size: 14px; text-decoration: none; }
.more-link:hover { text-decoration: underline; }

/* 文章內容 */
.page-body { font-size: 16px; }
.page-body p { margin-bottom: 12px; }
.page-body h3 { font-size: 17px; font-weight: 700; color: #bee3f8; margin: 26px 0 10px; padding-left: 10px; border-left: 3px solid var(--accent-strong); line-height: 1.35; }
.page-body h3:first-child { margin-top: 0; }
.page-body blockquote { margin: 0 0 14px; padding: 12px 16px; background: rgba(255,255,255,.06); border-radius: 8px; }
.page-body blockquote cite { display: block; margin-top: 6px; font-size: 13px; font-style: normal; color: var(--muted); }
.page-body ul { margin: 0 0 12px 1.3em; }
.page-body li { margin-bottom: 8px; }
.page-body strong { color: #fff; }
.page-body .en-block { font-size: 15px; color: rgba(255,255,255,.76); margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.page-body a, .info-table a { color: var(--accent); }

.info-table { width: 100%; border-collapse: collapse; font-size: 15px; text-align: left; }
.info-table th, .info-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 32%; color: #fff; font-weight: 600; }
.info-table th .en, .info-table td .en { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.source-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* 頁尾 */
.site-footer { border-top: 1px solid var(--line); background: rgba(8, 16, 22, 0.85); font-size: 13px; color: var(--muted); }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 22px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-inner strong { color: rgba(255,255,255,.85); font-weight: 600; }
.footer-inner a { color: var(--muted); }

@media (max-width: 820px) {
    .header-inner { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px; }
    .brand { text-align: center; }
    .site-nav ul { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
    .site-nav a { padding: 6px 2px; font-size: 13px; }
    .site-nav a .en { font-size: 9.5px; letter-spacing: -0.2px; }
    .hero img { max-height: none; }
    .page-hero { padding: 32px 16px 20px; }
    .page-hero h1 { font-size: 24px; }
    .content { padding: 0 12px 36px; }
    .home .content { padding-top: 20px; }
    .panel { padding: 22px 18px; }
    .info-table th, .info-table td { display: block; width: 100%; }
    .info-table th { border-bottom: 0; padding-bottom: 2px; }
    .footer-inner { flex-direction: column; text-align: center; }
}
