:root {
  --bg: #f4f1ea;
  --paper: #fbfaf6;
  --ink: #233038;
  --muted: #708087;
  --line: rgba(35, 48, 56, .12);
  --sea: #7fa7ab;
  --sea-deep: #51777d;
  --sand: #c9b58e;
  --rose: #a9807d;
  --green: #758f7b;
  --shadow: 0 20px 60px rgba(50, 64, 68, .10);
}

* { box-sizing: border-box; }

/* 滚动条：细、同色系、贴背景 */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 167, 171, .22) transparent;
}

*::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(127, 167, 171, .16);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(81, 119, 125, .28);
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(151, 184, 187, .18), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(201, 181, 142, .15), transparent 28%),
    var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(35, 48, 56, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 48, 56, .018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

a { color: inherit; }

.shell,
main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.home-page .shell {
  width: min(1180px, calc(100% - 36px));
}

nav,
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 234, .80);
  padding-top: env(safe-area-inset-top, 0);
}

.nav-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  text-decoration: none;
  font-weight: 700;
  min-width: 0;
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(81, 119, 125, .24);
  border-radius: 50%;
  background: rgba(255, 255, 255, .46);
  color: var(--sea-deep);
  font-size: 15px;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.nav-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .38);
}

.nav-tab.is-active {
  color: var(--sea-deep);
  background: rgba(255, 255, 255, .68);
  box-shadow: inset 0 0 0 1px rgba(81, 119, 125, .2);
}

.nav-tab-short {
  display: none;
}

.nav-cta {
  flex-shrink: 0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 15px;
  border: 1px solid rgba(81, 119, 125, .28);
  border-radius: 999px;
  color: var(--sea-deep);
  background: rgba(255, 255, 255, .5);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(81, 119, 125, .4);
}

main {
  padding: 58px 0 88px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.eyebrow {
  color: var(--sea-deep);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h1, h2, h3 {
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-weight: 500;
}

h1 {
  font-size: clamp(38px, 5vw, 58px);
  margin: 0;
  letter-spacing: -.025em;
}

h2 { font-size: 25px; margin: 0; }
h3 { font-size: 19px; }

.tagline,
.muted {
  color: var(--muted);
}

.tagline {
  margin: 12px 0 0;
  line-height: 1.8;
  max-width: 650px;
}

.panel,
.card {
  border: 1px solid var(--line);
  background: rgba(251, 250, 246, .72);
  box-shadow: 0 12px 36px rgba(50, 64, 68, .06);
  backdrop-filter: blur(10px);
}

.panel {
  border-radius: 22px;
  padding: 24px;
}

.card {
  border-radius: 18px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--sand);
  opacity: .9;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.tag {
  font-size: 10px;
  letter-spacing: .12em;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(81, 119, 125, .22);
  color: var(--sea-deep);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.world-side {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.panel.mini {
  padding: 18px;
}

.panel.mini h3 {
  margin: 0 0 8px;
}

.statbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 520px;
  justify-content: flex-end;
}

.statbar span {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .42);
  font-size: 12px;
  color: var(--muted);
}

.pulse-good { color: var(--green) !important; }
.pulse-bad { color: var(--rose) !important; }

.feed { margin-top: 14px; }

.feed .item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

.feed .item:last-child {
  border-bottom: 0;
}

.reward { color: #9a7f4f; }

.narrow {
  max-width: 620px !important;
}

.form-card {
  padding: 30px;
}

label {
  display: block;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
}

input,
select {
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .58);
  color: var(--ink);
  outline: none;
  font: inherit;
}

input:focus,
select:focus {
  border-color: rgba(81, 119, 125, .55);
  box-shadow: 0 0 0 4px rgba(127, 167, 171, .10);
}

.btn {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  background: rgba(255, 255, 255, .48);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.btn.primary {
  background: var(--ink);
  color: #f8f6ef;
  border-color: transparent;
}

.btn.full,
.bar-btn {
  width: 100%;
}

.result {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(127, 167, 171, .09);
  word-break: break-word;
}

.result pre {
  margin: 8px 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .5);
  font-size: 13px;
  overflow-x: auto;
}

.hidden { display: none; }

.helper-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.helper-row a {
  color: var(--sea-deep);
}

.bar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bar-menu {
  grid-column: 1 / -1;
}

.host-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.host-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .35);
}

.host-card h3 {
  margin: 0 0 6px;
  color: var(--sea-deep);
}

.menu-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.menu-row:last-child {
  border-bottom: 0;
}

.menu-row .price {
  float: right;
  color: #9a7f4f;
}

.bar-note {
  font-size: 12px;
  line-height: 1.7;
}

.error { color: #9e6666; }

.soft-hero {
  margin-bottom: 28px;
  padding: 24px 0 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
}

.soft-hero .note {
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .38);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .92em;
}

/* ── Home page ── */

.home-page main {
  padding: 76px 0 90px;
}

.home-page .nav-inner {
  min-height: 72px;
  gap: 26px;
}

.home-page .brand {
  letter-spacing: .02em;
}

.home-page .mark {
  box-shadow: inset 0 0 0 4px rgba(127, 167, 171, .08);
}

.home-page .nav-tab {
  transition: .2s ease;
}

.home-page .hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 58px;
  align-items: center;
  min-height: 560px;
}

.home-page .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 13px;
  letter-spacing: .16em;
}

.home-page .eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--sea);
}

.home-page h1 {
  max-width: 720px;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.home-page h1 span {
  display: block;
  color: var(--sea-deep);
  font-style: italic;
  font-weight: 400;
}

.home-page .tagline {
  max-width: 640px;
  margin: 28px 0 0;
  font-size: 17px;
  line-height: 1.9;
}

.home-page .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.home-page .btn {
  gap: 8px;
  font-size: 14px;
  transition: .2s ease;
}

.home-page .btn:hover {
  transform: translateY(-1px);
  border-color: rgba(81, 119, 125, .34);
}

.home-page .btn.primary {
  box-shadow: 0 10px 26px rgba(35, 48, 56, .14);
}

.scene {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 500px;
}

.poster {
  position: absolute;
  inset: 16px 0 0 28px;
  overflow: hidden;
  border-radius: 34px 34px 110px 34px;
  border: 1px solid rgba(35, 48, 56, .10);
  background:
    linear-gradient(to bottom, rgba(244, 241, 234, .15), transparent 38%),
    linear-gradient(165deg, #a9c0bf 0%, #729197 42%, #596f74 100%);
  box-shadow: var(--shadow);
}

.poster::before {
  content: "";
  position: absolute;
  inset: auto -12% -12% -18%;
  height: 49%;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(circle at 68% 30%, rgba(251, 250, 246, .86) 0 4%, transparent 5%),
    linear-gradient(170deg, rgba(236, 235, 221, .96), rgba(196, 185, 150, .96));
  transform: rotate(-5deg);
}

.poster::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -8%;
  bottom: 31%;
  height: 13%;
  border-top: 1px solid rgba(251, 250, 246, .5);
  border-radius: 50%;
  box-shadow:
    0 -12px 0 -11px rgba(251, 250, 246, .55),
    0 -23px 0 -22px rgba(251, 250, 246, .38);
  transform: rotate(3deg);
}

.moon {
  position: absolute;
  top: 11%;
  right: 12%;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #ebe6d8;
  box-shadow: 0 0 0 16px rgba(235, 230, 216, .08);
}

.poster-label {
  position: absolute;
  left: 28px;
  top: 28px;
  color: rgba(251, 250, 246, .9);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.float-card {
  position: absolute;
  left: 0;
  bottom: 42px;
  width: min(360px, 88%);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 22px;
  background: rgba(251, 250, 246, .82);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px rgba(35, 48, 56, .12);
}

.float-card small {
  display: block;
  color: var(--muted);
  margin-bottom: 7px;
}

.float-card strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 21px;
  font-weight: 500;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--sea-deep);
  font-size: 13px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #749b81;
  box-shadow: 0 0 0 5px rgba(116, 155, 129, .11);
}

.connect {
  margin-top: 84px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 50px;
}

.section-kicker {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.connect h2 {
  margin: 10px 0 0;
  font-size: 34px;
}

.connect-copy {
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
  margin-top: 16px;
}

.terminal {
  position: relative;
  padding: 24px 26px 22px;
  border: 1px solid rgba(35, 48, 56, .12);
  border-radius: 20px;
  background: #202b30;
  color: #dbe6e4;
  box-shadow: 0 20px 55px rgba(35, 48, 56, .13);
  overflow: auto;
}

.terminal::before {
  content: "MCP";
  position: absolute;
  right: 20px;
  top: 16px;
  color: #81979b;
  font-size: 10px;
  letter-spacing: .18em;
}

.terminal code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  font: 13px/1.9 "SFMono-Regular", Consolas, monospace;
}

.terminal .dim { color: #8fa4a7; }
.terminal .accent { color: #d8c79e; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.step {
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .32);
}

.step b {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.step span {
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  padding: 24px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 860px) {
  .home-page .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 38px;
  }

  .scene {
    min-height: 420px;
    max-width: 540px;
  }

  .connect {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  main { padding-top: 38px; }

  .bar-grid { grid-template-columns: 1fr; }

  .bar-menu { grid-column: auto; }

  .statbar { justify-content: flex-start; }

  .soft-hero { grid-template-columns: 1fr; }

  .nav-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cta"
      "tabs tabs";
    align-items: center;
    gap: 12px;
    min-height: auto;
    padding: 12px 0 14px;
  }

  .brand {
    grid-area: brand;
    margin-right: 0;
    font-size: 15px;
  }

  .nav-cta {
    grid-area: cta;
    justify-self: end;
    padding: 9px 14px;
    font-size: 13px;
    background: var(--ink);
    color: #f8f6ef;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(35, 48, 56, .12);
  }

  .nav-cta:hover {
    background: #2f3d44;
    color: #f8f6ef;
  }

  .nav-tabs {
    grid-area: tabs;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
    border-radius: 16px;
    background: rgba(35, 48, 56, .055);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
  }

  .nav-tab {
    padding: 12px 6px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
  }

  .nav-tab:hover {
    background: rgba(255, 255, 255, .28);
  }

  .nav-tab.is-active {
    color: var(--ink);
    background: var(--paper);
    box-shadow:
      0 2px 10px rgba(35, 48, 56, .08),
      inset 0 0 0 1px rgba(81, 119, 125, .12);
  }

  .nav-tab-label { display: none; }

  .nav-tab-short { display: inline; }
}

@media (max-width: 560px) {
  .shell,
  main,
  .home-page .shell {
    width: min(100% - 24px, 1180px);
  }

  .brand { font-size: 14px; }

  .nav-cta { padding: 8px 12px; }

  .home-page main { padding-top: 48px; }

  .home-page h1 { font-size: 46px; }

  .home-page .tagline { font-size: 15px; }

  .scene { min-height: 370px; }

  .poster { inset: 8px 0 0 10px; }

  .connect { margin-top: 58px; }

  .steps { grid-template-columns: 1fr; }
}
