:root {
  --canvas: #f2f8f9;
  --surface: #ffffff;
  --ink: #14282b;
  --muted: #64787c;
  --line: #d5e3e5;
  --blue: #087bb8;
  --cyan: #00a6db;
  --coral: #e96d5f;
  --soft-blue: #e6f4f8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

.page-shell {
  min-height: 100vh;
  border-top: 6px solid var(--cyan);
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
}

.site-header, .hero, .download-section, .config-section, footer { max-width: 1160px; margin-inline: auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 106px;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 190px; height: auto; }
.header-meta { display: flex; align-items: center; gap: 24px; }
.admin-link { color: var(--blue); font: 700 12px/1 "Noto Sans SC", "Microsoft YaHei", sans-serif; text-decoration: none; }
.admin-link:hover { text-decoration: underline; }
.service-label, .node-status, .eyebrow, .panel-kicker, .section-heading > span, footer, .config-row > span {
  font-family: "IBM Plex Mono", Consolas, monospace;
  letter-spacing: 0;
}
.service-label { color: var(--muted); font-size: 11px; font-weight: 700; }
.node-status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; }
.node-status i, .node-panel b i { width: 8px; height: 8px; background: #31b57a; border-radius: 50%; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 80px;
  align-items: end;
  min-height: 454px;
  padding: 80px 0 68px;
}

.hero-copy { animation: rise .55s ease-out both; }
.eyebrow, .panel-kicker { margin: 0 0 18px; color: var(--blue); font-size: 11px; font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 9px; font: 700 108px/.82 Georgia, "Noto Serif SC", serif; letter-spacing: 0; }
.service-name { margin-bottom: 22px; color: var(--blue); font: 700 26px/1.2 Georgia, "Noto Serif SC", serif; }
.summary { max-width: 360px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.9; }

.node-panel {
  display: grid;
  gap: 13px;
  align-self: center;
  padding: 18px 0 18px 31px;
  border-left: 4px solid var(--coral);
  animation: rise .6s .1s ease-out both;
}
.node-panel .panel-kicker { margin-bottom: 0; }
.node-panel strong { font: 700 24px/1.05 Georgia, "Noto Serif SC", serif; overflow-wrap: anywhere; }
.node-panel > span { color: var(--muted); font: 12px/1.5 "IBM Plex Mono", Consolas, monospace; }
.node-panel b { display: inline-flex; align-items: center; gap: 8px; color: #25845b; font: 700 12px/1 "IBM Plex Mono", Consolas, monospace; }

.download-section, .config-section { border-top: 1px solid var(--ink); padding: 34px 0 0; animation: rise .6s .18s ease-out both; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading .eyebrow, .config-heading .eyebrow { margin-bottom: 10px; }
h2 { margin: 0; font: 700 34px/1 Georgia, "Noto Serif SC", serif; }
.section-heading > span { color: var(--muted); font-size: 12px; }

.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.download-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 136px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.download-item:hover { border-color: var(--cyan); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(21, 60, 66, .08); }
.primary-item { border-color: #86cde6; background: var(--soft-blue); }
.platform-mark { display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid var(--blue); color: var(--blue); font: 700 13px/1 "IBM Plex Mono", Consolas, monospace; }
h3 { margin-bottom: 7px; font: 700 21px/1.1 Georgia, "Noto Serif SC", serif; }
.download-info p { margin: 0; color: var(--muted); font-size: 13px; }
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 126px;
  min-height: 42px;
  padding: 8px 11px 8px 14px;
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.download-button b { color: var(--cyan); font: 700 20px/1 Georgia, serif; }
.download-button:hover { background: var(--blue); transform: translateX(3px); }
.download-button:focus-visible, .copy-button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.config-section { margin-top: 48px; padding-bottom: 0; }
.config-heading { margin-bottom: 20px; }
.config-list { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.config-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 64px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.config-row:last-child { border-bottom: 0; }
.config-row > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.config-row code { overflow-wrap: anywhere; color: #29464b; font: 12px/1.6 "IBM Plex Mono", Consolas, monospace; }
.copy-button { min-width: 58px; min-height: 34px; padding: 7px 11px; border: 1px solid var(--blue); border-radius: 2px; background: var(--surface); color: var(--blue); cursor: pointer; font: 700 12px/1 "Noto Sans SC", "Microsoft YaHei", sans-serif; transition: background .18s ease, color .18s ease; }
.copy-button:hover { background: var(--blue); color: #fff; }
.import-row { background: #edf7f9; }

footer { display: flex; justify-content: space-between; gap: 28px; padding: 34px 0 28px; color: var(--muted); font-size: 10px; line-height: 1.5; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .page-shell { padding-inline: 18px; }
  .site-header { min-height: 84px; }
  .brand img { width: 155px; }
  .service-label { display: none; }
  .admin-link { font-size: 11px; }
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: auto; padding: 70px 0 52px; }
  h1 { font-size: 78px; }
  .node-panel { align-self: auto; }
  .download-grid { grid-template-columns: 1fr; }
  .download-item { grid-template-columns: 56px 1fr; min-height: 0; padding: 18px; }
  .platform-mark { width: 56px; height: 56px; }
  .download-button { grid-column: 1 / -1; width: 100%; }
  .config-row { grid-template-columns: 1fr auto; gap: 8px 14px; padding: 15px; }
  .config-row code { grid-column: 1 / -1; grid-row: 2; }
  .copy-button { grid-column: 2; grid-row: 1; }
  footer { align-items: flex-start; flex-direction: column; gap: 9px; }
}
