/* ==========================================================================
   农技成果转化中心（tech-*.html 专用样式）
   顶栏 / 页头 / 页脚直接复用 style.css 的商城同款组件
   （.topbar / .site-header / .nav / .search / .auth-area / .site-footer），
   本文件只负责「中心二级导航」与中心内容区块。
   ========================================================================== */

/* ---------- 内容容器：对齐首页 main.wrap 的宽度与留白 ---------- */
#stpMain { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- 中心二级导航（挂在站点头部正下方） ---------- */
.subnav { background: var(--green-50); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.subnav .wrap { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a {
  padding: 12px 15px; font-size: 14.5px; color: var(--ink-2); white-space: nowrap;
  font-weight: 600;
  border-bottom: 2px solid transparent; transition: .16s;
}
.subnav a:hover { color: var(--green-700); }
.subnav a.on { color: var(--green-700); font-weight: 700; border-bottom-color: var(--green-700); }

/* ---------- 横幅 ---------- */
.stp-banner { position: relative; background: var(--green-900); max-width: 100%; border-radius: var(--radius); overflow: hidden; }
.stp-banner .stage { position: relative; height: 380px; }
/* 农技中心首页通栏横幅：宽度满屏、高度随满屏宽度加大（挂在 #stpMain 之外的 #stpBannerSlot） */
#stpBannerSlot { width: 100%; margin-top: -24px; }
#stpBannerSlot:empty { display: none; }
.stp-banner.full { width: 100%; max-width: none; border-radius: 0; }
.stp-banner.full .stage { height: 520px; }
.stp-banner .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .7s;
  background-size: cover; background-position: center;
}
.stp-banner .slide.on { opacity: 1; }
.stp-banner .slide-page { height: 220px; }
.stp-banner .veil {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11, 40, 26, .86) 0%, rgba(15, 56, 36, .62) 45%, rgba(20, 70, 45, .18) 100%);
}
.stp-banner .caption { position: absolute; inset: 0; display: flex; align-items: center; }
.stp-banner .caption .wrap { width: 100%; }
.stp-banner h1 { color: #fff; font-size: 34px; margin: 0 0 12px; letter-spacing: 1px; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.stp-banner h1 em { font-style: normal; color: var(--gold-500); }
.stp-banner p { color: #d8e9df; font-size: 15px; max-width: 720px; margin: 0 0 20px; line-height: 1.85; }
.stp-banner .acts { display: flex; gap: 12px; flex-wrap: wrap; }
.stp-banner .dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.stp-banner .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .45); cursor: pointer; }
.stp-banner .dots i.on { background: var(--gold-500); width: 22px; border-radius: 5px; }

/* ---------- 统计带 ---------- */
.stp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stp-stat {
  background: var(--white); border-radius: var(--radius); padding: 22px 18px; text-align: center;
  box-shadow: var(--shadow); border-top: 3px solid var(--gold-500);
}
.stp-stat b { display: block; font-size: 27px; color: var(--green-700); font-weight: 700; line-height: 1.2; }
.stp-stat b i { font-style: normal; font-size: 14px; color: var(--ink-3); margin-left: 3px; }
.stp-stat span { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-2); }

/* ---------- 平台入口卡 ---------- */
.stp-entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stp-entry {
  background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); transition: .2s;
}
.stp-entry:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--green-100); }
.stp-entry .ico { font-size: 26px; }
.stp-entry h4 { margin: 0; font-size: 16.5px; }
.stp-entry p { margin: 0; color: var(--ink-3); font-size: 13px; flex: 1; }
.stp-entry .go { color: var(--green-700); font-weight: 600; font-size: 13.5px; }

/* ---------- 豫交易入口 ---------- */
.stp-yu { background: linear-gradient(135deg, #0f3323, #1c5b3b); border-radius: var(--radius); padding: 30px; color: #dceee3; }
.stp-yu h3 { color: #fff; margin: 0 0 10px; font-size: 21px; }
.stp-yu h3 small { display: block; font-size: 11px; letter-spacing: 2px; color: var(--gold-500); font-weight: 400; margin-top: 5px; }
.stp-yu > p { color: #b9d6c6; max-width: 940px; line-height: 1.9; margin: 0 0 20px; font-size: 13.5px; }
.stp-yu-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stp-yu-card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); border-radius: 11px; padding: 15px; }
.stp-yu-card h5 { margin: 0 0 9px; color: var(--gold-500); font-size: 14.5px; }
.stp-yu-card span { display: block; font-size: 12.5px; color: #c6ded1; line-height: 1.95; }

/* ---------- 交易流程 ---------- */
.stp-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.stp-flow .step {
  flex: 1 1 0; min-width: 118px; background: var(--white); border: 1px solid var(--line); border-radius: 11px;
  padding: 16px 12px; text-align: center; position: relative; box-shadow: var(--shadow);
}
.stp-flow .step b { display: block; font-size: 21px; color: var(--green-600); font-weight: 700; line-height: 1; }
.stp-flow .step span { display: block; margin-top: 7px; font-size: 13.5px; font-weight: 600; }
.stp-flow .step i { font-style: normal; font-size: 11px; color: var(--ink-3); display: block; margin-top: 3px; }
.stp-flow .arrow { display: flex; align-items: center; color: var(--gold-500); font-size: 18px; }

/* ---------- 种业技术卡片 ---------- */
.stp-seed-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stp-seed-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); display: flex; flex-direction: column; transition: .2s; cursor: pointer;
}
.stp-seed-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stp-seed-card .thumb { position: relative; aspect-ratio: 4 / 3; background: var(--green-50); overflow: hidden; }
.stp-seed-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.stp-seed-card .thumb .none {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--green-500); background: var(--green-50);
}
.stp-seed-card .tag {
  position: absolute; top: 10px; left: 10px; background: rgba(18, 53, 36, .82); color: #fff;
  font-size: 11.5px; padding: 3px 9px; border-radius: 12px;
}
.stp-seed-card .body { padding: 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.stp-seed-card h4 { margin: 0; font-size: 15px; line-height: 1.4; }
.stp-seed-card .meta { font-size: 12.5px; color: var(--ink-3); display: flex; flex-direction: column; gap: 3px; }
.stp-seed-card .meta em { font-style: normal; color: var(--ink-2); }
.stp-seed-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 6px; }
.stp-seed-card .foot .pill { font-size: 11.5px; }
.stp-seed-card .foot .go { color: var(--green-700); font-weight: 600; font-size: 12.5px; }

/* ---------- 列表（新闻 / 公告 / 规则） ---------- */
.stp-list { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stp-list-item {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 22px; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: .16s;
}
.stp-list-item:last-child { border-bottom: 0; }
.stp-list-item:hover { background: var(--green-50); }
.stp-list-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); margin-top: 8px; flex-shrink: 0; }
.stp-list-item .grow { flex: 1; min-width: 0; }
.stp-list-item h5 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.6; }
.stp-list-item:hover h5 { color: var(--green-700); }
.stp-list-item p { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.stp-list-item .date { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; flex-shrink: 0; }
.stp-list-item .go { color: var(--green-700); font-size: 13px; white-space: nowrap; flex-shrink: 0; }

/* ---------- 详情正文 ---------- */
.stp-article { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 40px; }
.stp-article h1 { margin: 0 0 14px; font-size: 25px; line-height: 1.5; }
.stp-article .sub {
  color: var(--ink-3); font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
  margin-bottom: 22px; display: flex; gap: 18px; flex-wrap: wrap;
}
.stp-article .content p { margin: 0 0 15px; font-size: 15px; line-height: 2; color: #24352a; text-align: justify; }
.stp-article .content p.h { font-weight: 700; color: var(--green-800); font-size: 16px; margin-top: 24px; }
.stp-article .content p.center { text-align: center; }
.stp-article .empty { color: var(--ink-3); font-size: 14px; }
.stp-article-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

.stp-seed-detail { display: grid; grid-template-columns: 380px 1fr; gap: 30px; }
.stp-seed-detail .pic { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--green-50); }
.stp-seed-detail .pic img { width: 100%; }
.stp-seed-detail .attrs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0 0; }
.stp-seed-detail .attr { background: var(--green-50); border-radius: 10px; padding: 12px 14px; }
.stp-seed-detail .attr span { display: block; font-size: 12px; color: var(--ink-3); }
.stp-seed-detail .attr b { display: block; font-size: 14.5px; margin-top: 3px; font-weight: 600; }

/* ---------- 关于我们 ---------- */
.stp-about-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 34px; }
.stp-about-card h3 { margin: 0 0 16px; font-size: 20px; }
.stp-about-card p { font-size: 15px; line-height: 2.05; color: #24352a; margin: 0 0 14px; text-align: justify; }
.stp-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.stp-contact .item { background: var(--green-50); border-radius: 11px; padding: 16px 18px; }
.stp-contact .item span { font-size: 12.5px; color: var(--ink-3); display: block; }
.stp-contact .item b { display: block; margin-top: 5px; font-size: 15px; color: var(--green-800); word-break: break-all; }

/* ---------- 通用小件 ---------- */
.stp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.stp-chip {
  padding: 8px 16px; border-radius: 20px; background: var(--white); border: 1px solid var(--line);
  font-size: 13.5px; cursor: pointer; transition: .16s;
}
.stp-chip:hover { border-color: var(--green-500); color: var(--green-700); }
.stp-chip.on { background: var(--green-700); border-color: var(--green-700); color: #fff; font-weight: 600; }
.stp-empty { padding: 56px 20px; text-align: center; color: var(--ink-3); background: var(--white); border-radius: var(--radius); }
.stp-empty .ico { font-size: 34px; margin-bottom: 12px; }
.stp-pager { display: flex; justify-content: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.stp-pager button {
  min-width: 38px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; padding: 0 11px;
}
.stp-pager button.on { background: var(--green-700); border-color: var(--green-700); color: #fff; font-weight: 600; }
.stp-pager button:disabled { opacity: .45; cursor: not-allowed; }
.stp-crumb { font-size: 13px; color: var(--ink-3); margin: 18px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.stp-crumb a:hover { color: var(--green-700); }
.stp-crumb i { font-style: normal; color: #c3d1c8; }
.stp-note {
  background: var(--gold-100); border-left: 3px solid var(--gold-500); border-radius: 10px;
  padding: 14px 18px; font-size: 13px; color: #6b5620; line-height: 1.85;
}

/* ---------- 成果意向表单 ---------- */
.stp-intent { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line); }
.stp-intent h3 { margin: 0 0 6px; font-size: 17px; color: var(--green-900); }
.stp-intent .hint { color: var(--ink-3); font-size: 13px; margin: 0 0 16px; line-height: 1.8; }
.stp-intent .field textarea { min-height: 88px; }
.stp-intent .field-row { margin-bottom: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) {
  .stp-banner.full .stage { height: 460px; }
}
@media (max-width: 1080px) {
  .stp-seed-grid { grid-template-columns: repeat(3, 1fr); }
  .stp-yu-grid { grid-template-columns: repeat(3, 1fr); }
  .stp-seed-detail { grid-template-columns: 1fr; }
  .stp-seed-detail .pic { max-width: 420px; }
}
@media (max-width: 820px) {
  .stp-banner .stage { height: 300px; }
  .stp-banner.full .stage { height: 340px; }
  .stp-banner h1 { font-size: 25px; }
  .stp-banner p { font-size: 13.5px; }
  .stp-stats { grid-template-columns: repeat(2, 1fr); }
  .stp-entries { grid-template-columns: 1fr; }
  .stp-flow .arrow { display: none; }
  .stp-flow .step { flex: 1 1 46%; }
  .stp-seed-grid { grid-template-columns: repeat(2, 1fr); }
  .stp-yu-grid { grid-template-columns: repeat(2, 1fr); }
  .stp-yu { padding: 22px; }
  .stp-contact { grid-template-columns: 1fr; }
  .stp-article { padding: 22px 18px; }
  .stp-article h1 { font-size: 20px; }
  .stp-list-item { padding: 14px 15px; gap: 11px; }
  .stp-list-item .go { display: none; }
  .stp-about-card { padding: 22px 18px; }
  .stp-yu-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .stp-banner.full .stage { height: 260px; }
  .stp-seed-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stp-seed-card h4 { font-size: 14px; }
  .stp-stats { gap: 12px; }
  .stp-stat b { font-size: 22px; }
  .stp-flow .step { flex: 1 1 100%; }
  .stp-yu-grid { grid-template-columns: 1fr; }
  .stp-seed-detail .attrs { grid-template-columns: 1fr; }
}
