/* ========== 基礎重置與變量 ========== */
:root {
    --cyan: #00f0ff;
    --purple: #b347ff;
    --pink: #ff47ab;
    --dark-bg: #060a14;
    --card-bg: rgba(12, 20, 40, 0.75);
    --card-border: rgba(0, 240, 255, 0.12);
    --text-primary: #e8edf5;
    --text-secondary: rgba(200, 215, 240, 0.6);
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.3);
    --glow-purple: 0 0 20px rgba(179, 71, 255, 0.3);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Noto Sans TC', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========== 靜態星空背景（CSS + 滾動視差） ========== */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.stars-layer {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    will-change: transform;
    transition: transform 0.1s linear;
}

.stars-small {
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(200, 220, 255, 0.6) 50%, transparent 100%),
        radial-gradient(1px 1px at 25% 45%, rgba(200, 220, 255, 0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 40% 10%, rgba(200, 220, 255, 0.4) 50%, transparent 100%),
        radial-gradient(1px 1px at 55% 65%, rgba(200, 220, 255, 0.6) 50%, transparent 100%),
        radial-gradient(1px 1px at 70% 30%, rgba(200, 220, 255, 0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 85% 75%, rgba(200, 220, 255, 0.4) 50%, transparent 100%),
        radial-gradient(1px 1px at 15% 80%, rgba(200, 220, 255, 0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 60% 50%, rgba(200, 220, 255, 0.3) 50%, transparent 100%),
        radial-gradient(1px 1px at 90% 15%, rgba(200, 220, 255, 0.6) 50%, transparent 100%),
        radial-gradient(1px 1px at 35% 90%, rgba(200, 220, 255, 0.4) 50%, transparent 100%),
        radial-gradient(1px 1px at 5% 55%, rgba(200, 220, 255, 0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 78% 88%, rgba(200, 220, 255, 0.3) 50%, transparent 100%),
        radial-gradient(1px 1px at 48% 35%, rgba(200, 220, 255, 0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 92% 60%, rgba(200, 220, 255, 0.4) 50%, transparent 100%);
}

.stars-medium {
    background-image:
        radial-gradient(1.5px 1.5px at 20% 30%, rgba(180, 210, 255, 0.7) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 50% 70%, rgba(180, 210, 255, 0.6) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 75% 20%, rgba(180, 210, 255, 0.7) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 30% 85%, rgba(180, 210, 255, 0.5) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 65% 45%, rgba(180, 210, 255, 0.6) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 88% 55%, rgba(180, 210, 255, 0.5) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 12% 60%, rgba(180, 210, 255, 0.7) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 42% 15%, rgba(180, 210, 255, 0.6) 50%, transparent 100%);
}

.stars-large {
    background-image:
        radial-gradient(2px 2px at 15% 25%, rgba(0, 240, 255, 0.5) 30%, rgba(0, 240, 255, 0.1) 60%, transparent 100%),
        radial-gradient(2px 2px at 45% 60%, rgba(0, 240, 255, 0.4) 30%, rgba(0, 240, 255, 0.08) 60%, transparent 100%),
        radial-gradient(2px 2px at 80% 35%, rgba(179, 71, 255, 0.4) 30%, rgba(179, 71, 255, 0.08) 60%, transparent 100%),
        radial-gradient(2.5px 2.5px at 60% 80%, rgba(0, 240, 255, 0.5) 30%, rgba(0, 240, 255, 0.1) 60%, transparent 100%),
        radial-gradient(2px 2px at 95% 50%, rgba(179, 71, 255, 0.3) 30%, rgba(179, 71, 255, 0.06) 60%, transparent 100%),
        radial-gradient(2px 2px at 30% 50%, rgba(0, 240, 255, 0.4) 30%, rgba(0, 240, 255, 0.08) 60%, transparent 100%);
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 240, 255, 0.008) 2px,
            rgba(0, 240, 255, 0.008) 4px);
}

/* ========== 頂部導航 ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 24px;
    background: rgba(6, 10, 20, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon svg {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.logo-accent {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cyan);
    background: rgba(0, 240, 255, 0.06);
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.5);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(0, 255, 136, 0);
    }
}

/* ========== Hero 區域 ========== */
.hero {
    position: relative;
    z-index: 2;
    padding: 140px 24px 60px;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 50px;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.15);
    font-size: 0.8rem;
    color: var(--cyan);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 18px;
}

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, var(--cyan), var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding: 16px 36px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--cyan);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--card-border);
}

/* Hero 裝飾 */
.hero-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    z-index: 1;
    pointer-events: none;
}

.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.06);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 30s linear infinite;
}

.orbit-1 {
    width: 300px;
    height: 300px;
}

.orbit-2 {
    width: 400px;
    height: 400px;
    animation-duration: 45s;
    animation-direction: reverse;
    border-color: rgba(179, 71, 255, 0.06);
}

.orbit-3 {
    width: 500px;
    height: 500px;
    animation-duration: 60s;
}

.core-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
    animation: spherePulse 4s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spherePulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

.slot {
    position: relative;
    z-index: 2;
    padding: 0 24px;
    max-width: 1200px;
    margin: 20px auto;
}

.container {
    border: 1px dashed rgba(0, 240, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 240, 255, 0.02);
}

.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.icon {
    font-size: 1.4rem;
}

/* ========== 通用段落標題 ========== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.tag-line {
    display: inline-block;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan));
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 8px;
}

.section-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ========== 帳號區域 ========== */
.accounts-section {
    position: relative;
    z-index: 2;
    padding: 60px 24px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid var(--card-border);
    border-radius: 50px;
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}

.filter-btn:hover {
    border-color: rgba(0, 240, 255, 0.3);
    color: var(--text-primary);
}

.filter-btn.active {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(0, 240, 255, 0.08);
    box-shadow: var(--glow-cyan);
}

.filter-icon {
    font-size: 1rem;
}

/* ========== 帳號卡片網格 ========== */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
    min-height: 200px;
}

/* 帳號卡片 */
.account-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 22px;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: cardIn 0.5s ease backwards;
}

.account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.account-card:hover {
    border-color: rgba(0, 240, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), var(--glow-cyan);
}

.account-card:hover::before {
    opacity: 1;
}

.account-card.offline {
    opacity: 0.55;
}

.account-card.offline .card-status {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
}

.account-card.offline .card-status-dot {
    background: #ff4757;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-region {
    display: flex;
    align-items: center;
    gap: 8px;
}

.region-flag {
    font-size: 1.5rem;
    line-height: 1;
}

.region-name {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    font-weight: 500;
}

.card-status-dot {
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
}

.card-field {
    margin-bottom: 12px;
}

.field-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-family: var(--font-display);
}

.field-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    word-break: break-all;
}

.field-value:hover {
    border-color: var(--cyan);
    background: rgba(0, 240, 255, 0.04);
}

.field-value:active {
    transform: scale(0.98);
}

.copy-icon {
    flex-shrink: 0;
    margin-left: 8px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.field-value:hover .copy-icon {
    color: var(--cyan);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.card-id {
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

/* ========== 載入動畫 ========== */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    gap: 20px;
}

.loader {
    position: relative;
    width: 60px;
    height: 60px;
}

.loader-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: loaderSpin 1.5s linear infinite;
}

.loader-ring:nth-child(1) {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-top-color: var(--cyan);
}

.loader-ring:nth-child(2) {
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border-right-color: var(--purple);
    animation-duration: 2s;
    animation-direction: reverse;
}

.loader-ring:nth-child(3) {
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border-bottom-color: var(--pink);
    animation-duration: 2.5s;
}

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75% {
        content: '...';
    }
}

/* ========== 更新資訊 ========== */
.update-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.update-icon {
    font-size: 1rem;
}

.refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 4px;
}

.refresh-btn:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.refresh-btn.spinning svg {
    animation: loaderSpin 1s linear infinite;
}

/* ========== 使用教學 ========== */
.guide-section {
    position: relative;
    z-index: 2;
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.guide-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    position: relative;
}

.guide-card:hover {
    border-color: rgba(179, 71, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), var(--glow-purple);
}

.guide-step {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.guide-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.guide-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.guide-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== FAQ ========== */
.faq-section {
    position: relative;
    z-index: 2;
    padding: 40px 24px 60px;
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 240, 255, 0.2);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.3s;
    user-select: none;
}

.faq-question:hover {
    color: var(--cyan);
}

.faq-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.open .faq-arrow {
    transform: rotate(90deg);
    color: var(--cyan);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 20px 16px;
}

.faq-answer p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========== Footer ========== */
.footer {
    position: relative;
    z-index: 2;
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid var(--card-border);
    margin-top: 40px;
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 14px;
}

.footer-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.7;
}

.footer-copyright {
    font-size: 0.72rem;
    color: rgba(200, 215, 240, 0.3);
    font-family: var(--font-mono);
}

/* ========== Toast ========== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50px;
    color: var(--cyan);
    font-size: 0.88rem;
    backdrop-filter: blur(20px);
    z-index: 999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ========== 響應式 ========== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .header-status .status-text {
        display: none;
    }

    .hero {
        padding: 110px 16px 40px;
    }

    .hero-stats {
        gap: 16px;
        padding: 14px 22px;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .accounts-grid {
        grid-template-columns: 1fr;
    }

    .guide-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-decoration {
        width: 300px;
        height: 300px;
    }

    .orbit-1 {
        width: 180px;
        height: 180px;
    }

    .orbit-2 {
        width: 240px;
        height: 240px;
    }

    .orbit-3 {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        /* flex-direction: column; */
        gap: 10px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }
}

/* ========== 彈窗 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-box {
    background: linear-gradient(145deg, rgba(12, 20, 45, 0.95), rgba(8, 14, 30, 0.98));
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.08), 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-danger {
    border-color: rgba(255, 71, 87, 0.3);
    box-shadow: 0 0 60px rgba(255, 71, 87, 0.08), 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--cyan);
}

.modal-danger .modal-title {
    color: #ff4757;
}

.modal-body {
    text-align: left;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.modal-body li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.modal-body li:last-child {
    border-bottom: none;
}

.modal-warning {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: 8px;
    color: #ff6b7a;
    font-size: 0.82rem;
    font-weight: 500;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border: none;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #fff;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.3);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn-cancel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
}

.modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    color: var(--text-primary);
}

.modal-btn-confirm {
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
}

.modal-btn-confirm:hover {
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.3);
}

/* 頁面鎖定（彈窗打開時） */
body.locked {
    overflow: hidden;
}