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

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

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

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px 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: 15px 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

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

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

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

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

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #6a89cc 0%, #4a69bd 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 50px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* 主要内容区域 */
main {
    flex: 1;
}

/* 内容区域 */
.intro-section, .featured-section, .notice-section {
    margin-bottom: 60px;
}

.intro-section h2, .featured-section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.featured-section h2 i {
    color: #f39c12;
    margin-right: 10px;
}

.intro-section p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

/* 卡片网格 */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* 轮播图 */
.carousel {
    position: relative;
    margin-top: 30px;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    background: #000;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease;
}

.carousel-slide {
    position: relative;
    min-width: 100%;
    height: 420px;
    display: flex;
    align-items: flex-end;
    color: #fff;
}

.carousel-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.carousel-caption {
    position: relative;
    z-index: 1;
    padding: 24px 28px 32px;
    width: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
}

.carousel-caption h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.carousel-caption p {
    color: #e8e8e8;
    margin-bottom: 14px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.6);
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.1);
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

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

.card-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.read-more:hover {
    border-bottom: 1px solid #3498db;
}

/* 通知区域 */
.notice {
    background: #e8f4fc;
    border-left: 4px solid #3498db;
    padding: 25px;
    border-radius: 5px;
}

.notice h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.notice h3 i {
    margin-right: 10px;
    color: #3498db;
}

.notice p {
    color: #555;
}

.page-hero {
    background: linear-gradient(135deg, #4b79a1 0%, #283e51 100%);
    color: #fff;
    padding: 70px 0;
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 16px;
}

.page-subtitle {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-top: 20px;
}

.article-item {
    background: #fff;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.article-item h2 {
    margin: 12px 0;
}

.article-item h2 a {
    color: #2c3e50;
    text-decoration: none;
}

.article-item h2 a:hover {
    color: #3498db;
}

.article-meta {
    color: #888;
    font-size: 0.95rem;
}

.article-detail {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.article-detail h1 {
    margin-bottom: 12px;
    color: #2c3e50;
}

.article-body {
    margin-top: 16px;
    color: #444;
    line-height: 1.9;
}

.article-body p + p {
    margin-top: 14px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.info-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

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

.info-card p {
    color: #555;
    line-height: 1.8;
}

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
}

.footer p {
    margin: 10px 0;
    opacity: 0.8;
}

.beian {
    font-size: 0.9rem;
    color: #95a5a6;
}

.beian a {
    color: #fbfafc;
    text-decoration: none;
    transition: color 0.3s, opacity 0.3s;
}

.beian a:hover {
    color: #ffffff;
    opacity: 0.9;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s, opacity 0.3s;
}

.footer a:hover {
    color: #ffffff;
    opacity: 0.9;
}

.contact {
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        padding: 15px;
    }
    
    .nav-links {
        margin-top: 15px;
    }
    
    .nav-links li {
        margin: 0 10px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 60px 0;
    }

    .carousel-slide {
        height: 320px;
    }
}