/* ==========================================================================
   阿讯云科技 · 企业官网 V2（高级配色版）
   --------------------------------------------------------------------------
   设计基调：深色沉浸首屏 + 白底内容区 + 精炼靛蓝强调
   主色：石墨深蓝（#070B14 系）  强调：精炼靛蓝（#3563FF 系）  中性：冷灰
   原则：无花哨动画，用层次阴影 / 细腻渐变 / 字重对比 / 留白营造高级感
   注意：字重只用 400/500/600/700 标准档，避免 Windows 合成加粗导致发虚
   ========================================================================== */

:root {
  /* 深蓝（蓝灰调的深色，用于首屏 / 页脚 / CTA，比近黑更柔和、不刺眼） */
  --ink-950: #0c1426;
  --ink-900: #111a2e;
  --ink-800: #1a2745;
  --ink-700: #22304f;
  --ink-600: #2b3a5c;
  --ink-500: #38496e;

  /* 精炼靛蓝（全站唯一强调色，克制使用，饱和度调低避免跳脱） */
  --brand-700: #2f4ad0;
  --brand-600: #3b5bdb;
  --brand-500: #5873e6;
  --brand-400: #8296ef;
  --brand-300: #a9b8f5;
  --brand-100: #e6eafc;
  --brand-50: #f1f4fe;

  /* 中性冷灰 */
  --gray-50: #f6f8fb;
  --gray-100: #eef1f6;
  --gray-200: #e5e9f0;
  --gray-300: #d3d9e3;
  --gray-400: #a6b0c0;

  /* 文字 */
  --text-900: #101827;
  --text-700: #39445a;
  --text-500: #5c687e;
  --text-400: #8593aa;
  --white: #ffffff;

  /* 功能色 */
  --green: #177a52;
  --green-bg: #e7f6ef;
  --red: #b3261e;
  --red-bg: #fdecea;

  /* 圆角 */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* 阴影 */
  --shadow-xs: 0 1px 2px rgba(10, 16, 34, 0.06);
  --shadow-sm: 0 1px 3px rgba(10, 16, 34, 0.06), 0 1px 2px rgba(10, 16, 34, 0.04);
  --shadow-md: 0 16px 40px -20px rgba(10, 16, 34, 0.22), 0 4px 12px -4px rgba(10, 16, 34, 0.06);
  --shadow-lg: 0 30px 70px -30px rgba(10, 16, 34, 0.30), 0 10px 24px -12px rgba(10, 16, 34, 0.12);

  --max-width: 1200px;
  --header-h: 72px;

  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC",
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--text-900);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--brand-600); }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--brand-600); color: #fff; }

/* ---------- 版式 ---------- */
.wrap { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--gray { background: var(--gray-50); border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }

.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--brand-600);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--brand-600); border-radius: 2px; }
.sec-head--center .eyebrow::before { display: none; }
.sec-head h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.sec-head p { color: var(--text-500); font-size: 15.5px; line-height: 1.8; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 案例数量较少时自动铺满整行，避免右侧留空列 */
#homeCases.grid { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.muted { color: var(--text-500); }
.small { font-size: 13px; }

/* 标签 */
.chip {
  display: inline-flex; align-items: center; padding: 4px 11px;
  border-radius: 999px; background: var(--gray-100); border: 1px solid var(--gray-200);
  color: var(--text-500); font-size: 12px; line-height: 1.6; white-space: nowrap;
}
.chip--blue { background: var(--brand-50); border-color: #dde3ff; color: var(--brand-600); }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border: 1px solid transparent; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn--primary { background: var(--brand-700); color: #fff; }
.btn--primary:hover {
  background: #2a41b6; color: #fff; transform: translateY(-1px);
  box-shadow: 0 10px 22px -12px rgba(47, 74, 208, 0.38);
}
.btn--ghost { background: #fff; border-color: var(--gray-300); color: var(--text-900); }
.btn--ghost:hover { border-color: var(--brand-400); color: var(--brand-600); }
.btn--ondark { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); color: #fff; }
.btn--ondark:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.36); color: #fff; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 13.5px; border-radius: 9px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-600); font-size: 14px; font-weight: 600; }
.link-arrow:hover { color: var(--brand-700); }

/* ---------- 顶部导航（深色，与首屏融为一体） ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 23, 40, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav { display: flex; align-items: center; gap: 34px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__logo { width: 40px; height: 40px; border-radius: 9px; background: #fff; object-fit: contain; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 16px; font-weight: 600; color: #fff; letter-spacing: 0.02em; }
.brand__sub { font-size: 9.5px; font-weight: 500; color: rgba(255,255,255,0.45); letter-spacing: 0.2em; text-transform: uppercase; margin-top: 3px; }
.nav__menu { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__link { position: relative; padding: 8px 15px; border-radius: 8px; color: rgba(255,255,255,0.72); font-size: 14.5px; font-weight: 500; }
.nav__link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav__link.is-active { color: #fff; font-weight: 600; }
.nav__link.is-active::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--brand-400); }
.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav__toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.2); border-radius: 9px; background: transparent; }
.nav__toggle span { display: block; width: 17px; height: 1.5px; background: #fff; position: relative; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: #fff; }
.nav__toggle span::before { top: -5px; }
.nav__toggle span::after { top: 5px; }
.nav__drawer { display: none; border-top: 1px solid rgba(255,255,255,0.08); background: var(--ink-900); padding: 10px 24px 22px; }
.nav__drawer.is-open { display: block; }
.nav__drawer a { display: block; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); font-size: 15px; }
.nav__drawer .btn { margin-top: 14px; }

/* ---------- 首屏 Hero（深色沉浸） ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 82% -10%, rgba(59, 91, 219, 0.10), transparent 60%),
    radial-gradient(600px 400px at -8% 110%, rgba(59, 91, 219, 0.06), transparent 55%),
    linear-gradient(180deg, var(--ink-900) 0%, var(--ink-800) 100%);
}
.hero__inner { display: block; padding: 88px 0 96px; }
.hero__copy { max-width: 880px; margin: 0 auto; text-align: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 10px;
  border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.78); font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em;
}
.hero__badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-400); }
.hero h1 { margin: 26px 0 22px; font-size: 56px; line-height: 1.2; letter-spacing: 0.005em; font-weight: 700; color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #93a7f0, #b7c4f7); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__lead { max-width: 580px; margin: 0 auto; color: rgba(255,255,255,0.62); font-size: 17px; line-height: 1.85; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }
.hero__cta .btn { height: 50px; padding: 0 28px; font-size: 15px; }

/* 首屏数据带（居中权威数字背书） */
.hero__stats {
  display: flex; justify-content: center; max-width: 780px;
  margin: 54px auto 0; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.10);
}
.hero__stat { flex: 1; text-align: center; padding: 0 22px; }
.hero__stat + .hero__stat { border-left: 1px solid rgba(255,255,255,0.10); }
.hero__stat b { display: block; color: #fff; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero__stat span { color: rgba(255,255,255,0.5); font-size: 12.5px; letter-spacing: 0.01em; }

/* ---------- 四大核心板块（2×2 大卡片） ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pillar { display: flex; gap: 20px; align-items: flex-start; padding: 34px 30px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.pillar:hover { transform: translateY(-3px); border-color: var(--brand-300); box-shadow: var(--shadow-md); }
.pillar__icon { flex-shrink: 0; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100); transition: background-color 0.2s ease, color 0.2s ease; }
.pillar:hover .pillar__icon { background: var(--brand-600); color: #fff; }
.pillar__icon svg { width: 26px; height: 26px; }
.pillar__body { display: flex; flex-direction: column; gap: 6px; }
.pillar__no { font-size: 12px; font-weight: 700; color: var(--brand-600); letter-spacing: 0.1em; }
.pillar h3 { font-size: 18px; font-weight: 700; }
.pillar p { color: var(--text-500); font-size: 13.5px; line-height: 1.75; }

/* ---------- 核心服务（图标 + 标题 + 一句说明） ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-item { display: flex; flex-direction: column; gap: 12px; padding: 30px 24px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.service-item:hover { transform: translateY(-3px); border-color: var(--brand-300); box-shadow: var(--shadow-md); }
.service-item__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--brand-50); color: var(--brand-600); transition: background-color 0.2s ease, color 0.2s ease; }
.service-item:hover .service-item__icon { background: var(--brand-600); color: #fff; }
.service-item__icon svg { width: 23px; height: 23px; }
.service-item__name { font-size: 16px; font-weight: 700; color: var(--text-900); }
.service-item__desc { color: var(--text-500); font-size: 13.5px; line-height: 1.7; }
.industry-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--gray-200); }
.industry-strip__label { font-size: 13px; font-weight: 600; color: var(--text-400); margin-right: 6px; }
.industry-strip__items { display: flex; flex-wrap: wrap; gap: 8px; }
.industry-strip__items span { padding: 5px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--gray-200); color: var(--text-700); font-size: 13px; white-space: nowrap; }

/* ---------- 流程 ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.step { position: relative; padding: 22px 0 0; border-top: 2px solid var(--gray-200); }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: -13px; left: 0; padding-right: 9px; background: #fff; color: var(--brand-600); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.section--gray .step::before { background: var(--gray-50); }
.step h4 { margin-bottom: 9px; font-size: 15.5px; color: var(--text-900); font-weight: 700; }
.step p { color: var(--text-500); font-size: 13.5px; line-height: 1.75; }

/* ---------- 案例卡片 ---------- */
.case-card { display: flex; flex-direction: column; height: 100%; padding: 26px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.case-card:hover { transform: translateY(-3px); border-color: var(--brand-300); box-shadow: var(--shadow-md); }
.case-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.case-card__logo { width: auto; min-width: 48px; max-width: 128px; height: 48px; border-radius: 10px; object-fit: contain; padding: 7px; flex-shrink: 0; background: var(--gray-50); border: 1px solid var(--gray-200); }
.case-card__logo--init { width: 48px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: #fff; background: var(--ink-700); border: none; }
.case-card__tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.case-card__tags .chip { flex-shrink: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 9px; }
.case-card__summary { color: var(--text-500); font-size: 13.5px; line-height: 1.75; margin-bottom: 18px; }
.case-card__results { margin-top: 4px; padding-top: 17px; border-top: 1px dashed var(--gray-200); }
.case-card__results li { position: relative; padding-left: 19px; color: var(--text-700); font-size: 13px; line-height: 1.9; }
.case-card__results li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--brand-400); }
.case-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 17px; color: var(--text-400); font-size: 12px; }
.case-card__meta > span { flex-shrink: 0; white-space: nowrap; }

/* ---------- 品牌墙 ---------- */
.brand-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; align-items: center; }
.brand-wall__item { display: grid; place-items: center; height: 58px; padding: 10px 14px; background: #fff; border: 1px solid var(--gray-200); border-radius: 10px; }
.brand-wall__item img { max-width: 100%; max-height: 34px; width: auto; height: auto; object-fit: contain; transition: opacity 0.2s ease; }
.brand-wall__item:hover img { opacity: 0.86; }
.brand-wall__item--text { font-size: 15px; font-weight: 700; color: var(--text-400); letter-spacing: 0.01em; white-space: nowrap; transition: color 0.2s ease, border-color 0.2s ease; }
.brand-wall__item--text:hover { color: var(--brand-600); border-color: var(--brand-300); }
.brand-wall__note { margin-top: 18px; color: var(--text-400); font-size: 12.5px; text-align: center; }

/* ---------- CTA ---------- */
.cta-band {
  display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: center;
  padding: 48px 52px; border-radius: var(--radius-lg);
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(59, 91, 219, 0.12), transparent 60%),
    linear-gradient(180deg, var(--ink-700), var(--ink-900));
  color: rgba(255,255,255,0.78); position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 9px; }
.cta-band p { font-size: 14px; color: rgba(255,255,255,0.68); }
.cta-band__contact { margin-top: 12px; }
.cta-band__contact b { color: #fff; font-weight: 700; letter-spacing: 0.02em; }
.cta-band .btn-row { position: relative; z-index: 1; }

/* ---------- 页脚 ---------- */
.site-footer { padding: 64px 0 28px; background: linear-gradient(180deg, var(--ink-900), var(--ink-950)); color: rgba(255,255,255,0.6); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 44px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__sub { color: rgba(255,255,255,0.4); }
.footer-about { margin-top: 18px; max-width: 300px; font-size: 13px; line-height: 1.9; color: rgba(255,255,255,0.52); }
.footer-col h4 { margin-bottom: 16px; color: #fff; font-size: 13.5px; font-weight: 600; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.55); font-size: 13.5px; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.55); }
.footer-contact b { color: rgba(255,255,255,0.85); font-weight: 600; flex-shrink: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; color: rgba(255,255,255,0.4); font-size: 12.5px; }
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* 空态 / 骨架 */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 60px 20px; color: var(--text-400); font-size: 14px; text-align: center; }
.skeleton { height: 260px; border-radius: var(--radius); background: linear-gradient(100deg, var(--gray-100) 40%, var(--gray-50) 50%, var(--gray-100) 60%); background-size: 200% 100%; animation: sk 1.4s ease infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .hero__inner { padding: 72px 0 80px; }
  .hero h1 { font-size: 44px; }
  .hero__stats { flex-wrap: wrap; gap: 20px 0; }
  .hero__stat { flex: 1 1 40%; }
  .hero__stat:nth-child(2n) { border-left: 1px solid rgba(255,255,255,0.10); }
  .hero__stat:nth-child(3), .hero__stat:nth-child(4) { border-left: none; }
  .pillar-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav__menu { display: none; }
  .nav__actions .btn--sm { display: none; }
  .nav__toggle { display: flex; }
  .section { padding: 64px 0; }
  .hero h1 { font-size: 34px; }
  .hero__lead { font-size: 15.5px; }
  .hero__stat b { font-size: 26px; }
  .pillar-grid, .service-grid, .steps, .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .sec-head h2 { font-size: 26px; }
}
