* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #0f0f1a;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(100, 200, 255, 0.3);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 999;
    mix-blend-mode: screen;
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
}

.cursor-trailer {
    position: fixed;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 200, 255, 0.2), transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 998;
    transition: width 0.3s ease, height 0.3s ease;
}

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

header {
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff00cc, #3333ff);
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-shadow: 0 0 20px rgba(100, 100, 255, 0.5);
}

.logo:hover {
    transform: scale(1.1);
    letter-spacing: 3px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
    z-index: 2;
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #00dbde;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #00dbde;
    transform: translateY(-5px);
}

main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: radial-gradient(circle, rgba(100, 100, 255, 0.1), transparent 70%);
    z-index: -1;
    transform: scale(0.8);
    transition: transform 0.5s ease;
}

.hero:hover::before {
    transform: scale(1);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00dbde, #fc00ff);
    -webkit-background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    color: #aaa;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 219, 222, 0.1), rgba(252, 0, 255, 0.1));
    transform: translateY(100%);
    transition: transform 0.5s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-card:hover::before {
    transform: translateY(0);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00dbde;
}

.feature-card p {
    color: #aaa;
    line-height: 1.6;
}

.call-to-action {
    text-align: center;
    margin: 4rem 0;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.call-to-action::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(0, 219, 222, 0.1), transparent 70%);
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #00dbde, #fc00ff);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #fc00ff, #00dbde);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:active {
    transform: translateY(0);
}

footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(45deg, #00dbde, #fc00ff);
    transform: translateY(-5px) rotate(360deg);
}

.copyright {
    color: #aaa;
    font-size: 0.9rem;
}

@keyframes pulse {
    0% {
        transform: scale(0.8) rotate(0deg);
    }
    100% {
        transform: scale(1.2) rotate(180deg);
    }
}

.click-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 219, 222, 0.6), transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99;
    animation: ripple 1s linear forwards;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }
    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

.glow-text {
    text-shadow: 0 0 10px currentColor;
}

.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

.float {
    animation: float 0.5s ease;
}

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

/* ===== 白天模式 ===== */
body.light-mode {
    background-color: #f5f7fa;
    color: #333;
}

body.light-mode .cursor-follower {
    background-color: rgba(102, 126, 234, 0.4);
}

body.light-mode .cursor-trailer {
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3), transparent 70%);
}

body.light-mode .logo {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    color: transparent;
}

body.light-mode .nav-link {
    color: #333;
}

body.light-mode .nav-link::before {
    background-color: #667eea;
}

body.light-mode .nav-link:hover {
    color: #667eea;
}

body.light-mode .hero::before {
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15), transparent 70%);
}

body.light-mode .hero h1 {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    color: transparent;
}

body.light-mode .hero p {
    color: #666;
}

body.light-mode .feature-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .feature-card:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

body.light-mode .feature-card h3 {
    color: #667eea;
}

body.light-mode .feature-card p {
    color: #666;
}

body.light-mode footer {
    background: rgba(255, 255, 255, 0.6);
}

body.light-mode .social-link {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

body.light-mode .social-link:hover {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
}

body.light-mode .copyright {
    color: #666;
}

/* ===== 打字机效果 ===== */
.typing-text {
    font-size: 1.5rem;
    color: #aaa;
    min-height: 2.5rem;
    display: inline-block;
}

.typing-text::after {
    content: '|';
    animation: blink 0.8s infinite;
    color: #00dbde;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ===== 主题切换按钮 ===== */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

/* 粒子特效切换按钮 */
.particles-toggle {
    position: fixed;
    top: 2rem;
    right: 9rem;
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.particles-toggle:hover {
    background: rgba(0, 219, 222, 0.2);
    border-color: #00dbde;
    transform: scale(1.05);
}

.particles-toggle .icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.particles-toggle:hover .icon {
    transform: rotate(180deg);
}

.theme-toggle:hover {
    background: rgba(0, 219, 222, 0.2);
    border-color: #00dbde;
    transform: scale(1.05);
}

.theme-toggle .icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .icon {
    transform: rotate(180deg);
}

/* 白天模式下的主题按钮 */
body.light-mode .theme-toggle {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    color: #333;
}

body.light-mode .theme-toggle:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

/* 白天模式下的粒子特效按钮 */
body.light-mode .particles-toggle {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    color: #333;
}

body.light-mode .particles-toggle:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

body.light-mode .typing-text::after {
    color: #667eea;
}

/* ===== App 页面通用样式 ===== */
.app-container {
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.app-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* App 页面使用卡片布局时居中 */
.app-content.card-layout {
    display: flex;
    justify-content: center;
}

.app-back {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(0, 219, 222, 0.2);
    border-color: #00dbde;
    transform: translateX(-5px);
}

body.light-mode .back-btn {
    color: #333;
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

body.light-mode .back-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}
