/* article.php 页面专用样式 */

/* ==================== 页面头部样式 ==================== */
.page-header-bg {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 60px 0;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.page-header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    opacity: 0.5;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-main-title {
    font-size: 36px;
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-icon, .nav-icon {
    font-size: 40px;
}

.highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 4px;
}

.page-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 15px;
}

.stat-item strong {
    color: #fff;
    font-size: 18px;
}

.stat-divider {
    opacity: 0.3;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-icon {
    margin-right: 5px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb a:hover {
    color: white;
}

.separator {
    opacity: 0.5;
}

.breadcrumb-current {
    color: white;
    opacity: 1;
}

/* ==================== 搜索区域 ==================== */
.search-section {
    margin-bottom: 30px;
}

.search-box-wrapper {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-form-advanced {
    margin-bottom: 15px;
}

.search-input-group {
    display: flex;
    gap: 10px;
}

.search-input-advanced {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.search-input-advanced:focus {
    outline: none;
    border-color: #f5576c;
    box-shadow: 0 0 0 3px rgba(245, 87, 108, 0.1);
}

.search-button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.btn-icon {
    font-size: 18px;
}

.search-tips {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #999;
}

.tip-icon {
    font-size: 16px;
}

/* ==================== 分类筛选 ==================== */
.filter-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.title-icon {
    font-size: 20px;
}

.filter-count {
    color: #999;
    font-size: 14px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-item {
    padding: 8px 20px;
    background: #f8f9fa;
    border-radius: 20px;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-item:hover {
    background: #e8e8e8;
    color: #333;
}

.filter-item.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(245, 87, 108, 0.3);
}

.filter-icon {
    font-size: 14px;
}

/* ==================== 文章列表 ==================== */
.article-list-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.list-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.list-count {
    color: #999;
    font-size: 14px;
    font-weight: 400;
}

.list-sort select {
    padding: 8px 15px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.article-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #fafafa;
    border-radius: 12px;
    transition: all 0.3s;
}

.article-item.article-top {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
    border: 2px solid rgba(245, 87, 108, 0.2);
}

.article-item:hover {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.article-thumb {
    flex-shrink: 0;
    width: 280px;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-item:hover .article-thumb img {
    transform: scale(1.05);
}

.thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
}

.article-item:hover .thumb-overlay {
    opacity: 1;
}

.overlay-icon {
    font-size: 40px;
    color: white;
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.article-category {
    padding: 4px 12px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #999;
    font-size: 13px;
}

.date-icon {
    font-size: 14px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-icon {
    font-size: 10px;
}

.badge-top {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.badge-hot {
    background: linear-gradient(135deg, #ff9ff3 0%, #f368e0 100%);
    color: white;
}

.badge-recommend {
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    color: white;
}

.article-title {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-link {
    color: #333;
    font-weight: 600;
    display: block;
    transition: all 0.3s;
}

.article-link:hover {
    color: #f5576c;
}

.article-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-stats {
    display: flex;
    gap: 15px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #999;
    font-size: 13px;
}

.stat-icon {
    font-size: 14px;
}

.stat-value {
    color: #666;
}

.read-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.pagination-info {
    color: #999;
    font-size: 14px;
}

.pagination-links {
    display: flex;
    gap: 5px;
}

.page-link {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.page-link:hover {
    border-color: #f5576c;
    color: #f5576c;
}

.page-link.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-color: transparent;
}

.page-ellipsis {
    padding: 0 10px;
    color: #999;
    display: flex;
    align-items: center;
}

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

.jump-input {
    width: 50px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    text-align: center;
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.empty-desc {
    color: #999;
    margin-bottom: 30px;
}

/* ==================== 侧边栏 ==================== */
.sidebar-box {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.sidebar-box:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-highlight {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.sidebar-highlight .sidebar-title {
    color: white;
}

.sidebar-highlight .sidebar-more {
    color: rgba(255, 255, 255, 0.9);
}

.sidebar-highlight .news-title {
    color: white;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.title-icon {
    font-size: 20px;
}

.sidebar-badge {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.sidebar-more {
    color: #f5576c;
    font-size: 14px;
}

.sidebar-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 新闻列表 */
.news-sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.news-rank {
    width: 28px;
    height: 28px;
    background: #e8e8e8;
    color: #999;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.news-rank.rank-top {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.news-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.news-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 带缩略图的新闻 */
.news-thumb {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== 统计卡片 ==================== */
.sidebar-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

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

/* ==================== 动画效果 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 768px) {
    .page-header-bg {
        padding: 40px 0;
    }

    .page-main-title {
        font-size: 28px;
    }

    .page-stats {
        flex-direction: column;
        gap: 5px;
        font-size: 14px;
    }

    .breadcrumb {
        flex-wrap: wrap;
    }

    .search-box-wrapper {
        padding: 20px;
    }

    .search-input-group {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
        justify-content: center;
    }

    .filter-section {
        padding: 20px;
    }

    .filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .article-list-section {
        padding: 20px;
    }

    .article-item {
        flex-direction: column;
        padding: 15px;
    }

    .article-thumb {
        width: 100%;
        height: 200px;
    }

    .article-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .read-btn {
        width: 100%;
        text-align: center;
    }

    .pagination {
        flex-direction: column;
        gap: 20px;
    }

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

    .pagination-jump {
        display: none;
    }

    .sidebar-box {
        padding: 20px;
    }

    .sidebar-stats .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
