/* ==========================================================================
   智速力官网 · 基础样式
   令牌与公共组件。改颜色/字号只动 :root，不要在下面各处写死色值。
   ========================================================================== */

:root {
  /* 色板 —— 取自设计稿 */
  --c-bg: #ffffff;
  --c-soft: #f7f8fa;
  --c-card: #ffffff;
  --c-ink: #12141a;
  --c-body: #4a5160;
  --c-muted: #8a9099;
  --c-muted2: #6b7280;
  --c-hint: #a6acb6;
  --c-line: #e3e6eb;
  --c-line2: #d4d9e0;
  --c-red: #e50000;
  --c-violet: #27007f;

  --c-foot-bg: #0e1116;
  --c-foot-line: #1e232b;
  --c-foot-text: #7c8492;
  --c-foot-hi: #e6e9ee;

  /* 字体 —— 不引外部 CDN，回落到系统字体 */
  --f-cn: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Microsoft YaHei", "微软雅黑", sans-serif;
  --f-num: "Barlow", "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", "SF Mono", "Consolas", "Menlo", "Courier New", monospace;

  /* 布局 */
  --w-max: 1440px;
  --pad-x: 120px;
  --w-content: 1200px;

  --radius: 4px;
  --radius-lg: 6px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-body);
  font-family: var(--f-cn);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

::selection {
  background: rgba(229, 0, 0, 0.12);
}

/* ---------- 布局 ---------- */
.wrap {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: 96px var(--pad-x);
}

.section--soft {
  background: var(--c-soft);
}

.section--tight {
  padding-top: 52px;
  padding-bottom: 64px;
}

.section__inner {
  max-width: var(--w-max);
  margin: 0 auto;
}

.hr {
  height: 1px;
  background: var(--c-line);
  border: 0;
  margin: 0;
}

/* ---------- 排版 ---------- */
.eyebrow {
  font-family: var(--f-num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-violet);
}

.eyebrow--mono {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--c-muted);
}

.h1 {
  font-size: 54px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}

.h2 {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.005em;
}

.h3 {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--c-ink);
}

.h4 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--c-ink);
}

.lead {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-body);
}

.text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-body);
}

.small {
  font-size: 12px;
  line-height: 1.65;
  color: var(--c-body);
}

.tiny {
  font-size: 11px;
  line-height: 1.6;
  color: var(--c-muted);
}

.num {
  font-family: var(--f-num);
  font-feature-settings: "tnum" 1;
}

.mono {
  font-family: var(--f-mono);
}

.c-red { color: var(--c-red); }
.c-violet { color: var(--c-violet); }
.c-muted { color: var(--c-muted); }
.c-ink { color: var(--c-ink); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 26px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn--primary {
  background: var(--c-red);
  color: #fff;
}

.btn--primary:hover {
  background: #c40000;
}

.btn--ghost {
  background: #fff;
  color: var(--c-ink);
  border: 1px solid var(--c-line);
}

.btn--ghost:hover {
  border-color: var(--c-ink);
}

.btn--sm {
  height: 40px;
  padding: 0 20px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

/* 文字链 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-violet);
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}

.link-arrow:hover {
  gap: 10px;
}

.link-arrow--red {
  color: var(--c-red);
}

/* ---------- 区段标题 ---------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.sec-head__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sec-head__group .eyebrow {
  margin-bottom: 0;
}

.sec-head__note {
  font-size: 12px;
  color: var(--c-muted);
  padding-bottom: 4px;
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
}

.nav__inner {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.nav__logo img {
  width: 130px;
  height: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav__link {
  position: relative;
  font-size: 14px;
  color: var(--c-body);
  padding: 6px 0;
  transition: color 0.18s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}

.nav__link:hover {
  color: var(--c-ink);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__link.is-active {
  color: var(--c-ink);
  font-weight: 500;
}

.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 0 0 auto;
}

.nav__tel {
  font-family: var(--f-num);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: 0.01em;
}

.nav__tel:hover {
  color: var(--c-red);
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.nav__toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--c-ink);
  transition: transform 0.2s var(--ease);
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--c-ink);
  transition: transform 0.2s var(--ease);
}

.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* 移动端抽屉 */
.nav__drawer {
  display: none;
  border-top: 1px solid var(--c-line);
  background: #fff;
  padding: 8px var(--pad-x) 20px;
}

.nav.is-open .nav__drawer {
  display: block;
}

.nav__drawer a {
  display: block;
  padding: 13px 0;
  font-size: 15px;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}

.nav__drawer a:last-child {
  border-bottom: 0;
}

.nav__drawer .btn {
  margin-top: 14px;
}

/* ---------- 页头 ---------- */
.page-head {
  padding: 56px var(--pad-x);
  background: #fff;
}

.page-head__inner {
  max-width: var(--w-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-head h1 {
  font-size: 40px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}

.page-head p {
  max-width: 820px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-body);
}

/* ---------- 面包屑 ---------- */
.crumb {
  padding: 0 var(--pad-x);
  background: #fff;
}

.crumb__inner {
  max-width: var(--w-max);
  margin: 0 auto;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--c-muted);
}

.crumb a:hover {
  color: var(--c-ink);
}

.crumb__sep {
  color: var(--c-line2);
}

.crumb b {
  font-weight: 500;
  color: var(--c-ink);
}

/* ---------- 询盘条 ---------- */
.cta-bar {
  background: #fff;
  padding: 96px var(--pad-x);
}

.cta-bar__inner {
  max-width: var(--w-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.cta-bar__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 620px;
}

.cta-bar__text h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.35;
}

.cta-bar__text p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-body);
}

.cta-bar__act {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 0 0 auto;
}

.cta-bar__tel {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cta-bar__tel span {
  font-size: 11px;
  color: var(--c-muted);
}

.cta-bar__tel strong {
  font-family: var(--f-num);
  font-size: 22px;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: 0.01em;
}

/* ---------- 页脚 ---------- */
.foot {
  background: var(--c-foot-bg);
  padding: 64px var(--pad-x) 36px;
}

.foot__inner {
  max-width: var(--w-max);
  margin: 0 auto;
}

.foot__top {
  display: flex;
  gap: 80px;
  padding-bottom: 44px;
}

.foot__brand {
  width: 330px;
  flex: 0 0 330px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.foot__brand img {
  width: 132px;
  height: auto;
}

.foot__desc {
  font-size: 12px;
  line-height: 1.85;
  color: var(--c-foot-text);
  white-space: pre-line;
}

.foot__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.foot__tel {
  font-family: var(--f-num);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-foot-hi);
}

.foot__mail {
  font-family: var(--f-num);
  font-size: 12px;
  color: var(--c-foot-text);
}

.foot__mail:hover,
.foot__tel:hover {
  color: #fff;
}

.foot__cols {
  display: flex;
  gap: 56px;
  flex: 1;
}

.foot__col {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.foot__col h3 {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-foot-hi);
  margin: 0;
}

.foot__col a,
.foot__col span {
  font-size: 12px;
  color: var(--c-foot-text);
  transition: color 0.18s var(--ease);
}

.foot__col a:hover {
  color: var(--c-foot-hi);
}

.foot__rule {
  height: 1px;
  background: var(--c-foot-line);
}

.foot__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
}

.foot__copy {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--c-foot-text);
}

.foot__copy a:hover {
  color: var(--c-foot-hi);
}

.foot__links {
  display: flex;
  gap: 20px;
  font-size: 11px;
}

.foot__links a {
  color: var(--c-foot-text);
}

.foot__links a:hover {
  color: var(--c-foot-hi);
}

.foot__links .en {
  font-family: var(--f-num);
  font-weight: 600;
  color: var(--c-foot-hi);
}

/* ---------- 表单 ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 11px;
  color: var(--c-muted2);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--c-line);
  background: #fff;
  border-radius: var(--radius);
  padding: 0 12px;
  height: 40px;
  font-size: 13px;
  color: var(--c-ink);
  outline: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field textarea {
  height: 86px;
  padding: 12px;
  resize: vertical;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--c-hint);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--c-red);
  box-shadow: 0 0 0 3px rgba(229, 0, 0, 0.08);
}

/* ---------- 通用卡片 ---------- */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
}

.card--soft {
  background: var(--c-soft);
}

/* ---------- 无障碍 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- 页脚静态兜底 ----
   让备案号在 HTML 源码里就能查到（工信部要求页面上可查，
   而页脚原本 100% 由 JS 生成）。site.js 正常时 renderFooter()
   会把这个块整体覆盖掉，访客看不到；JS 挂了它才露出来。 */
.foot-fallback {
  background: var(--c-foot-bg);
  color: var(--c-foot-text);
  padding: 32px 20px;
  font-size: 12px;
  line-height: 2;
  text-align: center;
}

.foot-fallback span { margin-right: 14px; }

.foot-fallback a { color: var(--c-foot-hi); }

.foot-fallback a:hover { text-decoration: underline; }
