/* =====================================================================
 * 09 草坪修剪高度频次 · 独立视觉：生长曲线图 / 年度强度条
 * 12 月色阶 + 锯齿状修剪曲线 + 三分之一原则校验，与前八页版式不同。
 * ===================================================================== */

.hc.hc--lm { --hc-a: #4b7f33; --hc-a-soft: #eaf2e2; }
:root[data-theme="dark"] .hc.hc--lm { --hc-a: #9ecf72; --hc-a-soft: #22321b; }

.lm-hero { padding-top: 34px; }
.lm-head { max-width: 850px; }

/* ---------- 年度强度条 ---------- */
.lm-year {
    margin-top: 24px; padding: 16px 18px 18px; border: 1px solid var(--hc-line);
    border-radius: var(--hc-r); background: var(--hc-card); box-shadow: var(--hc-shadow-sm);
}
.lm-year-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.lm-year-head span { font-size: 15px; font-weight: 720; }
.lm-year-head small { font-size: 11.5px; color: var(--hc-muted); }
.lm-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; }
.lm-month {
    padding: 8px 2px 7px; border: 1px solid var(--hc-line-2); border-radius: 7px;
    text-align: center; background: var(--hc-card-2); transition: background .25s;
}
.lm-month b { display: block; font-family: var(--hc-serif); font-size: 12px; color: var(--hc-ink-2); }
.lm-month small { display: block; font-size: 10px; color: var(--hc-muted); margin-top: 2px; }
.lm-month.is-cur { border-color: var(--hc-a); }
.lm-month.is-cur b { color: var(--hc-a); }

/* ---------- 曲线 + 参数 ---------- */
.lm-bench { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(270px, .7fr); gap: 18px; margin-top: 18px; align-items: start; }
.lm-chart {
    border: 1px solid var(--hc-line); border-radius: var(--hc-r);
    background: var(--hc-card); box-shadow: var(--hc-shadow); overflow: hidden;
}
.lm-chart-head {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    padding: 12px 18px; border-bottom: 1px solid var(--hc-line-2);
    font-family: var(--hc-serif); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--hc-muted);
}
.lm-chart-head span:last-child { font-family: var(--hc-sans); letter-spacing: 0; font-size: 12px; color: var(--hc-a); font-weight: 700; }
#lmSvg { display: block; width: 100%; height: auto; }
#lmAreaGrad stop { stop-color: var(--hc-a); }
.lm-grid-line { stroke: var(--hc-line-2); stroke-width: 1; }
.lm-grid-t { fill: var(--hc-muted); font-size: 10px; }
.lm-curve { fill: none; stroke: var(--hc-a); stroke-width: 2.6; stroke-linejoin: round; }
.lm-target { stroke: var(--hc-ok); stroke-width: 1.5; stroke-dasharray: 6 5; }
.lm-thresh { stroke: var(--hc-warn); stroke-width: 1.5; stroke-dasharray: 3 5; }
.lm-annot { fill: var(--hc-ink-2); font-size: 10.5px; font-weight: 650; }
.lm-axis-cap { fill: var(--hc-muted); font-size: 10px; }
.lm-dot { fill: var(--hc-card); stroke: var(--hc-a); stroke-width: 2; }
.lm-x-lbl { fill: var(--hc-muted); font-size: 10px; }
.lm-chart-foot {
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
    padding: 11px 18px; border-top: 1px solid var(--hc-line-2); font-size: 11.5px; color: var(--hc-muted);
}
.lm-chart-foot span:last-child { margin-left: auto; }
.lm-key { display: inline-block; width: 15px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: 3px; }
.lm-key--curve { background: var(--hc-a); }
.lm-key--target { background: var(--hc-ok); }
.lm-key--thresh { background: var(--hc-warn); }

.lm-form {
    padding: 18px; border: 1px solid var(--hc-line); border-radius: var(--hc-r);
    background: var(--hc-card); box-shadow: var(--hc-shadow);
}
.lm-form-head {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 15.5px; font-weight: 720; padding-bottom: 11px; margin-bottom: 13px; border-bottom: 1px dashed var(--hc-line);
}
.lm-form-head small { font-size: 11.5px; font-weight: 400; color: var(--hc-muted); }
.lm-form-head b, .lm-form .hc-field label b { color: var(--hc-danger); }
.lm-form .hc-fields { gap: 11px; }
.lm-switches { display: grid; gap: 7px; margin-top: 14px; }
.lm-switches .hc-check { padding: 7px 10px; }
.lm-form .hc-btn { flex: 1 1 auto; font-size: 12.5px; padding: 9px; }

/* ---------- 结论 ---------- */
.lm-verdict { margin-top: 14px; }
.lm-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 15px; }
.lm-plan { padding: 18px 19px; border: 1px solid var(--hc-line-2); border-radius: var(--hc-r); background: var(--hc-card); box-shadow: var(--hc-shadow-sm); }
.lm-plan .tag { font-family: var(--hc-serif); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--hc-a); }
.lm-plan h3 { margin: 7px 0 9px; font-size: 17px; }
.lm-plan p { margin: 0; font-size: 13px; line-height: 1.75; color: var(--hc-ink-2); }
.lm-plan ul { margin: 10px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--hc-ink-2); }
.lm-plan li { margin-bottom: 5px; }
.lm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 1000px) {
    .lm-bench { grid-template-columns: 1fr; }
    .lm-plans, .lm-two { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .lm-months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .lm-form { padding: 15px; }
    .lm-chart-foot span:last-child { margin-left: 0; }
}
