@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&display=swap');

/* 紳士月台 — 共用主題樣式（全站一份） */
:root {
    --thumb-ratio: 1 / 1;   /* 圖片統一比例：直式改 3 / 4、橫式改 16 / 9 */
    --ink:   #0b111e;       /* 最深底色 */
    --ink-2: #121b2c;       /* 面板 */
    --ink-3: #1a2740;       /* 卡片 */
    --line:  #2b3c5b;       /* 邊線 */
    --gold:  #f3c64a;       /* 金色主題色 */
    --sky:   #5aa9e6;       /* 次要色 */
    --text:  #e9eef6;
    --muted: #9fb1c8;
}
html { scroll-behavior: smooth; }
body {
    padding-top: 56px;
    color: var(--text);
    font-family: 'Noto Sans TC', system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
    background: radial-gradient(1100px 520px at 50% -8%, #1e2c49 0%, var(--ink) 58%) fixed;
}
[id^="post-"] { scroll-margin-top: 78px; }

/* ---- 捲軸：深藍 + 金色 ---- */
* { scrollbar-width: thin; scrollbar-color: var(--gold) var(--ink-2); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--sky), var(--gold));
    border-radius: 8px; border: 2px solid var(--ink);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
::-webkit-scrollbar-corner { background: var(--ink); }

/* ---- 頂欄 ---- */
.navbar.bg-dark {
    background: rgba(11, 17, 30, .92) !important;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.navbar-brand { letter-spacing: .04em; }

/* ---- 頁首 ---- */
.site-header { text-align: center; }
.site-header h1 { font-weight: 900; letter-spacing: .1em; margin: .5rem 0 .15rem; }
.site-header .sub { color: var(--muted); margin: 0; }
.site-header .rule {
    width: 66px; height: 3px; border-radius: 2px; margin: .8rem auto 0;
    background: linear-gradient(90deg, var(--sky), var(--gold));
}

/* ---- 影片牆 ---- */
.gallery {
    background: linear-gradient(180deg, var(--ink-2), var(--ink));
    border: 1px solid var(--line); border-radius: 1.1rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}

/* ---- 卡片 ---- */
.post { transition: transform .25s ease; }
.post:hover { transform: translateY(-4px); }
.thumb-wrap {
    display: block; position: relative; overflow: hidden;
    border-radius: .85rem; border: 1px solid var(--line); background: #0a0f1a;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.post:hover .thumb-wrap { border-color: var(--gold); box-shadow: 0 12px 28px rgba(0, 0, 0, .5); }
.thumb {
    display: block; width: 100%;
    aspect-ratio: var(--thumb-ratio);
    object-fit: cover; object-position: center;
    transition: transform .45s ease;
}
.post:hover .thumb { transform: scale(1.06); }
.idx {
    position: absolute; top: .5rem; left: .5rem; z-index: 2;
    min-width: 1.6rem; text-align: center;
    font-size: .8rem; font-weight: 700; color: #1a1206;
    background: var(--gold); border-radius: .5rem; padding: .1rem .45rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.play-btn {
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    margin-top: .6rem; padding: .6rem .75rem;
    font-weight: 600; text-decoration: none; color: var(--text);
    background: linear-gradient(180deg, var(--ink-3), #12203a);
    border: 1px solid var(--line); border-radius: .7rem;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.play-btn .bi-play-fill { color: var(--gold); transition: color .2s ease; }
.play-btn:hover {
    background: linear-gradient(180deg, var(--gold), #e3b53a);
    color: #1a1206; border-color: var(--gold);
    box-shadow: 0 8px 22px rgba(243, 198, 74, .28);
}
.play-btn:hover .bi-play-fill { color: #1a1206; }

/* ---- 選單 ---- */
.offcanvas .nav-link:hover { color: var(--gold) !important; }
.menu-ico { width: 22px; height: 22px; margin-right: .55rem; vertical-align: -5px; }
.jump-ico { width: 17px; height: 17px; margin-right: .4rem; vertical-align: -3px; }

/* ---- 首頁 landing：各週封面卡 ---- */
.week-card .meta { margin-top: .55rem; text-align: center; }
.week-card .wk-label {
    display: block; color: var(--text); font-weight: 600; text-decoration: none;
    padding: .55rem .6rem; border-radius: .7rem;
    background: linear-gradient(180deg, var(--ink-3), #12203a); border: 1px solid var(--line);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.week-card:hover .wk-label { background: linear-gradient(180deg, var(--gold), #e3b53a); color: #1a1206; border-color: var(--gold); }
.week-card .wk-date { display: block; color: var(--muted); font-size: .82rem; margin-top: .3rem; }
.week-link.active { color: var(--gold) !important; font-weight: 700; }
.week-link.active::before { content: "▸ "; }

/* ---- 頁尾 ---- */
.site-footer { color: var(--muted); text-align: center; padding: 1.4rem 0 2.2rem; font-size: .86rem; }
.site-footer .footer-links { margin-top: .45rem; }
.site-footer .footer-links a { color: var(--gold); text-decoration: none; }
.site-footer .footer-links a:hover { text-decoration: underline; }
.site-footer .footer-links .sep { color: var(--muted); margin: 0 .55rem; }

/* ---- 關於我 頁面 ---- */
.about-wrap { max-width: 820px; margin: 0 auto; }
.about-card {
    background: linear-gradient(180deg, var(--ink-2), var(--ink));
    border: 1px solid var(--line); border-radius: 1.1rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
    padding: 1.5rem 1.4rem;
}
.about-card h2 { font-weight: 800; font-size: 1.15rem; margin: 0 0 .7rem; display: flex; align-items: center; }
.about-card h2 .bar { width: 6px; height: 1.05em; background: var(--gold); border-radius: 3px; margin-right: .55rem; }
.about-card p { line-height: 1.95; margin-bottom: .7rem; }
.about-card .muted { color: var(--muted); }
.stats { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; margin: .3rem 0; }
.stat { text-align: center; }
.stat .num { color: var(--gold); font-weight: 800; font-size: 1.5rem; line-height: 1.1; }
.stat .lab { color: var(--muted); font-size: .82rem; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .2rem; }
@media (max-width: 575px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { display: flex; gap: .65rem; align-items: flex-start; padding: .75rem .85rem; background: var(--ink-3); border: 1px solid var(--line); border-radius: .7rem; }
.feature .emo { font-size: 1.35rem; line-height: 1.2; }
.feature b { display: block; }
.feature span { color: var(--muted); font-size: .9rem; }
.cta-row { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; margin-top: .3rem; }
.btn-cta {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .6rem 1.1rem; border-radius: .7rem; text-decoration: none; font-weight: 700;
    color: var(--text); border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--ink-3), #12203a); transition: all .2s ease;
}
.btn-cta:hover { border-color: var(--gold); }
.btn-cta.primary { background: linear-gradient(180deg, var(--gold), #e3b53a); color: #1a1206; border-color: var(--gold); }
.btn-cta.primary:hover { box-shadow: 0 8px 22px rgba(243, 198, 74, .3); }

/* ---- 首頁 hero（最新一週）---- */
.hero {
    display: flex; gap: 1rem; align-items: stretch;
    max-width: 800px; margin: 0 auto;
    text-decoration: none; color: var(--text);
    background: linear-gradient(180deg, var(--ink-2), var(--ink));
    border: 1px solid var(--line); border-radius: 1rem; overflow: hidden;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .45);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.hero:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 18px 48px rgba(0, 0, 0, .5); }
.hero-cover { position: relative; flex: 0 0 40%; align-self: stretch; aspect-ratio: var(--thumb-ratio); overflow: hidden; }
.hero-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
.hero:hover .hero-cover img { transform: scale(1.05); }
.hero-tag {
    position: absolute; top: .7rem; left: .7rem;
    background: var(--gold); color: #1a1206; font-weight: 800; font-size: .76rem;
    padding: .2rem .6rem; border-radius: .5rem; box-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}
.hero-body { flex: 1; padding: 1.05rem 1.3rem; display: flex; flex-direction: column; justify-content: center; gap: .4rem; }
.hero-date { color: var(--muted); font-size: .86rem; }
.hero-title { font-weight: 900; font-size: 1.4rem; margin: 0; letter-spacing: .04em; }
.hero-cta {
    align-self: flex-start; margin-top: .3rem;
    background: linear-gradient(180deg, var(--gold), #e3b53a); color: #1a1206;
    font-weight: 800; padding: .5rem 1.05rem; border-radius: .65rem; font-size: .92rem;
}
@media (max-width: 600px) {
    .hero { flex-direction: column; gap: 0; }
    .hero-cover { flex-basis: auto; aspect-ratio: 16/10; min-height: 0; }
    .hero-title { font-size: 1.3rem; }
}
.section-label { color: var(--muted); font-weight: 700; letter-spacing: .14em; margin: .2rem 0 1rem .25rem; padding: 0; }

/* ---- 進場淡入 ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- 回到頂端 ---- */
.to-top {
    position: fixed; right: 18px; bottom: 18px; z-index: 1040;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--gold); color: #1a1206;
    background: linear-gradient(180deg, var(--gold), #e3b53a);
    font-size: 1.15rem; line-height: 1; cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { box-shadow: 0 10px 26px rgba(243, 198, 74, .4); }

/* ---- 選單當前頁高亮 ---- */
.offcanvas .nav-link.nav-current { color: var(--gold) !important; font-weight: 700; }
