/* ============================================================
   全站公共样式 · common.css
   依赖：bootstrap-3.14.css
   ============================================================ */

:root {
  --ink: #0c0a1a;
  --ink-2: #12102a;
  --ink-3: #1a1735;
  --brand: #6366f1;
  --brand-2: #4f46e5;
  --cyan: #a5b4fc;
  --amber: #f59e0b;
  --green: #34d399;
  --surface: #ffffff;
  --surface-2: #f8f7ff;
  --surface-3: #f0effe;
  --border: #e8e6f5;
  --border-2: #d5d2ee;
  --text: #0f0e1a;
  --text-2: #5c5a72;
  --text-3: #9490a8;
  --brand-rgb: 99, 102, 241;
  --cyan-rgb: 165, 180, 252;
  --ink-rgb: 12, 10, 26;
  --violet-rgb: 139, 92, 246;
  --hero-from: #1a1535;
  --hero-mid: #2d2560;
  --hero-to: #0a0818;
  --footer-from: #120f28;
  --footer-to: #06040e;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(var(--ink-rgb), .06), 0 4px 14px rgba(var(--ink-rgb), .04);
  --shadow: 0 8px 30px rgba(var(--ink-rgb), .10), 0 2px 8px rgba(var(--ink-rgb), .06);
  --shadow-lg: 0 30px 70px rgba(var(--ink-rgb), .18);
  --maxw: 1200px;
  --sans: "IBM Plex Sans", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --display: "Sora", "IBM Plex Sans", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  background: var(--surface)
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.body {
  padding-top: 0
}

a {
  color: inherit;
  text-decoration: none
}

a:hover,
a:focus {
  text-decoration: none
}

img {
  max-width: 100%
}

ul,
li,
dl,
dt,
dd {
  list-style: none;
  padding: 0;
  margin: 0
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0
}

p {
  margin: 0
}

/* 布局工具 */
.flex-row {
  display: flex;
  flex-direction: row
}

.flex-center {
  align-items: center
}

.flex-bottom {
  align-items: flex-end
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%
}

.box-shadow {
  box-shadow: var(--shadow)
}

/* 间距 / 文字工具 */
.m-b-none {
  margin-bottom: 0 !important
}

.m-b-large {
  margin-bottom: 20px
}

.text-en {
  font-family: var(--mono);
  letter-spacing: .1em
}

.text-small {
  font-size: 12px
}

.text-normal {
  font-size: 14px
}

.text-black {
  color: #000
}

.text-color,
.text-info {
  color: var(--brand) !important
}

.text-muted {
  color: var(--text-3)
}

.text-gray {
  color: var(--text-3)
}

.text-white {
  color: #fff
}

.text-warning {
  color: var(--amber) !important
}

.bg-color {
  background: var(--brand) !important
}

.bg-gray {
  background: var(--surface-2) !important
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .22s;
  white-space: nowrap;
  line-height: 1.2;
}

.btn svg {
  width: 16px;
  height: 16px
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15.5px;
  border-radius: 12px
}

.btn-large {
  font-size: 15px
}

.btn-primary,
.btn-primary.focus,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open>.dropdown-toggle.btn-primary,
.btn-primary:active:hover,
.btn-primary.active:hover,
.open>.dropdown-toggle.btn-primary:hover,
.btn-primary:active:focus,
.btn-primary.active:focus,
.open>.dropdown-toggle.btn-primary:focus,
.btn-primary:active.focus,
.btn-primary.active.focus,
.open>.dropdown-toggle.btn-primary.focus {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
  background-image: none !important;
  box-shadow: 0 6px 18px rgba(var(--brand-rgb), .35);
}

.btn-primary:hover {
  background: var(--brand-2) !important;
  border-color: var(--brand-2) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(var(--brand-rgb), .45);
}

.btn-ghost,
.btn-ghost.focus,
.btn-ghost:focus,
.btn-ghost:active,
.btn-ghost.active {
  background: transparent !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, .22) !important;
  box-shadow: none !important;
  background-image: none !important;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .1) !important;
  color: #fff !important;
}

.body .btn-white {
  background: #fff !important;
  border: 1px solid rgba(255, 255, 255, .5) !important;
  color: var(--brand) !important;
  border-radius: 10px;
  font-weight: 600;
  padding: 12px 24px;
}

.body .btn-white.outline,
.body .btn-white.bg-color {
  background: transparent !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, .5) !important;
}

.body .btn-white:hover {
  background: var(--brand) !important;
  color: #fff !important;
  border-color: var(--brand) !important;
}

.body .btn-default,
.body .btn-default.focus,
.body .btn-default:focus,
.body .btn-default:active,
.body .btn-default.active,
.open>.dropdown-toggle.btn-default {
  background: var(--surface-2) !important;
  border-color: var(--border-2) !important;
  color: var(--text-2) !important;
  background-image: none !important;
}

.body .btn-default:hover,
.body .btn-default:focus,
.body .btn-default:active:hover,
.body .btn-default.active:hover {
  background: #fff !important;
  border-color: var(--brand) !important;
  color: var(--brand) !important;
}

.body .btn-warning,
.body .btn-warning:hover,
.body .btn-warning:focus,
.body .btn-warning:active,
.body .btn-warning.active {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
  background-image: none !important;
}

/* 公共组件 */
.font-mono {
  font-family: var(--mono)
}

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
}

.page-section {
  padding: 104px 0
}

.page-section--muted {
  background: var(--surface-2)
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px
}

.section-header h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -.02em;
  margin: 14px 0;
  line-height: 1.18;
}

.section-header p {
  color: var(--text-2);
  font-size: 16.5px
}

.section-header.light h2 {
  color: #fff
}

.section-header.light p {
  color: rgba(255, 255, 255, .7)
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: .7s cubic-bezier(.2, .7, .2, 1)
}

.scroll-reveal.in {
  opacity: 1;
  transform: none
}

/* 内容页通用布局 */
.body .page-wrapper {
  padding: 55px 0 20px !important;
  background: var(--surface)
}

.body .page-wrapper.bg-gray,
.body .bg-gray {
  background: var(--surface-2) !important
}

/* 移动端侧栏下拉 */
.dropdown-menu-nested>li>ul {
  padding: 3px 0
}

.dropdown-menu-nested>li>ul>li {
  list-style-type: disc;
  margin-left: 40px;
  color: var(--text-3)
}

.dropdown-menu-nested>li>ul>li>a {
  display: block;
  color: var(--text-3);
  padding: 2px 0
}

.dropdown-menu-nested>li>ul>li.active>a {
  color: var(--brand)
}

.dropdown-menu-nested>li>a {
  padding: 5px 20px
}

.dropdown-menu-nested>li.active>a {
  background: var(--surface-2);
  color: var(--brand)
}

.body .dropdown-menu-nested>li.active>a {
  color: var(--brand) !important;
  background: var(--surface-2) !important;
}

.body a:hover,
.body a:focus {
  color: var(--brand)
}

/* focus */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.btn:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.25);
}

.form-control:focus:not(:focus-visible) {
  box-shadow: none !important
}

.form-control:focus-visible {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.12) !important;
}

@media (max-width: 760px) {
  .container {
    padding: 0 18px
  }

  .page-section {
    padding: 64px 0
  }

  .body .page-wrapper {
    padding: 55px 0 20px !important
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 18px
  }
}