/* 全局颜色变量 */
:root {
    --primary-gradient: linear-gradient(135deg, #2c1810, #8b7355);
    --secondary-gradient: linear-gradient(135deg, #f9f6f1, #fff);
    --accent-color: #2c1810;
    --text-primary: #2c1810;
    --text-secondary: #8b7355;
    --shadow-primary: 0 10px 30px rgba(44, 24, 16, 0.05);
    --shadow-hover: 0 15px 40px rgba(44, 24, 16, 0.1);
    --card-background: #ffffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 通用卡片样式 */
.card-shadow {
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1), /* 轻微阴影 */
        0 0 0 1px rgba(0, 0, 0, 0.05); /* 较轻的边框阴影 */
    transition: all 0.3s ease;
}

.card-shadow:hover {
    transform: translateY(-5px); /* 悬浮时上移 */
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15); /* 悬浮时的阴影效果 */
}

/* 栏目卡片样式 */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* 卡片基础样式 */
.card-module {
    background: var(--secondary-gradient);
    border: none;
    padding: 35px;
    margin: 30px auto;
    max-width: 800px;
    box-shadow: var(--shadow-primary);
    border-radius: 16px;
    transition: all 0.3s ease;
}

/* 卡片标题通用样式 */
.card-title {
    color: var(--text-primary);
    font-family: 'Noto Serif SC', serif;
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 25px;
    padding: 15px 0;
    position: relative;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

/* 按钮通用样式 */
.card-button {
    /* 删除这里可能存在的按钮样式 */
}

/* 加载状态 */
.card-button.loading {
    opacity: 0.8;
    cursor: wait;
}

.card-button.loading .button-text {
    display: none;
}

.card-button.loading .button-loading {
    display: block;
}

/* 文章列表项样式 */
.article-item {
    border-bottom: 1px solid rgba(44, 24, 16, 0.1);
}

.article-item:hover {
    background: rgba(44, 24, 16, 0.02);
}

/* 热门栏目卡片样式 */
.hot-category-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px auto 40px;
    padding: 20px;
}

.hot-category-card img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 播放量提示文字样式 */
.play-count-notice {
    text-align: center;
    padding: 8px 15px;
    margin-top: 10px;
    background: rgba(0, 122, 255, 0.05);
    border-radius: 8px;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hot-category-card {
        margin: 20px auto 30px;
    }
    
    .hot-category-card img {
        border-radius: 12px;
    }

    .play-count-notice {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin-top: 8px;
    }
}

/* 栏目卡片样式 */
.category-card {
    background: var(--secondary-gradient);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-primary);
}

.category-header {
    border-bottom: 1px solid rgba(44, 24, 16, 0.1);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .card-module {
        padding: 25px;
        margin: 20px 15px;
    }

    .card-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .play-count-notice {
        padding: 12px;
        font-size: 0.9rem;
    }
}

.category-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.article-count {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(0,122,255,0.08), rgba(0,198,255,0.08));
    border-radius: 20px;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
}

.article-count.loaded {
    opacity: 1;
}

.category-desc {
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

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

.subcategory-item {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,122,255,0.05);
}

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

.subcategory-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 2px 0;
}

.subcategory-name {
    font-size: 0.95rem;
    font-weight: 500;
}

.subcategory-count {
    font-size: 0.85rem;
    color: var(--secondary-color);
    background: rgba(0,122,255,0.05);
    padding: 2px 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.subcategory-link:hover {
    color: var(--accent-color);
}

.subcategory-link:hover .subcategory-count {
    background: linear-gradient(135deg, rgba(0,122,255,0.1), rgba(0,198,255,0.1));
    color: var(--accent-color);
}

/* 文章列表样式 */
.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-3px); /* 悬浮时上移 */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); /* 悬浮时的阴影效果 */
}

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

.article-category {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.article-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--accent-color);
}

.article-excerpt {
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 老师介绍卡片样式 */
.teacher-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    border-radius: 16px; /* 减小圆角 */
    padding: 25px; /* 减小内边距 */
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.08); /* 减小阴影 */
    transition: all 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-3px); /* 减小悬浮效果 */
    box-shadow: 0 15px 30px rgba(0, 122, 255, 0.12);
}

/* 装饰性背景 */
.teacher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-blue);
}

.teacher-info {
    position: relative;
    z-index: 1;
    text-align: center;
}

.teacher-name {
    font-size: 1.8rem; /* 减小字号 */
    font-weight: 700;
    margin-bottom: 8px; /* 减小间距 */
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.teacher-title {
    font-size: 1rem; /* 减小字号 */
    color: var(--accent-gold);
    margin-bottom: 15px; /* 减小间距 */
    font-weight: 500;
    letter-spacing: 0.5px;
}

.teacher-description {
    max-width: 800px;
    margin: 0 auto 20px; /* 减小下边距 */
    line-height: 1.6; /* 减小行高 */
    color: var(--secondary-color);
    font-size: 0.95rem; /* 减小字号 */
}

/* 统计数据区域样式 */
.teacher-stats {
    display: flex; /* 改为flex布局 */
    justify-content: center;
    gap: 40px; /* 左右两组之间的间距 */
    padding: 15px 0;
    margin: 15px 0;
    position: relative;
}

/* 统计项样式 */
.stat-item {
    display: flex; /* 数字和标签左右排列 */
    align-items: center;
    gap: 12px; /* 数字和标签之间的间距 */
    padding: 8px 0;
    position: relative;
}

/* 移除旧的左边框 */
.stat-item:first-child {
    border-left: none;
}

/* 数字样式 */
.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2C1810;
    letter-spacing: 0.5px;
    margin: 0;
    position: relative;
    padding-right: 0; /* 移除右边距，因为不再需要装饰点的空间 */
}

/* 移除装饰点 */
.stat-number::after {
    display: none; /* 完全移除装饰点 */
}

/* 标签文字样式 */
.stat-label {
    font-size: 0.9rem;
    color: #8B7355;
    letter-spacing: 0.5px;
    margin: 0; /* 移除所有边距 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    .teacher-stats {
        gap: 20px; /* 减小间距 */
        flex-direction: column; /* 在移动端改为垂直排列 */
        align-items: flex-start;
        padding: 10px 20px;
    }

    .stat-item {
        width: 100%;
        justify-content: flex-start;
    }

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

    .stat-label {
        font-size: 0.85rem;
    }
}

/* 装饰性背景元素 */
.teacher-bg-decoration {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.teacher-bg-1 {
    top: -10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(0,122,255,0.03), rgba(0,198,255,0.03));
    border-radius: 50%;
    filter: blur(50px);
}

.teacher-bg-2 {
    bottom: -10%;
    left: -5%;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(212,175,55,0.03), rgba(255,215,0,0.03));
    border-radius: 50%;
    filter: blur(40px);
}

/* 横幅样式 */
.banner-section {
    background: linear-gradient(135deg, #2c1810, #8b7355);
    border-radius: 16px;
    padding: 60px 40px;
    box-shadow: 0 20px 40px rgba(44, 24, 16, 0.15);
    position: relative;
    overflow: hidden;
    margin: 15px auto 40px;
}

/* 古风装饰元素 */
.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.banner-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.banner-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 25px;
    text-align: center;
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 2px;
}

.banner-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 1px;
}

.banner-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 35px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.banner-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 最新文章列表样式优化 */
.latest-articles {
    width: 100%;
    max-width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,122,255,0.08);
    margin: 0 0 20px 0;
    box-sizing: border-box;
}

.latest-articles-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding: 0 0 10px 0;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(0,122,255,0.1);
    line-height: 1.3;
}

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

/* 文章标题和按钮容器 */
.article-item {
    width: 100%;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,122,255,0.05);
    box-sizing: border-box;
}

.article-list-link {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0;
    margin-right: 8px;
    max-width: calc(100% - 40px);
}

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

/* 数字按钮样式优化 */
.article-index {
    background: linear-gradient(135deg, #0066ff, #0099ff);
    color: #fff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    min-width: 50px;
    text-align: center;
    margin-left: 15px;
    box-shadow: 
        0 4px 15px rgba(0, 102, 255, 0.15),
        0 2px 4px rgba(0, 102, 255, 0.1);
    transition: all 0.3s ease;
    line-height: 1.5;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    user-select: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-index::after {
    content: '篇';
    font-size: 0.8em;
    margin-left: 2px;
    opacity: 0.9;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .article-index {
        min-width: 45px;
        padding: 4px 10px;
        font-size: 0.85rem;
    }
}

.article-index:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 102, 255, 0.2),
        0 4px 8px rgba(0, 102, 255, 0.1);
    background: linear-gradient(135deg, #0052cc, #0080ff);
}

.article-index:active {
    transform: translateY(1px);
    box-shadow: 
        0 2px 8px rgba(0, 102, 255, 0.15),
        0 1px 2px rgba(0, 102, 255, 0.1);
}

/* 确保标题和数字按钮对齐 */
.article-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px; /* 减少左右内边距 */
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    gap: 15px;
}

.article-item:hover {
    background: rgba(0,0,0,0.02);
}

/* 标题样式 */
.article-title-wrapper {
    flex: 1;
    color: #333;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.toggle-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-btn::before,
.toggle-btn::after {
    content: '';
    position: absolute;
    background: #fff;
    transition: all 0.3s ease;
}

.toggle-btn::before {
    width: 2px;
    height: 12px;
}

.toggle-btn::after {
    width: 12px;
    height: 2px;
}

.toggle-btn.minus {
    background: #999; /* 改为灰色 */
}

.toggle-btn.minus::before {
    display: none;
}

.toggle-btn.plus {
    background: #51cf66;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .articles-container {
        padding: 0 10px; /* 移动端更小的左右内边距 */
    }

    .card-module {
        margin: 20px auto;
        padding: 20px 15px; /* 减少左右内边距 */
        width: calc(100% - 30px); /* 减少外边距 */
        max-width: calc(100% - 30px);
    }

    .article-item {
        margin-bottom: 8px;
        padding: 10px 8px; /* 移动端更小的内边距 */
    }

    .article-number {
        font-size: 0.9rem;
    }

    .article-title {
        font-size: 0.9rem;
    }

    .toggle-btn {
        width: 22px;
        height: 22px;
    }
}

/* 更小屏幕的适配 */
@media (max-width: 375px) {
    .articles-container {
        padding: 10px;
    }
    
    .card-module {
        padding: 12px;
    }

    .article-title {
        font-size: 0.85rem;
        padding-right: 40px;
    }

    .article-index {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 0.8rem;
        right: 10px;
    }
}

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

.copy-button, 
.view-button,
.comment-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.comment-button {
    background: linear-gradient(135deg, #8b7355, #2c1810);
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.2);
}

.comment-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 115, 85, 0.3);
}

.comment-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.2);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .copy-button, 
    .view-button,
    .comment-button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .total-count {
        font-size: 0.8rem;
    }
}

/* 加载按钮样式 */
.card-button {
    width: 100%;
    padding: 16px;
    margin-top: 25px;
    background: linear-gradient(135deg, #0066ff, #00a3ff);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* 过渡效果 */
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* 可见状态 */
.card-button.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 加载状态 */
.card-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.card-button .button-text {
    transition: all 0.3s ease;
}

.card-button .button-loading {
    position: absolute;
    width: 24px;
    height: 24px;
    opacity: 0;
    transition: all 0.3s ease;
}

.card-button.loading .button-text {
    opacity: 0.5;
    transform: scale(0.95);
}

.card-button.loading .button-loading {
    opacity: 1;
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* 动画效果 */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { transform: scale(0.8); }
}

/* 移动端适配优化 */
@media (max-width: 768px) {
    .articles-container {
        padding: 0 10px; /* 移动端更小的左右内边距 */
    }

    .card-module {
        margin: 20px auto;
        padding: 20px 15px; /* 减少左右内边距 */
        width: calc(100% - 30px); /* 减少外边距 */
        max-width: calc(100% - 30px);
    }

    .article-title {
        font-size: 0.9rem;
        max-width: calc(100% - 60px);
    }

    .article-index {
        min-width: 40px;
        padding: 3px 8px;
        margin-left: 10px;
    }
}

/* 平板适配 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .articles-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 20px;
    }
}

/* 大屏幕适配 */
@media screen and (min-width: 1025px) {
    .articles-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 0;
    }
}

/* 文章总数样式 */
.total-count {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: normal;
    opacity: 0.8;
}

.total-count span {
    color: #ff3b30;
    font-weight: 500;
}

.total-count::after {
    content: '';  /* 移除篇字 */
}

/* 移除所有悬浮时的位移效果 */
.article-list-link:hover,
.random-article-link:hover,
.article-item:hover,
.article-index:hover,
.article-index:active {
    transform: none;
}

/* 上传中提示文字样式 */
.uploading-notice {
    text-align: center;
    padding: 15px;
    background: rgba(0, 122, 255, 0.05);
    border-radius: 12px;
    color: #666;
    font-size: 0.95rem;
    margin: 15px 0;
}

/* 道人与狐妖卡片样式 */
.wisdom-card {
    max-width: 1000px; /* 增加最大宽度 */
    margin: 15px auto 40px;
    transition: all 0.5s ease;
}

/* 展开状态样式 */
.wisdom-card .card-title {
    width: 100%;
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    color: #2c1810;
    text-align: center;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.5s ease;
    background: linear-gradient(135deg, #f9f6f1, #fff);
    padding: 35px 20px; /* 减少左右内边距 */
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.wisdom-content {
    max-height: 2000px;
    opacity: 1;
    transition: all 0.5s ease;
    overflow: hidden;
    background: linear-gradient(135deg, #f9f6f1, #fff);
    padding: 35px 20px; /* 减少左右内边距 */
    margin-top: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* 折叠状态样式 */
.wisdom-card.collapsed {
    background: none;
    box-shadow: none;
    padding: 0;
}

.wisdom-card.collapsed .wisdom-header {
    width: 100%;
    display: flex;
    justify-content: center;
}

.wisdom-card.collapsed .card-title {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c1810, #8b7355);
    color: #fff;
    border-radius: 30px;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(44, 24, 16, 0.2);
}

/* 折叠状态下隐藏原有标题文字，只显示"道"字 */
.wisdom-card.collapsed .card-title span {
    display: none;
}

.wisdom-card.collapsed .card-title::before {
    content: '道';
    display: block;
}

/* 折叠状态下隐藏内容 */
.wisdom-card.collapsed .wisdom-content {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .wisdom-card .card-title {
        padding: 25px 15px;
    }
    
    .wisdom-content {
        padding: 25px 15px;
    }
}

/* 随机推荐标题样式 */
.random-articles .card-title {
    text-align: center;
    font-size: 1.4rem;
    color: #2c1810;
    margin-bottom: 25px;
    padding: 15px 0;
    position: relative;
}

.random-articles .card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ff8787);
    border-radius: 3px;
}

/* 文章列表新样式 */
.article-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px; /* 减少左右内边距 */
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    gap: 15px;
}

.article-title-wrapper {
    flex: 1;
    color: #333;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.toggle-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-btn::before,
.toggle-btn::after {
    content: '';
    position: absolute;
    background: #fff;
    transition: all 0.3s ease;
}

.toggle-btn::before {
    width: 2px;
    height: 12px;
}

.toggle-btn::after {
    width: 12px;
    height: 2px;
}

.toggle-btn.minus {
    background: #999; /* 改为灰色 */
}

.toggle-btn.minus::before {
    display: none;
}

.toggle-btn.plus {
    background: #51cf66;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .article-item {
        margin-bottom: 8px;
        padding: 10px 8px; /* 移动端更小的内边距 */
    }

    .article-number {
        font-size: 0.9rem;
    }

    .article-title {
        font-size: 0.9rem;
    }

    .toggle-btn {
        width: 22px;
        height: 22px;
    }
}

/* 随机推荐卡片样式 */
.random-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.random-article {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

/* 随机推荐区域的内容展开样式 */
.random-articles .article-content {
    margin: 0 -20px;     /* 减小负边距 */
    padding: 25px 20px;  /* 减小内边距 */
}

.random-articles .card-title {
    text-align: center;
    font-size: 1.4rem;
    color: #2c1810;
    margin-bottom: 25px;
    padding: 15px 0;
    position: relative;
    font-family: 'Noto Serif SC', serif;
}

.random-articles .card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8b7355, #2c1810);
    border-radius: 3px;
}

/* 随机推荐按钮样式 */
.random-articles .card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background: linear-gradient(135deg, #8b7355, #2c1810);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.random-articles .card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.2);
}

.random-articles .card-button:active {
    transform: translateY(0);
}

.random-articles .button-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.random-articles .card-button.loading .button-loading {
    display: flex;
}

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

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

/* 移动端适配 */
@media (max-width: 768px) {
    .random-articles {
        padding: 20px 15px;    /* 减小卡片内边距 */
        margin: 20px 10px;     /* 减小外边距，让卡片更宽 */
    }

    .random-articles .card-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
        padding: 12px 0;
    }

    .random-articles .article-item {
        padding: 10px 15px;    /* 减小列表项内边距 */
        margin: 0 -10px;       /* 调整负边距 */
    }

    .random-articles .article-content {
        margin: 0 -15px;       /* 调整内容区负边距 */
        padding: 20px 15px;    /* 调整内容区内边距 */
    }

    .random-articles .card-button {
        padding: 10px;
        margin-top: 15px;      /* 减小按钮上边距 */
    }
}

/* 更小屏幕的适配 */
@media (max-width: 375px) {
    .random-articles {
        padding: 15px 12px;    /* 进一步减小内边距 */
        margin: 15px 8px;      /* 进一步减小外边距 */
    }

    .random-articles .article-item {
        padding: 8px 12px;
    }

    .random-articles .article-content {
        margin: 0 -12px;
        padding: 15px 12px;
    }
}

/* 文章内容展开样式 */
.article-content {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.content-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
    padding: 0 5px;
}

/* 随机推荐区域特殊调整 */
.random-articles .article-content {
    margin: 0 -30px;  /* 与卡片边缘对齐 */
    padding: 25px 35px;  /* 增加内容左右间距 */
    background: none;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .article-content {
        padding: 10px 0; /* 移除左右内边距 */
    }
    
    .random-articles .article-content {
        margin: 0 -25px;
        padding: 20px 30px;
    }
    
    .content-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

/* 单独浏览按钮样式 */
.view-button {
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
    color: #fff;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(33, 147, 176, 0.3);
    transition: all 0.5s ease;
}

/* 星光效果 */
.view-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shiningEffect 3s infinite;
}

/* 光晕效果 */
.view-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 7px 20px rgba(33, 147, 176, 0.4),
        0 0 20px rgba(33, 147, 176, 0.2);
}

.view-button:hover::after {
    opacity: 1;
}

@keyframes shiningEffect {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    50%, 100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* 栏目卡片标题样式 */
.parent-category {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 顶级栏目数字样式 */
.parent-category .article-count {
    color: #ff3b30;  /* 红色 */
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.parent-category .count-unit {
    color: #666;
    font-size: 0.9em;
    font-weight: normal;
}

/* 子栏目数字样式 */
.subcategory-item .article-count {
    color: #fff;  /* 白色 */
    font-weight: normal;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 移除所有特效 */
.count-animation {
    animation: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .article-count {
        font-size: 0.9em;
    }
    
    .count-unit {
        font-size: 0.85em;
    }
}

/* 底部版权区域样式 */
.copyright {
    text-align: center;
    padding: 60px 20px;  /* 减小上下内边距 */
    color: #f1f1f1;  /* 更浅的文字颜色 */
    font-size: 0.95rem;
    background: linear-gradient(135deg, #2c1810, #8b7355);  /* 水墨风格背景 */
    margin-top: 18px;
    position: relative;
    font-family: 'Noto Serif SC', serif;  /* 使用衬线字体 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);  /* 文字雕刻效果 */
}

/* 头像样式 */
.copyright-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* 水墨装饰效果 */
.copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('http://www.xli8.com/tu/shuimo-bg.png') center/cover;  /* 添加水墨背景 */
    opacity: 0.1;
    pointer-events: none;
}

.copyright a {
    color: #f1f1f1;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 0 2px;
}

.copyright a:hover {
    color: #fff;
}

.copyright a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.copyright a:hover::after {
    transform: scaleX(1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .copyright {
        padding: 40px 15px;  /* 移动端减小内边距 */
        font-size: 0.85rem;
        margin-top: 18px;
    }
    
    .copyright-avatar {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
}

/* 备案信息样式 */
.beian {
    text-align: center;
    padding: 15px;
    font-size: 0.85rem;
    color: #999;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .copyright {
        padding: 100px 15px;
        font-size: 0.85rem;
        margin-top: 18px;  /* 保持移动端相同的间距 */
    }
    
    /* 在移动端隐藏备案信息 */
    .beian {
        display: none;
    }
}

/* 区域标记样式 */
.section-marker {
    text-align: center;
    color: #8b7355;
    font-size: 0.75rem;  /* 减小字体大小 */
    padding: 5px 0;
    margin: 40px 0 20px;
    position: relative;
    font-family: 'Noto Serif SC', serif;
    opacity: 0.8;  /* 略微调低不透明度使其更加柔和 */
}

/* 特殊调整简介标记 */
.section-marker:first-of-type {
    margin-top: 20px;
    margin-bottom: 15px;
}

.section-marker::before,
.section-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;  /* 减小装饰线长度 */
    height: 1px;
    background: linear-gradient(90deg, transparent, #8b7355);
}

.section-marker::before {
    right: calc(50% + 30px);
}

.section-marker::after {
    left: calc(50% + 30px);
    transform: rotate(180deg);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .section-marker {
        font-size: 0.7rem;  /* 移动端更小的字体 */
    }
    
    .section-marker::before,
    .section-marker::after {
        width: 20px;  /* 移动端更短的装饰线 */
    }
    
    .section-marker::before {
        right: calc(50% + 20px);
    }
    
    .section-marker::after {
        left: calc(50% + 20px);
    }
}

/* 简介区域样式 */
.intro-section {
    text-align: center;
    padding: 20px 0;
    margin: 15px 0;
    position: relative;
}

/* 装饰线条 */
.intro-section::before,
.intro-section::after {
    content: '';
    position: absolute;
    height: 1px;
    width: 100px;
    background: linear-gradient(to right,
        transparent,
        rgba(139, 69, 19, 0.15),
        transparent
    );
}

.intro-section::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.intro-section::after {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* 标题样式 */
.intro-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.6rem;
    color: #2C1810;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

/* 标题装饰线 */
.intro-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        rgba(139, 69, 19, 0.2),
        transparent
    );
}

/* 描述文字样式 */
.intro-description {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.95rem;
    color: #8B7355;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

/* 统计数据容器 */
.intro-stats {
    display: flex;
    justify-content: center;
    gap: 60px; /* 减小间距，让两个数字更近 */
    margin-top: 20px;
    position: relative;
}

/* 中间的分隔线 */
.intro-stats::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom,
        transparent,
        rgba(139, 69, 19, 0.15),
        transparent
    );
}

/* 统计项样式 */
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* 数字说明文字 */
.stat-label {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.95rem;
    color: #8B7355;
    order: -1;
}

/* 年份数字样式（左边 - 2025） */
.year-month .stat-number {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #2C1810;
}

/* 文章数量样式（右边 - 7000） */
.stat-count .stat-number {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 2.4rem; /* 更大的字号 */
    font-weight: 700;
    color: #2C1810;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .intro-section::before,
    .intro-section::after {
        width: 60px;
    }

    .intro-stats {
        gap: 30px; /* 移动端更小的间距 */
        flex-direction: row;
        justify-content: center;
        padding: 10px 20px;
        width: 100%;
    }

    /* 统计项样式 */
    .stat-item {
        width: 35%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 100px;
    }

    .intro-stats::after {
        height: 20px;
    }

    /* 数字样式调整 */
    .year-month .stat-number {
        font-size: 1.6rem;
    }

    .stat-count .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
        white-space: nowrap; /* 防止文字换行 */
    }
}

/* 老师区域整体样式 */
.teacher-member-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* 老师简介卡片 */
.info-card.teacher-intro {
    position: relative;
    margin-bottom: 40px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 60px;
    background: rgba(252, 250, 245, 0.8);
    border: 1px solid rgba(139, 69, 19, 0.1);
    min-height: 400px; /* 确保与会员权益卡片等高 */
}

/* 老师照片区域 */
.teacher-photos {
    width: 240px;
    height: 240px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid rgba(255, 253, 250, 0.9);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.1);
    flex-shrink: 0;
}

.teacher-photo {
    position: absolute;
    top: 0;
    left: 0;  /* 修复手机端图片位置问题 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.teacher-photo.active {
    opacity: 1;
}

/* 数据统计卡片 */
.stats-card {
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* 会员权益卡片 */
.member-card {
    padding: 40px;
    background: linear-gradient(135deg, #4a3728 0%, #8b7355 100%);
    color: #fff;
    text-align: center;
    min-height: 400px; /* 确保与老师简介卡片等高 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .teacher-member-section {
        padding: 30px 15px;
    }

    /* 统一移动端卡片样式 */
    .info-card.teacher-intro,
    .stats-card,
    .member-card {
        width: 100%;
        margin: 20px 0;
        padding: 25px 15px;
    }

    .info-card.teacher-intro {
        min-height: unset;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .stats-card {
        grid-template-columns: repeat(3, 1fr);  /* 一排3个 */
        gap: 12px;  /* 减小间距 */
        margin: 20px 0;  /* 减小上下间距 */
        padding: 0;  /* 移除内边距 */
    }

    .stat-item {
        padding: 12px;
        aspect-ratio: 1;  /* 保持正方形 */
        border-radius: 8px;
    }

    .number {
        font-size: 24px;
    }

    .label {
        font-size: 12px;
        white-space: nowrap;  /* 防止文字换行 */
    }
}

/* 平板端适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .teacher-member-section {
        padding: 40px 20px;
    }

    .info-card.teacher-intro,
    .stats-card,
    .member-card {
        margin: 25px 0;
    }
}

/* 数据统计卡片基础样式 */
.stats-card {
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* 统计项基础样式 */
.stat-item {
    position: relative;
    background: rgba(252, 250, 245, 0.95);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    aspect-ratio: 1;
    transition: all 0.3s ease;
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 统计卡片容器 */
    .stats-card {
        width: calc(100% - 30px);  /* 左右各留15px固定边距 */
        margin: 20px auto;  /* 上下间距20px，左右自动居中 */
        display: grid;
        grid-template-columns: repeat(3, 1fr);  /* 三列布局 */
        gap: 3.5%;  /* 使用百分比设置间距 */
        padding: 0;
    }

    /* 统计项样式 */
    .stat-item {
        width: 100%;  /* 宽度占满格子 */
        padding: 0;  /* 移除内边距，让内容居中显示 */
        aspect-ratio: 1;  /* 保持正方形 */
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* 数字样式 */
    .number {
        font-size: 20px;  /* 稍微调小字号 */
        line-height: 1.2;
    }

    /* 标签样式 */
    .label {
        font-size: 12px;
        line-height: 1.2;
        white-space: nowrap;
    }
}

/* 确保在不同尺寸的手机上都能正确显示 */
@media (max-width: 360px) {
    .stats-card {
        width: calc(100% - 20px);  /* 更小屏幕减少边距 */
        gap: 3%;  /* 稍微减少间距 */
    }

    .number {
        font-size: 18px;
    }

    .label {
        font-size: 11px;
    }
}