/* ==========================================================================
   合肥恺明信息科技 · 官网样式
   纯静态、零外链、系统字体栈、支持深浅色
   ========================================================================== */

:root {
  /* 调色板 —— 科技蓝主色 */
  --brand:        #2563eb;
  --brand-600:    #1d4ed8;
  --brand-700:    #1e40af;
  --brand-soft:   #eff4ff;
  --accent:       #06b6d4;
  --grad:         linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --grad-soft:    linear-gradient(135deg, #eff4ff 0%, #ecfeff 100%);

  --ink:          #0f172a;
  --ink-2:        #334155;
  --ink-3:        #64748b;
  --line:         #e5e9f0;
  --bg:           #ffffff;
  --bg-2:         #f7f9fc;
  --card:         #ffffff;

  --radius:       16px;
  --radius-sm:    10px;
  --radius-lg:    24px;
  --shadow:       0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lg:    0 12px 40px rgba(37,99,235,.16);

  --maxw:         1160px;
  --nav-h:        68px;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
          "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

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

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

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

/* --------------------------------------------------------------------------
   通用小组件
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-lg); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: rgba(255,255,255,.16); color:#fff; border-color: rgba(255,255,255,.4); }
.btn-light:hover { background: rgba(255,255,255,.26); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section { padding: 92px 0; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 4vw, 40px); }
.section-head p { color: var(--ink-3); font-size: 17px; margin-top: 14px; }

/* --------------------------------------------------------------------------
   导航
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15,23,42,.05); }
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand .logo { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; border-radius: 2px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 80px;
  background:
    radial-gradient(900px 500px at 85% -10%, #e0ecff 0%, transparent 60%),
    radial-gradient(700px 500px at 5% 10%, #e6fbff 0%, transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; }
.hero h1 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 22px; font-size: 18px; color: var(--ink-2); max-width: 540px; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { margin-top: 44px; display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats .num { font-size: 28px; font-weight: 800; color: var(--ink); }
.hero-stats .lbl { font-size: 13px; color: var(--ink-3); }

/* 手机样机 */
.mock-wrap { display: flex; justify-content: center; position: relative; }
.mock-wrap::before {
  content: ""; position: absolute; inset: 8% 10%;
  background: var(--grad); filter: blur(48px); opacity: .28; border-radius: 50%;
}
.phone {
  position: relative;
  width: 286px; aspect-ratio: 300 / 620;
  /* 钛金属边框质感：斜向高光 + 深色主体 */
  background: linear-gradient(145deg, #3a4459 0%, #10151f 30%, #0b0f18 60%, #39435a 100%);
  border-radius: 48px; padding: 6px;
  box-shadow: 0 30px 60px rgba(15,23,42,.32);
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 42px; overflow: hidden;
  background: #fff; position: relative;
  box-shadow: inset 0 0 0 2px #05070d; /* 内圈黑边，屏幕与边框之间 */
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
/* 灵动岛 Dynamic Island */
.phone::after {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 82px; height: 24px; background: #04060c; border-radius: 999px; z-index: 3;
}
/* 侧边实体按键 */
.phone .side-btn { position: absolute; background: #232c3d; z-index: 1; }
.phone .side-btn.pw { right: -2px; top: 152px; width: 3px; height: 62px; border-radius: 0 3px 3px 0; }
.phone .side-btn.vu { left: -2px; top: 118px; width: 3px; height: 42px; border-radius: 3px 0 0 3px; }
.phone .side-btn.vd { left: -2px; top: 168px; width: 3px; height: 42px; border-radius: 3px 0 0 3px; }

/* --------------------------------------------------------------------------
   核心亮点
   -------------------------------------------------------------------------- */
.highlights { background: var(--bg-2); }
.highlight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.hl-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.hl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hl-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--brand); }
.hl-card h3 { font-size: 18px; }
.hl-card p { color: var(--ink-3); font-size: 14.5px; margin-top: 8px; }

/* --------------------------------------------------------------------------
   产品功能
   -------------------------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: border-color .2s, transform .2s;
}
.feat:hover { border-color: var(--brand); transform: translateY(-3px); }
.feat .ic { width: 44px; height: 44px; color: var(--brand); margin-bottom: 14px; }
.feat h3 { font-size: 16.5px; }
.feat p { color: var(--ink-3); font-size: 14px; margin-top: 7px; }

/* 图文交替展示 */
.showcase { margin-top: 60px; display: grid; gap: 40px; }
.show-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.show-row.reverse .show-media { order: 2; }
.show-text .eyebrow { margin-bottom: 12px; }
.show-text h3 { font-size: clamp(22px, 3vw, 30px); }
.show-text p { color: var(--ink-2); margin-top: 14px; font-size: 16px; }
.show-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.show-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 15px; }
.show-list li svg { flex: none; color: var(--brand); margin-top: 3px; }
.show-media img { border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; }

/* --------------------------------------------------------------------------
   解决方案 / 行业
   -------------------------------------------------------------------------- */
.solutions { background: var(--bg-2); }
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.industry {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.industry:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.industry img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.industry .body { padding: 20px 20px 24px; }
.industry h3 { font-size: 18px; }
.industry .pain { color: var(--ink-3); font-size: 14px; margin-top: 8px; }
.industry .cap { color: var(--brand); font-size: 13px; margin-top: 12px; font-weight: 600; }

/* --------------------------------------------------------------------------
   关于我们
   -------------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-text h2 { font-size: clamp(26px, 4vw, 38px); }
.about-text p { color: var(--ink-2); margin-top: 18px; font-size: 16px; }
.about-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.about-points li { display: flex; gap: 12px; align-items: flex-start; }
.about-points .dot { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--grad-soft);
  color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.about-points b { display: block; }
.about-points span { color: var(--ink-3); font-size: 14.5px; }
.about-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-visual .stat {
  background: var(--grad); color: #fff; border-radius: var(--radius); padding: 26px 22px;
  box-shadow: var(--shadow-lg);
}
.about-visual .stat:nth-child(even) { background: var(--ink); }
.about-visual .stat .n { font-size: 30px; font-weight: 800; }
.about-visual .stat .t { opacity: .85; font-size: 14px; margin-top: 4px; }

/* --------------------------------------------------------------------------
   联系我们 CTA
   -------------------------------------------------------------------------- */
.contact { background: var(--ink); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.contact h2 { font-size: clamp(26px, 4vw, 40px); }
.contact .sub { color: #94a3b8; margin-top: 14px; font-size: 16px; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: center; font-size: 15.5px; }
.contact-list .ic { flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #7dd3fc; }
.contact-list a:hover { color: #7dd3fc; }
.contact-card {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 28px; text-align: center;
}
.contact-card img { width: 176px; height: 176px; margin: 0 auto 16px; border-radius: 12px; }
.contact-card b { font-size: 17px; }
.contact-card p { color: var(--ink-3); font-size: 14px; margin-top: 6px; }
.contact-card .btn { margin-top: 18px; width: 100%; justify-content: center; }

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.footer { background: #0b1220; color: #94a3b8; padding: 56px 0 28px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand .logo { filter: brightness(0) invert(1); opacity: .95; }
.footer .desc { max-width: 320px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; }
.footer-bottom a:hover { color: #fff; }

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

/* --------------------------------------------------------------------------
   六大核心优势
   -------------------------------------------------------------------------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.adv-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.adv-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%;
  background: var(--grad); opacity: 0; transition: opacity .2s;
}
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.adv-card:hover::before { opacity: 1; }
.adv-card .ic {
  width: 52px; height: 52px; border-radius: 14px; background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center; color: var(--brand); margin-bottom: 18px;
}
.adv-card h3 { font-size: 19px; }
.adv-card p { color: var(--ink-3); font-size: 15px; margin-top: 10px; }
.adv-card .tag { display: inline-block; margin-top: 14px; font-size: 12.5px; font-weight: 600;
  color: var(--brand); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; }

/* --------------------------------------------------------------------------
   能力全景（分类功能总览）
   -------------------------------------------------------------------------- */
.capabilities { background: var(--bg-2); }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap-cat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.cap-cat .cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cap-cat .cat-head .ic {
  width: 40px; height: 40px; border-radius: 11px; background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center; color: var(--brand); flex: none;
}
.cap-cat h3 { font-size: 17px; }
.cap-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cap-tags span {
  font-size: 13px; color: var(--ink-2); background: var(--bg-2);
  border: 1px solid var(--line); padding: 5px 11px; border-radius: 8px;
}

/* --------------------------------------------------------------------------
   四步快速上线
   -------------------------------------------------------------------------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow);
}
.step .no {
  width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800;
  margin-bottom: 16px; box-shadow: var(--shadow-lg);
}
.step h3 { font-size: 17px; }
.step p { color: var(--ink-3); font-size: 14px; margin-top: 8px; }
.step:not(:last-child)::after {
  content: "→"; position: absolute; right: -16px; top: 44px; color: var(--brand);
  font-size: 20px; font-weight: 700; z-index: 1;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .highlight-grid, .feature-grid, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid, .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 860px) {
  .hero-grid, .show-row, .show-row.reverse .show-media, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .show-row.reverse .show-media { order: 0; }
  .mock-wrap { order: -1; margin-bottom: 8px; }
  .about-visual { max-width: 420px; }

  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 4px; background: #fff; padding: 14px 24px 22px;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 30px rgba(15,23,42,.08);
  }
  .nav-links.open a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .highlight-grid, .feature-grid, .industry-grid { grid-template-columns: 1fr; }
  .adv-grid, .cap-grid, .steps-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

/* --------------------------------------------------------------------------
   深色模式（跟随系统）
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6edf7; --ink-2: #c2cddd; --ink-3: #93a1b5;
    --line: #223049; --bg: #0b1220; --bg-2: #0e1729; --card: #111b2e;
    --brand-soft: #17233d; --grad-soft: linear-gradient(135deg,#152238 0%,#0f2231 100%);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }
  .nav { background: rgba(11,18,32,.82); }
  .nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.4); }
  .nav .brand .logo { filter: brightness(0) invert(1); opacity: .95; }
  .btn-ghost { background: var(--card); }
  .nav-links.open { background: var(--card); }
  .hero { background:
    radial-gradient(900px 500px at 85% -10%, #14233f 0%, transparent 60%),
    radial-gradient(700px 500px at 5% 10%, #0e2733 0%, transparent 55%), var(--bg); }
  .nav-toggle span { background: var(--ink); }
}
