/* ============================================================
   植遇 · 界面样式
   视觉语言沿用「植遇」原型的纸感底色 + 水彩绿，
   但布局改成真正的应用结构：不套手机外壳，移动端满屏、桌面居中成列。
   ============================================================ */

:root{
  --ink:#232320;
  --ink-2:#4A4A44;
  --ink-3:#7C7C73;
  --paper:#F7F2E9;
  --paper-2:#FBF8F2;
  --white:#FFFFFF;
  --line:#E6DFD2;
  --line-2:#D9D2C4;

  --sage:#A9C2A2;
  --sage-l:#DCE8D6;
  --sage-xl:#EEF4EA;
  --sage-d:#5F8564;
  --sage-dd:#3F5F45;

  --apricot:#F0D6C4;
  --apricot-l:#FBF0E7;
  --pink:#EBC8C6;
  --pink-l:#FAEDEC;
  --lilac:#DCD8E2;
  --lilac-l:#F2F1F6;
  --sand:#E7DCCB;
  --amber:#C98A2E;
  --amber-l:#FBF1DF;
  --danger:#B4544A;
  --danger-l:#FAECEA;

  --r-lg:22px;
  --r-md:16px;
  --r-sm:11px;
  --shadow:0 6px 24px rgba(110,100,85,.08);
  --shadow-lg:0 14px 40px rgba(110,100,85,.14);
  --ease:cubic-bezier(.22,.61,.36,1);

  --font:"PingFang SC","HarmonyOS Sans SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  --serif:"Songti SC","Source Han Serif SC","Noto Serif SC",Georgia,serif;
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{
  font-family:var(--font);
  color:var(--ink);
  font-size:14px;
  line-height:1.62;
  min-height:100vh;
  background:
    radial-gradient(58% 40% at 18% 0%, #F4F0E7, rgba(244,240,231,0) 62%),
    radial-gradient(52% 42% at 92% 8%, #EBE4D8, rgba(235,228,216,0) 62%),
    #E7E1D5;
  -webkit-font-smoothing:antialiased;
}
button{font-family:inherit;font-size:inherit;color:inherit;cursor:pointer}
input,select,textarea{font-family:inherit;font-size:inherit;color:inherit}
h1,h2,h3,h4{margin:0;font-weight:600;line-height:1.35}
p{margin:0}
a{color:var(--sage-d)}

/* 行内图标给统一默认尺寸，避免 SVG 按默认 300x150 撑开布局。
   下面两条更具体的选择器分别保护插画和滤镜定义，不受这条影响。 */
svg{width:18px;height:18px;flex:0 0 auto}
.illo-wrap svg,.illo-box svg,.detail-hero svg.illo{width:100%;height:100%}
#vfxDefs{width:0;height:0}

/* ============================================================
   手机外壳（比例与结构参照 UI界面设计/index.html）
   外壳固定 417×876，屏幕 393×852；窗口不够大时由 JS 整体等比缩放。
   ============================================================ */
.zy-stage{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:18px 0 10px}
.stage-tip{margin:14px 0 6px;font-size:12.5px;color:#A79E90;letter-spacing:.06em}
.phone{transform-origin:top center}
.phone-frame{
  position:relative;
  width:417px;height:876px;
  border-radius:60px;
  padding:12px;
  background:linear-gradient(150deg,#E7E6E4 0%,#BDBBB8 32%,#8F8D8B 52%,#C9C7C4 72%,#9E9C99 100%);
  box-shadow:
    0 2px 3px rgba(255,255,255,.85) inset,
    0 -2px 3px rgba(0,0,0,.18) inset,
    0 44px 80px -22px rgba(90,80,66,.45),
    0 6px 18px rgba(90,80,66,.16);
}
.side-btn{
  position:absolute;left:-3px;width:3px;border:0;padding:0;border-radius:2px;
  background:linear-gradient(90deg,#8B8986,#C6C4C1);
}
.sb1{top:172px;height:34px}
.sb2{top:224px;height:60px}
.sb3{top:300px;height:60px}
.screen{
  position:relative;
  width:393px;height:852px;
  border-radius:48px;
  overflow:hidden;
  background:var(--paper);
  box-shadow:0 0 0 1px rgba(0,0,0,.28) inset;
  isolation:isolate;
}

/* ---------------- 弥散水彩底 ---------------- */
.wash-base{
  position:absolute;inset:0;z-index:0;
  background:
    radial-gradient(88% 46% at 50% -4%,  rgba(255,255,255,.98) 0%, rgba(255,255,255,0) 64%),
    radial-gradient(78% 42% at 4% 2%,    rgba(206,229,201,.60) 0%, rgba(206,229,201,0) 62%),
    radial-gradient(72% 40% at 100% 12%, rgba(250,224,208,.56) 0%, rgba(250,224,208,0) 60%),
    radial-gradient(80% 44% at -6% 46%,  rgba(233,235,246,.52) 0%, rgba(233,235,246,0) 62%),
    radial-gradient(86% 44% at 104% 54%, rgba(214,232,212,.58) 0%, rgba(214,232,212,0) 62%),
    radial-gradient(78% 40% at 8% 82%,   rgba(247,226,224,.46) 0%, rgba(247,226,224,0) 62%),
    radial-gradient(90% 42% at 52% 106%, rgba(253,243,229,.60) 0%, rgba(253,243,229,0) 64%),
    linear-gradient(176deg,#FDFCF9 0%,#FAFBF7 34%,#F8F9F4 68%,#F7F8F3 100%);
}
.blobs{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.blob{position:absolute;display:block;border-radius:50%;filter:blur(72px);opacity:.46;mix-blend-mode:multiply}
.blob.b1{width:360px;height:360px;left:-140px;top:-120px;background:radial-gradient(circle at 42% 42%,#D6EBD0,rgba(214,235,208,0) 68%);animation:drift1 30s var(--ease) infinite}
.blob.b2{width:380px;height:380px;right:-160px;top:20px;background:radial-gradient(circle at 50% 50%,#FBE0CC,rgba(251,224,204,0) 68%);animation:drift2 36s var(--ease) infinite}
.blob.b3{width:320px;height:320px;left:-120px;top:330px;background:radial-gradient(circle at 50% 50%,#F6DCD9,rgba(246,220,217,0) 68%);animation:drift3 33s var(--ease) infinite}
.blob.b4{width:400px;height:400px;right:-170px;top:450px;background:radial-gradient(circle at 50% 50%,#DCECD6,rgba(220,236,214,0) 68%);animation:drift2 40s var(--ease) infinite reverse}
.blob.b5{width:300px;height:300px;left:20px;top:620px;background:radial-gradient(circle at 50% 50%,#E8E4F1,rgba(232,228,241,0) 68%);animation:drift1 35s var(--ease) infinite reverse}
.blob.b6{width:300px;height:300px;left:80px;top:150px;background:radial-gradient(circle at 50% 50%,#FDF0DE,rgba(253,240,222,0) 68%);opacity:.36;animation:drift3 31s var(--ease) infinite}
.wash-glow{
  position:absolute;inset:-14%;z-index:2;pointer-events:none;
  mix-blend-mode:screen;opacity:.9;
  background:
    radial-gradient(46% 30% at 26% 10%, rgba(255,255,255,.72) 0%, rgba(255,255,255,0) 72%),
    radial-gradient(40% 26% at 84% 30%, rgba(255,253,247,.52) 0%, rgba(255,253,247,0) 72%),
    radial-gradient(48% 30% at 24% 74%, rgba(255,255,255,.48) 0%, rgba(255,255,255,0) 74%),
    radial-gradient(52% 32% at 78% 96%, rgba(255,252,244,.42) 0%, rgba(255,252,244,0) 74%);
}
.grain{
  position:absolute;inset:0;z-index:90;pointer-events:none;
  opacity:.13;mix-blend-mode:soft-light;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
  background-size:180px 180px;
}
@keyframes drift1{0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(26px,22px,0) scale(1.08)}}
@keyframes drift2{0%,100%{transform:translate3d(0,0,0) scale(1.04)}50%{transform:translate3d(-30px,18px,0) scale(.94)}}
@keyframes drift3{0%,100%{transform:translate3d(0,0,0) scale(.96)}50%{transform:translate3d(18px,-24px,0) scale(1.1)}}

/* ---------------- 状态栏 ---------------- */
.statusbar{
  position:absolute;top:0;left:0;right:0;height:54px;z-index:40;
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 30px 0;font-size:15px;font-weight:600;letter-spacing:.02em;
  pointer-events:none;
}
.sb-right{display:flex;align-items:center;gap:6px}
.sb-right svg:nth-child(1){width:18px;height:12px}
.sb-right svg:nth-child(2){width:16px;height:12px}
.sb-right svg:nth-child(3){width:26px;height:13px}
.island{
  position:absolute;top:11px;left:50%;transform:translateX(-50%);
  width:118px;height:35px;border-radius:20px;background:#111;z-index:45;
  box-shadow:0 0 0 .5px rgba(255,255,255,.06);
}

/* ============================================================
   应用层：占满状态栏以下，头部固定、主体滚动、导航悬浮
   ============================================================ */
.app{
  position:absolute;inset:54px 0 0 0;z-index:20;
  display:flex;flex-direction:column;
  min-height:0;
}

/* ---------------- 顶部 ---------------- */
.app-head{flex:none;padding:6px 20px 8px}
.head-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.head-title{font-family:var(--serif);font-size:20px;letter-spacing:.08em;font-weight:600}
.head-sub{font-size:12.5px;color:var(--ink-3);margin-top:3px}
.head-right{display:flex;gap:8px;align-items:center;flex-shrink:0}
.head-badge{
  width:38px;height:38px;flex:none;border-radius:13px;display:grid;place-items:center;
  background:rgba(255,255,255,.62);border:1px solid rgba(255,255,255,.88);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
.head-badge svg{width:20px;height:20px;stroke:var(--sage-d);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.live-dot{width:6px;height:6px;border-radius:50%;background:#9CC48F;box-shadow:0 0 0 4px rgba(156,196,143,.22);display:inline-block;margin-right:6px;vertical-align:middle}

/* ---------------- 底部导航 ---------------- */
.tabbar{
  position:absolute;left:14px;right:14px;bottom:16px;height:66px;z-index:60;
  display:flex;align-items:center;justify-content:space-around;
  border-radius:26px;
  background:rgba(255,255,255,.58);
  -webkit-backdrop-filter:blur(24px) saturate(1.6);
  backdrop-filter:blur(24px) saturate(1.6);
  border:1px solid rgba(255,255,255,.82);
  box-shadow:0 12px 34px rgba(120,110,95,.16),0 1px 0 rgba(255,255,255,.9) inset;
}
.tab{
  flex:1;height:100%;border:0;background:none;border-radius:22px;
  display:flex;flex-direction:column;align-items:center;gap:3px;
  justify-content:center;position:relative;
  color:var(--ink-3);font-size:10.5px;letter-spacing:.06em;
  transition:color .3s var(--ease),transform .3s var(--ease);
}
.tab svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transition:all .32s var(--ease)}
.tab-ico{position:relative;display:flex;align-items:center;justify-content:center}
.tab-dot{
  position:absolute;top:-2px;right:-5px;width:8px;height:8px;border-radius:50%;
  background:#D9534F;box-shadow:0 0 0 2px rgba(255,255,255,.9);
}
.tab.on{color:var(--sage-d)}
.tab.on svg{transform:translateY(-1px) scale(1.06);stroke-width:1.7}
.tab.on span{color:var(--ink);font-weight:600}
.tab.on::after{content:'';position:absolute;bottom:5px;width:5px;height:5px;border-radius:50%;background:var(--sage)}
.tab:active{transform:scale(.92)}

/* ---------------- 主体 ---------------- */
.app-body{
  flex:1 1 auto;min-height:0;
  overflow-y:auto;overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  padding:4px 20px 104px;
  scrollbar-width:none;
}
.app-body::-webkit-scrollbar{width:0;height:0}
/* 对话页自己管滚动，主体不再滚动 */
.app-body.chat-mode{overflow:hidden;display:flex;padding:0}

/* 底部渐隐：悬浮导航下方留着 16px 空隙，不遮住的话会看到内容从缝里穿过去。
   这层把纸色从底部往上渐隐铺一层，内容滚到导航附近就淡掉了。 */
.app-fade{
  position:absolute;left:0;right:0;bottom:0;height:124px;z-index:55;
  pointer-events:none;
  background:linear-gradient(to top,
    rgba(247,242,233,.99) 0%,
    rgba(247,242,233,.97) 52%,
    rgba(247,242,233,.72) 78%,
    rgba(247,242,233,0) 100%);
}
.sec{margin-top:20px}
.sec:first-child{margin-top:6px}
.sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.sec-title{font-size:15px;font-weight:600}
.sec-sub{font-size:11.5px;color:var(--ink-3)}
.sec-note{font-size:11.5px;color:var(--ink-3);margin-top:-4px;margin-bottom:10px}

/* ---------------- 卡片 ---------------- */
.card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow);
  padding:16px;
}
.card + .card{margin-top:12px}
.card.flat{box-shadow:none}
.card.tinted{background:var(--sage-xl);border-color:#DCE7D4}
.card.warm{background:var(--apricot-l);border-color:#F0DDCE}
.card.cool{background:var(--lilac-l);border-color:#E3E0EC}
.card.plain{background:var(--paper-2)}

/* ---------------- 排版小件 ---------------- */
.muted{color:var(--ink-3)}
.tiny{font-size:11.5px}
.small{font-size:12.5px}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}
.strong{font-weight:600}
.center{text-align:center}
.nowrap{white-space:nowrap}
.link{color:var(--sage-d);font-weight:600;text-decoration:none;background:none;border:0;padding:0}
.divider{height:1px;background:var(--line);margin:12px 0}
.row{display:flex;gap:10px;align-items:center}
.row-between{display:flex;gap:10px;align-items:center;justify-content:space-between}
.row-top{display:flex;gap:10px;align-items:flex-start}
.wrap{flex-wrap:wrap}
.grow{flex:1;min-width:0}
.col{display:flex;flex-direction:column;gap:8px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------------- 标签与徽章 ---------------- */
.tag{
  display:inline-flex;align-items:center;gap:4px;
  padding:3px 9px;border-radius:999px;
  background:var(--sage-xl);color:var(--sage-dd);
  font-size:11px;font-weight:500;white-space:nowrap;
}
.tag.gray{background:#F1EEE7;color:var(--ink-3)}
.tag.warn{background:var(--amber-l);color:#8A5D14}
.tag.danger{background:var(--danger-l);color:var(--danger)}
.tag.info{background:var(--lilac-l);color:#5A5470}
.tag.apricot{background:var(--apricot-l);color:#8A5A34}
.tag-row{display:flex;flex-wrap:wrap;gap:6px}

.badge{display:inline-block;padding:1px 7px;border-radius:6px;font-size:10.5px;font-weight:600;letter-spacing:.2px}
.badge.high{background:#E4EFDE;color:#3F6B47}
.badge.mid{background:var(--amber-l);color:#8A5D14}
.badge.low{background:var(--danger-l);color:var(--danger)}
.badge.todo{background:#F1EEE7;color:var(--ink-3)}

/* ---------------- 按钮 ---------------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  padding:9px 15px;border-radius:999px;border:1px solid var(--line-2);
  background:var(--white);color:var(--ink);
  font-size:13px;font-weight:500;
  transition:transform .16s var(--ease),background .2s var(--ease),border-color .2s var(--ease);
}
.btn:active{transform:scale(.97)}
.btn.primary{background:var(--sage-d);border-color:var(--sage-d);color:#fff;font-weight:600}
.btn.primary:active{background:var(--sage-dd)}
.btn.ghost{background:transparent;border-color:var(--line-2);color:var(--ink-2)}
.btn.tiny-btn{padding:5px 11px;font-size:11.5px}
.btn.block{display:flex;width:100%}
.btn.danger{color:var(--danger);border-color:#EFD3CE}
.btn[disabled]{opacity:.45;pointer-events:none}
.btn svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ---------------- 选项 chip ---------------- */
.chips{display:flex;flex-wrap:wrap;gap:7px}
.chip{
  padding:7px 13px;border-radius:999px;border:1px solid var(--line-2);
  background:var(--white);color:var(--ink-2);font-size:12.5px;
  transition:all .18s var(--ease);
}
.chip:active{transform:scale(.97)}
.chip.on{background:var(--sage-dd);border-color:var(--sage-dd);color:#fff;font-weight:500}
.chip.sm{padding:5px 11px;font-size:11.5px}

/* ---------------- 表单 ---------------- */
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.field:last-child{margin-bottom:0}
.field-label{font-size:12.5px;color:var(--ink-2);font-weight:500}
.field-hint{font-size:11px;color:var(--ink-3)}
.input,.select,.textarea{
  width:100%;padding:10px 12px;border-radius:var(--r-sm);
  border:1px solid var(--line-2);background:var(--white);
  outline:none;transition:border-color .2s var(--ease);
}
.input:focus,.select:focus,.textarea:focus{border-color:var(--sage)}
.textarea{min-height:80px;resize:vertical;line-height:1.6}
.switch-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0}
.seg{display:flex;gap:4px;padding:4px;background:#F1EDE4;border-radius:999px}
.seg-btn{
  flex:1;border:0;background:none;padding:7px 8px;border-radius:999px;
  font-size:12.5px;color:var(--ink-3);font-weight:500;transition:all .2s var(--ease);
}
.seg-btn.on{background:var(--white);color:var(--sage-dd);box-shadow:0 1px 4px rgba(120,110,95,.12)}

/* ---------------- 插画 ---------------- */
.illo{width:100%;height:100%;display:block;overflow:visible}
.illo-box{
  position:relative;flex-shrink:0;border-radius:18px;overflow:hidden;
  background:linear-gradient(160deg,#F3F7EF,#EEF3EA 60%,#F7F1E7);
  display:flex;align-items:center;justify-content:center;
}
.illo-box.lg{width:100%;height:150px}
.illo-box.md{width:76px;height:76px}
.illo-box.sm{width:54px;height:54px;border-radius:14px}
.illo-box.hero{width:100%;height:168px;border-radius:20px 20px 0 0}
.hero-photo{width:100%;height:186px;overflow:hidden;background:#F1F2EC}
.hero-photo img{width:100%;height:100%;object-fit:cover;display:block}
.lib-thumb{
  width:54px;height:54px;flex:none;border-radius:14px;overflow:hidden;
  background:#F1F2EC;border:1px solid var(--line);
}
.lib-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.illo-wrap{width:78%;height:78%}
.illo-box.lg .illo-wrap{width:60%;height:88%}
.illo-box.hero .illo-wrap{width:44%;height:92%}

/* ---------------- 植物列表项 ---------------- */
/* 城市选择按钮（选植物表单与设置面板共用） */
.city-btn{
  width:100%;display:flex;align-items:center;gap:8px;
  padding:11px 13px;border-radius:14px;font-size:13.5px;font-weight:500;
  background:var(--white);border:1px solid var(--line-2);
}
.city-btn:active{transform:scale(.985)}

.lib-tabs{
  display:flex;gap:6px;padding:4px;border-radius:999px;
  background:#F1EDE4;
}
.lib-tab{
  flex:1;border:0;background:none;padding:8px 6px;border-radius:999px;
  font-size:13px;font-weight:600;color:var(--ink-3);
  display:flex;align-items:center;justify-content:center;gap:5px;
  transition:all .2s var(--ease);
}
.lib-tab i{
  font-style:normal;font-size:11px;font-weight:500;color:var(--ink-3);
  background:rgba(255,255,255,.7);border-radius:999px;padding:1px 7px;
}
.lib-tab.on{background:var(--white);color:var(--sage-dd);box-shadow:0 1px 4px rgba(120,110,95,.12)}
.lib-tab.on i{color:var(--sage-dd)}

/* 分类筛选：一条横向滚动，不占竖向空间 */
.lib-chips{
  display:flex;gap:7px;overflow-x:auto;margin:10px -20px 0;
  padding:2px 20px 6px;scrollbar-width:none;
}
.lib-chips::-webkit-scrollbar{display:none}
.lib-chips .chip{flex:none}
.lib-chips .cnt{font-style:normal;font-size:10px;opacity:.62;margin-left:4px}

/* 两列大图卡片（参照资料库 1.png） */
.lib-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.lib-card{
  background:var(--white);border:1px solid var(--line);border-radius:16px;
  overflow:hidden;box-shadow:var(--shadow);text-align:left;
  transition:transform .16s var(--ease);
}
.lib-card:active{transform:scale(.98)}
.lib-card-img{
  position:relative;width:100%;aspect-ratio:1/1;
  background:linear-gradient(160deg,#F3F7EF,#EEF3EA 60%,#F7F1E7);
  overflow:hidden;
}
.lib-card-img img{width:100%;height:100%;object-fit:cover;display:block}
.lib-card-illo{width:100%;height:100%;display:grid;place-items:center}
.lib-card-illo svg{width:78%;height:78%}
.lib-badge{
  position:absolute;left:7px;top:7px;
  padding:2px 8px;border-radius:8px;font-size:10.5px;font-weight:500;
  background:rgba(63,95,69,.82);color:#fff;backdrop-filter:blur(4px);
}
.fav-btn{
  position:absolute;right:6px;top:6px;width:28px;height:28px;
  border:0;border-radius:50%;padding:0;font-size:15px;line-height:1;
  display:grid;place-items:center;
  background:rgba(255,255,255,.82);color:var(--ink-3);
  box-shadow:0 2px 8px rgba(90,80,66,.16);transition:transform .18s var(--ease);
}
.fav-btn.on{color:#D9705E}
.fav-btn:active{transform:scale(.88)}
.lib-card-body{padding:9px 10px 11px}
.lib-card-name{
  font-size:13.5px;font-weight:600;line-height:1.35;
  display:flex;align-items:center;gap:5px;flex-wrap:wrap;
}
.lib-card-desc{
  font-size:11px;color:var(--ink-3);line-height:1.5;margin-top:3px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.btn.faved{color:#D9705E;border-color:#F0D5CF}

.lib-item{
  display:flex;gap:12px;align-items:center;padding:11px;border-radius:var(--r-md);
  background:var(--white);border:1px solid var(--line);transition:transform .16s var(--ease);
}
.lib-item:active{transform:scale(.985)}
.lib-item + .lib-item{margin-top:9px}
.lib-name{font-size:14px;font-weight:600}
.lib-sci{font-size:10.5px;color:var(--ink-3);font-style:italic}
.lib-meta{font-size:11.5px;color:var(--ink-3);margin-top:3px}

/* ---------------- 评分 ---------------- */
.score{
  flex-shrink:0;width:46px;height:46px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:15px;font-weight:700;color:var(--sage-dd);
  background:conic-gradient(var(--sage-d) calc(var(--p) * 1%), #EDE9E0 0);
  position:relative;
}
.score::after{
  content:'';position:absolute;inset:4px;border-radius:50%;background:var(--white);
}
.score span{position:relative;z-index:1}
.score.s1{color:#3F6B47}
.score.s3{color:#8A5D14}
.score.s4{color:var(--danger)}
.score.s3::after{background:var(--amber-l)}
.score.s4::after{background:var(--danger-l)}

.tier{padding:2px 8px;border-radius:7px;font-size:11px;font-weight:600}
.tier.t1{background:#DCEBD6;color:#3F6B47}
.tier.t2{background:#E7F0E2;color:#4E7A55}
.tier.t3{background:var(--amber-l);color:#8A5D14}
.tier.t4{background:#F1EEE7;color:var(--ink-3)}

/* ---------------- 提示条 ---------------- */
.note{
  border-radius:var(--r-sm);padding:10px 12px;font-size:12.5px;line-height:1.6;
  background:var(--sage-xl);color:var(--sage-dd);
}
.note + .note{margin-top:8px}
.note.warn{background:var(--amber-l);color:#7A4F0F}
.note.danger{background:var(--danger-l);color:#8C3A31}
.note.info{background:var(--lilac-l);color:#4E4870}
.note.gray{background:#F3F0EA;color:var(--ink-2)}
.note b{font-weight:600}

/* ---------------- 键值表 ---------------- */
.kv{display:flex;flex-direction:column}
.kv-row{display:flex;gap:12px;padding:8px 0;border-bottom:1px dashed var(--line)}
.kv-row:last-child{border-bottom:0}
.kv-k{flex:0 0 88px;color:var(--ink-3);font-size:12px}
.kv-v{flex:1;font-size:12.5px;color:var(--ink)}

/* ---------------- 任务 ---------------- */
.task{
  display:flex;gap:11px;align-items:flex-start;padding:12px;
  border-radius:var(--r-md);background:var(--white);border:1px solid var(--line);
}
.task + .task{margin-top:9px}
.task.overdue{border-color:#F0D9C9;background:var(--apricot-l)}
.task.done{opacity:.55}
.task-ico{
  width:34px;height:34px;flex-shrink:0;border-radius:11px;
  display:flex;align-items:center;justify-content:center;
  background:var(--sage-xl);color:var(--sage-dd);
}
.task-ico svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.task-title{font-size:13.5px;font-weight:600}
.task-sub{font-size:11.5px;color:var(--ink-3);margin-top:2px}
.task-check{
  width:26px;height:26px;flex-shrink:0;border-radius:50%;border:1.5px solid var(--line-2);
  background:var(--white);display:flex;align-items:center;justify-content:center;color:transparent;
}
.task-check svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.task-check.on{background:var(--sage-d);border-color:var(--sage-d);color:#fff}

/* ---------------- 时间线 ---------------- */
.timeline{position:relative;padding-left:18px}
.timeline::before{content:'';position:absolute;left:4px;top:6px;bottom:6px;width:1.5px;background:var(--line-2)}
.tl-item{position:relative;padding-bottom:14px}
.tl-item:last-child{padding-bottom:0}
.tl-item::before{
  content:'';position:absolute;left:-18px;top:6px;width:9px;height:9px;border-radius:50%;
  background:var(--sage);box-shadow:0 0 0 3px var(--paper);
}
.tl-item.issue::before{background:var(--amber)}
.tl-item.good::before{background:var(--sage-d)}
.tl-date{font-size:11px;color:var(--ink-3)}
.tl-title{font-size:13px;font-weight:600}
.tl-body{font-size:12px;color:var(--ink-2);margin-top:2px}

/* ---------------- 弹层 ---------------- */
.sheet-root{position:absolute;inset:0;z-index:60;pointer-events:none}
.sheet-mask{
  position:absolute;inset:0;background:rgba(40,36,30,.34);
  opacity:0;transition:opacity .26s var(--ease);pointer-events:auto;
}
.sheet-mask.on{opacity:1}
.sheet{
  position:absolute;left:0;right:0;bottom:0;
  background:var(--paper-2);border-radius:24px 24px 0 0;
  padding:16px 16px 22px;
  /* 百分比是按手机屏幕高度算的，用 vh 会按浏览器窗口算，弹层会顶到屏幕外 */
  max-height:86%;overflow-y:auto;
  transform:translateY(100%);transition:transform .3s var(--ease);
  box-shadow:var(--shadow-lg);pointer-events:auto;
}
.sheet.on{transform:translateY(0)}
.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.sheet-title{font-size:16px;font-weight:600}
.sheet-x{
  width:30px;height:30px;border-radius:50%;border:1px solid var(--line);
  background:var(--white);display:flex;align-items:center;justify-content:center;
}
.sheet-x svg{width:15px;height:15px;stroke:var(--ink-2);fill:none;stroke-width:1.9;stroke-linecap:round}
.grabber{width:38px;height:4px;border-radius:2px;background:var(--line-2);margin:0 auto 12px}

/* ---------------- 轻提示 ---------------- */
.toast-wrap{position:absolute;left:0;right:0;bottom:100px;z-index:80;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none;padding:0 16px}
.toast{
  max-width:86%;padding:9px 16px;border-radius:999px;
  background:rgba(45,50,42,.92);color:#fff;font-size:12.5px;
  box-shadow:0 8px 24px rgba(40,36,30,.24);
  animation:toastIn .26s var(--ease);
}
@keyframes toastIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* ---------------- 空状态 ---------------- */
.empty{padding:26px 16px;text-align:center;color:var(--ink-3);font-size:12.5px}
.empty svg{width:38px;height:38px;margin-bottom:8px;stroke:var(--sage);fill:none;stroke-width:1.3;opacity:.8}

/* ---------------- 大卡片（详情页头） ---------------- */
.detail-hero{
  background:var(--white);border:1px solid var(--line);border-radius:var(--r-lg) var(--r-lg) 0 0;
  overflow:hidden;box-shadow:var(--shadow);
}
.detail-body{
  background:var(--white);border:1px solid var(--line);border-top:0;
  border-radius:0 0 var(--r-lg) var(--r-lg);padding:16px;box-shadow:var(--shadow);
}

/* ---------------- 进度条 ---------------- */
.bar{height:6px;border-radius:3px;background:#EDE9E0;overflow:hidden}
.bar i{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,var(--sage),var(--sage-d))}
.bar.warn i{background:linear-gradient(90deg,#E8C27E,var(--amber))}
.bar.danger i{background:linear-gradient(90deg,#E09A92,var(--danger))}

/* ============================================================
   首屏 · AI 对话
   ============================================================ */
.chat-page{display:flex;flex-direction:column;width:100%;min-height:0}
.chat-scroll{
  flex:1 1 auto;min-height:0;overflow-y:auto;
  padding:2px 20px 10px;scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
.chat-scroll::-webkit-scrollbar{width:0;height:0}
.chat-strip{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:11.5px;color:var(--ink-3)}
.chat-strip .sep{width:3px;height:3px;border-radius:50%;background:var(--line-2)}
.weather{display:inline-flex;align-items:center;gap:5px;color:var(--ink-2)}
.weather svg{width:15px;height:15px;stroke:var(--sage-d);fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.weather .sep{width:3px;height:3px;border-radius:50%;background:var(--line-2);margin:0 1px}
.weather.pending{color:var(--ink-3)}
.weather.failed{color:var(--ink-3);display:inline-flex;gap:6px;align-items:center}
.weather .link{font-size:11.5px}

/* 现场照片 */
.photo-preview{
  width:100%;border-radius:16px;overflow:hidden;background:#F1F2EC;
  border:1px solid var(--line);
}
.photo-preview img{width:100%;display:block;max-height:260px;object-fit:cover}

.today-card{
  display:flex;align-items:center;gap:10px;width:100%;text-align:left;
  padding:12px 14px;border-radius:18px;margin-bottom:14px;
  background:rgba(255,255,255,.62);border:1px solid rgba(255,255,255,.88);
  -webkit-backdrop-filter:blur(18px) saturate(1.5);backdrop-filter:blur(18px) saturate(1.5);
  box-shadow:0 8px 24px rgba(120,110,95,.1);
}
.today-card .tx b{font-size:13.5px;display:block;color:var(--ink)}
.today-card .tx span{font-size:11.5px;color:var(--ink-2)}
.today-card .go{margin-left:auto;font-size:12px;color:var(--sage-d);display:flex;align-items:center;gap:2px;flex:none}
.today-card .go svg{width:13px;height:13px;stroke:var(--sage-d);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.chat{display:flex;flex-direction:column;gap:16px;padding-bottom:8px}
.msg{display:flex;gap:9px;align-items:flex-start;animation:msgIn .42s var(--ease) both}
.msg.me{flex-direction:row-reverse}
.avatar{
  width:30px;height:30px;flex:none;border-radius:11px;display:grid;place-items:center;
  background:rgba(255,255,255,.72);border:1px solid rgba(255,255,255,.9);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  box-shadow:0 4px 12px rgba(120,110,95,.08);
}
.avatar svg{width:16px;height:16px;stroke:var(--sage-d);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.bubble{
  max-width:266px;padding:11px 14px;border-radius:18px;font-size:13px;line-height:1.7;
  background:rgba(255,255,255,.74);color:var(--ink);
  border:1px solid rgba(255,255,255,.9);
  -webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4);
  box-shadow:0 8px 22px rgba(120,110,95,.1);
}
.msg.me .bubble{
  background:linear-gradient(135deg,rgba(197,216,189,.78),rgba(178,203,170,.7));
  border-color:rgba(255,255,255,.9);border-bottom-right-radius:7px;
}
.msg.ai .bubble{border-bottom-left-radius:7px}
.bubble .imgbox{width:186px;height:126px;border-radius:14px;overflow:hidden;background:#F1F2EC;margin-bottom:6px}
.bubble .imgbox img{width:100%;height:100%;object-fit:cover;display:block}
.bubble-ai-tag{font-size:10.5px;color:var(--ink-3);margin-bottom:6px;display:flex;gap:5px;align-items:center}
.bubble-ai-tag svg{width:12px;height:12px;stroke:var(--sage-d);fill:none;stroke-width:1.6}
.bubble .acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.bubble .acts .btn{flex:1 1 46%;min-width:0;padding:8px 10px;font-size:12px;border-radius:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bubble .card{margin-top:10px;padding:12px;border-radius:16px;box-shadow:none}
.bubble .kv-k{flex:0 0 66px;font-size:11px}
.bubble .kv-v{font-size:12px}
.chat-diag{margin-top:10px;padding-top:10px;border-top:1px dashed var(--line)}

/* 助手推荐的三段式卡片（参照资料库 4/5/6.png） */
.msg.wide .bubble{max-width:calc(100% - 39px);width:calc(100% - 39px)}
.rec-group{margin-top:12px}
.rec-group:first-child{margin-top:10px}
.rec-group-title{font-size:12.5px;font-weight:600;color:var(--ink-2);margin-bottom:7px}
.rec-card{
  display:flex;gap:10px;align-items:flex-start;padding:9px;
  border-radius:15px;background:rgba(255,255,255,.72);
  border:1px solid var(--line);margin-bottom:8px;
}
.rec-card.try{background:rgba(255,255,255,.6)}
.rec-card.no{background:#F3F0E7;border-color:#E4DCCB}
.rec-thumb{
  width:58px;height:58px;flex:none;border-radius:13px;overflow:hidden;
  background:linear-gradient(160deg,#F3F7EF,#EEF3EA 60%,#F7F1E7);
  display:grid;place-items:center;
}
.rec-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.rec-thumb svg{width:76%;height:76%}
.rec-body{min-width:0;flex:1}
.rec-pill{
  display:inline-block;padding:1px 8px;border-radius:999px;
  font-size:10.5px;background:var(--sage-l);color:var(--sage-dd);
}
.rec-card.no .rec-pill{background:#E7E2D6;color:#6F6A5C}
.rec-name{font-size:13.5px;font-weight:600;margin-top:4px}
.rec-reason{font-size:11.5px;color:var(--ink-2);line-height:1.55;margin-top:3px}
.rec-links{display:flex;gap:12px;margin-top:6px}
.rec-link{
  border:0;background:none;padding:0;font-size:11.5px;
  color:var(--sage-d);font-weight:500;
}
.rec-link:active{opacity:.6}
.chat-diag .dh{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:13.5px;font-weight:600}
.chat-diag .dsec{margin-top:9px;padding-top:8px;border-top:1px dashed var(--line)}
.chat-diag .dsec h5{margin:0 0 5px;font-size:11px;color:var(--ink-3);letter-spacing:.08em;font-weight:600}
.chat-diag .dsec p{margin:0 0 4px;font-size:12.5px;line-height:1.65;color:var(--ink-2);display:flex;gap:6px}
.chat-diag .dsec p i{color:var(--sage-d);font-style:normal;flex:none}
.chat-diag .dsec p.no i{color:#C08A86}
.chat-rank{display:flex;gap:9px;align-items:center;padding:6px 0}
.chat-rank .rk{width:20px;height:20px;flex:none;border-radius:7px;display:grid;place-items:center;font-size:11px;font-weight:700;background:var(--sage-xl);color:var(--sage-dd)}
.chat-rank .nm{font-size:12.5px;font-weight:600}
.chat-rank .sc{margin-left:auto;font-size:12px;color:var(--sage-d);font-weight:600}
.typing{display:flex;gap:4px;padding:14px 16px}
.typing i{width:6px;height:6px;border-radius:50%;background:var(--ink-3);animation:tp 1.2s infinite}
.typing i:nth-child(2){animation-delay:.18s}
.typing i:nth-child(3){animation-delay:.36s}

.chat-foot{flex:none;padding:0 20px 92px}
.quicks{display:flex;gap:8px;overflow-x:auto;padding:0 0 10px;scrollbar-width:none}
.quicks::-webkit-scrollbar{display:none}
.quicks .chip{flex:none;background:rgba(255,255,255,.6);border-color:rgba(255,255,255,.9)}
.composer{
  display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:24px;
  background:rgba(255,255,255,.62);
  -webkit-backdrop-filter:blur(22px) saturate(1.6);backdrop-filter:blur(22px) saturate(1.6);
  border:1px solid rgba(255,255,255,.88);
  box-shadow:0 12px 30px rgba(120,110,95,.14);
}
.composer .icobtn{
  width:34px;height:34px;flex:none;border:0;border-radius:12px;display:grid;place-items:center;
  background:rgba(240,244,236,.85);transition:transform .25s var(--ease);
}
.composer .icobtn:active{transform:scale(.9)}
.composer .icobtn svg{width:18px;height:18px;stroke:var(--sage-d);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.composer input{flex:1;min-width:0;height:34px;border:0;background:transparent;outline:none;font-size:13.5px;color:var(--ink)}
.composer input::placeholder{color:var(--ink-3)}
.composer .send{
  width:34px;height:34px;flex:none;border:0;border-radius:12px;display:grid;place-items:center;
  background:linear-gradient(135deg,#A6C09E,#7E9B77);
  box-shadow:0 5px 14px rgba(126,155,119,.32);transition:transform .25s var(--ease);
}
.composer .send:active{transform:scale(.9)}
.composer .send svg{width:17px;height:17px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

@keyframes msgIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes tp{0%,60%,100%{opacity:.28;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}

/* ---------------- 来源 ---------------- */
.src{
  display:flex;gap:8px;align-items:flex-start;padding:8px 0;border-bottom:1px dashed var(--line);
  font-size:11.5px;
}
.src:last-child{border-bottom:0}
.src-id{font-weight:700;color:var(--sage-d);flex-shrink:0;font-family:ui-monospace,Menlo,monospace}

/* ---------------- 条件提问 ---------------- */
.cond{margin-bottom:14px}
.cond-q{font-size:12.5px;font-weight:600;margin-bottom:7px}
.cond-q em{font-style:normal;color:var(--ink-3);font-weight:400;margin-left:4px}

/* ---------------- 组合方案 ---------------- */
.arrange-item{
  display:flex;gap:10px;align-items:flex-start;margin-top:8px;
  padding:9px;border-radius:14px;background:var(--white);
  border:1px solid var(--line);box-shadow:var(--shadow);
}
.arrange-thumb{
  width:46px;height:46px;flex:none;border-radius:12px;overflow:hidden;
  background:linear-gradient(160deg,#F3F7EF,#EEF3EA);display:grid;place-items:center;
}
.arrange-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.arrange-thumb svg{width:76%;height:76%}

/* ============================================================
   放我家看看
   ============================================================ */
.onboard-root{position:absolute;inset:0;z-index:55;pointer-events:none}
.ob-mask{position:absolute;inset:0;background:rgba(247,242,233,.92);backdrop-filter:blur(2px)}
.ob-panel{
  position:absolute;inset:0;display:flex;flex-direction:column;
  padding:52px 26px 26px;
}
.ob-dots{display:flex;gap:6px;justify-content:center;margin-bottom:18px}
.ob-dots i{width:6px;height:6px;border-radius:50%;background:var(--line-2)}
.ob-dots i.on{background:var(--sage-d);width:18px;border-radius:3px}
/* 引导页插图：植物来自插画引擎，场景是代码画的 SVG */
.ob-scene{position:relative;height:176px;margin-bottom:6px}
.ob-scene-glow{
  position:absolute;left:50%;top:52%;transform:translate(-50%,-50%);
  width:150px;height:150px;border-radius:50%;
  background:radial-gradient(circle at 50% 45%,rgba(220,232,214,.85),rgba(220,232,214,0) 68%);
}
.ob-scene-bg{position:absolute;inset:0}
.ob-scene-bg .scene-svg{width:100%;height:100%;display:block}
.ob-scene-plant{position:absolute;left:50%;transform:translateX(-50%);width:96px}
.ob-scene-plant svg{width:100%;height:auto;display:block}
.ob-scene-plant.big{width:124px;bottom:2px}
.ob-scene-plant.sill{bottom:24%}
.ob-scene-plant.desk{bottom:25%}
.ob-scene-plant.shelf{bottom:39%;width:84px}
.ob-scene-badge{
  position:absolute;left:50%;bottom:2px;transform:translateX(-50%);
  font-size:11px;color:var(--sage-dd);background:rgba(255,255,255,.82);
  border:1px solid var(--line);border-radius:999px;padding:3px 12px;white-space:nowrap;
}
.ob-title{font-family:var(--serif);font-size:22px;font-weight:600;text-align:center;letter-spacing:.06em}
.ob-sub{font-size:12.5px;color:var(--ink-3);line-height:1.7;text-align:center;margin-top:8px}
.ob-list{margin-top:20px;display:flex;flex-direction:column;gap:10px}
.ob-item{
  display:flex;gap:10px;align-items:flex-start;font-size:12.5px;color:var(--ink-2);
  background:rgba(255,255,255,.7);border:1px solid var(--line);border-radius:14px;padding:10px 12px;
}
.ob-item svg{width:16px;height:16px;flex:none;margin-top:2px;stroke:var(--sage-d);fill:none;stroke-width:1.6}
.ob-field{margin-top:22px}
.ob-note{
  margin-top:14px;font-size:11.5px;color:var(--sage-dd);
  background:var(--sage-xl);border-radius:12px;padding:10px 12px;line-height:1.6;
}
.ob-cards{display:flex;flex-direction:column;gap:10px;margin-top:22px}
.ob-card{
  text-align:left;border:1px solid var(--line);background:var(--white);
  border-radius:16px;padding:13px 15px;transition:all .2s var(--ease);
}
.ob-card b{display:block;font-size:14.5px}
.ob-card span{display:block;font-size:11.5px;color:var(--ink-3);margin-top:2px}
.ob-card.on{border-color:var(--sage-d);background:var(--sage-xl)}
.ob-card.on b{color:var(--sage-dd)}
.ob-safety{margin-top:16px;background:var(--white);border:1px solid var(--line);border-radius:16px;padding:4px 14px}
.ob-safety .switch-row{padding:11px 0;border-bottom:1px dashed var(--line)}
.ob-safety .switch-row:last-child{border-bottom:0}
.ob-actions{display:flex;gap:9px;margin-top:auto;padding-top:20px}
.ob-skip{display:block;text-align:center;margin-top:12px;align-self:center}
.ob-safety .switch-row div:first-child{flex:1;min-width:0}
.ob-safety .tiny{padding-right:8px}

/* 对话记录行 */
.chat-row{
  display:flex;align-items:center;gap:10px;padding:10px;border-radius:14px;
  border:1px solid var(--line);background:var(--white);margin-bottom:8px;
}
.chat-row.on{border-color:var(--sage-d);background:var(--sage-xl)}
.chat-row .grow{border:0;background:none;padding:0;min-width:0}

.preview-root{position:absolute;inset:0;z-index:70;pointer-events:none}
.preview-mask{position:absolute;inset:0;background:rgba(40,36,30,.42)}
.preview-panel{
  position:absolute;left:0;right:0;bottom:0;top:0;
  background:var(--paper-2);overflow-y:auto;
  padding:14px 16px 22px;
  animation:previewIn .28s var(--ease);
}
@keyframes previewIn{from{transform:translateY(16px);opacity:0}to{transform:none;opacity:1}}
.preview-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.preview-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.preview-scene{
  position:relative;width:100%;height:300px;margin-top:11px;
  border-radius:18px;overflow:hidden;background:#F1EDE4;
  border:1px solid var(--line);touch-action:none;
}
.preview-scene.has-photo{background:#E9E4DA}
.preview-photo{width:100%;height:100%;object-fit:cover;display:block}
.preview-wall{position:absolute;inset:0 0 34% 0;background:linear-gradient(180deg,#F6F2E9,#EFE9DE)}
.preview-window{
  position:absolute;left:14%;top:12%;width:32%;height:38%;border-radius:10px;
  background:linear-gradient(180deg,#EAF1F6,#DCE8EF);border:3px solid rgba(255,255,255,.9);
}
.preview-floor{position:absolute;left:0;right:0;bottom:0;height:34%;
  background:linear-gradient(180deg,#E3D8C6,#D8CAB4)}
.preview-empty{
  position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);
  font-size:12px;color:var(--ink-3);background:rgba(255,255,255,.72);
  padding:6px 12px;border-radius:999px;white-space:nowrap;
}
.preview-plant{
  position:absolute;transform:translate(-50%,-100%);
  cursor:grab;touch-action:none;user-select:none;
  filter:drop-shadow(0 10px 14px rgba(80,70,55,.28));
}
.preview-plant.dragging{cursor:grabbing}
.preview-plant img{width:100%;display:block}
.preview-plant svg{width:100%;height:auto;display:block}
.preview-tag{
  position:absolute;left:50%;bottom:8px;transform:translateX(-50%);
  font-size:11px;color:var(--ink-2);background:rgba(255,255,255,.78);
  padding:4px 10px;border-radius:999px;
}
.preview-confirm{display:flex;gap:8px;margin-top:8px}
.preview-confirm .btn{flex:1}
.preview-sizes{margin-top:11px;justify-content:center}
.calibration-line{
  position:absolute;height:2px;background:rgba(95,133,100,.9);
  transform-origin:0 50%;display:flex;align-items:center;justify-content:space-between;
  pointer-events:auto;
}
.calibration-line::after{
  content:'';position:absolute;left:0;right:0;top:-7px;height:16px;
}
.cal-handle{
  width:20px;height:20px;flex:none;border-radius:50%;border:2px solid #fff;
  background:var(--sage-d);box-shadow:0 2px 8px rgba(80,70,55,.3);
  padding:0;touch-action:none;cursor:grab;
}
.cal-handle:active{cursor:grabbing;transform:scale(1.08)}
.calibration-label{
  position:absolute;left:50%;top:-24px;transform:translateX(-50%);
  font-size:10.5px;background:rgba(255,255,255,.9);color:var(--sage-dd);
  padding:2px 8px;border-radius:999px;white-space:nowrap;
}
.calibration-panel{margin-top:11px}
.calibration-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:10px 0}
.calibration-fields .field{margin-bottom:0}
.preview-slider{margin:12px 0 6px}
.preview-slider input[type=range]{width:100%}
.preview-slider b{color:var(--sage-dd)}

.plan-group{margin-bottom:14px}
.plan-group{margin-bottom:14px}
.plan-tag{
  display:inline-flex;align-items:center;height:22px;padding:0 10px;border-radius:8px;
  background:var(--sage-dd);color:#fff;font-size:11.5px;font-weight:600;margin-bottom:8px;
}
.plan-tag.mid{background:var(--sage-d)}
.plan-tag.small{background:var(--sage)}
.plan-tag.chain{background:#8E9BB5}

/* ---------------- 滚动吸附的横向卡 ---------------- */
.scroll-x{
  display:flex;gap:10px;overflow-x:auto;padding:2px 16px 10px;margin:0 -16px;
  scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
}
.scroll-x::-webkit-scrollbar{display:none}
.scroll-x > *{scroll-snap-align:start;flex:0 0 auto}
.mini-card{
  width:118px;background:var(--white);border:1px solid var(--line);border-radius:var(--r-md);
  overflow:hidden;box-shadow:var(--shadow);
}
.mini-card .illo-box{width:100%;height:92px;border-radius:0}
.mini-card .illo-wrap{width:62%;height:86%}
.mini-body{padding:8px 10px 10px}

/* ---------------- 数据缺口提示 ---------------- */
.gap{
  border:1px dashed #D8C7A8;background:#FDF7EA;border-radius:var(--r-sm);
  padding:10px 12px;font-size:11.5px;color:#7A5B22;line-height:1.6;
}

/* ---------------- 动画 ---------------- */
.fade-in{animation:fadeUp .34s var(--ease) both}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}
