/* ============================================================
   宜陆信息科技 官网首页样式
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f9ff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1240px;
  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 transparent;
  transition: box-shadow .25s, border-color .25s;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(15, 23, 42, .06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }

.brand-name { font-size: 19px; font-weight: 700; letter-spacing: 1px; }

.brand-sub {
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: .5px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
}

.main-nav a {
  color: var(--ink-2);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.header-cta {
  flex-shrink: 0;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, transform .2s;
}

.header-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  transition: all .2s;
}

.btn-lg { padding: 13px 30px; font-size: 16px; }

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .45);
}

.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  background: #fff;
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(59, 130, 246, .16), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(37, 99, 235, .10), transparent 60%),
    linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

/* 首屏装饰：网格纹理与光斑 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(900px 480px at 60% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 480px at 60% 20%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, .22), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 48px;
  padding-top: 76px;
  padding-bottom: 84px;
  min-height: calc(100vh - 72px);
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, .18);
  margin-bottom: 20px;
}

.hero-copy h1 {
  font-size: 42px;
  line-height: 1.3;
  letter-spacing: .5px;
  margin-bottom: 18px;
}

.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #2563eb, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 16px;
  color: var(--ink-3);
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

/* 首屏资质要点 */
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--ink-2);
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-points i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.hero-domain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-3);
}

.hero-domain .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .15);
}

.hero-domain strong { color: var(--ink-2); font-weight: 600; }

/* Hero 右侧模拟浏览器卡片 */
.hero-visual { position: relative; }

.browser-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow), 0 30px 60px rgba(37, 99, 235, .12);
  border: 1px solid var(--line);
  background: #fff;
  transform: rotate(1.2deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
}

.browser-dots { display: flex; gap: 6px; }

.browser-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.browser-dots i:nth-child(1) { background: #f87171; }
.browser-dots i:nth-child(2) { background: #fbbf24; }
.browser-dots i:nth-child(3) { background: #34d399; }

.browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-url svg { color: #16a34a; flex-shrink: 0; }

.browser-body {
  padding: 34px 30px 40px;
  background: linear-gradient(180deg, #fbfdff, #f3f7ff);
}

.mock-login {
  max-width: 320px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(15, 23, 42, .06);
  padding: 28px 26px;
  text-align: center;
}

.mock-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, var(--primary-dark));
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.mock-title { font-size: 17px; font-weight: 700; }

.mock-sub {
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.mock-input {
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fafc;
  margin-bottom: 12px;
}

.mock-btn {
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, var(--primary-dark));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 4px;
}

.hero-visual-note {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- 数据条 ---------- */
.stats {
  background: linear-gradient(120deg, var(--primary-dark), #1e40af);
  color: #fff;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 34px;
  padding-bottom: 34px;
}

.stat-item { text-align: center; }

.stat-item strong {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .5px;
}

.stat-item strong small { font-size: 15px; font-weight: 500; margin-left: 2px; }

.stat-item span {
  font-size: 13px;
  color: rgba(255, 255, 255, .72);
}

/* ---------- 通用 Section ---------- */
.section { padding: 84px 0; }

.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: 32px;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 2px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, #3b82f6, var(--primary-dark));
}

.section-head p { color: var(--ink-3); font-size: 15px; }

/* ---------- 业务卡片 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  background: #fff;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, .35);
}

.card-highlight {
  border-color: rgba(37, 99, 235, .4);
  background: linear-gradient(180deg, #f5f9ff, #ffffff);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #fff;
}

.icon-dev { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.icon-tech { background: linear-gradient(135deg, #06b6d4, #0284c7); }
.icon-safe { background: linear-gradient(135deg, #22c55e, #15803d); }
.icon-hr { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.icon-consult { background: linear-gradient(135deg, #f59e0b, #d97706); }
.icon-biz { background: linear-gradient(135deg, #ef4444, #b91c1c); }

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card h3 small {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, .25);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.card p { font-size: 14px; color: var(--ink-3); }

/* ---------- 服务平台入口 ---------- */
.platform-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.platform-copy h2 { font-size: 30px; margin-bottom: 16px; }

.platform-copy > p {
  color: var(--ink-3);
  font-size: 15px;
  margin-bottom: 22px;
  max-width: 520px;
}

.platform-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #fff;
  border: 1px dashed rgba(37, 99, 235, .45);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 26px;
  font-family: Consolas, "Courier New", monospace;
}

.platform-url svg { color: #16a34a; }

.platform-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}

.step > span {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, var(--primary-dark));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step strong { font-size: 16px; }

.step p { font-size: 13px; color: var(--ink-3); }

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.about-intro p {
  color: var(--ink-2);
  font-size: 15px;
  margin-bottom: 14px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.about-tags span {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid rgba(37, 99, 235, .18);
}

.about-info {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, .05);
}

.about-info dl div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 22px;
}

.about-info dl div:nth-child(odd) { background: #f8fafc; }

.about-info dt {
  flex-shrink: 0;
  width: 132px;
  font-size: 14px;
  color: var(--ink-3);
}

.about-info dd {
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 0 26px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand { display: flex; align-items: center; gap: 14px; }

.footer-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-name { font-size: 17px; font-weight: 700; color: #fff; }

.footer-slogan { font-size: 12px; color: #94a3b8; }

.footer-links { display: flex; gap: 26px; font-size: 14px; }

.footer-links a { color: #cbd5e1; transition: color .2s; }

.footer-links a:hover { color: #60a5fa; }

.footer-beian {
  padding: 22px 0 26px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

.footer-copy { margin-bottom: 8px; }

.footer-links-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.footer-links-inline a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
  transition: color .2s;
}

.footer-links-inline a:hover { color: #60a5fa; }

.footer-links-inline .sep { color: #475569; }

.footer-extra { font-size: 12px; color: #64748b; }

/* ---------- 公司优势 ---------- */
.section-tight { padding: 68px 0; }

.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.adv-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  background: #fff;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.adv-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, .35);
}

.adv-num {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, #93c5fd, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}

.adv-item h3 { font-size: 17px; margin-bottom: 8px; }

.adv-item p { font-size: 13.5px; color: var(--ink-3); }

/* ---------- 服务流程 ---------- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: flow;
}

.flow-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.flow-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(37, 99, 235, .35);
}

/* 步骤间连接箭头 */
.flow-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -17px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(37, 99, 235, .5);
  border-right: 2px solid rgba(37, 99, 235, .5);
  transform: translateY(-50%) rotate(45deg);
}

.flow-step {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-dark);
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.flow-item h3 { font-size: 17px; margin-bottom: 8px; }

.flow-item p { font-size: 13.5px; color: var(--ink-3); }

/* ---------- 底部行动横幅 ---------- */
.cta-banner {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(255, 255, 255, .14), transparent 60%),
    linear-gradient(120deg, #1d4ed8, #1e3a8a);
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 44px;
  padding-bottom: 44px;
}

.cta-inner h2 { font-size: 26px; margin-bottom: 8px; }

.cta-inner p {
  font-size: 14px;
  color: rgba(255, 255, 255, .78);
  font-family: Consolas, "Courier New", monospace;
}

.btn-white {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 52px;
    padding-bottom: 60px;
    min-height: 0;
  }

  .hero-copy h1 { font-size: 32px; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }

  .card-grid { grid-template-columns: repeat(2, 1fr); }

  .adv-grid,
  .flow-grid { grid-template-columns: repeat(2, 1fr); }

  .flow-item:not(:last-child)::after { display: none; }

  .platform-inner,
  .about-grid { grid-template-columns: 1fr; gap: 36px; }

  .main-nav { display: none; }
}

@media (max-width: 620px) {
  .card-grid,
  .adv-grid,
  .flow-grid { grid-template-columns: 1fr; }

  .hero-copy h1 { font-size: 27px; }

  .browser-url { font-size: 11px; }

  .about-info dl div { flex-direction: column; gap: 2px; }

  .cta-inner { justify-content: center; text-align: center; }

  .footer-top { justify-content: center; text-align: center; }
}
