/* ===================================
   模板4 资讯列表页样式 - 深色主题（与首页统一）
   =================================== */

/* 页面容器 - 深色背景与首页一致 */
.template4-news-section {
    padding: 80px 0 !important;
    background: linear-gradient(180deg, #000000 0%, #1a1a1a 100%) !important;
    min-height: calc(100vh - 300px) !important;
    width: 100% !important;
    display: block !important;
    margin-top: 0 !important;
}

/* 内容容器 - 限制最大宽度 */
.template4-news-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 标题区域 */
.template4-news-header {
    text-align: center !important;
    margin-bottom: 60px !important;
}

.template4-news-title {
    font-size: 42px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 20px !important;
    letter-spacing: 2px !important;
}

.template4-news-title span {
    color: #bcff2f !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

.template4-news-subtitle {
    font-size: 18px !important;
    color: #bbbbbb !important;
}

/* 卡片网格 */
.template4-news-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
    gap: 40px !important;
}

/* 卡片 - 深色主题 */
.template4-news-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.4s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    backdrop-filter: blur(10px) !important;
}

.template4-news-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 45px rgba(188, 255, 47, 0.15) !important;
    border-color: rgba(188, 255, 47, 0.3) !important;
}

/* 卡片主体内容 */
.template4-news-card-body {
    padding: 28px !important;
    flex: 1 !important;
}

/* 卡片图片 */
.template4-news-card-image {
    height: 200px !important;
    background: linear-gradient(135deg, #000000 0%, #333333 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 70px !important;
    border-bottom: 1px solid rgba(188, 255, 47, 0.2) !important;
}

/* 卡片底部 */
.template4-news-card-footer {
    padding: 20px 28px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.3) !important;
}

.footer{
    margin-bottom: 20px !important;
    margin-top: 100px !important;
}

.template4-news-card-footer a {
    color: #bcff2f !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

.template4-news-card-footer a:hover {
    color: #ffffff !important;
    transform: translateX(5px) !important;
    display: inline-block !important;
}

/* 卡片标题 */
.template4-news-card-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    line-height: 1.5 !important;
}

.template4-news-card-title a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
}

.template4-news-card-title a:hover {
    color: #bcff2f !important;
}

/* 卡片元信息 */
.template4-news-card-meta {
    font-size: 14px !important;
    color: #999999 !important;
    margin-bottom: 16px !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

/* 卡片摘要 */
.template4-news-card-excerpt {
    font-size: 15px !important;
    color: #bbbbbb !important;
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* 阅读全文按钮 */
.template4-news-card-btn {
    display: inline-block !important;
    padding: 12px 24px !important;
    background: linear-gradient(135deg, #bcff2f 0%, #9acc1e 100%) !important;
    color: #000000 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
    font-size: 15px !important;
}

.template4-news-card-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(188, 255, 47, 0.4) !important;
}

/* 空状态 */
.template4-news-empty {
    text-align: center !important;
    padding: 100px 20px !important;
    color: #999999 !important;
    grid-column: 1 / -1 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

.template4-news-empty-icon {
    font-size: 96px !important;
    margin-bottom: 20px !important;
}

.template4-news-empty-text {
    font-size: 18px !important;
}

/* 分页 */
.template4-news-pagination {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-top: 60px !important;
}

.template4-news-pagination-link,
.template4-news-pagination-current {
    padding: 12px 20px !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #bbbbbb !important;
    text-decoration: none !important;
    transition: all 0.3s !important;
    background: rgba(255, 255, 255, 0.05) !important;
    font-weight: 500 !important;
    display: inline-block !important;
}

.template4-news-pagination-link:hover {
    border-color: #bcff2f !important;
    color: #000000 !important;
    background: linear-gradient(135deg, #bcff2f 0%, #9acc1e 100%) !important;
    transform: translateY(-2px) !important;
}

.template4-news-pagination-current {
    border-color: #bcff2f !important;
    color: #000000 !important;
    background: linear-gradient(135deg, #bcff2f 0%, #9acc1e 100%) !important;
    font-weight: 600 !important;
}

/* ===================================
   资讯详情页样式（深色主题）
   =================================== */

/* 资讯文章容器 */
.news-detail-article {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

/* 资讯详情头部 */
.news-detail-header {
    padding: 40px !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
}

.news-detail-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 25px !important;
    line-height: 1.5 !important;
    letter-spacing: 1px !important;
}

.news-detail-meta {
    display: flex !important;
    gap: 25px !important;
    flex-wrap: wrap !important;
    font-size: 14px !important;
    color: #999999 !important;
}

.news-detail-meta span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 5px 12px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 资讯详情内容 */
.news-detail-content {
    padding: 40px !important;
    font-size: 16px !important;
    line-height: 2 !important;
    color: #cccccc !important;
    background: rgba(0, 0, 0, 0.2) !important;
}

.news-detail-content p {
    margin-bottom: 20px !important;
    text-align: justify !important;
}

.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
    margin-top: 35px !important;
    margin-bottom: 20px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1.5 !important;
}

.news-detail-content h2 {
    font-size: 28px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid rgba(188, 255, 47, 0.3) !important;
    color: #bcff2f !important;
}

.news-detail-content h3 {
    font-size: 22px !important;
}

.news-detail-content h4 {
    font-size: 18px !important;
}

.news-detail-content ul,
.news-detail-content ol {
    margin: 20px 0 !important;
    padding-left: 30px !important;
}

.news-detail-content li {
    margin-bottom: 12px !important;
    line-height: 1.8 !important;
}

.news-detail-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    margin: 25px 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(188, 255, 47, 0.2) !important;
}

.news-detail-content blockquote {
    border-left: 4px solid #bcff2f !important;
    padding: 20px 25px !important;
    margin: 25px 0 !important;
    background: linear-gradient(135deg, rgba(188, 255, 47, 0.1) 0%, rgba(188, 255, 47, 0.05) 100%) !important;
    border-radius: 0 8px 8px 0 !important;
    font-style: italic !important;
    color: #bbbbbb !important;
    line-height: 1.8 !important;
}

.news-detail-content code {
    background: rgba(188, 255, 47, 0.1) !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-family: 'Courier New', monospace !important;
    font-size: 14px !important;
    color: #bcff2f !important;
}

.news-detail-content pre {
    background: #000000 !important;
    color: #cccccc !important;
    padding: 20px !important;
    border-radius: 8px !important;
    overflow-x: auto !important;
    margin: 25px 0 !important;
    line-height: 1.6 !important;
    border: 1px solid rgba(188, 255, 47, 0.2) !important;
}

.news-detail-content pre code {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
}

.news-detail-content a {
    color: #bcff2f !important;
    text-decoration: none !important;
    transition: all 0.3s !important;
    border-bottom: 1px solid transparent !important;
}

.news-detail-content a:hover {
    color: #ffffff !important;
    border-bottom-color: #bcff2f !important;
}

.news-detail-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 25px 0 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.news-detail-content th,
.news-detail-content td {
    padding: 12px 15px !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.news-detail-content th {
    background: rgba(188, 255, 47, 0.1) !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

/* 空状态（通用） */
.news-empty,
.news-loading {
    text-align: center !important;
    padding: 100px 20px !important;
    color: #999999 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

.news-empty .icon,
.news-loading .icon {
    font-size: 96px !important;
    margin-bottom: 20px !important;
}

.news-empty p,
.news-loading p {
    font-size: 18px !important;
    margin: 0 !important;
    color: #999999 !important;
}

/* ===================================
   移动端导航栏优化
   =================================== */

/* 小屏幕下给main添加顶部间距，避免被固定导航遮挡 */
@media (max-width: 768px) {
    /* 确保body可以正常滚动 */
    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        position: relative !important;
    }

    /* 移除可能影响布局的transform */
    body[style*="transform"] {
        transform: none !important;
    }

    /* 资讯页面容器调整 */
    .template4-news-section {
        padding: 60px 0 !important;
        min-height: calc(100vh - 250px) !important;
    }

    .template4-news-container {
        padding: 0 15px !important;
    }

    .template4-news-header {
        margin-bottom: 40px !important;
    }

    .template4-news-title {
        font-size: 28px !important;
    }

    .template4-news-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .template4-news-card-body {
        padding: 20px !important;
    }

    .template4-news-card-footer {
        padding: 15px 20px !important;
    }

    .template4-news-card-title {
        font-size: 18px !important;
    }

    /* 详情页响应式 */
    .news-detail-header,
    .news-detail-content {
        padding: 25px 15px !important;
    }

    .news-detail-title {
        font-size: 24px !important;
    }

    .news-detail-meta {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .news-detail-content {
        font-size: 15px !important;
        line-height: 1.8 !important;
    }

    .news-detail-content h2 {
        font-size: 22px !important;
    }

    .news-detail-content h3 {
        font-size: 19px !important;
    }
}

/* 中等屏幕适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .template4-news-section {
        min-height: calc(100vh - 280px) !important;
    }

    .template4-news-container {
        padding: 0 30px !important;
    }

    .template4-news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
        gap: 30px !important;
    }
}
