* { box-sizing: border-box }
[hidden] { display: none !important }
html { color-scheme: light; scroll-padding-top: 24px }
body {
  margin: 0;
  background: #fff;
  color: #32221a;
  font-family: system-ui, "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
}
img { display: block; max-width: 100% }
a { color: inherit }
button, input { font: inherit }
button { cursor: pointer }
:focus-visible { outline: 3px solid #733b1b; outline-offset: 4px }
.wrap { width: min(calc(100% - 64px), 1120px); margin-inline: auto }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #35220b;
  background: #ffc127;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, #ffe58b55, #ffbd1830),
              url("gold-banner.webp") center / cover no-repeat;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 24px }
.site-header a, .site-footer a { text-underline-offset: 4px; text-decoration: none }
.site-header nav a { font-size: .9375rem; font-weight: 600 }
.site-header nav a:hover, .site-footer a:hover { text-decoration: underline }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
}
.brand img { border-radius: 11px }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(340px, .96fr) minmax(345px, 1.04fr);
  grid-template-areas: "heading phones" "actions phones";
  align-items: center;
  column-gap: clamp(22px, 5vw, 76px);
  row-gap: 24px;
  padding-block: 43px 63px;
}
.heading { grid-area: heading; align-self: end }
.mobile-mark { display: none }
h1 {
  margin: 0;
  font-size: clamp(3.25rem, 6.7vw, 6.25rem);
  line-height: 1.1;
  letter-spacing: .055em;
  font-weight: 800;
}
.heading p {
  margin: 15px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.5;
  color: #4f310e;
}
.showcase {
  grid-area: phones;
  position: relative;
  margin: 0;
  min-height: 450px;
  align-self: stretch;
}
.phone {
  position: absolute;
  display: block;
  top: 50%;
  width: clamp(173px, 18vw, 236px);
  aspect-ratio: .525;
  overflow: hidden;
  border: 7px solid #fff8e9;
  border-radius: 27px;
  background: #fff8e9;
  box-shadow: 0 18px 45px #70410e39, 0 0 0 1px #fffdce59;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top center }
.phone-back {
  z-index: 1;
  left: 52%;
  top: 44%;
  border-color: #352b26;
  background: #352b26;
  transform: translateY(-50%) rotate(6deg) scale(.96);
}
.phone-front {
  z-index: 2;
  left: 16%;
  top: 53%;
  transform: translateY(-50%) rotate(-5deg);
}
.download-area {
  grid-area: actions;
  display: grid;
  grid-template-columns: 116px minmax(188px, 245px);
  gap: 8px 16px;
  align-items: start;
  align-self: start;
}
.qr {
  margin: 0;
  padding: 4px 4px 5px;
  min-height: 129px;
  width: 116px;
  border-radius: 10px;
  background: #fffdf5;
  box-shadow: 0 6px 16px #9c510d22;
  text-align: center;
}
.qr img { margin-inline: auto }
.qr figcaption { font-size: .875rem; font-weight: 600; color: #684822 }
.download-actions { display: flex; flex-direction: column; gap: 9px }
.download-main, .copy-button {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 55px;
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 1.02rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: #492712;
  border: 1px solid transparent;
}
.download-main {
  background: #fffdf5;
  box-shadow: 0 8px 20px #9d520e23;
}
.download-main:hover { background: #fff5d6 }
.copy-button {
  min-height: 46px;
  background: #ffe99050;
  border: 1px solid #8e56154d;
  font-size: .9375rem;
}
.copy-button:hover { background: #fff0b27a }
.version { font-size: .875rem; font-weight: 600; color: #60410d; text-align: center }
.status { grid-column: 1 / -1; margin: 0; font-size: .875rem; color: #543014 }
.status:empty { display: none }
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 7px;
  padding-block: 40px 35px;
}
.feature { text-align: center; padding-inline: 16px }
.feature + .feature { border-left: 1px solid #f0e5d7 }
.feature-icon {
  display: grid;
  place-items: center;
  width: 57px;
  height: 57px;
  margin: 0 auto 11px;
  border-radius: 16px;
  background: #fff1de;
}
.feature-icon img { width: 38px; height: 38px; object-fit: contain }
.feature h2, .help h2, dialog h2 { font-size: 1.125rem; margin: 0; line-height: 1.35 }
.feature p { margin: 6px 0 0; font-size: .95rem; color: #685749 }
.help {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 19px 22px;
  border: 1px solid #efdfc9;
  border-radius: 16px;
  background: #fff8eb;
}
.help p { margin: 6px 0 0; font-size: 1rem; line-height: 1.62; color: #614d3a }
.help-link { flex-shrink: 0; font-size: .9375rem; font-weight: 700; color: #814315; text-underline-offset: 4px }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 22px 26px;
  color: #6a5a4e;
  font-size: .875rem;
}
dialog {
  width: min(calc(100vw - 28px), 420px);
  max-width: none;
  color: #392319;
  background: #fffaf2;
  padding: 23px;
  border: 1px solid #f0dbc1;
  border-radius: 20px;
  box-shadow: 0 26px 90px #45230744;
}
dialog[open] { position: fixed; inset: 0; margin: auto }
dialog::backdrop { background: #32200d94 }
dialog p { margin: 10px 0; color: #594536; font-size: 1rem }
#manual-url {
  display: block;
  width: 100%;
  color: #3f2f25;
  background: #fff;
  border: 1px solid #ddc8b4;
  border-radius: 9px;
  padding: 9px;
  font-size: .9375rem;
}
.guide-actions { display: flex; gap: 10px; margin-top: 15px }
.guide-actions button {
  flex: 1;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 13px;
  background: #f2e8d8;
  color: #513825;
  font-weight: 700;
}
.guide-actions #guide-copy { background: #ffd254; color: #452410 }
@media (max-width: 940px) {
  .wrap { width: min(calc(100% - 40px), 840px) }
  .hero-layout { grid-template-columns: minmax(320px, 1fr) minmax(240px, .85fr); column-gap: 16px; padding-block: 32px 48px }
  .showcase { min-height: 375px }
  .phone { width: clamp(150px, 20.6vw, 198px); border-width: 6px; border-radius: 22px }
  .phone-front { left: 5% }
  .phone-back { left: 43% }
}
@media (max-width: 700px) {
  .wrap { width: min(calc(100% - 36px), 480px) }
  .hero { background: #fff8e4 }
  .hero::before {
    height: 464px;
    background: url("gold-banner.webp") center top / cover no-repeat;
    border-radius: 0 0 52% 47% / 0 0 7% 8%;
  }
  .site-header { min-height: 46px; justify-content: flex-end }
  .site-header .brand { display: none }
  .site-header nav { gap: 18px }
  .site-header nav a { display: inline-flex; align-items: center; min-height: 44px }
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "phones" "actions";
    text-align: center;
    gap: 0;
    padding-block: 8px 25px;
  }
  .mobile-mark { display: block; width: 67px; height: 67px; margin: 0 auto 12px; border-radius: 18px }
  h1 { font-size: clamp(2.35rem, 10vw, 2.95rem); letter-spacing: .065em }
  .heading p { margin-top: 7px; font-size: 1rem }
  .showcase { min-height: 260px; overflow: hidden; margin: 12px 0 0; }
  .phone-front {
    width: 185px;
    transform: translateX(-50%);
    top: 8px;
    left: 50%;
    border-width: 6px;
    border-radius: 22px;
    box-shadow: 0 13px 26px #783d1640;
  }
  .phone-back { display: none }
  .download-area {
    grid-template-columns: 1fr;
    position: relative;
    z-index: 3;
    margin-top: -4px;
    padding: 15px 0 0;
    background: #fff8e4;
  }
  .download-area .qr { display: none }
  .download-actions { margin-inline: auto; width: min(100%, 370px); gap: 8px; }
  .download-main { min-height: 54px; background: #ffc644; color: #40250d; box-shadow: 0 7px 16px #d18a2433 }
  .download-main:hover { background: #ffd45c }
  .copy-button { background: transparent; border-color: #d9ae6273; }
  .features { padding-block: 29px; gap: 19px; grid-template-columns: minmax(0,1fr) }
  .feature { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; text-align: start; padding-inline: 2px; }
  .feature + .feature { border: 0 }
  .feature-icon { width: 48px; height: 48px; grid-row: span 2; margin: 0; align-self: center }
  .feature-icon img { width: 33px; height: 33px }
  .feature h2 { align-self: end; font-size: 1.04rem }
  .feature p { margin: 3px 0 0; font-size: .9375rem }
  .help { display: block; padding: 16px; scroll-margin-top: 12px }
  .help-link { display: inline-block; margin-top: 12px }
  .site-footer { justify-content: center; text-align: center; padding-block: 20px }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto } }
