/* =========================================================
   天汉智网 Tianhan Intelligence Network — 官网样式
   ========================================================= */

:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-mute: #94a3b8;
  --line: #e8edf4;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --brand: #4f46e5;
  --brand-2: #06b6d4;
  --brand-deep: #1e1b4b;
  --accent: #f59e0b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .06);
  --shadow-lg: 0 22px 60px rgba(15, 23, 42, .12);
  --maxw: 1160px;
  --font: "Inter", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

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

h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 28px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
}

.links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.links a { transition: color .2s ease; }
.links a:hover { color: var(--brand); }

.lang-btn {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
}

.lang-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 4px 14px rgba(79, 70, 229, .15);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 420px at 12% 8%, rgba(6, 182, 212, .30), transparent 60%),
    radial-gradient(760px 460px at 92% 18%, rgba(167, 139, 250, .28), transparent 62%),
    linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #0f766e 130%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 85%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 28px 104px;
  max-width: 900px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #a5f3fc;
  border: 1px solid rgba(165, 243, 252, .35);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.16;
  letter-spacing: -.035em;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255, 255, 255, .82);
  max-width: 720px;
  margin: 0 auto 34px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand), #6366f1);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(79, 70, 229, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(79, 70, 229, .45);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
  transition: all .2s ease;
}

.ghost-btn:hover { background: rgba(255, 255, 255, .12); }

.trust-row {
  margin-top: 42px;
  font-size: 13px;
  color: rgba(255, 255, 255, .65);
  letter-spacing: .02em;
}

/* ---------- 通用区段 ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px 28px;
}

.section-alt {
  max-width: none;
  background: var(--bg-soft);
  padding-left: max(28px, calc((100vw - var(--maxw)) / 2 + 28px));
  padding-right: max(28px, calc((100vw - var(--maxw)) / 2 + 28px));
}

.section-head { max-width: 680px; margin-bottom: 46px; }

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 12px;
}

.lead {
  font-size: 17px;
  color: var(--ink-soft);
}

/* ---------- 产品卡片 ---------- */
.product-group { margin-bottom: 44px; }
.product-group:last-child { margin-bottom: 0; }

.group-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, .35);
}

.card h3 {
  font-size: 17px;
  margin: 14px 0 10px;
  letter-spacing: -.01em;
}

.card p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.card-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(79,70,229,.10), rgba(6,182,212,.12));
  border-radius: 13px;
}

/* ---------- 小程序 ---------- */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.mini-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.mini-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.mini-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}

.mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.mini-card:hover .mini-cover img { transform: scale(1.04); }

.mini-body { padding: 24px 26px 28px; }

.mini-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--brand);
  background: rgba(79, 70, 229, .09);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.mini-body h3 { font-size: 21px; margin-bottom: 10px; }
.mini-body p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- 能力 ---------- */
.cap-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.cap-grid .card h3 { color: var(--brand-deep); }

/* ---------- 关于 ---------- */
.about-body {
  max-width: 780px;
  font-size: 17px;
  color: var(--ink-soft);
  padding: 30px 34px;
  border-left: 4px solid var(--brand);
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- 联系 ---------- */
.cta-section {
  background: linear-gradient(135deg, #1e1b4b, #312e81 60%, #0f766e);
  color: #fff;
  max-width: none;
  padding-left: max(28px, calc((100vw - var(--maxw)) / 2 + 28px));
  padding-right: max(28px, calc((100vw - var(--maxw)) / 2 + 28px));
}

.cta-box { text-align: center; margin-bottom: 56px; }
.cta-box h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 12px; }
.cta-box p { color: rgba(255,255,255,.8); font-size: 17px; margin-bottom: 26px; }

.cta-lg { padding: 15px 34px; font-size: 16px; }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-info p { color: rgba(255,255,255,.85); margin-bottom: 12px; }
.contact-info strong { color: #a5f3fc; margin-right: 4px; }

.contact-form { display: flex; flex-direction: column; gap: 12px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #fff;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.55); }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #a5f3fc;
  background: rgba(255,255,255,.12);
}

.contact-form .cta { align-self: flex-start; }

.form-status {
  min-height: 20px;
  font-size: 13.5px;
  font-weight: 600;
  display: none;
}
.form-status.sending { display: block; color: #a5f3fc; }
.form-status.success { display: block; color: #86efac; }
.form-status.fail { display: block; color: #fca5a5; }

.form-note { font-size: 12.5px; color: rgba(255,255,255,.55); }

/* ---------- 页脚 ---------- */
.footer {
  background: #0b1120;
  color: rgba(255,255,255,.7);
  padding: 56px 28px 26px;
}

.foot-cols {
  max-width: var(--maxw);
  margin: 0 auto 34px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer .brand { color: #fff; }
.foot-sub { margin-top: 14px; font-size: 13.5px; color: rgba(255,255,255,.5); }
.foot-meta p { font-size: 13.5px; margin-bottom: 8px; }

.foot-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  color: rgba(255,255,255,.45);
  text-align: center;
}

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .nav { padding: 14px 18px; }
  .links { gap: 16px; font-size: 14px; }
  .hero-inner { padding: 70px 20px 80px; }
  .section { padding: 64px 20px; }
  .section-alt,
  .cta-section { padding-left: 20px; padding-right: 20px; }
  .contact-wrap { grid-template-columns: 1fr; padding: 24px; gap: 26px; }
  .about-body { padding: 22px; }
  .foot-cols { flex-direction: column; }
}
