@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=Noto+Serif+SC:wght@500;600;700&display=swap");

:root {
  --sap: #16351F;
  --sap-2: #1F4A2C;
  --leaf: #2F5A3A;
  --straw: #C4A574;
  --straw-2: #D7B889;
  --bark: #8B6840;
  --wrap: #E8D9C0;
  --paper: #F3EEE4;
  --paper-2: #E7E1D4;
  --ink: #171512;
  --ink-2: #3A342C;
  --mute: #5C564C;
  --line: #D8D0C2;
  --max: 1180px;
  --head: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.15; letter-spacing: .02em; }
p { margin: 0; }
button, input, select, textarea { font-family: inherit; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 2px; border: 1px solid transparent;
  font-size: 15px; font-weight: 700; letter-spacing: .04em;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--straw); color: var(--sap); }
.btn-solid:hover { background: var(--straw-2); }
.btn-ghost { background: transparent; color: #F4F0E6; border-color: rgba(244,240,230,.4); }
.btn-ghost:hover { background: rgba(244,240,230,.08); }
.btn-dark { background: var(--sap); color: #F4F0E6; }
.btn-call {
  background: var(--straw); color: var(--sap); min-height: 40px; padding: 0 16px; font-size: 13px;
}
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--bark); outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--head);
  background: var(--sap);
  color: #F4F0E6;
}
.head-wrap { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand-txt b { display: block; font-family: var(--display); font-size: 20px; letter-spacing: .12em; }
.brand-txt em { display: block; font-style: normal; font-size: 10px; letter-spacing: .28em; color: var(--straw); }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav a { opacity: .78; }
.nav a:hover, .nav a.is-on { opacity: 1; color: var(--straw-2); }
.nav-toggle { display: none; width: 40px; height: 40px; margin-left: auto; background: none; border: 0; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: #F4F0E6; margin: 6px 0; }

/* Hero — three planting stakes */
.hero {
  position: relative;
  /* 手机上 100vh 会把浏览器地址栏那段高度也算进去，底部内容会被顶到可视区外，
     所以先给 vh 兜底、再用 svh（可见视口高）覆盖，桌面两者相同 */
  min-height: calc(100vh - var(--head));
  min-height: calc(100svh - var(--head));
  background: var(--sap);
  color: #F4F0E6;
  overflow: hidden;
  display: grid;
  align-items: end;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
  background: linear-gradient(180deg, transparent, var(--paper));
  pointer-events: none; z-index: 2;
}
.hero-stakes { position: absolute; inset: 0; pointer-events: none; }
.stake-bar {
  position: absolute; bottom: 0; width: 14px; background: linear-gradient(180deg, var(--straw-2), var(--bark));
  border-radius: 3px 3px 0 0;
  transform-origin: 50% 100%;
}
.stake-bar:nth-child(1) { left: 8%; height: 72%; }
.stake-bar:nth-child(2) { left: 50%; transform: translateX(-50%); width: 18px; height: 88%; }
.stake-bar:nth-child(3) { right: 10%; height: 64%; }
.guy {
  position: absolute; left: 8.6%; right: 10.6%; top: 18%;
  height: 2px; background: var(--wrap); opacity: .55;
  transform: rotate(-7deg);
}
.guy.b { top: 28%; transform: rotate(6deg); opacity: .35; }
.hero-photo {
  position: absolute; right: -4%; top: 0; width: 62%; height: 100%;
  opacity: .55;
  mask-image: linear-gradient(90deg, transparent, #000 22%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; filter: saturate(.85) contrast(1.08); }
.hero-copy { position: relative; z-index: 3; padding: 8vh 0 10vh; max-width: 720px; }
.hero-copy h1 {
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: .03em;
  font-weight: 600;
  margin: 0 0 22px;
}
.hero-copy p { font-size: 17px; max-width: 38em; color: rgba(244,240,230,.82); margin-bottom: 28px; }
/* 标语与介绍拆成两段：宽屏两段都出，窄屏只留标语一句（介绍那段页脚本来就有） */
.hero-slogan { margin-bottom: 12px; }
.hero-intro { margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  font-size: 13px; letter-spacing: .16em; color: var(--straw);
  text-transform: uppercase;
}
.wrap-bands {
  position: absolute; left: 0; right: 0; bottom: 18%;
  height: 10px; background: repeating-linear-gradient(90deg, var(--wrap) 0 28px, transparent 28px 40px);
  opacity: .18;
}

/* Promises as three unequal stakes */
.promises { background: var(--paper); padding: 72px 0 24px; }
.promise-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.promise {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 24px 32px;
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.promise::before {
  content: "";
  position: absolute; left: 24px; top: 0;
  width: 8px; height: 48px;
  background: var(--straw);
}
.promise:nth-child(2) { background: var(--sap); color: #F4F0E6; }
.promise:nth-child(2)::before { background: var(--straw); height: 48px; }
.promise h2 { font-size: 36px; margin: 28px 0 14px; font-weight: 600; letter-spacing: .04em; }
.promise p { color: var(--mute); font-size: 15px; line-height: 1.85; }
.promise:nth-child(2) p { color: rgba(244,240,230,.82); }

.section { padding: 88px 0; }
.section h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 12px; font-weight: 600; }
.lede { color: var(--mute); max-width: 40em; margin-bottom: 36px; }

/* Variety tags */
.tag-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.plant-tag {
  display: block; background: #fff; border: 1px solid var(--line);
  overflow: hidden; color: inherit;
  transition: transform .25s var(--ease);
}
.plant-tag:hover { transform: translateY(-4px); }
.plant-tag img { width: 100%; height: 180px; object-fit: cover; }
.plant-tag .body { padding: 18px 18px 20px; }
.plant-tag h3 { font-size: 26px; margin: 0 0 6px; font-weight: 600; }
.plant-tag .alias { color: var(--mute); font-size: 13px; }
.plant-tag .spec {
  margin-top: 12px; font-size: 13px; letter-spacing: .08em; color: var(--sap-2); font-weight: 700;
}

/* Flow as connected stakes */
.flow { background: var(--paper); color: var(--ink); padding: 24px 0 56px; }
.flow > .wrap {
  background: var(--sap); color: #F4F0E6;
  border-radius: 22px; padding: 48px 40px 44px;
}
.flow .lede { color: rgba(244,240,230,.75); }
.flow-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.flow-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.flow-row::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 13px;
  height: 2px;
  background: var(--straw);
  opacity: .7;
}
.step { position: relative; padding-top: 0; }
.peg {
  width: 12px; height: 12px; background: var(--straw); border-radius: 50%;
  margin: 8px auto 18px;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--sap);
}
.step b { display: block; font-family: var(--display); font-size: 20px; margin-bottom: 8px; font-weight: 600; text-align: center; }
.step p { font-size: 14px; color: rgba(244,240,230,.78); text-align: center; }

/* 现场与案例：与经营种类同形同格的卡片，视频标题字号收一档，元信息走 alias 那一档；
   有封面的图位定高 160（竖封面居中裁成横条），没封面的不放图位，只出标题 */
.vid-card h3 { font-size: 20px; }
.vid-card img { height: 160px; }
.vid-card.is-portrait img { height: 160px; aspect-ratio: auto; }

.cta-band {
  background: var(--paper);
  padding: 12px 0 72px;
}
.cta-band > .wrap {
  background: var(--leaf);
  color: #F4F0E6;
  border-radius: 22px;
  padding: 48px 40px;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; font-weight: 600; }
.cta-band p { color: rgba(244,240,230,.8); margin-bottom: 24px; max-width: 36em; }

/* Footer */
.site-footer { background: #102418; color: #E8D9C0; padding: 56px 0 24px; }
/* 页脚四列：品牌 / 导航 / 联络 / 微信二维码。第四列固定 260px 给码，
   原型的"Top 苗木品种"那一列按 2026-09-30 裁定去掉（首页已有品种网格，页脚再列一份没用处）。 */
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr 260px; gap: 28px; }
.footer-brand h2 { font-size: 32px; color: #F4F0E6; margin-bottom: 10px; }
.footer-brand p { color: rgba(232,217,192,.78); font-size: 14px; margin-bottom: 10px; }
.ph { font-size: 12px !important; letter-spacing: .06em; color: var(--straw) !important; }
.site-footer h3 { font-size: 14px; letter-spacing: .18em; color: var(--straw); margin-bottom: 12px; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 16px; border-top: 1px solid rgba(196,165,116,.25);
  font-size: 12px; color: rgba(232,217,192,.55);
}
/* 二维码要能被手机扫中：原型钉死 84px 时真正的码只有 50 来像素，扫不出来。
   现在单独占第四列（260px），并加白色留白边（扫码需要静区）。 */
.qr { margin: 0; width: 100%; max-width: 260px; }
.qr img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; padding: 8px; background: #F4F0E6; border-radius: 4px; }
.qr figcaption { margin-top: 6px; font-size: 12px; letter-spacing: .06em; color: var(--straw); }
/* 微信号点击复制（PRD §3.1 规则 5）：虚下划线提示可点，复制成功就地给一句反馈 */
.copy-val { color: inherit; border-bottom: 1px dashed rgba(196,165,116,.55); cursor: pointer; }
.copy-hint { margin-left: 6px; }

/* Inner pages */
.page-hero {
  background:
    radial-gradient(1200px 280px at 80% -40px, rgba(196,165,116,.22), transparent 60%),
    linear-gradient(180deg, var(--sap) 0%, #1a3a24 78%, var(--paper) 100%);
  color: #F4F0E6; padding: 72px 0 88px;
}
.page-hero h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 12px; font-weight: 600; }
.page-hero p { max-width: 38em; color: rgba(244,240,230,.8); }

.about-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.about-split h2 { font-size: 34px; margin-bottom: 16px; font-weight: 600; }
.year-col { padding: 8px 8px 8px 0; }
.year-k { display:block; font-size:13px; letter-spacing:.2em; color:var(--bark); margin-bottom:8px; }
.stat-year { font-family: var(--display); font-size: 64px; color: var(--sap); line-height: 1; font-weight: 600; letter-spacing: .04em; }
.year-col p { margin-top: 12px; color: var(--mute); font-size: 15px; }
.muted { color: var(--mute); }

/* 类型筛选做成胶囊：原来是一排白底描边框，跟上面那颗深绿"查询"按钮同权重，
   看着像表单的第二行；改成浅底无边框，只有选中项才填深绿。
   与搜索框之间留 18px，不再贴在一起；窄屏加大点击高度（触屏要够 40px 以上）。 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 22px; }.filter-bar a, .filter-bar button {
  border: 0; border-radius: 999px; background: rgba(22,53,31,.07); color: var(--ink-2);
  padding: 7px 15px; font-size: 13px; line-height: 1.4; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.filter-bar a:hover, .filter-bar button:hover { background: rgba(22,53,31,.14); color: var(--ink); }
.filter-bar .on, .filter-bar a.on { background: var(--sap); color: #F4F0E6; }
.filter-bar .on:hover, .filter-bar a.on:hover { background: var(--sap-2); color: #F4F0E6; }

.detail {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start;
}
.gallery-main img { width: 100%; height: 420px; object-fit: cover; border: 1px solid var(--line); }
/* 品种相册：缩略图排 + 富文本正文容器（正文已在写侧过 jsoup 白名单清洗） */
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gallery-thumbs button { padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; }
.gallery-thumbs button.on { border-color: var(--sap); box-shadow: 0 0 0 2px var(--sap); }
.gallery-thumbs img { width: 76px; height: 58px; object-fit: cover; display: block; }
.prose { margin: 4px 0 14px; }
.prose p { margin: 0 0 10px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table th { color: var(--mute); font-weight: 500; width: 38%; }

/* 筛选折叠条：分类与排序两组 chips 不再平铺（手机上会挤成三四排），
   默认折起，条上直接回显当前选中的值；展开才铺 chips。用原生 details，零 JS、内容仍在 DOM 里可被抓取。 */
.filter-panel { border: 1px solid var(--line); background: #FAF6EC; margin: 0 0 18px; }
.filter-panel > summary {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px;
  cursor: pointer; list-style: none; font-size: 14px;
}
.filter-panel > summary::-webkit-details-marker { display: none; }
.filter-panel .filter-k { color: var(--mute); letter-spacing: .12em; font-size: 12px; }
.filter-panel .filter-now { color: var(--ink); font-weight: 700; }
.filter-panel .filter-caret { margin-left: auto; color: var(--bark); transition: transform .2s var(--ease); }
.filter-panel[open] .filter-caret { transform: rotate(180deg); }
.filter-panel .filter-body { padding: 2px 16px 16px; }
.filter-panel .filter-bar { margin: 0; }
.filter-panel .filter-group + .filter-group { margin-top: 12px; }
.filter-panel .filter-group-k { font-size: 12px; letter-spacing: .12em; color: var(--mute); margin: 0 0 6px; }
/* 排序与分类分成两行摆，不再靠左边距硬挤在同一排 */
.filter-bar .filter-sort { margin-left: 0; }
.filter-bar .filter-sort + .filter-sort { margin-left: 0; }
.filter-panel summary:focus-visible { outline: 2px solid var(--bark); outline-offset: -2px; }

.news-list { display: grid; gap: 14px; }
.news-card {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px;
  background: #FAF6EC; border: 1px solid var(--line);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.news-card:hover { border-color: var(--bark); background: #FCFAF3; }
/* 封面是选填项：没有图时不补块、整卡收成单栏；有图的图位定高 160，横竖封面同框 */
.news-card.no-cover { grid-template-columns: minmax(0, 1fr); }
.news-card img { width: 100%; height: 160px; object-fit: cover; }
/* 正文跟着图对齐：用网格项自身居中，不用 flex 包，否则 .sum 的 -webkit-box 会被洗成 flow-root，截断在 Safari 失效 */
.news-card .body { padding: 18px 26px 20px 0; align-self: center; }
.news-card.no-cover .body { padding: 20px 26px 22px; }
.news-card .meta { font-size: 12.5px; letter-spacing: .06em; color: var(--bark); }
.news-card h3 { font-size: 22px; margin: 6px 0 8px; font-weight: 600; }
.news-card .sum {
  font-size: 14.5px; color: var(--ink-2);
  max-width: 44em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
/* 详情页顶部导航：面包屑，比正文小一号、拉开字距、用树皮色，一眼看出是控件不是正文 */
.crumb { display: inline-block; margin-bottom: 16px; font-size: 13px; letter-spacing: .16em; color: var(--straw); border-bottom: 1px solid transparent; }
.crumb:hover { color: var(--straw-2); border-bottom-color: rgba(215,184,137,.5); }

/* 文章页照真实新闻站的样子：整篇套一张比页面底色亮的"纸"，标题和日期写在纸里，
   下面压一条线把标题区和正文分开——首屏先看到标题，不是一张大图。 */.article-section { padding: 40px 0 88px; }
.article-sheet {
  max-width: 880px; margin: 0 auto; padding: 36px 56px 40px;
  background: #FBF8F1; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(22,53,31,.06);
}
.article-head { padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; line-height: 1.35; }
.article-head .meta { margin-top: 10px; font-size: 13px; letter-spacing: .06em; color: var(--mute); }
.article-head .crumb { margin-bottom: 14px; color: var(--bark); }
.article-head .crumb:hover { color: var(--sap); border-bottom-color: rgba(139,104,64,.4); }
.article-body { font-size: 17px; line-height: 1.9; }
.article-body p { margin-bottom: 1em; color: var(--ink-2); }
/* 正文里的小节标题是书页里的一节，不是页面区块标题：压回比正文大一号半的规格，
   上方留白大于下方，阅读节奏才不断；不压的话会吃到 .section h2 的 44px 区块规格 */
.article-body h2, .prose h2 {
  font-size: 23px; font-weight: 600; line-height: 1.45; letter-spacing: 0;
  margin: 38px 0 14px;
}
.article-body h3, .prose h3 {
  font-size: 19px; font-weight: 600; line-height: 1.5; letter-spacing: 0;
  margin: 28px 0 10px;
}
.article-body h4, .prose h4 {
  font-size: 17px; font-weight: 700; line-height: 1.6; margin: 24px 0 8px;
}
/* 正文里的图共用一条规则：同宽 620、居中、固定 16:9 的盒子。
   盒子先占住高度，图片加载前就不塌；收高度靠裁（object-fit: cover）不是压扁，所以不变形。 */
.article-body img {
  display: block; width: min(100%, 620px); height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  margin: 26px auto; border: 1px solid var(--line);
}
/* 只有封面那一张按原比例整张显示：它是这篇文章的门面，横竖都不该缺一块 */
.article-body > img:first-child { margin-top: 0; aspect-ratio: auto; object-fit: contain; }
.article-body > .lede { max-width: none; }
.article-end {
  display: flex; justify-content: center; margin-top: 40px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.article-end a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .16em; color: var(--bark);
  border-bottom: 1px solid var(--wrap); padding-bottom: 5px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.article-end a:hover { color: var(--sap); border-bottom-color: var(--sap); }
.article-end svg { flex-shrink: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.contact-col { display: flex; flex-direction: column; gap: 16px; min-height: 420px; }
.contact-card { background: #FAF6EC; border: 1px solid var(--line); padding: 24px; flex: 1; }
.contact-card h3 { font-size: 24px; margin-bottom: 14px; font-weight: 600; }
.contact-card p { color: var(--ink-2); }
/* 联络清单：标签列固定宽，值列左对齐，比一排 dl 好扫 */
.fact-list { margin: 0; display: grid; grid-template-columns: 4em 1fr; gap: 10px 14px; }
.fact-list > div { display: contents; }
.fact-list dt { color: var(--mute); font-size: 13px; letter-spacing: .1em; }
.fact-list dd { margin: 0; color: var(--ink); }
.fact-list a { border-bottom: 1px solid var(--wrap); }
.fact-list a:hover { color: var(--sap-2); border-bottom-color: var(--sap-2); }
.check-list { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.check-list li { margin-bottom: 6px; }
/* 「找到我们」做成一行文字链接而不是按钮：按钮在这张卡里权重太高 */
.map-line { margin-top: 16px; }
.map-line a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; letter-spacing: .04em; color: var(--bark);
  border-bottom: 1px dashed rgba(139,104,64,.5); padding-bottom: 2px;
}
.map-line a:hover { color: var(--sap); border-bottom-color: var(--sap); }
.map-line svg { flex-shrink: 0; }
/* 证照原件不能裁（章与编号都在边上）：按登记行的横竖挑一只固定盒子 + contain，
   装不满的部分留底色；盒子先占住高度，图片加载前不塌。 */
.cert-figure { text-align: center; margin: 0 0 24px; }
.cert-figure img {
  display: inline-block; max-width: min(100%, 520px); height: auto;
  aspect-ratio: 4 / 3; object-fit: contain;
  border: 1px solid var(--line); background: #F7F1E4;
}
.cert-figure img.is-portrait { aspect-ratio: 3 / 4; }

.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.video-card {
  display: block; color: inherit; background: #FAF6EC; border: 1px solid var(--line);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.video-card:hover { border-color: var(--bark); background: #FCFAF3; }
.video-thumb { position: relative; }
.video-thumb img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.video-duration {
  position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 2px;
  background: rgba(22,53,31,.82); color: #F4F0E6; font-size: 12px; letter-spacing: .04em;
}
.video-card h3 { font-size: 19px; padding: 14px 16px 4px; font-weight: 600; }
.video-card .video-meta { padding: 0 16px 16px; color: var(--mute); font-size: 13px; }
/* 播放器与文章配图同一条尺寸规矩：桌面 620 封顶、居中；16:9 是视频本来的形状 */
/* 播放器按自己的盒子比例摆，画面装不满就留边交墨底，不放拉伸填满 */
.video-player {
  display: block; width: min(100%, 620px); aspect-ratio: 16 / 9; margin: 0 auto 26px;
  object-fit: contain; background: var(--ink); border: 1px solid var(--line);
}
/* 排序两档与分类 chips 同形，只靠左侧留白分组，不另起一行 */
.filter-bar .filter-sort { margin-left: 14px; }
.filter-bar .filter-sort + .filter-sort { margin-left: 6px; }

/* 搜索框：原来是 1fr 1fr auto 三列（原型那版有输入框+下拉+按钮），
   前台去掉了下拉只剩两个子元素，于是输入框和按钮各吃掉一个 1fr，桌面端就成了五五分。
   改成"输入框占满、按钮按内容收"，并整块限宽，不再横贯整个版面。 */
.searchbar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px;
  background: #fff; border: 1px solid var(--line); padding: 10px;
  margin-top: -28px; margin-bottom: 2px; position: relative; z-index: 3; max-width: 640px;
}
.searchbar input, .searchbar select { border: 0; background: var(--paper); padding: 10px 12px; font-size: 14px; }
.searchbar button { border: 0; }
.searchbar .btn { font-size: 14px; padding: 10px 22px; }

@media (max-width: 980px) {
  .promise-row, .tag-grid, .footer-grid, .about-split, .detail, .contact-grid, .video-grid, .news-card, .cert-grid {
    grid-template-columns: 1fr;
  }
  .contact-col { min-height: 0; }
  /* 窄屏图本来就窄，再按 16:9 裁会扁，正文插图改回 3:2（多数照片的原比例，等于不裁） */
  .article-body img { aspect-ratio: 3 / 2; }
  /* 窄屏卡片上下叠：图回到固定高度，正文两侧都要留白 */
  .news-card img { height: 190px; min-height: 0; }
  .news-card .body, .news-card.no-cover .body { padding: 16px 20px 18px; }
  .article-section { padding: 20px 0 64px; }
  .article-sheet { padding: 24px 20px 28px; }
  /* 下载那一行在窄屏上下叠，别让说明文字把按钮挤成两行 */
  .file-row { flex-direction: column; align-items: stretch; }
  .file-row .btn { justify-content: center; }
  /* 首页首屏手机端做减法：装饰竖条会压在正文上、介绍段与页脚重复、地址与电话页脚已有，
     所以窄屏撤掉装饰、只留一句标语、元信息只留 Since 2016；高度仍占满一屏 */
  .hero::after { height: 70px; }
  .hero-stakes { display: none; }
  .hero-photo { width: 100%; opacity: .12; mask-image: none; }
  .hero-copy { padding: 44px 0 64px; }
  .hero-copy p { font-size: 15px; }
  .hero-intro { display: none; }
  .hero-actions { margin-bottom: 0; }
  .hero-meta > span + span { display: none; }
  .searchbar { grid-template-columns: 1fr; max-width: none; }
  .filter-bar a { padding: 10px 16px; }
  .flow-row, .flow-row.cols-4 {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 28px;
  }
  .flow-row::before {
    left: 5px; right: auto; top: 12px; bottom: 12px;
    width: 2px; height: auto;
  }
  .peg { margin: 4px 0 12px -29px; box-shadow: 0 0 0 6px var(--sap); }
  .step { padding-bottom: 28px; }
  .step b, .step p { text-align: left; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--head);
    background: var(--sap); flex-direction: column; padding: 16px 24px 24px; gap: 14px;
  }
  .nav.is-open { display: flex; }
  .btn-call { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

:root { --seal: #9B3A2F; }
.cert-band { background: #EFE8DA; }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cert {
  background: #F7F1E4;
  border: 1px solid #D8C9A8;
  padding: 22px 18px 20px;
  min-height: 190px;
  position: relative;
  box-shadow: 0 10px 24px rgba(22,53,31,.06);
}
.cert .seal {
  width: 54px; height: 54px; border-radius: 50%;
  border: 3px solid var(--seal);
  margin-bottom: 14px;
  position: relative;
}
.cert .seal::after {
  content: "章";
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--seal); font-size: 14px; font-family: var(--display);
}

.cert {
  background: #FAF6EC;
  border: 1px solid var(--line);
  overflow: hidden;
  display: block;
  color: inherit;
  min-height: 0;
  padding: 0;
  box-shadow: 0 8px 22px rgba(22,53,31,.05);
  transition: transform .25s var(--ease);
}
.cert:hover { transform: translateY(-4px); }
.cert img { width: 100%; height: 160px; object-fit: cover; background: #F7F1E4; }
.cert .body { padding: 16px 16px 18px; }
.cert h3 { font-size: 18px; margin: 0 0 6px; font-weight: 600; }
.cert .no, .cert .org { font-size: 12px; color: var(--mute); margin: 0; }
.cert .file { margin-top: 10px; font-size: 12px; color: var(--bark); letter-spacing: .08em; }
.cert-detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.cert-detail img { width: 100%; border: 1px solid var(--line); background: #F7F1E4; }
.file-row { display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid var(--line); padding:14px 16px; background:transparent; margin-top:12px; }

.cert .no { font-size: 13px; color: var(--ink-2); letter-spacing: .02em; }
.cert .org { margin-top: 10px; font-size: 12px; color: var(--mute); }
[data-rise] { }
@media (max-width: 980px) {
  .cert-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cert-grid { grid-template-columns: 1fr; }
}

.page-hero .wrap > * { }
@media (max-width: 980px) {
  .cert-detail { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .flow > .wrap, .cta-band > .wrap { padding: 32px 20px; border-radius: 16px; }
}

/* ===== 竖屏形态 =====
   登记行的宽小于高时模板给那一格加 is-portrait，判断在 Java 的 PixelSize 里，CSS 只挑盒子。
   不知道尺寸的一律走上面的横盒规则。竖盒按 3:4 出，图位仍继承 cover；证照那一格不裁，走 contain。 */
.plant-tag.is-portrait img { height: auto; aspect-ratio: 3 / 4; }
.gallery-main.is-portrait { width: min(100%, 420px); }
.gallery-main.is-portrait img { height: auto; aspect-ratio: 3 / 4; }
.gallery-thumbs img.is-portrait { width: 58px; height: 76px; }
.cert.is-portrait img { height: auto; aspect-ratio: 3 / 4; object-fit: contain; }
.video-thumb.is-portrait img { aspect-ratio: 3 / 4; }
.video-player.is-portrait { width: min(100%, 360px); aspect-ratio: 9 / 16; object-fit: contain; }
