/* 观思邈业务端 · 官网
 * 品牌色对齐 App：#2A8379
 */

:root {
  --brand: #2a8379;
  --brand-deep: #0a3d35;
  --brand-mid: #1f6b63;
  --brand-soft: #e8f2f0;
  --brand-glow: rgba(42, 131, 121, 0.22);
  --ink: #131415;
  --ink-soft: #3d4a47;
  --muted: #6b7c78;
  --line: rgba(10, 61, 53, 0.12);
  --paper: #f7faf9;
  --white: #ffffff;
  --danger: #c45c5c;
  --radius-phone: 28px;
  --shadow-phone: 0 28px 60px rgba(10, 61, 53, 0.22);
  --font-display: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* ---------- Top nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 250, 249, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-solid,
.legal-page .site-header {
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px var(--brand-glow);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-deep);
}

.brand__sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__links a {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav__links a:hover {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.nav__cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brand-deep);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled,
.btn.is-loading {
  opacity: 0.72;
  cursor: not-allowed;
}

.btn--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: 0 10px 28px var(--brand-glow);
}

.btn--primary:hover {
  box-shadow: 0 14px 34px rgba(42, 131, 121, 0.34);
}

.btn--ghost {
  color: var(--brand-deep);
  background: transparent;
  border: 1px solid rgba(42, 131, 121, 0.35);
}

.btn--ghost:hover {
  background: var(--brand-soft);
}

.btn--light {
  color: var(--brand-deep);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(10, 61, 53, 0.12);
}

.btn--block {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(100vh, 920px);
  padding: 48px 0 72px;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(42, 131, 121, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(42, 157, 143, 0.12), transparent 50%),
    linear-gradient(165deg, #eef6f4 0%, #f7faf9 42%, #e5f1ee 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 131, 121, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 131, 121, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-mid);
}

.hero__eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--brand);
}

.hero__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.04em;
  color: var(--brand-deep);
}

.hero__lead {
  margin: 0 0 28px;
  max-width: 34em;
  font-size: 17px;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 13px;
  color: var(--muted);
}

.hero__meta strong {
  color: var(--brand-mid);
  font-weight: 600;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

.hero__glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 131, 121, 0.28), transparent 68%);
  filter: blur(8px);
  animation: pulseGlow 5.5s ease-in-out infinite;
}

.phone {
  position: relative;
  width: min(280px, 72vw);
  border-radius: calc(var(--radius-phone) + 8px);
  padding: 12px;
  background: linear-gradient(160deg, #1a4f48, #0a3d35);
  box-shadow: var(--shadow-phone);
  animation: floatY 6s ease-in-out infinite;
}

.phone__screen {
  border-radius: var(--radius-phone);
  overflow: hidden;
  background: #0a3d35;
  aspect-ratio: 9 / 19.5;
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
}

.section--tint {
  background: linear-gradient(180deg, #eef5f3 0%, #f7faf9 100%);
}

.section__head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section__kicker {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}

.section__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
  color: var(--brand-deep);
}

.section__desc {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
}

/* Features — no card chrome; one job rows */
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 36px;
}

.feature {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.feature__index {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--brand);
}

.feature__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 650;
  color: var(--brand-deep);
}

.feature__text {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* Screenshots */
.shot-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

.shot-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shot-tab {
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.shot-tab:hover {
  background: rgba(42, 131, 121, 0.08);
}

.shot-tab.is-active {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 600;
}

.shot-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.7), transparent 45%),
    linear-gradient(145deg, #d7ebe7, #f4f9f8 55%, #cfe4e0);
}

.shot-pane {
  width: min(280px, 100%);
}

.shot-pane[hidden] {
  display: none !important;
}

.shot-pane.is-active {
  animation: fadeUp 0.45s ease;
}

.shot-pane .phone {
  animation: none;
  width: 100%;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Download band */
.download-band {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  color: var(--white);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(255, 255, 255, 0.12), transparent 45%),
    linear-gradient(135deg, var(--brand-mid) 0%, var(--brand-deep) 100%);
}

.download-band__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.download-band h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
}

.download-band p {
  margin: 0 0 24px;
  opacity: 0.9;
  max-width: 36em;
}

.download-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-band__aside {
  padding: 24px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 36px;
}

.download-band__aside dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.download-band__aside dt {
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.download-band__aside dd {
  margin: 4px 0 0;
  font-size: 15px;
}

/* About / company */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.about-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.about-points li {
  padding-left: 18px;
  position: relative;
  color: var(--ink-soft);
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.about-panel {
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.about-panel h3 {
  margin: 0 0 16px;
  font-size: 18px;
  color: var(--brand-deep);
}

.about-panel dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.about-panel dt {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.about-panel dd {
  margin: 4px 0 0;
  color: var(--ink);
}

/* Footer */
.site-footer {
  padding: 48px 0 28px;
  background: #071f1c;
  color: rgba(255, 255, 255, 0.78);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
  margin: 0 0 10px;
}

.footer__desc {
  margin: 0;
  font-size: 14px;
  max-width: 28em;
  opacity: 0.8;
}

.footer__col h4 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.footer__col a {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  opacity: 0.85;
}

.footer__col a:hover {
  opacity: 1;
  color: #9fd4cc;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  font-size: 13px;
  opacity: 0.65;
}

/* Legal pages */
.legal-hero {
  padding: 56px 0 28px;
  background: linear-gradient(180deg, #eef6f4, var(--paper));
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--brand-deep);
}

.legal-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-body {
  padding: 48px 0 80px;
}

.legal-body article {
  max-width: 760px;
}

.legal-body h2 {
  margin: 36px 0 12px;
  font-size: 20px;
  color: var(--brand-deep);
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
  font-size: 15px;
}

.legal-body ul {
  padding-left: 1.2em;
}

.legal-body li {
  margin-bottom: 6px;
}

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal="delay"] {
  transition-delay: 0.12s;
}

[data-reveal="delay-2"] {
  transition-delay: 0.22s;
}

/* WeChat guide + toast */
.wx-guide {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px 20px;
}

.wx-guide[hidden] {
  display: none !important;
}

.wx-guide__card {
  width: min(320px, 100%);
  margin-top: 8px;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.wx-guide__card p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
}

.wx-guide__card strong {
  color: #c48a16;
}

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 110;
  transform: translateX(-50%);
  max-width: min(90vw, 360px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(7, 31, 28, 0.92);
  color: #fff;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.site-toast[hidden] {
  display: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid,
  .shot-layout,
  .download-band__inner,
  .about-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero__visual {
    min-height: 420px;
    order: -1;
  }

  .download-band__aside {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 24px;
  }

  .shot-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .shot-stage {
    min-height: 480px;
  }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    inset: 68px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 20px;
    background: rgba(247, 250, 249, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(10, 61, 53, 0.08);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__cta {
    margin: 8px 0 0;
  }

  .nav__cta .btn {
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .hero__actions,
  .download-band__actions {
    flex-direction: column;
  }

  .hero__actions .btn,
  .download-band__actions .btn {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }
}
