/* ============================================================
   立铠绿洲 · 视觉样式
   取色自活动主 KV：天空蓝 / 薄荷绿 / 湖水青 / 阳光金
   ============================================================ */
:root {
  --sky: #7FD3F4;
  --sky-2: #CFF2FB;
  --mint: #E9FBF4;
  --teal: #12A7B5;
  --teal-d: #0B7F8C;
  --deep: #0C5A52;
  --forest: #1D5B3B;
  --leaf: #57B36A;
  --lime: #A9DA6B;
  --gold: #E2AE48;
  --gold-2: #F8DC8E;
  --ink: #0E3B34;
  --ink-2: #4C7169;
  --ink-3: #7C9A93;
  --line: rgba(14, 59, 52, .10);
  --glass: rgba(255, 255, 255, .62);
  --glass-2: rgba(255, 255, 255, .82);
  --shadow: 0 12px 34px rgba(12, 74, 66, .12);
  --shadow-s: 0 4px 14px rgba(12, 74, 66, .10);
  --r-l: 26px;
  --r-m: 20px;
  --r-s: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --app-w: 440px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #0b2a28;
  min-height: 100vh;
  overflow-x: hidden;
}
button, input, textarea { font-family: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; }
input, textarea { outline: none; }

/* 桌面端氛围背景 */
.backdrop {
  position: fixed; inset: 0;
  background-image: url(../img/kv-blur.jpg);
  background-size: cover; background-position: center;
  filter: saturate(1.05);
}
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 10%, rgba(255,255,255,.18), rgba(6,40,38,.55));
}

/* 应用容器：移动端全屏，桌面端手机框 */
.app {
  position: relative;
  width: 100%; max-width: var(--app-w);
  margin: 0 auto;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  min-height: 480px;
  background: #F4FCF9;
  overflow: hidden;
  isolation: isolate;
  overscroll-behavior: none;
}
@media (min-width: 820px) and (min-height: 640px) {
  .app {
    margin: 24px auto;
    height: calc(100dvh - 48px);
    min-height: 0;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(4, 38, 36, .45), 0 0 0 1px rgba(255,255,255,.12);
  }
}

/* 页面 */
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .32s ease, transform .32s cubic-bezier(.2,.7,.3,1), visibility .32s;
  overflow: hidden;
}
.screen.is-active { opacity: 1; visibility: visible; transform: none; }
.screen.is-leaving { opacity: 0; transform: translateY(-6px); }

.scroll {
  flex: 1; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar { display: none; }

.pad { padding: 0 22px; }

/* -------------------------------------------------------------- 通用件 */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px;
  border-radius: 999px;
  font-size: 16px; font-weight: 700; letter-spacing: .04em;
  transition: transform .18s ease, box-shadow .25s ease, opacity .2s;
  user-select: none;
}
.btn:active { transform: scale(.975); }
.btn-primary {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, #1F7A52 0%, #12A7B5 62%, #37C6C9 100%);
  box-shadow: 0 12px 26px rgba(10, 110, 120, .30), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.22), transparent 55%);
  pointer-events: none;
}
.btn-primary:disabled { opacity: .45; box-shadow: none; }
.btn-ghost {
  width: 100%;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.85);
  color: var(--deep);
  box-shadow: var(--shadow-s);
  backdrop-filter: blur(12px);
}
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-gold {
  background: linear-gradient(135deg, #E8B44C, #F7DC8E);
  color: #5A3B08;
  box-shadow: 0 10px 22px rgba(191, 143, 44, .28);
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow);
}

.card {
  background: #fff;
  border-radius: var(--r-m);
  box-shadow: var(--shadow-s);
  border: 1px solid rgba(255,255,255,.9);
}

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 11px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: rgba(18, 167, 181, .10);
  color: var(--teal-d);
}
.chip-gold { background: rgba(226, 174, 72, .16); color: #8A5F12; }
.chip-green { background: rgba(87, 179, 106, .14); color: #2C7A45; }

/* 顶部导航 */
.nav {
  position: relative; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 12px;
  flex: 0 0 auto;
}
.nav .title { font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.nav .sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.icon-btn {
  width: 38px; height: 38px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-s);
  backdrop-filter: blur(10px);
  color: var(--deep);
  transition: transform .18s;
}
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 20px; height: 20px; }

/* -------------------------------------------------------------- 加载页 */
#s-boot {
  background: linear-gradient(170deg, #BEE9FA 0%, #E4FAF3 55%, #F7FEFC 100%);
  align-items: center; justify-content: center;
}
.boot-inner { position: relative; display: grid; place-items: center; gap: 26px; }
.boot-leaf {
  width: 96px; height: 96px; position: relative;
  display: grid; place-items: center;
}
.boot-leaf svg { width: 70px; height: 70px; animation: sway 3.6s ease-in-out infinite; transform-origin: 50% 90%; }
.boot-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(18,167,181,.22);
  animation: ripple 2.6s ease-out infinite;
}
.boot-ring:nth-child(2) { animation-delay: .9s; }
@keyframes ripple {
  0% { transform: scale(.72); opacity: .8; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
.boot-title { font-size: 15px; letter-spacing: .5em; color: var(--deep); opacity: .8; padding-left: .5em; }
.boot-bar { width: 132px; height: 3px; border-radius: 3px; background: rgba(12,90,82,.12); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 40%; border-radius: 3px; background: linear-gradient(90deg, #7FD3F4, #12A7B5); animation: load 1.4s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }

/* -------------------------------------------------------------- 首页 */
#s-home { background: #BFE9F8; }
.home-bg {
  position: absolute; inset: 0;
  background-image: url(../img/kv.jpg);
  background-size: cover;
  background-position: 74% 42%;
  transform: scale(1.02);
  animation: kb 26s ease-in-out infinite alternate;
}
@keyframes kb {
  0% { transform: scale(1.02) translate3d(0,0,0); }
  100% { transform: scale(1.09) translate3d(-1.4%, -1.2%, 0); }
}
.home-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,48,62,.40) 0%, rgba(6,48,62,0) 26%),
    linear-gradient(0deg, rgba(4,44,52,.78) 0%, rgba(4,44,52,.42) 26%, rgba(4,44,52,.05) 52%, rgba(4,44,52,0) 64%);
}
.home-top {
  position: relative; z-index: 3;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 0;
}
.logo-chip {
  background: rgba(255,255,255,.92);
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 8px 20px rgba(5,45,60,.18);
}
.logo-chip img { height: 32px; width: auto; }
.anniv { position: relative; width: 62px; filter: drop-shadow(0 6px 14px rgba(90,60,0,.28)); }
.anniv img { width: 100%; }
.anniv::after {
  content: "30 周年"; position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%);
  font-size: 9px; letter-spacing: .12em; color: #FFF3D2; white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
}

.home-body {
  position: relative; z-index: 3;
  margin-top: auto;
  padding: 26px 22px calc(22px + var(--safe-b));
}
.home-body::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: -30px;
  background: linear-gradient(0deg, rgba(4,38,44,.68) 0%, rgba(4,38,44,.46) 46%, rgba(4,38,44,.06) 100%);
  z-index: -1;
  pointer-events: none;
}
.home-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .22em; color: #EAFBF4;
  text-shadow: 0 2px 10px rgba(0,40,40,.5);
  margin-bottom: 12px;
}
.home-kicker::before { content: ""; width: 26px; height: 1px; background: rgba(234,251,244,.7); }
.home-title {
  margin: 0;
  font-size: 40px; line-height: 1.16; font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
  text-shadow: 0 6px 24px rgba(3,52,60,.45), 0 2px 4px rgba(3,52,60,.35);
}
.home-title span { display: block; }
.home-title em {
  font-style: normal;
  color: #FFE3A8;
  text-shadow: 0 2px 3px rgba(50,28,0,.55), 0 6px 20px rgba(70,40,0,.45);
  filter: drop-shadow(0 0 18px rgba(255,220,150,.35));
}
.home-sub {
  margin: 12px 0 22px;
  font-size: 14px; letter-spacing: .1em; color: rgba(255,255,255,.9);
  text-shadow: 0 2px 10px rgba(0,40,40,.5);
}
.home-cta {
  border-radius: 24px;
  padding: 16px 16px 14px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.38);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(2,40,44,.28);
}
.home-cta .btn-primary {
  height: 54px; font-size: 17px;
  box-shadow: 0 14px 30px rgba(6,100,110,.45), inset 0 1px 0 rgba(255,255,255,.4);
  animation: breathe 3.4s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 14px 30px rgba(6,100,110,.42), 0 0 0 0 rgba(111,220,225,.35), inset 0 1px 0 rgba(255,255,255,.4); }
  50% { box-shadow: 0 16px 34px rgba(6,100,110,.5), 0 0 0 12px rgba(111,220,225,0), inset 0 1px 0 rgba(255,255,255,.4); }
}
.home-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.85);
}
.home-links { display: flex; gap: 14px; }
.home-links button { font-size: 12px; color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }

.home-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: #EAFFF6;
  background: rgba(9,80,70,.35);
  border: 1px solid rgba(255,255,255,.22);
  padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(8px);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: #7FE3A8; box-shadow: 0 0 8px #7FE3A8; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* -------------------------------------------------------------- 表单页 */
#s-sign { background: linear-gradient(175deg, #D9F3FB 0%, #EFFBF6 42%, #F7FEFB 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .55; pointer-events: none; }
.blob.b1 { width: 260px; height: 260px; background: #A9E6D6; top: -60px; right: -70px; }
.blob.b2 { width: 220px; height: 220px; background: #CDE9A9; bottom: 60px; left: -90px; opacity: .45; }
.sign-art {
  position: absolute; right: -56px; bottom: 74px; width: 300px;
  opacity: .07; pointer-events: none; z-index: 1;
  filter: blur(1.4px) saturate(.85);
}

.sign-head { padding: 6px 24px 0; position: relative; z-index: 2; }
.step-line { display: flex; align-items: center; gap: 8px; margin: 6px 0 18px; }
.step-line i { height: 4px; border-radius: 4px; background: rgba(12,90,82,.14); flex: 1; }
.step-line i.on { background: linear-gradient(90deg, #57B36A, #12A7B5); }
.sign-head h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: .04em; }
.sign-head p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.7; }

.form { padding: 22px 24px 0; position: relative; z-index: 2; }
.field { position: relative; margin-bottom: 16px; }
.field label {
  display: block; font-size: 12px; font-weight: 600; color: var(--ink-2);
  margin-bottom: 8px; letter-spacing: .04em;
}
.field input {
  width: 100%; height: 54px;
  padding: 0 16px;
  font-size: 16px;
  color: var(--ink);
  background: rgba(255,255,255,.78);
  border: 1.5px solid rgba(12,90,82,.12);
  border-radius: var(--r-s);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder { color: #A9C0BA; }
.field input:focus {
  border-color: #35B9C4;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(18,167,181,.12);
}
.field.has-error input { border-color: #E08B7A; box-shadow: 0 0 0 4px rgba(224,139,122,.12); }
.field .err { margin-top: 7px; font-size: 12px; color: #C4654F; display: none; }
.field.has-error .err { display: block; }
.field .hint { margin-top: 7px; font-size: 11px; color: var(--ink-3); }

.sign-flow {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 24px 0; position: relative; z-index: 2;
}
.flow-step {
  flex: 1;
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
}
.flow-step i { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .12em; color: #8FB3AB; }
.flow-step b { font-size: 12px; font-weight: 700; color: var(--ink); }
.flow-step span { font-size: 10px; color: var(--ink-3); }
.flow-arrow { color: #A8C6BE; flex: 0 0 auto; }
.flow-arrow svg { width: 14px; height: 14px; }

.sign-foot { padding: 8px 24px calc(20px + var(--safe-b)); margin-top: auto; position: relative; z-index: 2; }
.sign-note {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 11px; line-height: 1.7; color: var(--ink-3);
  margin-bottom: 14px;
}
.sign-note svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 2px; }

/* -------------------------------------------------------------- 选植物 */
#s-plants { background: #F3FBF8; }
.plants-top {
  padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 10px;
  background: linear-gradient(180deg, #E7F8F6 0%, rgba(243,251,248,0) 100%);
}
.plants-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  padding: 4px 20px 16px;
}
.pcard {
  position: relative;
  border-radius: 20px;
  padding: 10px 10px 12px;
  background: rgba(255,255,255,.86);
  border: 1.5px solid rgba(255,255,255,.9);
  box-shadow: 0 6px 18px rgba(12,74,66,.07);
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s, border-color .22s;
  overflow: hidden;
}
.pcard::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(127,211,240,.20), transparent 70%);
  opacity: 0; transition: opacity .25s;
}
.pcard:active { transform: scale(.975); }
.pcard .thumb { position: relative; height: 96px; display: flex; align-items: flex-end; justify-content: center; }
.pcard .thumb img { height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(20,90,60,.18)); }
.pcard .name { margin-top: 6px; font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.pcard .tag { margin-top: 3px; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .no { position: absolute; top: 10px; left: 12px; font-size: 10px; color: #B7CFC9; font-weight: 700; letter-spacing: .1em; }
.pcard.on {
  border-color: #F0C568;
  box-shadow: 0 0 0 2px rgba(240,197,104,.55), 0 14px 30px rgba(206,160,60,.22);
  transform: translateY(-2px);
}
.pcard.on::before { opacity: 1; }
.pcard .check {
  position: absolute; top: 9px; right: 9px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #F2C463, #E2A63C);
  color: #fff; font-size: 12px;
  opacity: 0; transform: scale(.5); transition: .25s;
  box-shadow: 0 4px 10px rgba(200,150,50,.4);
}
.pcard.on .check { opacity: 1; transform: none; }

.plants-bar {
  flex: 0 0 auto;
  padding: 12px 20px calc(14px + var(--safe-b));
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(12,90,82,.06);
  box-shadow: 0 -8px 24px rgba(12,74,66,.06);
}
.plants-bar .picked { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 12px; color: var(--ink-2); }
.plants-bar .picked b { color: var(--ink); font-size: 13px; }

/* -------------------------------------------------------------- 成长报告 */
#s-report { background: #F4FBF8; }
.report-hero {
  position: relative;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 16px;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
  background: linear-gradient(160deg, #CDEFF7 0%, #DCF6EC 52%, #EFFCF7 100%);
}
.report-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 320px;
  background: radial-gradient(60% 70% at 50% 0%, rgba(255,255,255,.95), rgba(255,255,255,0) 70%);
}
.report-hero .who {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--deep);
  padding-right: 46px;
}
.report-home {
  position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 18px;
  z-index: 4; width: 34px; height: 34px;
}
.report-hero .who b { font-weight: 700; }
.report-hero .who .id { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rp-sub {
  position: relative;
  margin-top: 6px; padding-right: 46px;
  font-size: 11px; letter-spacing: .04em; color: var(--ink-3);
}

.stage-box {
  position: relative;
  height: 224px;
  display: grid; place-items: center;
  margin: 6px 0 0;
}
.stage-glow {
  position: absolute; width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(180,236,220,.55) 45%, rgba(180,236,220,0) 72%);
  filter: blur(2px);
}
.stage-img {
  position: relative; height: 206px; width: auto;
  filter: saturate(1.06) contrast(1.04) drop-shadow(0 18px 26px rgba(20,90,60,.26));
  animation: swayPlant 5s ease-in-out infinite;
  transform-origin: 50% 92%;
  transition: opacity .45s ease;
}
@keyframes swayPlant {
  0%, 100% { transform: rotate(-1.2deg); }
  50% { transform: rotate(1.2deg); }
}
.stage-chip {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,.86);
  font-size: 11px; font-weight: 700; color: var(--deep);
  box-shadow: var(--shadow-s);
}

.timer-block { position: relative; padding: 0 20px; margin-top: 6px; }
.timer-num {
  display: flex; align-items: baseline; justify-content: center; gap: 6px;
  font-variant-numeric: tabular-nums;
}
.timer-num b { font-size: 30px; letter-spacing: .02em; font-weight: 800; color: var(--deep); }
.timer-num span { font-size: 11px; color: var(--ink-3); letter-spacing: .1em; }
.timer-label { text-align: center; font-size: 11px; color: var(--ink-3); margin-top: 4px; }

.segbar { margin: 16px 0 0; }
.segbar-track {
  position: relative; height: 8px; border-radius: 8px;
  background: rgba(12,90,82,.10);
  overflow: hidden;
}
.segbar-fill {
  height: 100%; width: 0%;
  border-radius: 8px;
  background: linear-gradient(90deg, #8FD98A, #57B36A 40%, #12A7B5 100%);
  transition: width .9s cubic-bezier(.3,.8,.3,1);
  box-shadow: 0 0 12px rgba(87,179,106,.5);
}
.segbar-marks { display: flex; justify-content: space-between; margin-top: 8px; }
.segbar-marks span { font-size: 10px; color: var(--ink-3); letter-spacing: .04em; }
.segbar-marks span.on { color: var(--deep); font-weight: 700; }

.report-actions { display: flex; gap: 10px; margin: 18px 20px 0; }
.report-actions .btn { flex: 1; }
.report-actions .btn-ghost { flex: 0 0 42%; }

.knowledge { padding: 22px 20px 30px; }
.knowledge h3 {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 12px; font-size: 15px; letter-spacing: .04em;
}
.knowledge h3::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, #57B36A, #12A7B5); }
.acc { border-radius: 16px; background: #fff; box-shadow: var(--shadow-s); overflow: hidden; margin-bottom: 10px; }
.acc-head {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 16px;
  font-size: 14px; font-weight: 600;
}
.acc-head .ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(87,179,106,.12); color: #2F7A48; font-size: 12px; font-weight: 800; }
.acc-head .arrow { margin-left: auto; transition: transform .28s; color: var(--ink-3); }
.acc.open .acc-head .arrow { transform: rotate(90deg); }
.acc-body {
  max-height: 0; overflow: hidden;
  transition: max-height .34s cubic-bezier(.3,.8,.3,1);
}
.acc-body p { margin: 0; padding: 0 16px 16px 52px; font-size: 13px; line-height: 1.85; color: var(--ink-2); }
.acc.open .acc-body { max-height: 240px; }

/* -------------------------------------------------------------- 绿洲全景 */
#s-oasis { background: linear-gradient(180deg, #A9DEF5 0%, #CFF0F6 42%, #E8F9EF 66%, #DCF3DB 100%); }
.oasis-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 40% at 78% 12%, rgba(255,244,200,.75), rgba(255,244,200,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 30%);
  pointer-events: none;
}
.oasis-hills {
  position: absolute; left: -10%; right: -10%; bottom: 40%;
  height: 240px; opacity: .6; z-index: 2;
  background:
    radial-gradient(34% 100% at 10% 100%, #6FB582 0%, rgba(111,181,130,0) 70%),
    radial-gradient(40% 100% at 40% 100%, #83C58F 0%, rgba(131,197,143,0) 72%),
    radial-gradient(38% 100% at 72% 100%, #78BC88 0%, rgba(120,188,136,0) 70%),
    radial-gradient(30% 100% at 94% 100%, #6FB582 0%, rgba(111,181,130,0) 70%);
  filter: blur(6px);
}
.oasis-field {
  position: absolute; left: -12%; right: -12%; bottom: 0; height: 58%;
  background: linear-gradient(180deg, #D2EDB2 0%, #B8E294 30%, #9BD179 68%, #7CBB61 100%);
  border-radius: 50% 50% 0 0 / 11% 11% 0 0;
  box-shadow: inset 0 12px 40px rgba(255,255,255,.35), inset 0 -30px 60px rgba(40,110,50,.12);
  overflow: hidden; z-index: 1;
}
.oasis-field::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(255,255,255,.55), transparent 70%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.028) 0 44px, rgba(255,255,255,0) 44px 88px),
    radial-gradient(30% 50% at 18% 78%, rgba(255,255,255,.22), transparent 70%),
    radial-gradient(36% 60% at 82% 88%, rgba(255,255,255,.16), transparent 70%);
}

.oasis-nav { position: relative; z-index: 6; }
.oasis-count {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  font-size: 12px; color: var(--deep);
  box-shadow: var(--shadow-s);
}
.oasis-count b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.oasis-count em { font-style: normal; font-size: 11px; color: var(--ink-3); }

.oasis-viewport {
  position: absolute; inset: 0;
  overflow: hidden;
  touch-action: pan-y;
  z-index: 3;
}
.oasis-canvas {
  position: absolute; left: 0; top: 0;
  width: 1500px; height: 100%;
  will-change: transform;
}
.plant-node {
  position: absolute;
  transform-origin: 50% 100%;
  transition: filter .25s;
  will-change: transform;
}
.plant-node img { width: 100%; height: auto; filter: saturate(1.18) contrast(1.20) brightness(.97) drop-shadow(0 0 1px rgba(10,50,26,.5)) drop-shadow(0 9px 12px rgba(16,64,36,.24)); pointer-events: none; }
.plant-node::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  width: 46%; height: 6px; border-radius: 50%;
  background: rgba(30,90,50,.16); filter: blur(3px);
}
.plant-node.mine { z-index: 40; }
.plant-node.mine img { filter: drop-shadow(0 0 18px rgba(255,220,140,.95)) drop-shadow(0 8px 12px rgba(20,80,40,.25)); }
.mine-ring {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 42%);
  width: 120%; aspect-ratio: 1 / .42;
  border-radius: 50%;
  border: 2px solid rgba(255,214,130,.9);
  box-shadow: 0 0 24px rgba(255,214,130,.65), inset 0 0 18px rgba(255,214,130,.35);
  animation: ringPulse 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ringPulse {
  0%, 100% { opacity: .55; transform: translate(-50%, 42%) scale(.92); }
  50% { opacity: 1; transform: translate(-50%, 42%) scale(1.04); }
}
.plant-node .spark {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: #FFF2C4; box-shadow: 0 0 10px 2px rgba(255,225,150,.9);
  animation: sparkle 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(.4); }
  50% { opacity: 1; transform: scale(1); }
}

.oasis-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 7;
  padding: 10px 16px calc(14px + var(--safe-b));
  display: flex; gap: 10px; align-items: center;
  background: linear-gradient(0deg, rgba(232,251,240,.92), rgba(232,251,240,0));
}
.oasis-bottom .btn { height: 46px; flex: 1; font-size: 14px; }

.oasis-legend {
  position: absolute; top: 92px; right: 16px; z-index: 5;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
}
.legend-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--deep);
  background: rgba(255,255,255,.5);
  padding: 3px 9px; border-radius: 999px;
  backdrop-filter: blur(8px);
}
.legend-item i { width: 8px; height: 8px; border-radius: 50%; }

/* 底部弹层 */
.sheet-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(6,40,38,.42);
  opacity: 0; visibility: hidden; transition: .28s;
  backdrop-filter: blur(2px);
}
.sheet-mask.on { opacity: 1; visibility: visible; }
.sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 91;
  width: 100%; max-width: var(--app-w);
  transform: translate(-50%, 100%);
  transition: transform .34s cubic-bezier(.2,.8,.3,1);
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 8px 22px calc(24px + var(--safe-b));
  box-shadow: 0 -12px 40px rgba(6,40,38,.18);
  max-height: 76vh; overflow-y: auto;
}
.sheet.on { transform: translate(-50%, 0); }
.sheet .grab { width: 38px; height: 4px; border-radius: 4px; background: #E3EEEA; margin: 6px auto 16px; }

/* -------------------------------------------------------------- 海报 */
#s-poster { background: #0E2E2A; }
.poster-wrap {
  flex: 1; display: grid; place-items: center;
  padding: 10px 20px;
  overflow: auto;
}
#posterCanvas, #posterImg {
  width: 100%; max-width: 360px; height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
#posterImg { -webkit-touch-callout: default; user-select: auto; }
.poster-tip {
  text-align: center; font-size: 12px; color: rgba(255,255,255,.7);
  padding: 0 24px 10px; line-height: 1.7;
}
.poster-actions { padding: 6px 20px calc(20px + var(--safe-b)); display: flex; gap: 10px; }
.poster-actions .btn-primary { flex: 1; }
.poster-actions .btn-ghost { flex: 0 0 46%; background: rgba(255,255,255,.12); color: #DFF7EF; border-color: rgba(255,255,255,.25); }

/* -------------------------------------------------------------- 管理端 */
#s-admin { background: #F2F7F6; }
.gate {
  flex: 1; display: grid; place-items: center; padding: 24px;
}
.gate-box { width: 100%; max-width: 320px; text-align: center; }
.gate-box h2 { font-size: 20px; margin: 0 0 6px; }
.gate-box p { font-size: 12px; color: var(--ink-3); margin: 0 0 22px; line-height: 1.7; }
.pin { display: flex; gap: 10px; justify-content: center; margin-bottom: 18px; }
.pin input {
  width: 46px; height: 56px; text-align: center; font-size: 22px; font-weight: 700;
  border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--deep);
}
.pin input:focus { border-color: #35B9C4; box-shadow: 0 0 0 4px rgba(18,167,181,.12); }
.gate-err { font-size: 12px; color: #C4654F; height: 16px; margin-bottom: 8px; }

.admin-head {
  padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 0;
}
.admin-head h1 { margin: 0; font-size: 19px; letter-spacing: .04em; }
.admin-head .meta { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.tabs {
  display: flex; gap: 6px; padding: 14px 16px 10px;
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; height: 32px; padding: 0 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9);
}
.tab.on { background: var(--deep); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(12,90,82,.25); }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 4px 16px 0; }
.kpi { background: #fff; border-radius: 18px; padding: 14px 14px 12px; box-shadow: var(--shadow-s); }
.kpi .k { font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.kpi .v { font-size: 26px; font-weight: 800; letter-spacing: .01em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.kpi .t { font-size: 10px; color: var(--ink-3); margin-top: 2px; }

.sec-title { display: flex; align-items: center; justify-content: space-between; padding: 20px 18px 10px; }
.sec-title h3 { margin: 0; font-size: 13px; letter-spacing: .04em; }
.sec-title span { font-size: 11px; color: var(--ink-3); }

.dist { padding: 0 16px 8px; }
.dist-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 12px; }
.dist-row .n { width: 52px; color: var(--ink-2); flex: 0 0 auto; }
.dist-row .bar { flex: 1; height: 8px; border-radius: 8px; background: rgba(12,90,82,.07); overflow: hidden; }
.dist-row .bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #8FD98A, #12A7B5); transition: width .6s; }
.dist-row .p { width: 34px; text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.tbl-wrap { padding: 0 12px 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; background: #fff; border-radius: 16px; overflow: hidden; }
.tbl th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 11px; padding: 10px 8px; background: #F7FBFA; position: sticky; top: 0; }
.tbl td { padding: 10px 8px; border-top: 1px solid #F0F6F4; color: var(--ink-2); }
.tbl td.name { color: var(--ink); font-weight: 600; }
.tbl tr:active { background: #F6FBF9; }
.status-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10px; }
.st-0 { background: rgba(127,211,240,.2); color: #2C7B96; }
.st-1 { background: rgba(87,179,106,.16); color: #2F7A48; }
.st-2 { background: rgba(226,174,72,.2); color: #8A5F12; }

.search-row { padding: 0 16px 12px; display: flex; gap: 8px; }
.search-row input {
  flex: 1 1 auto; min-width: 0; width: 0; height: 40px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; font-size: 13px;
}
.search-row .btn { flex: 0 0 auto; width: auto; }

.setting-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; background: #fff; border-radius: 16px; margin: 0 16px 10px;
  box-shadow: var(--shadow-s);
}
.setting-row .lbl { font-size: 13px; font-weight: 600; }
.setting-row .desc { font-size: 11px; color: var(--ink-3); margin-top: 3px; line-height: 1.5; }
.setting-row input[type="number"] { width: 74px; height: 36px; text-align: center; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.switch { position: relative; width: 46px; height: 27px; border-radius: 999px; background: #DDEAE6; transition: .25s; flex: 0 0 auto; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: .25s; }
.switch.on { background: #35B9C4; }
.switch.on::after { transform: translateX(19px); }

/* -------------------------------------------------------------- 提示 */
#toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px);
  z-index: 200; padding: 11px 18px; border-radius: 14px;
  background: rgba(10, 52, 48, .92); color: #EAFBF4;
  font-size: 13px; opacity: 0; pointer-events: none;
  transition: .28s; max-width: 84vw; text-align: center; line-height: 1.5;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

.modal-mask {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(6,40,38,.5); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: .25s;
}
.modal-mask.on { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 320px;
  background: #fff; border-radius: 22px; padding: 24px 22px 18px;
  text-align: center; transform: scale(.94); transition: transform .28s cubic-bezier(.2,.8,.3,1);
  box-shadow: 0 30px 60px rgba(0,0,0,.3);
}
.modal-mask.on .modal { transform: none; }
.modal h3 { margin: 0 0 8px; font-size: 17px; }
.modal p { margin: 0 0 20px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.modal .row { display: flex; gap: 10px; }
.modal .row .btn { flex: 1; height: 46px; font-size: 14px; }

/* 小工具 */
.hidden { display: none !important; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.tiny { font-size: 11px; }

/* 预览/截图模式：关掉动效，保证 1:1 静帧 */
.no-anim *, .no-anim *::before, .no-anim *::after {
  animation: none !important;
  transition: none !important;
}

@media (max-width: 360px) {
  .home-title { font-size: 33px; }
  .home-sub { font-size: 13px; }
  .home-cta .btn-primary { font-size: 15px; padding: 0 14px; }
  .kpis { grid-template-columns: 1fr; }
  .report-actions .btn-ghost { flex: 0 0 40%; padding: 0 10px; font-size: 14px; }
  .report-actions .btn-primary { padding: 0 12px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
}
