/* style.css - 苹果风格主题样式 */
:root {
    /* 颜色变量 */
    --primary: #007AFF;
    --primary-dark: #0056CC;
    --primary-light: rgba(0, 122, 255, 0.1);
    --success: #28CD41;
    --success-light: rgba(40, 205, 65, 0.1);
    --danger: #FF3B30;
    --danger-light: rgba(255, 59, 48, 0.1);
    --warning: #FF9500;
    --warning-light: rgba(255, 149, 0, 0.1);
    --dark-bg: #000000;
    --dark-card: #1c1c1e;
    --dark-border: #2c2c2e;
    --text-primary: #f5f5f7;
    --text-secondary: #a8a8a8;
    --text-tertiary: #86868b;
    --overlay: rgba(0, 0, 0, 0.8);
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    --gradient-success: linear-gradient(135deg, #28CD41 0%, #1CAF3C 100%);
    --gradient-warning: linear-gradient(135deg, #FF9500 0%, #FF5E3A 100%);
    
    /* 阴影 */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 999px;
    
    /* 间距 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* 字体大小 */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 32px;
    --text-4xl: 48px;
    --text-5xl: 64px;
}

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-md);
}

/* 背景动画 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: var(--text-2xl);
    font-weight: 700;
    display: flex;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    color: var(--primary);
    margin-right: var(--space-sm);
    font-size: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: var(--text-lg);
    transition: all 0.3s;
    position: relative;
    padding: var(--space-xs) 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

/* Hero 区域 */
.hero {
    display: flex;
    align-items: center;
    min-height: 80vh;
    padding: var(--space-3xl) 0;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.5s;
}

.hero-subtitle {
    font-size: var(--text-xl);
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.8s;
}

/* 进度条 */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.progress-step.active .step-circle {
    background: var(--primary);
    color: var(--text-primary);
    transform: scale(1.1);
}

.step-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.progress-step.active .step-label {
    color: var(--text-primary);
}

/* 页脚 */
.footer {
    text-align: center;
    padding: var(--space-xl) 0;
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-3xl);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.social-links a {
    color: var(--text-tertiary);
    font-size: var(--text-xl);
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* 消息提示 */
.message {
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    text-align: center;
    font-size: var(--text-base);
    display: none;
    animation: fadeIn 0.5s;
}

.message.show {
    display: block;
}

.message.error {
    background: var(--danger-light);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: var(--danger);
}

.message.success {
    background: var(--success-light);
    border: 1px solid rgba(40, 205, 65, 0.3);
    color: var(--success);
}

.message.warning {
    background: var(--warning-light);
    border: 1px solid rgba(255, 149, 0, 0.3);
    color: var(--warning);
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

.flex-column { flex-direction: column; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.align-start { align-items: flex-start; }

.gap-1 { gap: var(--space-xs); }
.gap-2 { gap: var(--space-sm); }
.gap-3 { gap: var(--space-md); }
.gap-4 { gap: var(--space-lg); }
.gap-5 { gap: var(--space-xl); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* 响应式设计 */
@media (max-width: 768px) {
    :root {
        --text-5xl: 48px;
        --text-4xl: 36px;
        --text-3xl: 28px;
        --text-2xl: 24px;
        --text-xl: 18px;
        --text-lg: 16px;
    }
    
    .navbar {
        flex-direction: column;
        padding: var(--space-lg) 0;
        gap: var(--space-lg);
    }
    
    .nav-links {
        gap: var(--space-lg);
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: var(--space-xl) 0;
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .progress-bar {
        flex-wrap: wrap;
        gap: var(--space-md);
    }
    
    .social-links {
        gap: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .nav-links {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .progress-step {
        min-width: 80px;
    }
}