:root {
  color-scheme: light;
  --night: #33151f;
  --berry: #762a3f;
  --coral: #c84c49;
  --coral-dark: #a83c3d;
  --coral-highlight: #ff9188;
  --blush: #f6d5ce;
  --canvas: #f7f4f3;
  --surface: #fffdfc;
  --ink: #29171d;
  --muted: #6d555e;
  --line: #dcced1;
  --success: #376a4b;
  --danger: #a33e45;
  --surface-on-dark: #4a202c;
  --text-on-dark: #fff7f3;
  --text-on-dark-muted: #e1c7cd;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --max-width: 1180px;
  --header-height: 64px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --z-sticky: 20;
  --z-modal: 50;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(228, 93, 87, .38);
  outline-offset: 3px;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
dd {
  text-wrap: pretty;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: calc(var(--z-modal) + 1);
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--surface);
  background: var(--night);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.admin-header {
  position: sticky;
  z-index: var(--z-sticky);
  top: 0;
  min-height: var(--header-height);
  color: var(--text-on-dark);
  background: var(--night);
}

.header-inner,
.admin-header-inner {
  display: flex;
  width: min(calc(100% - 24px), var(--max-width));
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.brand-seal {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--surface);
  background: var(--coral);
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.brand-copy strong,
.brand-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 10px;
}

.brand-on-dark .brand-copy small,
.site-header .brand-copy small,
.site-footer .brand-copy small {
  color: var(--text-on-dark-muted);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--text-on-dark-muted);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, .1);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  color: var(--text-on-dark);
  background: var(--night);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -3;
  background-image: url("/static/images/fairy-savings-village.webp?v=20260822-r5");
  background-position: 64% center;
  background-size: cover;
  transform: scale(1.01);
  animation: scene-arrive 900ms var(--ease-out) both;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(30, 9, 16, .28) 0%, rgba(32, 10, 17, .18) 35%, rgba(37, 12, 20, .82) 100%),
    linear-gradient(90deg, rgba(33, 10, 18, .7) 0%, rgba(33, 10, 18, .24) 58%, rgba(33, 10, 18, .08) 100%);
}

.hero-layout {
  display: grid;
  width: min(calc(100% - 28px), var(--max-width));
  min-height: calc(100svh - var(--header-height));
  align-content: center;
  gap: 26px;
  margin: 0 auto;
  padding: 36px 0 44px;
}

.hero-story {
  max-width: 580px;
  animation: copy-arrive 620ms 80ms var(--ease-out) both;
}

.hero-kicker {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 750;
}

.hero-story h1 {
  margin-bottom: 18px;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(2.8rem, 13vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.03;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero-line.is-accent {
  color: #ffd4c9;
}

.hero-summary {
  max-width: 30ch;
  margin-bottom: 0;
  color: var(--text-on-dark-muted);
  font-size: 15px;
  line-height: 1.75;
}

.rebate-station {
  width: 100%;
  padding: 20px;
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: rgba(255, 253, 252, .97);
  box-shadow: 0 18px 48px rgba(28, 8, 14, .25);
  animation: station-arrive 620ms 150ms var(--ease-out) both;
}

.station-heading,
.workbench-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.station-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--surface);
  background: var(--coral);
  font-size: 15px;
  font-weight: 850;
}

.station-heading h2,
.workbench-heading h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.station-heading p,
.workbench-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

#rebate-form {
  margin-top: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 750;
}

textarea,
input:not([type="hidden"]):not([type="checkbox"]):not([type="color"]) {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: var(--surface);
  appearance: none;
  transition: border-color 160ms var(--ease-out), outline-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

textarea {
  min-height: 132px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.65;
}

input:not([type="hidden"]):not([type="checkbox"]):not([type="color"]) {
  min-height: 52px;
  padding: 0 16px;
}

textarea::placeholder,
input::placeholder {
  color: #745c64;
  opacity: 1;
}

textarea:focus,
input:focus {
  border-color: var(--coral);
  outline: 3px solid rgba(228, 93, 87, .17);
  outline-offset: 0;
}

.field-meta {
  min-height: 38px;
}

.field-help,
.field-error,
.pdd-publish-notice {
  margin: 8px 2px 0;
  font-size: 12px;
  line-height: 1.5;
}

.field-help {
  color: var(--muted);
}

.field-error {
  min-height: 18px;
  color: var(--danger);
  font-weight: 700;
}

.pdd-publish-notice {
  min-height: 18px;
  color: var(--success);
  font-weight: 750;
}

.primary-button,
.secondary-button,
.promo-link,
.refresh-button,
.pdd-join-button,
.admin-header-actions a,
.admin-header-actions button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

.primary-button {
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  color: var(--surface);
  background: var(--coral);
}

#preview-button {
  width: 100%;
  justify-content: space-between;
  margin-top: 4px;
}

.button-arrow {
  font-size: 20px;
  font-weight: 500;
}

.secondary-button {
  padding: 0 20px;
  border: 1px solid var(--line);
  color: var(--berry);
  background: var(--surface);
}

.primary-button:hover,
.secondary-button:hover,
.promo-link:hover,
.refresh-button:hover,
.pdd-join-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(51, 21, 31, .14);
}

.primary-button:active,
.secondary-button:active,
.promo-link:active,
.refresh-button:active,
.pdd-join-button:active {
  transform: scale(.98);
}

.primary-button:disabled,
.secondary-button:disabled,
.refresh-button:disabled,
.pdd-join-button:disabled {
  cursor: not-allowed;
  color: #806a70;
  background: #e8e0e2;
  box-shadow: none;
  transform: none;
}

.loading-state {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 8px 0;
}

.skeleton {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ece4e6;
}

.skeleton::after {
  display: block;
  width: 55%;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent);
  animation: shimmer 1.2s ease infinite;
}

.skeleton-image {
  height: 92px;
}

.loading-lines {
  display: grid;
  align-content: center;
  gap: 10px;
}

.skeleton-line {
  width: 72%;
  height: 12px;
}

.skeleton-line.wide {
  width: 100%;
}

.skeleton-line.short {
  width: 44%;
}

.product-result {
  display: grid;
  gap: 16px;
}

.product-head {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
}

.product-head img {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: #ece4e6;
}

.result-label {
  margin-bottom: 4px;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 800;
}

.product-copy h2 {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-price {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.product-price strong {
  color: var(--ink);
  font-size: 17px;
}

.tlj-reward {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tlj-reward > div {
  display: grid;
  gap: 3px;
}

.tlj-reward span {
  font-size: 15px;
  font-weight: 800;
}

.tlj-reward small {
  color: var(--muted);
  font-size: 11px;
}

.tlj-reward > strong {
  color: var(--coral-dark);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.03em;
}

.result-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.product-result .primary-button {
  width: 100%;
}

.message-state {
  padding: 12px 0 4px;
  text-align: left;
}

.message-state strong {
  display: block;
  font-size: 19px;
}

.message-state p {
  max-width: 50ch;
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.pdd-section {
  color: var(--text-on-dark);
  background: var(--night);
}

.pdd-shell,
.takeout-layout,
.promise-layout {
  width: min(calc(100% - 28px), var(--max-width));
  margin: 0 auto;
  padding-top: clamp(64px, 9vw, 112px);
  padding-bottom: clamp(64px, 9vw, 112px);
}

.pdd-intro {
  display: grid;
  gap: 18px;
}

.section-marker {
  margin-bottom: 8px;
  color: var(--coral-dark);
  font-size: 13px;
  font-weight: 800;
}

.pdd-intro h2,
.takeout-heading h2,
.promise-layout h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: 1.12;
}

.pdd-intro > p {
  max-width: 38ch;
  margin-bottom: 0;
  color: var(--text-on-dark-muted);
  font-size: 14px;
  line-height: 1.75;
}

.pdd-section .section-marker,
.pdd-guide li::before {
  color: var(--coral-highlight);
}

.pdd-guide {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.pdd-guide summary {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 800;
}

.pdd-guide summary::-webkit-details-marker {
  display: none;
}

.summary-action {
  color: var(--text-on-dark-muted);
  font-size: 12px;
  font-weight: 650;
}

.pdd-guide[open] .summary-action {
  visibility: hidden;
}

.pdd-guide[open] .summary-action::after {
  visibility: visible;
  content: "收起";
}

.pdd-guide ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 0 18px;
  list-style: none;
  counter-reset: guide;
}

.pdd-guide li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 2px 10px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  counter-increment: guide;
}

.pdd-guide li::before {
  grid-row: 1 / span 2;
  color: var(--coral);
  content: counter(guide);
  font-size: 13px;
  font-weight: 900;
}

.pdd-guide li strong {
  font-size: 14px;
}

.pdd-guide li span {
  color: var(--text-on-dark-muted);
  font-size: 12px;
  line-height: 1.6;
}

.pdd-workbench {
  display: grid;
  margin-top: 28px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--surface);
}

.pdd-publish,
.pdd-pool {
  min-width: 0;
  padding: 20px;
}

.pdd-publish {
  background: #f4e7e7;
  border-bottom: 1px solid var(--line);
}

#pdd-publish-form {
  margin-top: 24px;
}

#pdd-code {
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: .12em;
}

#pdd-publish-button {
  width: 100%;
  margin-top: 4px;
}

.pool-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pool-heading h3 {
  margin-bottom: 3px;
  font-size: 22px;
  letter-spacing: -.02em;
}

.pool-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.pool-heading p strong {
  color: var(--berry);
  font-size: 15px;
}

.refresh-button {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--berry);
  background: var(--surface);
  font-size: 12px;
}

.pdd-code-list {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.pdd-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.pdd-code-body {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.pdd-code-body strong,
.pdd-claimed-code,
.admin-pdd-code strong {
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
}

.pdd-code-body strong {
  font-size: 17px;
  letter-spacing: .08em;
}

.pdd-code-body span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdd-join-button {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  color: var(--surface);
  background: var(--berry);
  font-size: 12px;
}

.pdd-join-button:disabled {
  color: var(--muted);
  background: #e8e0e2;
}

.pdd-list-loading {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.pdd-list-loading span {
  height: 54px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #ece4e6 0%, #f8f3f4 50%, #ece4e6 100%);
  background-size: 220% 100%;
  animation: pdd-loading 1.2s ease infinite;
}

.pdd-empty-state,
.pdd-list-error {
  padding: 34px 8px 24px;
  text-align: center;
}

.pdd-empty-state strong,
.pdd-list-error strong {
  display: block;
  font-size: 16px;
}

.pdd-empty-state p,
.pdd-list-error p {
  margin: 6px auto 0;
  color: var(--muted);
  font-size: 12px;
}

.pdd-list-error strong {
  color: var(--danger);
}

.takeout-section {
  background: var(--canvas);
}

.takeout-layout {
  display: grid;
  gap: 38px;
}

.takeout-heading {
  max-width: 500px;
}

.takeout-heading > p:last-child {
  max-width: 32ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.takeout-list {
  border-top: 1px solid var(--ink);
}

.takeout-row {
  display: grid;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.takeout-platform {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.platform-seal,
.editor-seal {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--platform-accent, var(--coral));
  font-size: 14px;
  font-weight: 900;
}

.takeout-copy h3 {
  margin-bottom: 6px;
  font-size: 23px;
  letter-spacing: -.02em;
}

.takeout-copy p {
  max-width: 42ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.promo-link {
  width: fit-content;
  min-height: 46px;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  font-size: 13px;
}

.promise-section {
  color: var(--text-on-dark);
  background: var(--berry);
}

.promise-layout {
  display: grid;
  gap: 34px;
}

.promise-layout dl {
  display: grid;
  gap: 0;
  margin-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, .25);
}

.promise-layout dl > div {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.promise-layout dt {
  font-size: 15px;
  font-weight: 800;
}

.promise-layout dd {
  margin: 5px 0 0;
  color: #edd7dc;
  font-size: 12px;
}

.pdd-claim-dialog {
  width: min(calc(100% - 28px), 430px);
  max-height: calc(100dvh - 32px);
  padding: 26px;
  border: 0;
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(24, 8, 14, .34);
}

.pdd-claim-dialog::backdrop {
  background: rgba(28, 8, 14, .58);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  background: #eee6e7;
  font-size: 24px;
}

.dialog-kicker {
  margin-bottom: 7px;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 800;
}

.pdd-claim-dialog h2 {
  max-width: 11ch;
  margin-bottom: 0;
  font-size: 28px;
  letter-spacing: -.02em;
  line-height: 1.18;
}

.pdd-claimed-code {
  margin-top: 24px;
  padding: 16px 10px;
  border-radius: var(--radius-md);
  color: var(--surface);
  background: var(--night);
  font-size: clamp(25px, 9vw, 34px);
  font-weight: 900;
  letter-spacing: .14em;
  text-align: center;
}

#pdd-copy-status {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.dialog-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.dialog-actions .primary-button,
.dialog-actions .secondary-button {
  width: 100%;
}

.site-footer {
  color: var(--text-on-dark);
  background: var(--night);
}

.footer-inner {
  display: grid;
  width: min(calc(100% - 28px), var(--max-width));
  gap: 22px;
  margin: 0 auto;
  padding: 42px 0 max(42px, env(safe-area-inset-bottom));
}

.footer-inner p {
  margin-bottom: 0;
  color: var(--text-on-dark-muted);
  font-size: 12px;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.icp-record {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text-on-dark);
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .42);
  text-underline-offset: 4px;
}

.icp-record:hover,
.icp-record:focus-visible {
  color: var(--surface);
  text-decoration-color: currentColor;
}

noscript {
  display: block;
  padding: 14px 16px;
  color: var(--surface);
  background: var(--danger);
  text-align: center;
}

/* 管理员登录 */
.admin-body {
  min-height: 100dvh;
  background: var(--canvas);
}

.login-layout {
  display: grid;
  min-height: 100dvh;
}

.login-scene {
  position: relative;
  isolation: isolate;
  display: none;
  overflow: hidden;
  color: var(--text-on-dark);
  background: var(--night);
}

.login-scene-image,
.login-scene-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.login-scene-image {
  background-image: url("/static/images/fairy-savings-village.webp?v=20260822-r5");
  background-position: 58% center;
  background-size: cover;
}

.login-scene-shade {
  z-index: -1;
  background: linear-gradient(180deg, rgba(30, 8, 15, .38), rgba(31, 9, 16, .82));
}

.login-scene > .brand {
  position: absolute;
  top: 30px;
  left: 34px;
}

.login-scene-copy {
  align-self: end;
  padding: 48px;
}

.login-scene-copy p {
  margin-bottom: 10px;
  color: var(--text-on-dark-muted);
  font-size: 13px;
  font-weight: 700;
}

.login-scene-copy h1 {
  max-width: none;
  margin-bottom: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(2.8rem, 5vw, 4.75rem);
  letter-spacing: -.02em;
  line-height: 1.04;
}

.login-scene-copy h1 span {
  display: block;
  white-space: nowrap;
}

.login-content {
  display: grid;
  min-height: 100dvh;
  align-items: center;
  padding: 28px 18px;
}

.login-form-wrap {
  width: min(100%, 430px);
  margin: 0 auto;
}

.mobile-login-brand {
  margin-bottom: 54px;
}

.login-kicker {
  margin-bottom: 8px;
  color: var(--coral-dark);
  font-size: 13px;
  font-weight: 800;
}

.login-form-wrap h2 {
  margin-bottom: 10px;
  font-size: 36px;
  letter-spacing: -.02em;
}

.login-intro {
  max-width: 34ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-form {
  display: grid;
  gap: 0;
  margin-top: 28px;
}

.admin-form label:not(:first-of-type) {
  margin-top: 16px;
}

.admin-form .primary-button {
  width: 100%;
  margin-top: 22px;
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 14px;
  color: var(--berry);
  font-size: 13px;
  font-weight: 750;
}

.admin-alert {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
}

.admin-alert.error {
  color: #7d2a35;
  background: #f6dfe2;
}

.admin-alert.success {
  color: #28563b;
  background: #e6f0e9;
}

/* 管理员工作台 */
.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.admin-header-actions form {
  margin: 0;
}

.admin-header-actions a,
.admin-header-actions button {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  color: var(--text-on-dark-muted);
  background: transparent;
  font-size: 12px;
}

.admin-header-actions a:hover,
.admin-header-actions button:hover {
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, .1);
}

.admin-main {
  width: min(calc(100% - 28px), 980px);
  margin: 0 auto;
  padding: 38px 0 80px;
}

.admin-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink);
}

.admin-page-heading > div > p {
  margin-bottom: 7px;
  color: var(--coral-dark);
  font-size: 13px;
  font-weight: 800;
}

.admin-page-heading h1 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  letter-spacing: -.02em;
  line-height: 1.05;
}

.admin-page-heading > p {
  display: none;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
}

.admin-section {
  margin-top: 52px;
}

.admin-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.admin-section-heading h2 {
  margin-bottom: 5px;
  font-size: 25px;
  letter-spacing: -.02em;
}

.admin-section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-section-heading > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.admin-create-panel,
.link-editor {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.admin-create-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.admin-create-panel summary,
.link-editor summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

.admin-create-panel summary::-webkit-details-marker,
.link-editor summary::-webkit-details-marker {
  display: none;
}

.admin-create-panel summary {
  justify-content: space-between;
  color: var(--berry);
  font-size: 14px;
  font-weight: 800;
}

.admin-create-panel[open] summary span:last-child {
  transform: rotate(45deg);
}

.link-form {
  padding: 8px 16px 20px;
}

.form-grid {
  display: grid;
  gap: 15px;
}

.link-form label {
  margin-bottom: 0;
}

.link-form label input,
.link-form label textarea {
  margin-top: 7px;
}

.checkbox-label {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
}

.checkbox-label input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--coral);
}

.color-input {
  width: 100%;
  min-height: 52px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.admin-save-button {
  width: 100%;
  margin-top: 20px;
}

.admin-link-list {
  margin-top: 18px;
  border-bottom: 1px solid var(--line);
}

.link-editor summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.editor-title {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.editor-title strong,
.editor-title small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-title strong {
  font-size: 14px;
}

.editor-title small {
  color: var(--muted);
  font-size: 11px;
}

.editor-state,
.editor-sort {
  display: none;
  font-size: 11px;
}

.editor-state {
  color: var(--muted);
}

.editor-state.is-active {
  color: var(--success);
  font-weight: 750;
}

.editor-toggle {
  grid-column: 3;
  grid-row: 1;
  color: var(--berry);
  font-size: 22px;
  transition: transform 160ms var(--ease-out);
}

.link-editor[open] .editor-toggle {
  transform: rotate(45deg);
}

.editor-body {
  border-top: 1px solid var(--line);
}

.delete-form {
  margin: 0;
  padding: 0 16px 20px;
}

.delete-form button,
.pdd-remove-form button {
  min-height: 42px;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: var(--danger);
  background: transparent;
  font-size: 12px;
  font-weight: 750;
}

.admin-pdd-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.pdd-settings-panel {
  margin-bottom: 18px;
}

.admin-pdd-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.admin-pdd-row:last-child {
  border-bottom: 0;
}

.admin-pdd-code {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-pdd-code strong {
  letter-spacing: .06em;
}

.admin-pdd-code span {
  color: var(--muted);
  font-size: 11px;
}

.admin-pdd-status {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: #eee7e8;
  font-size: 11px;
}

.admin-pdd-status.status-active {
  color: #28563b;
  background: #e6f0e9;
}

.pdd-remove-form {
  grid-column: 1 / -1;
  margin: 0;
}

.admin-pdd-empty {
  display: grid;
  gap: 4px;
  padding: 28px 18px;
  text-align: center;
}

.admin-pdd-empty span {
  color: var(--muted);
  font-size: 12px;
}

@keyframes scene-arrive {
  from { opacity: .72; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1.01); }
}

@keyframes copy-arrive {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes station-arrive {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  from { transform: translateX(-130%); }
  to { transform: translateX(240%); }
}

@keyframes pdd-loading {
  from { background-position: 100% 0; }
  to { background-position: -120% 0; }
}

@media (min-width: 390px) {
  .primary-nav a {
    padding-inline: 11px;
  }

  .rebate-station,
  .pdd-publish,
  .pdd-pool {
    padding: 22px;
  }
}

@media (max-width: 359px) {
  .brand {
    gap: 8px;
  }

  .brand-copy small {
    display: none;
  }

  .primary-nav a {
    padding-inline: 6px;
    font-size: 11px;
  }

  .hero-layout {
    padding-top: 28px;
  }

  textarea {
    min-height: 118px;
  }
}

@media (min-width: 640px) {
  .pdd-guide ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }

  .takeout-row {
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: center;
  }

  .takeout-platform {
    grid-column: 1;
  }

  .takeout-copy {
    grid-column: 2;
  }

  .promo-link {
    grid-column: 3;
  }

  .promise-layout dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid rgba(255, 255, 255, .2);
  }

  .promise-layout dl > div {
    padding: 20px 18px;
    border-bottom: 0;
  }

  .promise-layout dl > div + div {
    border-left: 1px solid rgba(255, 255, 255, .2);
  }

  .dialog-actions {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-legal {
    align-items: flex-end;
    text-align: right;
  }

  .admin-page-heading > p {
    display: block;
  }

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

  .full-width {
    grid-column: 1 / -1;
  }

  .admin-save-button {
    width: auto;
    min-width: 190px;
  }

  .link-editor summary {
    grid-template-columns: 38px minmax(0, 1fr) auto auto auto;
  }

  .editor-state,
  .editor-sort {
    display: inline;
  }

  .editor-sort {
    color: var(--muted);
  }

  .editor-toggle {
    grid-column: 5;
  }

  .admin-pdd-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .pdd-remove-form {
    grid-column: auto;
  }
}

@media (min-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .header-inner,
  .admin-header-inner {
    width: min(calc(100% - 48px), var(--max-width));
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .primary-nav {
    gap: 6px;
  }

  .primary-nav a {
    padding-inline: 16px;
    font-size: 13px;
  }

  .hero-layout {
    width: min(calc(100% - 64px), var(--max-width));
    padding-block: 64px;
  }

  .rebate-station {
    max-width: 520px;
    padding: 26px;
  }

  .pdd-shell,
  .takeout-layout,
  .promise-layout,
  .footer-inner {
    width: min(calc(100% - 64px), var(--max-width));
  }

  .pdd-intro {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    align-items: end;
  }

  .pdd-intro > p {
    justify-self: end;
  }

  .pdd-workbench {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  }

  .pdd-publish,
  .pdd-pool {
    padding: 28px;
  }

  .pdd-publish {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .takeout-layout {
    grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
    align-items: start;
  }

  .takeout-heading {
    position: sticky;
    top: calc(var(--header-height) + 36px);
  }

  .promise-layout {
    grid-template-columns: .72fr 1.28fr;
    align-items: start;
  }

  .login-layout {
    grid-template-columns: minmax(360px, 1.05fr) minmax(420px, .95fr);
  }

  .login-scene {
    display: grid;
  }

  .mobile-login-brand {
    display: none;
  }

  .login-content {
    padding: 48px;
  }

  .admin-main {
    width: min(calc(100% - 64px), 980px);
    padding-top: 56px;
  }

  .link-form {
    padding: 14px 24px 24px;
  }

  .admin-create-panel summary,
  .link-editor summary {
    padding-inline: 24px;
  }

  .delete-form {
    padding-inline: 24px;
  }

  .admin-pdd-row {
    padding-inline: 24px;
  }
}

@media (min-width: 1024px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(430px, 500px);
    align-items: center;
    gap: clamp(48px, 8vw, 110px);
  }

  .hero-image {
    background-position: center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(30, 9, 16, .2) 0%, rgba(31, 9, 16, .12) 62%, rgba(33, 10, 18, .54) 100%),
      linear-gradient(90deg, rgba(30, 8, 15, .78) 0%, rgba(30, 8, 15, .44) 42%, rgba(30, 8, 15, .16) 72%, rgba(30, 8, 15, .26) 100%);
  }

  .rebate-station {
    justify-self: end;
  }

  .pdd-workbench {
    margin-top: 36px;
  }

  .takeout-row {
    min-height: 140px;
    padding-block: 26px;
  }

  .takeout-copy h3 {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .pdd-claim-dialog::backdrop {
    background: rgba(28, 8, 14, .78);
  }
}
