/* 新闻页面专用样式文件 */

/* ====== 页面头部样式 ====== */
.page-header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0 60px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    margin-top: -70px;
}

.page-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    gap: 15px;
}

.decoration-line {
    width: 50px;
    height: 2px;
    background: rgba(255,255,255,0.6);
    border-radius: 1px;
}

.title-decoration i {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
}

.page-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ====== 分类筛选样式 ====== */
.news-filter {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 25px 20px;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.news-filter::-webkit-scrollbar {
    display: none;
}

.news-filter .btn {
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e3f2fd;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #546e7a;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    min-width: 100px;
    max-width: 120px;
    text-align: center;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-filter .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.6s ease;
}

.news-filter .btn:hover::before {
    left: 100%;
}

.news-filter .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(57, 153, 242, 0.3);
    border-color: #3999f2;
    color: #3999f2;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.news-filter .btn.active {
    background: linear-gradient(135deg, #3999f2 0%, #2676c7 100%);
    border-color: #3999f2;
    color: white;
    box-shadow: 0 6px 20px rgba(57, 153, 242, 0.4);
    transform: translateY(-2px);
    font-weight: 700;
}

.news-filter .btn.active:hover {
    background: linear-gradient(135deg, #2676c7 0%, #1e5aa8 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(57, 153, 242, 0.5);
}

.news-filter .btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(57, 153, 242, 0.25);
}

/* ====== 新闻卡片样式 ====== */
.news-list .col-lg-4 {
    margin-bottom: 35px;
}

.news-list .news-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8f4fd;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-list .news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3999f2, #2676c7, #1e5aa8);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.news-list .news-card:hover {
    box-shadow: 0 15px 50px rgba(57, 153, 242, 0.15);
    transform: translateY(-6px);
    border-color: #3999f2;
}

.news-list .news-card:hover::before {
    opacity: 1;
}

.news-list .card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.news-list .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-list .news-card:hover .card-image img {
    transform: scale(1.08);
}

.news-list .card-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
}

.news-list .post-title h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
    color: #2c3e50;
    transition: all 0.4s ease;
    position: relative;
}

.news-list .post-title h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3999f2, #2676c7);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.news-list .post-title h3:hover {
    color: #3999f2;
    transform: translateX(5px);
}

.news-list .post-title h3:hover::after {
    width: 100%;
}

.news-list .post-content {
    flex-grow: 1;
}

.news-list .post-content p {
    margin-bottom: 25px;
    line-height: 1.7;
    color: #5a6c7d;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 6.8em;
    max-height: 6.8em;
}

/* ====== 卡片底部样式 ====== */
.news-list .card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 35px;
    padding-top: 15px;
    border-top: 1px solid #f0f2f5;
    min-height: 55px;
}

.news-list .post-meta {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.news-list .post-meta ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.news-list .post-meta li {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #7f8c8d;
    background: none;
    padding: 0;
    font-weight: 500;
}

.news-list .post-meta i {
    margin-right: 6px;
    color: #3999f2;
    font-size: 16px;
}

.news-list .read-more-btn {
    color: #3999f2;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
    margin-left: 20px;
    white-space: nowrap;
    padding: 10px 20px;
    border-radius: 25px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e3f2fd 100%);
    border: 1px solid #e3f2fd;
    position: relative;
    overflow: hidden;
}

.news-list .read-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(57, 153, 242, 0.1), transparent);
    transition: left 0.6s ease;
}

.news-list .read-more-btn:hover::before {
    left: 100%;
}

.news-list .read-more-btn:hover {
    color: #2676c7;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #3999f2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(57, 153, 242, 0.25);
    text-decoration: none;
}

.news-list .read-more-btn i {
    margin-left: 8px;
    font-size: 14px;
    transition: transform 0.4s ease;
}

.news-list .read-more-btn:hover i {
    transform: translateX(5px);
}

/* ====== 日期标签样式 ====== */
.news-list .post-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(57, 153, 242, 0.95);
    color: white;
    padding: 10px 15px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    z-index: 2;
    box-shadow: 0 4px 15px rgba(57, 153, 242, 0.3);
}

.news-list .post-date .date {
    display: block;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.news-list .post-date .month {
    display: block;
    font-size: 13px;
    opacity: 0.9;
    margin-top: 2px;
}

/* ====== 无新闻状态样式 ====== */
.no-news-found {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    margin: 40px 0;
}

.no-news-found i {
    margin-bottom: 25px;
    color: #bdc3c7;
}

.no-news-found h4 {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-weight: 600;
}

.no-news-found p {
    color: #95a5a6;
    font-size: 16px;
}

/* ====== 响应式设计 ====== */
@media (max-width: 1200px) {
    .news-filter .btn {
        min-width: 95px;
        max-width: 110px;
        padding: 11px 18px;
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .page-title {
        font-size: 3rem;
    }
    
    .news-filter .btn {
        min-width: 90px;
        max-width: 100px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .news-list .card-content {
        padding: 28px;
    }
    
    .news-list .post-title h3 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .page-header-section {
        padding: 60px 0 40px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .news-filter {
        gap: 8px;
        padding: 20px 15px;
        border-radius: 15px;
        justify-content: flex-start;
    }
    
    .news-filter .btn {
        min-width: 85px;
        max-width: 95px;
        padding: 9px 14px;
        font-size: 12px;
        border-radius: 20px;
    }
    
    .news-list .card-content {
        padding: 25px;
    }
    
    .news-list .post-title h3 {
        font-size: 18px;
    }
    
    .news-list .post-meta ul {
        gap: 15px;
    }
    
    .news-list .post-meta li {
        font-size: 13px;
    }
    
    .news-list .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-top: 25px;
        min-height: 0;
    }
    
    .news-list .read-more-btn {
        margin-left: 0;
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 2rem;
    }
    
    .news-filter {
        gap: 6px;
        padding: 15px 10px;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .news-filter .btn {
        min-width: 75px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .news-list .news-card {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .news-list .card-content {
        padding: 20px;
    }
    
    .news-list .post-title h3 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .news-list .post-content p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .news-list .post-meta ul {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .news-list .post-meta li {
        font-size: 12px;
    }
    
    .news-list .read-more-btn {
        font-size: 13px;
        padding: 8px 16px;
        border-radius: 20px;
    }
    
    .news-filter .btn {
        max-width: 85px;
        padding: 8px 12px;
        font-size: 11px;
        border-radius: 18px;
    }
    
    .news-list .card-content {
        padding: 20px;
    }
    
    .news-list .post-title h3 {
        font-size: 16px;
    }
    
    .news-list .post-content p {
        font-size: 14px;
        -webkit-line-clamp: 3;
        min-height: 4.2em;
        max-height: 4.2em;
    }
    
    .news-list .post-date {
        top: 15px;
        right: 15px;
        padding: 8px 12px;
    }
    
    .news-list .post-date .date {
        font-size: 18px;
    }
    
    .news-list .post-date .month {
        font-size: 12px;
    }
}

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

.news-list .news-card {
    animation: fadeInUp 0.6s ease forwards;
}

.news-list .news-card:nth-child(1) { animation-delay: 0.1s; }
.news-list .news-card:nth-child(2) { animation-delay: 0.2s; }
.news-list .news-card:nth-child(3) { animation-delay: 0.3s; }
.news-list .news-card:nth-child(4) { animation-delay: 0.4s; }
.news-list .news-card:nth-child(5) { animation-delay: 0.5s; }
.news-list .news-card:nth-child(6) { animation-delay: 0.6s; }

/* ====== 加载状态 ====== */
.news-loading {
    text-align: center;
    padding: 40px;
}

.news-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3999f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 