/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: #3273dc;
    transition: all 0.3s ease;
}

a:hover {
    color: #1c57b5;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    background-color: #3273dc;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #1c57b5;
    color: white;
}

/* 头部导航 */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 5px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    flex-shrink: 0;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    color: #3273dc;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.logo-text p {
    color: #666;
    font-size: 11px;
    margin: 0;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #444;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #3273dc;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #3273dc;
}

nav ul li a:hover:after {
    width: 100%;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #4a90e2, #3273dc);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* 特色区域卡片 */
.featured-sections {
    padding: 80px 0;
}

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

.section-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.section-card i {
    font-size: 40px;
    color: #3273dc;
    margin-bottom: 20px;
}

.section-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.section-card p {
    color: #666;
    margin-bottom: 20px;
}

/* 最新文章区域 */
.latest-articles {
    background-color: #f1f5f9;
    padding: 80px 0;
}

.latest-articles h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 700;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

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

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

.article-img {
    height: 200px;
    background-color: #eaeaea;
    background-size: cover;
    background-position: center;
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

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

.read-more {
    font-weight: 500;
    display: inline-block;
    position: relative;
}

.read-more:after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.read-more:hover:after {
    transform: translateX(5px);
}

/* 页脚区域 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

.footer-logo p {
    opacity: 0.7;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-links h3:after,
.footer-contact h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: #3273dc;
}

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

.footer-links ul li a {
    color: #ddd;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 15px;
}

.footer-contact i {
    margin-right: 10px;
}

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

.social-icons a {
    color: white;
    font-size: 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-icons a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.7;
}

/* 动画效果 */
.animate-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 移动端菜单 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    nav {
        flex-basis: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin-top: 20px;
    }
    
    nav.mobile-open {
        max-height: 300px;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 30px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .featured-sections,
    .latest-articles {
        padding: 60px 0;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
} 