:root {
  color-scheme: light;
  --page: #f5efe7;
  --surface: #fffdfa;
  --card: #ffffff;
  --ink: #201a16;
  --muted: #6f665d;
  --soft: #f4eee7;
  --line: #e2d4c6;
  --wood: #7a563e;
  --wood-dark: #60412f;
  --wood-soft: #f1e9e2;
  --wechat: #4f9b48;
  --qq: #206cc8;
  --xhs: #e92f3d;
  --taobao: #ff6a21;
  --pdd: #e9333f;
  --shadow: 0 18px 48px rgba(63, 45, 31, 0.13);
  --shadow-soft: 0 7px 22px rgba(63, 45, 31, 0.07);
}

* { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.96) 0, rgba(255, 252, 248, 0.58) 26rem, transparent 54rem),
    var(--page);
  font-family: "Alibaba PuHuiTi", "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}
button, input, textarea, select { font: inherit; }
button:disabled, .placeholder-card { cursor: not-allowed; opacity: 0.62; }
a { color: inherit; }
img { max-width: 100%; }

.home-shell {
  width: min(100%, 390px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.brand-mark {
  display: block;
  width: 113px;
  line-height: 0;
  text-decoration: none;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}
.quick-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.quick-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdfb;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.quick-nav a.active {
  border-color: #d7bda3;
  background: var(--wood-soft);
  color: var(--wood-dark);
}

.product-hero {
  position: relative;
  overflow: hidden;
  height: 157px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #d8cfc5;
  box-shadow: var(--shadow-soft);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.product-hero.dragging { cursor: grabbing; }
.slide-track {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
}
.slide-link,
.slide img {
  display: block;
  width: 100%;
  height: 100%;
}
.slide-link { cursor: pointer; }
.slide img {
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(30, 24, 20, 0.16);
  transform: translateX(-50%);
}
.carousel-dots button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.carousel-dots button::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.56);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: width 220ms ease, background-color 220ms ease;
}
.carousel-dots button.active::before {
  width: 13px;
  background: rgba(255,255,255,.96);
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.notice-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
  box-shadow: 0 5px 18px rgba(63, 45, 31, 0.045);
}
.section-kicker {
  color: var(--wood-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.notice-card h1 {
  margin: 6px 0 8px;
  font-size: 22px;
  line-height: 1.25;
}
.notice-card p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}
.notice-placeholder { background: #fcfaf7; }
.preline { white-space: pre-line; }

.section-block { padding-top: 18px; }
.contact-section { padding-top: 14px; }
.section-block h2, .info-card h2 {
  position: relative;
  margin: 0 0 12px;
  padding-left: 14px;
  font-size: 22px;
  line-height: 1.3;
}
.section-block h2::before, .info-card h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 5px;
  height: 23px;
  border-radius: 999px;
  background: var(--wood);
}
.contact-section h2 {
  margin-bottom: 10px;
  font-size: 20px;
}
.contact-section h2::before {
  top: 3px;
  height: 21px;
}
.community-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
  box-shadow: 0 5px 18px rgba(63, 45, 31, 0.045);
}
.community-entry h2 { margin: 4px 0; font-size: 21px; line-height: 1.25; }
.community-entry p { margin: 0; color: var(--muted); font-size: 14px; }
.community-entry .button { color: #fff; border-color: var(--wood); background: var(--wood); }

.benefits-shell { display: flex; flex-direction: column; }
.benefits-intro { padding: 18px 2px 14px; }
.benefits-intro h1 { margin: 6px 0 8px; font-size: 30px; line-height: 1.2; }
.benefits-intro p { margin: 0; color: var(--muted); font-size: 15px; }
.interest-pool-list { display: grid; gap: 8px; }
.interest-pool-card {
  display: grid;
  gap: 6px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 4px 12px rgba(63, 45, 31, 0.05);
}
.interest-pool-header {
  display: grid;
  grid-template-columns: 24px auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.interest-pool-icon {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: contain;
}
.interest-pool-icon-fallback {
  display: grid;
  place-items: center;
  background: var(--wood);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.interest-pool-platform {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--wood-soft);
  color: var(--wood-dark);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.platform-qq .interest-pool-platform { background: #eaf2ff; color: #195aa7; }
.platform-wechat .interest-pool-platform { background: #e9f5e7; color: #397638; }
.platform-xhs .interest-pool-platform { background: #fff0f1; color: #b3232e; }
.interest-pool-header h2 {
  min-width: 0;
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.interest-pool-description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.interest-pool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.interest-pool-code {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 7px;
}
.interest-pool-code span { color: var(--muted); font-size: 12px; }
.interest-pool-code strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.interest-pool-footer .interest-pool-copy {
  width: auto;
  min-width: 58px;
  min-height: 40px;
  flex: 0 0 auto;
  padding: 7px 12px;
  color: #fff;
  border-color: var(--wood);
  background: var(--wood);
  font-size: 13px;
}
.benefits-empty {
  padding: 30px 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fcfaf7;
  text-align: center;
}
.benefits-empty h2 { margin: 0 0 6px; font-size: 21px; }
.benefits-empty p { margin: 0; color: var(--muted); font-size: 14px; }
.benefits-shell .site-footer { margin-top: auto; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.featured-contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.contact-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  column-gap: 4px;
  row-gap: 6px;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}
.platform-icon {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
}
.contact-card h3 {
  margin: 0;
  text-align: left;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}
.contact-actions {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}
.contact-card .button {
  padding-right: 4px;
  padding-left: 4px;
  font-size: 13px;
  white-space: nowrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}
.platform-button {
  color: white;
  border-color: var(--wood);
  background: var(--wood);
}
.platform-wechat .platform-button, .sheet-copy { border-color: var(--wechat); background: var(--wechat); }
.platform-qq .platform-button { border-color: var(--qq); background: var(--qq); }
.platform-xhs .platform-button { border-color: var(--xhs); background: var(--xhs); }
.ghost-button, .sheet-save {
  color: var(--ink);
  background: #fff;
}
.platform-wechat .ghost-button, .sheet-save { border-color: #7eaa7b; color: #345f31; }
.platform-qq .ghost-button { border-color: #8cb4e8; color: #1d579d; }
.platform-xhs .ghost-button { border-color: #eba2a8; color: #b3232e; }

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-row p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}
.store-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(63, 45, 31, 0.045);
}
.store-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}
.store-row-static { cursor: default; }
.store-row + .store-row { border-top: 1px solid #eee6de; }
.store-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}
.store-row strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}
.store-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.store-row em {
  color: var(--wood);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.store-row em::after {
  content: "›";
  margin-left: 8px;
  color: var(--wood-dark);
  font-size: 24px;
  vertical-align: -2px;
}

.info-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
  box-shadow: 0 5px 18px rgba(63, 45, 31, 0.045);
}
.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer { padding: 20px 0 10px; }
.footer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
  box-shadow: 0 5px 18px rgba(63, 45, 31, 0.04);
}
.footer-main { min-width: 0; }
.footer-main strong {
  display: block;
  font-size: 14px;
}
.footer-main strong a { color: var(--ink); text-decoration: none; }
.footer-main p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.footer-records {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.footer-records a { color: inherit; text-underline-offset: 2px; }
.visit-count {
  color: #3c7738;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.service-shell {
  display: flex;
  min-height: calc(100dvh - 32px);
  flex-direction: column;
}
.service-page { padding: 28px 0 56px; }
.service-page > h1 {
  margin: 6px 0 0;
  font-size: 30px;
  line-height: 1.2;
}
.service-empty {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
}
.service-empty h2 { margin: 0; font-size: 20px; }
.service-empty p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.service-contact {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(63, 45, 31, 0.045);
}
.service-contact-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.service-contact a {
  display: inline-block;
  color: var(--wood-dark);
  font-size: clamp(18px, 4.5vw, 24px);
  font-weight: 900;
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}
.service-contact p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.service-shell .site-footer { margin-top: auto; }

.product-page-shell { display: flex; min-height: calc(100dvh - 32px); flex-direction: column; }
.products-page { flex: 1; padding: 16px 0 8px; }
.products-page > h1 {
  margin: 6px 0 18px;
  font-size: 30px;
  line-height: 1.2;
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.product-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 6px 18px rgba(63, 45, 31, 0.08);
  text-decoration: none;
}
.product-card > img {
  display: block;
  width: 100%;
  height: 112px;
  aspect-ratio: 1;
  background: var(--soft);
  object-fit: cover;
}
.product-card-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 7px;
  align-content: center;
  min-width: 0;
  padding: 9px 12px;
}
.hot-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--wood-dark);
  background: var(--wood-soft);
  font-size: 11px;
  font-weight: 800;
}
.product-card h2 {
  display: -webkit-box;
  align-self: center;
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-card p {
  display: -webkit-box;
  grid-column: 1 / -1;
  margin: 4px 0 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-card strong { grid-column: 1 / -1; color: var(--wood); font-size: 13px; }
.product-card strong span { font-size: 18px; vertical-align: -1px; }
.products-empty {
  padding: 30px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
}
.products-empty h2 { margin: 0; font-size: 20px; }
.products-empty p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.product-detail { flex: 1; padding: 8px 0 4px; }
.product-back {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  margin-bottom: 8px;
  color: var(--wood);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.product-detail-images {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.product-detail-images figure { margin: 0; }
.product-detail-images img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.product-detail-header { padding: 18px 2px 4px; }
.product-detail-header h1 { margin: 8px 0 6px; font-size: 28px; line-height: 1.25; }
.product-detail-header p { margin: 0; color: var(--muted); font-size: 15px; }
.product-purchase { margin-top: 18px; border-color: var(--wood); color: white; background: var(--wood); }

.qr-dialog {
  width: min(100vw, 390px);
  max-width: none;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.qr-dialog::backdrop { background: rgba(0,0,0,.54); }
.qr-sheet {
  position: relative;
  padding: 30px 24px 28px;
  border-radius: 22px 22px 0 0;
  background: #fffefd;
  box-shadow: 0 -12px 34px rgba(0,0,0,.16);
  text-align: center;
}
.sheet-handle {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 50px;
  height: 5px;
  border-radius: 999px;
  background: #b9b1aa;
  transform: translateX(-50%);
}
.dialog-close {
  position: absolute;
  top: 24px;
  right: 22px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  cursor: pointer;
}
.qr-sheet h2 {
  margin: 4px 46px 18px 0;
  text-align: left;
  font-size: 24px;
}
.sheet-platform-badge {
  width: fit-content;
  margin: 0 46px 2px 0;
  color: var(--wechat);
  font-size: 13px;
  font-weight: 800;
}
.qr-sheet[data-platform="qq"] .sheet-platform-badge { color: var(--qq); }
.qr-sheet[data-platform="xhs"] .sheet-platform-badge { color: var(--xhs); }
.qr-sheet[data-platform="qq"] .sheet-copy { border-color: var(--qq); background: var(--qq); }
.qr-sheet[data-platform="xhs"] .sheet-copy { border-color: var(--xhs); background: var(--xhs); }
#qr-image {
  display: block;
  width: 214px;
  height: 214px;
  margin: 0 auto 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  object-fit: contain;
}
.qr-sheet p {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 15px;
}
.qr-sheet .sheet-account {
  margin: -4px 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  user-select: text;
}
.sheet-copy, .sheet-save { margin-top: 10px; min-height: 54px; font-size: 16px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  min-width: 180px;
  padding: 12px 18px;
  border-radius: 999px;
  color: white;
  background: #302b26;
  text-align: center;
  transition: 180ms ease;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.admin-body { background: #f3eee6; }
.admin-shell { width: min(100% - 28px, 920px); margin: 0 auto; padding: 22px 0 50px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.brand { font-weight: 800; font-size: 18px; }
.admin-header h1 { margin: 2px 0 0; font-size: 30px; line-height: 1.2; }
.admin-card, .login-shell {
  padding: 20px;
  margin: 14px 0;
  border: 1px solid rgba(210, 197, 179, 0.76);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 8px 24px rgba(65, 47, 31, 0.08);
}
.admin-card h2 { margin: 0 0 14px; font-size: 21px; }
.admin-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.admin-section-title span { color: var(--muted); font-size: 13px; }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 700; }
input, textarea, select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
}
textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.check input { width: 20px; min-height: 20px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.subcard { margin: 14px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.62); }
details summary { cursor: pointer; font-weight: 750; }
.primary-button { color: white; border-color: var(--wood); background: var(--wood); }
.danger-button, .text-button { min-height: 44px; padding: 8px 12px; border: 0; background: transparent; cursor: pointer; }
.danger-button { color: #9a342d; }
.text-button { color: var(--muted); }
.alert { padding: 12px 14px; margin: 12px 0; border-radius: 8px; }
.alert.success { color: #296a45; background: #e5f3ea; }
.alert.error { color: #9a342d; background: #f8e7e4; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-qr { width: 150px; height: 150px; object-fit: cover; background: white; border-radius: 8px; }
.spec-editor { display: grid; gap: 10px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; }
.spec-editor legend { padding: 0 6px; font-weight: 700; }
.spec-row { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(0, 1.3fr); gap: 8px; }
.admin-product-images { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-product-images h3 { margin: 0 0 12px; }
.admin-product-image { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 14px 0; }
.admin-product-image + .admin-product-image { border-top: 1px solid var(--line); }
.admin-product-image > div:first-child img { display: block; width: 150px; height: auto; max-height: 240px; border-radius: 8px; object-fit: contain; background: var(--soft); }
.image-role { display: inline-flex; margin-bottom: 7px; padding: 3px 8px; border-radius: 999px; color: var(--wood-dark); background: var(--wood-soft); font-size: 12px; font-weight: 800; }
.admin-product-images small { color: var(--muted); font-size: 12px; font-weight: 500; }
.compact-form { gap: 9px; }
.admin-hint { color: var(--muted); font-size: 14px; }
.login-shell { width: min(100% - 32px, 430px); margin: 10vh auto 0; }
.login-shell h1 { margin: 28px 0 18px; font-size: 30px; }

.button:focus-visible, .quick-nav a:focus-visible, .brand-mark:focus-visible, .store-row:focus-visible, .product-card:focus-visible, .product-back:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(122, 86, 62, 0.28);
  outline-offset: 2px;
}

@media (min-width: 430px) {
  body { padding: 16px 0; }
  .home-shell {
    min-height: calc(100vh - 32px);
    border: 1px solid rgba(226, 212, 198, 0.72);
    border-radius: 14px;
  }
}
@media (min-width: 680px) {
  body { padding: 24px 0; }
  .home-shell {
    width: min(calc(100% - 48px), 620px);
    min-height: calc(100vh - 48px);
    padding: 20px;
    border-radius: 18px;
  }
  .topbar {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 14px;
  }
  .brand-mark { width: 150px; }
  .quick-nav { gap: 10px; }
  .quick-nav a {
    min-height: 48px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 15px;
  }
  .product-hero {
    height: 248px;
    margin-bottom: 22px;
    border-radius: 14px;
  }
  .notice-card { padding: 22px 24px; border-radius: 12px; }
  .notice-card h1 { font-size: 25px; }
  .notice-card p { font-size: 16px; }
  .community-entry { padding: 20px 22px; border-radius: 12px; }
  .section-block { padding-top: 22px; }
  .store-list, .info-card, .footer-card { border-radius: 12px; }
  .store-row { min-height: 72px; padding: 13px 16px; }
  .info-card { padding: 20px 22px; }
  .site-footer { padding-top: 22px; }
  .benefits-intro, .service-page { padding-right: 2px; padding-left: 2px; }
  .interest-pool-list { gap: 10px; }
  .interest-pool-card { padding: 14px 16px; border-radius: 12px; }
  .service-empty, .service-contact { border-radius: 12px; }
}
@media (hover: hover) and (pointer: fine) {
  .quick-nav a:not(.active):hover {
    border-color: #d7bda3;
    background: #fff9f3;
    color: var(--wood-dark);
    transform: translateY(-1px);
  }
  .button:hover {
    box-shadow: 0 6px 16px rgba(63, 45, 31, 0.12);
    transform: translateY(-1px);
  }
  .store-row[href]:hover { background: #fffaf5; }
}
@media (max-width: 360px) {
  .home-shell { padding: 12px; }
  .topbar { gap: 8px; }
  .brand-mark { width: 105px; }
  .quick-nav { gap: 4px; }
  .quick-nav a { min-height: 40px; padding: 0 4px; font-size: 12px; }
  .community-entry { grid-template-columns: 1fr; }
  .interest-pool-card { padding: 10px; }
  .interest-pool-header { grid-template-columns: 22px auto minmax(0, 1fr); gap: 5px; }
  .interest-pool-icon { width: 22px; height: 22px; }
  .product-hero { height: 126px; }
  .product-card { grid-template-columns: 102px minmax(0, 1fr); }
  .product-card > img { height: 102px; }
  .product-card-body { padding: 9px 10px 8px; }
  .product-card h2 { font-size: 15px; }
  .product-card p { font-size: 11px; }
  .notice-card { padding: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .store-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 6px; padding: 8px; }
  .store-row strong { font-size: 14px; white-space: nowrap; }
  .store-row em { font-size: 13px; }
  .store-row em::after { margin-left: 4px; font-size: 20px; }
  .footer-card { grid-template-columns: 1fr; gap: 10px; }
  .stats-grid, .two-cols, .spec-row, .admin-product-image { grid-template-columns: 1fr; }
  .admin-product-image > div:first-child img { width: 100%; max-width: 220px; }
  .admin-section-title { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
