/* 新闻页面专用样式 */
.news-main {
    padding: 2rem 0;
    min-height: 80vh;
}

.news-header {
    text-align: center;
    margin-bottom: 3rem;
}

.news-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.news-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.news-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.news-search {
    flex: 1;
    min-width: 300px;
}

.news-search form {
    display: flex;
    background: var(--card-bg);
    border-radius: 30px;
    padding: 0.3rem;
    border: var(--border-glow);
}

.news-search input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.8rem 1.5rem;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
}

.news-search input::placeholder {
    color: var(--text-secondary);
}

.news-search button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--darker-bg);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.news-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.news-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--darker-bg);
    transform: translateY(-2px);
}

.news-list {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-item {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: var(--border-glow);
    transition: all 0.3s ease;
    display: flex;
    min-height: 200px;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 240, 255, 0.4);
}

.news-item.featured {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.2);
}

.news-date {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--darker-bg);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    text-align: center;
}

.date-day {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.date-month {
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.news-header h3 {
    flex: 1;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.news-label {
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.news-image {
    width: 200px;
    height: 120px;
    margin: 0 0 1rem 0;
    overflow: hidden;
    border-radius: 8px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.news-meta span {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-btn,
.page-prev,
.page-next {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-prev:hover,
.page-next:hover,
.page-btn.active {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--darker-bg);
    transform: translateY(-2px);
}

.page-dots {
    color: var(--text-secondary);
    padding: 0.5rem;
}

.no-news {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.no-news-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.no-news h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.news-subscribe {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: var(--border-glow);
    margin-top: 3rem;
}

.subscribe-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.subscribe-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.subscribe-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 0.5rem;
}

.subscribe-form input {
    flex: 1;
    padding: 0.8rem;
    background: var(--darker-bg);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    color: var(--text-color);
    outline: none;
}

.subscribe-form button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--darker-bg);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.subscribe-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .news-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .news-search {
        min-width: auto;
    }
    
    .news-categories {
        justify-content: center;
    }
    
    .news-item {
        flex-direction: column;
        min-height: auto;
    }
    
    .news-date {
        min-width: auto;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .news-image {
        width: 100%;
        height: 150px;
    }
    
    .news-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .subscribe-form {
        flex-direction: column;
        gap: 1rem;
    }
} 