:root {
    /* Rarity Palette (Gold, Red, Purple) */
    
    /* Primary: Gold (Ultra Rare) - Warm, Achievement, Main Action */
    --color-primary: #FFAB00; 
    --color-primary-shadow: #FF6F00;
    --color-primary-light: #FFECB3;
    
    /* Secondary: Purple (Superior Super Rare) - Magic, Skills, Special */
    --color-secondary: #D500F9;
    --color-secondary-shadow: #AA00FF;
    --color-secondary-light: #F8CEFF;
    
    /* Accent: Red (Legendary) - Core, Passion, Online */
    --color-accent: #FF4B4B;
    --color-accent-shadow: #D32F2F;
    --color-accent-light: #FFCDD2;
    
    /* Text & Backgrounds */
    --color-text: #424242; /* Darker Grey for better contrast on warm backgrounds */
    --color-text-light: #757575;
    --color-text-on-primary: #FFFFFF; /* White text on Gold/Red/Purple */
    --color-background: #FFF8E1; /* Very light warm background to match Gold theme */
    
    --color-card-bg: #FFFFFF;
    --color-border: #FFECB3; /* Light Gold Border */
    
    --radius-btn: 16px;
    --radius-card: 20px;
    --radius-l: 32px;
    
    --font-main: 'Nunito', 'Varela Round', sans-serif;
    
    --shadow-card: 0 4px 0 #FFECB3;
    --shadow-hover: 0 8px 0 #FFECB3;
}

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

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

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

/* 按钮风格 - Super Duolingo Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-btn);
    letter-spacing: 0.8px;
    transition: all 0.1s;
    border: 2px solid transparent; /* Placeholder for border */
    cursor: pointer;
    text-align: center;
    position: relative;
    top: 0;
}

.btn:active {
    top: 4px;
    box-shadow: none !important;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white; /* White text on Gold */
    box-shadow: 0 4px 0 var(--color-primary-shadow);
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: white;
    color: var(--color-primary); /* Gold text */
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 0 var(--color-primary-shadow);
}

.btn-secondary:hover {
    background-color: #FFF8E1;
}

.btn-super {
    padding: 18px 48px;
    font-size: 18px;
    border-radius: var(--radius-btn);
    min-width: 200px;
}

.btn-block {
    display: flex;
    width: 100%;
    margin-top: auto; /* Push to bottom in flex container */
    background-color: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text-light);
    box-shadow: 0 4px 0 var(--color-border);
}

.btn-block:hover {
    background-color: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
    box-shadow: 0 4px 0 var(--color-secondary-shadow);
}

.btn-block[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f0f0f0;
    top: 0 !important;
    box-shadow: none !important;
}

/* Header */
.site-header {
    background-color: #fff;
    border-bottom: 2px solid var(--color-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px;
    transition: color 0.2s;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--color-secondary);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text-light);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    border-bottom: 2px solid var(--color-border);
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.mobile-menu.active {
    display: flex;
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-toggle { display: block; }
}

/* Hero Section */
.hero-section {
    padding: 80px 0 120px;
    background-color: #fff;
    overflow: hidden;
    position: relative;
    /* Dot pattern background */
    background-image: radial-gradient(#e5e5e5 1.5px, transparent 1.5px);
    background-size: 32px 32px;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-main {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--color-primary-light);
    color: var(--color-primary-shadow);
    font-weight: 800;
    border-radius: 20px;
    margin-bottom: 24px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--color-primary);
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-text);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Hero Visuals (Floating Cards) */
.hero-visuals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.game-card {
    position: absolute;
    background: white;
    padding: 16px 24px;
    border-radius: var(--radius-card);
    box-shadow: 0 8px 0 rgba(0,0,0,0.05), 0 0 0 2px var(--color-border);
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 240px;
    transform: rotate(-5deg);
}

.card-left {
    top: 15%;
    left: 5%;
    transform: rotate(-6deg);
}

.card-right {
    top: 25%;
    right: 5%;
    transform: rotate(6deg);
}

.game-character {
    position: absolute;
    bottom: -80px;
    right: 20%;
    font-size: 180px;
    color: var(--color-primary);
    opacity: 0.1; /* Subtle background character */
    transform: rotate(15deg);
    z-index: 0;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.icon-trophy { background-color: var(--color-primary-light); color: var(--color-primary); }
.icon-bolt { background-color: var(--color-secondary-light); color: var(--color-secondary); }

.card-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.card-label {
    font-size: 12px;
    color: var(--color-text-light);
    font-weight: 700;
    text-transform: uppercase;
}

.card-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-text);
}

/* Animations */
.floating {
    animation: float 4s ease-in-out infinite;
}

.floating-delayed {
    animation: float 4s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-15px) rotate(-6deg); }
}

@media (max-width: 1024px) {
    .hero-visuals { display: none; } /* Hide floating elements on smaller screens */
    .hero-title { font-size: 48px; }
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background-color: #FAFAFA; /* Slightly distinct background */
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 20px;
    color: var(--color-text-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    align-items: stretch;
}

.product-card {
    background: white;
    border-radius: var(--radius-card);
    border: 2px solid var(--color-border);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    top: 0;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-inner {
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    text-align: center;
}

.product-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 24px;
    border: 2px solid rgba(0,0,0,0.05);
}

.card-gold .product-icon-wrapper { background-color: var(--color-primary-light); color: var(--color-primary); }
.card-red .product-icon-wrapper { background-color: var(--color-accent-light); color: var(--color-accent); }
.card-purple .product-icon-wrapper { background-color: var(--color-secondary-light); color: var(--color-secondary); }

/* Logo image style */
.product-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.img-wrapper {
    padding: 0 !important;
    overflow: hidden;
    background: transparent !important;
    border: none !important;
}

.product-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.product-card p {
    color: var(--color-text-light);
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.5;
}

.product-features {
    list-style: none;
    margin-bottom: 32px;
    width: 100%;
    text-align: left;
}

.product-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--color-text);
    font-weight: 700;
    font-size: 15px;
}

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

.product-features i {
    margin-right: 12px;
    color: #ccc;
}

.card-gold .product-features i { color: var(--color-primary); }
.card-red .product-features i { color: var(--color-accent); }
.card-purple .product-features i { color: var(--color-secondary); }

.card-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background-color: var(--color-accent);
    color: white;
    padding: 6px 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    box-shadow: 0 4px 0 var(--color-accent-shadow);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.about-card {
    background: white;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s;
}

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

.about-icon {
    width: 64px;
    height: 64px;
    background-color: var(--color-background);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.about-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--color-text);
}

.about-card p {
    color: var(--color-text-light);
    font-size: 16px;
}

.vision-image {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: var(--radius-card);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: rotate(3deg);
    border: 4px solid white;
}

.vision-list {
    max-width: 800px;
    margin: 32px auto 0;
    text-align: left;
    background-color: #FAFAFA;
    padding: 32px;
    border-radius: var(--radius-card);
    border: 2px solid var(--color-border);
}

.vision-list ul {
    list-style: none;
    padding: 0;
}

.vision-list li {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.vision-list i {
    color: var(--color-secondary);
    margin-right: 12px;
    margin-top: 4px;
    flex-shrink: 0;
}

.npc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.npc-card {
    background: white;
    border-radius: var(--radius-card);
    padding: 24px;
    text-align: center;
    border: 2px solid var(--color-border);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s;
}

.npc-card:hover {
    transform: translateY(-4px);
}

.npc-icon {
    font-size: 32px;
    margin-bottom: 16px;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f7f7f7;
}

.npc-card.color-gold .npc-icon { background-color: var(--color-primary-light); color: var(--color-primary); }
.npc-card.color-red .npc-icon { background-color: var(--color-accent-light); color: var(--color-accent); }
.npc-card.color-purple .npc-icon { background-color: var(--color-secondary-light); color: var(--color-secondary); }

.npc-card h3 {
    font-weight: 800;
    margin-bottom: 8px;
}

/* Footer */
.site-footer {
    background-color: #fff;
    border-top: 2px solid var(--color-border);
    padding: 64px 0 32px;
    color: var(--color-text);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-text-light);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }

.footer-col a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--color-secondary);
}

.social-links a {
    font-size: 24px;
    color: var(--color-text-light);
    margin-right: 20px;
}

.social-links a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 2px solid #f0f0f0;
    color: var(--color-text-light);
    font-size: 14px;
    font-weight: 600;
}

/* Timeline/History specific */
.history-section {
    background-color: #FDFBF7; /* Warm off-white */
    padding: 80px 0;
}

.timeline {
    border-left: 2px solid var(--color-border);
    padding-left: 32px;
    position: relative;
}

.timeline-item {
    margin-bottom: 32px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -39px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--color-border);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--color-border);
}

.timeline-item:first-child .timeline-dot {
    background: var(--color-primary) !important;
}

.timeline-date {
    font-weight: 800;
    color: var(--color-text-light);
    margin-bottom: 4px;
    font-size: 18px;
}

.timeline-item:first-child .timeline-date {
    color: var(--color-primary);
}

.timeline-content {
    font-size: 16px;
    color: var(--color-text);
}
