@font-face {
    font-family: 'ChillKSans';
    src: url('/static/media/fonts/ChillKSans.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GlowSansSC';
    src: url('/static/media/fonts/GlowSansSCWideExtraLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

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

html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background: #FFFFFF;
}

body.home-page {
    font-family: 'Source Han Sans CN', 'Microsoft YaHei', sans-serif;
    color: #333;
}

.home-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    background: #DCDCDC;
    display: flex;
    align-items: center;
}

.home-header-inner {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.home-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.home-logo img {
    height: 36px;
    width: auto;
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}

.home-nav-left {
    justify-content: flex-start;
}

.home-nav-right {
    justify-content: flex-end;
}

.home-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 83px;
    height: 36px;
    font-family: 'Source Han Sans CN', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    color: #0B51FF;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.home-nav-link:hover {
    opacity: 0.7;
}

.home-nav-link.wide {
    width: 158px;
}

.home-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(11, 81, 255, 0.1);
    color: #0B51FF;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.language-btn:hover {
    background: rgba(11, 81, 255, 0.2);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(11, 81, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 100;
}

.language-dropdown.active {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #333;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.language-option:hover {
    background: rgba(11, 81, 255, 0.08);
    color: #0B51FF;
}

.language-option.active {
    background: rgba(11, 81, 255, 0.12);
    color: #0B51FF;
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: rgba(11, 81, 255, 0.1);
    color: #0B51FF;
    font-size: 18px;
    cursor: pointer;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 824px;
    margin-top: 60px;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slide-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 60px;
    gap: 30px;
}

.hero-carousel-dots {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-carousel-dots .dot.active {
    background: #0B51FF;
    transform: scale(1.2);
}

.hero-carousel-dots .dot:hover {
    transform: scale(1.1);
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 351px;
    height: 51px;
    background: #0B51FF;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-cta-btn:hover {
    background: #0945dd;
    transform: translateY(-2px);
}

.hero-cta-btn span {
    font-family: 'Source Han Sans CN', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 36px;
    color: #FFFFFF;
    text-align: center;
}

.new-characters-section {
    width: 100%;
    background: #E9E9E9;
    padding: 80px 0 100px;
}

.section-inner {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
}

.section-header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-title {
    font-family: 'ChillKSans', 'Chill K Sans', 'Source Han Sans CN', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 80px;
    line-height: 116px;
    color: #0B51FF;
    letter-spacing: 0.02em;
}

.section-subtitle {
    font-family: 'GlowSansSC', 'Glow Sans SC', 'Source Han Sans CN', sans-serif;
    font-style: normal;
    font-weight: 200;
    font-size: 24px;
    line-height: 35px;
    letter-spacing: 0.1em;
    color: #0B51FF;
}

.section-divider {
    width: 79px;
    height: 0;
    border-top: 2.5px solid #0B51FF;
    margin-top: 8px;
}

.section-more-link {
    font-family: 'GlowSansSC', 'Glow Sans SC', 'Source Han Sans CN', sans-serif;
    font-style: normal;
    font-weight: 200;
    font-size: 20px;
    line-height: 29px;
    color: #0B51FF;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.section-more-link:hover {
    opacity: 0.7;
}

.character-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.character-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #D9D9D9;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.character-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.character-card-image {
    width: 100%;
    aspect-ratio: 417 / 619;
    object-fit: cover;
    display: block;
}

.character-card-placeholder {
    width: 100%;
    aspect-ratio: 417 / 619;
    background: #D9D9D9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.character-card-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 81px;
    background: #0B51FF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Source Han Sans CN', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 32px;
    line-height: 48px;
    color: #FFFFFF;
    text-align: center;
}

.home-footer {
    width: 100%;
    height: 60px;
    background: #DCDCDC;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-inner {
    text-align: center;
    font-size: 14px;
    color: #666;
}

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

.fade-in {
    animation: fadeInUp 0.6s ease both;
}

@media (max-width: 1200px) {
    .character-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 56px;
        line-height: 80px;
    }

    .section-subtitle {
        font-size: 20px;
    }
}

@media (max-width: 900px) {
    .home-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .home-nav.active,
    .home-nav-left.active,
    .home-nav-right.active {
        display: flex;
        position: fixed;
        top: 60px;
        left: 12px;
        right: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px;
        border-radius: 16px;
        background: #fff;
        border: 1px solid rgba(11, 81, 255, 0.1);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
        z-index: 999;
        justify-content: flex-start;
    }

    .home-nav.active .home-nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
        border-radius: 10px;
        background: rgba(11, 81, 255, 0.04);
    }

    .home-nav.active .home-nav-link.wide {
        width: 100%;
    }

    .home-logo {
        position: relative;
        left: auto;
        transform: none;
    }

    .hero-section {
        height: 500px;
    }

    .hero-cta-btn {
        width: 240px;
        height: 44px;
    }

    .hero-cta-btn span {
        font-size: 18px;
        line-height: 28px;
    }

    .section-title {
        font-size: 40px;
        line-height: 56px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .home-header-inner {
        padding: 0 16px;
    }

    .hero-section {
        height: 360px;
    }

    .hero-content {
        padding-bottom: 40px;
        gap: 20px;
    }

    .hero-cta-btn {
        width: 200px;
        height: 40px;
    }

    .hero-cta-btn span {
        font-size: 16px;
        line-height: 24px;
    }

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

    .character-card-name {
        height: 56px;
        font-size: 22px;
        line-height: 32px;
    }

    .section-inner {
        padding: 0 16px;
    }

    .section-title {
        font-size: 32px;
        line-height: 44px;
    }

    .new-characters-section {
        padding: 48px 0 64px;
    }

    .language-selector {
        position: relative;
    }
}
