:root {
    --primary-gold: #D4AC49;
    --dark-slate: #404E66;
    --bg-light: #f8fafd;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "PingFang HK", "Segoe UI", sans-serif; background: var(--bg-light); color: #2d3436; line-height: 1.8; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Header & Nav */
.header { background: var(--white); border-bottom: 4px solid var(--primary-gold); position: sticky; top: 0; z-index: 1000; height: 90px; display: flex; align-items: center; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.header .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem; /* Slightly larger */
    font-weight: 900; /* Extra Bold */
    color: var(--dark-slate);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -1.5px; /* Tighter tracking for a high-end look */
    display: flex;
    align-items: center;
    transition: 0.3s;
}

/* Stylish touch: Make the first letter or a part of the logo Gold */
.logo::first-letter {
    color: var(--primary-gold);
    border-bottom: 3px solid var(--primary-gold);
}

.logo:hover {
    color: var(--primary-gold);
    transform: scale(1.02);
}

main.container {
    padding-top: 10px;    
    padding-bottom: 30px; 
}

.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav a { text-decoration: none; color: var(--dark-slate); font-weight: 700; font-size: 1rem; transition: 0.3s; }
.nav a:hover { color: var(--primary-gold); }

/* Subcategory Style*/
.nav-item {
    height: 90px;
    display: flex;
    align-items: center;
    position: relative;
}
.mega-menu {
    position: absolute;
    top: 90px;
    left: 0;
    width: auto;          
    min-width: 500px;     /* Increased for better horizontal spread */
    background: var(--white);
    border-bottom: 4px solid var(--primary-gold);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    display: none;        /* Controlled by hover below */
    z-index: 3000;
}

.nav-item:hover .mega-menu {
    display: flex !important;
}
.nav-label {
    color: #cbd5e0 !important;
    font-weight: 700;
    padding: 0 10px;
    cursor: default;
}

.mega-col h4.highlight-gold {
    color: var(--primary-gold);
    border-bottom: 2px solid var(--primary-gold);
    margin-bottom: 12px;
    padding-bottom: 4px;
    font-size: 1.1rem;
    display: block;          /* Forces the title onto its own line */
    width: 100%;             /* Ensures no text can sneak in next to it */
}

.mega-content {
    display: flex;
    gap: 40px;            /* This creates a consistent space between columns */
    justify-content: flex-start; /* Aligns them to the left instead of spreading them to the edges */
    padding: 20px;
}

.mega-col { /* --- Ensure the column acts like a vertical container --- */
    min-width: 200px;     
    flex: 0 1 auto;      
    display: flex;           /* Enables flexbox list behavior */
    flex-direction: column;  /* Forces links to stack vertically */
    align-items: flex-start; /* Aligns all text to the left */
}

/* --- Link styling for the list --- */
.mega-col a {
    display: block;          /* Ensures each link is on a new line */
    padding: 6px 0;          /* Adds vertical spacing between "list" items */
    color: var(--dark-slate);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.mega-col a:hover {
    color: var(--primary-gold);
}

/* Language Button Group (Fixed) */
.lang-btn-group { display: flex; border: 2px solid var(--primary-gold); border-radius: 8px; overflow: hidden; height: 36px; margin-left: 10px; }
.lang-btn { padding: 0 15px; text-decoration: none; font-size: 0.85rem; font-weight: 800; color: var(--primary-gold); display: flex; align-items: center; background: white; transition: 0.3s; }
.lang-btn.active { background: var(--primary-gold); color: white !important; }

/* Mobile Menu Button */
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding-top: 10px; }
.menu-toggle span { width: 28px; height: 3px; background: var(--dark-slate); border-radius: 2px; }

/* Ad Styling (Fixed) */
.ad-leaderboard-wrapper { margin: 0px auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ad-tag { display: block; font-size: 10px; color: #cbd5e0; letter-spacing: 2px; font-weight: bold; text-transform: uppercase; }
.ad-fixed { background: #f1f4f8; border: 1px dashed #cbd5e0; display: flex; align-items: center; justify-content: center; color: #a0aec0; font-size: 12px; font-weight: bold; border-radius: 4px; }
.leaderboard { width: 728px; height: 90px; margin-top: 0;}
.rectangle { width: 300px; height: 250px; margin: 0 auto; }

/* Slider */
.slider-container { position: relative; border-radius: 16px; overflow: hidden; margin: 3rem 0; height: 480px; background: var(--dark-slate); }
.slider-wrapper { display: flex; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); height: 100%; }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }
.slide-overlay { position: absolute; bottom: 50px; left: 50px; color: var(--primary-gold); max-width: 650px; }
.slide-overlay h2 { font-size: 2.8rem; font-weight: 800; margin-bottom: 15px; }
.slide-overlay p { color: white; font-size: 1.25rem; }

.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); color: white; border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; z-index: 10; transition: 0.3s; }
.slider-btn:hover { background: var(--primary-gold); }
.prev { left: 20px; }
.next { right: 20px; }

/* Main Layout */
.main-layout { display: flex; gap: 4rem; margin-top: 4rem; padding-bottom: 6rem; }
.content-area { flex: 1; min-width: 0; }
.sidebar-area { width: 320px; display: flex; flex-direction: column; gap: 3.5rem; }
.section-title { font-size: 1.8rem; color: var(--dark-slate); border-bottom: 4px solid var(--primary-gold); display: inline-block; padding-bottom: 5px; margin-bottom: 2.5rem; }

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2.5rem; }
.article-card { background: white; border-radius: 12px; border-bottom: 6px solid var(--primary-gold); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.card-body { padding: 2rem; }

.tool-card { background: var(--dark-slate); color: white; padding: 3rem 2rem; border-radius: 12px; text-align: center; }
.btn-gold-outline { display: block; margin-top: 1.5rem; padding: 12px; border: 2px solid var(--primary-gold); color: var(--primary-gold); text-decoration: none; font-weight: 700; border-radius: 6px; transition: 0.3s; }
.btn-gold-outline:hover { background: var(--primary-gold); color: white; }

/* Footer */
.footer { background: white; border-top: 1px solid #eee; padding: 4rem 0; color: #778ca3; font-size: 0.85rem; }
.footer-container { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.footer-row { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.disclaimer-text { max-width: 800px; text-align: center; line-height: 1.8; border-top: 1px solid #f1f1f1; padding-top: 1.5rem; }

/* Mobile Responsive */
@media (max-width: 992px) {
    /* 1. 漢堡選單與 Header 佈局 */
    .menu-toggle { 
        display: flex !important; 
        z-index: 1100;
    }

    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* 2. 導航抽屜容器 */
    .nav {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 30px 20px;
        border-bottom: 4px solid var(--primary-gold);
        z-index: 1000;
        gap: 20px; /* 統一間距 */
        text-align: center; /* 全體置中 */
    }

    .nav.show { display: flex; }

    /* 3. 統一 TCG卡牌 (.nav-item) 與其他選項的樣式 */
    .nav-item {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center; /* 確保 TCG 文字置中 */
        border: none;
        padding: 0;
    }

    .nav a, 
    .nav-item > a, 
    .nav-label {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        color: var(--dark-slate) !important;
        text-decoration: none !important;
        display: block;
        width: 100%;
    }

    /* 4. 徹底隱藏手機版的子選單 */
    .mega-menu, 
    .nav-item:hover .mega-menu { 
        display: none !important; 
    }

    /* 5. 標題與佈局順序修正 */
    .section-title {
        display: block !important;
        writing-mode: horizontal-tb !important; 
        white-space: nowrap;
    }

    .main-layout { flex-direction: column; }
    .content-area { order: 1; }
    .sidebar-area { 
        order: 2; 
        width: 100%;
        margin-top: 4rem;
    }

    .ad-sidebar-wrapper {
        order: -1;
        margin-bottom: 2rem;
    }
}
/* Breadcrumb Styling */
.breadcrumb { 
    margin-top: 0;        
    margin-bottom: 35px; 
    font-size: 0.95rem; 
    color: #778ca3; 
    font-weight: 500;
}

.breadcrumb a { 
    color: var(--primary-gold); 
    text-decoration: none; 
    transition: 0.3s;
}

.breadcrumb a:hover { 
    text-decoration: underline; 
}

/* Legal Box Styling (For Disclaimer/Privacy pages) */
.legal-box { 
    background: var(--white); 
    padding: 50px;    
    border-radius: 16px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
    line-height: 2.2;
}

.legal-box h3 { 
    margin: 50px 0; 
    color: var(--dark-slate); 
    border-left: 5px solid var(--primary-gold); 
    padding-left: 15px; 
    font-size: 1.4rem;
}

