:root {
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-soft: #eef5f1;
  --ink: #1f2933;
  --muted: #66737f;
  --line: #dce4dd;
  --green: #148b67;
  --green-dark: #0d5f49;
  --orange: #f08a24;
  --red: #d94b3d;
  --blue: #2276d2;
  --gold: #b9770e;
  --shadow: 0 18px 60px rgba(25, 43, 36, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
}

.customer-body {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  gap: 12px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(20, 139, 103, 0.13), transparent 34%),
    linear-gradient(315deg, rgba(240, 138, 36, 0.15), transparent 30%),
    var(--bg);
}

.phone-app {
  width: min(430px, 100%);
  height: min(900px, calc(100vh - 84px));
  min-height: 680px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fbfcfa;
  border: 1px solid rgba(31, 41, 51, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-header {
  height: 66px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.app-header strong,
.app-header small {
  display: block;
}

.app-header strong {
  font-size: 18px;
}

.app-header small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.brand-mark,
.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 24px;
  line-height: 1;
}

.app-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  scroll-behavior: smooth;
}

.bottom-tabs {
  flex: 0 0 62px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  gap: 2px;
  padding: 6px 8px 8px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.bottom-tabs button {
  min-width: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  white-space: normal;
}

.bottom-tabs button.active {
  color: var(--green-dark);
  background: var(--surface-soft);
}

.commerce-hero {
  position: relative;
  min-height: 235px;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe8dd;
}

.hero-photo,
.detail-photo {
  background-image: url("../assets/ysz-products.png");
  background-size: cover;
  background-position: center;
}

.hero-photo {
  position: absolute;
  inset: 0;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 32, 27, 0.76), rgba(15, 32, 27, 0.12) 68%, rgba(15, 32, 27, 0));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 62%;
  padding: 22px 18px;
  color: #fff;
}

.hero-copy span,
.mini-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #173327;
  background: #f6d28c;
  font-size: 12px;
  font-weight: 800;
}

.hero-copy h1,
.scan-panel h1,
.lead-panel h1,
.detail-main h1 {
  margin: 12px 0 8px;
  font-size: 28px;
  line-height: 1.08;
}

.hero-copy p,
.scan-panel p,
.lead-panel p,
.detail-main p {
  margin: 0;
  line-height: 1.55;
}

.hero-copy button,
.scan-actions button,
.coupon-strip button,
.price-row button,
.checkout-bar button,
.empty-state button,
.pay-panel button,
.member-card button,
.private-links button,
.lead-form button,
.address-form button,
.after-sale-form button,
.product-create-form button,
.coupon-create-form button,
.channel-create-form button,
.admin-filter button,
.product-row button:not(.row-image),
.sticky-buy button,
.message-bubble button,
.wide-action,
.draw-button,
.coupon-admin article button,
.admin-top button,
.panel-head button,
td button,
.open-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
}

.hero-copy button {
  margin-top: 16px;
  color: #173327;
  background: #fff;
}

.coupon-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.coupon-strip.is-claimed {
  color: var(--ink);
  background: #e7f2ed;
}

.coupon-strip strong {
  font-size: 18px;
}

.coupon-strip span {
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
}

.coupon-strip button {
  min-height: 34px;
  color: var(--ink);
  background: #fff;
  white-space: nowrap;
}

.quick-grid,
.member-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.quick-grid button,
.member-grid button {
  min-height: 76px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: center;
}

.quick-grid span,
.member-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.quick-grid strong,
.member-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.2;
}

.section-head,
.panel-head,
.order-head,
.order-foot,
.price-row,
.detail-price,
.checkout-bar,
.member-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head {
  margin: 18px 0 10px;
}

.section-head h2,
.coupon-list h2,
.panel-head h2 {
  margin: 0;
  font-size: 18px;
}

.section-head button {
  color: var(--green-dark);
  background: transparent;
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-card,
.product-row,
.cart-item,
.order-card,
.address-box,
.address-form,
.order-summary,
.pay-panel,
.member-card,
.coupon-list,
.lead-panel,
.lead-form,
.coupon-center-head,
.scan-panel,
.wecom-flow,
.auto-reply,
.lottery-panel,
.private-links {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-card {
  overflow: hidden;
}

.product-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.82;
  background-size: 255%;
  border-radius: 0;
}

.product-body {
  padding: 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag-row span,
.mini-tag,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 8px;
  color: var(--green-dark);
  background: #e3f2eb;
  font-size: 12px;
  font-weight: 800;
}

.product-card h3,
.product-row h3,
.cart-item h3,
.order-card h3 {
  margin: 8px 0 4px;
  font-size: 15px;
  line-height: 1.3;
}

.product-card p,
.product-row p,
.cart-item p,
.order-card p,
.coupon-list p,
.plain-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.price-row {
  margin-top: 10px;
}

.price-row strong,
.detail-price strong,
.checkout-bar strong,
.order-foot strong {
  color: var(--red);
  font-size: 18px;
}

.price-row del,
.detail-price del {
  color: var(--muted);
  font-size: 12px;
}

.price-row button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
}

.home-search {
  margin: 12px 0;
}

.search-row input,
.lead-form input,
.lead-form select,
.address-form input,
.after-sale-form input,
.product-create-form input,
.product-create-form select,
.coupon-create-form input,
.coupon-create-form select,
.channel-create-form input,
.channel-create-form select,
.admin-filter input,
.admin-filter select,
.admin-input,
.admin-select,
.ship-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

.search-row button {
  border-radius: 8px;
  padding: 0 12px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
}

.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
}

.category-chips button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-weight: 800;
}

.category-chips button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.product-list,
.cart-list,
.order-list {
  display: grid;
  gap: 10px;
}

.product-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 10px;
}

.row-image,
.cart-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background-size: 270%;
}

.detail-photo {
  min-height: 260px;
  border-radius: 8px;
  background-size: 180%;
}

.detail-main,
.sticky-buy,
.lead-form,
.address-form,
.after-sale-form {
  margin-top: 12px;
}

.detail-main {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail-price {
  margin-top: 12px;
}

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

.sku-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sku-row button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.sticky-buy {
  position: sticky;
  bottom: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.sticky-buy .ghost,
.scan-actions .ghost {
  color: var(--green-dark);
  background: #e3f2eb;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.cart-thumb {
  background-size: 260%;
}

.qty {
  display: grid;
  grid-template-columns: 30px 30px 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.qty button,
.qty span {
  display: grid;
  place-items: center;
  height: 32px;
  background: #fff;
}

.qty span {
  border-inline: 1px solid var(--line);
  font-weight: 800;
}

.checkout-bar {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkout-bar span,
.checkout-bar small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.checkout-bar button,
.pay-panel button {
  min-width: 112px;
  background: var(--red);
}

.empty-state,
.scan-panel,
.lead-panel {
  padding: 20px;
  text-align: left;
}

.empty-state h2 {
  margin: 0 0 8px;
}

.empty-state button {
  margin-top: 14px;
}

.address-box,
.address-form,
.order-summary,
.pay-panel {
  padding: 14px;
  margin-bottom: 10px;
}

.address-box p {
  margin: 6px 0 0;
  color: var(--muted);
}

.order-summary {
  display: grid;
  gap: 10px;
}

.order-summary div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.order-summary .total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.pay-panel {
  display: grid;
  gap: 10px;
}

.pay-panel small {
  color: var(--muted);
}

.coupon-center-head {
  padding: 16px;
  margin-bottom: 10px;
  background: #fff7ea;
}

.coupon-center-head h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.coupon-center-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.address-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.address-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.address-form button {
  grid-column: 1 / -1;
}

.order-card {
  padding: 12px;
}

.order-head {
  margin-bottom: 8px;
}

.order-head strong {
  font-size: 13px;
}

.order-foot {
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}

.order-card button {
  width: 100%;
  min-height: 36px;
  border-radius: 8px;
  color: var(--green-dark);
  background: #e3f2eb;
  font-weight: 800;
}

.after-sale-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.after-sale-line span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--gold);
  background: #fff4df;
  font-size: 12px;
  font-weight: 800;
}

.after-sale-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.after-sale-form button {
  min-height: 42px;
}

.member-card {
  padding: 14px;
}

.member-card .avatar {
  flex: 0 0 auto;
}

.member-card h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.member-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.coupon-list {
  margin-top: 10px;
  padding: 14px;
}

.coupon-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.coupon-list article:last-child {
  border-bottom: 0;
}

.coupon-list strong {
  color: var(--red);
  font-size: 20px;
}

.private-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
}

.private-links button {
  min-height: 42px;
  padding: 0 8px;
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 12px;
}

.scan-panel {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(20, 38, 32, 0.9), rgba(20, 38, 32, 0.38)),
    url("../assets/ysz-products.png") center / cover;
}

.scan-panel .mini-kicker {
  color: #173327;
}

.wecom-flow {
  padding: 18px;
  background: #eef8f2;
}

.wecom-flow h1 {
  margin: 12px 0 8px;
  font-size: 26px;
  line-height: 1.12;
}

.wecom-flow p,
.lottery-panel p,
.reply-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.wecom-qr {
  display: grid;
  place-items: center;
  gap: 6px;
  width: 150px;
  height: 150px;
  margin: 16px auto;
  border: 10px solid #1f2933;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 43%, #1f2933 43% 57%, transparent 57%),
    linear-gradient(0deg, transparent 43%, #1f2933 43% 57%, transparent 57%),
    #fff;
}

.wecom-qr span {
  display: grid;
  place-items: center;
  width: 70px;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.wecom-qr strong {
  color: var(--ink);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.flow-steps span {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 6px;
  border-radius: 8px;
  color: var(--green-dark);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.auto-reply {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  background: #f8faf9;
}

.message-bubble {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--green-dark);
}

.message-bubble span {
  font-size: 12px;
  opacity: 0.78;
}

.message-bubble button {
  justify-self: start;
  color: var(--ink);
  background: #fff;
}

.lottery-poster {
  min-height: 185px;
  padding: 16px;
  border-radius: 8px;
  color: #351a0b;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 236, 189, 0.74)),
    radial-gradient(circle at top right, rgba(240, 138, 36, 0.46), transparent 42%),
    #ffe2a3;
}

.lottery-poster span {
  font-weight: 900;
}

.lottery-poster h2 {
  margin: 12px 0 8px;
  font-size: 30px;
}

.lottery-poster p {
  margin: 0 0 14px;
  line-height: 1.55;
}

.lottery-poster strong {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--red);
}

.lottery-panel {
  margin: 12px 0;
  padding: 14px;
  background: #fffdf7;
}

.lottery-panel.is-paused {
  background: #f8faf9;
}

.lottery-panel.is-paused .lottery-head strong {
  background: var(--muted);
}

.lottery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.lottery-head span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.lottery-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.lottery-head strong {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--red);
}

.lottery-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.lottery-form input {
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lottery-form button,
.draw-button,
.wide-action {
  min-height: 42px;
}

.draw-button,
.wide-action {
  width: 100%;
  margin-top: 8px;
  background: var(--red);
}

.prize-row,
.order-used {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.prize-row span,
.order-used span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--green-dark);
  background: #e3f2eb;
  font-size: 12px;
  font-weight: 800;
}

.lottery-log {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff6e8;
}

.lottery-log p {
  font-size: 13px;
}

.scan-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.lead-panel {
  color: var(--ink);
  background: #fff7ea;
}

.lead-panel.group {
  background: #eaf2ff;
}

.lead-form {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.lead-form label,
.product-create-form label,
.coupon-create-form label,
.channel-create-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 20;
  transform: translateX(-50%) translateY(14px);
  max-width: min(360px, calc(100vw - 32px));
  padding: 11px 14px;
  border-radius: 8px;
  color: #fff;
  background: rgba(24, 34, 30, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.site-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.footer-separator {
  color: rgba(102, 115, 127, 0.65);
}

.icp-link {
  color: inherit;
  font-weight: 600;
}

.icp-link:hover,
.icp-link:focus-visible {
  color: var(--green-dark);
}

.official-body {
  min-height: 100vh;
  color: #17231e;
  background: #fbfcfa;
}

.official-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(20, 139, 103, 0.12);
  background: rgba(251, 252, 250, 0.94);
  backdrop-filter: blur(14px);
}

.official-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #173327;
  white-space: nowrap;
}

.official-brand span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.official-brand strong {
  font-size: 20px;
}

.official-nav nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.official-nav nav a {
  color: #43514b;
  font-size: 14px;
  font-weight: 800;
}

.official-nav nav a:hover,
.official-nav nav a:focus-visible {
  color: var(--green-dark);
}

.official-hero {
  position: relative;
  min-height: min(650px, calc(100vh - 72px));
  overflow: hidden;
  display: grid;
  align-items: end;
  background: #dfe8dd;
}

.official-hero-photo {
  position: absolute;
  inset: 0;
  background-image: url("../assets/ysz-products.png");
  background-size: cover;
  background-position: center;
}

.official-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 32, 26, 0.82), rgba(12, 32, 26, 0.46) 46%, rgba(12, 32, 26, 0.08)),
    linear-gradient(0deg, rgba(12, 32, 26, 0.62), transparent 44%);
}

.official-hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 36px));
  margin: 0 clamp(18px, 7vw, 96px) clamp(48px, 8vw, 88px);
  color: #fff;
}

.official-hero-copy span,
.official-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 8px;
  color: #173327;
  background: #f6d28c;
  font-size: 13px;
  font-weight: 900;
}

.official-hero-copy h1 {
  margin: 18px 0 12px;
  font-size: 60px;
  line-height: 1;
}

.official-hero-copy p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.7;
}

.official-hero-actions,
.official-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.official-hero-actions {
  margin-top: 26px;
}

.official-primary,
.official-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
}

.official-primary {
  color: #fff;
  background: var(--green);
}

.official-secondary {
  color: #173327;
  background: #fff;
}

.official-container {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.official-band {
  padding: 72px 0;
  background: #f2f7f4;
}

.official-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.official-section-head {
  max-width: 720px;
  margin-bottom: 26px;
}

.official-split h2,
.official-section-head h2,
.official-contact h2 {
  margin: 14px 0 0;
  color: #173327;
  font-size: 34px;
  line-height: 1.2;
}

.official-split p,
.official-contact p {
  margin: 0;
  color: #596861;
  font-size: 17px;
  line-height: 1.9;
}

.official-products {
  padding: 76px 0;
}

.official-product-grid,
.official-flow {
  display: grid;
  gap: 14px;
}

.official-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.official-product-grid article,
.official-flow article {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(20, 139, 103, 0.13);
  border-radius: 8px;
  background: #fff;
}

.official-product-grid article span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.official-product-grid h3,
.official-flow h3 {
  margin: 10px 0 8px;
  color: #173327;
  font-size: 20px;
  line-height: 1.35;
}

.official-product-grid p,
.official-flow p {
  margin: 0;
  color: #63736b;
  line-height: 1.7;
}

.official-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.official-flow strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
}

.official-contact {
  justify-content: space-between;
  gap: 22px;
  padding: 64px 0;
}

.official-contact div {
  max-width: 680px;
}

.official-contact .official-primary {
  flex: 0 0 auto;
}

.official-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 24px 18px 30px;
  border-top: 1px solid rgba(20, 139, 103, 0.13);
  color: #63736b;
  background: #fff;
  font-size: 13px;
  text-align: center;
}

.official-footer strong {
  color: #173327;
}

.official-footer a {
  color: #63736b;
  font-weight: 800;
}

.official-footer a:hover,
.official-footer a:focus-visible {
  color: var(--green-dark);
}

.admin-body {
  min-height: 100vh;
  --admin-bg: #f3f6f5;
  --admin-surface: #ffffff;
  --admin-surface-soft: #f7faf8;
  --admin-ink: #17231e;
  --admin-muted: #69766f;
  --admin-subtle: #8b9791;
  --admin-line: #dce5e0;
  --admin-line-strong: #c8d6cf;
  --admin-green: #12795d;
  --admin-green-dark: #0e5c49;
  --admin-green-soft: #e7f3ee;
  --admin-blue: #1d6fd8;
  --admin-blue-soft: #e9f2ff;
  --admin-orange: #b86b16;
  --admin-orange-soft: #fff4e4;
  --admin-red: #c94f35;
  --admin-red-soft: #fff0ec;
  color: var(--admin-ink);
  background:
    linear-gradient(180deg, rgba(18, 121, 93, 0.08), transparent 260px),
    var(--admin-bg);
}

.admin-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 16px;
  border-right: 1px solid var(--admin-line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 14px 0 32px rgba(24, 49, 40, 0.05);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 16px;
  border-bottom: 1px solid var(--admin-line);
}

.admin-brand span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--admin-green), #25a577);
  box-shadow: 0 10px 20px rgba(18, 121, 93, 0.18);
  font-weight: 900;
}

.admin-brand strong,
.admin-brand small {
  display: block;
}

.admin-brand strong {
  font-size: 16px;
  line-height: 1.25;
}

.admin-brand small {
  margin-top: 2px;
  color: var(--admin-muted);
  font-size: 12px;
}

.admin-nav {
  display: grid;
  gap: 6px;
}

.admin-sidebar button,
.open-shop,
.admin-top button,
.panel-head button,
td button {
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.admin-sidebar button,
.open-shop {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  min-height: 40px;
  padding: 0 11px;
  color: var(--admin-muted);
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 750;
}

.admin-sidebar button:hover,
.open-shop:hover {
  color: var(--admin-green-dark);
  background: var(--admin-green-soft);
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c6d3cd;
}

.admin-sidebar button.active {
  color: #fff;
  background: var(--admin-green);
  box-shadow: 0 8px 18px rgba(18, 121, 93, 0.18);
}

.admin-sidebar button.active .nav-dot {
  background: #fff;
}

.sidebar-note {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-surface-soft);
}

.sidebar-note span,
.sidebar-note small {
  color: var(--admin-muted);
  font-size: 12px;
}

.sidebar-note strong {
  color: var(--admin-green-dark);
  font-size: 15px;
}

.open-shop {
  margin-top: 0;
  color: var(--admin-green-dark);
  background: var(--admin-green-soft);
}

.admin-main {
  min-width: 0;
  max-width: 1580px;
  width: 100%;
  padding: 24px;
}

.admin-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(25, 43, 36, 0.06);
}

.admin-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 0 9px;
  border-radius: 8px;
  color: var(--admin-green-dark);
  background: var(--admin-green-soft);
  font-size: 12px;
  font-weight: 800;
}

.admin-top h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.16;
}

.admin-top p {
  max-width: 680px;
  margin: 7px 0 0;
  color: var(--admin-muted);
  line-height: 1.55;
}

.admin-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.env-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  color: var(--admin-blue);
  background: var(--admin-blue-soft);
  font-size: 12px;
  font-weight: 850;
}

.admin-top button {
  min-height: 34px;
  color: var(--admin-ink);
  background: #fff;
  border: 1px solid var(--admin-line-strong);
}

.admin-top button:hover,
.panel-head button:hover,
td button:hover {
  box-shadow: 0 8px 18px rgba(25, 43, 36, 0.09);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric-card,
.admin-panel,
.product-status-summary article,
.activity-grid article,
.coupon-admin article {
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-surface);
  box-shadow: 0 8px 22px rgba(25, 43, 36, 0.045);
}

.metric-card {
  min-height: 124px;
  padding: 15px;
  border-top: 3px solid var(--admin-green);
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--admin-muted);
}

.metric-card strong {
  display: block;
  margin: 8px 0 5px;
  color: var(--admin-ink);
  font-size: 28px;
  line-height: 1.1;
}

.admin-panel {
  margin-bottom: 16px;
  padding: 16px;
}

.product-status-summary,
.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

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

.product-status-summary article,
.activity-grid article {
  min-height: 96px;
  padding: 14px;
}

.product-status-summary span,
.product-status-summary small,
.activity-grid span {
  display: block;
  color: var(--admin-muted);
}

.product-status-summary strong,
.activity-grid strong {
  display: block;
  margin: 6px 0;
  color: var(--admin-ink);
  font-size: 26px;
  line-height: 1.1;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.panel-head h2 {
  margin: 0;
  color: var(--admin-ink);
  font-size: 18px;
  line-height: 1.25;
}

.panel-head span {
  display: block;
  margin-top: 4px;
  color: var(--admin-muted);
  font-size: 13px;
}

.panel-head button,
td button,
.inline-actions button {
  min-height: 34px;
  border: 1px solid transparent;
  color: #fff;
  background: var(--admin-green);
  font-size: 12px;
  font-weight: 800;
}

.inline-actions button {
  padding: 0 12px;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--admin-line);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 850;
  background: #f7faf8;
  box-shadow: inset 0 -1px var(--admin-line);
}

td {
  color: var(--admin-ink);
  font-size: 14px;
  line-height: 1.45;
}

tbody tr:hover {
  background: #fbfdfc;
}

td small {
  display: block;
  margin-top: 4px;
  color: var(--admin-muted);
}

td button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

td button.is-danger {
  background: var(--admin-red);
}

.admin-input,
.admin-select,
.ship-form input,
.after-sale-admin select,
.after-sale-admin input,
.product-create-form input,
.product-create-form select,
.coupon-create-form input,
.coupon-create-form select,
.channel-create-form input,
.channel-create-form select,
.admin-filter input,
.admin-filter select {
  border: 1px solid var(--admin-line-strong);
  border-radius: 8px;
  color: var(--admin-ink);
  background: #fff;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.admin-input:focus,
.admin-select:focus,
.ship-form input:focus,
.after-sale-admin select:focus,
.after-sale-admin input:focus,
.product-create-form input:focus,
.product-create-form select:focus,
.coupon-create-form input:focus,
.coupon-create-form select:focus,
.channel-create-form input:focus,
.channel-create-form select:focus,
.admin-filter input:focus,
.admin-filter select:focus {
  border-color: rgba(18, 121, 93, 0.72);
  box-shadow: 0 0 0 3px rgba(18, 121, 93, 0.1);
}

.admin-input {
  max-width: 96px;
  min-height: 34px;
  padding: 0 9px;
}

.admin-input.wide {
  max-width: 180px;
}

.admin-input.list-input {
  min-width: 170px;
  max-width: 230px;
}

.admin-input.desc-input {
  min-width: 240px;
  max-width: 320px;
}

.lead-note {
  min-width: 180px;
  max-width: 240px;
}

.user-tags,
.user-note {
  min-width: 190px;
  max-width: 260px;
}

.admin-select {
  min-width: 118px;
  min-height: 34px;
  padding: 0 10px;
}

.ship-form {
  display: grid;
  grid-template-columns: 104px 136px auto;
  gap: 8px;
  align-items: center;
  min-width: 360px;
}

.ship-form input {
  min-height: 34px;
  padding: 0 10px;
}

.product-create-form,
.coupon-create-form,
.channel-create-form,
.admin-filter {
  display: grid;
  gap: 10px;
  align-items: end;
}

.product-create-form,
.coupon-create-form,
.channel-create-form {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-surface-soft);
}

.product-create-form .span-2,
.coupon-create-form .span-2 {
  grid-column: span 2;
}

.product-create-form button,
.coupon-create-form button,
.channel-create-form button {
  min-height: 42px;
}

.after-sale-admin {
  display: grid;
  grid-template-columns: 112px 112px 94px 150px auto;
  gap: 8px;
  min-width: 620px;
}

.after-sale-admin select,
.after-sale-admin input {
  min-height: 34px;
  padding: 0 10px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-filter {
  grid-template-columns: minmax(220px, 1fr) 150px 150px auto auto;
  padding: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-surface-soft);
}

.admin-filter input,
.admin-filter select,
.product-create-form input,
.product-create-form select,
.coupon-create-form input,
.coupon-create-form select,
.channel-create-form input,
.channel-create-form select {
  min-height: 38px;
  padding: 0 10px;
}

.admin-filter button:last-child {
  color: var(--admin-green-dark);
  background: var(--admin-green-soft);
}

.admin-main .status {
  min-height: 24px;
  color: var(--admin-green-dark);
  background: var(--admin-green-soft);
}

.status.is-off {
  color: var(--admin-orange);
  background: var(--admin-orange-soft);
}

.channel-bars {
  display: grid;
  gap: 12px;
}

.channel-bars div {
  display: grid;
  grid-template-columns: 76px 1fr 52px;
  align-items: center;
  gap: 10px;
}

.channel-bars label {
  color: var(--admin-muted);
  font-weight: 800;
}

.channel-bars span {
  height: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: #e7eeea;
}

.channel-bars i {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--admin-green), var(--admin-orange));
}

.coupon-admin {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.coupon-admin article {
  padding: 16px;
}

.coupon-admin strong {
  color: var(--admin-red);
  font-size: 26px;
}

.coupon-admin h3 {
  margin: 8px 0 6px;
}

.coupon-admin p,
.coupon-admin span {
  color: var(--admin-muted);
  line-height: 1.5;
}

.coupon-admin article {
  display: grid;
  gap: 8px;
}

.coupon-admin article button {
  justify-self: start;
  min-height: 34px;
  font-size: 12px;
}

.admin-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-field-grid label,
.prize-admin label {
  display: grid;
  gap: 4px;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 800;
}

.prize-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.prize-admin span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--admin-green-dark);
  background: var(--admin-green-soft);
  font-size: 13px;
  font-weight: 800;
}

.prize-admin.editable {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.prize-admin.editable article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #fff;
}

.prize-admin.editable article strong {
  color: var(--admin-ink);
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.record-grid h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.table-wrap.compact table {
  min-width: 520px;
}

.wecom-admin-flow {
  display: grid;
  grid-template-columns: auto 20px auto 20px auto 20px auto;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.wecom-admin-flow span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--admin-ink);
  background: var(--admin-surface-soft);
  white-space: nowrap;
  font-weight: 900;
}

.wecom-admin-flow i {
  height: 2px;
  background: var(--admin-green);
}

.reply-preview {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f8faf9;
}

.reply-preview strong {
  display: block;
  margin-bottom: 6px;
}

.qr-mock {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 6px solid #1f2933;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 44%, #1f2933 44% 56%, transparent 56%),
    linear-gradient(0deg, transparent 44%, #1f2933 44% 56%, transparent 56%),
    #fff;
}

.qr-mock span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  color: #fff;
  background: var(--admin-green);
  font-size: 11px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .customer-body {
    display: block;
    padding: 0;
  }

  .phone-app {
    width: 100%;
    height: calc(100vh - 42px);
    min-height: calc(100vh - 42px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-footer {
    padding: 10px 12px 12px;
  }

  .official-nav {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px;
  }

  .official-nav nav {
    width: 100%;
    justify-content: flex-start;
    gap: 8px 16px;
  }

  .official-hero {
    min-height: 560px;
  }

  .official-hero-copy {
    width: calc(100% - 36px);
    margin: 0 18px 34px;
  }

  .official-hero-copy h1 {
    font-size: 42px;
  }

  .official-hero-copy p {
    font-size: 16px;
  }

  .official-primary,
  .official-secondary {
    width: 100%;
  }

  .official-band,
  .official-products,
  .official-contact {
    padding: 46px 0;
  }

  .official-split,
  .official-product-grid,
  .official-flow {
    grid-template-columns: 1fr;
  }

  .official-split h2,
  .official-section-head h2,
  .official-contact h2 {
    font-size: 27px;
  }

  .official-product-grid article,
  .official-flow article {
    padding: 18px;
  }

  .official-contact {
    align-items: stretch;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .admin-brand,
  .admin-nav,
  .open-shop {
    grid-column: 1 / -1;
  }

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

  .sidebar-note {
    margin-top: 0;
  }

  .admin-main {
    padding: 14px;
  }

  .admin-actions {
    flex-wrap: wrap;
  }

  .admin-top,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid,
  .coupon-admin,
  .product-status-summary,
  .activity-grid,
  .admin-field-grid,
  .prize-admin.editable,
  .record-grid,
  .product-create-form,
  .coupon-create-form,
  .channel-create-form,
  .admin-filter {
    grid-template-columns: 1fr;
  }

  .address-form {
    grid-template-columns: 1fr;
  }

  .product-create-form .span-2,
  .coupon-create-form .span-2 {
    grid-column: auto;
  }

  .ship-form,
  .after-sale-admin {
    grid-template-columns: 1fr;
    min-width: 220px;
  }
}

@media (max-width: 390px) {
  .hero-copy {
    width: 72%;
  }

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

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-row {
    grid-template-columns: 96px 1fr;
  }

  .private-links {
    grid-template-columns: 1fr;
  }

  .flow-steps,
  .lottery-form {
    grid-template-columns: 1fr;
  }
}
