/* ==================== 读非遗样式 - 国家级非遗名录风格 ==================== */

/* 页面整体 */
.read-heritage-page {
    min-height: 100vh;
    background: #f5f5f5;
}

/* 顶部介绍区域 */
.read-header {
    background: linear-gradient(135deg, #8B0000 0%, #B22222 50%, #CD5C5C 100%);
    color: #fff;
    padding: 40px 0 30px;
}

.read-header-content {
    max-width: 800px;
}

.read-header-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 16px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.read-header-desc {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 16px;
}

.read-header-desc p {
    text-indent: 2em;
    text-align: justify;
    margin-bottom: 8px;
}

.read-header-link a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding-bottom: 2px;
    transition: all 0.3s;
}

.read-header-link a:hover {
    border-bottom-color: #fff;
}

/* 统计数据 */
.read-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.read-stat-item {
    text-align: center;
}

.read-stat-num {
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 8px;
}

.read-stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* 筛选区域 */
.read-filter-section {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.read-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.read-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    width: 100%;
}

/* 下拉选择框 */
.read-filter-select {
    min-width: 140px;
}

.read-filter-select .form-select {
    border-radius: 4px;
    border: 1px solid #d9d9d9;
    padding: 8px 32px 8px 12px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.read-filter-select .form-select:hover {
    border-color: #B22222;
}

.read-filter-select .form-select:focus {
    border-color: #B22222;
    box-shadow: 0 0 0 2px rgba(178,34,34,0.2);
}

.read-filter-select .form-select option[value=""] {
    color: #999;
}

/* 搜索框 */
.read-filter-search {
    flex: 1;
    min-width: 200px;
}

.read-filter-search-input {
    border-radius: 4px;
    border: 1px solid #d9d9d9;
    padding: 8px 12px;
    font-size: 14px;
}

.read-filter-search-input:focus {
    border-color: #B22222;
    box-shadow: 0 0 0 2px rgba(178,34,34,0.2);
}

.read-filter-search-input::placeholder {
    color: #999;
}

/* 搜索按钮 */
.read-filter-submit {
    display: flex;
    align-items: center;
    gap: 12px;
}

.read-filter-submit-btn {
    padding: 8px 24px;
    background: #B22222;
    border-color: #B22222;
    font-size: 14px;
}

.read-filter-submit-btn:hover {
    background: #8B0000;
    border-color: #8B0000;
}

.read-filter-clear-btn {
    padding: 8px 16px;
    font-size: 14px;
}

/* 结果统计 */
.read-result-section {
    padding: 16px 0;
}

.read-result-info {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.read-result-count {
    color: #B22222;
    font-weight: bold;
}

.read-result-tip {
    color: #999;
    font-size: 12px;
    font-style: italic;
}

/* 表格区域 */
.read-table-section {
    padding-bottom: 40px;
}

.read-table-wrap {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.read-table {
    width: 100%;
    border-collapse: collapse;
}

.read-table th {
    background: #f7f7f7;
    padding: 12px 16px;
    text-align: left;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    border-bottom: 2px solid #e8e8e8;
}

.read-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #e8e8e8;
}

.read-table tbody tr:hover {
    background: #fff9f9;
}

.read-table a {
    color: #B22222;
    text-decoration: none;
    transition: color 0.3s;
}

.read-table a:hover {
    color: #8B0000;
    text-decoration: underline;
}

.read-table-link {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s;
}

.read-table-link:hover {
    background: #B22222;
    color: #fff;
    text-decoration: none;
}

/* 空状态 */
.read-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.read-empty i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
}

.read-empty p {
    font-size: 16px;
    color: #666;
    margin-bottom: 16px;
}

.read-empty .btn {
    padding: 8px 24px;
    border: 1px solid #B22222;
    color: #B22222;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.read-empty .btn:hover {
    background: #B22222;
    color: #fff;
}

/* 移动端空状态 */
@media (max-width: 768px) {
    .read-empty {
        padding: 40px 16px;
    }

    .read-empty i {
        font-size: 36px;
    }

    .read-empty p {
        font-size: 14px;
    }
}

/* 分页 */
.read-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.read-pagination-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.read-pagination-item {
    display: inline-block;
}

.read-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.read-pagination-link:hover {
    border-color: #B22222;
    color: #B22222;
}

.read-pagination-link.active {
    background: #B22222;
    border-color: #B22222;
    color: #fff;
}

.read-pagination-dots {
    color: #999;
}

.read-pagination-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.read-pagination-jump-input {
    width: 50px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.read-pagination-jump-input:focus {
    border-color: #B22222;
    outline: none;
}

.read-pagination-jump-btn {
    padding: 8px 16px;
    background: #B22222;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.read-pagination-jump-btn:hover {
    background: #8B0000;
}

/* ==================== 详情页样式 ==================== */

/* 面包屑导航 */
.read-detail-breadcrumb {
    background: #f5f5f5;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
}

.read-detail-breadcrumb .breadcrumb {
    margin: 0;
    padding: 0;
    font-size: 13px;
    flex-wrap: wrap;
}

.read-detail-breadcrumb .breadcrumb-item a {
    color: #666;
    text-decoration: none;
}

.read-detail-breadcrumb .breadcrumb-item a:hover {
    color: #B22222;
}

.read-detail-breadcrumb .breadcrumb-item.active {
    color: #333;
}

/* 移动端面包屑 */
@media (max-width: 768px) {
    .read-detail-breadcrumb {
        padding: 10px 0;
    }

    .read-detail-breadcrumb .breadcrumb {
        font-size: 12px;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        padding-right: 0.5rem;
    }
}

/* 详情页容器 */
.read-detail-container {
    background: #fff;
    margin: 24px 0;
    padding: 32px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 标题区域 */
.read-detail-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #B22222;
}

.read-detail-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* 项目信息表格 */
.read-detail-info-table {
    margin-bottom: 24px;
}

.read-detail-info-table table {
    width: 100%;
    border-collapse: collapse;
}

.read-detail-info-table td {
    padding: 12px 16px;
    border: 1px solid #e8e8e8;
    background: #fafafa;
    width: 50%;
}

.read-detail-info-item {
    display: flex;
    align-items: baseline;
}

.read-detail-info-item .info-label {
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    min-width: 80px;
}

.read-detail-info-item .info-value {
    color: #333;
}

/* 正文内容 */
.read-detail-content {
    margin-bottom: 24px;
}

.read-detail-content-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.read-detail-content-text p {
    text-indent: 2em;
    margin-bottom: 16px;
}

.read-detail-content-divider {
    margin-top: 32px;
    padding-top: 24px;
}

.divider-line {
    height: 1px;
    background: linear-gradient(to right, #B22222, #e8e8e8, transparent);
}

/* 底部统计 */
.read-detail-footer {
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}

.read-detail-stats {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: #666;
}

.read-detail-stats i {
    margin-right: 4px;
    color: #B22222;
}

/* 相关推荐 */
.read-detail-related {
    background: #fff;
    margin-bottom: 40px;
    padding: 24px 32px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.read-detail-related-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #B22222;
}

.read-detail-related-title i {
    color: #B22222;
    margin-right: 8px;
}

.read-detail-related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.read-detail-related-item {
    display: block;
    padding: 16px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.read-detail-related-item:hover {
    border-color: #B22222;
    box-shadow: 0 2px 8px rgba(178,34,34,0.1);
    transform: translateY(-2px);
}

.related-item-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.read-detail-related-item:hover .related-item-title {
    color: #B22222;
}

.related-item-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.related-item-meta span {
    display: inline-flex;
    align-items: center;
}

.related-item-meta span:not(:last-child)::after {
    content: '|';
    margin-left: 12px;
    color: #ddd;
}

/* ==================== 移动端响应式设计 ==================== */

/* 平板及小屏幕 (768px以下) */
@media (max-width: 768px) {
    /* 头部区域 */
    .read-header {
        padding: 20px 0;
    }

    .read-header-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .read-header-desc {
        font-size: 13px;
        line-height: 1.6;
    }

    .read-header-desc p {
        text-indent: 0;
    }

    /* 统计数据 - 2x2网格 */
    .read-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 16px;
        padding-top: 16px;
    }

    .read-stat-num {
        font-size: 24px;
    }

    .read-stat-label {
        font-size: 12px;
    }

    /* 筛选区域 - 垂直堆叠 */
    .read-filter-section {
        padding: 12px 0;
    }

    .read-filter-row {
        flex-direction: column;
        gap: 8px;
    }

    .read-filter-select {
        width: 100%;
    }

    .read-filter-select .form-select {
        width: 100%;
        padding: 10px 12px;
        font-size: 14px;
    }

    .read-filter-search {
        width: 100%;
    }

    .read-filter-search-input {
        width: 100%;
        padding: 10px 12px;
    }

    .read-filter-submit {
        width: 100%;
        flex-direction: row;
        gap: 8px;
    }

    .read-filter-submit-btn {
        flex: 1;
        padding: 10px 16px;
    }

    .read-filter-clear-btn {
        padding: 10px 16px;
    }

    /* 结果统计 */
    .read-result-section {
        padding: 12px 0;
    }

    .read-result-info {
        font-size: 13px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    /* 表格转换为卡片布局 */
    .read-table-section {
        padding: 0 0 24px;
    }

    .read-table-wrap {
        background: transparent;
        box-shadow: none;
    }

    .read-table {
        display: block;
    }

    .read-table thead {
        display: none;
    }

    .read-table tbody {
        display: block;
    }

    .read-table tr {
        display: block;
        background: #fff;
        margin-bottom: 12px;
        border-radius: 8px;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .read-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;
    }

    .read-table td:last-child {
        border-bottom: none;
    }

    .read-table-mobile-label {
        font-weight: 600;
        color: #666;
        font-size: 13px;
        min-width: 60px;
    }

    .read-table td a {
        word-break: break-all;
    }

    .read-table-link {
        background: #B22222;
        color: #fff;
        padding: 6px 16px;
        border-radius: 4px;
        font-size: 13px;
    }

    /* 分页 */
    .read-pagination {
        flex-direction: column;
        gap: 16px;
    }

    .read-pagination-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .read-pagination-link {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }

    /* 详情页 */
    .read-detail-container {
        padding: 16px;
        margin: 12px 0;
    }

    .read-detail-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .read-detail-info-table table {
        display: block;
    }

    .read-detail-info-table tbody {
        display: block;
    }

    .read-detail-info-table tr {
        display: block;
        margin-bottom: -1px;
    }

    .read-detail-info-table td {
        display: block;
        width: 100%;
        padding: 10px 12px;
    }

    .read-detail-info-item {
        flex-direction: column;
        gap: 4px;
    }

    .read-detail-info-item .info-label {
        font-size: 12px;
        color: #999;
    }

    .read-detail-info-item .info-value {
        font-size: 14px;
    }

    .read-detail-content-text {
        font-size: 15px;
        line-height: 1.8;
    }

    .read-detail-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .read-detail-related {
        padding: 16px;
    }

    .read-detail-related-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .read-detail-related-item {
        padding: 12px;
    }

    .related-item-title {
        font-size: 14px;
    }

    .related-item-meta {
        font-size: 11px;
        flex-wrap: wrap;
    }
}

/* 手机小屏幕 (480px以下) */
@media (max-width: 480px) {
    .read-header {
        padding: 16px 0;
    }

    .read-header-title {
        font-size: 18px;
    }

    .read-header-desc {
        font-size: 12px;
    }

    .read-stats {
        gap: 8px;
    }

    .read-stat-item {
        padding: 8px;
    }

    .read-stat-num {
        font-size: 20px;
    }

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

    .read-filter-select .form-select {
        font-size: 13px;
    }

    .read-filter-search-input {
        font-size: 13px;
    }

    .read-filter-submit-btn {
        font-size: 13px;
    }

    .read-table tr {
        padding: 12px;
        margin-bottom: 8px;
    }

    .read-table td {
        padding: 6px 0;
        font-size: 13px;
    }

    .read-table-mobile-label {
        font-size: 12px;
        min-width: 50px;
    }

    .read-detail-container {
        padding: 12px;
    }

    .read-detail-title {
        font-size: 18px;
    }

    .read-detail-content-text {
        font-size: 14px;
    }
}
/* test */
