/* 新闻页面公共样式 */

/* 回到顶部按钮样式 - 纯白色方形版 */
.back-to-top-btn {
    background: #d4d4d4;
    color: black;
    border: none;
    padding: 18px 40px 20px 40px;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1.0px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.back-to-top-btn:hover {
    background: #ffffff;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.back-to-top-btn:active {
    background: white;
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 箭头图标居中对齐 */
.back-to-top-btn .arrow-icon {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    margin-left: 4px;
    transform: translateY(-2px);
}

/* 新闻筛选按钮 - 动态下划线样式 */
.news-filter-container {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(8px, 10vw, 40px);
    justify-content: center;
    margin-bottom: 35px;
    margin-top: -10px;
    position: relative;
    padding-bottom: 8px;
}

/* 底部分割线 - 左右渐变变细效果 */
.news-filter-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    max-width: 95%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.15) 8%, 
        rgba(255, 255, 255, 0.15) 92%, 
        transparent 100%);
}

.news-filter-btn {
    padding: clamp(4px, 2vw, 8px) clamp(4px, 4vw, 12px);
    font-size: clamp(0.7rem, 4vw, 1.15rem);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    text-decoration: none;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.news-filter-btn::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 5%;
    right: 0%;
    height: 3px;
    background: transparent;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-filter-btn:hover {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transform: translateY(-1px);
}

.news-filter-btn:hover::after {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.6) 15%, 
        rgba(255, 255, 255, 0.6) 85%, 
        transparent 100%);
}

.news-filter-btn.active {
    color: #fff;
    font-weight: 600;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(255, 255, 255, 0.3);
}

.news-filter-btn.active::after {
    background: linear-gradient(90deg, 
        transparent 0%, 
        #fff 10%, 
        rgba(255, 255, 255, 0.95) 50%, 
        #fff 90%, 
        transparent 100%);
    box-shadow: 
        0 0 12px rgba(255, 255, 255, 0.7),
        0 0 20px rgba(255, 255, 255, 0.4),
        0 2px 8px rgba(255, 255, 255, 0.3);
}