/* ============================================================
   GuiKe · 贵客 — 官网设计系统  v5
   「科技蓝 · 极光玻璃」：冷调浅底 + 蓝青极光 + 玻璃卡片
   字体：Sora（标题）+ Manrope（正文），自托管 WOFF2
   ============================================================ */

/* ---------- 自托管字体 ---------- */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/sora-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
}

:root {
  --bg: #F5F8FC;
  --bg-2: #EDF2F9;
  --bg-3: #FFFFFF;
  --ink: #0A1628;
  --ink-soft: #33415E;
  --ink-faint: #64748B;
  /* 科技蓝 */
  --primary: #2563EB;
  --primary-bright: #3B82F6;
  --primary-deep: #1D4ED8;
  --primary-dim: rgba(37, 99, 235, 0.10);
  --line-primary: rgba(37, 99, 235, 0.32);
  /* 青（信号） */
  --signal: #06B6D4;
  --signal-dim: rgba(6, 182, 212, 0.12);
  /* 线 */
  --line: rgba(10, 22, 40, 0.10);
  --line-soft: rgba(10, 22, 40, 0.06);
  /* 尺寸 */
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --font-display: "Sora", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-sans: "Manrope", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 流动极光层（蓝 + 青） */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}
body::before {
  width: 58vw;
  height: 58vw;
  min-width: 480px;
  min-height: 480px;
  top: -18vw;
  left: -14vw;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.32), rgba(59, 130, 246, 0) 70%);
  animation: driftA 30s ease-in-out infinite alternate;
}
body::after {
  width: 52vw;
  height: 52vw;
  min-width: 420px;
  min-height: 420px;
  bottom: -16vw;
  right: -12vw;
  background: radial-gradient(closest-side, rgba(6, 182, 212, 0.26), rgba(6, 182, 212, 0) 70%);
  animation: driftB 36s ease-in-out infinite alternate;
}
@keyframes driftA { to { transform: translate(7vw, 5vh) scale(1.12); } }
@keyframes driftB { to { transform: translate(-7vw, -5vh) scale(1.1); } }

header, main, footer { position: relative; z-index: 1; }

/* 顶部阅读进度发丝线 */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: linear-gradient(90deg, var(--primary), var(--signal));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.22rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-deep); }

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--primary-dim); color: var(--ink); }

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

/* 渐变文字 */
.grad {
  background: linear-gradient(115deg, #2563EB 0%, #0891B2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 等宽标注 ---------- */
.eyebrow, .tag, .label, .mono {
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--primary);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--primary); }
.eyebrow .idx { color: var(--ink-faint); font-weight: 500; }

.label { font-size: 0.7rem; color: var(--ink-faint); }

/* 在线状态点 */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.45);
  animation: dotPulse 2.6s ease-out infinite;
}
.dot.blue { background: var(--primary); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 248, 252, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .logo-mark { height: 24px; width: 24px; flex: none; }
.brand .zh { font-size: 0.9rem; color: var(--ink-faint); font-family: var(--font-sans); font-weight: 400; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
}
.nav a:hover { background: rgba(10,22,40,0.05); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--primary); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 4px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255,255,255,0.6);
}
.lang a {
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.lang a.active { background: var(--ink); color: var(--bg); }
.lang a:hover { color: var(--ink); }
.lang a.active:hover { color: var(--bg); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 11px;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--ink);
}

/* ---------- Hero（居中） ---------- */
.hero {
  padding: 108px 0 60px;
  position: relative;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 520px;
  max-width: 92vw;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0) 70%);
  pointer-events: none;
}
.hero .container { position: relative; max-width: 900px; }
.hero .eyebrow { justify-content: center; }
.hero h1 { margin-bottom: 0.45em; }
.hero .subtitle {
  font-size: 1.16rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto 36px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 0.99rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary, .btn-gold {
  background: linear-gradient(180deg, #3B82F6, #2563EB);
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(37, 99, 235, 0.6);
}
.btn-primary:hover, .btn-gold:hover { filter: brightness(1.06); box-shadow: 0 20px 44px -16px rgba(37, 99, 235, 0.65); }
.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--line-primary); color: var(--primary); }
.btn .arr { font-family: var(--font-mono); transition: transform 0.18s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* 状态读数条 */
.statusbar {
  margin: 38px auto 0;
  max-width: 640px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
}
.statusbar .stat { display: inline-flex; align-items: center; gap: 8px; }
.statusbar .k { color: var(--ink-faint); text-transform: uppercase; }
.statusbar .v { color: var(--ink-soft); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { justify-content: center; margin-bottom: 16px; }
.section-head h2 { margin-bottom: 0.35em; }
.section-head .lede { font-size: 1.05rem; color: var(--ink-soft); margin: 0 auto; }
.lede { font-size: 1.05rem; color: var(--ink-soft); }

/* ---------- Cards（玻璃） ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  box-shadow: 0 8px 30px -18px rgba(10, 22, 40, 0.24);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-primary);
  box-shadow: 0 24px 60px -28px rgba(37, 99, 235, 0.4);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 0; }
.card .num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--primary);
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}
.card .num::after { content: ""; display: block; width: 30px; height: 2px; background: var(--line-primary); margin-top: 10px; }

/* 数据键值读条 */
.data-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.data-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line-soft);
}
.data-list .k { color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.data-list .v { color: var(--ink-soft); text-align: right; font-weight: 600; }
.data-list .v.gold { color: var(--primary); }
.data-list .v.signal { color: var(--signal); }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.feature-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  color: var(--ink-soft);
  position: relative;
}
.feature-list li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  border-radius: 6px;
  background: var(--primary-dim);
  border: 1px solid var(--line-primary);
}
.feature-list li::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  margin-left: -14px;
  margin-top: 10px;
  background: var(--primary);
  clip-path: polygon(100% 50%, 0 0, 0 100%);
}

/* ---------- Product blocks ---------- */
.product {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.product + .product { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--line); }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-dim);
  border: 1px solid var(--line-primary);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 18px;
}

/* 产品卡片 */
.product-card { display: flex; flex-direction: column; height: 100%; }
.more {
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--primary);
}
.more .arr { display: inline-block; transition: transform 0.18s ease; }
.product-card:hover .more .arr { transform: translateX(4px); }

/* ---------- Quote / pull ---------- */
.pull {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 auto;
  padding: 0;
  max-width: 30ch;
}

/* ---------- Blog ---------- */
.post-list { display: grid; gap: 20px; }
.post-item {
  display: block;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  padding: 30px;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.post-item:hover { border-color: var(--line-primary); transform: translateY(-3px); box-shadow: 0 24px 60px -28px rgba(37,99,235,0.35); text-decoration: none; }
.post-item .date { font-size: 0.78rem; font-family: var(--font-mono); letter-spacing: 0.06em; color: var(--primary); }
.post-item h3 { margin: 10px 0 8px; }

.prose { max-width: 720px; }
.prose h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.prose h2 { margin-top: 2.2em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose a { color: var(--primary); }
.prose a:hover { color: var(--primary-deep); }
.prose blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  border-left: 2px solid var(--primary);
  padding-left: 22px;
  color: var(--ink);
  margin: 32px 0;
}
.post-meta {
  color: var(--ink-faint);
  font-size: 0.86rem;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  margin-bottom: 30px;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  transition: border-color 0.2s ease;
}
.faq details:hover { border-color: var(--line-primary); }
.faq details[open] { border-color: var(--line-primary); background: rgba(255,255,255,0.72); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 1.2rem;
  margin-left: 16px;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-method .k {
  font-weight: 600;
  min-width: 96px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--primary);
  text-transform: uppercase;
}
.contact-method .v { color: var(--ink-soft); word-break: break-all; }
.contact-method .v a { color: var(--ink); }
.contact-method .v a:hover { color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 72px 0 44px;
  margin-top: 60px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  margin-bottom: 16px;
  font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--primary); }
.footer-bottom {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .product { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 84px 0 48px; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(245, 248, 252, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
  }
  .nav.open { display: flex; }
  .nav a { border-radius: 10px; padding: 12px 15px; }
  .nav-toggle { display: inline-block; }
  .lang.desktop { display: none; }
  .lang.mobile { display: flex; margin-top: 6px; }
}
@media (min-width: 861px) {
  .lang.mobile { display: none; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease var(--d, 0s), transform 0.65s ease var(--d, 0s);
  }
  .js .reveal.in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .dot { animation: none !important; }
}
