/* 由 tools/build-theme-assets.py 自动生成，请勿直接修改。
   用途：基础变量 / 工具类
   改了 css/split/*.css 或 js/split/*.js 之后重新生成。 */

/* ===== base.css ===== */


:root {
  --brand: #2f5ef3;
  --brand-dark: #2754e3;
  --brand-light: #eaf0ff;
  --brand-soft: rgba(47, 94, 243, 0.08);

  --ink: #111a34;
  --ink-2: #2c3654;
  --ink-3: #5a6785;
  --ink-4: rgba(31, 42, 77, 0.62);

  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --bg-tint: #f3f5f8;
  --line: #e8ecf4;
  --line-soft: rgba(22, 93, 255, 0.08);

  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 18px;

  --shadow-s: 0 4px 14px rgba(28, 45, 90, 0.06);
  --shadow: 0 12px 30px rgba(47, 94, 243, 0.09);
  --shadow-l: 0 20px 50px rgba(28, 45, 90, 0.12);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1280px;
}

* { box-sizing: border-box; }

@font-face {
  font-family: "Montserrat";
  src: url("../../fonts/montserrat-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue",
    Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  background: transparent;
  -webkit-font-smoothing: antialiased;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; border: 0; }
a { text-decoration: none; color: inherit; transition: color .2s var(--ease); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0; color: var(--ink); font-weight: 700; letter-spacing: -0.01em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.ic { display: block; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}
.container--narrow { width: min(880px, calc(100% - 48px)); }

@media (max-width: 960px) { .container, .container--narrow { width: calc(100% - 32px); } }
@media (max-width: 640px) { .container, .container--narrow { width: calc(100% - 24px); } }

.sec { padding: 84px 0; position: relative; background: var(--bg); }
.sec--alt, .sec--solution, .sec--process, .sec--partner { background: var(--bg-alt); }

.sec-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.sec-head__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--brand);
  margin-bottom: 14px;
}

.sec-head__eyebrow::before,
.sec-head__eyebrow::after {
  content: "";
  display: inline-block;
  width: 22px; height: 2px;
  background: currentColor;
  vertical-align: middle;
  border-radius: 2px;
}
.sec-head__eyebrow::before { margin-right: 10px; }
.sec-head__eyebrow::after  { margin-left: 10px; }
.sec-head__title { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.25; }
.sec-head__desc { margin-top: 16px; color: var(--ink-3); font-size: 16px; }
.sec-head--sm { margin-bottom: 32px; }
.sec-head--row {
  max-width: none; text-align: left;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 36px;
}
.sec-head--row .sec-head__title { font-size: clamp(24px, 2.6vw, 32px); }
.sec-head--row .sec-head__eyebrow { text-align: left; margin-bottom: 10px; }
.sec-head__more { font-size: 15px; color: var(--brand); font-weight: 500; white-space: nowrap; }
.sec-head__more:hover { color: var(--brand-dark); }

body > *:has(+ .site-footer) {
  flex: 1 0 auto;
}

body > section,
body > header,
body > nav,
body > main,
body > div {
  flex: 0 0 auto;
}

body > .site-footer,
body > footer {
  flex: 0 0 auto;
}

/* ===== 滚动条：照抄 33y.cn typo.css，并把系统自带的上下箭头按钮去掉 ===== */
::-webkit-scrollbar {
    width: 4px;
    background: transparent;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background-color: rgb(201, 205, 212);
}
::-webkit-scrollbar-thumb:hover {
    background-color: rgb(190, 190, 190);
}
body::-webkit-scrollbar {
    width: 10px;
    background: transparent;
}
/* 关键：干掉原生滚动条两端的箭头按钮（就是截图里那个小三角） */
::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}
::-webkit-scrollbar-corner {
    background: transparent;
}

/* ===== misc.css ===== */


/* 回顶按钮：完全对齐用户中心（clientarea）的实现 ——
   52 圆、白渐变底、2px 白边、柔和蓝影，图标灰 #495770，悬停转品牌蓝 #0052d9 且阴影加深；
   出现/消失是 600ms ease-in-out 纯淡入淡出，没有位移、没有缩放。
   悬停还会在按钮上方弹出「返回顶部」气泡 —— clientarea 走 Bootstrap tooltip，
   我们这里没有 Bootstrap，用伪元素做一个视觉等效的（黑底白字 + 下方小箭头）。 */
.back-top {
  position: fixed; right: 8px; bottom: 16px; z-index: 99;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box; padding: 0;
  border: 2px solid #fff; border-radius: 50%;
  background-image: linear-gradient(0deg, #ffffff 0%, #f3f5f8 100%);
  box-shadow: 8px 8px 20px 0 rgba(55, 99, 170, .1);
  color: #495770; cursor: pointer;
  /* 注意：不能设 overflow:hidden，否则按钮上方的气泡会被裁掉 */
  -webkit-appearance: none; appearance: none;

  /* 只过渡 opacity，且 600ms ease-in-out —— 和 clientarea 的内联 style 一模一样 */
  opacity: 0; pointer-events: none;
  transition: opacity 600ms ease-in-out;
}
.back-top.is-show { opacity: 1; pointer-events: auto; }
/* 悬停：图标变蓝 + 阴影加深（clientarea 是直接切换背景图，这里用 currentColor 等效） */
.back-top:hover { color: #0052d9; box-shadow: 8px 8px 20px 0 rgba(55, 99, 170, .2); }

/* 悬停提示气泡（视觉对齐 Bootstrap tooltip：黑底 90%、白字、4.8px 圆角、下方小三角） */
.back-top::after {
  content: attr(aria-label);   /* 直接复用按钮的 aria-label，不重复写文案 */
  position: absolute;
  right: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(50%);
  padding: 4px 8px;
  border-radius: 4.8px;
  background: rgba(0, 0, 0, .9);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s linear;
}
.back-top::before {
  content: "";
  position: absolute;
  right: calc(50% - 5px);
  bottom: calc(100% + 5px);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, .9);
  border-bottom: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s linear;
}
.back-top:hover::after,
.back-top:hover::before { opacity: 1; }

.page-404 { padding: 130px 0; text-align: center; }
.page-404 h1 { font-size: 84px; line-height: 1; color: var(--brand); letter-spacing: -0.04em; }
.page-404 p { margin-top: 18px; color: var(--ink-3); }
.page-404 a { display: inline-block; margin-top: 26px; padding: 0 28px; height: 46px; line-height: 46px;
  border-radius: var(--radius-s); background: var(--brand); color: #fff; font-weight: 600; }

.page-list {

  padding: calc(62px + 64px) 0 90px;
  min-height: 60vh; background: var(--bg);
}
.page-list__empty { padding: 60px 0; text-align: center; color: var(--ink-4); }

.article {
  padding: 40px 44px 48px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
}
.article__title { font-size: clamp(22px, 2.8vw, 32px); line-height: 1.35; }
.article__meta { margin-top: 14px; font-size: 13px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.article__body { margin-top: 28px; font-size: 15px; line-height: 1.95; color: var(--ink-2); }
.article__body img { margin: 20px auto; border-radius: var(--radius-s); }
.article__body h2, .article__body h3 { margin: 30px 0 14px; }
.article__body p { margin: 14px 0; }
.article__body a { color: var(--brand); }
.article__body a:hover { text-decoration: underline; }
.article__body table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.article__body td, .article__body th { border: 1px solid var(--line); padding: 10px 12px; }
.article__back { margin-top: 36px; }
.article__back a { color: var(--brand); font-size: 14px; }

@media (max-width: 640px) {
  .page-list { padding: calc(62px + 40px) 0 60px; }
  .article { padding: 24px 20px 32px; }
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
html.js [data-reveal].is-in { opacity: 1; transform: translateY(0); }

html.js [data-reveal=right] {
  opacity: 1;
  transform: none;
}
html.js [data-reveal=right].is-in {
  animation: mdySlideInRight 1s cubic-bezier(.22, .61, .36, 1) both;
}
@keyframes mdySlideInRight {
  from { transform: translate3d(100%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}


/* ---- 轻提示（复制成功等）----
   参考站样式：顶部居中、浅绿底 + 绿色描边、左侧圆形绿底白勾。
   圆角 4px 与全站一致，阴影很轻。 */
.md-toast {
  position: fixed;
  top: 24px; left: 50%;
  z-index: 9999;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  color: #52c41a;
  font-size: 14px; line-height: 20px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -8px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.md-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.md-toast__icon {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #52c41a;
  color: #fff;
}
.md-toast__icon svg { width: 10px; height: 10px; display: block; }

/* 失败态：同样的版式换成红色 */
.md-toast--error {
  background: #fff2f0;
  border-color: #ffccc7;
  color: #ff4d4f;
}
.md-toast--error .md-toast__icon { background: #ff4d4f; }

/* 移动端窄屏留边，避免贴边 */
@media (max-width: 767px) {
  .md-toast {
    top: 16px;
    max-width: calc(100vw - 32px);
    white-space: normal;
  }
}
