/* 
 * 省份归档系统样式 - 外部CSS文件
 * 版本：2.0
 * 文件路径：/wp-content/themes/zibll/province-archive.css
 */


/* 容器基础样式 - 改为居中，两边留白 */
.lulugu-province-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 确保父容器也有正确的宽度 */
.lulugu-province-container .container {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

/* 面包屑导航 */
.breadcrumb-navigation {
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

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

.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding-right: 0.5rem;
    color: #6c757d;
    content: "/";
}

.breadcrumb-item a {
    color: #0073aa;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #005a87;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* 顶部提示框 */
.province-top-notice {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.notice-content {
    font-size: 15px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-arrow {
    color: #0073aa;
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
}

.notice-link {
    color: #0073aa;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed #0073aa;
    transition: all 0.2s;
}

.notice-link:hover {
    color: #005a87;
    border-bottom-style: solid;
}

/* 统计信息 */
.province-statistics {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

/* 姓氏搜索框 */
.surnames-search-box {
    position: relative;
    max-width: 300px;
    margin-bottom: 12px;
}

.surnames-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.surnames-search-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.surnames-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.surnames-search-results.show {
    display: block;
}

.surnames-search-result-item {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.surnames-search-result-item:hover {
    background: #f8f9fa;
    color: #0073aa;
}

.surnames-search-result-item:last-child {
    border-bottom: none;
}

/* 分类展示区 */
.province-surnames-section {
    background: #fff;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 25px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}

.section-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 12px;
}

.section-title:before {

    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background: #0073aa;
    border-radius: 1.5px;
}

/* 字母导航标签（淡色版） */
.surnames-alphabet-nav {
    margin-bottom: 10px;
}

.alphabet-nav-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.alphabet-tag {
    display: inline-block;
    padding: 3px 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    text-decoration: none;
    color: #6c757d;
    font-size: 12px;
    transition: all 0.2s;
}

.alphabet-tag:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #dee2e6;
}

/* 按字母分行的姓氏展示 - 每个字母单独一组 */
.surnames-by-letter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.surname-letter-group {
    padding: 8px 0;
    border-bottom: 1px dotted #f0f0f0;
}

.surname-letter-group:last-child {
    border-bottom: none;
}

/* 字母组布局 - 修正：增加字母和姓氏之间的留白 */
.letter-group {
    display: flex;
    align-items: center;
    gap: 8px; /* 增加留白，从2px增加到8px */
}

/* 字母标签样式 */
.letter-label {
    width: 30px;
    min-width: 30px;
    height: 30px;
    background: #f0f8ff;
    color: #4a90e2;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #e1f0ff;
    flex-shrink: 0;
}

/* 姓氏列表样式 */
.surnames-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex: 1;
}

/* 姓氏链接样式 */
.surname-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    font-size: 14px;
    white-space: nowrap;
    line-height: 1.2;
}

.surname-link:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,115,170,0.2);
}

.surname-link:hover .surname-count {
    color: white;
    opacity: 0.9;
}

.surname-name {
    font-weight: 500;
    font-size: 14px;
}

.surname-count {
    color: #666;
    font-size: 11px;
    font-weight: normal;
    margin-left: 1px;
    opacity: 0.7;
}

.no-surnames {
    padding: 15px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* 文章列表区 */
.province-posts-section {
    background: #fff;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 25px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}

/* 文章网格 */
.province-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

/* 卡片样式 - 简化版（只显示标题） */
.category-card {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border-color: #0073aa;
}

.category-info {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-name {
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.category-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}

.category-name a:hover {
    color: #0073aa;
}

/* 分页导航 - 优化版 */
.pagination-nav {
    margin-top: 20px;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
}

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

.pagination li {
    display: inline-block;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #0073aa;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 13px;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    background: #f8f9fa;
    color: #495057;
    font-weight: 500;
}

.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.pagination .page-numbers.current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.pagination .page-numbers:hover:not(.current):not(.prev):not(.next) {
    background: #f8f9fa;
    color: #005a87;
    border-color: #0073aa;
}

.pagination .dots {
    padding: 6px 8px;
    color: #999;
    background: none;
    border: none;
}

/* 返回按钮 */
.back-to-provinces {
    padding: 15px 0;
}

.back-to-provinces .btn-view-aggregation {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: #f8f9fa;
    color: #666;
    font-weight: 400;
}

.back-to-provinces .btn-view-aggregation:hover {
    background: #e9ecef;
    color: #333;
    border-color: #d0d0d0;
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 无数据提示 */
.no-posts-message {
    background: #f8f9fa;
    padding: 25px;
    text-align: center;
    border-radius: 6px;
    margin: 15px 0;
}

.no-posts-message h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.no-posts-message p {
    color: #666;
    font-size: 14px;
}

/* 响应式设计 - 重点优化移动端 */
@media (max-width: 1200px) {
    .province-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .lulugu-province-container {
        padding: 0 15px;
    }
    
    .container {
        padding: 0 15px !important;
    }
}

@media (max-width: 992px) {
    .province-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .surnames-list {
        gap: 6px;
    }
    
    .surname-link {
        padding: 4px 8px;
        font-size: 13px;
    }
    
    .letter-group {
        gap: 6px; /* 平板端调整为6px */
    }
    
    .letter-label {
        width: 28px;
        min-width: 28px;
        height: 28px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .lulugu-province-container {
        padding: 0 12px;
    }
    
    .container {
        padding: 0 12px !important;
    }
    
    .province-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 10px;
    }
    
    .province-statistics {
        flex-direction: column;
        gap: 10px;
    }
    
    .category-info {
        padding: 10px;
    }
    
    .category-name {
        font-size: 13px;
        margin-bottom: 0;
    }
    
    .pagination .page-numbers {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    /* 移动端：适当减少字母和姓氏间距 */
    .letter-label {
        width: 26px;
        min-width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .surname-link {
        font-size: 13px;
        padding: 4px 6px;
    }
    
    .surname-name {
        font-size: 13px;
    }
    
    .surname-count {
        font-size: 10px;
    }
}

/* 移动端优化 */
@media (max-width: 576px) {
    .lulugu-province-container {
        padding: 0 10px;
    }
    
    .container {
        padding: 0 10px !important;
    }
    
    .province-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .province-surnames-section,
    .province-posts-section {
        padding: 12px;
    }
    
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination .page-numbers {
        padding: 5px 8px;
        font-size: 11px;
        margin: 1px;
    }
    
    /* 移动端：适当减少字母和姓氏间距，但保持一定留白 */
    .letter-group {
        gap: 4px; /* 移动端调整为4px */
        align-items: center;
    }
    
    .letter-label {
        width: 24px;
        min-width: 24px;
        height: 24px;
        font-size: 11px;
        font-weight: 600;
    }
    
    /* 移动端：姓氏列表布局优化 */
    .surnames-list {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        flex: 1;
        align-items: center;
    }
    
    /* 移动端：姓氏字体 */
    .surname-link {
        padding: 3px 6px;
        font-size: 12px;
        border-radius: 3px;
        min-height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .surname-name {
        font-size: 12px;
        font-weight: 500;
    }
    
    .surname-count {
        font-size: 9px;
        opacity: 0.8;
    }
}

/* 超小屏幕设备 */
@media (max-width: 400px) {
    .surnames-list {
        gap: 4px;
    }
    
    .surname-link {
        padding: 3px 5px;
        font-size: 11px;
    }
    
    .letter-label {
        width: 22px;
        min-width: 22px;
        height: 22px;
        font-size: 10px;
    }
}

/* 省份导航页样式 */
.page-header {
    text-align: center;
    margin-bottom: 30px;
}

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

.page-description {
    font-size: 15px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 省份导航短码样式 */
.lulugu-province-navigation-compact {
    margin: 25px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.province-compact-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px 16px;
    justify-content: center;
}

.province-compact-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    height: 45px;
}

.province-compact-item:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,115,170,0.15);
}

.province-compact-name {
    display: inline-block;
    font-size: 15px;
}

.province-compact-count {
    font-size: 10px;
    margin-left: 2px;
    color: #666;
    vertical-align: super;
    line-height: 1;
}

.province-compact-item:hover .province-compact-count {
    color: rgba(255,255,255,0.9);
}

/* 响应式设计 - 省份导航 */
@media (max-width: 1200px) {
    .lulugu-province-navigation-compact {
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .province-compact-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px 14px;
    }
    .province-compact-item {
        padding: 9px 5px;
        font-size: 14px;
        height: 42px;
    }
}

@media (max-width: 768px) {
    .province-compact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px 12px;
    }
    .province-compact-item {
        padding: 8px 4px;
        font-size: 14px;
        height: 40px;
    }
    .province-compact-name {
        font-size: 14px;
    }
    .province-compact-count {
        font-size: 9px;
    }
}

@media (max-width: 576px) {
    .lulugu-province-navigation-compact {
        padding: 0 10px;
    }
    .province-compact-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px 10px;
    }
    .province-compact-item {
        padding: 7px 3px;
        font-size: 13px;
        height: 38px;
    }
    .province-compact-name {
        font-size: 13px;
    }
    .province-compact-count {
        font-size: 8px;
    }
}

@media (max-width: 400px) {
    .province-compact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px 8px;
    }
    .province-compact-item {
        padding: 6px 2px;
        font-size: 12px;
        height: 36px;
    }
}