/* sxwig 推广页 — 静态、无依赖、HTML5 / 响应式 */
:root {
  --bg: #0b1220;
  --bg-card: #121c30;
  --bg-soft: #0f1929;
  --text: #e8edf5;
  --muted: #8b9bb4;
  --accent: #3d9cff;
  --accent2: #5eead4;
  --warn: #fbbf24;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 25px 60px rgba(61, 156, 255, 0.15);
  --font: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1180px;
  --glow: rgba(61, 156, 255, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(61, 156, 255, 0.18), transparent),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(94, 234, 212, 0.08), transparent);
  min-height: 100vh;
}

a {
  color: var(--accent2);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ----- layout ----- */
.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  position: relative;
}

/* 改进吸顶导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 18, 32, 0.94);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* 展开菜单时垫在页面与导航之间的遮罩，仅窄屏会显示 */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.48);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 0.75rem 1rem;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
  color: var(--accent2);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0b1220;
  flex-shrink: 0;
}
.brand-text {
  min-width: 0;
  line-height: 1.2;
  font-size: clamp(0.9rem, 2.4vw, 1.1rem);
}

/* mobile menu toggle (hidden on wide screens) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}
.nav-toggle-lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
}
.nav-toggle-lines span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.22s ease, opacity 0.2s ease;
  transform-origin: center;
}
.site-header.nav-open .nav-toggle-lines span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.nav-open .nav-toggle-lines span:nth-child(2) {
  opacity: 0;
}
.site-header.nav-open .nav-toggle-lines span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
}
.primary-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}
.primary-nav a:hover {
  color: var(--text);
  text-decoration: none;
}
.nav-cta {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
}
.nav-cta:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

/* 平板与手机：顶栏用汉堡 + 可折叠导航（避免 8+ 个链接在窄宽下挤成多行） */
@media (max-width: 1023px) {
  .nav-toggle {
    display: inline-flex;
  }
  .header-inner {
    row-gap: 0;
  }
  .brand {
    flex: 1;
    min-width: 0;
  }
  .primary-nav {
    flex: 0 0 100%;
    width: 100%;
    order: 3;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-top: 1px solid transparent;
    visibility: hidden;
  }
  .site-header.nav-open .primary-nav {
    max-height: min(100vh - 3.5rem, 32rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top-color: var(--border);
    visibility: visible;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding: 0.5rem 0 0.25rem;
    gap: 0;
  }
  .primary-nav li a {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }
  .primary-nav li a:not(.nav-cta) {
    color: var(--muted);
  }
  .primary-nav li a:not(.nav-cta):hover,
  .primary-nav li a:not(.nav-cta):focus-visible {
    color: var(--accent2);
  }
  .primary-nav .nav-cta {
    text-align: center;
    border-radius: 10px;
    border: 1px solid rgba(37, 99, 235, 0.5);
    margin: 0.5rem 0 0.35rem;
    padding: 0.7rem 1rem;
  }
  body.nav-menu-open {
    overflow: hidden;
  }
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
  .nav-backdrop {
    display: none !important;
  }
  .primary-nav {
    display: block;
  }
  .header-inner {
    flex-wrap: nowrap;
  }
}

/* ----- hero ----- */
.hero {
  padding: 5.5rem 0 5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 640px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(61, 156, 255, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(94, 234, 212, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero-eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent2);
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow::before {
  content: "●";
  color: var(--accent);
  font-size: 10px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1.4rem;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
  color: white;
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 46rem;
  margin: 0 0 2.25rem;
  line-height: 1.7;
}
.lead-wide {
  font-size: 1.13rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-150%);
  transition: transform 0.6s;
}
.btn:hover::before {
  transform: translateX(250%);
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -10px rgba(61, 156, 255, 0.4);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1e5fd4);
  color: #fff;
  box-shadow: 0 4px 15px rgba(61, 156, 255, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4da6ff, #2563eb);
  box-shadow: 0 20px 40px rgba(61, 156, 255, 0.4);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 500;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent2);
  color: var(--accent2);
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.badge {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ----- sections ----- */
/* 吸顶栏占位，避免锚点跳转时标题被挡 */
section[id],
.install-subsection {
  scroll-margin-top: 6rem;
}
section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
section:first-of-type {
  border-top: none;
  padding-top: 1rem;
}
section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 1rem;
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.2;
}
.section-desc {
  color: var(--muted);
  margin: 0 0 2.25rem;
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.75;
}
.section-desc-center {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-head h2 {
  max-width: 22em;
  margin-left: auto;
  margin-right: auto;
}
.core-section {
  background: linear-gradient(180deg, rgba(15, 25, 41, 0.65) 0%, var(--bg) 80%);
  border-top-color: rgba(255, 255, 255, 0.06) !important;
}
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.grid-dense {
  gap: 1.75rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(61, 156, 255, 0.25);
}
.card-spot {
  border-color: rgba(61, 156, 255, 0.2);
  background: linear-gradient(165deg, rgba(18, 28, 48, 0.98), rgba(11, 18, 32, 0.95));
}
.card-spot:hover {
  border-color: var(--accent);
}
.card .icon {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(61, 156, 255, 0.1);
  border-radius: 12px;
  transition: var(--transition);
}
.card:hover .icon {
  background: rgba(94, 234, 212, 0.15);
  transform: scale(1.1);
}
.card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.85rem;
  color: var(--accent2);
  font-weight: 700;
  line-height: 1.3;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.75;
  flex-grow: 1;
}

/* advantages list - 改进为更具视觉吸引力的卡片式列表 */
.adv-list {
  display: grid;
  gap: 1.25rem;
  max-width: 58rem;
}
.adv-list li {
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem 1.5rem 3.25rem;
  position: relative;
  transition: var(--transition);
  color: var(--muted);
  line-height: 1.7;
}
.adv-list li:hover {
  transform: translateY(-4px);
  border-color: var(--accent2);
  box-shadow: 0 15px 35px -5px rgba(94, 234, 212, 0.1);
}
.adv-list li strong {
  color: var(--text);
  font-weight: 600;
}
.adv-list li::before {
  content: "✓";
  position: absolute;
  left: 1.25rem;
  top: 1.65rem;
  color: var(--accent2);
  font-size: 1.35rem;
  line-height: 1;
  font-weight: bold;
}

/* download box - 更加醒目 */
.dl-box {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-soft));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  max-width: 46rem;
  box-shadow: 0 10px 40px rgba(61, 156, 255, 0.12);
  position: relative;
}
.dl-box::before {
  content: "↓";
  position: absolute;
  top: -14px;
  right: 2rem;
  background: var(--bg);
  color: var(--accent2);
  font-size: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--accent);
}
.dl-box > .btn:first-child {
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 320px;
  justify-content: center;
}
.dl-box p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}
.dl-box p:last-of-type {
  margin-bottom: 0;
}
.dl-box p code {
  display: inline;
  padding: 0.12em 0.4em;
  margin: 0;
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  color: var(--accent2);
  border: 1px solid var(--border);
  word-break: break-all;
}
.dl-box > code {
  display: block;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  word-break: break-all;
  margin: 0.75rem 0;
  color: var(--accent2);
  border: 1px solid var(--border);
}

.install-subsection {
  margin-top: 3rem;
  padding: 3rem 2.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.install-subsection h2 {
  font-size: clamp(1.65rem, 2.8vw, 2rem);
  margin: 0 0 1.25rem;
  color: var(--accent2);
}

/* install one-liner */
.install-cmd {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  max-width: 40rem;
  margin: 0 0 0.25rem;
}
.install-cmd code {
  font-size: 0.95rem;
  color: var(--accent2);
  word-break: break-all;
  background: none;
  padding: 0;
  border: none;
  display: block;
  line-height: 1.5;
}
.install-note {
  margin-top: 1.15rem;
  max-width: 40rem;
}

/* contact */
.contact-section {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 25, 41, 0.35) 50%, transparent 100%);
}
.contact-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 52rem;
  align-items: start;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  height: 100%;
}
.contact-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  color: var(--accent2);
  font-weight: 600;
}
.contact-phone {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.contact-phone a {
  color: var(--text);
  text-decoration: none;
}
.contact-phone a:hover {
  color: var(--accent2);
  text-decoration: none;
}
.contact-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.qr-placeholder {
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  min-height: 180px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.2);
}
.qr-placeholder-inner {
  text-align: center;
  padding: 1.25rem 1rem;
  max-width: 16rem;
}
.qr-placeholder-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.qr-placeholder-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  opacity: 0.9;
}
.note {
  font-size: 0.9rem;
  color: var(--warn);
  margin-top: 0.75rem;
}

/* install steps */
.steps {
  counter-reset: step;
  max-width: 48rem;
}
.step {
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.9rem;
  height: 1.9rem;
  background: var(--accent);
  color: #0b1220;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.step strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}

/* FAQ - 改进视觉效果 */
details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  padding: 0;
  overflow: hidden;
  transition: var(--transition);
}
details[open] {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  padding: 1.25rem 1.75rem;
  position: relative;
}
details summary::-webkit-details-marker {
  display: none;
}
details summary::after {
  content: "↓";
  position: absolute;
  right: 1.75rem;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  color: var(--accent2);
}
details[open] summary::after {
  transform: rotate(180deg);
}
details[open] summary {
  border-bottom: 1px solid var(--border);
  color: var(--accent2);
}
details p {
  margin: 0;
  padding: 1.4rem 1.75rem 1.75rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* footer */
.site-footer {
  padding: 3.5rem 0 4rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  background: rgba(11, 18, 32, 0.6);
}
.site-footer p {
  margin: 0.4rem 0;
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }
  .hero {
    padding: 4rem 0 4rem;
    min-height: auto;
  }
  section {
    padding: 3.5rem 0;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

/* 改进联系我们区块 */
.contact-card {
  transition: var(--transition);
}
.contact-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent2);
}
.qr-placeholder {
  border: 2px dashed var(--accent2);
  background: rgba(94, 234, 212, 0.05);
}

@media print {
  .nav-toggle,
  .nav-toggle-lines {
    display: none !important;
  }
  .site-header,
  .nav-cta,
  .hero-actions {
    position: static;
  }
  .primary-nav {
    max-height: none !important;
  }
  body.nav-menu-open {
    overflow: visible;
  }
  body {
    background: #fff;
    color: #000;
  }
  .card,
  details,
  .dl-box {
    break-inside: avoid;
  }
}
