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

/* 页面容器 - 使用深色背景 */
.template1-news-section {
    padding: 80px 0 !important;
    background: transparent !important;
    min-height: 100vh !important;
}

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

.template1-news-title {
    font-size: 42px !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    margin-bottom: 16px !important;
    letter-spacing: 1px !important;
}

.template1-news-title span {
    color: var(--accent) !important;
}

.template1-news-subtitle {
    font-size: 18px !important;
    color: var(--muted) !important;
}

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

/* 卡片 - 使用深色卡片样式 */
.template1-news-card {
    background: var(--card) !important;
    border-radius: var(--radius) !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    border: 1px solid var(--border) !important;
}

.template1-news-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 30px rgba(36, 192, 138, 0.2) !important;
    border-color: var(--accent) !important;
}

/* 卡片图片 */
.template1-news-card-img {
    height: 200px !important;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 72px !important;
}

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

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

.template1-news-card-title a {
    color: var(--text) !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
}

.template1-news-card-title a:hover {
    color: var(--accent) !important;
}

/* 卡片元信息 */
.template1-news-card-meta {
    font-size: 13px !important;
    color: var(--muted) !important;
    margin-bottom: 14px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid var(--border) !important;
    display: flex !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
}

/* 卡片摘要 */
.template1-news-card-excerpt {
    font-size: 14px !important;
    color: var(--muted) !important;
    line-height: 1.7 !important;
    margin-bottom: 18px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* 阅读全文按钮 */
.template1-news-btn {
    display: inline-block !important;
    padding: 10px 22px !important;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
    font-size: 14px !important;
    box-shadow: 0 4px 15px rgba(36, 192, 138, 0.3) !important;
}

.template1-news-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(36, 192, 138, 0.5) !important;
}

/* 空状态 */
.template1-news-empty {
    text-align: center !important;
    padding: 80px 20px !important;
    color: var(--muted) !important;
    grid-column: 1 / -1 !important;
    background: var(--card) !important;
    border-radius: var(--radius) !important;
    border: 1px solid var(--border) !important;
}

.template1-news-empty-icon {
    font-size: 80px !important;
    margin-bottom: 16px !important;
}

.template1-news-empty-text {
    font-size: 16px !important;
}

/* 分页 */
.template1-news-pagination {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 50px !important;
}

.template1-news-pagination a,
.template1-news-pagination span {
    padding: 10px 18px !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    color: var(--muted) !important;
    text-decoration: none !important;
    transition: all 0.3s !important;
    background: var(--card) !important;
    font-weight: 500 !important;
}

.template1-news-pagination a:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    background: var(--surface) !important;
    transform: translateY(-2px) !important;
}

.template1-news-pagination .active {
    border-color: var(--accent) !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
    font-weight: 600 !important;
}

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

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

.news-detail-back a {
    color: var(--accent) !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: all 0.3s !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    background: var(--card) !important;
    border-radius: 8px !important;
    border: 1px solid var(--border) !important;
}

.news-detail-back a:hover {
    color: var(--accent-2) !important;
    transform: translateX(-4px) !important;
    border-color: var(--accent) !important;
}

/* 资讯文章容器 */
.news-detail-article {
    background: var(--card) !important;
    border-radius: var(--radius) !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--border) !important;
}

/* 资讯详情头部 */
.news-detail-header {
    padding: 40px !important;
    border-bottom: 1px solid var(--border) !important;
    background: var(--surface) !important;
}

.news-detail-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    margin-bottom: 20px !important;
    line-height: 1.4 !important;
    letter-spacing: 0.5px !important;
}

.news-detail-meta {
    display: flex !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
    font-size: 13px !important;
    color: var(--muted) !important;
}

.news-detail-meta span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 10px !important;
    background: var(--card) !important;
    border-radius: 16px !important;
    border: 1px solid var(--border) !important;
}

/* 资讯详情内容 */
.news-detail-content {
    padding: 40px !important;
    font-size: 15px !important;
    line-height: 1.9 !important;
    color: var(--text) !important;
    background: var(--card) !important;
}

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

.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
    margin-top: 30px !important;
    margin-bottom: 16px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    line-height: 1.4 !important;
}

.news-detail-content h2 {
    font-size: 24px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid var(--border) !important;
    color: var(--accent) !important;
}

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

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

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

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

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

.news-detail-content blockquote {
    border-left: 3px solid var(--accent) !important;
    padding: 16px 20px !important;
    margin: 20px 0 !important;
    background: var(--surface) !important;
    border-radius: 0 8px 8px 0 !important;
    font-style: italic !important;
    color: var(--muted) !important;
    line-height: 1.7 !important;
}

.news-detail-content code {
    background: var(--surface) !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-family: 'Courier New', monospace !important;
    font-size: 13px !important;
    color: var(--accent) !important;
}

.news-detail-content pre {
    background: var(--surface) !important;
    color: var(--text) !important;
    padding: 18px !important;
    border-radius: 8px !important;
    overflow-x: auto !important;
    margin: 20px 0 !important;
    line-height: 1.6 !important;
    border: 1px solid var(--border) !important;
}

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

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

.news-detail-content a:hover {
    color: var(--accent-2) !important;
    border-bottom-color: var(--accent) !important;
}

.news-detail-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
    background: var(--surface) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid var(--border) !important;
}

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

.news-detail-content th {
    background: var(--card) !important;
    font-weight: 600 !important;
    color: var(--text) !important;
}

/* 空状态（通用） */
.news-empty {
    text-align: center !important;
    padding: 80px 20px !important;
    color: var(--muted) !important;
    background: var(--card) !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--border) !important;
}

.news-empty .icon {
    font-size: 80px !important;
    margin-bottom: 16px !important;
}

.news-empty p {
    font-size: 16px !important;
    margin: 0 !important;
    color: var(--muted) !important;
}

/* 响应式 */
@media (max-width: 768px) {
    .template1-news-section {
        padding: 60px 0 !important;
    }

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

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

    .template1-news-card-content {
        padding: 22px !important;
    }

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

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

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

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

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

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

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

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