:root {
    /* 核心色盤：深邃太空 */
    --bg-dark: #09090b;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    
    /* 卡片樣式 */
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;
    
    /* 強調色 */
    --primary: #3b82f6;  /* 藍 */
    --purple: #8b5cf6;   /* 紫 */
    --green: #10b981;    /* 綠 */
    --orange: #f59e0b;   /* 橘 */
    --teal: #14b8a6;     /* 青 */
    --pink: #ec4899;     /* 粉 */
    --red: #ef4444;     /* 紅 */
    --yellow: #eab308;   /* 黃 */
    --blue: #3b82f6;     /* 藍 */
    --gray: #6b7280;     /* 灰 */
    --black: #1f2937;     /* 黑 */
    --white: #f9fafb;     /* 白 */
    --brown: #92400e;     /* 棕 */
    --lime: #84cc16;     /* 檸檬 */
    --indigo: #6366f1;     /* 靛藍 */
    --violet: #8b5cf6;     /* 紫羅蘭 */
    --summer: #00c853;     /* 夏日綠 */
    --winter: #00b0ff;     /* 冬日藍 */
    --spring: #ffd600;     /* 春日黃 */
    --autumn: #ff5722;     /* 秋日橙 */
    --rainbow: #ff4081;     /* 彩虹 */
    --rainbow: #ff4081;     /* 彩虹 */
    
    --font-family: 'Inter', 'Noto Sans TC', sans-serif;
}

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

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

/* === 背景特效 === */
.bg-orb {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -2;
    pointer-events: none;
    animation: float 10s infinite ease-in-out;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 40px); }
}

/* === 導覽列 === */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 16px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.lang-switch select {
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.lang-switch select option {
    background: #222;
    color: white;
}

/* === Bento Grid 主佈局 === */
.main-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* 手機單欄 */
    gap: 16px;
    padding-top: 32px;
    padding-bottom: 64px;
}

@media (min-width: 768px) {
    .main-grid {
        grid-template-columns: repeat(3, 1fr); /* 平板三欄 */
        grid-template-rows: auto;
    }
    
    /* Grid 跨欄設定 */
    .hero-card { grid-column: span 3; }
    .feature-card.wide { grid-column: span 2; }
    .footer-card { grid-column: span 3; }
}

/* === 卡片通用樣式 === */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 24px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
    text-decoration: none;
    color: var(--text-main);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    background: var(--card-hover);
    border-color: rgba(255,255,255,0.2);
}

/* === Hero 卡片 === */
.hero-card {
    background: radial-gradient(circle at top right, rgba(59,130,246,0.1), transparent), var(--card-bg);
    padding: 40px;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.1;
}

.hero-text p {
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.btn.primary {
    background: white;
    color: black;
}
.btn.primary:hover { background: #e5e5e5; }

.btn.secondary {
    background: rgba(255,255,255,0.1);
    color: white;
}
.btn.secondary:hover { background: rgba(255,255,255,0.2); }

/* === 功能卡片 === */
.feature-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
}

.card-icon {
    font-size: 28px;
    margin-bottom: 16px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
}

/* 卡片顏色主題 */
.purple .card-icon { color: var(--purple); background: rgba(139, 92, 246, 0.15); }
.blue .card-icon { color: var(--primary); background: rgba(59, 130, 246, 0.15); }
.green .card-icon { color: var(--green); background: rgba(16, 185, 129, 0.15); }
.orange .card-icon { color: var(--orange); background: rgba(245, 158, 11, 0.15); }
.teal .card-icon { color: var(--teal); background: rgba(20, 184, 166, 0.15); }

.card-info h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.card-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.card-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    opacity: 0;
    transform: translate(-10px, 10px);
    transition: 0.2s;
}

.feature-card:hover .card-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

.feature-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(0,0,0,0.2);
}

.feature-card.disabled:hover {
    transform: none;
    border-color: var(--card-border);
}

/* === 底部 === */
.footer-card {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: 0.2s;
    border: 1px solid transparent;
}

.social-item:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.footer-bottom {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

.disclaimer-link {
    color: var(--text-muted);
    text-decoration: underline;
}

/* === 手機適配 === */
@media (max-width: 640px) {
    .hero-text h1 { font-size: 2rem; }
    .hero-card { padding: 24px; }
    .feature-card { min-height: 140px; }
}