/* ==========================================================================
   饭禾田 · 「禾田天光」视觉系统
   宣纸 · 黑土 · 稻金 · 朱印。天空随真实时间流转（清晨 / 白昼 / 黄昏 / 夜晚）。
   ========================================================================== */
:root {
  color-scheme: light;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --bg: #f4ecda;
  --card: #fffbf2;
  --card-2: #fbf4e4;
  --paper: #f6eedb;
  --ink: #2b2118;
  --ink2: #6e6250;
  --ink3: #9a8c74;
  --line: #eadfc7;
  --line-2: #e0d2b4;

  --green: #4b7d3a;
  --green-d: #335c29;
  --green-dd: #234520;
  --green-l: #e6eed3;
  --gold: #e7aa3c;
  --gold-d: #b87816;
  --gold-l: #fbedc7;
  --soil: #2c1f15;
  --soil-2: #43301f;
  --soil-3: #5c4129;
  --seal: #c2412d;
  --warn: #ad4733;
  --violet: #6b4b86;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 1px 0 #fffdf7 inset, 0 18px 36px -20px rgba(74, 50, 18, .36), 0 3px 8px -3px rgba(74, 50, 18, .14);
  --shadow-lg: 0 30px 60px -28px rgba(60, 38, 12, .5), 0 8px 18px -8px rgba(60, 38, 12, .2);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.5, .5, 1);

  /* 天光相位：默认白昼 */
  --sky-1: #cfe3dc;
  --sky-2: #e6eedb;
  --sky-3: #f4ecda;
  --sky-ink: #263222;
  --sky-ink2: #5d6a52;
  --sun: #fff6cf;
  --sun-glow: rgba(255, 238, 170, .55);
  --hill-1: #c5d2a6;
  --hill-2: #b2c48c;
  --hill-3: #d8d2a8;
  --glass: rgba(255, 252, 242, .62);
  --glass-line: rgba(255, 255, 255, .75);
  --glass-ink: #34502c;
  --header-bg: rgba(238, 240, 224, .72);
  --stars: 0;
  --clouds: .9;
  --motes: .75;
  --mote-color: #fff8d4;
}
[data-phase="morning"] {
  --sky-1: #f7cf9c; --sky-2: #fbe3bf; --sky-3: #f6ecd8;
  --sky-ink: #3b2716; --sky-ink2: #7b6044;
  --sun: #fff1c4; --sun-glow: rgba(255, 196, 118, .62);
  --hill-1: #e3c79b; --hill-2: #cdbb86; --hill-3: #e6d4a8;
  --glass: rgba(255, 249, 236, .6); --glass-ink: #5a3d1c;
  --header-bg: rgba(251, 231, 199, .74);
  --clouds: .85; --motes: .8; --mote-color: #fff3cc;
}
[data-phase="sunset"] {
  --sky-1: #e9875b; --sky-2: #f3b582; --sky-3: #f6e2c5;
  --sky-ink: #3a1d10; --sky-ink2: #7c4a2e;
  --sun: #ffdca0; --sun-glow: rgba(255, 140, 70, .62);
  --hill-1: #c98c6a; --hill-2: #b77d5c; --hill-3: #e2b48c;
  --glass: rgba(255, 238, 220, .55); --glass-ink: #5c2c16;
  --header-bg: rgba(243, 181, 130, .7);
  --clouds: .65; --motes: .9; --mote-color: #ffd9a0;
}
[data-phase="night"] {
  --sky-1: #0d1730; --sky-2: #1f2c4e; --sky-3: #4b4b66;
  --sky-ink: #f6ecd6; --sky-ink2: #b9b4c4;
  --sun: #fff6d8; --sun-glow: rgba(200, 214, 255, .3);
  --hill-1: #23304d; --hill-2: #1b2640; --hill-3: #2d3653;
  --glass: rgba(255, 255, 255, .1); --glass-line: rgba(255, 255, 255, .2); --glass-ink: #f6ecd6;
  --header-bg: rgba(16, 26, 50, .72);
  --stars: 1; --clouds: .12; --motes: 1; --mote-color: #f9f2a2;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow: hidden; }
h1, h2, h3, h4, p, ul, dl, dd, fieldset { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-d); outline-offset: 3px; }
[hidden] { display: none !important; }
button:disabled { cursor: default; opacity: .55; }
::selection { background: #f2d58c; color: var(--soil); }

/* ---------- 天光氛围层 ---------- */
.ambience { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.amb-sky { position: absolute; inset: 0; background:
  radial-gradient(120% 60% at 50% 0%, transparent 40%, rgba(0, 0, 0, .0) 100%),
  linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 22vh, var(--sky-3) 46vh, var(--bg) 64vh); transition: background .8s ease; }
.amb-sun { position: absolute; width: 150px; height: 150px; right: 12%; top: 7vh; border-radius: 50%; background: radial-gradient(circle, var(--sun) 0 18%, var(--sun-glow) 34%, transparent 70%); filter: blur(.3px); animation: sun-breathe 7s ease-in-out infinite alternate; }
[data-phase="morning"] .amb-sun { right: auto; left: 8%; top: 13vh; }
[data-phase="sunset"] .amb-sun { right: 18%; top: 20vh; width: 210px; height: 210px; }
[data-phase="night"] .amb-sun { width: 64px; height: 64px; right: 16%; top: 8vh; background: radial-gradient(circle at 38% 38%, #fffbe8 0 34%, #f3e6b8 48%, rgba(220, 225, 255, .22) 58%, transparent 72%); box-shadow: 0 0 60px 18px rgba(190, 205, 255, .16); }
@keyframes sun-breathe { to { transform: scale(1.08); opacity: .9; } }
.amb-stars { position: absolute; inset: 0 0 50% 0; opacity: var(--stars); transition: opacity .8s ease;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 46% 22%, #fff7d0 50%, transparent 51%), radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 74% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 88% 16%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 6% 38%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 36% 34%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 56% 40%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 94% 42%, #fff 50%, transparent 51%);
  animation: star-twinkle 4.5s ease-in-out infinite alternate; }
@keyframes star-twinkle { from { filter: brightness(.7); } to { filter: brightness(1.3); } }
.amb-clouds { position: absolute; inset: 0; opacity: var(--clouds); transition: opacity .8s ease; }
.amb-clouds i { position: absolute; display: block; width: 220px; height: 54px; border-radius: 60px; background: radial-gradient(60% 100% at 30% 100%, rgba(255, 255, 255, .9), transparent 70%), radial-gradient(50% 120% at 62% 100%, rgba(255, 255, 255, .85), transparent 70%); filter: blur(2px); animation: cloud-drift 70s linear infinite; }
.amb-clouds i:nth-child(1) { top: 9vh; left: -240px; }
.amb-clouds i:nth-child(2) { top: 19vh; left: -240px; transform: scale(.7); animation-duration: 95s; animation-delay: -40s; opacity: .8; }
.amb-clouds i:nth-child(3) { top: 4vh; left: -240px; transform: scale(1.25); animation-duration: 120s; animation-delay: -85s; opacity: .7; }
[data-phase="sunset"] .amb-clouds i { background: radial-gradient(60% 100% at 30% 100%, rgba(255, 214, 180, .9), transparent 70%), radial-gradient(50% 120% at 62% 100%, rgba(255, 196, 160, .85), transparent 70%); }
@keyframes cloud-drift { to { translate: calc(100vw + 480px) 0; } }
.amb-hills { position: absolute; left: 0; right: 0; top: calc(46vh - 200px); width: 100%; height: 200px; opacity: .9; -webkit-mask: linear-gradient(#000 40%, transparent 96%); mask: linear-gradient(#000 40%, transparent 96%); }
.amb-hills .h1 { fill: var(--hill-1); opacity: .55; }
.amb-hills .h2 { fill: var(--hill-2); opacity: .5; }
.amb-hills .h3 { fill: var(--hill-3); opacity: .6; }
.amb-hills .terrace { stroke: rgba(255, 255, 255, .35); stroke-width: 1.5; }
[data-phase="night"] .amb-hills .terrace { stroke: rgba(200, 210, 255, .12); }
.amb-hills::after { content: ""; }
.amb-motes { position: absolute; inset: 0; opacity: var(--motes); }
.amb-motes i { position: absolute; bottom: -10px; width: 5px; height: 5px; border-radius: 50%; background: var(--mote-color); box-shadow: 0 0 10px 3px color-mix(in srgb, var(--mote-color) 60%, transparent); animation: mote-rise 16s linear infinite; opacity: 0; }
.amb-motes i:nth-child(1) { left: 6%; animation-delay: -2s; }
.amb-motes i:nth-child(2) { left: 18%; animation-delay: -9s; animation-duration: 19s; transform: scale(.7); }
.amb-motes i:nth-child(3) { left: 31%; animation-delay: -5s; animation-duration: 14s; }
.amb-motes i:nth-child(4) { left: 44%; animation-delay: -12s; animation-duration: 21s; transform: scale(.6); }
.amb-motes i:nth-child(5) { left: 57%; animation-delay: -1s; animation-duration: 17s; }
.amb-motes i:nth-child(6) { left: 68%; animation-delay: -7s; animation-duration: 15s; transform: scale(.8); }
.amb-motes i:nth-child(7) { left: 79%; animation-delay: -14s; animation-duration: 20s; }
.amb-motes i:nth-child(8) { left: 90%; animation-delay: -4s; animation-duration: 18s; transform: scale(.6); }
.amb-motes i:nth-child(9) { left: 38%; animation-delay: -16s; animation-duration: 23s; transform: scale(.5); }
.amb-motes i:nth-child(10) { left: 84%; animation-delay: -10s; animation-duration: 13s; transform: scale(.9); }
@keyframes mote-rise {
  0% { translate: 0 0; opacity: 0; }
  10% { opacity: .9; }
  50% { translate: 24px -48vh; opacity: .7; }
  100% { translate: -12px -100vh; opacity: 0; }
}
.amb-rice { position: absolute; left: -20px; right: -20px; bottom: 0; height: 96px; opacity: .32; transform-origin: 50% 100%; animation: rice-sway 6s ease-in-out infinite alternate;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='96' viewBox='0 0 120 96'%3E%3Cg fill='none' stroke='%23b38a3a' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M14 96C16 70 22 46 34 26'/%3E%3Cpath d='M44 96C44 74 46 56 52 38'/%3E%3Cpath d='M78 96C80 72 88 52 100 36'/%3E%3Cpath d='M104 96C104 80 106 68 110 58'/%3E%3C/g%3E%3Cg fill='%23d1a24a'%3E%3Cellipse cx='35' cy='22' rx='2.6' ry='5' transform='rotate(35 35 22)'/%3E%3Cellipse cx='31' cy='30' rx='2.4' ry='4.6' transform='rotate(-20 31 30)'/%3E%3Cellipse cx='38' cy='31' rx='2.4' ry='4.6' transform='rotate(60 38 31)'/%3E%3Cellipse cx='53' cy='34' rx='2.4' ry='4.8' transform='rotate(18 53 34)'/%3E%3Cellipse cx='50' cy='42' rx='2.2' ry='4.4' transform='rotate(-30 50 42)'/%3E%3Cellipse cx='101' cy='32' rx='2.6' ry='5' transform='rotate(42 101 32)'/%3E%3Cellipse cx='96' cy='40' rx='2.4' ry='4.6' transform='rotate(-14 96 40)'/%3E%3Cellipse cx='104' cy='42' rx='2.4' ry='4.6' transform='rotate(70 104 42)'/%3E%3C/g%3E%3C/svg%3E") repeat-x bottom / 120px 96px; }
[data-phase="night"] .amb-rice { opacity: .14; filter: hue-rotate(180deg) brightness(.7); }
@keyframes rice-sway { from { transform: skewX(-3deg); } to { transform: skewX(3deg); } }
.amb-grain { position: absolute; inset: 0; opacity: .5; 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- 版面骨架 ---------- */
#app { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; height: 100dvh; max-width: 1192px; margin: auto; }
#view { flex: 1; min-height: 0; overflow: auto; overscroll-behavior-y: contain; padding: 0 24px 28px; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #d6c39b transparent; }
body.has-dock #view { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
#view:not(.no-enter) > * { animation: enter .6s var(--ease) both; }
#view:not(.no-enter) > :nth-child(2) { animation-delay: .05s; }
#view:not(.no-enter) > :nth-child(3) { animation-delay: .1s; }
#view:not(.no-enter) > :nth-child(4) { animation-delay: .15s; }
#view:not(.no-enter) > :nth-child(n+5) { animation-delay: .2s; }
#view:not(.no-enter) .farm-layout > :nth-child(2), #view:not(.no-enter) .profile-layout > :nth-child(2) { animation: enter .7s var(--ease) .18s both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
.icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.muted { color: var(--ink2); font-size: 13px; line-height: 1.6; }
.empty { padding: 26px 12px; color: var(--ink2); text-align: center; }
.page-loading { margin-top: 13vh; }
.err { color: var(--warn); font-size: 13px; margin-top: 8px; font-weight: 600; }
.err:empty { display: none; }
.row { display: flex; gap: 12px; align-items: center; }
.dot { width: 9px; height: 9px; flex: none; display: inline-block; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(40, 30, 10, .16), 0 0 0 2px rgba(255, 255, 255, .6); }

/* 加载：一株萌芽 */
.route-loading { display: grid; justify-items: center; gap: 4px; margin: 20vh auto 0; color: var(--sky-ink2); font: 600 14px/1.5 var(--serif); letter-spacing: .12em; }
.sprout-loader { width: 96px; height: 96px; overflow: visible; }
.sl-soil { fill: var(--soil-2); opacity: .85; }
.sl-stem { fill: none; stroke: #5e9a3e; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: sl-stem 2.4s var(--ease) infinite; }
.sl-leaf { fill: #79bb4f; transform-box: fill-box; transform-origin: 100% 100%; transform: scale(0); animation: sl-leaf 2.4s var(--spring) infinite; }
.sl-leaf.r { transform-origin: 0% 100%; fill: #92cd5e; animation-delay: .12s; }
.sl-dew { fill: #fff8c8; opacity: 0; animation: sl-dew 2.4s ease infinite; }
@keyframes sl-stem { 0% { stroke-dashoffset: 40; } 35%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes sl-leaf { 0%, 30% { transform: scale(0); } 55%, 85% { transform: scale(1); } 100% { transform: scale(1); opacity: 0; } }
@keyframes sl-dew { 0%, 55% { opacity: 0; } 70%, 85% { opacity: 1; } 100% { opacity: 0; } }
.route-bone { display: none; }

/* ---------- 顶栏 ---------- */
.top { position: sticky; z-index: 10; top: 0; display: flex; gap: 12px; align-items: center; margin: 0 -24px; padding: max(10px, env(safe-area-inset-top)) 24px 10px; min-height: 64px; color: var(--sky-ink); background: linear-gradient(180deg, var(--header-bg), color-mix(in srgb, var(--header-bg) 55%, transparent)); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid color-mix(in srgb, var(--glass-line) 40%, transparent); }
.top h1 { flex: 1; margin: 0; font: 800 19px/1.3 var(--serif); letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .back, #menu { min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 15px; }
.top .back { background: var(--glass); border: 1px solid var(--glass-line); color: var(--glass-ink); box-shadow: 0 4px 12px -6px rgba(40, 30, 10, .3); transition: transform .15s var(--ease); }
.top .back:active { transform: scale(.94); }
#menu { margin-left: auto; padding: 3px; }
#menu .av { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--gold), 0 6px 14px -4px rgba(60, 40, 10, .45); }
.av { display: inline-grid; width: 36px; height: 36px; border-radius: 50%; place-items: center; box-shadow: 0 0 0 2px #fffaf0; color: #fff; font: 800 15px/1 var(--serif); flex: none; text-shadow: 0 1px 1px rgba(0, 0, 0, .2); }
.av.sm { width: 23px; height: 23px; font-size: 11px; }
.av img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.field-name .sign-av { width: 17px; height: 17px; box-shadow: none; }
.nav-fill { flex: 1; }

/* 朱印字标 */
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--sky-ink); }
.seal { position: relative; display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; color: #fff4e2; font: 900 22px/1 var(--serif); background: radial-gradient(120% 120% at 30% 20%, #dc5a3f, #b5361f 60%, #962a17); box-shadow: inset 0 0 0 2px #b5361f, inset 0 0 0 3.5px rgba(255, 232, 205, .72), 0 6px 14px -6px rgba(150, 40, 20, .7); transform: rotate(-4deg); text-shadow: 0 1px 0 rgba(90, 20, 10, .45); }
.seal::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='1.4' numOctaves='1'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -2.2 1.3'/%3E%3C/filter%3E%3Crect width='40' height='40' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: .28; mix-blend-mode: screen; }
.wm-text { display: grid; line-height: 1.05; }
.wm-text b { font: 900 21px/1.1 var(--serif); letter-spacing: .14em; }
.wm-text small { margin-top: 3px; font: 700 8.5px/1 var(--sans); letter-spacing: .38em; color: var(--sky-ink2); opacity: .9; }
.wordmark > span:not(.seal):not(.wm-text) { display: grid; place-items: center; width: 37px; height: 37px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 12px; }

/* ---------- 按钮与基础控件 ---------- */
.btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 16px; width: 100%; border-radius: 15px; color: #fffbef; font-weight: 750; letter-spacing: .04em; text-align: center; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #5f9447 0%, #477a35 55%, #3a6a2c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 10px 22px -10px rgba(52, 96, 34, .75), 0 2px 4px -1px rgba(30, 50, 20, .25);
  text-shadow: 0 1px 0 rgba(20, 50, 10, .3); transition: transform .14s var(--ease), filter .14s ease, box-shadow .14s ease; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .26) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:not(:disabled):hover { filter: brightness(1.05); }
.btn:not(:disabled):hover::after { transform: translateX(120%); }
.btn.ghost { color: var(--green-d); background: linear-gradient(180deg, #fffdf6, #f4ecd8); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 #fff, 0 4px 10px -6px rgba(80, 60, 20, .3); text-shadow: none; }
.btn.ghost:not(:disabled):hover { background: linear-gradient(180deg, #fffef9, #efe6cc); filter: none; }
.btn.danger { background: linear-gradient(180deg, #c45a43, #a43f2a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 20px -10px rgba(160, 50, 30, .7); }
.btn.sm { font-size: 14px; min-height: 42px; border-radius: 13px; }
.chips, .record-types { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #fffdf7, #f6eedb); color: var(--green-d); font-size: 13px; font-weight: 700; border-radius: 999px; padding: 8px 14px; white-space: nowrap; box-shadow: inset 0 1px 0 #fff, 0 3px 8px -5px rgba(80, 60, 20, .35); }
.chip:hover { border-color: #cdbb90; }
.chip.on { color: #fffbef; border-color: transparent; background: linear-gradient(180deg, #5a8d43, #3c6b2e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 14px -7px rgba(50, 90, 30, .8); }
.chip .icon { width: 16px; height: 16px; }
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 50px; padding: 3px 9px; background: #f0e9d4; color: #5a5440; font-size: 11.5px; font-weight: 700; white-space: nowrap; border: 1px solid rgba(120, 100, 50, .1); }
.pill.hot { background: linear-gradient(135deg, #f2e6f6, #e9dcf3); color: var(--violet); border-color: rgba(107, 75, 134, .16); }
.pill.warn { background: linear-gradient(135deg, #fbe9dc, #f6dccb); color: #8d4237; border-color: rgba(141, 66, 55, .14); }
.pills { display: flex; flex-wrap: wrap; gap: 5px; }
.card { position: relative; min-width: 0; padding: 20px; border-radius: var(--radius); background: linear-gradient(180deg, var(--card), var(--card-2)); border: 1px solid rgba(150, 118, 60, .16); box-shadow: var(--shadow); }
.card h2 { margin-bottom: 8px; font: 800 19px/1.35 var(--serif); letter-spacing: .03em; }
.card h2 small { margin-left: 5px; color: var(--ink2); font: 500 12px var(--sans); letter-spacing: 0; }
.card h4 { margin: 12px 0 6px; font-size: 13px; }
.field { display: block; margin: 14px 0; }
.field > span { display: block; margin-bottom: 7px; font-size: 13px; color: var(--ink2); font-weight: 700; letter-spacing: .02em; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: #fffef9; font-size: 16px; color: inherit; font-family: inherit; box-shadow: inset 0 2px 4px rgba(90, 70, 30, .06); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23335c29' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: #9cb877; background: #fff; box-shadow: 0 0 0 4px rgba(120, 165, 80, .16), inset 0 1px 2px rgba(90, 70, 30, .04); }
.field textarea { min-height: 88px; resize: vertical; }
.text-danger { padding: 10px 2px; font-weight: 750; color: var(--warn); text-decoration: underline; text-decoration-style: wavy; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- 浮动黑土 Dock ---------- */
.dock { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 26px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 82%, transparent) 46%, var(--bg)); pointer-events: none; }
.dock > * { pointer-events: auto; }
.dock-inner { position: relative; max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 7px; padding: 7px; border-radius: 26px; background: linear-gradient(180deg, #4a3523 0%, #2f2116 55%, #24180f 100%); border: 1px solid rgba(255, 216, 150, .18); box-shadow: inset 0 1px 0 rgba(255, 230, 190, .16), 0 22px 40px -16px rgba(30, 18, 6, .7), 0 6px 14px -6px rgba(30, 18, 6, .4); animation: dock-in .6s var(--spring) both; }
.dock-inner::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cg fill='%23fff3d8' opacity='.07'%3E%3Ccircle cx='10' cy='14' r='1.2'/%3E%3Ccircle cx='44' cy='8' r='.9'/%3E%3Ccircle cx='70' cy='30' r='1.3'/%3E%3Ccircle cx='24' cy='52' r='1'/%3E%3Ccircle cx='60' cy='70' r='1.1'/%3E%3Ccircle cx='84' cy='80' r='.8'/%3E%3Ccircle cx='8' cy='80' r='.9'/%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
@keyframes dock-in { from { transform: translateY(30px); opacity: 0; } }
.dock-inner a, .dock-inner .dock-agent, .dock-inner .dock-record { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; min-height: 50px; border-radius: 20px; font-size: 15px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; overflow: hidden; }
.dock-agent { font-size: 14px !important; letter-spacing: .01em !important; }
.dock-agent { color: #f4e5c4; background: rgba(255, 240, 210, .07); border: 1px solid rgba(255, 230, 180, .14); }
.dock-agent .icon { color: #f3c763; filter: drop-shadow(0 0 6px rgba(243, 199, 99, .7)); animation: twinkle-soft 2.6s ease-in-out infinite; }
@keyframes twinkle-soft { 50% { transform: scale(.82) rotate(12deg); opacity: .75; } }
.dock-agent:hover { background: rgba(255, 240, 210, .12); }
.dock-record, .dock .btn { color: #2c1a06; text-shadow: 0 1px 0 rgba(255, 240, 200, .5); background: linear-gradient(180deg, #ffd977 0%, #f2b740 52%, #df9420 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(140, 70, 0, .25), 0 0 0 1px rgba(255, 200, 100, .35), 0 8px 22px -6px rgba(240, 170, 50, .75); }
.dock-record::after, .dock .btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-130%); animation: sheen 4.2s ease-in-out infinite 1.2s; }
@keyframes sheen { 0%, 70% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.dock-record .icon { width: 22px; height: 22px; }
.dock-record:hover, .dock .btn:not(:disabled):hover { filter: brightness(1.04); }
.dock .btn:disabled { color: #f4e5c4; background: rgba(255, 240, 210, .09); box-shadow: inset 0 0 0 1px rgba(255, 230, 180, .16); text-shadow: none; opacity: 1; }
.dock .btn:disabled::after { animation: none; }
.review-wait { grid-template-columns: 1fr; gap: 0; }
.review-wait .err, .dock-error { margin: 0; padding: 2px 6px 6px; text-align: center; color: #ffb59e; }
.review-dock { grid-template-columns: auto auto minmax(0, 1fr); gap: 6px; }
.review-dock .dock-error { grid-column: 1 / -1; }
.review-dock button { min-height: 50px; white-space: nowrap; }
.dock-privacy, .dock-save { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 12px; border-radius: 19px; color: #e9dab9; background: rgba(255, 240, 210, .07); border: 1px solid rgba(255, 230, 180, .14); font-size: 13px; font-weight: 750; transition: background .2s ease, color .2s ease; }
.dock-privacy .icon, .review-dock .btn .icon { width: 17px; height: 17px; }
.dock-privacy[aria-pressed="true"] { color: #2a1a07; background: linear-gradient(180deg, #e9cfa0, #c9a065); border-color: transparent; box-shadow: 0 0 14px -2px rgba(233, 207, 160, .6); }
.review-dock .btn { padding-inline: 10px; gap: 5px; border-radius: 19px; min-height: 50px; }

/* ---------- 农场首页 ---------- */
.farm-top { border-bottom-color: transparent; }
.farm-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 14px 0 16px; color: var(--sky-ink); }
.farm-greet { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 3px 10px 3px 4px; border-radius: 99px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--glass-ink); font-size: 12px; font-weight: 700; letter-spacing: .04em; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.farm-greet i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 12px; background: rgba(255, 255, 255, .5); }
.farm-intro h1 { position: relative; margin: 6px 0 0; font: 900 clamp(32px, 5.4vw, 52px)/1.1 var(--serif); letter-spacing: .04em; overflow-wrap: anywhere; text-shadow: 0 1px 0 rgba(255, 255, 255, .25); }
[data-phase="night"] .farm-intro h1 { text-shadow: 0 0 24px rgba(255, 230, 170, .25); }
.farm-intro h1::after { content: ""; display: block; width: 58px; height: 5px; margin-top: 10px; border-radius: 4px; background: linear-gradient(90deg, var(--gold), #f6d27a 60%, transparent); }
.farm-kicker { display: flex; align-items: center; margin-left: 2px; min-height: 26px; color: var(--sky-ink2); font-weight: 600; }
.farm-kicker .av + .av { margin-left: -6px; }
.farm-kicker > span:last-child { margin-left: 8px; }
.farm-head-ops { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; align-items: center; }
.invite { flex: none; }
.farm-head-ops .chip, .fields-nav .chip:not(.on), .top .chip { color: var(--glass-ink); background: var(--glass); border-color: var(--glass-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 4px 12px -8px rgba(40, 30, 10, .4); }
.farm-head-ops .chip.invite:not(:disabled) { color: #2c1a06; border-color: rgba(255, 210, 120, .6); background: linear-gradient(180deg, #ffe08c, #f2b947); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 8px 18px -8px rgba(230, 160, 40, .8); }
.fields-nav { padding: 2px 2px 14px; flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px; padding-inline: 24px; scrollbar-width: none; }
.fields-nav::-webkit-scrollbar { display: none; }
.farm-layout { display: grid; grid-template-columns: minmax(0, 1.37fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.field-scene, .forest-panel, .sow-scene { position: relative; border-radius: 28px; overflow: hidden; isolation: isolate; border: 1px solid rgba(120, 90, 40, .22); box-shadow: var(--shadow-lg); background: linear-gradient(163deg, #eff1d9 1%, #e9eed7 45%, #d7e0c3 100%); }
.field-scene::after { content: ""; position: absolute; inset: 0; z-index: 25; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 238, 190, .35), inset 0 0 0 5px rgba(255, 255, 255, .0); }
.field-scene-head, .forest-title { position: relative; z-index: 3; display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 14px 16px 0; }
.field-scene-head { position: absolute; z-index: 20; top: 0; left: 0; right: 0; padding: 12px 14px 26px; background: linear-gradient(180deg, rgba(20, 14, 6, .5), rgba(20, 14, 6, .18) 60%, transparent); pointer-events: none; }
.field-scene-head > * { pointer-events: auto; }
.field-scene-head h2 { display: flex; align-items: center; gap: 7px; color: #fff8e6; font: 800 17px/1.2 var(--serif); letter-spacing: .1em; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.field-scene-head h2::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9fe07a; box-shadow: 0 0 0 3px rgba(159, 224, 122, .25), 0 0 10px 2px rgba(159, 224, 122, .7); animation: live-dot 2s ease-in-out infinite; }
@keyframes live-dot { 50% { box-shadow: 0 0 0 6px rgba(159, 224, 122, 0), 0 0 12px 3px rgba(159, 224, 122, .4); } }
.scene-status { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 252, 240, .82); color: #43533d; border: 1px solid rgba(255, 255, 255, .8); border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 750; white-space: nowrap; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 4px 12px -6px rgba(40, 50, 20, .35); }
.scene-status .icon { width: 14px; height: 14px; }
.field-theme { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 3px 10px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 18px; background: rgba(255, 255, 255, .18); color: #fffaf0; font-size: 12px; font-weight: 700; -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); text-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.field-theme:hover { background: rgba(255, 255, 255, .28); }
.field-theme .icon { width: 15px; height: 15px; }
.field-theme > span { font-size: 15px; }
.farm-map { position: relative; isolation: isolate; width: 100%; overflow: hidden; background: linear-gradient(#dbe8d3, #cad7ad 42%, #abc184); }
.field-backdrop-stack, .field-backdrop, .field-atmosphere, .field-stage-svg, .field-ui-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.field-backdrop-stack, .field-atmosphere { pointer-events: none; }
.field-backdrop { display: block; object-fit: cover; opacity: 1; transition: opacity .3s ease; animation: ken-burns 40s ease-in-out infinite alternate; }
@keyframes ken-burns { to { transform: scale(1.06) translateY(-1%); } }
.field-backdrop.is-entering { opacity: 0; }
.field-atmosphere { background: radial-gradient(ellipse at 22% 14%, var(--scene-glow, rgba(255, 240, 190, .18)), transparent 52%); transition: background .3s ease; }
.farm-map::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(120% 90% at 50% 55%, transparent 55%, rgba(30, 20, 5, .28) 100%); }
.field-stage-svg { display: block; z-index: 2; }
.field-ui-layer { z-index: 5; pointer-events: none; }
.iso-plot-link, .iso-tree-link { cursor: pointer; outline: none; }
.iso-plot-link .iso-hover-ring { opacity: 0; transition: opacity .16s ease, fill-opacity .16s ease; }
.iso-plot-link:hover .iso-hover-ring, .iso-plot-link.is-hovered .iso-hover-ring, .iso-plot-link:focus-visible .iso-hover-ring { opacity: 1; fill-opacity: .14; }
.iso-plot-link:focus-visible .iso-hover-ring { stroke: #fff7c2; stroke-width: 4; }
.iso-mine-ring { animation: mine-glow 2.8s ease-in-out infinite; }
@keyframes mine-glow { 50% { opacity: .35; } }
.iso-tree-link .iso-tree-anchor { transition: filter .16s ease; }
.iso-tree-link.is-hovered .iso-tree-anchor, .iso-tree-link:hover .iso-tree-anchor { filter: brightness(1.08) drop-shadow(0 3px 6px rgba(255, 240, 160, .5)); }
.iso-tree-anchor.is-watered-pop { transform-box: fill-box; transform-origin: 50% 90%; animation: tree-watered .5s var(--spring); }
@keyframes tree-watered { 35% { filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 241, 150, .85)); } }
.iso-plot-new { transform-box: fill-box; transform-origin: center bottom; animation: plot-sprout .52s cubic-bezier(.22, 1.25, .42, 1) both; }
@keyframes plot-sprout { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
/* 邀请木牌：外层 <g> 负责定位，内层只在原地以底部为轴轻轻点头，幅度很小 */
.iso-invite-post { transform-box: fill-box; transform-origin: 50% 100%; transition: filter .18s ease; animation: post-nod 4.8s ease-in-out infinite; }
@keyframes post-nod { 0%, 62%, 100% { transform: rotate(0deg); } 72% { transform: rotate(-2.4deg); } 82% { transform: rotate(1.6deg); } 90% { transform: rotate(-.6deg); } }
.iso-invite-post.is-hovered { filter: brightness(1.07) drop-shadow(0 3px 5px rgba(56, 38, 14, .28)); }
.iso-vacant-tile.is-hovered polygon:first-child { filter: brightness(1.06); }
.field-invite-hit { position: absolute; z-index: 16; pointer-events: auto; transform: translate(-50%, -62%); width: 17%; min-width: 82px; height: 14%; min-height: 44px; border-radius: 10px; background: transparent; border: 0; padding: 0; }
.field-invite-hit > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.field-invite-hit:focus-visible { outline: 3px solid #fff9cc; outline-offset: 2px; background: rgba(255, 249, 204, .18); }

.field-sign { position: absolute; z-index: var(--depth, 12); pointer-events: auto; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 2px; width: max-content; white-space: nowrap; }
.field-ui-layer:has(.sign-av) .field-sign { max-width: calc(30% - 6px); }
.field-name, .field-care { color: #3a2a18; border: 1px solid rgba(255, 240, 200, .9); background: linear-gradient(180deg, #fffaea, #f4e6c4); box-shadow: 0 3px 8px -2px rgba(34, 24, 10, .4), inset 0 1px 0 #fff; }
.field-name { display: inline-flex; align-items: center; gap: 3px; min-width: 0; min-height: 22px; border-radius: 99px; padding: 1.5px 7px; font-size: clamp(10px, 2.5vw, 12px); line-height: 1.15; transition: transform .14s ease, background .14s ease; }
.field-name:hover, .field-sign.is-hovered .field-name { transform: translateY(-2px); }
.field-name b { max-width: clamp(30px, 10vw, 72px); overflow: hidden; text-overflow: ellipsis; }
.field-name small { font-size: 9px; font-weight: 800; color: var(--gold-d); }
.field-name:has(.sign-av) { gap: 2px; padding-inline: 2px 4px; }
.field-mine .field-name { background: linear-gradient(180deg, #5b8f43, #33592a); color: #fffbe6; border-color: rgba(255, 236, 170, .85); box-shadow: 0 0 0 2px rgba(255, 226, 140, .35), 0 4px 10px -2px rgba(20, 40, 10, .5); }
.field-mine .field-name small { color: #ffe08c; }
.field-care { display: grid; flex: none; place-items: center; position: relative; border-radius: 50%; width: 23px; height: 23px; padding: 0; color: #2b78a8; background: linear-gradient(180deg, #f2fbff, #d9eef8); border-color: #fff; transition: transform .14s var(--spring); }
.field-care:not(:disabled) { animation: care-beckon 2.6s ease-in-out infinite; }
@keyframes care-beckon { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.16); } 90% { transform: scale(.96); } }
.field-care:not(:disabled):hover { transform: scale(1.12); }
.field-care::before { content: ""; position: absolute; inset: -7px; }
.field-care .icon { width: 13px; height: 13px; }
.field-care:disabled { color: #7a8c80; background: #e4ebe0; animation: none; }
.field-care:disabled .icon { fill: #a7b9a8; }
.field-name:focus-visible, .field-care:focus-visible { outline: 3px solid #fff9cc; outline-offset: 2px; }
.field-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; color: #e6d5b2; font-size: 11.5px; background: linear-gradient(180deg, #4a3422, #34241a); border-top: 1px solid rgba(255, 220, 160, .18); box-shadow: inset 0 1px 0 rgba(255, 230, 190, .08); }
.field-weather { padding: 3px 9px; border-radius: 99px; background: rgba(255, 220, 140, .14); color: #ffd98a; font-weight: 800; white-space: nowrap; border: 1px solid rgba(255, 220, 140, .22); }
.field-guidance { position: relative; padding: 11px 14px 13px 40px; background: linear-gradient(180deg, #2f2017, #261a12); color: #f3e3bf; font-size: 12.5px; font-weight: 650; line-height: 1.5; }
.field-guidance::before { content: ""; position: absolute; left: 14px; top: 12px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3b8, #f2b947 60%, #c77d12); box-shadow: 0 0 12px 2px rgba(242, 185, 71, .55); animation: sun-breathe 3s ease-in-out infinite alternate; }
.theme-choices { min-width: 0; border: 0; padding: 0; margin: 12px 0 16px; }
.theme-choices legend { font: 800 15px var(--serif); margin-bottom: 9px; letter-spacing: .04em; }
.theme-choices > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-choices label { position: relative; cursor: pointer; }
.theme-choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.theme-choices label > span { position: relative; display: grid; gap: 0; overflow: hidden; font-size: 13px; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 6px 14px -10px rgba(60, 40, 10, .5); transition: transform .2s var(--ease), box-shadow .2s ease; }
.theme-choices label:hover > span { transform: translateY(-2px); }
.theme-choices label > span > span { display: grid; min-width: 0; padding: 7px 9px 9px; }
.theme-choices label small { font-size: 10.5px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-choices img { width: 100%; height: auto; aspect-ratio: 16 / 9; flex: none; object-fit: cover; object-position: 50% 30%; transition: transform .5s var(--ease); }
.theme-choices label:hover img { transform: scale(1.05); }
.theme-choices input:checked + span { border-color: var(--gold); box-shadow: 0 0 0 2.5px var(--gold), 0 12px 22px -12px rgba(200, 140, 30, .7); }
.theme-choices input:checked + span::after { content: "✓"; position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(180deg, #ffd977, #e9a22c); color: #2c1a06; font-weight: 900; font-size: 13px; box-shadow: 0 3px 8px rgba(60, 30, 0, .4); }
.theme-choices input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.care-spark { position: absolute; z-index: 18; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; background: #fff6c0; box-shadow: 0 0 14px 6px #ffd97d, 0 0 30px 10px rgba(255, 217, 125, .4); }

/* 主题轻量化微动效 */
.scenic-drift-slow { animation: scenic-drift 18s ease-in-out infinite alternate; }
@keyframes scenic-drift { from { transform: translateX(-10px); } to { transform: translateX(14px); } }
.scenic-shimmer { animation: scenic-shimmer 3.6s ease-in-out infinite alternate; }
@keyframes scenic-shimmer { from { opacity: .38; } to { opacity: .82; } }
.scenic-motes { animation: scenic-motes 6.5s ease-in-out infinite alternate; }
@keyframes scenic-motes { from { transform: translate(0, 0); opacity: .4; } to { transform: translate(8px, -6px); opacity: .8; } }
.scenic-leaves { animation: scenic-leaves 7s ease-in-out infinite alternate; }
@keyframes scenic-leaves { from { transform: translate(-4px, -3px); } to { transform: translate(10px, 6px); } }

/* 饭桌 / 时间线 */
.farm-feed h2, .profile-feed h2 { display: flex; align-items: center; gap: 9px; font: 900 22px/1.3 var(--serif); letter-spacing: .06em; margin-bottom: 6px; padding-bottom: 10px; border-bottom: 1px dashed var(--line-2); }
.farm-feed h2::before, .profile-feed h2::before, .branch-panel h2::before, .tree-stats h2::before { content: ""; width: 22px; height: 22px; flex: none; background: var(--gold-d); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 22C7 15 10 9 16 4'/%3E%3Cellipse cx='16.5' cy='4.5' rx='1.6' ry='3' transform='rotate(40 16.5 4.5)' fill='%23000'/%3E%3Cellipse cx='13' cy='8.5' rx='1.6' ry='3' transform='rotate(-15 13 8.5)' fill='%23000'/%3E%3Cellipse cx='17' cy='9.5' rx='1.6' ry='3' transform='rotate(70 17 9.5)' fill='%23000'/%3E%3Cellipse cx='10.5' cy='13' rx='1.5' ry='2.8' transform='rotate(-25 10.5 13)' fill='%23000'/%3E%3Cellipse cx='14.5' cy='14.5' rx='1.5' ry='2.8' transform='rotate(75 14.5 14.5)' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 22C7 15 10 9 16 4'/%3E%3Cellipse cx='16.5' cy='4.5' rx='1.6' ry='3' transform='rotate(40 16.5 4.5)' fill='%23000'/%3E%3Cellipse cx='13' cy='8.5' rx='1.6' ry='3' transform='rotate(-15 13 8.5)' fill='%23000'/%3E%3Cellipse cx='17' cy='9.5' rx='1.6' ry='3' transform='rotate(70 17 9.5)' fill='%23000'/%3E%3Cellipse cx='10.5' cy='13' rx='1.5' ry='2.8' transform='rotate(-25 10.5 13)' fill='%23000'/%3E%3Cellipse cx='14.5' cy='14.5' rx='1.5' ry='2.8' transform='rotate(75 14.5 14.5)' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat; }
.branch-panel h2, .tree-stats h2 { display: flex; align-items: center; gap: 8px; }
.branch-panel h2::before, .tree-stats h2::before { width: 18px; height: 18px; }
.meal { position: relative; padding: 12px 0 11px; border-bottom: 1px solid var(--line); }
.meal:last-child { border-bottom: 0; padding-bottom: 0; }
.meal-link { display: grid; grid-template-columns: auto minmax(0, 1fr) 15px; gap: 12px; width: 100%; padding: 4px; margin: -4px; align-items: start; text-align: left; border-radius: 16px; transition: background .2s ease, transform .15s var(--ease); width: calc(100% + 8px); }
.meal-link:hover { background: rgba(240, 225, 190, .35); }
.meal-link:active { transform: scale(.985); }
.meal-link:hover .items { color: var(--green-d); }
.meal-link > .icon { align-self: center; width: 15px; color: var(--ink3); transition: transform .2s var(--ease); }
.meal-link:hover > .icon { transform: translateX(3px); }
.ph { position: relative; width: 66px; height: 66px; border-radius: 16px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 40%, #fbf3df, #ecdfc0); font-size: 28px; box-shadow: 0 0 0 1px rgba(120, 90, 40, .14), 0 8px 16px -10px rgba(70, 45, 10, .55); }
.ph::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), inset 0 -14px 20px -12px rgba(40, 25, 5, .3); pointer-events: none; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.meal .hd { display: flex; align-items: center; flex-wrap: wrap; column-gap: 5px; row-gap: 2px; font-size: 14px; font-weight: 800; }
.hd small { font-size: 11.5px; color: var(--ink3); font-weight: 500; }
.meal .items { color: #50473a; font-size: 13px; margin: 4px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; transition: color .2s ease; }
.meal .act { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; margin-top: 4px; padding-left: 78px; color: var(--ink2); font-size: 12px; }
.meal .act:has(> [hidden]:only-child) { display: none; }
.meal-care { overflow-wrap: anywhere; color: #3d7aa0; font-weight: 600; }
.meal .act .icon, .meal-lock .icon { width: 14px; height: 14px; }
.meal-quick-care { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 4px 11px 4px 9px; margin-left: auto; border-radius: 20px; color: #2b6f98; font-size: 12px; font-weight: 800; background: linear-gradient(180deg, #f0f9fd, #dcedf6); border: 1px solid #c8e2ef; box-shadow: 0 4px 10px -6px rgba(40, 110, 150, .5); transition: transform .15s var(--spring); }
.meal-quick-care:hover { transform: translateY(-1px); }
.meal-quick-care:active { transform: scale(.94); }
.meal-lock { color: #8a6a3e; }
.demo-dot { width: 5px; height: 5px; border-radius: 50%; background: #cabda0; flex: none; }
.seedtag { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; color: #716347; font-weight: 700; border: 1px solid #e1d6b7; padding: 0 5px; border-radius: 5px; white-space: nowrap; }
.private-tag { color: #786047; background: #f5edd8; }
.seedtag .icon { width: 11px; height: 11px; }

/* ---------- 个人树页 ---------- */
.profile-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: 18px; margin-top: 6px; }
.forest-panel, .sow-scene { background: radial-gradient(ellipse at 79% 16%, rgba(255, 246, 207, .8), transparent 42%), linear-gradient(180deg, var(--sky-2) 0%, #eef0d8 46%, #d6dfba 74%, #b9c995 100%); }
[data-phase="night"] .forest-panel, [data-phase="night"] .sow-scene { background: radial-gradient(ellipse at 79% 16%, rgba(200, 210, 255, .35), transparent 42%), linear-gradient(180deg, #1c2847 0%, #34405e 44%, #5c6a5a 72%, #7c8b62 100%); }
.forest-panel::before, .sow-scene::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 42%; width: 170%; aspect-ratio: 1; translate: -50% -50%; background: repeating-conic-gradient(from 0deg, rgba(255, 238, 170, 0) 0deg 9deg, rgba(255, 238, 170, .38) 9deg 13deg); -webkit-mask: radial-gradient(circle, #000 0 12%, transparent 52%); mask: radial-gradient(circle, #000 0 12%, transparent 52%); animation: rays 90s linear infinite; }
[data-phase="night"] .forest-panel::before, [data-phase="night"] .sow-scene::before { background: repeating-conic-gradient(from 0deg, rgba(210, 220, 255, 0) 0deg 9deg, rgba(210, 220, 255, .14) 9deg 13deg); }
@keyframes rays { to { rotate: 360deg; } }
.forest-panel::after, .sow-scene::after { content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 38%; background: linear-gradient(180deg, transparent, rgba(60, 40, 15, .14)); pointer-events: none; }
.forest-title h2 { font: 800 17px/1.25 var(--serif); letter-spacing: .04em; }
.forest-person { display: flex; gap: 10px; align-items: center; }
.forest-person > div > span { color: #4e5d43; font-size: 12px; font-weight: 600; }
[data-phase="night"] .forest-title, [data-phase="night"] .sow-scene .forest-title { color: #f6ecd6; }
[data-phase="night"] .forest-person > div > span, [data-phase="night"] .sow-scene .muted { color: #c9c4d4; }
.forest-title .scene-status { font-size: 11px; }
.tree-art { position: relative; width: 100%; max-width: 500px; margin: -2px auto 0; filter: drop-shadow(0 18px 18px rgba(50, 35, 10, .2)); }
.companion-art, .companion-art img { display: block; width: 100%; height: auto; }
/* The soil stays 120 units above the bottom of the 420-unit SVG, even as its crown grows. */
.tree-art > .companion-tap { position: absolute; left: 12%; bottom: 0; width: var(--cw, 20%); margin-bottom: 28.5%; padding: 0; border-radius: 40%; animation: companion-in .9s var(--ease) both .4s; }
@keyframes companion-in { from { opacity: 0; transform: translateY(6px); } }
/* 静止帧 + 很轻的呼吸；做动作时用只播一次的 beat 动图盖在同一位置，首尾帧与静止帧相同 */
.companion-art { position: relative; transform-origin: 50% 92%; animation: cp-breathe 4.6s ease-in-out infinite; }
.companion-art .cp-beat { position: absolute; inset: 0; width: 100%; height: 100%; }
.companion-art.beating .cp-still { visibility: hidden; }
.companion-art.beating { animation-play-state: paused; }
@keyframes cp-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.006, 1.014); } }
.life-tree { display: block; width: 100%; height: auto; overflow: visible; }
.forest-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 6px 10px 14px; }
.forest-actions button { min-height: 42px; padding-inline: 13px; }
.forest-actions button:hover, .forest-ribbons:hover { background: #fffdf3; }
.tree-reminder { margin: 0 14px 14px; padding: 8px 12px; border-radius: 12px; color: #654c39; background: rgba(255, 246, 225, .78); text-align: center; font-size: 12px; font-weight: 600; }
.life-tree [role="button"] { cursor: pointer; outline: none; }
.life-tree [role="button"]:focus-visible .fruit-focus, .life-tree .fruit-mark:hover .fruit-focus { stroke: #4b593e; stroke-width: 1.7; stroke-dasharray: 3 2; }
.life-tree [role="button"]:focus-visible:not(.fruit-mark) { filter: brightness(1.22) drop-shadow(0 0 1px #23432f); }
.life-tree .soil-layer:hover { filter: brightness(1.13); }
.ribbon-tail { transform-box: fill-box; transform-origin: center top; animation: flutter 3.8s ease-in-out infinite; }
@keyframes flutter { 50% { transform: rotate(9deg); } }
.autumn-leaf { animation: falling-leaf 3.7s ease-in-out var(--delay) both; }
@keyframes falling-leaf { from { transform: translate(-7px, -16px) rotate(-15deg); opacity: .85; } to { transform: translate(0, 3px) rotate(6deg); } }
.tree-grow { transform-box: fill-box; transform-origin: 50% 100%; animation: grow .8s var(--spring) both; }
@keyframes grow { from { transform: scale(.88); } to { transform: scale(1); } }
.fruit-new { animation: fruit-new .7s var(--spring) both; }
@keyframes fruit-new { from { transform: scale(.1); } to { transform: scale(1); } }
.tree-aside { display: grid; gap: 14px; min-width: 0; }
.lvbar { position: relative; margin-top: 14px; height: 10px; overflow: hidden; background: #ece3cb; border-radius: 20px; box-shadow: inset 0 1px 2px rgba(80, 60, 20, .18); }
.lvbar i { position: relative; display: block; height: 100%; background: linear-gradient(90deg, #8fbf5a, #e7c04c); border-radius: inherit; box-shadow: 0 0 10px rgba(231, 192, 76, .6); animation: bar-fill 1.2s var(--ease) both .2s; transform-origin: left; overflow: hidden; }
.lvbar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%); animation: sheen 3s ease-in-out infinite 1.4s; }
@keyframes bar-fill { from { transform: scaleX(0); } }
.tree-level { margin-top: 9px; }
.care-start { margin-top: 13px; }
.branch-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 11px; }
.branch-picks button { position: relative; display: flex; align-items: center; gap: 6px; min-height: 46px; padding: 6px 9px 14px 11px; border-radius: 13px; border: 1px solid var(--line); background: linear-gradient(180deg, #fffdf6, #f7efdc); text-align: left; font-size: 12.5px; overflow: hidden; transition: transform .16s var(--ease), border-color .2s ease, box-shadow .2s ease; }
.branch-picks button::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--group); }
.branch-picks button:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--group), #fff 40%); box-shadow: 0 8px 16px -10px color-mix(in srgb, var(--group), #000 20%); }
.branch-picks b { flex: 1; min-width: 0; }
.branch-state { padding: 2px 6px; border-radius: 7px; font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.branch-state[data-tone="bud"] { background: #f5e2da; color: #8d4b40; }
.branch-state[data-tone="grow"] { background: #eeecd5; color: #5e6338; }
.branch-state[data-tone="full"] { background: var(--green-l); color: var(--green-d); }
.branch-state[data-tone="high"] { background: #f6e5c4; color: #7a5419; }
.branch-meter { position: absolute; left: 11px; right: 9px; bottom: 6px; height: 4px; border-radius: 99px; background: #ece4cf; overflow: hidden; }
.branch-meter i { display: block; height: 100%; border-radius: inherit; transition: width .4s ease; animation: bar-fill 1s var(--ease) both .3s; transform-origin: left; }
.profile-feed { margin-top: 18px; }
.tl-day { display: flex; align-items: center; gap: 8px; font: 800 13px var(--serif); color: var(--gold-d); margin: 16px 0 2px; letter-spacing: .1em; }
.tl-day::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.tl-water { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.tl-water .ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: linear-gradient(180deg, #eef8fb, #dbeef3); box-shadow: 0 0 0 3px #f5fbfc, 0 4px 10px -5px rgba(40, 110, 140, .5); }
.tl-water > div { overflow-wrap: anywhere; }
.care-time { margin-left: auto; white-space: nowrap; align-self: center; }

/* ---------- 底部抽屉 ---------- */
.sheet { position: fixed; inset: auto 0 0; max-width: min(600px, 100%); width: 100%; margin: 0 auto; max-height: min(88dvh, 780px); overflow: auto; overscroll-behavior: contain; padding: 0 20px; border: 1px solid rgba(150, 118, 60, .2); border-bottom: 0; border-radius: 28px 28px 0 0; background: linear-gradient(180deg, #fffcf3, #f9f1df); color: var(--ink); box-shadow: 0 -10px 60px -10px rgba(40, 28, 10, .4); }
.sheet[open] { animation: sheet-in .42s var(--spring) both; }
@keyframes sheet-in { from { transform: translateY(40px); opacity: .4; } }
.sheet::backdrop { background: rgba(28, 20, 10, .42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade-in .3s ease both; }
@keyframes fade-in { from { opacity: 0; } }
.sheet-head { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 0 12px; background: linear-gradient(180deg, #fffcf3 80%, rgba(255, 252, 243, 0)); }
.sheet-head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 9px; background: #e2d5b6; }
.sheet-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }
.sheet-head h2 { font: 900 19px/1.3 var(--serif); letter-spacing: .05em; overflow-wrap: anywhere; }
.sheet-content { padding: 14px 0 max(26px, env(safe-area-inset-bottom)); }
.close-sheet { display: grid; place-items: center; flex: none; width: 38px; height: 38px; background: #f1e8d3; border: 1px solid var(--line-2); border-radius: 50%; font-size: 21px; line-height: 1; color: #6a5a40; transition: transform .2s var(--ease), background .2s ease; }
.close-sheet:hover { transform: rotate(90deg); background: #ebdfc4; }
.invite-link input { border-radius: 99px; background: var(--paper); font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; }
.invite-link input:focus { text-overflow: clip; }
.menu-identity { display: flex; width: 100%; gap: 12px; align-items: center; margin-bottom: 14px; padding: 12px 14px 12px 12px; border-radius: 18px; text-align: left; background: linear-gradient(135deg, #fff8e6, #f3e7c8); border: 1px solid var(--line-2); transition: transform .15s var(--spring), box-shadow .2s ease; }
.menu-identity:active { transform: scale(.98); }
.menu-identity .av { width: 52px; height: 52px; font-size: 20px; box-shadow: 0 0 0 2.5px #fff, 0 0 0 4px var(--gold); }
.menu-who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.menu-who b { font: 900 17px var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-who small { color: var(--ink2); font-size: 12px; }
.menu-swap { display: inline-flex; align-items: center; gap: 2px; flex: none; padding: 5px 6px 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line-2); color: var(--green-d); font-size: 12px; font-weight: 800; }
.menu-swap .icon { width: 14px; height: 14px; }
.menu-sub { margin: 2px 0 0; }
.menu-list { display: grid; margin-top: 4px; border-radius: 18px; overflow: hidden; background: #fffdf6; border: 1px solid var(--line); }
.menu-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px 8px 14px; text-align: left; color: var(--ink); border-top: 1px solid var(--line); transition: background .15s ease; }
.menu-row:first-child { border-top: 0; }
.menu-row:hover, .menu-row:active { background: rgba(240, 225, 190, .35); }
.menu-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 11px; color: var(--green-d); background: var(--green-l); }
.menu-ic .icon { width: 18px; height: 18px; }
.menu-label { flex: 1; min-width: 0; display: grid; font-size: 15px; font-weight: 750; }
.menu-label small { color: var(--ink2); font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-row > .icon:last-child { width: 15px; color: var(--ink3); }
.menu-warn { margin-bottom: 10px; padding: 9px 12px; border-radius: 12px; background: #fbe9dc; color: var(--warn); font-size: 13px; font-weight: 600; }
.menu-logout { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 48px; margin-top: 14px; border-radius: 15px; color: var(--warn); font-weight: 750; border: 1px solid #ecd2c4; background: #fff8f2; }
.menu-logout .icon { width: 17px; height: 17px; }
#menu { position: relative; }
#menu.needs-companion::after { content: ""; position: absolute; top: 3px; right: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--card), 0 0 8px 2px rgba(231, 170, 60, .6); }
.who { display: flex; gap: 8px; flex-wrap: wrap; margin: 7px 0 12px; }
.who button { display: inline-flex; gap: 7px; align-items: center; padding: 6px 12px 6px 6px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #fffdf6, #f5ecd6); border-radius: 99px; font-size: 13px; font-weight: 750; transition: transform .15s var(--spring); }
.who button:active { transform: scale(.95); }
.who [aria-pressed="true"] { color: #fffbea; border-color: transparent; background: linear-gradient(180deg, #5a8d43, #3c6b2e); box-shadow: 0 6px 14px -6px rgba(50, 90, 30, .8); }
.companion-picker { display: grid; gap: 14px; }
.companion-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; border: 0; }
.companion-options label { display: grid; justify-items: center; gap: 5px; padding: 8px 2px; position: relative; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; font: 800 14px var(--serif); }
.companion-options label:has(:checked) { border-color: var(--green-d); box-shadow: inset 0 0 0 1px var(--green-d); background: color-mix(in srgb, var(--tint), white 45%); }
.companion-options label:focus-within { outline: 2px solid var(--green-d); outline-offset: 2px; }
.companion-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.companion-options img { border-radius: 50%; background: var(--tint); }
.companion-sample { display: grid; grid-template-columns: 46% 1fr; align-items: center; gap: 8px; padding: 10px 16px 10px 4px; border-radius: 16px; background: linear-gradient(110deg, var(--tint), #fff7e6); color: #413525; }
.companion-sample small { color: #605641; }
.companion-sample h3 { margin: 3px 0 6px; font: 900 27px/1.25 var(--serif); }
.companion-sample p { font-size: 13px; line-height: 1.65; }
.companion-picker .err:empty { display: none; }
.companion-guide-link { justify-self: center; color: var(--green-d); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.recent-fruits button { width: 100%; display: flex; text-align: left; align-items: center; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); padding: 12px 6px; border-radius: 10px; }
.recent-fruits button:hover { background: rgba(240, 225, 190, .4); }
.fruit-kind { margin-left: auto; color: var(--violet); font-size: 12px; font-weight: 700; }
.recent-fruits > p { margin-top: 10px; }
.care-options { border: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.care-options legend { grid-column: 1 / -1; margin-bottom: 8px; font-size: 13px; font-weight: 750; }
.care-options label { position: relative; display: grid; place-items: center; text-align: center; gap: 3px; padding: 12px 6px; background: linear-gradient(180deg, #fffdf6, #f4ead3); border: 1px solid var(--line-2); border-radius: 16px; font-size: 12.5px; font-weight: 750; cursor: pointer; transition: transform .2s var(--spring), border-color .2s ease, box-shadow .2s ease; }
.care-options label:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 10px 18px -10px rgba(200, 140, 30, .7); transform: translateY(-2px); }
.care-options label span { line-height: 1.5; }
.care-options input, .privacy-control input { accent-color: var(--green); }
.care-options input { position: absolute; opacity: 0; }
.ribbon-list { display: grid; gap: 8px; }
.ribbon-list article { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 11px; background: linear-gradient(135deg, #fff9ea, #f4ead2); border: 1px solid var(--line); border-radius: 14px; overflow-wrap: anywhere; }
.ribbon-list article > span:last-child { font-size: 22px; }

/* 土层周报 */
.soil-weeks, .soil-categories { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.soil-weeks .chip { padding: 6px 9px; font-size: 11px; }
.soil-categories { margin-top: 10px; }
.soil-cat { background: linear-gradient(180deg, #fffcf3, #f3ead4); border: 1px solid var(--line); display: flex; align-items: center; gap: 5px; border-radius: 10px; padding: 7px 9px; font-size: 12px; font-weight: 600; transition: transform .15s var(--spring); }
.soil-cat:active { transform: scale(.95); }
.soil-cat.on { border-color: #93a87c; background: linear-gradient(180deg, #f1f6e4, #e0eacb); box-shadow: 0 4px 10px -6px rgba(60, 90, 30, .6); }
.soil-detail { padding: 2px 12px 12px; }
.soil-chart { position: relative; margin: 32px 0 5px; padding: 0 2px; border-radius: 12px; }
.soil-chart::before { content: ""; position: absolute; bottom: calc(21px + var(--ref)); left: 0; right: 0; border-top: 1.5px dashed #b48c3f; pointer-events: none; }
.soil-chart-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.soil-day { display: grid; grid-template-rows: 99px 21px; font-size: 10px; color: var(--ink2); text-align: center; }
.soil-bar { position: relative; display: flex; align-items: end; justify-content: center; gap: 0; }
.soil-bar i { display: block; width: min(24px, 75%); border-radius: 6px 6px 2px 2px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 8px -4px rgba(40, 30, 10, .4); animation: bar-up .8s var(--spring) both; transform-origin: bottom; }
.soil-day:nth-child(2) .soil-bar i { animation-delay: .04s; } .soil-day:nth-child(3) .soil-bar i { animation-delay: .08s; }
.soil-day:nth-child(4) .soil-bar i { animation-delay: .12s; } .soil-day:nth-child(5) .soil-bar i { animation-delay: .16s; }
.soil-day:nth-child(6) .soil-bar i { animation-delay: .2s; } .soil-day:nth-child(7) .soil-bar i { animation-delay: .24s; }
@keyframes bar-up { from { transform: scaleY(0); } }
.soil-bar span { position: absolute; top: -16px; left: 0; right: 0; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.chart-caption { font-size: 11px; }
.soil-nutrients { padding: 5px 0; }
.soil-nutrients > div { display: flex; justify-content: space-between; gap: 4px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.soil-nutrients dd { font-variant-numeric: tabular-nums; font-weight: 600; }

/* 一餐明细 */
.detail-photo { display: block; position: relative; border-radius: 18px; overflow: hidden; background: #efe6d0; box-shadow: 0 14px 30px -18px rgba(50, 30, 5, .6); }
.detail-photo img { display: block; width: 100%; max-height: 320px; object-fit: contain; }
.detail-photo > span { position: absolute; right: 9px; bottom: 9px; padding: 5px 10px; color: #fff; background: rgba(35, 24, 12, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 99px; font-size: 12px; font-weight: 600; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 11px 0 7px; font-size: 13px; }
.meal-portions { list-style: none; margin: 8px 0 12px; padding: 4px 12px; border-radius: 14px; background: rgba(246, 238, 219, .7); border: 1px solid var(--line); }
.meal-portions li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px; }
.meal-portions li:last-child { border-bottom: 0; }
.meal-portions li b { flex: none; color: var(--green-d); font-variant-numeric: tabular-nums; }
.meal-summary { display: grid; gap: 8px; margin: 8px 0; }
.meal-comment { position: relative; padding: 10px 12px 10px 16px; border-radius: 14px; background: linear-gradient(135deg, #fff7e2, #f7ecd0); font: 700 15px/1.55 var(--serif); overflow-wrap: anywhere; }
.meal-comment::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--gold); }
.meal-fruit { display: flex; align-items: center; gap: 6px; color: var(--green-d); font-size: 12.5px; font-weight: 700; }
.meal-fruit .icon { width: 16px; height: 16px; }
.nut-fold { margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); overflow: hidden; }
.nut-fold > summary { display: flex; justify-content: space-between; align-items: center; gap: 7px; min-height: 46px; cursor: pointer; padding: 7px 12px; color: var(--green-d); list-style: none; font-size: 13px; font-weight: 800; }
.nut-fold > summary::-webkit-details-marker { display: none; }
.nut-fold > summary .icon { width: 15px; height: 15px; transform: rotate(90deg); transition: transform .25s var(--ease); }
.nut-fold[open] > summary .icon { transform: rotate(-90deg); }
.nut-report, .nut-fold > p { padding: 2px 12px 12px; }
.nut-report h4 { margin: 12px 0 2px; font: 800 13px var(--serif); color: var(--gold-d); letter-spacing: .08em; }
.nut-detail { display: grid; grid-template-columns: minmax(0, 1fr) auto 47px; align-items: center; column-gap: 8px; padding: 5px 0; border-bottom: 1px solid #ece2cb; font-size: 13px; }
.nut-detail dd { text-align: right; font-variant-numeric: tabular-nums; }
.detail-cares { margin-top: 14px; }
.detail-cares h3 { font: 800 15px var(--serif); }
.detail-cares p { overflow-wrap: anywhere; font-size: 13px; padding: 3px 0; }
.privacy-control { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 12px; margin: 10px 0; border: 1px solid #e8dcc0; border-radius: 16px; background: linear-gradient(135deg, #fbf3df, #f3e6c8); }
.privacy-control b, .privacy-control small { display: block; }
.privacy-control small { font-size: 12px; color: var(--ink2); }
.privacy-control input { width: 20px; height: 20px; margin: 2px; }
.privacy-icon { display: grid; place-items: center; background: linear-gradient(180deg, #e9d6ad, #d8bd85); color: #5e4224; border-radius: 10px; padding: 5px; }
#meal-confirm > p { margin-bottom: 8px; color: var(--warn); font-size: 13px; }
#confirm-discard { margin-top: 10px; }

/* ---------- 登录 / 引导 ---------- */
.auth-page { max-width: 480px; margin: calc(max(4vh, 22px) + env(safe-area-inset-top)) auto 20px; }
.top + .auth-page { margin-top: 2vh; }
.hero { position: relative; text-align: center; margin-bottom: 18px; color: var(--sky-ink); }
.hero-stage { position: relative; width: 190px; height: 170px; margin: 0 auto -4px; }
.hero-stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: 330px; aspect-ratio: 1; translate: -50% -52%; z-index: 0; background: repeating-conic-gradient(from 0deg, rgba(255, 236, 170, 0) 0deg 10deg, rgba(255, 236, 170, .5) 10deg 14deg); -webkit-mask: radial-gradient(circle, #000 0 14%, transparent 60%); mask: radial-gradient(circle, #000 0 14%, transparent 60%); animation: rays 70s linear infinite; }
[data-phase="night"] .hero-stage::before { background: repeating-conic-gradient(from 0deg, rgba(210, 220, 255, 0) 0deg 10deg, rgba(210, 220, 255, .18) 10deg 14deg); }
.hero-stage::after { content: ""; position: absolute; left: 50%; top: 46%; width: 160px; height: 160px; translate: -50% -50%; z-index: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 246, 200, .9), rgba(255, 230, 160, .35) 45%, transparent 70%); }
[data-phase="night"] .hero-stage::after { background: radial-gradient(circle, rgba(220, 228, 255, .45), rgba(200, 210, 255, .12) 45%, transparent 70%); }
.hero .mini { position: relative; z-index: 1; width: 160px; margin: auto; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero .mini svg { display: block; filter: drop-shadow(0 16px 14px rgba(40, 30, 10, .25)); }
.hero-spark { position: absolute; z-index: 2; width: 8px; height: 8px; background: #fff3b0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: spark 2.6s ease-in-out infinite; }
.hero-spark:nth-of-type(1) { left: 14px; top: 34px; }
.hero-spark:nth-of-type(2) { right: 10px; top: 20px; width: 11px; height: 11px; animation-delay: -.9s; }
.hero-spark:nth-of-type(3) { right: 24px; bottom: 30px; animation-delay: -1.7s; }
@keyframes spark { 0%, 100% { transform: scale(.3) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--sky-ink2); font-size: 11px; font-weight: 700; letter-spacing: .4em; }
.hero-kicker::before, .hero-kicker::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .5; }
.hero h1 { margin: 2px 0 6px; color: var(--sky-ink); font: 900 clamp(28px, 7vw, 40px)/1.18 var(--serif); letter-spacing: .08em; }
.hero p { color: var(--sky-ink2); font-weight: 500; }
.auth-card { max-width: 480px; margin: 0 auto; padding: 22px 22px 18px; background: linear-gradient(180deg, rgba(255, 252, 243, .92), rgba(251, 244, 228, .94)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.auth-card::before { content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.auth-note, .back-text { display: block; text-align: center; margin-top: 14px; }
.auth-note a, .back-text { color: var(--green-d); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(51, 92, 41, .35); text-underline-offset: 3px; }
.join-identity { margin-bottom: 12px; }
.create-card { margin-top: 14px; }
.error-page { max-width: 500px; margin: 30px auto; }
.error-page .btn { margin-top: 10px; }

/* ---------- 记一餐 ---------- */
.editor-page { max-width: 630px; margin: 6px auto 0; }
.editor-page .card { margin-bottom: 14px; }
.record-types { margin: 12px 0; }
.photo-picker > .drop-zone { position: relative; display: flex; width: 100%; min-height: 210px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; overflow: hidden; isolation: isolate; padding: 18px 12px; border-radius: 22px; text-align: center; color: var(--green-d); background: radial-gradient(circle at 50% 38%, #fffdf5 0, #f7efd9 55%, #efe2c2 100%); border: 1.5px dashed #ccb37a; transition: transform .2s var(--ease), border-color .2s ease; }
.photo-picker > .drop-zone::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 38%; width: 360px; aspect-ratio: 1; translate: -50% -50%; background: repeating-conic-gradient(from 0deg, rgba(231, 170, 60, 0) 0deg 12deg, rgba(231, 170, 60, .12) 12deg 15deg); -webkit-mask: radial-gradient(circle, #000 0 10%, transparent 55%); mask: radial-gradient(circle, #000 0 10%, transparent 55%); animation: rays 60s linear infinite; }
.photo-picker > .drop-zone:hover { border-color: var(--gold); transform: translateY(-1px); }
.drop-zone .icon { width: 64px; height: 64px; padding: 17px; margin-bottom: 8px; border-radius: 50%; color: #fff; background: linear-gradient(180deg, #67a04c, #3c6b2e); box-shadow: 0 0 0 8px rgba(103, 160, 76, .14), 0 0 0 17px rgba(103, 160, 76, .07), 0 14px 26px -10px rgba(50, 90, 30, .8); animation: lens-pulse 2.6s ease-in-out infinite; }
@keyframes lens-pulse { 50% { box-shadow: 0 0 0 12px rgba(103, 160, 76, .1), 0 0 0 24px rgba(103, 160, 76, .03), 0 14px 26px -10px rgba(50, 90, 30, .8); } }
.drop-zone b { font: 900 18px var(--serif); letter-spacing: .08em; }
.drop-zone > span { color: var(--ink2); font-size: 12px; }
.photo-picker .change-photo { flex-direction: row; min-height: 44px; margin-top: 10px; padding: 8px; border-style: solid; background: linear-gradient(180deg, #fffdf6, #f4ecd8); font-weight: 750; }
.photo-picker .change-photo::before { display: none; }
.change-photo .icon { width: 19px; height: 19px; padding: 0; margin: 0; color: var(--green-d); background: none; box-shadow: none; animation: none; }
.preview { position: relative; border-radius: 18px; overflow: hidden; background: #ebe2cb; box-shadow: 0 14px 28px -18px rgba(50, 30, 5, .6); }
.preview img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: contain; }
.preview .meta { position: absolute; left: 9px; right: 9px; bottom: 9px; display: flex; gap: 5px; flex-wrap: wrap; }
.preview .meta span { background: rgba(35, 24, 12, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 99px; }
.scan { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 30%, rgba(160, 230, 140, .15) 46%, rgba(220, 255, 180, .75) 50%, rgba(160, 230, 140, .15) 54%, transparent 70%); background-size: 100% 230%; animation: scan 1.8s linear infinite; mix-blend-mode: screen; }
.scan::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(200, 255, 170, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(200, 255, 170, .14) 1px, transparent 1px); background-size: 14px 14px; }
@keyframes scan { from { background-position: 0 115%; } to { background-position: 0 -110%; } }
.drafts a { display: flex; justify-content: space-between; align-items: center; gap: 5px; border-bottom: 1px dashed var(--line-2); padding: 11px 2px; font-size: 13px; }
.drafts a > span:last-child { flex: none; color: var(--gold-d); font-weight: 700; }
.drafts .icon { width: 15px; }
.drafts > p { margin-top: 8px; }
.draft-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.draft-heading h2 { margin: 0; }
.saved-preview { display: block; width: 100%; padding: 0; }
.review-ready .draft-overview:has(.saved-preview) { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; align-items: center; }
.review-ready .saved-preview img { height: 74px; object-fit: cover; }
.review-ready .record-types { margin: 0; gap: 5px; }
.review-ready .record-types .chip { padding: 6px 10px; }
.review-ready .draft-overview .muted { margin-top: 5px; }
.draft-photo img { max-height: 68dvh; }
#agent-result { scroll-margin-top: 70px; }
.preview-source { margin-top: 9px; overflow-wrap: anywhere; }
.agent-card { overflow: hidden; }
.agent-card::after { content: ""; position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(243, 199, 99, .28), transparent 70%); pointer-events: none; }

/* 识餐进度 */
.rec-progress-card { display: grid; gap: 12px; margin-top: 14px; overflow: hidden; }
.rec-progress-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 100% 0, rgba(140, 200, 100, .14), transparent 70%); pointer-events: none; }
.rec-stage-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; color: var(--green-d); }
.rec-stage-head b { font-family: var(--serif); letter-spacing: .03em; }
.rec-stage-head .muted { font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 99px; background: var(--paper); font-weight: 700; }
.rec-bar { position: relative; height: 12px; border-radius: 99px; background: #ece3cb; overflow: hidden; box-shadow: inset 0 1px 3px rgba(80, 60, 20, .18); }
.rec-bar i { position: relative; display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7bb455, #4b7d3a); transition: width .55s ease; overflow: hidden; box-shadow: 0 0 12px rgba(123, 180, 85, .7); }
.rec-bar i::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 8px, transparent 8px 16px); animation: stripes .8s linear infinite; }
.rec-bar i::after { content: ""; position: absolute; right: 0; top: 50%; width: 12px; height: 12px; translate: 30% -50%; border-radius: 50%; background: #fff7c0; box-shadow: 0 0 12px 4px rgba(255, 240, 150, .9); }
@keyframes stripes { to { background-position: 22.6px 0; } }
.rec-tip { font-size: 12.5px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, #fbf4e1, #f4ead0); color: var(--ink2); border: 1px dashed var(--line-2); }

/* 播撒 */
.sow-page { max-width: 650px; margin: 12px auto; }
.sow-scene h1 { font: 900 21px/1.3 var(--serif); letter-spacing: .06em; }
.sow-stage { position: relative; min-height: 220px; aspect-ratio: 1.46; }
.sow-stage .bed { position: absolute; right: 4%; width: 67%; bottom: 9%; }
.sow-stage .farmer { position: absolute; width: 22%; max-width: 101px; bottom: 10%; left: 2%; filter: drop-shadow(0 8px 6px rgba(40, 30, 10, .25)); }
.sow-stage .companion-farmer { width: 29%; max-width: 152px; left: 0; }
.companion-thrower { display: block; aspect-ratio: 1; background-size: 300% 100%; background-repeat: no-repeat; }
.farmer.walk svg { animation: footstep .21s ease-in-out infinite alternate; }
@keyframes footstep { to { transform: translateY(-4%); } }
.farmer #arm { transform-box: fill-box; transform-origin: 20% 15%; transition: transform .16s; }
.farmer.throw #arm { transform: rotate(-120deg); }
.flying-seed { position: absolute; z-index: 5; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 11px; font-weight: 900; color: #2d2f25; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7), 0 0 16px 4px rgba(255, 240, 170, .8); }
.sow-hud { margin-top: 14px; }
.sow-hud > .log:not(:empty) { margin-bottom: 12px; }
.sow-hud .log .pill { animation: pop-in .4s var(--spring) both; }
@keyframes pop-in { from { transform: scale(.4); opacity: 0; } }
.sow-result { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; animation: pop-in .5s var(--spring) both; }
.sow-result b { font: 900 30px/1 var(--serif); background: linear-gradient(180deg, #f2b947, #b87816); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(255, 240, 200, .8)); }
.sow-burst { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.sow-burst i { position: absolute; left: var(--x); top: var(--y); width: 8px; height: 8px; border-radius: 2px; background: var(--c); animation: burst 1.3s cubic-bezier(.15, .7, .3, 1) var(--d) both; }
@keyframes burst { 0% { transform: translate(0, 0) rotate(0) scale(.4); opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(1); opacity: 0; } }
.lvup { position: absolute; z-index: 7; left: 50%; top: 22%; translate: -50% 0; padding: 8px 18px; border-radius: 99px; color: #2c1a06; font: 900 15px var(--serif); letter-spacing: .2em; white-space: nowrap; background: linear-gradient(180deg, #ffe48f, #f0b23d); box-shadow: 0 0 0 3px rgba(255, 255, 255, .7), 0 0 30px 8px rgba(255, 210, 110, .7); animation: lvup 2.6s var(--spring) both; }
@keyframes lvup { 0% { transform: scale(.2) translateY(30px); opacity: 0; } 18% { transform: scale(1.1); opacity: 1; } 28%, 78% { transform: scale(1); opacity: 1; } 100% { transform: translateY(-24px); opacity: 0; } }

/* Toast */
.toast { position: fixed; z-index: 90; left: 50%; top: max(14px, env(safe-area-inset-top)); display: flex; align-items: center; gap: 8px; transform: translate(-50%, -16px) scale(.96); opacity: 0; pointer-events: none; padding: 10px 16px 10px 12px; border-radius: 99px; max-width: 88vw; width: max-content; color: #fbeccb; font-size: 14px; font-weight: 600; text-align: center; background: linear-gradient(180deg, #46321f, #2a1d13); border: 1px solid rgba(255, 216, 150, .22); box-shadow: 0 16px 34px -14px rgba(30, 18, 6, .7); transition: transform .35s var(--spring), opacity .2s ease; }
.toast::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3b8, #f2b947 60%, #c77d12); box-shadow: 0 0 10px 2px rgba(242, 185, 71, .6); }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* 核对食物 */
.review-list-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 3px 10px; margin-bottom: 6px; }
.review-list-head h2 { margin: 0; }
.review-list-head .muted { font-size: 11px; }
.item.swipe { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); border-radius: 12px; }
.swipe .under { position: absolute; inset: 0; display: flex; justify-content: space-between; color: var(--card); font-size: 13px; font-weight: 750; }
.swipe .u-q, .swipe .u-del { display: flex; flex: 1; align-items: center; padding-inline: 12px; opacity: 0; }
.swipe .u-q { background: linear-gradient(90deg, var(--green), #6aa04e); }
.swipe .u-del { justify-content: flex-end; background: linear-gradient(90deg, #c45a43, var(--warn)); }
.swipe.go-q .u-q, .swipe.go-d .u-del, .swipe.open .u-del, .swipe .u-del:focus-visible { opacity: 1; }
.swipe .row-in { position: relative; display: flex; align-items: center; gap: 9px; min-height: 56px; padding: 6px 3px; background: var(--card); transition: transform .25s var(--spring), background .2s ease; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.swipe.open .row-in, .swipe:has(.u-del:focus-visible) .row-in { transform: translateX(-85px); }
.swipe.sel .row-in { background: linear-gradient(90deg, #eef4e0, var(--card)); }
.swipe.changed .row-in { animation: review-change 1.4s ease; }
@keyframes review-change { 0%, 35% { background: #f7e6b8; } }
.item .nm { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 800; }
.item .nm small { display: block; color: var(--ink2); font-size: 11.5px; font-weight: 500; }
.selc { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border: 1.5px solid #c4b48e; border-radius: 50%; font-weight: 900; font-size: 13px; transition: transform .2s var(--spring), background .2s ease; }
.selc[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #5f9447, #3a6a2c); border-color: transparent; transform: scale(1.08); box-shadow: 0 4px 10px -4px rgba(50, 90, 30, .8); }
.step { display: flex; align-items: stretch; flex: none; border: 1px solid var(--line-2); border-radius: 12px; background: linear-gradient(180deg, #fffdf6, #f4ecd8); height: 38px; overflow: hidden; }
.step button { width: 30px; color: var(--green-d); font-size: 17px; font-weight: 800; }
.step button:hover { background: var(--green-l); }
.step button:active { background: #d7e5c0; }
.step .grams { display: inline-flex; align-items: center; gap: 2px; padding-right: 2px; }
.grams input { width: 49px; padding: 0; border: 0; background: transparent; text-align: right; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.grams span { color: var(--ink2); font-size: 12px; }
.fixbox { margin-top: 12px; border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(180deg, #fbf4e2, #f5ead1); padding: 8px; }
.fixrow { display: flex; align-items: stretch; gap: 6px; }
.fixrow input { flex: 1; min-width: 0; padding: 7px 11px; border: 1px solid var(--line-2); border-radius: 13px; background: #fffef9; font-size: 16px; }
.fixrow input:focus { outline: none; border-color: #9cb877; box-shadow: 0 0 0 3px rgba(120, 165, 80, .16); }
.fixrow button { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 42px; padding: 6px 12px; border-radius: 13px; color: #fffbef; font-size: 13px; font-weight: 800; background: linear-gradient(180deg, #5f9447, #3a6a2c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 14px -6px rgba(50, 90, 30, .7); }
.fix-extras { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .25s var(--ease), opacity .2s; }
.fixbox.expanded .fix-extras { grid-template-rows: 1fr; opacity: 1; }
.fix-extras-inner { min-height: 0; overflow: hidden; }
.quotes, .quick { display: flex; flex-wrap: wrap; gap: 5px; }
.quotes:not(:empty), .quick { margin-top: 8px; }
.quote, .quick button { display: inline-flex; align-items: center; gap: 2px; border-radius: 20px; color: var(--green-d); font-size: 12px; font-weight: 600; }
.quote { background: var(--green-l); padding: 3px 5px 3px 9px; border: 1px solid #cfdcb5; }
.quote button { min-width: 23px; min-height: 23px; padding: 0; border-radius: 50%; font-size: 14px; }
.quick button { padding: 5px 10px; background: var(--card); border: 1px solid var(--line-2); }
.quick button:hover { border-color: #b8a676; }
.ai-reply { position: relative; margin-top: 8px; padding: 8px 11px 8px 30px; border-radius: 12px; background: var(--card); color: var(--green-d); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; animation: pop-in .4s var(--spring) both; }
.ai-reply::before { content: "✦"; position: absolute; left: 11px; top: 7px; color: var(--gold); }

/* ---------- 响应式 ---------- */
@media (min-width: 760px) {
  .sheet { bottom: 14px; border-radius: 28px; border-bottom: 1px solid rgba(150, 118, 60, .2); }
  .profile-feed { max-width: 655px; }
}
@media (min-width: 821px) {
  .farm-intro { margin-top: 10px; margin-bottom: 12px; }
  .fields-nav { padding-bottom: 12px; }
}
@media (max-width: 820px) {
  .farm-layout, .profile-layout { grid-template-columns: minmax(0, 1fr); }
  .field-scene, .forest-panel { max-width: 600px; width: 100%; margin-inline: auto; }
  .farm-layout, .profile-layout, .profile-feed { max-width: 630px; margin-inline: auto; }
  .tree-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 530px) {
  #view { padding: 0 14px 18px; scrollbar-gutter: auto; }
  .top { min-height: 58px; margin: 0 -14px; padding: max(8px, env(safe-area-inset-top)) 14px 8px; }
  .fields-nav { margin: 0 -14px; padding-inline: 14px; }
  .farm-intro { margin: 8px 0 12px; flex-direction: column; align-items: stretch; }
  .farm-head-ops { justify-content: flex-start; }
  .farm-intro h1 { font-size: 34px; }
  .forest-title { padding: 12px 11px 0; }
  .field-scene-head { padding: 10px 11px 24px; }
  .field-scene-head h2 { font-size: 15px; }
  .farm-layout, .profile-layout { gap: 14px; }
  .tree-aside { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 15px; border-radius: 22px; }
  .dock { padding-inline: 12px; }
  .meal .ph { width: 58px; height: 58px; border-radius: 14px; }
  .meal .act { padding-left: 70px; }
  .forest-title h2 { font-size: 15px; }
  .sow-page { margin-top: 4px; }
  .field-scene, .forest-panel, .sow-scene { border-radius: 24px; }
  .amb-sun { width: 110px; height: 110px; }
}
@media (max-width: 350px) {
  .field-name .sign-av { width: 14px; height: 14px; }
  .field-name { gap: 2px; padding-inline: 4px; }
  .field-sign { gap: 1px; }
  .field-scene-head { gap: 3px; }
  .farm-intro h1 { font-size: 27px; }
  .dock-inner a { font-size: 13px; }
}

/* 新版营养树：果子轻晃、星芒闪烁 */
.fruit-sway { transform-box: fill-box; transform-origin: 50% 0; animation: fruit-sway 4.6s ease-in-out infinite; }
.fruit-mark:nth-child(2n) .fruit-sway { animation-delay: -1.7s; }
.fruit-mark:nth-child(3n) .fruit-sway { animation-delay: -3.1s; }
@keyframes fruit-sway { 50% { transform: rotate(4deg); } }
.twinkle { transform-box: fill-box; transform-origin: center; animation: twinkle 2.2s ease-in-out infinite; }
.twinkle.late { animation-delay: -1.1s; }
@keyframes twinkle { 50% { opacity: .25; transform: scale(.6); } }
.sprout-ring circle { transition: fill-opacity .2s; }
.sprout-ring:hover circle + circle { filter: brightness(1.06); }

/* 管理后台 */
.admin-page { display: grid; gap: 16px; max-width: 1060px; margin: 8px auto 24px; }
.admin-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; }
.metric { display: grid; gap: 2px; padding: 15px 17px; overflow: hidden; }
.metric::after { content: ""; position: absolute; right: -22px; top: -22px; width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle, rgba(231, 170, 60, .2), transparent 70%); }
.metric > span { font-size: 12px; color: var(--ink2); font-weight: 700; letter-spacing: .04em; }
.metric > b { font: 900 28px/1.2 var(--serif); color: var(--green-d); font-variant-numeric: tabular-nums; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.admin-tabs { margin: 10px 0 4px; }
.admin-disk-bar { height: 10px; border-radius: 99px; background: #ece3cb; overflow: hidden; margin: 12px 0; box-shadow: inset 0 1px 2px rgba(80, 60, 20, .16); }
.admin-disk-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7bb455, #4b7d3a); border-radius: inherit; animation: bar-fill 1s var(--ease) both; transform-origin: left; }
.admin-kv { display: grid; gap: 4px; margin: 10px 0 14px; }
.admin-kv > div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.admin-kv dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.admin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin-tip { margin-top: 8px; font-size: 12px; }
.admin-list { display: grid; }
.admin-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-row:last-child { border-bottom: 0; padding-bottom: 0; }
.admin-row.is-disabled { opacity: .62; }
.admin-user-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-user-head { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.admin-row-ops { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-creds { display: grid; gap: 6px; margin: 10px 0 12px; }
.admin-cred-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.admin-cred-row code { font: 700 13px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 3px 8px; border-radius: 7px; background: var(--card); border: 1px solid var(--line); color: var(--green-d); word-break: break-all; }
.admin-cred-meta { display: grid; gap: 3px; min-width: 0; }
.uuid-inline { font: 600 11.5px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink2); background: var(--paper); padding: 1px 6px; border-radius: 5px; word-break: break-all; }
.uuid-box { display: grid; gap: 4px; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.uuid-box > span { font-size: 12px; color: var(--ink2); font-weight: 700; }
.uuid-box code { font: 700 12.5px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--green-d); word-break: break-all; }
.menu-uuid { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; }
.menu-uuid code { font: 600 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink2); word-break: break-all; }
.menu-copy-id { padding: 3px 8px; font-size: 11px; }
@media (max-width: 820px) {
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 530px) {
  .admin-actions { grid-template-columns: minmax(0, 1fr); }
}

/* 微触感 */
.btn, .chip, .dock-inner a, .field-care, .scene-status { transition: transform .16s var(--spring), background .2s ease, filter .14s ease, box-shadow .2s ease; }
.btn:not(:disabled):active, .chip:not(:disabled):active, .dock-inner a:active, .scene-status:not(:disabled):active { transform: scale(.96); }

/* 昼夜天光氛围层（田地内部，零图片开销） */
.farm-map[data-time="morning"] .field-atmosphere {
  background: radial-gradient(ellipse at 20% 10%, rgba(255, 245, 210, .34), transparent 56%),
    linear-gradient(180deg, rgba(255, 247, 224, .18) 0%, transparent 45%);
}
.farm-map[data-time="sunset"] .field-atmosphere {
  background: radial-gradient(ellipse at 78% 12%, rgba(255, 166, 94, .34), transparent 55%),
    linear-gradient(180deg, rgba(240, 128, 72, .16) 0%, rgba(255, 200, 130, .06) 52%, transparent 100%);
}
.farm-map[data-time="night"] .field-backdrop { filter: brightness(.74) saturate(.88) hue-rotate(-8deg); }
.farm-map[data-time="night"] .field-atmosphere {
  background: radial-gradient(ellipse at 80% 14%, rgba(255, 245, 194, .22), transparent 44%),
    linear-gradient(180deg, rgba(16, 30, 58, .38) 0%, rgba(24, 42, 74, .14) 55%, rgba(12, 22, 38, .12) 100%);
}
.field-night-stars circle { animation: star-blink 3.4s ease-in-out infinite alternate; }
.field-night-stars circle:nth-child(2n) { animation-delay: -1.4s; }
@keyframes star-blink { from { opacity: .35; } to { opacity: .92; } }

/* 今日已施肥树冠微风轻摇 + 收到丝带水滴微漂浮 */
.iso-tree-anchor.is-alive > .tree-sway { transform-box: fill-box; transform-origin: 50% 100%; animation: tree-breeze 4.6s ease-in-out infinite; }
.iso-tree-link:nth-child(2n) .iso-tree-anchor.is-alive > .tree-sway { animation-delay: -1.8s; }
@keyframes tree-breeze { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(1.15deg); } }
.iso-care-bubble { animation: bubble-float 2.8s ease-in-out infinite alternate; }
@keyframes bubble-float { from { opacity: .88; filter: drop-shadow(0 2px 3px rgba(34, 62, 42, .18)); } to { opacity: 1; filter: drop-shadow(0 4px 7px rgba(64, 132, 92, .32)); } }

/* 盲盒果微光与弹窗 */
.blind-fruit .fruit-sway { filter: drop-shadow(0 0 6px rgba(235, 179, 86, .58)); animation: blind-glow 2.6s ease-in-out infinite alternate; }
@keyframes blind-glow { from { transform: rotate(-2.5deg) scale(.98); } to { transform: rotate(2.5deg) scale(1.05); } }
.blind-dialog { display: grid; gap: 12px; text-align: center; padding: 6px 0 4px; }
.blind-hero { font-size: 54px; line-height: 1; filter: drop-shadow(0 8px 14px rgba(200, 140, 40, .45)); animation: float 3s ease-in-out infinite; }

/* 分享海报预览 */
.poster-wrap { display: grid; gap: 10px; }
.poster-preview { width: 100%; max-height: 58vh; object-fit: contain; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 16px 30px -16px rgba(41, 30, 10, .45); }
.poster-actions { display: grid; gap: 8px; }

/* 二维码邀请卡片 & 配额池控制台 & 一页六块田 */
.qr-card-preview { width: 100%; max-width: 340px; margin: 0 auto; display: block; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 16px 30px -16px rgba(41, 30, 10, .45); }
.quota-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 12px 0 14px; }
.quota-item > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.quota-item b { color: var(--green-d); font-variant-numeric: tabular-nums; }
.quota-item .admin-disk-bar { margin: 5px 0 0; height: 7px; }
.quota-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 10px; }
.quota-form .field { margin: 0; }

.seeds-page { display: grid; gap: 14px; max-width: 1120px; margin: 4px auto 26px; }
.seeds-stage { position: relative; border-radius: 30px; overflow: hidden; isolation: isolate; border: 1.5px solid rgba(120, 90, 40, .28); box-shadow: var(--shadow-lg); }
.seeds-backdrop-wrap { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.seeds-backdrop { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .35s ease; }
[data-phase="night"] .seeds-backdrop { filter: brightness(.66) saturate(.88) hue-rotate(-8deg); }
[data-phase="sunset"] .seeds-backdrop { filter: saturate(1.12) sepia(.12); }
.seeds-atmosphere { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(255, 250, 236, .18) 0%, rgba(255, 248, 224, .06) 28%, rgba(44, 58, 24, .10) 54%, rgba(36, 48, 20, .26) 100%),
  radial-gradient(85% 42% at 50% 34%, var(--scene-glow, rgba(255, 226, 148, .22)), transparent 72%); }
[data-phase="night"] .seeds-atmosphere { background:
  linear-gradient(180deg, rgba(12, 22, 46, .46) 0%, rgba(18, 28, 52, .22) 34%, rgba(16, 26, 40, .42) 100%),
  radial-gradient(80% 42% at 50% 38%, rgba(255, 226, 150, .14), transparent 72%); }
.seeds-stage-inner { position: relative; z-index: 2; display: grid; gap: 14px; padding: 18px 20px 22px; }

.seeds-hud { display: grid; gap: 10px; padding: 15px 18px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 252, 242, .90), rgba(250, 242, 222, .86)); border: 1px solid rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 14px 28px -18px rgba(48, 30, 12, .42), inset 0 1px 0 rgba(255, 255, 255, .85); }
.seeds-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.seeds-title-block { flex: 1; min-width: 240px; display: grid; gap: 5px; }
.seeds-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seeds-hud h1 { font: 900 clamp(22px, 3.6vw, 34px)/1.2 var(--serif); letter-spacing: .04em; color: var(--ink); }
.no-break { white-space: nowrap; }
.seeds-title-block p { color: #544735; font-size: 13.5px; line-height: 1.5; font-weight: 500; }
.seeds-theme-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 99px; background: rgba(255, 253, 246, .85); border: 1px solid var(--line-2); color: var(--green-d); font-size: 12.5px; font-weight: 750; box-shadow: 0 4px 10px -6px rgba(50, 40, 15, .35); transition: transform .15s var(--ease), background .15s ease; }
.seeds-theme-btn:hover { background: #fff; }
.seeds-theme-btn:active { transform: scale(.96); }
.seeds-theme-btn .icon { width: 15px; height: 15px; }

.seeds-timer-box { position: relative; display: grid; place-items: center; padding: 8px 18px; border-radius: 16px; background: linear-gradient(180deg, #3d2b1c, #24180f); border: 1px solid rgba(255, 216, 150, .24); min-width: 134px; text-align: center; box-shadow: 0 12px 24px -12px rgba(30, 18, 6, .7); }
.seeds-timer-box > span { font-size: 11px; color: #d8c49c; font-weight: 700; letter-spacing: .1em; }
.seeds-timer-box > b { font: 800 26px/1.18 ui-monospace, SFMono-Regular, Menlo, monospace; color: #ffd36e; font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(255, 200, 90, .5); }
.seeds-quota-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: #4e4231; font-weight: 600; }
.seeds-notice { padding: 10px 13px; border-radius: 14px; background: linear-gradient(135deg, #f2f7e4, #e5eecf); border: 1px solid #c9dbb0; color: #2a4c30; font-size: 13px; font-weight: 700; }

/* 四位田友一排迎接 */
.seeds-greeters { display: grid; justify-items: center; gap: 4px; margin: 2px 0 -10px; position: relative; z-index: 4; }
.seeds-welcome-pill { display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 99px; background: rgba(44, 30, 14, .68); border: 1px solid rgba(255, 232, 178, .38); color: #fff6df; font-size: 12.5px; font-weight: 750; letter-spacing: .03em; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 8px 18px -10px rgba(20, 12, 4, .75); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.seeds-greeter-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 6px; width: min(100%, 700px); padding: 0 6px; }
.seeds-greeter { position: relative; display: grid; justify-items: center; padding: 4px 2px 0; transition: transform .22s var(--spring); }
.seeds-greeter:hover { transform: translateY(-5px); }
.seeds-greeter:active { transform: translateY(-1px) scale(.97); }
.seeds-greeter-fig { display: block; width: clamp(82px, 13.5vw, 136px); filter: drop-shadow(0 10px 10px rgba(34, 24, 10, .34)); }
.seeds-greeter .companion-art { animation-delay: calc(var(--gi, 0) * -1.05s); }
.seeds-greeter-shadow { width: 62%; height: 11px; margin-top: -12px; border-radius: 50%; background: radial-gradient(closest-side, rgba(32, 24, 10, .38), transparent 76%); }
.seeds-greeter-name { margin-top: 2px; padding: 2px 10px; border-radius: 99px; background: rgba(255, 251, 240, .92); border: 1px solid rgba(150, 114, 58, .32); color: #3a2915; font: 800 12px/1.3 var(--serif); letter-spacing: .06em; box-shadow: 0 4px 10px -5px rgba(36, 22, 8, .45); }

/* 2.5D 立体田埂台地 + 六块大号耕地 */
.seeds-terrace { position: relative; z-index: 3; padding: 18px 18px 22px; border-radius: 26px; background: linear-gradient(180deg, color-mix(in srgb, var(--scene-rim, #7d9640) 90%, #dce8a8) 0%, var(--scene-rim-dark, #566b2a) 100%); border: 2px solid rgba(255, 244, 200, .42); border-bottom: 11px solid #4d3017; box-shadow: 0 22px 36px -14px rgba(28, 18, 8, .56), inset 0 2px 0 rgba(255, 248, 214, .5); }
.seeds-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.seed-plot { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 14px 14px 13px; border-radius: 22px; border: 2px solid #c79e61; border-bottom: 8px solid #351d0b; background:
  repeating-linear-gradient(168deg, rgba(255, 220, 165, .07) 0 3px, transparent 3px 16px),
  linear-gradient(165deg, #7c522c 0%, #613c1c 50%, #4b2d13 100%);
  color: #fffaf0; box-shadow: 0 14px 24px -10px rgba(36, 20, 8, .62), inset 0 1px 0 rgba(255, 236, 190, .35); transition: transform .2s var(--spring), box-shadow .2s ease; animation: enter .6s var(--ease) both; }
.seed-plot:nth-child(2) { animation-delay: .05s; } .seed-plot:nth-child(3) { animation-delay: .1s; } .seed-plot:nth-child(4) { animation-delay: .15s; } .seed-plot:nth-child(5) { animation-delay: .2s; } .seed-plot:nth-child(6) { animation-delay: .25s; }
.seed-plot.is-open:hover { transform: translateY(-4px); box-shadow: 0 22px 30px -10px rgba(36, 20, 8, .68), 0 0 0 3px rgba(255, 220, 130, .48); }
.seed-plot.is-open:active { transform: translateY(1px) scale(.985); }
.seed-plot.is-claimed { border-color: #82ae61; border-bottom-color: #3f632c; background: linear-gradient(165deg, #f5f9eb 0%, #e4efd2 100%); color: var(--ink); box-shadow: 0 12px 22px -10px rgba(32, 54, 20, .36), inset 0 1px 0 rgba(255, 255, 255, .8); }
.seed-plot.is-closed { border-color: #cfc6ad; border-bottom-color: #9e9378; background: linear-gradient(165deg, #f3efe2, #e8e1cc); color: var(--ink2); box-shadow: 0 8px 16px -10px rgba(40, 32, 18, .3); }
.seed-plot-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; font: 900 15px var(--serif); letter-spacing: .04em; }
.seed-badge { padding: 3px 10px; border-radius: 99px; font: 800 11.5px var(--sans); }
.seed-badge.open { background: linear-gradient(180deg, #ffe796, #f0b23d); color: #4d300a; box-shadow: 0 3px 8px -4px rgba(120, 70, 0, .5); animation: twinkle-soft 2.4s ease-in-out infinite; }
.seed-badge.claimed { background: #3f6848; color: #fffdf5; }
.seed-badge.closed { background: #ded7c3; color: #5f6456; }
.seed-qr-frame { background: #ffffff; border-radius: 16px; padding: 10px; display: grid; place-items: center; aspect-ratio: 1 / 1; box-shadow: inset 0 0 0 1px #e4e8dc, 0 8px 18px -6px rgba(18, 10, 2, .48); }
.seed-qr-frame svg { width: 100%; height: 100%; display: block; }
.seed-claimed-body { display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; aspect-ratio: 1 / 1; padding: 8px; }
.seed-sprout-svg { width: min(124px, 70%); height: auto; }
.seed-stamp { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 99px; background: #fffdf2; border: 1.5px solid #598a4b; color: #2f5a33; font-size: 13px; font-weight: 800; }
.seed-closed-ic { font-size: 42px; opacity: .72; }
.seed-plot-foot { text-align: center; font-size: 13px; font-weight: 750; opacity: .96; letter-spacing: .02em; }
.seeds-foot { text-align: center; font-size: 13px; color: var(--ink2); }

@media (max-width: 760px) {
  .quota-bars { grid-template-columns: minmax(0, 1fr); }
  .quota-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seeds-stage { border-radius: 24px; margin: 0 -10px; }
  .seeds-stage-inner { gap: 10px; padding: 12px 10px 14px; }
  .seeds-hud { padding: 12px 13px; border-radius: 18px; }
  .seeds-title-block { min-width: 0; }
  .seeds-timer-box { padding: 6px 13px; min-width: 112px; }
  .seeds-timer-box > b { font-size: 22px; }
  .seeds-welcome-pill { font-size: 11.5px; padding: 4px 11px; }
  .seeds-greeters { margin: 0 0 -8px; }
  .seeds-greeter-row { gap: 2px; padding: 0; }
  .seeds-greeter-fig { width: clamp(72px, 21vw, 96px); }
  .seeds-greeter-name { font-size: 11px; padding: 1px 8px; }
  .seeds-terrace { padding: 10px 10px 13px; border-radius: 20px; border-bottom-width: 8px; }
  .seeds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .seed-plot { padding: 10px 10px 9px; border-radius: 17px; border-bottom-width: 6px; gap: 7px; }
  .seed-plot-head { font-size: 13px; }
  .seed-qr-frame { padding: 7px; border-radius: 12px; }
  .seed-plot-foot { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .amb-motes, .amb-clouds { display: none; }
}

/* 成长阶段装饰：灯笼轻摆、萤火、千日神树金光 */
.lantern { transform-box: fill-box; transform-origin: 50% 0; animation: lantern-sway 5.2s ease-in-out infinite; }
@keyframes lantern-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.firefly { animation: firefly 5s ease-in-out infinite; filter: drop-shadow(0 0 4px #fff3a0); }
@keyframes firefly { 0%, 100% { transform: translate(0, 0); opacity: .25; } 30% { opacity: 1; } 50% { transform: translate(7px, -9px); opacity: .85; } 75% { transform: translate(-5px, -4px); opacity: .4; } }
.tree-rays { transform-box: fill-box; transform-origin: center; animation: rays-swing 9s ease-in-out infinite alternate; }
@keyframes rays-swing { from { transform: rotate(-6deg); opacity: .16; } to { transform: rotate(6deg); opacity: .3; } }
.seedling .twinkle { transform-box: fill-box; }

/* 成长阶段进度 */
.stage-track { margin-top: 14px; }
.stage-track ol { display: grid; grid-template-columns: repeat(9, 1fr); align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; position: relative; }
.stage-track ol::before { content: ""; position: absolute; left: 5%; right: 5%; top: 50%; height: 2px; translate: 0 -50%; background: #e6dcc3; border-radius: 2px; }
.stage-track ol::after { content: ""; position: absolute; left: 5%; top: 50%; height: 2px; translate: 0 -50%; width: calc(90% * var(--p)); background: linear-gradient(90deg, #8fbf5a, var(--gold)); border-radius: 2px; }
.stage-track li { position: relative; z-index: 1; justify-self: center; width: 10px; height: 10px; border-radius: 50%; background: #efe6cf; border: 2px solid #ddd0b0; }
.stage-track li.done { background: #8fbf5a; border-color: #fffaf0; }
.stage-track li.now { width: 18px; height: 18px; background: radial-gradient(circle at 35% 35%, #fff6c0, var(--gold) 60%, var(--gold-d)); border: 2px solid #fffaf0; box-shadow: 0 0 0 3px rgba(231, 170, 60, .3), 0 0 12px 2px rgba(231, 170, 60, .5); animation: sun-breathe 2.4s ease-in-out infinite alternate; }
.stage-track li.final { border-color: var(--gold); }
.stage-track p { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--ink2); }
.stage-track p b { color: var(--gold-d); font-family: var(--serif); font-size: 14px; letter-spacing: .06em; }
/* 华为园区食堂：光学识图取景器 HUD、旋转放大裁片、AI 思维轨迹、置信度徽章与反馈闭环 */
.hw-hud-deck {
  border-radius: 22px; padding: 14px; display: grid; gap: 12px; color: #e8f5ec;
  background:
    radial-gradient(circle at 88% 12%, rgba(52, 211, 153, .18), transparent 46%),
    radial-gradient(circle at 10% 90%, rgba(231, 170, 60, .14), transparent 50%),
    linear-gradient(155deg, #0d1e15 0%, #142a1e 55%, #0f2117 100%);
  border: 1px solid rgba(110, 231, 183, .22);
  box-shadow: 0 14px 36px rgba(13, 30, 21, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
  position: relative; overflow: hidden;
}
.hw-hud-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.hw-hud-id { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .08em; }
.hw-hud-id b { color: #6ee7b7; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hw-hud-site { color: rgba(232, 245, 236, .74); letter-spacing: 0; font-size: 11px; }
.hw-hud-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: hwBeacon 1.6s ease-out infinite;
}
@keyframes hwBeacon {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.hw-hud-telemetry { display: inline-flex; align-items: center; gap: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hw-hud-mode {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: rgba(52, 211, 153, .16); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, .36);
}
.hw-hud-sec { font-size: 11px; color: rgba(232, 245, 236, .75); min-width: 24px; text-align: right; }

.hw-hud-stage { display: grid; grid-template-columns: 126px 1fr; gap: 12px; align-items: stretch; }
.hw-hud-viewport {
  position: relative; border-radius: 14px; overflow: hidden; background: #08130d;
  border: 1px solid rgba(110, 231, 183, .28); aspect-ratio: 3 / 4;
  display: grid; place-items: center;
}
.hw-hud-rotator {
  position: relative; width: 100%; height: 100%;
  transition: transform .68s cubic-bezier(.22, 1, .36, 1);
}
.hw-hud-img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; }
.hw-laser {
  position: absolute; left: 0; right: 0; height: 2px; top: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, #34d399 25%, #a7f3d0 50%, #34d399 75%, transparent);
  box-shadow: 0 0 14px 2px rgba(52, 211, 153, .65);
  animation: hwLaserSweep 2.1s ease-in-out infinite;
}
@keyframes hwLaserSweep {
  0% { top: 4%; opacity: .2; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 94%; opacity: .2; }
}
.hw-hud-corner { position: absolute; width: 11px; height: 11px; pointer-events: none; border-color: rgba(110, 231, 183, .72); border-style: solid; }
.hw-hud-corner.tl { top: 6px; left: 6px; border-width: 2px 0 0 2px; border-top-left-radius: 3px; }
.hw-hud-corner.tr { top: 6px; right: 6px; border-width: 2px 2px 0 0; border-top-right-radius: 3px; }
.hw-hud-corner.bl { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; border-bottom-left-radius: 3px; }
.hw-hud-corner.br { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; border-bottom-right-radius: 3px; }

.hw-reticle {
  position: absolute; pointer-events: none; border: 1.5px solid #34d399;
  background: rgba(52, 211, 153, .16); box-shadow: 0 0 14px rgba(52, 211, 153, .55);
  border-radius: 4px; animation: hwReticleLock .45s cubic-bezier(.22, 1, .36, 1) both;
}
.hw-reticle.is-partial { border-color: #fbbf24; background: rgba(251, 191, 36, .18); box-shadow: 0 0 12px rgba(251, 191, 36, .45); }
@keyframes hwReticleLock {
  0% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.hw-hud-side { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-width: 0; }
.hw-lens-card {
  border-radius: 14px; padding: 9px 10px; display: grid; gap: 6px; align-content: start;
  background: rgba(255, 255, 255, .055); border: 1px solid rgba(110, 231, 183, .22);
  backdrop-filter: blur(6px); animation: hwLensPop .42s cubic-bezier(.22, 1, .36, 1) both;
}
.hw-lens-card.is-active { border-color: rgba(52, 211, 153, .52); box-shadow: 0 0 20px rgba(52, 211, 153, .14); }
@keyframes hwLensPop {
  0% { opacity: 0; transform: translateY(6px) scale(.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.hw-lens-head {
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; color: #6ee7b7; letter-spacing: .04em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.hw-lens-canvas-wrap {
  display: grid; place-items: center; padding: 4px; border-radius: 9px;
  background: rgba(244, 239, 228, .96); overflow: hidden;
}
.hw-lens-canvas-wrap canvas { display: block; border-radius: 6px; max-width: 100%; }
.hw-lens-status { font-size: 11px; color: #fde68a; }
.hw-lens-hint { margin: 2px 0 0; font-size: 12px; color: rgba(232, 245, 236, .76); line-height: 1.45; }

.hw-hud-cands { display: flex; flex-wrap: wrap; gap: 4px; }
.hw-hud-cand {
  font-size: 10px; padding: 2px 7px; border-radius: 999px;
  background: rgba(52, 211, 153, .12); border: 1px solid rgba(110, 231, 183, .24); color: #d1fae5;
}
.hw-hud-cand.is-more { background: rgba(255, 255, 255, .08); color: rgba(232, 245, 236, .7); }

.hw-hud-progress {
  height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden;
}
.hw-hud-progress i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #6ee7b7, #fbbf24);
  transition: width .45s cubic-bezier(.22, 1, .36, 1);
}

.hw-agent-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.hw-af-item { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; animation: hwLensPop .3s ease both; }
.hw-af-dot {
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10px; font-weight: 700; margin-top: 1px;
  background: var(--paper); color: var(--ink3); border: 1px solid var(--line-2);
}
.hw-af-item.is-done .hw-af-dot { background: var(--green); color: #fff; border-color: var(--green); }
.hw-af-item.is-running .hw-af-dot { background: var(--gold-l); color: var(--gold-d); border-color: var(--gold); animation: hwPulse 1.2s ease-in-out infinite; }
.hw-agent-feed.is-dark .hw-af-dot { background: rgba(255, 255, 255, .08); color: rgba(232, 245, 236, .6); border-color: rgba(110, 231, 183, .22); }
.hw-agent-feed.is-dark .hw-af-item.is-done .hw-af-dot { background: #10b981; color: #062115; border-color: #34d399; }
.hw-agent-feed.is-dark .hw-af-item.is-running .hw-af-dot { background: rgba(251, 191, 36, .22); color: #fde68a; border-color: #fbbf24; }
.hw-af-body { display: grid; gap: 2px; min-width: 0; }
.hw-af-head { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 12px; }
.hw-af-tag {
  font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em;
  background: var(--green-l); color: var(--green-dd);
}
.hw-agent-feed.is-dark .hw-af-tag { background: rgba(52, 211, 153, .16); color: #6ee7b7; }
.hw-mini-pill {
  font-size: 10px; padding: 0 5px; border-radius: 999px;
  background: rgba(231, 170, 60, .2); color: var(--gold-d); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.hw-agent-feed.is-dark .hw-mini-pill { background: rgba(251, 191, 36, .18); color: #fde68a; }
.hw-step-ms { font-size: 10px; color: var(--ink3); margin-left: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hw-agent-feed.is-dark .hw-step-ms { color: rgba(232, 245, 236, .55); }
.hw-af-thought { margin: 0; font-size: 11px; color: var(--ink2); line-height: 1.45; }
.hw-agent-feed.is-dark .hw-af-thought { color: rgba(232, 245, 236, .74); }
@keyframes hwPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

.hw-trace-fold {
  border-top: 1px dashed var(--line-2); padding-top: 8px; font-size: 12px;
}
.hw-trace-fold summary { cursor: pointer; font-weight: 600; color: var(--green-d); list-style: none; }
.hw-trace-fold summary::-webkit-details-marker { display: none; }
.hw-trace-fold[open] summary { margin-bottom: 8px; }

.hw-crop-box {
  display: inline-flex; flex-direction: column; gap: 4px; padding: 6px 8px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line-2); cursor: pointer; align-items: flex-start;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.hw-crop-box:hover { border-color: var(--green); box-shadow: 0 2px 10px rgba(43, 33, 24, .08); }
.hw-crop-tag { font-size: 10px; font-weight: 600; color: var(--ink3); letter-spacing: .02em; }
.hw-crop-box canvas { display: block; border-radius: 6px; max-width: 100%; background: var(--paper); }

.hw-brand-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.hw-brand-pill.is-ok { background: var(--green-l); color: var(--green-dd); }
.hw-brand-pill.is-partial { background: var(--gold-l); color: var(--gold-d); }
.hw-brand-pill.is-none { background: var(--paper); color: var(--ink2); }

.hw-evidence-card {
  margin: 0 0 12px; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(180deg, var(--card-2) 0%, var(--card) 100%);
  border: 1px solid var(--line-2); display: grid; gap: 10px;
}
.hw-ev-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.hw-ev-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hw-site-tag { font-size: 12px; font-weight: 700; color: var(--ink); }
.hw-conf-badge {
  flex: none; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  letter-spacing: .02em; white-space: nowrap;
}
.hw-conf-badge.is-high { background: var(--green-l); color: var(--green-dd); border: 1px solid rgba(75, 125, 58, .3); }
.hw-conf-badge.is-mid { background: var(--gold-l); color: var(--gold-d); border: 1px solid rgba(231, 170, 60, .4); }
.hw-conf-badge.is-low { background: #fbe5de; color: var(--warn); border: 1px solid rgba(173, 71, 51, .28); }
.hw-conflict-tip {
  margin: 0; padding: 7px 10px; border-radius: 10px; font-size: 12px;
  background: #fbe5de; color: var(--warn);
}
.hw-ev-body { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hw-ev-meta { flex: 1 1 180px; min-width: 0; display: grid; gap: 3px; }
.hw-ev-meta p { margin: 0; font-size: 12px; line-height: 1.45; }
.hw-ev-source { color: var(--ink); }
.hw-ev-dishes { color: var(--green-dd); }

.hw-fb-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 8px; border-top: 1px dashed var(--line-2);
}
.hw-fb-ask { font-size: 12px; }
.hw-fb-ops { display: inline-flex; gap: 6px; }
.hw-fb-btn {
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.hw-fb-btn:hover { border-color: var(--green); }
.hw-fb-btn.is-up { background: var(--green-l); border-color: var(--green); color: var(--green-dd); }
.hw-fb-btn.is-down { background: #fbe5de; border-color: var(--warn); color: var(--warn); }
.hw-fb-down-panel { display: grid; gap: 8px; padding-top: 4px; }
.hw-fb-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.hw-fb-comment-row { display: flex; gap: 6px; align-items: center; }
.hw-fb-input {
  flex: 1; min-width: 0; padding: 7px 10px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--card); font-size: 13px; color: var(--ink);
}

.nm-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.hw-dish-tag {
  font-size: 10px; padding: 1px 6px; border-radius: 999px;
  background: var(--green-l); color: var(--green-dd); font-weight: 600;
}
.hw-item-conf {
  font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 6px;
}
.hw-item-conf.is-high { background: var(--green-l); color: var(--green-dd); }
.hw-item-conf.is-mid { background: var(--gold-l); color: var(--gold-d); }
.hw-item-conf.is-low { background: #fbe5de; color: var(--warn); }

.hw-inspect-sheet { display: grid; gap: 10px; justify-items: center; }
.hw-inspect-canvas { width: min(100%, 340px); border-radius: 14px; border: 1px solid var(--line-2); display: block; }
.hw-inspect-zoom-row { padding: 8px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line-2); }
.hw-inspect-zoom-row canvas { display: block; border-radius: 8px; }
.hw-inspect-meta { width: 100%; display: grid; gap: 4px; font-size: 13px; }
.hw-inspect-meta p { margin: 0; }

.admin-fb-main { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; flex: 1; min-width: 0; }
.admin-fb-crop { flex: none; }
.admin-fb-diff { color: var(--green-dd); font-size: 13px; margin: 2px 0 0; }

.hw-brand-pill.is-issue { background: var(--gold-l); color: var(--gold-d); border: 1px dashed rgba(184, 120, 22, .45); }
.hw-issue-note {
  margin: 0; padding: 7px 10px; border-radius: 10px; font-size: 12px; line-height: 1.45;
  background: var(--gold-l); color: var(--soil-2); border: 1px solid rgba(231, 170, 60, .35);
}
.bi-plan-box {
  margin-top: 8px; padding: 10px 12px; border-radius: 12px;
  background: var(--card-2); border: 1px solid var(--line-2); display: grid; gap: 5px;
}
.bi-plan-box p { margin: 0; font-size: 12px; line-height: 1.45; }
.bi-plan-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; }
.bi-plan-list { margin: 2px 0; padding-left: 18px; font-size: 12px; color: var(--ink); display: grid; gap: 2px; }
.bi-ops { align-self: flex-start; flex-wrap: wrap; }

/* 识图完成后默认自动折叠的极简精致依据卡 */
.hw-evidence-card.is-compact { padding: 10px 12px; gap: 8px; }
.hw-compact-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hw-mini-crop {
  flex: none; padding: 3px; border-radius: 10px; background: var(--card);
  border: 1px solid var(--line-2); cursor: pointer; display: grid; place-items: center;
  transition: border-color .16s ease, transform .16s ease;
}
.hw-mini-crop:hover { border-color: var(--green); transform: scale(1.03); }
.hw-mini-crop canvas { display: block; border-radius: 7px; }
.hw-compact-info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.hw-compact-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.hw-compact-top .hw-brand-pill { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-compact-sub {
  margin: 0; font-size: 12px; color: var(--ink2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hw-compact-sub.is-issue { color: var(--gold-d); font-weight: 500; }
.hw-compact-sub.is-warn { color: var(--warn); font-weight: 500; }
.hw-compact-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding-top: 6px; border-top: 1px dashed var(--line);
}
.hw-process-toggle {
  border: 0; background: transparent; padding: 2px 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--green-d);
}
.hw-process-toggle i { font-style: normal; display: inline-block; transition: transform .2s ease; }
.hw-process-toggle.is-open i { transform: rotate(180deg); }
.hw-compact-foot .hw-fb-btn { padding: 2px 9px; font-size: 11px; }
.hw-process-drawer {
  padding-top: 10px; border-top: 1px dashed var(--line-2); display: grid; gap: 10px;
  animation: hwLensPop .24s ease both;
}
.hw-drawer-steps { padding-top: 8px; border-top: 1px dashed var(--line); }

.top .chip.invite { color: #2c1a06; border-color: rgba(255, 210, 120, .65); background: linear-gradient(180deg, #ffe08c, #f2b947); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 16px -8px rgba(230, 160, 40, .85); }
.guest-greet { border-color: rgba(242, 185, 71, .55); }
.guest-guidance { background: linear-gradient(180deg, #fffdf4, #f7edd4); border-top: 1px solid rgba(215, 186, 120, .45); color: #43311b; font-weight: 600; }

/* ---------- 新手 & 中老年友好登录/注册小人向导 ---------- */
.auth-sheet { max-height: min(92dvh, 840px); }
.auth-sheet-body { display: grid; gap: 12px; }
.guide-full-banner { padding: 12px 14px; border-radius: 16px; background: #fff4da; border: 1px solid #e6c989; color: #543a15; font-size: 14px; line-height: 1.55; font-weight: 600; }
.guide-full-banner a, .guide-inline-link { color: var(--green-d); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.guide-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 18px; background: #efe4ca; border: 1px solid var(--line-2); }
.guide-tabs button { min-height: 46px; padding: 8px 10px; border-radius: 13px; font-size: 15px; font-weight: 800; color: #5e4f38; transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .14s var(--ease); }
.guide-tabs button.on { background: linear-gradient(180deg, #fffef9, #fff7e3); color: var(--green-dd); box-shadow: 0 4px 12px -6px rgba(60, 40, 10, .4), inset 0 0 0 1.5px rgba(75, 125, 58, .35); }
.guide-tabs button:active { transform: scale(.98); }

.guide-hero { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px 10px 8px; margin-bottom: 12px; border-radius: 20px; background: linear-gradient(135deg, #fff6df, #f5e9ca); border: 1px solid #e3d1a5; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
.guide-host { width: 74px; flex: none; filter: drop-shadow(0 6px 8px rgba(80, 50, 15, .16)); }
.guide-speech-wrap { display: grid; gap: 8px; min-width: 0; }
.guide-bubble { position: relative; padding: 9px 12px; border-radius: 14px; background: #fffdf8; border: 1px solid #e5d6b0; color: #312415; font-size: 14px; line-height: 1.55; font-weight: 700; box-shadow: 0 4px 10px -6px rgba(90, 62, 20, .28); }
.guide-bubble::before { content: ""; position: absolute; left: -7px; top: 18px; width: 12px; height: 12px; background: #fffdf8; border-left: 1px solid #e5d6b0; border-bottom: 1px solid #e5d6b0; transform: rotate(45deg); }
.guide-bubble.is-pop { animation: bubble-pop .32s var(--spring) both; }
@keyframes bubble-pop { 0% { transform: scale(.96); opacity: .75; } 100% { transform: scale(1); opacity: 1; } }

.guide-progress { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.guide-progress li { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 5px; border-radius: 99px; background: rgba(255, 253, 246, .75); border: 1px solid #e0d1ac; color: #75654c; font-size: 12px; font-weight: 700; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.guide-progress li i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #e6d7b4; color: #54432a; font-style: normal; font-size: 11px; font-weight: 800; }
.guide-progress li.active { background: #fff9e5; border-color: #d9a43b; color: #5e3d0a; }
.guide-progress li.active i { background: var(--gold); color: #2f1b05; }
.guide-progress li.done, .guide-progress li.ready { background: var(--green-l); border-color: #93bd77; color: var(--green-dd); }
.guide-progress li.done i, .guide-progress li.ready i { background: var(--green); color: #fff; }

.guide-form { display: grid; gap: 12px; }
.guide-step { padding: 13px 14px 14px; border-radius: 20px; background: #fffdf7; border: 1.5px solid #e5d7b7; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.guide-step.is-active { border-color: #84b363; background: #fffef9; box-shadow: 0 0 0 4px rgba(120, 168, 78, .14), 0 8px 18px -12px rgba(60, 88, 30, .32); }
.guide-step.is-done { border-color: #79aa5b; background: linear-gradient(180deg, #fafdf4, #f4faea); }
.guide-step-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }

.step-mascot { width: 58px; height: 58px; flex: none; border-radius: 16px; background: linear-gradient(180deg, #fff5d8, #f3e4be); border: 1px solid #e6d3a3; display: grid; place-items: center; overflow: visible; }
.guide-step.is-active .step-mascot { background: linear-gradient(180deg, #fff8dc, #f4e6b4); border-color: #d9b25a; }
.guide-step.is-done .step-mascot { background: linear-gradient(180deg, #eef8df, #dceec5); border-color: #9dc47e; }
.step-mascot-svg { width: 56px; height: 56px; display: block; overflow: visible; }
.step-mascot-svg .ms-body { transform-origin: 30px 56px; animation: mascot-bob 3s ease-in-out infinite; }
.step-mascot-svg .ms-sprout { transform-origin: 30px 13px; }
.step-mascot-svg .ms-eyes-happy { opacity: 0; }
.guide-step.is-active .step-mascot-svg .ms-body { animation: mascot-hop 1.45s ease-in-out infinite; }
.guide-step.is-active .step-mascot-svg .ms-sprout { animation: mascot-sprout 1.2s ease-in-out infinite; }
.guide-step.is-active .step-mascot-svg .ms-pointer { transform-origin: 0 0; animation: mascot-point .95s ease-in-out infinite; }
.guide-step.is-active .step-mascot-svg .ms-key { transform-origin: 0 0; animation: mascot-key 1.3s ease-in-out infinite; }
.guide-step.is-active .step-mascot-svg .ms-badge { transform-origin: 0 0; animation: mascot-key 1.5s ease-in-out infinite; }
.guide-step.is-active .step-mascot-svg .ms-heart { transform-origin: 0 0; animation: mascot-point 1.1s ease-in-out infinite; }
.guide-step.is-peeking .step-mascot-svg .ms-body { animation: mascot-peek .75s var(--spring) both; }
.guide-step.is-done .step-mascot-svg .ms-eyes-open { opacity: 0; }
.guide-step.is-done .step-mascot-svg .ms-eyes-happy { opacity: 1; }
@keyframes mascot-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.2px); } }
@keyframes mascot-hop { 0%, 100% { transform: translateY(0) scaleY(1); } 45% { transform: translateY(-4.5px) scaleY(1.03); } 70% { transform: translateY(0.5px) scaleY(.97); } }
@keyframes mascot-sprout { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(9deg); } }
@keyframes mascot-point { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes mascot-key { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(12deg); } }
@keyframes mascot-peek { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-5px) scale(1.07); } 100% { transform: translateY(0) scale(1); } }

.guide-step-copy { flex: 1; min-width: 0; display: grid; gap: 4px; }
.guide-step-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 16px; font-weight: 850; color: #241b12; line-height: 1.3; cursor: pointer; }
.step-num { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; background: #f3e4bd; color: #5b3e11; font-size: 12px; font-weight: 800; }
.guide-step.is-active .step-num { background: #f6cd63; color: #341e03; }
.guide-step.is-done .step-num { background: var(--green); color: #fff; }
.step-done-tag { margin-left: auto; padding: 2px 8px; border-radius: 99px; background: var(--green-l); color: var(--green-dd); font-size: 12px; font-weight: 800; }
.guide-step-hint { font-size: 14px; line-height: 1.5; color: #574a37; font-weight: 500; }

.guide-input-wrap { position: relative; }
.guide-input-wrap input { width: 100%; min-height: 52px; padding: 11px 14px; border: 1.5px solid #d5c39c; border-radius: 15px; background: #fff; font-size: 18px; font-weight: 600; color: #241b12; box-shadow: inset 0 2px 4px rgba(90, 70, 30, .06); transition: border-color .18s ease, box-shadow .18s ease; }
.guide-input-wrap input::placeholder { color: #9c8e78; font-size: 15px; font-weight: 500; }
.guide-input-wrap input:focus { outline: none; border-color: #639644; box-shadow: 0 0 0 4px rgba(100, 155, 65, .18); }

.pw-box { display: flex; align-items: stretch; gap: 8px; }
.pw-box input { flex: 1; min-width: 0; }
.pw-toggle { flex: none; min-width: 78px; min-height: 52px; padding: 0 12px; border-radius: 15px; border: 1.5px solid #d5c39c; background: linear-gradient(180deg, #fffdf7, #f4ead2); color: #40321f; font-size: 14px; font-weight: 800; white-space: nowrap; transition: background .15s ease, border-color .15s ease, transform .12s ease; }
.pw-toggle:hover { border-color: #b79c66; }
.pw-toggle[aria-pressed="true"] { background: linear-gradient(180deg, #fff5d4, #f5df9c); border-color: #cca042; color: #3f2806; }
.pw-toggle:active { transform: scale(.97); }

.pw-meter { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 9px; }
.pw-meter i { display: block; height: 6px; border-radius: 99px; background: #e8dec5; transition: background .2s ease, transform .2s var(--spring); }
.pw-meter i.on { background: linear-gradient(90deg, #68a64b, #4c8635); transform: scaleY(1.2); }

.guide-field-tip { min-height: 19px; margin-top: 6px; font-size: 13px; font-weight: 700; color: #6e5f46; }
.guide-field-tip:empty { display: none; }
.guide-step.is-done .guide-field-tip { color: var(--green-d); }

.guide-hw-box { padding: 12px 14px; border-radius: 18px; background: #f8f2e1; border: 1px solid #e0d1ae; }
.guide-hw-note { font-size: 13px; font-weight: 700; color: var(--green-d); margin-bottom: 4px; }
.guide-more { border-radius: 15px; background: #f7f0dd; border: 1px dashed #d8c79f; padding: 10px 13px; }
.guide-more summary { font-size: 13px; font-weight: 700; color: #6d5f48; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.guide-more summary::-webkit-details-marker { display: none; }
.guide-more summary::after { content: "展开 ⌄"; font-size: 12px; color: var(--green-d); }
.guide-more[open] summary::after { content: "收起 ⌃"; }
.guide-more-body { padding-top: 4px; }

.guide-submit { min-height: 54px; font-size: 17px; font-weight: 850; border-radius: 17px; letter-spacing: .04em; }
.guide-submit.is-ready { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 3px rgba(114, 174, 78, .22), 0 12px 24px -10px rgba(52, 96, 34, .85); }
.guide-err { font-size: 14px; text-align: center; }
.guide-switch-link { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 14px; background: #f6edd7; border: 1px solid #e2d2ae; color: var(--green-d); font-size: 14px; font-weight: 800; text-align: center; transition: background .15s ease; }
.guide-switch-link:hover { background: #efe3c5; }

@media (max-width: 480px) {
  .auth-sheet .sheet-head { padding: 16px 0 9px; }
  .auth-sheet .sheet-content { padding-top: 10px; }
  .auth-sheet-body { gap: 9px; }
  .guide-tabs button { min-height: 42px; font-size: 14.5px; }
  .guide-hero { grid-template-columns: 58px minmax(0, 1fr); gap: 8px; padding: 7px 9px 7px 6px; margin-bottom: 9px; }
  .guide-host { width: 58px; }
  .guide-bubble { font-size: 13px; padding: 7px 10px; }
  .guide-form { gap: 9px; }
  .step-mascot { width: 48px; height: 48px; border-radius: 14px; }
  .step-mascot-svg { width: 46px; height: 46px; }
  .guide-step { padding: 10px 11px 11px; }
  .guide-step-head { gap: 8px; margin-bottom: 8px; }
  .guide-step-title { font-size: 15px; gap: 5px; }
  .guide-step-hint { font-size: 13px; line-height: 1.45; }
  .guide-input-wrap input { font-size: 17px; min-height: 48px; padding: 9px 12px; }
  .pw-toggle { min-width: 72px; min-height: 48px; padding: 0 10px; }
  .guide-submit { min-height: 50px; font-size: 16px; }
}

/* ==========================================================================
   朋友圈落地体验页 · 1 步免密领地 · 极速文字记餐 · 拍立得晒餐
   ========================================================================== */
.welcome-page { display: grid; gap: 18px; padding-bottom: 18px; }
.welcome-hero { text-align: center; padding: 14px 10px 4px; }
.welcome-hero h1 { font: 800 clamp(26px, 6.2vw, 38px)/1.22 var(--serif); letter-spacing: .04em; color: var(--sky-ink); margin: 4px 0 10px; }
.welcome-sub { max-width: 560px; margin: 0 auto 14px; font-size: 14.5px; line-height: 1.65; color: var(--sky-ink2); }
.welcome-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.welcome-pills span { padding: 5px 11px; border-radius: 99px; background: var(--glass); border: 1px solid var(--glass-line); font-size: 12.5px; font-weight: 700; color: var(--glass-ink); backdrop-filter: blur(8px); }

.welcome-try { display: grid; gap: 12px; background: linear-gradient(180deg, #fffdf7, #faf2e0); border: 1.5px solid #e3d3ae; }
.welcome-try-head h2 { font: 800 18px/1.3 var(--serif); color: var(--ink); margin-bottom: 4px; }
.welcome-try-controls { display: grid; gap: 10px; }
.welcome-photo-btn { min-height: 52px; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; }
.welcome-or { display: flex; align-items: center; gap: 10px; color: var(--ink3); font-size: 12.5px; }
.welcome-or::before, .welcome-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.welcome-text-form { display: flex; gap: 8px; align-items: stretch; }
.welcome-text-form input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 13px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fffdf8; font-size: 14.5px; }
.welcome-text-form input:focus { border-color: var(--green); outline: none; }
.welcome-text-form .btn { flex: none; width: auto; min-width: 82px; padding: 0 16px; }

.trial-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 14px; border-radius: 16px; background: #f6eed8; color: var(--green-d); font-size: 14px; }
.trial-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #cfd8b8; border-top-color: var(--green); animation: trial-spin .85s linear infinite; }
@keyframes trial-spin { to { transform: rotate(360deg); } }
.trial-card { display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: #fffdf7; border: 1.5px solid #cfe0b8; box-shadow: 0 10px 24px -16px rgba(56, 98, 36, .4); }
.trial-card-top { display: flex; align-items: center; gap: 12px; }
.trial-card-top h3 { font: 800 16.5px/1.3 var(--serif); margin-top: 4px; color: var(--ink); }
.trial-thumb { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; border: 2px solid #e6dcc4; }
.trial-plant-btn { margin-top: 4px; }

.welcome-scenes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.welcome-scene-card { padding: 16px; display: grid; gap: 6px; }
.welcome-scene-card h3 { font: 800 16px/1.3 var(--serif); color: var(--ink); }
.welcome-scene-card p { font-size: 13.5px; line-height: 1.65; color: var(--ink2); }
.welcome-demo-story { font-size: 14px; line-height: 1.6; padding: 10px 12px; border-radius: 14px; background: #f7f0dd; color: var(--ink); }

/* 1 步免密领地：内联田友选择与试拍衔接条 */
.guide-trial-pill { padding: 10px 13px; border-radius: 14px; background: linear-gradient(135deg, #fdf3d5, #f6e7b8); border: 1px solid #e4c475; color: #5b3b09; font-size: 13.5px; font-weight: 800; line-height: 1.5; margin-bottom: 10px; }
.guide-companion-step .guide-step-head { display: block; margin-bottom: 10px; }
.guide-companion-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.guide-comp-item { position: relative; cursor: pointer; }
.guide-comp-item input { position: absolute; opacity: 0; pointer-events: none; }
.guide-comp-card { display: grid; justify-items: center; gap: 3px; padding: 9px 4px 8px; border-radius: 16px; background: #fffdf7; border: 1.5px solid #e5d8b8; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease; text-align: center; }
.guide-comp-card img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--tint, #eef3df); }
.guide-comp-card b { font-size: 13.5px; color: var(--ink); }
.guide-comp-card small { font-size: 11px; color: var(--ink3); line-height: 1.2; }
.guide-comp-item input:checked + .guide-comp-card { background: linear-gradient(180deg, #f3f9e8, #e8f3d8); border-color: var(--green); box-shadow: 0 0 0 2.5px rgba(75, 125, 58, .18); transform: translateY(-2px); }

/* 访客只读树预览卡片 & 餐食详情领地按钮 */
.guest-tree-sheet { display: grid; gap: 12px; }
.guest-tree-head { display: flex; align-items: center; gap: 12px; }
.guest-tree-head h3 { font: 800 18px/1.25 var(--serif); }
.guest-tree-stage { border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #eef2dc, #dce5c5); padding: 6px; }
.guest-tree-stage svg { display: block; width: 100%; max-height: 250px; }
.guest-branch-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.guest-detail-cta { margin-top: 6px; }

/* 新手空田暖心引导 & 换机补密轻提示 */
.starter-feed { display: grid; gap: 12px; padding: 6px 2px; }
.starter-title { font-size: 14.5px; line-height: 1.6; color: var(--ink); font-weight: 600; }
.starter-actions { display: grid; gap: 8px; }
.starter-actions .btn { display: flex; align-items: center; justify-content: center; gap: 7px; }
.field-pw-hint { margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 250, 234, .85); border: 1px dashed #d9c28a; color: #6c5321; font-size: 12.5px; font-weight: 600; }

/* 记一餐双模式切换、文字示例、等待返回与播撒晒图 */
.record-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; padding: 4px; border-radius: 16px; background: #efe6cf; }
.record-mode-tabs button { min-height: 42px; border-radius: 13px; font-size: 14px; font-weight: 800; color: var(--ink2); display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.record-mode-tabs button.on { background: #fffdf7; color: var(--green-d); box-shadow: 0 3px 10px -4px rgba(56, 38, 12, .25); }
.record-note-fold { margin-top: 10px; border-radius: 14px; background: #f8f1df; border: 1px dashed #dacaa2; padding: 9px 12px; }
.record-note-fold summary { font-size: 13px; font-weight: 700; color: var(--ink2); cursor: pointer; }
.record-note-fold input { width: 100%; margin-top: 8px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: #fffdf8; }
.quick-examples { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 0 10px; }
.quick-ex-chip { padding: 6px 11px; border-radius: 99px; background: #f4ecda; border: 1px solid #dfd1b0; font-size: 12.5px; font-weight: 600; color: var(--ink); transition: background .15s ease, border-color .15s ease; }
.quick-ex-chip:hover { background: #ece1c6; border-color: #c7b285; }
.wait-dock-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; width: 100%; align-items: stretch; }
.wait-dock-row .dock-save { display: flex; align-items: center; justify-content: center; padding: 0 14px; white-space: nowrap; }
.agent-convert-bar { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.sow-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.sow-actions .btn { display: flex; align-items: center; justify-content: center; gap: 6px; }
.sow-actions .btn[hidden] + .btn { grid-column: 1 / -1; }
.sow-wx-tip { margin-top: 10px; padding: 9px 12px; border-radius: 13px; background: #f7f0dd; border: 1px solid #e5d6b1; font-size: 12.5px; color: #5b4928; text-align: center; line-height: 1.5; }

@media (max-width: 480px) {
  .guide-companion-grid { gap: 6px; }
  .guide-comp-card { padding: 7px 3px; }
  .guide-comp-card img { width: 40px; height: 40px; }
  .sow-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .lantern, .firefly, .tree-rays, .iso-invite-post, .trial-spinner,
  .hw-hud-pulse, .hw-laser, .hw-reticle, .hw-lens-card, .hw-af-item, .hw-af-item.is-running .hw-af-dot,
  .step-mascot-svg .ms-body, .step-mascot-svg .ms-sprout, .step-mascot-svg .ms-pointer, .step-mascot-svg .ms-key, .step-mascot-svg .ms-badge, .guide-bubble.is-pop { animation: none; }
}
