:root {
  color-scheme: light;
  --bg: #f7f1e3;
  --bg-soft: rgba(255, 250, 242, 0.92);
  --bg-strong: #fffaf2;
  --text: #231f1a;
  --text-muted: #5f584f;
  --line: rgba(35, 31, 26, 0.12);
  --brand: #f5c400;
  --brand-deep: #d8a800;
  --shadow: 0 18px 48px rgba(77, 58, 22, 0.12);
  --content-width: 820px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

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

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 84px 24px 120px;
  background: url("./images/bg.webp") center/cover no-repeat;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  margin-top: clamp(8px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-logo {
  width: clamp(116px, 15vw, 168px);
  border-radius: 28px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.hero__title {
  margin: 36px 0 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.18;
  font-weight: 800;
}

.hero__summary {
  margin: 18px 0 0;
  max-width: 520px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  color: rgba(35, 31, 26, 0.78);
}

.wechat-entry {
  position: relative;
  margin-top: 32px;
}

.wechat-button {
  min-width: min(100%, 460px);
  min-height: 84px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  background: linear-gradient(180deg, #ffd11f 0%, var(--brand) 100%);
  box-shadow: 0 12px 28px rgba(245, 196, 0, 0.28);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.wechat-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(245, 196, 0, 0.34);
  background: linear-gradient(180deg, #ffd735 0%, #f8cb0d 100%);
}

.wechat-button:active {
  transform: translateY(0);
}

.wechat-button__icon {
  width: 30px;
  height: 30px;
}

.wechat-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 18px);
  transform: translateX(-50%) translateY(12px);
  width: 248px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 250, 242, 0.96);
  border: 1px solid rgba(35, 31, 26, 0.1);
  box-shadow: 0 18px 40px rgba(44, 35, 20, 0.18);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.wechat-popover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 18px;
  height: 18px;
  background: rgba(255, 250, 242, 0.96);
  border-right: 1px solid rgba(35, 31, 26, 0.1);
  border-bottom: 1px solid rgba(35, 31, 26, 0.1);
  transform: translateX(-50%) rotate(45deg);
}

.wechat-entry:hover .wechat-popover,
.wechat-entry:focus-within .wechat-popover,
.wechat-entry.is-open .wechat-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.wechat-popover__qrcode {
  width: 100%;
  border-radius: 14px;
  background: #fff;
}

.wechat-popover__text {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(35, 31, 26, 0.76);
}

.hero__hint {
  margin: 16px 0 0;
  font-size: 14px;
  color: rgba(35, 31, 26, 0.72);
}

.site-footer {
  position: relative;
  margin-top: -80px;
  padding: 28px 24px 32px;
  background: rgba(245, 196, 0, 0.92);
  backdrop-filter: blur(8px);
}

.site-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

.site-footer__link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1600px) {
  .hero {
    padding-top: 68px;
    padding-bottom: 104px;
  }

  .hero__content {
    width: min(100%, 660px);
    margin-top: clamp(4px, 3vh, 28px);
  }

  .brand-logo {
    width: clamp(108px, 10vw, 148px);
  }

  .hero__title {
    margin-top: 30px;
    font-size: clamp(38px, 4.2vw, 56px);
  }

  .hero__summary {
    max-width: 480px;
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.75;
  }

  .wechat-entry {
    margin-top: 28px;
  }

  .wechat-button {
    min-width: min(100%, 390px);
    min-height: 72px;
    padding: 0 28px;
    font-size: clamp(22px, 2vw, 28px);
  }

  .wechat-button__icon {
    width: 27px;
    height: 27px;
  }

  .site-footer__inner {
    font-size: 14px;
  }
}

@media (max-width: 1440px), (max-height: 860px) {
  .hero {
    padding-top: clamp(44px, 6vh, 62px);
    padding-bottom: clamp(82px, 10vh, 100px);
  }

  .hero__content {
    width: min(100%, 600px);
    margin-top: clamp(0px, 2vh, 18px);
  }

  .brand-logo {
    width: clamp(96px, 8.5vw, 128px);
    border-radius: 24px;
  }

  .hero__title {
    margin-top: 24px;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.14;
  }

  .hero__summary {
    max-width: 440px;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.68;
  }

  .wechat-entry {
    margin-top: 24px;
  }

  .wechat-button {
    min-width: min(100%, 340px);
    min-height: 62px;
    gap: 12px;
    font-size: 22px;
  }

  .wechat-button__icon {
    width: 24px;
    height: 24px;
  }

  .hero__hint {
    margin-top: 12px;
    font-size: 13px;
  }

  .site-footer {
    margin-top: -64px;
    padding: 22px 20px 24px;
  }

  .site-footer__inner {
    gap: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 1180px), (max-height: 740px) {
  .hero {
    padding-top: clamp(34px, 5vh, 48px);
    padding-bottom: 82px;
  }

  .hero__content {
    width: min(100%, 540px);
    margin-top: 0;
  }

  .brand-logo {
    width: 104px;
    border-radius: 22px;
  }

  .hero__title {
    margin-top: 20px;
    font-size: clamp(32px, 4vw, 44px);
  }

  .hero__summary {
    max-width: 410px;
    font-size: 14px;
    line-height: 1.62;
  }

  .wechat-entry {
    margin-top: 20px;
  }

  .wechat-button {
    min-width: min(100%, 310px);
    min-height: 56px;
    padding: 0 24px;
    font-size: 20px;
  }

  .wechat-button__icon {
    width: 22px;
    height: 22px;
  }

  .site-footer {
    margin-top: -54px;
    padding: 18px 18px 20px;
  }

  .site-footer__inner {
    font-size: 12px;
  }
}

.page-header {
  padding: 22px 24px;
  background: rgba(255, 250, 242, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.page-header__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.page-header__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.page-header__title {
  font-size: 18px;
  font-weight: 700;
}

.page-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-muted);
  font-size: 14px;
}

.doc-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fffaf1 0%, #f6efe1 100%);
}

.doc-wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 52px 24px 88px;
}

.doc-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 40px 36px;
}

.doc-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.doc-title {
  margin: 14px 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
}

.doc-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.doc-section {
  margin-top: 34px;
}

.doc-section h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.35;
}

.doc-section p,
.doc-section li {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(35, 31, 26, 0.88);
}

.doc-section ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.doc-section strong {
  color: var(--text);
}

.doc-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 720px) {
  .site-shell {
    min-height: 100dvh;
    position: relative;
    overflow: hidden;
  }

  .hero {
    min-height: 100dvh;
    padding: 46px 20px 230px;
    background-position: 42% center;
  }

  .hero__title {
    margin-top: 28px;
  }

  .wechat-button {
    min-width: 100%;
    min-height: 72px;
    font-size: 24px;
  }

  .wechat-entry {
    width: min(100%, 460px);
  }

  .wechat-popover {
    width: min(82vw, 248px);
    bottom: calc(100% + 14px);
  }

  .site-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin-top: 0;
    padding: 18px 16px 20px;
  }

  .site-footer__inner {
    gap: 8px 14px;
    font-size: 12px;
    line-height: 1.5;
  }

  .site-footer__inner span,
  .site-footer__inner a {
    white-space: nowrap;
  }

  .page-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .doc-wrap {
    padding: 30px 16px 52px;
  }

  .doc-card {
    padding: 28px 20px;
    border-radius: 14px;
  }

  .doc-section h2 {
    font-size: 20px;
  }
}
