/* ==========================================================================
   Ant Messenger 落地页 · Bing SEO 增强层
   作用域：仅覆盖语义化改写带来的 UA 默认样式差异 + 新增 SEO 区块样式
   不改动原有 _next 样式表，视觉以原站为基准
   ========================================================================== */

/* 1. 语义化包装元素零布局影响：header/main/section/footer 用 display:contents，
      子元素仍在原来的格式化上下文中排布，像素级不产生位移 */
header.site-header,
main#main,
section.hero-section,
section.feature-section,
section.download-section,
footer.site-footer {
  display: contents;
}

/* 2. 跳转到主内容（键盘/读屏可达，日常隐藏） */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 10px 18px;
  background: #5569ff;
  color: #fff;
  font: 600 14px/1.4 "PingFang SC", Inter, -apple-system, "Segoe UI", sans-serif;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; outline: 2px solid #1aa4ec; }

/* 3. 标题/段落改用语义标签后的 UA 默认值回正（原站这些元素 margin/weight 均为 0 / 600） */
h1.MainTitleContent { margin: 0; }
h2.BoldFontTitleStyle { margin: 0; font-weight: 600; }
h3.BoldFontNameStyle { margin: 0; font-weight: 600; }
p.AppTraitItemDesc { margin: 0; }

/* 原站这三处文字是 inline 元素，行盒高度比 block 多 1~2px；
   改为语义标签后恢复 inline，保证栅格高度与原站逐像素一致 */
.AppTraitItem h3.BoldFontNameStyle { display: inline; }
p.AppTraitItemDesc { display: inline; }

/* 4. CTA 由 button 改为 a：去掉链接默认下划线/颜色，保留按钮观感 */
a.mainDownloadButton,
a.download-button { text-decoration: none; }
a.mainDownloadButton:hover,
a.download-button:hover { text-decoration: none; }

/* 5. 页脚文字链接（原为 span，改为 a 便于爬虫跟进） */
.footerContent nav a.css-1rvw9cw {
  text-decoration: none;
  color: #6e809e;
  display: block;
  margin: 10px 0;
  font-size: 14px;
  line-height: 21px;
}
.footerContent nav a.css-1rvw9cw:hover { color: #5569ff; text-decoration: underline; }

/* 6. 新增：更多内容（站内链接聚合，长尾锚文本） */
.more-content {
  padding: 56px 0 64px;
  background: #fff;
  /* 与原站一致的中文字体栈：落地页正文用 PingFang SC，缺省时回落无衬线 */
  font-family: "PingFang SC", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
.more-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.more-title {
  margin: 0 0 28px;
  font: 600 40px/1.35 "PingFang SC", Inter, -apple-system, "Segoe UI", sans-serif;
  color: #353e6f;
  text-align: center;
}
.more-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  max-width: 1040px;
}
.more-list a {
  display: block;
  padding: 16px 20px;
  border: 1px solid #dbe4f7;
  border-radius: 10px;
  color: #353e6f;
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  background: #f7f9ff;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.more-list a:hover {
  color: #5569ff;
  border-color: #5569ff;
  background: #eef2ff;
}
.dark-theme .more-content { background: #0b1020; }
.dark-theme .more-title,
.dark-theme .more-list a { color: #dfe6ff; }
.dark-theme .more-list a { background: #131a31; border-color: #26304f; }
.dark-theme .footerContent nav a.css-1rvw9cw { color: #9fb0d0; }

/* 6b. 核心规格表（信息密度区块，承接「规格/上限/参数」类查询） */
.spec-section { border-bottom: 1px solid #eef1f9; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.65;
  color: #353e6f;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid #e6ecf9;
  vertical-align: top;
}
.spec-table thead th {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #6e809e;
  background: #f7f9ff;
}
.spec-table tbody td:first-child { font-weight: 600; white-space: nowrap; }
.spec-table tbody td:nth-child(2) { color: #5569ff; font-weight: 600; }
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-note {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: #6e809e;
}

@media (max-width: 820px) {
  .spec-table thead { display: none; }
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table td { display: block; width: 100%; }
  .spec-table tr { padding: 14px 0; border-bottom: 1px solid #e6ecf9; }
  .spec-table tr:last-child { border-bottom: none; }
  .spec-table td { padding: 0 0 4px; border: none; }
  .spec-table tbody td:first-child { white-space: normal; font-size: 14px; }
  .spec-table tbody td:nth-child(2) { font-size: 16px; }
  .spec-table tbody td:nth-child(3) { color: #6e809e; font-weight: 400; font-size: 14px; }
}

/* 7. 移动端：更多内容两列 / 单列 */
@media (max-width: 820px) {
  .more-content { padding: 36px 0 44px; }
  .more-title { font-size: 24px; margin-bottom: 18px; }
  .more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  .more-list a { padding: 12px 14px; font-size: 14px; }
}
@media (max-width: 480px) {
  .more-list { grid-template-columns: 1fr; }
}

/* 8. 移动端头部背景：原站用 302KB 的 home_bg_phone.png，这里换成同尺寸 WebP */
@media (max-width: 820px) {
  div.headerWrapper {
    background-image: url("../../static/images/opt/home-bg-phone-1125.webp");
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }
}

