/* 貓咪大戰爭風格視覺系統 (Battle Cats Portal Style) */
:root {
    --bg-cream: #FFFDF8;
    --cat-gold: #F6C825;
    --cat-gold-hover: #FFD84D;
    --cat-red: #E7262D;
    --cat-red-hover: #FF3D44;
    --cat-green: #2ECC71;
    --cat-green-hover: #34d678;
    --cat-blue: #3498DB;
    --ink-black: #222222;
    --ink-sub: #555555;
    --card-bg: #FFFFFF;
    --border-chunky: 3px solid #222222;
    --border-thick: 3px solid #222222;
    --border-mid: 2px solid #222222;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-pill: 9999px;
    --shadow-chunky: 0 5px 0 #222222;
    --shadow-chunky-sm: 0 3px 0 #222222;
    --shadow-chunky-hover: 0 2px 0 #222222;

    /* 相容舊變數 */
    --bg-color: #FFFDF8;
    --card-bg: #FFFFFF;
    --text-color: #222222;
    --primary-color: #F6C825;
    --success-color: #2ECC71;
    --error-color: #E7262D;
    --border-color: #222222;
    --label-color: #555555;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    background-color: var(--bg-cream);
    background-image: 
        radial-gradient(circle, #e8dfcb 1.5px, transparent 1.5px),
        radial-gradient(circle, #e8dfcb 1.5px, var(--bg-cream) 1.5px);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
    color: var(--ink-black);
    margin: 0;
    padding: 24px 16px;
    display: flex;
    justify-content: center;
    line-height: 1.5;
}

#app {
    width: 100%;
    max-width: 900px;
}

header {
    text-align: center;
    margin-bottom: 24px;
}

header h1 {
    margin: 4px 0 0;
    font-weight: 900;
    font-size: 24px;
    color: var(--ink-black);
    letter-spacing: -0.5px;
}

header p {
    margin: 6px 0 0;
    color: var(--ink-sub);
    font-size: 14px;
    font-weight: 600;
}

/* 卡片區塊 */
.card {
    background: var(--card-bg);
    border: var(--border-chunky);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-chunky);
    padding: 26px;
    margin-bottom: 24px;
    position: relative;
}

h2, h3 {
    margin-top: 0;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--ink-black);
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--ink-black);
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 10px 14px;
    border: var(--border-mid);
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    font-size: 1rem;
    font-weight: 700;
    background: #FAFAFA;
    color: var(--ink-black);
    outline: none;
    transition: all 0.15s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    background: #FFFFFF;
    border-color: #CCA210;
    box-shadow: 0 0 0 3px rgba(246, 200, 37, 0.35);
}

.form-group.row {
    display: flex;
    gap: 15px;
}

.form-group.row .field {
    flex: 1;
}

/* 按鈕系統 */
button {
    cursor: pointer;
    border: var(--border-mid);
    border-radius: var(--radius-pill);
    padding: 12px 22px;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: var(--shadow-chunky-sm);
    transition: all 0.12s ease;
    user-select: none;
}

button:active {
    transform: translateY(3px) !important;
    box-shadow: 0 1px 0 #222222 !important;
}

.btn-primary {
    background-color: var(--cat-gold);
    color: var(--ink-black);
    box-shadow: var(--shadow-chunky);
}

.btn-primary:hover {
    background-color: var(--cat-gold-hover);
    transform: translateY(2px);
    box-shadow: var(--shadow-chunky-hover);
}

.btn-success {
    background-color: var(--cat-green);
    color: #FFFFFF;
    box-shadow: var(--shadow-chunky);
}

.btn-success:hover {
    background-color: var(--cat-green-hover);
    transform: translateY(2px);
    box-shadow: var(--shadow-chunky-hover);
}

.btn-danger {
    background-color: var(--cat-red);
    color: #FFFFFF;
    box-shadow: var(--shadow-chunky);
}

.btn-danger:hover {
    background-color: var(--cat-red-hover);
    transform: translateY(2px);
    box-shadow: var(--shadow-chunky-hover);
}

.btn-secondary {
    background-color: #FFFFFF;
    color: var(--ink-black);
    box-shadow: var(--shadow-chunky-sm);
}

.btn-secondary:hover {
    background-color: #F8F8F8;
    transform: translateY(1px);
    box-shadow: var(--shadow-chunky-hover);
}

/* 登入操作按鈕列 */
.login-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    align-items: stretch;
}

.login-actions #btnLogin {
    flex: 1.3;
    margin-top: 0;
}

.btn-guide {
    flex: 1;
    margin-top: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 12px 18px;
    border: 3px solid #222222;
    border-radius: var(--radius-pill);
    box-shadow: 0 5px 0 #222222;
    background: #FFFFFF;
    color: #222222;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s, background-color 0.15s;
    box-sizing: border-box;
}

.btn-guide:hover {
    background: #F8F6F0;
    color: #222222;
    transform: translateY(2px);
    box-shadow: 0 3px 0 #222222;
}

.btn-guide:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #222222;
}

.btn-guide .external-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #666666;
}

.hidden {
    display: none !important;
}

/* 狀態與帳號資訊工具列 (Battle Cats 亮色卡片風格) */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
    background: #FFFFFF;
    color: var(--ink-black);
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    border: var(--border-thick);
    box-shadow: var(--shadow-chunky-sm);
}

.toolbar .account-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.account-id-badge {
    display: inline-flex;
    align-items: center;
    background: #FFFDF8;
    color: var(--ink-black);
    font-weight: 800;
    font-size: 0.92rem;
    padding: 7px 16px;
    border: 2.5px solid var(--ink-black);
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
    letter-spacing: 0.5px;
    font-family: inherit;
}

.ban-status-badge {
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    border: 2px solid #2ECC71;
    background: #E8F8F0;
    color: #1B5E20;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.toolbar .btn-upload,
.toolbar .btn-success {
    background: var(--cat-green) !important;
    color: #FFFFFF !important;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 10px 24px;
    border: var(--border-thick) !important;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 0 #1B8A46;
    margin-top: 0;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s, background-color 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.toolbar .btn-upload:hover,
.toolbar .btn-success:hover {
    background: var(--cat-green-hover) !important;
}

.toolbar .btn-upload:active,
.toolbar .btn-success:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1B8A46;
}

/* 分頁選單 */
/* 分頁選單 (儀表板分頁切換器) */
.tabs.dashboard-tabs {
    display: inline-flex;
    background: #EDEAE1;
    border: 3px solid #222222;
    border-radius: 9999px;
    padding: 4px;
    gap: 6px;
    margin-bottom: 16px;
    box-shadow: 0 4px 0 #222222;
    position: relative;
    z-index: 2;
}

.dashboard-tabs .tab-btn {
    border: 2px solid transparent;
    background: transparent;
    border-radius: 9999px;
    padding: 9px 28px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #555555;
    cursor: pointer;
    top: 0;
    transition: all 0.15s ease;
    box-shadow: none;
    user-select: none;
}

.dashboard-tabs .tab-btn:hover {
    color: #222222;
    background: rgba(255, 255, 255, 0.7);
}

.dashboard-tabs .tab-btn.active {
    background: #F6C825;
    color: #222222;
    border: 2px solid #222222;
    box-shadow: 0 2px 0 #222222;
}

.dashboard-tabs .tab-btn[data-tab="advanced"].active {
    background: #FF9700;
    color: #FFFFFF;
    border: 2px solid #222222;
    box-shadow: 0 2px 0 #222222;
}

.tab-content.card {
    border-radius: var(--radius-lg) !important;
    margin-top: 0 !important;
    position: relative;
    z-index: 1;
}

/* 格線配置 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.input-item {
    background: #FFFFFF;
    border: 2px solid var(--ink-black);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    box-shadow: var(--shadow-chunky-sm);
}

.input-item label {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.input-item small {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink-sub);
}

.checkbox-item {
    padding: 10px 0;
    border-bottom: 1.5px dashed #DDD;
}

.notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    color: white;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    border: 2.5px solid #222222;
    z-index: 1000;
}

.notification.success { background-color: var(--cat-green); color: #FFF; }
.notification.error { background-color: var(--cat-red); color: #FFF; }

.section-title {
    margin-top: 28px;
    border-bottom: 3px solid var(--ink-black);
    padding-bottom: 6px;
    font-size: 1.15rem;
    font-weight: 900;
}

.tip {
    font-size: 0.8rem;
    color: var(--ink-sub);
    display: block;
    margin-top: 4px;
    font-weight: 600;
}

.tip.warn {
    color: var(--cat-red);
    font-weight: 800;
}

.flex-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.flex-grid .input-item {
    flex: 1 1 130px;
}

.sub-section {
    background: #FFFDF8;
    padding: 18px;
    border: 2px solid var(--ink-black);
    border-radius: var(--radius-md);
    margin-top: 18px;
    box-shadow: var(--shadow-chunky-sm);
}

.sub-section h4 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 900;
    color: var(--ink-black);
    border-bottom: 2px solid var(--cat-gold);
    padding-bottom: 4px;
}

/* 結果面板樣式 */
.success-header {
    text-align: center;
    margin-bottom: 20px;
}

.icon-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--cat-green);
    color: white;
    border-radius: 50%;
    border: 2.5px solid var(--ink-black);
    box-shadow: var(--shadow-chunky-sm);
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.warning-text {
    background: #FFF5F5;
    border: 2px solid #F5B7B1;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--cat-red);
    font-size: 0.88rem;
    text-align: center;
    margin: 0 0 20px 0;
    font-weight: 800;
    line-height: 1.5;
}

.result-box {
    background: #FFFDF0;
    border: 2.5px solid var(--ink-black);
    padding: 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    box-shadow: var(--shadow-chunky-sm);
}

.result-item {
    margin-bottom: 16px;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-item label {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    color: #333333;
    margin-bottom: 6px;
}

.code-copy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: white;
    border: 2px solid var(--ink-black);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}

.code-text {
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--cat-red);
    letter-spacing: 1.5px;
    word-break: break-all;
}

.btn-copy {
    background: #FFF9E6;
    border: 2px solid var(--ink-black);
    padding: 6px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-pill);
    color: var(--ink-black);
    font-weight: 800;
    box-shadow: 0 2px 0 var(--ink-black);
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-copy:hover {
    background: var(--cat-gold);
}

.action-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* 進階卡片 */
.advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.adv-card {
    background: #FFFFFF;
    border: 2px solid var(--ink-black);
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-chunky-sm);
}

.adv-card h4 {
    margin: 0 0 12px 0;
    color: var(--ink-black);
    border-bottom: 2px solid var(--cat-red);
    padding-bottom: 4px;
    font-size: 1rem;
    font-weight: 900;
}

.adv-card .list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.adv-card label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink-black);
}

.adv-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--cat-gold);
    cursor: pointer;
}

.adv-card select {
    border: 2px solid var(--ink-black);
    background: #FFFDF8;
}

/* 滾動網格優化 */
.scroll-grid {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

/* 模態彈窗 (Modal) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #FFFFFF;
    border: var(--border-chunky);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-chunky);
    padding: 24px;
    max-width: 500px;
    width: 90%;
}


/* Languages 下拉選單樣式 */
.lang-dropdown-wrap {
    position: relative;
    display: inline-block;
}

.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 2px solid #E95A24;
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    color: #222222;
    box-shadow: 0 2px 0 #E95A24;
    transition: all 0.15s ease;
}

.lang-toggle-btn:hover {
    background: #FFF9F5;
    box-shadow: 0 1px 0 #E95A24;
    transform: translateY(1px);
}

.lang-toggle-btn img {
    width: 17px;
    height: 17px;
    vertical-align: middle;
}

.lang-arrow {
    color: #E95A24;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.lang-dropdown-wrap.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #FFFFFF;
    border: 2.5px solid #222222;
    border-radius: 12px;
    box-shadow: 0 5px 0 #222222;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    min-width: 160px;
    z-index: 1000;
}

.lang-dropdown-wrap.open .lang-dropdown-menu {
    display: block;
}

.lang-menu-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    color: #222222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.12s ease;
}

.lang-menu-item:hover {
    background: #FFF5EE;
    color: #E95A24;
}

.lang-menu-item.active {
    background: #FFF1E6;
    color: #E95A24;
}

.lang-code-tag {
    font-size: 11px;
    font-weight: 800;
    color: #777777;
    background: #EEEEEE;
    padding: 2px 6px;
    border-radius: 4px;
}


/* 全域防止水平溢出與 RWD 強化 */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

*, *::before, *::after {
    box-sizing: border-box !important;
}

#app {
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 auto 10px;
    width: 100%;
    max-width: 780px;
}

.header-app-title {
    font-size: clamp(14px, 3.5vw, 17px);
    font-weight: 900;
    color: var(--ink-black);
    margin: 0;
    text-align: left;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.header-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 28px auto 28px;
    width: 100%;
}

.header-logo {
    height: 128px;
    max-width: 90%;
    width: auto;
    object-fit: contain;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.header-logo.logo-pressing {
    transform: scale(0.92);
    filter: brightness(0.85);
}

header h1 {
    font-size: clamp(14px, 3.5vw, 17px);
    font-weight: 900;
    color: var(--ink-black);
    margin: 0;
    word-break: break-word;
}

.top-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.top-nav .tab-btn {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 10px 8px;
    font-size: 14px;
}

/* 手機版 (RWD Breakpoint: 600px) */
@media (max-width: 600px) {
    body {
        padding: 14px 10px !important;
    }

    .header-top-row {
        gap: 8px;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    .header-logo-wrap {
        margin: 26px auto 26px;
    }

    .header-logo {
        height: 96px;
        max-width: 92%;
    }

    .header-app-title {
        font-size: 13px;
    }

    .lang-toggle-btn {
        padding: 5px 10px;
        font-size: 12px;
        gap: 5px;
    }

    .lang-toggle-btn img {
        width: 15px;
        height: 15px;
    }

    .top-nav {
        gap: 6px;
        margin-bottom: 14px;
    }

    .top-nav .tab-btn {
        padding: 10px 4px;
        font-size: 13px;
    }

    .card {
        padding: 18px 12px !important;
        border-radius: 14px !important;
    }

    .form-group.row {
        flex-direction: column;
        gap: 12px;
    }

    .login-actions {
        flex-direction: column;
        gap: 10px;
    }

    .login-actions #btnLogin,
    .login-actions .btn-guide {
        width: 100%;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
        text-align: center;
    }

    .toolbar .account-meta {
        justify-content: center;
        width: 100%;
        gap: 8px;
    }

    .account-id-badge,
    .ban-status-badge {
        font-size: 0.82rem;
        padding: 6px 12px;
        justify-content: center;
        text-align: center;
    }

    .toolbar .btn-upload,
    .toolbar .btn-success {
        width: 100%;
        padding: 11px 16px;
        font-size: 0.95rem;
    }

    .tabs.dashboard-tabs {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        gap: 4px;
        margin-bottom: 14px;
    }

    .dashboard-tabs .tab-btn {
        flex: 1;
        padding: 9px 8px;
        font-size: 13.5px;
        text-align: center;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .advanced-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .code-copy {
        padding: 9px 12px;
        gap: 8px;
    }

    .code-text {
        font-size: 1.05rem;
        letter-spacing: 1px;
        word-break: break-all;
    }

    .btn-copy {
        padding: 5px 13px;
        font-size: 0.82rem;
    }
}


/* 表單內地區切換自訂 Languages 下拉樣式 */
.form-lang-wrap {
    position: relative;
    width: 100%;
}

.form-lang-trigger {
    width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border: var(--border-mid);
    border-radius: var(--radius-sm);
    background: #FFFFFF;
    cursor: pointer;
    box-shadow: var(--shadow-chunky-sm);
    transition: all 0.15s ease;
    user-select: none;
}

.form-lang-trigger:hover {
    border-color: #E95A24;
    background: #FFFDFB;
}

.form-lang-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 14px;
    color: var(--ink-black);
}

.form-lang-arrow {
    color: #E95A24;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.form-lang-wrap.open .form-lang-arrow {
    transform: rotate(180deg);
}

.form-lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border: 2.5px solid #222222;
    border-radius: 12px;
    box-shadow: 0 5px 0 #222222;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    z-index: 1000;
}

.form-lang-wrap.open .form-lang-menu {
    display: block;
}

.form-lang-item {
    padding: 9px 16px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 800;
    color: #222222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.12s ease;
}

.form-lang-item:hover {
    background: #FFF5EE;
    color: #E95A24;
}

.form-lang-item.active {
    background: #FFF1E6;
    color: #E95A24;
}


/* 頁面底部官方簡約小字風格 (無外框) */
.app-footer {
    text-align: center;
    padding: 30px 0 20px;
    margin-top: 16px;
    width: 100%;
}

.footer-dots {
    width: 100%;
    max-width: 280px;
    height: 4px;
    margin: 0 auto 16px;
    background-image: radial-gradient(circle, #E95A24 1.8px, transparent 1.8px);
    background-size: 12px 4px;
    background-repeat: repeat-x;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer-link,
.footer-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #444444;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s ease;
}

.footer-link:hover,
.footer-link-btn:hover {
    color: #E95A24;
    text-decoration: underline;
}

.footer-gh-icon,
.footer-ig-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

.footer-sep {
    color: #CCCCCC;
    font-size: 11px;
}

.footer-copy {
    font-size: 11px;
    font-weight: 500;
    color: #666666;
    margin: 0;
    letter-spacing: 0.3px;
}

/* 法律/聲明彈窗 (Legal Modals) 樣式 */
.legal-modal-content {
    max-width: 540px;
    width: 92%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-sizing: border-box;
    border: 3px solid #222222;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.legal-modal-header {
    text-align: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.legal-modal-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #222222;
    margin: 0;
    letter-spacing: 0.05em;
}

.legal-modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
    margin-bottom: 18px;
    text-align: left;
}

.legal-notice-box {
    background-color: #FFFDF8;
    border: 1.5px solid #EFE8DC;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.legal-item {
    margin: 0;
}

.legal-item-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    color: #E95A24;
    margin-bottom: 4px;
}

.legal-item-text {
    font-size: 13px;
    line-height: 1.6;
    color: #444444;
    margin: 0;
}

.legal-modal-footer {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

/* ==========================================================================
   活動與遊戲輪播看板 (Hero Game Slider Section)
   ========================================================================== */
.hero-activity-section {
    position: relative;
    margin: 12px auto 32px;
    width: 100%;
    max-width: 860px;
    text-align: center;
    box-sizing: border-box;
    padding: 0 16px;
}

.hero-top-indicator {
    width: 36px;
    height: 6px;
    background-color: #e95a24;
    border-radius: 9999px;
    margin: 0 auto 8px;
}

.hero-game-title {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--ink-black);
    margin: 0 0 18px;
    line-height: 1.2;
}

.hero-game-slider-wrap {
    position: relative;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
}

.hero-game-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 374 / 213;
    border-radius: 16px;
    border: 2px solid #222222;
    background: #000000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    z-index: 2;
}

.hero-game-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    height: 100%;
    touch-action: pan-y;
}

.hero-game-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    line-height: 0;
}

.hero-game-slide a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
    text-decoration: none;
    outline: none;
}

.hero-game-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 374 / 213;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.hero-game-slide a:hover .hero-game-img {
    opacity: 0.95;
}

/* 左右圓形箭頭按鈕：固定垂直位置，不產生上下跳動 */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    margin-top: -24px;
    transform: none !important;
    width: 48px;
    height: 48px;
    background-color: #ff9700;
    border: 3px solid #3e0000;
    border-radius: 50%;
    box-shadow: 0 4px 0 0 #3e0000;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, opacity 0.15s ease;
    padding: 0;
    outline: none;
}

.hero-slider-arrow:hover {
    background-color: #ffa726;
}

.hero-slider-arrow:active {
    background-color: #e68500;
    transform: none !important;
    box-shadow: 0 2px 0 0 #3e0000;
}

.hero-slider-arrow.prev {
    left: -20px;
}

.hero-slider-arrow.next {
    right: -20px;
}

.hero-slider-arrow svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    stroke-width: 3.5;
}

/* 輪播點點 */
.hero-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: #d1c7b7;
    border: 1.5px solid #222222;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hero-dot.active {
    background-color: #ff9700;
    width: 26px;
    border-radius: 9999px;
    transform: none;
}

/* 開始修改主按鈕 */
.hero-start-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    position: relative;
}

.hero-start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #f58220;
    border: 2px solid #222222;
    border-radius: 9999px;
    box-shadow: 0 4px 14px rgba(245, 130, 32, 0.25);
    min-width: 320px;
    max-width: 100%;
    min-height: 56px;
    padding: 10px 64px 10px 80px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
    outline: none;
    overflow: visible;
}

.hero-start-btn:hover {
    background-color: #ff8e2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 130, 32, 0.35);
}

.hero-start-btn:active {
    background-color: #e07214;
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(245, 130, 32, 0.2);
}

.hero-start-btn-deco {
    display: block;
    position: absolute;
    bottom: -1px;
    left: 14px;
    width: 66px;
    line-height: 0;
    opacity: 1;
    pointer-events: none;
    z-index: 2;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-start-btn:hover .hero-start-btn-deco {
    transform: translateY(-3px) rotate(-3deg);
}

.hero-start-btn-deco img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.hero-start-btn-txt {
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.hero-start-btn-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff9700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
    transition: transform 0.2s ease;
}

.hero-start-btn:hover .hero-start-btn-arrow {
    transform: translateY(-50%) translateX(2px);
}

.hero-start-btn-arrow svg {
    width: 18px;
    height: 18px;
    stroke: #ff9700;
    stroke-width: 3.5;
}

.input-focus-highlight {
    border-color: #ff9700 !important;
    box-shadow: 0 0 0 3.5px rgba(255, 151, 0, 0.4) !important;
    transition: all 0.25s ease !important;
}

@media (max-width: 820px) {
    .hero-game-slider-wrap {
        max-width: 100%;
    }
    .hero-slider-arrow.prev {
        left: -10px;
    }
    .hero-slider-arrow.next {
        right: -10px;
    }
}

@media (max-width: 600px) {
    .hero-game-title,
    .hero-news-main-title {
        font-size: 1.3rem;
    }
    .hero-slider-arrow {
        width: 36px;
        height: 36px;
        margin-top: -18px;
        transform: none !important;
    }
    .hero-slider-arrow.prev {
        left: -8px;
    }
    .hero-slider-arrow.next {
        right: -8px;
    }
    .hero-slider-arrow svg {
        width: 18px;
        height: 18px;
    }
    .hero-start-btn {
        min-width: 270px;
        min-height: 48px;
        padding: 8px 52px 8px 68px;
    }
    .hero-start-btn-deco {
        width: 54px;
        left: 10px;
    }
    .hero-start-btn-txt {
        font-size: 1.1rem;
    }
    .hero-start-btn-arrow {
        width: 28px;
        height: 28px;
        right: 10px;
    }
    .hero-start-btn-arrow svg {
        width: 15px;
        height: 15px;
    }
}

/* ==========================================================================
   後台輪播圖管理 (Admin Carousel Manager) 樣式
   ========================================================================== */
.admin-tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.admin-tab-btn {
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 9999px;
    border: 2px solid #222222;
    background-color: #ffffff;
    color: #222222;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 0 #222222;
    outline: none;
}

.admin-tab-btn:hover {
    background-color: #f8f8f8;
    transform: translateY(-1px);
    box-shadow: 0 3px 0 #222222;
}

.admin-tab-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #222222;
}

.admin-tab-btn.active {
    background-color: #ff9700 !important;
    color: #ffffff !important;
    border-color: #222222 !important;
    box-shadow: 0 2px 0 #222222 !important;
}

.carousel-slide-item {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.carousel-slide-item:hover {
    border-color: #ff9700;
}

.carousel-slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.carousel-slide-title-tag {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-black);
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-slide-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.carousel-slide-actions button {
    margin: 0;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 6px;
    cursor: pointer;
}

.carousel-slide-body {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.carousel-slide-preview {
    width: 150px;
    min-width: 150px;
    aspect-ratio: 374 / 213;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.08);
}

.carousel-slide-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.carousel-slide-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.carousel-slide-field-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.carousel-slide-field-group input {
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

.carousel-slide-img-row {
    display: flex;
    gap: 6px;
}

.carousel-slide-img-row input {
    flex: 1;
}

.carousel-slide-img-row button {
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 12px;
    margin: 0;
}

@media (max-width: 650px) {
    .carousel-slide-body {
        flex-direction: column;
    }
    .carousel-slide-preview {
        width: 100%;
        max-width: 240px;
    }
}

/* ==========================================================================
   即時活動消息 (Hero News Section) 樣式
   ========================================================================== */
.hero-news-section {
    width: 100%;
    max-width: 780px;
    margin: 48px auto 0;
    text-align: center;
    box-sizing: border-box;
}

.hero-news-header {
    margin-bottom: 24px;
}

.hero-news-main-title {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--ink-black);
    margin: 0;
    line-height: 1.2;
}

.hero-news-sub-title {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--ink-black);
    margin: 4px 0 0;
    line-height: 1.2;
}

.hero-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-news-card {
    background: #ffffff;
    border: 2px solid #222222;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    padding: 16px;
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
    box-sizing: border-box;
}

a.hero-news-card {
    cursor: pointer;
}

a.hero-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    border-color: #ff9700;
}

div.hero-news-card {
    cursor: default;
}

.hero-news-card-banner {
    width: 100%;
    aspect-ratio: 374 / 195;
    border-radius: 14px;
    border: 1.5px solid #222222;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f0f0;
    display: block;
    margin-bottom: 12px;
}

.hero-news-card-meta {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.hero-news-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    background-color: #f7a800;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.hero-news-tag.tag-notice {
    background-color: #3b82f6;
}

.hero-news-tag.tag-update {
    background-color: #10b981;
}

.hero-news-tag.tag-gacha {
    background-color: #ec4899;
}

.hero-news-date {
    font-size: 13px;
    font-weight: 600;
    color: #888888;
    margin-left: 10px;
}

.hero-news-title {
    font-size: 15px;
    font-weight: 700;
    color: #222222;
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
}

/* --- 左上角漢堡導覽選單與側邊抽屜 (Nav Drawer) --- */
.nav-toggle-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 38px;
    height: 36px;
    padding: 6px;
    background: #ffffff;
    border: 2px solid #f05a22;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(240, 90, 34, 0.15);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    flex-shrink: 0;
}

.nav-toggle-btn:hover {
    background: #fff8f5;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(240, 90, 34, 0.22);
}

.nav-toggle-btn:active {
    transform: translateY(0);
}

.hamburger-line {
    display: block;
    width: 17px;
    height: 2.2px;
    background-color: #f05a22;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 導覽側邊抽屜遮罩 (Overlay) */
.nav-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 9998;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.nav-drawer-overlay.hidden {
    display: none !important;
    opacity: 0;
}

/* 導覽側邊抽屜本體 (Drawer Menu) */
.nav-drawer-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 82vw;
    background: #ffffff;
    z-index: 9999;
    box-shadow: 6px 0 28px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.nav-drawer-menu.open {
    transform: translateX(0);
}

.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1.5px solid #f1f3f5;
    background: #fafbfc;
}

.nav-drawer-brand {
    display: flex;
    align-items: center;
}

.nav-drawer-logo {
    height: 44px;
    max-width: 175px;
    object-fit: contain;
    display: block;
}

.nav-close-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #f05a22;
    background: #ffffff;
    color: #f05a22;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(240, 90, 34, 0.15);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    padding: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

.nav-close-btn:hover {
    background: #fff8f5;
    color: #d94814;
    border-color: #d94814;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(240, 90, 34, 0.22);
}

.nav-close-btn:active {
    transform: translateY(0);
}

.nav-drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 14px 12px;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
}

.nav-drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-radius: 12px;
    color: #1f2937;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
    border: 1px solid transparent;
}

.nav-drawer-link:hover {
    background: #fff7ed;
    color: #f05a22;
    border-color: #fed7aa;
    transform: translateX(3px);
}

.nav-drawer-link-left {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.nav-drawer-paw {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f05a22;
    flex-shrink: 0;
}

.nav-drawer-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f05a22;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.nav-drawer-link:hover .nav-drawer-arrow {
    transform: translateX(3px);
}

.nav-drawer-footer {
    padding: 14px 18px 20px 18px;
    border-top: 1.5px solid #f1f3f5;
    background: #ffffff;
    overflow: visible;
}

.nav-drawer-footer:has(.hidden),
.nav-drawer-footer:empty {
    display: none;
}

.nav-drawer-install-wrap {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 52px;
}

.nav-drawer-install-deco {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 185px;
    max-width: 86%;
    line-height: 0;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-drawer-install-deco img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

.nav-drawer-install-wrap:hover .nav-drawer-install-deco {
    transform: translateX(-50%) translateY(-5px);
}

.nav-drawer-install-btn {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    background-color: #ff9700;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    border-radius: 9999px;
    border: 2px solid #222222;
    box-shadow: 0 4px 0 #222222;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
}

.nav-drawer-install-btn:hover {
    background-color: #ffa51f;
    transform: translateY(1px);
    box-shadow: 0 3px 0 #222222;
    color: #ffffff !important;
}

.nav-drawer-install-btn:active {
    background-color: #e68500;
    transform: translateY(3px);
    box-shadow: 0 0 0 #222222;
}

.nav-drawer-install-btn.hidden {
    display: none !important;
}

/* ==========================================================================
   指南/說明頁面風格系統 (Guide Pages Style System)
   參照貓咪大戰爭入口風格：米白波點底、黑粗邊、立體卡片、日系排版
   ========================================================================== */

.guide-container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

/* 頂部導覽列 Header */
.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 2px 8px 2px;
}

.guide-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #222222;
    font-weight: 800;
    font-size: 1.15rem;
    transition: opacity 0.15s ease;
}

.guide-brand-link:hover {
    opacity: 0.85;
}

.guide-brand-link img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.guide-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #FFFFFF;
    color: #222222;
    border: 2px solid #222222;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 3px 0 #222222;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
}

.guide-btn-back:hover {
    background: #FFF8E7;
    transform: translateY(1px);
    box-shadow: 0 2px 0 #222222;
}

.guide-btn-back:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 #222222;
}

/* 三合一指南切換導覽列 (Guide Nav Tabs) */
.guide-nav-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 4px;
}

.guide-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    background: #FFFFFF;
    border: 2px solid #222222;
    border-radius: 14px;
    box-shadow: 0 3px 0 #222222;
    text-decoration: none;
    color: #222222;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.15s ease;
}

.guide-nav-item:hover {
    background: #FFFDF8;
    border-color: #f05a22;
    transform: translateY(-1px);
    box-shadow: 0 4px 0 #222222;
}

.guide-nav-item.active {
    background: #FFF4E5;
    border: 2.5px solid #222222;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05), 0 3px 0 #222222;
    color: #d94814;
}

.guide-nav-item.active .guide-nav-icon {
    color: #d94814;
}

/* 主文章卡片 */
.guide-card {
    background: #FFFFFF;
    border: 2.5px solid #222222;
    border-radius: 20px;
    box-shadow: 0 6px 0 #222222;
    padding: 36px 36px 44px 36px;
    box-sizing: border-box;
}

/* 標題與內文排版 */
.guide-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #222222;
    margin: 0 0 16px 0;
    line-height: 1.35;
    border-bottom: 3px solid #F6C825;
    padding-bottom: 12px;
}

.guide-lead {
    font-size: 15px;
    line-height: 1.8;
    color: #444444;
    background: #FAF6EC;
    border: 1.5px solid #E6D8BA;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 28px;
}

.guide-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222222;
    margin-top: 36px;
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 5px solid #f05a22;
    line-height: 1.4;
}

.guide-card p {
    font-size: 15px;
    line-height: 1.8;
    color: #333333;
    margin-top: 0;
    margin-bottom: 16px;
}

.guide-card ul, .guide-card ol {
    margin-top: 0;
    margin-bottom: 18px;
    padding-left: 22px;
    font-size: 15px;
    line-height: 1.8;
    color: #333333;
}

.guide-card li {
    margin-bottom: 8px;
}

.guide-card strong {
    color: #1a1a1a;
}

.guide-card a {
    color: #f05a22;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.15s ease;
}

.guide-card a:hover {
    color: #d94814;
}

/* 表格專用樣式 */
.guide-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 22px 0;
    border: 2px solid #222222;
    border-radius: 12px;
    box-shadow: 0 3px 0 #222222;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    font-size: 14.5px;
}

.guide-table th {
    background: #FAF0D7;
    color: #222222;
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid #222222;
    border-right: 1px solid #E6D8BA;
    white-space: nowrap;
}

.guide-table th:last-child {
    border-right: none;
}

.guide-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #EEE5CF;
    border-right: 1px solid #EEE5CF;
    color: #333333;
}

.guide-table td:last-child {
    border-right: none;
}

.guide-table tr:last-child td {
    border-bottom: none;
}

.guide-table tr:nth-child(even) td {
    background: #FFFDF8;
}

/* 底部 CTA 區域 */
.guide-cta-box {
    margin-top: 40px;
    padding-top: 26px;
    border-top: 2px dashed #E6D8BA;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.guide-btn-cta,
.guide-card a.guide-btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 36px;
    background-color: #ff9700 !important;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
    border: 2px solid #222222;
    border-radius: 9999px;
    box-shadow: 0 4px 0 #222222;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
}

.guide-btn-cta:hover,
.guide-card a.guide-btn-cta:hover {
    background-color: #ffa51f !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #222222;
}

.guide-btn-cta:active,
.guide-card a.guide-btn-cta:active {
    background-color: #e68500 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(4px);
    box-shadow: 0 0 0 #222222;
}

.guide-footer-info {
    font-size: 13px;
    color: #777777;
    text-align: center;
    margin-top: 14px;
    margin-bottom: 10px;
}

/* 手機版響應式適配 */
@media (max-width: 640px) {
    .guide-container {
        padding: 0 2px;
        gap: 12px;
    }
    .guide-card {
        padding: 22px 16px 28px 16px;
        border-radius: 16px;
        box-shadow: 0 4px 0 #222222;
    }
    .guide-title {
        font-size: 1.35rem;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    .guide-lead {
        font-size: 14px;
        padding: 12px 14px;
        margin-bottom: 20px;
    }
    .guide-card h2 {
        font-size: 1.15rem;
        margin-top: 26px;
        padding-left: 10px;
        border-left-width: 4px;
    }
    .guide-card p, .guide-card ul, .guide-card ol {
        font-size: 14px;
        line-height: 1.7;
    }
    .guide-nav-bar {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .guide-nav-item {
        padding: 9px 6px;
        font-size: 13px;
        border-radius: 10px;
        box-shadow: 0 2px 0 #222222;
    }
    .guide-brand-link {
        font-size: 1rem;
    }
    .guide-btn-back {
        padding: 6px 12px;
        font-size: 13px;
    }
}
