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

/* 全局h1标签样式 - 统一各页面标题样式 */
.main-content h1 {
    font-size: 2.5em;
    color: #8B4513;
    margin-bottom: 30px;
    font-weight: bold;
    text-align: center;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .main-content h1 {
        font-size: 2em;
    }
}

/* 轮播图样式 - 匹配HTML结构 */
.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: transparent;
    margin-bottom: 30px;
}

.carousel-items {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    transition: opacity 0.5s;
}

.carousel-item.active {
    display: block;
}

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

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: white;
    padding: 30px 30px 60px;
    text-align: center;
    z-index: 5;
}

.carousel-caption h2 {
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption p {
    font-size: 16px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    border-radius: 50%;
}

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

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

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

.carousel-indicators {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 30;
    width: auto;
    margin: 0;
}

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

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: white;
    width: 16px;
    height: 16px;
}

/* 精选藏品区域样式 */
.collections-section {
    margin-bottom: 60px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-bottom: 2px solid #f0f0f0;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* 最新笔记区域样式 */
.notes-section {
    margin-bottom: 60px;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    padding: 40px;
    color: white;
    z-index: 10;
}

.carousel-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-content p {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 800px;
}

.carousel-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #8b4513;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
    margin-bottom: 10px;
}

.carousel-btn:hover {
    background-color: #6a3511;
    transform: translateY(-2px);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.carousel-control {
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #8b4513;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.carousel-control:hover {
    background-color: white;
    transform: scale(1.1);
}

/* 轮播图指示器样式已在上方定义，保持一致性 */

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

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

/* Logo文字样式 - 确保显示为白色 */
.logo-text {
    font-size: 20px;
    margin: 0;
    color: white !important;
    font-weight: 600;
}

/* 导航链接样式 - 确保显示为白色 */
.nav-link {
    color: white !important;
    font-size: 16px;
    font-weight: 500;
}

/* 精选藏品区域样式 - 匹配首页HTML结构 */
.collections-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.collections-section .section-header h2 {
    color: #8b4513;
}

.collections-section .section-title {
    font-size: 28px;
    color: #8B4513;
    margin: 0;
    font-weight: bold;
}

.collections-section .view-all {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

/* 移除悬停下划线效果，保持一致性 */
.collections-section .view-all:hover {
    color: #8B4513;
    text-decoration: none;
}

.collection-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* 简化过渡效果，提高性能 */
    transition: box-shadow 0.2s ease;
}

/* 简化悬停效果，移除可能导致卡顿的transform */
.collection-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.collection-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-img {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #8B4513;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

/* 增强类别标签样式，使用深色文本和明显底色 */
.category-tag,
.era-tag {
    background-color: #e6d9c5;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    /* 深色文本，提高对比度 */
    color: #5d3a1a;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: 10px;
    font-size: 14px;
    color: #999;
}

/* 最新笔记区域样式 - 匹配首页HTML结构 */
.notes-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.notes-section .section-title {
    font-size: 28px;
    color: #8B4513;
    margin: 0;
    font-weight: bold;
}

.notes-section .view-all {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

/* 移除悬停下划线效果，保持一致性 */
.notes-section .view-all:hover {
    color: #8B4513;
    text-decoration: none;
}

.images-preview {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.images-preview img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    /* 简化样式，提高性能 */
}

.more-images {
    position: relative;
    width: 50px;
    height: 50px;
    background-color: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    /* 简化边框样式 */
    border: 1px solid #ddd;
}

/* 增强日期标签样式 */
.date-tag {
    background-color: #e6d9c5;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    color: #5d3a1a;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel {
        height: 250px;
    }
    
    .carousel-caption h2 {
        font-size: 20px;
    }
    
    .carousel-caption p {
        font-size: 14px;
    }
    
    .collection-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .card-img {
        height: 150px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .images-preview img,
    .more-images {
        width: 40px;
        height: 40px;
    }
}

.collection-link a {
    color: #8B4513;
    text-decoration: none;
    display: inline;
    padding: 0;
}

.collection-link a:hover {
    text-decoration: underline;
}

.images-preview {
    margin-top: 10px;
}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.image-thumb {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    object-fit: contain;
    border: 1px solid #eee;
    transition: transform 0.2s ease;
}

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

.more-images {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    border: 1px solid #eee;
}

.note-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.note-tag {
    font-size: 12px;
    color: #8b4513;
    background-color: #f0e6d6;
    padding: 3px 10px;
    border-radius: 12px;
}

/* 藏品分类区域样式 */
.categories-section {
    margin-bottom: 60px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-bottom: 2px solid #f0f0f0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.category-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    text-align: center;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

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

.category-info {
    padding: 20px;
}

.category-title {
    font-size: 18px;
    font-weight: bold;
    color: #8b4513;
    margin-bottom: 10px;
}

.category-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.category-title a:hover {
    color: #8b4513;
}

.category-count {
    font-size: 14px;
    color: #666;
}

/* 完整修复首页样式 - 轮播图、精选藏品、最新笔记 */
.carousel-section {
    position: relative;
    margin-bottom: 50px;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-container {
    position: relative;
    max-width: 100%;
    height: 500px;
    overflow: hidden;
}

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

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

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

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    padding: 40px;
    color: white;
    z-index: 10;
}

.carousel-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-content p {
    font-size: 18px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 800px;
}

.carousel-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #8b4513;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
}

.carousel-btn:hover {
    background-color: #6a3511;
    transform: translateY(-2px);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.carousel-control {
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #8b4513;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.carousel-control:hover {
    background-color: white;
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 20;
}

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

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

/* 精选藏品区域样式 */
.featured-collections {
    margin-bottom: 60px;
}

.section-title {
    font-size: 30px;
    color: #8b4513;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

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

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

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

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.collection-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

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

.collection-info {
    padding: 20px;
}

.collection-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.3;
}

.collection-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.collection-title a:hover {
    color: #8b4513;
}

.collection-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.collection-price {
    font-weight: 600;
    color: #8b4513;
    font-size: 18px;
}

.collection-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.collection-tag {
    font-size: 12px;
    color: #8b4513;
    background-color: #f0e6d6;
    padding: 3px 10px;
    border-radius: 12px;
}

/* 最新笔记区域样式 */
.notes-section {
    margin-bottom: 60px;
}

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

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

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

.note-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 15px;
}

.note-card .image-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.note-content {
    margin-bottom: 10px;
}

.note-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.note-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.collection-link a {
    color: #8B4513;
    text-decoration: none;
    display: inline;
    padding: 0;
}

.collection-link a:hover {
    text-decoration: underline;
}

.images-preview {
    margin-top: 10px;
}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.image-thumb {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    object-fit: contain;
    border: 1px solid #eee;
    transition: transform 0.2s ease;
}

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

.more-images {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    border: 1px solid #eee;
}

.note-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.note-tag {
    font-size: 12px;
    color: #8b4513;
    background-color: #f0e6d6;
    padding: 3px 10px;
    border-radius: 12px;
}

/* 藏品分类区域样式 */
.categories-section {
    margin-bottom: 60px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.category-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    text-align: center;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

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

.category-info {
    padding: 20px;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.category-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.category-title a:hover {
    color: #8b4513;
}

.category-count {
    font-size: 14px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 轮播图 */
    .carousel-container {
        height: 300px;
    }
    
    .carousel-content {
        padding: 20px;
    }
    
    .carousel-content h2 {
        font-size: 24px;
    }
    
    .carousel-content p {
        font-size: 14px;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    /* 精选藏品 */
    .collection-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .collection-title {
        font-size: 18px;
    }
    
    /* 最新笔记 */
    .notes-grid {
        grid-template-columns: 1fr;
    }
    
    .note-card .note-title {
        font-size: 16px;
    }
    
    .note-card {
        margin-bottom: 20px;
    }
    
    .image-thumb,
    .more-images {
        width: 40px;
        height: 40px;
    }
    
    .more-images {
        font-size: 12px;
    }
    
    /* 分类 */
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 250px;
    }
    
    .carousel-content h2 {
        font-size: 20px;
    }
    
    .carousel-content p {
        display: none;
    }
    
    .carousel-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 根变量定义 */
:root {
    --primary-color: #8B5A2B; /* 棕色作为主色调，体现古典韵味 */
    --secondary-color: #D2B48C; /* 棕黄色作为辅助色 */
    --accent-color: #A0522D; /* 深棕色作为强调色 */
    --background-color: #FFFFFF; /* 白色背景 */
    --text-color: #333333;
    --light-text: #666666;
    --border-color: #E0E0E0;
    --card-bg: #FFFFFF;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* 基础字体设置 */
body {
    font-family: 'Noto Serif SC', 'SimSun', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: url('../images/bg-pattern.png');
    background-repeat: repeat;
    background-attachment: fixed;
}

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

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif SC', 'SimSun', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* 段落样式 */
p {
    margin-bottom: 1rem;
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

/* 按钮基础样式 */
.btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: var(--transition);
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    margin-bottom: 15px;
    position: relative;
    z-index: 10;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
}

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

.btn-secondary:hover {
    background-color: #c1a275;
    text-decoration: none;
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    color: white;
    text-decoration: none;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

/* 表单元素样式 */
.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color);
    background-color: white;
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

/* 卡片样式 */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: white;
    background-clip: border-box;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.card-img-top {
    width: 100%;
    border-top-left-radius: calc(8px - 1px);
    border-top-right-radius: calc(8px - 1px);
}

.card-body {
    flex: 1 1 auto;
    padding: 1.5rem;
}

.card-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
}

.card-text {
    margin-bottom: 1rem;
}

/* 网格系统 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* 响应式断点 */
@media (min-width: 576px) {
    .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
    .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
    .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
    .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 1200px) {
    .col-xl-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
    .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-xl-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
    .col-xl-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
    .col-xl-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-xl-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-xl-12 { flex: 0 0 100%; max-width: 100%; }
}

/* 间距工具类 */
.m-0 { margin: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

/* 边距工具类 */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.ml-4 { margin-left: 1.5rem !important; }
.ml-5 { margin-left: 3rem !important; }

.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.mr-4 { margin-right: 1.5rem !important; }
.mr-5 { margin-right: 3rem !important; }

/* 内边距工具类 */
.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

.pl-0 { padding-left: 0 !important; }
.pl-1 { padding-left: 0.25rem !important; }
.pl-2 { padding-left: 0.5rem !important; }
.pl-3 { padding-left: 1rem !important; }
.pl-4 { padding-left: 1.5rem !important; }
.pl-5 { padding-left: 3rem !important; }

.pr-0 { padding-right: 0 !important; }
.pr-1 { padding-right: 0.25rem !important; }
.pr-2 { padding-right: 0.5rem !important; }
.pr-3 { padding-right: 1rem !important; }
.pr-4 { padding-right: 1.5rem !important; }
.pr-5 { padding-right: 3rem !important; }

/* 显示隐藏工具类 */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

/* Flexbox 工具类 */
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }

.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items-stretch { align-items: stretch !important; }

.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }

/* 文本工具类 */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-justify { text-align: justify !important; }

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-light { color: var(--light-text) !important; }
.text-dark { color: var(--text-color) !important; }
.text-muted { color: #6c757d !important; }
.text-white { color: #ffffff !important; }

.text-sm { font-size: 0.875rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-2xl { font-size: 1.5rem !important; }

.font-weight-normal { font-weight: 400 !important; }
.font-weight-bold { font-weight: 700 !important; }

/* 背景工具类 */
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-light { background-color: #f8f9fa !important; }
.bg-dark { background-color: #343a40 !important; }
.bg-white { background-color: #ffffff !important; }
.bg-transparent { background-color: transparent !important; }

/* 圆角工具类 */
.rounded { border-radius: 0.25rem !important; }
.rounded-sm { border-radius: 0.125rem !important; }
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.rounded-pill { border-radius: 50rem !important; }
.rounded-circle { border-radius: 50% !important; }

/* 阴影工具类 */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important; }

/* 过渡动画 */
.transition { transition: var(--transition) !important; }

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 响应式工具类 */
@media (max-width: 575.98px) {
    .d-sm-none { display: none !important; }
    .d-sm-block { display: block !important; }
    .d-sm-inline { display: inline !important; }
    .d-sm-inline-block { display: inline-block !important; }
    .d-sm-flex { display: flex !important; }
}

@media (max-width: 767.98px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-inline { display: inline !important; }
    .d-md-inline-block { display: inline-block !important; }
    .d-md-flex { display: flex !important; }
}

@media (max-width: 991.98px) {
    .d-lg-none { display: none !important; }
    .d-lg-block { display: block !important; }
    .d-lg-inline { display: inline !important; }
    .d-lg-inline-block { display: inline-block !important; }
    .d-lg-flex { display: flex !important; }
}

@media (max-width: 1199.98px) {
    .d-xl-none { display: none !important; }
    .d-xl-block { display: block !important; }
    .d-xl-inline { display: inline !important; }
    .d-xl-inline-block { display: inline-block !important; }
    .d-xl-flex { display: flex !important; }
}

/* 无障碍支持 */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* 图片响应式 */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.img-thumbnail {
    padding: 0.25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    max-width: 100%;
    height: auto;
}

/* 列表样式 */
ul, ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

.list-unstyled {
    padding-left: 0;
    list-style: none;
}

.list-inline {
    padding-left: 0;
    list-style: none;
}

.list-inline-item {
    display: inline-block;
    margin-right: 0.5rem;
}

.list-inline-item:last-child {
    margin-right: 0;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-weight: bold;
}

tr:hover {
    background-color: rgba(210, 180, 140, 0.1);
}

/* 代码样式 */
code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.2rem;
    font-size: 0.875em;
}

pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

pre code {
    padding: 0;
    background-color: transparent;
}

/* 引用样式 */
blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-left: 0;
    margin-right: 0;
    color: var(--light-text);
    font-style: italic;
}

/* 分隔线样式 */
hr {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border: 0;
    border-top: 1px solid var(--border-color);
}

/* 工具提示样式 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: var(--text-color);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(139, 90, 43, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 滑动动画 */
.slide-in {
    animation: slideIn 0.5s ease-in-out;
}

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

/* 通用样式 - 从模板文件中提取的统一CSS */

/* 面包屑导航样式 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #999;
    font-size: 16px;
    line-height: 1;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* 内容容器样式 */
.content-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* 分类页样式 */
.category-header {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.category-header h1 {
    color: #8b4513;
    font-size: 32px;
    margin-bottom: 15px;
}

.category-description {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

/* 文章详情页样式 */
/* 文章详情页增强样式 - 专业版 */
.article-detail {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.article-detail:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #f0e6d6;
}

.article-header h1 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 25px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f5f5f5;
    flex-wrap: wrap;
    align-items: center;
}

.article-meta .date-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.author-tag {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

.view-count,
.read-time {
    font-size: 13px;
    color: #666;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.article-content {
    line-height: 1.9;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 16px;
}

.article-content p {
    margin-bottom: 25px;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-content img:hover {
    transform: scale(1.02);
}

.article-content h2 {
    color: #2c3e50;
    margin: 40px 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    font-size: 26px;
    font-weight: 600;
}

.article-content h3 {
    color: #34495e;
    margin: 30px 0 20px 0;
    font-size: 20px;
    font-weight: 600;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.article-content blockquote {
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    margin: 25px 0;
    background: #f8f9ff;
    border-radius: 8px;
    color: #555;
    font-style: italic;
}

.article-content code {
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e83e8c;
}

.article-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
}

.article-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px dashed #667eea;
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: #764ba2;
    border-bottom-style: solid;
}

.article-tags {
    margin-bottom: 35px;
    padding-top: 25px;
    border-top: 2px solid #f0e6d6;
}

.article-tags > span {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

.article-tags .tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    text-decoration: none;
    margin-right: 10px;
    margin-bottom: 10px;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.article-tags .tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.article-nav {
    display: flex;
    justify-content: space-between;
    padding-top: 35px;
    border-top: 2px solid #f0e6d6;
    flex-wrap: wrap;
    gap: 25px;
}

.prev-article,
.next-article {
    flex: 1;
    min-width: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.prev-article:hover,
.next-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.article-nav a {
    text-decoration: none;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-nav a span {
    font-size: 13px;
    color: #667eea;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-nav a p {
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
    color: #495057;
    font-weight: 500;
}

/* 面包屑导航增强 */
.breadcrumb {
    margin-bottom: 25px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    font-size: 14px;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #adb5bd;
    margin: 0 10px;
}

.breadcrumb-current {
    color: #495057;
    font-weight: 600;
}

/* 侧边栏样式 */
.sidebar-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-section h3 {
    color: #8b4513;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0e6d6;
}

/* 搜索框 */
.search-form {
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #f0e6d6;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-form input:focus {
    border-color: #8b4513;
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8b4513;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 分类列表 */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    color: #333;
    text-decoration: none;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    margin: 4px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.category-list a:hover {
    color: #8b4513;
    background: #e9ecef;
    transform: translateY(-1px);
}

.category-count {
    color: #999;
    font-size: 12px;
    margin-left: 6px;
    padding: 2px 8px;
    background: #f1f3f5;
    border-radius: 10px;
}

/* 最新项目 */
.latest-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.latest-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.latest-item a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
    width: 100%;
}

.latest-item a:hover {
    transform: translateX(5px);
}

.latest-item-img {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.latest-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-item-info {
    flex: 1;
    min-width: 0;
}

.latest-item-info h4 {
    font-size: 14px;
    margin: 0 0 5px 0;
    line-height: 1.4;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.latest-item-date {
    font-size: 12px;
    color: #999;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud .tag {
    background-color: #f0e6d6;
    color: #8b4513;
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.tag-cloud .tag:hover {
    background-color: #8b4513;
    color: white;
    transform: translateY(-2px);
}

/* 联系我们 */
.contact-section .contact-info {
    text-align: center;
}

.contact-section p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.contact-section .btn-primary {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
}

/* 分页样式 */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination ul {
    list-style: none;
    display: inline-flex;
    gap: 5px;
    padding: 0;
    margin: 0;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 16px;
    text-decoration: none;
    color: #8b4513;
    background-color: white;
    border: 1px solid #f0e6d6;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #f0e6d6;
    transform: translateY(-2px);
}

.pagination .active span {
    background-color: #8b4513;
    color: white;
    border-color: #8b4513;
}

.pagination .prev,
.pagination .next {
    font-weight: bold;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        margin-top: 20px;
    }
    
    .sidebar-section {
        padding: 15px;
    }
    
    /* 移动端热门分类优化 - 扁平化按钮 */
    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .category-list li {
        margin-bottom: 0;
    }
    
    .category-list a {
        padding: 6px 12px;
        margin: 0;
        font-size: 12px;
        flex: 0 0 auto;
    }
    
    .category-count {
        font-size: 11px;
        padding: 1px 6px;
    }
    
    /* 移动端封面图片优化 */
    .article-content img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 20px auto;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    /* 确保远程图片正确显示 */
    .article-content img[src^="http"] {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    /* 侧边栏图片优化 */
    .latest-item-img img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    /* 热门标签优化 */
    .tag-cloud {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .tag-cloud .tag {
        padding: 4px 10px;
        font-size: 11px;
        margin: 0;
    }
    
    .category-header {
        padding: 20px;
    }
    
    .category-header h1 {
        font-size: 24px;
    }
    
    .article-detail {
        padding: 20px;
    }
    
    .article-header h1 {
        font-size: 24px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-nav {
        flex-direction: column;
    }
    
    .pagination ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}