:root {
  --blue: #67baf9;
  --blue-deep: #2f8fe0;
  --blue-soft: #e7f5fe;
  --green: #82ce7c;
  --green-deep: #3ea864;
  --green-ink: #14663a;
  --green-soft: #e8f8ea;
  --sun: #f8ce40;
  --sun-deep: #b8860b;
  --sun-soft: #fff6d6;
  --ink: #1b3348;
  --muted: #6d8294;
  --line: #e1eef6;
  --bg: #f4fafd;
  --card: #ffffff;
  --danger: #d4655d;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "HarmonyOS Sans", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #e7f3fb;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.ver {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-deep);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 2px 8px;
  letter-spacing: 0;
}
.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(8px);
  max-width: min(86vw, 360px);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
body:has(.main:not([hidden])) .toast { bottom: calc(156px + env(safe-area-inset-bottom)); }
.install-bar {
  position: fixed;
  z-index: 35;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(440px, calc(100% - 24px));
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(40, 100, 150, .16);
}
.install-bar.show { display: flex; }
.install-bar img { width: 42px; height: 42px; object-fit: contain; flex: 0 0 auto; }
.install-text { flex: 1; min-width: 0; }
.install-text strong { display: block; font-size: 14px; }
.install-text span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.install-bar .add {
  background: var(--green-deep);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
}
.install-bar .x, .ios-head .x {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  padding: 0 4px;
}
body.install-on { padding-bottom: 86px; }
.ios-sheet { display: none; position: fixed; inset: 0; z-index: 50; }
.ios-sheet.show { display: block; }
.ios-mask { position: absolute; inset: 0; background: rgba(20, 40, 60, .5); }
.ios-panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-width: 480px;
  margin: 0 auto;
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}
.ios-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ios-head strong { font-size: 16px; }
.ios-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.ios-tag {
  display: inline-block;
  background: var(--sun);
  color: #5c4810;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 6px;
}
.ios-card h2 { font-size: 15px; margin: 8px 0; }
.ios-card ol, .ios-card p { margin: 0 0 12px; padding-left: 18px; color: var(--ink); font-size: 13px; line-height: 1.6; }
.ios-card p { padding-left: 0; }
.ios-card button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--green-deep);
  color: #fff;
  font-weight: 700;
  padding: 12px;
}
