/* 速维管家 - 行业资讯页面增强样式 */

/* 全局优化 */
:root {
    --shadow-depth-1: 0 2px 15px rgba(0, 0, 0, 0.05);
    --shadow-depth-2: 0 5px 30px rgba(0, 0, 0, 0.1);
    --shadow-depth-3: 0 8px 45px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), #1a8cd8);
}

/* 页面标题区增强 */
.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.page-header h1 {
    position: relative;
    z-index: 2;
    letter-spacing: -0.5px;
    animation: fadeUp 0.8s ease-out;
}

.page-header p {
    position: relative;
    z-index: 2;
    animation: fadeUp 1s ease-out 0.2s both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 文章内容区增强 */
.news-content {
    background-color: #fafbfc;
}

/* 分类选项卡增强 */
.tab-nav {
    position: relative;
}

.tab-nav li {
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 保持与基础样式一致的活动状态 */
.tab-nav li.active {
    background-color: var(--primary-color);
    color: var(--light-text);
    box-shadow: var(--shadow-depth-1);
}

/* 增强活动状态的下划线效果 */
.tab-nav li.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--secondary-color);
}

/* 文章列表样式增强 */
.article-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-depth-1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-depth-2);
}

.article-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

@media (min-width: 768px) {
    .article-image {
        border-radius: 8px 0 0 8px;
    }
}

.article-image img {
    height: 100%;
    max-height: 240px;
    object-fit: cover;
    transition: transform 0.6s ease-out;
}

.article-item:hover .article-image img {
    transform: scale(1.08);
}

.article-content {
    padding: 25px;
}

/* 没有图片时内容区域占据整个宽度 */
@media (min-width: 768px) {
    .article-content.full-width {
        grid-column: 1 / -1;
    }
    
    /* 热门推荐文章没有图片时内容区域占据整个宽度 */
    .popular-posts .post-item {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .popular-posts .post-info.full-width {
        flex: 1;
    }
}

.article-content h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.article-content h2 a {
    display: inline-block;
    position: relative;
    color: var(--text-color);
    transition: color 0.3s;
}

.article-content h2 a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--gray-text);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.02rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    padding: 8px 16px;
    background-color: rgba(30, 136, 229, 0.05);
    border-radius: 30px;
    transition: all 0.3s;
}

.read-more:hover {
    background-color: var(--primary-color);
    color: white;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* 分页样式增强 */
.pagination {
    margin-top: 50px;
}

.pagination a, .pagination span {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: white;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-depth-1);
}

.pagination .current-page {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-depth-1);
}

/* 侧边栏样式增强 */
.sidebar {
    position: sticky;
    top: 30px;
    align-self: flex-start;
}

.sidebar-widget {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-depth-1);
    transition: all 0.3s;
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-depth-2);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    letter-spacing: -0.3px;
}

/* 搜索框增强 */
.search-form {
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.search-form button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.search-form button:hover {
    background-color: #1a7abf;
    transform: translateY(-50%) scale(1.1);
}

/* 热门文章增强 */
.post-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
    transition: all 0.3s;
}

.post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-item:hover {
    transform: translateX(5px);
}

.post-thumb {
    width: 85px;
    height: 85px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-item:hover .post-thumb img {
    transform: scale(1.1);
}

.post-info h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.5;
    font-weight: 600;
}

/* 文章分类增强 */
.category-list li {
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 12px;
    transition: all 0.3s;
}

.category-list li:hover {
    transform: translateX(5px);
}

.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);
    font-weight: 500;
    transition: color 0.3s;
}

.category-list a:hover {
    color: var(--primary-color);
}

.category-list span {
    color: var(--gray-text);
    font-size: 0.9rem;
    background-color: #f5f8fa;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 标签云增强 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 16px;
    background-color: #f5f8fa;
    border-radius: 30px;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
}

.tag-cloud a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 订阅表单增强 */
.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscribe-form input {
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.subscribe-form button {
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

/* 专家专栏增强 */
.expert-section {
    background: linear-gradient(to bottom, #fafbfc, white);
    padding: 60px 0;
}

.expert-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.expert-column {
    background-color: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: var(--shadow-depth-1);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    transition: all 0.3s;
}

.expert-column:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-depth-2);
}

.expert-avatar {
    grid-row: span 2;
}

.expert-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f5f8fa;
    transition: all 0.3s;
}

.expert-column:hover .expert-avatar img {
    transform: scale(1.05);
    box-shadow: var(--shadow-depth-2);
}

.expert-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.expert-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.expert-desc {
    color: var(--gray-text);
    font-size: 1rem;
    line-height: 1.6;
}

.expert-articles {
    grid-column: span 2;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.expert-articles h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.expert-articles li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 18px;
    transition: all 0.3s;
}

.expert-articles li:hover {
    transform: translateX(5px);
}

.expert-articles li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.expert-articles a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.expert-articles a:hover {
    color: var(--primary-color);
}

.view-all {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid var(--primary-color);
    transition: all 0.3s;
}

.view-all:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 文章详情页增强 */
.article-detail {
    background-color: #fafbfc;
    padding: 60px 0;
}

.article-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

.article-main {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-depth-1);
}

.article-header h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-color);
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--gray-text);
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-featured-image {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-depth-2);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-main:hover .article-featured-image img {
    transform: scale(1.02);
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    font-weight: 700;
    color: var(--text-color);
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    font-weight: 600;
    color: var(--text-color);
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--gray-text);
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--gray-text);
}

.article-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-tags a {
    display: inline-block;
    padding: 6px 16px;
    background-color: #f5f8fa;
    border-radius: 30px;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.article-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

.article-share {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f8fa;
    color: var(--text-color);
    font-size: 1.1rem;
    transition: all 0.3s;
}

.share-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-depth-1);
}

/* 相关文章增强 */
.related-posts ul li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
    transition: all 0.3s;
}

.related-posts ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-posts ul li:hover {
    transform: translateX(5px);
}

.related-posts ul li a {
    display: flex;
    gap: 12px;
    align-items: center;
}

.related-posts ul li img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s;
}

.related-posts ul li:hover img {
    transform: scale(1.1);
}

.related-posts ul li span {
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.3s;
}

.related-posts ul li:hover span {
    color: var(--primary-color);
}

/* 服务推荐增强 */
.service-promo {
    background: var(--gradient-primary);
    color: white;
    border-radius: 8px;
    overflow: hidden;
}

.service-promo .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.promo-card {
    text-align: center;
}

.promo-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 15px;
}

.promo-card h4 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.promo-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.promo-card .btn {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
    transition: all 0.3s;
}

.promo-card .btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 联系我们增强 */
.contact-info {
    background-color: #f5f8fa;
}

.contact-info p {
    margin-bottom: 20px;
    color: var(--gray-text);
}

.contact-methods {
    margin-bottom: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.contact-method i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* 推荐阅读增强 */
.recommended-reading {
    background-color: white;
    padding: 60px 0;
}

.recommended-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.article-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-depth-1);
    transition: all 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-depth-2);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card:hover img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 20px;
}

.article-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 600;
}

.article-card-content p {
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.article-card-content .read-more {
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* 响应式优化 */
@media (max-width: 1200px) {
    .article-container {
        grid-template-columns: 2.5fr 1fr;
    }
}

@media (max-width: 992px) {
    .news-container,
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .expert-columns,
    .recommended-articles {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-top: 30px;
    }
    
    .article-main {
        padding: 30px;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .article-item {
        grid-template-columns: 1fr;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .expert-column {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .expert-avatar {
        grid-row: auto;
        margin-bottom: 20px;
    }
    
    .expert-avatar img {
        margin: 0 auto;
    }
    
    .expert-articles {
        grid-column: 1;
        text-align: left;
    }
    
    .article-header h1 {
        font-size: 1.5rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .tab-nav li {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .article-main {
        padding: 20px;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-item,
.sidebar-widget,
.expert-column,
.article-card {
    animation: fadeIn 0.6s ease-out;
}

.article-item:nth-child(2),
.sidebar-widget:nth-child(2),
.expert-column:nth-child(2),
.article-card:nth-child(2) {
    animation-delay: 0.1s;
}

.article-item:nth-child(3),
.sidebar-widget:nth-child(3),
.expert-column:nth-child(3),
.article-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* 印刷样式优化 */
@media print {
    .sidebar,
    .pagination,
    .expert-section,
    .footer,
    .back-to-top,
    .article-share,
    .service-promo {
        display: none;
    }
    
    .news-container,
    .article-container {
        grid-template-columns: 1fr;
    }
    
    body {
        background-color: white;
    }
}