/*
 *  网站样式文件
 * ============================================================================
 * 版权所有 (C)  西安尊云信息科技有限公司，并保留所有权利。
 * 网站地址:   http://www.zunyunkeji.com
 * ----------------------------------------------------------------------------
 * 许可声明：未经许可不得将本软件的整体或任何部分用于商业用途及再发布。
 * ============================================================================
 * Author: 缘境 (yvsm@zunyunkeji.com) QQ:316430983 微信：yvsm316
 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    background-color: #f5f0e1;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

header h1 {
    font-size: 3em;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header nav {
    text-align: center;
    margin-top: 15px;
}

header nav a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
    font-size: 1.2em;
    font-weight: 500;
    transition: all 0.3s ease;
}

header nav a:hover {
    color: #FFD700;
}

/* 首页分类网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.category-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid #D2691E;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-color: #8B4513;
}

.category-card h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #8B4513;
    font-weight: bold;
}

.category-card p {
    margin-bottom: 25px;
    color: #666;
    font-size: 1.1em;
}

.category-card a {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #D2691E, #8B4513);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.category-card a:hover {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* 列表页面样式 */
.list-container {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    border: 2px solid #D2691E;
}

.list-container h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #8B4513;
    font-weight: bold;
    text-align: center;
    border-bottom: 3px solid #D2691E;
    padding-bottom: 15px;
}

.list-item {
    padding: 20px;
    margin: 0 -20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background-color: #f5f0e1;
}

.list-item a {
    font-size: 1.3em;
    color: #8B4513;
    text-decoration: none;
    font-weight: 500;
}

.list-item a:hover {
    color: #D2691E;
}

.list-item .meta {
    color: #666;
    margin-left: 20px;
    font-size: 1em;
}

/* 详情页面样式 */
.detail-container {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid #D2691E;
}

.detail-container h2 {
    font-size: 3em;
    margin-bottom: 25px;
    color: #8B4513;
    font-weight: bold;
    text-align: center;
    border-bottom: 3px solid #D2691E;
    padding-bottom: 20px;
}

.detail-info {
    margin-bottom: 30px;
    color: #666;
    text-align: center;
    font-size: 1.1em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.detail-info span {
    padding: 8px 15px;
    background-color: #f5f0e1;
    border-radius: 15px;
    border: 1px solid #D2691E;
    white-space: nowrap;
}

.detail-content {
    line-height: 2;
    font-size: 1.2em;
    text-align: justify;
}

.detail-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #8B4513;
    font-size: 1.5em;
    font-weight: bold;
}

/* 分页样式 */
.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination a {
    display: inline-block;
    padding: 12px 18px;
    margin: 0 5px;
    background-color: white;
    color: #8B4513;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #D2691E;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #D2691E;
    color: white;
    transform: translateY(-3px);
}

.pagination a.active {
    background-color: #8B4513;
    color: white;
    border-color: #8B4513;
}

/* 底部样式 */
footer {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    padding: 40px 0;
    margin-top: 10px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #FFD700;
}

.footer-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.footer-section ul li {
    margin-bottom: 0;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FFD700;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 30px;
}

/* 广告样式 */
.ad-section {
    background-color: #fff;
    color: #8B4513;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid #8B4513;
}

.ad-section h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: bold;
}

.ad-section p {
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 500;
}

/* 随机推荐 */
.random-recommendations {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid #D2691E;
}

.random-recommendations h3 {
    font-size: 2em;
    margin-bottom: 25px;
    color: #8B4513;
    font-weight: bold;
    text-align: center;
}

.random-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.random-item {
    padding: 15px;
    background-color: #faf9f6;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.random-item:hover {
    background-color: #f5f0e1;
    transform: translateY(-3px);
}

.random-item a {
    color: #8B4513;
    text-decoration: none;
    font-weight: 500;
}

.random-item a:hover {
    color: #D2691E;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2em;
    }
    
    header nav a {
        margin: 0 10px;
        font-size: 1em;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    @media (max-width: 480px) {
        .category-grid {
            grid-template-columns: 1fr;
            gap: 15px;
        }
    }
    
    .detail-container {
        padding: 20px;
    }
    
    .detail-container h2 {
        font-size: 2.2em;
    }
    
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-section ul {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* 面包屑导航 */
.breadcrumb-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    gap: 10px;
}

.breadcrumb {
    font-size: 0.95em;
    flex: 1;
    display: flex;
    align-items: center;
}

.breadcrumb .fa {
    color: #8B4513;
    margin-right: 5px;
    font-size: 1em;
}

.breadcrumb a {
    color: #8B4513;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #D2691E;
}

.breadcrumb-separator {
    color: #999;
    margin: 0 8px;
}

.breadcrumb-current {
    color: #666;
    font-weight: 500;
}

/* 返回按钮 */
.back-button-container {
    flex-shrink: 0;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #8B4513;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.back-button:hover {
    background-color: #D2691E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* 全局链接样式 - 移除下划线 */
a {
    text-decoration: none;
}