/* ============================================================
   星智元(厦门)科技有限公司 官网样式
   现代响应式 · 品牌蓝 #2491FC / 深海军蓝 #0B3B66
   ============================================================ */
:root {
  --brand: #2491FC;
  --brand-dark: #0070DE;
  --navy: #0B3B66;
  --ink: #1a2533;
  --ink-soft: #5a6b7f;
  --line: #e6ecf3;
  --bg-soft: #f5f8fc;
  --card-shadow: 0 6px 24px rgba(11, 59, 102, .08);
  --radius: 14px;
  --max-w: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background: #fff;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; color: var(--navy); }
.brand img { width: 34px; height: auto; }
.brand small { font-weight: 400; font-size: 12px; color: var(--ink-soft); display: block; line-height: 1.1; }

.main-nav ul { display: flex; gap: 8px; }
.main-nav a {
  display: block; padding: 8px 18px; border-radius: 8px;
  font-size: 15.5px; color: var(--ink); transition: .2s;
}
.main-nav a:hover { color: var(--brand); background: var(--bg-soft); }
.main-nav a.active { color: var(--brand); font-weight: 600; }
.nav-cta {
  background: var(--brand) !important; color: #fff !important; font-weight: 600;
}
.nav-cta:hover { background: var(--brand-dark) !important; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: url("/images/header_1.png") center 35% / cover no-repeat;
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7, 34, 61, .88) 0%, rgba(9, 48, 86, .62) 45%, rgba(10, 60, 110, .25) 100%);
}
.hero-inner { position: relative; padding: 130px 0 150px; max-width: 640px; }
.hero-kicker {
  display: inline-block; padding: 5px 14px; border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px; font-size: 13.5px; letter-spacing: 2px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.3; font-weight: 700; }
.hero h1 em { font-style: normal; color: #7cc0ff; }
.hero p.lead { margin-top: 20px; font-size: clamp(15px, 1.6vw, 18px); color: rgba(255,255,255,.88); max-width: 540px; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 34px; border-radius: 10px; font-size: 16px;
  font-weight: 600; transition: .2s; text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(36, 145, 252, .4); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.65); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }

/* 内页页头 */
.page-hero {
  position: relative; color: #fff;
  background: url("/images/header_1.png") center 40% / cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7,34,61,.9), rgba(9,48,86,.55)); }
.page-hero .container { position: relative; padding: 84px 0; }
.page-hero h1 { font-size: clamp(26px, 3.4vw, 38px); }
.page-hero p { margin-top: 12px; color: rgba(255,255,255,.85); max-width: 640px; }

/* ---------- 通用 Section ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .kicker {
  color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: 3px; text-transform: uppercase;
}
.section-head h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 10px; color: var(--navy); }
.section-head p { margin-top: 14px; color: var(--ink-soft); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: #fff; border-radius: var(--radius); padding: 30px 28px;
  border: 1px solid var(--line); box-shadow: var(--card-shadow); transition: .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(11, 59, 102, .14); }
.card h3 { font-size: 19px; color: var(--navy); margin: 14px 0 8px; }
.card p { font-size: 14.5px; color: var(--ink-soft); }
.card .icon-badge {
  width: 52px; height: 52px; border-radius: 13px; background: linear-gradient(135deg, #e3f0ff, #d0e6ff);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}

/* 数据条 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats .num { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; color: var(--brand); }
.stats .num sup { font-size: .5em; }
.stats .label { margin-top: 4px; color: var(--ink-soft); font-size: 14.5px; }

/* 产品卡片 */
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--card-shadow); display: flex; flex-direction: column; transition: .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(11,59,102,.15); }
.product-card .pic {
  background: #f6f8fe; display: flex; align-items: center; justify-content: center; padding: 26px; height: 230px;
}
.product-card .pic img { max-height: 175px; width: auto; max-width: 80%; object-fit: contain; }
.product-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product-card .tag {
  align-self: flex-start; font-size: 12px; color: var(--brand); background: #e9f3ff;
  border-radius: 999px; padding: 3px 12px; font-weight: 600;
}
.product-card h3 { font-size: 18.5px; color: var(--navy); margin-top: 10px; }
.product-card .desc { font-size: 14px; color: var(--ink-soft); margin-top: 8px; flex: 1; }
.product-card .price { margin-top: 16px; font-size: 15px; color: var(--ink); font-weight: 600; }
.product-card .price small { color: var(--ink-soft); font-weight: 400; }
.feature-list { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.feature-list li {
  font-size: 12.5px; color: var(--navy); background: var(--bg-soft);
  border-radius: 6px; padding: 3px 10px;
}

/* 方案页 */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.split.rev { grid-template-columns: .85fr 1.15fr; }
.split h2 { font-size: clamp(22px, 2.6vw, 30px); color: var(--navy); margin-bottom: 18px; }
.split p { color: var(--ink-soft); margin-bottom: 14px; }
.split img { border-radius: var(--radius); box-shadow: var(--card-shadow); }

.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 21px; height: 21px; border-radius: 50%; background: #e9f3ff; color: var(--brand);
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* 步骤 */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { background: #fff; border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 26px; font-weight: 800; color: #cfe4fc;
}
.step h3 { font-size: 16.5px; color: var(--navy); margin: 8px 0 6px; }
.step p { font-size: 13.5px; color: var(--ink-soft); }

/* 案例高亮 */
.case-banner {
  background: linear-gradient(120deg, var(--navy), #14508c); color: #fff;
  border-radius: 18px; padding: 52px 48px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
}
.case-banner h2 { font-size: clamp(20px, 2.4vw, 27px); }
.case-banner p { margin-top: 12px; color: rgba(255,255,255,.85); max-width: 620px; }
.case-banner .big { font-size: clamp(34px, 4vw, 52px); font-weight: 800; color: #7cc0ff; text-align: center; }
.case-banner .big small { display: block; font-size: 14px; font-weight: 400; color: rgba(255,255,255,.75); margin-top: 6px; }

/* 关于页 */
.profile-img { border-radius: var(--radius); box-shadow: var(--card-shadow); }

/* ---------- CTA / 联系 ---------- */
.cta-band { background: linear-gradient(120deg, #0b3b66, #1b62a8); color: #fff; text-align: center; padding: 70px 0; }
.cta-band h2 { font-size: clamp(22px, 2.8vw, 32px); }
.cta-band p { margin-top: 12px; color: rgba(255,255,255,.85); }
.cta-band .btn { margin-top: 26px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; text-align: left; }
.contact-cards .item {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 22px 24px;
}
.contact-cards .item .k { font-size: 13px; color: #9cc7f5; letter-spacing: 1px; }
.contact-cards .item .v { margin-top: 6px; font-size: 18px; font-weight: 600; }
.contact-cards .item .s { font-size: 13.5px; color: rgba(255,255,255,.7); margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: #0e2033; color: #8fa3b8; font-size: 14px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 54px 0 40px; }
.site-footer h4 { color: #dce8f4; font-size: 15.5px; margin-bottom: 14px; }
.site-footer a:hover { color: #7cc0ff; }
.site-footer .foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.site-footer .foot-brand img { width: 30px; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer .bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: 13px;
}
.site-footer .bottom a { color: #8fa3b8; margin: 0 6px; }
.site-footer .bottom a:hover { color: #7cc0ff; }

/* 锚点偏移（sticky header） */
[id] { scroll-margin-top: 80px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.rev { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .case-banner { grid-template-columns: 1fr; text-align: left; }
  .case-banner .big { text-align: left; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed; inset: 64px 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(11,59,102,.12);
    transform: translateY(-130%); transition: .28s; z-index: 99;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 18px 16px; }
  .main-nav a { padding: 13px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle { display: block; }
  .hero-inner { padding: 88px 0 100px; }
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .site-footer .top { grid-template-columns: 1fr; gap: 26px; }
}
