/* style.css - 乐鱼app 完整样式 */
/* 基础重置与全局变量 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --accent: #facc15;
  --accent-hover: #eab308;
  --gradient-start: #1e293b;
  --gradient-end: #0f172a;
  --card-bg: rgba(255,255,255,0.85);
  --card-shadow: 0 8px 32px rgba(0,0,0,0.08);
  --glass-bg: rgba(255,255,255,0.4);
  --glass-border: rgba(255,255,255,0.3);
  --nav-bg: rgba(15,23,42,0.95);
  --footer-bg: #0f172a;
  --footer-text: #94a3b8;
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --card-bg: rgba(30,41,59,0.85);
  --card-shadow: 0 8px 32px rgba(0,0,0,0.3);
  --glass-bg: rgba(30,41,59,0.4);
  --glass-border: rgba(255,255,255,0.1);
  --nav-bg: rgba(15,23,42,0.98);
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
ul, ol {
  list-style: none;
}
img, svg {
  max-width: 100%;
  display: block;
}
/* 滚动动画基础 */
section {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s ease forwards;
}
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }
section:nth-child(7) { animation-delay: 0.6s; }
section:nth-child(8) { animation-delay: 0.7s; }
section:nth-child(9) { animation-delay: 0.8s; }
section:nth-child(10) { animation-delay: 0.9s; }
section:nth-child(11) { animation-delay: 1s; }

/* 头部导航 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
nav ul {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
nav ul li a {
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e2e8f0;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
nav ul li a:hover {
  background: rgba(250,204,21,0.15);
  color: #facc15;
}
#darkModeToggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: #facc15;
  font-size: 1.3rem;
  padding: 6px 12px;
  border-radius: 40px;
  cursor: pointer;
  transition: background var(--transition), transform 0.2s;
}
#darkModeToggle:hover {
  background: rgba(250,204,21,0.1);
  transform: scale(1.05);
}
/* Hero 渐变Banner */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  position: relative;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
  margin-bottom: 40px;
}
#hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 70%;
  height: 140%;
  background: radial-gradient(circle, rgba(250,204,21,0.08) 0%, transparent 70%);
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(250,204,21,0.05) 0%, transparent 70%);
  pointer-events: none;
}
#hero div {
  max-width: 720px;
  position: relative;
  z-index: 1;
}
#hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
#hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #cbd5e1;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
#hero a[role="button"] {
  display: inline-block;
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #0f172a;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 16px 48px;
  border-radius: 60px;
  box-shadow: 0 8px 30px rgba(250,204,21,0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}
#hero a[role="button"]:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(250,204,21,0.5);
}
/* 通用section样式 */
main section {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 40px 24px;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--glass-border);
  transition: background var(--transition), box-shadow var(--transition), border var(--transition);
}
main section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}
main section h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #facc15, #eab308);
  border-radius: 4px;
}
main section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}
main section p, main section li {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}
main section ul, main section ol {
  padding-left: 20px;
}
main section ul li, main section ol li {
  margin-bottom: 8px;
  list-style: disc;
}
main section ol li {
  list-style: decimal;
}
blockquote {
  background: rgba(250,204,21,0.08);
  border-left: 4px solid #facc15;
  padding: 16px 20px;
  margin: 16px 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
}
details {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background var(--transition);
}
details[open] {
  background: rgba(250,204,21,0.06);
}
details summary {
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
}
details p {
  margin-top: 10px;
  padding-left: 8px;
  border-left: 2px solid #facc15;
}
address p {
  margin-bottom: 6px;
}
/* 产品/特色等卡片风格 */
#products article, #insights article {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}
#products article:hover, #insights article:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
/* 特色列表 */
#features ul li {
  list-style: none;
  padding: 8px 0;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
#features ul li::before {
  content: '✦';
  color: #facc15;
  font-size: 1.2rem;
}
/* 联系 */
#contact address {
  font-style: normal;
}
/* 页脚 */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 24px 24px;
  margin-top: 40px;
}
footer nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-bottom: 24px;
}
footer nav ul li a {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: color var(--transition);
}
footer nav ul li a:hover {
  color: #facc15;
}
footer p {
  text-align: center;
  font-size: 0.85rem;
  margin-bottom: 6px;
}
footer small {
  display: block;
  text-align: center;
  opacity: 0.7;
}
/* 响应式 */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  nav ul {
    justify-content: center;
    gap: 4px;
  }
  nav ul li a {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  #hero {
    padding: 100px 16px 60px;
    border-radius: 0 0 24px 24px;
  }
  #hero h1 {
    font-size: 1.8rem;
  }
  main section {
    padding: 28px 16px;
    margin: 0 12px 32px;
    border-radius: 14px;
  }
  main section h2 {
    font-size: 1.4rem;
  }
  #features ul li {
    font-size: 0.95rem;
  }
  footer nav ul {
    gap: 8px 14px;
  }
  footer p {
    font-size: 0.75rem;
  }
}
@media (max-width: 480px) {
  #hero h1 {
    font-size: 1.5rem;
  }
  #hero a[role="button"] {
    padding: 14px 32px;
    font-size: 1rem;
  }
  main section h2 {
    font-size: 1.2rem;
  }
  main section p, main section li {
    font-size: 0.9rem;
  }
}
/* 暗色模式额外调整 */
[data-theme="dark"] #hero {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}
[data-theme="dark"] #hero::before {
  background: radial-gradient(circle, rgba(250,204,21,0.06) 0%, transparent 70%);
}
[data-theme="dark"] blockquote {
  background: rgba(250,204,21,0.04);
}
[data-theme="dark"] details {
  background: rgba(255,255,255,0.02);
}
[data-theme="dark"] details[open] {
  background: rgba(250,204,21,0.03);
}
/* 按钮悬停通用 */
a[role="button"], button, nav ul li a {
  cursor: pointer;
}
/* 平滑过渡所有交互元素 */
a, button, details, summary, input, textarea {
  transition: all var(--transition);
}
/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}