/* ===================================
   Chinese Blossom - Main Styles
   Color Palette: Classic Chinese
   Primary: #C41E3A (Red)
   Accent: #FFD700 (Gold)
   Background: #FFF8E7 (Cream)
   =================================== */

/* CSS Variables */
:root {
    --color-primary: #C41E3A;
    --color-primary-dark: #9B1B2F;
    --color-primary-light: #E63950;
    --color-accent: #FFD700;
    --color-accent-light: #FFE44D;
    --color-bg: #FFF8E7;
    --color-bg-alt: #FFF5E0;
    --color-text: #2D2D2D;
    --color-text-light: #666666;
    --color-white: #FFFFFF;
    --color-black: #1A1A1A;
    --color-success: #28A745;
    --color-error: #DC3545;
    
    --font-display: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-chinese: 'Noto Sans SC', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 30px rgba(196, 30, 58, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50%;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

/* Floating Characters Background */
.floating-characters {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.float-char {
    position: absolute;
    font-family: var(--font-chinese);
    font-size: 80px;
    color: rgba(196, 30, 58, 0.05);
    animation: floatUp 20s infinite;
    animation-delay: var(--delay);
    left: var(--x);
    bottom: -100px;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-120vh) rotate(360deg);
        opacity: 0;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 248, 231, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--color-accent);
    transition: var(--transition-normal);
}

.logo-circle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.logo-circle.small {
    width: 50px;
    height: 50px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 8px;
    font-weight: 700;
    color: var(--color-white);
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.logo-circle.small .logo-text {
    font-size: 6px;
}

/* Navigation */
.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 5px 0;
}

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

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

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    display: flex;
    gap: 5px;
    background: var(--color-white);
    padding: 4px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    transition: var(--transition-fast);
    color: var(--color-text-light);
}

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

.lang-btn:hover:not(.active) {
    background: rgba(196, 30, 58, 0.1);
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-primary);
}

.phone-link:hover {
    color: var(--color-primary-dark);
}

.phone-icon {
    font-size: 18px;
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 84px;
    left: 0;
    width: 100%;
    background: var(--color-bg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition-normal);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav a {
    padding: 12px 20px;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C41E3A' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.char-icon {
    font-family: var(--font-chinese);
    font-size: 18px;
}

.hero-title {
    margin-bottom: 24px;
}

.title-chinese {
    display: block;
    font-family: var(--font-chinese);
    font-size: 48px;
    color: var(--color-primary);
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 var(--color-accent);
}

.title-main {
    display: block;
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

.hero-desc {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-char {
    font-family: var(--font-chinese);
    font-size: 18px;
    opacity: 0.9;
}

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

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

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-light);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    position: relative;
    width: 300px;
    height: 380px;
    background: linear-gradient(145deg, var(--color-white) 0%, var(--color-bg) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--color-accent);
    overflow: hidden;
    animation: cardFloat 4s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 60%);
    animation: glowRotate 8s linear infinite;
}

@keyframes glowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.big-char {
    font-family: var(--font-chinese);
    font-size: 160px;
    font-weight: 700;
    color: var(--color-primary);
    position: relative;
    z-index: 1;
    text-shadow: 4px 4px 0 var(--color-accent);
}

.char-pinyin {
    font-size: 24px;
    color: var(--color-text-light);
    margin-top: -10px;
    position: relative;
    z-index: 1;
}

.char-meaning {
    font-size: 16px;
    color: var(--color-text);
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-text {
    font-size: 12px;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(45deg);
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

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

.section-char {
    display: inline-block;
    font-family: var(--font-chinese);
    font-size: 36px;
    color: var(--color-primary);
    opacity: 0.3;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.about-card {
    background: var(--color-bg);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.about-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

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

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

/* Format Toggle */
.format-toggle {
    text-align: center;
}

.format-toggle h3 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 30px;
}

.format-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.format-card {
    background: var(--color-bg);
    padding: 40px;
    border-radius: var(--radius-md);
    min-width: 280px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 3px solid transparent;
}

.format-card:hover,
.format-card.active {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.format-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.format-card h4 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--color-text);
}

.format-card ul {
    list-style: none;
    text-align: left;
}

.format-card li {
    padding: 8px 0;
    color: var(--color-text-light);
    position: relative;
    padding-left: 24px;
}

.format-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Levels Section */
.levels {
    background: var(--color-bg);
}

.levels-path {
    display: flex;
    align-items: stretch;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
}

.level-card {
    flex: 1;
    min-width: 260px;
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    position: relative;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.level-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
}

.level-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--color-black);
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.level-icon {
    font-size: 48px;
    margin: 20px 0 10px;
}

.level-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 10px;
}

.level-char {
    font-family: var(--font-chinese);
    font-size: 64px;
    color: var(--color-primary);
    opacity: 0.2;
    line-height: 1;
    margin: 10px 0;
}

.level-card p {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.level-skills {
    list-style: none;
    margin-bottom: 20px;
}

.level-skills li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--color-text);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.level-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition-normal);
}

.level-btn:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
}

.level-connector {
    display: flex;
    align-items: center;
    color: var(--color-primary);
    font-size: 24px;
    opacity: 0.5;
}

/* Game Section */
.game-section {
    background: linear-gradient(180deg, var(--color-white) 0%, #FFF0F3 50%, var(--color-bg) 100%);
    overflow: hidden;
}

.game-container {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(196, 30, 58, 0.1), 0 0 0 1px rgba(196, 30, 58, 0.05);
    position: relative;
    overflow: hidden;
}

.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.game-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.game-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--color-bg);
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.game-nav-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    z-index: 0;
}

.game-nav-btn > * {
    position: relative;
    z-index: 1;
}

.game-nav-btn:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.15);
}

.game-nav-btn.active {
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.3);
}

.game-nav-btn.active::after {
    opacity: 1;
}

.game-nav-icon {
    font-size: 22px;
}

.game-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 0 10px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--color-bg);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-weight: 700;
    color: var(--color-primary);
    min-width: 50px;
    font-size: 14px;
    background: rgba(196, 30, 58, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    text-align: center;
}

.game-area {
    min-height: 400px;
}

.game-panel {
    display: none;
}

.game-panel.active {
    display: block;
    animation: panelIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.game-panel h3 {
    font-family: var(--font-display);
    font-size: 26px;
    text-align: center;
    margin-bottom: 8px;
    color: var(--color-text);
}

.game-instruction {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 30px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.game-instruction::before {
    content: '🔊';
    font-size: 16px;
}

/* Numbers Game */
.number-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    max-width: 750px;
    margin: 0 auto;
}

.number-card {
    aspect-ratio: 1;
    background: linear-gradient(145deg, #FFFFFF, var(--color-bg));
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(196, 30, 58, 0.08);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.number-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(196, 30, 58, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.number-card:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.15);
}

.number-card:hover::before {
    opacity: 1;
}

.number-card:active {
    transform: scale(0.95);
}

.number-card.clicked {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.number-card.clicked .pinyin,
.number-card.clicked .num {
    opacity: 1;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes cardPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.number-card.playing {
    animation: cardPop 0.3s ease;
}

.number-card .char {
    font-family: var(--font-chinese);
    font-size: 36px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.number-card .pinyin {
    font-size: 13px;
    margin-top: 4px;
    opacity: 0.7;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.number-card .num {
    font-size: 11px;
    margin-top: 3px;
    opacity: 0.5;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Match Game */
.match-game {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.match-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-item {
    padding: 14px 28px;
    background: linear-gradient(145deg, #FFFFFF, var(--color-bg));
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    min-width: 140px;
    font-weight: 500;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.match-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.12);
}

.match-item:active {
    transform: scale(0.96);
}

.match-item.selected {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
    transform: translateY(-2px) scale(1.02);
}

.match-item.correct {
    background: linear-gradient(135deg, #28A745, #20913C);
    color: var(--color-white);
    border-color: var(--color-success);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    animation: correctPulse 0.5s ease;
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.match-item.wrong {
    background: linear-gradient(135deg, #DC3545, #C82333);
    color: var(--color-white);
    border-color: var(--color-error);
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.match-item .char {
    font-family: var(--font-chinese);
    font-size: 26px;
    font-weight: 700;
}

.match-result {
    text-align: center;
    margin-top: 24px;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
    width: 100%;
    transition: all 0.3s ease;
}

/* Quiz Game */
.quiz-container {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-question {
    font-size: 20px;
    text-align: center;
    margin-bottom: 24px;
    padding: 30px 20px;
    background: linear-gradient(145deg, var(--color-bg), #FFF0F3);
    border-radius: var(--radius-md);
    border: 1px solid rgba(196, 30, 58, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.quiz-question .char {
    font-family: var(--font-chinese);
    font-size: 56px;
    color: var(--color-primary);
    display: block;
    margin-bottom: 12px;
    text-shadow: 2px 2px 0 rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.quiz-question .char:hover {
    transform: scale(1.1);
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quiz-option {
    padding: 18px 16px;
    background: linear-gradient(145deg, #FFFFFF, var(--color-bg));
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.quiz-option:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.12);
}

.quiz-option:active {
    transform: scale(0.96);
}

.quiz-option.correct {
    background: linear-gradient(135deg, #28A745, #20913C);
    color: var(--color-white);
    border-color: var(--color-success);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    animation: correctPulse 0.5s ease;
}

.quiz-option.wrong {
    background: linear-gradient(135deg, #DC3545, #C82333);
    color: var(--color-white);
    border-color: var(--color-error);
    animation: shake 0.4s ease;
}

.quiz-score {
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(196, 30, 58, 0.06);
    padding: 8px 20px;
    border-radius: 30px;
    display: inline-block;
    width: 100%;
}

/* Game Completion */
.game-completion {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.game-completion.active {
    display: block;
    animation: completionIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes completionIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.completion-char {
    font-family: var(--font-chinese);
    font-size: 72px;
    color: var(--color-accent);
    text-shadow: 3px 3px 0 var(--color-primary);
    display: block;
    animation: completionBounce 1s ease infinite;
}

@keyframes completionBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.game-completion h3 {
    font-family: var(--font-display);
    font-size: 28px;
    margin: 20px 0 10px;
}

.game-completion p {
    color: var(--color-text-light);
    margin-bottom: 30px;
    font-size: 16px;
}

/* Advantages Section */
.advantages {
    background: var(--color-white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.advantage-item:hover {
    background: var(--color-bg);
    transform: translateY(-5px);
}

.adv-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.advantage-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.advantage-item p {
    font-size: 14px;
    color: var(--color-text-light);
}

/* Reviews Section */
.reviews {
    background: var(--color-bg);
}

.reviews-slider {
    display: flex;
    gap: 30px;
    overflow: hidden;
}

.review-card {
    flex: 0 0 calc(33.333% - 20px);
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.review-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.review-level {
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 600;
}

.review-text {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.review-stars {
    font-size: 16px;
}

.reviews-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.review-nav-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-primary);
    background: var(--color-white);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition-normal);
}

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

.reviews-dots {
    display: flex;
    gap: 8px;
}

.reviews-dots .dot {
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    opacity: 0.3;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

.reviews-dots .dot.active {
    opacity: 1;
    width: 30px;
}

/* Application Section */
.application {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
}

.application-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.application-info .section-char {
    color: var(--color-accent);
    opacity: 0.5;
}

.application-info h2 {
    font-family: var(--font-display);
    font-size: 42px;
    margin-bottom: 20px;
}

.application-info p {
    opacity: 0.9;
    margin-bottom: 30px;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    font-size: 24px;
}

.contact-item strong {
    display: block;
    font-size: 14px;
    opacity: 0.8;
}

.contact-item a,
.contact-item span {
    font-size: 16px;
}

/* Application Form */
.application-form-container {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--color-text);
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 14px 18px;
    border: 2px solid var(--color-bg-alt);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 16px;
    transition: var(--transition-fast);
    color: var(--color-text);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--color-text);
}

.radio-label input {
    accent-color: var(--color-primary);
    width: 18px;
    height: 18px;
}

.form-note {
    font-size: 12px;
    color: var(--color-text-light);
    text-align: center;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px;
}

.form-success.active {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--color-success);
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--color-text);
    margin-bottom: 10px;
}

.form-success p {
    color: var(--color-text-light);
}

/* Contact Section */
.contact {
    background: var(--color-white);
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-details h3 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-details .contact-item {
    margin-bottom: 15px;
    color: var(--color-text);
}

.contact-details .contact-icon {
    font-size: 20px;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo p {
    font-size: 14px;
    opacity: 0.7;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    font-size: 14px;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-phone {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.5;
}

/* Mobile CTA */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.mobile-call-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-visual {
        order: 0;
        margin-bottom: 30px;
    }
    
    .hero-card {
        width: 250px;
        height: 320px;
    }
    
    .big-char {
        font-size: 120px;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .levels-path {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
    }
    
    .level-card {
        scroll-snap-align: start;
    }
    
    .level-connector {
        display: none;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .review-card {
        flex: 0 0 calc(50% - 15px);
    }
    
    .application-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .nav {
        display: none;
    }
    
    .phone-link span:not(.phone-icon) {
        display: none;
    }
    
    .burger {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .mobile-cta {
        display: block;
    }
    
    .title-chinese {
        font-size: 36px;
    }
    
    .title-main {
        font-size: 32px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat {
        flex: 1 1 100px;
    }
    
    .hero-card {
        width: 200px;
        height: 260px;
    }
    
    .big-char {
        font-size: 80px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .format-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .format-card {
        width: 100%;
        max-width: 350px;
    }
    
    .level-card {
        min-width: 240px;
    }
    
    .game-container {
        padding: 20px 16px;
        border-radius: var(--radius-md);
    }

    .game-nav-btn {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 30px;
    }

    .game-panel h3 {
        font-size: 22px;
    }

    .number-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .number-card .char {
        font-size: 28px;
    }

    .number-card .pinyin {
        font-size: 11px;
    }

    .number-card .num {
        font-size: 10px;
    }

    .match-game {
        flex-direction: column;
        gap: 16px;
    }

    .match-column {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .match-item {
        min-width: auto;
        padding: 12px 18px;
        font-size: 14px;
        border-radius: 10px;
    }

    .match-item .char {
        font-size: 22px;
    }

    .quiz-question {
        padding: 20px 16px;
    }

    .quiz-question .char {
        font-size: 44px;
    }

    .quiz-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .quiz-option {
        padding: 16px;
        font-size: 15px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .review-card {
        flex: 0 0 100%;
    }
    
    .application-info h2 {
        font-size: 32px;
    }
    
    .application-form-container {
        padding: 25px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .title-chinese {
        font-size: 28px;
    }
    
    .title-main {
        font-size: 26px;
    }
    
    .number-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .number-card {
        border-radius: 12px;
    }

    .number-card .char {
        font-size: 24px;
    }

    .game-nav {
        gap: 8px;
    }

    .game-nav-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 14px;
        font-size: 13px;
    }

    .game-nav-icon {
        font-size: 18px;
    }
    
    .radio-group {
        flex-direction: column;
    }
}
