/* ===================================
   模板3 资讯列表页样式 - 深色科技主题
   =================================== */

/* 容器宽度定义 */
.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* 页面容器 - 增加最小高度避免内容少时太紧凑 */
.template3-news-section {
    padding: 80px 0 !important;
    background: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%) !important;
    min-height: calc(100vh - 300px) !important;
}

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

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

.template3-news-title span {
    color: #00d9ff !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

.template3-news-subtitle {
    font-size: 18px !important;
    color: #8892b0 !important;
}

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

/* 卡片 */
.template3-news-card {
    background: rgba(255, 255, 255, 0.03) !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;
}

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

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

/* 卡片内容 */
.template3-news-card-content {
    padding: 28px !important;
}

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

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

.template3-news-card-title a:hover {
    color: #00d9ff !important;
}

/* 卡片元信息 */
.template3-news-card-meta {
    font-size: 14px !important;
    color: #8892b0 !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;
}

/* 卡片摘要 */
.template3-news-card-excerpt {
    font-size: 15px !important;
    color: #8892b0 !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;
}

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

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

/* 空状态 */
.template3-news-empty {
    text-align: center !important;
    padding: 100px 20px !important;
    color: #8892b0 !important;
    grid-column: 1 / -1 !important;
    background: rgba(255, 255, 255, 0.03) !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;
}

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

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

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

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

.template3-news-pagination-link:hover {
    border-color: #00d9ff !important;
    color: #0a0a0f !important;
    background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%) !important;
    transform: translateY(-2px) !important;
}

.template3-news-pagination-current {
    border-color: #00d9ff !important;
    color: #0a0a0f !important;
    background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%) !important;
    font-weight: 600 !important;
}

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

/* 详情页面容器 */
.news-detail-page {
    padding: 80px 0 !important;
    background: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%) !important;
    min-height: calc(100vh - 300px) !important;
}

/* 返回按钮 */
.news-detail-back {
    margin-bottom: 30px !important;
}

.news-detail-back a {
    color: #00d9ff !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: all 0.3s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 20px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

.news-detail-back a:hover {
    color: #00ffff !important;
    transform: translateX(-5px) !important;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3) !important;
    border-color: #00d9ff !important;
}

/* 资讯文章容器 */
.news-detail-article {
    background: rgba(255, 255, 255, 0.03) !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: #8892b0 !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: #ccd6f6 !important;
    background: rgba(255, 255, 255, 0.02) !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(0, 217, 255, 0.3) !important;
    color: #00d9ff !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(0, 217, 255, 0.2) !important;
}

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

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

.news-detail-content pre {
    background: #0a0a0f !important;
    color: #ccd6f6 !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(0, 217, 255, 0.2) !important;
}

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

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

.news-detail-content a:hover {
    color: #00ffff !important;
    border-bottom-color: #00d9ff !important;
}

.news-detail-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 25px 0 !important;
    background: rgba(255, 255, 255, 0.03) !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(0, 217, 255, 0.1) !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

/* 加载状态 */
.news-empty,
.news-loading {
    text-align: center !important;
    padding: 100px 20px !important;
    color: #8892b0 !important;
    background: rgba(255, 255, 255, 0.03) !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: #8892b0 !important;
}

/* 响应式 - 优化移动端显示 */
@media (max-width: 768px) {
    /* 修复body transform导致的布局问题 */
    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        position: relative !important;
    }

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

    .template3-news-section,
    .news-detail-page {
        padding: 60px 0 !important;
        min-height: calc(100vh - 250px) !important;
    }

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

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

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

    .template3-news-card-image {
        height: 180px !important;
    }

    .template3-news-card-content {
        padding: 20px !important;
    }

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

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

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

    .news-detail-meta {
        flex-direction: column !important;
        gap: 10px !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;
    }

    .news-detail-back {
        margin-bottom: 20px !important;
    }

    .news-detail-back a {
        font-size: 14px !important;
        padding: 8px 15px !important;
    }
}

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

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