/* 咔美云官网样式。
   取色自 LOGO：深海军蓝 + 青色云。与 /admin 那套蓝色管理台刻意区分：
   官网是深色 hero + 浅色内容区，管理台是浅灰白卡片。 */

:root {
  --ink: #0b1e33;
  --ink-2: #12283f;
  --ink-3: #1b3a57;
  --cyan: #2bc4e8;
  --cyan-deep: #0e9fbf;
  --bg: #f5f8fb;
  --card: #ffffff;
  --line: #e2e9f1;
  --text: #1b2735;
  --muted: #5b6b7c;
  --ok: #16a34a;
  --err: #dc2626;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 30, 51, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 30, 51, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 30, 51, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand small { font-weight: 400; color: rgba(255, 255, 255, 0.62); font-size: 13px; }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: rgba(255, 255, 255, 0.78); font-size: 15px; }
.nav a:hover { color: #fff; }

.topbar .btn { flex: none; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(43, 196, 232, 0.45); outline-offset: 2px; }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  color: #04202c;
  box-shadow: 0 10px 24px rgba(14, 159, 191, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(14, 159, 191, 0.45); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-light:hover { border-color: #c7d5e3; }

.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(43, 196, 232, 0.28), transparent 62%),
    radial-gradient(700px 420px at 8% 110%, rgba(43, 196, 232, 0.12), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 58%, #0e2338 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 78%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(43, 196, 232, 0.4);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.18;
  letter-spacing: 1px;
}

.hero h1 em { font-style: normal; color: var(--cyan); }

.hero p.lead {
  margin: 0 0 30px;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
}

.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }

.hero-tags span {
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  letter-spacing: 0.5px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-note {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual img {
  width: min(360px, 74vw);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
  animation: float 7s ease-in-out infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-visual img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 通用区块 ---------- */

.section { padding: 84px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
  color: var(--ink);
}
.section-head p { margin: 0; color: var(--muted); font-size: 16px; }

.kicker {
  display: block;
  color: var(--cyan-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

/* ---------- 功能网格 ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.feature .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(43, 196, 232, 0.12);
  color: var(--cyan-deep);
  font-size: 20px;
  margin-bottom: 16px;
}

.feature h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- 截图 ---------- */

.shots { display: grid; gap: 26px; }

.shot {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shot img { width: 100%; height: auto; background: #eef2f7; }

.shot figcaption {
  padding: 16px 22px 18px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.shot figcaption strong { color: var(--ink); font-weight: 600; margin-right: 8px; }

.shots.two { grid-template-columns: 1fr 1fr; }

/* ---------- 下载 ---------- */

.download-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  background: linear-gradient(140deg, var(--ink) 0%, var(--ink-3) 100%);
  color: #fff;
  border-radius: 20px;
  padding: 40px 44px;
  box-shadow: var(--shadow-lg);
}

.download-card h2 { margin: 0 0 8px; font-size: 26px; }
.download-card p { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 15px; }

.download-meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.86);
}

.download-actions { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.download-actions .hint { color: rgba(255, 255, 255, 0.5); font-size: 12px; text-align: center; }

/* ---------- 注册 ---------- */

.register-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.steps { list-style: none; margin: 0; padding: 0; }

.steps li {
  position: relative;
  padding: 0 0 26px 52px;
}

.steps li:last-child { padding-bottom: 0; }

.steps li::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--cyan);
  font-weight: 700;
  font-size: 14px;
}

.steps li::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 40px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.steps li:last-child::after { display: none; }

.steps h3 { margin: 2px 0 4px; font-size: 16px; color: var(--ink); }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 30px 26px;
  box-shadow: var(--shadow);
}

.form-card h2 { margin: 0 0 6px; font-size: 22px; color: var(--ink); }
.form-card .sub { margin: 0 0 22px; color: var(--muted); font-size: 14px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; font-weight: 600; }

.input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #cfd9e4;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus {
  outline: none;
  border-color: var(--cyan-deep);
  box-shadow: 0 0 0 3px rgba(43, 196, 232, 0.18);
}

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.captcha-row { display: grid; grid-template-columns: 1fr 132px 88px; gap: 10px; align-items: center; }

.captcha-img {
  height: 44px;
  border: 1px solid #cfd9e4;
  border-radius: 10px;
  background: #f4f6fa;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}

/* contain 而不是 cover：图形码是 120×40，容器 132×44，cover 会把上下裁掉一点，
   正好可能切到七段数码管的笔画。 */
.captcha-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

.sms-row { display: grid; grid-template-columns: 1fr 132px; gap: 10px; }

.form-msg { min-height: 22px; margin: 4px 0 12px; font-size: 14px; color: var(--muted); }
.form-msg.err { color: var(--err); }
.form-msg.ok { color: var(--ok); }

.form-card .btn { width: 100%; }

.form-foot { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.form-foot a { color: var(--cyan-deep); font-weight: 600; }

.success {
  display: none;
  background: #f0fbf4;
  border: 1px solid #bfe8cd;
  border-radius: 12px;
  padding: 18px 20px;
  color: #14532d;
  font-size: 14px;
  margin-bottom: 18px;
}

.success.show { display: block; }
.success strong { display: block; font-size: 16px; margin-bottom: 6px; }
.success .btn { width: auto; margin-top: 12px; min-height: 38px; padding: 0 18px; font-size: 14px; }

/* ---------- 价格 ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 36px 32px;
  box-shadow: var(--shadow-lg);
}

.price-tag {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(43, 196, 232, 0.14);
  color: var(--cyan-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 16px 0 6px;
  color: var(--ink);
}

.price-amount .cur { font-size: 24px; font-weight: 700; }
.price-amount strong { font-size: 54px; line-height: 1; letter-spacing: -1px; }
.price-amount .per { color: var(--muted); font-size: 15px; }

.price-note { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

.price-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }

.price-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--text);
}

.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ok);
  font-weight: 700;
}

.price-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; }

.price-side {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 32px;
  box-shadow: var(--shadow);
}

.price-side h3 { margin: 0 0 8px; font-size: 19px; color: var(--ink); }
.price-side p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }

.qr-inline { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.qr-inline img {
  width: 160px;
  height: 160px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}
.qr-inline span { color: var(--muted); font-size: 14px; }

.contact-mini { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 10px; }
.contact-mini li { display: flex; gap: 12px; font-size: 15px; }
.contact-mini span { flex: none; width: 44px; color: var(--muted); }
.contact-mini a { color: var(--cyan-deep); font-weight: 600; }

/* ---------- 联系客服 ---------- */

.support-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: var(--shadow);
}

.qr-box { margin: 0; text-align: center; }
.qr-box img {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 8px;
}
.qr-box figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; }

.support-body h3 { margin: 0 0 8px; font-size: 20px; color: var(--ink); }
.support-body > p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: baseline; gap: 14px; font-size: 15px; }
.contact-list .k { flex: none; width: 44px; color: var(--muted); font-size: 14px; }
.contact-list a { color: var(--cyan-deep); font-weight: 600; }
.contact-list .v { color: var(--text); }

/* ---------- 页脚 ---------- */

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.55);
  padding: 34px 0;
  font-size: 13px;
}

.footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.footer a { color: rgba(255, 255, 255, 0.75); }
.footer a:hover { color: #fff; }

/* ---------- 响应式 ---------- */

@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; }
  .hero-visual { order: -1; }
  .hero-visual img { width: 210px; }
  .register-grid { grid-template-columns: 1fr; gap: 34px; }
  .shots.two { grid-template-columns: 1fr; }
  .download-card { grid-template-columns: 1fr; padding: 32px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .support-card { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .download-actions { flex-direction: row; flex-wrap: wrap; }
  .download-actions .btn { flex: 1; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .nav { display: none; }
  .topbar .btn { margin-left: auto; }
  .section { padding: 60px 0; }
  .features { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .captcha-row { grid-template-columns: 1fr 116px; }
  .captcha-row .btn { grid-column: 1 / -1; }
  .form-card { padding: 24px 20px; }
  .hero-cta .btn { flex: 1; }
}
