:root {
    --bg-light: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-cyan: #0891b2; /* 加深青色以在淺色背景更清晰 */
    --accent-cyan-glow: rgba(8, 145, 178, 0.1);
    --accent-gold: #ca8a04; /* 加深金色 */
    --accent-gold-hover: #a16207;
    --glass-border: rgba(0, 0, 0, 0.05);
    --font-heading: 'Outfit', sans-serif;
    --font-main: 'Inter', sans-serif;
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.06);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 玻璃卡片通用樣式 (明亮版) */
.glass-effect {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

/* 導航欄 */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo span {
    color: var(--accent-cyan);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-cyan);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    padding: 180px 8% 100px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, rgba(8, 145, 178, 0.05) 0%, transparent 70%);
}

.hero-tagline {
    color: var(--accent-cyan);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: block;
    animation: fadeInDown 1s var(--transition);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 0.95;
    color: var(--text-primary);
    animation: scaleIn 0.8s var(--transition);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 50px;
    color: var(--text-secondary);
    animation: fadeInUp 1s 0.2s both;
}

.btn-primary {
    display: inline-block;
    padding: 18px 48px;
    background-color: var(--accent-gold);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(202, 138, 4, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(202, 138, 4, 0.3);
}

/* Sections */
section {
    padding: 120px 8%;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem; /* 標題縮小一點 */
    font-weight: 900;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-primary);
}

/* NFT Section */
.nft-grid {
    display: grid;
    grid-template-columns: 2fr 3fr; /* 讓圖片不要佔據一半寬度 */
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.nft-card {
    padding: 15px;
    position: relative;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    max-width: 320px; /* 限制 NFT 圖片最大寬度 */
    margin: 0 auto;
}

.nft-image-wrapper img {
    width: 100%;
    border-radius: 12px;
}

/* Games Section & Slider */
#games {
    background-color: var(--bg-alt);
    overflow: hidden;
}

.game-container {
    display: flex;
    flex-direction: column; /* 大容器垂直排列每一款遊戲 */
    gap: 40px;
    padding: 20px 8% 80px;
}

.game-card {
    display: flex; /* 恢復橫向排列 */
    background: #fff;
    box-shadow: var(--shadow-soft);
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    min-height: 380px;
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.game-img-wrapper {
    width: 35%; /* 恢復較大圖片比例 */
    background: #f8fafc;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--glass-border);
}

.game-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-info {
    padding: 50px 60px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.download-badges {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.download-badges a {
    transition: var(--transition);
}

.download-badges a:hover {
    transform: translateY(-3px) scale(1.02);
}

/* Partners */
.partner-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0.5;
    filter: grayscale(1);
    transition: var(--transition);
}

.partner-grid:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.about-card {
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

/* Footer */
footer {
    background: #f1f5f9;
    padding: 100px 8% 40px;
    border-top: 1px solid var(--glass-border);
}

.copyright {
    text-align: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    margin-top: 60px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 992px) {
    .nft-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        flex-direction: column;
        min-height: auto;
    }

    .game-img-wrapper {
        width: 100%;
        min-height: 250px;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .game-info {
        padding: 40px 30px;
    }
}
