/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s;
}

a:hover {
    color: #0056b3;
}

ul {
    list-style: none;
}

/* 顶部导航 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    font-size: 24px;
    font-weight: bold;
    font-size: 1.8rem;
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    color: white;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav a:hover,
.nav a.active {
    background: rgba(255,255,255,0.2);
}

/* Hero 区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    background: #f8f9fa;
    color: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: #007bff;
    color: white;
}

.btn-secondary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

/* 软件特色 */
.features {
    padding: 80px 20px;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s;
}

.feature-item:hover {
    background: #f8f9fa;
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.feature-item p {
    color: #666;
    line-height: 1.8;
}

/* 热门软件 */
.popular-software {
    padding: 80px 20px;
    background: #f8f9fa;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.software-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.software-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.software-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.software-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.software-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.software-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.version {
    color: #666;
    font-size: 14px;
}

.text-center {
    text-align: center;
}

/* 统计数据 */
.stats {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* 分类列表 */
.categories-list {
    padding: 80px 20px;
    background: white;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.category-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.category-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.category-count {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
}

/* 关于页面 */
.about-content {
    padding: 60px 20px;
    background: white;
}

.about-section {
    max-width: 800px;
    margin: 0 auto 60px;
}

.about-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.about-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.mission-list {
    list-style: none;
    padding-left: 0;
}

.mission-list li {
    color: #666;
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.8;
}

.mission-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.feature-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.feature-box p {
    color: #666;
    margin: 0;
}

.license-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.license-info p {
    margin-bottom: 10px;
}

.license-info strong {
    color: #333;
}

/* 联系页面 */
.contact-content {
    padding: 60px 20px;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
    margin-bottom: 80px;
}

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.contact-info > p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-icon {
    font-size: 32px;
    margin-right: 20px;
}

.contact-detail h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #666;
}

.contact-detail p {
    color: #333;
    font-size: 18px;
    margin: 0;
}

.contact-form h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
}

.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
    text-align: center;
}

.faq-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.faq-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 底部 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: #bdc3c7;
    transition: color 0.3s;
}

.footer-section ul a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

.footer-bottom p {
    color: #bdc3c7;
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }

    .nav ul {
        gap: 10px;
    }

    .nav a {
        font-size: 14px;
        padding: 6px 12px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .software-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header h1 {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
