/* ============================================================
   Evaer v2 — 组件层
   ============================================================ */

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: rgba(10, 26, 47, 0.55);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 26, 47, 0.86);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand img { height: 40px; width: auto; }
.brand span {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  min-width: 0;
}
.nav a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav a:hover { color: var(--text-strong); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--text-strong); background: var(--panel-2); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle span { position: relative; margin-inline: auto; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, #22D3EE, #6366F1);
  color: #04121A;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.22);
}
.btn--primary:hover { color: #04121A; box-shadow: 0 14px 38px rgba(34, 211, 238, 0.32); }

.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(19, 39, 63, 0.7);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent-line); color: var(--text-strong); }

.btn--lg { min-height: 52px; padding: 15px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: 0.88rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.hero__copy h1 { margin-bottom: 18px; }
.hero__copy .lead { max-width: 56ch; margin-bottom: 28px; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
}
.hero__meta li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.hero__meta svg { flex: 0 0 auto; color: var(--ok); }

.hero__media {
  position: relative;
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: -12% 0 -14% 0;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.18), transparent 72%);
  filter: blur(10px);
}
.hero__frame {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.hero__frame img { width: 100%; }
.hero__badge {
  position: absolute;
  left: 12px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgba(19, 39, 63, 0.92);
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-strong);
  backdrop-filter: blur(8px);
}
.hero__badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
}

/* ---------- 信任条 ---------- */
.trust {
  border-block: 1px solid var(--line);
  background: rgba(14, 33, 56, 0.55);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.trust__item {
  padding: 22px 20px;
  background: var(--bg-elev);
  text-align: center;
}
.trust__item strong {
  display: block;
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.trust__item span { color: var(--muted); font-size: 0.84rem; }

/* ---------- 功能卡片 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.feature-card {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.feature-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}
.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ---------- 录屏模式展示 ---------- */
.showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.showcase__item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  transition: border-color var(--dur) var(--ease);
}
.showcase__item:hover { border-color: var(--accent-line); }
.showcase__media {
  aspect-ratio: 16 / 9;
  background: #071426;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.showcase__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.showcase__body { padding: 20px 22px 24px; }
.showcase__body h3 { margin-bottom: 6px; }
.showcase__body p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ---------- 定价 ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}
.pricing--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 820px;
  margin-inline: auto;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.price-card--featured {
  border-color: transparent;
  background:
    linear-gradient(180deg, var(--panel-2), var(--panel)) padding-box,
    linear-gradient(135deg, rgba(34,211,238,.85), rgba(99,102,241,.85)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--glow);
}
.price-card__tag {
  position: absolute;
  top: -12px;
  right: 22px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #22D3EE, #6366F1);
  color: #04121A;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price-card h3 { margin: 0; font-size: 1.1rem; }
.price-card__desc { margin: 0; color: var(--muted); font-size: 0.9rem; min-height: 2.6em; }
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--text-strong);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.price strong { font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1; }
.price span { color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.price--warn strong { color: var(--warn); }

.price-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.price-card li {
  display: flex;
  gap: 9px;
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
}
.price-card li svg { flex: 0 0 auto; margin-top: 3px; color: var(--ok); }
.price-card .btn { margin-top: auto; }

/* ---------- 客户评价 ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.quote {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
}
.quote blockquote {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34,211,238,.28), rgba(99,102,241,.28));
  color: var(--text-strong);
  font-weight: 700;
  font-size: 0.82rem;
}
.stars { color: var(--warn); letter-spacing: 2px; font-size: 0.85rem; }

/* ---------- FAQ ---------- */
.faq {
  max-width: 860px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  color: var(--text-strong);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.faq details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
  border-color: var(--accent-line);
}
.faq details p {
  margin: 0;
  padding: 0 4px 22px;
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 70ch;
}

/* ---------- 底部 CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background:
    radial-gradient(600px 240px at 18% 0%, rgba(34, 211, 238, 0.16), transparent 70%),
    radial-gradient(520px 260px at 88% 100%, rgba(99, 102, 241, 0.18), transparent 70%),
    var(--panel-2);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--muted); max-width: 58ch; margin-inline: auto; }
.cta-band .hero__actions { justify-content: center; margin-bottom: 0; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 40px);
  padding-block: clamp(40px, 6vw, 64px);
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 {
  margin: 0 0 14px;
  color: var(--text-strong);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.footer-col li { margin: 0; }
.footer-col a { color: var(--muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--text-strong); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.82rem;
}
.footer-bottom p { margin: 0; color: inherit; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__badge { left: 12px; bottom: 12px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1120px) {
  .header-inner { gap: 14px; }
  .nav a { padding: 8px 10px; font-size: 0.88rem; }
  .header-actions .btn--ghost { display: none; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; order: 3; }

  .header-inner { gap: 12px; }
  .header-actions .btn { display: none; }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 12px clamp(16px, 4vw, 32px) 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 26, 47, 0.98);
    backdrop-filter: blur(14px);
  }
  .site-header.is-open .nav { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .nav a[aria-current="page"] { background: var(--panel-2); }

  .hero { padding-top: 32px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .card-grid,
  .showcase,
  .quotes { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .brand img { height: 34px; }
  .hero__meta { gap: 6px 14px; font-size: 0.82rem; }
  .hero__badge { font-size: 0.76rem; padding: 8px 12px; }
  .feature-card { padding: 22px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}
