/* =====================================================================
   四川云鼎智谷信息科技有限公司 · 官网（纯静态，零依赖）
   视觉语言取自《云鼎智谷1.0》：深蓝科技底 + 亮蓝渐变 + 玻璃拟态卡片
   ===================================================================== */

:root {
  --navy-900: #050d1f;
  --navy-800: #081428;
  --navy-700: #0c1d3d;
  --blue-600: #1a6bff;
  --blue-500: #2b8cff;
  --blue-400: #4da8ff;
  --blue-300: #7ec2ff;
  --cyan: #35e0ff;
  --ink: #0e1b30;
  --ink-2: #33475f;
  --ink-3: #6b7f96;
  --paper: #f4f8fd;
  --white: #fff;
  --line: rgba(11, 61, 138, .12);
  --grad: linear-gradient(100deg, var(--blue-500), var(--cyan));
  --shadow-sm: 0 6px 18px rgba(8, 30, 70, .08);
  --shadow-md: 0 18px 44px rgba(8, 30, 70, .12);
  --shadow-glow: 0 0 34px rgba(43, 140, 255, .35);
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
  /* 整屏吸附翻页：靠近区块边界才吸，松手落在两屏之间则自由停住 */
  scroll-snap-type: y proximity; scroll-padding-top: 70px;
}

.hero, .section { scroll-snap-align: start; scroll-snap-stop: always; }
/* 页脚不是 .section，让末屏对齐文档底部，否则滚到底会被吸回上一区块而看不全备案信息 */
.site-footer { scroll-snap-align: end; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.28; letter-spacing: .01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 通用装饰 ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scroll-progress {
  position: fixed; inset: 0 auto auto 0;
  height: 3px; width: 0; z-index: 99;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(53, 224, 255, .8);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: .04em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  cursor: pointer; border: 0;
}
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 12px 30px rgba(26, 107, 255, .35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(26, 107, 255, .5); }
.btn-ghost {
  color: #eaf3ff; border: 1px solid rgba(190, 222, 255, .45);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--cyan); color: #fff; box-shadow: var(--shadow-glow); transform: translateY(-3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background .35s var(--ease), box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.solid {
  background: rgba(6, 16, 34, .78);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: rgba(126, 194, 255, .18);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .28);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-logo { height: 42px; width: auto; filter: drop-shadow(0 0 10px rgba(53, 224, 255, .35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { color: #fff; font-size: 19px; letter-spacing: .14em; }
.brand-text em {
  font-style: normal; font-size: 11.5px; letter-spacing: .2em;
  color: rgba(158, 203, 250, .78);
}

.site-nav { display: flex; gap: 34px; }
.site-nav a {
  position: relative; color: rgba(226, 240, 255, .82); font-size: 15px; font-weight: 600;
  padding: 6px 0; transition: color .25s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--grad); transition: width .3s var(--ease);
}
.site-nav a:hover, .site-nav a.active { color: #fff; }
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #cfe4ff; border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
  background: var(--navy-900);
  color: #eaf3ff;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../assets/hero.jpg") center 62% / cover no-repeat;
  transform: scale(1.06);
  animation: heroZoom 22s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-mask {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 12% 40%, rgba(5, 13, 31, .92) 0%, rgba(5, 13, 31, .58) 42%, rgba(5, 13, 31, .1) 72%),
    linear-gradient(180deg, rgba(5, 13, 31, .85) 0%, rgba(5, 13, 31, .25) 34%, rgba(5, 13, 31, .9) 100%);
}
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; }

.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; letter-spacing: .34em; color: var(--blue-300); margin-bottom: 26px;
}
.hero-eyebrow .line { width: 46px; height: 2px; background: var(--grad); box-shadow: 0 0 10px var(--cyan); }

.hero-title { font-size: clamp(38px, 6.4vw, 76px); letter-spacing: .02em; margin-bottom: 22px; }
.hero-title span { display: block; }
.hero-title span:first-child { color: #fff; text-shadow: 0 8px 40px rgba(0, 0, 0, .5); }

.hero-sub { font-size: 19px; font-weight: 700; color: #dceaff; letter-spacing: .1em; margin-bottom: 14px; }
.hero-desc { max-width: 620px; font-size: 15.5px; color: rgba(198, 219, 245, .8); margin-bottom: 26px; }

.hero-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-bottom: 34px; font-size: 15px; color: #cfe4ff; }
.hero-tags i { width: 1px; height: 15px; background: rgba(160, 205, 255, .4); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 54px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
  margin: 0; padding-top: 26px;
  border-top: 1px solid rgba(140, 190, 255, .2);
}
.hero-stats div { padding-right: 18px; }
.hero-stats dt {
  font-size: clamp(26px, 3.4vw, 40px); font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.hero-stats dd { margin: 6px 0 0; font-size: 13.5px; color: rgba(178, 206, 240, .72); }

.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3;
  width: 24px; height: 40px; border: 2px solid rgba(190, 222, 255, .5); border-radius: 14px;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--cyan); border-radius: 3px; animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Section 骨架 ---------- */
/* 每个内容区块至少占满一屏，内容不足时垂直居中；内容超过一屏则自然撑开 */
.section {
  padding: 108px 0; position: relative;
  min-height: 100vh; display: flex; align-items: center;
  scroll-margin-top: 70px;
}
/* 移动端地址栏会压缩可视高度，用 svh 避免区块比屏幕略高而出现半屏空隙 */
@supports (min-height: 100svh) {
  .section { min-height: 100svh; }
}
.section-light { background: var(--paper); color: var(--ink); }
.section-light::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(26, 107, 255, .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(26, 107, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(90% 70% at 50% 0%, #000 0%, transparent 78%);
  pointer-events: none;
}
.section-dark {
  background: linear-gradient(170deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-800) 100%);
  color: #e8f2ff;
  overflow: hidden;
}
.section-dark::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 78% 18%, rgba(43, 140, 255, .22), transparent 46%),
                    radial-gradient(circle at 12% 82%, rgba(53, 224, 255, .14), transparent 44%);
  pointer-events: none;
}
.section > .container { position: relative; z-index: 1; }

.section-head { margin-bottom: 56px; }
.section-no {
  font-size: 12.5px; letter-spacing: .3em; color: var(--blue-500);
  font-weight: 700; margin-bottom: 12px; text-transform: uppercase;
}
.section-dark .section-no { color: var(--blue-300); }
.section-title { font-size: clamp(28px, 4.2vw, 44px); }
.section-sub { margin: 14px 0 0; color: var(--ink-3); font-size: 15.5px; }
.section-dark .section-sub { color: rgba(178, 206, 240, .75); }

/* ---------- 01 Profile ---------- */
.profile-grid { display: grid; grid-template-columns: 1.15fr .95fr; gap: 44px; align-items: start; }
.profile-lede p { font-size: 16.5px; color: var(--ink-2); }
.profile-lede b { color: var(--blue-600); }
.value-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.value-chips li {
  padding: 9px 20px; border-radius: 10px; font-weight: 700; font-size: 14.5px;
  color: var(--blue-600); background: rgba(43, 140, 255, .1);
  border: 1px solid rgba(43, 140, 255, .2);
}
.profile-cards { display: grid; gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 13px; letter-spacing: .2em; color: var(--blue-500); margin-bottom: 10px; font-weight: 700; }
.card p { margin: 0; font-size: 16.5px; font-weight: 700; color: var(--ink); line-height: 1.6; }
.card-primary {
  background: linear-gradient(120deg, #1358d6 0%, #2b8cff 100%);
  border-color: transparent; color: #fff; box-shadow: 0 16px 38px rgba(19, 88, 214, .3);
}
.card-primary h3 { color: rgba(226, 242, 255, .82); }
.card-primary p { color: #fff; }

/* ---------- 02 Visual ---------- */
.visual-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 46px; align-items: center; }
.visual-copy h3 { font-size: clamp(22px, 2.6vw, 30px); color: #fff; margin-bottom: 18px; line-height: 1.5; }
.visual-copy p { color: rgba(198, 219, 245, .82); font-size: 16px; }
.tick-list li {
  position: relative; padding-left: 30px; margin-bottom: 13px;
  color: #d9ebff; font-size: 15.5px;
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--grad);
  box-shadow: 0 0 12px rgba(53, 224, 255, .6);
}
.tick-list li::after {
  content: ""; position: absolute; left: 5px; top: 13px; width: 8px; height: 4px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.visual-figure { margin: 0; }
.visual-figure img {
  border-radius: var(--radius-lg); box-shadow: 0 26px 60px rgba(0, 0, 0, .45);
  border: 1px solid rgba(140, 190, 255, .22);
}
.visual-figure figcaption {
  margin-top: 14px; text-align: center; font-size: 13.5px;
  color: rgba(178, 206, 240, .7); letter-spacing: .1em;
}

/* ---------- 03 Service ---------- */
.service-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 46px; align-items: start; }
.service-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.point {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.point:hover { transform: translateY(-4px); border-color: rgba(43, 140, 255, .45); box-shadow: var(--shadow-md); }
.point h4 { font-size: 16.5px; color: var(--blue-600); margin-bottom: 7px; }
.point p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* 手机演示（纯 CSS，不含任何客户真实素材） */
.phone-demo { display: flex; flex-direction: column; align-items: center; }
.phone {
  width: 268px; padding: 12px 12px 16px; border-radius: 34px;
  background: linear-gradient(160deg, #1c2b45, #0a1526);
  box-shadow: 0 30px 60px rgba(8, 30, 70, .3), 0 0 0 1px rgba(140, 190, 255, .18);
}
.phone-notch { width: 88px; height: 5px; border-radius: 4px; background: rgba(140, 190, 255, .3); margin: 2px auto 10px; }
.phone-screen { background: #f2f6fb; border-radius: 22px; overflow: hidden; }
.chat-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  background: var(--grad); color: #fff;
}
.chat-avatar { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .35); border: 1px solid rgba(255, 255, 255, .6); }
.chat-head b { font-size: 13px; flex: 1; }
.chat-head i { font-style: normal; font-size: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .25); }
.chat-body { padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.msg { max-width: 88%; font-size: 11.5px; line-height: 1.55; }
.msg p { margin: 0; padding: 9px 11px; border-radius: 12px; }
.msg.bot { align-self: flex-start; }
.msg.bot p { background: #fff; color: var(--ink); border-top-left-radius: 4px; box-shadow: 0 2px 8px rgba(8, 30, 70, .07); }
.msg.me { align-self: flex-end; text-align: right; }
.msg.me p { background: #d9e9ff; color: #123a72; border-top-right-radius: 4px; }
.cite {
  display: inline-block; margin-top: 5px; font-size: 10px; color: var(--blue-600);
  background: rgba(43, 140, 255, .1); padding: 2px 7px; border-radius: 6px;
}
.chat-foot {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: #fff; border-top: 1px solid var(--line);
}
.chat-foot span { flex: 1; font-size: 11px; color: var(--ink-3); background: #f2f6fb; border-radius: 999px; padding: 7px 11px; }
.chat-foot b { font-size: 11px; color: #fff; background: var(--grad); border-radius: 999px; padding: 7px 13px; }
.phone-caption { margin-top: 16px; font-size: 13px; color: var(--ink-3); text-align: center; }

.channel-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 54px 0 26px; }
.channel-bar li {
  padding: 8px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 700;
  color: var(--blue-600); background: #fff; border: 1px solid rgba(43, 140, 255, .28);
  transition: .3s var(--ease);
}
.channel-bar li:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-3px); }

.band {
  text-align: center; font-size: 16px; font-weight: 700; color: #fff;
  background: linear-gradient(120deg, #1358d6, #2b8cff 60%, #35e0ff);
  border-radius: var(--radius); padding: 22px 28px; margin: 0;
  box-shadow: 0 16px 38px rgba(19, 88, 214, .26);
}

/* ---------- 04 Partner ---------- */
.partner-block { margin-bottom: 36px; }
.mini-title { font-size: 16px; color: var(--blue-300); margin-bottom: 16px; letter-spacing: .08em; }
.pill-row { display: flex; flex-wrap: wrap; gap: 14px; }
.pill-row li {
  padding: 13px 28px; border-radius: 12px; font-size: 15px; font-weight: 600;
  color: #e6f2ff; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(140, 190, 255, .22);
  transition: .3s var(--ease);
}
.pill-row li:hover { background: rgba(43, 140, 255, .22); border-color: var(--cyan); transform: translateY(-3px); box-shadow: var(--shadow-glow); }

.slogan {
  margin: 46px 0 0; padding: 30px 34px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(19, 88, 214, .9), rgba(53, 224, 255, .72));
  border-left: 4px solid rgba(255, 255, 255, .75);
}
.slogan h3 { font-size: 22px; color: #fff; margin-bottom: 10px; }
.slogan p { margin: 0; color: rgba(240, 250, 255, .94); font-size: 15.5px; }

/* ---------- Contact ---------- */
.section-contact { background: #fff; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 46px; }
.contact-line {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px dashed var(--line); margin: 0;
}
.contact-line span { font-size: 14px; color: var(--ink-3); min-width: 76px; }
.contact-line b { font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(198, 219, 245, .78); padding: 56px 0 30px; }
.footer-inner { display: grid; gap: 22px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo { height: 46px; }
.footer-brand strong { color: #fff; font-size: 17px; letter-spacing: .04em; display: block; }
.footer-brand p { margin: 4px 0 0; font-size: 13.5px; letter-spacing: .12em; color: rgba(168, 210, 255, .7); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 26px; padding-bottom: 20px; border-bottom: 1px solid rgba(140, 190, 255, .16); }
.footer-nav a { font-size: 14px; color: rgba(198, 219, 245, .8); transition: color .25s; }
.footer-nav a:hover { color: var(--cyan); }
.footer-info { font-size: 13px; margin: 0; }
.footer-beian { font-size: 13px; margin: 0; }
.footer-beian a { color: rgba(168, 210, 255, .8); transition: color .25s; }
.footer-beian a:hover { color: var(--cyan); }
.footer-copy { font-size: 12.5px; color: rgba(140, 170, 205, .55); margin: 6px 0 0; }

/* ---------- 滚动入场动画（渐进增强：仅 JS 生效后隐藏，禁用 JS / 爬虫始终可见） ---------- */
.js-anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .62s var(--ease), transform .62s var(--ease); }
.js-anim .reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .06s; } .d2 { transition-delay: .12s; }
.d3 { transition-delay: .18s; } .d4 { transition-delay: .24s; } .d5 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; transform: none; }
  .hero-scroll span { animation: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  /* 窄屏下各区块多栏堆叠后普遍高过一屏，吸附会拦住正常阅读，整体关闭 */
  html { scroll-snap-type: none; }
  .profile-grid, .visual-grid, .service-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .visual-figure { order: -1; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .header-inner { height: 62px; gap: 14px; }
  .brand-text em { font-size: 10px; letter-spacing: .12em; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 62px 0 auto; flex-direction: column; gap: 0;
    background: rgba(6, 16, 34, .96); backdrop-filter: blur(16px);
    max-height: 0; overflow: hidden; transition: max-height .4s var(--ease);
  }
  .site-nav.open { max-height: 320px; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
  .site-nav a { padding: 15px 24px; border-bottom: 1px solid rgba(140, 190, 255, .12); }
  .hero { padding-top: 104px; }
  .hero-title { margin-bottom: 16px; }
  .hero-eyebrow { font-size: 11px; letter-spacing: .18em; }
  .hero-eyebrow .line { width: 26px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .service-points, .contact-grid { grid-template-columns: 1fr; }
  .phone { width: 240px; }
  .footer-nav { gap: 16px; }
  .footer-brand p { font-size: 12px; letter-spacing: .06em; }
  .hero-scroll { display: none; }
  .brand-logo { height: 34px; }
}
