:root {
    /* Colors */
    --primary-color: #b388ff;
    --primary-dark: #8c43ff;
    --text-light: #ffffff;
    --text-dark: #000000;
    --bg-light: #ffffff;
    --bg-dark: #000000;
    --bg-card-light: #f5f5f5;
    --bg-card-dark: #1a1a1a;
    --border-light: #e0e0e0;
    --border-dark: #333333;

    /* Container Sizes */
    --container-xl: 1440px;
    --container-lg: 1200px;
    --container-md: 992px;
    --container-sm: 768px;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);

    /* New variables for light mode */
    --nav-hover-bg: rgba(0, 0, 0, 0.05);
    --dropdown-hover-bg: #f1f1f1;
    --text-color-hover: #000000;
}

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-dark);
    transition: background-color 0.3s, color 0.3s;
}

/* 深色模式 */
body.dark-mode {
    color: var(--text-light);
    background-color: var(--bg-dark);
}

/* 浅色模式 */
body:not(.dark-mode) {
    color: var(--text-dark);
    background-color: var(--bg-light);
}

body.dark-mode .header-content {
    background-color: #1a1a1a;
}

body.dark-mode .footer {
    background-color: #1a1a1a;
}

body.dark-mode .team-member {
    background: linear-gradient(145deg, #1e1e1e, #121212);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

body.dark-mode .team-member:hover {
    box-shadow: 0 15px 40px rgba(179, 136, 255, 0.3);
}

body.dark-mode .newsletter-section {
    background-color: #1a1a1a;
}

body.dark-mode .newsletter-form input {
    background-color: #2a2a2a;
    color: #f5f5f5;
    border: 1px solid #333;
}

body.dark-mode .social-link {
    background: linear-gradient(145deg, #1e1e1e, #121212);
}

body.dark-mode .download-card {
    background: linear-gradient(145deg, #1e1e1e, #121212);
}

body.dark-mode .faq-item {
    background-color: #1a1a1a;
    border: 1px solid #333;
}

body.dark-mode .faq-question {
    color: #f5f5f5;
}

body.dark-mode .faq-answer {
    color: #ccc;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(179, 136, 255, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

input, button {
    font-family: inherit;
}

/* Utility Classes */
.highlight {
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Dark Mode */
.dark-mode {
    --bg-color: #000000;
    --card-bg: #1A1A1A;
    --text-color: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1440px) {
    .container {
        max-width: var(--container-lg);
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: var(--container-md);
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* /* 主题切换按钮样式 */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle img {
    width: 24px;
    height: 24px;
} */

/* 淡入淡出效果 */
.fade-out {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.15s ease;
}

/* 确保所有页面在主题切换时有平滑过渡 */
body, main, section, div, p, h1, h2, h3, h4, h5, h6, a, button, input {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 确保按钮和链接在各种状态下都有足够的对比度 */
.btn:hover,
.btn:focus,
.btn:active {
    opacity: 0.9;
    transform: translateY(-1px);
} 