:root {
  --bg: #f4f5f7;
  --ink: #17171a;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.1);
  --brand: #ffd100;
  --brand-deep: #ffbf00;
  --brand-soft: rgba(255, 209, 0, 0.18);
  --danger: #ff5a1f;
  --success: #0d7b55;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 28px 64px rgba(15, 23, 42, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #fff6cf 0, #f4f5f7 340px),
    var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "SF Pro Display", "Helvetica Neue", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

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

.ambient {
  position: fixed;
  inset: auto auto 0 0;
  pointer-events: none;
  z-index: 0;
  filter: blur(12px);
}

.ambient-a {
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 209, 0, 0.28);
}

.ambient-b {
  bottom: -160px;
  left: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.08);
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1260px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.site-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a5b00;
  font-weight: 700;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
}

.site-copy {
  max-width: 760px;
  margin: 14px 0 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.7;
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 700;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
}

.phone-shell {
  padding: 18px;
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 2px 6px 0;
}

.brand-pill,
.phone-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.brand-pill {
  background: linear-gradient(135deg, var(--brand), #ffe37d);
}

.phone-status {
  background: rgba(17, 24, 39, 0.08);
  color: #4b5563;
}

.phone-screen {
  min-height: 960px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 209, 0, 0.28), transparent 34%),
    linear-gradient(180deg, #fff8dd 0, #f5f6f8 400px);
}

.view {
  padding: 18px;
}

.card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 255, 255, 0.88), transparent 22%),
    linear-gradient(135deg, #111827 0, #263248 48%, #553b00 100%);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -86px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 209, 0, 0.18);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffe999;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h2,
.detail-hero h2,
.status-banner h2,
.pay-banner h2,
.empty-card h2 {
  margin: 16px 0 0;
  font-size: 34px;
  line-height: 1.15;
}

.hero p,
.detail-hero p,
.status-banner p,
.pay-banner p,
.empty-card p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.7;
}

.hero-panels {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.info-panel {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
}

.info-panel strong,
.section-title strong,
.merchant-head strong,
.price-stack strong,
.order-item-title,
.pay-row strong,
.success-card strong,
.rail-card h2 {
  display: block;
}

.info-panel.primary {
  background: linear-gradient(135deg, rgba(255, 209, 0, 0.92), rgba(255, 244, 182, 0.96));
  color: #111;
}

.info-panel strong {
  font-size: 13px;
  opacity: 0.76;
}

.info-panel span {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 18px 20px;
}

.search-label {
  color: #8a5b00;
  font-size: 14px;
  font-weight: 700;
}

.search-placeholder {
  color: #8b93a1;
  font-size: 15px;
}

.category-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 18px 0 6px;
  padding-bottom: 6px;
}

.category-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  color: #4b5563;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.category-chip.active {
  background: linear-gradient(135deg, var(--brand), #ffe48d);
  color: #111;
  box-shadow: 0 12px 22px rgba(255, 209, 0, 0.22);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 24px 2px 16px;
}

.section-title strong {
  font-size: 24px;
}

.section-title span {
  color: var(--muted);
  font-size: 13px;
}

.merchant-card {
  margin-bottom: 16px;
  padding: 22px;
}

.merchant-card.warm {
  background: linear-gradient(135deg, rgba(255, 246, 209, 0.9), rgba(255, 255, 255, 0.98));
}

.merchant-card.fresh {
  background: linear-gradient(135deg, rgba(226, 255, 248, 0.88), rgba(255, 255, 255, 0.98));
}

.merchant-card.night {
  background: linear-gradient(135deg, rgba(239, 241, 255, 0.94), rgba(255, 255, 255, 0.98));
}

.merchant-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.merchant-name-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.merchant-head strong {
  font-size: 26px;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #111827;
  color: #fff3bf;
  font-size: 13px;
  font-weight: 700;
}

.merchant-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.merchant-note {
  max-width: 176px;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  color: #5f4300;
  font-size: 12px;
  line-height: 1.5;
}

.product-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.product-row:first-of-type {
  border-top: 0;
  padding-top: 22px;
}

.cover {
  display: flex;
  align-items: end;
  padding: 12px;
  border-radius: 22px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.cover.warm {
  background: linear-gradient(135deg, #ffe08a, #ffb86b);
}

.cover.fresh {
  background: linear-gradient(135deg, #9ef7de, #dbfff6);
}

.cover.night {
  background: linear-gradient(135deg, #d7dbff, #f2f3ff);
}

.product-copy strong {
  font-size: 20px;
  line-height: 1.3;
}

.product-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #845500;
  font-size: 12px;
  font-weight: 700;
}

.product-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.product-price {
  color: var(--danger);
  font-size: 28px;
  font-weight: 800;
}

.product-sales {
  color: var(--muted);
  font-size: 12px;
}

.ghost-button,
.primary-button,
.dark-button,
.mini-button {
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.ghost-button:hover,
.primary-button:hover,
.dark-button:hover,
.mini-button:hover {
  transform: translateY(-1px);
}

.primary-button,
.dark-button,
.ghost-button {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
}

.primary-button {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #111;
  box-shadow: 0 12px 26px rgba(255, 209, 0, 0.22);
}

.ghost-button {
  background: #fff;
  color: #111;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.dark-button {
  background: #111827;
  color: #fff;
}

.mini-button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.detail-hero,
.status-banner,
.pay-banner,
.empty-card {
  padding: 24px;
  color: #fff;
}

.detail-hero {
  background:
    linear-gradient(145deg, rgba(17, 24, 39, 0.9), rgba(50, 59, 82, 0.84));
}

.status-banner {
  background: linear-gradient(135deg, #111827, #253047);
}

.status-banner.paid,
.pay-banner.paid {
  background: linear-gradient(135deg, #0d7b55, #26a17b);
}

.pay-banner {
  background: linear-gradient(135deg, #111827, #253047);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.light-pill,
.source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.light-pill {
  background: rgba(255, 209, 0, 0.16);
  color: #ffef9d;
}

.source-pill {
  background: rgba(17, 24, 39, 0.08);
  color: #475467;
}

.content-card,
.action-card,
.helper-card,
.success-card,
.share-card {
  margin-top: 16px;
  padding: 22px;
}

.price-stack {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-stack strong,
.total-amount {
  color: var(--danger);
  font-size: 38px;
  font-weight: 800;
}

.origin-price {
  color: var(--muted);
  font-size: 14px;
  text-decoration: line-through;
}

.content-card p,
.helper-note,
.share-help,
.empty-card p,
.success-card p {
  color: #4b5563;
  line-height: 1.7;
  font-size: 14px;
}

.highlight-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.highlight-item {
  display: flex;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.highlight-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.highlight-dot {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: #ffb300;
}

.label {
  display: block;
  margin: 22px 0 10px;
  font-size: 14px;
  font-weight: 800;
}

.text-input,
.textarea,
.share-input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: #f6f7f9;
  color: var(--ink);
}

.text-input,
.share-input {
  min-height: 54px;
  padding: 0 16px;
}

.textarea {
  min-height: 120px;
  padding: 16px;
  resize: vertical;
}

.buy-bar {
  display: grid;
  grid-template-columns: 1fr auto 220px;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
}

.qty-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff8dd;
  font-size: 18px;
  font-weight: 800;
}

.qty-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.order-row,
.pay-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.pay-row:last-child,
.order-row:last-child {
  border-bottom: 0;
}

.order-item-grid {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.order-cover {
  height: 92px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--brand), #ffe9a7);
}

.order-side {
  text-align: right;
}

.order-side strong {
  font-size: 28px;
  color: var(--danger);
}

.button-stack {
  display: grid;
  gap: 12px;
}

.share-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.share-input {
  font-size: 13px;
}

.helper-note {
  margin: 14px 0 18px;
}

.empty-card {
  background: linear-gradient(135deg, #111827, #253047);
}

.empty-card h2 {
  font-size: 30px;
}

.empty-card p {
  color: rgba(255, 255, 255, 0.8);
}

.success-card strong {
  font-size: 28px;
}

.success-card p {
  margin: 10px 0 18px;
}

.info-rail {
  display: grid;
  gap: 16px;
}

.rail-card {
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

.rail-label {
  margin: 0 0 10px;
  color: #8a5b00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rail-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.rail-copy,
.rail-list {
  margin: 12px 0 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.7;
}

.rail-list {
  padding-left: 18px;
}

.rail-card .share-box {
  margin-top: 14px;
}

.rail-card .ghost-button {
  margin-top: 12px;
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.06);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

@media (max-width: 1080px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .phone-screen {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .shell {
    padding: 24px 14px 48px;
  }

  .site-header {
    flex-direction: column;
  }

  .phone-shell {
    padding: 12px;
    border-radius: 24px;
  }

  .phone-screen {
    border-radius: 20px;
  }

  .view,
  .hero,
  .detail-hero,
  .status-banner,
  .pay-banner,
  .content-card,
  .action-card,
  .helper-card,
  .success-card,
  .share-card,
  .merchant-card,
  .empty-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h2,
  .detail-hero h2,
  .status-banner h2,
  .pay-banner h2,
  .empty-card h2 {
    font-size: 28px;
  }

  .hero-panels,
  .buy-bar,
  .share-box,
  .order-item-grid,
  .product-row {
    grid-template-columns: 1fr;
  }

  .product-side,
  .order-side {
    align-items: flex-start;
    text-align: left;
  }

  .merchant-head {
    flex-direction: column;
  }
}
