/* =========================================================
   谷航ERP — 全新视觉风格（亮色 / 圆润 / 柔和渐变）
   ========================================================= */

:root {
  --bg: #f7f8fd;
  --bg-soft: #eff1fb;
  --surface: #ffffff;
  --ink: #12172b;
  --muted: #5c6478;
  --line: #e7eaf6;

  --brand: #5b4dfb;
  --brand-2: #12b8a6;
  --brand-soft: #edebff;
  --brand-2-soft: #e2f7f4;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 22px 48px -26px rgba(20, 24, 58, 0.32);
  --shadow-sm: 0 10px 26px -18px rgba(20, 24, 58, 0.35);
  --max: 1160px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- 顶部导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 253, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo-img {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: block;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--muted);
  transition: 0.2s;
}

.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }

.nav-links a.active {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 600;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #7a6bff);
  box-shadow: 0 12px 24px -12px rgba(91, 77, 251, 0.8);
  white-space: nowrap;
}

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section.tight { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.18; margin: 0; }

.h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.h3 { font-size: 20px; font-weight: 700; }

.lead { color: var(--muted); font-size: 17px; max-width: 640px; }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head p { margin: 14px 0 0; }

.text-grad {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #7a6bff);
  box-shadow: 0 18px 34px -16px rgba(91, 77, 251, 0.85);
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: #cfd4ec; transform: translateY(-2px); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 92px 0 74px; }

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  z-index: 0;
}

.hero::before {
  width: 460px; height: 460px; top: -160px; right: -80px;
  background: radial-gradient(circle, rgba(91, 77, 251, 0.5), transparent 70%);
}

.hero::after {
  width: 420px; height: 420px; bottom: -180px; left: -120px;
  background: radial-gradient(circle, rgba(18, 184, 166, 0.4), transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.badge b { color: var(--brand); font-weight: 700; }

.badge .dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-2-soft);
  display: grid; place-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero p.lead { margin: 22px 0 0; font-size: 17.5px; }

/* Hero 右侧：CSS 仪表盘插画 */
.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.mock-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}

.mock-title { font-size: 14px; font-weight: 700; color: var(--ink); }

.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.mock-dots i:nth-child(1) { background: #ffd1d6; }
.mock-dots i:nth-child(2) { background: #ffe9c2; }
.mock-dots i:nth-child(3) { background: #cdf0e4; }

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }

.kpi {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
}

.kpi span { font-size: 11px; color: var(--muted); display: block; }
.kpi strong { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.kpi.teal { background: var(--brand-2-soft); }
.kpi.teal strong { color: #0d9488; }
.kpi.indigo { background: var(--brand-soft); }
.kpi.indigo strong { color: var(--brand); }

.chart {
  height: 118px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fbfbff, #f4f3ff);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 14px;
  margin-bottom: 16px;
}

.chart i {
  flex: 1;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #8b7dff, var(--brand));
  display: block;
  opacity: 0.9;
}

.chart i:nth-child(even) { background: linear-gradient(180deg, #56d8c7, var(--brand-2)); }

.mock-list { display: grid; gap: 10px; }

.mock-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
}

.mock-item .bar {
  flex: 1; height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden;
}
.mock-item .bar u { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* ---------- 统计条 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 54px;
  position: relative;
  z-index: 1;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.stat strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d9dcef;
}

.icon {
  width: 50px; height: 50px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 18px;
}

.icon.teal { background: var(--brand-2-soft); color: #0d9488; }

.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- 功能详情（产品页） ---------- */
.feature {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  padding: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.feature + .feature { margin-top: 22px; }

.feature .head .icon { margin-bottom: 16px; }
.feature h3 { font-size: 22px; font-weight: 800; }
.feature .head p { color: var(--muted); font-size: 15px; margin: 10px 0 0; }

.feature ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }

.feature li {
  position: relative;
  padding-left: 30px;
  font-size: 15.5px;
  color: #37405a;
}

.feature li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-soft);
}

.feature li::after {
  content: "";
  position: absolute;
  left: 6px; top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.feature.teal li::before { background: var(--brand-2-soft); }
.feature.teal li::after { background: var(--brand-2); }

.mini-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}

.mini-head .dot-lg {
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.mini-head h4 { margin: 0; font-size: 16px; font-weight: 700; }

/* ---------- 价格 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.22s, box-shadow 0.22s;
}

.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.plan.recommended {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--brand), var(--brand-2)) border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow);
}

.plan .tag {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  white-space: nowrap;
}

.plan .name { font-size: 18px; font-weight: 800; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 6px; }
.plan .price b { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; }
.plan .price span { color: var(--muted); font-size: 15px; }
.plan .desc { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

.plan ul { margin: 0 0 26px; padding: 0; list-style: none; display: grid; gap: 12px; flex: 1; }

.plan li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: #37405a;
}

.plan li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-soft);
}

.plan li::after {
  content: "";
  position: absolute; left: 6.5px; top: 12px;
  width: 5px; height: 9px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
}

.plan .btn { width: 100%; justify-content: center; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.contact-card .label { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.contact-card .value { font-size: 16px; font-weight: 600; line-height: 1.6; word-break: break-word; }

/* ---------- 文章（隐私政策） ---------- */
.article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 46px;
  box-shadow: var(--shadow-sm);
}

.article h2 { font-size: 22px; font-weight: 800; margin: 34px 0 12px; }
.article h2:first-child { margin-top: 0; }
.article p { color: #37405a; font-size: 15.5px; }
.article ul { padding-left: 20px; color: #37405a; font-size: 15.5px; display: grid; gap: 8px; }

/* ---------- 页头（内页） ---------- */
.page-head {
  padding: 72px 0 40px;
  position: relative;
  overflow: hidden;
}

.page-head::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  top: -220px; right: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 77, 251, 0.28), transparent 70%);
  filter: blur(60px);
  z-index: 0;
}

.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
.page-head p { margin: 16px 0 0; }

/* ---------- CTA 横幅 ---------- */
.cta {
  border-radius: 28px;
  padding: 54px;
  text-align: center;
  background: linear-gradient(135deg, #241e63, #3b2f9e 55%, #1f8f83);
  color: #fff;
  box-shadow: var(--shadow);
}

.cta h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; }
.cta p { color: rgba(255, 255, 255, 0.82); max-width: 620px; margin: 14px auto 0; }

.cta .btn-row { justify-content: center; }
.cta .btn-primary { background: #fff; color: var(--brand); box-shadow: none; }
.cta .btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.3); }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 46px 0 34px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer .logo { margin-bottom: 14px; }
.footer p { color: var(--muted); font-size: 14px; margin: 0; }

.footer h4 { font-size: 14px; font-weight: 700; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); font-size: 14px; }
.footer ul a:hover { color: var(--brand); }

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 登录页 ---------- */
.login-wrap { padding: 56px 0 92px; }

.login-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 1000px;
  margin: 0 auto;
}

.login-aside {
  padding: 48px 42px;
  background: linear-gradient(150deg, #241e63, #3b2f9e 55%, #1f8f83);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
}

.login-aside .logo { color: #fff; }
.login-aside h2 { font-size: 25px; font-weight: 800; }
.login-aside p { color: rgba(255, 255, 255, 0.8); font-size: 15px; margin: 14px 0 0; }
.login-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.login-aside li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255, 255, 255, 0.92); }
.login-aside li svg { flex: none; color: #7ff0df; }

.login-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px;
}

.login-card { padding: 50px 44px; }
.login-card h1 { font-size: 28px; font-weight: 800; }
.login-card .sub { color: var(--muted); font-size: 15px; margin: 10px 0 30px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }

.field input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field input::placeholder { color: #a3a9bd; }

.field input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 26px;
  font-size: 14px;
}

.field-row label { display: flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.field-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.field-row a { color: var(--brand); font-weight: 600; }

.login-card .btn { width: 100%; justify-content: center; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin: 26px 0;
}

.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.login-foot { text-align: center; font-size: 14px; color: var(--muted); }
.login-foot a { color: var(--brand); font-weight: 600; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid.g3, .grid.g4, .price-grid, .contact-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-aside, .login-card { padding: 38px 32px; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .grid.g2, .grid.g3, .grid.g4, .price-grid, .contact-grid, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article { padding: 28px; }
  .cta { padding: 36px 24px; }
  .nav { height: auto; padding: 12px 0; flex-wrap: wrap; }
  .nav-links { gap: 4px; }
  .nav-links a { padding: 7px 11px; font-size: 14px; }
  .nav-cta { padding: 7px 15px; font-size: 13px; }
}
