/* CHXW 英伟达量化交易系统 V5.3 - 主样式表 */

/* ===== 全局样式重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

/* ===== 页面背景与基础布局 ===== */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    overflow: hidden;
}

/* ===== 导航栏 ===== */
.navbar {
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    color: #00d9ff;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

.navbar .nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.navbar .nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: #00d9ff;
}

/* ===== 顶部横幅 ===== */
.header {
    background: linear-gradient(90deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: white;
    padding: 50px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.header h1 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 18px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.header .version-tag {
    display: inline-block;
    background: linear-gradient(90deg, #00d9ff, #00ff88);
    color: #1a1a2e;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

/* ===== 核心下载区域 ===== */
.download-area {
    padding: 60px 30px;
    text-align: center;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.download-btn {
    display: inline-block;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 25px 70px;
    border-radius: 12px;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.download-btn:active {
    transform: translateY(-2px);
}

.download-note {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

/* ===== 系统说明区域 ===== */
.intro-area {
    padding: 0 30px 60px;
}

.intro-title {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 5px solid #667eea;
    font-weight: 600;
}

.intro-content {
    color: #444;
    font-size: 16px;
    line-height: 2;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.intro-content p {
    margin-bottom: 15px;
}

.intro-content strong {
    color: #667eea;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.feature-card h3 {
    color: #1a1a2e;
    font-size: 16px;
    margin-bottom: 8px;
}

.feature-card p {
    color: #666;
    font-size: 14px;
}

/* ===== 贡献者墙 ===== */
.contributors-area {
    padding: 0 30px 60px;
}

.contributors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.contributor-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contributor-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.contributor-card .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #667eea;
}

.contributor-card .name {
    font-size: 14px;
    font-weight: 600;
}

.contributor-card .role {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 5px;
}

/* ===== 联系方式 ===== */
.contact-area {
    padding: 0 30px 60px;
}

.contact-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #00d9ff;
}

.contact-card .contact-item {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 15px 30px;
    border-radius: 8px;
    margin: 10px;
    transition: background 0.3s ease;
}

.contact-card .contact-item:hover {
    background: rgba(255,255,255,0.2);
}

.contact-card .contact-item a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.contact-card .contact-item .icon {
    font-size: 24px;
    margin-right: 10px;
}

/* ===== 底部版权 ===== */
.footer {
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%);
    color: #a0a0a0;
    text-align: center;
    padding: 30px;
    font-size: 14px;
}

.footer a {
    color: #00d9ff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===== 响应式适配 ===== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .navbar .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .header h1 {
        font-size: 22px;
    }
    
    .header p {
        font-size: 14px;
    }
    
    .download-area {
        padding: 40px 20px;
    }
    
    .download-btn {
        padding: 18px 40px;
        font-size: 18px;
        width: 100%;
        max-width: 300px;
    }
    
    .intro-area,
    .contributors-area,
    .contact-area {
        padding: 0 20px 40px;
    }
    
    .intro-content {
        padding: 20px;
        font-size: 14px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .contributors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 18px;
    }
    
    .contributors-grid {
        grid-template-columns: 1fr;
    }
}
