:root {
  --bg: #f7f4ee;
  --paper: #ffffff;
  --ink: #171717;
  --text: #333333;
  --muted: #76716a;
  --line: #e7dfd2;
  --soft: #fbf8f2;
  --accent: #b08a4a;
  --shadow: 0 18px 48px rgba(37, 30, 18, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Segoe UI", sans-serif;
}

body.viewer-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

button {
  font: inherit;
}

.site-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(176, 138, 74, 0.13), transparent 310px),
    linear-gradient(180deg, #ffffff 0, #ffffff 430px, var(--bg) 430px),
    var(--bg);
}

.container {
  width: min(100% - 32px, 1080px);
  margin-inline: auto;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(231, 223, 210, 0.8);
  backdrop-filter: blur(14px);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
}

.brand,
.brand-subtitle {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
}

.brand {
  gap: 8px;
  font-size: 15px;
}

.brand-icon {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}

.brand-subtitle {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.hero {
  padding: 34px 0 24px;
}

.hero-inner {
  display: grid;
  gap: 18px;
}

.kicker,
.card-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 14px;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.85;
}

.hero-panel,
.intro-card,
.feature,
.vision-grid div,
.about,
.contact dl div,
.qrcode-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.hero-panel {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  box-shadow: var(--shadow);
}

.logo-mark {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-panel-copy {
  min-width: 0;
}

.hero-panel-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
  line-height: 1.45;
}

.hero-panel-copy span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.intro-card,
.section {
  margin-top: 14px;
}

.intro-card {
  padding: 18px;
}

.intro-card h2 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: 0;
}

.intro-card p,
.feature p,
.about p,
.faq-item p,
.vision p,
.contact dd,
.qrcode-card p,
.footer-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.intro-card p,
.feature p,
.about p,
.qrcode-card p {
  margin-bottom: 0;
}

.split-line {
  height: 1px;
  margin: 14px 0;
  background: var(--line);
}

.section {
  padding-top: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.section-head span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.section-head h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: 0;
}

.feature-grid,
.vision-grid,
.contact dl {
  display: grid;
  gap: 10px;
}

.feature {
  padding: 16px;
}

.feature h3,
.faq-item h3 {
  margin-bottom: 7px;
  font-size: 16px;
  line-height: 1.45;
}

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

.vision-grid div {
  min-height: 126px;
  padding: 15px;
  background: var(--soft);
}

.vision-grid b {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
}

.vision-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.about {
  padding: 18px;
  background: var(--soft);
}

.about .section-head {
  margin-bottom: 10px;
}

.about p + p {
  margin-top: 12px;
}

.contact dl {
  margin: 0;
}

.contact dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
}

.contact dt {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.contact dd {
  margin: 0;
  text-align: right;
}

.qrcode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.qrcode-card {
  min-width: 0;
  padding: 8px;
  box-shadow: var(--shadow);
}

.qrcode-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  cursor: zoom-in;
}

.qrcode-button img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.qrcode-card h3 {
  margin: 7px 0 2px;
  font-size: 14px;
  line-height: 1.4;
}

.qrcode-card p {
  font-size: 14px;
  line-height: 1.6;
}

.faq {
  padding-bottom: 6px;
}

.faq-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.faq-item:first-of-type {
  border-top: 0;
}

.faq-item p {
  margin-bottom: 0;
}

.footer-content {
  margin-top: 30px;
  padding: 26px 16px 34px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-content p {
  margin: 0;
}

.footer-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.65;
}

.footer-brand {
  margin-top: 6px !important;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.footer-text {
  margin-top: 8px !important;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
}

.footer-meta a {
  color: #304ffe;
  text-decoration: none;
}

.image-viewer[hidden],
.upgrade-modal[hidden] {
  display: none;
}

.image-viewer,
.upgrade-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.viewer-backdrop,
.upgrade-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.68);
}

.viewer-panel,
.upgrade-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.viewer-close,
.upgrade-close {
  position: absolute;
  top: -12px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.upgrade-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.upgrade-panel h2 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.35;
}

.upgrade-panel p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.upgrade-panel img {
  display: block;
  width: min(100%, 230px);
  margin: 0 auto 10px;
  border-radius: 8px;
  object-fit: contain;
}

.upgrade-panel span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.upgrade-action {
  width: 100%;
  height: 42px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.viewer-image {
  display: block;
  width: 100%;
  max-height: 68vh;
  border-radius: 10px;
  object-fit: contain;
}

.viewer-title {
  margin: 12px 0 4px;
  font-size: 16px;
  font-weight: 800;
}

.viewer-panel span {
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 720px) {
  .container {
    width: min(100% - 48px, 1080px);
  }

  .top-inner {
    min-height: 64px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding: 64px 0 44px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
    gap: 36px;
    align-items: center;
  }

  h1 {
    font-size: clamp(42px, 5vw, 58px);
  }

  .lead {
    font-size: 16px;
  }

  .hero-panel {
    grid-template-columns: 70px 1fr;
    align-items: center;
    padding: 26px;
  }

  .logo-mark {
    width: 70px;
    height: 70px;
  }

  .intro-card,
  .section {
    margin-top: 22px;
  }

  .intro-card,
  .about {
    padding: 26px;
  }

  .section {
    padding-top: 24px;
  }

  .section-head h2,
  .intro-card h2 {
    font-size: 26px;
  }

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

  .feature {
    min-height: 170px;
    padding: 20px;
  }

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

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

  .contact dl div {
    display: block;
    min-height: 112px;
    padding: 20px;
  }

  .contact dd {
    text-align: left;
  }

  .qrcode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
  }

  .qrcode-card {
    padding: 14px;
  }

  .qrcode-card h3 {
    margin-top: 10px;
    font-size: 16px;
  }

  .qrcode-card p {
    font-size: 14px;
    line-height: 1.65;
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .feature {
    min-height: 236px;
  }
}

@media (max-width: 360px) {
  .container {
    width: min(100% - 24px, 1080px);
  }

  h1 {
    font-size: 27px;
  }

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

  .qrcode-grid {
    gap: 6px;
  }

  .qrcode-card {
    padding: 6px;
  }

  .qrcode-card h3 {
    font-size: 14px;
  }

  .qrcode-card p {
    font-size: 14px;
  }
}
