/* =========================================================
   深圳伊念科技 官网样式系统
   科技简约 · 深色调 · 响应式
   ========================================================= */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #0a0e17;
  --bg-soft: #0f1522;
  --surface: #121a2b;
  --surface-2: #17203400;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #e8edf6;
  --text-soft: #9aa7bd;
  --text-dim: #6b7794;

  --brand: #3b82f6;
  --brand-2: #8b5cf6;
  --brand-glow: rgba(99, 102, 241, 0.38);
  --accent-grad: linear-gradient(120deg, #2f6bff 0%, #7c3aed 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --gap: clamp(16px, 3vw, 32px);

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica,
    Arial, "Noto Sans SC", sans-serif;
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 背景光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px 400px at 80% -10%, rgba(124, 58, 237, 0.14), transparent 60%),
    radial-gradient(700px 500px at 0% 0%, rgba(47, 107, 255, 0.14), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  position: relative;
  z-index: 1;
}

/* ---------- 通用文字 ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 14px;
  font-weight: 600;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-desc {
  color: var(--text-soft);
  max-width: 620px;
  margin-top: 14px;
  font-size: clamp(15px, 1.6vw, 17px);
}

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

section { padding: clamp(64px, 9vw, 120px) 0; position: relative; z-index: 1; }

.center { text-align: center; }
.center .section-desc { margin-left: auto; margin-right: auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s;
}
.btn-primary {
  background: var(--accent-grad);
  color: #041018;
  box-shadow: 0 10px 30px var(--brand-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px var(--brand-glow); }
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: var(--brand-2); color: var(--brand-2); transform: translateY(-2px); }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 23, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: 0.5px; }
.logo .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  color: #041018; font-weight: 900; font-size: 16px;
  box-shadow: 0 6px 18px var(--brand-glow);
}
.logo .brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  box-shadow: 0 6px 16px var(--brand-glow);
}
.logo small { display:block; font-size: 10px; color: var(--text-dim); letter-spacing: 2px; font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; color: var(--text-soft);
  font-size: 15px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--text); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 10px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px auto; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(60px, 10vw, 110px); padding-bottom: clamp(60px, 10vw, 110px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(30px, 5vw, 60px);
}
.hero h1 {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
}
.hero p.lead { margin-top: 22px; font-size: clamp(16px, 1.9vw, 19px); color: var(--text-soft); max-width: 540px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats { margin-top: 46px; display: flex; gap: clamp(20px, 4vw, 44px); flex-wrap: wrap; }
.hero-stats .num { font-size: clamp(26px, 3.5vw, 34px); font-weight: 800; }
.hero-stats .lbl { font-size: 13px; color: var(--text-dim); }

/* Hero 视觉卡 */
.hero-visual {
  position: relative;
  border-radius: 22px;
  padding: 26px;
  background: linear-gradient(160deg, rgba(59,130,246,0.10), rgba(34,211,238,0.04));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-visual::after {
  content:""; position:absolute; inset:-40%;
  background: conic-gradient(from 0deg, transparent, rgba(124,58,237,0.18), transparent 30%);
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.code-card {
  position: relative; z-index: 1;
  background: rgba(6, 10, 18, 0.85);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-family: "SF Mono", "JetBrains Mono", Consolas, monospace;
  font-size: 13px; line-height: 1.9;
  overflow: hidden;
}
.code-head { display:flex; gap:7px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.code-head i { width:11px; height:11px; border-radius:50%; display:inline-block; }
.code-head i:nth-child(1){ background:#ff5f56; }
.code-head i:nth-child(2){ background:#ffbd2e; }
.code-head i:nth-child(3){ background:#27c93f; }
.code-body { padding: 16px 18px; color: #9fb4d6; white-space: pre; overflow-x:auto; }
.code-body .k { color: #c792ea; }
.code-body .s { color: #7ee787; }
.code-body .f { color: #22d3ee; }
.code-body .c { color: var(--text-dim); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 15px; }

/* 统计条 */
.stats-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-band .grid-4 { gap: 0; }
.stat-cell { padding: 40px 20px; text-align: center; border-right: 1px solid var(--border); }
.stat-cell:last-child { border-right: 0; }
.stat-cell .num { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.stat-cell .lbl { color: var(--text-dim); margin-top: 6px; font-size: 14px; }

/* 页头 banner（内页） */
.page-head { padding: clamp(60px, 9vw, 110px) 0 clamp(30px, 5vw, 60px); text-align: center; }
.page-head h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -1px; }
.page-head p { color: var(--text-soft); max-width: 640px; margin: 16px auto 0; font-size: clamp(15px,1.7vw,18px); }
.breadcrumb { color: var(--text-dim); font-size: 13px; margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--brand-2); }

/* ---------- 产品/服务 详情行 ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,60px); align-items: center; }
.feature-row.reverse .feature-media { order: 2; }
.feature-media {
  border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(59,130,246,0.10), rgba(34,211,238,0.03));
  min-height: 280px; display: grid; place-items: center;
  font-size: 64px; color: rgba(255,255,255,0.15);
}
.feature-list { margin-top: 20px; }
.feature-list li { padding: 8px 0 8px 28px; position: relative; color: var(--text-soft); }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-2); font-weight: 800; }

/* ---------- 案例 ---------- */
.case-card { padding: 0; }
.case-thumb {
  height: 180px; display: grid; place-items: center; font-size: 46px;
  background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(34,211,238,0.08));
  color: rgba(255,255,255,0.35);
}
.case-body { padding: 24px 26px 28px; }
.tag {
  display:inline-block; font-size:12px; padding:4px 10px; border-radius:999px;
  background: rgba(34,211,238,0.10); color: var(--brand-2);
  border:1px solid rgba(34,211,238,0.22); margin-bottom: 12px;
}

/* ---------- 新闻列表 ---------- */
.news-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 24px;
  padding: 26px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: border-color .3s, transform .3s;
}
.news-item:hover { border-color: var(--border-strong); transform: translateX(4px); }
.news-date { text-align: center; }
.news-date .d { font-size: 34px; font-weight: 800; }
.news-date .m { color: var(--text-dim); font-size: 13px; }
.news-item h3 { font-size: 19px; margin-bottom: 8px; }
.news-item p { color: var(--text-soft); font-size: 15px; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,54px); }
.info-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.info-item .icon { flex: none; width: 44px; height: 44px; border-radius: 11px; display:grid; place-items:center; background: rgba(59,130,246,0.12); border:1px solid rgba(59,130,246,0.22); }
.info-item .lbl { color: var(--text-dim); font-size: 13px; }
.info-item .val { font-weight: 600; }

.form { background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding: clamp(24px,4vw,36px); }
.field { margin-bottom: 18px; }
.field label { display:block; font-size: 14px; color: var(--text-soft); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: rgba(6,10,18,0.6); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: 15px; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--text-dim); margin-top: 6px; }

/* ---------- CTA 区块 ---------- */
.cta {
  text-align: center;
  background: linear-gradient(150deg, rgba(59,130,246,0.14), rgba(34,211,238,0.06));
  border: 1px solid var(--border); border-radius: 24px;
  padding: clamp(44px, 7vw, 80px) 24px;
}
.cta h2 { font-size: clamp(26px, 4vw, 42px); font-weight: 800; letter-spacing: -0.5px; }
.cta p { color: var(--text-soft); max-width: 560px; margin: 16px auto 30px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); padding: clamp(50px,7vw,72px) 0 34px; margin-top: 40px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 14px; color: var(--text); margin-bottom: 16px; letter-spacing: 1px; }
.footer a { display: block; color: var(--text-dim); font-size: 14px; padding: 5px 0; transition: color .2s; }
.footer a:hover { color: var(--brand-2); }
.footer .desc { color: var(--text-dim); font-size: 14px; max-width: 300px; margin-top: 14px; }
.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--text-dim); font-size: 13px;
}

/* ---------- 进场动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-grid, .feature-row, .feature-row.reverse .feature-media,
  .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-band .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: 0; }
  .stat-cell { border-bottom: 1px solid var(--border); }
  .footer-grid { gap: 30px; }

  .nav-links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,14,23,0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    transform: translateY(-120%); transition: transform .35s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 8px; border-bottom: 1px solid var(--border); }
  .nav-cta { margin: 12px 0 0; }
  .nav-toggle { display: block; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .stats-band .grid-4 { grid-template-columns: 1fr; }
  .stat-cell { border-right: 0; }
  .news-item { grid-template-columns: 1fr; }
  .news-date { display: flex; gap: 8px; align-items: baseline; text-align: left; }
  .news-date .d { font-size: 22px; }
}

/* =========================================================
   专业化增强模块 v2
   ========================================================= */

/* ---------- SVG 线性图标 ---------- */
.icon svg { width: 24px; height: 24px; display: block; }
.card .icon {
  color: #c7d2fe;
  background: linear-gradient(150deg, rgba(59,130,246,0.16), rgba(124,58,237,0.10));
  border-color: rgba(124,58,237,0.25);
}
.info-item .icon svg { width: 20px; height: 20px; }
.info-item .icon { color: #c7d2fe; }

/* ---------- 卡片渐变描边 & 精致悬停 ---------- */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; background: linear-gradient(150deg, rgba(124,58,237,0.5), rgba(47,107,255,0.1) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s var(--ease); pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover .icon { transform: translateY(-2px); transition: transform 0.3s var(--ease); }

/* ---------- Hero 数据仪表盘 ---------- */
.dash {
  position: relative; z-index: 1;
  background: rgba(8, 12, 22, 0.82);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
  backdrop-filter: blur(6px);
}
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dash-title { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: 0.3px; }
.dash-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--brand-2); }
.dash-live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,0.55);} 70%{box-shadow:0 0 0 7px rgba(34,197,94,0);} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0);} }

.kpi-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 18px; }
.kpi { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 11px; padding: 12px 12px 11px; }
.kpi-num { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.kpi-lbl { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.kpi-up { font-size: 11px; color: #22c55e; margin-top: 5px; }
.kpi-up.down { color: #f87171; }

.dash-body { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 16px; align-items: end; }
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-top: 6px; }
.chart-bars .bar {
  flex: 1; border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  height: var(--h); transform-origin: bottom; animation: barGrow 1s var(--ease) both;
  animation-delay: calc(var(--i) * 0.08s);
}
@keyframes barGrow { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.donut-wrap { display: grid; place-items: center; }
.donut-wrap svg { width: 118px; height: 118px; }
.donut-wrap .ring { fill: none; stroke-width: 12; }
.donut-wrap .ring-bg { stroke: rgba(255,255,255,0.07); }
.donut-wrap .ring-fg { stroke: url(#dg); stroke-linecap: round; stroke-dasharray: 251; stroke-dashoffset: 251; transform: rotate(-90deg); transform-origin: center; animation: ringFill 1.6s var(--ease) 0.3s forwards; }
@keyframes ringFill { to { stroke-dashoffset: 63; } }
.donut-center { font-size: 20px; font-weight: 800; fill: var(--text); }
.donut-sub { font-size: 8.5px; fill: var(--text-dim); }

/* ---------- 服务行业条 ---------- */
.industries { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.ind-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.02);
  color: var(--text-soft); font-size: 15px; transition: border-color .3s, color .3s, transform .3s;
}
.ind-chip:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-2px); }
.ind-chip svg { width: 19px; height: 19px; color: var(--brand-2); }

/* ---------- 编号步骤徽标 ---------- */
.step-num {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 18px; font-weight: 800;
  color: #fff; background: var(--accent-grad);
  box-shadow: 0 8px 20px var(--brand-glow);
}

/* ---------- 案例缩略图（渐变+图标） ---------- */
.case-thumb { position: relative; overflow: hidden; }
.case-thumb svg { width: 52px; height: 52px; color: rgba(255,255,255,0.75); position: relative; z-index: 1; }
.case-thumb::after {
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 30% 30%, rgba(124,58,237,0.25), transparent 60%);
}

/* ---------- 特征区大图标 ---------- */
.feature-media svg { width: 84px; height: 84px; color: rgba(199,210,254,0.55); }
.feature-media { position: relative; overflow: hidden; }
.feature-media::before {
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 34px 100%;
  mask: radial-gradient(circle at 50% 50%, #000, transparent 75%);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}

/* ---------- 团队卡头像 ---------- */
.team-avatar {
  width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 16px;
  display: grid; place-items: center; color: #c7d2fe;
  background: linear-gradient(150deg, rgba(59,130,246,0.18), rgba(124,58,237,0.12));
  border: 1px solid rgba(124,58,237,0.22);
}
.team-avatar svg { width: 28px; height: 28px; }

/* ---------- 页脚社交图标 ---------- */
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--text-soft); padding: 0;
  transition: border-color .3s, color .3s, transform .3s;
}
.social a:hover { border-color: var(--brand-2); color: var(--brand-2); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .dash-body { grid-template-columns: 1fr; }
  .donut-wrap { justify-self: center; }
}

