/* ============================================================
   木多鱼智能 官网样式
   深色科技风 · 简洁
   ============================================================ */

:root {
  --bg: #070b14;
  --bg-soft: #0b1020;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8eef8;
  --text-dim: #97a3b8;
  --text-faint: #64748b;
  --accent-1: #2dd4bf;
  --accent-2: #3b82f6;
  --accent: #38bdf8;
  --grad: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  --radius: 16px;
  --radius-sm: 10px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei",
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo,
    Consolas, monospace;
  --nav-h: 68px;
  --maxw: 1120px;
}

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

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

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

::selection { background: rgba(56, 189, 248, 0.32); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }

.container {
  width: min(var(--maxw), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------------- 背景装饰 ---------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

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

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.16;
}

.bg-glow-a {
  width: 620px; height: 620px;
  background: var(--accent-2);
  top: -260px; left: -140px;
}

.bg-glow-b {
  width: 520px; height: 520px;
  background: var(--accent-1);
  top: -180px; right: -160px;
  opacity: 0.1;
}

/* ---------------- 导航 ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text small {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--text-faint);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  font-size: 14.5px;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

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

.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links .nav-cta {
  margin-left: 10px;
  color: #06121f;
  font-weight: 600;
  background: var(--grad);
  transition: opacity 0.2s, transform 0.2s;
}

.nav-links .nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 48px) 0 72px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  animation: breathe 9s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 16px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 10px var(--accent-1);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-title {
  margin-top: 28px;
  font-size: clamp(2.4rem, 6.2vw, 4.3rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.02em;
}

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

.hero-sub {
  margin: 22px auto 0;
  max-width: 640px;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  color: var(--text-dim);
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, opacity 0.2s;
}

.btn svg { width: 17px; height: 17px; }

.btn-primary {
  color: #06121f;
  background: var(--grad);
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(56, 189, 248, 0.32);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.06);
  transform: translateY(-2px);
}

.hero-stats {
  margin: 72px auto 0;
  max-width: 860px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.stat {
  padding: 24px 12px;
  text-align: center;
}

.stat + .stat { border-left: 1px solid var(--border); }

.stat strong {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.stat strong em { font-style: normal; }

.stat > span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--text-faint);
  animation: bob 2.2s ease-in-out infinite;
}

.hero-scroll svg { width: 20px; height: 20px; }

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

/* ---------------- 通用 Section ---------------- */
.section { padding: 104px 0; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-sub {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 15.5px;
}

/* ---------------- 卡片基础 ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: transform 0.28s, border-color 0.28s, background 0.28s, box-shadow 0.28s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.38);
  background: var(--surface-hover);
  box-shadow: 0 18px 48px rgba(2, 8, 20, 0.55), 0 0 0 1px rgba(56, 189, 248, 0.06);
}

/* ---------------- 关于我们 ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-text p {
  color: var(--text-dim);
  font-size: 15.5px;
  margin-bottom: 18px;
  text-align: justify;
}

.about-text strong { color: var(--text); font-weight: 600; }

.about-feats {
  display: grid;
  gap: 16px;
}

.feat {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.feat:hover {
  border-color: rgba(56, 189, 248, 0.38);
  background: var(--surface-hover);
  transform: translateX(4px);
}

.feat-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent);
}

.feat-icon svg { width: 22px; height: 22px; }

.feat h3 { font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.feat p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }

/* ---------------- 核心产品 ---------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product {
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.product.featured {
  grid-column: span 2;
  background:
    radial-gradient(ellipse 70% 90% at 85% -10%, rgba(56, 189, 248, 0.11), transparent 60%),
    var(--surface);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.p-icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(56, 189, 248, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent);
}

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

.p-code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.product h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.product h3 span {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-left: 4px;
}

.p-tagline {
  font-size: 13px;
  color: var(--accent);
  margin-top: 3px;
  letter-spacing: 0.05em;
}

.p-desc {
  margin-top: 13px;
  font-size: 14px;
  color: var(--text-dim);
  flex: 1;
}

.p-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.p-tags li {
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.p-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  width: fit-content;
  transition: gap 0.2s;
}

.p-link:hover { gap: 10px; }
.p-link svg { width: 15px; height: 15px; }

/* ---------------- 智能工具 ---------------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tool { padding: 24px 26px; }

.tool code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-1);
  letter-spacing: 0.03em;
}

.tool h3 {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 600;
}

.tool p {
  margin-top: 7px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.tool-more {
  border-style: dashed;
  background: transparent;
}

.tool-more code { animation: blink 1.2s steps(2) infinite; }

@keyframes blink { 50% { opacity: 0.25; } }

/* ---------------- 发展历程 ---------------- */
.timeline {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  padding-left: 0;
}

.tl-item {
  display: grid;
  grid-template-columns: 110px 28px 1fr;
  gap: 0 18px;
  position: relative;
}

.tl-year {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  padding-top: 22px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

/* 中轴线与节点 */
.tl-item::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 2px;
  height: 100%;
  background: rgba(56, 189, 248, 0.18);
}

.tl-item:first-child::before {
  background: linear-gradient(to bottom, transparent, rgba(56, 189, 248, 0.18) 26px);
}

.tl-item:last-child::before {
  background: linear-gradient(to bottom, rgba(56, 189, 248, 0.18) 60%, transparent);
}

.tl-item::after {
  content: "";
  position: absolute;
  left: calc(110px + 18px + 14px);
  top: 28px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
  transform: translateX(-50%);
}

.tl-body {
  grid-column: 3;
  grid-row: 1;
  padding: 18px 0 40px;
}

.tl-item:last-child .tl-body { padding-bottom: 8px; }

.tl-body h3 { font-size: 17px; font-weight: 600; }

.tl-body p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-dim);
  max-width: 520px;
}

/* ---------------- 联系我们 ---------------- */
.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding: 52px;
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(45, 212, 191, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(59, 130, 246, 0.09), transparent 55%),
    var(--surface);
}

.contact-card:hover { transform: none; }

.contact-info h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.contact-list {
  margin-top: 30px;
  display: grid;
  gap: 16px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 15px;
  color: var(--text-dim);
}

.contact-list svg {
  width: 19px; height: 19px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-list a { transition: color 0.2s; }
.contact-list a:hover { color: var(--accent); }

.contact-cta {
  display: grid;
  place-items: center;
}

.cta-panel {
  width: 100%;
  text-align: center;
  padding: 40px 28px;
  border: 1px dashed rgba(56, 189, 248, 0.3);
  border-radius: var(--radius);
  background: rgba(56, 189, 248, 0.035);
}

.cta-title { font-size: 19px; font-weight: 700; }

.cta-sub {
  margin: 8px 0 24px;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ---------------- 页脚 ---------------- */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  padding-top: 56px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 44px;
}

.footer-brand p {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-faint);
  line-height: 1.8;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}

.footer-col a, .footer-col span {
  font-size: 13.5px;
  color: var(--text-faint);
  transition: color 0.2s;
  width: fit-content;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p,
.footer-bottom .beian {
  font-size: 12.5px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.footer-bottom .beian { transition: color 0.2s; }
.footer-bottom .beian:hover { color: var(--accent); }

/* ---------------- 滚动显现动画 ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-badge .dot, .hero-scroll, .tool-more code, .hero-canvas { animation: none; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product.featured { grid-column: span 2; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-card { grid-template-columns: 1fr; padding: 40px 32px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(7, 11, 20, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s, opacity 0.28s, visibility 0.28s;
  }

  .nav.open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a { padding: 13px 14px; font-size: 15.5px; }
  .nav-links .nav-cta { margin-left: 0; text-align: center; margin-top: 8px; }

  .hero { padding-top: calc(var(--nav-h) + 36px); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }

  .section { padding: 76px 0; }
  .br-desktop { display: none; }

  .product-grid { grid-template-columns: 1fr; }
  .product.featured { grid-column: span 1; }
  .tool-grid { grid-template-columns: 1fr; }

  .tl-item { grid-template-columns: 20px 1fr; }
  .tl-year {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding: 18px 0 0;
  }
  .tl-item::before { grid-column: 1; grid-row: 1 / 3; }
  .tl-item::after { left: 10px; top: 24px; }
  .tl-body { grid-column: 2; grid-row: 2; padding-top: 4px; }

  .contact-card { padding: 32px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
