﻿/* 作者页面样式 */
:root {
    --primary-color: #4e8cbb;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-color: #f5f5f5;
    --border-color: #e6d8b6;
    --section-bg: #f9f6ec;
    --card-shadow: 0 2px 12px rgba(180,160,100,0.10);
}

.g-bd {
    background-color: var(--bg-color);
    max-width: 1200px;
    margin: 0 auto;
}


/* 页面头部样式 */
.page-header {
    border-radius: 14px;
    padding: 5px;
    margin-bottom: 5px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-header h1 {
    font-size: 28px;
    color: #7c5c1e;
    margin: 0 0 15px 0;
    font-weight: bold;
    letter-spacing: 1px;
}

.page-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 auto 10px auto;
    max-width: 800px;
}

.page-stats {
    font-size: 14px;
    color: var(--text-lighter);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(230,216,182,0.3);
}

.page-stats span {
    margin-right: 20px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 15px;
}

/* 区域通用样式 */
.filter-section, .authors-section {
    background: var(--section-bg);
    border-radius: 14px;
    padding: 5px;
    margin-bottom: 5px;
    box-shadow: var(--card-shadow);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.filter-section h2, .authors-section h2 {
    font-size: 16px;
    color: #7c5c1e;
    margin: 0 0 3px 0;
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(230,216,182,0.5);
    background:#fff;
}

.filter-desc, .section-desc {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 15px 0;
    line-height: 1.4;
    font-style: italic;
    padding: 10px 15px;
    background: #fff;
    border-radius: 8px;
}

/* 筛选区域特定样式 */
.filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.filter-section h2::before {
    content: '🏛️';
    margin-right: 8px;
    font-size: 18px;
}

.filter-desc {
    border-left: 4px solid #d5b788;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}

.filter-label {
    color: var(--text-light);
    font-weight: bold;
    white-space: nowrap;
    margin-right: 10px;
}

.filter-group a {
    display: inline-block;
    padding: 6px 12px;
    background: #fff;
    color: var(--text-light);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e0d9c8;
}

.filter-group a:hover {
    background: linear-gradient(135deg, #f5f2e9, #ede8da);
    color: var(--text-color);
}

.filter-group a.active {
    background: linear-gradient(to right, #8b6b4a, #d5b788);
    color: #fff;
}

.expand-btn {
    display: none;
}

/* 作者列表区域特定样式 */
.authors-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.authors-section h2::before {
    content: '👥';
    margin-right: 8px;
    font-size: 18px;
}

.section-desc {
    border-left: 4px solid #4e8cbb;
    margin-bottom: 5px;
}

/* 作者项目样式 */
.topic-item {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #bcd2e6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(180,160,100,0.06);
    padding: 2px;
    margin-bottom: 2px;
    transition: box-shadow 0.2s, border-color 0.2s;
    min-height: 120px;
}

.topic-item:hover {
    border-color: #7cb1e6;
    box-shadow: 0 4px 16px rgba(76,140,187,0.10);
    background: #f3f8fc;
}

.topic-cover {
    width: 100px;
    min-width: 100px;
    height: 100px;
    background: #f3f8fc;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    border: 1px solid #e0d9c8;
    box-shadow: 0 1px 4px rgba(180,160,100,0.06);
}

.author-img {
    width: 90px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #bcd2e6;
    box-shadow: 0 1px 4px rgba(76,140,187,0.08);
    background: #fff;
}

.topic-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topic-info h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    color: #2d5c8a;
    font-weight: bold;
}

.topic-info h3 a {
    color: #2d5c8a;
    text-decoration: none;
    transition: color 0.3s;
}

.topic-info h3 a:hover {
    color: var(--primary-color);
}

.author-row-meta-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 4px;
}

.author-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-row h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
}

.author-row .dynasty {
    color: #888;
    font-size: 15px;
    margin-left: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    display: inline-block;
    vertical-align: middle;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #888;
}

.topic-info .desc {
    color: #444;
    font-size: 15px;
    line-height: 1.8;
    margin-top: 4px;
    word-break: break-all;
}

.desc b {
    color: var(--primary-color);
    font-weight: bold;
}

/* 分页样式 */
.pagination-nav {
    margin: 25px 0;
    text-align: center;
}

.pagination-nav a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    background-color: #f9f6ec;
    color: #5a4321;
    text-decoration: none;
    border: 1px solid #e6d8b6;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.pagination-nav a:hover {
    background-color: #f3e9d7;
    color: #8b6b4a;
    border-color: #d4bc91;
}

.pagination-nav a.active {
    background-color: #8b6b4a;
    color: #fff;
    border-color: #8b6b4a;
    cursor: default;
}

.pagination-nav span {
    display: inline-block;
    padding: 6px 8px;
    margin: 0 3px;
    color: #8b6b4a;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .g-bd {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-header {
        display: none !important;
    }
    
    .page-header h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .page-description {
        font-size: 14px;
    }
    
    .filter-desc {
        display: none !important;
    }
    
    .section-desc {
        display: none !important;
    }
    
    .filter-section, .authors-section {
        margin: 0 !important;
        padding: 15px !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid #ddd !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .filter-desc, .section-desc {
        font-size: 13px;
    }
    
    .filter-group {
        flex-direction: row;
        align-items: center;
        gap: 5px;
        flex-wrap: wrap;
        position: relative;
    }
    
    .filter-group .dynasty-item:nth-child(n+6) {
        display: none;
    }
    
    .filter-group.expanded .dynasty-item {
        display: inline-block;
    }
    
    .filter-label {
        margin-bottom: 0;
        margin-right: 10px;
        flex-shrink: 0;
        color: #333;
        font-weight: 500;
    }
    
    .filter-group a {
     
        margin-bottom: 0;
        font-size: 13px;
        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);
    }
    
    @keyframes pulseScale {
        0%, 100% {
            transform: scale(1.02);
        }
        50% {
            transform: scale(1.05);
        }
    }
    
    .filter-group a:hover,
    .filter-group a:active {
        background-color: #19537D;
        color: #fff !important;
        transform: scale(1.08);
        animation: none;
    }
    
    .expand-btn {
        margin-left: 10px;
        padding: 6px 12px;
        font-size: 13px;
        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: 5px;
        font-weight: 500;
    }
    
    .expand-btn:hover {
        background-color: #19537D;
        color: #fff;
        transform: scale(1.05);
    }
    
    .expand-icon {
        font-size: 10px;
        transition: transform 0.3s ease;
    }
    
    .topic-item {
        flex-direction: row !important;
        align-items: flex-start !important;
        text-align: left !important;
        padding: 12px !important;
        min-height: auto !important;
        border: 1px solid #f0f0f0 !important;
        border-radius: 8px !important;
        margin-bottom: 8px !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        background-image: none !important;
        gap: 12px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }

    .topic-cover {
        width: 80px;
        min-width: 80px;
        height: 100px;
        margin: 0;
        flex-shrink: 0;
    }

    .author-img {
        width: 80px;
        height: 100px;
        border-radius: 8px;
        object-fit: cover;
    }

    .topic-info {
        flex: 1;
        min-width: 0;
        padding-top: 0;
        margin-top: 0;
    }

    .topic-info h3 {
        font-size: 16px;
        text-align: left;
        margin: 0 0 4px 0;
        padding: 0;
        font-weight: 600;
        color: #333;
        line-height: 1.2;
    }

    .topic-info h3 a {
        color: #333;
        text-decoration: none;
    }

    .author-row-meta-wrap {
        margin: 0 0 8px 0;
        padding: 0;
    }

    .author-row {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 4px 0;
        padding: 0;
    }

    .author-row .dynasty {
        margin: 0;
        font-size: 13px;
        color: #666;
        font-weight: normal;
    }

    .author-meta {
        font-size: 13px;
        color: #666;
        line-height: 1.4;
        margin-bottom: 6px;
    }

    .topic-info .desc {
        font-size: 13px;
        text-align: left;
        color: #666;
        line-height: 1.5;
        margin-top: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .pagination-nav {
        margin: 15px 0;
    }
    
    .pagination-nav a {
        padding: 5px 10px;
        margin: 0 2px;
        font-size: 13px;
    }
    
    .pagination-nav span {
        padding: 5px 6px;
        margin: 0 2px;
        font-size: 13px;
    }
}

/* 更小屏幕无边距设计 */
@media screen and (max-width: 480px) {
    .g-bd {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-header {
        display: none !important;
    }
    
    .filter-desc {
        display: none !important;
    }
    
    .section-desc {
        display: none !important;
    }
    
    .filter-section, .authors-section {
        margin: 0 !important;
        padding: 1px !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid #ddd !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .topic-item {
        margin: 0 0 2px 0 !important;
        padding: 3px !important;
        border: 1px solid #e8e8e8 !important;
        border-radius: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        background-image: none !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 2px !important;
        box-shadow: 0 1px 6px rgba(0,0,0,0.08) !important;
    }
    
    .topic-cover {
        width: 70px !important;
        min-width: 70px !important;
        height: 85px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
    
    .author-img {
        width: 70px !important;
        height: 85px !important;
        border-radius: 6px !important;
        object-fit: cover !important;
    }
    
    .topic-info {
        flex: 1 !important;
        min-width: 0 !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    .topic-info h3 {
        font-size: 15px !important;
        text-align: left !important;
        margin: 0 0 3px 0 !important;
        padding: 0 !important;
        font-weight: 600 !important;
        color: #333 !important;
        line-height: 1.2 !important;
    }
    
    .topic-info h3 a {
        color: #333 !important;
        text-decoration: none !important;
    }
    
    .author-row-meta-wrap {
        margin: 0 0 6px 0 !important;
        padding: 0 !important;
    }
    
    .author-row {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 0 0 3px 0 !important;
        padding: 0 !important;
    }
    
    .author-row .dynasty {
        margin: 0 !important;
        font-size: 12px !important;
        color: #666 !important;
        font-weight: normal !important;
    }
    
    .author-meta {
        font-size: 12px !important;
        color: #666 !important;
        line-height: 1.4 !important;
        margin-bottom: 4px !important;
    }
    
    .topic-info .desc {
        font-size: 16px !important;
        text-align: left !important;
        color: #666 !important;
        line-height: 1.5 !important;
        margin-top: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    .pagination-nav {
        margin: 0 !important;
        padding: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .filter-group {
        flex-wrap: wrap !important;
        gap: 3px !important;
        position: relative !important;
    }
    
    .filter-group .dynasty-item:nth-child(n+5) {
        display: none !important;
    }
    
    .filter-group.expanded .dynasty-item {
        display: inline-block !important;
    }
    
    .filter-group a {
      
        padding: 5px 10px !important;
        font-size: 12px !important;
        color: #19537D !important;
        background-color: #f0f6ff !important;
        border: 1px solid #19537D !important;
        border-radius: 12px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        transform: scale(1.01) !important;
        animation: pulseScaleSmall 2.5s ease-in-out infinite !important;
    }
    
    @keyframes pulseScaleSmall {
        0%, 100% {
            transform: scale(1.01) !important;
        }
        50% {
            transform: scale(1.04) !important;
        }
    }
    
    .filter-group a:hover,
    .filter-group a:active {
        background-color: #19537D !important;
        color: #fff !important;
        transform: scale(1.06) !important;
        animation: none !important;
    }
    
    .expand-btn {
        margin-left: 5px !important;
        padding: 5px 10px !important;
        font-size: 12px !important;
        border-radius: 12px !important;
        gap: 3px !important;
    }
    
    .expand-icon {
        font-size: 9px !important;
    }
}