/*
 * 新闻资讯、官方公告（列表、分类、详情）UI（2026-11-20，U18），在各页原有样式之后加载。
 * 分类页、资讯详情页内容区收到 1200px 居中（与新闻、公告列表一致，并给右侧客服悬浮条留出位置），分类页顶部空白收紧；
 * 浅灰小字（序号、篇数、分隔符、标签）改为次要文字色；公告分页选中页改主题蓝；手机可点区域至少 40px。
 * 颜色取 common/tokens.css，跟随主题控制台主题色。
 */

/* 分类页、资讯详情页：内容区 1200px 居中 */
@media (min-width: 1024px) {
  .xy-news-category-section > .section-content,
  .xy-news-detail-section > .section-content {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: content-box !important;
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .xy-news-category-section > .section-content,
  .xy-news-detail-section > .section-content { padding-right: 72px !important; }
}
.xy-news-category-section > .section-content { padding-top: 24px !important; }

/* 浅灰小字 */
.xy-news-page .news-number,
.xy-news-detail-section .news-number,
.xy-news-category-breadcrumb > span[aria-hidden],
.xy-news-category-heading-meta #totalText,
.xy-news-detail-section [class*=breadcrumb] span[aria-hidden],
.xy-news-detail-section [class*=meta] {
  color: var(--xy-color-text-secondary, #475569) !important;
}
.xy-news-page .xy-news-panel-head span,
.xy-news-page [class*=tab-head] span { color: var(--xy-color-text-secondary, #475569) !important; }
.xy-news-detail-section .news-number { font-size: 12px !important; }

/* 公告分页：选中页主题蓝（原被其他样式盖成橙色） */
.xy-announce-pagebar .pagination > li > a.page-number.active,
.xy-announce-pagebar .pagination > li.active > a {
  color: #fff !important;
  background: var(--xy-color-primary, #0b64f4) !important;
  border-color: var(--xy-color-primary, #0b64f4) !important;
}

/* 手机可点区域 */
@media (max-width: 767px) {
  .xy-news-page a[href*="news-classify"],
  .xy-news-category-breadcrumb a,
  .xy-news-category-heading-meta a,
  .xy-news-detail-section [class*=breadcrumb] a,
  .xy-news-detail-latest a[href="./news.html"],
  .announce-details [class*=breadcrumb] a,
  .xy-announce-pagebar .pagination > li > a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 40px !important;
  }
  .xy-announce-pagebar .pagination > li > a { min-width: 40px !important; justify-content: center !important; }
}

/* 公告列表：标题 + 日期的文字列表（用户在 A 保留配图 / B 文字列表中选 B；配图已从 js/announce.js 去掉，不再加载） */
.xy-announce-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 16px !important;
  min-height: 0 !important;
  padding: 16px 20px !important;
}
.xy-announce-card .xy-announce-thumb { display: none !important; }
.xy-announce-card h2 { margin: 0 !important; font-size: 15px !important; line-height: 1.5 !important; }
.xy-announce-card .xy-announce-card-meta { display: flex !important; align-items: center !important; justify-content: flex-end !important; }
@media (max-width: 767px) {
  .xy-announce-card { gap: 12px !important; padding: 14px 16px !important; }
}

/* ---------- 文档中心（2026-11-20，U20）：搜索结果只有分类 + 标题；分类卡悬停不加阴影；浅色说明加深；手机热门搜索标签 40px ---------- */
.xy-result-card, .xy-result-card .document-details-item { min-height: 0 !important; height: auto !important; }
.xy-result-card .document-details-item { padding: 0 !important; }
.xy-result-card .xy-result-content { display: grid !important; gap: 6px !important; }
.xy-result-card h3 { margin: 0 !important; }
.xy-doc-category-card:hover { transform: none !important; box-shadow: var(--xy-shadow-card, 0 4px 12px rgba(15, 35, 80, .06)) !important; border-color: var(--xy-color-primary-line, #dbe8fd) !important; }
.xy-doc-view-meta, .xy-doc-view-breadcrumb span[aria-hidden], .xy-doc-section-head p { color: var(--xy-color-text-secondary, #475569) !important; }
@media (max-width: 767px) {
  .xy-doc-hot-tags a { display: inline-flex !important; align-items: center !important; min-height: 40px !important; }
  .xy-doc-view-breadcrumb a { display: inline-flex !important; align-items: center !important; min-height: 40px !important; }
}

/* 正文统一排版（2026-11-21 U33）：字号行高、标题、列表、表格、图片、图注；压掉 Word 导入的内联字体字号颜色 */
html body .xy-imported-help-body { color: #334155 !important; font-size: 15px !important; line-height: 1.85 !important; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif !important; overflow-wrap: anywhere; }
html body .xy-imported-help-body p, html body .xy-imported-help-body li, html body .xy-imported-help-body td, html body .xy-imported-help-body th, html body .xy-imported-help-body div { font-family: inherit !important; }
html body .xy-imported-help-body p { margin: 0 0 12px !important; padding: 0 !important; text-indent: 0 !important; color: #334155 !important; font-size: 15px !important; line-height: 1.85 !important; }
html body .xy-imported-help-body span, html body .xy-imported-help-body font { font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; color: inherit !important; background: transparent !important; }
html body .xy-imported-help-body strong, html body .xy-imported-help-body b { color: #0f172a !important; font-weight: 600 !important; }
html body .xy-imported-help-body strong u, html body .xy-imported-help-body u strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
html body .xy-imported-help-body a { color: var(--xy-color-primary, #0b64f4) !important; text-decoration: none !important; }
html body .xy-imported-help-body a:hover { text-decoration: underline !important; text-underline-offset: 3px; }
html body .xy-imported-help-body h1, html body .xy-imported-help-body h2, html body .xy-imported-help-body h3, html body .xy-imported-help-body h4, html body .xy-imported-help-body p:has(> strong:only-child):not(:has(u)):not(:has(img)) { margin: 24px 0 10px !important; color: #0f172a !important; font-size: 17px !important; line-height: 1.6 !important; font-weight: 600 !important; }
html body .xy-imported-help-body > :first-child { margin-top: 0 !important; }
html body .xy-imported-help-body ul, html body .xy-imported-help-body ol { margin: 0 0 12px !important; padding-left: 1.6em !important; }
html body .xy-imported-help-body li { margin: 4px 0 !important; padding-left: 2px; color: #334155; }
html body .xy-imported-help-body ul > li { list-style: disc; }
html body .xy-imported-help-body ol > li { list-style: decimal; }
html body .xy-imported-help-body li::marker { color: #94a3b8; }
html body .xy-imported-help-body li::before { content: none !important; display: none !important; }
html body .xy-imported-help-body table { width: 100% !important; margin: 8px 0 16px !important; border-collapse: collapse !important; font-size: 14px !important; line-height: 1.7 !important; }
html body .xy-imported-help-body th, html body .xy-imported-help-body td { padding: 8px 12px !important; border: 1px solid #e2e8f0 !important; text-align: left !important; vertical-align: top !important; color: #334155 !important; }
html body .xy-imported-help-body th { background: #f8fafc !important; color: #0f172a !important; font-weight: 600 !important; }
html body .xy-imported-help-body img, html body .xy-imported-help-body video { display: block; max-width: 100% !important; height: auto !important; margin: 12px auto !important; border: 1px solid #e2e8f0; border-radius: 6px; }
html body .xy-imported-help-body p[style*="text-align: center"]:not(:has(img)), html body .xy-imported-help-body p[align="center"]:not(:has(img)) { margin: 4px 0 0 !important; color: #64748b !important; font-size: 13px !important; text-align: center !important; }
html body .xy-imported-help-body hr { margin: 20px 0; border: 0; border-top: 1px solid #e2e8f0; }
@media (max-width: 767px) {
  html body .xy-imported-help-body, html body .xy-imported-help-body p { font-size: 15px !important; }
  html body .xy-imported-help-body table { display: block !important; overflow-x: auto !important; font-size: 13px !important; }
  html body .xy-imported-help-body th, html body .xy-imported-help-body td { padding: 6px 8px !important; min-width: 88px; }
}

/* 资讯、公告、文档页内容区加宽（2026-11-21，与云服务器/物理机购买页同一规则）：
   屏幕不超过 1616px 时最宽 1440（两侧各留 24px）；更宽时最宽 1600，两侧至少留 88px，不压右侧客服悬浮条。 */
@media (min-width: 1024px) {
  html body.xy-news-page .section-content,
  html body.xy-news-page .xy-news-main .section-content,
  html body.xy-news-category-page .xy-news-category-section > .section-content,
  html body.xy-news-detail-page .xy-news-detail-section > .section-content,
  html body.xy-announce-page .section-content,
  html body .section-content:has(> .announce-details),
  html body.xy-doc-page .section-content {
    box-sizing: border-box !important;
    width: min(1440px, calc(100% - 48px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
@media (min-width: 1617px) {
  html body.xy-news-page .section-content,
  html body.xy-news-page .xy-news-main .section-content,
  html body.xy-news-category-page .xy-news-category-section > .section-content,
  html body.xy-news-detail-page .xy-news-detail-section > .section-content,
  html body.xy-announce-page .section-content,
  html body .section-content:has(> .announce-details),
  html body.xy-doc-page .section-content {
    width: min(1600px, calc(100vw - 176px)) !important;
  }
}
