:root {
  color-scheme: light;
  --paper: #f2eee4;
  --paper-soft: #faf8f2;
  --ink: #30352f;
  --muted: #74796e;
  --sage: #71806a;
  --sage-dark: #4d5d49;
  --blush: #c79286;
  --line: rgba(72, 82, 70, .17);
  --glass: rgba(250, 248, 242, .76);
  --shadow: 0 24px 70px rgba(63, 70, 57, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button { font: inherit; }
a { color: inherit; }
.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--sage-dark);
  border-radius: 999px;
  transform: translateY(-150%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.brand-page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 8%, rgba(255,255,255,.78), transparent 34%),
    var(--paper);
}
.brand-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.brand-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 50%;
  width: min(100% - 64px, 1320px);
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  border-bottom: 1px solid rgba(70, 78, 66, .14);
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.brand-logo-image {
  display: block;
  width: auto;
  height: 78px;
  object-fit: contain;
}
.brand-header-note,
.hero-kicker,
.entry-panel-head small,
.entry-copy small {
  font-size: 9px;
  letter-spacing: .21em;
  text-transform: uppercase;
}
.brand-header-note {
  display: flex;
  align-items: center;
  gap: 15px;
  color: rgba(48, 53, 47, .7);
  letter-spacing: .25em;
}
.brand-header-note i { width: 32px; height: 1px; background: currentColor; opacity: .45; }

.brand-hero {
  position: relative;
  min-height: calc(100svh - 54px);
  display: flex;
  align-items: stretch;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
  filter: saturate(.88) contrast(.96);
  transform: scale(1.015);
  animation: reveal-image 1.2s cubic-bezier(.2,.75,.25,1) both;
}
.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(242,238,228,.99) 0%, rgba(242,238,228,.94) 32%, rgba(242,238,228,.58) 53%, rgba(242,238,228,.06) 78%),
    linear-gradient(0deg, rgba(242,238,228,.58) 0%, transparent 36%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px rgba(59, 64, 53, .06);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 64px, 1320px);
  margin: 0 auto;
  padding: clamp(156px, 18vh, 200px) 0 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(72px, 11vh, 126px);
}
.hero-copy { max-width: 610px; }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 25px;
  color: var(--sage-dark);
  font-weight: 700;
  animation: rise .7s .12s ease both;
}
.hero-kicker span { width: 38px; height: 1px; background: currentColor; }
.hero-copy h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: clamp(48px, 6.5vw, 91px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.hero-copy h1 span { display: block; animation: rise .75s cubic-bezier(.22,.68,.25,1) both; }
.hero-copy h1 span:nth-child(2) { margin-left: .72em; animation-delay: .08s; }
.hero-copy > p {
  max-width: 500px;
  margin: 30px 0 0;
  color: #5f665c;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 16px;
  line-height: 2;
  letter-spacing: .06em;
  animation: rise .75s .16s ease both;
}
.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 27px;
  animation: rise .75s .22s ease both;
}
.hero-details span {
  padding: 7px 13px;
  color: var(--sage-dark);
  background: rgba(255,255,255,.36);
  border: 1px solid rgba(78, 91, 73, .18);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .14em;
}

.entry-panel {
  width: 100%;
  padding: 22px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 25px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.05);
  animation: rise .8s .28s ease both;
}
.entry-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 3px 5px 17px;
}
.entry-panel-head small { color: var(--blush); font-weight: 700; }
.entry-panel-head h2 {
  margin: 7px 0 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .08em;
}
.entry-panel-head p { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.entry-card {
  position: relative;
  min-height: 154px;
  display: grid;
  grid-template-columns: 58px 1fr 30px;
  align-items: center;
  gap: 14px;
  padding: 24px 20px;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255,255,255,.56);
  border: 1px solid rgba(74, 84, 70, .1);
  border-radius: 18px;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease, border-color .28s ease;
}
.entry-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(83, 98, 79, .12);
  border-radius: 50%;
  transition: transform .35s ease;
}
.entry-card:hover,
.entry-card:focus-visible {
  z-index: 2;
  background: rgba(255,255,255,.87);
  border-color: rgba(79, 94, 74, .25);
  box-shadow: 0 15px 35px rgba(61, 70, 57, .11);
  transform: translateY(-5px);
  outline: none;
}
.entry-card:hover::after,
.entry-card:focus-visible::after { transform: scale(1.35); }
.entry-index { position: absolute; top: 12px; right: 15px; color: rgba(66,75,63,.3); font: 10px/1 Georgia, serif; letter-spacing: .12em; }
.entry-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e2e6dd;
}
.entry-pos .entry-icon { background: #eee2db; }
.entry-order .entry-icon { background: #e6e2cf; }
.entry-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--sage-dark); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.entry-pos .entry-icon svg { stroke: #8d675d; }
.entry-order .entry-icon svg { stroke: #756f4f; }
.entry-copy { display: grid; min-width: 0; }
.entry-copy small { margin-bottom: 7px; color: var(--muted); }
.entry-copy strong { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 20px; font-weight: 600; letter-spacing: .07em; }
.entry-copy em { margin-top: 7px; overflow: hidden; color: var(--muted); font-size: 11px; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.entry-arrow { font-size: 22px; transition: transform .28s ease; }
.entry-card:hover .entry-arrow,
.entry-card:focus-visible .entry-arrow { transform: translate(3px,-3px); }

.brand-footer {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 32px;
  color: #767b72;
  background: #e9e5da;
  border-top: 1px solid rgba(65, 72, 62, .08);
  font-size: 10px;
  letter-spacing: .11em;
}
.footer-flower { color: var(--blush); }
.footer-year { margin-left: auto; }

.miniapp-modal[hidden] { display: none; }
.miniapp-modal { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 22px; }
.miniapp-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(39, 44, 38, .58); backdrop-filter: blur(9px); cursor: default; }
.miniapp-dialog {
  position: relative;
  width: min(100%, 430px);
  padding: 36px 38px 30px;
  color: var(--ink);
  background: rgba(250, 248, 242, .98);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 28px;
  box-shadow: 0 34px 100px rgba(24, 30, 23, .28);
  text-align: center;
  outline: none;
  animation: modal-in .32s cubic-bezier(.2,.75,.25,1) both;
}
.miniapp-close { position: absolute; top: 15px; right: 17px; width: 34px; height: 34px; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; }
.miniapp-close:hover, .miniapp-close:focus-visible { color: var(--ink); background: #ebe7dc; outline: none; }
.miniapp-dialog-kicker { color: var(--blush); font-size: 9px; font-weight: 700; letter-spacing: .23em; }
.miniapp-dialog h2 { margin: 9px 0 8px; font: 500 26px/1.4 "Noto Serif SC", "Songti SC", serif; letter-spacing: .08em; }
.miniapp-dialog > p { margin: 0 0 23px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.miniapp-code-shell { position: relative; width: min(100%, 294px); aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto; padding: 15px; background: #fff; border: 1px solid rgba(77,93,73,.14); border-radius: 24px; box-shadow: 0 14px 40px rgba(58,67,55,.1); overflow: hidden; }
.miniapp-code-shell img { width: 100%; height: 100%; object-fit: contain; border-radius: 13px; }
.miniapp-code-loading, .miniapp-code-error { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 11px; padding: 25px; color: var(--muted); background: #fff; font-size: 12px; }
.miniapp-code-shell[data-code-state="loading"] .miniapp-code-loading, .miniapp-code-shell[data-code-state="error"] .miniapp-code-error { display: grid; }
.miniapp-code-shell[data-code-state="idle"] img, .miniapp-code-shell[data-code-state="loading"] img, .miniapp-code-shell[data-code-state="error"] img { visibility: hidden; }
.miniapp-code-loading i { width: 30px; height: 30px; border: 2px solid #dfe4db; border-top-color: var(--sage-dark); border-radius: 50%; animation: spin .8s linear infinite; }
.miniapp-code-error strong { color: var(--ink); font: 500 17px/1.4 "Noto Serif SC", serif; }
.miniapp-code-error button { padding: 8px 15px; color: #fff; background: var(--sage-dark); border: 0; border-radius: 999px; cursor: pointer; }
.miniapp-code-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 17px; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal-image { from { opacity: 0; transform: scale(1.055); } to { opacity: 1; transform: scale(1.015); } }

@media (max-width: 980px) {
  .hero-wash { background: linear-gradient(90deg, rgba(242,238,228,.98) 0%, rgba(242,238,228,.87) 48%, rgba(242,238,228,.34) 100%), linear-gradient(0deg, rgba(242,238,228,.72), transparent 50%); }
  .hero-inner { gap: 72px; }
  .entry-card { grid-template-columns: 48px 1fr 22px; padding: 21px 16px; gap: 11px; }
  .entry-icon { width: 48px; height: 48px; }
  .entry-icon svg { width: 24px; height: 24px; }
  .entry-copy strong { font-size: 17px; }
}

@media (max-width: 760px) {
  .brand-page { overflow: visible; }
  .brand-header { position: relative; width: calc(100% - 36px); min-height: 88px; }
  .brand-header-note { display: none; }
  .brand-logo-image { height: 64px; }
  .brand-hero { min-height: auto; margin-top: -88px; padding-top: 88px; }
  .hero-media { height: 560px; }
  .hero-media img { object-position: 64% center; }
  .hero-wash { background: linear-gradient(180deg, rgba(242,238,228,.84) 0%, rgba(242,238,228,.64) 45%, rgba(242,238,228,.97) 88%, var(--paper) 100%); }
  .hero-inner { width: calc(100% - 32px); padding: 86px 0 28px; gap: 158px; }
  .hero-copy { max-width: 100%; }
  .hero-copy h1 { font-size: clamp(42px, 13vw, 64px); }
  .hero-copy h1 span:nth-child(2) { margin-left: .45em; }
  .hero-copy > p { max-width: 90%; margin-top: 21px; font-size: 14px; line-height: 1.9; }
  .hero-details { margin-top: 21px; }
  .entry-panel { padding: 16px; border-radius: 21px; }
  .entry-panel-head { align-items: start; padding: 3px 2px 15px; }
  .entry-panel-head p { display: none; }
  .entry-grid { grid-template-columns: 1fr; gap: 9px; }
  .entry-card { min-height: 112px; grid-template-columns: 52px 1fr 24px; padding: 18px 16px; }
  .entry-copy em { white-space: normal; }
  .brand-footer { flex-wrap: wrap; gap: 7px 12px; padding: 18px 24px; text-align: center; }
  .brand-footer > span:nth-child(3) { width: 100%; }
  .footer-year { width: 100%; margin-left: 0; }
}

@media (max-width: 410px) {
  .hero-inner { gap: 128px; }
  .hero-copy > p { max-width: 100%; }
  .hero-details span { padding: 6px 10px; font-size: 10px; }
  .entry-panel-head h2 { font-size: 20px; }
  .miniapp-dialog { padding: 34px 22px 24px; border-radius: 23px; }
  .miniapp-code-meta { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
