/* 赤三色锦鲤科普网 · 版式与首页布局 */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

img { display: block; max-width: 100%; height: auto; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.wrap {
  width: var(--container);
  max-width: calc(100% - 64px);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  z-index: 99;
}

.skip-link:focus { left: 12px; top: 12px; }

/* ───────────────────────── 页头 ───────────────────────── */
.site-header {
  background: var(--navy);
  color: #eaf1f2;
  height: var(--h-header);
  position: relative;
  z-index: 20;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
}

.brand-mark svg { width: 18px; height: 18px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 21px;
  margin-left: auto;
}

.site-nav a {
  font-size: var(--fs-4);
  color: #d6e3e6;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--red);
}

.header-cta {
  margin-left: 8px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 9px 17px;
  font-size: var(--fs-3);
  letter-spacing: 0.02em;
  transition: background 0.18s ease;
}

.header-cta:hover { background: var(--red-deep); }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(234, 241, 242, 0.4);
  border-radius: 8px;
  background: transparent;
  color: #eaf1f2;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: currentColor;
}

/* ───────────────────────── 首屏 ───────────────────────── */
.hero {
  position: relative;
  height: var(--h-hero);
  background: var(--navy-deep);
  overflow: hidden;
  color: #f4f4ee;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 32, 52, 0.95) 0%, rgba(6, 34, 55, 0.86) 40%, rgba(7, 40, 62, 0.4) 66%, rgba(7, 40, 62, 0.06) 100%),
    linear-gradient(180deg, rgba(7, 35, 59, 0.34), rgba(7, 35, 59, 0.1) 40%, rgba(7, 35, 59, 0.3));
}

.hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy { max-width: 640px; }

.kicker {
  font-size: var(--fs-3);
  letter-spacing: 0.24em;
  color: #f0d7cf;
  text-transform: uppercase;
}

.hero h1 {
  font-size: var(--fs-9);
  line-height: 1;
  letter-spacing: 0.06em;
  margin: 12px 0 6px;
}

.hero-sub {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 27px;
  line-height: 1.35;
  color: #f6f1e6;
}

.hero-lead {
  margin-top: 12px;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(238, 243, 238, 0.84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pill {
  border: 1px solid rgba(240, 244, 240, 0.42);
  border-radius: var(--radius-pill);
  padding: 8px 15px;
  font-size: var(--fs-3);
  line-height: 1.4;
  color: #eff3ee;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.pill:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.pill-solid {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.pill-solid:hover { background: var(--red-deep); border-color: var(--red-deep); }

.hero-stat {
  border: 1px solid rgba(240, 244, 240, 0.42);
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-pill);
  padding: 8px 15px;
  font-size: var(--fs-3);
  line-height: 1.4;
  color: #e3ebe6;
  cursor: default;
}

/* ───────────────────────── 分区通用 ───────────────────────── */
.section { position: relative; }

.section-inner {
  display: grid;
  grid-template-columns: var(--aside) 1fr;
  gap: var(--aside-gap);
  height: 100%;
}

.section-head h2 {
  font-size: var(--fs-8);
  line-height: 1.15;
  color: var(--ink);
}

.section-head .sub {
  margin-top: 8px;
  font-size: var(--fs-5);
  color: var(--ink-soft);
}

.head-rule {
  display: block;
  width: 44px;
  height: 3px;
  background: var(--red);
  margin: 12px 0 14px;
}

.section-head .desc {
  max-width: 212px;
  font-size: var(--fs-3);
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 分类索引 */
.cat-index {
  height: var(--h-cat);
  padding-top: 55px;
  border-bottom: 1px solid var(--line-soft);
}

.cat-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  align-content: start;
}

.cat-item { display: block; }

.cat-item img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: #dbe5e6;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease;
}

.cat-item:hover img { transform: translateY(-3px); }

.cat-name {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-3);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
}

.cat-desc {
  display: block;
  margin-top: 3px;
  font-size: var(--fs-1);
  line-height: 1.45;
  text-align: center;
  color: var(--muted);
}

/* 精选品种 */
.featured .section-head { margin-top: 18px; }

.featured {
  height: var(--h-featured);
  padding-top: 55px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 26px;
}

.variety-card { display: block; }

.variety-card img {
  width: 100%;
  aspect-ratio: 2.9 / 1;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: #d5e0e2;
}

.variety-body {
  background: var(--card);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 6px 10px 7px;
  transition: background 0.18s ease;
}

.variety-card:hover .variety-body { background: #ece0d2; }

.tag {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  line-height: 1.35;
  color: var(--red);
}

.variety-title {
  font-size: 14.5px;
  line-height: 1.25;
  margin-top: 0;
}

.variety-sum {
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--ink-soft);
  height: 28px;
  overflow: hidden;
}

/* 鉴别顺序 */
.steps {
  height: var(--h-steps);
  padding-top: 56px;
  background: var(--cream-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

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

.step {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 13px 16px 15px;
}

.step::after {
  content: "›";
  position: absolute;
  right: -21px;
  top: 50%;
  transform: translateY(-50%);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 24px;
  color: var(--red);
}

.step:last-child::after { content: none; }

.step-no {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--red);
}

.step h3 {
  font-size: 15px;
  margin-top: 3px;
}

.step p {
  margin-top: 5px;
  font-size: var(--fs-1);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* 饲养要点 */
.care {
  height: var(--h-care);
  padding-top: 14px;
  padding-bottom: 12px;
}

.care-inner { align-items: start; }

.care-card {
  background: var(--mint);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 17px 24px 18px;
}

.care-intro {
  grid-column: 1 / -1;
  font-size: var(--fs-1);
  line-height: 1.6;
  color: var(--ink-soft);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(20, 49, 63, 0.12);
}

.care-item { display: grid; grid-template-columns: 24px 1fr; gap: 9px; align-items: start; }

.care-icon { width: 20px; height: 20px; color: var(--navy); margin-top: 3px; }

.care-item h3 {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.care-item p {
  grid-column: 2;
  margin-top: 3px;
  font-size: var(--fs-1);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* 池体参数 */
.pond {
  height: var(--h-pond);
  padding-top: 56px;
}

.pond-body {
  display: grid;
  grid-template-columns: 335px 1fr;
  gap: 30px;
  align-items: start;
}

.pond-body img {
  width: 100%;
  aspect-ratio: 335 / 200;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: #d5e0e2;
}

.spec-list { display: grid; gap: 5px; }

.spec-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: var(--fs-3);
  line-height: 1.5;
  color: var(--ink-soft);
}

.spec-row::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--red);
  transform: translateY(-2px);
}

.spec-row b { font-weight: 600; color: var(--ink); }

.spec-note {
  margin-top: 9px;
  font-size: var(--fs-1);
  line-height: 1.6;
  color: var(--muted);
}

/* 收录说明 */
.editorial {
  height: var(--h-editorial);
  padding-top: 27px;
  background: var(--mint);
}

.editorial-body {
  position: relative;
  padding-right: 300px;
}

.editorial-body p {
  font-size: var(--fs-3);
  line-height: 1.9;
  color: var(--ink-soft);
}

.editorial-art {
  position: absolute;
  right: 0;
  top: -18px;
  width: 212px;
  opacity: 0.96;
}

/* ───────────────────────── 页脚 ───────────────────────── */
.site-footer {
  background: var(--navy-deep);
  color: #cddde1;
  height: var(--h-footer);
  display: flex;
  align-items: center;
}

.footer-inner { width: 100%; }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 12px;
  font-size: var(--fs-3);
}

.footer-top a {
  padding: 3px 0;
  color: #d5e3e6;
  transition: color 0.18s ease;
}

.footer-top a:hover { color: #fff; }

.footer-top > * + *::before {
  content: "|";
  margin-right: 12px;
  color: rgba(205, 221, 225, 0.35);
}

.footer-top .f-brand {
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  color: #fff;
  font-size: 13.5px;
}

.footer-back { margin-left: 20px; }

.footer-bottom {
  margin-top: 14px;
  text-align: center;
  font-size: 11.5px;
  color: rgba(205, 221, 225, 0.6);
}

/* ───────────────────────── 内页共用 ───────────────────────── */
.page-hero {
  background: var(--navy);
  color: #eef4f5;
  padding: 46px 0 42px;
}

.crumbs {
  font-size: var(--fs-2);
  color: rgba(230, 240, 242, 0.62);
  display: flex;
  gap: 8px;
  align-items: center;
}

.crumbs a:hover { color: #fff; }

.page-hero h1 {
  font-size: 40px;
  margin-top: 16px;
  color: #fff;
}

.page-hero .lede {
  margin-top: 12px;
  max-width: 720px;
  font-size: var(--fs-5);
  line-height: 1.8;
  color: rgba(232, 241, 242, 0.82);
}

.page-hero .count {
  margin-top: 16px;
  display: inline-block;
  font-size: var(--fs-2);
  letter-spacing: 0.12em;
  color: #f0c9c1;
  border-top: 1px solid rgba(240, 201, 193, 0.4);
  padding-top: 8px;
}

/* ───────────────────────── 响应式 ───────────────────────── */
@media (max-width: 1180px) {
  .site-nav { display: none; }
  .menu-toggle { display: block; }
  .header-cta { margin-left: 0; }
  .site-nav.is-open {
    display: flex;
    position: absolute;
    top: var(--h-header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 32px 18px;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 30px rgba(4, 22, 38, 0.35);
  }
  .site-nav.is-open a { padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
}

@media (max-width: 1080px) {
  .wrap { max-width: calc(100% - 48px); }
  .hero { height: auto; padding: 56px 0 60px; }
  .hero::after { background: linear-gradient(90deg, rgba(6, 32, 52, 0.94), rgba(6, 34, 55, 0.62)); }
  .hero h1 { font-size: 54px; }
  .hero-sub { font-size: 22px; }
  .section { height: auto !important; padding: 48px 0; }
  .section-inner { grid-template-columns: 1fr; gap: 28px; }
  .section-head .desc { max-width: 560px; }
  .cat-strip { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .step::after { content: none; }
  .care-card { grid-template-columns: repeat(2, 1fr); gap: 18px 26px; }
  .pond-body { grid-template-columns: 1fr; }
  .pond-body img { aspect-ratio: 16 / 9; }
  .editorial-body { padding-right: 0; }
  .editorial-art { display: none; }
  .site-footer { height: auto; padding: 36px 0; }
  .footer-top { gap: 0 10px; }
}

@media (max-width: 640px) {
  :root { --fs-9: 44px; }
  .wrap { max-width: calc(100% - 36px); }
  .header-inner { gap: 14px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 24px; height: 24px; flex-basis: 24px; }
  .header-cta { padding: 8px 13px; font-size: 12px; }
  .hero { padding: 44px 0 48px; }
  .hero h1 { font-size: 42px; }
  .hero-sub { font-size: 19px; }
  .hero-lead { font-size: 13px; }
  .hero-actions { gap: 8px; }
  .pill { padding: 7px 12px; font-size: 12px; }
  .section { padding: 38px 0; }
  .section-head h2 { font-size: 24px; }
  .cat-strip { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .step-grid { grid-template-columns: 1fr; }
  .care-card { grid-template-columns: 1fr; }
  .variety-card img { aspect-ratio: 2.2 / 1; }
  .footer-top { justify-content: flex-start; font-size: 12px; }
  .footer-top > * + *::before { display: none; }
  .footer-top a { display: inline-block; margin-right: 10px; }
  .footer-back { margin-left: 0; }
  .page-hero { padding: 32px 0 30px; }
  .page-hero h1 { font-size: 30px; }
}
