:root {
  --ink: #0c1a2e;
  --muted: #5a6f8a;
  --line: rgba(12, 26, 46, 0.1);
  --surface: #ffffff;
  --sky: #0b6bcb;
  --sky-deep: #084f96;
  --wash: #e8f1fa;
  --font: "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-blue: rgba(232, 242, 255, 0.58);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, #f4f8fc 0%, #eef4fa 45%, #e7eef6 100%);
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.hidden, [hidden] { display: none !important; }

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(11, 107, 203, 0.18), transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 20%, rgba(8, 79, 150, 0.1), transparent 50%);
  animation: wash 12s ease-in-out infinite alternate;
}
@keyframes wash {
  from { opacity: 0.85; }
  to { opacity: 1; }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(244, 248, 252, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand-logo, .brand-mark {
  width: 36px; height: 36px; border-radius: 10px; object-fit: cover;
}
.brand-mark {
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--sky), var(--sky-deep));
  color: #fff; font-size: 0.9rem; font-weight: 800;
}
.top-nav {
  display: flex; gap: 8px; align-items: center; color: var(--muted); font-weight: 600; font-size: 0.9rem;
}
.top-nav a, .nav-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 999px;
}
.top-nav a:hover, .nav-link:hover {
  color: var(--sky);
  background: rgba(11, 107, 203, 0.08);
}

.hero {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(40px, 9vh, 88px) 24px 36px;
  text-align: center;
  animation: rise 0.7s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  margin: 0 0 18px;
  color: var(--sky);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-visual {
  width: 112px; height: 112px; margin: 0 auto 24px;
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(8, 79, 150, 0.2);
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-logo, .hero-logo-fallback {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-logo-fallback {
  display: grid; place-items: center;
  background: linear-gradient(160deg, #cfe4f8, #eaf3fb);
  color: var(--sky-deep); font-weight: 800; font-size: 1.35rem;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.hero-slogan {
  margin: 14px 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: #243b57; font-weight: 500;
}
.hero-desc {
  margin: 12px auto 0; max-width: 520px;
  color: var(--muted); line-height: 1.7; font-size: 0.98rem;
}
.hero-desc:empty { display: none; }
.hero-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px; margin-top: 26px;
}
.hero-actions-row {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px;
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 148px; padding: 14px 28px; border-radius: 12px;
  background: linear-gradient(180deg, var(--sky), var(--sky-deep));
  color: #fff; font-weight: 700; transition: transform 0.2s ease, filter 0.2s ease;
  border: 0; cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-glass {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: linear-gradient(145deg, rgba(255,255,255,0.55), rgba(191, 219, 254, 0.45));
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  color: var(--sky-deep);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(11, 107, 203, 0.12), inset 0 1px 0 rgba(255,255,255,0.8);
}
.btn-glass:hover { transform: translateY(-1px); }
.hero-meta { color: var(--muted); font-size: 0.9rem; font-weight: 500; }

main {
  position: relative; z-index: 1;
  max-width: 1040px; margin: 0 auto; padding: 8px 24px 48px;
}
.block { margin-top: 36px; }
.block-head { margin-bottom: 20px; text-align: center; }
.block-head h2 {
  margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
}
.block-head p { margin: 8px 0 0; color: var(--muted); font-size: 0.95rem; }

.plat-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px;
}
.plat-tabs button {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600;
  font-size: 0.86rem; cursor: pointer;
}
.plat-tabs button.active {
  background: var(--sky); border-color: var(--sky); color: #fff;
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.pkg {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px; display: flex; flex-direction: column; gap: 10px; min-height: 200px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.pkg:hover { transform: translateY(-3px); border-color: rgba(11, 107, 203, 0.35); }
.pkg-top { display: flex; justify-content: space-between; align-items: center; }
.plat {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--wash); color: var(--sky-deep); font-weight: 800; font-size: 0.78rem;
}
.ver { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.pkg h3 { margin: 0; font-size: 1.12rem; font-weight: 700; }
.meta { color: var(--muted); font-size: 0.86rem; }
.changelog-snip {
  margin: 0; color: #334155; font-size: 0.88rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pkg .btn-primary { margin-top: auto; width: 100%; min-width: 0; padding: 12px 16px; font-size: 0.95rem; }

.qr-row { margin-top: 22px; }
.qr-card {
  display: flex; align-items: center; gap: 18px; justify-content: center;
  padding: 18px; border-top: 1px solid var(--line);
}
.qr-card img {
  width: 140px; height: 140px; border-radius: 12px; background: #fff;
  border: 1px solid var(--line);
}
.qr-card strong { display: block; font-size: 1.05rem; }
.qr-card p { margin: 6px 0 0; color: var(--muted); font-size: 0.9rem; max-width: 280px; }

.empty {
  grid-column: 1 / -1; padding: 36px 16px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 18px; background: rgba(255,255,255,0.55);
}

.site-foot {
  position: relative; z-index: 1; text-align: center; color: var(--muted);
  padding: 8px 16px 36px; font-size: 0.88rem;
  display: grid; gap: 4px;
}

/* —— 液态玻璃弹窗 —— */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 40, 80, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(82vh, 760px);
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(186, 219, 255, 0.42)),
    rgba(232, 242, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 28px 80px rgba(8, 79, 150, 0.28),
    0 0 0 1px rgba(11, 107, 203, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  animation: popIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-panel.wide { width: min(880px, 100%); }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(11, 107, 203, 0.12);
}
.modal-head h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--sky-deep);
}
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(11, 107, 203, 0.15);
  background: rgba(255, 255, 255, 0.65);
  color: var(--sky-deep);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: #fff; }
.modal-body {
  padding: 16px 20px 22px;
  overflow: auto;
  color: var(--ink);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-announce .ann-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sky-deep);
}
.modal-announce .ann-body {
  margin: 0;
  line-height: 1.7;
  color: #334155;
  white-space: pre-wrap;
}
.modal-announce .ann-meta {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
}
.ann-list { display: grid; gap: 12px; }
.ann-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(11, 107, 203, 0.12);
}

.timeline { display: grid; gap: 12px; }
.tl-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(11, 107, 203, 0.1);
}
.tl-ver { font-weight: 800; color: var(--sky); font-size: 0.92rem; }
.tl-meta { color: var(--muted); font-size: 0.78rem; margin-top: 4px; }
.tl-item h3 { margin: 0 0 6px; font-size: 1rem; }
.tl-item p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.9rem; white-space: pre-wrap; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(11, 107, 203, 0.12);
  background: rgba(255,255,255,0.5);
  cursor: zoom-in;
}
.gallery img { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; }
.gallery figcaption {
  padding: 6px 8px; font-size: 0.75rem; color: var(--muted); text-align: center;
}

.faq-list { display: grid; gap: 8px; }
.faq-item {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(11, 107, 203, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; list-style: none; color: var(--sky-deep);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  margin: 10px 0 0; color: var(--muted); line-height: 1.65; font-size: 0.9rem; white-space: pre-wrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.contact-item {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(11, 107, 203, 0.12);
  display: grid;
  gap: 6px;
}
.contact-item strong { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.contact-item span { font-size: 1.02rem; font-weight: 700; word-break: break-all; color: var(--sky-deep); }
.contact-lead {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}
.links-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(11, 107, 203, 0.12);
}
.links-row a {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(11, 107, 203, 0.15);
  color: var(--sky);
  font-weight: 600;
  font-size: 0.88rem;
}
.links-row a:hover { background: #fff; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 28, 56, 0.72);
  backdrop-filter: blur(10px);
}
.lightbox img {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 420px);
  max-height: 86vh;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  animation: popIn 0.25s ease;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}

/* 手机菜单按钮 */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--sky-deep);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
}
.mobile-drawer-mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 40, 80, 0.35);
  backdrop-filter: blur(4px);
}
.mobile-drawer-panel {
  position: absolute;
  top: 72px;
  right: 12px;
  left: 12px;
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,0.82), rgba(210, 230, 255, 0.55));
  border: 1px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 18px 40px rgba(8, 79, 150, 0.18);
  animation: popIn 0.22s ease;
}
.mobile-drawer-panel a,
.mobile-drawer-panel button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: rgba(255,255,255,0.55);
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--sky-deep);
  cursor: pointer;
  font-size: 0.95rem;
}

/* PC 宽屏微调 */
@media (min-width: 1100px) {
  .pkg-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 平板 */
@media (max-width: 960px) {
  .topbar { padding: 0 16px; height: 60px; }
  .hero { padding: 36px 16px 28px; }
  main { padding: 8px 16px 40px; }
  .pkg-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .modal-root { padding: 16px; align-items: end; }
  .modal-panel,
  .modal-panel.wide {
    width: 100%;
    max-height: min(86vh, 900px);
    border-radius: 22px 22px 16px 16px;
  }
}

/* 手机 */
@media (max-width: 800px) {
  .top-nav { display: none; }
  .nav-toggle { display: flex; }
  .brand-name {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero { padding-top: 28px; padding-bottom: 20px; }
  .hero h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .hero-visual { width: 96px; height: 96px; border-radius: 24px; }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-cta .btn-primary,
  .hero-cta .btn-glass {
    width: 100%;
    min-width: 0;
  }
  .hero-meta { text-align: center; }
  .hero-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hero-actions-row .btn-glass {
    width: 100%;
    padding: 12px 10px;
    font-size: 0.86rem;
  }
  .pkg-grid { grid-template-columns: 1fr; gap: 12px; }
  .pkg { min-height: 0; }
  .plat-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .plat-tabs button { flex: 0 0 auto; }
  .qr-card {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .modal-root {
    padding: 0;
    align-items: end;
  }
  .modal-panel,
  .modal-panel.wide {
    width: 100%;
    max-height: 88vh;
    border-radius: 22px 22px 0 0;
    animation: sheetUp 0.28s ease;
  }
  .modal-head { padding: 16px 16px 10px; }
  .modal-body { padding: 12px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .lightbox { padding: 12px; }
  .lightbox img {
    max-width: 94vw;
    max-height: 80vh;
  }
  .site-foot {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

@keyframes sheetUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 420px) {
  .hero-actions-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
