/* index.css - 聊天咖啡廳首頁專用樣式 */

/* ==================== Variables ==================== */
:root {
    --landing-primary: #5865F2;
    --landing-primary-hover: #4752c4;
    --landing-secondary: #7289DA;
    --landing-accent: #00D4AA;
    --landing-bg: #0f0f1a;
    --landing-surface: #1a1a2e;
    --landing-surface-hover: #252542;
    --landing-border: #2d2d4a;
    --landing-text: #ffffff;
    --landing-text-muted: #94a3b8;
    --landing-gradient: linear-gradient(135deg, #5865F2 0%, #7289DA 50%, #00D4AA 100%);
}

/* ==================== 淺色模式變數 ==================== */
:root[data-theme="light"] {
    --landing-bg: #f8fafc;
    --landing-surface: #ffffff;
    --landing-surface-hover: #f1f5f9;
    --landing-border: #e2e8f0;
    --landing-text: #1e293b;
    --landing-text-muted: #64748b;
    --landing-primary: #4f46e5;
    --landing-primary-hover: #4338ca;
    --landing-gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #06b6d4 100%);
}

/* 跟隨系統偏好 */
@media (prefers-color-scheme: light) {
    :root[data-theme="system"] {
        --landing-bg: #f8fafc;
        --landing-surface: #ffffff;
        --landing-surface-hover: #f1f5f9;
        --landing-border: #e2e8f0;
        --landing-text: #1e293b;
        --landing-text-muted: #64748b;
        --landing-primary: #4f46e5;
        --landing-primary-hover: #4338ca;
        --landing-gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #06b6d4 100%);
    }
}

/* ==================== Landing Page Container ==================== */
.landing-page {
    background: var(--landing-bg);
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* 當首頁載入時，移除 body 的固定導航 padding，讓內容延伸到頂部 */
/* 使用 :has() 選擇器（現代瀏覽器支援） */
body.has-fixed-nav:has(.landing-page) {
    padding-top: 0 !important;
    background-color: var(--landing-bg, #0f0f1a) !important;
}
/* 備用方案：使用 JS 添加的 class */
body.has-fixed-nav.landing-page-active {
    padding-top: 0 !important;
    background-color: var(--landing-bg, #0f0f1a) !important;
}

/* 移除首頁 main 容器的 padding */
.main-content:has(.landing-page) {
    padding: 0 !important;
}
body.landing-page-active .main-content {
    padding: 0 !important;
}

.landing-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==================== Hero Section ==================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 增加頂部 padding 以確保內容不被透明導航欄遮擋 */
    padding: calc(var(--nav-height, 60px) + 3rem) 2rem 4rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(88, 101, 242, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(114, 137, 218, 0.1) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(88, 101, 242, 0.2);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 50px;
    color: var(--landing-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--landing-text);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--landing-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--landing-text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary-hero {
    background: var(--landing-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.btn-primary-hero:hover {
    background: var(--landing-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.5);
    color: white;
}

.btn-secondary-hero {
    background: rgba(255, 255, 255, 0.1);
    color: var(--landing-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.btn-outline-hero {
    background: transparent;
    color: var(--landing-text);
    border: 2px solid var(--landing-primary);
}

.btn-outline-hero:hover {
    background: var(--landing-primary);
    color: white;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--landing-text);
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--landing-text-muted);
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--landing-border);
}

.hero-image {
    position: absolute;
    right: -5%;
    bottom: 10%;
    width: 400px;
    opacity: 0.3;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* ==================== Section Common ==================== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(88, 101, 242, 0.15);
    color: var(--landing-primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--landing-text);
    margin-bottom: 0.75rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--landing-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== Features Section ==================== */
.features-section {
    padding: 5rem 0;
    background: var(--landing-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--landing-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card.feature-highlight {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--landing-surface) 0%, rgba(88, 101, 242, 0.1) 100%);
}

@media (max-width: 768px) {
    .feature-card.feature-highlight {
        grid-column: span 1;
    }
}

.feature-icon-wrapper {
    margin-bottom: 1.25rem;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(88, 101, 242, 0.15);
    border-radius: 12px;
    font-size: 1.5rem;
    color: var(--landing-primary);
}

.feature-card .feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--landing-text);
    margin-bottom: 0.75rem;
}

.feature-card .feature-description {
    color: var(--landing-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--landing-text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.feature-list li i {
    color: var(--landing-accent);
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--landing-primary);
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.2s;
}

.feature-link:hover {
    gap: 0.75rem;
    color: var(--landing-secondary);
}

/* ==================== Community Section ==================== */
.community-section {
    padding: 5rem 0;
    background: var(--landing-surface);
}

.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 992px) {
    .community-content {
        grid-template-columns: 1fr;
    }
}

.community-info .section-title {
    text-align: left;
}

.community-description {
    color: var(--landing-text-muted);
    margin-bottom: 1.5rem;
}

.community-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.community-benefits li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--landing-text);
}

.community-benefits li i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 101, 242, 0.15);
    border-radius: 10px;
    color: var(--landing-primary);
}

.btn-discord-large {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: #5865F2;
    color: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-discord-large:hover {
    background: #4752c4;
    transform: translateY(-2px);
    color: white;
}

.btn-discord-large i {
    font-size: 1.75rem;
}

.btn-discord-large span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-discord-large strong {
    font-size: 1rem;
}

.btn-discord-large small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.community-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.discord-widget {
    background: var(--landing-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--landing-border);
    width: 100%;
    max-width: 400px;
}

.discord-widget iframe {
    display: block;
    width: 100%;
    min-height: 500px;
    border: none;
}

/* ==================== Commands Section ==================== */
.commands-section {
    padding: 5rem 0;
    background: var(--landing-bg);
}

.commands-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.command-category {
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.command-category h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--landing-text);
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--landing-border);
}

.command-category h4 i {
    color: var(--landing-primary);
}

.command-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0;
}

.command-item code {
    background: rgba(88, 101, 242, 0.15);
    color: var(--landing-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
}

.command-item span {
    color: var(--landing-text-muted);
    font-size: 0.9rem;
}

/* ==================== Dashboard Section ==================== */
.dashboard-section {
    padding: 4rem 0;
    background: var(--landing-surface);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background: var(--landing-bg);
    border: 1px solid var(--landing-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    border-color: var(--landing-primary);
    transform: translateY(-3px);
}

.dashboard-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 101, 242, 0.15);
    border-radius: 12px;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--landing-primary);
}

.dashboard-card h3 {
    color: var(--landing-text);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.dashboard-card p {
    color: var(--landing-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ==================== CTA Section ==================== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--landing-primary) 0%, var(--landing-secondary) 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary-hero {
    background: white;
    color: var(--landing-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary-hero:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.cta-section .btn-outline-hero {
    border-color: white;
    color: white;
}

.cta-section .btn-outline-hero:hover {
    background: white;
    color: var(--landing-primary);
}

/* ==================== Info Section ==================== */
.info-section {
    padding: 4rem 0;
    background: var(--landing-bg);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.info-card > i {
    font-size: 2.5rem;
    color: var(--landing-primary);
    margin-bottom: 1rem;
}

.info-card h4 {
    color: var(--landing-text);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--landing-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.info-card a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--landing-primary);
    text-decoration: none;
    font-weight: 500;
}

.info-card a:hover {
    color: var(--landing-secondary);
}

/* ==================== Utilities ==================== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-description br {
        display: none;
    }
    
    .hero-image {
        display: none;
    }
    
    .hero-stat-divider {
        display: none;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .community-content {
        gap: 2rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
}

/* ==================== Alert Override ==================== */
.landing-page .alert {
    margin: 1rem;
    border-radius: 8px;
}

/* ==================== Legacy Styles (backward compatibility) ==================== */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--landing-surface);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--landing-primary);
    margin-bottom: 15px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--landing-text);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--landing-text-muted);
    font-size: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-online {
    background: #43b581;
    color: #fff;
}

.status-offline {
    background: #f04747;
    color: #fff;
}

.status-idle {
    background: #faa61a;
    color: #fff;
}

.action-btn {
    display: inline-block;
    background: var(--landing-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.action-btn:hover {
    background: var(--landing-primary-hover);
    color: #fff;
}

.recent-activities {
    background: var(--landing-surface);
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.activity-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--landing-border);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    color: var(--landing-primary);
    margin-right: 10px;
}

.activity-time {
    color: var(--landing-text-muted);
    font-size: 0.9rem;
}

/* ==================== 淺色模式特定調整 ==================== */
:root[data-theme="light"] .hero-background,
:root[data-theme="system"] .hero-background {
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .hero-background {
        background: 
            radial-gradient(ellipse at 20% 50%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
            radial-gradient(ellipse at 50% 100%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
    }
}

:root[data-theme="light"] .hero-particles,
:root[data-theme="system"] .hero-particles {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0,0,0,0.02) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(0,0,0,0.02) 1px, transparent 1px);
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .hero-particles {
        background-image: 
            radial-gradient(circle at 20% 30%, rgba(0,0,0,0.02) 1px, transparent 1px),
            radial-gradient(circle at 80% 70%, rgba(0,0,0,0.02) 1px, transparent 1px);
    }
}

:root[data-theme="light"] .hero-badge {
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.2);
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .hero-badge {
        background: rgba(79, 70, 229, 0.1);
        border-color: rgba(79, 70, 229, 0.2);
    }
}

:root[data-theme="light"] .btn-secondary-hero {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--landing-text);
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .btn-secondary-hero {
        background: rgba(0, 0, 0, 0.05);
        border-color: rgba(0, 0, 0, 0.1);
        color: var(--landing-text);
    }
}

:root[data-theme="light"] .btn-secondary-hero:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--landing-text);
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .btn-secondary-hero:hover {
        background: rgba(0, 0, 0, 0.08);
        color: var(--landing-text);
    }
}

:root[data-theme="light"] .feature-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .feature-card {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
}

/* 淺色模式 body 背景調整 */
:root[data-theme="light"] body.has-fixed-nav:has(.landing-page),
:root[data-theme="light"] body.has-fixed-nav.landing-page-active {
    background-color: var(--landing-bg) !important;
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] body.has-fixed-nav:has(.landing-page),
    :root[data-theme="system"] body.has-fixed-nav.landing-page-active {
        background-color: var(--landing-bg) !important;
    }
}

/* Discord Widget 淺色模式 - 動態切換主題 */
:root[data-theme="light"] .discord-widget iframe {
    filter: none;
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .discord-widget iframe {
        filter: none;
    }
}

/* ==================== 淺色模式 - 功能卡片增強 ==================== */
:root[data-theme="light"] .feature-card:hover {
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.15);
}

:root[data-theme="light"] .feature-card.feature-highlight {
    background: linear-gradient(135deg, #ffffff 0%, rgba(79, 70, 229, 0.05) 100%);
}

:root[data-theme="light"] .feature-icon {
    background: rgba(79, 70, 229, 0.1);
}

:root[data-theme="light"] .feature-list li i {
    color: #06b6d4;
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .feature-card:hover {
        box-shadow: 0 10px 40px rgba(79, 70, 229, 0.15);
    }
    
    :root[data-theme="system"] .feature-card.feature-highlight {
        background: linear-gradient(135deg, #ffffff 0%, rgba(79, 70, 229, 0.05) 100%);
    }
    
    :root[data-theme="system"] .feature-icon {
        background: rgba(79, 70, 229, 0.1);
    }
    
    :root[data-theme="system"] .feature-list li i {
        color: #06b6d4;
    }
}

/* ==================== 淺色模式 - 社群區塊 ==================== */
:root[data-theme="light"] .community-section {
    background: #f1f5f9;
}

:root[data-theme="light"] .community-benefits li i {
    background: rgba(79, 70, 229, 0.1);
}

:root[data-theme="light"] .discord-widget {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .community-section {
        background: #f1f5f9;
    }
    
    :root[data-theme="system"] .community-benefits li i {
        background: rgba(79, 70, 229, 0.1);
    }
    
    :root[data-theme="system"] .discord-widget {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
}

/* ==================== 淺色模式 - 指令區塊 ==================== */
:root[data-theme="light"] .command-category {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .command-item code {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .command-category {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    :root[data-theme="system"] .command-item code {
        background: rgba(79, 70, 229, 0.1);
        color: #4f46e5;
    }
}

/* ==================== 淺色模式 - Dashboard 區塊 ==================== */
:root[data-theme="light"] .dashboard-section {
    background: #f1f5f9;
}

:root[data-theme="light"] .dashboard-card {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .dashboard-card:hover {
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.12);
}

:root[data-theme="light"] .dashboard-icon {
    background: rgba(79, 70, 229, 0.1);
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .dashboard-section {
        background: #f1f5f9;
    }
    
    :root[data-theme="system"] .dashboard-card {
        background: #ffffff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    :root[data-theme="system"] .dashboard-card:hover {
        box-shadow: 0 8px 25px rgba(79, 70, 229, 0.12);
    }
    
    :root[data-theme="system"] .dashboard-icon {
        background: rgba(79, 70, 229, 0.1);
    }
}

/* ==================== 淺色模式 - CTA 區塊 ==================== */
:root[data-theme="light"] .cta-section {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .cta-section {
        background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    }
}

/* ==================== 淺色模式 - Info 區塊 ==================== */
:root[data-theme="light"] .info-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .info-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .info-card {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    :root[data-theme="system"] .info-card:hover {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }
}

/* ==================== 淺色模式 - 按鈕優化 ==================== */
:root[data-theme="light"] .btn-primary-hero {
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

:root[data-theme="light"] .btn-primary-hero:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

:root[data-theme="light"] .btn-outline-hero {
    border-color: #4f46e5;
    color: #4f46e5;
}

:root[data-theme="light"] .btn-outline-hero:hover {
    background: #4f46e5;
    color: white;
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .btn-primary-hero {
        box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    }
    
    :root[data-theme="system"] .btn-primary-hero:hover {
        box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    }
    
    :root[data-theme="system"] .btn-outline-hero {
        border-color: #4f46e5;
        color: #4f46e5;
    }
    
    :root[data-theme="system"] .btn-outline-hero:hover {
        background: #4f46e5;
        color: white;
    }
}

/* ==================== 淺色模式 - Section Badge ==================== */
:root[data-theme="light"] .section-badge {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .section-badge {
        background: rgba(79, 70, 229, 0.1);
        color: #4f46e5;
    }
}

/* ==================== 淺色模式 - 統計數據區塊 ==================== */
:root[data-theme="light"] .hero-stat-divider {
    background: #e2e8f0;
}

:root[data-theme="light"] .stat-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

:root[data-theme="light"] .stat-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .hero-stat-divider {
        background: #e2e8f0;
    }
    
    :root[data-theme="system"] .stat-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    
    :root[data-theme="system"] .stat-card:hover {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }
}

/* ==================== 淺色模式 - 連結與互動元素 ==================== */
:root[data-theme="light"] .feature-link {
    color: #4f46e5;
}

:root[data-theme="light"] .feature-link:hover {
    color: #6366f1;
}

:root[data-theme="light"] .info-card a {
    color: #4f46e5;
}

:root[data-theme="light"] .info-card a:hover {
    color: #6366f1;
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .feature-link {
        color: #4f46e5;
    }
    
    :root[data-theme="system"] .feature-link:hover {
        color: #6366f1;
    }
    
    :root[data-theme="system"] .info-card a {
        color: #4f46e5;
    }
    
    :root[data-theme="system"] .info-card a:hover {
        color: #6366f1;
    }
}

/* ==================== 淺色模式 - Hero 圖片調整 ==================== */
:root[data-theme="light"] .hero-image {
    opacity: 0.15;
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .hero-image {
        opacity: 0.15;
    }
}

/* ==================== 淺色模式 - 活動區塊 ==================== */
:root[data-theme="light"] .recent-activities {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .activity-item {
    border-bottom-color: #e2e8f0;
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .recent-activities {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    :root[data-theme="system"] .activity-item {
        border-bottom-color: #e2e8f0;
    }
}

/* ==================== 淺色模式 - Alert ==================== */
:root[data-theme="light"] .landing-page .alert {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .landing-page .alert {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
}

/* ==================== 淺色模式 - 滾動條 ==================== */
:root[data-theme="light"] .landing-page::-webkit-scrollbar-track {
    background: #f1f5f9;
}

:root[data-theme="light"] .landing-page::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

:root[data-theme="light"] .landing-page::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .landing-page::-webkit-scrollbar-track {
        background: #f1f5f9;
    }
    
    :root[data-theme="system"] .landing-page::-webkit-scrollbar-thumb {
        background: #cbd5e1;
    }
    
    :root[data-theme="system"] .landing-page::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
}

/* ==================== 淺色模式 - Loading Spinner ==================== */
:root[data-theme="light"] .loading-spinner {
    border-color: rgba(79, 70, 229, 0.2);
    border-top-color: #4f46e5;
}

@media (prefers-color-scheme: light) {
    :root[data-theme="system"] .loading-spinner {
        border-color: rgba(79, 70, 229, 0.2);
        border-top-color: #4f46e5;
    }
}