:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1a1a2e;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --orange: #f97316;
  --radius: 10px;
  --max: 1320px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
  transition: box-shadow .25s ease;
}
.nav.nav-scrolled { box-shadow: 0 4px 20px rgba(37,99,235,.08); }
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 10px 28px;
  display: flex; align-items: center; gap: 20px;
}
.logo {
  font-weight: 800; font-size: 1rem; color: var(--text);
  display: flex; align-items: center; gap: 10px;
  text-decoration: none !important;
}
.logo img { width: 36px; height: 36px; border-radius: 8px; }
.logo span { color: var(--accent); }
.nav-links {
  display: flex; gap: 20px; margin-left: auto; font-size: 0.86rem;
}
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta {
  padding: 7px 16px; border-radius: 8px; font-size: 0.84rem; font-weight: 600;
  background: var(--accent); color: #fff !important; text-decoration: none !important;
}

/* Homepage shell — one screen */
.home-main {
  flex: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 28px 28px;
  width: 100%;
}

.home-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-bottom: 18px;
}

.intro-card, .enterprise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  padding: 24px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.intro-card:hover, .enterprise-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,.08);
}

.intro-card { border-top: 3px solid var(--orange); }
.enterprise-card { border-top: 3px solid var(--accent); }

.badge {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 11px; padding: 3px 10px; border-radius: 4px; margin-bottom: 10px;
}
.intro-card h1 {
  font-size: 1.65rem; font-weight: 800; line-height: 1.3; margin-bottom: 8px;
  color: #0f172a;
}
.intro-card .lead { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; max-width: 520px; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

.btn {
  display: inline-block; padding: 9px 18px; border-radius: 8px;
  font-weight: 600; font-size: 0.88rem; text-decoration: none !important;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: var(--accent-light); color: var(--accent); border: 1px solid #bfdbfe; }
.btn-ghost { background: #fff; color: var(--accent); border: 1px solid var(--border); }

.kpi-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.kpi {
  background: #f1f5f9; border-radius: 8px; padding: 10px 8px; text-align: center;
}
.kpi strong { display: block; font-size: 1.15rem; color: var(--accent); }
.kpi span { font-size: 10px; color: var(--muted); }

.enterprise-card .elabel { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .06em; margin-bottom: 6px; }
.enterprise-card h2 { font-size: 1.2rem; margin-bottom: 8px; color: #1e40af; }
.enterprise-card p { font-size: 0.88rem; color: var(--muted); margin-bottom: 14px; }
.enterprise-card ul { list-style: none; font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; }
.enterprise-card li { padding: 3px 0; padding-left: 14px; position: relative; }
.enterprise-card li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

/* Product strip */
.products-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  padding: 16px 20px 18px;
}
.products-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px; gap: 12px;
}
.products-head h2 { font-size: 0.95rem; color: #1e40af; font-weight: 700; }
.products-head p { font-size: 0.8rem; color: var(--muted); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.pcard {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  text-decoration: none !important;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 118px;
}
.pcard:hover { border-color: #93c5fd; box-shadow: 0 6px 16px rgba(37,99,235,.12); transform: translateY(-3px); }
.pcard img { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 8px; transition: transform .2s ease; }
.pcard:hover img { transform: scale(1.06); }
.pcard .pname { font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.pcard .psub { display: block; font-size: 0.72rem; font-weight: 500; color: var(--accent); }
.pcard .pstatus { font-size: 0.7rem; color: var(--muted); margin-top: auto; }
.pcard.featured { background: var(--accent-light); border-color: #93c5fd; }
.pcard-muted { opacity: .75; cursor: default; }
.pcard-muted:hover { transform: none; box-shadow: none; }
.img-muted { filter: grayscale(.35); }

/* About section */
.about-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  padding: 20px 24px 22px;
  margin-top: 18px;
  scroll-margin-top: 72px;
}
.products-panel { scroll-margin-top: 72px; }
.about-head { margin-bottom: 14px; }
.about-head h2 { font-size: 0.95rem; color: #1e40af; font-weight: 700; }
.about-head p { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 14px;
}
.about-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  transition: border-color .2s, box-shadow .2s;
}
.about-box:hover { border-color: #bfdbfe; box-shadow: 0 4px 12px rgba(37,99,235,.06); }
.about-box h3 { font-size: 0.88rem; color: #1e40af; margin-bottom: 10px; }
.about-box ul { list-style: none; font-size: 0.82rem; color: var(--muted); }
.about-box li { padding: 4px 0; }
.about-box p { font-size: 0.82rem; color: var(--muted); line-height: 1.65; }
.about-highlight { background: var(--accent-light); border-color: #bfdbfe; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.home-top.reveal { transition-delay: .05s; }
.products-panel.reveal { transition-delay: .1s; }
.about-panel.reveal { transition-delay: .15s; }

.kpi { transition: transform .2s ease, background .2s ease; }
.kpi:hover { transform: translateY(-2px); background: #e2e8f0; }

/* Footer compact */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 14px 28px;
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-beian { height: 13px; vertical-align: middle; margin-right: 3px; }

/* Subpages */
.container { max-width: var(--max); margin: 0 auto; padding: 24px 28px 48px; }
.detail-hero {
  padding: 28px 28px 24px;
  margin-top: 0;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.detail-hero-inner { max-width: var(--max); margin: 0 auto; }
.back-links { margin-bottom: 12px; }
.back-link { font-size: 0.85rem; color: var(--muted); margin-right: 14px; display: inline-block; text-decoration: none; }
.back-link:hover { color: var(--accent); }
.detail-hero h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 6px; }
.detail-hero .subtitle { color: var(--accent); font-size: 0.95rem; margin-bottom: 8px; }
.detail-hero p { color: var(--muted); max-width: 640px; font-size: 0.92rem; }

.content-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px; margin-bottom: 16px;
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.content-block h2 { font-size: 1rem; margin-bottom: 12px; color: #1e40af; }
.content-block ul { list-style: none; }
.content-block li {
  padding: 7px 0; border-bottom: 1px solid var(--border);
  font-size: 0.88rem; color: var(--muted); padding-left: 18px; position: relative;
}
.content-block li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.content-block li:last-child { border: none; }

.job-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 12px;
}
.job-card h3 { font-size: 1rem; margin-bottom: 6px; }
.job-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.job-tag { font-size: 0.72rem; padding: 2px 8px; border-radius: 5px; background: #f1f5f9; color: var(--muted); }
.job-card p { font-size: 0.86rem; color: var(--muted); }

.footer-sub { padding: 16px 28px; text-align: center; border-top: 1px solid var(--border); background: #fff; font-size: 0.82rem; color: var(--muted); }
.footer-sub a { color: var(--accent); text-decoration: none; font-weight: 600; }
.footer-sub a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  .home-top { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
