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

/* 页面容器 */
.template9-news-section {
    padding: 5rem 0;
    background-color: #000000;
    min-height: calc(100vh - 300px);
    position: relative;
}

.template9-news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(0, 113, 227, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(52, 199, 89, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* 标题区域 */
.template9-news-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.template9-news-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.template9-news-subtitle {
    font-size: 1.125rem;
    color: #86868b;
}

/* 卡片网格 */
.template9-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* 卡片 */
.template9-news-card {
    background-color: #111111;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid #2c2c2e;
}

.template9-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.25);
    border-color: #0071e3;
}

/* 卡片图片 */
.template9-news-card-image {
    height: 12rem;
    background: linear-gradient(135deg, #111111 0%, #1c1c1e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
}

.template9-news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 卡片内容 */
.template9-news-card-content {
    padding: 1.5rem;
}

/* 卡片标题 */
.template9-news-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.5;
}

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

.template9-news-card-title a:hover {
    color: #0071e3;
}

/* 卡片元信息 */
.template9-news-card-meta {
    font-size: 0.875rem;
    color: #86868b;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #2c2c2e;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 卡片摘要 */
.template9-news-card-excerpt {
    font-size: 0.9375rem;
    color: #86868b;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 阅读全文按钮 */
.template9-news-card-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #0071e3;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
}

.template9-news-card-btn:hover {
    background-color: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.4);
    color: white;
}

/* 空状态 */
.template9-news-empty {
    text-align: center;
    padding: 4rem 1.25rem;
    color: #86868b;
    grid-column: 1 / -1;
    background: #111111;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    border: 1px solid #2c2c2e;
}

.template9-news-empty-icon {
    font-size: 4rem;
    margin-bottom: 1.25rem;
}

.template9-news-empty-text {
    font-size: 1.125rem;
}

/* 分页 */
.template9-news-pagination {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.template9-news-pagination-link,
.template9-news-pagination-current {
    padding: 0.75rem 1.25rem;
    border: 1px solid #2c2c2e;
    border-radius: 0.5rem;
    color: #86868b;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: #111111;
    font-weight: 500;
    display: inline-block;
}

.template9-news-pagination-link:hover {
    border-color: #0071e3;
    color: white;
    background-color: #0071e3;
    transform: translateY(-2px);
}

.template9-news-pagination-current {
    border-color: #0071e3;
    color: white;
    background-color: #0071e3;
    font-weight: 600;
}

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

/* 详情页面容器 */
.template9-news-detail-section {
    padding: 5rem 0;
    background-color: #000000;
    min-height: calc(100vh - 300px);
    position: relative;
}

.template9-news-detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(0, 113, 227, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* 返回按钮 */
.template9-news-detail-back {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.template9-news-detail-back a {
    color: #0071e3;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    background: #111111;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #2c2c2e;
}

.template9-news-detail-back a:hover {
    color: #0077ed;
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
    border-color: #0071e3;
}

/* 资讯文章容器 */
.template9-news-detail-article {
    background: #111111;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    border: 1px solid #2c2c2e;
    position: relative;
    z-index: 1;
}

/* 资讯详情头部 */
.template9-news-detail-header {
    padding: 2.5rem;
    border-bottom: 1px solid #2c2c2e;
    background: linear-gradient(135deg, #1c1c1e 0%, #111111 100%);
}

.template9-news-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    letter-spacing: 1px;
}

.template9-news-detail-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #86868b;
}

.template9-news-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3125rem 0.75rem;
    background: #111111;
    border-radius: 1.25rem;
    border: 1px solid #2c2c2e;
}

/* 资讯详情内容 */
.template9-news-detail-content {
    padding: 2.5rem;
    font-size: 1rem;
    line-height: 2;
    color: #e0e0e0;
    background: #111111;
}

.template9-news-detail-content p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

.template9-news-detail-content h1,
.template9-news-detail-content h2,
.template9-news-detail-content h3,
.template9-news-detail-content h4 {
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.5;
}

.template9-news-detail-content h2 {
    font-size: 1.75rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid #2c2c2e;
    color: #0071e3;
}

.template9-news-detail-content h3 {
    font-size: 1.375rem;
}

.template9-news-detail-content h4 {
    font-size: 1.125rem;
}

.template9-news-detail-content ul,
.template9-news-detail-content ol {
    margin: 1.25rem 0;
    padding-left: 1.875rem;
}

.template9-news-detail-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.template9-news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.template9-news-detail-content blockquote {
    border-left: 4px solid #0071e3;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    background: linear-gradient(135deg, #1c1c1e 0%, #111111 100%);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #b0b0b0;
    line-height: 1.8;
}

.template9-news-detail-content code {
    background: #2c2c2e;
    padding: 0.1875rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #0071e3;
}

.template9-news-detail-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    line-height: 1.6;
}

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

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

.template9-news-detail-content a:hover {
    color: #0077ed;
    border-bottom-color: #0071e3;
}

.template9-news-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #111111;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #2c2c2e;
}

.template9-news-detail-content th,
.template9-news-detail-content td {
    padding: 0.75rem 0.9375rem;
    text-align: left;
    border-bottom: 1px solid #2c2c2e;
}

.template9-news-detail-content th {
    background: #2c2c2e;
    font-weight: 600;
    color: #ffffff;
}

/* 加载状态 */
.template9-news-detail-loading {
    text-align: center;
    padding: 4rem 1.25rem;
    color: #86868b;
    background: #111111;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    border: 1px solid #2c2c2e;
    position: relative;
    z-index: 1;
}

.template9-news-detail-loading .template9-news-empty-icon {
    font-size: 4rem;
    margin-bottom: 1.25rem;
}

.template9-news-detail-loading p {
    font-size: 1.125rem;
    margin: 0;
    color: #86868b;
}

/* 错误状态 */
.template9-news-detail-error {
    text-align: center;
    padding: 4rem 1.25rem;
    color: #86868b;
    background: #111111;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    border: 1px solid #2c2c2e;
    position: relative;
    z-index: 1;
}

.template9-news-detail-error .template9-news-empty-icon {
    font-size: 4rem;
    margin-bottom: 1.25rem;
}

.template9-news-detail-error p {
    font-size: 1.125rem;
    margin: 0;
    color: #86868b;
}

/* 响应式 */
@media (max-width: 768px) {
    .template9-news-section,
    .template9-news-detail-section {
        padding: 3rem 0;
        min-height: calc(100vh - 250px);
    }

    .template9-news-title {
        font-size: 2rem;
    }

    .template9-news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .template9-news-card-content {
        padding: 1.25rem;
    }

    /* 详情页响应式 */
    .template9-news-detail-header,
    .template9-news-detail-content {
        padding: 1.5rem 1.25rem;
    }

    .template9-news-detail-title {
        font-size: 1.625rem;
    }

    .template9-news-detail-meta {
        flex-direction: column;
        gap: 0.625rem;
    }

    .template9-news-detail-content {
        font-size: 0.9375rem;
        line-height: 1.8;
    }

    .template9-news-detail-content h2 {
        font-size: 1.375rem;
    }

    .template9-news-detail-content h3 {
        font-size: 1.1875rem;
    }

    .template9-news-detail-back {
        margin-bottom: 1rem;
    }

    .template9-news-detail-back a {
        font-size: 0.875rem;
        padding: 0.5rem 0.9375rem;
    }
}

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