* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #4f6df5;
    --primary-light: #6b8aff;
    --primary-dark: #3a56e6;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --bg-light: linear-gradient(135deg, #f0f4f9 0%, #e6edf5 100%);
    --card-bg-light: #ffffff;
    --border-light: rgba(148, 163, 184, 0.15);
    --shadow-light: 0 12px 36px rgba(148, 163, 184, 0.15);
    --text-inverse: #edf2f7;
    --bg-dark: linear-gradient(135deg, #1a1f29 0%, #232a38 100%);
    --card-bg-dark: #2d3748;
    --border-dark: rgba(255, 255, 255, 0.1);
    --shadow-dark: 0 12px 36px rgba(0, 0, 0, 0.25);
    --tech-glow: 0 0 15px rgba(79, 109, 245, 0.3);
    --tech-glow-hover: 0 0 25px rgba(79, 109, 245, 0.5);
    --tech-border: 1px solid rgba(79, 109, 245, 0.2);
    --tech-grid: linear-gradient(rgba(79, 109, 245, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 109, 245, 0.05) 1px, transparent 1px);
    --dark-text-primary: #edf2f7;
    --dark-text-secondary: #a0aec0;
    --dark-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --dark-card-bg: rgba(30, 41, 59, 0.9);
    --dark-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
    --dark-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
    --dark-shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.25);
    --dark-tech-glow: 0 0 15px rgba(79, 109, 245, 0.5);
    --dark-tech-glow-hover: 0 0 25px rgba(79, 109, 245, 0.8);
    --dark-tech-border: 1px solid rgba(79, 109, 245, 0.3);
    --dark-tech-grid: linear-gradient(rgba(79, 109, 245, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 109, 245, 0.1) 1px, transparent 1px);
    --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --card-radius: 20px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-light), var(--tech-grid);
    background-size: 20px 20px;
    min-height: 100vh;
    transition: var(--transition-smooth);
    position: relative;
    overflow-x: hidden;
}

body.dark-mode {
    --text-primary: var(--dark-text-primary);
    --text-secondary: var(--dark-text-secondary);
    --bg-light: var(--dark-bg);
    --card-bg-light: var(--dark-card-bg);
    --shadow-light: var(--dark-shadow-lg);
    --border-light: var(--dark-tech-border);
    --tech-glow: var(--dark-tech-glow);
    --tech-glow-hover: var(--dark-tech-glow-hover);
    --tech-border: var(--dark-tech-border);
    --tech-grid: var(--dark-tech-grid);
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--card-bg-light);
    box-shadow: var(--shadow-light), var(--tech-glow);
    border: var(--tech-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
    -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
    transform: scale(1.05) rotate(15deg);
    box-shadow: var(--shadow-light), var(--tech-glow-hover);
}

.theme-toggle i {
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.language-switch {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--card-bg-light);
    padding: 10px;
    border-radius: 12px;
    box-shadow: var(--shadow-light), var(--tech-glow);
    border: var(--tech-border);
    backdrop-filter: blur(5px);
}

.language-switch button {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.language-switch button:hover {
    background: rgba(79, 109, 245, 0.1);
}

.language-switch button.active {
    background: var(--primary);
    color: white;
}

/* 手机特供 */
.mobile-language-selector {
    display: none;
    margin-bottom: 1.5rem;
}

.language-select {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: var(--card-bg-light);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 3rem;
}

body.dark-mode .language-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-btn {
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    border: 1px solid var(--border-light);
}

.modal-btn:hover {
    background: rgba(79, 109, 245, 0.1);
    transform: translateX(5px);
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particles span {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    background: rgba(79, 109, 245, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(100, 108, 255, 0.5),
        0 0 20px rgba(100, 108, 255, 0.3),
        0 0 30px rgba(100, 108, 255, 0.1);
    animation: float 15s linear infinite;
    bottom: -150px;
}

body.dark-mode .particles span {
    background: rgba(79, 109, 245, 0.2);
    box-shadow: 0 0 15px rgba(100, 108, 255, 0.8),
        0 0 25px rgba(100, 108, 255, 0.5),
        0 0 35px rgba(100, 108, 255, 0.2);
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(to bottom,
            transparent 0%,
            rgba(100, 108, 255, 0.05) 1px,
            transparent 2px);
    background-size: 100% 4px;
    animation: scan 8s linear infinite;
    pointer-events: none;
    z-index: 2;
}

body.dark-mode .scanlines {
    background: repeating-linear-gradient(to bottom,
            transparent 0%,
            rgba(100, 108, 255, 0.15) 1px,
            transparent 2px);
}

@keyframes scan {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 100%;
    }
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(79, 109, 245, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 109, 245, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

body.dark-mode .grid-overlay {
    background:
        linear-gradient(rgba(79, 109, 245, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 109, 245, 0.1) 1px, transparent 1px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    position: relative;
    z-index: 3;
}

.hero {
    padding: 4rem 0 3rem;
    background: var(--card-bg-light);
    border-radius: var(--card-radius);
    margin-bottom: 3.5rem;
    box-shadow: var(--shadow-light), var(--tech-glow);
    position: relative;
    overflow: hidden;
    text-align: center;
    transition: var(--transition-smooth);
    border: var(--tech-border);
    backdrop-filter: blur(5px);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--card-radius) var(--card-radius) 0 0;
    animation: gradientShift 8s linear infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.hero-logo {
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 6px 12px rgba(79, 109, 245, 0.2));
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.02);
}

.hero-name {
    font-size: clamp(2rem, 6vw, 2.8rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.2;
    transition: color 0.3s ease;
    text-shadow: 0 0 10px rgba(79, 109, 245, 0.2);
}

.hero-tagline {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    transition: color 0.3s ease;
    position: relative;
}

.hero-tagline::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary);
}

.section {
    background: var(--card-bg-light);
    border-radius: var(--card-radius);
    padding: 3rem 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-light), var(--tech-glow);
    transition: var(--transition-smooth);
    text-align: center;
    border: var(--tech-border);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 109, 245, 0.1), transparent);
    transition: left 0.7s ease;
}

.section:hover::before {
    left: 100%;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(148, 163, 184, 0.2), var(--tech-glow-hover);
}

.section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: clamp(1.6rem, 4.5vw, 1.9rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
    transition: color 0.3s ease;
}

.section-title i {
    color: var(--primary);
    font-size: 1.6rem;
    transition: transform 0.3s ease;
    text-shadow: 0 0 10px rgba(79, 109, 245, 0.5);
}

.section-title:hover i {
    transform: scale(1.1);
}

.section-content {
    font-size: clamp(1rem, 3.5vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 850px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 500;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 18px rgba(79, 109, 245, 0.25), var(--tech-glow);
    margin: 1.5rem auto 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-light) 0%, var(--primary) 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

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

.feature-link:hover {
    transform: translateY(-3px) translateX(5px);
    box-shadow: 0 8px 24px rgba(79, 109, 245, 0.35), var(--tech-glow-hover);
}

.feature-link i {
    transition: transform 0.3s ease;
}

.feature-link:hover i {
    transform: translateX(6px);
}

.footer-disclaimer {
    background: var(--card-bg-light);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    margin-top: 3rem;
    box-shadow: var(--shadow-light), var(--tech-glow);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    transition: var(--transition-smooth);
    border: var(--tech-border);
    backdrop-filter: blur(5px);
}

.footer-disclaimer strong {
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-to-top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light), var(--tech-glow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 109, 245, 0.4), var(--tech-glow-hover);
    background: var(--primary-dark);
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .hero {
        padding: 3rem 0 2rem;
        margin-bottom: 2.5rem;
    }

    .section {
        padding: 2.5rem 2rem;
        margin-bottom: 2.5rem;
    }

    .language-switch {
        top: 80px;
        right: 10px;
        flex-direction: row;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }

    .hero-logo {
        max-width: 90%;
    }

    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 44px;
        height: 44px;
    }

    .back-to-top svg {
        width: 18px;
        height: 18px;
    }

    .language-switch {
        display: none;
    }

    .mobile-language-selector {
        display: block;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}