:root {
  --page-bg: #030b18;
  --page-surface: rgba(8, 22, 40, .92);
  --page-surface-soft: rgba(12, 31, 54, .78);
  --page-line: rgba(56, 189, 248, .18);
  --page-line-strong: rgba(34, 211, 238, .38);
  --page-text: #eef8ff;
  --page-muted: #9bb0c8;
  --page-cyan: #22d3ee;
  --page-blue: #38bdf8;
  --page-gold: #fbbf24;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--page-text);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  line-height: 1.8;
  background:
    radial-gradient(circle at 78% 8%, rgba(14, 165, 233, .16), transparent 30%),
    radial-gradient(circle at 8% 48%, rgba(34, 211, 238, .08), transparent 28%),
    linear-gradient(180deg, #04101f 0%, var(--page-bg) 58%, #020712 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .24;
  background-image:
    linear-gradient(rgba(56, 189, 248, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, .08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

a { color: #72ddff; text-decoration: none; transition: color .2s ease, border-color .2s ease, transform .2s ease; }
a:hover { color: #fff; }

.header {
  position: relative;
  overflow: hidden;
  padding: 78px 24px 58px;
  color: var(--page-text);
  text-align: center;
  border: 0;
  border-bottom: 1px solid var(--page-line);
  background: linear-gradient(180deg, rgba(4, 18, 34, .98), rgba(5, 16, 30, .76));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
}

.header::before {
  position: absolute;
  width: 420px;
  height: 420px;
  top: -300px;
  left: 50%;
  content: "";
  border: 1px solid rgba(34, 211, 238, .24);
  border-radius: 50%;
  box-shadow: 0 0 100px rgba(14, 165, 233, .15), inset 0 0 80px rgba(34, 211, 238, .07);
  transform: translateX(-50%);
}

.header::after {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 18px;
  padding: 3px 13px;
  color: #7de8ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  content: "港衡a投.com";
  border: 1px solid rgba(34, 211, 238, .34);
  border-radius: 999px;
  background: rgba(6, 31, 53, .7);
  box-shadow: 0 0 24px rgba(34, 211, 238, .1);
}

.header h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.22;
  letter-spacing: -.035em;
  text-shadow: 0 0 32px rgba(56, 189, 248, .18);
}

.header h1::before {
  display: block;
  width: 42px;
  height: 3px;
  margin: 0 auto 22px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, var(--page-cyan), var(--page-blue));
  box-shadow: 0 0 16px rgba(34, 211, 238, .6);
}

.header p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 14px auto 0;
  color: var(--page-muted);
  font-size: 15px;
}

.container {
  width: min(1120px, calc(100% - 32px));
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 0 70px;
}

.content,
.download-section,
.update-log {
  margin: 0 0 22px;
  padding: clamp(24px, 4vw, 44px);
  color: var(--page-muted);
  border: 1px solid var(--page-line);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--page-surface-soft), rgba(4, 13, 26, .94));
  box-shadow: 0 22px 65px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .035);
}

.content { margin-bottom: 0; }
.content > :first-child,
.download-section > :first-child,
.update-log > :first-child { margin-top: 0; }

h2, h3 { color: var(--page-text); line-height: 1.35; }
h2 { margin: 38px 0 18px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; }
h3 { margin: 26px 0 12px; font-size: 19px; }

.content h2,
.download-section h2 {
  position: relative;
  padding-left: 18px;
  color: var(--page-text) !important;
}

.content h3,
.download-section h3,
.update-log h3,
.help-card h3,
.faq-item h3,
.contact-card h3,
.step-box h3 {
  color: var(--page-text) !important;
}

.content h2::before,
.download-section h2::before {
  position: absolute;
  top: .2em;
  bottom: .2em;
  left: 0;
  width: 3px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(180deg, var(--page-cyan), var(--page-blue));
  box-shadow: 0 0 12px rgba(34, 211, 238, .35);
}

p, li { color: var(--page-muted); }
strong { color: #eefbff; }
ul, ol { padding-left: 24px; }
li::marker { color: var(--page-cyan); }

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 0 0 26px;
  padding: 8px 16px;
  color: #a8eaff;
  font-weight: 700;
  border: 1px solid var(--page-line-strong);
  border-radius: 12px;
  background: rgba(6, 28, 48, .78);
}
.back-link:hover { transform: translateY(-2px); }

.version-info,
.features-grid,
.qr-codes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.version-item,
.feature-item,
.qr-item,
.help-card,
.faq-item,
.contact-card,
.step-box {
  color: var(--page-muted);
  border: 1px solid var(--page-line);
  border-radius: 18px;
  background: rgba(3, 14, 28, .72);
  box-shadow: inset 0 1px rgba(255, 255, 255, .03);
}

.version-item { padding: 19px; text-align: left; }
.version-item .label { color: #7e9ab5; font-size: 12px; }
.version-item .value { margin-top: 5px; color: #dff8ff; font-size: 20px; font-weight: 800; }
.features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-item, .qr-item, .help-card, .faq-item, .contact-card, .step-box { padding: 20px; }

.download-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 26px 0; }
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 218px;
  min-height: 54px;
  padding: 12px 24px;
  color: #001520 !important;
  font-weight: 900;
  border: 1px solid rgba(125, 232, 255, .42) !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, #16aee0, #22d3ee) !important;
  box-shadow: 0 12px 34px rgba(14, 165, 233, .24);
}
.download-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(34, 211, 238, .3); }
.download-btn.other { color: #dff8ff !important; background: rgba(8, 29, 50, .96) !important; }

.security-notice,
.notice-box,
.highlight {
  margin: 24px 0;
  padding: 18px 20px;
  color: #e5f7ff;
  border: 1px solid rgba(251, 191, 36, .28);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(87, 60, 5, .2), rgba(7, 25, 43, .72));
}

.search-box {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  color: var(--page-text);
  border: 1px solid var(--page-line-strong);
  border-radius: 14px;
  outline: 0;
  background: rgba(3, 14, 28, .9);
}
.search-box:focus { border-color: var(--page-cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .09); }

.question { color: var(--page-text); }
.answer { color: var(--page-muted); }
.toggle { color: var(--page-cyan); }

table { width: 100%; border-collapse: collapse; overflow: hidden; color: var(--page-muted); border-radius: 14px; }
th, td { padding: 12px 14px; border: 1px solid var(--page-line); }
th { color: #e7f9ff; background: rgba(14, 165, 233, .1); }

.footer {
  margin-top: 0;
  padding: 30px 20px 38px;
  color: #6f89a4;
  text-align: center;
  border-top: 1px solid var(--page-line);
  background: rgba(2, 8, 18, .68);
}
.footer p { margin: 6px 0; color: #6f89a4; }
.footer a { margin: 0 5px; }

@media (max-width: 780px) {
  .header { padding: 58px 18px 42px; }
  .header h1 { font-size: 31px; }
  .container { width: min(100% - 24px, 1120px); padding: 30px 0 48px; }
  .content, .download-section, .update-log { padding: 22px 18px; border-radius: 19px; }
  .version-info, .features-grid, .qr-codes { grid-template-columns: 1fr; }
  .download-btn { width: 100%; min-width: 0; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
