:root {
  color-scheme: light;
  --ink: #163c35;
  --muted: #45635d;
  --accent: #0c6755;
  --deep: #074f41;
  --mint: #e9f6ef;
  --line: #cbded5;
  --warm: #ffc7a8;
  font: 16px/1.6 "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: #fbfdfa;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--deep); text-underline-offset: .2em; }
button, input, select { font: inherit; }
button, a, input, select, summary { outline-offset: .22rem; }
:focus-visible { outline: 2px solid #107a64; }
h1,h2,h3,h4,p,dl,dd { margin: 0; }
h1,h2,h3,h4 { line-height: 1.24; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.035em; }
h3 { font-size: 1.18rem; }
small { font-size: .85rem; }
p, small { color: var(--muted); }
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.top { background: white; border-bottom: 1px solid #e0ece5; }
.top-inner { min-height: 4.25rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; line-height: 1.1; color: var(--ink); }
.brand strong { font: 800 1.05rem/1.1 system-ui, sans-serif; letter-spacing: .035em; }
.brand small { display: block; margin-top: .24em; }
.brand-mark { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; background: var(--accent); color: white; border-radius: .65rem; font-size: 1.25rem; }
.top nav { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .88rem; justify-content: end; }
.top nav a { text-decoration: none; font-weight: 700; }
.top nav a:hover { text-decoration: underline; }
.hero { display: grid; gap: 1.5rem; margin-block: 1rem 2.5rem; overflow: hidden; background: var(--mint); border-radius: 1.4rem; }
.hero-copy { padding: 1.6rem 1.25rem 0; }
.eyebrow { color: var(--deep); font-size: .85rem; letter-spacing: .04em; font-weight: 700; }
.eyebrow span { display: inline-block; vertical-align: .08em; width: .52em; height: .52em; background: #23886d; border-radius: 50%; margin-right: .25em; }
.hero h1 { margin-block: .55rem .75rem; font-size: clamp(2.45rem, 8.9vw, 5.3rem); font-weight: 850; line-height: 1.12; letter-spacing: -.065em; }
.hero h1 span { color: #1c8069; }
.lede { max-width: 26rem; }
.actions { display: flex; align-items: center; gap: .75rem 1.2rem; flex-wrap: wrap; margin-top: 1.15rem; }
.button,.secondary,.danger,.text-button {
  padding: .68rem 1rem; border: 1px solid transparent; display: inline-block; text-align: center;
  border-radius: .58rem; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.3;
}
.button { background: var(--accent); color: white; }
.button:hover { background: var(--deep); }
.secondary { background: white; border-color: var(--line); color: var(--deep); }
.secondary:hover { background: var(--mint); }
.danger { background: #9a302d; color: white; }
.text-button { color: #943a34; background: transparent; }
button:disabled { opacity: .65; cursor: wait; }
.plain-link { font-weight: 700; }
.hero-art { min-height: 11rem; height: clamp(12rem, 52vw, 20rem); position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, #c1e4d4, #86c6b2); }
.arch { position: absolute; inset: 8% 15% 0 23%; border-radius: 50% 50% 0 0 / 65% 65% 0 0; background: linear-gradient(155deg, #f7fff4, #c8eddc 76%); }
.art-floor { position: absolute; inset: 76% 0 0; background: linear-gradient(150deg, #8ac9b6, #6db6a3); }
.spray { position: absolute; width: 23%; height: 65%; left: 46%; bottom: 15%; transform: rotate(9deg); }
.bottle { position: absolute; bottom: 0; height: 67%; left: 0; right: 0; background: linear-gradient(100deg,#19745e,#429e83 58%,#176653); border-radius: 38% 38% 17% 17% / 25% 25% 12% 12%; box-shadow: inset .3rem 0 .65rem #b7f2d44f, .7rem 1rem 1.7rem #1c625755; }
.bottle-label { position: absolute; inset: 31% 12% 13%; border-radius: 48% 48% 34% 34%; display: grid; place-items: center; color: var(--deep); background: #f2fbec; font-size: clamp(1.2rem, 5vw, 3rem); }
.neck { position: absolute; background: repeating-linear-gradient(90deg,#0c5143 0 .18rem,#216858 .18rem .29rem); width: 50%; height: 24%; left: 25%; top: 12%; border-radius: .35rem; }
.nozzle { position: absolute; background: #0d594c; width: 102%; height: 18%; left: -18%; top: 0; border-radius: .3rem 65% .34rem .34rem; box-shadow: inset 0 .25rem #338470; z-index: 1; }
.trigger { position: absolute; background: #f6b69b; width: 16%; height: 19%; left: 9%; top: 11%; transform: rotate(30deg); border-radius: .2rem; }
.cloth { position: absolute; left: 14%; bottom: 13%; width: 48%; height: 15%; transform: rotate(-7deg) skewX(-26deg); border-radius: 23% 26% 13% 21%; background: repeating-linear-gradient(175deg,#e6f8ef 0 .45rem,#c9e7dc .45rem .51rem); box-shadow: 0 .35rem #a1cfbf, .4rem .8rem 1rem #2e71674f; }
.sponge { position: absolute; right: 14%; bottom: 10%; width: 23%; height: 12%; transform: rotate(-7deg) skewX(-13deg); border-radius: .65rem; background: radial-gradient(#f3ab8c 15%, transparent 18%) 0 0/.42rem .42rem, var(--warm); box-shadow: 0 .32rem #db987c, .25rem .6rem .6rem #335c4d36; }
.spark { position: absolute; line-height: 1; color: white; font-size: clamp(1.5rem, 6vw, 3.5rem); }
.spark-one { left: 23%; top: 24%; }
.spark-two { right: 12%; top: 30%; color: #edfff6; }
.spark-three { right: 24%; top: 12%; font-size: clamp(.9rem, 3vw, 1.7rem); color: #fff3e4; }
.section { margin-block: 2.5rem; scroll-margin-top: 1rem; }
.section-title { margin-bottom: 1rem; }
.section-title p { margin-top: .25rem; }
.service-grid,.records,.metrics { display: grid; gap: .8rem; }
.tile,.form-card,.record { border: 1px solid var(--line); border-radius: 1rem; background: white; padding: 1.05rem; min-width: 0; }
.tile-icon { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: .55rem; background: var(--mint); color: var(--deep); margin-bottom: .75rem; font-size: 1.45rem; line-height: 1; }
.tile:nth-child(3) .tile-icon { background: #ffede3; color: #804c37; }
.tile p { margin-top: .15rem; font-size: .92rem; }
.tile dl { margin-top: .65rem; }
.tile dl div { padding-block: .3rem; display: flex; justify-content: space-between; align-items: baseline; gap: .35rem; border-top: 1px solid #e4eee7; }
.tile dd { font-weight: 800; white-space: nowrap; color: var(--accent); }
.tile dt small { display: block; }
.form-band { background: var(--mint); padding-block: 2rem 2.5rem; margin-bottom: 0; }
.apply-grid { display: grid; gap: 1.2rem; align-items: start; }
.apply-grid h2 + p { margin-top: .45rem; }
details { margin-top: 1rem; }
details p { margin-top: .4rem; font-size: .91rem; }
summary { cursor: pointer; font-weight: 700; color: var(--deep); }
.switcher { display: flex; gap: .25rem; background: #edf5ef; padding: .25rem; border-radius: .7rem; margin-bottom: 1rem; }
.switcher button { flex: 1; border: 0; border-radius: .5rem; cursor: pointer; padding: .62rem .26rem; color: var(--deep); background: transparent; font-size: .92rem; }
.switcher button[aria-pressed=true] { background: var(--accent); color: white; font-weight: 700; }
.notice { background: #fff2eb; border-radius: .55rem; padding: .85rem; color: #743f30; }
form { display: grid; gap: .85rem; }
form > button { justify-self: start; }
label { display: grid; min-width: 0; gap: .22rem; font-size: .91rem; font-weight: 650; }
label small { font-weight: 400; }
input:not([type=checkbox]),select { width: 100%; min-width: 0; max-width: 100%; min-height: 2.65rem; border: 1px solid #aabfb5; border-radius: .48rem; padding: .45rem .55rem; background: #fbfdfa; color: var(--ink); font-size: 1rem; }
input[type=date],input[type=month] { display: block; }
input[type=checkbox] { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin: .15rem 0 0; accent-color: var(--accent); }
.fields { display: grid; gap: .85rem; }
fieldset { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: .55rem; padding: .5rem .7rem .68rem; }
legend { font-weight: 700; font-size: .91rem; padding-inline: .2rem; }
.check { display: flex; gap: .5rem; align-items: start; font-weight: 500; }
.choices { display: flex; flex-wrap: wrap; gap: .35rem .85rem; }
.feedback:empty { display: none; }
.feedback:not(:empty) { background: var(--mint); color: var(--deep); border-radius: .55rem; padding: .65rem .8rem; }
.feedback.error:not(:empty) { background: #fff2eb; color: #862d28; }
.footer { padding-block: 1.35rem; border-top: 1px solid var(--line); background: white; font-size: .9rem; }
.footer .wrap { display: flex; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; }
.footer strong { color: var(--ink); }
.admin-main { padding-block: 1.5rem 2.5rem; min-height: 65vh; }
.admin-main h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: .8rem; }
.admin-main h2 { margin-bottom: .6rem; }
.admin-main h3 { margin-block: 1rem .6rem; }
.admin-main form h3 { margin: 0; }
.admin-main #admin-message { margin-bottom: 1rem; }
.admin-nav { max-width: 32rem; }
.login-card { max-width: 28rem; }
.record { overflow-wrap: anywhere; }
.record h4 { font-size: 1.05rem; margin-bottom: .5rem; }
.record p { font-size: .9rem; }
.record strong { color: var(--ink); }
.record .inline-controls { margin-top: .65rem; }
.inline-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; }
.inline-controls label { flex: 1 1 9rem; }
.inline-controls button { flex: 0 0 auto; }
.delete-confirm { background: #fff2eb; border-radius: .5rem; padding: .65rem; }
.delete-confirm button { margin: .3rem .3rem 0 0; }
.settlement-tools { display: flex; align-items: end; gap: .7rem; flex-wrap: wrap; margin-block: .85rem; }
.metric { background: var(--mint); padding: .85rem 1rem; border-radius: .7rem; display: grid; }
.metric span { font-size: .88rem; color: var(--muted); }
.metric strong { font-size: 1.7rem; line-height: 1.25; overflow-wrap: anywhere; }
@media (min-width: 36rem) {
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .records { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
}
@media (min-width: 48rem) {
  .wrap { width: min(100% - 4rem, 72rem); }
  .hero { grid-template-columns: 1fr .88fr; gap: 0; margin-top: 1.65rem; }
  .hero-copy { padding: 2.5rem 1.8rem 2.55rem 2.65rem; align-self: center; }
  .hero-art { height: 100%; min-height: 22rem; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .section { margin-block: 3.3rem; }
  .form-band { margin-bottom: 0; padding-block: 2.6rem; }
  .apply-grid { grid-template-columns: minmax(0, .58fr) minmax(0, 1fr); gap: 2rem; }
  .tile,.form-card,.record { padding: 1.25rem; }
  .order-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
