/* =========================================================
   智维 ZWOPS 官网 —— 设计系统 / 全局样式
   纯静态、零外部依赖、不引 CDN。响应式，浅色主题。
   ========================================================= */

:root {
  --brand: #0b3d91;          /* 主品牌深蓝 */
  --brand-600: #114aa8;
  --brand-700: #0a2f6e;
  --accent: #00a3a3;         /* 科技青绿 */
  --accent-soft: #e3f6f6;
  --ink: #16202b;            /* 正文 */
  --muted: #5b6b7b;          /* 次要文字 */
  --line: #e3e8ef;          /* 分隔线 */
  --bg: #ffffff;
  --bg-soft: #f4f7fb;       /* 浅灰蓝底 */
  --bg-deep: #0a1b2e;       /* 深底（页脚/Hero） */
  --bg-deep-2: #0f2740;
  --ok: #1f9d55;
  --warn: #d98a00;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(11, 61, 145, 0.08);
  --shadow-lg: 0 18px 48px rgba(11, 61, 145, 0.16);
  --maxw: 1180px;
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
          "Hiragino Sans GB", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }

img, svg { max-width: 100%; display: block; }

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: .3px;
}
.brand .logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 16px;
  box-shadow: var(--shadow);
}
.brand small { display:block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 1px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 9px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--brand); }
.nav-links a.active { color: var(--brand); background: var(--accent-soft); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #fff !important;
  padding: 9px 16px !important;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.nav-cta:hover { background: var(--brand-600); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 11px; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: .25s;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section.deep { background: var(--bg-deep); color: #e9f1fb; }
.section.deep h2, .section.deep h3 { color: #fff; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 30px; margin: 0 0 12px; line-height: 1.3; }
.section-head p { color: var(--muted); margin: 0; font-size: 16px; }
.section.deep .section-head p { color: #aebfd2; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 11px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: .2s;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-600); color:#fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.05); color:#fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.section.deep .btn-ghost { border-color: rgba(255,255,255,.3); color:#fff; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(0,163,163,.18), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(11,61,145,.22), transparent 55%),
    var(--bg-deep);
  color: #eaf2fc;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 400px at 70% 20%, #000, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding: 92px 0 86px;
}
.hero h1 { font-size: 42px; line-height: 1.22; margin: 14px 0 16px; color: #fff; }
.hero h1 .hl { color: var(--accent); }
.hero p.lead { font-size: 18px; color: #c4d4e8; max-width: 560px; margin: 0 0 28px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-badges span {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: #d6e4f4; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px; padding: 26px; backdrop-filter: blur(6px);
}
.hero-card h3 { color:#fff; margin: 0 0 16px; font-size: 17px; }
.hero-card .kv { display:flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.14); font-size: 14px; }
.hero-card .kv:last-child { border-bottom: 0; }
.hero-card .kv b { color: var(--accent); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.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: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: .22s; height: 100%;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #cdd9ea; }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 22px; margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- 统计 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 14px; }
.stat .num { font-size: 38px; font-weight: 900; color: var(--accent); line-height: 1; }
.section.deep .stat .num { color: #fff; }
.stat .lbl { color: var(--muted); margin-top: 8px; font-size: 14px; }
.section.deep .stat .lbl { color: #aebfd2; }

/* ---------- 资质/标签 ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.badge {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; font-weight: 700; color: var(--ink); min-width: 180px;
}
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.badge small { display:block; font-weight: 500; color: var(--muted); font-size: 12px; }

/* ---------- 案例 ---------- */
.case {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; display: flex; flex-direction: column; transition: .22s;
}
.case:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.case .top { height: 92px; background: linear-gradient(135deg, var(--brand), var(--brand-700)); position: relative; }
.case .top .tag {
  position: absolute; left: 18px; bottom: -13px; background: #fff; color: var(--brand);
  font-weight: 800; font-size: 12px; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow);
}
.case .body { padding: 24px 20px 22px; flex: 1; }
.case .body h3 { margin: 4px 0 8px; font-size: 17px; }
.case .body p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.case .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.case .meta span { font-size: 12px; background: var(--bg-soft); color: var(--muted); padding: 4px 10px; border-radius: 8px; }

/* ---------- 产品页 ---------- */
.arch { background: var(--bg-deep); border-radius: 18px; padding: 28px; color:#cdddee; }
.arch svg { width: 100%; height: auto; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list li .ck { color: var(--accent); font-weight: 900; flex: none; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.spec-table th { color: var(--muted); font-weight: 600; width: 200px; background: var(--bg-soft); }
.spec-table tr:hover td { background: #fafcff; }

/* ---------- 文档 iframe 页 ---------- */
.docs-wrap { height: calc(100vh - var(--nav-h)); }
.docs-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.docs-fallback {
  display: none; height: 100%; align-items: center; justify-content: center; text-align: center;
  background: var(--bg-soft); padding: 30px;
}
.docs-fallback.show { display: flex; }
.docs-fallback .box { max-width: 520px; }
.docs-fallback .ico { font-size: 46px; margin-bottom: 12px; }
.docs-fallback h3 { margin: 0 0 10px; }
.docs-fallback p { color: var(--muted); }
.docs-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 22px; background: var(--bg-soft); border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.docs-bar a { font-weight: 700; }

/* ---------- 下载页 ---------- */
.dl-group { margin-bottom: 40px; }
.dl-group > h3 { font-size: 20px; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.dl-group > h3 .pill { background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.dl-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: .2s;
}
.dl-card:hover { box-shadow: var(--shadow); border-color: #cdd9ea; }
.dl-card .fico {
  width: 50px; height: 50px; border-radius: 12px; flex: none; display: grid; place-items: center;
  font-weight: 900; font-size: 13px; color: #fff; background: var(--brand);
}
.dl-card .fico.os { background: #2b6cb0; }
.dl-card .fico.tool { background: var(--accent); }
.dl-card .fico.db { background: #6b46c1; }
.dl-card .fico.virt { background: #2f855a; }
.dl-card .meta { flex: 1; min-width: 0; }
.dl-card .meta h4 { margin: 0 0 4px; font-size: 16px; }
.dl-card .meta p { margin: 0; color: var(--muted); font-size: 13.5px; }
.dl-card .info { text-align: right; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.dl-card .info .sz { font-weight: 700; color: var(--ink); }
.dl-card .dl-btn {
  flex: none; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; font-size: 14px;
}
.dl-card .dl-btn:hover { background: var(--brand-600); color:#fff; }
.dl-empty { color: var(--muted); padding: 20px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

/* 下载分类筛选 */
.dl-filterbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.dl-filter {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 9px 18px; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: 14px;
  transition: .18s;
}
.dl-filter:hover { border-color: var(--brand); color: var(--brand); }
.dl-filter.active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: var(--shadow); }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-deep); color: #aebfd2; padding: 54px 0 24px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer a { color: #aebfd2; display: block; padding: 4px 0; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer .about p { color: #93a7bf; font-size: 14px; }
.footer .copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 18px; font-size: 13px; color: #7e92ac; text-align: center; }

/* ---------- 面包屑/小标题 ---------- */
.page-hero { background: var(--bg-deep); color: #eaf2fc; padding: 56px 0 48px; }
.page-hero h1 { color: #fff; font-size: 34px; margin: 6px 0 10px; }
.page-hero p { color: #b9cbe1; margin: 0; max-width: 720px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding: 64px 0; }
  .hero h1 { font-size: 34px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--line); padding: 8px 14px 14px;
    display: none; box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; }
  .nav-cta { margin: 8px 0 0; justify-content: center; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 25px; }
  .hero h1 { font-size: 28px; }
  .dl-card { flex-wrap: wrap; }
  .dl-card .info { text-align: left; }
}

/* ===== 导航登录态菜单 ===== */
.nav-auth {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}
.nav-auth .nav-user {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-auth .nav-admin {
  font-style: normal;
  font-size: 11px;
  background: #e8f0ff;
  color: #1d4ed8;
  padding: 1px 7px;
  border-radius: 999px;
}
.nav-auth .nav-login {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 7px 14px;
  border-radius: 9px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-auth .nav-login:hover { opacity: .92; }
.nav-auth .nav-logout {
  font-size: 13px;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 9px;
  cursor: pointer;
}
.nav-auth .nav-logout:hover { background: var(--accent-soft); }
@media (max-width: 680px) {
  .nav-auth {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    justify-content: center;
  }
}
