/* ============================================
   鸣潮风格网页样式表
   Wuthering Waves Themed Web Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* ============================================
   CSS Variables - 鸣潮配色方案
   ============================================ */
:root {
    --primary-color: #00d4ff;
    --secondary-color: #ff006e;
    --accent-color: #8b5cf6;
    --bg-primary: #0a0e27;
    --bg-secondary: #111833;
    --bg-tertiary: #1a2250;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    --gradient-secondary: linear-gradient(135deg, #ff006e 0%, #8b5cf6 100%);
    --neon-glow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3);
    --glass-bg: rgba(17, 24, 51, 0.8);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* 噪音纹理叠加层 */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   Particles Animation
   ============================================ */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float-particle 15s infinite ease-in-out;
    opacity: 0.6;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   Container
   ============================================ */
.container {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navigation Bar
   ============================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slide-down 0.6s ease-out;
}

@keyframes slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-left {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: var(--neon-glow);
    }
    50% {
        text-shadow: 0 0 30px rgba(0, 212, 255, 0.8), 0 0 60px rgba(0, 212, 255, 0.5);
    }
}

.logo-sub {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 3px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--primary-color);
    overflow: hidden;
    width: 0;
    transition: var(--transition-smooth);
}

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

.nav-link:hover::before {
    width: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.download-btn {
    padding: 12px 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--gradient-primary);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--neon-glow);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 100px 40px;
    min-height: calc(100vh - 80px);
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fade-in-up 1s ease-out 0.2s both;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 72px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: slide-up 0.6s ease-out forwards;
}

.title-line: nth-child-of-type(1) { animation-delay: 0.3s; }
.title-line: nth-child-of-type(2) { animation-delay: 0.4s; }
.title-line: nth-child-of-type(3) { animation-delay: 0.5s; }

@keyframes slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-line.highlight {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    opacity: 0;
    animation: fade-in 0.8s ease-out 0.8s forwards;
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fade-in 0.8s ease-out 1s forwards;
}

.cta-btn {
    padding: 18px 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.cta-btn.primary {
    background: transparent;
    color: var(--primary-color);
}

.cta-btn.primary:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--neon-glow);
}

.cta-btn.secondary {
    background: rgba(255, 0, 110, 0.1);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.cta-btn.secondary:hover {
    background: var(--secondary-color);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.5);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.glowing-orb {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    position: relative;
    animation: orb-float 4s ease-in-out infinite;
}

@keyframes orb-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.glowing-orb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.8) 0%, transparent 70%);
    animation: orb-pulse 2s ease-in-out infinite;
}

@keyframes orb-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 100px 40px;
    background: var(--bg-secondary);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

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

.feature-card {
    background: var(--bg-tertiary);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 40px 30px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: 0.5s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.feature-card:hover::before {
    left: 100%;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

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

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   Characters Section
   ============================================ */
.characters {
    padding: 100px 40px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse-glow 2s infinite;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.character-card {
    background: var(--bg-tertiary);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
}

.character-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.character-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.character-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-tertiary), transparent);
}

.character-image.electronic {
    background: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
}

.character-image.ice {
    background: linear-gradient(135deg, #a8e6ff 0%, #0047ab 100%);
}

.character-image.fire {
    background: linear-gradient(135deg, #ff6b35 0%, #ff006e 100%);
}

.character-info {
    padding: 30px;
}

.character-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.element-type {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.character-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.stat span {
    font-size: 14px;
    color: var(--text-secondary);
    min-width: 50px;
}

.stat-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1s ease-out;
}

/* ============================================
   News Section
   ============================================ */
.news {
    padding: 100px 40px;
    background: var(--bg-secondary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-tertiary);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.1);
}

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.news-content {
    padding: 25px;
}

.news-date {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

.news-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.news-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 40px;
    background: var(--bg-primary);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

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

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 10px;
}

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

.footer-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* ============================================
   Neon Glow Effect
   ============================================ */
.neon-glow {
    animation: neon-flicker 1.5s infinite alternate;
}

@keyframes neon-flicker {
    0%, 100% {
        text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
    }
    50% {
        text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color), 0 0 15px var(--primary-color);
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }

    .hero-content {
        margin-bottom: 60px;
    }

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

    .glowing-orb {
        width: 300px;
        height: 300px;
    }

    .nav-right {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .nav-right {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        gap: 15px;
    }

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

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

    .features-grid,
    .characters-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-right {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .logo {
        font-size: 24px;
    }

    .cta-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
}

/* ============================================
   Scroll Animations
   ============================================ */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

/* ============================================
   Utility Classes
   ============================================ */
.hidden {
    display: none;
}

.visible {
    display: block;
}
