:root {
  --bg: #ffffff;
  --text: #070707;
  --muted: #646872;
  --line: #e6e8ec;
  --soft: #f7f8fa;
  --soft-border: #eef0f4;
  --okx: #000000;
  --binance: #f0b90b;
  --gate: #0b63f6;
  --gate-2: #17c4a3;
  --radius: 8px;
  --max: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0, rgba(246, 248, 252, 0.95), rgba(255, 255, 255, 0) 280px),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.68;
}

body.modal-open {
  overflow: hidden;
}

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

img,
svg {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button,
[data-download-platform] {
  touch-action: manipulation;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 0 clamp(22px, 5vw, 52px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  font-size: clamp(18px, 1.7vw, 26px);
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: #050505;
  border-radius: 50%;
  font-size: 17px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 72px);
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
}

.top-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 78px;
  color: #111;
}

.top-nav a.active::after,
.top-nav a:hover::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 5px;
  background: #050505;
  border-radius: 6px 6px 0 0;
  content: "";
}

.section {
  padding: clamp(36px, 5.6vw, 72px) clamp(18px, 4vw, 48px);
}

.wrap {
  width: min(100%, var(--max));
  margin: 0 auto;
  min-width: 0;
}

.hero {
  padding-top: clamp(48px, 5.4vw, 82px);
  text-align: center;
}

.hero h1 {
  max-width: 1050px;
  margin: 0 auto 20px;
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  margin: 0 auto;
  color: #60646f;
  font-size: clamp(16px, 1.55vw, 20px);
}

.trust-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(40px, 5vw, 62px);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 46px rgba(22, 28, 38, 0.04);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 94px;
  padding: 22px clamp(22px, 3.2vw, 64px);
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

.trust-item i,
.risk-box > i {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: #050505;
}

.trust-item strong {
  display: block;
  font-size: 19px;
  line-height: 1.3;
}

.trust-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.platform-section {
  position: relative;
  padding-top: 18px;
}

.anchor-target {
  position: absolute;
  top: -90px;
}

#top,
#platforms,
#downloads,
#compare,
#risk {
  scroll-margin-top: 96px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.platform-card {
  display: flex;
  min-width: 0;
  min-height: 690px;
  flex-direction: column;
  padding: clamp(26px, 3vw, 38px) clamp(24px, 3vw, 36px);
  border: 1px solid var(--soft-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.platform-card:hover {
  transform: translateY(-3px);
  border-color: #d9dde5;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.075);
}

.platform-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
}

.platform-head > div {
  min-width: 0;
}

.platform-head h2 {
  margin: 0;
  font-size: clamp(22px, 1.55vw, 26px);
  line-height: 1.25;
  white-space: nowrap;
}

.platform-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.logo {
  position: relative;
  display: grid;
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 0;
  font-weight: 800;
}

.logo-binance img {
  width: 88%;
  height: 88%;
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.promo-box {
  margin-bottom: 26px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: var(--radius);
  background: #fbfcfd;
}

.promo-box span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: #111;
  font-size: 12px;
  font-weight: 800;
}

.promo-box strong {
  display: block;
  color: #111;
  font-size: 17px;
  line-height: 1.35;
}

.promo-box p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.promo-okx {
  border-left-color: var(--okx);
}

.promo-binance {
  border-left-color: var(--binance);
  background: #fffaf0;
}

.promo-binance span {
  color: #111;
  background: var(--binance);
}

.promo-gate {
  border-left-color: var(--gate);
  background: #f6f9ff;
}

.promo-gate span {
  background: var(--gate);
}

.feature-list {
  display: grid;
  gap: 21px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 18px;
  align-items: start;
  color: #23262d;
  font-size: 15px;
}

.feature-list span,
.promo-box p,
.hero p,
.risk-box p {
  overflow-wrap: anywhere;
}

.feature-list i {
  width: 24px;
  height: 24px;
  color: #050505;
}

.gold-icons i {
  color: var(--binance);
}

.blue-icons i {
  color: var(--gate);
}

.actions {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding-top: 42px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font-size: 17px;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.btn i {
  width: 22px;
  height: 22px;
}

.btn-okx {
  color: #fff;
  background: var(--okx);
}

.btn-binance {
  color: #070707;
  background: var(--binance);
}

.btn-gate {
  color: #fff;
  background: var(--gate);
}

.btn-outline {
  color: #0a0a0a;
  background: #fff;
  border-color: #111;
}

.btn-gold-outline {
  color: #9a6b00;
  border-color: var(--binance);
}

.btn-blue-outline {
  color: var(--gate);
  border-color: var(--gate);
}

.section-title {
  display: grid;
  grid-template-columns: 76px auto 76px;
  gap: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 42px;
  text-align: center;
}

.section-title span {
  height: 1px;
  background: var(--line);
}

.section-title h2 {
  margin: 0;
  font-size: clamp(27px, 2.6vw, 36px);
  line-height: 1.25;
}

.section-title p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.compare-table {
  overflow: hidden;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.04);
}

.row {
  display: grid;
  grid-template-columns: 160px repeat(3, 1fr);
  min-height: 108px;
}

.row + .row {
  border-top: 1px solid var(--line);
}

.row > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 24px 30px;
  color: #333842;
  font-size: 15px;
}

.row > div + div {
  border-left: 1px solid var(--line);
}

.row.head {
  min-height: 86px;
}

.row.head > div {
  color: #0b0b0c;
  font-size: 18px;
  font-weight: 700;
}

.row [role="rowheader"] {
  color: #101114;
  font-weight: 700;
}

.row i {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.mini-logo {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 0;
}

.mini-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.risk-section {
  padding-top: 26px;
}

.risk-box {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: clamp(32px, 4vw, 54px) clamp(28px, 7vw, 150px);
  border: 1px solid var(--soft-border);
  border-radius: var(--radius);
  background: #fff;
}

.risk-box h2 {
  margin: 0 0 8px;
  font-size: 27px;
}

.risk-box p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 28px 20px 44px;
  color: var(--muted);
  font-size: 14px;
}

.login-panel {
  display: grid;
  min-height: calc(100vh - 82px);
  place-items: center;
  padding: 32px 18px;
}

.login-card {
  width: min(100%, 460px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.login-card h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}

.login-card p {
  margin: 0 0 22px;
  color: var(--muted);
}

.login-card .btn {
  width: 100%;
  margin-top: 8px;
}

.admin-status.error {
  color: #b42318;
}

.admin-page:not(.is-locked) .login-panel {
  display: none;
}

.footer p {
  margin: 0;
}

.footer a {
  color: #111;
  font-weight: 700;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
}

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

.download-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.42);
  backdrop-filter: blur(8px);
}

.download-card {
  position: relative;
  width: min(100%, 560px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(12, 18, 28, 0.2);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.modal-close i {
  width: 19px;
  height: 19px;
}

.download-card-head {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  align-items: center;
  padding-right: 42px;
}

.modal-logo {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
}

.modal-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.download-card h2 {
  margin: 2px 0 6px;
  font-size: 28px;
  line-height: 1.2;
}

.download-card-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.download-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.download-option {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.download-option:hover {
  transform: translateY(-2px);
  border-color: #111;
  background: #f8fafc;
}

.download-option i {
  width: 38px;
  height: 38px;
  color: #111;
}

.download-option strong,
.download-option small {
  display: block;
}

.download-option strong {
  color: #111;
  font-size: 20px;
  line-height: 1.25;
}

.download-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.ios-option {
  border-color: #16181d;
}

.android-option {
  border-color: #d7dbe2;
}

.download-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

[data-icon] svg,
i[data-icon] {
  display: inline-block;
  stroke-width: 2;
}

.admin-main {
  width: min(100% - 36px, 980px);
  margin: 0 auto;
  padding: 64px 0 80px;
}

.admin-hero {
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 700;
}

.admin-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.15;
}

.admin-hero p,
.admin-note p {
  color: var(--muted);
}

.admin-form,
.admin-note {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.04);
}

.admin-form {
  display: grid;
  gap: 18px;
}

fieldset {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

legend {
  padding: 0 8px;
  font-size: 20px;
  font-weight: 800;
}

@media (min-width: 760px) {
  .admin-form fieldset {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-form legend {
    grid-column: 1 / -1;
  }
}

label {
  display: grid;
  gap: 8px;
  color: #22252b;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #cfd3da;
  border-radius: 7px;
  color: #111;
  outline: none;
}

input:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.text-button {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.admin-status {
  min-height: 24px;
  margin: 0;
  color: #16723b;
  font-weight: 700;
}

.admin-note {
  margin-top: 18px;
}

.admin-note h2 {
  margin: 0 0 10px;
}

code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--soft);
  color: #111;
}

@media (max-width: 980px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding-top: 18px;
    padding-bottom: 0;
  }

  .top-nav {
    width: 100%;
    gap: 22px;
    overflow-x: auto;
    font-size: 14px;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .top-nav a {
    min-height: 52px;
    white-space: nowrap;
  }

  .trust-panel,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .trust-item + .trust-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .platform-card {
    min-height: auto;
    padding: 24px 22px 26px;
  }

  .row {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .row > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .row.head > div:first-child,
  .row > div:first-child {
    background: var(--soft);
  }
}

@media (max-width: 620px) {
  body {
    font-size: 14px;
    line-height: 1.62;
  }

  .section {
    padding: 32px 18px;
  }

  .brand {
    gap: 10px;
    font-size: 15px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .hero {
    text-align: left;
    padding-top: 30px;
  }

  .hero h1,
  .hero p {
    margin-left: 0;
  }

  .hero h1 {
    margin-bottom: 14px;
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.2;
  }

  .hero p {
    font-size: 14.5px;
    line-height: 1.72;
  }

  .trust-item,
  .risk-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .trust-panel {
    margin-top: 28px;
  }

  .trust-item {
    min-height: auto;
    gap: 12px;
    padding: 20px;
  }

  .trust-item i,
  .risk-box > i {
    width: 34px;
    height: 34px;
  }

  .trust-item strong {
    font-size: 18px;
  }

  .platform-head {
    align-items: center;
    flex-direction: row;
    gap: 16px;
    margin-bottom: 20px;
  }

  .promo-box {
    margin-bottom: 22px;
    padding: 13px 14px;
  }

  .promo-box strong {
    font-size: 16px;
  }

  .logo {
    width: 58px;
    height: 58px;
  }

  .platform-head h2 {
    font-size: 21px;
    white-space: normal;
  }

  .platform-head p {
    font-size: 13.5px;
  }

  .platform-grid {
    gap: 16px;
  }

  .platform-card {
    padding: 22px 18px 22px;
  }

  .feature-list {
    gap: 16px;
  }

  .feature-list li {
    grid-template-columns: 22px 1fr;
    font-size: 14px;
    gap: 11px;
  }

  .feature-list i {
    width: 21px;
    height: 21px;
  }

  .actions {
    gap: 12px;
    padding-top: 24px;
  }

  .btn {
    min-height: 50px;
    font-size: 15px;
  }

  .section-title {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
  }

  .section-title span {
    display: none;
  }

  .row > div {
    padding: 16px;
    font-size: 14px;
  }

  .row.head > div {
    font-size: 16px;
  }

  .risk-box {
    gap: 16px;
    padding: 24px 20px;
  }

  .risk-box h2 {
    font-size: 22px;
  }

  .risk-box p {
    font-size: 14px;
  }

  .footer,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .download-card {
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    padding: 20px;
  }

  .download-card-head,
  .download-options {
    grid-template-columns: 1fr;
  }

  .download-card-head {
    gap: 14px;
    padding-right: 40px;
  }

  .download-card h2 {
    font-size: 23px;
  }

  .modal-logo {
    width: 62px;
    height: 62px;
  }

  .download-option {
    min-height: 84px;
    padding: 14px;
  }

  .download-option strong {
    font-size: 18px;
  }

  .download-option i {
    width: 34px;
    height: 34px;
  }

  .login-panel {
    min-height: auto;
    place-items: start center;
    padding-top: 46px;
  }

  .login-card,
  .admin-form,
  .admin-note {
    padding: 22px;
  }

  .admin-main {
    width: min(100% - 36px, 980px);
    padding: 46px 0 64px;
  }

  .admin-hero h1 {
    font-size: clamp(29px, 8vw, 38px);
  }

  fieldset {
    padding: 18px;
  }
}
