/* ==========================================================================
   Blog header / footer（技术方案 3.1 / 3.8）
   结构与 class 名沿用 mockup；视觉数值按 Figma（出入见 PRD-9544-设计出入记录.md）
   ========================================================================== */

/* ---------- Header（Figma 2:3957） ---------- */
.btse-header {
  background: #FFFFFF;
  font-family: Inter, inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Divi / Use Any Font 会给 a、span、button 等单独设字体、字距、行高，这里统一收回 */
.btse-header a,
.btse-header span,
.btse-header button,
.btse-header input {
  font-family: inherit;
  letter-spacing: 0;
}

.btse-header .hwrap {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1200px;
  height: 61px;
  margin: 0 auto;
  padding: 0 24px;
}

.btse-header .logo {
  font-size: 19px;
  font-weight: 700;
  line-height: 23px;
  letter-spacing: 0;
  color: #1F2328;
  text-decoration: none;
  white-space: nowrap;
}

.btse-header .logo span {
  color: #015FE5;
}

/* 分类（验收文档主站 #3）：数值按 mockup nav.top；放不下的项由 layout.js 移进「More」下拉（mockup 只放 6 项，没有 More） */
.btse-header .top {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 17px;
  min-width: 0;
}

.btse-header .top > a,
.btse-header .top-more__btn {
  flex: 0 0 auto;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 16px;
  color: #5A6472;
  text-decoration: none;
  white-space: nowrap;
}

.btse-header .top > a:hover,
.btse-header .top-more__btn:hover,
.btse-header .top-more.is-open .top-more__btn {
  color: #015FE5;
}

.btse-header .top-more {
  position: relative;
  flex: 0 0 auto;
}

.btse-header .top-more[hidden] {
  display: none;
}

.btse-header .top-more__btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

.btse-header .top-more__list {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 1000;
  display: none;
  box-sizing: border-box;
  min-width: 180px;
  padding: 6px;
  border: 1px solid #E4E7EC;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 12px 32px rgba(11, 13, 14, 0.12);
}

.btse-header .top-more.is-open .top-more__list {
  display: block;
}

.btse-header .top-more__list a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 16px;
  color: #1F2328;
  text-decoration: none;
  white-space: nowrap;
}

.btse-header .top-more__list a:hover {
  background: #EEF4FF;
  color: #015FE5;
}

.btse-header .top a:focus-visible,
.btse-header .top-more__btn:focus-visible {
  outline: 2px solid #015FE5;
  outline-offset: 2px;
  border-radius: 2px;
}

/* mockup：1180 以下先收紧；1023 以下整排隐藏，分类从首页分类导航进 */
@media (max-width: 1180px) {
  .btse-header .top {
    gap: 13px;
  }

  .btse-header .top > a,
  .btse-header .top-more__btn {
    font-size: 12.5px;
  }
}

@media (max-width: 1023px) {
  .btse-header .top {
    display: none;
  }
}

/* 搜索：图标常驻，输入框点击后在图标左侧展开（Figma / mockup 未画展开态，见出入记录 Header #7） */
.btse-header .btse-search {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.btse-header .btse-search__form {
  margin: 0;
}

.btse-header .btse-search__input {
  box-sizing: border-box;
  width: 0;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 17px;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 16px;
  color: #1F2328;
  opacity: 0;
  visibility: hidden;
  transition: width 0.2s ease, opacity 0.2s ease, visibility 0s linear 0.2s;
}

.btse-header .btse-search.is-open .btse-search__input {
  width: 220px;
  margin-right: 8px;
  padding: 0 14px;
  border: 1px solid #E4E7EC;
  opacity: 1;
  visibility: visible;
  transition: width 0.2s ease, opacity 0.2s ease, visibility 0s;
}

.btse-header .btse-search__input:focus {
  border-color: #015FE5;
  outline: none;
}

.btse-header .icon-search {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #E4E7EC;
  border-radius: 50%;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  color: #5A6472;
  cursor: pointer;
}

.btse-header .icon-search:hover,
.btse-header .btse-search.is-open .icon-search {
  border-color: #015FE5;
  color: #015FE5;
}

.btse-header .icon-search:focus-visible {
  outline: 2px solid #015FE5;
  outline-offset: 2px;
}

/* 按钮：高 36、圆角 4、文字 700 / 13.5px（Figma） */
.btse-header .btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 16px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btse-header .btn-o {
  border-color: #E4E7EC;
  background: #FFFFFF;
  color: #1F2328;
}

.btse-header .btn-o:hover {
  border-color: #015FE5;
  color: #015FE5;
}

.btse-header .btn-p {
  background: #015FE5;
  color: #FFFFFF;
}

.btse-header .btn-p:hover {
  background: #0149B8;
  color: #FFFFFF;
}

.btse-header .btn:focus-visible {
  outline: 2px solid #015FE5;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .btse-header .btse-search__input,
  .btse-header .btse-search.is-open .btse-search__input {
    transition: none;
  }
}

/* ---------- Footer（Figma 2:4194） ---------- */
.sitefoot {
  padding: 40px 0 0;
  background: #111A2B;
  color: #C3CAD4;
  font-family: Inter, inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}

/* Divi 会给标题设 letter-spacing:-1px、给全站设 line-height:22.4px，Use Any Font 会单独给 a / p / li 设字体，这里统一收回 */
.sitefoot h4,
.sitefoot p,
.sitefoot ul,
.sitefoot li,
.sitefoot a,
.sitefoot span {
  font-family: inherit;
  letter-spacing: 0;
}

.sitefoot .in {
  box-sizing: border-box;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.sitefoot a {
  color: #C3CAD4;
  text-decoration: none;
}

.sitefoot .flogo {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  color: #FFFFFF;
}

.sitefoot .soc {
  display: flex;
  gap: 16px;
  margin: 14px 0 34px;
}

.sitefoot .soc a {
  font-size: 13px;
  font-weight: 400;
  color: #8A94A6;
}

.sitefoot .soc a:hover {
  color: #FFFFFF;
}

/* 六栏：栏宽比例与间距按 mockup，起点与 Figma 一致 */
.sitefoot .fgrid {
  display: grid;
  /* minmax(0, …)：栏宽只按比例分，不被不折行的长链接撑开 */
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr) minmax(0, 1.35fr) minmax(0, 0.75fr) minmax(0, 0.75fr) minmax(0, 0.95fr);
  gap: 26px;
  padding-bottom: 34px;
}

.sitefoot h4 {
  margin: 0 0 16px;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
}

.sitefoot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 每行间隔 31.6px（Figma）= 行高 13.5 × 1.45 + 12px */
.sitefoot li {
  margin: 0 0 12px;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.45;
}

.sitefoot li a {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
}

/* ≥1400px 内容区固定 1336px（= Figma）：长链接不折行，「Multi-Asset Futures Collateral and Settlement」一行 291px，
   只伸进 26px 栏间距约 6px；更窄时栏宽变小，不折行会压到右边一栏，所以恢复正常折行 */
@media (min-width: 1400px) {
  .sitefoot li a {
    white-space: nowrap;
  }
}

/* ≤1200px（含桌面浏览器放大）六栏改三栏，按 mockup */
@media (max-width: 1200px) {
  .sitefoot .fgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sitefoot li a:hover {
  color: #FFFFFF;
}

.sitefoot .reg {
  display: inline-block;
  margin-bottom: 26px;
  padding: 11px 30px;
  border-radius: 4px;
  background: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  color: #111A2B;
}

.sitefoot .reg:hover {
  background: #E6EAF0;
  color: #111A2B;
}

.sitefoot .qr {
  box-sizing: border-box;
  width: 118px;
  height: 118px;
  padding: 9px;
  border-radius: 4px;
  background: #FFFFFF;
}

.sitefoot .qr img {
  display: block;
  width: 100px;
  height: 100px;
}

.sitefoot .pay {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 0 26px;
}

.sitefoot .pay span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  color: #9AA3AF;
}

.sitefoot .btm {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 26px;
  border-top: 1px solid #253349;
}

.sitefoot .btm p {
  margin: 0;
  padding: 0;
  font-size: 12.5px;
  line-height: 15px;
  font-weight: 400;
  color: #8A94A6;
}

/* 🌐 用的是系统 emoji 字体，行高比正文高，会把这一行撑高，固定成正文行高 */
.sitefoot .btm .lang {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 15px;
  color: #C3CAD4;
}
