:root {
  font-family: "Microsoft YaHei UI", "PingFang SC", Arial, sans-serif;
  color: #1b2b2b;
  background: #f5f7fa;
  --green: #2e7d32;
  --lime: #7ed321;
  --soft-lime: #cbf07a;
  --line: #dfe7e0;
  --muted: #5b7069;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
button,
.button {
  border: 0;
  background: var(--green);
  color: white;
  border-radius: 12px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover,
.button:hover {
  filter: brightness(1.12);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.light,
.light {
  background: #edf6e4;
  color: var(--green);
}
button.danger {
  background: #853b32;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #fff;
  font: inherit;
  color: inherit;
}
textarea {
  min-height: 95px;
}
input[type="checkbox"] {
  width: auto;
}
label {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  color: #3c5141;
  font-size: 14px;
}
label.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: -0.06em;
  margin-bottom: 16px;
}
h2 {
  font-size: 21px;
}
h3 {
  font-size: 17px;
}
p,
.muted,
small {
  color: var(--muted);
  line-height: 1.65;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 800;
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}
.brand em {
  color: #2e7d32;
  font-style: normal;
}
.brand > span { display: block; line-height: 1.2; letter-spacing: -.035em; }
.brand small { display: block; font-size: 10px; font-weight: 500; letter-spacing: .16em; margin-top: 5px; color: var(--muted); }
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px clamp(16px, 5vw, 72px);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.layout,
.land {
  max-width: 1160px;
  margin: auto;
  padding: clamp(18px, 4vw, 54px);
}
.workspace {
  display: grid;
  grid-template-columns: 164px 1fr;
  gap: 30px;
}
.workspace > section {
  min-width: 0;
}
.nav {
  display: grid;
  align-content: start;
  gap: 6px;
}
.nav button {
  text-align: left;
  background: transparent;
  color: var(--muted);
}
.nav button.sel {
  background: #cbf07a;
  color: #163e25;
  box-shadow: inset 3px 0 #2e7d32;
}
.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 5px 24px #18352604;
  margin: 0 0 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr));
  gap: 14px;
}
.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.row > * {
  max-width: 100%;
}
.row input,
.row select {
  width: auto;
}
.tag {
  font-size: 13px;
  border-radius: 5px;
  color: var(--green);
  background: #edf6e4;
  padding: 4px 8px;
}
.metric {
  font-size: 30px;
  font-weight: 750;
}
.notice {
  border-left: 3px solid #7ed321;
  padding: 10px 14px;
  background: #f0f8e7;
  margin-bottom: 16px;
}
.auth {
  max-width: 440px;
  margin: 7vh auto;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
td,
th {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  vertical-align: top;
  overflow-wrap: anywhere;
}
th {
  white-space: nowrap;
  color: #526457;
}
video,
audio {
  max-width: 100%;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(120deg, #143d2b, #2e7d32);
  color: white;
  padding: clamp(28px, 6vw, 78px);
  min-height: 310px;
  display: grid;
  align-content: center;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.14;
}
.hero p {
  color: #d4e6cc;
  margin: 0;
}
.hero-mascot { position: absolute; right: 5%; bottom: 12%; width: min(27%, 260px); border-radius: 28%; box-shadow: 0 20px 45px #0b291c44; z-index: -1; }
.hero i {
  position: absolute;
  z-index: -1;
  width: 26%;
  height: 34%;
  right: 6%;
  top: 29%;
  background: #c4f592;
  border-radius: 999px;
  transform: rotate(-33deg);
  box-shadow: 0 30px 65px #0f3421;
}
.hero i:after {
  content: "";
  position: absolute;
  inset: 12%;
  background:
    radial-gradient(circle at 15% 50%, #578e4a 0 14%, transparent 15%),
    radial-gradient(circle at 50% 50%, #578e4a 0 14%, transparent 15%),
    radial-gradient(circle at 85% 50%, #578e4a 0 14%, transparent 15%);
}
.sectiontitle {
  margin: 32px 0 16px;
}
.platform {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.platform p {
  flex: 1;
}
.platform .button {
  margin-top: 6px;
}
#toast {
  position: fixed;
  z-index: 5;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 8px;
  background: #1b2b2b;
  color: #fff;
  padding: 11px 18px;
  max-width: 90%;
}
#toast:empty {
  display: none;
}
.qr {
  width: 145px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.empty {
  color: var(--muted);
  padding: 12px 0;
}
details {
  margin-top: 12px;
}
summary {
  cursor: pointer;
}
code {
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
}
@media (max-width: 760px) {
  .workspace,
  .split {
    grid-template-columns: 1fr;
  }
  .nav {
    display: flex;
    flex-wrap: wrap;
  }
  .nav button {
    padding: 8px 12px;
  }
  .bar {
    padding: 12px 16px;
  }
  .hero i {
    right: -6%;
    width: 33%;
    opacity: 0.35;
  }
  .layout,
  .land {
    padding: 16px;
  }
  .panel {
    padding: 16px;
  }
  .auth {
    margin: 5vh 16px;
  }
  .row input,
  .row select {
    max-width: 100%;
  }
}
.variant {
  display: grid;
  gap: 7px;
  padding: 14px 0;
  width: 100%;
  border-top: 1px solid var(--line);
}
.variant .button {
  justify-self: start;
}
.platform .tag {
  margin-bottom: 14px;
}
/* The same desktop workspace powers Windows/macOS; mobile powers iOS/Android. */
body[data-client] { padding-bottom: 62px; }
.connection-control { position: fixed; z-index: 8; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
dialog { color: #1b2b2b; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; max-width: min(520px, calc(100vw - 24px)); }
dialog::backdrop { background: #123e2b88; }
body[data-client="mobile"] input, body[data-client="mobile"] select, body[data-client="mobile"] textarea { font-size: 16px; }
body[data-client="mobile"] .workspace { grid-template-columns: 1fr; }
body[data-client="mobile"] .nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; position: sticky; top: 0; z-index: 3; background: #f5f7fa; padding: 8px 0; }
body[data-client="mobile"] .nav button { text-align: center; padding: 12px 4px; font-size: 13px; }
body[data-client="mobile"] .layout { padding: 16px; }
body[data-client="mobile"] h1 { font-size: 27px; }
body[data-client="mobile"] .bar { padding-top: max(12px, env(safe-area-inset-top)); }
body[data-client="mobile"] .bar .brand { font-size: 20px; }
body[data-client="mobile"] .split { grid-template-columns: 1fr; gap: 0; }
body[data-client="mobile"] .panel { padding: 16px; }
body[data-client="mobile"] .row > button { min-height: 44px; }
body[data-client="mobile"] video { width: 100%; min-width: 180px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #7ed32155; border-color: #2e7d32; }
button:focus-visible, a:focus-visible { outline: 3px solid #7ed321; outline-offset: 3px; }
@media (max-width: 760px) { .hero-mascot { right: -5%; width: 43%; opacity: .23; } }
