@charset "UTF-8";

/* ============ 新闻详情页公共样式 ============
   所有新闻静态页统一引用此 CSS，结构保持一致即可套用。
   与主站 main.css 保持兼容，不重复定义全局样式。
   ============================================ */

:root {
    --article-primary: #D7000F;
    --article-primary-dark: #b1000c;
    --article-primary-rgb: 215, 0, 15;
    --article-accent: #502c6c;
    --article-bg: #f7f8fa;
    --article-text: #0C1B26;
    --article-text-light: #4a5568;
    --article-border: #e9ecef;
    --article-radius: 12px;
    --article-max-width: 880px;
}

/* ============ Body 基础样式 ============ */
html {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* ============ 页面外层 ============ */
.news-article-page {
    background: var(--article-bg);
    padding: 30px 15px 60px;
    min-height: calc(100vh - 120px);
}

.news-article-container {
    max-width: var(--article-max-width);
    margin: 0 auto;
    background: #fff;
    border-radius: var(--article-radius);
    box-shadow: 0 2px 16px rgba(12, 27, 38, 0.06);
    padding: 50px 60px;
    border: 1px solid var(--article-border);
}

/* ============ 返回按钮 ============ */
.news-back-btn {
    max-width: var(--article-max-width);
    margin: 0 auto 16px;
    padding: 0 6px;
}

.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--article-text-light);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    padding: 6px 12px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--article-border);
    box-shadow: 0 1px 4px rgba(12, 27, 38, 0.04);
}

.news-back-link:hover {
    color: var(--article-primary);
    border-color: rgba(var(--article-primary-rgb), 0.3);
    transform: translateX(-2px);
}

.news-back-link svg {
    width: 14px;
    height: 14px;
}

/* ============ 文章头部 ============ */
.news-article-header {
    text-align: center;
    margin-bottom: 36px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--article-border);
    position: relative;
}

.news-article-header::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--article-accent), var(--article-primary));
    border-radius: 1px;
}

.news-article-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 16px;
    background: linear-gradient(135deg, rgba(var(--article-primary-rgb), 0.08), rgba(var(--article-primary-rgb), 0.02));
    color: var(--article-primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    border: 1px solid rgba(var(--article-primary-rgb), 0.15);
}

.news-article-tag .tag-icon {
    font-size: 15px;
}

.news-article-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--article-text);
    margin: 0 0 18px;
    letter-spacing: 0.2px;
}

.news-article-title-en {
    font-size: 18px;
    font-weight: 500;
    color: var(--article-accent);
    margin: 0 0 20px;
    line-height: 1.5;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 0.3px;
}

.news-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--article-text-light);
    font-size: 13px;
}

.news-article-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-article-meta svg {
    width: 14px;
    height: 14px;
}

.news-article-meta .meta-divider {
    width: 1px;
    height: 14px;
    background: var(--article-border);
}

/* ============ 正文通用 ============ */
.news-article-body {
    color: var(--article-text);
    font-size: 16px;
    line-height: 1.9;
    text-align: justify;
}

.news-article-body p {
    margin: 0 0 20px;
    text-indent: 2em;
}

.news-article-body p:last-child {
    margin-bottom: 0;
}

.news-article-body strong {
    color: var(--article-primary);
    font-weight: 600;
}

.news-article-body em {
    color: var(--article-accent);
    font-style: normal;
    font-weight: 500;
}

/* ============ 前言块 ============ */
.news-article-preface {
    background: linear-gradient(135deg, rgba(80, 44, 108, 0.04), rgba(215, 0, 15, 0.04));
    border-left: 4px solid var(--article-accent);
    padding: 18px 22px;
    border-radius: 0 10px 10px 0;
    margin: 28px 0 36px;
    font-size: 15px;
    color: var(--article-text-light);
    line-height: 1.8;
}

.news-article-preface .preface-label {
    display: inline-block;
    color: var(--article-accent);
    font-weight: 600;
    margin-right: 8px;
    font-size: 14px;
}

.news-article-preface p {
    text-indent: 0;
    margin: 0;
}

/* ============ 章节编号标题 ============ */
.news-section {
    margin: 44px 0 0;
}

.news-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(var(--article-primary-rgb), 0.2);
}

.news-section-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--article-primary), var(--article-primary-dark));
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(var(--article-primary-rgb), 0.25);
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.5px;
}

.news-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--article-text);
    line-height: 1.4;
    margin: 0;
}

/* ============ 二级小标题 ============ */
.news-sub-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--article-primary-dark);
    margin: 26px 0 12px;
    padding-left: 12px;
    border-left: 3px solid var(--article-primary);
    line-height: 1.5;
}

/* ============ 图片块 ============ */
.news-image {
    margin: 30px 0;
    text-align: center;
}

.news-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(12, 27, 38, 0.1);
    display: block;
    margin: 0 auto;
}

.news-image-placeholder {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #f0f2f5, #e6e9ef);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #a0aab5;
    font-size: 14px;
    border: 2px dashed #d0d5dc;
}

.news-image-placeholder .placeholder-icon {
    font-size: 42px;
    opacity: 0.6;
}

.news-image-caption {
    margin-top: 10px;
    font-size: 13px;
    color: var(--article-text-light);
    text-align: center;
    line-height: 1.6;
    padding: 0 10px;
}

.news-image-caption .caption-source {
    color: #a0aab5;
    font-size: 12px;
}

/* ============ 数据亮点（百分比、数字列表） ============ */
.news-highlights {
    margin: 28px 0;
    background: linear-gradient(135deg, rgba(var(--article-primary-rgb), 0.03), rgba(var(--article-primary-rgb), 0.01));
    border: 1px solid rgba(var(--article-primary-rgb), 0.1);
    border-radius: var(--article-radius);
    padding: 24px 28px;
}

.news-highlights h4 {
    font-size: 15px;
    color: var(--article-primary-dark);
    margin: 0 0 14px;
    font-weight: 600;
}

.news-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 24px;
}

.news-highlights li {
    padding: 8px 0 8px 24px;
    position: relative;
    font-size: 15px;
    color: var(--article-text);
    line-height: 1.5;
}

.news-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--article-primary), var(--article-primary-dark));
    border-radius: 3px;
}

.news-highlights li .hl-num {
    color: var(--article-primary);
    font-weight: 700;
    font-size: 17px;
}

/* ============ 引用/高亮块 ============ */
.news-quote {
    margin: 28px 0;
    padding: 20px 26px;
    background: linear-gradient(135deg, #fffaf0, #fff7ed);
    border: 1px solid rgba(var(--article-primary-rgb), 0.15);
    border-left: 4px solid var(--article-primary);
    border-radius: 0 10px 10px 0;
    color: #7c5e30;
    font-size: 15px;
    line-height: 1.8;
}

.news-quote p {
    text-indent: 0;
    margin: 0;
}

.news-quote .quote-label {
    display: block;
    color: var(--article-primary);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

/* ============ 结尾总结块 ============ */
.news-article-ending {
    margin-top: 40px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(80, 44, 108, 0.04), rgba(215, 0, 15, 0.04));
    border-radius: var(--article-radius);
    border: 1px solid rgba(var(--article-primary-rgb), 0.1);
    position: relative;
    overflow: hidden;
}

.news-article-ending::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--article-primary), var(--article-accent));
}

.news-article-ending p {
    font-size: 15px;
    color: var(--article-text-light);
    line-height: 1.8;
    text-indent: 0;
    padding-left: 14px;
}

.news-article-ending p:last-child {
    margin-bottom: 0;
}

/* ============ 列表（普通无序列表） ============ */
.news-article-body ul,
.news-article-body ol {
    margin: 16px 0 22px;
    padding-left: 1.5em;
}

.news-article-body ul li,
.news-article-body ol li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.news-article-body ul li::marker {
    color: var(--article-primary);
}

.news-article-body ol li::marker {
    color: var(--article-accent);
    font-weight: 600;
}

/* 显式带 news-list 类的列表（用于微信文章结构化列表） */
.news-article-body .news-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0 26px;
}

.news-article-body .news-list li {
    position: relative;
    padding: 6px 0 6px 22px;
    margin-bottom: 6px;
    line-height: 1.7;
    color: var(--article-text);
}

.news-article-body .news-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--article-primary);
    border-radius: 50%;
}

/* ============ 免责声明 ============ */
.news-disclaimer {
    margin-top: 30px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-left: 3px solid #dee2e6;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.8;
    border-radius: 0 6px 6px 0;
}

.news-disclaimer p {
    margin: 0;
    text-indent: 0;
}

.news-disclaimer strong {
    color: #495057;
    font-weight: 600;
}

/* ============ 扩展展示模块 ============ */

/* 数据卡片网格（用于电商数据展示） */
.news-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.news-data-card {
    padding: 20px 18px;
    background: linear-gradient(135deg, rgba(var(--article-primary-rgb), 0.04), rgba(var(--article-primary-rgb), 0.01));
    border: 1px solid rgba(var(--article-primary-rgb), 0.12);
    border-radius: 10px;
    text-align: center;
}

.news-data-card .data-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--article-primary);
    line-height: 1.2;
    margin-bottom: 6px;
}

.news-data-card .data-label {
    display: block;
    font-size: 13px;
    color: var(--article-text-light);
    line-height: 1.5;
}

/* 对比表格 */
.news-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 14px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(12, 27, 38, 0.06);
}

.news-compare-table thead {
    background: linear-gradient(135deg, var(--article-primary), var(--article-primary-dark));
    color: #fff;
}

.news-compare-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.news-compare-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--article-border);
    line-height: 1.6;
    color: var(--article-text);
}

.news-compare-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.news-compare-table tbody tr:hover {
    background: rgba(var(--article-primary-rgb), 0.03);
}

/* 信息提示框 */
.news-info-box {
    margin: 24px 0;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
}

.news-info-box.info {
    background: #e7f5ff;
    border-left: 4px solid #1c7ed6;
    color: #0b4f8c;
}

.news-info-box.warning {
    background: #fff9db;
    border-left: 4px solid #f08c00;
    color: #805000;
}

.news-info-box.success {
    background: #ebfbee;
    border-left: 4px solid #2b8a3e;
    color: #1c5a2e;
}

.news-info-box p {
    margin: 0;
    text-indent: 0;
}

/* 时间线 */
.news-timeline {
    margin: 28px 0;
    padding-left: 24px;
    position: relative;
}

.news-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(180deg, var(--article-primary), var(--article-accent));
}

.news-timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.news-timeline-item:last-child {
    padding-bottom: 0;
}

.news-timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid var(--article-primary);
    border-radius: 50%;
}

.news-timeline-item .timeline-date {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--article-primary);
    margin-bottom: 4px;
}

.news-timeline-item .timeline-content {
    font-size: 15px;
    color: var(--article-text);
    line-height: 1.7;
}

/* 平台/品牌卡片 */
.news-platform-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    margin: 20px 0;
    background: #fff;
    border: 1px solid var(--article-border);
    border-radius: 10px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.news-platform-card:hover {
    box-shadow: 0 6px 20px rgba(12, 27, 38, 0.08);
    transform: translateY(-2px);
}

.news-platform-card .platform-logo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    background: #f0f2f5;
}

.news-platform-card .platform-info {
    flex: 1;
}

.news-platform-card .platform-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--article-text);
    margin: 0 0 6px;
}

.news-platform-card .platform-desc {
    font-size: 14px;
    color: var(--article-text-light);
    line-height: 1.6;
    margin: 0;
}

/* 章节分隔线 */
.news-divider {
    margin: 36px 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--article-border), transparent);
}

/* 标签云 */
.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
}

.news-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(var(--article-primary-rgb), 0.06);
    color: var(--article-primary-dark);
    font-size: 13px;
    border-radius: 14px;
    border: 1px solid rgba(var(--article-primary-rgb), 0.15);
    transition: all 0.2s ease;
}

.news-tag:hover {
    background: rgba(var(--article-primary-rgb), 0.12);
    border-color: rgba(var(--article-primary-rgb), 0.3);
}

/* ============ 节日徽章标题（Eid Al Adha 样式） ============ */
.news-festival-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 36px 0 22px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(80, 44, 108, 0.04), rgba(215, 0, 15, 0.04));
    border-radius: 12px;
    border: 1px solid rgba(var(--article-primary-rgb), 0.08);
}

.news-festival-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 5px 18px;
    background: linear-gradient(135deg, #c8a951, #a8873a);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(200, 169, 81, 0.3);
    font-family: 'Georgia', 'Times New Roman', serif;
}

.news-festival-title {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    color: var(--article-text);
    line-height: 1.4;
    margin: 0;
}

.news-festival-title .festival-emoji {
    margin-left: 6px;
    font-size: 22px;
}

.news-festival-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--article-primary);
    font-weight: 600;
    margin: 12px 0 20px;
    letter-spacing: 0.5px;
}

/* 节日图片块（Eid Al Adha 标题图等） */
.news-festival-image {
    text-align: center;
    margin: 30px 0;
}

.news-festival-image img {
    max-width: 340px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 章节横幅图片（01/02/03 编号） */
.news-section-banner {
    text-align: left;
    margin: 30px 0 20px;
}

.news-section-banner img {
    max-width: 120px;
    height: auto;
    display: block;
}

/* ============ 秀米富文本段（v2026.10.5：抓取脚本保留原文内联样式）============ */
/* 秀米内容自带完整内联样式；这里只中和站点默认规则对它的干扰，并做基础防溢出 */
.news-article-body .xiumi-rich {
    max-width: 100%;
    overflow-x: auto;
}
.news-article-body .xiumi-rich p {
    text-indent: 0;          /* 站点默认 2em 首行缩进不适用于秀米排版 */
    margin: 0 0 14px;
}
.news-article-body .xiumi-rich p:last-child { margin-bottom: 0; }
.news-article-body .xiumi-rich strong { color: inherit; }  /* 站点默认品牌色 → 继承原文颜色 */
.news-article-body .xiumi-rich em { color: inherit; }
.news-article-body .xiumi-rich img { max-width: 100%; height: auto; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
    .news-article-container { padding: 36px 28px; }
    .news-article-title { font-size: 24px; }
    .news-article-title-en { font-size: 16px; }
}

@media (max-width: 600px) {
    .news-article-page { padding: 16px 10px 40px; }
    .news-article-container {
        padding: 24px 18px;
        border-radius: 10px;
    }
    .news-article-title { font-size: 20px; line-height: 1.4; }
    .news-article-title-en { font-size: 14px; }
    .news-article-body { font-size: 15px; line-height: 1.8; }
    .news-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .news-section-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-radius: 8px;
    }
    .news-section-title { font-size: 18px; }
    .news-highlights { padding: 18px 16px; }
    .news-highlights ul { grid-template-columns: 1fr; }
    .news-article-preface { padding: 14px 16px; }
    .news-article-ending { padding: 18px 16px; }
    .news-image-placeholder { height: 160px; }
    .news-article-meta {
        gap: 12px;
        font-size: 12px;
    }
    .news-article-meta .meta-divider { display: none; }
    /* 扩展模块移动端适配 */
    .news-data-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .news-data-card { padding: 14px 10px; }
    .news-data-card .data-value { font-size: 22px; }
    .news-compare-table { font-size: 13px; }
    .news-compare-table th, .news-compare-table td { padding: 8px 10px; }
    .news-platform-card { flex-direction: column; gap: 10px; padding: 16px; }
    .news-platform-card .platform-logo { width: 48px; height: 48px; }
    .news-timeline { padding-left: 18px; }
    .news-festival-header { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 16px; }
    .news-festival-title { font-size: 17px; }
    .news-festival-image img { max-width: 260px; }
}
