/* home.css - 首页专用样式 */

/* CSS变量定义 */
:root {
    --primary-bg: #080808;
    --secondary-bg: #121212;
    --accent-purple: #a55cff;
    --accent-yellow: #ffce52;
    --text-primary: #f9f9f9;
    --text-secondary: rgba(249, 249, 249, 0.7);
    --text-tertiary: rgba(249, 249, 249, 0.8);
    --glass-bg: rgba(30, 30, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
    z-index: 1000;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo i {
    color: var(--accent-yellow);
    font-size: 28px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    transition: var(--transition);
}

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

.nav-links a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--accent-purple);
    transition: var(--transition);
}

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

/* 英雄区域样式 */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(165, 92, 255, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    max-width: 800px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.cta-button {
    background: linear-gradient(135deg, var(--accent-purple), #8a2be2);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(165, 92, 255, 0.4);
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(165, 92, 255, 0.6);
}

/* 核心价值区域 */
.values-section {
    padding: 80px 0;
    background: var(--secondary-bg);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.value-icon {
    font-size: 48px;
    color: var(--accent-purple);
    margin-bottom: 20px;
}

.value-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.value-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 使用步骤区域 */
.steps-section {
    padding: 80px 0;
}

.step-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 50px;
}

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

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(165, 92, 255, 0.3);
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-description {
    opacity: 0.8;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-connector {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-yellow));
    position: relative;
    margin: 0 20px;
}

.step-connector::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--accent-purple);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* 行动号召区域 */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: var(--secondary-bg);
}

.pulse-button {
    background: linear-gradient(135deg, var(--accent-purple), #ff6b9d);
    color: white;
    border: none;
    padding: 20px 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(165, 92, 255, 0.4);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.pulse-button:hover {
    transform: scale(1.05);
    animation: none;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* 动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(165, 92, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(165, 92, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(165, 92, 255, 0);
    }
}

@keyframes countUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 通用样式 */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(45deg, #A55CFF, #FF6B9D, #00F5FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 导航指示器 */
.scroll-indicator {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(165, 92, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: #A55CFF;
    border-color: #FFDC56;
    transform: scale(1.2);
    box-shadow: 0 0 10px #A55CFF;
}

.indicator-dot:hover {
    background: #FF6B9D;
    transform: scale(1.3);
}

/* 淡入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .scroll-indicator {
        right: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .step-flow {
        flex-direction: column;
        gap: 30px;
    }
    
    .step-connector {
        width: 2px;
        height: 40px;
        margin: 10px auto;
    }
    
    .stats-grid {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step-item {
        flex: none;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .cta-button {
        padding: 14px 30px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .value-card {
        padding: 30px 20px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stats-grid {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    opacity: 0.7;
    background: var(--primary-bg);
    border-top: 1px solid var(--glass-border);
}

.footer a {
    color: inherit;
    text-decoration: none;
}

.footer a:hover {
    color: var(--accent-purple);
}