:root {
    --bg-color: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --secondary-gradient: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-family: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animation */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Particle Effects */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    pointer-events: none;
    animation: particle-float linear infinite;
}

/* Starlight Particles */
.particle.star-sparkle::before {
    content: "✨";
    font-size: 20px;
    animation: sparkle-float 2s ease-in-out infinite alternate;
}

.particle.star-gold::before {
    content: "⭐";
    font-size: 16px;
    animation: twinkle-gold 1.5s ease-in-out infinite;
}

.particle.star-shine::before {
    content: "🌟";
    font-size: 24px;
    animation: shine-rotate 3s linear infinite;
}

.particle.star-dazzle::before {
    content: "💫";
    font-size: 18px;
    animation: dazzle-pulse 2.5s ease-in-out infinite;
}

.particle.star-meteor::before {
    content: "🌠";
    font-size: 22px;
    animation: meteor-trail 4s ease-in-out infinite;
}

.particle.star-magic::before {
    content: "✨";
    font-size: 14px;
    animation: magic-bounce 1.8s ease-in-out infinite;
}

.particle.star-bright::before {
    content: "⭐";
    font-size: 12px;
    animation: bright-flutter 2.2s ease-in-out infinite;
}

/* Colored Particles */
.particle.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-gradient);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.particle.dot-2 {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--secondary-gradient);
    box-shadow: 0 0 8px rgba(244, 63, 94, 0.4);
}

.particle.dot-3 {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(45deg, #a855f7, #06b6d4);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite alternate ease-in-out;
}

.globe-1 {
    width: 500px;
    height: 500px;
    background: #6366f1;
    top: -100px;
    left: -100px;
}

.globe-2 {
    width: 600px;
    height: 600px;
    background: #f43f5e;
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(50px) scale(1.1); }
}

/* Particle Animations */
@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes sparkle-float {
    0% { transform: scale(1) rotate(0deg); opacity: 0.6; }
    50% { transform: scale(1.3) rotate(180deg); opacity: 1; }
    100% { transform: scale(1) rotate(360deg); opacity: 0.6; }
}

@keyframes twinkle-gold {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 1; }
}

@keyframes shine-rotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes dazzle-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(90deg); }
    50% { transform: scale(1.3) rotate(180deg); }
    75% { transform: scale(1.1) rotate(270deg); }
}

@keyframes meteor-trail {
    0% { transform: translateX(-20px) translateY(-20px) scale(0.8); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(20px) translateY(20px) scale(1.2); opacity: 0; }
}

@keyframes magic-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-8px) scale(1.1); }
    50% { transform: translateY(-4px) scale(1.2); }
    75% { transform: translateY(-12px) scale(1.1); }
}

@keyframes bright-flutter {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.1); }
    50% { transform: rotate(-5deg) scale(1.2); }
    75% { transform: rotate(3deg) scale(1.1); }
}

@keyframes drip {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-10deg); }
    50% { transform: translateY(-10px) rotate(10deg); }
    75% { transform: translateY(-5px) rotate(-5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Navbar */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid var(--glass-border);
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 50px;
}

.logo img {
    height: 100%;
    width: auto;
    max-height: 50px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #a855f7;
}

/* Hero Section */
.hero-section {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.6);
}

/* Character Section */
.character-section {
    padding: 4rem;
    display: flex;
    justify-content: center;
}

.character-card {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
}

.reverse-layout .character-card {
    flex-direction: row-reverse;
}

.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.character-info {
    flex: 1;
}

.character-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.character-info .tagline {
    color: #f43f5e;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.character-info .description {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.character-visuals {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.main-view {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95); /* Light bg for image clarity */
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-view img,
.main-view video {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
    transition: transform 0.5s, opacity 0.3s ease;
    object-fit: contain;
    position: relative;
}

.main-view:hover img,
.main-view:hover video {
    transform: scale(1.05);
}

/* 朵朵部分的图片适配优化 */
#duoduo .main-view {
    aspect-ratio: 1;
    max-height: 600px;
    min-height: 400px;
    overflow: hidden;
    position: relative;
}

#duoduo .main-view img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 0;
}

#duoduo .main-view video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 0;
}

#duoduo .small-view {
    overflow: hidden;
    position: relative;
}

#duoduo .small-view img {
    object-fit: cover;
    object-position: center center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.side-views {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.5) transparent;
}

.side-views::-webkit-scrollbar {
    height: 6px;
}

.side-views::-webkit-scrollbar-track {
    background: transparent;
}

.side-views::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 3px;
}

.side-views::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

.small-view, .placeholder-box {
    min-width: 120px;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    position: relative;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    flex-shrink: 0;
}

.small-view:not(.coming-soon-container):hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.placeholder-box {
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    border: 1px dashed var(--glass-border);
}

.small-view img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.view-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    backdrop-filter: blur(4px);
}

/* Culture Gallery Section */
.culture-section {
    position: relative;
    min-height: 100vh;
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.culture-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    z-index: -2;
}

.culture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(2px);
    z-index: -1;
}

.culture-content {
    max-width: 1200px;
    width: 100%;
    z-index: 1;
}

.culture-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 2rem;
}

.culture-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.culture-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 2px;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.culture-card {
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.culture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.culture-card:nth-child(2)::before {
    background: var(--secondary-gradient);
}

.culture-card:nth-child(3)::before {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.culture-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.culture-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float-icon 3s ease-in-out infinite;
}

.culture-card:nth-child(2) .card-icon {
    animation-delay: 0.5s;
}

.culture-card:nth-child(3) .card-icon {
    animation-delay: 1s;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.culture-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.culture-card p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

.culture-card p strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.5);
}

/* Responsive - Tablet and below (768px) */
@media (max-width: 768px) {
    /* Navigation */
    .glass-nav {
        padding: 1rem 1.5rem;
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        gap: 1rem;
        border-top: 1px solid var(--glass-border);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo {
        height: 40px;
        gap: 0.5rem;
        flex: 1;
    }

    .logo img {
        max-height: 40px;
    }

    .logo-text {
        font-size: 1rem;
    }

    /* Hero Section */
    .hero-section {
        height: auto;
        min-height: 60vh;
        padding: 3rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

    /* Character Section */
    .character-section {
        padding: 2rem 1rem;
    }

    .character-card {
        flex-direction: column;
        gap: 2rem;
    }

    .reverse-layout .character-card {
        flex-direction: column;
    }

    .glass-panel {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .character-info {
        order: 1;
    }

    .character-info h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .character-info .tagline {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .character-info .description {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .character-visuals {
        order: 2;
        width: 100%;
    }

    .main-view {
        min-height: 250px;
        border-radius: 12px;
    }

    #duoduo .main-view {
        min-height: 300px;
        max-height: 400px;
    }

    .side-views {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .small-view, .placeholder-box {
        min-width: 100px;
        border-radius: 10px;
    }

    .view-label {
        font-size: 0.65rem;
        padding: 2px 6px;
        bottom: 6px;
        left: 6px;
    }

    /* Culture Section */
    .culture-section {
        padding: 3rem 1rem;
        min-height: auto;
    }

    .culture-bg {
        background-attachment: scroll;
    }

    .culture-header {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    .culture-header h2 {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .culture-subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
        line-height: 1.6;
    }

    .culture-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .culture-card {
        padding: 1.5rem 1rem;
    }

    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .culture-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .culture-card p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    /* Footer */
    footer {
        padding: 1.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Responsive - Small Mobile (480px) */
@media (max-width: 480px) {
    /* Navigation */
    .glass-nav {
        padding: 0.875rem 1rem;
    }

    .logo {
        height: 36px;
        gap: 0.4rem;
    }

    .logo img {
        max-height: 36px;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .nav-links {
        padding: 1rem;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.625rem 0;
    }

    /* Hero Section */
    .hero-section {
        padding: 2rem 1rem;
        min-height: 50vh;
    }

    .hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 0.875rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        padding: 0;
    }

    .cta-button {
        padding: 0.75rem 1.75rem;
        font-size: 0.9rem;
    }

    /* Character Section */
    .character-section {
        padding: 1.5rem 0.75rem;
    }

    .glass-panel {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .character-info h2 {
        font-size: 1.5rem;
    }

    .character-info .tagline {
        font-size: 0.8rem;
    }

    .character-info .description {
        font-size: 0.875rem;
    }

    .main-view {
        min-height: 200px;
        border-radius: 10px;
    }

    #duoduo .main-view {
        min-height: 250px;
        max-height: 350px;
    }

    .side-views {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 0.625rem;
    }

    .small-view, .placeholder-box {
        min-width: 85px;
        border-radius: 8px;
    }

    .view-label {
        font-size: 0.6rem;
        padding: 1px 5px;
        bottom: 4px;
        left: 4px;
    }

    /* Culture Section */
    .culture-section {
        padding: 2rem 0.75rem;
    }

    .culture-header {
        padding: 1.5rem 0.75rem;
        margin-bottom: 1.5rem;
    }

    .culture-header h2 {
        font-size: 1.5rem;
    }

    .culture-subtitle {
        font-size: 0.85rem;
    }

    .culture-card {
        padding: 1.25rem 0.875rem;
    }

    .card-icon {
        font-size: 2rem;
    }

    .culture-card h3 {
        font-size: 1.1rem;
    }

    .culture-card p {
        font-size: 0.85rem;
    }

    /* Footer */
    footer {
        padding: 1.25rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Globe Animation - Reduce size on mobile */
    .globe-1, .globe-2 {
        width: 300px;
        height: 300px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .small-view:not(.coming-soon-container):hover {
        transform: none;
    }

    .small-view:not(.coming-soon-container):active {
        transform: scale(0.95);
    }

    .cta-button:hover {
        transform: none;
    }

    .cta-button:active {
        transform: scale(0.98);
    }

    .culture-card:hover {
        transform: none;
    }

    .culture-card:active {
        transform: scale(0.98);
    }
}
