:root {
  --page: #fbfbfd;
  --surface: #ffffff;
  --surface-soft: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-dark: #005bb5;
  --green: #0b7a75;
  --orange: #b65f12;
  --red: #b42318;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.12);
  --soft-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

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

figure {
  margin: 0;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: 1180px;
  height: 48px;
  margin: 0 auto;
  padding: 0 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 760;
}

.nav {
  display: flex;
  gap: 28px;
  color: #424245;
  font-size: 12px;
}

.nav a,
.admin-link {
  transition: color 160ms ease;
}

.nav a:hover,
.admin-link:hover {
  color: var(--blue);
}

.admin-link {
  color: var(--muted);
  font-size: 12px;
}

.hero-apple {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 22px 18px;
  text-align: center;
}

.section-label {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 980px;
  margin: 0 auto 20px;
  font-size: 84px;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 span {
  display: inline-block;
}

h2 {
  margin-bottom: 14px;
  font-size: 56px;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.14;
}

.lead {
  max-width: 760px;
  margin: 0 auto 28px;
  color: #424245;
  font-size: 22px;
  line-height: 1.42;
}

.lead.small {
  max-width: 720px;
  margin-inline: 0;
  font-size: 20px;
}

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

.section-copy {
  max-width: 680px;
  margin: 0 auto;
  font-size: 19px;
}

.hero-actions,
.toolbar,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.primary-button,
.secondary-button,
.link-button {
  min-height: 42px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 620;
  transition:
    transform 160ms ease,
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.primary-button {
  border-radius: 999px;
  padding: 10px 21px;
  background: var(--blue);
  color: white;
}

.primary-button:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  background: var(--surface);
  color: var(--ink);
}

.secondary-button:hover {
  border-color: #a9a9b0;
  transform: translateY(-1px);
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0;
  background: transparent;
  color: var(--blue);
}

.link-button:hover {
  color: var(--blue-dark);
}

.showcase-stage {
  position: relative;
  max-width: 980px;
  min-height: 470px;
  margin: 38px auto 0;
  padding: 0 112px 58px;
}

.showcase-main,
.showcase-float,
.project-card,
.detail-shell,
.form-card,
.admin-shell,
.admin-metrics div,
.notice,
.table-wrap,
.list-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: var(--surface);
}

.showcase-main,
.showcase-float {
  overflow: hidden;
  margin-bottom: 0;
  box-shadow: var(--shadow);
}

.showcase-main img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111113;
  object-fit: contain;
  object-position: center;
}

.showcase-float {
  position: absolute;
  bottom: 0;
  width: 31%;
}

.showcase-float img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface-soft);
  object-fit: cover;
  object-position: center;
}

.float-left {
  left: 0;
}

.float-right {
  right: 0;
  bottom: 38px;
}

.float-right img {
  object-fit: contain;
}

.showcase-main figcaption,
.showcase-float figcaption {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 13px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 92px 22px;
}

.projects-section {
  padding-top: 44px;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading.centered {
  text-align: center;
}

.toolbar {
  justify-content: center;
  margin-bottom: 32px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 11px 12px;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.13);
}

.toolbar input {
  max-width: 360px;
}

.toolbar select {
  max-width: 150px;
}

.project-grid {
  display: grid;
  gap: 28px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--soft-shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.project-card.reverse {
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
}

.project-card:hover {
  border-color: rgba(0, 113, 227, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.project-image {
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  background: var(--surface-soft);
}

.project-card.reverse .project-image {
  order: 2;
}

.project-image img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  background: var(--surface-soft);
  object-fit: contain;
  object-position: center;
}

.project-body {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 42px;
}

.project-kicker {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 720;
}

.scenario {
  margin: 0;
  color: #424245;
  font-size: 18px;
  font-weight: 650;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 4px;
}

.tag-list span,
.stage,
.tier,
.route {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: #f2f7ff;
  color: #175ca7;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.detail-section {
  padding-top: 24px;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  gap: 30px;
  padding: 34px;
  box-shadow: var(--soft-shadow);
}

.detail-copy {
  align-self: center;
}

.detail-media {
  align-self: center;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: var(--surface-soft);
}

.detail-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--surface-soft);
  object-fit: contain;
  object-position: center;
}

.detail-meta {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.detail-meta div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.detail-meta dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.detail-meta dd {
  margin: 5px 0 0;
  color: #424245;
}

.detail-columns {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 10px;
}

.detail-columns section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.detail-columns h3 {
  font-size: 20px;
}

.detail-columns ul,
.plain-list {
  margin: 0;
  padding-left: 18px;
  color: #424245;
}

.detail-columns li,
.plain-list li {
  margin: 8px 0;
}

.detail-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.quiet-band {
  max-width: none;
  background: var(--surface-soft);
}

.quiet-band > .section-heading,
.quiet-band > .solution-grid {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 22px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.solution-item {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.solution-item h3 {
  font-size: 18px;
}

.solution-item p {
  margin: 0;
  color: var(--muted);
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  gap: 46px;
  align-items: start;
}

.feedback-copy {
  position: sticky;
  top: 76px;
}

.feedback-copy .section-copy {
  margin-left: 0;
}

.form-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  box-shadow: var(--soft-shadow);
}

label {
  display: grid;
  gap: 7px;
  color: #424245;
  font-size: 13px;
  font-weight: 650;
}

.full {
  grid-column: 1 / -1;
}

.checkbox {
  display: flex;
  align-items: center;
}

.checkbox input {
  width: auto;
}

.form-result {
  margin: 0;
  color: var(--green);
  font-weight: 650;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 42px;
  border-top: 1px solid var(--line);
}

.boundary-note {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.admin-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 80px;
}

.admin-page h1 {
  max-width: 920px;
  margin-left: 0;
  font-size: 64px;
  text-align: left;
}

.admin-login {
  padding: 72px 0 36px;
}

.admin-login .lead {
  margin-left: 0;
  text-align: left;
}

.admin-login-card {
  max-width: 520px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  overflow: hidden;
  padding: 0;
  box-shadow: var(--soft-shadow);
}

.admin-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 18px;
}

.admin-sidebar h2 {
  font-size: 30px;
}

.admin-tab {
  width: 100%;
  border-radius: 8px;
  background: transparent;
  padding: 10px 12px;
  color: #424245;
  text-align: left;
  cursor: pointer;
  font-weight: 650;
}

.admin-tab.active {
  background: var(--ink);
  color: white;
}

.admin-main {
  min-height: 520px;
  padding: 22px;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.compact {
  margin-bottom: 18px;
}

.compact h3 {
  font-size: 24px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-metrics div {
  padding: 14px;
  background: var(--page);
}

.admin-metrics strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

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

.notice {
  border-left: 3px solid var(--green);
  background: #f0f8f7;
  padding: 14px;
  color: #284d4a;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  font-size: 14px;
}

th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.feedback-list,
.content-list {
  display: grid;
  gap: 10px;
}

.list-item {
  padding: 12px;
  background: var(--page);
}

.license-tool {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--page);
}

.feature-field {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.feature-field legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.feature-field label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feature-field input {
  width: auto;
}

.license-delivery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 113, 227, 0.22);
  border-radius: 8px;
  padding: 16px;
  background: #f2f7ff;
}

.license-key {
  overflow-wrap: anywhere;
  margin: 0 0 8px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 20px;
  font-weight: 760;
}

.delivery-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.delivery-meta div {
  border-top: 1px solid rgba(0, 113, 227, 0.18);
  padding-top: 10px;
}

.delivery-meta dt,
.cell-subtext {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.delivery-meta dd {
  margin: 3px 0 0;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.small-button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.danger-button {
  border-color: rgba(180, 35, 24, 0.28);
  color: var(--red);
}

@media (max-width: 1040px) {
  h1 {
    font-size: 64px;
  }

  h2 {
    font-size: 44px;
  }

  .showcase-stage {
    min-height: auto;
    padding: 0 0 24px;
  }

  .showcase-float {
    position: static;
    display: inline-block;
    width: calc(50% - 8px);
    margin-top: 14px;
    vertical-align: top;
  }

  .float-left {
    margin-right: 12px;
  }

  .project-card,
  .project-card.reverse,
  .feedback-layout,
  .detail-shell,
  .admin-shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .project-card.reverse .project-image {
    order: 0;
  }

  .feedback-copy {
    position: static;
  }

  .solution-grid,
  .detail-columns,
  .license-tool {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .topbar {
    height: 52px;
    padding: 0 14px;
  }

  .brand span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav {
    display: none;
  }

  .hero-apple,
  .section {
    padding: 58px 16px;
  }

  h1 {
    font-size: 42px;
  }

  h1 span {
    display: block;
  }

  h2,
  .admin-page h1 {
    font-size: 36px;
  }

  h3 {
    font-size: 23px;
  }

  .lead {
    max-width: 340px;
    font-size: 18px;
  }

  .section-copy {
    max-width: 340px;
  }

  .admin-link {
    display: none;
  }

  .showcase-float {
    width: 100%;
  }

  .float-left {
    margin-right: 0;
  }

  .project-body {
    min-height: auto;
    padding: 26px;
  }

  .project-image,
  .project-image img {
    min-height: 260px;
  }

  .solution-grid,
  .detail-columns,
  .form-card,
  .license-tool,
  .license-delivery,
  .delivery-meta,
  .admin-metrics,
  .detail-meta {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
  }

  .toolbar input,
  .toolbar select {
    max-width: none;
  }

  .detail-shell {
    padding: 22px;
  }

  .feedback-layout {
    gap: 26px;
  }
}
