/* ============================================================
   血红龙鱼科品种大全 · 首页与共享样式
   设计基准 1440px；深色水景 + 血红单一强调色
   ============================================================ */

/* 设计变量统一在 css/tokens.css（先于本文件加载） */


*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--text); font-weight: 700; margin: 0; line-height: 1.25; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--red); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 12px; }

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

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(9, 9, 10, .94);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(10px);
}
.header-inner {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
  height: 68px;
  display: flex; align-items: center; gap: 26px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark { width: 32px; height: 32px; color: var(--red); flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { font-size: 17px; font-weight: 700; letter-spacing: .02em; line-height: 1.1; }
.brand-sub { display: block; font-size: 10px; font-weight: 500; letter-spacing: .24em; color: var(--muted); margin-top: 3px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 13.5px; }
.site-nav a { color: var(--body); padding: 6px 2px; transition: color .18s var(--ease); white-space: nowrap; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--red-bright); border-bottom: 1px solid rgba(255, 74, 61, .55); }
.site-nav .nav-cta { color: var(--red-bright); font-weight: 600; }
.nav-toggle { display: none; width: 40px; height: 40px; margin-left: auto; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 9px; width: 22px; height: 2px; background: var(--text); content: ""; transition: transform .2s var(--ease);
}
.nav-toggle-bar { top: 19px; }
.nav-toggle-bar::before { top: -7px; left: 0; }
.nav-toggle-bar::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero-inner {
  position: static;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  min-height: 396px;
  padding: 34px 0 32px;
  display: flex; align-items: center;
}
.hero-media {
  position: absolute; top: 0; bottom: 0;
  right: 0;
  width: 60%; margin: 0; z-index: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(11, 11, 12, .92) 16%, rgba(11, 11, 12, .35) 42%, rgba(11, 11, 12, 0) 62%);
}
.hero-copy { position: relative; z-index: 1; max-width: 560px; }
.eyebrow {
  font-size: 11px; letter-spacing: .32em; color: var(--muted);
  margin: 0 0 12px; font-weight: 600;
}
.hero h1 { font-size: 62px; line-height: 1.02; letter-spacing: .02em; }
.hero-sub { font-size: 26px; font-weight: 600; color: var(--red); margin: 8px 0 14px; letter-spacing: .01em; }
.hero-lead { font-size: 13.5px; line-height: 1.8; color: var(--body); max-width: 470px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn-primary { background: var(--red); color: #fff; margin-top: 20px; }
.btn-primary:hover { background: #f02b26; transform: translateY(-1px); }
.arrow { display: inline-block; width: 14px; height: 1px; background: currentColor; position: relative; }
.arrow::after {
  content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}
.hero-facts { position: absolute; right: 0; bottom: 34px; z-index: 1; width: 46%; }
.hero-stats { display: flex; gap: 30px; align-items: center; }
.hero-stats li { display: flex; align-items: center; gap: 9px; }
.hero-stats svg { width: 21px; height: 21px; color: var(--red); flex: none; }
.hero-stats b { display: block; font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 18px; color: var(--text); letter-spacing: -.01em; line-height: 1.3; }
.hero-stats small { display: block; font-size: 10.5px; color: var(--muted); }
.hero-note { font-size: 11px; color: var(--dim); margin-top: 10px; text-align: right; }

/* ---------- sections shared ---------- */
.section-head h2 { font-size: 25px; letter-spacing: .01em; }
.section-head p { font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.more-link { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.more-link:hover { color: var(--red-bright); }

/* ---------- topics ---------- */
.topics { padding: 20px 0 20px; background: var(--bg-band); border-bottom: 1px solid var(--line-soft); }
.topics .section-head { text-align: center; }
.topics .section-head h2 {
  display: inline-block; font-size: 24px; padding: 0 18px; position: relative;
  border-left: 3px solid var(--red); border-right: 3px solid var(--red);
}
.topics .section-head p { max-width: 720px; margin-inline: auto; }
.topic-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 14px; }
.topic-card {
  display: block; height: 100%; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; padding-bottom: 12px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.topic-card:hover { border-color: rgba(224, 35, 31, .55); transform: translateY(-2px); }
.topic-thumb { display: block; position: relative; aspect-ratio: 16 / 5.6; overflow: hidden; }
.topic-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.95) brightness(.9); }
.topic-num {
  position: absolute; top: 6px; right: 6px;
  background: rgba(10, 10, 11, .82); border: 1px solid rgba(224, 35, 31, .55);
  color: var(--red-bright); font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif; font-size: 10.5px; font-weight: 600;
  padding: 1px 6px; border-radius: 5px; line-height: 1.6;
}
.topic-card h3 { font-size: 13.5px; margin: 7px 11px 3px; }
.topic-card p { font-size: 10.5px; line-height: 1.4; color: var(--muted); margin: 0 11px; }

/* ---------- breed ---------- */
.breed { background: var(--bg-band-2); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.breed-inner {
  max-width: 1440px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 43%) minmax(0, 1fr);
  align-items: stretch;
}
.breed-media { margin: 0; position: relative; min-height: 360px; }
.breed-media img { width: 100%; height: 100%; object-fit: cover; }
.breed-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13, 13, 14, .25) 0%, rgba(13, 13, 14, 0) 45%, var(--bg-band-2) 100%);
}
.breed-copy { padding: 40px 24px 40px 48px; max-width: 700px; }
.breed-copy h2 { font-size: 25px; }
.breed-copy > p { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.breed-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.breed-card { border-left: 2px solid var(--red-deep); padding-left: 14px; }
.breed-card img { display: none; }
.breed-card h3 { font-size: 17px; color: var(--red); }
.breed-card p { font-size: 12px; line-height: 1.65; color: var(--body); margin-top: 7px; }

/* ---------- grading ---------- */
.grading { position: relative; background: var(--bg); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.grading-inner {
  width: min(1440px, 100%); margin-inline: auto;
  padding: 16px 0 16px 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) 450px; gap: 30px; align-items: center;
}
.grading-main { min-width: 0; }
.grading-main h2 { font-size: 24px; text-align: center; }
.grading-main > p { font-size: 12px; color: var(--muted); margin-top: 5px; text-align: center; }
.table-wrap { margin-top: 11px; overflow-x: auto; border-radius: 8px; border: 1px solid var(--line); }
.grading-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 560px; }
.grading-table th, .grading-table td { text-align: left; padding: 5px 13px; border-bottom: 1px solid var(--line-soft); }
.grading-table thead th { background: var(--red-deep); color: #fff; font-weight: 600; font-size: 12px; border-bottom: 0; }
.grading-table tbody th { color: var(--text); font-weight: 600; white-space: nowrap; }
.grading-table tbody tr:nth-child(odd) { background: var(--card); }
.grading-table tbody tr:nth-child(even) { background: var(--bg-band); }
.grading-table tbody tr:last-child th, .grading-table tbody tr:last-child td { border-bottom: 0; }
.table-note { font-size: 10.5px; color: var(--dim); margin-top: 7px; }
.grading-media { margin: 0; height: 238px; align-self: center; }
.grading-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; border-radius: 0; }
.grading-media::after { display: none; }

/* ---------- latest ---------- */
.latest { padding: 12px 0 14px; background: var(--bg-band); border-bottom: 1px solid var(--line-soft); }
.latest .section-head h2 { font-size: 22px; }
.latest-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-top: 10px; }
.latest-card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; padding: 0 0 9px; transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.latest-card:hover { border-color: rgba(224, 35, 31, .5); transform: translateY(-2px); }
.latest-card img { width: 100%; height: auto; aspect-ratio: 16 / 5.8; object-fit: cover; filter: brightness(.92); }
.latest-card .tag { display: block; font-size: 10px; color: var(--red-bright); margin: 6px 9px 2px; letter-spacing: .02em; }
.latest-card h3 { font-size: 11px; line-height: 1.36; margin: 0 9px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.latest-card p { font-size: 10px; line-height: 1.4; color: var(--muted); margin: 3px 9px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest-card .meta { display: block; font-size: 10px; color: var(--dim); margin: 4px 9px 0; }

/* ---------- split: checklist + faq ---------- */
.split { background: var(--bg); padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.split-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.check-panel, .faq {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 12px 16px 12px; height: 100%;
}
.check-panel h2, .faq h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.check-panel h2::before {
  content: "✓"; display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 5px; background: var(--red); color: #fff;
  font-size: 13px; font-weight: 700;
}
.faq h2::before {
  content: "?"; display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--red); color: var(--red-bright);
  font-size: 13px; font-weight: 700;
}
.check-panel > p, .faq > p { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.check-progress { height: 3px; background: #2a2a2e; border-radius: 99px; margin: 10px 0 9px; overflow: hidden; }
.check-progress span { display: block; height: 100%; width: 0; background: var(--red); transition: width .25s var(--ease); }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.check-item { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.check-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box {
  flex: none; width: 16px; height: 16px; border: 1px solid #3a3a3f; border-radius: 4px; margin-top: 3px;
  position: relative; transition: background .18s var(--ease), border-color .18s var(--ease);
}
.check-item input:checked + .check-box { background: var(--red); border-color: var(--red); }
.check-item input:checked + .check-box::after {
  content: ""; position: absolute; left: 4px; top: 1px; width: 6px; height: 10px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(40deg);
}
.check-item input:focus-visible + .check-box { outline: 2px solid var(--red-bright); outline-offset: 2px; }
.check-text b { display: block; font-size: 11.5px; color: var(--text); font-weight: 600; line-height: 1.35; }
.check-text small { display: block; font-size: 10px; color: var(--muted); line-height: 1.35; margin-top: 1px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.faq-list { margin-top: 10px; }
.faq details { border-top: 1px solid var(--line-soft); }
.faq details:first-child { border-top: 0; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 11.5px; color: var(--text); padding: 6px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 12px; height: 12px; flex: none; }
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; background: var(--red-bright); border-radius: 1px;
}
.faq-plus::before { left: 0; top: 5px; width: 12px; height: 2px; }
.faq-plus::after { left: 5px; top: 0; width: 2px; height: 12px; transition: transform .2s var(--ease); }
.faq details[open] .faq-plus::after { transform: rotate(90deg); opacity: 0; }
.faq details p { font-size: 10.5px; color: var(--muted); line-height: 1.5; padding: 0 0 6px; }

/* ---------- notice ---------- */
.notice { position: relative; background: var(--bg-band-2); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.notice::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 52%;
  background: url("../images/eye-macro.jpg") 60% 42% / cover no-repeat;
  opacity: .5; filter: saturate(.8) brightness(.75);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 45%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 45%, #000 100%);
}
.notice-inner { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 0; }
.notice-icon {
  flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--red);
  color: var(--red-bright); display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.notice-title { font-size: 14px; color: var(--text); font-weight: 700; }
.notice-text { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ---------- footer ---------- */
.site-footer { background: #09090a; padding: 26px 0 18px; }
.footer-inner { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-brand .brand-mark { width: 30px; height: 30px; }
.footer-brand .brand-text { font-size: 16px; }
.footer-brand p { font-size: 11.5px; color: var(--muted); margin-top: 10px; max-width: 330px; line-height: 1.65; }
.footer-index h2, .footer-notes h2 { font-size: 11px; letter-spacing: .18em; color: var(--dim); text-transform: uppercase; margin-bottom: 9px; }
.footer-index ul { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; }
.footer-index a:hover { color: var(--red-bright); }
.footer-notes p { font-size: 11px; color: var(--muted); line-height: 1.7; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line-soft); margin-top: 22px; padding-top: 14px;
  font-size: 11.5px; color: var(--dim);
}
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.to-top:hover { color: var(--text); }
.arrow-up { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--red); position: relative; }
.arrow-up::before {
  content: ""; position: absolute; left: 9px; top: 11px; width: 7px; height: 7px;
  border-top: 1px solid var(--red-bright); border-right: 1px solid var(--red-bright); transform: rotate(-45deg);
}

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
  .latest-grid { grid-template-columns: repeat(4, 1fr); }
  .grading-inner { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 980px) {
  .header-inner { height: 62px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 62px;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(9, 9, 10, .98); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  .site-nav a[aria-current="page"] { border-bottom: 1px solid var(--line-soft); }
  .hero-inner { flex-direction: column; align-items: flex-start; padding-top: 30px; }
  .hero-media { position: relative; width: 100%; height: 260px; right: auto; order: 2; margin-top: 24px; }
  .hero-media::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(11,11,12,0) 45%); }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: 46px; }
  .hero-sub { font-size: 21px; }
  .hero-facts { position: static; width: auto; margin-top: 24px; }
  .hero-note { text-align: left; }
  .breed-inner { grid-template-columns: 1fr; }
  .breed-media { min-height: 240px; max-height: 300px; }
  .breed-copy { padding: 24px 24px 30px; max-width: none; }
  .grading-inner { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .grading-media { min-height: 220px; max-height: 280px; }
  .split-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-notes { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .hero-inner { width: calc(100% - 32px); }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { flex-wrap: wrap; gap: 16px 24px; }
  .check-list { grid-template-columns: 1fr; }
  .grading-table { font-size: 11.5px; }
  .grading-table th, .grading-table td { padding: 7px 10px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

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