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

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

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

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

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

.logo h1 {
    color: #2c7be5;
    font-size: 1.8rem;
}

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

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2c7be5;
}

/* 横幅区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background: #fff;
    color: #667eea;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* 服务特色 */
.services {
    padding: 80px 0;
    background: #f8f9fa;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.service-card h3 {
    color: #2c7be5;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* 最新文章 */
.latest-articles {
    padding: 80px 0;
}

.latest-articles h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.article-list {
    display: grid;
    gap: 30px;
}

.article-item {
    background: white;
    padding: 30px;
    border-left: 4px solid #2c7be5;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.article-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

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

.read-more {
    color: #2c7be5;
    text-decoration: none;
    font-weight: 500;
}

/* 视频区域 */
.video-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.video-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

.video-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-placeholder {
    background: #ddd;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.video-placeholder:hover {
    background: #ccc;
}

.video-placeholder span {
    font-size: 1.2rem;
    color: #666;
}

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

.btn-secondary {
    display: inline-block;
    background: #2c7be5;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #1a5bb5;
}

/* 联系方式 */
.contact {
    padding: 80px 0;
    background: #2c3e50;
    color: white;
}

.contact h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.contact-item h3 {
    color: #2c7be5;
    margin-bottom: 15px;
}

/* 页脚 */
.footer {
    background: #1a252f;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* 文章网格 */
.articles-section {
    padding: 80px 0;
}

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

.article-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.article-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

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

/* 视频卡片 */
.videos-section {
    padding: 80px 0;
}

.video-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-player {
    margin-bottom: 15px;
}

.video-placeholder-large {
    background: #ddd;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.video-placeholder-large:hover {
    background: #ccc;
}

.video-placeholder-large span {
    font-size: 1.5rem;
    color: #666;
}

.video-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.video-card p {
    color: #666;
    margin-bottom: 15px;
}

.video-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .service-grid,
    .article-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}
