/* 网站地图页面样式（/sitemap） */

body.sitemap-page {
    background: radial-gradient(circle at top left, #f0f4ff 0%, #f7f8fc 40%, #eef1f8 100%);
    padding-top: 80px;
}

.page-hero-section {
    padding: 70px 0 45px;
    background: linear-gradient(135deg, #4f8df5 0%, #6c63ff 50%, #5b8def 100%);
    color: #fff;
    text-align: center;
}

.page-hero-section .page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-hero-section .page-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.sitemap-main {
    padding: 40px 0 60px;
}

/* 网站地图区块 */
.sitemap-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.sitemap-section:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    font-size: 22px;
    color: #667eea;
}

.section-more {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.section-more:hover {
    color: #764ba2;
    gap: 10px;
}

.section-more i {
    font-size: 12px;
}

/* 网站地图列表 */
.sitemap-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.sitemap-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.sitemap-item:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border-color: #667eea;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.sitemap-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sitemap-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.sitemap-item:hover .sitemap-link::before {
    left: 100%;
}

.sitemap-link i {
    font-size: 16px;
    color: #667eea;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sitemap-item:hover .sitemap-link i {
    transform: rotate(90deg);
}

.item-title {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    transition: color 0.3s ease;
}

.sitemap-item:hover .item-title {
    color: #667eea;
}

.item-date {
    font-size: 12px;
    color: #94a3b8;
    flex-shrink: 0;
    white-space: nowrap;
}

.section-count {
    font-size: 16px;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 8px;
}

.sitemap-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 14px;
}

/* 分页样式 */
.sitemap-pagination {
    margin-top: 30px;
    text-align: center;
    padding: 20px 0;
}

/* ThinkPHP 默认分页样式 */
.sitemap-pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.sitemap-pagination li {
    display: inline-block;
}

.sitemap-pagination a,
.sitemap-pagination span {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 38px;
    text-align: center;
    line-height: 1.5;
}

.sitemap-pagination a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sitemap-pagination .current,
.sitemap-pagination .active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
}

.sitemap-pagination .disabled,
.sitemap-pagination .disabled a {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.sitemap-pagination .disabled:hover,
.sitemap-pagination .disabled a:hover {
    background: #fff;
    border-color: #e2e8f0;
    color: #64748b;
    transform: none;
    box-shadow: none;
}

/* Layui 分页样式（如果使用） */
.sitemap-pagination .layui-laypage {
    margin: 0;
    display: inline-block;
}

.sitemap-pagination .layui-laypage a,
.sitemap-pagination .layui-laypage span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 4px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 38px;
    text-align: center;
}

.sitemap-pagination .layui-laypage a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sitemap-pagination .layui-laypage .layui-laypage-curr {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.sitemap-pagination .layui-laypage .layui-laypage-curr em {
    background: transparent;
    color: #fff;
    font-style: normal;
}

.sitemap-pagination .layui-laypage .layui-laypage-prev,
.sitemap-pagination .layui-laypage .layui-laypage-next {
    font-weight: 600;
}

.sitemap-pagination .layui-laypage .layui-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sitemap-pagination .layui-laypage .layui-disabled:hover {
    background: #fff;
    border-color: #e2e8f0;
    color: #64748b;
    transform: none;
    box-shadow: none;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .page-hero-section {
        padding: 40px 0 30px;
    }

    .page-hero-section .page-title {
        font-size: 28px;
    }

    .sitemap-main {
        padding: 20px 0 40px;
    }

    .sitemap-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .section-title {
        font-size: 20px;
    }

    .sitemap-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sitemap-link {
        padding: 12px 14px;
    }

    .item-date {
        display: none;
    }
}

