/* 全局变量 */
:root {
    --primary-color: #333;
    --secondary-color: #666;
    --accent-color: #007AFF;
    --accent-gold: #D4AF37;
    --gradient-blue: linear-gradient(135deg, #007AFF 0%, #00C6FF 100%);
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --nav-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --text-color: #666;
    --border-color: #eee;
    --hover-color: #ff3b30;
    --bg-color: #f8f9fa;
}

/* 全局基础样式 */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

/* 容器基础样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.content-wrapper {
    padding-top: 84px; /* 导航栏高度 + 间距 */
}

/* 响应式基础布局 */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0;
    }
}

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

/* 基础布局和排版 */
body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--background-color);
    color: var(--primary-color);
    line-height: 1.6;
    overscroll-behavior: none;
}

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

/* 基础文本样式 */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

/* 基础布局类 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 40px 0;
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #e2e8f0;
        --secondary-color: #a0aec0;
        --background-color: #1a202c;
        --card-background: #2d3748;
    }
}

/* 响应式布局 */
@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 30px 0;
    }
}

/* 卡片基础样式 */
.card {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin: 20px auto;
}

/* 文章列表基础样式 */
.article-list {
    width: 100%;
    margin: 0;
    padding: 0;
}

.article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* 统计数字样式 */
.stat-item {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

/* 按钮基础样式 */
.button {
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* 栏目分类区域整体样式 */
.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 栏目卡片样式优化 */
.category-card {
    background: linear-gradient(145deg, #ffffff 0%, #f7fafc 100%);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.01);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 父栏目标题样式优化 */
.parent-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 15px 10px; /* 增加左右内边距 */
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.category-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    letter-spacing: -0.02em;
    padding-left: 5px; /* 增加左边距 */
}

/* 子栏目列表样式优化 */
.subcategories {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 10px; /* 增加左右内边距 */
}

.subcategory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px; /* 增加左右内边距 */
    text-decoration: none;
    color: #4a5568;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.subcategory-item:last-child {
    border-bottom: none;
}

.subcategory-item:hover {
    background: rgba(49, 130, 206, 0.03);
    padding-left: 15px;
    color: #3182ce;
}

.subcategory-name {
    flex: 1;
    margin-right: 25px; /* 增加与数字的间距 */
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding-left: 5px; /* 增加左边距 */
}

/* 文章数量样式优化 */
.article-count {
    font-size: 0.9rem;
    color: #718096;
    padding: 4px 15px; /* 增加左右内边距 */
    min-width: 35px;
    text-align: center;
    opacity: 0.8;
    transition: all 0.3s ease;
    margin-left: auto;
    margin-right: 5px; /* 增加右边距 */
    background: rgba(49, 130, 206, 0.05);
    border-radius: 12px;
}

.parent-category .article-count {
    font-size: 1rem;
    font-weight: 500;
    color: #3182ce;
    padding: 5px 15px;
    margin-right: 5px;
}

/* 卡片装饰效果 */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, 
        rgba(66, 153, 225, 0.05) 0%, 
        rgba(49, 130, 206, 0.02) 100%
    );
    border-radius: 0 20px 0 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

/* 响应式布局优化 */
@media (max-width: 1024px) {
    .categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .categories {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .category-card {
        padding: 25px;
    }

    .subcategory-item {
        padding: 10px 8px;
    }

    .article-count {
        padding: 3px 12px;
        font-size: 0.85rem;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .category-card {
        background: linear-gradient(135deg, 
            rgba(45, 55, 72, 0.8) 0%, 
            rgba(26, 32, 44, 0.9) 100%
        );
    }
    
    .category-name {
        color: #e2e8f0;
    }
    
    .subcategory-item {
        color: #cbd5e0;
        border-bottom-color: rgba(255, 255, 255, 0.06);
    }
    
    .subcategory-item:hover {
        color: #63b3ed;
    }
    
    .article-count {
        color: #a0aec0;
    }
    
    .parent-category .article-count {
        color: #63b3ed;
    }
}

/* 金色强调文本 */
.premium-text {
    color: var(--accent-gold);
    font-weight: 600;
}

/* 渐变按钮 */
.gradient-button {
    background: var(--gradient-blue);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gradient-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,122,255,0.3);
}

/* 移除年份统计的背景 */
.stat-item.year-month {
    background: transparent !important; /* 确保背景透明 */
    box-shadow: none; /* 移除阴影 */
    border: none; /* 移除边框 */
}

/* 保持原创文案的背景样式 */
.stat-item.stat-count {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

/* 动态背景样式 */
.bg-simple { background: linear-gradient(120deg, #f5f5f5, #e0e0e0); }
.bg-elegant { background: linear-gradient(120deg, #b8860b, #daa520); }
.bg-dark { background: linear-gradient(120deg, #2c3e50, #34495e); }
.bg-nature { background: linear-gradient(120deg, #4caf50, #8bc34a); }
.bg-fresh { background: linear-gradient(120deg, #00bcd4, #03a9f4); }
.bg-stars { background: linear-gradient(120deg, #1a237e, #000000); }
.bg-books { background: linear-gradient(120deg, #795548, #8d6e63); }
.bg-grace { background: linear-gradient(120deg, #9c27b0, #673ab7); }
.bg-tech { background: linear-gradient(120deg, #0f2027, #203a43, #2c5364); }
.bg-art { background: linear-gradient(120deg, #ff6b6b, #feca57); }
.bg-ocean { background: linear-gradient(120deg, #1a2980, #26d0ce); }
.bg-forest { background: linear-gradient(120deg, #134e5e, #71b280); }

.recommended-articles {
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.recommended-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    background: linear-gradient(45deg, #2b6cb0, #4299e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    font-weight: 700;
}

.recommended-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommended-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.recommended-item:last-child {
    border-bottom: none;
}

.recommended-link {
    text-decoration: none;
    color: #00bcd4;
    font-weight: 500;
    transition: color 0.3s;
}

.recommended-link:hover {
    color: #0097a7;
}

/* 确保父元素的样式 */
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 列表项样式 */
.article-list {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.article-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.article-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background-color: #e0e0e0;
}

.article-item:hover {
    transform: translateY(-2px);
}

/* 栏目标题样式 */
.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00bcd4;
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 加载更多按钮样式 */
.load-more {
    display: block;
    background: linear-gradient(135deg, #4299e1, #63b3ed);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.2);
    margin: 20px auto;
    text-align: center;
}

.load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.3);
}

.load-more.loading {
    cursor: not-allowed;
    opacity: 0.8;
}

.load-more .loader {
    display: none;
}

.load-more.loading .button-text {
    display: none;
}

.load-more.loading .loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.latest-articles {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.parent-category {
    font-size: 1.2rem;
    color: #2d3748;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.parent-category .article-count {
    opacity: 0;
    transition: opacity 0.5s ease;
    font-size: 0.9rem;
    color: #718096;
    background: rgba(203, 213, 224, 0.3);
    padding: 4px 12px;
    border-radius: 15px;
    min-width: 30px;
    text-align: center;
}

.subcategories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subcategory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    text-decoration: none;
    color: #4a5568;
    background: rgba(237, 242, 247, 0.5);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.subcategory-name {
    flex: 1;
    margin-right: 15px;
}

.subcategory-item .article-count {
    font-size: 0.8rem;
    color: #718096;
    background: rgba(203, 213, 224, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 25px;
    text-align: center;
    margin-left: auto; /* 确保数字靠右对齐 */
}

.subcategory-item:hover {
    background: rgba(237, 242, 247, 0.8);
    transform: translateX(5px);
}

.parent-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.parent-category .article-count {
    font-size: 0.9rem;
    min-width: 30px;
}

.article-list .article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: transparent;
    transition: all 0.3s ease;
    min-height: 48px; /* 确保最小高度，保持一致性 */
}

.article-list .article-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.article-list .article-title {
    flex: 1;
    color: #2d3748;
    font-size: 1rem;
    margin-right: 15px;
    line-height: 1.4;
    display: block; /* 改为 block */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* 强制单行 */
    max-width: calc(100% - 80px); /* 预留数字区域的空间 */
}

.article-list .article-number {
    flex-shrink: 0; /* 防止数字区域被压缩 */
    font-size: 0.9rem;
    color: #718096;
    background: rgba(203, 213, 224, 0.3);
    padding: 4px 12px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
    position: relative;
    min-width: 60px; /* 确保数字区域有固定最小宽度 */
    text-align: center;
}

.article-list .article-number:hover {
    background: rgba(203, 213, 224, 0.5);
}

.article-list .article-number.loading {
    background: rgba(203, 213, 224, 0.5);
    cursor: not-allowed;
}

/* 优化加载状态样式 */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #718096;
    font-size: 0.9rem;
}

.loading-state .loading-spinner {
    margin-right: 10px;
}

/* 添加淡入动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.article-item {
    animation: fadeIn 0.3s ease-out;
}

/* 优化加载更多按钮 */
.load-more {
    position: relative;
    overflow: hidden;
}

.load-more::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.load-more:hover::after {
    left: 100%;
}

/* 优化点击反馈 */
.article-number {
    position: relative;
}

.article-number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(66, 153, 225, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.article-number:active::after {
    width: 100%;
    height: 100%;
}

/* 优化悬停效果 */
.subcategory-item {
    position: relative;
    overflow: hidden;
}

.subcategory-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.subcategory-item:hover::before {
    transform: translateX(100%);
}

/* 父栏目文章数的淡入效果 */
.parent-category .article-count {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 文章数量样式 */
.article-count {
    font-size: 0.9rem;
    color: #718096;
    background: rgba(203, 213, 224, 0.3);
    padding: 4px 12px;
    border-radius: 15px;
    min-width: 30px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    margin-left: auto; /* 确保靠右对齐 */
}

/* 父栏目文章数样式 */
.parent-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 子栏目样式 */
.subcategory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    text-decoration: none;
    color: #4a5568;
    background: rgba(237, 242, 247, 0.5);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.subcategory-name {
    flex: 1;
    margin-right: 15px;
}

/* 数字动画效果 */
.count-animation {
    transition: all 0.3s ease;
}

.count-animation:hover {
    transform: scale(1.1);
    background: rgba(203, 213, 224, 0.5);
}

/* 顶部导航栏样式优化 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; /* 增加导航项之间的间距 */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    z-index: 1000;
}

.top-nav .nav-item {
    position: relative;
}

.top-nav .nav-link {
    color: #2d3748;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 10px 25px; /* 增加内边距使按钮更大 */
    border-radius: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-nav .nav-link:hover {
    color: #3182ce;
    background: rgba(49, 130, 206, 0.05);
    transform: translateY(-1px);
}

/* 子菜单样式优化 */
.top-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border-radius: 12px;
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.top-nav .nav-item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.top-nav .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.top-nav .sub-menu a:hover {
    background: rgba(49, 130, 206, 0.05);
    color: #3182ce;
    padding-left: 25px;
}

/* 添加下拉箭头图标 */
.top-nav .nav-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.top-nav .nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .top-nav {
        padding: 12px 20px;
        gap: 30px;
    }

    .top-nav .nav-link {
        padding: 8px 20px;
        font-size: 1rem;
    }
}

/* 老师和会员卡片布局 */
.teacher-member-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 卡片通用样式 */
.info-card {
    background: linear-gradient(145deg, #ffffff 0%, #f7fafc 100%);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.01);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 老师简介卡片 */
.teacher-intro {
    display: flex;
    flex-direction: column;
}

.teacher-name {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.teacher-title {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.teacher-description {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* 数据统计卡片 */
.stats-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 改为两列布局 */
    gap: 15px;
}

.stat-item {
    background: linear-gradient(145deg,
        rgba(49, 130, 206, 0.05) 0%,
        rgba(66, 153, 225, 0.08) 100%
    );
    border-radius: 16px;
    padding: 18px 15px; /* 稍微增加垂直内边距 */
    text-align: center;
    border: 1px solid rgba(66, 153, 225, 0.1);
}

.stat-item .number {
    font-size: 1.6rem; /* 稍微增大数字 */
    font-weight: 700;
    color: #3182ce;
    margin-bottom: 6px;
    line-height: 1.2;
}

.stat-item .label {
    font-size: 0.9rem; /* 稍微增大标签文字 */
    color: #4a5568;
    line-height: 1.4;
}

/* 会员卡片 */
.member-card {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.member-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: white;
}

.member-benefits {
    margin-bottom: 30px;
}

.member-benefits p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.member-benefits i {
    color: #90cdf4;
}

.join-button {
    background: white;
    color: #3182ce;
    border: none;
    border-radius: 12px;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.join-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .teacher-member-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    /* 手机端紧凑布局 */
    .info-card {
        padding: 25px;
    }

    .teacher-name {
        font-size: 1.6rem;
    }

    .teacher-description {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .stats-card {
        gap: 10px;
    }

    .stat-item {
        padding: 12px 10px;
    }

    .stat-item .number {
        font-size: 1.3rem;
    }

    .stat-item .label {
        font-size: 0.8rem;
    }

    .member-card {
        padding: 25px;
    }

    .member-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .member-benefits p {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .join-button {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .teacher-section,
    .member-section {
        background: linear-gradient(135deg, 
            rgba(45, 55, 72, 0.8) 0%, 
            rgba(26, 32, 44, 0.9) 100%
        );
    }
}

.banner-button {
    background: white;
    color: #3182ce;
    padding: 15px 35px;
    border-radius: 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: auto;
    min-width: 200px;
}

.banner-button i {
    font-size: 1.4em;
    color: #3182ce;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.banner-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.banner-button:hover i {
    transform: translateX(8px) scale(1.1);
    color: #2c5282;
}

/* Banner区域样式优化 */
.banner-section {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    padding: 60px 0;
    margin: 0;
    width: 100%;
    text-align: center;
    color: white;
}

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

.banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner-text {
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 栏目卡片进一步优化 */
.category-card {
    background: linear-gradient(145deg, #ffffff 0%, #f7fafc 100%);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.01);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg,
        rgba(49, 130, 206, 0.05) 0%,
        rgba(66, 153, 225, 0.02) 100%
    );
    border-radius: 0 24px 0 150px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::after {
    opacity: 1;
}

/* 老师区样式进一步优化 */
.teacher-member-card {
    background: linear-gradient(145deg, #ffffff 0%, #f7fafc 100%);
    border-radius: 30px;
    padding: 45px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.01);
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.teacher-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg,
        rgba(49, 130, 206, 0.05) 0%,
        rgba(66, 153, 225, 0.02) 100%
    );
    border-radius: 0 30px 0 200px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.teacher-member-card:hover::before {
    opacity: 1;
}

/* 统计数据进一步优化 */
.stat-item {
    background: linear-gradient(145deg,
        rgba(49, 130, 206, 0.05) 0%,
        rgba(66, 153, 225, 0.08) 100%
    );
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(66, 153, 225, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(49, 130, 206, 0.08) 0%,
        rgba(66, 153, 225, 0.12) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover::after {
    opacity: 1;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .banner-section {
        padding: 40px 0;
        width: 100vw;
        margin: 0;
        border-radius: 0;
    }

    .banner-content {
        padding: 0;
        width: 100%;
    }

    .banner-button {
        margin: 0 auto;
        width: calc(100% - 30px);
        max-width: 300px;
        border-radius: 0;
        padding: 12px 20px;
    }

    .banner-title {
        font-size: 2rem;
        padding: 0 15px;
    }

    .banner-text {
        font-size: 1.2rem;
        padding: 0 15px;
    }

    .teacher-member-card {
        padding: 30px;
        margin: 25px 0;
    }

    .stats-card {
        gap: 10px;
    }

    .stat-item {
        padding: 12px 10px;
    }
}

/* 年份分类导航样式 */
.year-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.year-link {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    background: linear-gradient(145deg, #ffffff 0%, #f7fafc 100%);
    border-radius: 16px;
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.01);
}

/* 热门标签样式 */
.year-link.hot {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    color: white;
}

.year-link.hot i {
    margin-right: 8px;
    color: #ffd700;
}

/* 年份标签悬停效果 */
.year-link:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 25px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.02);
}

.year-link.hot:hover {
    box-shadow: 
        0 12px 25px rgba(49, 130, 206, 0.2),
        0 0 0 1px rgba(49, 130, 206, 0.1);
}

/* 当前选中状态 */
.year-link.active {
    background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%);
    color: #3182ce;
    border: 1px solid rgba(49, 130, 206, 0.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .year-nav {
        gap: 10px;
        padding: 0 15px;
        flex-wrap: wrap;
    }

    .year-link {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* 文章区域容器样式 */
.articles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 电脑端两列布局 */
@media (min-width: 769px) {
    .articles-container {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 两列等宽 */
        gap: 30px; /* 列间距 */
        align-items: start; /* 顶部对齐 */
    }

    .articles-wrapper {
        min-width: 0; /* 防止内容溢出 */
    }
}

/* 移动端单列布局 */
@media (max-width: 768px) {
    .articles-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .articles-wrapper {
        width: 100%;
    }
}

/* 文章区块样式优化 */
.articles-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

/* 随机推荐区块特殊样式 */
.random-articles .section-title {
    color: #e53e3e; /* 使用红色标题区分 */
}

.random-articles .article-card {
    border-left: 3px solid #e53e3e; /* 添加红色边框 */
}

/* 文章列表通用样式 */
.articles-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.article-card {
    position: relative;
    padding: 15px 0;
    border-bottom: 1px solid #edf2f7;
}

.article-index {
    position: absolute;
    right: 0;
    top: 15px;
    font-size: 0.85rem;
    color: #718096;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .article-index {
        top: 12px;
        font-size: 0.8rem;
    }
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.article-date {
    font-size: 0.85rem;
    color: #718096;
}

.hot-tag {
    background: #e53e3e;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.article-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.article-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: #e53e3e;
}

/* 基础卡片样式 */
.latest-articles,
.random-articles {
    width: 100%;
    max-width: 100%;
    margin: 0 0 15px 0; /* 减小底部间距 */
    padding: 15px 10px; /* 保持适当的内边距 */
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: var(--shadow);
    box-sizing: border-box;
    transition: all 0.3s ease; /* 缩短过渡时间 */
}

/* 文章列表样式 */
.article-list {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 文章项样式 */
.article-item {
    padding: 8px 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(44, 24, 16, 0.05);
}

/* 正文内容样式 */
.article-content {
    width: 100%;
    margin: 0;
    padding: 0; /* 移除内边距 */
    box-sizing: border-box;
    transition: all 0.3s ease;
    opacity: 1;
    transform: none;
    background: none; /* 移除背景色 */
}

/* 移动端优化 */
@media (max-width: 768px) {
    .latest-articles,
    .random-articles {
        margin: 0 0 10px 0;
        padding: 10px;
        border-radius: 8px;
    }

    .article-item {
        padding: 6px 0;
    }

    .article-content {
        padding: 0;
    }
}

/* 使用更具体的选择器 */
.latest-articles .card-button,
.random-articles .card-button {
    width: 100%;
    margin: 20px 0 10px 0;
    padding: 12px 0;
    background: #f7f3ee; /* 宣纸色 */
    border: none;
    position: relative;
    cursor: pointer;
    font-family: 'Noto Serif SC', serif;
    overflow: hidden;
}

/* 水墨边框效果 */
.latest-articles .card-button::before,
.random-articles .card-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid #2c1810;
    opacity: 0.3;
    margin: -1px;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* 按钮文字样式 */
.latest-articles .card-button .button-text,
.random-articles .card-button .button-text {
    color: #2c1810;
    font-size: 1.1rem;
    letter-spacing: 4px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* 水墨晕染效果 */
.latest-articles .card-button::after,
.random-articles .card-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(44, 24, 16, 0.05);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.8s ease-out;
}

/* 悬停效果 */
.latest-articles .card-button:hover::after,
.random-articles .card-button:hover::after {
    width: 120%;
    height: 120%;
    opacity: 0.1;
}

.latest-articles .card-button:hover::before,
.random-articles .card-button:hover::before {
    opacity: 0.5;
    margin: 0;
}

/* 加载中状态 */
.latest-articles .card-button.loading,
.random-articles .card-button.loading {
    pointer-events: none;
}

.latest-articles .card-button.loading .button-text,
.random-articles .card-button.loading .button-text {
    opacity: 0;
}

.latest-articles .card-button.loading .button-loading,
.random-articles .card-button.loading .button-loading {
    display: block;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .latest-articles .card-button,
    .random-articles .card-button {
        padding: 10px 0;
        margin: 15px 0 8px 0;
    }
    
    .latest-articles .card-button .button-text,
    .random-articles .card-button .button-text {
        font-size: 1rem;
        letter-spacing: 3px;
    }
}

/* 文章操作按钮组样式 */
.article-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.primary-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.comment-button,
.view-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.comment-button {
    background: linear-gradient(135deg, #4299e1, #63b3ed);
}

.view-button {
    background: linear-gradient(135deg, #48bb78, #68d391);
}

.comment-button:hover,
.view-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.extra-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.action-btn i {
    font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .extra-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-btn {
        justify-content: center;
    }
}

/* 风格选择器样式 */
.style-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

.style-toggle-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.9);
}

.style-toggle-btn .icon-only {
    font-size: 1.5rem;
    color: #333;
}

.style-menu-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.style-menu-container.show {
    transform: translateY(0);
}

.style-menu {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.style-menu-btn {
    background: none;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.style-menu-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.style-menu-btn.active {
    background: rgba(0, 0, 0, 0.15);
    font-weight: bold;
}

.style-options {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.style-option {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.style-option:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.style-option.active {
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #000, 0 4px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .style-options {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .style-menu-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}

/* Toast提示样式 */
.setting-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2000;
    pointer-events: none;
}

.setting-toast.show {
    opacity: 1;
} 