:root {
  color-scheme: light;
  --ink: #201b18;
  --ink-soft: #5e5550;
  --muted: #7a706a;
  --line: #dfd8d2;
  --surface: #fbfaf8;
  --panel: #ffffff;
  --brand: #b84e3a;
  --brand-strong: #8f392b;
  --brand-soft: #f6ddd3;
  --blue: #2f5d73;
  --blue-soft: #e1eef2;
  --violet: #6d5b8f;
  --violet-soft: #ece7f4;
  --gold-soft: #f2e4bd;
  --shadow: 0 18px 50px rgba(46, 36, 31, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
}

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

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

p,
li {
  line-height: 1.75;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(223, 216, 210, 0.86);
  background: rgba(251, 250, 248, 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-link img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(143, 57, 43, 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.menu-button {
  display: none;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--brand-strong);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(540px, 72vh, 720px);
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(251, 250, 248, 0.98) 0%, rgba(251, 250, 248, 0.9) 48%, rgba(251, 250, 248, 0.66) 100%),
    linear-gradient(135deg, #fbfaf8 0%, #f7e8df 52%, #e5eef2 100%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: max(40px, calc((100vw - 1120px) / 2));
  top: 50%;
  width: min(40vw, 500px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 28px;
  background:
    url("./palsay-icon.png") center / 82% no-repeat,
    linear-gradient(150deg, rgba(255, 255, 255, 0.72), rgba(246, 221, 211, 0.3) 58%, rgba(242, 228, 189, 0.64));
  opacity: 0.88;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 118px;
}

.hero-layout {
  max-width: 620px;
}

.hero-content {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(184, 78, 58, 0.22);
  border-radius: 999px;
  background: rgba(246, 221, 211, 0.62);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  max-width: 720px;
  margin: 22px 0 18px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
}

.button.primary {
  background: var(--brand-strong);
  color: #fff;
  box-shadow: 0 14px 28px rgba(143, 57, 43, 0.18);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.hero-note {
  max-width: 680px;
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.note-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
  box-shadow: 0 8px 24px rgba(46, 36, 31, 0.05);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
}

.accent-blue {
  background: linear-gradient(180deg, #fff 0%, var(--blue-soft) 100%);
}

.accent-violet {
  background: linear-gradient(180deg, #fff 0%, var(--violet-soft) 100%);
}

.accent-gold {
  background: linear-gradient(180deg, #fff 0%, var(--gold-soft) 100%);
}

.scene-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.scene-pill {
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.boundary-band {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 80px;
  padding: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2f5d73 0%, #4f436d 100%);
  color: #fff;
}

.boundary-band h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 44px);
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.boundary-item {
  min-height: 110px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 750;
  line-height: 1.55;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.beian {
  display: block;
  margin-top: 6px;
}

.legal-main {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 84px;
}

.legal-head {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.legal-head h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.legal-head p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
}

.legal-content {
  padding-top: 26px;
}

.legal-content h2 {
  margin: 34px 0 12px;
  font-size: 24px;
}

.legal-content h3 {
  margin: 24px 0 10px;
  font-size: 18px;
}

.legal-content p {
  color: var(--ink-soft);
}

.legal-content a {
  overflow-wrap: anywhere;
}

.legal-content ul {
  padding-left: 22px;
  color: var(--ink-soft);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-table th,
.info-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.info-table th {
  width: 150px;
  background: #f3efeb;
  color: var(--ink);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: 0;
}

.callout {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(47, 93, 115, 0.2);
  background: var(--blue-soft);
  color: #244758;
}

@media (max-width: 900px) {
  .nav {
    width: min(1120px, calc(100% - 24px));
    min-height: auto;
    padding: 12px 0 10px;
    gap: 16px;
  }

  .nav-links {
    gap: 12px;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(251, 250, 248, 0.98) 0%, rgba(251, 250, 248, 0.9) 58%, rgba(251, 250, 248, 0.7) 100%),
      linear-gradient(135deg, #fbfaf8 0%, #f7e8df 52%, #e5eef2 100%);
  }

  .hero::after {
    right: 24px;
    bottom: 24px;
    top: auto;
    width: min(36vw, 240px);
    transform: none;
    opacity: 0.18;
  }

  .hero-inner {
    width: min(1120px, calc(100% - 32px));
    padding: 48px 0 50px;
  }

  .hero-layout {
    max-width: 650px;
  }

  .grid.three,
  .grid.two,
  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .scene-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  p,
  li {
    line-height: 1.7;
  }

  .brand-link img {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    font-size: 14px;
    gap: 8px;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: clamp(40px, 12vw, 46px);
    line-height: 1;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-actions .button {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 12px;
  }

  .hero-note {
    margin-top: 24px;
    gap: 8px;
  }

  .note-chip {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .section-heading h2,
  .boundary-band h2 {
    font-size: 28px;
  }

  .section,
  .legal-main {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .section {
    width: min(1120px, calc(100% - 32px));
  }

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

  .card {
    padding: 18px;
  }

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

  .scene-pill {
    min-height: 54px;
  }

  .boundary-band {
    width: min(1120px, calc(100% - 32px));
    margin-bottom: 54px;
    padding: 24px;
  }

  .boundary-item {
    min-height: auto;
  }

  .legal-head h1 {
    font-size: 38px;
  }

  .legal-content h2 {
    font-size: 21px;
  }

  .footer-inner {
    width: min(1120px, calc(100% - 32px));
  }

  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    border-bottom: 0;
    padding-bottom: 4px;
  }
}

@media (max-width: 640px) {
  .nav {
    position: relative;
    flex-direction: row;
    align-items: center;
    padding: 10px 0;
  }

  .menu-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 168px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links[data-open="true"] {
    display: flex;
  }

  .nav-links a {
    padding: 9px 10px;
    border-radius: 6px;
  }

  .nav-links a:hover {
    background: var(--brand-soft);
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(251, 250, 248, 0.98) 0%, rgba(251, 250, 248, 0.9) 58%, rgba(251, 250, 248, 0.74) 100%),
      linear-gradient(135deg, #fbfaf8 0%, #f7e8df 52%, #e5eef2 100%);
  }

  .hero::after {
    right: 8px;
    bottom: 18px;
    top: auto;
    width: min(58vw, 220px);
    transform: none;
    opacity: 0.16;
  }
}
