/* ============================================================
   数智云科官网 - 共享样式
   浅色商务风 · 一屏式多页面布局
   配色参考：企名片 qimingpian.cn
   品牌蓝 #356df0 · 强调红 #e23d32 · 浅蓝渐变 #dbe7fe → #f0f4fb
   ============================================================ */

:root {
  /* —— 背景 —— */
  --bg-page: #fefefe;
  --bg-wash: #eaf1fe;
  --bg-soft: #f4f6fa;
  --bg-tint: #eef3fe;
  --bg-card: #ffffff;

  /* —— 描边 —— */
  --border-soft: #e8ecf3;
  --border-strong: #dfe4ec;
  --border-glow: rgba(53, 109, 240, 0.32);

  /* —— 文字 —— */
  --text-primary: #1f2329;
  --text-secondary: #5b6472;
  --text-muted: #99a2b0;

  /* —— 品牌色 —— */
  --brand-blue: #356df0;
  --brand-blue-dark: #2457d6;
  --brand-blue-soft: #5b8dfa;
  --brand-link: #007dea;
  --brand-red: #e23d32;
  --brand-red-soft: #ec5b51;
  --brand-cyan: #356df0;
  --brand-purple: #5b8dfa;
  --brand-pink: #ec5b51;
  --brand-green: #00a86b;
  --brand-orange: #f59f3c;

  /* —— 渐变 —— */
  --grad-primary: linear-gradient(135deg, #356df0 0%, #5b8dfa 55%, #7aa8ff 100%);
  --grad-warm: linear-gradient(135deg, #ec5b51 0%, #e23d32 100%);
  --grad-cool: linear-gradient(135deg, #356df0 0%, #00a6e0 100%);
  --grad-soft: linear-gradient(180deg, #dbe7fe 0%, #f0f4fb 73%);

  /* —— 阴影 —— */
  --shadow-glow: 0 12px 30px -10px rgba(53, 109, 240, 0.45);
  --shadow-card: 0 4px 18px -6px rgba(24, 43, 92, 0.10);
  --shadow-card-hover: 0 16px 38px -12px rgba(53, 109, 240, 0.28);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'PingFang SC', 'Noto Sans SC', 'Hiragino Sans GB', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex; flex-direction: column;
  min-height: 100dvh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ============ 布局骨架：一屏 ============ */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.page {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 40px) 0 48px;
  position: relative;
  overflow: hidden;
}

/* ============ 导航 ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid #ebedf0;
  transition: background 0.3s;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: 0.5px; flex-shrink: 0; }
.nav-logo .logo-mark {
  width: 34px; height: 34px;
  background: var(--grad-primary);
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 800;
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.nav-logo span:not(.logo-mark) { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-menu { display: flex; gap: 6px; flex-wrap: nowrap; }
.nav-menu a {
  font-size: 14px; color: var(--text-secondary);
  padding: 8px 14px; border-radius: 100px;
  transition: all 0.2s; white-space: nowrap;
}
.nav-menu a:hover { color: var(--brand-blue); background: var(--bg-tint); }
.nav-menu a.active { color: var(--brand-red); background: #fdecea; box-shadow: inset 0 0 0 1px rgba(226, 61, 50, 0.16); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 100px;
  background: var(--bg-soft); border: 1px solid var(--border-strong);
  font-size: 13px; transition: all 0.25s; flex-shrink: 0;
}
.nav-cta:hover { background: var(--brand-blue); border-color: transparent; color: #fff; }
.nav-toggle {
  display: none; width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--border-soft);
  font-size: 18px; color: var(--text-primary);
}

/* ============ 页头 ============ */
.page-head { text-align: center; margin-bottom: 40px; }
.page-head .eyebrow {
  display: inline-block; font-size: 13px; color: var(--brand-blue);
  letter-spacing: 2px; margin-bottom: 10px; text-transform: uppercase;
  font-weight: 600;
}
.page-head h1 {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; margin-bottom: 12px;
  color: var(--text-primary);
}
.page-head h1 .grad { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head p { color: var(--text-secondary); font-size: 15px; max-width: 720px; margin: 0 auto; }

/* ============ 通用卡片 ============ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
}
.card:hover { border-color: var(--border-glow); transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card h3 { font-size: 18px; margin-bottom: 10px; color: var(--text-primary); }
.card p { color: var(--text-secondary); font-size: 13.5px; line-height: 1.7; }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
  background: var(--bg-tint); margin-bottom: 14px;
}
.card ul li {
  font-size: 13px; color: var(--text-secondary);
  padding: 7px 0 7px 16px; position: relative;
  border-top: 1px dashed #eef1f6;
}
.card ul li:first-child { border-top: none; }
.card ul li::before {
  content: '◆'; position: absolute; left: 0; top: 11px;
  color: var(--brand-blue); font-size: 7px;
}
.card .tag {
  display: inline-block; padding: 4px 11px; border-radius: 100px;
  background: var(--bg-tint); color: var(--brand-blue);
  font-size: 11.5px; margin-bottom: 12px; font-weight: 600;
}
.card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.card .meta span {
  padding: 4px 11px; background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 100px; font-size: 11.5px; color: var(--text-secondary);
}

/* ============ 数据指标 ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  padding: 24px 20px; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.stat .num {
  font-size: clamp(26px, 3vw, 38px); font-weight: 800;
  background: var(--grad-cool); -webkit-background-clip: text; background-clip: text;
  color: transparent; line-height: 1; margin-bottom: 8px;
}
.stat .num em { font-style: normal; font-size: 0.55em; margin-left: 3px; -webkit-text-fill-color: var(--text-muted); }
.stat .label { color: var(--text-secondary); font-size: 13px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 100px;
  font-size: 14.5px; font-weight: 600; transition: all 0.25s ease;
}
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(53, 109, 240, 0.62); }
.btn-ghost {
  background: #fff; border: 1px solid var(--border-strong);
  color: var(--text-primary); box-shadow: var(--shadow-card);
}
.btn-ghost:hover { border-color: var(--border-glow); color: var(--brand-blue); }

/* ============ 背景装饰 ============ */
.glow-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.glow-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 82% -12%, rgba(53, 109, 240, 0.16), transparent 62%),
    radial-gradient(700px 420px at 0% 28%, rgba(0, 166, 224, 0.10), transparent 62%),
    linear-gradient(180deg, #e8f0fe 0%, #f6f9fd 54%, #fefefe 100%);
}
.glow-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(31, 35, 41, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 35, 41, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 78%);
}

/* ============ 滚动入场 ============ */
/* 仅在 JS 可用时才隐藏（html.js-reveal 由 main.js 添加），避免脚本异常导致内容不可见 */
.js-reveal .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js-reveal .reveal:nth-child(2) { transition-delay: 0.08s; }
.js-reveal .reveal:nth-child(3) { transition-delay: 0.16s; }
.js-reveal .reveal:nth-child(4) { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ 底部备案（企名片式）============ */
.footer {
  border-top: 1px solid #ebedf0;
  background: #fff;
  padding: 18px 0;
}
.footer .copyright {
  text-align: center; color: var(--text-muted);
  font-size: 12px; line-height: 1.8;
}
.footer .copyright a { color: var(--text-muted); transition: color 0.2s; }
.footer .copyright a:hover { color: var(--brand-blue); }

/* ============ 表单 ============ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-item { display: flex; flex-direction: column; gap: 8px; }
.form-item label { font-size: 13px; color: var(--text-secondary); }
.form-item input, .form-item select, .form-item textarea {
  font-family: inherit; font-size: 14px; color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 12px 14px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-item input::placeholder, .form-item textarea::placeholder { color: var(--text-muted); }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(53, 109, 240, 0.12);
}
.form-item textarea { min-height: 110px; resize: vertical; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .grid-2, .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--nav-h); left: 16px; right: 16px;
    background: #fff;
    padding: 14px; border-radius: 14px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 18px 40px -14px rgba(24, 43, 92, 0.22);
    backdrop-filter: blur(20px);
  }
  .grid-2, .grid-4, .grid-3 { grid-template-columns: 1fr !important; }
  .grid-3.hide-mobile, .grid-4.hide-mobile { display: none !important; }
  .page { padding-top: calc(var(--nav-h) + 24px); }
  .stats { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
