/* ============================================================
 * 海云博智官网 V2 — Design System
 * 概念：Oceanic Intelligence / 深海智能
 * 依据 PRD V2.0 #15 Design System
 * ============================================================ */

:root {
  /* 15.3 色彩 Token */
  --bg-abyss: #050A12;
  --bg-deep-ocean: #081321;
  --bg-surface: #0D1B2A;
  --bg-elevated: #0B1928;
  --brand-blue: #1677FF;
  --brand-cyan: #20D9FF;
  --brand-deep: #0755C7;
  --on-brand: #04121A;
  --success: #06D6A0;
  --warning: #FFB703;
  --danger: #FF6F6F;        /* 错误态主色（form-error 边框/底色的同色相来源） */
  --danger-text: #FF9A9A;   /* 错误态文本（深海底色上可读的弱化红） */
  --violet: #8B7BFF;
  --text-primary: #F5F9FF;
  --text-secondary: #A9B7C9;
  --text-tertiary: #6F8095;
  --border-default: rgba(150, 190, 230, 0.12);
  --border-active: rgba(32, 217, 255, 0.30);
  --gradient-primary: linear-gradient(135deg, #1677FF 0%, #20D9FF 100%);
  --gradient-text: linear-gradient(120deg, #F5F9FF 0%, #20D9FF 100%);

  /* 15.4/15.5 Typography */
  --font: 'PingFang SC', 'HarmonyOS Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Microsoft YaHei', sans-serif;
  --font-en: 'Inter', 'PingFang SC', sans-serif;
  --font-mono: 'JetBrains Mono', Menlo, Consolas, monospace;

  /* 15.7 Layout */
  --container: 1280px;
  --container-wide: 1440px;
  --radius-btn: 10px;
  --radius-card: 16px;
  --radius-lg: 20px;
  --radius-tag: 999px;

  /* 15.10 Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-normal: 240ms;
  --t-slow: 400ms;
  --t-reveal: 700ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* 键盘导航可见性（评审精修：Focus Visible） */
:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 3px; border-radius: 6px; }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-color: var(--brand-cyan); }

body {
  font-family: var(--font);
  background: var(--bg-abyss);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 深海氛围背景（克制，不用星空式粒子） */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(32, 217, 255, 0.07), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(22, 119, 255, 0.08), transparent 60%),
    radial-gradient(700px 500px at 50% 115%, rgba(7, 85, 199, 0.10), transparent 65%);
}

::selection { background: rgba(32, 217, 255, 0.30); color: var(--text-primary); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container { width: min(var(--container), 92%); margin-inline: auto; position: relative; z-index: 1; }
section { position: relative; z-index: 1; }

/* 15.6 字号 */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 650; letter-spacing: -0.01em; }
.hero-title { font-size: clamp(40px, 6vw, 68px); font-weight: 700; letter-spacing: -0.02em; }
.h1 { font-size: clamp(34px, 5vw, 56px); }
.h2 { font-size: clamp(28px, 3.6vw, 40px); }
.h3 { font-size: 28px; }
.h4 { font-size: 20px; }
.body-lg { font-size: 18px; }
.small { font-size: 14px; }
.caption { font-size: 12px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--brand-cyan);
  font-weight: 600;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--brand-cyan); }

.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .h2 { margin: 16px 0 14px; }
.section-sub { color: var(--text-secondary); font-size: 17px; }

/* 区块间距（15.7：120-160px，移动端 64-80px） */
.block { padding: clamp(64px, 9vw, 140px) 0; }
.block-alt { background: var(--bg-deep-ocean); border-block: 1px solid var(--border-default); }

/* ============ Button（15.8：10px） ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all var(--t-normal) var(--ease);
  min-height: 44px; /* 触控目标 ≥44px */
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-primary);
  color: var(--on-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(32, 217, 255, 0.25); }
.btn-ghost { border-color: var(--border-active); color: var(--text-primary); background: rgba(32, 217, 255, 0.04); }
.btn-ghost:hover { border-color: var(--brand-cyan); color: var(--brand-cyan); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; min-height: 40px; }

/* ============ Badge / Status ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: var(--radius-tag);
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  background: rgba(150, 190, 230, 0.06);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.released { color: var(--success); border-color: rgba(6, 214, 160, 0.35); }
.badge.coming_soon { color: var(--warning); border-color: rgba(255, 183, 3, 0.35); }
.badge.trial { color: var(--brand-cyan); border-color: rgba(32, 217, 255, 0.35); }
.badge.beta { color: var(--violet); border-color: rgba(139, 123, 255, 0.35); }

.chip {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-tag);
  background: rgba(150, 190, 230, 0.07);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}
.chip-open { color: var(--success); border-color: rgba(6, 214, 160, 0.35); }

/* ============ Navigation ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 10, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--t-normal) var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border-default); background: rgba(5, 10, 18, 0.96); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; letter-spacing: 0.02em; }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.14), rgba(32, 217, 255, 0.14));
  border: 1px solid var(--border-active);
  display: grid; place-items: center;
  color: #20D9FF;
  transition: box-shadow var(--t-normal) var(--ease);
}
.brand:hover .brand-mark { box-shadow: 0 0 24px rgba(32, 217, 255, 0.25); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 16px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  color: var(--text-secondary);
  transition: all var(--t-fast) var(--ease);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(150, 190, 230, 0.08); }
.nav-links a.active { color: var(--brand-cyan); background: rgba(32, 217, 255, 0.08); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; font-size: 26px; width: 44px; height: 44px; border-radius: var(--radius-btn); }
.nav-burger:hover { background: rgba(150, 190, 230, 0.08); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(5, 10, 18, 0.98);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 22px; font-weight: 600; color: var(--text-primary); }
.mobile-menu a.active { color: var(--brand-cyan); }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--border-default); background: var(--bg-deep-ocean); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding: 64px 0 44px; }
.footer h4 { font-size: 14px; margin-bottom: 16px; letter-spacing: 0.06em; }
.footer a { display: block; color: var(--text-tertiary); font-size: 14px; padding: 5px 0; transition: color var(--t-fast); }
.footer a:hover { color: var(--brand-cyan); }
.footer .desc { color: var(--text-tertiary); font-size: 14px; margin: 14px 0 18px; max-width: 320px; }
.footer-bottom { border-top: 1px solid var(--border-default); padding: 22px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--text-tertiary); font-size: 13px; }


/* 浮动组件 */
.float-cta { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.back-top { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-surface); border: 1px solid var(--border-active); color: var(--text-secondary); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: all var(--t-normal); }
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { color: var(--brand-cyan); border-color: var(--brand-cyan); }

/* ============================================================
 * Responsive（15.11）
 * ============================================================ */
@media (max-width: 1024px) {
  .pd-grid, .featured, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
  .hero { padding: 140px 0 80px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .featured { padding: 32px 24px; }
}

