/* ============================================================
   《赣南脐橙成长记》H5 · 国风田园版
   视觉基调：扁平国风田园 —— 宣纸米白底、楷宋字、橙黄与叶绿、
   圆润线条、印章与淡墨点缀
   ============================================================ */

:root{
  --bg:         #FBF5E7;   /* 宣纸暖米白 */
  --bg-deep:    #F3E8D2;   /* 略深的纸色 */
  --card:       #FFFDF6;   /* 卡片纸面 */
  --ink:        #2B2116;   /* 墨色标题 */
  --ink-soft:   #6B573F;   /* 次墨 */
  --ink-faint:  #9C8667;   /* 淡墨 */
  --line:       #EEE1C5;   /* 墨线细描 */
  --line-mid:   #DCC9A4;   /* 墨线 */
  --orange:     #FF6A11;   /* 脐橙 */
  --orange-deep:#DE5206;   /* 印章朱橙 */
  --orange-wash:#FBECD8;   /* 橙晕 */
  --leaf:       #2E7D43;   /* 叶绿 */
  --leaf-deep:  #1C5C31;
  --leaf-wash:  #E8F1E4;
  --gold:       #B98A2E;

  /* 国风字体：正文偏楷，标题偏宋 */
  --sans: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "FangSong", "仿宋", "PingFang SC", "Hiragino Sans GB", "Source Han Serif SC", "Noto Serif SC", serif;
  --serif:"Songti SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", "STSong", serif;
  --mono: ui-monospace, "SF Mono", "Consolas", "Liberation Mono", monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow-card: 0 6px 18px rgba(122, 84, 30, .10);
  --shadow-pop:  0 8px 22px rgba(222, 82, 6, .28);
}

*,*::before,*::after{ box-sizing:border-box; }

/* 键盘可达：只在键盘聚焦时出轮廓，触屏不干扰 */
:focus-visible{ outline: 2px solid var(--orange); outline-offset: 3px; }
.opt:focus-visible, .btn:focus-visible{ border-radius: 16px; }
.field-input:focus-visible{ outline-offset: 1px; }

html,body{ margin:0; padding:0; }

body{
  background: var(--bg);
  /* 极淡的纸纹，宣纸颗粒感 */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(184,132,60,.05) 0, transparent 38%),
    radial-gradient(circle at 80% 70%, rgba(46,125,67,.04) 0, transparent 40%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.72;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* ---------------- 顶栏 ---------------- */
.topbar{
  position: fixed; top:0; left:0; right:0; z-index: 40;
  height: calc(46px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(251, 245, 231, .80);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
}
.topbar-title{
  font-size: 12px; font-weight: 600; letter-spacing: .22em; color: var(--ink-soft);
}
.sound{
  appearance:none; border:0; background:none; padding:6px 0 6px 10px;
  font-family: var(--sans); font-size: 11px; letter-spacing: .1em;
  color: var(--ink-faint); cursor: pointer;
}
.sound[aria-pressed="true"]{ color: var(--orange-deep); }
.topbar-track{
  position: absolute; left:0; right:0; bottom:0; height:2px;
  background: transparent;
}
.topbar-track i{
  display:block; height:100%; width:0;
  background: linear-gradient(90deg, #FFA34D, var(--orange));
  transition: width .5s var(--ease);
}

/* ---------------- 屏幕切换 ---------------- */
#stage{ position: relative; }

.screen{
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  padding: calc(46px + env(safe-area-inset-top)) 0 calc(28px + env(safe-area-inset-bottom));
}
.screen.is-active{ display:flex; }
.screen.is-active > *{ animation: rise .46s var(--ease) both; }

@keyframes rise{
  from{ opacity:0; transform: translateY(12px); }
  to{ opacity:1; transform:none; }
}

.pad{
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 26px 22px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---------------- 排版基元 ---------------- */
.eyebrow{
  display:flex; align-items:center; gap:9px;
  margin: 0 0 14px;
  font-size: 11px; font-weight: 600; letter-spacing: .26em; color: var(--ink-faint);
}
.eyebrow::before{
  content:""; width:18px; height:3px; border-radius:2px; background: var(--orange); flex:none;
}

.h2{
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 27px; line-height: 1.36; font-weight: 700;
  letter-spacing: .06em;
}

.lede{
  margin: 0 0 22px;
  font-size: 14px; line-height: 1.9; color: var(--ink-soft);
}

.note{
  margin: 20px 0 22px;
  font-size: 12.5px; line-height: 1.85; color: var(--ink-faint);
}

/* ---------------- 按钮 ---------------- */
.btn{
  appearance:none; cursor:pointer;
  width: 100%; height: 54px;
  border:0; border-radius: 14px;
  font-family: var(--sans);
  font-size: 16px; font-weight: 700; letter-spacing: .16em;
  transition: background .18s, transform .12s, box-shadow .18s;
  margin-top: 8px;
}
.btn--primary{
  background: linear-gradient(180deg, #FF8A34, var(--orange));
  color: #FFFFFF;
  box-shadow: var(--shadow-pop);
}
.btn--primary:active{ background: var(--orange-deep); transform: translateY(1px); box-shadow: 0 4px 12px rgba(222,82,6,.26); }
.btn--primary[disabled]{
  background: #EBDFC7; color: #FFFFFF; cursor: not-allowed;
  transform:none; box-shadow:none;
}
.btn--ghost{
  background: var(--card); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-mid);
}
.btn--ghost:active{ background: var(--bg-deep); }

.link-btn{
  appearance:none; border:0; background:none; cursor:pointer;
  font-family: var(--sans); font-size: 12px; letter-spacing: .1em;
  color: var(--ink-soft);
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: var(--line-mid);
  padding: 8px 0; align-self: flex-start;
}
.link-btn--center{ align-self:center; margin-top: 18px; }

/* ---------------- 加载 ---------------- */
.loader{
  flex:1; display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap: 22px; padding: 0 40px;
}
.loader-mark{ width: 84px; height: 84px; animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe{ 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.05); } }
.loader-text{ margin:0; font-size: 13px; letter-spacing: .14em; color: var(--ink-soft); }
.loader-track{ width: 130px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.loader-track i{ display:block; height:100%; width:0; background: var(--orange); transition: width .45s linear; }
.loader-retry{ margin:0; font-size: 12px; color: var(--ink-faint); text-decoration: underline; text-underline-offset:4px; }

/* ---------------- 封面：整屏国风插画 ---------------- */
.screen--cover{
  padding: 0 0 calc(30px + env(safe-area-inset-bottom));
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.cover-art{
  position:absolute; inset:0;
  background:#299CD5;            /* 天空蓝兜底：图未到位时不至于白底白字 */
}
/* 模糊放大底图只在宽屏兜底时才需要，所以整条规则都放进下面的 @media。
   以前写在基础样式里，手机上虽然 opacity:0，iOS 仍会创建整屏滤镜图层，
   既拖慢首帧，也容易被系统回收后整块变白。 */
/* 封面图本身已烧入标题文字（顶部 6%–36%），所以纵向必须贴顶对齐：
   原来的 center 60% 在宽屏上只露出画面 33%–78%，标题会被整条裁掉。 */
.cover-art .cover-photo{
  display:block; width:100%; height:100%;
  object-fit: cover; object-position: center top;
  position:relative; z-index:1;
}
/* 底部压暗渐变已按需求移除：切开脐橙要保持原图亮度/饱和度（它是画面的主角）。
   底部文字的可读性改由各元素自己承担：.cover-hint 双层文字阴影、
   续玩链接自带深色胶囊底，不再依赖整幅压暗。 */
/* 宽屏兜底用的模糊放大底图（同一张图），默认隐藏，见下方 @media */
.cover-art::before{
  content:""; position:absolute; inset:-48px; z-index:0;
  /* 带版本号：nginx 对 assets/*.jpg 给了 30 天强缓存，URL 不变就永远读本地旧图 */
  background:url("assets/cover1.jpg?v=5") center/cover no-repeat;
  filter:blur(26px) saturate(1.05) brightness(.9);
  opacity:0;
}
/* 宽屏/横屏（桌面预览、平板横放）：改整幅完整显示，两侧由模糊底图补齐，
   既不切标题，也不会只剩一条天空。手机竖屏不受影响，仍是整屏铺满。 */
@media (min-aspect-ratio: 4/3){
  .cover-art::before{ opacity:1; }
  .cover-art .cover-photo{ object-fit: contain; object-position: center center; }
  /* contain 后左右各留约 5px，原来会露出 .cover-art 的天空蓝兜底色 → 一条蓝线。
     这里让兜底色透明：模糊底图能透出来，就算底图没加载也只是页面米色，不会有蓝边。 */
  .cover-art{ background: transparent; }
  /* 宽屏下 .screen--cover 自身就是 460px 居中的 stage，气泡 right 天生的相对它，
     不需要额外定位（早期版本在这里写过 top 覆盖，反而因为声明顺序失效） */
}
.cover-copy{
  max-width: 460px; margin: 0 auto 51px; width:100%;
  padding: 0 24px;
  position: relative; z-index: 2;
  color:#FFFFFF;
  text-shadow: 0 2px 14px rgba(20,10,0,.5);
}
.eyebrow--cover{ color: rgba(255,255,255,.9); }
.eyebrow--cover::before{ background: var(--orange); }
.cover-title{
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 44px; line-height: 1.2; font-weight: 700;
  letter-spacing: .12em;
  text-shadow: 0 2px 18px rgba(20,10,0,.5);
}
.cover-title span{
  position: relative;
  display: inline-block;
  color:#FFD9A6;
  letter-spacing: .3em;
}
.cover-lede{
  margin: 0 0 26px;
  font-size: 14px; line-height: 2; color: rgba(255,255,255,.94);
  max-width: 330px;
  text-shadow: 0 1px 10px rgba(20,10,0,.45);
}
/* 引荐/进度提示：压暗渐变撤掉后，这行直接落在橙子和竹篮上，纯阴影已经压不住，
   改成极小的半透明胶囊（只包住这行字，不影响画面亮度）。空内容时不占位。 */
.cover-hint{
  width: fit-content;
  margin: 14px auto 0;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(24,16,6,.40);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  backdrop-filter: blur(6px) saturate(1.05);
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .14em; color: #FFFFFF;
  text-align: center;
  text-shadow: 0 1px 3px rgba(20,10,0,.5);
}
.cover-hint:empty{ display: none; }
/* 封面：漫画对话气泡 = 唯一的 CTA（原「开始认养」按钮与「赣南红」图标已移除）
   位置：与人物肩部同高（top 63.5%），left 6.5% 与人物拉开少许距离，
   尾巴挂在气泡右侧上段、尖角朝右上指向人物嘴部。
   尺寸用 clamp 跟着屏宽走，窄屏（320）不溢出、大屏（430）不显小。
   ::after 用内联 SVG 三角（白描边 + 70% 橙填充），位置见下方。 */
.cover-bubble{
  position: absolute; z-index: 3;
  left: 6.5%;
  top: 63.5%;
  width: clamp(140px, 38vw, 168px);
  padding: 12px 10px;
  /* 按钮复位：button 不自带字体继承，且默认有 2px 内嵌边框与背景 */
  appearance: none; -webkit-appearance: none;
  font-family: var(--sans);
  background: rgba(245,168,64,.70);  /* 气泡 70% 不透明度，透出背景人物 */
  border: 4px solid #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 3px 0 rgba(120,90,40,.13), 0 9px 22px rgba(40,20,0,.18);
  font-size: clamp(13px, 3.7vw, 14.5px);
  font-weight: 700; letter-spacing: .01em; line-height: 1.4;
  color: #FFFFFF; text-align: center;
  text-shadow: 0 1px 2px rgba(150,80,0,.26);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;                    /* 动画 both 会在延迟期保持这个状态 */
  transform-origin: 96% 28%;     /* 从右上角尾巴位置"冒"出来 */
}
/* 尾巴：内联 SVG 三角（白描边 + 70% 橙填充），比 border 方块更干净
   尖端朝右上指向人物嘴部；左边缘压进气泡边框内，形成"从气泡长出来"的衔接 */
.cover-bubble::after{
  content: ""; position: absolute;
  right: -22px; top: 20%;
  width: 28px; height: 28px;
  pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 32'><polygon points='6 12 29 5 6 26' fill='rgba(245,168,64,0.7)' stroke='white' stroke-width='5' stroke-linejoin='round'/></svg>") no-repeat center/100% 100%;
}
/* 按下反馈：入场动画的 fill:both 会锁住 transform，所以用滤镜而非位移 */
.cover-bubble:active{
  filter: brightness(.93);
  box-shadow: 0 2px 0 rgba(120,90,40,.16), 0 4px 12px rgba(40,20,0,.2);
}
/* 触摸设备点按后不保留焦点环；键盘 Tab 时仍给出可见轮廓 */
.cover-bubble:focus{ outline: none; }
.cover-bubble:focus-visible{ outline: 2px solid #FFFFFF; outline-offset: 3px; }
/* 等海报入场完成后再冒出来，避免和封面入场动画打架 */
.screen.is-active .cover-bubble{
  animation: bubbleIn .5s cubic-bezier(.22,1,.36,1) .95s both;
}
@keyframes bubbleIn{
  from{ opacity: 0; transform: translateY(10px) scale(.84); }
  to  { opacity: 1; transform: translateY(0)    scale(1);   }
}
@media (prefers-reduced-motion: reduce){
  .screen.is-active .cover-bubble{ animation: none; opacity: 1; }
}

/* 封面续玩：「换一块地，重新种一棵」
   原来它跟在整宽按钮下方、离画面底边较近；现在按钮改成气泡了，这行落到了浅色竹篮上，
   纯白字+下划线几乎看不清，所以做成深色半透明胶囊，任何底色上都能读。 */
.screen--cover .link-btn{
  display: block; text-align: center;
  width: fit-content; margin: 16px auto 0;
  padding: 8px 18px;
  color: #FFFFFF;
  text-decoration-color: rgba(255,255,255,.55);
  align-self: auto;
  background: rgba(30,18,4,.42);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  backdrop-filter: blur(8px) saturate(1.1);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(20,10,0,.2);
}

/* ---------------- 认养证 ---------------- */
.cert{
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-mid);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 22px 20px 24px;
  margin: 6px 0 0;
}
.cert-head{
  display:flex; align-items:baseline; justify-content:space-between;
  padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.cert-label{ font-size: 13px; font-weight: 700; letter-spacing: .3em; }
.cert-year{ font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--ink-faint); }

.field{ display:block; margin-bottom: 18px; }
.field-label{
  display:block; margin-bottom: 7px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .26em; color: var(--ink-faint);
}
.field-input{
  display:block; width: 100%;
  border:0; border-bottom: 1.5px solid var(--line-mid);
  background: transparent;
  padding: 4px 0 8px;
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color .18s;
}
.field-input::placeholder{ color: #CDBBA2; }
.field-input:focus{ border-bottom-color: var(--orange); }

.cert-id{
  display:flex; align-items:center; justify-content:space-between;
  margin-top: 22px; padding-top: 16px;
  border-top: 1px dashed var(--line-mid);
}
.id-value{
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em;
  color: var(--ink-soft);
}
.cert-seal{
  position: absolute; right: 16px; bottom: 58px;
  width: 62px; height: 62px;
  opacity: .92;
  transform: rotate(-7deg) scale(.6);
  transition: transform .34s cubic-bezier(.34,1.56,.64,1), opacity .3s;
}
.cert-seal.is-stamped{ transform: rotate(-7deg) scale(1); }

/* ---------------- 选项 ---------------- */
.options{ display:flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }

.opt{
  appearance:none; cursor:pointer; text-align:left; width:100%;
  display:flex; gap: 13px; align-items: flex-start;
  padding: 15px 14px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  font-family: var(--sans); color: var(--ink);
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.opt:active{ background: #FFF8EC; }
.opt .n{
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  color: var(--ink-faint); padding-top: 5px; flex: none;
}
.opt .t{ flex:1; }
.opt .t b{ display:block; font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.opt .t small{ display:block; font-size: 12px; line-height: 1.65; color: var(--ink-soft); }
.opt.is-picked{
  border-color: var(--orange);
  background: #FFF7EA;
  box-shadow: 0 0 0 1px var(--orange), var(--shadow-card);
}
.opt.is-picked .n{ color: var(--orange); font-weight: 700; }

/* 带插画图的选项卡 */
.opt--art{ flex-direction: column; gap: 0; padding: 0; overflow: hidden; border-radius: 16px; }
.opt--art .art{
  width: 100%; height: 150px;
  background: var(--bg-deep);
  display:block;
  position: relative;
}
.opt--art .art .opt-photo,
.opt--art .art .tree-photo{
  width:100%; height:100%; display:block; object-fit: cover;
}
.opt--art .body{ padding: 13px 15px 16px; width:100%; }
.opt--art .body b{ display:block; font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.opt--art .body small{ display:block; font-size: 12px; color: var(--ink-soft); line-height: 1.65; }
.opt--art .tag{
  display:inline-block; margin-top: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  color: var(--ink-faint);
  border: 1px solid var(--line-mid); border-radius: 99px;
  padding: 3px 9px;
  background: var(--bg);
}
.opt--art.is-picked .tag{ color: var(--orange-deep); border-color: var(--orange); background: var(--orange-wash); }

/* 选苗（第一步）：左图右文卡片，图区底色与图片背景一致，树苗完整显示 */
.opt--row{ flex-direction: row; align-items: stretch; }
.opt--row .art{
  flex: none; width: 45%; height: auto; min-height: 150px;
  background: #FCF8F4;
  overflow: hidden;
}
.opt--row .art .opt-photo{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit: contain;
  object-position: center bottom;
}
.opt--row .body{
  flex: 1; align-self: center;
  padding: 13px 15px 16px;
}

/* 选址（第二步）：左图右文横排；图区加宽、文字区收窄，图框锁 4:3 与地块图同比例，整图铺满不留白 */
.opt--plot .art{ width: 58%; min-height: auto; aspect-ratio: 4 / 3; align-self: center; background: #F6F2EC; }
.opt--plot .art .opt-photo{ object-fit: contain; object-position: center; }
.opt--plot .body{ flex: 1; padding: 13px 12px; }

.plot-note{
  padding: 14px 16px; margin-bottom: 20px;
  background: var(--leaf-wash);
  border-left: 3px solid var(--leaf);
  border-radius: 0 12px 12px 0;
  font-size: 12.5px; line-height: 1.85; color: #24542F;
}
.plot-note b{ font-weight: 700; }

/* 选址页一屏紧凑：压缩标题、卡片间距、说明与按钮占高，尽量让「继续」按钮落在首屏（仅作用于选址页） */
#s-plot .pad{ padding-top: 6px; }
#s-plot .eyebrow{ margin-bottom: 10px; }
#s-plot .h2{ font-size: 24px; margin-bottom: 10px; }
#s-plot .options{ gap: 10px; margin-bottom: 14px; }
#s-plot .opt--plot .art{ width: 48%; }
#s-plot .opt--plot .body{ padding: 12px 12px; }
#s-plot .plot-note{ padding: 11px 14px; margin-bottom: 14px; font-size: 12px; line-height: 1.6; }
#s-plot .result{ padding-top: 14px; }
#s-plot .result-pick{ margin-bottom: 8px; }
#s-plot .result-why{ margin-bottom: 12px; }
#s-plot .result .btn{ height: 48px; margin-top: 4px; }

/* 矮屏机型进一步收紧，保证继续按钮不被挤出首屏 */
@media (max-height: 720px){
  #s-plot .h2{ font-size: 22px; }
  #s-plot .opt--plot .art{ width: 42%; }
  #s-plot .plot-note{ padding: 9px 12px; line-height: 1.5; }
  #s-plot .result .btn{ height: 46px; }
}

/* ---------------- 生长时间轴 ---------------- */
.timeline{
  display:flex; gap: 0; margin: 4px 0 6px;
  border-top: 1.5px solid var(--line);
  padding-top: 12px;
}
.tl-item{
  flex:1; position: relative; padding-top: 12px;
  font-size: 10.5px; letter-spacing: .1em; color: var(--ink-faint);
  text-align:center;
}
.tl-item::before{
  content:""; position:absolute; top:0; left:50%; transform: translate(-50%,-50%);
  width:6px; height:6px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line-mid);
}
.tl-item.is-done{ color: var(--ink-soft); }
.tl-item.is-done::before{ background: var(--leaf); box-shadow: none; }
.tl-item.is-now{ color: var(--orange-deep); font-weight: 700; }
.tl-item.is-now::before{ background: var(--orange); box-shadow: 0 0 0 4px var(--orange-wash); }

/* ---------------- 果树舞台 ---------------- */
.tree-stage{
  width: 100%; max-width: 360px; margin: 10px auto 2px;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  background: var(--bg-deep);
}
.tree-stage .tree-photo{
  width:100%; height:100%; display:block;
  object-fit: cover; object-position: 50% 60%;
  transition: filter .5s ease, transform .5s ease;
}
.tree-stage--harvest{ max-width: 350px; object-position: center; }

/* 采摘页一屏紧凑：压低果树图、收紧选项卡与结果面板，让「收下这一季」尽量落在首屏（仅作用于采摘页） */
#s-harvest .pad{ padding-top: 6px; }
#s-harvest .eyebrow{ margin-bottom: 10px; }
#s-harvest .h2{ margin-bottom: 8px; }
#s-harvest .lede{ margin-bottom: 14px; }
#s-harvest .tree-stage--harvest{ aspect-ratio: 16 / 10; max-width: 320px; margin: 6px auto 2px; }
#s-harvest .options{ gap: 10px; margin-bottom: 14px; }
#s-harvest .options .opt{ padding: 12px 14px; }
#s-harvest .harvest-result .result{ padding-top: 14px; }
#s-harvest .result-pick{ margin-bottom: 8px; }
#s-harvest .result-why{ margin-bottom: 10px; }
#s-harvest .result-note{ margin-bottom: 12px; }
#s-harvest .result .btn{ height: 48px; margin-top: 4px; }

@media (max-height: 720px){
  #s-harvest .tree-stage--harvest{ aspect-ratio: 16 / 9; }
  #s-harvest .result .btn{ height: 46px; }
}

/* 属性条 */
.stats{ margin: 14px 0 20px; display:flex; flex-direction: column; gap: 10px; }
.stat{
  display:grid; grid-template-columns: 30px 1fr 26px;
  gap: 10px; align-items:center;
  font-size: 11px; font-weight: 600; color: var(--ink-soft); letter-spacing: .08em;
}
.stat-track{ height: 4px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.stat-fill{
  position:absolute; left:0; top:0; bottom:0; width:0;
  border-radius: 2px;
  background: var(--leaf);
  transition: width .62s var(--ease), background .3s;
}
.stat-val{ font-family: var(--mono); font-size: 10.5px; text-align:right; color: var(--ink-faint); }
.stat-note{
  margin: -2px 0 0; text-align: right;
  font-size: 10.5px; letter-spacing: .06em; color: var(--ink-faint);
}

/* ---------------- 任务卡 ---------------- */
.task{ margin-top: 4px; }
.task-season{
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  color: var(--orange-deep); margin-bottom: 8px;
}
.task-q{
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 18px; line-height: 1.7; font-weight: 700; letter-spacing: .03em;
}
.task-ctx{
  margin: 0 0 18px;
  font-size: 13px; line-height: 1.9; color: var(--ink-soft);
}

/* 选择后的解释 */
.result{
  border-top: 1.5px solid var(--line);
  padding-top: 18px;
  animation: rise .34s var(--ease) both;
}
.result-pick{
  display:flex; align-items: baseline; gap: 8px;
  font-size: 14px; font-weight: 700; margin-bottom: 10px;
}
.result-pick span{
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  color: var(--orange); font-weight: 400;
}
.result-why{
  margin: 0 0 16px;
  font-size: 13.5px; line-height: 1.9; color: var(--ink-soft);
  padding-left: 12px; border-left: 3px solid var(--orange-wash);
}
.result-note{
  margin: -6px 0 18px;
  font-size: 12.5px; line-height: 1.85; color: var(--ink-faint);
  padding-left: 12px;
}
.deltas{ display:flex; gap: 14px; margin-bottom: 20px; }
.delta{
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  color: var(--ink-faint);
}
.delta.down{ color: var(--orange-deep); }
.delta.up{ color: var(--leaf); }

/* ---------------- 种植日记 ---------------- */
.screen--diary{ padding-left:0; padding-right:0; }
.diary-wrap{
  max-width: 460px; margin: 0 auto; width: 100%;
  padding: 0 22px;
}
.diary-hero{
  position: relative;
  margin: 0 -22px;
  height: 218px;
  overflow: hidden;
}
.diary-hero img{
  width:100%; height:100%; display:block; object-fit: cover; object-position: center 40%;
}
.diary-hero::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(24,14,4,.06) 0%, rgba(24,14,4,.04) 40%, rgba(26,16,5,.66) 100%);
}
.diary-hero-txt{
  position:absolute; left:22px; right:22px; bottom:16px; z-index:2;
  color:#fff;
  text-shadow: 0 1px 8px rgba(20,10,0,.55);
}
.diary-title{
  font-family: var(--serif);
  font-size: 24px; font-weight: 700; line-height: 1.45;
  margin: 0 0 6px; letter-spacing: .05em;
  text-shadow: 0 2px 12px rgba(20,10,0,.5);
}
.diary-hero .diary-meta{ color: rgba(255,255,255,.9); }
.diary-meta{
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  display:flex; gap: 12px; flex-wrap: wrap;
}

.score-block{
  display:flex; align-items:center; gap: 20px;
  padding: 24px 0 22px;
  border-bottom: 1.5px solid var(--line);
}
.score-ring{ width: 96px; height: 96px; flex:none; }
.score-ring svg{ width:100%; height:100%; display:block; }
.score-txt{ flex:1; }
.score-grade{
  font-family: var(--serif);
  font-size: 21px; font-weight: 700; letter-spacing: .08em; margin-bottom: 6px;
}
.score-grade em{
  font-style: normal; font-size: 11px; letter-spacing: .2em;
  color: var(--gold); border: 1px solid var(--gold); border-radius: 99px;
  padding: 1px 8px; margin-left: 8px; vertical-align: 3px;
}
.score-comment{ font-size: 13px; line-height: 1.9; color: var(--ink-soft); margin:0; }
.score-stats{
  margin: 8px 0 0;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  color: var(--ink-faint);
}

.section-label{
  font-size: 10.5px; font-weight: 700; letter-spacing: .3em; color: var(--ink-faint);
  margin: 26px 0 12px;
}

.entry{
  display:grid; grid-template-columns: 52px 1fr;
  gap: 12px; padding: 13px 0;
  border-bottom: 1px solid var(--line);
  opacity:0; transform: translateY(6px);
  animation: rise .5s var(--ease) forwards;
}
.entry-d{
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  color: var(--ink-faint); padding-top: 3px; line-height: 1.5;
}
.entry-b b{ display:block; font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.entry-b span{ display:block; font-size: 12px; line-height: 1.75; color: var(--ink-soft); }

/* 日记里新增：苗 / 地的决定记录 */
.facts{
  display:grid; gap: 10px;
  padding: 16px;
  margin: 14px 0 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}
.facts .fact{
  display:flex; align-items:baseline; gap: 12px;
  font-size: 13px; line-height: 1.7;
}
.facts .fact span{
  flex: none; width: 44px;
  font-size: 10.5px; letter-spacing: .2em; color: var(--ink-faint);
}
.facts .fact b{ font-weight: 700; }

.sci{
  margin-top: 26px; padding: 18px 18px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-card);
  font-size: 13px; line-height: 2.1; color: #4A3A28;
}
.sci b{ font-weight: 700; color: var(--orange-deep); }
.sci-sign{
  display:block; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: .16em; color: var(--ink-faint);
}

.diary-foot{
  display:flex; align-items:center; justify-content:space-between;
  margin: 26px 0 8px;
  padding-top: 16px; border-top: 1.5px solid var(--line);
}

/* ---------------- 海报 ---------------- */
.pad--poster{
  align-items: stretch;
  /* 给底部固定操作栏留出遮挡空间，避免海报图/文案被盖住 */
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}
.poster-frame{
  width: 100%; max-width: 300px; margin: 0 auto;
  background: var(--card);
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--line-mid);
  box-shadow: var(--shadow-card);
}
.poster-frame img{ display:block; width:100%; height:auto; border-radius: 12px; }
/* 保存/分享固定底部操作栏：长海报下也无需下滑即可点到 */
.poster-actions-bar{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  padding: 12px 22px calc(14px + env(safe-area-inset-bottom));
  background: rgba(251,249,240,.94);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  border-top: 1px solid var(--line);
}
.poster-actions{ display:flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.poster-actions .btn{ flex: 1; margin-top: 0; }
.poster-tip{
  margin: 12px 0 0; font-size: 11px; line-height: 1.7;
  color: var(--ink-faint); text-align: center;
}

/* ---------------- 科普弹窗 ---------------- */
.knowledge{
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 26px;
  background: rgba(43, 33, 22, .38);
  opacity: 0; pointer-events: none;
  transition: opacity .26s var(--ease);
}
.knowledge.is-open{ opacity: 1; pointer-events: auto; }
.knowledge-card{
  width: 100%; max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line-mid);
  border-radius: 20px;
  box-shadow: var(--shadow-pop);
  padding: 22px 20px 20px;
  transform: translateY(14px) scale(.98);
  transition: transform .26s var(--ease);
}
.knowledge.is-open .knowledge-card{ transform: none; }
.knowledge-tag{
  display:inline-block; margin-bottom: 12px;
  font-size: 10px; letter-spacing: .3em; color: #FFFFFF;
  background: var(--orange);
  border-radius: 99px; padding: 4px 12px;
}
.knowledge-title{
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 19px; font-weight: 700; letter-spacing: .04em;
}
.knowledge-body{
  margin: 0 0 18px;
  font-size: 13px; line-height: 2; color: var(--ink-soft);
}
.knowledge-close{
  appearance:none; cursor:pointer; width:100%; height: 46px;
  border:0; border-radius: 12px;
  background: var(--orange); color:#fff;
  font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .2em;
}

/* ---------------- 大屏 ---------------- */
@media (min-width: 720px){
  body{ background: #EFE3C6; }
  #stage{
    max-width: 460px; margin: 0 auto;
    background: var(--bg);
    min-height: 100dvh;
    box-shadow: 0 0 0 1px rgba(58,44,31,.10), 0 20px 60px rgba(58,44,31,.14);
  }
  .topbar{ max-width: 460px; left:50%; transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce){
  /* 只关掉"一直在动"的装饰：加载页呼吸、挂果树摇摆、水滴下落。
     之前这里是 *{animation-duration:.01ms!important}，会把换屏入场、结果卡、
     树图擦拭这些"点了才出现"的反馈一并抹掉 —— 在开了系统"减弱动态效果"的机器上
     （Windows 关闭"动画效果"、iOS 辅助功能里的同名开关）就成了"点了没反应"。
     反馈属于信息，这里保留，只缩短到不晃眼。 */
  .loader-mark,
  .tree-stage--harvest,
  .water-anim .drop,
  .water-anim .splash{ animation: none !important; }

  .screen.is-active > *{ animation-duration: .34s !important; }
  .result{ animation-duration: .34s !important; }
  .tree-stage .tree-photo.tree-in{ animation-duration: .6s !important; }
  /* 换图擦拭是"我的选择生效了"的主要视觉反馈，留足 0.8s，否则等于没有 */
  .tree-stage .tree-photo.tree-refresh,
  .tree-stage .tree-photo.tree-refresh-up{ animation-duration: .8s !important; }
}

/* 采摘：成熟橙树轻微摆动 + 果色更足 */
.tree-stage--harvest{ animation: sway 5.5s ease-in-out infinite; }
@keyframes sway{
  0%,100%{ transform: rotate(-.5deg); }
  50%{ transform: rotate(.5deg); }
}
.tree-stage--harvest .tree-photo{ filter: saturate(1.08) brightness(1.02); }

/* 浇水动画：第一次管护选择后，水滴洒向树苗根部 */
.water-anim{ position:absolute; inset:0; pointer-events:none; overflow:hidden; z-index:3; }
.water-anim .drop{
  position:absolute; top:-8%;
  width:9px; height:14px;
  border-radius:50% 50% 55% 45%;
  background:linear-gradient(180deg, rgba(150,210,240,.95), rgba(120,190,235,.55));
  box-shadow:0 0 6px rgba(140,200,245,.7);
  animation: waterfall .9s ease-in forwards;
}
.water-anim .splash{
  position:absolute; left:50%; bottom:5%;
  width:120px; height:22px;
  border-radius:50%;
  background:radial-gradient(ellipse at center, rgba(150,215,245,.6), rgba(150,215,245,0) 70%);
  transform:translateX(-50%) scale(.2);
  animation: watersplash .9s ease-out forwards;
}
@keyframes waterfall{
  0%{ top:-8%; opacity:0; }
  10%{ opacity:.95; }
  78%{ opacity:.9; }
  100%{ top:72%; opacity:0; }
}
@keyframes watersplash{
  0%{ transform:translateX(-50%) scale(.2); opacity:0; }
  35%{ opacity:.85; }
  100%{ transform:translateX(-50%) scale(1.2); opacity:0; }
}

/* 浇水后苗态切换过渡：淡入 + 轻微生长 */
.tree-stage .tree-photo.tree-in{ animation: treeIn .9s ease-out forwards; }
@keyframes treeIn{
  0%{ opacity:0; transform:scale(.88); }
  100%{ opacity:1; transform:scale(1); }
}

/* 原图刷新过渡：派生图从原图上方往下刷出 */
.tree-stage .tree-photo.tree-refresh{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  animation: treeRefresh 1.1s ease-out forwards;
}
@keyframes treeRefresh{
  0%{ clip-path: inset(0 0 100% 0); }
  100%{ clip-path: inset(0 0 0 0); }
}

/* 原图刷新过渡（从下往上）：派生图从原图下方往上刷出 */
.tree-stage .tree-photo.tree-refresh-up{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  animation: treeRefreshUp 1.1s ease-out forwards;
}
@keyframes treeRefreshUp{
  0%{ clip-path: inset(100% 0 0 0); }
  100%{ clip-path: inset(0 0 0 0); }
}
