/* ============================================================
   鲸仔 Whalito · 官网样式 —— 深蓝科技感
   ============================================================ */

:root {
  --bg-0: #040916;
  --bg-1: #071226;
  --bg-2: #0b1f3a;
  --bg-card: rgba(13, 28, 52, 0.55);
  --border: rgba(74, 148, 255, 0.16);
  --border-strong: rgba(74, 148, 255, 0.32);

  --text: #e8f1ff;
  --text-muted: #9ab0d4;
  --text-dim: #64779b;

  --accent: #38bdf8;
  --accent-2: #22d3ee;
  --accent-3: #6d8dff;

  --grad: linear-gradient(135deg, #38bdf8 0%, #6d8dff 55%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(109, 141, 255, 0.18));

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 60px rgba(2, 8, 24, 0.55);
  --glow: 0 0 0 1px rgba(56, 189, 248, 0.08), 0 10px 40px rgba(56, 189, 248, 0.12);

  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Cascadia Code", "Consolas", "SF Mono", "Menlo", monospace;

  --nav-h: 72px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-0);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ============================================================
   背景装饰
   ============================================================ */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 50% -10%, #0b2246 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 55%, #050b1a 100%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 148, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 148, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: drift 18s ease-in-out infinite;
}

.bg-glow-1 {
  width: 560px;
  height: 560px;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 70%);
}

.bg-glow-2 {
  width: 460px;
  height: 460px;
  top: 42%;
  right: -180px;
  background: radial-gradient(circle, rgba(109, 141, 255, 0.3), transparent 70%);
  animation-delay: -6s;
}

@keyframes drift {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(28px); }
}

.bg-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.25), rgba(109, 141, 255, 0.05));
  border: 1px solid rgba(74, 148, 255, 0.18);
  animation: rise linear infinite;
  opacity: 0;
}

@keyframes rise {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.35; }
  100% { transform: translateY(-110vh) translateX(40px) scale(0.6); opacity: 0; }
}

/* ============================================================
   导航
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(5, 12, 27, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.45));
}

.nav-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-name b {
  font-size: 18px;
  letter-spacing: 0.5px;
}

.nav-name i {
  font-style: normal;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}

.nav-links a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--grad);
  color: #04101f !important;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.35);
}

.nav-cta::after {
  display: none;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 96px;
}

.hero-inner {
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(13, 28, 52, 0.6);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 30px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-logo {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 30px;
}

.hero-logo img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(56, 189, 248, 0.4));
  animation: float 6s ease-in-out infinite;
}

.hero-logo-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  animation: spin 22s linear infinite;
}

.hero-logo-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(74, 148, 255, 0.25);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-title {
  font-size: clamp(44px, 8vw, 78px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: clamp(19px, 3vw, 26px);
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-sub strong {
  color: var(--text);
}

.hero-desc {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--grad);
  color: #04101f;
  box-shadow: 0 10px 34px rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 14px 44px rgba(56, 189, 248, 0.55);
}

.btn-ghost {
  background: rgba(13, 28, 52, 0.5);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(13, 28, 52, 0.75);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 17px;
}

.hero-stats {
  display: flex;
  gap: clamp(24px, 6vw, 64px);
  justify-content: center;
}

.stat b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat span {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   通用 Section
   ============================================================ */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 24px;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 16px;
}

/* ============================================================
   关于 · 流程
   ============================================================ */
.about-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.flow-step {
  flex: 1 1 180px;
  min-width: 160px;
  max-width: 220px;
  padding: 28px 22px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.flow-step:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--glow);
}

.flow-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.flow-step h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.flow-step p {
  font-size: 14px;
  color: var(--text-muted);
}

.flow-arrow {
  align-self: center;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  position: relative;
  flex: none;
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  border-left: 6px solid var(--accent);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.about-note {
  text-align: center;
  margin-top: 34px;
  color: var(--text-muted);
  font-size: 16px;
}

.about-note strong {
  color: var(--accent);
}

/* ============================================================
   卡片
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.card {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--glow);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 18px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.card p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ============================================================
   时间线
   ============================================================ */
.timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-3), transparent);
}

.tl-item {
  position: relative;
  padding-bottom: 30px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-dot {
  position: absolute;
  left: -34px;
  top: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.tl-dot::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.tl-card {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.tl-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.tl-card p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ============================================================
   功能表
   ============================================================ */
.table-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.feature-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.feature-table th,
.feature-table td {
  padding: 16px 22px;
  text-align: left;
}

.feature-table thead th {
  background: rgba(13, 28, 52, 0.7);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.feature-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.feature-table tbody tr:last-child {
  border-bottom: none;
}

.feature-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.05);
}

.feature-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
}

.feature-table td:last-child {
  color: var(--text-muted);
}

/* ============================================================
   系统要求
   ============================================================ */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.req-card {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.req-card h3 {
  font-size: 17px;
  margin-bottom: 18px;
  color: var(--accent);
}

.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.req-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14.5px;
}

.req-list b {
  font-weight: 600;
  white-space: nowrap;
}

.req-list span {
  color: var(--text-muted);
  text-align: right;
}

/* ============================================================
   下载
   ============================================================ */
.download-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(13, 28, 52, 0.8), rgba(7, 18, 38, 0.8));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.download-panel::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 70%);
  pointer-events: none;
}

.download-text h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}

.download-text > p {
  color: var(--text-muted);
  margin-bottom: 26px;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 34px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.download-card {
  text-align: center;
  padding: 36px 28px;
  border-radius: var(--radius);
  background: rgba(4, 11, 24, 0.6);
  border: 1px solid var(--border);
  position: relative;
}

.os-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent);
}

.download-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.ver {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.ver b {
  color: var(--accent);
}

.download-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  font-size: 13.5px;
  color: var(--text-muted);
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--accent-2);
  background: rgba(34, 211, 238, 0.08);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ============================================================
   技术栈
   ============================================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.tech-chip {
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.tech-chip:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.tech-chip b {
  display: block;
  font-size: 19px;
  margin-bottom: 6px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tech-chip span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(4, 9, 20, 0.6);
  padding: 48px clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.4));
}

.footer-brand b {
  display: block;
  font-size: 16px;
}

.footer-brand span {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-meta {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent);
}

/* ============================================================
   滚动显现动画
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal {
  animation: heroIn 0.8s ease forwards;
}

.hero .reveal:nth-child(1) { animation-delay: 0.05s; }
.hero .reveal:nth-child(2) { animation-delay: 0.15s; }
.hero .reveal:nth-child(3) { animation-delay: 0.25s; }
.hero .reveal:nth-child(4) { animation-delay: 0.35s; }
.hero .reveal:nth-child(5) { animation-delay: 0.45s; }
.hero .reveal:nth-child(6) { animation-delay: 0.55s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 820px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .download-panel {
    grid-template-columns: 1fr;
  }

  .footer {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .hero-stats {
    gap: 20px;
  }

  .stat b {
    font-size: 24px;
  }

  .flow-arrow {
    display: none;
  }

  .feature-table th,
  .feature-table td {
    padding: 13px 14px;
  }

  .feature-table td:first-child {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
