/* ===== 全局动画定义（优化后，降低频率） ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.6); }
}

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

@keyframes navUnderline {
    from { width: 0; left: 50%; }
    to { width: 100%; left: 0; }
}

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

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
}

@keyframes bgOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

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

html { scroll-behavior: smooth; }

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: rgba(10, 14, 39, 0.8);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb, #7c3aed);
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #171f46 50%, #0f173a 100%);
    background-size: 400% 400%;
    animation: bgShift 30s ease infinite;
    color: #eef4ff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.bg-orbits {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-orbits::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150vmax;
    height: 150vmax;
    margin-left: -75vmax;
    margin-top: -75vmax;
    background: radial-gradient(circle, transparent 30%, rgba(59, 130, 246, 0.03) 50%, transparent 70%);
    animation: bgOrbit 120s linear infinite;
}
.bg-orbits::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vmax;
    height: 120vmax;
    margin-left: -60vmax;
    margin-top: -60vmax;
    background: radial-gradient(circle, transparent 40%, rgba(139, 92, 246, 0.02) 60%, transparent 80%);
    animation: bgOrbit 90s linear infinite reverse;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(80, 120, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(80, 120, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.twinkle-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #60a5fa;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.wrapper {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(100, 150, 255, 0.15);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 0.5s ease-out;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(145deg, #a6c9ff, #d6e6ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
    cursor: pointer;
}
.logo:hover { transform: scale(1.05); }
.logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.logo:hover img { transform: rotate(5deg) scale(1.1); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: all 0.3s ease;
    border-radius: 2px;
}
.nav-links a:hover { color: white; }
.nav-links a:hover::after {
    width: 100%;
    left: 0;
    animation: navUnderline 0.3s ease forwards;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.user-info {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 0.8rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}
.user-info.show { display: flex; }
.user-info:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
}
.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(145deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
}
.user-name {
    color: #e0e7ff;
    font-weight: 500;
    font-size: 0.9rem;
}
.user-dropdown { position: relative; }
.dropdown-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: all 0.2s;
}
.dropdown-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: white;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(17, 28, 47, 0.98);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 140px;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
}
.dropdown-menu.show { display: block; }
.dropdown-item {
    display: block;
    padding: 0.6rem 1rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
}
.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.2);
    color: white;
}
.dropdown-item i { margin-right: 8px; width: 16px; text-align: center; }

.login-btn-nav {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.5);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    color: #b3d0ff !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.login-btn-nav:hover {
    background: #3b82f6;
    color: white !important;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}
.login-btn-nav.hidden { display: none; }

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 1rem 4rem;
    animation: fadeInUp 0.5s ease-out 0.2s both;
}
.hero-badge {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    color: #9ac7ff;
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: badgePulse 5s ease-in-out infinite;
}
.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.15;
    background: linear-gradient(90deg, #60a5fa, #8b5cf6, #3b82f6, #7c3aed, #4f46e5);
    background-size: 300% 300%;
    animation: gradientText 6s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    max-width: 900px;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: #a0b8d9;
    max-width: 650px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.5s ease-out 0.4s both;
}
.button-group {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.5s ease-out 0.6s both;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn span { position: relative; z-index: 1; }
.btn.disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: default;
}
.btn-primary {
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}
.btn-primary:hover {
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.6);
}
.btn-outline {
    background: transparent;
    border: 2px solid rgba(59, 130, 246, 0.7);
    color: #d9e9ff;
}
.btn-outline:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    color: white;
}

.features-section { margin: 5rem 0; }
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.section-header.animate {
    opacity: 1;
    transform: translateY(0);
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #b8d5ff, #d8b4fe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}
.section-subtitle {
    color: #a0b8d9;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: rgba(18, 28, 50, 0.85);
    border: 1px solid rgba(72, 120, 240, 0.25);
    border-radius: 1.5rem;
    padding: 2rem 1.8rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.feature-card.animate {
    opacity: 1;
    transform: translateY(0);
}
.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.feature-card.planned {
    border-style: dashed;
    background: rgba(18, 28, 50, 0.6);
}
.feature-card.planned::after {
    content: "即将推出";
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    padding: 0.25rem 0.7rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}
.feature-card:hover {
    border-color: #3b82f6;
    transform: translateY(-8px);
    background: rgba(25, 40, 65, 0.95);
    box-shadow: 0 25px 45px -10px rgba(10, 20, 40, 0.6);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    font-size: 2.2rem;
    color: #3b82f6;
    margin-bottom: 1.2rem;
    background: rgba(59, 130, 246, 0.2);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}
.feature-card:hover .feature-icon {
    background: rgba(59, 130, 246, 0.3);
    transform: scale(1.1) rotate(5deg);
    color: #8b5cf6;
}
.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #f0f6ff;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}
.feature-card p {
    color: #a5bbdd;
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.cta-banner {
    background: linear-gradient(145deg, #1e2b4a, #14223a);
    border-radius: 3rem;
    padding: 6rem 3rem;
    margin: 6rem 0 4rem;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 25px 50px -15px rgba(11, 20, 36, 0.6);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.cta-banner.animate {
    opacity: 1;
    transform: translateY(0);
}
.cta-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
    animation: pulseGlow 6s ease-in-out infinite;
}
.cta-banner h2 {
    font-size: 3rem;
    margin-bottom: 1.8rem;
    background: linear-gradient(to right, #fff, #b8d5ff, #d8b4fe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    position: relative;
    z-index: 2;
}
.cta-banner p {
    color: #9bb5de;
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.faq-section { margin: 6rem 0 4rem; }
.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    background: rgba(18, 28, 50, 0.7);
    border: 1px solid rgba(72, 120, 240, 0.2);
    border-radius: 1.2rem;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease, background 0.3s ease;
}
.faq-item.animate {
    opacity: 1;
    transform: translateY(0);
}
.faq-item:hover {
    border-color: #3b82f6;
    background: rgba(25, 40, 65, 0.9);
}
.faq-question {
    padding: 1.2rem 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: #e0edff;
    transition: background 0.3s ease;
    user-select: none;
}
.faq-question i {
    color: #3b82f6;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}
.faq-question.open i { transform: rotate(180deg); }
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}
.faq-answer.open { grid-template-rows: 1fr; }
.faq-answer-content { overflow: hidden; }
.faq-answer-inner {
    padding: 0 1.8rem 1.5rem 1.8rem;
    color: #b0c8f0;
    line-height: 1.7;
}
.faq-answer-inner a {
    color: #60a5fa;
    text-decoration: none;
    border-bottom: 1px dashed #3b82f6;
}
.faq-answer-inner a:hover {
    color: white;
    border-bottom-color: white;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: #3b82f6;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    color: #7f9bc0;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
}
.footer-links {
    display: flex;
    gap: 2rem;
}
.footer-links a {
    color: #a0b9dd;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}
.footer-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #3b82f6;
    transition: width 0.3s ease;
}
.footer-links a:hover { color: white; }
.footer-links a:hover::after { width: 100%; }

.icp-beian {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}
.icp-beian a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #7f9bc0;
    text-decoration: none;
    transition: color 0.3s ease;
}
.icp-beian a:hover { color: white; }

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 10, 20, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-card {
    background: #111c2f;
    border: 1px solid #2d4b7c;
    border-radius: 2rem;
    width: 90%;
    max-width: 440px;
    padding: 2.5rem 2rem;
    box-shadow: 0 40px 70px -15px #030613, 0 0 0 1px rgba(60, 120, 240, 0.3) inset;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    background-image: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}
.modal-overlay.active .modal-card { transform: translateY(0); }
.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: #9bb5d9;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s;
}
.modal-close:hover {
    background: rgba(59, 130, 246, 0.2);
    color: white;
    transform: rotate(90deg);
}
.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}
.modal-header i {
    font-size: 2rem;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    margin: 0 auto 1rem auto;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}
.modal-header i:hover {
    transform: scale(1.1) rotate(8deg);
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.25);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4);
}
.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(145deg, #ffffff, #b2d9ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.modal-header p {
    color: #a0bada;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}
.login-section, .register-section, .reset-section { display: block; }
.register-section, .reset-section { display: none; }
.input-group { margin-bottom: 1rem; }
.input-group label {
    display: block;
    color: #c7d9f0;
    font-weight: 500;
    margin-bottom: 0.4rem;
    margin-left: 0.4rem;
    font-size: 0.95rem;
}
.input-field {
    position: relative;
    width: 100%;
}
.input-field i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #5f7ea3;
    font-size: 1.1rem;
    transition: color 0.2s;
}
.input-field input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem;
    background: #1a2842;
    border: 1.5px solid #2d4b7c;
    border-radius: 2.5rem;
    font-size: 1rem;
    color: white;
    outline: none;
    transition: all 0.3s;
}
.input-field input:focus {
    border-color: #3b82f6;
    background: #1f3152;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}
.input-field input:focus + i { color: #3b82f6; }
.field-error {
    color: #f87171;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    margin-left: 0.4rem;
    min-height: 1rem;
    display: none;
}
.field-error.show { display: block; }
.sms-row {
    display: flex;
    gap: 10px;
}
.sms-row .input-field { flex: 1; }
.code-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 0 1.2rem;
    border-radius: 2.5rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s;
    font-size: 0.9rem;
    height: 3rem;
    align-self: flex-end;
}
.code-btn:enabled {
    background: #3b82f6;
    color: white;
}
.code-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #6b7280;
    background: transparent;
    color: #6b7280;
}
.modal-options {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.9rem;
    margin: 0.6rem 0 1.5rem;
    color: #a5bedd;
}
.forgot-link {
    color: #95b4f0;
    text-decoration: none;
    border-bottom: 1px dashed #3f6290;
    cursor: pointer;
    transition: all 0.3s;
}
.forgot-link:hover {
    color: white;
    border-bottom-color: white;
}
.modal-btn {
    width: 100%;
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    border: none;
    padding: 0.95rem;
    border-radius: 2.5rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(0, 40, 100, 0.6);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}
.modal-btn:hover {
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px #091831;
}
.switch-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #9bb1cf;
    font-size: 0.95rem;
}
.switch-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #3b82f6;
    cursor: pointer;
    transition: all 0.3s;
}
.switch-link a:hover {
    color: white;
    border-bottom-color: white;
}

@media (max-width: 992px) {
    .nav-links {
        gap: 1.5rem;
        width: 100%;
        justify-content: center;
        order: 3;
        margin-top: 0.8rem;
    }
    .navbar { justify-content: space-between; }
    .features {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}
@media (max-width: 768px) {
    .features { grid-template-columns: 1fr; }
    .hero h1 { font-size: clamp(2.2rem, 7vw, 3.5rem); }
    .cta-banner { padding: 4rem 2rem; }
    .cta-banner h2 { font-size: 2rem; }
    .section-title { font-size: 2rem; }
    .nav-links { gap: 1rem; flex-wrap: wrap; }
    .nav-links a { font-size: 0.9rem; }
    .faq-question { font-size: 1rem; padding: 1rem 1.5rem; }
    .faq-answer-inner { padding: 0 1.5rem 1.2rem 1.5rem; }
}
@media (max-width: 600px) {
    .modal-card { padding: 2rem 1.5rem; }
    .button-group { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    .hero { padding: 2.5rem 1rem 3.5rem; }
    .wrapper { padding: 0 1rem; }
    footer { flex-direction: column; text-align: center; gap: 1rem; }
    .footer-links { gap: 1.2rem; }
}

.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    background: rgba(20, 30, 55, 0.95);
    color: #e0f2ff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}
.toast.success { border-color: rgba(34, 197, 94, 0.6); }
.toast.success i { color: #22c55e; }
.toast.error { border-color: rgba(239, 68, 68, 0.6); }
.toast.error i { color: #ef4444; }
.toast.info { border-color: rgba(59, 130, 246, 0.6); }
.toast.info i { color: #3b82f6; }

/* ===== 赞助模态框 ===== */
.sponsor-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sponsor-modal-overlay.active {
    display: flex;
    opacity: 1;
}
.sponsor-modal-content {
    background: #111c2f;
    border: 1px solid #2d4b7c;
    border-radius: 2rem;
    padding: 2rem 2rem 1.8rem;
    max-width: 520px;
    width: 90%;
    position: relative;
    box-shadow: 0 40px 70px -15px #030613;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.sponsor-modal-overlay.active .sponsor-modal-content {
    transform: scale(1);
}
.sponsor-modal-close {
    position: absolute;
    top: 0.8rem;
    right: 1.2rem;
    background: transparent;
    border: none;
    color: #9bb5d9;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s;
}
.sponsor-modal-close:hover {
    color: white;
    transform: rotate(90deg);
}
.sponsor-modal-title {
    text-align: center;
    color: #eef4ff;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}
.sponsor-qr-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.sponsor-qr-item {
    text-align: center;
    flex: 1 1 140px;
    max-width: 160px;
}
.sponsor-qr-item img {
    width: 100%;
    max-width: 140px;
    height: auto;
    border-radius: 1rem;
    border: 2px solid rgba(59, 130, 246, 0.3);
    transition: transform 0.3s;
    background: #0a0e27;
}
.sponsor-qr-item img:hover {
    transform: scale(1.05);
}
.sponsor-qr-item .qr-label {
    color: #a5bbdd;
    margin-top: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}
.sponsor-note {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    color: #9bb5de;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.6;
}
.sponsor-note p {
    margin: 0.2rem 0;
}
@media (max-width: 500px) {
    .sponsor-qr-grid {
        flex-direction: column;
        align-items: center;
    }
    .sponsor-qr-item {
        max-width: 180px;
    }
    .sponsor-qr-item img {
        max-width: 160px;
    }
}

/* ===== 社区交流模态框 ===== */
.community-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.community-modal-overlay.active {
    display: flex;
    opacity: 1;
}
.community-modal-content {
    background: #111c2f;
    border: 1px solid #2d4b7c;
    border-radius: 2rem;
    padding: 2rem 2rem 1.8rem;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 40px 70px -15px #030613;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.community-modal-overlay.active .community-modal-content {
    transform: scale(1);
}
.community-modal-close {
    position: absolute;
    top: 0.8rem;
    right: 1.2rem;
    background: transparent;
    border: none;
    color: #9bb5d9;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s;
}
.community-modal-close:hover {
    color: white;
    transform: rotate(90deg);
}
.community-modal-title {
    text-align: center;
    color: #eef4ff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.community-modal-title i {
    color: #3b82f6;
    margin-right: 0.5rem;
}
.community-group-info {
    text-align: center;
    margin-bottom: 1.2rem;
}
.community-group-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #eef4ff;
}
.community-group-number {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 2rem;
    padding: 0.4rem 1.2rem;
    margin-top: 0.5rem;
    color: #9ac7ff;
    font-size: 1rem;
    font-weight: 500;
}
.community-group-number .copy-btn {
    background: transparent;
    border: none;
    color: #60a5fa;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.2rem 0.6rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
}
.community-group-number .copy-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    color: white;
}
.community-qr-wrapper {
    display: flex;
    justify-content: center;
    margin: 0.8rem 0 1rem;
}
.community-qr-wrapper img {
    max-width: 160px;
    border-radius: 1rem;
    border: 2px solid rgba(59, 130, 246, 0.3);
    background: white;
    padding: 0.4rem;
}
.community-welcome {
    color: #a5bbdd;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.6;
    margin: 0.5rem 0 1.2rem;
}
.community-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.community-actions .btn {
    min-width: 140px;
    justify-content: center;
}
.btn-qq {
    background: linear-gradient(145deg, #12b7f5, #0d8ec9);
    color: white;
    box-shadow: 0 6px 18px rgba(18, 183, 245, 0.4);
}
.btn-qq:hover {
    background: linear-gradient(145deg, #0d8ec9, #0a6fa0);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(18, 183, 245, 0.5);
}
.btn-copy {
    background: transparent;
    border: 2px solid rgba(59, 130, 246, 0.6);
    color: #d9e9ff;
}
.btn-copy:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    transform: translateY(-3px);
}
.btn-copy.copied {
    border-color: #22c55e;
    color: #22c55e;
}
.community-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #6f8db0;
}
.community-footer a {
    color: #60a5fa;
    text-decoration: none;
}
.community-footer a:hover {
    color: white;
}

@media (max-width: 500px) {
    .community-modal-content {
        padding: 1.5rem 1.2rem;
    }
    .community-actions .btn {
        min-width: 120px;
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    .community-qr-wrapper img {
        max-width: 130px;
    }
}

/* ===== 反馈弹窗样式（优化后） ===== */
.feedback-modal-overlay .feedback-modal-content {
    max-width: 520px;
    width: 90%;
    background: #111c2f;
    border: 1px solid #2d4b7c;
    border-radius: 2rem;
    padding: 2rem 2rem 1.8rem;
    position: relative;
    box-shadow: 0 40px 70px -15px #030613;
    max-height: 90vh;
    overflow-y: auto;

    /* 完全隐藏滚动条（但保持滚动功能） */
    scrollbar-width: none !important;          /* Firefox */
    -ms-overflow-style: none !important;       /* IE/Edge */
}
/* WebKit 浏览器隐藏滚动条 */
.feedback-modal-content::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.feedback-modal-close {
    position: absolute;
    top: 0.8rem;
    right: 1.2rem;
    background: transparent;
    border: none;
    color: #9bb5d9;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s;
}
.feedback-modal-close:hover {
    color: white;
    transform: rotate(90deg);
}
.feedback-modal-title {
    text-align: center;
    color: #eef4ff;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.feedback-modal-title i {
    color: #3b82f6;
    margin-right: 0.5rem;
}

.feedback-form-group {
    margin-bottom: 1.2rem;
}
.feedback-form-group label {
    display: block;
    color: #c7d9f0;
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}
.feedback-form-group .feedback-required {
    color: #ef4444;
}
.feedback-form-group .feedback-optional {
    color: #6f8db0;
    font-weight: 400;
    font-size: 0.85rem;
}
.feedback-form-group select,
.feedback-form-group input,
.feedback-form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    background: #1a2842;
    border: 1.5px solid #2d4b7c;
    border-radius: 0.8rem;
    font-size: 0.95rem;
    color: white;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
}
.feedback-form-group select {
    appearance: none;
    cursor: pointer;
}
.feedback-form-group select:focus,
.feedback-form-group input:focus,
.feedback-form-group textarea:focus {
    border-color: #3b82f6;
    background: #1f3152;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}
.feedback-form-group select option {
    background: #111c2f;
    color: #eef4ff;
}

/* 关键优化：禁止 textarea 手动拉伸，固定高度 */
.feedback-form-group textarea {
    resize: none;                /* 禁止拖拽改变大小 */
    min-height: 120px;           /* 最小高度 */
    max-height: 180px;           /* 最大高度，内容超出则内部滚动 */
    overflow-y: auto;            /* 内容超出时显示滚动条（已通过父级规则隐藏滚动条） */
}

.feedback-error {
    color: #f87171;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    min-height: 1.2rem;
    display: none;
}
.feedback-error.show {
    display: block;
}

.feedback-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}
.feedback-actions .btn {
    min-width: 120px;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
}
.feedback-actions .btn-outline {
    background: transparent;
    border: 2px solid rgba(59, 130, 246, 0.5);
    color: #d9e9ff;
}
.feedback-actions .btn-outline:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    color: white;
}

@media (max-width: 500px) {
    .feedback-modal-content {
        padding: 1.5rem 1.2rem;
    }
    .feedback-actions {
        flex-direction: column;
    }
    .feedback-actions .btn {
        width: 100%;
        min-width: unset;
    }
}