/* ============================================================
   海若己 HaloKey — 官网正式框架样式
   主题：深海蓝（信任/专业）+ 鎏金（高端/人脉）
   ============================================================ */
:root {
  --navy-900: #071a2f;
  --navy-800: #0a2540;
  --navy-700: #103a5c;
  --navy-600: #1b4f7a;
  --gold-500: #c9a227;
  --gold-400: #d8b84a;
  --gold-300: #e7d28a;
  --ink: #1a2433;
  --ink-soft: #4a5568;
  --paper: #ffffff;
  --paper-2: #f5f7fa;
  --paper-3: #eef2f7;
  --line: #dce3ec;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(7, 26, 47, 0.08);
  --shadow-lg: 0 18px 50px rgba(7, 26, 47, 0.14);
  --maxw: 1180px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans JP", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tint { background: var(--paper-2); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2px;
  color: var(--gold-500); font-weight: 700; text-transform: uppercase; margin-bottom: 12px;
}
h2.title { font-size: clamp(26px, 3.4vw, 38px); color: var(--navy-800); font-weight: 800; line-height: 1.25; }
.section-head p.lead { margin-top: 16px; color: var(--ink-soft); font-size: 17px; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 26, 47, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 19px; letter-spacing: .5px; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 8px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-800));
  display: grid; place-items: center; color: var(--gold-400); font-size: 18px;
  border: 1px solid rgba(216,184,74,.4);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: rgba(255,255,255,.82); font-size: 15px; padding: 8px 14px; border-radius: 8px;
  transition: background .2s, color .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; color: rgba(255,255,255,.7); cursor: pointer;
  font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; transition: all .2s;
  font-family: inherit;
}
.lang-switch button.active { background: var(--gold-500); color: var(--navy-900); }
.btn-cta {
  background: var(--gold-500); color: var(--navy-900) !important; font-weight: 700;
  padding: 9px 18px !important; border-radius: 999px; font-size: 14px;
}
.btn-cta:hover { background: var(--gold-400) !important; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201,162,39,.18), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700) 70%, var(--navy-600));
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(transparent, var(--paper)); opacity: .0;
}
.hero-inner { padding: 96px 0 104px; position: relative; z-index: 2; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  color: var(--gold-300); border: 1px solid rgba(216,184,74,.45); padding: 7px 16px; border-radius: 999px;
  background: rgba(216,184,74,.08); margin-bottom: 26px;
}
.hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.18; font-weight: 800; max-width: 880px; }
.hero p.sub { margin-top: 22px; font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,.86); max-width: 700px; }
.hero-cta { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-cta a { padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: 16px; transition: transform .15s, box-shadow .2s; }
.hero-cta a:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 10px 26px rgba(201,162,39,.35); }
.btn-ghost { border: 1px solid rgba(255,255,255,.4); color: #fff; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar .num {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600)); color: var(--gold-300);
  font-weight: 800; font-size: 20px; margin-bottom: 18px;
}
.pillar h3 { color: var(--navy-800); font-size: 20px; margin-bottom: 10px; }
.pillar p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about-lead { font-size: 22px; color: var(--navy-800); font-weight: 700; margin-bottom: 18px; line-height: 1.4; }
.about-body { color: var(--ink-soft); font-size: 16.5px; }
.matrix-card {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-600)); color: #fff;
  border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow-lg);
}
.matrix-card h4 { color: var(--gold-300); font-size: 16px; letter-spacing: 1px; margin-bottom: 20px; }
.matrix-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.matrix-tags span {
  background: rgba(255,255,255,.08); border: 1px solid rgba(216,184,74,.35);
  padding: 8px 15px; border-radius: 999px; font-size: 15px;
}

/* ---------- Card grid (domains & solutions) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold-400); }
.card .ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--paper-3); color: var(--navy-700); font-weight: 800; font-size: 18px;
}
.card h3 { color: var(--navy-800); font-size: 18px; margin-bottom: 9px; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Network ---------- */
.network-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hub {
  border-radius: var(--radius); padding: 36px 32px; color: #fff; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hub--sh { background: linear-gradient(150deg, var(--navy-800), var(--navy-600)); }
.hub--sg { background: linear-gradient(150deg, var(--navy-700), #14506e); }
.hub .pin { font-size: 13px; color: var(--gold-300); letter-spacing: 1px; font-weight: 700; }
.hub h3 { font-size: 24px; margin: 10px 0 14px; }
.hub p { color: rgba(255,255,255,.85); font-size: 16px; }
.hub .flow {
  margin-top: 22px; padding-top: 18px; border-top: 1px dashed rgba(255,255,255,.25);
  font-size: 14px; color: rgba(255,255,255,.7);
}

/* ---------- Insights ---------- */
.insight-box {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-sm); padding: 28px 30px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto;
  text-align: center;
}
.insight-box p { color: var(--ink-soft); font-size: 16px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; color: var(--navy-800); font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; color: var(--ink); background: var(--paper-2); transition: border .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201,162,39,.15); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.btn-submit {
  width: 100%; background: var(--gold-500); color: var(--navy-900); border: 0; cursor: pointer;
  font-weight: 700; font-size: 16px; padding: 14px; border-radius: var(--radius-sm); font-family: inherit;
  transition: background .2s, transform .15s;
}
.btn-submit:hover { background: var(--gold-400); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 14px; text-align: center; }
.form-ok { display: none; background: #eaf7ee; border: 1px solid #bce3c8; color: #1f7a3d; padding: 14px; border-radius: var(--radius-sm); margin-top: 16px; font-size: 15px; text-align: center; }
.form-ok.show { display: block; }
.contact-info { background: linear-gradient(160deg, var(--navy-800), var(--navy-600)); color: #fff; border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow-lg); }
.contact-info h3 { color: var(--gold-300); font-size: 16px; letter-spacing: 1px; margin-bottom: 18px; }
.contact-info .row { margin-bottom: 16px; }
.contact-info .row .k { font-size: 13px; color: rgba(255,255,255,.6); }
.contact-info .row .v { font-size: 16px; }
.compliance-note {
  margin-top: 22px; padding-top: 18px; border-top: 1px dashed rgba(255,255,255,.25);
  font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.6;
}

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 44px 0 30px; font-size: 14px; }
.footer .brand { color: #fff; margin-bottom: 12px; }
.footer .f-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
.footer .f-comp { max-width: 520px; }
.footer .f-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .f-comp .brand { font-size: 17px; }
.footer .shield { font-size: 12.5px; color: rgba(255,255,255,.5); margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pillars, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .network-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; background: var(--navy-900);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 18px;
    display: none; border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; }
  .nav-toggle { display: block; }
  .nav-right .btn-cta { display: none; }
}
@media (max-width: 560px) {
  .pillars, .card-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero-inner { padding: 70px 0 78px; }
  .lang-switch button { padding: 5px 9px; }
}
