/* 昆仑时代 KUNLUN ERA · 产品门户样式 */
:root {
  --brand: #1e4fa0;
  --brand-dark: #16376f;
  --accent: #4d6bfe;
  --accent-soft: #7fb2f0;
  --ink: #0b1220;
  --muted: #5b6b84;
  --line: #e6eaf2;
  --bg: #ffffff;
  --bg-soft: #f6f9ff;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 31, 66, 0.04), 0 6px 20px rgba(16, 31, 66, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 31, 66, 0.1);
  --shadow-lg: 0 24px 60px rgba(30, 79, 160, 0.22);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Inter", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- 顶部公告条 ---------------- */
.topbar {
  background: linear-gradient(90deg, #eef4ff, #f7faff 55%, #eef4ff);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  font-size: 13px;
  color: #3d4a60;
}
.topbar-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  padding: 2px 8px;
  border-radius: 999px;
}
.topbar-link { color: var(--brand); font-weight: 600; }
.topbar-link:hover { text-decoration: underline; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 16px; font-weight: 700; letter-spacing: 0.5px; }
.brand-text em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
}
.header-nav { display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.header-nav a { transition: color 0.18s ease; }
.header-nav a:hover { color: var(--brand); }

/* ---------------- 主视觉 ---------------- */
.hero {
  position: relative;
  padding: 104px 0 80px;
  text-align: center;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(77, 107, 254, 0.1) 0%, rgba(77, 107, 254, 0) 62%),
    radial-gradient(40% 50% at 88% 12%, rgba(127, 178, 240, 0.16) 0%, rgba(127, 178, 240, 0) 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 79, 160, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 79, 160, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 26%, #000 0%, transparent 72%);
  mask-image: radial-gradient(70% 60% at 50% 26%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  margin: 0 0 18px;
  font-size: 12.5px;
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--accent);
}
.hero-title {
  margin: 0 auto;
  max-width: 820px;
  font-size: clamp(32px, 5.2vw, 58px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.6px;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand) 45%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 700px;
  margin: 22px auto 0;
  font-size: 16px;
  color: var(--muted);
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-chips {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.chip {
  font-size: 12.5px;
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* ---------------- 规模数据 ---------------- */
.stats {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 44px 0;
}
.stat { text-align: center; }
.stat-num {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, var(--brand-dark), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { margin-top: 4px; font-size: 13.5px; color: var(--muted); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 8px 22px rgba(77, 107, 254, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(77, 107, 254, 0.34); }
.btn-ghost {
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--line);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: #cfdaf0; box-shadow: var(--shadow-sm); }

/* ---------------- 区块标题 ---------------- */
.section-title {
  margin: 0;
  text-align: center;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.3px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 12px 0 44px;
  font-size: 15px;
}

/* ---------------- 三大平台 ---------------- */
.products { padding: 88px 0 24px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.24s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-accent {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-c), rgba(255, 255, 255, 0));
}
.card-icon {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 18px;
}
.card-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.card-head h3 { margin: 0; font-size: 20px; font-weight: 700; }
.card-tag { font-size: 12.5px; color: var(--muted); letter-spacing: 0.2px; }
.card-desc { margin: 0 0 16px; font-size: 14.5px; color: #3d4a60; }
.card-points {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.card-points li { position: relative; padding-left: 20px; }
.card-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--card-c);
  opacity: 0.85;
}
.card-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--card-c);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link em { font-style: normal; transition: transform 0.18s ease; }
.card:hover .card-link em { transform: translateX(4px); }

.card--tianji { --card-c: #4d6bfe; }
.card--tianqing { --card-c: #12a594; }
.card--tianyi { --card-c: #7a5af8; }

/* ---------------- 平台能力 ---------------- */
.capabilities { padding: 72px 0 8px; }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cap-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.24s ease, border-color 0.2s ease;
}
.cap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.cap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(77, 107, 254, 0.12), rgba(127, 178, 240, 0.18));
  margin-bottom: 14px;
}
.cap-icon svg { width: 22px; height: 22px; }
.cap-card h4 { margin: 0 0 6px; font-size: 16.5px; font-weight: 700; }
.cap-card p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------------- 解决方案 ---------------- */
.solutions { padding: 72px 0 8px; }
.sol-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.sol-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.24s ease, border-color 0.2s ease;
}
.sol-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.sol-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: rgba(77, 107, 254, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.sol-card h4 { margin: 0 0 8px; font-size: 16.5px; font-weight: 700; }
.sol-card p { margin: 0; font-size: 13.8px; color: var(--muted); }

/* ---------------- 合作伙伴 ---------------- */
.partners { padding: 64px 0 8px; text-align: center; }
.partners-title { margin: 0 0 28px; font-size: 14px; color: var(--muted); }
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  justify-content: center;
  align-items: center;
}
.partner {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #9aa8c0;
  transition: color 0.2s ease;
}
.partner:hover { color: var(--brand); }

/* ---------------- 行动号召 ---------------- */
.cta { padding: 72px 0 88px; }
.cta-inner {
  position: relative;
  text-align: center;
  padding: 60px 32px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand) 52%, var(--accent));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cta-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 130% at 86% -10%, rgba(255, 255, 255, 0.22), transparent 62%);
  pointer-events: none;
}
.cta-inner h2 {
  position: relative;
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.3px;
}
.cta-inner p { position: relative; margin: 0 0 28px; opacity: 0.88; }
.cta-actions {
  position: relative;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta .btn-primary { background: #fff; color: var(--brand); box-shadow: 0 10px 24px rgba(4, 20, 52, 0.22); }
.cta .btn-primary:hover { box-shadow: 0 14px 30px rgba(4, 20, 52, 0.28); }
.cta .btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.42); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.75); }

/* ---------------- 页脚 ---------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-top: 52px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 340px;
}
.footer-col h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.3px;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  padding: 5px 0;
  transition: color 0.18s ease;
}
.footer-col a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 66px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer-bottom-inner a { color: var(--muted); }
.footer-bottom-inner a:hover { color: var(--brand); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .sol-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { gap: 14px; padding: 34px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero { padding: 76px 0 60px; }
}
@media (max-width: 560px) {
  .header-nav { gap: 16px; font-size: 13px; }
  .cap-grid { grid-template-columns: 1fr; }
  .sol-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 22px; }
  .topbar-text { display: none; }
}
