/* 移动端新闻详情页样式 */

.news-detail-page {
    width: 100%;
    min-width: 0;
    background: #f5f5f5;
    padding-bottom: 40px;
}


.news-detail-container {
    padding: 16px 12px;
}

.news-detail-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 20px 16px;
}

.news-detail-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.news-detail-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    line-height: 1.5;
    margin: 0 0 12px;
}

.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    font-size: 12px;
    color: #999;
}

.news-detail-content {
    min-height: 280px;
    font-size: 14px;
    line-height: 1.8;
    /* color: #444; */
    /* 兜底：微信公众号编辑器（135/96 等）富文本里"横向滑动模块"会写死
       width: 16xx.xxpx（例如 i-1000000065.html 的 width: 1651.76px / 2403.52px）。
       这些固定像素宽度在移动端会撑爆视口触发横向滚动条。
       这里强制约束父容器 + 内容换行，避免页面被撑宽。 */
    max-width: 100%;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    box-sizing: border-box;
}

/* 兜底所有富文本里可能溢出宽度的元素 */
.news-detail-content * {
    max-width: 100% !important;
    /* 注意：此处用 box-sizing 而不是直接 width:100%，
       否则会破坏公众号原模板里 display:inline-block 元素的并排布局 */
    box-sizing: border-box;
}

.news-detail-content h2 {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 24px 0 12px;
    padding-left: 12px;
    border-left: 3px solid #1a6fd8;
}

.news-detail-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px;
}

.news-detail-content p {
    margin: 0;
    /* text-align: justify; */
}

.news-detail-content ul {
    margin: 12px 0;
    padding-left: 20px;
}

.news-detail-content li {
    margin: 8px 0;
    position: relative;
}

.news-detail-content strong {
    /* color: #1a6fd8; */
    font-weight: 600;
}

.news-detail-content section {
    max-width: 100%;
}

.news-detail-highlight {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f2fc 100%);
    border-left: 3px solid #1a6fd8;
    padding: 16px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.news-detail-highlight h3 {
    margin-top: 0;
    color: #1a6fd8;
    font-size: 14px;
}

.news-detail-highlight ul {
    margin: 0;
    padding-left: 16px;
}

.news-detail-clients {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
}

.news-detail-clients h3 {
    margin-top: 0;
    font-size: 14px;
}

.news-detail-clients ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.news-detail-clients li {
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
    font-size: 13px;
}

.news-detail-clients li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1a6fd8;
    font-weight: bold;
}

.news-detail-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-detail-back {
    color: #1a6fd8;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.news-detail-tag {
    background: #f0f7ff;
    color: #1a6fd8;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* 权益分类网格 */
.equity-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 16px 0;
}

.equity-category {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.equity-category h4 {
    margin: 0 0 6px;
    color: #1a6fd8;
    font-size: 13px;
}

.equity-category p {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* 优势列表 */
.advantage-list {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
}

.advantage-item {
    display: flex;
    gap: 12px;
    margin: 12px 0;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
}

.advantage-item:first-child {
    margin-top: 0;
}

.advantage-item:last-child {
    margin-bottom: 0;
}

.advantage-number {
    width: 28px;
    height: 28px;
    background: #1a6fd8;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.advantage-content h4 {
    margin: 0 0 4px;
    color: #222;
    font-size: 13px;
}

.advantage-content p {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

/* CTA 区块 */
.news-detail-cta {
    margin-top: 20px;
    padding: 16px;
    background: #f0f7ff;
    border-radius: 8px;
    text-align: center;
}

.news-detail-cta strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.news-detail-cta span {
    color: #666;
    font-size: 12px;
}

/* ============================================
   GEO优化：文章署名（Visible Byline）样式
   ============================================ */
.article-byline {
    font-size: 12px;
    color: #7a7a8c;
    margin: 12px 0 16px;
    padding: 8px 12px;
    background: #f5f5fa;
    border-left: 3px solid #1f1570;
    border-radius: 0 4px 4px 0;
    display: block;
    font-style: normal;
    line-height: 1.6;
}
.article-byline .byline-label {
    color: #aaa;
    margin-right: 4px;
}
.article-byline .byline-name {
    color: #1f1570;
    font-weight: 600;
    text-decoration: none;
}
.article-byline .byline-name:hover {
    text-decoration: underline;
}
.article-byline .byline-role {
    color: #555;
    margin-left: 4px;
}
