/* ================= 企业安环管理平台 · 营销官网（科技感深色主题） ================= */
:root {
  --bg: #040a14;
  --bg2: #071120;
  --line: rgba(56, 189, 248, 0.14);
  --card: rgba(13, 27, 46, 0.66);
  --card2: rgba(9, 20, 36, 0.9);
  --txt: #e6f1ff;
  --sub: #8aa2c0;
  --dim: #5b7291;
  --cyan: #22d3ee;
  --cyan2: #38bdf8;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #fb7185;
  --violet: #a78bfa;
  --grad: linear-gradient(92deg, #22d3ee 0%, #38bdf8 45%, #34d399 100%);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
/* 背景光晕 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 45% at 12% -5%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(55% 45% at 95% 12%, rgba(52, 211, 153, 0.12), transparent 60%),
    radial-gradient(70% 60% at 50% 115%, rgba(56, 130, 246, 0.13), transparent 65%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(75% 65% at 50% 25%, #000 10%, transparent 80%);
}

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgba(4, 10, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-size: 19px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .25), rgba(52, 211, 153, .2));
  border: 1px solid rgba(34, 211, 238, .4);
  box-shadow: 0 0 18px rgba(34, 211, 238, .25);
}
.brand b { font-size: 16px; letter-spacing: .5px; }
.brand small { display: block; font-size: 9px; color: var(--dim); letter-spacing: 2px; font-weight: 400; }
.navlinks { display: flex; align-items: center; gap: 4px; }
.navlinks a {
  padding: 8px 14px; font-size: 13.5px; color: var(--sub); border-radius: 8px;
  transition: .18s;
}
.navlinks a:hover { color: var(--txt); background: rgba(34, 211, 238, .08); }
.navlinks a.active { color: var(--cyan); background: rgba(34, 211, 238, .1); }
.btn { cursor: pointer; border: none; border-radius: 10px; font-size: 14px;
  transition: .2s; font-family: inherit; }
.btn-cta {
  padding: 10px 22px; color: #031018; font-weight: 700;
  background: var(--grad);
  box-shadow: 0 6px 24px rgba(34, 211, 238, .35);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(34, 211, 238, .45); }
.btn-ghost {
  padding: 9px 20px; color: var(--txt);
  background: rgba(34, 211, 238, .06);
  border: 1px solid rgba(34, 211, 238, .35);
}
.btn-ghost:hover { background: rgba(34, 211, 238, .14); }
.btn-lg { padding: 13px 30px; font-size: 15px; border-radius: 12px; }
.burger { display: none; background: none; border: none; color: var(--txt); font-size: 22px; cursor: pointer; }

/* ---------- 布局 ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
section { padding: 84px 0; position: relative; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sec-kicker {
  display: inline-block; font-size: 12px; letter-spacing: 3px; color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, .3); background: rgba(34, 211, 238, .06);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.sec-head h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: .5px; }
.sec-head p { color: var(--sub); margin-top: 10px; font-size: 14.5px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(60px, 9vw, 110px) 0 60px; text-align: center; position: relative; }
.hero h1 {
  font-size: clamp(30px, 5vw, 54px); line-height: 1.25; letter-spacing: 1px;
  background: linear-gradient(180deg, #f4fbff 10%, #7fd8ee 70%, #22d3ee);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 46px rgba(34, 211, 238, .2);
}
.hero .lead { margin: 20px auto 0; max-width: 780px; color: var(--sub); font-size: 16px; }
.hero .lead b { color: var(--cyan2); font-weight: 600; }
.hero-ctas { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badges { margin-top: 30px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-badges span {
  font-size: 12px; color: var(--sub); border: 1px solid var(--line);
  background: rgba(9, 20, 36, .6); padding: 6px 13px; border-radius: 999px;
}
.hero-glow { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); width: 560px; height: 300px;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .22), transparent); filter: blur(10px); z-index: -1; }

/* ---------- 玻璃卡片 ---------- */
.glass {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  transition: .22s;
}
.glass:hover { border-color: rgba(34, 211, 238, .4); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }

/* 双线总览 */
.lines { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.line-card { padding: 30px; position: relative; overflow: hidden; }
.line-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, #22d3ee, transparent 70%); }
.line-card.eco::before { background: linear-gradient(90deg, #34d399, transparent 70%); }
.line-card h3 { font-size: 21px; display: flex; align-items: center; gap: 10px; }
.line-card .desc { color: var(--sub); font-size: 13.5px; margin: 10px 0 16px; min-height: 60px; }
.line-card ul { list-style: none; }
.line-card li { font-size: 13px; color: var(--txt); padding: 6px 0; border-bottom: 1px dashed rgba(56, 189, 248, .1); }
.line-card li:last-child { border: none; }
.line-card li::before { content: "▸ "; color: var(--cyan2); }
.line-card.eco li::before { color: var(--green); }
.line-card .tagline { margin-top: 14px; font-size: 11.5px; color: var(--dim); }

/* 模块网格 */
.mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mod { padding: 22px 20px; }
.mod .ic { font-size: 30px; }
.mod h4 { margin-top: 12px; font-size: 15px; letter-spacing: .3px; }
.mod p { color: var(--sub); font-size: 12.5px; margin-top: 6px; min-height: 52px; }
.mod .fk { display: inline-block; font-size: 10px; color: var(--amber);
  border: 1px solid rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .08);
  padding: 1px 8px; border-radius: 999px; margin-top: 10px; }

/* 告警闭环 */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: stretch; }
.step { padding: 18px 14px; text-align: center; position: relative; }
.step .n { width: 34px; height: 34px; margin: 0 auto 10px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #031018;
  background: var(--grad); box-shadow: 0 0 16px rgba(34, 211, 238, .4); }
.step h5 { font-size: 13.5px; }
.step p { font-size: 11px; color: var(--sub); margin-top: 5px; line-height: 1.5; }
.steps .arrow { position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
  color: rgba(56, 189, 248, .4); font-size: 16px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(3, 1fr); }
  .steps .arrow:nth-of-type(3n) { display: none; } }

/* 旗舰 */
.flags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.flag { padding: 26px; border: 1px solid rgba(251, 191, 36, .25); position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(251, 191, 36, .08), var(--card) 55%); }
.flag .crown { position: absolute; top: -14px; right: -14px; font-size: 90px; opacity: .07; }
.flag h4 { font-size: 16px; }
.flag p { color: var(--sub); font-size: 12.5px; margin-top: 8px; }

/* 价值 */
.vals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.val { padding: 24px 20px; text-align: center; }
.val .ic { font-size: 28px; }
.val h4 { margin-top: 12px; font-size: 15px; }
.val p { color: var(--sub); font-size: 12.5px; margin-top: 8px; }
/* 本地部署六项特点：3 列 × 2 行居中分布 */
.deplist { grid-template-columns: repeat(3, 1fr); }
.deplist .val { padding: 26px 22px; }

/* 场景 */
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.scene { padding: 24px; }
.scene h4 { font-size: 15px; color: var(--cyan2); }
.scene p { color: var(--sub); font-size: 12.5px; margin-top: 8px; }

/* 部署 */
.dep { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dep-card { padding: 30px; }
.dep-card h4 { font-size: 18px; }
.dep-card ul { margin-top: 12px; list-style: none; }
.dep-card li { font-size: 13px; color: var(--sub); padding: 6px 0; }
.dep-card li b { color: var(--txt); font-weight: 600; }

/* CTA 横幅 */
.cta-band { text-align: center; padding: 64px 0 40px; }
.cta-band .inner { padding: 56px 30px; border-radius: 24px; position: relative; overflow: hidden;
  background: linear-gradient(130deg, rgba(34, 211, 238, .16), rgba(52, 211, 153, .1) 45%, rgba(56, 130, 246, .14));
  border: 1px solid rgba(34, 211, 238, .3); }
.cta-band h2 { font-size: clamp(22px, 3.2vw, 32px); }
.cta-band p { color: var(--sub); margin-top: 10px; font-size: 14.5px; }
.cta-band .btn-cta { margin-top: 26px; display: inline-block; }
.cta-band .subnote { margin-top: 14px; font-size: 11px; color: var(--dim); }

footer { border-top: 1px solid var(--line); padding: 36px 0 40px; color: var(--dim); font-size: 12px; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot a { color: var(--sub); }
.foot a:hover { color: var(--cyan); }

/* ---------- 订阅页 ---------- */
.sub-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: start; }
.sub-form { padding: 34px; }
.sub-form h3 { font-size: 21px; }
.sub-form .sub { color: var(--sub); font-size: 13px; margin: 6px 0 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--sub); margin-bottom: 6px; }
.field label b { color: var(--red); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; font-size: 14px; color: var(--txt);
  background: rgba(4, 10, 20, .7); border: 1px solid rgba(56, 189, 248, .22);
  font-family: inherit; outline: none; transition: .18s; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .12); }
.sub-aside { display: flex; flex-direction: column; gap: 16px; }
.sub-aside .glass { padding: 22px; }
.sub-aside h4 { font-size: 15px; margin-bottom: 8px; }
.sub-aside li { font-size: 12.5px; color: var(--sub); list-style: none; padding: 5px 0; }
.sub-aside li::before { content: "✓ "; color: var(--green); }
.alert { border-radius: 10px; padding: 13px 16px; font-size: 13.5px; margin: 4px 0 14px; display: none; }
.alert.ok { display: block; border: 1px solid rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .1); color: #a7f3d0; }
.alert.err { display: block; border: 1px solid rgba(251, 113, 133, .45); background: rgba(251, 113, 133, .1); color: #fecdd3; }

/* ---------- 动态页 ---------- */
.news-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-bottom: 26px; padding: 16px 20px; }
.news-bar .date { font-size: 13px; color: var(--sub); }
.news-bar .date b { color: var(--cyan2); font-size: 16px; }
.news-bar .auto { font-size: 11px; color: var(--dim); }
.stream { display: flex; flex-direction: column; gap: 16px; }
.article { padding: 24px 26px; cursor: pointer; position: relative; overflow: hidden; }
.article:hover { transform: translateY(-2px); }
.article::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #22d3ee, #34d399); opacity: .7; }
.article .art-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 10.5px; border-radius: 999px; padding: 2px 10px; letter-spacing: .5px; }
.chip-c { border: 1px solid rgba(34, 211, 238, .4); color: var(--cyan); background: rgba(34, 211, 238, .07); }
.chip-d { color: var(--dim); font-size: 11px; }
.article h3 { font-size: 18px; line-height: 1.55; margin: 8px 0; letter-spacing: .2px; }
.article h3:hover { color: var(--cyan2); }
.article p.abs { color: var(--sub); font-size: 13.5px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article .tags { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.article .tags span { font-size: 10.5px; color: var(--dim); border: 1px solid rgba(56, 189, 248, .16);
  padding: 1px 8px; border-radius: 6px; }
.article .more { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--cyan2); }
.article .more:hover { color: var(--cyan); }
.empty-tip { text-align: center; padding: 70px 20px; color: var(--dim); font-size: 13.5px; }
.spin { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(34, 211, 238, .25);
  border-top-color: var(--cyan); border-radius: 50%; animation: r .8s linear infinite; vertical-align: -3px; }
@keyframes r { to { transform: rotate(360deg); } }

/* 详情浮层 */
.ovl { position: fixed; inset: 0; z-index: 90; background: rgba(2, 6, 12, .8);
  backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 6vh 16px; }
.ovl.open { display: flex; }
.detail { max-width: 820px; width: 100%; padding: 34px 38px; }
.detail .d-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail h2 { font-size: 22px; line-height: 1.6; margin: 12px 0 8px; }
.detail .d-body { color: #c7d8ec; font-size: 15px; line-height: 2.05; white-space: pre-wrap; }
.detail .d-close { float: right; cursor: pointer; color: var(--sub); font-size: 22px; line-height: 1; }
.detail .d-close:hover { color: var(--txt); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .navlinks { display: none; position: absolute; top: 60px; right: 12px; left: 12px; flex-direction: column;
    background: rgba(6, 14, 26, .97); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 12px 14px; width: 100%; }
  .burger { display: block; }
  .lines, .dep, .sub-grid { grid-template-columns: 1fr; }
  .mods { grid-template-columns: repeat(2, 1fr); }
  .vals { grid-template-columns: repeat(2, 1fr); }
  .scenes, .flags { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mods, .vals { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 安环顾问点评卡片（动态页 SEO 原创点评） ---------- */
.expert-comment {
  margin: 12px 0 4px;
  padding: 12px 14px;
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-left: 3px solid var(--green);
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.06);
}
.expert-comment .ec-label {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 8px;
}
.expert-comment .ec-title { font-size: 14px; font-weight: 600; color: var(--txt); margin-bottom: 6px; line-height: 1.5; }
.expert-comment .ec-body { font-size: 13px; color: var(--sub); line-height: 1.75; margin: 0; }
.expert-comment .ec-sign { margin-top: 8px; font-size: 12px; color: var(--dim); text-align: right; }

/* ---------- 关键词导航（站内聚合） ---------- */
.seo-links { display: flex; flex-wrap: wrap; gap: 10px; }
.seo-links a {
  padding: 7px 14px; font-size: 13px; color: var(--sub);
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); transition: all .15s ease;
}
.seo-links a:hover { color: var(--cyan); border-color: rgba(34, 211, 238, .4); background: rgba(34, 211, 238, .08); }
