:root {
  --panel: #0e0f11;
  --surface: #15171a;
  --surface-2: #1a1c20;
  --line: #34373c;
  --text: #f0f2f4;
  --secondary: #9398a1;
  --green: #4fd187;
  --amber: #f59c31;
  --xiaohongshu: #ff2442;
  --wechat: #07c160;
  --alipay: #1677ff;
  --paypal: #003087;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--panel);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; letter-spacing: 0; }

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 68px;
  padding: 10px max(20px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(14,15,17,.94);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand img { width: 38px; height: 38px; border-radius: 8px; }
.top-actions { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--secondary); }
.top-actions > a:hover, footer a:hover { color: var(--green); }
.language-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 7px; }
.language-switch button, .tabs button {
  border: 0;
  color: var(--secondary);
  background: transparent;
  cursor: pointer;
}
.language-switch button { width: 35px; height: 28px; border-radius: 5px; font-size: 11px; font-weight: 700; }
.language-switch button.active { color: #07120c; background: var(--green); }
.download-button, .primary-button {
  color: #07120c !important;
  background: var(--green);
  border-radius: 7px;
  font-weight: 700;
}
.download-button { padding: 10px 14px; }

.hero { min-height: 520px; height: min(56.25vw, calc(100vh - 124px)); max-height: 820px; overflow: hidden; background: #08090a; }
.hero img { width: 100%; height: 100%; object-fit: contain; object-position: center; image-rendering: auto; }
.section-inner { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.intro { padding: 88px 0 104px; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 12px; font-weight: 800; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 880px; margin-bottom: 24px; font-size: 54px; line-height: 1.08; }
h2 { margin-bottom: 18px; font-size: 36px; line-height: 1.18; }
h3 { font-size: 18px; }
p { color: var(--secondary); line-height: 1.75; }
.lead { max-width: 820px; font-size: 19px; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.primary-button { padding: 14px 20px; }
.secondary-link { color: var(--green); font-weight: 650; }

.product-band, .guide-band, .support-band { border-block: 1px solid rgba(255,255,255,.07); background: var(--surface); }
.product-layout { padding: 96px 0; display: grid; grid-template-columns: .8fr 1.45fr; gap: 64px; align-items: center; }
.product-layout > div p { max-width: 430px; }
.console-shot { margin: 0; }
.console-shot img { width: 100%; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
figcaption { margin-top: 10px; color: var(--secondary); font-size: 11px; }

#workflow, #remote { padding-block: 104px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 38px; }
.steps article, .guide-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.steps article { min-height: 220px; padding: 26px; }
.steps span { display: block; margin-bottom: 46px; color: var(--amber); font-size: 12px; font-weight: 800; }

.guide-band .section-inner { padding-block: 104px; }
.section-copy { max-width: 760px; }
.guide-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.guide-grid figure { overflow: hidden; background: #0b0c0e; }
.guide-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center top; }
.guide-grid figcaption { margin: 0; padding: 12px; border-top: 1px solid var(--line); }

.section-heading-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.section-heading-row > p { max-width: 520px; justify-self: end; }
.commerce-layout { display: grid; grid-template-columns: 1.4fr .6fr; gap: 18px; margin-top: 36px; align-items: stretch; }
.remote-photo { width: 100%; height: 560px; object-fit: contain; background: #08090a; border: 1px solid var(--line); border-radius: 8px; }
.store-panel, .donation-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 18px; }
.store-panel { height: 560px; display: flex; flex-direction: column; }
.tabs { display: flex; gap: 7px; }
.tabs button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; font-weight: 700; }
.tabs button.active { color: #07120c; border-color: var(--green); background: var(--green); }
.store-tabs button[data-store="xiaohongshu"] { color: var(--xiaohongshu); border-color: color-mix(in srgb, var(--xiaohongshu) 58%, var(--line)); }
.store-tabs button[data-store="xiaohongshu"].active { color: white; border-color: var(--xiaohongshu); background: var(--xiaohongshu); }
.store-content { flex: 1; min-height: 0; padding-top: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.store-content img { width: min(280px, 100%); aspect-ratio: 1; object-fit: contain; padding: 12px; background: white; border-radius: 8px; }
.store-content h3 { margin: 18px 0 5px; }
.store-content a { margin-top: 16px; padding: 12px 16px; border-radius: 7px; color: white; background: var(--green); font-weight: 750; }
.store-content[data-store="xiaohongshu"] a { background: var(--xiaohongshu); }

.support-band .section-inner { padding-block: 104px; }
.support-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.donation-panel { width: min(100%, 520px); height: 500px; justify-self: end; display: flex; flex-direction: column; }
.donation-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.donation-tabs button { min-width: 0; padding-inline: 8px; white-space: nowrap; }
.donation-tabs button[data-donation="wechat"] { color: var(--wechat); border-color: color-mix(in srgb, var(--wechat) 58%, var(--line)); }
.donation-tabs button[data-donation="wechat"].active { color: white; border-color: var(--wechat); background: var(--wechat); }
.donation-tabs button[data-donation="alipay"] { color: var(--alipay); border-color: color-mix(in srgb, var(--alipay) 58%, var(--line)); }
.donation-tabs button[data-donation="alipay"].active { color: white; border-color: var(--alipay); background: var(--alipay); }
.donation-tabs button[data-donation="paypal"] { color: #69a8ff; border-color: color-mix(in srgb, var(--paypal) 68%, var(--line)); }
.donation-tabs button[data-donation="paypal"].active { color: white; border-color: var(--paypal); background: var(--paypal); }
#donation-code { width: 100%; min-height: 0; flex: 1; margin-top: 16px; object-fit: contain; background: #050607; border-radius: 8px; }
footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 110px; display: flex; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; font-size: 12px; }

@media (max-width: 900px) {
  .top-actions > a:not(.download-button) { display: none; }
  .hero { min-height: 0; height: auto; }
  .hero img { aspect-ratio: 16 / 9; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .product-layout, .support-layout, .commerce-layout { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .product-layout { gap: 36px; }
  .remote-photo, .store-panel { height: auto; min-height: 0; }
  .remote-photo { aspect-ratio: 16 / 9; }
  .donation-panel { max-width: none; justify-self: stretch; }
}

@media (max-width: 600px) {
  .topbar { min-height: 60px; }
  .top-actions { gap: 8px; }
  .download-button { display: none; }
  .intro, #workflow, #remote, .guide-band .section-inner, .support-band .section-inner, .product-layout { padding-block: 68px; }
  h1 { font-size: 34px; }
  h2 { font-size: 27px; }
  .lead { font-size: 16px; }
  .steps, .guide-grid, .section-heading-row { grid-template-columns: 1fr; }
  .section-heading-row > p { justify-self: start; }
  .commerce-layout { gap: 12px; }
  .donation-panel { height: 440px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; }
}
