/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 导航栏 */
.navbar {
    background-color: #1a1a2e;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo a {
    color: #fff;
    text-decoration: none;
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background-color: #00d4ff;
    color: #1a1a2e;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.btn-primary:hover {
    background-color: #00a8cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #fff;
    padding: 12px 30px;
    border: 2px solid #00d4ff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #00d4ff;
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

/* 概览区域 */
.overview {
    padding: 100px 0;
    background-color: #fff;
}

.overview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1a1a2e;
}

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

.card {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 80px;
    height: 80px;
    background-color: #1a1a2e;
    color: #00d4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.card p {
    color: #666;
}

/* 热门文章 */
.popular-articles {
    padding: 100px 0;
    background-color: #f5f5f5;
}

.popular-articles h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1a1a2e;
}

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

.article-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.article-content h3 a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: #00d4ff;
}

.article-content p {
    color: #666;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #999;
}

/* 数据概览 */
.data-overview {
    padding: 100px 0;
    background-color: #1a1a2e;
    color: #fff;
    text-align: center;
}

.data-overview h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.data-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.data-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.data-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.data-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #00d4ff;
}

.data-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.data-change {
    font-size: 1rem;
    font-weight: 600;
}

.data-change.positive {
    color: #4CAF50;
}

.data-change.negative {
    color: #F44336;
}

/* 订阅区域 */
.subscribe {
    padding: 100px 0;
    background-color: #fff;
    text-align: center;
}

.subscribe h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.subscribe p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.subscribe-form input:focus {
    border-color: #00d4ff;
}

/* 页脚 */
.footer {
    background-color: #1a1a2e;
    color: #fff;
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #00d4ff;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 15px;
}

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

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00d4ff;
}

.footer-section ul li i {
    margin-right: 10px;
    color: #00d4ff;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #00d4ff;
    color: #1a1a2e;
    transform: translateY(-3px);
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #1a1a2e;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-primary, .btn-secondary {
        display: block;
        margin: 10px auto;
        width: 80%;
        text-align: center;
    }

    .overview h2,
    .popular-articles h2,
    .data-overview h2,
    .subscribe h2 {
        font-size: 2rem;
    }

    .subscribe-form {
        flex-direction: column;
        align-items: center;
    }

    .subscribe-form input {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 80px 0;
    }

    .overview,
    .popular-articles,
    .data-overview,
    .subscribe {
        padding: 60px 0;
    }

    .card {
        padding: 30px;
    }

    .article-content {
        padding: 20px;
    }
}

/* 文章页面样式 */
.article-page {
    padding: 60px 0;
    background-color: #fff;
}

.article-header {
    text-align: center;
    margin-bottom: 60px;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.article-meta {
    margin-bottom: 30px;
    color: #999;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.article-content p {
    margin-bottom: 20px;
    color: #333;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
    color: #333;
}

/* 数据页面样式 */
.data-page {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.data-page h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1a1a2e;
}

.data-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.data-section h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #1a1a2e;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #1a1a2e;
}

.data-table tr:hover {
    background-color: #f5f5f5;
}

.chart-container {
    margin-top: 30px;
    height: 400px;
}

/* 关于页面样式 */
.about-page {
    padding: 60px 0;
    background-color: #fff;
}

.about-page h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1a1a2e;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-content h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.about-content p {
    margin-bottom: 20px;
    color: #333;
}

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

.team-member {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.team-member h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.team-member p {
    color: #666;
    margin-bottom: 0;
}

/* 联系页面样式 */
.contact-page {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.contact-page h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1a1a2e;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    background-color: #1a1a2e;
    color: #fff;
    padding: 40px;
    border-radius: 10px;
}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #00d4ff;
}

.contact-info p {
    margin-bottom: 20px;
    color: #ccc;
}

.contact-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.contact-info ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info ul li i {
    margin-right: 15px;
    color: #00d4ff;
    font-size: 1.2rem;
}

.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #1a1a2e;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a2e;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #00d4ff;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    background-color: #00d4ff;
    color: #1a1a2e;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background-color: #00a8cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}