/* CSS 重置 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 基础样式 */
:root {
    --primary-color: #4c86d9;
    --secondary-color: #3b4c7c;
    --accent-color: #ff7a45;
    --text-color: #333333;
    --text-light-color: #666666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* 布局和组件样式 */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* 导航栏 */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand a {
    text-decoration: none;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 24px;
    font-weight: bold;
}

.brand-slogan {
    font-size: 14px;
    color: #666;
}

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

.site-nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

.site-nav a:hover {
    color: #3498db;
}

/* 英雄区域 */
.hero-banner {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: #fff;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #fff;
    color: #3498db;
}

.btn-primary:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: #3498db;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

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

.stat-number {
    font-size: 36px;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* 脚本推荐区域 */
.featured-scripts {
    padding: 80px 0;
    background-color: #fff;
}

.scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.script-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.script-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.script-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.script-link {
    display: inline-block;
    margin-top: 20px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

/* 镜像站特点 */
.mirror-info {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.mirror-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

/* 快速上手指南 */
.quick-start {
    padding: 80px 0;
    background-color: #fff;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #3498db;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
}

/* 社区区域 */
.community-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.community-content {
    max-width: 600px;
    margin: 0 auto;
}

.community-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.community-link {
    padding: 10px 20px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.community-link:hover {
    background: #2980b9;
}

/* 页脚 */
.site-footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.link-group h4 {
    margin-bottom: 20px;
    color: #3498db;
}

.link-group ul {
    list-style: none;
}

.link-group a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.link-group a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    .site-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-top: 20px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
} 