/* ============================================================
   温室门厅 · 共用基底（登录台、首页、门厅三页共用）
   纸张、苔绿、黏土赭与手绘枝蔓；昼为可选，夜为默认
   ============================================================ */

:root{
  color-scheme: light;
  --paper:      #f2ede1;
  --paper-hi:   #faf6ec;
  --paper-lo:   #e8e0cf;
  --ink:        #2b2a22;
  --ink-2:      #5d5a4c;
  --ink-3:      #8d8776;
  --moss:       #4c6b4f;
  --moss-deep:  #2c4331;
  --accent:     #2c4331;
  --sage:       #a3b58c;
  --clay:       #b26a45;
  --bark:       #6c5847;
  --line:       rgba(60, 66, 50, .13);
  --line-2:     rgba(60, 66, 50, .26);
  --sheen:      rgba(255, 255, 255, .5);
  --shadow-1:   0 1px 2px rgba(44,52,38,.05), 0 10px 22px -16px rgba(44,52,38,.28);
  --shadow-2:   0 2px 4px rgba(44,52,38,.05), 0 34px 64px -34px rgba(44,52,38,.42);
  --on-moss:    #f7f2e6;
  --ok:         #4c8a53;
  --warn:       #b26a45;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia,
           "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --kai:   "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", "Noto Serif SC", serif;
  --sans:  "Optima", "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono:  "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas, "Courier New", monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
  --card-w: 420px;
}

html[data-theme="dark"]{
  color-scheme: dark;
  --paper:     #191e18;
  --paper-hi:  #232a21;
  --paper-lo:  #12160f;
  --ink:       #e9e3d3;
  --ink-2:     #b4ae9d;
  --ink-3:     #85816f;
  --moss:      #93b189;
  --moss-deep: #34503a;
  --accent:    #9db894;
  --sage:      #7d9068;
  --clay:      #cf8a62;
  --bark:      #a68e78;
  --line:      rgba(215, 220, 200, .12);
  --line-2:    rgba(215, 220, 200, .24);
  --sheen:     rgba(255, 255, 255, .06);
  --shadow-1:  0 1px 2px rgba(0,0,0,.3), 0 10px 22px -16px rgba(0,0,0,.6);
  --shadow-2:  0 2px 4px rgba(0,0,0,.3), 0 34px 64px -34px rgba(0,0,0,.8);
  --ok:        #8fc08a;
  --warn:      #cf8a62;
}

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

body{
  margin: 0;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}

a{ color: inherit; }

/* ---------- 纸纹与底噪 ---------- */
.grain{
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .05;
  background-image: radial-gradient(rgba(70,60,40,.55) .6px, transparent .7px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
}
html[data-theme="dark"] .grain{ opacity: .07; mix-blend-mode: screen; }

.atmosphere{ position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.atmosphere span{
  position: absolute;
  border-radius: 50% 46% 52% 48% / 48% 52% 46% 54%;
  filter: blur(60px);
  opacity: .5;
}
.atmosphere .blob--sage{ width: 46vw; height: 46vw; left: -12vw; top: -10vw; background: var(--sage); }
.atmosphere .blob--clay{ width: 34vw; height: 34vw; right: -10vw; bottom: -12vw; background: var(--clay); opacity: .28; }
html[data-theme="dark"] .atmosphere span{ opacity: .22; }

/* ---------- 昼夜开关 ---------- */
.theme{
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 70;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50% 46% 52% 48% / 48% 52% 46% 54%;
  background: var(--paper-hi);
  color: var(--accent);
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: transform .4s var(--ease), border-color .3s, background .3s;
}
.theme:hover{ transform: rotate(12deg); border-color: var(--moss); }
.theme:focus-visible{ outline: 2px solid var(--moss); outline-offset: 3px; }
.theme svg{ width: 18px; height: 18px; position: absolute; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.theme__moon{ opacity: 0; transform: rotate(-30deg); }
html[data-theme="dark"] .theme__sun{ opacity: 0; transform: rotate(30deg); }
html[data-theme="dark"] .theme__moon{ opacity: 1; transform: none; }

/* ---------- 品牌字标 ---------- */
.mark{ display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--accent); }
.mark__leaf{ display: grid; place-items: center; width: 34px; height: 34px; color: var(--moss); transition: transform .5s var(--ease); }
.mark:hover .mark__leaf{ transform: rotate(-8deg) scale(1.06); }
.mark__leaf svg{ width: 100%; height: 100%; }
.mark__name{
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
  letter-spacing: .34em;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.mark__name small{
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: .16em;
  font-weight: 400;
  color: var(--ink-3);
}

/* ---------- 通用按钮 ---------- */
.btn{
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 47px;
  padding: 12px 18px;
  border: 0;
  border-radius: 15px 17px 16px 18px / 17px 15px 18px 16px;
  background: var(--moss-deep);
  color: var(--on-moss);
  font: inherit;
  font-size: 14.5px;
  letter-spacing: .12em;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: background .3s, transform .2s var(--ease), box-shadow .3s;
  text-decoration: none;
}
.btn:hover{ background: var(--moss); transform: translateY(-1px); }
.btn:active{ transform: translateY(1px) scale(.996); }
.btn:focus-visible{ outline: 2px solid var(--moss); outline-offset: 3px; }
.btn[disabled]{ opacity: .55; pointer-events: none; }
.btn--ghost{
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  box-shadow: none;
}
.btn--ghost:hover{ background: rgba(76,107,79,.08); color: var(--accent); box-shadow: none; }
.btn--mail{
  display: flex;
  text-align: center;
  text-decoration: none;
  letter-spacing: .14em;
}

/* ---------- 卡片 ---------- */
.sheet{
  background: var(--paper-hi);
  border: 1px solid var(--line);
  border-radius: 18px 20px 19px 21px / 20px 18px 21px 19px;
  box-shadow: var(--shadow-1);
}

/* 虚线“苗床”块 */
.seedling{
  position: relative;
  padding: 22px 20px 20px;
  border: 1px dashed var(--line-2);
  border-radius: 16px 18px 17px 19px / 18px 16px 19px 17px;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(163,181,140,.16), transparent 62%),
    var(--paper);
}
.seedling::before{
  content: "";
  position: absolute;
  top: -7px;
  left: 22px;
  width: 44px;
  height: 13px;
  background: rgba(163,181,140,.35);
  border-radius: 2px;
  transform: rotate(-2.4deg);
}
.seedling__eyebrow{
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--clay);
}
.seedling__title{
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: .02em;
}
.seedling__title .kai{ font-family: var(--kai); color: var(--clay); font-style: normal; }
.seedling__text{
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}
.seedling__meta,
.seedling__sign{
  margin: 0;
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--ink-3);
}
.seedling__sign{ margin-top: 12px; text-align: center; }

/* ---------- 页脚 ---------- */
.foot{
  padding: 26px clamp(20px, 4vw, 56px) 34px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
}
.foot a{ text-underline-offset: 3px; }
.foot__links{ display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- 小工具 ---------- */
.eyebrow{
  margin: 0;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clay);
}
.kai{ font-family: var(--kai); font-style: normal; }
.muted{ color: var(--ink-3); }
.pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-2);
}
.pill--ok{ color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.pill--warn{ color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

@media (max-width: 720px){
  .theme{ top: 12px; right: 12px; width: 34px; height: 34px; }
  .foot{ justify-content: flex-start; }
}

/* ---------- 通用小件 ---------- */
.link{
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
}
.link:hover{ color: var(--accent); border-bottom-color: var(--accent); }

.btn--sm{
  padding: 9px 18px;
  font-size: 12.5px;
  letter-spacing: .06em;
}

.sr{
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
