/* ========== 新闻页面样式 ========== */

/* 面包屑导航 */
.news-breadcrumb {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.08)) !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1) !important;
    margin-top: 70px !important;
    position: relative !important;
    z-index: 100 !important;
}

.news-breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 14px;
    color: #64748b;
}

.news-breadcrumb-inner a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-breadcrumb-inner a:hover {
    color: #7c3aed;
}

.news-breadcrumb-inner span:last-child {
    color: #1a1f35;
    font-weight: 600;
}

/* 页面容器 */
.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 布局 */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* 主内容区域 */
.news-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 新闻卡片 */
.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    transition: all 0.35s ease;
    display: flex;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.12);
}

.news-card-image {
    width: 240px;
    height: 170px;
    flex-shrink: 0;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1f35;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-title a:hover {
    color: #7c3aed;
}

.news-card-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 16px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #94a3b8;
}

.news-card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-card-meta-item i {
    font-size: 14px;
}

.news-card-meta-item a {
    color: #7c3aed;
    text-decoration: none;
}

.news-card-meta-item a:hover {
    text-decoration: underline;
}

/* 侧边栏 */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 24px;
    height: fit-content;
}

/* 侧边栏模块 */
.sidebar-module {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.sidebar-module-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1f35;
    margin: 0 0 20px 0;
    padding-left: 12px;
    border-left: 4px solid #7c3aed;
}

/* 子栏目列表 */
.sub-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sub-nav-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(0, 212, 255, 0.03);
}

.sub-nav-item a:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    color: #7c3aed;
}

.sub-nav-item.active a {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.15));
    color: #7c3aed;
    font-weight: 600;
}

.sub-nav-count {
    font-size: 12px;
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 推荐文章 */
.recommend-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recommend-item {
    display: flex;
    gap: 12px;
}

.recommend-item a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.recommend-item a:hover {
    transform: translateX(4px);
}

.recommend-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recommend-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommend-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recommend-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1f35;
    line-height: 1.4;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommend-date {
    font-size: 12px;
    color: #94a3b8;
}

/* 分页样式 - 与rpayingyong-list.html保持一致 */
.pagebar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagebar span {
    display: flex;
    align-items: center;
}

.pagebar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagebar a:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    border-color: #00d4ff;
    color: #00d4ff;
}

.pagebar .numbar {
    display: flex;
    gap: 8px;
}

.pagebar .numbar a.active {
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    border-color: transparent;
    color: #fff;
}

.pagebar .numbar a.active:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

@media (max-width: 480px) {
    .pagebar {
        gap: 4px;
    }
    
    .pagebar a {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 8px;
    }
    
    .pagebar .numbar {
        gap: 4px;
    }
}

/* ========== 新闻详情页面样式 ========== */

/* 文章标题 */
.news-detail-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1f35;
    line-height: 1.4;
    margin: 0 0 16px 0;
}

.news-detail-author {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    color: #7c3aed;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* 文章头部行布局 */
.news-detail-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}

.news-detail-desc {
    flex: 1;
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

.news-detail-qrcode {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(124, 58, 237, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.news-detail-qrcode-label {
    font-size: 12px;
    color: #7c3aed;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.news-detail-qrcode-img {
    width: 80px;
    height: 80px;
}

.news-detail-qrcode-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 内容区域标题 */
.news-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1f35;
    margin: 0 0 20px 0;
    padding-left: 12px;
    border-left: 4px solid #7c3aed;
}

/* 详情内容 */
.news-detail-content {
    padding: 24px;
}

.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4,
.news-detail-content h5,
.news-detail-content h6 {
    color: #1a1f35;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 4px solid #7c3aed;
}

.news-detail-content h1 { font-size: 24px; }
.news-detail-content h2 { font-size: 22px; }
.news-detail-content h3 { font-size: 20px; }
.news-detail-content h4 { font-size: 18px; }

.news-detail-content p {
    font-size: 15px;
    color: #475569;
    line-height: 1.9;
    margin: 12px 0;
    text-align: justify;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
    display: block;
}

.news-detail-content pre {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.6;
    width: 750px;
}

.news-detail-content code {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
}

.news-detail-content blockquote {
    border-left: 4px solid #7c3aed;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(124, 58, 237, 0.05));
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 0 12px 12px 0;
}

.news-detail-content blockquote p {
    color: #64748b;
    font-style: italic;
    margin: 0;
}

.news-detail-content ul,
.news-detail-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.news-detail-content li {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
    margin: 8px 0;
}

/* 登录提示 */
.login-prompt {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 87, 34, 0.1));
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin: 16px 0;
}

.login-prompt a {
    color: #dc2626;
    font-weight: 600;
    text-decoration: none;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* 上下篇导航 - 全新设计 */
.article-nav-wrapper {
    margin-top: 24px;
}

.article-nav {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.article-nav-box {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 20px 24px;
    gap: 16px;
    transition: all 0.35s ease;
}

.article-nav-box:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(124, 58, 237, 0.05));
}

.article-nav-prev {
    border-right: 1px dashed #e2e8f0;
}

.article-nav-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: 12px;
    color: #7c3aed;
    transition: all 0.35s ease;
}

.article-nav-box:hover .article-nav-arrow {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.article-nav-info {
    flex: 1;
    min-width: 0;
}

.article-nav-tag {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

.article-nav-title {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-all;
}

.article-nav-title a {
    color: inherit;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-all;
}

.article-nav-box:hover .article-nav-title {
    color: #7c3aed;
}

.article-nav-box:hover .article-nav-title a {
    color: #7c3aed;
}

@media (max-width: 768px) {
    .article-nav {
        flex-direction: column;
    }
    
    .article-nav-prev {
        border-right: none;
        border-bottom: 1px dashed #e2e8f0;
    }
}

/* 版权信息 - 全新设计 */
.article-copyright {
    margin-top: 24px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.03), rgba(124, 58, 237, 0.03));
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    overflow: hidden;
}

.article-copyright-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.article-copyright-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.article-copyright-title-wrap {
    flex: 1;
}

.article-copyright-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1f35;
    margin: 0 0 2px 0;
}

.article-copyright-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-copyright-body {
    padding: 20px 24px;
}

.article-copyright-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid #f1f5f9;
}

.article-copyright-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    min-width: 60px;
}

.article-copyright-link {
    font-size: 13px;
    color: #7c3aed;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.35s ease;
}

.article-copyright-link:hover {
    color: #5b21b6;
    text-decoration: underline;
}

.article-copyright-text {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}

.article-copyright-text p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.7;
    margin: 8px 0;
}

/* 二维码分享 */
.qrcode-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(124, 58, 237, 0.05));
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.qrcode-section p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 12px 0;
}

.qrcode-section .qrcode-img {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.qrcode-section .qrcode-img img {
    width: 100%;
    height: 100%;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .news-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .news-card {
        flex-direction: column;
    }
    
    .news-card-image {
        width: 100%;
        height: 200px;
    }
    
    .news-detail-title {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .news-container {
        padding: 24px 16px;
    }
    
    .news-detail-header,
    .news-detail-content {
        padding: 20px;
    }
    
    .news-detail-title {
        font-size: 20px;
    }
}
