/* 配色和 data.veintau.com 的专家登录页一致：白底、冷灰的字和线、青绿色强调。 */
:root {
  --bg: #ffffff;
  --ink: #233347;
  --muted: #647386;
  --line: #e3e7ec;
  --accent: #245c50;
  --hover: #f4f7f9;
  /* 首页插画的颜色 */
  --sky-top: #cde2f1;
  --sky-bottom: #eef5fa;
  --sun: #f6d77c;
  --hill-far: #c4ddd1;
  --hill-near: #9ccab3;
  --tree: #4f977c;
  --wheat: #ead089;
  --wheat-row: #d3b463;
  --green: #88c39e;
  --green-row: #63a87f;
  --road: #efe0bb;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11171c;
    --ink: #e3e9ee;
    --muted: #94a2af;
    --line: #26313b;
    --accent: #72c4ae;
    --hover: #18212a;
    --sky-top: #14253a;
    --sky-bottom: #1b2a37;
    --sun: #a8935a;
    --hill-far: #1d3631;
    --hill-near: #22443b;
    --tree: #2f5f50;
    --wheat: #5a5136;
    --wheat-row: #49412a;
    --green: #2b5a47;
    --green-row: #234b3a;
    --road: #3a3629;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

h1, .site-name {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", serif;
}

/* 页面最宽 1000px；页头、首页、页脚都用这个宽度，说明页正文更窄。 */
.container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* 页头：左边是站名，右边只有“首页”。专家登录在首页中间，说明页链接在页脚，各只出现一处。 */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: 64px;
}

.site-name {
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 4px; }

.site-nav a {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover { background: var(--hover); color: var(--ink); }

.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* 首页 */
.home { flex: 1; padding-top: 28px; padding-bottom: 56px; }

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--sky-bottom);
}

.hero-art { display: block; width: 100%; height: 340px; }

.hero-art .sky-top { stop-color: var(--sky-top); }
.hero-art .sky-bottom { stop-color: var(--sky-bottom); }
.hero-art .sun { fill: var(--sun); }
.hero-art .hill-far { fill: var(--hill-far); }
.hero-art .hill-near { fill: var(--hill-near); }
.hero-art .tree { fill: var(--tree); }
.hero-art .wheat { fill: var(--wheat); }
.hero-art .wheat-rows { stroke: var(--wheat-row); }
.hero-art .green { fill: var(--green); }
.hero-art .green-rows { stroke: var(--green-row); }
.hero-art .road { fill: var(--road); }

/* 插画左上角：燕子图标、产品名“燕谱”和品牌愿景句（2026-11-11 定）。站名留在页头和 <title>，和 ICP 备案的网站名称一致。 */
.hero-text { position: absolute; top: 36px; left: 44px; right: 44px; }

.hero h1 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
}

.hero-icon { display: block; width: 72px; height: 72px; }

.hero-line {
  margin: 14px 0 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", serif;
  font-size: 22px;
  letter-spacing: 0.08em;
}

/* 专家登录入口：上下两条细线夹住的一行，和 home-v7 的设计相同。 */
.entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 4px 24px;
  margin-top: 32px;
  padding: 22px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.entry:hover { background: var(--hover); }

.entry:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.entry-label { font-size: 17px; font-weight: 600; }

.entry-text { color: var(--muted); font-size: 15px; }

.entry-go {
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

/* 首页暂时隐藏（2026-11-27）：页头只有“农业技术展示”，中间留空，页脚只保留邮箱和两个备案号；页面上不出现 VeinTau，<title> 仍是备案的网站名称。插画和专家登录入口的样式留着，恢复时只改 index.html。 */
.blank { flex: 1; }

/* 404 页和说明页：正文是一栏窄的文字 */
.page {
  flex: 1;
  width: 100%;
  max-width: 688px;
  margin: 0 auto;
  padding: 72px 24px 56px;
}

.page h1 {
  margin: 0 0 18px;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.lead { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.9; }

.lead a { color: var(--accent); white-space: nowrap; }

.doc { padding-top: 48px; }

.doc h1 { font-size: 32px; margin-bottom: 6px; }

.doc .doc-date { margin: 0 0 32px; color: var(--muted); font-size: 13px; }

/* 关于本站和联系我们没有日期行，标题下直接是正文。 */
.doc h1 + p:not(.doc-date) { margin-top: 24px; }

.doc h2 { margin: 32px 0 8px; font-size: 18px; font-weight: 600; }

.doc h3 { margin: 20px 0 6px; font-size: 16px; font-weight: 600; }

.doc p, .doc li { color: var(--ink); font-size: 15px; line-height: 1.9; }

.doc p { margin: 0 0 12px; }

.doc ul, .doc ol { margin: 0 0 12px; padding-left: 1.5em; }

.doc strong { font-weight: 600; }

.doc a { color: var(--accent); }

/* 页脚：一条细线和正文隔开，分左右两栏。左栏是版权、联系邮箱和两个备案号，右栏是四个说明页链接。
   用户 2026-10-29 决定备案号放在左栏，不按“主页底部中央”的规定居中。 */
.site-footer { border-top: 1px solid var(--line); }

.footer-inner {
  padding-top: 20px;
  padding-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.footer-inner p { margin: 0; }

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px 24px;
}

.footer-links {
  display: flex;
  flex-shrink: 0;
  gap: 4px 20px;
  font-size: 13px;
}

.footer-filing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.filing-gongan { display: inline-flex; align-items: center; gap: 4px; }

.filing-gongan img { width: 14px; height: auto; }

.site-footer a { color: var(--muted); text-decoration: none; }

.site-footer a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .header-inner { min-height: 56px; }
  .site-name { font-size: 17px; }
  .site-nav a { padding: 6px 10px; }
  .home { padding-top: 16px; padding-bottom: 40px; }
  .hero { border-radius: 14px; }
  .hero-art { height: 240px; }
  .hero-text { top: 22px; left: 22px; right: 22px; }
  .hero h1 { gap: 12px; font-size: 32px; }
  .hero-icon { width: 52px; height: 52px; }
  .hero-line { margin-top: 10px; font-size: 17px; }
  .entry { grid-template-columns: 1fr; gap: 6px; margin-top: 20px; padding: 20px 4px; }
  .page { padding: 48px 16px 40px; }
  .page h1 { font-size: 28px; }
  .doc { padding-top: 32px; }
  .doc h1 { font-size: 26px; }
  .footer-main { flex-direction: column-reverse; align-items: center; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .footer-filing { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0 16px; }
}
