/* ============================================================
   GradX 梯度行者 — 官网通用样式
   设计变量 / Reset / 头尾导航 / 通用组件
   ============================================================ */

:root {
  --c-primary: #2b5cff;
  --c-primary-deep: #1e40e0;
  --c-purple: #7b3fe4;
  --c-violet: #a855f7;
  --c-ink: #0b1b3f;
  --c-ink-soft: #33415e;
  --c-text: #43506b;
  --c-text-light: #7c869e;
  --c-bg: #ffffff;
  --c-bg-soft: #eef4ff;
  --c-bg-softer: #f5f8ff;
  --c-line: #e3e9f5;
  --grad-main: linear-gradient(120deg, #2b5cff 0%, #5b3fe8 55%, #8b3fe4 100%);
  --grad-text: linear-gradient(100deg, #2b5cff 10%, #7b3fe4 90%);
  --shadow-card: 0 10px 30px rgba(24, 48, 120, 0.08);
  --shadow-pop: 0 18px 50px rgba(43, 92, 255, 0.22);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --maxw: 1360px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: min(var(--maxw), 92vw);
  margin: 0 auto;
}

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--c-bg-soft);
  color: var(--c-primary);
  border: 1px solid rgba(43, 92, 255, 0.18);
}
.badge--violet { background: #f3edff; color: #6d2fd0; border-color: rgba(123, 63, 228, 0.2); }
.badge--ghost { background: rgba(255,255,255,0.14); color: #cfd9ff; border-color: rgba(255,255,255,0.25); }
.badge .badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 10px 26px rgba(60, 80, 240, 0.35);
}
.btn--primary:hover { box-shadow: var(--shadow-pop); }

.btn--ghost {
  background: #fff;
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  box-shadow: 0 4px 14px rgba(24, 48, 120, 0.06);
}
.btn--ghost:hover { border-color: rgba(43, 92, 255, 0.4); color: var(--c-primary); }

.btn--light {
  background: #fff;
  color: var(--c-primary-deep);
  box-shadow: 0 10px 26px rgba(3, 10, 40, 0.35);
}

.btn--outline-light {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
}
.btn--outline-light:hover { background: rgba(255,255,255,0.16); }

.btn--sm { padding: 9px 20px; font-size: 14px; }

.arrow-ic { width: 15px; height: 15px; flex: none; }

/* ---------- 链接式入口(查看全部 →) ---------- */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--c-primary);
  transition: gap 0.2s ease;
}
.link-more:hover { gap: 12px; }

/* ============================================================
   Header 导航
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(227, 233, 245, 0.7);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.brand-logo { width: 42px; height: 42px; }
.brand-img {
  display: block;
  height: 52px;
  width: auto;
}
.footer-brand .brand-img,
.brand-img--footer { height: 34px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name b { font-size: 17px; letter-spacing: 0.02em; }
.brand-name span { font-size: 11px; color: var(--c-text-light); letter-spacing: 0.32em; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  position: relative;
  display: block;
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-ink-soft);
  border-radius: 8px;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--c-primary); }
.main-nav a.active { color: var(--c-ink); font-weight: 700; }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1px;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}
.lang-btn {
  height: 38px;
  min-width: 44px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-ink-soft);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.lang-btn:hover {
  color: var(--c-primary);
  border-color: rgba(43, 92, 255, 0.45);
  box-shadow: 0 4px 14px rgba(43, 92, 255, 0.12);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #f2f6ff;
  border-top: 1px solid var(--c-line);
}
.site-footer .footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 0;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-logo { width: 34px; height: 34px; }
.footer-brand b { font-size: 15px; }
.footer-brand span { font-size: 10px; color: var(--c-text-light); letter-spacing: 0.3em; }

.footer-copy { font-size: 13px; color: var(--c-text-light); }

/* ---------- 子页骨架 ---------- */
.page-hero {
  position: relative;
  padding: 84px 0 76px;
  background:
    radial-gradient(700px 300px at 18% 0%, rgba(43, 92, 255, 0.12), transparent 65%),
    radial-gradient(700px 320px at 85% 20%, rgba(123, 63, 228, 0.12), transparent 65%),
    linear-gradient(180deg, #f3f7ff 0%, #ffffff 100%);
  overflow: hidden;
}
.page-hero h1 { font-size: 40px; letter-spacing: 0.01em; margin: 18px 0 14px; }
.page-hero p { max-width: 620px; font-size: 16px; color: var(--c-text); }
.page-hero .grad-text { color: transparent; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; }

.placeholder-block {
  padding: 70px 0 110px;
}
.placeholder-card {
  border: 1.5px dashed rgba(43, 92, 255, 0.35);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #f7faff, #eef3ff);
  padding: 70px 30px;
  text-align: center;
  color: var(--c-text-light);
}
.placeholder-card .ph-icon {
  width: 66px; height: 66px;
  margin: 0 auto 20px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: #fff;
  box-shadow: var(--shadow-card);
  color: var(--c-primary);
}
.placeholder-card .ph-icon svg { width: 28px; height: 28px; }
.placeholder-card h3 { font-size: 20px; color: var(--c-ink); margin-bottom: 8px; }
.placeholder-card p { font-size: 14.5px; max-width: 460px; margin: 0 auto; }

/* ---------- 滚动入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 960px) {
  .main-nav { display: none; }
  .site-header .container { justify-content: space-between; }
}
