/* ==========================================================================
   成都有乾人工智能科技有限公司 — 官网样式
   目录：1.变量  2.基础  3.布局  4.组件  5.页头页脚  6.区块  7.响应式
   ========================================================================== */

/* 1. 变量 ---------------------------------------------------------------- */
:root {
  --ink: #0a1428;
  --ink-2: #1e2a44;
  --muted: #5a6883;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --primary: #1650e5;
  --primary-dark: #0f3bb0;
  --primary-soft: #eaf0ff;
  --accent: #00c9a7;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(10, 20, 40, 0.06);
  --shadow: 0 10px 30px -12px rgba(10, 20, 40, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(10, 20, 40, 0.28);

  --wrap: 1180px;
  --header-h: 72px;

  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* 2. 基础 ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.175rem; }

p { margin: 0; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover { color: var(--primary-dark); }

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

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

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* 3. 布局 ---------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(48px, 5vw, 72px); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* 区块标题 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head h2 { margin: 14px 0 16px; }
.section-head p { color: var(--muted); font-size: 1.0625rem; }

/* 4. 组件 ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(22, 80, 229, 0.7);
}
.btn--primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 14px 28px -10px rgba(22, 80, 229, 0.8); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.btn--on-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
}
.btn--on-dark:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.6); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* 卡片 */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 80, 229, 0.35);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.9375rem; }

.card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
}
.card__icon svg { width: 22px; height: 22px; }

.card__list {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 9px;
}
.card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.875rem;
  color: var(--muted);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* 占位符 — 待填写的真实信息 */
.todo {
  background: #fff5d6;
  border-bottom: 2px dotted #d99b00;
  color: #7a5400;
  padding: 0 4px;
  border-radius: 3px;
  font-style: normal;
}

/* 5. 页头 ---------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -12px rgba(10, 20, 40, 0.3);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__cn { font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.02em; }
.brand__en { font-size: 0.625rem; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
}
.nav a:hover { color: var(--primary); background: var(--primary-soft); }
.nav a[aria-current="page"] { color: var(--primary); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.header__cta { display: flex; align-items: center; gap: 12px; }
.header__cta .btn { padding: 10px 20px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 6. 页脚 ---------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.68);
  padding-top: 72px;
  font-size: 0.9375rem;
}
.footer h4 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}
.footer a { color: rgba(255, 255, 255, 0.68); }
.footer a:hover { color: #fff; }

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer__brand .brand { color: #fff; margin-bottom: 18px; }
.footer__brand .brand:hover { color: #fff; }
.footer__brand .brand__en { color: rgba(255, 255, 255, 0.5); }
.footer__desc { max-width: 300px; font-size: 0.875rem; line-height: 1.85; }

.footer__links { display: grid; gap: 11px; font-size: 0.875rem; }

.footer__contact { display: grid; gap: 14px; font-size: 0.875rem; }
/* 只作用于外层「图标 + 文字」的行，内层文字容器需保持块级堆叠 */
.footer__contact > div { display: flex; gap: 11px; align-items: flex-start; }
.footer__contact svg { width: 16px; height: 16px; flex: none; margin-top: 5px; color: var(--accent); }
.footer__contact strong { display: block; color: #fff; font-weight: 600; }

/* 页脚二维码 */
.footer__qr { display: flex; gap: 14px; align-items: flex-start; }
/* 尺寸不要再调小 —— 低于约 110px 二维码会扫不出来 */
.footer__qr img {
  width: 112px;
  height: 112px;
  flex: none;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
}
.footer__qr div { font-size: 0.8125rem; line-height: 1.7; }
.footer__qr strong { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }

/* 联系页二维码卡片 */
.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 34px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.qr-card__img {
  width: 208px;
  height: 208px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.qr-card h3 { font-size: 1.125rem; }
.qr-card p { font-size: 0.9375rem; color: var(--muted); }
.qr-card__hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
}
.qr-card__hint svg { width: 15px; height: 15px; flex: none; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer__beian { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.footer__beian a { color: rgba(255, 255, 255, 0.5); }
.footer__beian a:hover { color: #fff; }
.footer__beian img { display: inline-block; height: 15px; vertical-align: -2px; margin-right: 5px; }

/* 7. 区块 ---------------------------------------------------------------- */

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #071026 0%, #0d2352 52%, #143a86 100%);
  color: #fff;
  padding: clamp(80px, 11vw, 140px) 0 clamp(72px, 9vw, 116px);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 620px; height: 620px;
  top: -280px; right: -140px;
  background: radial-gradient(circle, rgba(22, 80, 229, 0.55), transparent 68%);
  filter: blur(10px);
}
.hero::after {
  width: 480px; height: 480px;
  bottom: -240px; left: -120px;
  background: radial-gradient(circle, rgba(0, 201, 167, 0.3), transparent 70%);
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 15em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, #6ea8ff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  max-width: 40em;
  margin: 24px 0 36px;
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.78);
}
.hero .eyebrow {
  color: var(--accent);
  padding: 6px 16px 6px 14px;
  border: 1px solid rgba(0, 201, 167, 0.35);
  border-radius: 999px;
  background: rgba(0, 201, 167, 0.08);
}
.hero .eyebrow::before { width: 6px; height: 6px; border-radius: 50%; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero__stats div strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero__stats div span { font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); }

/* 页面小标题头（内页） */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #071026, #123067);
  color: #fff;
  padding: clamp(60px, 7vw, 92px) 0;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.page-hero p {
  max-width: 46em;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.0625rem;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.5); }
.breadcrumb a:hover { color: #fff; }

/* 双服务主线 */
.pillar {
  position: relative;
  overflow: hidden;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.pillar__no {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--primary);
}
.pillar h3 { margin: 10px 0 12px; font-size: 1.4375rem; }
.pillar > p { color: var(--muted); }

/* 流程 */
.steps { counter-reset: step; display: grid; gap: 24px; }
.step {
  position: relative;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.28;
  letter-spacing: -0.02em;
}
.step h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.step p { font-size: 0.875rem; color: var(--muted); }

/* 特性列表（左文右卡） */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split__body h2 { margin-bottom: 18px; }
.split__body > p { color: var(--muted); font-size: 1.0625rem; }

.feature-list { display: grid; gap: 22px; margin-top: 30px; }
.feature-list li { display: flex; gap: 15px; }
.feature-list svg {
  width: 21px; height: 21px;
  flex: none;
  margin-top: 4px;
  color: var(--accent);
}
.feature-list strong { display: block; color: var(--ink); font-weight: 600; }
.feature-list span { font-size: 0.9375rem; color: var(--muted); }

/* CTA 条 */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 6vw, 76px) clamp(28px, 5vw, 68px);
  border-radius: 22px;
  background: linear-gradient(125deg, #0d2352, #1650e5 130%);
  color: #fff;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  top: -220px; right: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 201, 167, 0.4), transparent 68%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p {
  max-width: 38em;
  margin: 16px auto 32px;
  color: rgba(255, 255, 255, 0.78);
}
.cta .btn-row { justify-content: center; }

/* 联系页 */
.contact-card {
  display: flex;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.contact-card__icon {
  width: 44px; height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
}
.contact-card__icon svg { width: 21px; height: 21px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-card p { font-size: 0.9375rem; color: var(--muted); }
.contact-card .big {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.map-holder {
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: 40px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  text-align: center;
  color: var(--muted);
}
.map-holder svg { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--primary); opacity: 0.5; }

/* 表单 */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.field label .req { color: #e5484d; margin-left: 3px; }
.field input,
.field select,
.field textarea {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 80, 229, 0.13);
}
.field textarea { resize: vertical; min-height: 128px; }
.form__note { font-size: 0.8125rem; color: var(--muted); }

/* 关于页 — 数值/价值观 */
.value-item { padding: 26px 0; border-top: 1px solid var(--line); }
.value-item h3 { margin-bottom: 8px; }
.value-item p { color: var(--muted); font-size: 0.9375rem; }

/* 滚动入场动画 */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* 8. 响应式 -------------------------------------------------------------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .header__cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px 24px 26px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 13px 12px; font-size: 1rem; }
  .nav a[aria-current="page"]::after { display: none; }
}

@media (max-width: 680px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__stats { gap: 28px 36px; margin-top: 44px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .card, .pillar { padding: 26px 22px; }
}
