/* 公司动态页面专用样式 */

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header h1 i {
    margin-right: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb span {
    opacity: 0.6;
}

/* 新闻筛选区域 */
.news-filter {
    background: var(--bg-white);
    padding: 2rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.filter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.category-tabs {
    display: flex;
    gap: 1rem;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--border-light);
    color: var(--text-dark);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
}

.search-box input {
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 2px solid var(--border-light);
    border-radius: 25px;
    width: 250px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

/* 新闻列表 */
.news-section {
    padding: 3rem 0;
    background: var(--bg-light);
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-item {
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    border: 1px solid var(--border-light);
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.news-item.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.05) 0%, rgba(32, 178, 170, 0.05) 100%);
}

.news-image {
    width: 200px;
    min-height: 200px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #E8F5E8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.news-item.featured .news-image {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.news-image i {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.news-item.featured .news-image i {
    color: white;
}

.news-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-badge.top {
    background: #e74c3c;
    color: white;
}

.news-badge.new {
    background: #f39c12;
    color: white;
}

.news-category {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-item.featured .news-category {
    background: rgba(255, 255, 255, 0.95);
}

.news-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.news-item.featured h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.news-item h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-summary {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.news-meta i {
    color: var(--primary-color);
}

.news-actions {
    display: flex;
    gap: 1rem;
}

.news-actions .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    color: var(--text-light);
    padding: 0 0.5rem;
}

/* 新闻订阅 */
.news-subscription {
    background: var(--bg-white);
    padding: 4rem 0;
}

.subscription-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.subscription-text h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.subscription-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

.subscription-form .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.subscription-form .form-group {
    flex: 1;
}

.subscription-form .form-group:only-child {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.subscription-form input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.subscription-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

.subscription-form .btn {
    padding: 1rem 2rem;
    white-space: nowrap;
}

.subscription-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-white);
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 1;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover,
.close:focus {
    color: var(--text-dark);
}

/* 新闻详情样式 */
.news-detail-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 2rem 2rem;
}

.news-detail-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.news-detail-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.news-detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

.news-detail-content {
    padding: 2rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.news-detail-content h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.news-detail-content p {
    margin-bottom: 1.5rem;
}

.news-detail-content ul,
.news-detail-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.news-detail-content li {
    margin-bottom: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .filter-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .category-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        min-height: 150px;
    }
    
    .news-content {
        padding: 1.5rem;
    }
    
    .news-actions {
        flex-direction: column;
    }
    
    .subscription-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .subscription-form .form-row {
        flex-direction: column;
    }
    
    .subscription-form .form-group:only-child {
        flex-direction: column;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1% auto;
    }
    
    .news-detail-header {
        padding: 2rem 1rem 1rem;
    }
    
    .news-detail-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .news-section {
        padding: 2rem 0;
    }
    
    .news-item.featured h2,
    .news-item h3 {
        font-size: 1.1rem;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .news-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .subscription-form input {
        padding: 0.8rem;
    }
    
    .subscription-form .btn {
        padding: 0.8rem 1.5rem;
    }
}

/* 隐藏/显示新闻项 */
.news-item.hidden {
    display: none;
}

/* 搜索高亮 */
.search-highlight {
    background-color: yellow;
    font-weight: bold;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.loading i {
    font-size: 2rem;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
