/* Fun1399.com - 娛樂城玩家俱樂部 - UI/UX優化版 */

:root {
    --primary: #ff6b35;
    --primary-light: #ff8f5a;
    --secondary: #1a1a2e;
    --accent: #ffd700;
    --text: #333;
    --text-light: #666;
    --text-muted: #888;
    --bg: #f8f9fa;
    --bg-light: #fff;
    --border: #e8e8e8;
    --border-light: #f0f0f0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
    --success: #28a745;
    --radius: 12px;
    --radius-sm: 8px;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", "PingFang TC", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* 容器優化 - 更舒適的閱讀寬度 */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header優化 */
.header {
    background: var(--secondary);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

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

.logo a {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.nav .line-btn {
    background: #00c300;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    color: white;
}

.nav .line-btn:hover {
    background: #00a300;
    transform: translateY(-1px);
}

/* 立即遊玩按鈕 */
.nav .play-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f5a 100%);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.nav .play-btn:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #ff7a45 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* Hero優化 - 更寬敞的留白 */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #16213e 50%, #1a1a2e 100%);
    color: var(--white);
    padding: 100px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255,107,53,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.3;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.slogan {
    font-size: 1.3rem;
    color: #ffd700;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-desc {
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto 40px;
    color: rgba(255,255,255,0.95);
    line-height: 1.7;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按鈕優化 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    border-color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-line {
    background: #00c300;
    color: var(--white);
    font-size: 1.1rem;
    padding: 16px 40px;
}

/* 內容區塊優化 - 更清晰的層級 */
.content-section {
    padding: 80px 0;
}

.content-section:nth-child(even) {
    background: var(--bg-light);
}

.content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--secondary);
    line-height: 1.3;
}

.content h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 48px 0 20px;
    color: var(--secondary);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 36px 0 16px;
    color: var(--text);
}

.content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text);
}

.content p {
    margin-bottom: 20px;
    color: var(--text);
    line-height: 1.9;
}

.content ul, .content ol {
    margin: 20px 0;
    padding-left: 28px;
}

.content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

/* 麵包屑優化 */
.breadcrumb {
    margin-bottom: 32px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

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

/* 作者資訊區塊優化 */
.article-meta {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 20px 24px;
    border-radius: var(--radius);
    margin: 0 0 40px 0;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

.author-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.author-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.author-info a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* 文章卡片優化 */
.article-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border-light);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.article-card h3 a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
}

.article-card p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.7;
}

/* 娛樂城卡片優化 */
.casino-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.casino-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.casino-logo {
    text-align: center;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.casino-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.casino-card h3 {
    font-size: 1.3rem;
    margin: 0 0 12px 0;
    color: var(--secondary);
}

.rating {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 16px;
    font-weight: 500;
}

.features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.features li {
    padding: 8px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-light);
}

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

.promo {
    background: linear-gradient(135deg, #fff5f0 0%, #fff 100%);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text);
    border-left: 3px solid var(--primary);
}

/* 網格優化 */
.casino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

/* CTA區塊優化 */
.cta-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 40px;
    border-radius: var(--radius);
    margin: 48px 0;
    text-align: center;
    border: 2px solid var(--border);
}

.cta-box h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--secondary);
    font-size: 1.4rem;
}

.cta-box p {
    margin-bottom: 24px;
    color: var(--text-light);
}

.cta-box ul {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 24px;
}

/* CTA Box 按鈕樣式 - 淺色背景專用 */
.cta-box .btn-secondary {
    background: var(--secondary);
    color: #ffffff;
    border: 2px solid var(--secondary);
}

.cta-box .btn-secondary:hover {
    background: #2d3748;
    border-color: #2d3748;
    color: #ffffff;
}

/* final-cta 區塊樣式 */
.final-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 40px;
    border-radius: var(--radius);
    margin: 48px 0;
    text-align: center;
    border: 2px solid var(--border);
}

.final-cta h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--secondary);
    font-size: 1.4rem;
}

.final-cta p {
    margin-bottom: 24px;
    color: var(--text-light);
}

/* final-cta 按鈕樣式 - 淺色背景專用 */
.final-cta .btn-secondary {
    background: var(--secondary);
    color: #ffffff;
    border: 2px solid var(--secondary);
}

.final-cta .btn-secondary:hover {
    background: #2d3748;
    border-color: #2d3748;
    color: #ffffff;
}

/* cta-section 區塊樣式 */
.cta-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 40px;
    border-radius: var(--radius);
    margin: 48px 0;
    text-align: center;
    border: 2px solid var(--border);
}

.cta-section h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--secondary);
    font-size: 1.4rem;
}

.cta-section p {
    margin-bottom: 24px;
    color: var(--text-light);
}

/* cta-section 按鈕樣式 - 淺色背景專用 */
.cta-section .btn-secondary {
    background: var(--secondary);
    color: #ffffff;
    border: 2px solid var(--secondary);
}

.cta-section .btn-secondary:hover {
    background: #2d3748;
    border-color: #2d3748;
    color: #ffffff;
}

/* LINE CTA優化 */
.line-cta {
    background: linear-gradient(135deg, #00c300 0%, #00a300 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.line-cta h2 {
    font-size: 1.8rem;
    margin-bottom: 32px;
    color: var(--white);
}

.benefits {
    list-style: none;
    max-width: 480px;
    margin: 0 auto 32px;
    text-align: left;
    padding: 0;
}

.benefits li {
    padding: 12px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* Footer優化 */
.footer {
    background: var(--secondary);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--white);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* 浮動按鈕系統 v3 - Global Component */
.float-btn-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    pointer-events: none;
}

.float-btn-container > a {
    pointer-events: auto;
}

/* 浮動立即遊玩按鈕 */
.float-play {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f5a 100%);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(255,107,53,0.35), 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.float-play:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 28px rgba(255,107,53,0.45), 0 4px 12px rgba(0,0,0,0.15);
}

.float-play:active {
    transform: translateY(-1px) scale(0.98);
}

/* 浮動專人服務按鈕 */
.float-service {
    background: linear-gradient(135deg, #00c300 0%, #00e600 100%);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,195,0,0.35), 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.float-service:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 28px rgba(0,195,0,0.45), 0 4px 12px rgba(0,0,0,0.15);
}

.float-service:active {
    transform: translateY(-1px) scale(0.98);
}

/* 浮動按鈕內部元素 */
.float-icon { font-size: 1.1em; }
.float-text { display: inline; }

/* 響應式浮動按鈕 */
@media (max-width: 768px) {
    .float-btn-container {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }
    
    .float-play,
    .float-service {
        padding: 12px 18px;
        font-size: 0.85rem;
        gap: 6px;
    }
    
    .float-text {
        display: inline;
    }
}

@media (max-width: 380px) {
    .float-play,
    .float-service {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
}

/* 出金排名卡片系統 */
.ranking-cards {
    display: grid;
    gap: 20px;
    margin: 32px 0;
}

.rank-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border-radius: 16px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rank-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    border-radius: 16px 0 0 16px;
}

.rank-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* 金牌 */
.rank-gold {
    background: linear-gradient(135deg, #fff9e6 0%, #fff 60%);
    border-color: #ffd700;
}
.rank-gold::before { background: linear-gradient(180deg, #ffd700, #ffb800); }

/* 銀牌 */
.rank-silver {
    background: linear-gradient(135deg, #f5f7fa 0%, #fff 60%);
    border-color: #c0c0c0;
}
.rank-silver::before { background: linear-gradient(180deg, #c0c0c0, #a0a0a0); }

/* 銅牌 */
.rank-bronze {
    background: linear-gradient(135deg, #fdf2e9 0%, #fff 60%);
    border-color: #cd7f32;
}
.rank-bronze::before { background: linear-gradient(180deg, #cd7f32, #b87333); }

/* 普通排名 */
.rank-normal::before { background: linear-gradient(180deg, var(--border), #999); }

.rank-medal {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.rank-gold .rank-medal {
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255,183,0,0.4);
}

.rank-silver .rank-medal {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #fff;
    box-shadow: 0 4px 16px rgba(160,160,160,0.4);
}

.rank-bronze .rank-medal {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: #fff;
    box-shadow: 0 4px 16px rgba(184,115,51,0.4);
}

.rank-normal .rank-medal {
    background: linear-gradient(135deg, #e0e0e0, #c0c0c0);
    color: #666;
}

.rank-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    color: var(--secondary);
}

.rank-info h3 a {
    color: inherit;
    text-decoration: none;
}

.rank-info h3 a:hover {
    color: var(--primary);
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.rank-meta .stat-highlight {
    color: var(--primary);
    font-weight: 700;
    background: rgba(255,107,53,0.1);
    padding: 2px 10px;
    border-radius: 20px;
}

.rank-meta .stat {
    color: var(--text-light);
}

.rank-desc {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.rank-action {
    flex-shrink: 0;
}

.rank-action .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* FAQ 展開式（非折疊） */
.faq-section {
    margin: 40px 0;
}

.faq-item-v2 {
    margin-bottom: 20px;
    padding: 20px 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.faq-item-v2 h4 {
    margin: 0 0 10px 0;
    font-size: 1.05rem;
    color: var(--secondary);
}

.faq-item-v2 p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .rank-card {
        grid-template-columns: 50px 1fr;
        grid-template-rows: auto auto;
        gap: 12px 16px;
        padding: 16px 18px;
    }
    .rank-medal {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    .rank-action {
        grid-column: 1 / -1;
        text-align: center;
    }
    .rank-action .btn {
        width: 100%;
    }
}

/* 手機版選單系統 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    z-index: 10000;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10001;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    z-index: 10002;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
}

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

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-title {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.mobile-nav-close:hover {
    background: rgba(255,255,255,0.2);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
    flex: 1;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-nav-links a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
}

.mobile-nav-links .m-icon {
    font-size: 1.3rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.mobile-nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 12px 0;
}

.mobile-nav-links .m-cta-play {
    background: linear-gradient(135deg, #ff6b35, #ff8f5a);
    color: var(--white) !important;
    justify-content: center;
    font-weight: 700;
    margin-top: 4px;
}

.mobile-nav-links .m-cta-play:hover {
    background: linear-gradient(135deg, #ff5a22, #ff7a48);
    transform: scale(1.02);
}

.mobile-nav-links .m-cta-line {
    background: linear-gradient(135deg, #00c300, #00e600);
    color: var(--white) !important;
    justify-content: center;
    font-weight: 700;
}

.mobile-nav-links .m-cta-line:hover {
    background: linear-gradient(135deg, #00b000, #00d400);
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .header .nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .header .container {
        justify-content: space-between;
    }
    .header .logo {
        flex: 1;
    }
}

/* 表格優化 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--secondary);
    color: var(--white);
    font-weight: 600;
}

tr:hover {
    background: #f8f9fa;
}

/* 響應式優化 */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav {
        display: none;
    }
    
    .hero {
        padding: 60px 0 80px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .content h1 {
        font-size: 1.6rem;
    }
    
    .content h2 {
        font-size: 1.3rem;
    }
    
    .casino-grid,
    .article-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .article-meta {
        padding: 16px;
    }
    
    .author-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .cta-box {
        padding: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* 評測頁特殊樣式 */
.review-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 32px;
    border-radius: var(--radius);
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    text-align: center;
}

.rating-large {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.quick-info {
    color: var(--text-light);
    font-size: 1rem;
}

/* 文章封面圖 - 響應式 + 防止拉伸 */
.article-hero-image {
    margin: 32px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 1200 / 630;
}

.article-hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.article-hero-image .image-caption {
    padding: 12px 16px;
    background: #f8f9fa;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

/* 響應式導航 */
@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }
    
    .logo a {
        font-size: 1.2rem;
    }
    
    .article-hero-image {
        margin: 16px -16px;
        border-radius: 0;
        aspect-ratio: 16 / 9;
    }
    
    .article-hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* 無障礙優化 */
a:focus,
button:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* 動畫 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.casino-card,
.article-card {
    animation: fadeIn 0.5s ease-out;
}

/* Sidebar 樣式 */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.sidebar-widget h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    color: var(--secondary);
}

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

.sidebar-list li {
    margin-bottom: 12px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
}

.sidebar-link:hover {
    background: #f8f9fa;
}

.sidebar-rank {
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-rating {
    color: var(--accent);
    font-weight: 600;
    margin-left: auto;
    font-size: 0.9rem;
}

.sidebar-promo {
    background: linear-gradient(135deg, #fff5f0 0%, #fff 100%);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 3px solid var(--primary);
}

.sidebar-promo p {
    margin: 0 0 4px 0;
}

.promo-detail {
    font-size: 0.9rem;
    color: var(--text-light);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.sidebar-cta {
    background: linear-gradient(135deg, #00c300 0%, #00a300 100%);
    color: white;
    text-align: center;
}

.sidebar-cta h4 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.sidebar-cta p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 12px;
}

/* 兩欄式布局 */
.content-with-sidebar {
    display: flex;
    gap: 40px;
}

.content-with-sidebar .content-main {
    flex: 1;
    min-width: 0;
}

@media (max-width: 1024px) {
    .content-with-sidebar {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
}

/* 作者頁面樣式 */
.author-profile {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin: 0 auto;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .author-profile {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto 20px;
    }
}

/* ========== 文章卡片系統 v2 (2025-05-15) ========== */
.article-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 28px;
}

/* Featured 頭條文章 */
.article-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 280px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}
.article-card.featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    border-color: #ff6b35;
}
.article-card.featured .card-image {
    position: relative;
    overflow: hidden;
    min-height: 280px;
}
.article-card.featured .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.article-card.featured:hover .card-image img {
    transform: scale(1.03);
}
.article-card.featured .card-content {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.article-card.featured .card-title {
    font-size: 1.35rem;
    line-height: 1.4;
}
.article-card.featured .card-excerpt {
    font-size: 1rem;
    -webkit-line-clamp: 3;
}

/* 一般卡片 */
.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-color: #ff6b35;
}

/* 圖片區 */
.card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border-radius: 8px 8px 0 0;
}

/* Featured 卡片圖片左側圓角 */
.article-card.featured .card-image {
    border-radius: 16px 0 0 16px;
}

/* 手機版 Featured 卡片圖片頂部圓角 */
@media (max-width: 768px) {
    .article-card.featured .card-image {
        border-radius: 16px 16px 0 0;
    }
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.article-card:hover .card-image img {
    transform: scale(1.04);
}

/* 漸層遮罩（Featured overlay 用） */
.card-image.overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    pointer-events: none;
}

/* 內容區 */
.card-content {
    padding: 14px 16px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.78rem;
    color: #888;
    flex-wrap: wrap;
}
.card-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.5;
}
.card-badge.new {
    background: #ff6b35;
    color: #fff;
}
.card-badge.scam {
    background: #dc3545;
    color: #fff;
}
.card-badge.hot {
    background: #ffd700;
    color: #1a1a2e;
}
.card-badge.guide {
    background: #1a1a2e;
    color: #fff;
}
.card-badge.promo {
    background: #28a745;
    color: #fff;
}
.card-badge.review {
    background: #6c757d;
    color: #fff;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a2e;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.article-card:hover .card-title {
    color: #ff6b35;
}
.card-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-readmore {
    margin-top: auto;
    font-size: 0.88rem;
    color: #ff6b35;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}
.article-card:hover .card-readmore {
    gap: 8px;
}

/* 詐騙警示卡片 */
.article-card.scam-alert {
    border-left: 3px solid #dc3545;
    background: linear-gradient(135deg, #fff 0%, #fff8f8 100%);
}
.article-card.scam-alert .card-title {
    color: #8b1a1a;
}
.article-card.scam-alert:hover .card-title {
    color: #dc3545;
}
.article-card.scam-alert:hover {
    border-color: #dc3545;
    box-shadow: 0 12px 32px rgba(220,53,69,0.12);
}

/* 優惠卡片 */
.article-card.promo-card {
    border-left: 3px solid #28a745;
}

/* 評測卡片 */
.article-card.review-card {
    border-left: 3px solid #6c757d;
}

/* 深色區塊改為淺色背景適配 */
.dark-section .article-card,
section[style*="background: linear-gradient(135deg, #faf5f5"] .article-card,
section[style*="background: linear-gradient(135deg, #f8f9fa"] .article-card {
    background: #fff;
    border-color: #e8e8e8;
}
.dark-section .article-card:hover,
section[style*="#faf5f5"] .article-card:hover,
section[style*="#f8f9fa"] .article-card:hover {
    background: #fff;
    border-color: #ff6b35;
}
.dark-section .card-title,
section[style*="#faf5f5"] .card-title,
section[style*="#f8f9fa"] .card-title {
    color: #1a1a2e;
}
.dark-section .article-card:hover .card-title,
section[style*="#faf5f5"] .article-card:hover .card-title,
section[style*="#f8f9fa"] .article-card:hover .card-title {
    color: #ff6b35;
}
.dark-section .card-excerpt,
section[style*="#faf5f5"] .card-excerpt,
section[style*="#f8f9fa"] .card-excerpt {
    color: #666;
}
.dark-section .card-meta,
section[style*="#faf5f5"] .card-meta,
section[style*="#f8f9fa"] .card-meta {
    color: #888;
}
.dark-section .article-card.scam-alert,
section[style*="#faf5f5"] .article-card.scam-alert {
    background: linear-gradient(135deg, #fff 0%, #fff8f8 100%);
    border-left: 3px solid #dc3545;
}
.dark-section .article-card.scam-alert .card-title,
section[style*="#faf5f5"] .article-card.scam-alert .card-title {
    color: #8b1a1a;
}
.dark-section .article-card.scam-alert:hover .card-title,
section[style*="#faf5f5"] .article-card.scam-alert:hover .card-title {
    color: #dc3545;
}

/* ========== Section Spacing ========== */
.top-casinos {
    padding-top: 32px;
    padding-bottom: 32px;
}
.latest-articles {
    padding-top: 48px;
    padding-bottom: 48px;
}
.popular-guides {
    padding-top: 48px;
    padding-bottom: 48px;
}
.line-cta {
    margin-top: 48px;
}

@media (max-width: 768px) {
    .top-casinos {
        padding-top: 24px;
        padding-bottom: 24px;
    }
    .latest-articles {
        padding-top: 32px;
        padding-bottom: 32px;
    }
    .popular-guides {
        padding-top: 32px;
        padding-bottom: 32px;
    }
    .line-cta {
        margin-top: 32px;
    }
}

/* ========== 手機版 ========== */
@media (max-width: 768px) {
    .article-grid-v2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .article-card.featured {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .article-card.featured .card-image {
        min-height: 200px;
        aspect-ratio: 16 / 9;
    }
    .article-card.featured .card-content {
        padding: 18px 20px 20px;
    }
    .article-card.featured .card-title {
        font-size: 1.15rem;
    }
    .article-card.featured .card-excerpt {
        font-size: 0.95rem;
    }
    .card-content {
        padding: 12px 14px 14px;
    }
    .card-title {
        font-size: 1rem;
    }
    .card-excerpt {
        font-size: 0.88rem;
        -webkit-line-clamp: 2;
    }
}

/* ========== 平板版 ========== */
@media (min-width: 769px) and (max-width: 1024px) {
    .article-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}
