/* ===========================================================
   河北宇红苗木 · 品种档案站  样式表
   文件位置：/v/assets/site.css
   说明：手机优先。所有页面共用本文件，改样式只需改这一处。
   =========================================================== */

:root {
  --ink:      #1f1a17;
  --ink-2:    #4b423b;
  --ink-3:    #8b7f74;
  --line:     #e7ded4;
  --line-2:   #f2ece5;
  --bg:       #faf7f3;
  --card:     #ffffff;
  --brand:    #9d1b20;
  --brand-d:  #7a1116;
  --brand-l:  #fbecea;
  --gold:     #a2803c;
  --gold-l:   #faf3e6;
  --radius:   14px;
  --radius-s: 9px;
  --shadow:   0 1px 2px rgba(31, 26, 23, .05), 0 8px 24px rgba(31, 26, 23, .05);
  --ff: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --ff-num: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: .01em;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  background: rgba(250, 247, 243, .88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.topbar__home {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: .04em;
}
.topbar__home::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--brand);
  vertical-align: 1px;
}
.topbar__back { color: var(--ink-2); }
.topbar__back::after { content: " ›"; color: var(--ink-3); }

/* ---------- 主图 ---------- */
.hero {
  position: relative;
  margin: 0;
  background: #2b1a19;
  overflow: hidden;
}
.hero img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.hero__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 58px 20px 20px;
  color: #fff;
  background: linear-gradient(to top,
      rgba(24, 12, 12, .86) 0%,
      rgba(24, 12, 12, .58) 52%,
      rgba(24, 12, 12, 0) 100%);
}
.hero__kicker {
  margin: 0 0 6px;
  font-size: 12.5px;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .82);
}
.hero h1 {
  margin: 0;
  font-size: clamp(27px, 8vw, 40px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.hero__sub {
  margin: 7px 0 0;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .9);
}

/* ---------- 容器 ---------- */
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 20px 8px;
}

.lead {
  margin: 0 0 30px;
  font-size: 16.5px;
  line-height: 1.92;
  color: var(--ink-2);
}
.lead::first-letter { font-size: 1em; }

/* ---------- 区块 ---------- */
.block { margin: 0 0 34px; }

.block h2 {
  position: relative;
  margin: 0 0 16px;
  padding-left: 13px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .05em;
}
.block h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .34em;
  width: 4px;
  height: 1.06em;
  border-radius: 2px;
  background: var(--brand);
}

/* ---------- 信息卡（品种身份） ---------- */
.facts {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.facts > div {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
}
.facts > div:last-child { border-bottom: 0; }
.facts dt {
  flex: 0 0 88px;
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
}
.facts dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  word-break: break-word;
}
.mono {
  font-family: var(--ff-num);
  font-size: 15.5px !important;
  letter-spacing: .04em;
  font-weight: 600;
}
.tag {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--brand-l);
  color: var(--brand-d);
  font-size: 13px;
  font-weight: 600;
}

/* 权利状态三色标签：已获授权=品牌红 / 拟申请=金 / 育种材料=中性灰 */
.tag--auth     { background: var(--brand-l); color: var(--brand-d); }
.tag--pending  { background: var(--gold-l);  color: #8a6a24; }
.tag--material { background: #eeeeea;        color: #6d6a63; }

.card__tag { padding: 0 7px; font-size: 11.5px; vertical-align: 1px; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}
.legend .tag { padding: 3px 11px; font-size: 13px; }
.legend .tag b { margin-left: 4px; font-weight: 700; }

.callout--soft {
  margin: 0 0 26px;
  background: #f4f1ec;
  border-color: #e2dad0;
  color: #5b544c;
}
.callout--soft strong { color: #443d36; }

.hero--noimg { min-height: 220px; }

/* ---------- 性状表 ---------- */
.traits {
  margin: 0;
  display: grid;
  gap: 10px;
}
.traits > div {
  padding: 13px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-s);
}
.traits dt {
  margin: 0 0 3px;
  font-size: 13px;
  color: var(--brand-d);
  font-weight: 600;
  letter-spacing: .08em;
}
.traits dd {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.8;
}

/* ---------- 图集 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--line-2);
}
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.gallery figcaption {
  padding: 7px 10px 9px;
  font-size: 12.5px;
  color: var(--ink-3);
  background: var(--card);
  border-top: 1px solid var(--line-2);
}
.gallery figure.wide { grid-column: 1 / -1; }
.gallery figure.wide img { aspect-ratio: 3 / 2; }

/* ---------- 用途清单 ---------- */
.uses {
  margin: 0;
  padding: 0;
  list-style: none;
}
.uses li {
  position: relative;
  padding: 0 0 0 22px;
  margin: 0 0 11px;
  font-size: 15.5px;
  color: var(--ink-2);
}
.uses li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.uses b { color: var(--ink); }

/* ---------- 提示框 ---------- */
.callout {
  padding: 15px 17px;
  border-radius: var(--radius-s);
  background: var(--gold-l);
  border: 1px solid #eddfc4;
  font-size: 14.5px;
  color: #6b5322;
  line-height: 1.78;
}
.callout strong { color: #5a4318; }

.note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.7;
}

/* ---------- 页脚 ---------- */
.site-foot {
  margin-top: 44px;
  padding: 26px 20px 40px;
  background: #241c19;
  color: rgba(255, 255, 255, .74);
  font-size: 13.5px;
  line-height: 1.85;
}
.site-foot__inner { max-width: 760px; margin: 0 auto; }
.site-foot strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 15px;
  letter-spacing: .04em;
}
.site-foot a { color: #e9b7b4; }
.site-foot__meta {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
}

/* ---------- 总览页 ---------- */
.page-title {
  padding: 34px 20px 6px;
  max-width: 760px;
  margin: 0 auto;
}
.page-title h1 {
  margin: 0;
  font-size: clamp(24px, 6.4vw, 32px);
  letter-spacing: .03em;
}
.page-title p {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 15.5px;
}

.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(31, 26, 23, .06), 0 14px 34px rgba(31, 26, 23, .1);
}
.card a { display: block; color: inherit; }
.card a:hover { text-decoration: none; }
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--line-2);
}
.card__body { padding: 13px 15px 15px; }
.card__no {
  font-family: var(--ff-num);
  font-size: 12.5px;
  color: var(--brand);
  letter-spacing: .06em;
  font-weight: 600;
}
.card__name {
  margin: 3px 0 4px;
  font-size: 18px;
  font-weight: 700;
}
.card__desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.72;
}

.pending {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-s);
  font-size: 14px;
  color: var(--ink-3);
  background: rgba(255, 255, 255, .6);
}

/* ---------- 大屏微调 ---------- */
@media (min-width: 720px) {
  body { font-size: 16.5px; }
  .wrap { padding-top: 34px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery figure.wide { grid-column: span 1; }
  .gallery figure.wide img { aspect-ratio: 1 / 1; }
  .facts dt { flex-basis: 104px; }
  .hero img { aspect-ratio: 21 / 9; max-height: 460px; }
}

/* ---------- 打印 ---------- */
@media print {
  .topbar, .site-foot { display: none; }
  body { background: #fff; }
  a { color: #000; }
}
