:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f1f5fa;
  --line: #e2e9f2;
  --line-strong: #cdd8e6;
  --ink: #0f172a;
  --ink-secondary: #475569;
  --ink-muted: #78889d;
  --primary: #1383ee;
  --primary-hover: #0e6fd0;
  --primary-soft: #eaf4ff;
  --primary-line: #bfdcf9;
  --ok: #15803d;
  --ok-soft: #ecfdf3;
  --ok-line: #bbf7d0;
  --radius-lg: 16px;
  --radius-md: 11px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
}

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

button {
  font: inherit;
  cursor: pointer;
}

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

.tabular {
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 62px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-text small {
  font-size: 11px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.nav-link.is-active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

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

/* Mobile / WeChat Banner */
.mobile-banner {
  background: #eff6ff;
  border-bottom: 1px solid var(--primary-line);
  padding: 10px 0;
}

.mobile-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mobile-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.mobile-banner-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.mobile-banner-copy span {
  color: var(--ink-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  height: 34px;
  padding: 0 13px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

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

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--surface-soft);
  border-color: #b7c6da;
}

.btn-outline {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink-secondary);
}

.btn-outline:hover {
  color: var(--ink);
  border-color: var(--primary-line);
  background: var(--primary-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-secondary);
  padding: 0 10px;
}

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

.btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.btn-sub {
  font-weight: 500;
  opacity: 0.88;
  font-size: 12.5px;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--ink-secondary);
  font-size: inherit;
}

.link-btn:hover {
  color: var(--primary);
}

/* Main */
.main-shell {
  flex: 1 0 auto;
  padding: 36px 0 64px;
}

/* Hero */
.hero {
  margin-bottom: 28px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 12px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 750;
}

.hero p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 15.5px;
  max-width: 660px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.card-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  object-fit: cover;
  padding: 4px;
  flex: 0 0 auto;
}

.card-title-wrap {
  min-width: 0;
}

.card-title-wrap h2 {
  margin: 0 0 4px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-platform-tag {
  display: inline-block;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.version-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.card-tagline {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.card-summary {
  margin: -8px 0 0;
  font-size: 13.8px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.card-meta span strong {
  color: var(--ink);
  font-weight: 600;
}

.preview-thumb-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  position: relative;
  text-align: left;
}

.preview-thumb-btn img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.25s ease;
}

.preview-thumb-btn:hover img {
  transform: scale(1.015);
}

.preview-thumb-cap {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.card-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-downloads .btn {
  flex: 1 1 180px;
}

.os-hint {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.product-card .os-hint {
  margin-top: -6px;
}

.card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.8px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.detail-link svg,
.back-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.detail-link:hover {
  text-decoration: underline;
}

/* Trust Strip */
.trust-strip {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.trust-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.trust-item strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 4px;
  color: var(--ink);
}

.trust-item p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.55;
}

/* Detail Page */
.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
  padding: 6px 10px 6px 6px;
  border-radius: 8px;
  white-space: nowrap;
}

.back-link:hover {
  background: var(--surface);
  color: var(--ink);
}

.detail-hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.detail-identity {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1 1 460px;
}

.detail-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 5px;
  flex: 0 0 auto;
}

.detail-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.detail-title-row h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 750;
}

.detail-tagline {
  margin: 0 0 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.detail-summary {
  margin: 0;
  font-size: 14.2px;
  color: var(--ink-secondary);
  max-width: 720px;
}

.detail-meta-bar {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.detail-meta-bar strong {
  color: var(--ink);
  font-weight: 600;
}

.detail-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.detail-install-inline {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.detail-install-inline h2 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.install-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-secondary);
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Showcase */
.showcase-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.section-head span {
  font-size: 13px;
  color: var(--ink-muted);
}

.showcase-frame {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}

.showcase-frame img {
  width: 100%;
  height: auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}

.feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-line);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 13.8px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-brand {
  color: var(--ink);
  font-weight: 600;
}

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

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 580px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  padding: 24px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 3px;
}

.modal-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink-secondary);
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--ink);
  background: var(--line);
}

.modal-body {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.qr-box {
  width: 196px;
  height: 196px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 8px;
  overflow: hidden;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.contact-note {
  margin: 0 0 14px;
  font-size: 13.8px;
  color: var(--ink-secondary);
}

.wechat-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.wechat-id-box {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.wechat-id-box .label {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.wechat-id-box strong {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.contact-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.contact-meta-row strong {
  color: var(--ink-secondary);
}

.placeholder-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11.5px;
  font-weight: 600;
}

/* Lightbox */
.lightbox-backdrop {
  background: rgba(15, 23, 42, 0.72);
}

.lightbox-card {
  position: relative;
  max-width: 1120px;
  width: 100%;
  background: var(--surface);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.lightbox-card img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.lightbox-caption {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink-secondary);
  text-align: center;
}

/* Toast */
.toast-region {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-pill {
  background: #0f172a;
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.25);
}

/* Responsive */
@media (max-width: 900px) {
  .product-grid,
  .features-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 16px;
  }

  .site-header {
    height: auto;
    padding: 10px 0;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero h1 {
    font-size: 25px;
  }

  .product-card,
  .detail-hero-card,
  .showcase-card {
    padding: 18px;
  }

  .modal-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .contact-info {
    width: 100%;
  }

  .card-downloads .btn,
  .detail-actions .btn {
    width: 100%;
  }
}
