/* ============================================================
   主题：麦田怪圈（cropcircle）
   青麦田 + 薄雾 + 几何怪圈；怪圈中心嵌牌，轮换展示
   照片、影像与微博客手记；田里有收割机与劳作的农人。
   ============================================================ */

:root {
  --ink:       #17301f;
  --ink-soft:  #3c6449;
  --ink-faint: #6f8f74;

  --paper:       #f4f9e4;
  --paper-deep:  #e6f0ca;
  --paper-edge:  #cfdfa9;

  --leaf-1: #eaf5d2;
  --leaf-2: #c9df9b;
  --leaf-3: #9dc274;
  --leaf-4: #6d9f57;
  --leaf-5: #447d47;
  --leaf-6: #255136;

  --accent:      #9a7a36;
  --accent-soft: #b59a58;

  --sky-top: #8fc0e4;
  --sky-mid: #b3d6ee;
  --sky-low: #e3f0f2;
  --horizon: #f6f8e8;

  --font-display: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "STSong", Georgia, serif;
  --font-body:    "Songti SC", "Source Han Serif SC", "Noto Serif SC", "STSong", Georgia, serif;
  --font-ui:      "Avenir Next", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono:    "SF Mono", "Menlo", "Consolas", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--sky-mid);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ============================================================
   世界：青灰晨空 → 远丘 → 青麦田
   ============================================================ */
.world {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(180deg,
      #8fc0e4 0%,
      #a6cdea 14%,
      #bfddf0 30%,
      #d5e9f2 42%,
      #e8f2ec 50%,
      #f5f8e8 56%,
      #f5f8e8 100%);
}

.scene { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* ---------- 薄云后的日轮 ---------- */
.sun {
  position: absolute;
  z-index: 1;
  left: 67%;
  top: 30%;
  width: 38vw;
  max-width: 500px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
      rgba(255, 255, 255, .98) 0%,
      rgba(252, 253, 234, .92) 8%,
      rgba(240, 248, 208, .6) 20%,
      rgba(226, 240, 186, .3) 38%,
      rgba(220, 238, 176, .1) 55%,
      rgba(220, 238, 176, 0) 75%);
  filter: blur(1.4px);
  animation: sun-breathe 16s ease-in-out infinite;
}
@keyframes sun-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1);     opacity: .94; }
  50%      { transform: translate(-50%, -50%) scale(1.045); opacity: 1; }
}

/* ---------- 薄云 ---------- */
.cloud {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 58%,
      rgba(255, 255, 255, .9) 0%,
      rgba(247, 252, 240, .66) 40%,
      rgba(247, 252, 240, .26) 62%,
      rgba(247, 252, 240, 0) 78%);
  filter: blur(8px);
  animation: cloud-drift linear infinite;
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 60%,
      rgba(255, 255, 255, .84) 0%,
      rgba(255, 255, 255, .4) 45%,
      rgba(255, 255, 255, 0) 76%);
  filter: blur(7px);
}
.cloud::before { left: 10%;  top: -32%; width: 42%; height: 115%; }
.cloud::after  { right: 12%; top: -18%; width: 36%; height: 95%; }
.c1 { left: -58%; top: 7%;  width: 56vw; height: 13vh; animation-duration: 132s; animation-delay: -24s; opacity: .72; }
.c2 { left: -46%; top: 22%; width: 44vw; height: 11vh; animation-duration: 162s; animation-delay: -82s; opacity: .6; }
.c3 { left: -50%; top: 35%; width: 38vw; height: 10vh; animation-duration: 148s; animation-delay: -46s; opacity: .52; }

@keyframes cloud-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(158vw, -1.2vh, 0); }
}

/* ---------- 飞鸟 ---------- */
.birds { position: absolute; inset: 0; opacity: .45; }
.birds svg { position: absolute; width: 26px; stroke: #2f4738; }
.birds svg:nth-child(1) { top: 24%; left: -6%;  animation: bird-fly 52s linear infinite; animation-delay: -6s; }
.birds svg:nth-child(2) { top: 20%; left: -6%;  width: 19px; opacity: .8; animation: bird-fly 64s linear infinite; animation-delay: -28s; }
@keyframes bird-fly {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(56vw, -3vh, 0); }
  100% { transform: translate3d(118vw, 1vh, 0); }
}

/* ---------- 地平线雾带（远处河面） ---------- */
.haze {
  position: absolute;
  z-index: 2;
  left: 0; right: 0;
  top: 24%;
  height: 12%;
  background: linear-gradient(180deg,
      rgba(186, 214, 214, 0) 0%,
      rgba(178, 208, 210, .3) 42%,
      rgba(190, 218, 218, .54) 78%,
      rgba(202, 226, 224, .64) 100%);
  filter: blur(2px);
}

/* ---------- 远丘：青绿缓坡 ---------- */
.hills { position: absolute; left: 0; right: 0; bottom: 62%; height: 18%; }
.hill {
  position: absolute;
  bottom: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(180deg, #d9e8bb 0%, #bdd498 62%, #a9c484 100%);
  opacity: .94;
}
.h1 { left: -12%; width: 56%; height: 74%; }
.h2 { left: 30%;  width: 64%; height: 100%; background: linear-gradient(180deg, #e2eecd 0%, #c7dba8 66%, #b5cd95 100%); }
.h3 { left: 62%;  width: 56%; height: 62%; }

/* 山坡上的树丛：远景，压低饱和与对比 */
.tree {
  position: absolute;
  width: min(5.6vw, 62px);
  height: auto;
  opacity: .9;
  filter: saturate(.9) drop-shadow(0 2px 3px rgba(20, 40, 24, .2));
  pointer-events: none;
}
.t1 { left: 8%;  bottom: 52%; }
.t2 { left: 35%; bottom: 60%; width: min(5vw, 56px); }
.t3 { left: 62%; bottom: 53%; width: min(5.4vw, 60px); }
.t4 { right: 7%; bottom: 55%; width: min(4.4vw, 50px); }

/* ---------- 青麦田 ---------- */
.field {
  position: absolute;
  z-index: 1;
  left: 0; right: 0;
  bottom: 0;
  height: 70vh;
  min-height: 320px;
  background: linear-gradient(180deg,
      rgba(240, 249, 214, .94) 0%,
      #d8e9a6 7%,
      #bcd490 20%,
      #9dbf76 42%,
      #7ca760 64%,
      #5e8a49 86%,
      #456a30 100%);
}

/* 斜照的日光：让麦田更像一片被晨光照亮的田 */
.field::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 62% 42% at 70% -2%,
      rgba(255, 252, 214, .42) 0%,
      rgba(255, 252, 214, .14) 48%,
      rgba(255, 252, 214, 0) 100%);
  pointer-events: none;
}

/* 远景麦海：地平线上细密竖纹 */
.field::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 5%;
  height: 30%;
  background: repeating-linear-gradient(90deg,
      rgba(52, 88, 42, .15) 0 2px,
      rgba(52, 88, 42, 0) 2px 6px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .35) 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .35) 60%, transparent 100%);
}

.wheat-bed { position: absolute; inset: 0; }
.wrow { position: absolute; left: 0; right: 0; bottom: var(--b, 0); height: 0; }
.wrow.far  { bottom: 90%; }
.wrow.far2 { bottom: 82%; }
.wrow.mid  { bottom: 52%; }
.wrow.mid2 { bottom: 34%; }
.wrow.near { bottom: -2%; }

/* 一株青麦：茎 + 穗 + 芒 + 叶，由 JS 生成内联 SVG */
.stalk {
  position: absolute;
  left: var(--x);
  bottom: 0;
  width: calc(var(--h) * .29);
  height: var(--h);
  margin-left: calc(var(--h) * -.145);
  transform-origin: 50% 100%;
  opacity: var(--o, 1);
  animation: wheat-sway var(--sws, 7s) ease-in-out infinite alternate;
  animation-delay: var(--sdl, 0s);
}
.stalk svg { display: block; width: 100%; height: 100%; overflow: visible; }
@keyframes wheat-sway {
  from { rotate: calc(var(--lean, 0) * 1deg - var(--sa, 2) * 1deg); }
  to   { rotate: calc(var(--lean, 0) * 1deg + var(--sa, 2) * 1deg); }
}

.wrow.far  .stalk { filter: saturate(.84) brightness(1.06); }
.wrow.mid  .stalk { filter: saturate(.94); }
.wrow.near .stalk { filter: saturate(1.04) brightness(.99); }

/* ============================================================
   劳作的机器与人
   ============================================================ */
.machinery { position: absolute; inset: 0; z-index: 13; pointer-events: none; }
.machine {
  position: absolute;
  filter: drop-shadow(0 10px 10px rgba(8, 32, 16, .34));
  -webkit-mask-image: linear-gradient(180deg, #000 78%, rgba(0, 0, 0, .18) 96%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 78%, rgba(0, 0, 0, .18) 96%, transparent 100%);
}
.machine svg { display: block; width: 100%; height: auto; }

/* 拖拉机 */
.tractor { right: 0; bottom: -3%; width: min(20vw, 220px); opacity: .94; }
.farmer-a { left: 4.5%; bottom: 6.5%; width: min(8vw, 96px); opacity: .92; }
.farmer-b { right: 23%; bottom: 5.5%; width: min(9vw, 104px); opacity: .88; }

/* 轮胎扬起的碎屑 */
.dust { position: absolute; left: 44%; bottom: 5%; width: 56%; height: 36%; }
.dust i {
  position: absolute;
  bottom: 0; left: 0;
  width: 13px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(233, 243, 204, .72), rgba(233, 243, 204, 0) 70%);
  opacity: 0;
  animation: dust-rise 6.8s ease-out infinite;
}
.dust i:nth-child(2) { left: 26%; width: 18px; height: 11px; animation-delay: 1.7s; }
.dust i:nth-child(3) { left: 48%; width: 11px; height: 7px;  animation-delay: 3.4s; }
.dust i:nth-child(4) { left: 66%; width: 20px; height: 12px; animation-delay: 5.1s; }
@keyframes dust-rise {
  0%   { transform: translate3d(0, 0, 0) scale(.55); opacity: 0; }
  16%  { opacity: .5; }
  100% { transform: translate3d(46px, -44px, 0) scale(1.5); opacity: 0; }
}

/* 排气管的轻烟 */
.smoke { position: absolute; left: 38%; top: 16%; width: 28%; height: 40%; }
.smoke i {
  position: absolute;
  left: 0; bottom: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(246, 251, 238, .7), rgba(246, 251, 238, 0) 72%);
  opacity: 0;
  animation: smoke-rise 6.6s ease-out infinite;
}
.smoke i:nth-child(2) { left: 12%; width: 14px; height: 12px; animation-delay: 1.6s; }
.smoke i:nth-child(3) { left: 24%; width: 9px;  height: 9px;  animation-delay: 3.2s; }
.smoke i:nth-child(4) { left: 6%;  width: 16px; height: 14px; animation-delay: 4.8s; }
@keyframes smoke-rise {
  0%   { transform: translate3d(0, 0, 0) scale(.4); opacity: 0; }
  18%  { opacity: .45; }
  100% { transform: translate3d(16px, -58px, 0) scale(1.7); opacity: 0; }
}

/* ============================================================
   风：天空流线 + 青绿飘粒
   ============================================================ */
.wind-layer { position: absolute; inset: 0; overflow: hidden; z-index: 5; }

.streak {
  position: absolute;
  left: 0;
  border-radius: 999px;
  background: linear-gradient(90deg,
      rgba(250, 253, 236, 0),
      rgba(250, 253, 236, .8) 42%,
      rgba(250, 253, 236, 0) 92%);
  filter: blur(2.4px);
  transform: translate3d(-40vw, 0, 0) scaleX(.55);
  opacity: 0;
  animation: wind-streak 13s linear infinite;
}
.s1 { top: 15%; width: 30vw; height: 3px;   animation-duration: 12s; animation-delay: -3s; }
.s2 { top: 29%; width: 38vw; height: 4px;   animation-duration: 15s; animation-delay: -8s; filter: blur(3px); }
.s3 { top: 40%; width: 24vw; height: 2.5px; animation-duration: 10s; animation-delay: -5s; }
.s4 { top: 47%; width: 42vw; height: 4px;   animation-duration: 16s; animation-delay: -12s; filter: blur(3.6px); }

@keyframes wind-streak {
  0%   { transform: translate3d(-40vw, 0, 0) scaleX(.55);  opacity: 0; }
  14%  { opacity: .5; }
  62%  { opacity: .22; }
  100% { transform: translate3d(114vw, -3vh, 0) scaleX(1.2); opacity: 0; }
}

.mote {
  position: absolute;
  left: 0;
  width: 5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(230, 243, 186, .95), rgba(150, 190, 110, .3));
  opacity: 0;
  animation: mote-drift 18s linear infinite;
}
.m1 { top: 45%; animation-duration: 16s; animation-delay: -2s; }
.m2 { top: 52%; animation-duration: 21s; animation-delay: -7s; width: 7px; }
.m3 { top: 58%; animation-duration: 19s; animation-delay: -12s; }
.m4 { top: 64%; animation-duration: 24s; animation-delay: -4s; width: 4px; }
.m5 { top: 70%; animation-duration: 17s; animation-delay: -9s; width: 8px; }
.m6 { top: 77%; animation-duration: 22s; animation-delay: -15s; }
.m7 { top: 84%; animation-duration: 26s; animation-delay: -6s; width: 3px; }
.m8 { top: 90%; animation-duration: 20s; animation-delay: -11s; width: 6px; }

@keyframes mote-drift {
  0%   { transform: translate3d(-6vw, 0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: .75; }
  50%  { transform: translate3d(52vw, -3vh, 0) rotate(24deg); opacity: .55; }
  100% { transform: translate3d(108vw, 2vh, 0) rotate(52deg); opacity: 0; }
}

/* ---------- 纸感颗粒 ---------- */
.grain {
  position: absolute; inset: 0;
  z-index: 6;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   顶部导航
   ============================================================ */
.topbar {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(18px, 4vw, 52px) 0;
}

.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; }

.brand-mark { display: inline-block; width: 21px; height: 33px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.bm-stem  { stroke: #4c7b3b; stroke-width: 1.6; stroke-linecap: round; }
.bm-awn   { stroke: #7c9c4d; stroke-width: 1.3; stroke-linecap: round; }
.bm-grain { fill: #a9c46b; }

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(19px, 3.1vw, 27px);
  font-weight: 700;
  letter-spacing: .18em;
  -webkit-text-stroke: .3px #21452c;
  background: linear-gradient(96deg, #173b26 0%, #4a783c 46%, #2a5b38 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(244, 250, 226, .65));
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--ink-soft);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 62vw;
}
.nav::-webkit-scrollbar { display: none; }

.nav-item { position: relative; white-space: nowrap; padding-bottom: 2px; transition: color .25s ease; }
.nav-item::after {
  content: "";
  position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.nav-item:hover { color: var(--accent); }
.nav-item:hover::after { transform: scaleX(1); }
.nav-admin { color: var(--accent); }

.intro {
  position: absolute;
  z-index: 40;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  width: min(34em, 82vw);
  text-align: center;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: .1em;
  color: #33573b;
  opacity: .78;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}

.footer {
  position: relative;
  z-index: 50;
  margin-top: auto;
  padding: 16px clamp(18px, 4vw, 52px) 20px;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(20, 52, 33, .76);
  text-shadow: 0 1px 0 rgba(240, 249, 220, .55);
}
.footer p { margin: 4px 0; }
.ft-top { color: rgba(20, 52, 33, .88); }
.ft-filing a { color: inherit; opacity: .8; }
.ft-filing a:hover { opacity: 1; }
.ft-sep { margin: 0 6px; opacity: .5; }

/* ============================================================
   舞台：怪圈
   ============================================================ */
.stage {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.circle {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: var(--d, 240px);
  height: var(--d, 240px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: var(--z, 11);
}

/* 落在田里的投影 */
.circle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 56%;
  width: 106%;
  height: 54%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(9, 37, 19, .5) 0%, rgba(9, 37, 19, 0) 72%);
  z-index: -1;
  pointer-events: none;
}

/* ---------- 压平的麦秆：同心环 + 漩涡 ---------- */
.circle-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%,
      rgba(240, 249, 214, .12) 0deg 1deg,
      rgba(240, 249, 214, 0) 1deg 3.4deg),
    repeating-radial-gradient(circle at 50% 46%,
      rgba(238, 248, 210, .2) 0 calc(var(--d, 240px) * .026),
      rgba(14, 44, 24, .19) calc(var(--d, 240px) * .026) calc(var(--d, 240px) * .052)),
    conic-gradient(from 200deg at 50% 50%,
      rgba(223, 240, 175, .3) 0deg 55deg,
      rgba(223, 240, 175, 0) 55deg 145deg,
      rgba(223, 240, 175, .26) 145deg 215deg,
      rgba(223, 240, 175, 0) 215deg 310deg,
      rgba(223, 240, 175, .24) 310deg 360deg),
    radial-gradient(circle at 50% 40%,
      #d7e9a8 0%,
      #bcd48b 20%,
      #93b76c 45%,
      #6b9a56 68%,
      #467a48 88%,
      #2f6038 100%);
  box-shadow:
    inset 0 0 0 calc(var(--d, 240px) * .012) rgba(30, 68, 42, .38),
    inset 0 0 0 calc(var(--d, 240px) * .022) rgba(240, 249, 214, .22),
    inset 0 calc(var(--d, 240px) * -.05) calc(var(--d, 240px) * .12) rgba(11, 38, 21, .35),
    0 calc(var(--d, 240px) * .09) calc(var(--d, 240px) * .16) calc(var(--d, 240px) * -.09) rgba(9, 34, 17, .55);
  transition: filter .45s ease, box-shadow .45s ease;
}

/* 倒伏的麦秆：圈沿放射状细纹 */
.circle-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg,
      rgba(234, 246, 198, .62) 0deg .55deg,
      rgba(234, 246, 198, 0) .55deg 2.1deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 63%, #000 71%, #000 97%, transparent 100%);
  mask-image: radial-gradient(circle at 50% 50%, transparent 63%, #000 71%, #000 97%, transparent 100%);
  opacity: .75;
}

/* 漩涡：极缓地转动 */
.circle-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from 40deg,
      rgba(248, 253, 226, .34) 0deg 1.1deg,
      rgba(248, 253, 226, 0) 1.1deg 7deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 26%, #000 34%, #000 62%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 50%, transparent 26%, #000 34%, #000 62%, transparent 70%);
  opacity: .5;
  animation: circle-turn 210s linear infinite;
}
@keyframes circle-turn { to { transform: rotate(360deg); } }

.circle.is-hold .circle-ring {
  filter: brightness(1.06) saturate(1.04);
  box-shadow:
    inset 0 0 0 calc(var(--d, 240px) * .012) rgba(30, 68, 42, .34),
    inset 0 0 0 calc(var(--d, 240px) * .022) rgba(244, 250, 220, .3),
    inset 0 calc(var(--d, 240px) * -.05) calc(var(--d, 240px) * .12) rgba(11, 38, 21, .3),
    0 calc(var(--d, 240px) * .1) calc(var(--d, 240px) * .2) calc(var(--d, 240px) * -.09) rgba(9, 34, 17, .62);
}

/* ---------- 圈心内容：圆形框 ---------- */
.plate {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--d, 240px) * .86);
  height: calc(var(--d, 240px) * .86);
  transform: translate(-50%, -50%);
  overflow: hidden;
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
  background: linear-gradient(150deg, #fbfdf3 0%, #f0f8e0 52%, #e0efc6 100%);
  border: 1px solid rgba(36, 78, 44, .42);
  box-shadow:
    0 18px 30px -18px rgba(7, 32, 16, .6),
    inset 0 0 0 1px rgba(255, 255, 255, .6),
    0 0 0 calc(var(--d, 240px) * .015) rgba(26, 62, 36, .14);
  transition: transform .32s cubic-bezier(.22, .8, .3, 1), box-shadow .32s ease, filter .32s ease;
  -webkit-tap-highlight-color: transparent;
}
/* 圆框内沿高光与柔和暗角 */
.plate::after {
  content: "";
  position: absolute;
  inset: calc(var(--d, 240px) * .024);
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  box-shadow:
    inset 0 0 0 1px rgba(252, 254, 240, .6),
    inset 0 0 calc(var(--d, 240px) * .07) rgba(22, 54, 30, .14);
}
.plate:hover,
.circle.is-hold .plate {
  transform: translate(-50%, -52%) scale(1.025);
  box-shadow:
    0 26px 38px -20px rgba(6, 28, 13, .68),
    inset 0 0 0 1px rgba(255, 255, 255, .72),
    0 0 0 calc(var(--d, 240px) * .022) rgba(120, 158, 88, .3);
  filter: brightness(1.02);
}
.plate:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 50%; }

/* 翻页时轻轻一按 */
.circle.is-press .plate { animation: plate-press .62s ease-in-out; }
@keyframes plate-press {
  0%   { transform: translate(-50%, -50%) scale(1);   filter: brightness(1); }
  46%  { transform: translate(-50%, -50%) scale(.93); filter: brightness(1.1); }
  100% { transform: translate(-50%, -50%) scale(1);   filter: brightness(1); }
}

/* 圆框上沿：类别 + 编号 */
.plate-head {
  position: absolute;
  z-index: 4;
  top: calc(var(--d, 240px) * .062);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: calc(var(--d, 240px) * .016);
  padding: calc(var(--d, 240px) * .008) calc(var(--d, 240px) * .024);
  border-radius: 999px;
  background: rgba(248, 252, 236, .86);
  border: 1px solid rgba(78, 120, 68, .24);
  box-shadow: 0 3px 8px rgba(18, 46, 24, .14);
  font-family: var(--font-ui);
  font-size: clamp(10px, calc(var(--d, 240px) * .046), 15px);
  line-height: 1.2;
  letter-spacing: .10em;
  color: var(--ink-faint);
  white-space: nowrap;
  pointer-events: none;
}
.plate-kind { color: var(--accent); font-weight: 600; }
.plate-no {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  opacity: .75;
}

/* 图片 / 视频封面：铺满内圈 */
.plate-media {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #dcebc0, #c2d69a);
}
.plate-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.97) contrast(1.02);
}
/* 下部压暗，让中下部的滚动标题清晰可读 */
.plate-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 30, 16, .14) 0%,
      rgba(10, 30, 16, 0) 30%,
      rgba(9, 28, 15, .16) 52%,
      rgba(8, 26, 14, .58) 88%,
      rgba(7, 24, 13, .68) 100%);
  pointer-events: none;
}
.plate-media--empty {
  background:
    linear-gradient(135deg, #e2efc6, #c9dca2),
    repeating-linear-gradient(45deg, rgba(60, 100, 50, .07) 0 6px, rgba(60, 100, 50, 0) 6px 12px);
}

.plate-play {
  position: absolute;
  z-index: 2;
  left: 50%; top: 50%;
  width: calc(var(--d, 240px) * .155);
  height: calc(var(--d, 240px) * .155);
  margin: calc(var(--d, 240px) * -.0775) 0 0 calc(var(--d, 240px) * -.0775);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(244, 251, 222, .65);
  background: rgba(21, 52, 30, .76);
  color: #f3fad9;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .65);
  transition: transform .28s ease, background .28s ease;
}
.plate-play::before {
  content: "";
  width: 0; height: 0;
  margin-left: calc(var(--d, 240px) * .008);
  border-left: calc(var(--d, 240px) * .036) solid currentColor;
  border-top: calc(var(--d, 240px) * .022) solid transparent;
  border-bottom: calc(var(--d, 240px) * .022) solid transparent;
}
.plate:hover .plate-play { transform: scale(1.08); background: rgba(62, 104, 52, .92); }

/* 圆框内的媒体标题：单行，位于中下部，自右向左循环滚动 */
.plate-cap {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: calc(var(--d, 240px) * .17);
  width: calc(var(--d, 240px) * .66);
  height: calc(var(--d, 240px) * .080);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.plate-cap-track {
  display: inline-block;
  padding-left: 100%;
  white-space: nowrap;
  font-size: clamp(12px, calc(var(--d, 240px) * .057), 18px);
  line-height: 1.3;
  color: #f5fbe6;
  text-shadow: 0 1px 5px rgba(6, 24, 12, .85);
  animation: plate-marquee 12s linear infinite;
}
@keyframes plate-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* 手记：整块圆形纸面，文字居中 */
.plate-note {
  position: absolute;
  inset: calc(var(--d, 240px) * .05);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--d, 240px) * .03) calc(var(--d, 240px) * .10);
  overflow: hidden;
}
/* 手记圆心底纹：淡淡压印的同心圈 */
.plate-note::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: .55;
  background: repeating-radial-gradient(circle at 50% 50%,
      rgba(86, 120, 62, .13) 0 2px,
      rgba(86, 120, 62, 0) 2px 10px);
}
.plate-note > * { position: relative; z-index: 1; }
.plate-note-img {
  flex: none;
  width: calc(var(--d, 240px) * .19);
  height: calc(var(--d, 240px) * .19);
  margin-bottom: calc(var(--d, 240px) * .018);
  overflow: hidden;
  border-radius: 50%;
  background: #dcebc0;
  box-shadow: 0 0 0 1px rgba(78, 120, 68, .28), 0 4px 10px -5px rgba(20, 50, 28, .5);
}
.plate-note-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.plate-date {
  flex: none;
  font-family: var(--font-ui);
  font-size: clamp(10px, calc(var(--d, 240px) * .045), 14px);
  letter-spacing: .08em;
  color: var(--ink-faint);
}
.plate-text {
  margin: calc(var(--d, 240px) * .014) 0 0;
  font-size: clamp(13px, calc(var(--d, 240px) * .060), 19px);
  line-height: 1.58;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.plate-note-img ~ .plate-text { -webkit-line-clamp: 3; }
.plate-more {
  margin-top: calc(var(--d, 240px) * .02);
  font-family: var(--font-ui);
  font-size: clamp(10px, calc(var(--d, 240px) * .044), 14px);
  letter-spacing: .12em;
  color: var(--accent);
}
.plate-more::after { content: " →"; }

/* 空态 */
.plate-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--d, 240px) * .03);
  padding: 0 20%;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(12px, calc(var(--d, 240px) * .052), 16px);
  line-height: 1.7;
  letter-spacing: .05em;
  color: var(--ink-faint);
}
.plate-empty::before {
  content: "";
  width: calc(var(--d, 240px) * .14);
  height: calc(var(--d, 240px) * .14);
  border-radius: 50%;
  background: radial-gradient(circle at 42% 34%, #e4f1c2, #a8c479 62%, #5f8f4c);
  box-shadow: 0 0 0 calc(var(--d, 240px) * .03) rgba(120, 160, 90, .18);
}

/* 远景圈略淡 */
.circle--back .circle-ring { filter: saturate(.94) brightness(1.03); }
.circle--back .plate { opacity: .97; }

/* ============================================================
   视频浮层
   ============================================================ */
.player,
.viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 34, 20, .76);
  animation: fade-in .28s ease both;
}
.player[hidden], .viewer[hidden] { display: none; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.player-box {
  position: relative;
  width: min(880px, 100%);
  background: var(--paper);
  border-radius: 4px;
  padding: 10px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65);
}
.player-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #101f16;
  overflow: hidden;
}
.player-media iframe,
.player-media video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.player-title {
  margin: 10px 4px 2px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--ink-soft);
}
.player-title:empty { display: none; }

.player-close,
.viewer-close {
  position: absolute;
  top: -14px; right: -14px;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .55);
}
.player-close:hover, .viewer-close:hover { background: var(--accent); color: #fff; }

/* ============================================================
   通用浮层：图片 / 微博客
   ============================================================ */
.viewer-box {
  position: relative;
  width: min(640px, 100%);
  max-height: 86vh;
  background: var(--paper);
  border-radius: 6px;
  padding: 14px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65);
  display: flex;
}
.viewer-body {
  width: 100%;
  max-height: calc(86vh - 28px);
  overflow: auto;
  overscroll-behavior: contain;
}

.viewer-photo { margin: 0; text-align: center; }
.viewer-photo img {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  margin: 0 auto;
  background: #e2edc6;
  box-shadow: 0 10px 30px -12px rgba(28, 62, 30, .42);
}
.viewer-cap {
  margin: 10px 4px 0;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--ink-soft);
}

.viewer-note-media img {
  display: block;
  max-width: 100%;
  max-height: 62vh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 3px;
  background: #e2edc6;
}
.viewer-note-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 2px 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink-faint);
}
.viewer-note-meta .tag { color: var(--accent); }
.viewer-note-text {
  margin: 0 2px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}
.viewer-note-link {
  display: inline-block;
  margin: 14px 2px 0;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.viewer-note-link:hover { color: var(--ink); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .nav { max-width: 56vw; gap: 16px; font-size: 12px; }
  .intro { top: 72px; font-size: 13px; }
  .brand-mark { width: 18px; height: 29px; }
  .tractor { width: min(34vw, 290px); }
  .farmer-b { right: 34%; }
}

@media (max-width: 640px) {
  .topbar { padding-top: 16px; }
  .brand-name { letter-spacing: .12em; }
  .intro { top: 62px; width: 78vw; font-size: 12px; opacity: .68; }
  .footer { font-size: 10px; letter-spacing: .06em; }
  .plate-head { letter-spacing: .12em; }
  .plate-note { padding: calc(var(--d) * .025) calc(var(--d) * .09); }
  .tractor { width: 44vw; right: -3%; bottom: -2.5%; opacity: .88; }
  .farmer-a { width: 15vw; left: auto; right: 5%; bottom: 15%; }
  .farmer-b { display: none; }
  .dust { display: none; }
  .smoke { display: none; }
}

/* 矮屏：隐藏简介与农机，避免压到页脚 */
@media (max-height: 540px) {
  .intro { display: none; }
  .machinery { display: none; }
}

/* 尊重系统的减弱动效设置：景物静止，圈心内容仍定时轮换 */
@media (prefers-reduced-motion: reduce) {
  .sun, .cloud, .birds svg, .streak, .mote, .stalk,
  .circle-ring::after, .dust i, .smoke i, .plate-cap-track {
    animation: none !important;
  }
  .plate-cap-track { padding-left: 0; }
  .circle.is-press .plate { animation: none !important; }
}
