/* =============================================================
   数智能量（海南）科技有限公司 — 企业官网样式
   纯静态 / 无框架 / 易维护
   设计参考：天翼云 ctyun 风格 —— 浅色科技、蓝→青渐变、白卡软阴影
   修改提示：颜色集中在 :root 变量，间距/字体同理
============================================================= */

/* ---------- 1. 设计变量（改这里就能换整体风格） ---------- */
:root {
  /* 背景（浅色科技风） */
  --bg-0: #eef2f9;          /* 页面底色（浅蓝灰） */
  --bg-1: rgba(255,255,255,.55);   /* 区块交替底色（半透明白，透出背景光晕） */
  --bg-2: #ffffff;          /* 卡片底色（玻璃态下不单独使用） */
  --bg-3: #f1f6ff;          /* 卡片悬浮 */

  /* 玻璃质感（Glassmorphism）—— 色调不变，仅叠加半透明 + 模糊 + 高光 */
  --glass-bg: rgba(255,255,255,.55);
  --glass-bg-strong: rgba(255,255,255,.72);
  --glass-border: rgba(255,255,255,.65);
  --glass-blur: 18px;
  --glass-shadow: 0 8px 32px rgba(13,27,52,.10);
  --glass-inset: inset 0 1px 0 rgba(255,255,255,.70);

  /* 文字（深海军蓝） */
  --text: #0d1b34;          /* 主文字 */
  --text-dim: #46597a;      /* 次级文字 */
  --text-mute: #8593a8;     /* 弱化文字 */

  /* 品牌色（天翼云式蓝） */
  --c-blue: #1664ff;        /* 主蓝 */
  --c-blue-deep: #0a3aa8;   /* 深蓝 */
  --c-cyan: #18c0e6;        /* 青色点缀 */
  --grad: linear-gradient(120deg, #0a3aa8 0%, #1664ff 55%, #18c0e6 100%);
  --grad-soft: linear-gradient(120deg, rgba(22,100,255,.10), rgba(24,192,230,.10));
  --hero-grad: linear-gradient(135deg, #0a2e6e 0%, #1158d6 50%, #1799d6 100%);

  /* 描边 / 分割 */
  --line: rgba(13,27,52,.08);
  --line-strong: rgba(13,27,52,.14);

  /* 阴影 / 光晕（柔和） */
  --glow: 0 10px 30px rgba(22,100,255,.25);
  --shadow: 0 12px 34px rgba(13,27,52,.10);

  /* 尺寸 */
  --maxw: 1200px;
  --radius: 18px;
  --nav-h: 72px;

  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(54% 50% at 80% 12%, rgba(22,100,255,.12), transparent 60%),
    radial-gradient(48% 46% at 8% 30%, rgba(24,192,230,.10), transparent 60%),
    radial-gradient(60% 55% at 50% 100%, rgba(120,90,255,.08), transparent 62%),
    var(--bg-0);
}

/* 全局极淡科技网格（浅蓝，几乎不可见） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(22,100,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,100,255,.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- 3. 通用容器 / 排版 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { position: relative; z-index: 1; scroll-margin-top: var(--nav-h); }

.section-pad { padding: 110px 0; }
/* 板块之间的科技感渐变分割线（同品牌蓝/青色调，两端淡出） */
.section-pad::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(100% - 48px, calc(var(--maxw) - 48px));
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(22,100,255,.28) 22%,
    rgba(24,192,230,.45) 50%,
    rgba(22,100,255,.28) 78%,
    transparent 100%);
  box-shadow: 0 0 14px rgba(22,100,255,.20);
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(22,100,255,.22);
  border-radius: 999px;
  background: rgba(22,100,255,.07);
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 18px;
  color: var(--text);
}
.section-title .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section-sub { color: var(--text-dim); font-size: 17px; max-width: 760px; }
.section-head { margin-bottom: 56px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 15px; font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(22,100,255,.30); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(22,100,255,.42); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgba(255,255,255,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--c-blue); color: var(--c-blue); transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 14px; }

/* ---------- 5. 导航栏 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center;
  z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
/* 顶部（覆盖在浅色 Hero 背景图上）：深色字 */
.nav .logo { color: var(--text); }
.nav .logo small { color: var(--text-mute); }
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--text); background: rgba(13,27,52,.05); }
/* 滚动后：白底 + 深色字 */
.nav.scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav.scrolled .logo { color: var(--text); }
.nav.scrolled .logo small { color: var(--text-mute); }
.nav.scrolled .nav-links a { color: var(--text-dim); }
.nav.scrolled .nav-links a:hover { color: var(--text); background: rgba(13,27,52,.05); }
.nav.scrolled .btn-ghost { border-color: var(--line-strong); color: var(--text); }
.nav.scrolled .btn-ghost:hover { border-color: var(--c-blue); color: var(--c-blue); }

.nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: var(--glow);
  flex: none;
}
.logo .mark svg { width: 20px; height: 20px; }
.logo .mark.mark-img { background: transparent; box-shadow: none; border: none; }
.logo .mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .12em; }

.nav-menu { display: flex; align-items: center; justify-content: space-between; flex: 1; margin-left: 36px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 14px; border-radius: 9px; font-size: 15px;
  transition: color .2s ease, background .2s ease;
}
/* 汉堡 */
.hamburger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); align-items: center; justify-content: center; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text); position: relative; transition: .3s; }
.hamburger span::before, .hamburger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--text); transition: .3s; }
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }
.hamburger.active span { background: transparent; }
.hamburger.active span::before { top: 0; transform: rotate(45deg); }
.hamburger.active span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 6. 第一屏 Hero（浅色背景图 + 左侧文字） ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--bg-0);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 78% center; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 42%, rgba(255,255,255,.45) 65%, transparent 85%),
    linear-gradient(180deg, transparent 55%, var(--bg-0) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 920px; }
.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.12; font-weight: 850; letter-spacing: -.02em;
  margin: 22px 0 26px; color: var(--text);
}
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero-lead { font-size: clamp(16px, 2vw, 20px); color: var(--text-dim); max-width: 720px; margin-bottom: 38px; }
/* ---------- 7. 卡片通用 ---------- */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--glass-shadow), var(--glass-inset);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(22,100,255,.5); box-shadow: 0 16px 44px rgba(22,100,255,.16), var(--glass-inset); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card h3 { font-size: 21px; margin-bottom: 10px; color: var(--text); }
.card p { color: var(--text-dim); font-size: 15px; }

/* ---------- 10b. 第三屏 业务架构图 ---------- */
.business-arch { margin: 28px auto 0; max-width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--glass-border); background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); box-shadow: var(--glass-shadow), var(--glass-inset); }
.business-arch img { display: block; width: 100%; height: auto; }

/* ---------- 11. 第五屏 企业AI智能体落地六步法（图片） ---------- */
.process-arch { margin: 0 auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--glass-border); background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); box-shadow: var(--glass-shadow), var(--glass-inset); }
.process-arch img { display: block; width: 100%; height: auto; }

/* ---------- 16b. 案例（真实落地项目） ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { overflow: hidden; padding: 0; }
.case-card .case-img { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-3); }
.case-card .case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.case-card:hover .case-img img { transform: scale(1.06); }
.case-card .case-img.full { aspect-ratio: auto; background: #0a0a0f; }
.case-card .case-img.full img { height: auto; object-fit: contain; }
.case-card .case-img.before-after { display: flex; flex-direction: column; aspect-ratio: auto; }
.case-card .case-img.before-after figure { position: relative; margin: 0; width: 100%; }
.case-card .case-img.before-after figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-card .case-img.before-after figure + figure { border-top: 1px solid var(--bg-1); }
.case-body { padding: 22px 24px 26px; background: rgba(255,255,255,.72); }
.case-card h3 { font-size: 19px; line-height: 1.45; margin-bottom: 12px; color: var(--text); }
.case-card p { font-size: 15px; color: var(--text-dim); line-height: 1.85; }

/* ---------- 17. 第十一屏 关于 ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 52px;
  max-width: 1200px;
  margin: 0 auto;
}
.about h2 { font-size: clamp(30px,4vw,46px); font-weight: 850; margin-bottom: 10px; color: var(--text); }
.about h2 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about .tagline { color: var(--c-blue); font-weight: 600; margin-bottom: 22px; }
.about p.body { color: var(--text-dim); font-size: 16px; margin-bottom: 16px; }
.about-poster {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-shadow), var(--glass-inset);
}
.about-poster img { display: block; width: 100%; height: auto; }

/* ---------- 19. 页脚（浅色，ctyun 风格） ---------- */
.footer { background: #f4f7fc; border-top: 1px solid var(--line); padding: 64px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
.footer .f-desc { color: var(--text-dim); font-size: 14px; max-width: 320px; }
.footer .f-desc.company-name { color: var(--text); font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.footer h4 { font-size: 14px; letter-spacing: .08em; color: var(--text-mute); text-transform: uppercase; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a, .footer ul li { color: var(--text-dim); font-size: 14px; transition: color .2s; }
.footer ul li a:hover { color: var(--c-blue); }
.footer .contact-line { color: var(--text-dim); font-size: 14px; margin-bottom: 8px; }
.footer .contact-line b { color: var(--text); font-weight: 600; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--text-mute); font-size: 13px; }
.footer-bottom a { color: var(--text-mute); transition: color .2s ease; }
.footer-bottom a:hover { color: var(--c-blue); }
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer-tags span { font-size: 12px; color: var(--text-mute); padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; }

/* ---------- 21. 滚动渐入 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- 22. 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .about-wrap { grid-template-columns: 1fr; gap: 38px; }
  .about-poster { max-width: 720px; margin: 0 auto; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section-pad { padding: 76px 0; }
  .hamburger { display: flex; }

  /* 移动端展开菜单：白底 + 深色字 */
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,255,255,.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; margin-left: 0;
    padding: 12px 18px 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-menu .nav-links a { padding: 14px 12px; border-radius: 10px; font-size: 16px; color: var(--text-dim); }
  .nav-menu .nav-links a:hover { color: var(--text); background: rgba(13,27,52,.05); }
  .grid-3, .grid-2, .grid-4, .cases-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
}

/* 尊重减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
