@charset "UTF-8";
/* ==========================================================================
   home-v2.css ── 神策首頁 v2（暗黑水墨版）
   色票／字型一律引用 Kit/css/theme.css 的 token；本檔只放首頁版面。
   動效只動 transform / opacity，並全部包在 prefers-reduced-motion: no-preference。
   ========================================================================== */

.hv2 {
    margin: 0;
    background: var(--ink-950);
    color: var(--cream-dim);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

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

.hv2 a {
    color: inherit;
    text-decoration: none;
}

.hv2 img {
    max-width: 100%;
}

/* 筆刷要比字寬，不受上面 max-width: 100% 限制（.hv2 img 權重較高，這裡要同樣帶 .hv2） */
.hv2 .hv2-brush,
.hv2 .hv2-title-brush {
    max-width: none;
}

/* ---- 共用：眉標「—◇ 文字 ◇—」 ---- */
.hv2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cream-mute);
    font-size: 13px;
    letter-spacing: 4px;
}

.hv2-eyebrow::before,
.hv2-eyebrow::after {
    content: '◇';
    color: var(--gold-700);
    font-size: 9px;
    letter-spacing: 0;
}

.hv2-eyebrow::before {
    padding-left: 50px;
    background: linear-gradient(90deg, transparent, var(--gold-700)) left center / 44px 1px no-repeat;
}

.hv2-eyebrow::after {
    padding-right: 50px;
    background: linear-gradient(270deg, transparent, var(--gold-700)) right center / 44px 1px no-repeat;
}

/* ==========================================================================
   區 0｜導覽列
   ========================================================================== */
.hv2-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    transition: background .3s, box-shadow .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}

.hv2-nav.is-solid,
.hv2-nav.is-open {
    /* 不用毛玻璃 backdrop-filter（捲動時每幀都要重新模糊後方畫面，弱顯卡會卡），改用更不透明的墨色底 */
    background: rgba(5, 8, 12, .96);
    border-bottom-color: var(--line);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}

.hv2-nav-in {
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 56px);
    height: 68px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hv2-brand img {
    display: block;
    height: 40px;
    width: auto;
    /* 維持原色 Logo（古銅單色濾鏡縮小後細節糊掉，2026-10-19 取消） */
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6));
}

.hv2-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hv2-menu > a {
    position: relative;
    padding: 8px 14px;
    color: var(--cream-dim);
    font-size: 15px;
    letter-spacing: 1px;
    transition: color .25s;
}

.hv2-menu > a:hover {
    color: var(--gold-400);
}

.hv2-menu > a:not(.hv2-nav-cta)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--vermilion-500);
    transform: translateX(-50%);
    transition: width .3s;
}

.hv2-menu > a:not(.hv2-nav-cta):hover::after {
    width: 70%;
}

.hv2-menu .is-ext i {
    font-size: 9px;
    margin-left: 4px;
    vertical-align: 2px;
    opacity: .55;
}

.hv2-menu-sep {
    width: 1px;
    height: 18px;
    margin: 0 6px;
    background: var(--line);
}

/* 導覽列下載鈕：壓在 hero 上時是幽靈金框（不跟主 CTA 搶），捲過後亮起 */
.hv2-nav-cta {
    margin-left: 10px;
    padding: 8px 20px !important;
    border: 1px solid var(--gold-700);
    border-radius: 999px;
    color: var(--gold-400) !important;
    transition: background .3s, border-color .3s, color .3s;
}

.hv2-nav.is-solid .hv2-nav-cta {
    background: var(--vermilion-700);
    border-color: var(--gold-500);
    color: var(--cream) !important;
}

.hv2-nav-cta:hover {
    background: var(--gold-500) !important;
    border-color: var(--gold-400) !important;
    color: #15110a !important;
}

.hv2-burger {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(5, 8, 12, .5);
    color: var(--gold-400);
    font-size: 20px;
    cursor: pointer;
}

/* ==========================================================================
   區 1｜序幕 Hero：全幅插畫＋右側墨暈文字層
   ========================================================================== */
.hv2-hero {
    position: relative;
    min-height: 100vh;
    min-height: min(100svh, 56.25vw);
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.hv2-hero-art,
.hv2-hero-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hv2-hero-art img {
    object-fit: cover;
    object-position: 35% 18%;
}

/* 右側墨暈＋底部漸深＋暗角；文字層本身不鋪底色 */
.hv2-hero-ink {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, transparent 45%, rgba(8, 12, 18, .78) 66%, rgba(8, 12, 18, .95) 100%),
        linear-gradient(to bottom, rgba(5, 8, 12, .55) 0, transparent 18%, transparent 68%, var(--ink-950) 100%);
    box-shadow: inset 0 0 160px rgba(0, 0, 0, .65);
}

/* 電腦版氛圍特效：預設不顯示，只有 ≥1025px 且沒有要求減少動態時才開 */
.hv2-fx {
    display: none;
}

@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
    .hv2-fx {
        display: block;
        position: absolute;
        inset: 0;
        z-index: -1;
        overflow: hidden;
        pointer-events: none;
    }

    /* 燈火呼吸：左側城樓燈籠一帶的暖光，極慢地明暗起伏 */
    .hv2-fx-glow {
        position: absolute;
        inset: 0;
        background:
            radial-gradient(ellipse 34% 30% at 14% 34%, rgba(255, 140, 60, .30), transparent 70%),
            radial-gradient(ellipse 30% 26% at 46% 52%, rgba(255, 120, 50, .16), transparent 70%);
        animation: hv2-glow 5.5s ease-in-out infinite alternate;
        will-change: opacity;
    }

    @keyframes hv2-glow {
        from { opacity: .2; }
        to { opacity: .55; }
    }

    /* 水墨煙霧：兩層不同速度的霧，從畫面下方往右飄；右側文字區用遮罩淡掉，不干擾閱讀 */
    .hv2-fx-mist {
        position: absolute;
        left: 0;
        bottom: -6%;
        width: 200%;
        height: 62%;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='600'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0035 .009' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .78 0 0 0 0 .80 0 0 0 0 .86 0 0 0 1.25 -.42'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E") 0 0 / 50% 100% repeat-x;
        -webkit-mask-image: linear-gradient(to top, #000 30%, transparent), linear-gradient(90deg, #000 40%, transparent 70%);
        -webkit-mask-composite: source-in;
        mask-image: linear-gradient(to top, #000 30%, transparent), linear-gradient(90deg, #000 40%, transparent 70%);
        mask-composite: intersect;
        opacity: .32;
        will-change: transform;
    }

    .hv2-fx-mist {
        animation: hv2-mist 60s linear infinite;
    }

    @keyframes hv2-mist {
        from { transform: translateX(-50%); }
        to { transform: translateX(0); }
    }

    /* 低階電腦自動降級：fx-lite 只留火星；fx-off 全關（含鏡頭推近）；fx-paused 首屏不在畫面時暫停 */
    .fx-lite .hv2-fx-mist,
    .fx-lite .hv2-fx-glow,
    .fx-off .hv2-fx {
        display: none;
    }

    .fx-off .hv2-hero-art img {
        animation: none !important;
    }

    .fx-paused .hv2-fx-mist,
    .fx-paused .hv2-fx-glow,
    .fx-paused .hv2-hero-art img {
        animation-play-state: paused !important;
    }

    .hv2-fx-embers {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }
}

.hv2-hero-text {
    position: relative;
    margin: 0 max(clamp(16px, 3vw, 56px), calc((100vw - 1760px) / 2 + 56px)) 0 auto;
    width: clamp(380px, 40%, 560px);
    padding: 110px 0 120px;
    text-align: center;
}

.hv2 .logo-h1 {
    margin: 18px auto 0;
    line-height: 0;
    font-size: 0;
}

.hv2-logo {
    height: 64px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6));
}

/* 書法「神策」＋後方暗紅筆刷 */
.hv2-calli {
    position: relative;
    margin: 6px auto 0;
    width: min(100%, 380px);
}

/* 水平筆刷 b（筆觸佔圖寬 5.6%～94.4%）：150% 寬、左移 25% → 左右各超出字約 16%，置中不偏；上緣 23% ＝ 筆刷中線落在字高 58% */
.hv2-brush {
    position: absolute;
    left: -25%;
    top: 23%;
    width: 150%;
    max-width: none;
    height: auto;
    opacity: .9;
    z-index: 0;
}

.hv2-calli-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .75));
}

.hv2-h2 {
    margin: 14px 0 0;
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--cream);
    line-height: 1.35;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}

.hv2-h2-main {
    display: block;
    font-size: clamp(24px, 2.3vw, 34px);
    letter-spacing: 2px;
}

.hv2-h2-main em {
    font-style: normal;
    color: var(--gold-400);
}

.hv2-h2-sub {
    display: block;
    margin-top: 6px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    color: var(--cream-dim);
    letter-spacing: 1px;
}

.hv2-h2-sub b {
    color: var(--vermilion-400);
    font-weight: 700;
}

.hv2-facts {
    margin: 16px 0 0;
    font-size: 15px;
    color: var(--cream-dim);
    font-variant-numeric: tabular-nums;
}

.hv2-facts b {
    font-size: 19px;
    margin: 0 2px;
}

.hv2-facts .j { color: var(--jade); }
.hv2-facts .r { color: var(--vermilion-400); }
.hv2-facts span { color: var(--gold-700); margin: 0 4px; }

/* 主 CTA：硃紅印章鈕＋旁邊紅方印 */
.hv2-cta-row {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.hv2-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    justify-content: center;
    padding: 16px 34px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--vermilion-600), var(--vermilion-700));
    color: var(--cream) !important;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 4px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 220, 160, .25),
        inset 0 0 0 4px var(--vermilion-700),
        inset 0 0 0 5px rgba(232, 197, 106, .55),
        0 10px 30px rgba(154, 31, 38, .45);
    transition: transform .2s, box-shadow .25s;
}

.hv2-cta:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 220, 160, .35),
        inset 0 0 0 4px var(--vermilion-700),
        inset 0 0 0 5px var(--gold-400),
        0 0 28px rgba(255, 122, 61, .55),
        0 12px 34px rgba(154, 31, 38, .55);
}

.hv2-cta i {
    font-size: 18px;
}

/* 紅方印：雙框、直排白字、磨損遮罩 */
.hv2-seal {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    background: var(--vermilion-600);
    box-shadow: inset 0 0 0 3px var(--vermilion-600), inset 0 0 0 4px rgba(241, 228, 200, .85);
    transform: rotate(-3deg);
    -webkit-mask: url('../img/v2/seal_mask.webp') center / 100% 100%;
    mask: url('../img/v2/seal_mask.webp') center / 100% 100%;
}

.hv2-seal span {
    writing-mode: vertical-rl;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 19px;
    line-height: 1;
    letter-spacing: 2px;
    color: var(--cream);
}

.hv2-cta-note {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--cream-mute);
}

.hv2-line {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: var(--gold-400) !important;
    border-bottom: 1px dashed rgba(232, 197, 106, .4);
    padding-bottom: 2px;
}

.hv2-line:hover {
    border-bottom-color: var(--gold-400);
}

.hv2-line i {
    font-size: 12px;
    margin-left: 4px;
}

/* hero 底部墨條：開服三態 */
.hv2-inkbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 24px;
    background: rgba(5, 8, 12, .78);
    border-top: 1px solid var(--line);
    font-size: 15px;
    color: var(--cream);
}

.hv2-inkbar:hover .hv2-inkbar-more {
    color: var(--gold-400);
}

.hv2-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hv2-dot.is-red { background: var(--vermilion-500); box-shadow: 0 0 10px var(--vermilion-500); }
.hv2-dot.is-jade { background: var(--jade); box-shadow: 0 0 10px var(--jade); }

.hv2-countdown {
    color: var(--cream-mute);
    font-size: 14px;
}

.hv2-countdown b {
    color: var(--vermilion-400);
    font-size: 17px;
    font-variant-numeric: tabular-nums;
    margin-left: 4px;
}

.hv2-inkbar-more {
    color: var(--cream-mute);
    font-size: 13px;
    transition: color .25s;
}

/* ==========================================================================
   共用區塊
   ========================================================================== */
.hv2-sec {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px;
}

.hv2-sec-head {
    position: relative;
    text-align: center;
    margin-bottom: 36px;
}

.hv2-sec-head .hv2-eyebrow {
    display: flex;
    justify-content: center;
}

.hv2-title {
    position: relative;
    display: inline-block;
    margin: 10px 0 0;
    padding: 4px 30px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(26px, 3vw, 38px);
    color: var(--cream);
    letter-spacing: 3px;
    z-index: 0;
}

.hv2-title-brush {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 150%;
    max-width: none;
    height: auto;
    transform: translate(-50%, -46%);
    opacity: .7;
    z-index: -1;
    pointer-events: none;
}

.hv2-more {
    position: absolute;
    right: 0;
    bottom: 6px;
    font-size: 14px;
    color: var(--gold-400) !important;
}

/* ==========================================================================
   區 2｜數字帶
   ========================================================================== */
.hv2-points-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.hv2-point {
    position: relative;
    display: block;
    padding: 22px 20px 20px;
    background: var(--ink-800);
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: border-color .3s, box-shadow .3s, transform .3s;
}

.hv2-point::before {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
    opacity: .6;
}

.hv2-point:hover {
    border-color: rgba(212, 175, 55, .8);
    box-shadow: 0 0 24px rgba(255, 122, 61, .18);
}

.hv2-point-ic {
    color: var(--gold-500);
    font-size: 22px;
    opacity: .9;
}

.hv2-point-num {
    margin-top: 10px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(32px, 3.2vw, 50px);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.hv2-point-num small {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    margin-left: 4px;
    color: var(--cream-dim);
}

.hv2-point-num.is-jade { color: var(--jade); }
.hv2-point-num.is-red { color: var(--vermilion-500); }
.hv2-point-num.is-cream { color: var(--cream); }

.hv2-point-label {
    margin-top: 8px;
    color: var(--cream);
    font-size: 15px;
    letter-spacing: 1px;
}

.hv2-point-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 2px 8px;
    font-size: 12px;
    color: var(--gold-400);
    border: 1px solid var(--line);
    border-radius: 3px;
    background: rgba(5, 8, 12, .4);
}

/* ==========================================================================
   共用：副標、按鈕列
   ========================================================================== */
.hv2-sub {
    margin: 14px auto 0;
    max-width: 720px;
    color: var(--cream-dim);
    font-size: 15px;
    line-height: 1.8;
}

.hv2-sub b {
    color: var(--gold-400);
}

.hv2-btn-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.hv2-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border: 1px solid var(--gold-700);
    border-radius: 4px;
    background: rgba(5, 8, 12, .5);
    color: var(--gold-400) !important;
    font-size: 15px;
    letter-spacing: 1px;
    transition: border-color .25s, box-shadow .25s, color .25s;
}

.hv2-btn:hover {
    border-color: var(--gold-400);
    box-shadow: 0 0 18px rgba(255, 122, 61, .25);
}

.hv2-btn.is-ghost {
    border-color: var(--line);
    color: var(--cream-dim) !important;
}

/* ==========================================================================
   區 4｜智慧內掛：全幅插畫，文字壓在插畫左側 40% 暗部
   ========================================================================== */
.hv2-auto {
    position: relative;
    margin: 20px 0;
    min-height: min(56.25vw, 720px);
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.hv2-auto-art,
.hv2-auto-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hv2-auto-art img {
    object-fit: cover;
    object-position: 70% center;
}

.hv2-auto::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(5, 8, 12, .85) 0, rgba(5, 8, 12, .55) 34%, transparent 58%),
        linear-gradient(to bottom, var(--ink-950) 0, transparent 14%, transparent 86%, var(--ink-950) 100%);
}

.hv2-auto-in {
    position: relative;
    width: min(560px, 44%);
    margin-left: max(clamp(16px, 3vw, 56px), calc((100vw - 1280px) / 2 + 24px));
    padding: 70px 0;
}

.hv2-auto-in .hv2-eyebrow {
    display: flex;
}

.hv2-auto-in .hv2-eyebrow::before {
    display: none;
}

.hv2-auto-title {
    display: block;
    padding: 0;
    margin-top: 12px;
    line-height: 1.3;
}

.hv2-auto-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hv2-auto-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(10, 14, 20, .72);
    border: 1px solid var(--line);
    border-left: 3px solid var(--jade);
    border-radius: 4px;
}

.hv2-auto-list i {
    flex-shrink: 0;
    width: 22px;
    margin-top: 3px;
    color: var(--jade);
    font-size: 18px;
    text-align: center;
}

.hv2-auto-list b {
    display: block;
    color: var(--cream);
    font-size: 16px;
}

.hv2-auto-list b em {
    font-style: normal;
    color: var(--vermilion-400);
}

.hv2-auto-list span {
    display: block;
    margin-top: 3px;
    color: var(--cream-mute);
    font-size: 13.5px;
}

.hv2-auto-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.hv2-cta.hv2-cta-sm {
    min-width: 0;
    padding: 12px 26px;
    font-size: 18px;
    letter-spacing: 3px;
}

@media (max-width: 900px) {
    .hv2-auto-in {
        width: min(520px, 60%);
    }
}

/* 手機：插畫在上（裁右側主體），文字在下 */
@media (max-width: 700px) {
    .hv2-auto {
        display: block;
        min-height: 0;
    }

    .hv2-auto-art,
    .hv2-auto-art img {
        position: relative;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .hv2-auto-art img {
        object-position: 78% center;
    }

    .hv2-auto::after {
        background: linear-gradient(to bottom, var(--ink-950) 0, transparent 10%, transparent 55%, var(--ink-950) 75vw);
    }

    .hv2-auto-in {
        width: auto;
        margin: -48px 16px 0;
        padding: 0 0 40px;
    }

    .hv2-auto-in .hv2-eyebrow {
        justify-content: center;
    }

    .hv2-auto-in .hv2-eyebrow::before {
        display: inline;
    }

    .hv2-auto-title {
        text-align: center;
    }

    .hv2-auto-cta {
        justify-content: center;
    }
}

/* ==========================================================================
   區 6｜最新公告＋每週行事
   ========================================================================== */
.hv2-nw-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 18px;
    align-items: stretch; /* 左右等高 */
}

.hv2-news {
    display: flex;
    flex-direction: column;
}

.hv2-news-row {
    flex: 1 1 auto; /* 公告列平均撐滿，最後一則下緣與每週行事對齊 */
}

.hv2-news,
.hv2-week {
    background: rgba(17, 23, 33, .85);
    border: 1px solid var(--line);
    border-radius: 4px;
}

.hv2-news-loading {
    padding: 40px;
    text-align: center;
    color: var(--cream-mute);
}

.hv2-news-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line-soft);
    transition: background .25s;
}

.hv2-news-row:last-child {
    border-bottom: 0;
}

.hv2-news-row:hover {
    background: rgba(212, 175, 55, .06);
}

.hv2-news-row:hover .hv2-news-title {
    color: var(--gold-400);
}

.hv2-news-tag {
    flex-shrink: 0;
    padding: 2px 9px;
    font-size: 12px;
    border: 1px solid currentColor;
    border-radius: 3px;
    white-space: nowrap;
}

.hv2-news-tag.t1 { color: var(--vermilion-400); }
.hv2-news-tag.t2 { color: var(--gold-400); }
.hv2-news-tag.t3 { color: var(--jade); }
.hv2-news-tag.t4 { color: #c39bd3; }
.hv2-news-tag.t5 { color: #7fd6a0; }
.hv2-news-tag.t0 { color: var(--cream-mute); }

.hv2-news-title {
    flex: 1;
    min-width: 0;
    color: var(--cream);
    font-size: 15.5px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .25s;
}

.hv2-news-new {
    margin-left: 8px;
    padding: 1px 6px;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #15110a;
    background: var(--gold-400);
    border-radius: 3px;
    vertical-align: 2px;
}

.hv2-news-date {
    flex-shrink: 0;
    color: var(--cream-mute);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.hv2-week {
    padding: 16px 18px 10px;
}

.hv2-week-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
    color: var(--cream);
    font-weight: 700;
    font-size: 16px;
}

.hv2-week-head i {
    color: var(--gold-500);
}

.hv2-week-head span {
    margin-left: auto;
    font-weight: 400;
    font-size: 12px;
    color: var(--cream-mute);
}

.hv2-week-head span b {
    color: var(--vermilion-400);
}

.hv2-week-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hv2-week-day {
    display: flex;
    gap: 12px;
    padding: 9px 8px;
    border-radius: 3px;
    font-size: 14px;
}

.hv2-week-dn {
    flex-shrink: 0;
    width: 52px;
    color: var(--cream-dim);
    font-weight: 700;
}

.hv2-week-today {
    display: none;
}

.hv2-week-evs {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--cream-dim);
}

.hv2-week-evs a:hover {
    color: var(--gold-400);
}

.hv2-week-evs b {
    color: var(--vermilion-400);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hv2-week-none {
    color: var(--cream-mute);
    opacity: .6;
}

.hv2-week-day.is-today {
    background: rgba(200, 48, 46, .14);
    box-shadow: inset 3px 0 0 var(--vermilion-500);
}

.hv2-week-day.is-today .hv2-week-dn {
    color: var(--cream);
}

.hv2-week-day.is-today .hv2-week-today {
    display: block;
    font-style: normal;
    font-size: 11px;
    font-weight: 400;
    color: var(--vermilion-400);
}

/* ==========================================================================
   區 5｜魔法娃娃：桌機無限跑馬燈（滑鼠移上暫停）；手機改左右滑
   ========================================================================== */
.hv2-dolls {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.hv2-dolls .hv2-sec-head,
.hv2-doll-ranks,
.hv2-dolls .hv2-btn-row {
    padding: 0 24px;
}

.hv2-doll-rail {
    overflow: hidden;
    padding: 14px 0 18px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.hv2-doll-track {
    display: flex;
    gap: 14px;
    width: max-content;
}

.hv2-doll {
    --rk: var(--rank-common);
    position: relative;
    flex-shrink: 0;
    width: 132px;
    padding: 10px 8px 10px;
    text-align: center;
    background: var(--ink-800);
    border: 1px solid color-mix(in srgb, var(--rk) 55%, transparent);
    border-radius: 6px;
    box-shadow: inset 0 -30px 40px -30px color-mix(in srgb, var(--rk) 35%, transparent);
    transition: transform .25s, box-shadow .25s;
}

.hv2-doll:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 -30px 40px -30px color-mix(in srgb, var(--rk) 50%, transparent), 0 0 18px color-mix(in srgb, var(--rk) 40%, transparent);
}

.hv2-doll img {
    display: block;
    width: 104px;
    height: 104px;
    margin: 6px auto 4px;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .7));
}

.hv2-doll-rk {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 0 6px;
    font-size: 11px;
    line-height: 18px;
    color: var(--rk);
    border: 1px solid color-mix(in srgb, var(--rk) 50%, transparent);
    border-radius: 3px;
    background: rgba(5, 8, 12, .6);
}

.hv2-doll-nm {
    display: block;
    color: var(--cream);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.r-common { --rk: var(--rank-common); }
.r-adv { --rk: var(--rank-adv); }
.r-rare { --rk: var(--rank-rare); }
.r-hero { --rk: var(--rank-hero); }
.r-legend { --rk: var(--rank-legend); }
.r-myth { --rk: var(--rank-myth); }

.hv2-doll.r-myth {
    box-shadow: inset 0 -30px 40px -30px rgba(224, 64, 251, .5), 0 0 16px rgba(224, 64, 251, .35);
}

.hv2-doll-ranks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}

.hv2-doll-ranks span {
    padding: 2px 10px;
    font-size: 12px;
    color: var(--rk);
    border: 1px solid color-mix(in srgb, var(--rk) 45%, transparent);
    border-radius: 3px;
    background: rgba(5, 8, 12, .4);
}

@media (prefers-reduced-motion: no-preference) and (min-width: 701px) {
    .hv2-doll-track {
        animation: hv2-marquee 110s linear infinite;
    }

    .hv2-doll-rail:hover .hv2-doll-track,
    .hv2-doll-rail.is-off .hv2-doll-track {
        animation-play-state: paused;
    }

    @keyframes hv2-marquee {
        from { transform: translateX(0); }
        to { transform: translateX(calc(-50% - 7px)); }
    }
}

/* 不跑動畫時（手機／減少動態）：改成左右滑，只留一份清單 */
@media (prefers-reduced-motion: reduce), (max-width: 700px) {
    .hv2-doll-rail {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hv2-doll-rail::-webkit-scrollbar {
        display: none;
    }

    .hv2-doll {
        scroll-snap-align: start;
    }

    .hv2-doll.is-dup {
        display: none;
    }
}

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

@media (max-width: 700px) {
    .hv2-news-row {
        padding: 14px 12px;
        gap: 10px;
    }

    .hv2-news-title {
        font-size: 14.5px;
    }

    .hv2-doll {
        width: 112px;
    }

    .hv2-doll img {
        width: 88px;
        height: 88px;
    }

    .hv2-dolls .hv2-sec-head,
    .hv2-doll-ranks,
    .hv2-dolls .hv2-btn-row {
        padding: 0 16px;
    }

    .hv2-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* ==========================================================================
   區 7｜三步開始＋最終 CTA
   ========================================================================== */
.hv2-steps-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    counter-reset: none;
}

.hv2-step {
    position: relative;
    padding: 28px 22px 22px;
    background:
        linear-gradient(var(--gold-500), var(--gold-500)) left 6px top 6px / 10px 1px no-repeat,
        linear-gradient(var(--gold-500), var(--gold-500)) left 6px top 6px / 1px 10px no-repeat,
        linear-gradient(var(--gold-500), var(--gold-500)) right 6px bottom 6px / 10px 1px no-repeat,
        linear-gradient(var(--gold-500), var(--gold-500)) right 6px bottom 6px / 1px 10px no-repeat,
        rgba(17, 23, 33, .88);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
}

.hv2-step-no {
    position: absolute;
    right: 14px;
    top: 6px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 64px;
    line-height: 1;
    color: var(--gold-700);
    opacity: .35;
    pointer-events: none;
}

.hv2-step h3 {
    position: relative;
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 20px;
    color: var(--cream);
    letter-spacing: 1px;
}

.hv2-step p {
    position: relative;
    margin: 0 0 14px;
    color: var(--cream-dim);
    font-size: 14.5px;
    line-height: 1.8;
}

.hv2-step a {
    position: relative;
    color: var(--gold-400) !important;
    font-size: 14px;
    border-bottom: 1px dashed rgba(232, 197, 106, .45);
}

.hv2-final-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 34px;
}

.hv2-cta.hv2-cta-lg {
    min-width: 320px;
    padding: 18px 40px;
    font-size: 24px;
}

.hv2-btn.hv2-btn-line {
    border-color: rgba(6, 199, 85, .6);
    color: #5ee69a !important;
    padding: 14px 24px;
}

.hv2-btn.hv2-btn-line:hover {
    border-color: #06c755;
    box-shadow: 0 0 18px rgba(6, 199, 85, .3);
}

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

@media (max-width: 700px) {
    .hv2-cta.hv2-cta-lg {
        min-width: 0;
        width: 100%;
        font-size: 21px;
    }

    .hv2-btn.hv2-btn-line {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   區 8｜頁尾
   ========================================================================== */
.hv2-footer {
    margin-top: 40px;
    padding: 44px 16px 36px;
    text-align: center;
    background: var(--ink-950);
    border-top: 1px solid var(--line);
    box-shadow: inset 0 18px 40px -20px rgba(0, 0, 0, .8);
}

.hv2-footer-brand {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 6px;
    color: var(--cream);
}

/* 版權列：© 神策 ＋ gamex123 88×31 交換連結小按鈕 */
.hv2-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
}

.hv2-footer-bottom .hv2-copy {
    margin: 0;
}

.hv2-x123 {
    display: inline-block;
    line-height: 0;
    opacity: .85;
    transition: opacity .2s;
}

.hv2-x123 img {
    display: block;
    width: 88px;
    height: 31px;
    border: 1px solid rgba(232, 197, 106, .25);
}

.hv2-x123:hover {
    opacity: 1;
}

.hv2-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 0;
}

.hv2-footer-links a {
    padding: 0 14px;
    font-size: 14px;
    color: var(--cream-mute);
    transition: color .25s;
}

.hv2-footer-links a + a {
    border-left: 1px solid var(--line);
}

.hv2-footer-links a:hover {
    color: var(--gold-400);
}

.hv2-copy {
    margin: 16px 0 0;
    font-size: 12px;
    color: var(--cream-mute);
    opacity: .7;
}

.hv2-todo {
    padding-top: 0;
    text-align: center;
    color: var(--cream-mute);
    font-size: 13px;
}

/* ==========================================================================
   動效（只在使用者沒有要求減少動態時）
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    /* 進場三件事，合計 ≤0.9s；主 CTA 不參與延遲 */
    .hv2-brush {
        animation: hv2-wipe .6s cubic-bezier(.2, .7, .2, 1) backwards;
    }

    .hv2-h2 {
        animation: hv2-unblur .5s .25s ease-out backwards;
    }

    .hv2-seal {
        animation: hv2-stamp .3s .55s cubic-bezier(.3, 1.6, .5, 1) backwards;
    }

    @keyframes hv2-wipe {
        from { clip-path: inset(0 100% 0 0); }
        to { clip-path: inset(0 0 0 0); }
    }

    @keyframes hv2-unblur {
        from { opacity: 0; filter: blur(8px); }
        to { opacity: 1; filter: blur(0); }
    }

    @keyframes hv2-stamp {
        from { opacity: 0; transform: scale(1.4) rotate(-8deg); }
        to { opacity: 1; transform: scale(1) rotate(-3deg); }
    }

    /* 插畫緩慢推近（只在大螢幕） */
    @media (min-width: 1025px) {
        .hv2-hero-art img {
            animation: hv2-kenburns 20s ease-in-out infinite alternate;
        }

        @keyframes hv2-kenburns {
            from { transform: scale(1); }
            to { transform: scale(1.04); }
        }
    }

    .hv2-dot.is-jade {
        animation: hv2-pulse 1.8s ease-in-out infinite;
    }

    @keyframes hv2-pulse {
        50% { opacity: .35; }
    }

    /* 捲動進場 */
    .hv2-point,
    .hv2-sec-head {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity .6s ease, transform .6s ease, border-color .3s, box-shadow .3s;
        transition-delay: calc(var(--i, 0) * 60ms), calc(var(--i, 0) * 60ms), 0s, 0s;
    }

    .hv2-point.is-in,
    .hv2-sec-head.is-in,
    .no-io .hv2-point,
    .no-io .hv2-sec-head {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   RWD
   ========================================================================== */
/* 矮螢幕（1366×768 等筆電）：收緊書法與間距，讓底部開機墨條留在第一屏 */
@media (min-width: 701px) and (max-height: 860px) {
    .hv2-hero-text {
        padding: 84px 0 76px;
    }

    .hv2-calli {
        width: min(100%, 300px);
    }

    .hv2-logo {
        height: 48px;
    }

    .hv2-cta-row {
        margin-top: 16px;
    }
}

@media (max-width: 1100px) {
    .hv2-hero-text {
        width: clamp(360px, 46%, 520px);
    }
}

@media (max-width: 900px) {
    .hv2-burger {
        display: block;
    }

    .hv2-menu {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 20px 20px;
        background: var(--ink-900);
        border-bottom: 1px solid var(--line);
    }

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

    .hv2-menu > a {
        padding: 14px 6px;
        border-bottom: 1px solid var(--line-soft);
        font-size: 16px;
    }

    .hv2-menu > a:not(.hv2-nav-cta)::after {
        display: none;
    }

    .hv2-menu-sep {
        width: 100%;
        height: 1px;
        margin: 6px 0;
    }

    .hv2-nav-cta {
        margin: 14px 0 0;
        text-align: center;
        background: var(--vermilion-700);
        border-color: var(--gold-500);
        color: var(--cream) !important;
    }

    .hv2-points-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手機：直式插畫在上（人物佔上 55%），文字壓在下方 45% 墨色區 */
@media (max-width: 700px) {
    .hv2-nav-in {
        height: 56px;
        padding: 0 14px;
    }

    .hv2-menu {
        top: 56px;
    }

    .hv2-brand img {
        height: 34px;
    }

    .hv2-hero {
        display: block;
        min-height: 0;
    }

    .hv2-hero-art,
    .hv2-hero-art img {
        bottom: auto;
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .hv2-hero-art img {
        object-position: center top;
    }

    .hv2-hero-ink {
        background: linear-gradient(to bottom, rgba(5, 8, 12, .4) 0, transparent 12%, transparent 40%, var(--ink-950) 125vw);
        box-shadow: none;
    }

    .hv2-hero-text {
        width: auto;
        margin: 0;
        padding: 64vw 16px 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hv2-eyebrow {
        font-size: 12px;
    }

    .hv2-calli {
        width: 200px;
        margin-top: 4px;
    }

    .hv2-h2-main {
        font-size: 22px;
    }

    .hv2-h2-sub {
        font-size: 14px;
    }

    /* DOM 順序：資訊 → 行動；手機把數字列與 LINE 移到 CTA 之後，讓下載鈕留在第一屏 */
    .hv2-facts { order: 5; font-size: 13px; }
    .hv2-facts b { font-size: 16px; }
    .hv2-cta-row { order: 3; margin-top: 16px; }
    .hv2-cta-note { order: 4; font-size: 12px; }
    .hv2-line { order: 6; }

    .hv2-cta {
        min-width: 0;
        width: min(100%, 300px);
        padding: 14px 20px;
        font-size: 20px;
    }

    .hv2-seal {
        width: 48px;
        height: 48px;
    }

    .hv2-seal span {
        font-size: 16px;
    }

    .hv2-inkbar {
        position: relative;
        flex-wrap: wrap;
        gap: 6px 12px;
        padding: 12px 16px;
        font-size: 14px;
    }

    .hv2-sec {
        padding: 56px 16px;
    }

    .hv2-more {
        position: static;
        display: table;
        margin-left: auto;
        margin-right: auto;
        margin-top: 10px;
    }

    .hv2-point {
        padding: 16px 14px 14px;
    }

    .hv2-point-tag {
        position: static;
        display: inline-block;
        margin-top: 8px;
        font-size: 11px;
    }

    .hv2-point-num small {
        font-size: 13px;
    }
}

/* ==========================================================================
   手機底部固定下載列（只在 700px 以下出現）
   ========================================================================== */
.hv2-dock {
    display: none;
}

@media (max-width: 700px) {
    .hv2-dock {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        display: flex;
        gap: 10px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(180deg, rgba(5, 8, 12, .88), rgba(5, 8, 12, .98));
        border-top: 1px solid rgba(232, 197, 106, .35);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, .55);
        transform: translateY(110%);
        transition: transform .3s ease;
    }

    .hv2-dock.is-on {
        transform: none;
    }

    .hv2-dock-dl {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        min-height: 52px;
        padding: 6px 14px;
        border-radius: 4px;
        background: linear-gradient(180deg, var(--vermilion-600), var(--vermilion-700));
        color: var(--cream) !important;
        text-decoration: none;
        box-shadow:
            inset 0 0 0 1px rgba(255, 220, 160, .25),
            inset 0 0 0 3px var(--vermilion-700),
            inset 0 0 0 4px rgba(232, 197, 106, .55);
    }

    .hv2-dock-dl i {
        font-size: 18px;
    }

    .hv2-dock-txt {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        line-height: 1.15;
    }

    .hv2-dock-txt b {
        font-family: var(--font-display);
        font-weight: 900;
        font-size: 19px;
        letter-spacing: 3px;
    }

    .hv2-dock-txt small {
        font-size: 11px;
        opacity: .8;
        letter-spacing: .5px;
    }

    .hv2-dock-line {
        flex: 0 0 52px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(6, 199, 85, .6);
        border-radius: 4px;
        background: rgba(5, 8, 12, .6);
        color: #5ee69a !important;
        font-size: 26px;
        text-decoration: none;
    }

    /* 下載列出現時，右下角的搜尋鈕、複製連結鈕一起往上讓位 */
    #globalSearchTrigger,
    #floatingCopyLink {
        transition: transform .3s ease;
    }

    body.hv2-dock-on #globalSearchTrigger,
    body.hv2-dock-on #floatingCopyLink {
        transform: translateY(calc(-72px - env(safe-area-inset-bottom, 0px)));
    }
}

@media (prefers-reduced-motion: reduce) {
    .hv2-dock,
    #globalSearchTrigger,
    #floatingCopyLink {
        transition: none;
    }
}
