/* 基础样式 */
:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --text-light: #7f8c8d;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
    padding-top: 0;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--dark-color);
}

img {
    max-width: 100%;
    height: auto;
}

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

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background-color: var(--dark-color);
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-large {
    padding: 12px 24px;
    font-size: 16px;
}

.btn.accent {
    background-color: var(--accent-color);
}

/* 头部样式 */
header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: static;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}
/* Logo样式优化 */
.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 0; /* 移除原有右间距 */
}
.site-logo {
    width: 80px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
/* 标题组优化 */
.title-group {
    flex: 1; /* 自动填充剩余空间 */
    min-width: 0; /* 允许内容收缩但保持完整 */
    padding-top: 0; /* 移除原有顶部间距 */
}
.header-content h1 {
    color: var(--dark-color);
    margin-bottom: 5px;
    white-space: nowrap; /* 防止标题换行 */
    overflow: hidden;
    text-overflow: ellipsis; /* 过长时显示省略号 */
}
.subtitle {
    color: var(--text-light);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 导航栏保持右对齐 */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: #2c3e50;
}
.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}
.main-nav li {
    position: relative;
}
.main-nav a {
    display: block;
    padding: 15px 20px;
    color: white;
    font-weight: 500;
}
.main-nav a:hover,
.main-nav a.active {
    background-color: var(--primary-color);
}
/* 响应式调整 */
@media (min-width: 992px) {
    .site-logo {
        width: 100px;
        max-height: 80px;
    }
    
    /* 大屏幕增加Logo与标题间距 */
    .header-content {
        gap: 15px;
    }
}
/* 移动端适配 */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .title-group {
        flex: 1 0 calc(100% - 90px); /* 防止标题被压缩 */
    }
    
    .main-nav {
        width: 100%;
        margin: 10px 0 0;
        order: 1; /* 导航栏换行显示 */
    }
}

.main-nav a:hover,
.main-nav a.active {
    background-color: var(--primary-color);
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    margin: 1rem 0 2rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #4CAF50;
    margin-right: 0.5rem;
}

.breadcrumb span {
    margin-left: 0.5rem;
}

/* 资源页面标题 */
.resources-header {
    text-align: center;
    margin-bottom: 2rem;
}

.resources-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.resources-header p {
    font-size: 1.1rem;
    color: #666;
}

/* 高级筛选区域 */
.advanced-filter {
    margin-bottom: 2rem;
}

.filter-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: #555;
    font-size: 0.95rem;
}

.filter-select {
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #333;
    background-color: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1em;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background: #e8f5e9;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #2e7d32;
}

.filter-tag i {
    margin-left: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

.filter-tag:hover i {
    color: #e53935;
}

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

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 5px;
}

.page-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: #f5f5f5;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-link.active {
    background: #4CAF50;
    color: white;
}

.page-link.next {
    width: auto;
    padding: 0 15px;
}

.page-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    color: #666;
}

/* 资源页面布局调整 */
.resources-section {
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-link {
        width: 35px;
        height: 35px;
    }
}

/* 主要内容区域 */
.intro {
    text-align: center;
    margin-bottom: 30px;
}

.intro h2 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.search-box {
    display: flex;
    max-width: 500px;
    margin: 20px auto;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 16px;
}

.search-box button {
    padding: 0 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
}

.search-box button:hover {
    background-color: var(--dark-color);
}

/* 特色部分卡片 */
.featured-sections {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    gap: 20px;
}

.section-card {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

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

.section-card.accent {
    background-color: var(--secondary-color);
    color: white;
}

.section-card.accent .btn {
    background-color: white;
    color: var(--secondary-color);
}

.section-card.accent .btn:hover {
    background-color: var(--dark-color);
    color: white;
}

.section-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-card.accent .section-icon {
    color: white;
}

.section-card h3 {
    margin-bottom: 10px;
}

/* 核心概念网格 */
.section-title {
    text-align: center;
    margin: 40px 0 20px;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto;
}

.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

a.concept-card { /* 增加a元素限定 */
    display: block;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
}
/* 修复：直接子元素选择器 */
a.concept-card > .concept-header { /* 使用>确保直接子元素 */
    display: flex;
    align-items: center;
    padding: 15px;
    background: #3498db;
    color: white;
    transition: background-color 0.3s ease;
}
a.concept-card > .concept-content { /* 使用>确保直接子元素 */
    padding: 15px;
    transition: all 0.3s ease;
}
/* 悬停效果修复 */
a.concept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
a.concept-card:hover > .concept-header {
    background: #2980b9;
}
a.concept-card:hover > .concept-content {
    background: #f8f9fa;
}
/* 数字标签修复 */
a.concept-card > .concept-header > span {
    display: inline-flex;
    width: 30px;
    height: 30px;
    background: white;
    color: #3498db;
    border-radius: 50%;
    margin-right: 10px;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: all 0.3s ease;
}
a.concept-card:hover > .concept-header > span {
    transform: scale(1.1);
    background: #e74c3c;
    color: white;
}
/* 资源计数修复 */
a.concept-card .resource-count {
    display: flex;
    justify-content: space-between;
    color: #7f8c8d;
    font-size: 12px;
    margin-top: 10px;
}
a.concept-card .resource-count i {
    margin-right: 5px;
    transition: all 0.2s ease;
}
a.concept-card:hover .resource-count i {
    color: #3498db;
    transform: translateX(2px);
}
/* 底部装饰线 */
a.concept-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #e74c3c);
    transition: width 0.3s ease;
}
a.concept-card:hover::after {
    width: 100%;
}


/* 精品资源网格 */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.premium-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* 确保卡片高度一致 */
}

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

.premium-badge {
position: absolute;
top: -10px;
right: -10px;
background-color: var(--accent-color);
color: white;
padding: 5px 10px;
border-radius: 20px;
font-size: 12px;
font-weight: bold;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.premium-icon {
font-size: 2.5rem;
color: var(--secondary-color);
margin-bottom: 1rem;
}

.premium-card h3 {
font-size: 1.3rem;
margin-bottom: 1rem;
color: var(--dark-color);
}

.premium-card p {
font-size: 0.95rem;
color: var(--text-light);
margin-bottom: 1.5rem;
flex-grow: 1; /* 让描述文本占据剩余空间 */
}

/* 页脚样式 */
footer {
background-color: var(--dark-color);
color: white;
padding: 40px 0 20px;
}

.footer-content {
width: 90%;
max-width: 1200px;
margin: 0 auto;
}

.footer-links {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-bottom: 30px;
}

.footer-column {
flex: 1;
min-width: 200px;
margin-bottom: 20px;
padding: 0 15px;
}

.footer-column h4 {
margin-bottom: 15px;
font-size: 18px;
position: relative;
padding-bottom: 10px;
}

.footer-column h4::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 40px;
height: 2px;
background-color: var(--primary-color);
}

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

.footer-column li {
margin-bottom: 8px;
}

.footer-column a {
color: #bdc3c7;
font-size: 14px;
}

.footer-column a:hover {
color: white;
}

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

.social-icons a {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
background-color: rgba(255, 255, 255, 0.1);
border-radius: 50%;
margin-right: 10px;
color: white;
transition: var(--transition);
}

.social-icons a:hover {
background-color: var(--primary-color);
transform: translateY(-3px);
}

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

/* 响应式设计 */
@media (max-width: 768px) {
.featured-sections {
flex-direction: column;
}

.section-card {
    margin-bottom: 20px;
}
.main-nav ul {
    flex-direction: column;
    text-align: center;
}
.footer-links {
    flex-direction: column;
}
.footer-column {
    margin-bottom: 30px;
}
}

/* 概念详情页样式 */
.concept-intro {
background-color: white;
padding: 30px;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
margin-bottom: 30px;
}

.concept-intro h2 {
color: var(--dark-color);
margin-bottom: 15px;
}

.concept-tags {
margin-top: 15px;
}

.tag {
display: inline-block;
padding: 4px 10px;
background-color: var(--light-color);
border-radius: 20px;
font-size: 12px;
margin-right: 8px;
color: var(--text-light);
}

/* 资源标签页 */
.resource-tabs {
    margin-bottom: 30px;
}

.tab-header {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 精品资源标题 */
.premium-resources h3 {
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
    font-size: 1.3rem;
}

/* 资源筛选 */
.resource-filter {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin-bottom: 20px;
padding: 15px;
background-color: #f8f9fa;
border-radius: var(--border-radius);
}

.filter-group {
display: flex;
align-items: center;
}

.filter-group label {
margin-right: 10px;
font-size: 14px;
color: var(--text-light);
}

.filter-group select {
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: var(--border-radius);
font-size: 14px;
background-color: white;
}

/* 资源列表 */
.resource-list {
margin-top: 20px;
}

.resource-category {
margin-bottom: 30px;
}

.resource-category h3 {
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
color: var(--dark-color);
display: flex;
align-items: center;
}

.resource-category h3 i {
margin-right: 10px;
color: var(--primary-color);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.resource-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* 确保卡片高度一致 */
}

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

.resource-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.resource-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.resource-type {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.resource-type.video {
    background: #e74c3c;
}

.resource-type.document {
    background: #3498db;
}

.resource-type.presentation {
    background: #9b59b6;
}

.resource-type.image {
    background: #2ecc71;
}

.resource-type.premium {
    background: #f39c12;
}

.resource-info {
    padding: 15px;
    flex-grow: 1; /* 让内容区域自动填充剩余空间 */
    display: flex;
    flex-direction: column;
}

.resource-info h4 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.resource-info p {
    margin: 0 0 15px;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
    flex-grow: 1; /* 让描述文本占据剩余空间 */
}

.resource-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: auto; /* 将元数据推到底部 */
}

.resource-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.resource-meta i {
    color: var(--primary-color);
}

.resource-actions {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    margin-top: auto; /* 确保操作按钮在底部 */
}

.load-more {
    text-align: center;
    margin: 2rem 0;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.2rem;
}

/* 核心概念和精品资源区域样式 */
.core-concepts-section,
.premium-resources-section {
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* 精品资源卡片样式 */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.premium-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* 确保卡片高度一致 */
}

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

.premium-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.premium-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.premium-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1; /* 让描述文本占据剩余空间 */
}

.premium-count {
    display: inline-block;
    background: #f5f5f5;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 上传区域样式 */
.upload-section {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 3rem 0;
    margin: 3rem 0;
    color: white;
    text-align: center;
}

.upload-content {
    max-width: 600px;
    margin: 0 auto;
}

.upload-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.upload-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.upload-content .btn {
    background: white;
    color: #3498db;
}

.upload-content .btn:hover {
    background: #f5f5f5;
}

/* 页脚样式 */
footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #ccc;
}

.footer-column a:hover {
    color: white;
}

.footer-column p {
    color: #ccc;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

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

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
    font-size: 0.9rem;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式调整 */
@media (max-width: 992px) {
    .carousel-container {
        height: 300px;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .featured-sections {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .fixed-header .title-group {
        display: none;
    }
    
    .carousel-container {
        height: 250px;
    }
    
    .resources-grid,
    .premium-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .filter-container {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    #filter-btn {
        width: 100%;
    }
    
    .footer-links {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .carousel-container {
        height: 200px;
    }
    
    .carousel-caption h2 {
        font-size: 1.2rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .resources-grid,
    .premium-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* 移动端导航菜单 */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #4CAF50;
    color: white;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: #2c3e50;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 20px;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    .main-nav a {
        padding: 15px 0;
        border-bottom: 1px solid #34495e;
        width: 100%;
    }
    
    .search-container {
        width: 100%;
        margin: 20px 0 0;
        max-width: none;
    }
}

/* 模块简介区样式 */
.modules-intro {
    margin: 3rem 0;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.module-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    text-decoration: none;
    color: var(--text-color);
}

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

.module-icon {
    width: 80px;
    height: 80px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.module-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.module-card p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    min-height: 3rem;
}

.module-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.module-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.module-stats i {
    color: var(--primary-color);
}

/* 精选资源展示区样式 */
.featured-resources {
    margin: 3rem 0;
}

.resources-tabs {
    margin-top: 2rem;
}

.view-more {
    text-align: center;
    margin-top: 2rem;
}

/* 资源标签样式 */
.resource-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.resource-badge.hot {
    background: #e74c3c;
}

.resource-badge.new {
    background: #2ecc71;
}

/* 社区讨论样式 */
.discussions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 1rem;
    margin-bottom: 2rem; /* 添加底部间距 */
}

.discussion-item {
    display: flex;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.discussion-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.discussion-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.discussion-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discussion-content {
    flex: 1;
}

.discussion-content h4 {
    font-size: 1.2rem;
    margin: 0 0 0.8rem;
    color: var(--dark-color);
}

.discussion-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.discussion-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.discussion-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.discussion-meta i {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .discussion-item {
        flex-direction: column;
    }
    
    .discussion-avatar {
        margin: 0 auto 1rem;
    }
    
    .discussion-content {
        text-align: center;
    }
    
    .discussion-meta {
        justify-content: center;
    }
}

/* 页面滚动容器样式 */
.page-scroll-container {
    position: relative;
    width: 100%;
    overflow: visible;
}

.scroll-page {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: visible; /* 允许内容溢出 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 让内容从顶部开始 */
    padding-bottom: 60px; /* 底部间距 */
}

.page-hero {
    height: 100vh;
    padding-top: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-modules, 
.page-regular-resources, 
.page-premium-resources, 
.page-community {
    padding-top: 140px;
    padding-bottom: 80px; /* 增加底部间距 */
    min-height: auto; /* 允许高度自适应内容 */
    height: auto;
}

.page-modules {
    background-color: #f5f9fd;
}

.page-premium-resources {
    background-color: #f0f7fc;
}

.page-community {
    background-color: #edf5fb;
}

.page-upload {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

/* 滚动指示器样式 */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--primary-color);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

.scroll-indicator span {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}

.scroll-indicator i {
    font-size: 24px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 页面导航指示器样式 */
.page-navigation {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.page-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-navigation li {
    width: 12px;
    height: 12px;
    margin: 15px 0;
    position: relative;
    cursor: pointer;
}

.page-navigation li::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.page-navigation li.active::before {
    background: var(--primary-color);
    transform: scale(1.3);
}

.page-navigation li span {
    position: absolute;
    right: 25px;
    top: 0;
    white-space: nowrap;
    font-size: 14px;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.page-navigation li:hover span {
    opacity: 1;
    transform: translateX(0);
}

/* 区块标题样式 */
.section-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* 轮播图样式 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 30px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 3;
    width: 80%;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    transform: translateY(-50%);
}

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

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .indicator.active {
    background-color: white;
    transform: scale(1.2);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

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

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* 页面滚动样式 */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.scroll-page {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* 页面导航指示器样式 */
.page-navigation {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.page-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-navigation li {
    width: 12px;
    height: 12px;
    margin: 15px 0;
    position: relative;
    cursor: pointer;
}

.page-navigation li::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.page-navigation li.active::before {
    background: var(--primary-color);
    transform: scale(1.3);
}

.page-navigation li span {
    position: absolute;
    right: 25px;
    top: 0;
    white-space: nowrap;
    font-size: 14px;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.page-navigation li:hover span {
    opacity: 1;
    transform: translateX(0);
}

/* 滚动指示器样式 */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--primary-color);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

.scroll-indicator span {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}

.scroll-indicator i {
    font-size: 24px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* AI智能页面样式 */
.page-ai-features {
    padding-top: 140px;
    padding-bottom: 80px;
    background-color: #f0f7fc;
    min-height: auto;
    height: auto;
}

/* AI智能介绍区样式 */
.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 2rem 0;
}

.ai-feature-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.ai-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

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

.ai-feature-card h4 {
    padding: 15px 20px 10px;
    font-size: 1.2rem;
    margin: 0;
    color: var(--dark-color);
}

.ai-feature-card p {
    padding: 0 20px 20px;
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    flex-grow: 1;
}

.section-subtitle {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .ai-features-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .ai-features-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 576px) {
    .ai-features-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-feature-img {
        height: 180px;
    }
}

/* 导航栏样式优化 */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: #2c3e50;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: block;
    padding: 15px 20px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-container {
    display: flex;
    align-items: center;
    width: 300px;
    margin-left: auto;
}

.search-container input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
    min-width: 200px;
}

.search-container button {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-container button:hover {
    background-color: var(--primary-color-dark);
}

.login-register {
    display: flex;
    gap: 10px;
    margin-left: auto;
    padding-right: 15px;
    margin-right: 0;
}

.login-register .btn {
    padding: 6px 15px;
    font-size: 14px;
    border-radius: 4px;
    font-weight: 500;
}

.login-register .btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.login-register .btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .page-hero {
        height: auto;
        min-height: 100vh;
    }
    
    .scroll-page {
        height: auto;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .title-group {
        flex: 1 0 calc(100% - 90px);
    }
    
    .main-nav {
        flex-direction: column;
    }
    
    .main-nav ul {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .search-container {
        width: 100%;
        margin: 10px 0;
    }
    
    .login-register {
        position: static;
        text-align: center;
        margin: 10px 0;
    }
}