/* =========================================================
   孔雀鱼饲养指南 · 沉浸式鱼缸主题 (Aqua Theme)
   共享样式：assets/aqua.css
   ========================================================= */

:root {
  --deep-0: #02101c;
  --deep-1: #041b2b;
  --deep-2: #06314a;
  --water-1: #0a6f8f;
  --water-2: #0ea5c4;
  --cyan: #22d3ee;
  --cyan-soft: #7ff0ff;
  --guppy: #f59e0b;
  --guppy-2: #fb7185;
  --leaf: #34d399;
  --sand: #f7e9c9;
  --ink: #eaf8ff;
  --ink-soft: #d6eefb;
  --ink-dim: #a8d2e2;
  --glass: rgba(6, 40, 58, 0.60);
  --glass-2: rgba(9, 52, 74, 0.46);
  --line: rgba(96, 224, 255, 0.22);
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.75);
  --radius: 22px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  line-height: 1.75;
  background-color: var(--deep-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 沉浸式水下背景（清澈水草缸） ---------- */
.ocean {
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    radial-gradient(125% 62% at 50% -8%, rgba(214,250,255,.72) 0%, rgba(140,228,246,.40) 20%, rgba(70,182,212,0) 54%),
    linear-gradient(180deg, #2798bb 0%, #1a83a6 24%, #106a8d 50%, #0a5170 74%, #073e58 100%);
}
.ocean::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 38% at 14% 16%, rgba(190, 248, 255, 0.30), transparent 70%),
    radial-gradient(48% 36% at 86% 12%, rgba(120, 240, 205, 0.22), transparent 70%),
    radial-gradient(70% 46% at 50% 118%, rgba(255, 214, 130, 0.16), transparent 72%);
  animation: caustics 18s ease-in-out infinite alternate;
}
@keyframes caustics {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: .9; }
  100% { transform: translate3d(0, -18px, 0) scale(1.06); opacity: 1; }
}

/* 水面波纹 */
.surface {
  position: fixed;
  inset: 0 0 auto 0;
  height: 120px;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(235, 253, 255, .55), rgba(235,253,255,0) 70%),
    repeating-linear-gradient(92deg, rgba(255,255,255,.10) 0 22px, rgba(255,255,255,0) 22px 52px);
  animation: surface 14s ease-in-out infinite alternate;
}
@keyframes surface {
  0% { transform: translateX(-1.5%) scaleY(1); opacity: .8; }
  100% { transform: translateX(1.5%) scaleY(1.12); opacity: 1; }
}

/* 水面光束 */
.rays {
  position: fixed;
  inset: -10% 0 auto 0;
  height: 95vh;
  z-index: -4;
  pointer-events: none;
  background:
    linear-gradient(102deg, transparent 42%, rgba(210, 250, 255, 0.14) 47%, transparent 52%),
    linear-gradient(96deg, transparent 62%, rgba(210, 250, 255, 0.12) 67%, transparent 72%),
    linear-gradient(110deg, transparent 22%, rgba(210, 250, 255, 0.10) 27%, transparent 33%);
  animation: rays 12s ease-in-out infinite alternate;
  transform-origin: top center;
}
@keyframes rays {
  0% { transform: translateX(-3%) skewX(-2deg); opacity: .75; }
  100% { transform: translateX(3%) skewX(2deg); opacity: 1; }
}

/* 气泡层 */
.bubbles { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(180,240,255,.22) 55%, rgba(180,240,255,0) 72%);
  border: 1px solid rgba(230, 252, 255, 0.55);
  animation: rise linear infinite;
  opacity: .7;
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0) scale(.9); opacity: 0; }
  10% { opacity: .75; }
  50% { transform: translateY(-52vh) translateX(18px) scale(1); }
  90% { opacity: .6; }
  100% { transform: translateY(-108vh) translateX(-14px) scale(1.08); opacity: 0; }
}

/* 沙底 */
.floor {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 16vh;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(80% 120% at 50% 100%, rgba(246, 231, 197, 0.55), rgba(246, 231, 197, 0) 72%),
    linear-gradient(180deg, rgba(240, 220, 180, 0) 0%, rgba(240, 220, 180, .16) 55%, rgba(226, 202, 158, .42) 100%);
}

/* 水草（随水摆动） */
.plants { position: fixed; left: 0; right: 0; bottom: -6px; height: 46vh; z-index: -2; pointer-events: none; overflow: hidden; }
.plant {
  position: absolute;
  bottom: 0;
  transform-origin: bottom center;
  animation: sway ease-in-out infinite alternate;
  filter: drop-shadow(0 10px 18px rgba(2, 30, 45, .35));
}
.plant svg { display: block; height: 100%; width: auto; }
@keyframes sway {
  from { transform: rotate(-3.2deg); }
  to { transform: rotate(3.2deg); }
}

/* 一群孔雀鱼游来游去 */
.school { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fish {
  position: absolute;
  left: 0;
  animation: swimR linear infinite;
  will-change: transform;
}
.fish.rev { animation-name: swimL; }
.fish.rev .fishy { transform: scaleX(-1); }
@keyframes swimR {
  0% { transform: translateX(-18vw) translateY(0); }
  50% { transform: translateX(48vw) translateY(-18px); }
  100% { transform: translateX(116vw) translateY(0); }
}
@keyframes swimL {
  0% { transform: translateX(116vw) translateY(0); }
  50% { transform: translateX(48vw) translateY(16px); }
  100% { transform: translateX(-18vw) translateY(0); }
}
.fish-bob { animation: bob ease-in-out infinite alternate; }
@keyframes bob {
  from { transform: translateY(-7px) rotate(-1.2deg); }
  to { transform: translateY(7px) rotate(1.2deg); }
}
.fishy { display: block; width: 100%; height: auto; }
.fishy .tail {
  transform-box: fill-box;
  transform-origin: 100% 50%;
  animation: wag .5s ease-in-out infinite alternate;
}
@keyframes wag {
  from { transform: rotate(-13deg); }
  to { transform: rotate(13deg); }
}

/* ---------- 布局 ---------- */
.wrap { width: min(92%, var(--maxw)); margin: 0 auto; }
main { position: relative; z-index: 1; }
section { padding: 76px 0; position: relative; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .28em; text-transform: uppercase;
  color: #d8fbff; border: 1px solid rgba(150, 240, 255, .45); padding: 6px 16px; border-radius: 999px;
  background: rgba(4, 34, 52, 0.45); margin-bottom: 16px;
}
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; color: #fff; }
h2.sec-title {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  background: linear-gradient(92deg, #ffffff, #9be9ff 45%, #6ee7b7);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 16px rgba(2, 28, 44, 0.55));
}
.lead { color: #dff2fa; font-size: 1.05rem; text-shadow: 0 1px 10px rgba(2, 28, 44, 0.45); }
.muted { color: #c2e3f0; }

/* 玻璃卡片 */
.glass {
  background: linear-gradient(160deg, var(--glass-2), var(--glass));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160,240,255,.6), transparent);
}
.glass-pad { padding: 26px; }
.card {
  background: linear-gradient(160deg, rgba(8, 48, 70, 0.60), rgba(4, 26, 40, 0.66));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s, border-color .35s;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-7px);
  border-color: rgba(127, 240, 255, .55);
  box-shadow: 0 26px 60px -22px rgba(0, 220, 255, .45), var(--shadow);
}

/* 图片 */
.img-frame {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(127,240,255,.28);
  box-shadow: 0 20px 45px -20px rgba(0,0,0,.8);
}
.img-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.img-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  background: linear-gradient(to top, rgba(2,16,28,.92), transparent);
  font-size: .86rem; color: var(--cyan-soft);
}

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; border: 1px solid rgba(127,240,255,.5);
  background: linear-gradient(180deg, rgba(34,211,238,.22), rgba(34,211,238,.08));
  color: #eafcff; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s;
  box-shadow: 0 12px 30px -12px rgba(34,211,238,.6);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(34,211,238,.85); background: linear-gradient(180deg, rgba(34,211,238,.34), rgba(34,211,238,.14)); }
.btn.gold {
  border-color: rgba(245,158,11,.6);
  background: linear-gradient(180deg, rgba(245,158,11,.9), rgba(217,119,6,.85));
  color: #22160a; box-shadow: 0 14px 34px -12px rgba(245,158,11,.75);
}
.btn.gold:hover { box-shadow: 0 20px 44px -12px rgba(245,158,11,1); }

/* 标签 */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: rgba(4, 34, 52, 0.45); border: 1px solid rgba(150, 240, 255, .35); color: #cdf5ff;
}
.chip {
  padding: 8px 18px; border-radius: 999px; cursor: pointer; font-size: .9rem; font-weight: 600;
  background: rgba(4, 34, 52, 0.45); border: 1px solid rgba(150, 240, 255, .3); color: #dff2fa;
  transition: all .25s;
}
.chip:hover { color: #fff; border-color: rgba(127,240,255,.6); transform: translateY(-2px); }
.chip.active { background: linear-gradient(180deg, rgba(34,211,238,.9), rgba(14,165,196,.9)); color: #04202e; border-color: transparent; }

/* 顶部导航 */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(4, 34, 52, 0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(96,224,255,.14);
  transform: translateY(-110%); transition: transform .4s ease;
}
.topbar.show { transform: translateY(0); }
.topbar .bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.brand .dot { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #ffe9a8, #f59e0b 55%, #b45309); box-shadow: 0 0 18px rgba(245,158,11,.8); }
.navlinks { display: flex; gap: 4px; flex-wrap: wrap; }
.navlinks a {
  color: var(--ink-soft); text-decoration: none; font-size: .9rem; font-weight: 600;
  padding: 8px 12px; border-radius: 10px; transition: all .22s; white-space: nowrap;
}
.navlinks a:hover, .navlinks a.active { color: #fff; background: rgba(34,211,238,.16); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: #fff; border-radius: 10px; padding: 6px 12px; font-size: 1.1rem; cursor: pointer; }

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  text-align: center; padding: 120px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; opacity: .34; filter: blur(3px) saturate(1.15); transform: scale(1.08); animation: heroZoom 22s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.04) translateY(0); } to { transform: scale(1.14) translateY(-16px); } }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 50% 30%, rgba(8,44,64,.10), rgba(5,34,52,.66) 80%);
}
.hero h1 {
  font-size: clamp(2.2rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: .01em;
  text-shadow: 0 6px 40px rgba(0, 220, 255, .35);
  background: linear-gradient(100deg, #ffffff, #a9f0ff 40%, #ffd98a);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .sub { color: var(--ink-soft); font-size: clamp(1rem, 2.2vw, 1.3rem); max-width: 720px; margin: 14px auto 30px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll-cue { margin-top: 46px; color: var(--ink-dim); font-size: .82rem; letter-spacing: .2em; }
.scroll-cue span { display: block; width: 22px; height: 34px; border: 2px solid var(--line); border-radius: 12px; margin: 12px auto 0; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; background: var(--cyan); border-radius: 2px; transform: translateX(-50%); animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* 网格工具 */
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gallery { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* 品种卡片 */
.variety { cursor: pointer; }
.variety .thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.variety .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.variety:hover .thumb img { transform: scale(1.09); }
.variety .meta { padding: 12px 14px 15px; }
.variety .meta strong { display: block; color: #fff; }
.variety .meta span { font-size: .82rem; color: var(--ink-dim); }

/* 参数表盘 */
.gauges { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 10px; text-align: center; }
.gauge { width: 158px; height: 79px; position: relative; overflow: hidden; border-top-left-radius: 158px; border-top-right-radius: 158px; margin: 0 auto; }
.gauge-bg { width: 100%; height: 100%; background: conic-gradient(from -90deg at 50% 100%, rgba(255,255,255,.14) 0deg, rgba(255,255,255,.14) 180deg); }
.gauge-fill { position: absolute; inset: 0; background: conic-gradient(from -90deg at 50% 100%, #22d3ee 0deg, #34d399 var(--fill-angle, 0deg), transparent var(--fill-angle, 0deg)); }
.gauge-cover {
  position: absolute; width: 116px; height: 58px; background: #06283c;
  border-top-left-radius: 116px; border-top-right-radius: 116px;
  top: 21px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 5px;
}
.gauge-cover b { font-size: 1.05rem; color: #fff; }
.gauge-cover small { font-size: .72rem; color: var(--ink-dim); }

/* 列表 */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ic { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(34,211,238,.16); border: 1px solid var(--line); color: var(--cyan-soft); font-weight: 700; font-size: .85rem; }
.ticks h4 { margin: 0; font-size: 1rem; }
.ticks p { margin: 2px 0 0; color: var(--ink-dim); font-size: .9rem; }

/* 步骤 */
.steps { counter-reset: s; display: grid; gap: 18px; }
.step { position: relative; padding-left: 62px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; font-weight: 800; color: #04202e;
  background: linear-gradient(180deg, #7ff0ff, #22d3ee); box-shadow: 0 10px 24px -10px rgba(34,211,238,.9);
}

/* 时间线 */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--cyan), transparent); }

/* 症状按钮 */
.symptom-btn { padding: 10px 16px; border-radius: 12px; background: rgba(4, 34, 52, 0.45); border: 1px solid rgba(150, 240, 255, .3); color: #dff2fa; cursor: pointer; transition: all .22s; font-weight: 600; }
.symptom-btn:hover { color: #fff; border-color: rgba(127,240,255,.6); transform: translateY(-2px); }
.symptom-btn.active { background: linear-gradient(180deg, rgba(251,113,133,.9), rgba(244,63,94,.85)); color: #fff; border-color: transparent; }

/* 模态 */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px; background: rgba(2,12,20,.72); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .28s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box { width: min(560px, 94vw); transform: translateY(14px) scale(.97); transition: transform .3s; }
.modal.open .modal-box { transform: none; }
.modal-box img { width: 100%; height: 300px; object-fit: cover; }

/* 提示框 */
.callout { border-left: 4px solid var(--cyan); background: rgba(6, 40, 58, 0.60); padding: 16px 18px; border-radius: 12px; }
.callout.warn { border-color: var(--guppy); background: rgba(110, 66, 10, 0.50); }
.callout.danger { border-color: var(--guppy-2); background: rgba(110, 28, 46, 0.50); }
.callout.good { border-color: var(--leaf); background: rgba(12, 74, 56, 0.50); }

/* 页脚 */
.site-foot { border-top: 1px solid rgba(96,224,255,.14); margin-top: 40px; padding: 46px 0 30px; background: rgba(2,14,24,.6); }
.site-foot .fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: #fff; }
.site-foot .copy { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(96,224,255,.12); color: var(--ink-dim); font-size: .85rem; text-align: center; }

/* 滚动出现动画 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* 波浪分隔 */
.wave { display: block; width: 100%; height: 70px; margin: -1px 0; opacity: .5; }

/* 无障碍 */
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* 响应式 */
@media (max-width: 1200px) {
  .navlinks a { padding: 8px 9px; font-size: .84rem; }
  .brand { font-size: .95rem; }
}
@media (max-width: 960px) {
  .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); }
  .site-foot .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  section { padding: 54px 0; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .navlinks {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 2px;
    background: rgba(3,22,34,.97); border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px; display: none;
  }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 12px; }
  .site-foot .fgrid { grid-template-columns: 1fr; }
  .swimmer { width: 86px; }
}
