/* ==================== 基础设计令牌 ==================== */
:root {
  --theme-blue: #004ef6;
  --primary: var(--theme-blue);
  --primary-dark: var(--theme-blue);
  --accent: var(--theme-blue);
  --text: #18283d;
  --text-gray: #5f7084;
  --muted: #6c7b8d;
  --bg: #f5f7fb;
  --light: #f4f7ff;
  --border: #e4ebf5;
  --radius: 16px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 16px 40px rgba(11, 56, 138, 0.1);
  --shadow-soft: 0 8px 28px rgba(17, 41, 84, 0.08);
  --section-space: 110px;
  --section-space-sm: 110px;
  --title-gap: 12px;
  --content-gap: 16px;
  --copy-gap: clamp(12px, 1.5vw, 18px);
  --content-max: 1200px;
  --reading-max: 880px;
}

/* ==================== 全局基础样式 ==================== */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    sans-serif;
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(11, 99, 255, 0.14);
  color: var(--text);
}

/*
 * ==================== 公共类命名说�?====================
 * 统一后的公共样式全部使用 `site-` 前缀�? * 旧类名仍保留在同一规则中，作为兼容层，避免现有页面失效�? */

/* 版心容器 */
.site-container {
  width: min(100%, var(--content-max));
  max-width: var(--content-max);
  margin-inline: auto;
  box-sizing: border-box;
}

/* 内页统一骨架，避免页面私�?CSS 干扰公共 header/footer 与版�?*/
body.page-shell {
  margin: 0;
  font-family:
    "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    sans-serif;
  color: var(--text);
  line-height: 1.75;
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.page-shell .site-container {
  width: min(100%, var(--content-max));
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 24px;
  box-sizing: border-box;
}

body.page-shell .site-section {
  padding-block: var(--section-space);
}

/* 通用区块垂直间距 */
.site-section {
  padding-block: var(--section-space);
}

/*
 * 产品页的“特色能力”模块由标题块和内容块拆成两段结构，
 * 这里分别补足上下边距，保证整组模块也遵循 110px 节奏�? */
.features-head {
  padding-top: var(--section-space);
}

.features-grid {
  padding-bottom: var(--section-space);
}

/* 标题区容�?*/
.site-section-header {
  margin-bottom: 48px;
  text-align: center;
}

/*
 * 首页部分模块使用 flex 标题区，需要单独统一标题与副标题之间的间距�? */

/* 英文眉题 / 小标�?*/
.site-section-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* 区块主标�?*/
.site-section-heading {
  margin: 0;
  color: #222;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.02em;
}
.site-section-heading-h3 {
  margin: 0;
  color: #222;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.card-content {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-gray);
}

/* 模块标题统一规格 */

/* 页面主标�?*/
.site-page-heading,
.site-banner-title {
  margin: 0;
  color: #222;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.04em;
}

/* 公共正文 / 副标�?*/
.site-section-subtitle,
.site-copy {
  color: var(--text-gray);
  font-size: 16px;
  line-height: 1.9;
  margin: 0;
}

/* 模块副标题统一规格 */
/* Banner 全局命名：title / subtitle / copy */
.site-banner-subtitle {
  margin: 12px 0 20px;
  font-size: 24px;
  font-weight: 400;
  color: #222;
}

.site-banner-copy {
  margin: 20px 0 0;
  font-size: 16px;
  color: #666;
  opacity: 1;
}

.site-card-subtitle,
.site-content-subtitle,
.site-meta {
  color: var(--text-gray);
  font-size: 16px;
  line-height: 1.9;
}

.site-banner-subtitle + .site-banner-copy {
  margin-top: 0;
}

/* 适合阅读的正文宽�?*/
.site-section-subtitle {
  max-width: var(--reading-max);
  margin-inline: auto;
}

/* 标题与描述的默认垂直间距 */
.site-section-subtitle,
.site-meta {
  margin-top: var(--title-gap);
}

.site-card-title,
.site-content-title {
  font-size: 20px;
  color: var(--text);
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin: 0;
}

.site-card-subtitle,
.site-content-subtitle,
.site-meta {
  color: var(--text-gray);
  font-size: 16px;
  line-height: 1.9;
}

.site-card-subtitle,
.site-content-subtitle {
  margin: var(--title-gap) 0 var(--content-gap);
}

.site-card-copy,
.site-meta {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
  margin: 0;
}

.site-content-title + .site-copy,
.site-content-title + .site-content-subtitle,
.site-card-title + .site-card-subtitle,
.site-card-title + .site-card-copy,
.site-card-subtitle + .site-card-copy,
.site-content-subtitle + .site-copy {
  margin-top: var(--title-gap);
}

.site-copy + .site-copy {
  margin-top: var(--copy-gap);
}

/* 公共卡片圆角 */
.site-card {
  border-radius: var(--radius);
}

/* 公共卡片阴影 */
.site-card-elevated {
  box-shadow: var(--shadow-soft);
}

/* 常用内容宽度 */
.site-content-shell {
  max-width: var(--content-max);
}

/* 页面级私有壳层统一收口�?1200px 版心 */
.site-content-shell,
.site-breadcrumb-bar,
.site-pagination {
  max-width: var(--content-max);
  margin-inline: auto;
  box-sizing: border-box;
}

/*
 * 产品页部分模块原先使�?1240px 或基于视口的 calc 作为内容宽度�? * 这里统一收口�?1200px 可视区域�? */
.hero-content,
.trio-cards-sec,
.features-grid,
.web3-sec {
  max-width: var(--content-max);
}

.web3-sec {
  padding-inline: 0;
}

/* section 模块�?tabs 统一字号 */
.site-tab {
  font-size: 18px;
}

.site-page-button {
  font-size: 14px;
}

.site-breadcrumb {
  color: var(--text-gray);
}

/* ==================== 响应式收�?==================== */
@media (max-width: 768px) {
  .site-section {
    padding-block: 70px;
  }

  /* 手机端统一所有模块上下间距为 70px */
  section.site-section,
  section[class$="-section"],
  section[class*="-section "],
  section[class*=" section-"] {
    padding-top: 70px !important;
    padding-bottom: 70px !important;
  }

  .features-head {
    padding-top: var(--section-space-sm);
  }

  .features-grid {
    padding-bottom: var(--section-space-sm);
  }

  .site-section-heading {
    font-size: clamp(1.5rem, 6vw, 1.875rem);
  }

  .site-page-heading,
  .site-banner-title {
    font-size: clamp(1.625rem, 7vw, 2.25rem);
    letter-spacing: 0.02em;
  }

  .site-banner-subtitle {
    font-size: 18px;
  }

  .site-section-subtitle,
  .site-copy,
  .site-card-subtitle,
  .site-content-subtitle,
  .site-banner-copy {
    font-size: 14px;
    line-height: 1.85;
  }

  .site-card-title,
  .site-content-title {
    font-size: 20px;
  }

  .site-card-copy,
  .site-meta {
    font-size: 13px;
  }
}

@media (max-width: 1024px) {
  .site-container {
    width: calc(100% - 48px);
  }
}

@media (max-width: 480px) {
  .site-section,
  section.site-section,
  section[class$="-section"],
  section[class*="-section "],
  section[class*=" section-"] {
    padding-top: 70px !important;
    padding-bottom: 70px !important;
  }
}

body.is-shared-form-modal-open {
  overflow: hidden;
}

.shared-form-modal[hidden] {
  display: none;
}

.shared-form-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(5px);
  overflow-y: auto;
}

.shared-form-modal__frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

@media (max-width: 768px) {
  .shared-form-modal {
    padding: 12px;
  }
}
