/* ===================================
   模板7 资讯列表页样式 - 紫蓝渐变深色主题
   =================================== */

/* 页面容器 - 增加最小高度避免内容少时太紧凑 */
.template7-news-page {
    min-height: calc(100vh - 300px) !important;
    background: linear-gradient(180deg, #000000 0%, #111827 50%, #1e3a5f 100%) !important;
    width: 100% !important;
    display: block !important;
    margin-top: 100px;
}

.template7-news-header {
    text-align: center !important;
    padding: 60px 20px !important;
    position: relative !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.template7-news-header::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #2196f3 100%) !important;
    opacity: 0.15 !important;
    z-index: 0 !important;
}

.template7-news-header > * {
    position: relative !important;
    z-index: 1 !important;
}

.template7-news-header h1 {
    font-size: 42px !important;
    margin-bottom: 20px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #2196f3 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

.template7-news-header p {
    font-size: 18px !important;
    color: #aaaaaa !important;
    opacity: 0.9 !important;
}

.template7-news-section {
    padding: 80px 20px !important;
    background: transparent !important;
    min-height: calc(100vh - 300px) !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.template7-news-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
    gap: 40px !important;
}

.template7-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;
    backdrop-filter: blur(10px) !important;
    display: flex !important;
    flex-direction: column !important;
}

.template7-news-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 45px rgba(102, 126, 234, 0.3) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
}

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

/* 卡片图片 */
.template7-news-card-image {
    height: 200px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #2196f3 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 70px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

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

.template7-news-card-footer a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.template7-news-card-footer a:hover {
    background: linear-gradient(135deg, #764ba2 0%, #2196f3 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    transform: translateX(5px) !important;
}

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

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

.template7-news-card-title a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

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

/* 卡片摘要 */
.template7-news-card-excerpt {
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.7) !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;
}

/* 空状态 */
.template7-news-empty {
    text-align: center !important;
    padding: 100px 20px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    grid-column: 1 / -1 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

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

.template7-news-empty p {
    font-size: 18px !important;
}

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

.template7-news-pagination-link,
.template7-news-pagination-current {
    padding: 12px 20px !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.8) !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;
}

.template7-news-pagination-link:hover {
    border-color: #667eea !important;
    color: white !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    transform: translateY(-2px) !important;
}

.template7-news-pagination-current {
    border-color: #667eea !important;
    color: white !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    font-weight: 600 !important;
}

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

/* 主要内容区域 */
.main-content {
    padding-top: 80px !important;
    min-height: calc(100vh - 300px) !important;
    background: #000000 !important;
}

.news-detail-page {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
}

/* 返回按钮 */
.news-detail-back {
    padding: 20px 0 !important;
}

.news-detail-back a {
    color: #667eea !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
    display: inline-block !important;
}

.news-detail-back a:hover {
    color: #764ba2 !important;
    transform: translateX(-5px) !important;
}

/* 资讯文章容器 */
.template7-news-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: rgba(255, 255, 255, 0.6) !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: rgba(255, 255, 255, 0.8) !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(102, 126, 234, 0.3) !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !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(102, 126, 234, 0.3) !important;
}

.news-detail-content blockquote {
    border-left: 4px solid #667eea !important;
    padding: 20px 25px !important;
    margin: 25px 0 !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
    border-radius: 0 8px 8px 0 !important;
    font-style: italic !important;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.8 !important;
}

.news-detail-content code {
    background: rgba(102, 126, 234, 0.1) !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-family: 'Courier New', monospace !important;
    font-size: 14px !important;
    color: #667eea !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(102, 126, 234, 0.3) !important;
}

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

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

.news-detail-content a:hover {
    color: #764ba2 !important;
    border-bottom-color: #764ba2 !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(102, 126, 234, 0.1) !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

/* 空状态（通用） */
.news-empty,
.news-loading {
    text-align: center !important;
    padding: 100px 20px !important;
    color: rgba(255, 255, 255, 0.6) !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;
}

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

.news-empty p,
.news-loading p {
    font-size: 18px !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ===================================
   移动端响应式优化
   =================================== */

@media (max-width: 768px) {
    /* 确保body可以正常滚动 */
    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        position: relative !important;
    }

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

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

    .template7-news-header {
        padding: 40px 20px !important;
        margin-bottom: 40px !important;
    }

    .template7-news-header h1 {
        font-size: 28px !important;
    }

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

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

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

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

    /* 详情页响应式 */
    .main-content {
        padding-top: 60px !important;
    }

    .news-detail-page {
        padding: 20px 15px !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) {
    .template7-news-section {
        min-height: calc(100vh - 280px) !important;
    }

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