/* Channel landing pages — shared layout (ui-ux-pro-max inspired SaaS landing) */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --lp-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --lp-text: #0f172a;
  --lp-muted: #64748b;
  --lp-surface: #ffffff;
  --lp-border: rgba(15, 23, 42, 0.08);
  --lp-radius: 16px;
  --lp-radius-sm: 10px;
  --lp-shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
  --lp-max: 1120px;
  --lp-nav-h: 64px;
}

[data-theme="xiaoetong"] {
  --lp-primary: #0077ff;
  --lp-primary-dark: #005fcc;
  --lp-accent: #ff8345;
  --lp-soft: rgba(0, 119, 255, 0.08);
  --lp-gradient: radial-gradient(ellipse 80% 60% at 20% -10%, rgba(0, 119, 255, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(255, 131, 69, 0.18), transparent 50%),
    linear-gradient(180deg, #f0f7ff 0%, #f8fafc 42%, #ffffff 100%);
}

[data-theme="tencentmeeting"] {
  --lp-primary: #006eff;
  --lp-primary-dark: #0052cc;
  --lp-accent: #00c2a8;
  --lp-soft: rgba(0, 110, 255, 0.08);
  --lp-gradient: radial-gradient(ellipse 80% 60% at 15% -10%, rgba(0, 110, 255, 0.25), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(0, 194, 168, 0.16), transparent 50%),
    linear-gradient(180deg, #eef4ff 0%, #f8fafc 42%, #ffffff 100%);
}

[data-theme="hub"] {
  --lp-primary: #0071e3;
  --lp-primary-dark: #005bb5;
  --lp-accent: #5856d6;
  --lp-soft: rgba(0, 113, 227, 0.08);
  --lp-gradient: radial-gradient(ellipse 70% 50% at 50% -20%, rgba(0, 113, 227, 0.2), transparent 60%),
    linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--lp-font);
  color: var(--lp-text);
  background: var(--lp-gradient);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

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

.lp-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--lp-nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  padding-top: env(safe-area-inset-top);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--lp-border);
  backdrop-filter: saturate(180%) blur(16px);
}

.lp-nav-inner {
  width: 100%;
  max-width: var(--lp-max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.lp-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

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

.lp-btn-primary {
  background: var(--lp-primary);
  color: #fff;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--lp-primary) 35%, transparent);
}

.lp-btn-primary:hover {
  background: var(--lp-primary-dark);
}

.lp-btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--lp-text);
  border: 1px solid var(--lp-border);
}

.lp-btn-ghost:hover { background: #fff; }

.lp-main {
  max-width: var(--lp-max);
  margin: 0 auto;
  padding: 32px 20px 80px;
  padding-bottom: max(80px, calc(env(safe-area-inset-bottom) + 48px));
}

.lp-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 64px;
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--lp-soft);
  color: var(--lp-primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.lp-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-accent);
}

.lp-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.lp-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--lp-primary), var(--lp-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-hero-lead {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--lp-muted);
  max-width: 540px;
}

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.lp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--lp-muted);
}

.lp-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lp-trust svg { color: var(--lp-primary); flex-shrink: 0; }

.lp-hero-visual {
  position: relative;
  min-height: 320px;
}

.lp-mock {
  position: relative;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--lp-shadow);
}

.lp-mock-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.lp-mock-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
  font-style: normal;
}

.lp-mock-bar i:first-child { background: #ff5f57; }
.lp-mock-bar i:nth-child(2) { background: #febc2e; }
.lp-mock-bar i:nth-child(3) { background: #28c840; }

.lp-mock-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--lp-radius-sm);
  background: #f8fafc;
  margin-bottom: 10px;
  font-size: 14px;
}

.lp-mock-row:last-child { margin-bottom: 0; }

.lp-mock-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--lp-soft);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.lp-mock-tag {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

.lp-section {
  margin-bottom: 64px;
}

.lp-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.lp-section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.lp-section-head p {
  margin: 0;
  color: var(--lp-muted);
  line-height: 1.6;
}

.lp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.lp-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.lp-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--lp-soft);
  color: var(--lp-primary);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.lp-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.lp-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--lp-muted);
}

.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.lp-step {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 28px 24px;
  position: relative;
}

.lp-step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--lp-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}

.lp-step h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.lp-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--lp-muted);
}

.lp-sites {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.lp-pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--lp-border);
  font-size: 13px;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.lp-cta {
  text-align: center;
  padding: 48px 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--lp-primary), color-mix(in srgb, var(--lp-primary) 70%, var(--lp-accent)));
  color: #fff;
  box-shadow: var(--lp-shadow);
}

.lp-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
}

.lp-cta p {
  margin: 0 0 24px;
  opacity: 0.92;
  line-height: 1.6;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.lp-cta .lp-btn-primary {
  background: #fff;
  color: var(--lp-primary);
  box-shadow: none;
}

.lp-cta .lp-btn-primary:hover { background: #f8fafc; }

.lp-footer {
  text-align: center;
  padding-top: 32px;
  font-size: 13px;
  color: var(--lp-muted);
  line-height: 1.7;
}

.lp-footer a { color: var(--lp-primary); }

.lp-footer a:hover { text-decoration: underline; }

/* Hub page */
.lp-hub-hero {
  text-align: center;
  padding: 56px 0 48px;
}

.lp-hub-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.04em;
}

.lp-hub-hero p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--lp-muted);
  line-height: 1.65;
  font-size: 17px;
}

.lp-channel-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.lp-channel-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--lp-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lp-channel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lp-shadow);
}

.lp-channel-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.lp-channel-card-head img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.lp-channel-card h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.lp-channel-card p {
  margin: 0 0 20px;
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: var(--lp-muted);
}

.lp-loading, .lp-error {
  text-align: center;
  padding: 80px 20px;
  color: var(--lp-muted);
}

.lp-error { color: #dc2626; }

.lp-buy-btn {
  flex-direction: column;
  gap: 2px;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.2;
}

.lp-buy-btn-nav {
  flex-direction: row;
  gap: 8px;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 44px;
}

.lp-buy-btn-nav .lp-buy-price {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.92;
}

.lp-buy-label { font-size: 14px; font-weight: 600; }

.lp-buy-price {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
}

.lp-hero-actions .lp-buy-btn-hero .lp-buy-price {
  font-size: 13px;
}

.lp-cta .lp-buy-btn-cta {
  margin-bottom: 12px;
}

.lp-cta .lp-cta-guide {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.lp-cta .lp-cta-guide:hover { background: rgba(255, 255, 255, 0.25); }

.lp-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.lp-modal[hidden] { display: none; }

body.lp-modal-open { overflow: hidden; }

.lp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.lp-modal-panel {
  position: relative;
  width: min(100%, 360px);
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 24px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
}

.lp-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.lp-modal-close:hover { background: #e2e8f0; color: #0f172a; }

.lp-modal-panel h2 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.lp-modal-price {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--lp-muted);
}

.lp-modal-price span {
  color: var(--lp-primary);
  font-weight: 600;
}

.lp-modal-qr {
  display: inline-block;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--lp-border);
  margin-bottom: 16px;
}

.lp-modal-qr img {
  display: block;
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 8px;
}

.lp-modal-note {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--lp-text);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .lp-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 24px;
  }
  .lp-hero-visual { min-height: auto; }
  .lp-grid { grid-template-columns: 1fr; }
  .lp-steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .lp-nav-links .lp-btn-ghost { display: none; }
  .lp-buy-btn-nav .lp-buy-price { display: none; }
  .lp-hero-actions { flex-direction: column; }
  .lp-hero-actions .lp-btn { width: 100%; }
  .lp-cta { padding: 36px 20px; }
}
