:root {
  --bg: #f2f4ee;
  --paper: #fffdf7;
  --ink: #17211d;
  --muted: #65726a;
  --line: #d5ddd2;
  --red: #b42318;
  --red-soft: #fff0eb;
  --green: #0f766e;
  --green-soft: #e4f3ef;
  --blue: #273f5f;
  --gold: #bd7a1c;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(180, 35, 24, 0.05), transparent 28%),
    linear-gradient(180deg, rgba(255, 253, 247, 0.92), transparent 460px), var(--bg);
}

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

button,
input {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand,
.site-header nav,
.hero-actions,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
}

.brand span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fffdf7;
  background: var(--red);
  box-shadow: inset 0 -8px 18px rgba(0, 0, 0, 0.14);
}

.site-header nav {
  gap: 8px;
}

.site-header nav a {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.site-header nav a:hover {
  color: var(--red);
  background: var(--red-soft);
}

main {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: 18px 0 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
}

.primary-link {
  color: #fffdf7;
  background: var(--red);
  box-shadow: 0 18px 32px rgba(180, 35, 24, 0.18);
}

.secondary-link {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 253, 247, 0.78);
}

.product-frame {
  overflow: hidden;
  border: 1px solid rgba(23, 33, 29, 0.14);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 28px 72px rgba(29, 40, 35, 0.16);
}

.product-toolbar {
  display: flex;
  gap: 7px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.product-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--red);
}

.product-toolbar span:nth-child(2) {
  background: var(--gold);
}

.product-toolbar span:nth-child(3) {
  background: var(--green);
}

.product-canvas {
  position: relative;
  height: 430px;
  background:
    linear-gradient(90deg, rgba(23, 33, 29, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(23, 33, 29, 0.045) 1px, transparent 1px), #f7faf4;
  background-size: 22px 22px;
}

.node {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 112px;
  min-height: 46px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(29, 40, 35, 0.11);
}

.main-node {
  top: 178px;
  left: calc(50% - 72px);
  min-width: 144px;
  color: var(--red);
  border-color: var(--red);
  background: var(--red-soft);
}

.node-a {
  top: 84px;
  left: 88px;
}

.node-b {
  top: 78px;
  right: 84px;
  border-color: var(--gold);
}

.node-c {
  right: 152px;
  bottom: 72px;
  border-color: var(--blue);
}

.line {
  position: absolute;
  z-index: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.54);
  transform-origin: left center;
}

.line-a {
  top: 170px;
  left: 192px;
  width: 208px;
  transform: rotate(22deg);
}

.line-b {
  top: 168px;
  right: 198px;
  width: 210px;
  transform: rotate(158deg);
}

.line-c {
  right: 258px;
  bottom: 166px;
  width: 162px;
  background: rgba(39, 63, 95, 0.54);
  transform: rotate(144deg);
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 12px 0 54px;
}

.feature-band article,
.upgrade-panel,
.admin-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(29, 40, 35, 0.1);
}

.feature-band article {
  min-height: 178px;
  padding: 22px;
}

.feature-band span {
  color: var(--red);
  font-weight: 900;
}

.feature-band h2,
.upgrade-panel h2 {
  margin: 12px 0 10px;
  font-size: 24px;
}

.feature-band p,
.upgrade-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.upgrade-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: center;
  margin-bottom: 54px;
  padding: 28px;
}

.upgrade-panel h2 {
  font-size: 34px;
}

.upgrade-panel dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.upgrade-panel dl div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf8;
}

dt,
dd {
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

dd {
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-weight: 900;
}

footer {
  justify-content: center;
  gap: 20px;
  padding: 24px;
  color: var(--muted);
  font-size: 13px;
}

.admin-shell {
  width: min(1080px, calc(100% - 64px));
  margin: 44px auto;
  padding: 24px;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-head h1 {
  margin: 0;
  font-size: 30px;
}

.admin-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.token-form {
  display: flex;
  gap: 8px;
}

.token-form input {
  width: 220px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf8;
}

.token-form button {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  color: #fffdf7;
  background: var(--red);
  font-weight: 900;
  cursor: pointer;
}

.feedback-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.feedback-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf8;
}

.feedback-item h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.feedback-item p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
  white-space: pre-wrap;
}

.feedback-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.feedback-shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.feedback-shot img {
  display: block;
  width: 100%;
  max-height: 160px;
  object-fit: contain;
}

.feedback-shot-empty {
  display: grid;
  min-height: 132px;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.empty-message {
  padding: 36px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .site-header,
  main,
  .admin-shell {
    width: min(100% - 32px, 720px);
  }

  .site-header {
    align-items: flex-start;
    gap: 16px;
  }

  .site-header nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero,
  .upgrade-panel,
  .feedback-item {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 22px;
  }

  h1 {
    font-size: 44px;
  }

  .product-canvas {
    height: 340px;
  }

  .feature-band {
    grid-template-columns: 1fr;
  }

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

  .sysreq-list {
    grid-template-columns: 1fr;
  }

  .admin-head {
    display: grid;
  }

  .token-form {
    width: 100%;
  }

  .token-form input {
    width: 100%;
  }

  footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .site-header {
    display: grid;
  }

  .site-header nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions,
  .token-form {
    display: grid;
  }

  .primary-link,
  .secondary-link,
  .token-form button {
    justify-content: center;
    width: 100%;
  }

  .product-frame {
    display: none;
  }

  .upgrade-panel,
  .admin-shell {
    padding: 18px;
  }

  .upgrade-panel h2 {
    font-size: 26px;
  }
}

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions,
  .token-form {
    display: grid;
  }

  .primary-link,
  .secondary-link,
  .token-form button {
    justify-content: center;
    width: 100%;
  }

  .product-frame {
    display: none;
  }

  .upgrade-panel,
  .admin-shell {
    padding: 18px;
  }

  .upgrade-panel h2 {
    font-size: 26px;
  }
}
  .upgrade-panel h2 {
    font-size: 26px;
  }
}
  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions,
  .token-form {
    display: grid;
  }

  .primary-link,
  .secondary-link,
  .token-form button {
    justify-content: center;
    width: 100%;
  }

  .product-frame {
    display: none;
  }

  .upgrade-panel,
  .admin-shell {
    padding: 18px;
  }

  .upgrade-panel h2 {
    font-size: 26px;
  }
}
