/* 果树施肥计算器 —— 橄榄绿 · 年轮金 */
.c60{
  --a:#4d7c0f;
  --a2:#facc15;
  --a-soft:rgba(77,124,15,.10);
  --a-line:rgba(77,124,15,.26);
}

/* 年轮质感：右侧同心年轮 + 果园暖光 */
.c60-hero{
  background:
    radial-gradient(760px 320px at 12% 0%, rgba(255,255,255,.74), transparent 62%),
    repeating-radial-gradient(circle at 88% 52%, transparent 0 26px, rgba(77,124,15,.055) 26px 28px),
    linear-gradient(135deg,#f7fee7 0%,#fef9c3 50%,#ecfccb 100%);
}
:root[data-theme="dark"] .c60-hero{
  background:
    radial-gradient(760px 320px at 12% 0%, rgba(250,204,21,.10), transparent 62%),
    repeating-radial-gradient(circle at 88% 52%, transparent 0 26px, rgba(163,230,53,.05) 26px 28px),
    linear-gradient(135deg,#0d1607 0%,#1a1a06 50%,#0e1626 100%);
}
.c60-hero-art .tf-rings{
  position:relative;
  width:180px;
  height:180px;
  display:grid;
  place-items:center;
}
.c60-hero-art .tf-rings span{
  position:absolute;
  border-radius:50%;
  border:2px dashed rgba(77,124,15,.28);
}
.c60-hero-art .tf-rings .r1{width:172px;height:172px;}
.c60-hero-art .tf-rings .r2{width:126px;height:126px;border-style:solid;border-color:rgba(250,204,21,.55);}
.c60-hero-art .tf-rings .r3{width:82px;height:82px;border-color:rgba(77,124,15,.4);}
.c60-hero-art .tf-rings .core-dot{
  position:relative;
  display:grid;
  place-items:center;
  width:52px;height:52px;
  border-radius:50%;
  font-size:24px;
  background:linear-gradient(145deg,#a3e635,#4d7c0f);
  box-shadow:0 10px 26px rgba(77,124,15,.32);
}
.c60-hero-art .chip{background:rgba(255,255,255,.9);}
:root[data-theme="dark"] .c60-hero-art .chip{background:rgba(14,22,38,.86);}
.c60-hero-art .chip b{color:#4d7c0f;}
:root[data-theme="dark"] .c60-hero-art .chip b{color:#facc15;}

/* 主结果：果皮青 + 年轮金 */
.c60-metric.is-hero{
  background:linear-gradient(135deg,#365314,#4d7c0f 46%,#a16207 100%);
  box-shadow:0 16px 34px rgba(77,124,15,.32);
}
.c60-metric.is-hero .v{font-size:clamp(28px,3.4vw,42px);}

.c60-segbtn.on{color:#4d7c0f;}
:root[data-theme="dark"] .c60-segbtn.on{color:#facc15;}
.c60-chip.on{background:rgba(77,124,15,.12);border-color:#4d7c0f;color:#365314;}
:root[data-theme="dark"] .c60-chip.on{color:#facc15;border-color:#facc15;}

/* 小标题 */
.tf-sub{
  position:relative;
  margin:20px 0 2px;
  padding-left:12px;
  font-size:13.5px;
  font-weight:900;
  color:var(--ink);
}
.tf-sub::before{
  content:"";
  position:absolute;
  left:0;top:5px;bottom:5px;
  width:4px;
  border-radius:4px;
  background:linear-gradient(180deg,#4d7c0f,#facc15);
}

/* 年轮示意 */
.tf-ring-art{
  margin-top:10px;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:
    repeating-radial-gradient(circle at 35% 50%, transparent 0 24px, color-mix(in srgb,var(--a) 5%,transparent) 24px 26px),
    linear-gradient(160deg,color-mix(in srgb,var(--a) 4%,var(--card)),var(--card));
  overflow-x:auto;
}
.tf-ring-art svg{display:block;margin:0 auto;max-width:100%;}

/* 三次分配环图 */
.c60-donut-wrap{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:18px;
  align-items:center;
  margin-top:10px;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background:linear-gradient(160deg,color-mix(in srgb,var(--a) 4%,var(--card)),var(--card));
}
.c60-donut-wrap .c60-donut{display:grid;place-items:center;color:var(--ink);}
.tf-legend{display:flex;flex-direction:column;gap:7px;}
.tf-legend .row{
  display:grid;
  grid-template-columns:10px minmax(0,1fr) auto;
  gap:9px;
  align-items:center;
  font-size:12.5px;
  color:var(--ink2);
}
.tf-legend .dot{width:10px;height:10px;border-radius:3px;}
.tf-legend .nm{font-weight:800;color:var(--ink);}
.tf-legend .vl{font-variant-numeric:tabular-nums;color:var(--muted);font-weight:800;white-space:nowrap;}

/* 条形图：橄榄到金黄 */
.c60-bar-row .bf{background:linear-gradient(90deg,#65a30d,#facc15);}

/* 表格 */
#tfSplitTable td:first-child,#tfPlanTable td:first-child{font-weight:800;color:var(--ink);}
#tfSplitTable tbody tr:nth-child(3) td{background:color-mix(in srgb,var(--a) 5%,var(--card));font-weight:800;color:var(--ink);}
#tfPlanTable tbody tr.on td{background:color-mix(in srgb,var(--a) 8%,var(--card));font-weight:900;color:var(--ink);}
#tfSplitTable td:nth-child(n+2),#tfPlanTable td:nth-child(n+2){font-variant-numeric:tabular-nums;}

/* 单株产量输入高亮 */
#tfYieldField .c60-control{
  border-color:rgba(77,124,15,.34);
  background:linear-gradient(0deg,rgba(77,124,15,.03),rgba(77,124,15,.03)) var(--card);
}
:root[data-theme="dark"] #tfYieldField .c60-control{background:rgba(250,204,21,.05);}

/* 树龄提示 */
#tfAgeTip{
  border-left:3px solid #4d7c0f;
  padding-left:10px;
  color:var(--ink2);
}
:root[data-theme="dark"] #tfAgeTip{border-left-color:#facc15;}

@media (max-width:640px){
  .c60-donut-wrap{grid-template-columns:1fr;justify-items:center;}
  .tf-legend{width:100%;}
  .c60-hero-art{display:none;}
}
