/* ====================
   新闻动态页面样式 - 昱环智慧科技官网
   ==================== */

/* 页面头部 */
.page-header {
    position: relative;
    padding: 120px 0 80px;
    background: var(--gradient-primary);
    color: var(--white);
    overflow: hidden;
}

.page-header::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"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="10" r="1.2" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
    font-weight: 700;
    font-family: 'Noto Serif SC', serif;
}

.header-subtitle {
    font-size: 1.2rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    opacity: 0.7;
}

/* 新闻筛选 */
.news-filter {
    background: var(--background-light);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.category-filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-secondary);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.filter-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.search-section {
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-box {
    display: flex;
    position: relative;
    min-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.search-box input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(42, 92, 145, 0.1);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    background: #1e4a73;
}

.search-box button svg {
    width: 18px;
    height: 18px;
}

.date-filter {
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.date-filter:focus {
    border-color: var(--primary-blue);
    outline: none;
}

/* 热门新闻轮播 */
.featured-news {
    padding: 80px 0;
    background: var(--white);
}

.featured-news h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-primary);
    font-family: 'Noto Serif SC', serif;
}

.news-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-container {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
}

.carousel-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.carousel-slide.active {
    display: block;
}

.slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.slide-image {
    position: relative;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--background-light);
}

.slide-info .news-category {
    background: var(--primary-blue);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    align-self: flex-start;
    margin-bottom: 16px;
}

.slide-info h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-family: 'Noto Serif SC', serif;
    line-height: 1.4;
}

.slide-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    pointer-events: auto;
    box-shadow: var(--shadow-light);
}

.carousel-btn:hover {
    background: var(--white);
    box-shadow: var(--shadow-medium);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background: var(--primary-blue);
}

/* 新闻时间轴 */
.news-timeline {
    padding: 80px 0;
    background: var(--background-light);
}

.news-timeline h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-primary);
    font-family: 'Noto Serif SC', serif;
}

.timeline-container {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-year {
    margin-bottom: 60px;
    position: relative;
}

.year-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 20px 32px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.year-header h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    font-family: 'Noto Serif SC', serif;
    margin: 0;
}

.year-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: var(--background-light);
    padding: 6px 12px;
    border-radius: 12px;
}

.timeline-items {
    position: relative;
    padding-left: 40px;
}

.timeline-items::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-blue);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    position: absolute;
    left: -34px;
    top: 24px;
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-blue);
}

.timeline-content {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    border-left: 4px solid transparent;
}

.timeline-item:hover .timeline-content {
    box-shadow: var(--shadow-medium);
    transform: translateX(8px);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.news-category {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--white);
}

.news-category.company {
    background: var(--primary-blue);
}

.news-category.product {
    background: var(--secondary-green);
}

.news-category.technology {
    background: #9C27B0;
}

.news-category.industry {
    background: #FF9800;
}

.news-category.partnership {
    background: var(--tertiary-brown);
}

.news-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.4;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.read-more-btn:hover {
    background: #1e4a73;
}

.news-views {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* 加载更多 */
.load-more-section {
    text-align: center;
    margin-top: 60px;
}

.load-more-btn {
    padding: 16px 32px;
    font-size: 1rem;
}

/* 新闻详情模态框 */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-content {
    background: var(--white);
    max-width: 800px;
    max-height: 80vh;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-heavy);
    margin: 20px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.news-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--white);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-primary);
}

.modal-body {
    padding: 40px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }
    
    .category-filters {
        justify-content: center;
    }
    
    .search-section {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .news-filter {
        padding: 30px 0;
    }
    
    .category-filters {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .search-box {
        min-width: auto;
        width: 100%;
    }
    
    .featured-news {
        padding: 60px 0;
    }
    
    .featured-news h2 {
        font-size: 2rem;
    }
    
    .slide-content {
        grid-template-columns: 1fr;
    }
    
    .slide-info {
        padding: 30px 20px;
    }
    
    .slide-info h3 {
        font-size: 1.3rem;
    }
    
    .carousel-controls {
        padding: 0 10px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .news-timeline {
        padding: 60px 0;
    }
    
    .news-timeline h2 {
        font-size: 2rem;
    }
    
    .timeline-items {
        padding-left: 30px;
    }
    
    .timeline-items::before {
        left: 15px;
    }
    
    .timeline-dot {
        left: 9px;
    }
    
    .timeline-content {
        padding: 24px 20px;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .timeline-content h4 {
        font-size: 1.1rem;
    }
    
    .news-actions {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 90vh;
    }
    
    .modal-body {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    .year-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .timeline-content h4 {
        font-size: 1rem;
    }
    
    .slide-info h3 {
        font-size: 1.1rem;
    }
}

/* 筛选和搜索结果 */
.timeline-item.hidden {
    display: none;
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.no-results svg {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.no-results p {
    font-size: 1rem;
}

/* 新闻类别特殊样式 */
.timeline-content:hover {
    border-left-color: var(--primary-blue);
}

.timeline-item[data-category="company"] .timeline-content:hover {
    border-left-color: var(--primary-blue);
}

.timeline-item[data-category="product"] .timeline-content:hover {
    border-left-color: var(--secondary-green);
}

.timeline-item[data-category="technology"] .timeline-content:hover {
    border-left-color: #9C27B0;
}

.timeline-item[data-category="industry"] .timeline-content:hover {
    border-left-color: #FF9800;
}

.timeline-item[data-category="partnership"] .timeline-content:hover {
    border-left-color: var(--tertiary-brown);
} 