/* 虾虎鱼科大全 — 首页与内页共享样式（基线下 1440） */
:root {
  --navy: #12233f;
  --navy-2: #1a3155;
  --ink: #16223a;
  --ink-2: #1b2b46;
  --ink-soft: #4b5872;
  --muted: #7b879b;
  --blue: #2563c9;
  --blue-2: #2f6fe0;
  --blue-soft: #eaf0f9;
  --page: #f2f5fa;
  --paper: #ffffff;
  --line: #e3e8f1;
  --sand: #c9a86a;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.01em; }

.shell {
  width: 100%;
  max-width: 1376px;
  margin: 0 auto;
  padding: 0 32px;
}

.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;
}

.bar {
  display: inline-block;
  width: 5px;
  height: 20px;
  border-radius: 2px;
  background: var(--blue);
  flex: none;
}

/* ---------------------------------------------------------------- header */
.site-header {
  height: 69px;
  background: var(--navy);
  position: relative;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 69px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  white-space: nowrap;
}

.brand-mark { width: 26px; height: 26px; }

.nav {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-left: auto;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}

.nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav a:hover { color: #fff; }
.nav a.is-active { color: #fff; border-color: #4a8cf0; }

.pill-cta {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 15px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}

.pill-cta:hover { background: #e8eefb; }

.nav-toggle {
  display: none;
  width: 40px; height: 36px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px; height: 2px;
  margin: 0 auto;
  background: #fff;
  border-radius: 2px;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  height: 387px;
  overflow: hidden;
  background: #0f2233;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 26, 38, 0.94) 0%, rgba(9, 26, 38, 0.78) 34%, rgba(9, 26, 38, 0.18) 64%, rgba(9, 26, 38, 0.04) 100%);
}

.hero-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 4px;
  padding-bottom: 52px;
}

.hero-eyebrow {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #9fc3ea;
  margin-bottom: 4px;
}

.hero h1 {
  font-size: 62px;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: #fff;
}

.hero-lead {
  margin-top: 12px;
  font-size: 25px;
  line-height: 1.4;
  font-weight: 600;
  color: #eaf1fb;
}

.hero-text {
  margin-top: 8px;
  max-width: 600px;
  font-size: 16px;
  line-height: 1.78;
  color: #c9d7e8;
}

.hero-actions { display: flex; gap: 12px; margin-top: 18px; }

.hero-stats {
  position: absolute;
  right: 32px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #e8f0fa;
  font-size: 14px;
  font-weight: 600;
}

.hero-stats li { display: flex; align-items: center; gap: 7px; }

.hero-stats li::before {
  content: "";
  width: 15px; height: 15px;
  border-radius: 4px;
  background: #5aa9e6;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1f55ad; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 2px solid #2f6fe0;
  outline-offset: 3px;
}

/* ----------------------------------------------------------------- facts */
.facts {
  background: #e9eef7;
  border-top: 1px solid #dfe6f2;
  border-bottom: 1px solid #dfe6f2;
  padding: 24px 0 0;
}

.facts-inner {
  display: grid;
  grid-template-columns: 306px 1fr;
  gap: 34px;
  align-items: start;
}

.facts-intro h2,
.panel-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  line-height: 1.3;
  color: var(--ink-2);
}

.facts-lead {
  margin: 9px 0 0;
  display: grid;
  gap: 3px;
  font-size: 13px;
  color: #42506a;
}

.facts-lead div { display: flex; gap: 7px; }
.facts-lead dt { color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.facts-lead dd { margin: 0; }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin: 0;
  padding-top: 4px;
}

.facts-grid dt {
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
}

.facts-grid dd {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.facts-note {
  padding-top: 9px;
  padding-bottom: 13px;
  font-size: 11.5px;
  color: #7b879b;
}

/* ----------------------------------------------------------------- panels */
.panel {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(18, 35, 63, 0.06);
  padding: 13px 20px 14px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-hint { font-size: 12.5px; color: var(--muted); }

.link-more {
  flex: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}
.link-more:hover { text-decoration: underline; }

.panel-note { margin-top: 9px; font-size: 11.5px; color: var(--muted); }

.after-hero { margin-top: 18px; }
.vars-block { margin-top: 46px; }

/* ------------------------------------------------------------ categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.cat-card {
  min-width: 0;
  border-radius: 7px;
  overflow: hidden;
  background: #0e2438;
}

.cat-card a { display: block; position: relative; height: 132px; }

.cat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.96;
  transition: transform 0.35s ease;
}
.cat-card a:hover img { transform: scale(1.04); }

.cat-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 10px 8px;
  color: #fff;
  background: linear-gradient(180deg, rgba(8, 25, 40, 0) 0%, rgba(8, 25, 40, 0.82) 46%, rgba(8, 25, 40, 0.95) 100%);
}

.cat-body h3 { font-size: 15.5px; line-height: 1.25; }
.cat-body p { margin-top: 2px; font-size: 10.5px; line-height: 1.4; color: #d3e2f3; }
.cat-body .cat-kws { color: #90b6da; font-size: 9.5px; }

/* -------------------------------------------------------------- varieties */
.var-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-top: 9px;
}

.var-card { min-width: 0; }

.var-card img {
  width: 100%;
  aspect-ratio: 2.8 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}

.var-card h3 {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.3;
  text-align: center;
  color: var(--ink-2);
}

.var-card p {
  margin-top: 1px;
  font-size: 9.5px;
  line-height: 1.35;
  text-align: center;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 13px;
}
.var-card a:hover h3 { color: var(--blue); }

/* ------------------------------------------------------------- three rows */
.row-three {
  display: grid;
  grid-template-columns: 1fr 1.16fr 1fr;
  gap: 18px;
  margin-top: 44px;
}

.tank-lead {
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
}

.tank-body { display: flex; gap: 10px; margin-top: 6px; }

.tank-body img {
  width: 92px; height: 92px;
  flex: none;
  object-fit: cover;
  border-radius: 6px;
}

.tank-list { margin: 0; display: grid; gap: 5px; font-size: 10.5px; }

.tank-list div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 5px;
  align-items: start;
}

.tank-list dt {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}

.tank-list dt::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  flex: none;
}

.tank-list dd { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.ok dt::before { background: #2e9e5b; }
.mid dt::before { background: #d99a1f; }
.no dt::before { background: #cf4646; }

.tank-note {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.steps { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; counter-reset: step; }

.steps li { display: flex; gap: 11px; align-items: flex-start; }

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  flex: none;
  counter-increment: step;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.step-no::before { content: counter(step); }

.steps h3 {
  font-size: 12.5px;
  line-height: 1.25;
  color: var(--ink-2);
}
.steps h3 + p { margin-top: 0; font-size: 10px; line-height: 1.4; color: var(--ink-soft); }

.pick-list { display: grid; gap: 6px; margin-top: 6px; }

.pick { display: flex; gap: 10px; align-items: center; }

.pick img {
  width: 58px; height: 41px;
  flex: none;
  object-fit: cover;
  border-radius: 5px;
}

.pick h3 {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pick p {
  margin-top: 1px;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pick:hover h3 { color: var(--blue); }

/* --------------------------------------------------------------- two rows */
.row-two {
  display: grid;
  grid-template-columns: 1.58fr 1fr;
  gap: 20px;
  margin-top: 35px;
}

.params table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-size: 13px;
}

.params thead th {
  background: var(--blue-soft);
  color: #25324a;
  font-weight: 700;
  text-align: left;
  padding: 5px 10px;
  border-bottom: 1px solid #dfe7f4;
}

.params tbody th {
  padding: 2px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 1px solid #eef2f8;
  white-space: nowrap;
}

.params tbody td {
  padding: 2px 10px;
  color: #3b4a63;
  border-bottom: 1px solid #eef2f8;
}

.params tbody tr:nth-child(even) { background: #f8fafd; }
.params tbody tr:last-child th,
.params tbody tr:last-child td { border-bottom: 0; }

.table-note { margin-top: 7px; font-size: 11px; color: #838fa3; }

.faq details { border-bottom: 1px solid #e8edf5; }
.faq details:last-child { border-bottom: 0; }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  width: 8px; height: 8px;
  flex: none;
  margin-right: 4px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(-135deg); }

.faq details p {
  padding: 0 0 11px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------- cta */
.cta {
  position: relative;
  height: 204px;
  margin-top: 42px;
  overflow: hidden;
  background: #0f2233;
}

.cta-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: left center;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 25, 32, 0.18) 0%, rgba(10, 25, 32, 0.6) 42%, rgba(10, 25, 32, 0.66) 100%);
}

.cta-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
}

.cta h2 { font-size: 34px; line-height: 1.2; color: #fff; }
.cta p { margin-top: 4px; font-size: 14px; color: #d8e4f0; }
.cta-actions { display: flex; gap: 12px; }

/* ----------------------------------------------------------------- footer */
.site-footer {
  margin-top: 35px;
  background: var(--navy);
  color: #c8d4e6;
  padding-top: 38px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr 1.35fr;
  gap: 40px;
  padding-bottom: 24px;
}

.footer-brand .brand { color: #fff; font-size: 18px; }
.footer-brand p { margin-top: 8px; font-size: 12.5px; color: #93a4bd; }

.footer-inner h2 { margin-bottom: 10px; font-size: 13px; font-weight: 700; color: #fff; }

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 6px 20px;
  font-size: 12.5px;
}

.footer-nav a:hover { color: #fff; text-decoration: underline; }

.footer-note p { font-size: 12.5px; line-height: 1.7; color: #93a4bd; }

.footer-bottom {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11.5px;
  color: #8b9ab2;
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .nav { gap: 13px; font-size: 13.5px; }
  .hero h1 { font-size: 54px; }
  .facts-inner { grid-template-columns: 260px 1fr; gap: 24px; }
  .cat-card a { height: 138px; }
  .var-card p { min-height: 0; }
  .row-three { grid-template-columns: 1fr 1fr; }
  .row-three .picks { grid-column: 1 / -1; }
  .pick-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .nav {
    position: absolute;
    top: 69px; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 32px 16px;
    background: var(--navy);
    box-shadow: 0 12px 24px rgba(9, 25, 45, 0.25);
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .nav a.is-active { border-bottom-color: rgba(255, 255, 255, 0.1); color: #8db6ff; }
  .nav-toggle { display: block; }
  .pill-cta { margin-left: 0; }
  .header-inner { gap: 14px; }
  .hero { height: 430px; }
  .hero-inner { padding-bottom: 76px; }
  .hero-stats { right: 32px; left: 32px; bottom: 22px; justify-content: flex-start; flex-wrap: wrap; gap: 14px 22px; }
  .facts-inner { grid-template-columns: 1fr; gap: 12px; }
  .facts-grid { grid-template-columns: repeat(3, 1fr); gap: 12px 16px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-card a { height: 150px; }
  .var-grid { grid-template-columns: repeat(4, 1fr); }
  .row-three, .row-two { grid-template-columns: 1fr; gap: 18px; }
  .row-three { margin-top: 26px; }
  .pick-list { grid-template-columns: 1fr; }
  .cta { height: auto; padding: 34px 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 18px; text-align: left; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-note { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .shell { padding: 0 18px; }
  .site-header, .header-inner { height: 62px; }
  .nav { top: 62px; padding: 8px 18px 14px; }
  .brand { font-size: 16px; }
  .pill-cta { display: none; }
  .hero { height: 476px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 18px; }
  .hero-text { font-size: 14px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-stats { left: 18px; right: 18px; font-size: 12.5px; }
  .hero-stats li { gap: 5px; }
  .facts { padding-top: 14px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-note { padding-left: 18px; padding-right: 18px; }
  .panel { padding: 15px 15px 16px; }
  .panel-head h2, .facts-intro h2 { font-size: 20px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card a { height: 132px; }
  .var-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .footer-nav ul { grid-template-columns: repeat(3, auto); }
  .cta h2 { font-size: 26px; }
  .footer-bottom { justify-content: flex-start; flex-wrap: wrap; }
}

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