/* 
 * 速维管家 - 行业资讯页面专用样式
 * 用于news.html页面的额外样式
 */

/* 页面标题区样式 */
.page-header {
    background: linear-gradient(120deg, rgba(0, 83, 162, 0.9), rgba(30, 136, 229, 0.8)), url('../images/news-header-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    padding: 70px 0 90px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.page-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to right bottom, transparent 49%, #ffffff 50%);
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: var(--padding-md);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 15px auto 0;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* 文章内容区布局 */
.news-content {
    padding: var(--padding-xl) 0;
}

.news-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--padding-xl);
}

/* 分类选项卡 */
.category-tabs {
    margin-bottom: var(--padding-lg);
}

.tab-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.tab-nav li {
    padding: 8px 16px;
    margin-right: 10px;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s;
    font-weight: 500;
}

.tab-nav li:hover {
    background-color: rgba(30, 136, 229, 0.1);
    color: var(--primary-color);
}

.tab-nav li.active {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* 文章列表样式 */
.article-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--padding-md);
    margin-bottom: var(--padding-lg);
    padding-bottom: var(--padding-lg);
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .article-item {
        grid-template-columns: 1fr 2fr;
    }
}

.article-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
}

.article-image img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-item:hover .article-image img {
    transform: scale(1.05);
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
}

.category-tag.tech {
    background-color: #2196F3; /* 蓝色 */
}

.category-tag.operation {
    background-color: #4CAF50; /* 绿色 */
}

.category-tag.policy {
    background-color: #9C27B0; /* 紫色 */
}

.category-tag.trend {
    background-color: #FF5722; /* 橙色 */
}

.article-content h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-content h2 a {
    color: var(--text-color);
    transition: color 0.3s;
}

.article-content h2 a:hover {
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    gap: 15px;
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.article-meta i {
    margin-right: 5px;
}

.article-excerpt {
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: var(--padding-xl);
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: var(--border-radius-sm);
    background-color: #f5f5f5;
    color: var(--text-color);
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
}

.pagination .current-page {
    background-color: var(--primary-color);
    color: white;
}

.pagination .next-page {
    display: flex;
    align-items: center;
}

.pagination .next-page i {
    margin-left: 5px;
}

/* 侧边栏样式 */
.sidebar-widget {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: var(--padding-lg);
    margin-bottom: var(--padding-lg);
    box-shadow: var(--box-shadow);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* 搜索框 */
.search-form {
    display: flex;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 10px;
}

/* 热门文章 */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post-item {
    display: flex;
    gap: 12px;
}

.post-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.post-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.post-info h4 a {
    color: var(--text-color);
    transition: color 0.3s;
}

.post-info h4 a:hover {
    color: var(--primary-color);
}

.post-date {
    font-size: 0.8rem;
    color: var(--gray-text);
}

/* 文章分类 */
.category-list li {
    margin-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

.category-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: var(--text-color);
    transition: color 0.3s;
}

.category-list a:hover {
    color: var(--primary-color);
}

.category-list span {
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f5f8fa;
    border-radius: var(--border-radius-sm);
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.tag-cloud a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 订阅表单 */
.subscribe p {
    margin-bottom: 15px;
    color: var(--gray-text);
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscribe-form input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.subscribe-form button {
    cursor: pointer;
}

/* 专家专栏 */
.expert-section {
    background-color: var(--light-bg);
    padding: var(--padding-xl) 0;
}

.expert-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--padding-lg);
    margin-top: var(--padding-lg);
}

.expert-column {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: var(--padding-lg);
    box-shadow: var(--box-shadow);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--padding-md);
}

.expert-avatar {
    grid-row: span 2;
}

.expert-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.expert-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.expert-title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.expert-desc {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.expert-articles {
    grid-column: span 2;
    margin-top: 15px;
}

.expert-articles h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.expert-articles ul {
    margin-bottom: 15px;
}

.expert-articles li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.expert-articles li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.expert-articles a {
    color: var(--text-color);
    transition: color 0.3s;
}

.expert-articles a:hover {
    color: var(--primary-color);
}

.view-all {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .news-container {
        grid-template-columns: 1fr;
    }
    
    .expert-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-item {
        grid-template-columns: 1fr;
    }
    
    .article-image img {
        height: 180px;
    }
    
    .expert-column {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .expert-avatar {
        grid-row: auto;
        margin-bottom: 15px;
    }
    
    .expert-avatar img {
        margin: 0 auto;
    }
    
    .expert-articles {
        grid-column: 1;
        text-align: left;
    }
}