/* ========================================
   助贷资讯页面样式
   ======================================== */

/* 页面标题区 - 统一蓝色背景 */
.page-header {
    padding: 50px 0 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.page-header-content {
    text-align: center;
}

.page-header-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-header-content p {
    font-size: 16px;
    opacity: 0.9;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 12px 0;
    background: white;
    border-bottom: 1px solid var(--border, #eee);
}

.breadcrumb a {
    color: var(--primary, #2a5298);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .current {
    color: var(--text-gray, #666);
}

.breadcrumb .separator {
    margin: 0 10px;
    color: var(--text-light, #999);
}

/* 文章列表页 */
.news-main {
    padding: 40px 0 60px;
    background: var(--bg-light, #f8f9fa);
    min-height: 60vh;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

/* 文章列表 */
.section-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary, #2a5298);
}

.section-header-simple h2 {
    font-size: 24px;
    color: var(--text-dark, #333);
    margin: 0;
}

.article-count {
    color: var(--text-gray, #666);
    font-size: 14px;
}

.news-grid {
    display: grid;
    gap: 25px;
}

/* 文章卡片 */
.news-card {
    background: white;
    border-radius: var(--radius, 8px);
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.news-card-cover {
    height: 200px;
    overflow: hidden;
}

.news-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-cover img {
    transform: scale(1.05);
}

.news-card-cover-placeholder {
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.news-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.news-card-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary, #2a5298);
    color: white;
    font-size: 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    width: fit-content;
}

.news-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark, #333);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.news-card-title a:hover {
    color: var(--primary, #2a5298);
}

.news-card-excerpt {
    color: var(--text-gray, #666);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light, #999);
}

.news-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-meta i {
    font-size: 12px;
}

/* 加载状态 */
.loading-indicator {
    text-align: center;
    padding: 40px;
    color: var(--text-gray, #666);
}

.loading-indicator i {
    font-size: 24px;
    margin-right: 10px;
}

/* 侧边栏卡片 */
.sidebar-card {
    background: white;
    border-radius: var(--radius, 8px);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.sidebar-card h3 {
    font-size: 16px;
    color: var(--text-dark, #333);
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary, #2a5298);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card h3 i {
    color: var(--primary, #2a5298);
}

/* 快速申请卡片 */
.quick-apply-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.quick-apply-card h3,
.quick-apply-card h3 i {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.quick-apply-card p {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin-bottom: 15px;
}

.quick-apply-card .btn {
    background: white;
    color: var(--primary);
}

.quick-apply-card .btn:hover {
    background: #f0f0f0;
}

.quick-contact {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.3);
    font-size: 14px;
}

.quick-contact span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-light, #f5f5f5);
    color: var(--text-gray, #666);
    font-size: 13px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--primary, #2a5298);
    color: white;
}

/* 服务优势列表 */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-gray, #666);
    border-bottom: 1px solid var(--border, #eee);
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li i {
    color: var(--success, #28a745);
    margin-top: 3px;
}

/* 联系侧边栏 */
.contact-sidebar-card .contact-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-item i {
    font-size: 18px;
    color: var(--primary, #2a5298);
    margin-top: 3px;
}

.contact-item .label {
    display: block;
    font-size: 12px;
    color: var(--text-light, #999);
}

.contact-item .value {
    display: block;
    font-size: 14px;
    color: var(--text-dark, #333);
    font-weight: 500;
}

/* ========================================
   文章详情页样式
   ======================================== */

.article-page-header {
    padding: 50px 0 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.article-page-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 14px;
    opacity: 0.9;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta a {
    color: white;
    text-decoration: underline;
}

.article-main {
    padding: 40px 0 60px;
    background: var(--bg-light, #f8f9fa);
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.article-content {
    background: white;
    border-radius: var(--radius, 8px);
    padding: 40px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

/* 文章封面 */
.article-cover {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius, 8px);
    margin-bottom: 30px;
}

/* 文章正文 */
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark, #333);
}

.article-body h2 {
    font-size: 24px;
    color: var(--text-dark, #333);
    margin: 35px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary, #2a5298);
}

.article-body h3 {
    font-size: 20px;
    color: var(--text-dark, #333);
    margin: 25px 0 15px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul, .article-body ol {
    margin: 0 0 20px 25px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body strong {
    color: var(--primary, #2a5298);
}

/* 文章底部 */
.article-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border, #eee);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.article-tags {
    font-size: 14px;
    color: var(--text-gray, #666);
}

.article-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light, #f5f5f5);
    color: var(--text-gray, #666);
    border-radius: 20px;
    margin-left: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.article-tags a:hover {
    background: var(--primary, #2a5298);
    color: white;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-gray, #666);
}

.share-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.share-btn.wechat { background: #07C160; color: white; }
.share-btn.weibo { background: #E6162D; color: white; }
.share-btn.copy { background: var(--primary, #2a5298); color: white; }

.share-btn:hover {
    transform: scale(1.1);
}

/* 相关文章 */
.related-articles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border, #eee);
}

.related-articles h3 {
    font-size: 18px;
    color: var(--text-dark, #333);
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light, #f8f9fa);
    border-radius: var(--radius, 8px);
    text-decoration: none;
    transition: all 0.3s;
}

.related-item:hover {
    background: var(--primary, #2a5298);
    color: white;
}

.related-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.related-item-content h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: inherit;
}

.related-item-content span {
    font-size: 12px;
    opacity: 0.7;
}

/* 咨询引导 */
.article-cta {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--radius, 8px);
    text-align: center;
}

.article-cta h3 {
    font-size: 20px;
    color: var(--text-dark, #333);
    margin-bottom: 10px;
}

.article-cta p {
    color: var(--text-gray, #666);
    font-size: 14px;
    margin-bottom: 20px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary, #2a5298);
    color: var(--primary, #2a5298);
}

.btn-outline:hover {
    background: var(--primary, #2a5298);
    color: white;
}

.cta-contact {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 14px;
    color: var(--text-gray, #666);
}

.cta-contact span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 目录导航 */
.toc-card {
    position: sticky;
    top: 100px;
}

.toc-nav {
    font-size: 14px;
}

.toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-nav li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border, #eee);
}

.toc-nav li:last-child {
    border-bottom: none;
}

.toc-nav a {
    color: var(--text-gray, #666);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.toc-nav a:hover {
    color: var(--primary, #2a5298);
}

/* 响应式 */
@media (max-width: 1024px) {
    .news-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar,
    .article-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .news-sidebar .sidebar-card,
    .article-sidebar .sidebar-card {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .news-card {
        grid-template-columns: 1fr;
    }
    
    .news-card-cover {
        height: 180px;
    }
    
    .news-sidebar,
    .article-sidebar {
        grid-template-columns: 1fr;
    }
    
    .article-content {
        padding: 25px 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .guide-steps {
        flex-direction: column;
        align-items: center;
    }
}
