/* 次元情报站专用样式 */

/* 返回主页按钮 */
.back-home {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #FFB6C1, #DDA0DD);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-family: 'XinDiPao', sans-serif;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
    background: linear-gradient(135deg, #FF91A4, #C78DD6);
}

.back-icon {
    font-size: 16px;
    animation: bounce 2s infinite;
}

/* 页面头部 */
.news-header {
    text-align: center;
    padding: 80px 20px 40px;
    background: linear-gradient(135deg, #FFE4E1, #E6E6FA);
    margin: -20px -20px 40px;
    border-radius: 0 0 30px 30px;
    position: relative;
    overflow: hidden;
}

.news-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.news-title {
    font-family: 'XiangJiaoKuanMao', sans-serif;
    font-size: 2.5rem;
    color: #8B4B9B;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(139, 75, 155, 0.2);
}

.title-icon {
    animation: pulse 2s infinite;
    margin-right: 10px;
}

.title-sparkle {
    animation: twinkle 1.5s infinite;
    margin-left: 10px;
}

.news-subtitle {
    font-family: 'XinDiPao', sans-serif;
    font-size: 1.1rem;
    color: #9370DB;
    margin: 0;
    opacity: 0.9;
}

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

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    margin-bottom: 20px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.1);
    overflow: hidden;
    border: 2px solid rgba(255, 182, 193, 0.3);
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-family: 'XinDiPao', sans-serif;
    font-size: 16px;
    color: #5D4777;
    background: transparent;
}

.search-input::placeholder {
    color: #B19CD9;
}

.search-btn {
    padding: 15px 20px;
    background: linear-gradient(135deg, #FFB6C1, #DDA0DD);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #FF91A4, #C78DD6);
}

.search-icon {
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.5));
}

/* 筛选按钮 */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255, 182, 193, 0.2);
    border: 2px solid rgba(255, 182, 193, 0.3);
    border-radius: 20px;
    color: #8B4B9B;
    font-family: 'XinDiPao', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 182, 193, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #FFB6C1, #DDA0DD);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.3);
}

/* 资讯列表 */
.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.news-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.1);
    border: 2px solid rgba(255, 182, 193, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: slideInUp 0.6s ease-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #FFE4E1, #E6E6FA);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B4B9B;
    font-size: 3rem;
}

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

/* 高亮样式（用于置顶新闻跳转定位） */
.news-item.highlighted {
    background: rgba(255, 215, 0, 0.2);
    border: 3px solid #FFD700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 8px 25px rgba(255, 105, 180, 0.3);
    transform: scale(1.02);
    animation: highlightPulse 1s ease-in-out infinite alternate;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 8px 25px rgba(255, 105, 180, 0.3);
    }
    100% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 8px 25px rgba(255, 105, 180, 0.3);
    }
}

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

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.2);
    border-color: rgba(255, 182, 193, 0.4);
}

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

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.news-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #FFE4E1, #E6E6FA);
    border-radius: 15px;
    font-size: 12px;
    color: #8B4B9B;
    font-family: 'XinDiPao', sans-serif;
}

.news-date {
    font-size: 12px;
    color: #B19CD9;
    font-family: 'XinDiPao', sans-serif;
}

.news-title-item {
    font-family: 'XiangJiaoKuanMao', sans-serif;
    font-size: 1.3rem;
    color: #5D4777;
    margin-bottom: 10px;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.news-summary {
    font-family: 'XinDiPao', sans-serif;
    color: #8B4B9B;
    line-height: 1.6;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.news-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.news-tag {
    padding: 3px 8px;
    background: rgba(255, 182, 193, 0.3);
    border-radius: 10px;
    font-size: 11px;
    color: #8B4B9B;
    font-family: 'XinDiPao', sans-serif;
}

/* 加载更多按钮 */
.load-more-section {
    text-align: center;
    margin-bottom: 40px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #FFB6C1, #DDA0DD);
    color: white;
    border: none;
    border-radius: 25px;
    font-family: 'XinDiPao', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
    background: linear-gradient(135deg, #FF91A4, #C78DD6);
}

.load-icon {
    animation: rotate 2s linear infinite;
}

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-results h3 {
    font-family: 'XiangJiaoKuanMao', sans-serif;
    color: #8B4B9B;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.no-results p {
    font-family: 'XinDiPao', sans-serif;
    color: #B19CD9;
    line-height: 1.6;
}

/* 浮动装饰元素 */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-star,
.floating-heart,
.floating-sparkle,
.floating-moon {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.floating-star {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-heart {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-sparkle {
    top: 40%;
    left: 80%;
    animation-delay: 4s;
}

.floating-moon {
    top: 80%;
    left: 20%;
    animation-delay: 1s;
}

/* 动画定义 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(5deg);
    }
    66% {
        transform: translateY(5px) rotate(-5deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-title {
        font-size: 2rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-input {
        border-radius: 25px 25px 0 0;
    }
    
    .search-btn {
        border-radius: 0 0 25px 25px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .news-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-item {
        padding: 20px;
    }
    
    .news-image {
        height: 150px;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .back-home {
        top: 10px;
        left: 10px;
    }
    
    .back-btn {
        padding: 10px 15px;
        font-size: 12px;
    }
}