/* CHXWAI 茶海虾王 V3.1 - 官网主样式表 */

/* ===== CSS 变量定义 ===== */
:root {
    --primary-color: #00d9ff;
    --secondary-color: #7b2cbf;
    --accent-color: #f72585;
    --dark-bg: #0f0f1a;
    --card-bg: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --success: #00ff88;
    --warning: #ffc107;
    --gradient-main: linear-gradient(135deg, #00d9ff 0%, #7b2cbf 100%);
    --gradient-dark: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    --shadow-card: 0 8px 32px rgba(0, 217, 255, 0.1);
    --shadow-hover: 0 12px 48px rgba(0, 217, 255, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== 导航栏 ===== */
.navbar {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .logo-icon {
    font-size: 28px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

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

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* ===== 英雄区 ===== */
.hero {
    padding: 150px 30px 100px;
    text-align: center;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero .version-badge {
    display: inline-block;
    background: rgba(0, 217, 255, 0.15);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(0, 217, 255, 0.1);
}

/* ===== 通用容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 30px;
}

/* ===== 章节标题 ===== */
.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 60px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-top: -40px;
    margin-bottom: 60px;
}

/* ===== 特性卡片 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 35px;
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.feature-card .icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== 截图展示区 ===== */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.screenshot-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: all 0.3s ease;
}

.screenshot-card:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-card .caption {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.screenshot-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(123, 44, 191, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 16px;
}

/* ===== 架构展示 ===== */
.architecture-diagram {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(0, 217, 255, 0.1);
    margin-bottom: 40px;
}

.arch-layer {
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.arch-layer h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.arch-layer ul {
    list-style: none;
    padding-left: 20px;
}

.arch-layer li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    position: relative;
}

.arch-layer li::before {
    content: '▸';
    position: absolute;
    left: -20px;
    color: var(--primary-color);
}

/* ===== 安装步骤 ===== */
.install-steps {
    counter-reset: step;
}

.install-step {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 217, 255, 0.1);
    position: relative;
    padding-left: 80px;
}

.install-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 25px;
    top: 25px;
    width: 40px;
    height: 40px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.install-step h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.install-step p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.install-step code {
    display: block;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    font-family: "Consolas", "Monaco", monospace;
    color: var(--primary-color);
    overflow-x: auto;
    margin: 10px 0;
}

/* ===== 下载卡片 ===== */
.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.download-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(0, 217, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.download-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.download-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(123, 44, 191, 0.05) 100%);
}

.download-card .version {
    font-size: 48px;
    font-weight: bold;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.download-card .tag {
    display: inline-block;
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 20px;
}

.download-card .size {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 25px;
}

.download-card .features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.download-card .features-list li {
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.download-card .features-list li::before {
    content: '✓';
    color: var(--success);
    margin-right: 10px;
}

.download-card .hash {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 11px;
    color: var(--text-secondary);
    word-break: break-all;
    margin-bottom: 20px;
}

/* ===== 关于团队 ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: all 0.3s ease;
}

.team-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.team-card .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-main);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.team-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.team-card .role {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 15px;
}

.team-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

/* ===== 时间线 ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gradient-main);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50px;
    position: relative;
    margin-bottom: 40px;
    width: 50%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50px;
    margin-left: 50%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--dark-bg);
}

.timeline-item:nth-child(even)::before {
    left: -8px;
    right: auto;
}

.timeline-content {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 217, 255, 0.1);
    max-width: 350px;
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--card-bg);
    padding: 60px 30px 30px;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .navbar-container {
        padding: 15px 20px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 120px 20px 80px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero .subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .container {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .download-cards {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-right: 0;
        padding-left: 50px;
        margin-left: 0;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 50px;
        margin-left: 0;
    }
    
    .timeline-item::before {
        left: 12px;
        right: auto;
    }
    
    .timeline-item:nth-child(even)::before {
        left: 12px;
    }
    
    .install-step {
        padding-left: 70px;
    }
    
    .install-step::before {
        left: 15px;
        top: 20px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* ===== 工具类 ===== */
.text-center { text-align: center; }
.text-gradient { 
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
