:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --ink: #18212f;
  --muted: #697386;
  --line: #dfe4ec;
  --accent: #c1332b;
  --accent-dark: #961f19;
  --teal: #13756f;
  --gold: #a56a16;
  --shadow: 0 18px 50px rgba(22, 31, 45, .10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 260px minmax(360px, 620px) 180px;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 44px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 800;
}

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

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

.search {
  justify-self: center;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 96px;
  height: 44px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.search input {
  min-width: 0;
  padding: 0 16px;
  border: 0;
  outline: 0;
}

.search button,
.hero-action,
.detail-actions button {
  border: 0;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
}

.search button:hover,
.hero-action:hover,
.detail-actions button:hover {
  background: var(--accent-dark);
}

.quick-links {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  align-items: center;
}

.quick-links a,
.link-button {
  color: var(--muted);
  text-decoration: none;
}

.link-button {
  padding: 0;
  background: transparent;
  border: 0;
}

.quick-links a:hover,
.link-button:hover {
  color: var(--accent);
}

.user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: -10px;
  width: 118px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(22, 31, 45, .14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease;
}

.user-menu-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 8px;
}

.user-menu-dropdown button {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
}

.user-menu-dropdown button:hover,
.user-menu-dropdown button:focus-visible {
  color: var(--teal);
  background: #edf7f6;
  outline: 0;
}

.user-menu:not(.is-logged-in) .user-menu-dropdown {
  display: none;
}

.user-menu.is-logged-in:hover .user-menu-dropdown,
.user-menu.is-logged-in:focus-within .user-menu-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

main {
  width: min(1440px, calc(100% - 80px));
  margin: 28px auto 56px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 320px;
  padding: 52px;
  overflow: hidden;
  color: #fff;
  background-color: #263142;
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  width: min(560px, 70%);
}

.hero h1 {
  margin: 8px 0 14px;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .88);
  font-size: 17px;
  line-height: 1.7;
}

.hero-action {
  position: absolute;
  right: 32px;
  bottom: 28px;
  z-index: 1;
  height: 44px;
  padding: 0 22px;
  border-radius: 6px;
}

.eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8ee1d8;
}

.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.category-panel,
.section-band {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.category-panel {
  position: sticky;
  top: 100px;
  padding: 18px;
}

.panel-title {
  margin-bottom: 14px;
  font-weight: 800;
}

.category-list {
  display: grid;
  gap: 8px;
}

.category-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 6px 8px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
}

.category-item img,
.category-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
}

.category-icon {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.category-item:hover,
.category-item.active {
  border-color: rgba(19, 117, 111, .35);
  background: rgba(19, 117, 111, .08);
}

.content-flow {
  display: grid;
  gap: 18px;
}

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

.coupon-strip:empty {
  display: none;
}

.coupon {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  min-height: 74px;
  padding: 14px 16px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}

.coupon strong {
  grid-row: span 2;
  color: var(--accent);
  font-size: 28px;
}

.coupon span {
  font-weight: 800;
}

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

.section-band {
  padding: 22px;
}

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

.section-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
  letter-spacing: 0;
}

.ghost-button {
  min-height: 38px;
  padding: 0 16px;
  color: var(--teal);
  background: #fff;
  border: 1px solid rgba(19, 117, 111, .35);
  border-radius: 6px;
  font-weight: 700;
}

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

.load-more-row {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 20px;
}

.load-more-row[hidden],
.load-more-row button[hidden] {
  display: none;
}

.load-more-row span {
  color: var(--muted);
  font-size: 13px;
}

.goods-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.goods-card:hover {
  transform: translateY(-3px);
  border-color: rgba(193, 51, 43, .36);
  box-shadow: 0 12px 32px rgba(22, 31, 45, .10);
}

.image-button {
  display: block;
  width: 100%;
  padding: 0;
  background: #eef2f6;
  border: 0;
  aspect-ratio: 1 / .78;
}

.image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.goods-card h3 {
  min-height: 44px;
  margin: 14px 14px 6px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.45;
}

.goods-card p {
  height: 20px;
  margin: 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.goods-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
}

.goods-tags span {
  padding: 3px 8px;
  color: #fff;
  background: var(--gold);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.goods-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 14px 16px;
}

.goods-meta strong,
.detail-price {
  color: var(--accent);
  font-size: 21px;
}

.goods-meta del {
  color: var(--muted);
  font-size: 13px;
}

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

.topic-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  min-height: 128px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.topic-card img {
  width: 160px;
  height: 128px;
  object-fit: cover;
}

.topic-card h3 {
  margin: 18px 18px 8px 0;
  font-size: 17px;
}

.topic-card p {
  margin: 0 18px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.state {
  display: grid;
  min-height: 120px;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}

.state.danger {
  color: var(--accent);
  border-color: rgba(193, 51, 43, .35);
}

.detail-drawer[aria-hidden="true"] {
  display: none;
}

.detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .54);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(920px, calc(100vw - 120px));
  height: 100%;
  overflow: auto;
  padding: 28px;
  background: #fff;
  box-shadow: -18px 0 48px rgba(15, 23, 42, .18);
}

.drawer-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.modal-exit-button {
  width: auto;
  min-width: 64px;
  height: 36px;
  padding: 0 16px;
  color: var(--teal);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 28px;
  clear: both;
}

.detail-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f6;
  aspect-ratio: 1 / 1;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info h2 {
  margin: 8px 0 12px;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: 0;
}

.detail-brief {
  color: var(--muted);
  line-height: 1.7;
}

.detail-price {
  margin: 20px 0;
  font-size: 30px;
  font-weight: 800;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.purchase-feedback {
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.5;
}

.purchase-feedback.muted {
  color: var(--ink);
  background: #fff8e6;
  border: 1px solid rgba(186, 129, 29, .25);
}

.purchase-feedback.success {
  color: var(--teal);
  background: rgba(19, 117, 111, .08);
  border: 1px solid rgba(19, 117, 111, .22);
}

.purchase-feedback.danger {
  color: var(--accent);
  background: rgba(193, 51, 43, .08);
  border: 1px solid rgba(193, 51, 43, .22);
}

.detail-actions button,
.detail-link {
  display: inline-grid;
  place-items: center;
  min-width: 132px;
  height: 42px;
  border-radius: 6px;
  text-decoration: none;
}

.detail-actions button:disabled,
.primary-wide:disabled {
  cursor: not-allowed;
  background: #b8bec8;
}

.purchase-box {
  display: grid;
  gap: 16px;
  margin: 22px 0;
  padding: 18px;
  background: var(--bg);
  border-radius: 8px;
}

.purchase-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
}

.purchase-row > span {
  color: var(--muted);
  font-weight: 700;
  line-height: 34px;
}

.spec-options {
  display: grid;
  gap: 10px;
}

.spec-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.spec-group strong {
  min-width: 54px;
}

.spec-group button {
  min-height: 34px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.spec-group button.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(193, 51, 43, .08);
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.quantity-control button {
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1px solid var(--line);
}

.quantity-control input {
  width: 52px;
  height: 32px;
  text-align: center;
  border: solid var(--line);
  border-width: 1px 0;
}

.quantity-control small {
  margin-left: 10px;
  color: var(--muted);
}

.modal-layer[aria-hidden="true"] {
  display: none;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
}

.modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(920px, calc(100vw - 80px));
  max-height: calc(100vh - 80px);
  overflow: auto;
  padding: 28px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-panel[data-modal-kind="login"] {
  width: min(560px, calc(100vw - 40px));
}

.modal-panel[data-modal-kind="login"] [data-close-modal-button] {
  display: none;
}

.modal-panel h2 {
  margin: 0 48px 20px 0;
  font-size: 24px;
}

.modal-panel[data-modal-kind="login"] h2 {
  margin: 0 0 20px 0;
}

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

.form-grid label,
.order-summary label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-grid input,
.address-form input,
.order-summary textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.order-summary textarea {
  min-height: 82px;
  padding-top: 10px;
  resize: vertical;
}

.primary-wide {
  width: 100%;
  min-height: 42px;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  font-weight: 800;
}

.primary-wide.inline {
  width: auto;
  padding: 0 18px;
}

.form-secondary-action {
  width: 100%;
  min-height: 40px;
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  align-items: center;
}

.captcha-row .ghost-button {
  height: 42px;
  white-space: nowrap;
}

.form-tip {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-feedback {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.form-feedback.muted {
  color: var(--muted);
}

.form-feedback.danger {
  color: var(--accent);
}

.form-feedback.success {
  color: var(--teal);
}

.login-message {
  margin: 0;
  padding: 12px;
  color: var(--teal);
  background: rgba(19, 117, 111, .08);
  border: 1px solid rgba(19, 117, 111, .2);
  border-radius: 6px;
  line-height: 1.6;
}

.cart-list {
  display: grid;
  gap: 12px;
}

.cart-row {
  display: grid;
  grid-template-columns: 24px 84px 1fr auto 54px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-row img {
  width: 84px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg);
}

.cart-row h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.cart-row p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.text-danger {
  color: var(--accent);
  background: transparent;
  border: 0;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.checkout-layout {
  display: grid;
  gap: 20px;
}

.checkout-layout h3 {
  margin: 0 0 12px;
}

.address-list {
  display: grid;
  gap: 10px;
}

.address-card {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.address-card.active {
  border-color: var(--teal);
  background: rgba(19, 117, 111, .08);
}

.address-card input {
  justify-self: start;
}

.address-card span {
  color: var(--muted);
}

.empty-address {
  padding: 16px;
  background: var(--bg);
  border-radius: 8px;
}

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

.address-form input[name="addressDetail"],
.address-form button {
  grid-column: 1 / -1;
}

.checkout-goods {
  display: grid;
  gap: 10px;
}

.checkout-goods article {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkout-goods img {
  width: 64px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
}

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

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

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

.payment-method {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.payment-method.active {
  border-color: var(--teal);
  background: rgba(19, 117, 111, .08);
}

.payment-method strong,
.payment-method small {
  display: block;
}

.payment-method small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.order-summary dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 0;
  padding: 16px;
  background: var(--bg);
  border-radius: 8px;
}

.order-summary dt {
  color: var(--muted);
}

.order-summary dd {
  margin: 0;
}

.order-result {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.order-result h3 {
  margin: 4px 0;
  font-size: 24px;
}

.order-result p {
  margin: 0;
  color: var(--muted);
}

.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 14px;
}

.paid-order-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.paid-order-card span {
  justify-self: start;
  padding: 4px 10px;
  color: var(--teal);
  background: rgba(19, 117, 111, .1);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.paid-order-card h3,
.paid-order-card p {
  margin: 0;
}

.user-center {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
}

.user-center-menu {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 8px;
  background: var(--bg);
  border-radius: 8px;
}

.user-center-menu-item {
  min-height: 42px;
  padding: 0 12px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
}

.user-center-menu-item.active,
.user-center-menu-item:hover {
  color: var(--teal);
  background: #fff;
  border-color: rgba(19, 117, 111, .28);
}

.user-center-panel {
  min-width: 0;
}

.user-center-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.user-center-head h3 {
  margin: 6px 0 0;
  font-size: 22px;
}

.profile-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.profile-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-list dt {
  color: var(--muted);
  font-weight: 800;
}

.profile-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

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

.order-tab {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.order-tab span {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  color: var(--muted);
  background: #fff;
  border-radius: 999px;
  font-size: 12px;
}

.order-tab.active {
  color: var(--teal);
  border-color: rgba(19, 117, 111, .35);
  background: rgba(19, 117, 111, .08);
}

.order-tab.active span {
  color: #fff;
  background: var(--teal);
}

.pc-order-list {
  display: grid;
  gap: 12px;
}

.pc-order-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pc-order-card-head,
.pc-order-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.pc-order-card-head strong,
.pc-order-card-head span,
.pc-order-card-foot span {
  display: block;
}

.pc-order-card-head span,
.pc-order-card-foot span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.order-status-pill {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.order-status-pill.paid {
  color: var(--teal);
  background: rgba(19, 117, 111, .1);
}

.order-status-pill.pending {
  color: var(--gold);
  background: rgba(165, 106, 22, .12);
}

.order-status-pill.closed {
  color: var(--muted);
  background: #eef1f5;
}

.pc-order-goods {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: var(--bg);
  border-radius: 8px;
}

.pc-order-goods-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
  align-items: center;
}

.pc-order-goods-item img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
}

.pc-order-goods-item strong,
.pc-order-goods-item span {
  display: block;
}

.pc-order-goods-item span,
.pc-order-goods-empty {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.pc-order-empty {
  display: grid;
  gap: 6px;
  min-height: 150px;
  place-items: center;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.pc-order-empty strong {
  color: var(--ink);
}

.pay-result {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 26px;
  align-items: center;
}

.pay-summary h3 {
  margin: 8px 0 12px;
  font-size: 28px;
}

.pay-summary p {
  color: var(--muted);
}

.pay-amount {
  margin: 24px 0;
  color: var(--accent);
  font-size: 42px;
  font-weight: 900;
}

.qr-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qr-panel img {
  width: 260px;
  height: 260px;
  background: #fff;
  border-radius: 6px;
}

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

.payment-status {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--bg);
}

.payment-status span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

.payment-status.paid {
  color: var(--teal);
  background: rgba(19, 117, 111, .08);
}

.payment-status.paid span {
  background: var(--teal);
}

.payment-status.failed {
  color: var(--accent);
  background: rgba(193, 51, 43, .08);
}

.payment-status.failed span {
  background: var(--accent);
}

.pay-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.success-mark {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  font-size: 36px;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 100;
  padding: 12px 16px;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.toast.danger {
  background: var(--accent);
}

.spec-list,
.attr-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.spec-list div,
.attr-list span {
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 6px;
}

.spec-list strong {
  display: inline-block;
  min-width: 72px;
  color: var(--ink);
}

.detail-rich {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.detail-rich img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  body {
    min-width: 0;
  }

  .topbar {
    position: static;
    grid-template-columns: 1fr;
    height: auto;
    padding: 16px;
  }

  main {
    width: calc(100% - 28px);
    margin-top: 16px;
  }

  .hero {
    min-height: 260px;
    padding: 28px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    font-size: 30px;
  }

  .layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .category-panel {
    position: static;
  }

  .coupon-strip,
  .goods-grid,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .drawer-panel {
    width: 100%;
  }

  .modal-panel {
    width: calc(100% - 28px);
  }

  .cart-row,
  .checkout-goods article,
  .pay-result,
  .address-form,
  .payment-methods,
  .user-center,
  .profile-list div {
    grid-template-columns: 1fr;
  }

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

  .user-center-menu-item {
    text-align: center;
  }

  .payment-status,
  .pay-actions {
    grid-column: auto;
  }
}
