/* ============================================================
   鱼助手官网 - 白天毛玻璃风格（单屏不滚动）
   浅色主题 + 柔光晕染 + 玻璃拟态
   ============================================================ */

:root {
  /* 色彩系统 - 白天浅色 */
  --bg-base: #eef2ff;
  --bg-glass: rgba(255, 255, 255, 0.55);
  --bg-glass-hover: rgba(255, 255, 255, 0.72);
  --bg-glass-strong: rgba(255, 255, 255, 0.75);
  --border-glass: rgba(255, 255, 255, 0.7);
  --border-glass-hover: rgba(99, 102, 241, 0.35);

  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-deep: #4f46e5;
  --accent-purple: #a855f7;
  --accent-cyan: #0891b2;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;

  --gradient-main: linear-gradient(135deg, #6366f1, #a855f7);
  --gradient-text: linear-gradient(135deg, #4f46e5 0%, #9333ea 50%, #0891b2 100%);

  --shadow-soft: 0 8px 32px rgba(99, 102, 241, 0.12);
  --shadow-card: 0 4px 24px rgba(99, 102, 241, 0.1);
  --shadow-hover: 0 16px 40px rgba(99, 102, 241, 0.18);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 28px;

  --max-width: 1200px;
}

/* 基础重置 */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

html, body {
  height: 100%;
}

body {
  font-family: 'Sora', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 45%, #ecfeff 100%);
  color: var(--text-primary);
  line-height: 1.6;
  /* 单屏不滚动：锁死高度与溢出 */
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

/* ============================================================
   背景装饰 - 柔光晕染 + 噪点
   ============================================================ */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.blob-1 {
  width: 460px;
  height: 460px;
  background: var(--primary-light);
  top: -12%;
  left: -6%;
}

.blob-2 {
  width: 520px;
  height: 520px;
  background: #c4b5fd;
  top: 30%;
  right: -12%;
  animation-delay: -7s;
}

.blob-3 {
  width: 380px;
  height: 380px;
  background: #67e8f9;
  bottom: -8%;
  left: 28%;
  animation-delay: -14s;
  opacity: 0.3;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   玻璃通用类
   ============================================================ */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
}

/* ============================================================
   导航栏（浮动，不占主文档流高度由 main 处理）
   ============================================================ */
.navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: var(--max-width);
  border-radius: var(--radius-lg);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.logo-icon svg {
  width: 20px;
  height: 20px;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 12px;
  background: var(--gradient-main);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

/* ============================================================
   主体（flex 占满剩余高度，垂直居中分布）
   ============================================================ */
.main {
  flex: 1;
  min-height: 0;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 88px 24px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

/* ============================================================
   Hero 区域
   ============================================================ */
.hero {
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  animation: fadeUp 0.8s ease;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  animation: fadeUp 0.8s ease 0.1s both;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 26px;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
  animation: fadeUp 0.8s ease 0.3s both;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

.btn-ghost {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
}

/* Hero 数据条 */
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.4s both;
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.meta-num {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.meta-label {
  font-size: 12px;
  color: var(--text-muted);
}

.meta-divider {
  width: 1px;
  height: 28px;
  background: rgba(99, 102, 241, 0.2);
}

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

/* ============================================================
   核心能力 - 紧凑卡片网格（单屏内展示）
   ============================================================ */
.capabilities {
  width: 100%;
}

.caps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cap-card {
  padding: 16px 16px;
  border-radius: var(--radius-md);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* 入场动画（仅透明度，避免与 hover 位移冲突） */
  opacity: 0;
  animation: capIn 0.6s ease forwards;
}

/* 依次浮现 */
.cap-card:nth-child(1) { animation-delay: 0.10s; }
.cap-card:nth-child(2) { animation-delay: 0.16s; }
.cap-card:nth-child(3) { animation-delay: 0.22s; }
.cap-card:nth-child(4) { animation-delay: 0.28s; }
.cap-card:nth-child(5) { animation-delay: 0.34s; }
.cap-card:nth-child(6) { animation-delay: 0.40s; }
.cap-card:nth-child(7) { animation-delay: 0.46s; }
.cap-card:nth-child(8) { animation-delay: 0.52s; }

@keyframes capIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cap-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.cap-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

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

.icon-indigo { background: rgba(99, 102, 241, 0.14); color: var(--primary); }
.icon-purple { background: rgba(168, 85, 247, 0.14); color: var(--accent-purple); }
.icon-cyan { background: rgba(8, 145, 178, 0.14); color: var(--accent-cyan); }
.icon-amber { background: rgba(245, 158, 11, 0.14); color: var(--accent-amber); }
.icon-rose { background: rgba(244, 63, 94, 0.14); color: var(--accent-rose); }
.icon-emerald { background: rgba(16, 185, 129, 0.14); color: var(--accent-emerald); }
.icon-blue { background: rgba(59, 130, 246, 0.14); color: #3b82f6; }
.icon-violet { background: rgba(139, 92, 246, 0.14); color: #7c3aed; }

.cap-name {
  font-size: 1rem;
  font-weight: 700;
}

.cap-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   页脚（单行贴底）
   ============================================================ */
.footer {
  flex: 0 0 auto;
  padding: 12px 24px 16px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  border-radius: 999px;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-copy {
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-sep {
  color: var(--text-muted);
}

.icp {
  color: var(--text-muted);
  transition: color 0.2s;
}

.icp:hover {
  color: var(--primary);
}

/* ============================================================
   响应式 - 保持单屏不滚动
   ============================================================ */
@media (max-width: 1024px) {
  .caps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  body {
    overflow: auto;
    height: auto;
    min-height: 100vh;
    display: block;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  body::-webkit-scrollbar {
    display: none;
  }

  .main {
    padding: 76px 16px 80px;
    gap: 18px;
  }

  .nav-inner {
    padding: 8px 16px;
  }

  .hero-badge {
    margin-bottom: 14px;
    padding: 6px 14px;
    font-size: 12px;
  }

  .hero-subtitle {
    margin-bottom: 18px;
  }

  .hero-actions {
    margin-bottom: 18px;
    gap: 10px;
  }

  .btn {
    padding: 11px 22px;
    font-size: 14px;
  }

  .hero-meta {
    gap: 16px;
  }

  .caps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cap-card {
    padding: 12px 14px;
  }

  .footer-inner {
    border-radius: var(--radius-md);
    padding: 10px 16px;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 0.88rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .meta-divider {
    display: none;
  }

  .hero-meta {
    gap: 14px;
  }

  .caps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 触摸优化 */
@media (hover: none) {
  .cap-card:hover {
    transform: none;
  }
}

/* 极矮视口：允许内部微滚动兜底，避免内容被裁切 */
@media (max-height: 620px) {
  body {
    overflow: auto;
  }
  .main {
    justify-content: flex-start;
  }
}
