:root, html[data-theme="light"] {
  --ink: #1e232c;
  --slogan: #152443;
  --blue: #4176e6;
  --page: #d7e6f6;
  --muted: rgba(30, 35, 44, 0.62);
  --card: rgba(255, 255, 255, 0.78);
  --card-border: rgba(255, 255, 255, 0.96);
  --shadow: rgba(21, 36, 67, 0.28);
  --font: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}
html[data-theme="dark"] {
  --ink: #e8eef8;
  --slogan: #d7e4ff;
  --blue: #6b9cff;
  --page: #0f141d;
  --muted: rgba(230, 238, 252, 0.72);
  --card: rgba(28, 36, 52, 0.82);
  --card-border: rgba(255, 255, 255, 0.1);
  --shadow: rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: #d7e6f6;
  color: var(--ink);
  font-family: var(--font);
}
.wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 380px at 12% 0%, rgba(255, 255, 255, 0.95), transparent 70%),
    radial-gradient(720px 460px at 92% 8%, rgba(170, 204, 255, 0.85), transparent 68%),
    radial-gradient(820px 520px at 50% 110%, rgba(255, 255, 255, 0.7), transparent 60%),
    linear-gradient(180deg, #d3e4f8 0%, #e7f1fb 46%, #d7e6f6 100%);
}
.wash::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 50% 28%, #000 0, transparent 78%);
  mask-image: radial-gradient(circle at 50% 28%, #000 0, transparent 78%);
}
html[data-theme="dark"] body { background: #0f141d; }
html[data-theme="dark"] .wash {
  background:
    radial-gradient(640px 380px at 12% 0%, rgba(70, 110, 190, 0.35), transparent 70%),
    radial-gradient(720px 460px at 90% 10%, rgba(40, 70, 140, 0.45), transparent 70%),
    linear-gradient(180deg, #0f141d, #151c28);
}
html[data-theme="dark"] .wash::before { opacity: 0.25; }
.stage { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
.stage { min-height: 100vh; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 28px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; letter-spacing: -0.03em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand-name { font-size: 20px; }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.nav-link, .theme-btn {
  height: 36px;
  min-width: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(18, 28, 49, 0.78);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 20px -14px rgba(21, 36, 67, 0.35);
  backdrop-filter: blur(12px);
  cursor: pointer;
}
html[data-theme="dark"] .nav-link, html[data-theme="dark"] .theme-btn {
  background: rgba(34, 44, 64, 0.92);
  color: #e8eef8;
  border-color: rgba(255, 255, 255, 0.1);
}
.theme-btn { width: 36px; padding: 0; }
.hero {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 64px;
}
.wordmark {
  position: relative;
  z-index: 0;
  margin: -28px 0 20px;
  text-align: center;
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  color: #152443;
}
.wordmark em { font-style: normal; color: #4176e6; }
.wordmark::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 58%;
  top: 58%;
  width: 72%;
  height: 0.62em;
  transform: translate(-50%, -40%) rotate(-3deg);
  border-radius: 999px;
  background: rgba(65, 118, 230, 0.22);
}
.home-row { position: relative; min-height: 168px; text-align: left; }
.panel, .promo, .tool {
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 16px 36px -22px rgba(21, 36, 67, 0.45);
  backdrop-filter: blur(16px);
}
html[data-theme="dark"] .panel,
html[data-theme="dark"] .promo,
html[data-theme="dark"] .tool {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(28, 36, 52, 0.72);
}
.panel, .promo { border-radius: 24px; }
.home-form {
  margin-right: 294px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.home-form input[type="text"] {
  width: 100%;
  height: auto;
  margin-top: 10px;
  padding: 14px 14px 8px;
  border: 1.5px dashed rgba(30, 35, 44, 0.32);
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  outline: none;
}
html[data-theme="dark"] .home-form input[type="text"] { border-color: rgba(255,255,255,.28); }
.bar { display: flex; gap: 8px; margin-top: 10px; }
.chip, .btn, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.chip.primary, .btn, button[type="submit"] {
  background: #4176e6;
  color: #fff;
  box-shadow: none;
}
.chip.primary:hover, .btn:hover, button[type="submit"]:hover { background: #3567d6; }
.actions button[type="button"], button.ghost {
  border: 1px solid rgba(30, 35, 44, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}
.promo .btn { height: 44px; padding: 0 22px; }
.note { margin: 4px 12px 10px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.home-side {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
}
.home-side p { margin: 0 0 10px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin-top: 36px;
  text-align: left;
}
.tool {
  position: relative;
  display: flex;
  height: 156px;
  padding: 22px 108px 20px 22px;
  border-radius: 24px;
  overflow: hidden;
  color: var(--ink);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, background .2s ease;
}
.tool:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 18px 40px -16px rgba(65,118,230,.36);
}
.tool .mark {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 88px;
  height: 88px;
  filter: drop-shadow(0 10px 16px rgba(45, 90, 200, 0.22));
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.tool:hover .mark { transform: scale(1.06) translateY(-2px); }
.tool .mark svg { width: 100%; height: 100%; display: block; }
.tool-body { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; }
.tool h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.tool p { margin: 0; height: calc(1.45em * 2); color: var(--muted); font-size: 13px; line-height: 1.45; overflow: hidden; }
.hero.page { text-align: left; padding-top: 28px; }
.hero.page .lead { margin: 0; color: var(--muted); }
.hero.page h1 { margin: 8px 0 16px; font-size: 40px; letter-spacing: 0; text-indent: 0; }
.panel { padding: 20px; margin-bottom: 14px; }
.panel h3 { margin: 0 0 10px; font-size: 16px; }
.panel p { margin: 0 0 12px; }
.field { display: block; margin-bottom: 12px; }
.field > span, .panel label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
input[type="text"], input[type="password"], input[type="email"] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(30, 35, 44, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  outline: none;
}
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="email"] {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}
input:focus { border-color: rgba(65, 118, 230, 0.7); }
.file {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 12px 14px;
  border: 1.5px dashed rgba(30, 35, 44, 0.28);
  border-radius: 14px;
  cursor: pointer;
}
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file small { display: block; color: var(--muted); font-size: 12px; }
.actions, .hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet, .alert { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.45); }
html[data-theme="dark"] .sheet, html[data-theme="dark"] .alert { background: rgba(255,255,255,.04); }
.alert.bad { background: rgba(190, 18, 60, 0.08); color: #9f1239; }
.kv { margin: 0; }
.kv div { display: grid; grid-template-columns: 88px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid rgba(30,35,44,.08); }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; word-break: break-all; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
.copyline { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
ol.steps { margin: 0; padding-left: 18px; color: var(--muted); }
ol.steps li { margin: 0 0 8px; }
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.app { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.5); }
html[data-theme="dark"] .app { background: rgba(255,255,255,.04); }
.app img { width: 56px; height: 56px; border-radius: 14px; }
.app span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; word-break: break-all; }
.promo { width: min(880px, calc(100% - 36px)); margin: 18px auto 10px; padding: 42px 24px 32px; text-align: center; }
.promo img { width: 96px; height: 96px; border-radius: 28px; box-shadow: 0 18px 36px -12px var(--shadow); }
.promo h2 { margin: 16px 0 10px; font-size: 36px; }
.promo p { margin: 0 auto 16px; max-width: 520px; color: var(--muted); }
footer { padding: 28px 16px 36px; text-align: center; color: var(--muted); font-size: 13px; }
footer a { color: var(--blue); }
.footer-links { margin: 0 0 8px; }
@media (max-width: 800px) {
  .tools, .apps { grid-template-columns: 1fr; }
  .home-row { display: block; min-height: 0; }
  .home-form { margin-right: 0; }
  .home-side { position: static; width: auto; margin-top: 12px; }
  .wordmark { letter-spacing: 0.04em; text-indent: 0.04em; }
  .tool { height: auto; min-height: 132px; }
  .nav { padding-left: 16px; padding-right: 16px; }
}
.hero .promo { width: auto; margin: 36px 0 0; }
