﻿

/* 重置和基础样式 */
* {
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 容器布局 */
.jieyi-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    min-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}


/* 页面标题区域 */
.jieyi-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f9f6ec 0%, #f0e6d2 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.jieyi-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23b89b5b" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23b89b5b" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.jieyi-header h1 {
    color: #b89b5b;
    font-size: 36px;
    margin-bottom: 12px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.jieyi-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

/* 解译类型分类 */
.jieyi-types,
.filter-section {
    background: linear-gradient(135deg, #f9f6ec 0%, #f5f2e9 100%);
    padding: 6px;
    border-radius: 6px;
    margin-bottom: 5px;
    border: 1px solid #e6d7b8;
    box-shadow: 0 2px 6px rgba(184, 155, 91, 0.08);
    position: relative;
}

.jieyi-types h2,
.filter-section h2 {
    color: #b89b5b;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    position: relative;
    padding-left: 12px;
}

.jieyi-types h2::before,
.filter-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: #b89b5b;
    border-radius: 2px;
}

.filter-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.type-list,
.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
    align-items: center;
}

.type-item a,
.filter-group a {
    display: inline-block;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #e0d8c0;
    border-radius: 16px;
    color: #666;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.4;
}

.type-item a:hover,
.filter-group a:hover {
    background: #b89b5b;
    color: #fff;
    border-color: #b89b5b;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(184, 155, 91, 0.25);
}

.expand-btn {
    display: none;
    margin-left: 10px;
    padding: 5px 10px;
    font-size: 12px;
    color: #b89b5b;
    background-color: #fff;
    border: 1px solid #b89b5b;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

/* 古文解译列表 */
.jieyi-list {
    margin-bottom: 5px;
}

.jieyi-item {
    border: 1px solid #e6d7b8;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 5px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(184, 155, 91, 0.08);
    position: relative;
    overflow: hidden;
}

.jieyi-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #b89b5b;
    transform: scaleY(0);
    transition: transform 0.25s ease;
}



.jieyi-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.jieyi-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.25s ease;
    position: relative;
}

.jieyi-title a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: #b89b5b;
    transition: width 0.25s ease;
}

.jieyi-title a:hover {
    color: #b89b5b;
}

.jieyi-title a:hover::after {
    width: 100%;
}

.jieyi-meta {
    color: #666;
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.jieyi-meta a {
    color: #b89b5b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s ease;
}

.jieyi-meta a:hover {
    text-decoration: underline;
    color: #a08850;
}

.jieyi-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 14px;
}

.jieyi-tags {
    margin-top: 12px;
}

.jieyi-tags .tag {
    display: inline-block;
    background: linear-gradient(135deg, #f0e6d2, #e6d7b8);
    color: #7d6e45;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    margin-right: 8px;
    margin-bottom: 6px;
    font-weight: 500;
    transition: all 0.25s ease;
    border: 1px solid #e0d8c0;
}

.jieyi-tags .tag:hover {
    background: #b89b5b;
    color: #fff;
    border-color: #b89b5b;
    transform: translateY(-1px);
}

/* 分页样式 */
.pagination {
    text-align: center;
    margin-top: 5px;
    padding: 10px 0;
}

.pagination a, 
.pagination span {
    display: inline-block;
    padding: 12px 18px;
    margin: 0 4px;
    border: 2px solid #e0e0e0;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(184, 155, 91, 0.1), transparent);
    transition: left 0.5s;
}

.pagination a:hover::before {
    left: 100%;
}

.pagination a:hover {
    background: #b89b5b;
    color: #fff;
    border-color: #b89b5b;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(184, 155, 91, 0.3);
}

.pagination .current {
    background: #b89b5b;
    color: #fff;
    border-color: #b89b5b;
    box-shadow: 0 4px 12px rgba(184, 155, 91, 0.3);
}

/* 无数据提示 */
.no-data-message {
    text-align: center;
    padding: 80px 20px;
    color: #666;
    background: linear-gradient(135deg, #f9f6ec 0%, #f0e6d2 100%);
    border-radius: 12px;
    border: 1px solid #e6d7b8;
    position: relative;
}

.no-data-message::before {
    content: '📚';
    font-size: 48px;
    display: block;
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-data-message h3 {
    color: #b89b5b;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 600;
}

.no-data-message p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
}

.no-data-message a {
    color: #b89b5b;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #b89b5b;
    border-radius: 25px;
    display: inline-block;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.no-data-message a:hover {
    background: #b89b5b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(184, 155, 91, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {


   

    .jieyi-header {
        padding: 25px 15px;
    }

    .jieyi-header h1 {
        font-size: 28px;
    }

    .jieyi-types,
    .filter-section {
        padding: 12px;
    }

    .jieyi-types h2,
    .filter-section h2 {
        font-size: 14px;
        margin-bottom: 10px;
        padding-left: 10px;
    }

    .jieyi-types h2::before,
    .filter-section h2::before {
        width: 2px;
        height: 14px;
    }

    .filter-desc {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .type-list,
    .filter-group {
        gap: 5px;
        justify-content: flex-start;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        position: relative;
    }

    .filter-group .type-item:nth-child(n+7) {
        display: none;
    }

    .filter-group.expanded .type-item {
        display: inline-block;
    }

    .type-item a,
    .filter-group a {
        padding: 4px 10px;
        font-size: 11px;
        color: #19537D !important;
        background-color: #f0f6ff;
        border: 1px solid #19537D;
        border-radius: 15px;
        text-decoration: none;
        white-space: nowrap;
        flex-shrink: 0;
        transition: all 0.3s ease;
        font-weight: 500;
        transform: scale(1.02);
    }

    .type-item a:hover,
    .filter-group a:hover,
    .type-item a:active,
    .filter-group a:active {
        background-color: #19537D;
        color: #fff !important;
        transform: scale(1.08);
        animation: none;
    }

    .expand-btn {
        margin-left: 8px;
        padding: 4px 10px;
        font-size: 11px;
        color: #19537D;
        background-color: #fff;
        border: 1px solid #19537D;
        border-radius: 15px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 4px;
        font-weight: 500;
    }

    .expand-btn:hover {
        background-color: #19537D;
        color: #fff;
        transform: scale(1.05);
    }

    .expand-icon {
        font-size: 8px;
        transition: transform 0.3s ease;
    }

    .jieyi-item {
        padding: 16px;
        margin-bottom: 14px;
    }

    .jieyi-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .jieyi-meta {
        font-size: 12px;
        flex-wrap: wrap;
        margin-bottom: 10px;
        gap: 10px;
    }

    .jieyi-content {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .jieyi-tags {
        margin-top: 10px;
    }

    .jieyi-tags .tag {
        padding: 3px 8px;
        font-size: 10px;
        margin-right: 6px;
        margin-bottom: 4px;
    }

    .pagination a, 
    .pagination .current {
        padding: 5px 10px;
        margin: 0 3px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .jieyi-header h1 {
        font-size: 24px;
    }
    
    .jieyi-types,
    .filter-section {
        padding: 10px;
    }

    .jieyi-types h2,
    .filter-section h2 {
        font-size: 13px;
        margin-bottom: 8px;
        padding-left: 8px;
    }

    .jieyi-types h2::before,
    .filter-section h2::before {
        width: 2px;
        height: 12px;
    }

    .filter-desc {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .type-list,
    .filter-group {
        gap: 4px;
    }

    .filter-group .type-item:nth-child(n+7) {
        display: none;
    }

    .filter-group.expanded .type-item {
        display: inline-block;
    }

    .type-item a,
    .filter-group a {
        padding: 3px 8px;
        font-size: 10px;
    }

    .expand-btn {
        margin-left: 6px;
        padding: 3px 8px;
        font-size: 10px;
        gap: 3px;
    }

    .expand-icon {
        font-size: 7px;
    }
    
    .jieyi-item {
        padding: 5px;
        margin-bottom: 5px;
    }

    .jieyi-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .jieyi-meta {
        font-size: 14px;
        margin-bottom: 8px;
        gap: 8px;
    }

    .jieyi-content {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .jieyi-tags {
        margin-top: 8px;
    }

    .jieyi-tags .tag {
        padding: 2px 6px;
        font-size: 9px;
        margin-right: 4px;
        margin-bottom: 3px;
    }
    
    .type-list {
        gap: 4px;
    }
    
    .type-item a {
        padding: 3px 8px;
        font-size: 11px;
        border-radius: 12px;
    }
} 