:root {
  --bg: #f4f7f5;
  --bg-deep: #0f2a24;
  --panel: #ffffff;
  --ink: #15201c;
  --muted: #5b6b64;
  --line: #d5e0da;
  --accent: #1f7a63;
  --accent-2: #c45c26;
  --ok: #1b7a45;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(15, 42, 36, 0.08);
  --radius: 18px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "Consolas", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(31, 122, 99, 0.18), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(196, 92, 38, 0.12), transparent 50%),
    linear-gradient(180deg, #eef5f1 0%, var(--bg) 40%, #e8efeb 100%);
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(244, 247, 245, 0.82);
  border-bottom: 1px solid rgba(213, 224, 218, 0.9);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, var(--accent), #0f4d3f);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0.55rem 0.35rem 0.55rem 0.95rem;
  border-right: 2px solid #dff7ef;
  border-bottom: 2px solid #dff7ef;
  transform: skewX(-18deg);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
  font-size: 0.95rem;
}
.nav a { color: var(--muted); text-decoration: none; }
#nav-guest, #nav-user { display: inline-flex; flex-wrap: wrap; gap: 0.85rem 1.1rem; align-items: center; }
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 122, 99, 0.28);
}
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-accent {
  background: var(--accent-2);
  color: #fff;
  box-shadow: 0 10px 24px rgba(196, 92, 38, 0.24);
}
.btn-ghost {
  background: transparent;
  color: #dff3ec;
  border: 1px solid rgba(223, 243, 236, 0.35);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: stretch;
  padding: 3.2rem 0 2.2rem;
}
.hero-card, .panel, .feature, .step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-copy h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.hero-copy p {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 38rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-side {
  background: linear-gradient(160deg, var(--bg-deep), #18473c 55%, #1f7a63);
  color: #e8fff7;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}
.hero-side h2 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}
.hero-side ul {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.8;
  color: rgba(232, 255, 247, 0.9);
}
.meta-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 0.85rem;
}

section { padding: 1.2rem 0 2.2rem; }
section h2 {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.section-lead {
  margin: 0 0 1.2rem;
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.6;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature, .step { padding: 1.2rem 1.25rem; }
.feature h3, .step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}
.feature p, .step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.96rem;
}
.step-num {
  display: inline-flex;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(31, 122, 99, 0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}

.panel { padding: 1.25rem; }
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.95rem;
}
.table th { color: var(--muted); font-weight: 600; }
.mono { font-family: var(--mono); font-size: 0.85rem; word-break: break-all; }
.admin-connect-on { color: var(--accent, #1f7a63); font-weight: 600; }
.empty {
  color: var(--muted);
  padding: 0.5rem 0;
}

.cta-band {
  margin: 1rem 0 2.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #16372f, #1f7a63 70%, #2a8f74);
  color: #effff8;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.cta-band p { margin: 0.35rem 0 0; color: rgba(239,255,248,0.82); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.footer-beian a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
}
.footer-beian a:hover { text-decoration: underline; opacity: 1; }
.footer {
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.page {
  padding: 2rem 0 3rem;
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
}
.page h1 { margin: 0 0 0.5rem; }
.form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}
label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(31, 122, 99, 0.25);
  border-color: var(--accent);
}
.password-field {
  position: relative;
  display: block;
}
.password-field input {
  width: 100%;
  padding-right: 2.8rem;
}
.password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.password-toggle:hover {
  color: var(--ink);
  background: rgba(31, 122, 99, 0.08);
}
.password-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}
.msg {
  margin-top: 0.8rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-size: 0.95rem;
  display: none;
}
.msg.show { display: block; }
.msg.ok { background: #e8f7ee; color: var(--ok); }
.msg.err { background: #fdeceb; color: var(--danger); }
.hint { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

.feature-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.85;
  color: var(--ink);
  columns: 2;
  column-gap: 2rem;
}
.feature-list.compact {
  columns: 1;
  line-height: 1.75;
}
.feature-list li { break-inside: avoid; margin: 0 0 0.15rem; }
.feature-list strong { color: var(--ink); font-weight: 600; }

.perf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.perf-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.subhead {
  margin: 1.4rem 0 0.65rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.subhead:first-of-type { margin-top: 0.4rem; }

.compare-table th:nth-child(2),
.compare-table th:nth-child(3),
.compare-table td:nth-child(2),
.compare-table td:nth-child(3) {
  width: 28%;
}

.howto-list {
  margin: 0;
  padding-left: 1.35rem;
  line-height: 2;
  color: var(--ink);
  max-width: 36rem;
  counter-reset: none;
}

.shot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.shot {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 860px) {
  .hero, .grid-3, .perf-grid { grid-template-columns: 1fr; }
  .feature-list { columns: 1; }
  .topbar-inner { flex-direction: column; align-items: flex-start; }
}

.upload-progress-wrap { margin: 0.85rem 0 0.35rem; }
.upload-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.upload-progress-track {
  height: 0.65rem;
  border-radius: 999px;
  background: rgba(31, 122, 99, 0.12);
  overflow: hidden;
}
.upload-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #2ea37f);
  transition: width 0.15s ease;
}