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

:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8C5A;
    --accent: #4ECDC4;
    --accent-2: #A78BFA;
    --bg: #FAFBFC;
    --bg-dark: #1A1A2E;
    --text: #2D3436;
    --text-light: #636E72;
    --white: #FFFFFF;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* ============ Header ============ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    z-index: 1001;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* ============ Hero ============ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #FFF5F0 0%, #FFFBF8 30%, #F8FAFF 60%, #FFF5F0 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -100px;
    right: -80px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    bottom: 10%;
    left: -60px;
    animation: float 10s ease-in-out infinite 1s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--accent-2);
    top: 30%;
    left: 10%;
    animation: float 7s ease-in-out infinite 2s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: #FBBF24;
    top: 20%;
    right: 20%;
    animation: float 9s ease-in-out infinite 0.5s;
}

.shape-5 {
    width: 80px;
    height: 80px;
    background: #EC4899;
    bottom: 30%;
    right: 10%;
    animation: float 6s ease-in-out infinite 1.5s;
}

.shape-6 {
    width: 120px;
    height: 120px;
    background: #06B6D4;
    top: 60%;
    left: 40%;
    animation: float 11s ease-in-out infinite 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(5deg); }
    66% { transform: translateY(15px) rotate(-3deg); }
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 540px;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.45);
}

/* Phone Mockup */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 260px;
    height: 520px;
    background: var(--text);
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
    animation: phoneFloat 6s ease-in-out infinite;
}

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

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #1a1a2e, #16213e);
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-icon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px;
}

.game-icon-item {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    transition: var(--transition);
    animation: iconPulse 3s ease-in-out infinite;
}

.game-icon-item:nth-child(2) { animation-delay: 0.5s; }
.game-icon-item:nth-child(3) { animation-delay: 1s; }
.game-icon-item:nth-child(4) { animation-delay: 1.5s; }

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

/* ============ Sections Common ============ */
section {
    padding: 120px 0;
}

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

.section-header.left-align {
    text-align: left;
    margin-bottom: 32px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-desc {
    font-size: 17px;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-header.left-align .section-desc {
    margin: 0;
}

/* ============ Games ============ */
.games {
    background: var(--white);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.game-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    cursor: pointer;
}

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

.game-card-bg {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.game-card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.game-card:hover .game-card-bg::after {
    background: rgba(255, 255, 255, 0.2);
}

.game-emoji {
    font-size: 52px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.game-card:hover .game-emoji {
    transform: scale(1.15);
}

.game-card-body {
    padding: 18px 16px;
    text-align: center;
}

.game-card-body h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.game-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.tag-casual { background: #FFF0EB; color: #FF6B35; }
.tag-tower { background: #E8F8F7; color: #4ECDC4; }
.tag-dress { background: #F3F0FF; color: #7C3AED; }
.tag-puzzle { background: #FFF8EB; color: #F59E0B; }
.tag-sim { background: #EFF6FF; color: #3B82F6; }
.tag-action { background: #F0FDF4; color: #22C55E; }

/* ============ Culture ============ */
.culture {
    background: var(--bg);
}

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

.culture-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    text-align: center;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.culture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s ease;
}

.culture-card:hover::before {
    transform: scaleX(1);
}

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

.culture-num {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 60px;
    font-weight: 900;
    color: var(--bg);
    line-height: 1;
}

.culture-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--primary);
}

.culture-icon svg {
    width: 100%;
    height: 100%;
}

.culture-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.culture-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

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

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-visual {
    flex-shrink: 0;
}

.about-illustration {
    width: 320px;
    height: 320px;
    background: linear-gradient(160deg, #FFF5F0, #FFFBF8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.about-shape {
    position: absolute;
    border-radius: 20px;
}

.about-shape.large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    top: -15px;
    right: 20px;
}

.about-shape.small {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), #44A08D);
    bottom: 30px;
    left: -10px;
}

.about-icon-big {
    font-size: 80px;
}

.about-content {
    flex: 1;
}

.about-text p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 16px;
}

.about-text strong {
    color: var(--primary);
    font-weight: 600;
}

.about-contact {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.contact-email {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
    transition: var(--transition);
}

.contact-email:hover {
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ============ Join ============ */
.join {
    background: linear-gradient(160deg, #1A1A2E, #16213E);
    text-align: center;
}

.join .section-title {
    color: var(--white);
}

.join .section-desc {
    color: rgba(255, 255, 255, 0.65);
}

.join-tags {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.join-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.join-tag:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.4);
}

.tag-icon {
    font-size: 20px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

/* ============ Footer ============ */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 48px 0 32px;
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}

.footer-brand {
    margin-bottom: 15px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    font-size: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
}

.footer-info p {
    margin-bottom: 6px;
}

.health-notice {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.footer-licenses,
.footer-agreement {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-licenses a,
.footer-agreement a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-licenses a:hover,
.footer-agreement a:hover {
    color: var(--white);
}

.footer-beian {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 12px;
}

.beian-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.6);
}

/* ============ Animations ============ */
[data-aos] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="fade-up"] {
    transform: translateY(40px);
}

[data-aos="fade-right"] {
    transform: translateX(-40px);
}

[data-aos="fade-left"] {
    transform: translateX(40px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .hero-title { font-size: 42px; }
    .game-grid { grid-template-columns: repeat(3, 1fr); }
    .hero .container { gap: 30px; }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        padding: 100px 40px 40px;
        transition: var(--transition);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 24px;
    }

    .nav-link {
        font-size: 18px;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 140px 0 80px;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title { font-size: 36px; }

    .phone-mockup {
        width: 200px;
        height: 400px;
    }

    .game-icon-item {
        width: 65px;
        height: 65px;
        font-size: 26px;
        border-radius: 16px;
    }

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

    .section-title { font-size: 28px; }

    section { padding: 80px 0; }

    .culture-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-wrapper {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .about-illustration {
        width: 240px;
        height: 240px;
    }

    .about-icon-big { font-size: 60px; }

    .section-header.left-align { text-align: center; }

    .about-contact {
        justify-content: center;
    }

    .join-tags { gap: 12px; }

    .join-tag { padding: 14px 24px; font-size: 14px; }

    .footer-links {
        flex-wrap: wrap;
        gap: 8px;
    }
    .footer-beian {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 30px; }
    .game-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .game-card-bg { height: 110px; }
    .game-emoji { font-size: 40px; }
    .game-card-body h3 { font-size: 13px; }
    .culture-card { padding: 36px 24px; }
}
