:root {
  --bg0: #e8f3f0;
  --bg1: #f7faf9;
  --ink: #12332e;
  --muted: #5a726c;
  --line: rgba(18, 51, 46, 0.12);
  --accent: #0d7a6c;
  --accent-deep: #095a50;
  --surface: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 60px rgba(9, 50, 44, 0.12);
  --radius: 18px;
  --font-display: "ZCOOL XiaoWei", "Noto Sans SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(13, 122, 108, 0.22), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgba(45, 160, 140, 0.16), transparent 55%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 45%, #eef6f3);
  line-height: 1.7;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.top, main, footer { position: relative; z-index: 1; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 20px 8px;
}

.brand {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.04em;
}

nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 17px;
  padding: 10px 14px;
}
nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  padding: 10px 18px !important;
  font-weight: 500;
}
.nav-cta:hover { background: var(--accent-deep); }

.hero {
  max-width: 1100px;
  margin: 0 auto;
  min-height: calc(100vh - 88px);
  padding: 28px 20px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.brand-mark {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 80px);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--accent);
  animation: rise 0.8s ease both;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.35;
  animation: rise 0.9s ease 0.08s both;
}

.lead {
  margin: 0 0 28px;
  max-width: 34em;
  color: var(--muted);
  font-size: 19px;
  animation: rise 1s ease 0.14s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 1.05s ease 0.2s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(13, 122, 108, 0.28);
}
.btn.primary:hover { background: var(--accent-deep); }
.btn.ghost {
  background: rgba(255,255,255,0.7);
  color: var(--ink);
  border-color: var(--line);
}
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.hero-visual {
  display: flex;
  justify-content: center;
  animation: floatIn 1.1s ease both;
}

.phone {
  width: min(280px, 72vw);
  aspect-ratio: 9 / 17;
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(160deg, #1a4a43, #0d2f2a);
  box-shadow: var(--shadow);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}
.phone-screen {
  height: 100%;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(232, 245, 241, 0.95), rgba(210, 236, 228, 0.9));
  position: relative;
  overflow: hidden;
}
.tap {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  left: 58%;
  top: 42%;
  z-index: 2;
  animation: tapPulse 2.4s ease-in-out infinite;
}
.ripple {
  position: absolute;
  left: 58%;
  top: 42%;
  width: 18px;
  height: 18px;
  margin: -0px 0 0 -0px;
  border: 2px solid rgba(13, 122, 108, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 2.4s ease-out infinite;
}
.r2 { animation-delay: 0.45s; }
.script-line {
  position: absolute;
  left: 18%;
  height: 10px;
  border-radius: 999px;
  background: rgba(13, 122, 108, 0.18);
}
.l1 { top: 22%; width: 52%; }
.l2 { top: 28%; width: 40%; }
.l3 { top: 34%; width: 46%; }

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 20px;
}
.section h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: 0.03em;
}
.section-lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 19px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(8px);
}
.feature-grid h3 {
  margin: 0 0 10px;
  font-size: 22px;
}
.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.download-block .btn { margin-bottom: 12px; }
.fine {
  white-space: pre-wrap;
  color: var(--muted);
  font-size: 16px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  font-size: 19px;
}
.contact-list li { margin: 10px 0; }
.contact-list a, .fine a { color: var(--accent-deep); }

footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 16px;
  border-top: 1px solid var(--line);
}
footer a { color: var(--muted); }
.footer-admin {
  color: var(--accent-deep) !important;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}
.footer-admin:hover { color: var(--accent) !important; }

/* auth pages */
.auth-wrap {
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.auth-card h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.04em;
}
.auth-card .sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}
label {
  display: block;
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 500;
}
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  outline: none;
}
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 122, 108, 0.14);
}
.form-actions {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.msg {
  display: none;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}
.msg.show { display: block; }
.msg.ok { background: #ecfdf5; color: #047857; }
.msg.err { background: #fef2f2; color: #b91c1c; }
.switch {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.switch a { color: var(--accent-deep); }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes tapPulse {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(0.86); }
  55% { transform: scale(1.08); }
}
@keyframes ripple {
  0% { opacity: 0.7; width: 18px; height: 18px; }
  100% { opacity: 0; width: 90px; height: 90px; }
}

@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 18px;
  }
  .hero-visual { order: -1; }
  .phone { width: min(220px, 58vw); }
  .feature-grid { grid-template-columns: 1fr; }
  .section h2 { font-size: 34px; }
  nav a:not(.nav-cta) { display: none; }
}
