/* =====================================================================
 * 云创科技 官网 — 样式表
 * 移动优先（mobile-first），断点：≥768px 平板，≥1024px 桌面
 * ===================================================================== */

:root {
  /* —— 品牌色（取自 UNTRA Logo 像素取样）—— */
  --blue: #1171AF;        /* UNTRA 主蓝 */
  --blue-l: #43A6E6;      /* 亮蓝（深色底上的高亮蓝） */
  --cyan: #1FC0B6;        /* 青绿（蓝绿过渡，提亮以适配暗底） */
  --green: #8FCE39;       /* UNTRA 品牌绿（暗底提亮） */
  --grad: linear-gradient(120deg, #2E8FD0 0%, #1FC0B6 55%, #8FCE39 118%);
  --grad-blue: linear-gradient(120deg, #1171AF, #43A6E6);
  /* —— 暗色主题表面与文字 —— */
  --ink: #E8EEF6;         /* 主文字 */
  --muted: #9FB3C8;       /* 次要文字 */
  --line: #1C2E42;        /* 分隔线 / 边框 */
  --surface: #0E1E2E;     /* 卡片表面 */
  --surface-2: #12283B;   /* 抬升表面 */
  --bg: #07121E;          /* 页面底色 */
  --bg-alt: #0B1A28;      /* 交替版块底色 */
  --dark: #050D16;
  --dark-2: #0A1726;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-hover: 0 18px 48px rgba(31, 192, 182, .18);
  --container: 1200px;
  --header-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* 全局极淡蓝绿光晕，强化暗色主题的蓝绿高亮（固定，不随内容滚动） */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 88% -5%, rgba(67,166,230,.12) 0%, transparent 60%),
    radial-gradient(820px 520px at 0% 105%, rgba(143,206,57,.08) 0%, transparent 60%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* 左右内边距用 longhand，避免被 .hero__inner 等简写 padding 覆盖 */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; transition: .25s ease; white-space: nowrap;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(17,113,175,.30); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(17,113,175,.40); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.22); }
.btn--outline { background: transparent; color: var(--blue-l); border-color: rgba(67,166,230,.5); }
.btn--outline:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; transition: .3s ease;
  background: transparent;
}
.site-header.scrolled {
  background: rgba(7,18,30,.82); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(0,0,0,.35); height: 60px;
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo .logo { height: 34px; width: auto; display: block; }
/* 整站暗色：页头始终使用反白版 Logo（logo--light），不再切换彩色版 */
.nav__logo .logo--dark { display: none; }

.nav__links { display: none; align-items: center; gap: 28px; }
.nav__links a { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.92); transition: color .2s; }
.site-header.scrolled .nav__links a { color: #D6E2EF; }
.nav__links a:hover { color: var(--green); }
.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border: none; background: transparent; cursor: pointer; padding: 9px;
}
.nav__toggle span { height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.site-header.scrolled .nav__toggle span { background: #E8EEF6; }
.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); }

/* 移动端展开菜单 */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
  background: var(--dark-2); box-shadow: 0 12px 30px rgba(0,0,0,.4);
  transform: translateY(-120%); transition: transform .3s ease; padding: 8px 20px 20px;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  display: block; padding: 14px 4px; font-size: 16px; font-weight: 600;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.mobile-menu .btn { width: 100%; margin-top: 16px; }

/* ---------- 首页 Banner ---------- */
.hero {
  position: relative; min-height: 100dvh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background: radial-gradient(1200px 620px at 72% -12%, rgba(46,143,208,.30) 0%, transparent 62%),
              radial-gradient(950px 540px at 0% 108%, rgba(125,185,46,.20) 0%, transparent 58%),
              linear-gradient(160deg, #07121E 0%, #0A1B2E 58%, #07121E 100%);
}
.hero__blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .42; pointer-events: none;
}
.hero__blob.b1 { width: 380px; height: 380px; background: var(--blue-l); top: -90px; right: -70px; }
.hero__blob.b2 { width: 320px; height: 320px; background: var(--green); bottom: -110px; left: -90px; opacity: .30; }
/* 只设上下内边距，左右沿用 .container，避免覆盖 */
.hero__inner { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 60px; }
.hero__title {
  font-size: clamp(32px, 8vw, 64px); font-weight: 800; line-height: 1.15; letter-spacing: 1px;
  white-space: pre-line;
}
.hero__title .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin: 22px 0 32px; font-size: clamp(15px, 2.4vw, 19px); color: rgba(255,255,255,.82); max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 56px; max-width: 640px;
}
.hero__stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 18px; }
.hero__stat .n { font-size: clamp(24px, 5vw, 36px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__stat .l { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 4px; }

/* ---------- 通用版块 ---------- */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--cyan); margin-bottom: 10px; }
.section__title { font-size: clamp(26px, 5vw, 40px); font-weight: 800; }
.section__sub { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* ---------- 关于我们 ---------- */
.about__lead { max-width: 820px; margin: 0 auto 48px; text-align: center; font-size: clamp(16px,2.4vw,19px); color: #C3D2E2; }
.about__grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.about__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.about__item .num { font-size: 30px; font-weight: 800; color: var(--green); }
.about__item h3 { font-size: 20px; margin: 6px 0 10px; }
.about__item p { color: var(--muted); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: .3s ease; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(67,166,230,.45); }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(67,166,230,.14); color: var(--blue-l); margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card__tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--blue-l);
  background: rgba(143,206,57,.16); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.card__metric { margin-top: 16px; font-weight: 800; color: var(--green); font-size: 18px; }
.case__desc { color: var(--muted); }
.news__meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.news__cat { color: var(--blue); font-weight: 700; }
.news__date { color: var(--muted); }

/* ---------- 联系我们 ---------- */
.contact__grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
.contact__info { display: grid; gap: 18px; }
.contact__info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact__info-item .ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; }
.contact__info-item .ic svg { width: 22px; height: 22px; }
.contact__info-item .tx { font-size: 15px; color: #C3D2E2; padding-top: 8px; }
.contact__info-item .tx a { color: #C3D2E2; text-decoration: none; border-bottom: 1px solid transparent; transition: .2s; }
.contact__info-item .tx a:hover { color: #43A6E6; border-bottom-color: #43A6E6; }
.contact__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field .req { color: #ff6b6b; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: #0A1726; transition: .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #5E738C; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-l); box-shadow: 0 0 0 3px rgba(67,166,230,.18); }
.field textarea { min-height: 110px; resize: vertical; }
.form__note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.form__ok { display: none; background: rgba(143,206,57,.12); color: #8FCE39; border: 1px solid rgba(143,206,57,.4); padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.form__ok.show { display: block; }
.form__err { display: none; background: rgba(239,68,68,.12); color: #F87171; border: 1px solid rgba(239,68,68,.4); padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.form__err.show { display: block; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--dark); color: #C7D2E0; padding: 60px 0 28px; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.footer__brand img { height: 36px; width: auto; margin-bottom: 16px; }
.footer__brand p { color: #8DA2BD; font-size: 14px; max-width: 320px; }
.footer__col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer__col a { display: block; color: #8DA2BD; font-size: 14px; padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: var(--green); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; text-align: center; color: #6B7E98; font-size: 13px; }

/* ---------- 滚动揭示动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 平板 ≥768px ---------- */
@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
  .about__grid { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ---------- 桌面 ≥1024px ---------- */
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  #services .grid, #solutions .grid { grid-template-columns: repeat(3, 1fr); }
  #advantages .grid { grid-template-columns: repeat(4, 1fr); }
  #news .grid { grid-template-columns: repeat(4, 1fr); }
  .container { padding-left: 32px; padding-right: 32px; }
}

/* ---------- 无障碍：尊重减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
