/* ============================================================
   哨兵软件官网 · 全站共享样式
   主题：body 上加 theme-medical（默认）/ theme-insurance / theme-project
   三套系统同盾形 LOGO，仅配色与盾内图案不同，页面 accent 色跟随产品
   ============================================================ */
:root {
  --navy-900: #0b1f33;
  --navy-800: #102a43;
  --navy-700: #16385a;
  --cyan:     #34e0ce;
  --ink:      #1d3557;
  --ink-2:    #486581;
  --ink-3:    #829ab1;
  --bg:       #f5f8fc;
  --line:     #e2ebf3;
  --radius:   14px;
  --shadow-lg: 0 30px 60px -18px rgba(11, 31, 51, .28);

  /* 医疗蓝（默认主题） */
  --accent:        #2e7be6;
  --accent-lt:     #5ba7ff;
  --accent-deep:   #2470d6;
  --accent-darker: #1f5fb8;
  --accent-stroke: #8cc4ff;
  --accent-glow:   rgba(46, 123, 230, .55);
  --accent-glow2:  rgba(46, 123, 230, .65);
  --accent-hl-bg:  rgba(46, 123, 230, .28);
  --accent-border: rgba(46, 123, 230, .45);
}
body.theme-insurance {
  /* 平安橙 */
  --accent:        #f56a00;
  --accent-lt:     #ffab5c;
  --accent-deep:   #d95c00;
  --accent-darker: #b34e00;
  --accent-stroke: #ffcf9e;
  --accent-glow:   rgba(245, 106, 0, .5);
  --accent-glow2:  rgba(245, 106, 0, .62);
  --accent-hl-bg:  rgba(245, 106, 0, .26);
  --accent-border: rgba(245, 106, 0, .45);
}
body.theme-project {
  /* 工装蓝（钢蓝） */
  --accent:        #44628a;
  --accent-lt:     #7fa3cc;
  --accent-deep:   #3a5477;
  --accent-darker: #2f4664;
  --accent-stroke: #a9c4e4;
  --accent-glow:   rgba(68, 98, 138, .55);
  --accent-glow2:  rgba(68, 98, 138, .65);
  --accent-hl-bg:  rgba(68, 98, 138, .3);
  --accent-border: rgba(68, 98, 138, .5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ============ 滚动显现动画 ============ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.8,.32,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ============ 顶部导航 ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.nav.scrolled, .nav.solid {
  background: rgba(11, 31, 51, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(11, 31, 51, .28);
}
.nav-inner { display: flex; align-items: center; height: 68px; }
.nav .wrap { max-width: 1720px; padding: 0 48px; }
.nav-logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.nav-logo img, .nav-logo svg { width: 34px; height: 34px; }
.nav-logo .t1 { font-size: 19px; font-weight: 800; letter-spacing: 3px; }
.nav-logo .t2 { font-size: 11px; color: #9fb8cc; letter-spacing: 1px; margin-top: -2px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 34px; }
.nav-links a.link { color: #c9d9e6; font-size: 15px; transition: color .2s; }
.nav-links a.link:hover { color: #fff; }
.nav-links a.link.active { color: #fff; font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -6px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 12px 26px -6px var(--accent-glow2); }
.btn-ghost { background: rgba(255,255,255,.08); color: #eaf2f9; border: 1px solid rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 480px at 88% -12%, rgba(52,224,206,.14), transparent 60%),
    radial-gradient(900px 520px at -8% 110%, var(--accent-hl-bg), transparent 55%),
    linear-gradient(158deg, var(--navy-900) 0%, var(--navy-800) 55%, #0d2f42 100%);
  color: #fff;
  padding: 158px 0 120px;
}
.hero::before { /* 网格底纹 */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero .wrap { max-width: 1720px; padding: 0 48px; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
@media (min-width: 1900px) {
  .hero h1 { font-size: 54px; }
  .hero .sub { font-size: 19px; }
  .hero-stats .num { font-size: 30px; }
  .hero-stats .lbl { font-size: 14px; }
}
@media (max-width: 1500px) {
  .hero .wrap, .nav .wrap { max-width: 1280px; padding: 0 32px; }
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 2px; font-weight: 600;
  color: var(--cyan);
  border: 1px solid rgba(52,224,206,.35); border-radius: 999px;
  padding: 6px 16px; margin-bottom: 26px;
  background: rgba(52,224,206,.07);
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.hero h1 { font-size: 46px; line-height: 1.24; font-weight: 800; letter-spacing: 1px; }
.hero h1 .hl { color: var(--accent-lt); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px;
  background: var(--accent-hl-bg); z-index: -1; border-radius: 2px;
}
.hero .sub { margin: 24px 0 36px; font-size: 17px; color: #b9cddd; max-width: 30em; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 52px; }
.hero-stats .num { font-size: 26px; font-weight: 800; color: #fff; }
.hero-stats .num i { font-style: normal; color: var(--cyan); }
.hero-stats .lbl { font-size: 13px; color: #8fa9bd; margin-top: 2px; }

/* ============ 软件窗框（截图外的应用窗口壳） ============ */
.frame {
  border-radius: 12px; overflow: hidden;
  background: #0f2438;
  border: 1px solid rgba(255,255,255,.14);
}
.frame-bar {
  height: 34px; display: flex; align-items: center; gap: 7px;
  padding: 0 14px;
  background: linear-gradient(180deg, #1d3d5c, #152f4a);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.frame-bar i:nth-child(1) { background: #ff5f57; }
.frame-bar i:nth-child(2) { background: #febc2e; }
.frame-bar i:nth-child(3) { background: #28c840; }
.frame-bar .addr {
  margin-left: 8px; font-size: 12px; color: #9fb8cc; letter-spacing: .5px;
  background: rgba(255,255,255,.08); padding: 3px 14px; border-radius: 6px;
  white-space: nowrap; overflow: hidden;
}
.frame img { border: none; box-shadow: none; border-radius: 0; width: 100%; }

/* Hero 截图：3D 倾角 + 双图层叠 + 悬浮 + 鼠标视差 */
.hero-shot { perspective: 1500px; }
.hero-shot-float { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-shot-tilt {
  transform: rotateY(-9deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform .18s ease-out;
  position: relative;
}
.hero-main { box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255,255,255,.04); position: relative; }
.hero-main::after { /* 玻璃反光 */
  content: ""; position: absolute; inset: 0; border-radius: 12px;
  background: linear-gradient(115deg, rgba(255,255,255,.12) 0%, transparent 32%);
  pointer-events: none;
}
.hero-sub {
  position: absolute; width: 52%; right: -4%; bottom: -8%; left: auto;
  transform: translateZ(80px);
  box-shadow: 0 40px 70px -20px rgba(0,0,0,.55);
}
.hero-pulse { position: absolute; left: 0; right: 0; bottom: 60px; opacity: .12; pointer-events: none; }

/* ============ 门户首页 Hero：三盾徽标卡组（后二前一扇形层叠） ============ */
.trio { position: relative; height: 460px; }
.trio-card {
  position: absolute; left: 50%; top: 50%;
  width: 240px; padding: 30px 22px 24px;
  border-radius: 18px; text-align: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 34px 60px -18px rgba(0,0,0,.5);
  transition: transform .4s cubic-bezier(.22,.8,.32,1), box-shadow .4s, border-color .4s;
}
.trio-card img { width: 88px; height: 88px; margin: 0 auto 16px; filter: drop-shadow(0 12px 22px rgba(0,0,0,.4)); animation: floaty 7s ease-in-out infinite; }
.trio-2 img { animation-delay: 1.2s; }
.trio-3 img { animation-delay: 2.4s; }
.trio-card .name { font-size: 16.5px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.trio-card .tag { font-size: 12.5px; color: #9fb8cc; margin-top: 6px; letter-spacing: .5px; }
.trio-card .go { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--cyan); letter-spacing: 1px; }
.trio-1 { transform: translate(-126%, -57%) rotate(-7deg); z-index: 1; }
.trio-2 { transform: translate(-50%, -50%) scale(1.1); z-index: 3; }
.trio-3 { transform: translate(26%, -43%) rotate(7deg); z-index: 2; }
.trio-1:hover { transform: translate(-126%, -61%) rotate(-4deg); z-index: 4; }
.trio-2:hover { transform: translate(-50%, -54%) scale(1.13); z-index: 4; }
.trio-3:hover { transform: translate(26%, -47%) rotate(4deg); z-index: 4; }
.trio-card:hover { border-color: rgba(255,255,255,.4); box-shadow: 0 44px 80px -18px rgba(0,0,0,.62); }

/* ============ 通用节标题 ============ */
section { padding: 96px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.sec-tag { font-size: 13px; letter-spacing: 3px; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.sec-head h2 { font-size: 32px; font-weight: 800; letter-spacing: 1px; }
.sec-head p { margin-top: 14px; color: var(--ink-2); font-size: 16px; }

/* ============ 卖点卡片 ============ */
.features { background: #fff; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s cubic-bezier(.22,.8,.32,1), box-shadow .3s, border-color .3s;
}
.feat:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px -16px rgba(11,31,51,.18);
  border-color: var(--accent-border);
}
.feat .ico {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-darker));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 20px -8px var(--accent-glow);
}
.feat .ico svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feat p { font-size: 14.5px; color: var(--ink-2); }

/* ============ 门户首页：产品矩阵大卡 ============ */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.prod {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 40px 34px 30px; overflow: hidden;
  transition: transform .35s cubic-bezier(.22,.8,.32,1), box-shadow .35s, border-color .35s;
}
.prod::before { /* 顶部 accent 条 */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--pac-lt), var(--pac));
}
.prod.medical   { --pac: #2e7be6; --pac-lt: #5ba7ff; --pac-glow: rgba(46,123,230,.16); }
.prod.insurance { --pac: #f56a00; --pac-lt: #ffab5c; --pac-glow: rgba(245,106,0,.15); }
.prod.project   { --pac: #44628a; --pac-lt: #7fa3cc; --pac-glow: rgba(68,98,138,.16); }
.prod:hover {
  transform: translateY(-10px);
  border-color: var(--pac-lt);
  box-shadow: 0 30px 56px -18px rgba(11,31,51,.22), 0 0 0 4px var(--pac-glow);
}
.prod .p-logo { width: 76px; height: 76px; margin-bottom: 22px; filter: drop-shadow(0 10px 18px var(--pac-glow)); }
.prod h3 { font-size: 21px; font-weight: 800; letter-spacing: .5px; }
.prod .p-en { font-size: 11.5px; letter-spacing: 2px; color: var(--ink-3); text-transform: uppercase; margin-top: 4px; }
.prod .p-tag { margin: 14px 0 18px; font-size: 14.5px; color: var(--ink-2); }
.prod ul { list-style: none; margin-bottom: 24px; }
.prod li {
  position: relative; padding-left: 22px;
  font-size: 13.8px; color: var(--ink-2); margin-top: 9px;
}
.prod li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 12px; height: 7px;
  border-left: 2.4px solid var(--pac); border-bottom: 2.4px solid var(--pac);
  transform: rotate(-48deg); border-radius: 1px;
}
.prod .p-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--pac); letter-spacing: .5px;
}
.prod .p-link svg { width: 17px; height: 17px; stroke: var(--pac); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.prod:hover .p-link svg { transform: translateX(5px); }

/* ============ 界面截图：3D 倾角画廊 ============ */
.gallery-sec { background: linear-gradient(180deg, var(--bg), #eaf1f8); overflow: hidden; }
/* 画廊区域加宽：整窗截图信息密度高，窄卡片看不清内容 */
.gallery-sec .wrap { max-width: 1640px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; perspective: 1800px; align-items: start; }
.shot {
  position: relative; cursor: zoom-in;
  border-radius: 12px;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.22,.8,.32,1), box-shadow .55s;
}
.gallery .shot:nth-child(odd)  { transform: rotateY(11deg)  rotateX(3deg); box-shadow: -24px 30px 50px -20px rgba(11,31,51,.30); }
.gallery .shot:nth-child(even) { transform: rotateY(-11deg) rotateX(3deg); box-shadow: 24px 30px 50px -20px rgba(11,31,51,.30); margin-top: 44px; }
.gallery .shot:hover {
  transform: rotateY(0) rotateX(0) translateY(-6px) scale(1.025);
  box-shadow: 0 40px 70px -22px rgba(11,31,51,.42);
  z-index: 5;
}
.shot .frame { border-color: rgba(16,42,67,.14); }
.shot .cap {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(11,31,51,.78); color: #fff;
  backdrop-filter: blur(6px);
  font-size: 13px; font-weight: 600; letter-spacing: 1px;
  padding: 7px 16px; border-radius: 999px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s, transform .35s;
}
.shot:hover .cap { opacity: 1; transform: none; }
.shot::after {
  content: ""; position: absolute; inset: 0; border-radius: 12px;
  background: linear-gradient(115deg, rgba(255,255,255,.16) 0%, transparent 30%);
  pointer-events: none;
}

/* ============ 功能清单 ============ */
.func-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 40px; }
.func-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 10px; border-bottom: 1px solid var(--line);
}
.func-item svg { flex: none; width: 20px; height: 20px; margin-top: 4px; stroke: var(--accent); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.func-item .t { font-weight: 700; font-size: 15.5px; }
.func-item .d { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }

/* ============ 下载区 ============ */
.download {
  background:
    radial-gradient(800px 400px at 85% 0%, rgba(52,224,206,.10), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-800));
  color: #fff; text-align: center;
}
.download h2 { font-size: 32px; font-weight: 800; }
.download .lead { color: #a9c0d3; margin: 16px auto 40px; max-width: 34em; }
.dl-card {
  display: inline-flex; align-items: center; gap: 36px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px; padding: 36px 48px;
}
.dl-info { text-align: left; }
.dl-info .name { font-size: 19px; font-weight: 700; }
.dl-info .meta { font-size: 13.5px; color: #8fa9bd; margin-top: 8px; line-height: 1.8; }
.dl-info .meta b { color: #c9d9e6; font-weight: 600; }
.btn-dl { font-size: 17px; padding: 16px 42px; border-radius: 10px; }
.dl-note { margin-top: 26px; font-size: 13px; color: #7b95aa; }

/* ============ 联系区 ============ */
.contact-inner { display: flex; align-items: center; justify-content: center; gap: 72px; }
.contact-txt h2 { font-size: 30px; font-weight: 800; margin-bottom: 16px; }
.contact-txt p { color: var(--ink-2); font-size: 16px; max-width: 26em; }
.contact-txt .hint { margin-top: 22px; font-size: 14px; color: var(--ink-3); }
.qr-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 28px; text-align: center;
  box-shadow: 0 20px 44px -18px rgba(11,31,51,.16);
  transition: transform .35s cubic-bezier(.22,.8,.32,1), box-shadow .35s;
}
.qr-card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 32px 60px -20px rgba(11,31,51,.26); }
.qr-card img { width: 220px; height: 220px; border-radius: 10px; }
.qr-card .cap { margin-top: 16px; font-weight: 700; font-size: 15px; letter-spacing: 1px; }
.qr-card .sub { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* ============ 页脚 ============ */
footer {
  background: var(--navy-900); color: #7b95aa;
  padding: 34px 0; font-size: 13.5px; text-align: center;
}
footer .brand { color: #c9d9e6; font-weight: 600; }
footer .beian { color: #7b95aa; text-decoration: none; }
footer .beian:hover { color: #c9d9e6; }
footer .f-links a { color: #7b95aa; margin: 0 10px; transition: color .2s; }
footer .f-links a:hover { color: #c9d9e6; }

/* ============ 灯箱 ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 20, 33, .88);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 92vw; max-height: 88vh; border-radius: 10px;
  box-shadow: 0 40px 100px rgba(0,0,0,.5);
  transform: scale(.94); transition: transform .3s;
}
.lightbox.open img { transform: scale(1); }
.lightbox .lb-cap {
  position: absolute; bottom: 26px; left: 0; right: 0;
  text-align: center; color: #c9d9e6; font-size: 14px; letter-spacing: 1px;
}

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero h1 { font-size: 34px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .func-list { grid-template-columns: 1fr 1fr; }
  .prod-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .trio { height: auto; display: flex; flex-direction: column; gap: 22px; align-items: center; }
  .trio-card { position: static; transform: none !important; width: 100%; max-width: 340px; }
  .contact-inner { flex-direction: column; gap: 44px; text-align: center; }
  .contact-txt p { margin: 0 auto; }
  .nav-links a.link { display: none; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .shot:nth-child(even) { margin-top: 0; }
  .gallery .shot:nth-child(odd),
  .gallery .shot:nth-child(even) { transform: none; }
  .hero-sub { display: none; }
  .hero-shot-tilt { transform: none; }
  .feat-grid, .func-list { grid-template-columns: 1fr; }
  .dl-card { flex-direction: column; gap: 24px; padding: 32px 28px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-shot-float, .trio-card img { animation: none; }
  * { scroll-behavior: auto; }
}
