/* ============================================================
 * 智联SaaS · 设计系统（base.css）
 * 深靛蓝科技主题 · 玻璃拟态 · 动效变量
 * ============================================================ */
:root {
  /* 主题色 */
  --indigo: #5E6AD2;
  --indigo-2: #7C86E8;
  --indigo-3: #8B93F0;
  --ink: #0A0A0B;
  --ink-2: #0F0F12;
  --ink-3: #121217;
  --paper: #FFFFFF;
  --paper-2: #F9F9FB;
  --paper-3: #F1F2F6;
  --line: #E6E8EE;
  --line-dark: #23232A;
  --text: #0F1419;
  --text-2: #374151;
  --text-3: #6B7280;
  --text-dim: #8A8F98;
  --on-dark: #FFFFFF;
  --on-dark-2: #C7CCF5;
  --on-dark-3: #A1A1AA;
  --on-dark-4: #8A8F98;

  /* 字体 */
  --font-cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "Inter", "Noto Sans SC", sans-serif;

  /* 圆角 / 阴影 */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(15,20,25,.04), 0 4px 12px rgba(15,20,25,.06);
  --shadow-md: 0 8px 30px rgba(15,20,25,.10);
  --shadow-glow: 0 8px 40px rgba(94,106,210,.28);

  /* 动效 */
  --ease: cubic-bezier(.22,.61,.36,1);
  --t-fast: .18s var(--ease);
  --t: .35s var(--ease);
  --maxw: 1240px;
}

/* 宽屏 / 带鱼屏（21:9、32:9）自适应：逐步放宽容器，避免两侧空旷 */
@media (min-width: 1600px) { :root { --maxw: 1480px; } }
@media (min-width: 1920px) { :root { --maxw: 1720px; } }
@media (min-width: 2560px) { :root { --maxw: 2160px; } }
@media (min-width: 3200px) { :root { --maxw: 2720px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-cn);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1,h2,h3,h4,p { margin: 0; }

/* 容器 */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- 品牌 Logo（全站统一） ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.4px; line-height: 1; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--indigo), var(--indigo-3)); display: grid; place-items: center; flex: none; box-shadow: 0 6px 16px rgba(94,106,210,.4); }
.brand-mark svg { width: 21px; height: 21px; display: block; }
.brand-text { display: inline-flex; align-items: baseline; font-size: 21px; }
.brand-text b { font-weight: 800; color: #fff; }
.brand-text em { font-style: normal; font-weight: 800; color: var(--indigo-2); }
/* 浅色背景：自动转深字标 */
.nav.scrolled .brand-text b { color: var(--text); }
.nav.scrolled .brand-text em { color: var(--indigo); }
.auth-card .brand-text b { color: var(--text); }
.auth-card .brand-text em { color: var(--indigo); }

/* 文字渐变 */
.grad-text {
  background: linear-gradient(100deg, #fff 10%, var(--indigo-2) 55%, var(--indigo-3) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--r-sm); font-size: 15px; font-weight: 600;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 4px 16px rgba(94,106,210,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); background: #6b76e0; }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--indigo); border: 1.5px solid var(--indigo); }
.btn-outline:hover { background: rgba(94,106,210,.06); transform: translateY(-2px); }
.btn-ink { background: var(--text); color: #fff; }
.btn-ink:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* 区块标题 */
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 3px;
  color: var(--indigo); text-transform: uppercase; margin-bottom: 14px;
}
.sec-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.5px; line-height: 1.2; }
.sec-sub { font-size: 17px; color: var(--text-3); margin-top: 14px; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }

/* 深色段落 */
.dark { background: var(--ink); color: var(--on-dark); }
.dark .sec-title { color: #fff; }
.dark .sec-sub { color: var(--on-dark-3); }

/* 滚动进场 */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* 滚动进度条 */
#scrollbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--indigo), var(--indigo-3)); z-index: 999; transition: width .1s linear; }

/* 返回顶部 */
#toTop {
  position: fixed; right: 26px; bottom: 26px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--indigo); color: #fff; display: grid; place-items: center; z-index: 90;
  box-shadow: var(--shadow-glow); opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity var(--t), transform var(--t);
}
#toTop.show { opacity: 1; pointer-events: auto; transform: none; }
#toTop:hover { transform: translateY(-3px); }

/* 自定义光标光晕（桌面） */
#cursorGlow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(94,106,210,.16), transparent 60%);
  transform: translate(-50%,-50%); left: -999px; top: -999px; transition: opacity .3s; mix-blend-mode: screen;
}

/* 状态标签 */
.tag {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 100px;
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
}
.tag.online { background: rgba(34,197,94,.14); color: #16a34a; }
.tag.dev { background: rgba(94,106,210,.16); color: var(--indigo); }
.tag.plan { background: rgba(245,158,11,.16); color: #d97706; }
.tag.hot { background: var(--indigo); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
