:root {
  --bg: #f6f4ef;
  --panel: #ffffff;
  --ink: #1f2933;
  --muted: #667085;
  --line: #e8e2d8;
  --accent: #d94635;
  --accent-dark: #a72f23;
  --green: #517b65;
  --yellow: #f5c84b;
  --shadow: 0 20px 50px rgba(38, 36, 30, 0.12);
  --footer-height: 112px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding-bottom: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 244, 239, 0.96) 360px),
    var(--bg);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(232, 226, 216, 0.8);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.nav-links,
.cart-button,
.hero-actions,
.section-heading,
.cart-header,
.cart-total {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  letter-spacing: 0;
}

.nav-links {
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.cart-button,
.primary-button {
  border: 0;
  cursor: pointer;
}

.cart-button {
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
}

.cart-button strong {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 8px;
  font-size: 13px;
}

main {
  width: min(1180px, calc(100% - 40px));
  flex: 1;
  margin: 0 auto;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0 18px;
  border-top: 1px solid rgba(232, 226, 216, 0.9);
  color: var(--muted);
  background: rgba(246, 244, 239, 0.95);
  backdrop-filter: blur(16px);
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 4px;
}

.audit-info-card {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid rgba(232, 226, 216, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(77, 61, 43, 0.08);
}

.audit-info-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 18px;
}

.audit-info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.audit-info-card p + p {
  margin-top: 8px;
}

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

.audit-info-grid p {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(246, 244, 239, 0.78);
}

.audit-info-grid strong {
  color: var(--ink);
}

.empty-order-state span {
  display: block;
  max-width: 520px;
  margin: 8px auto 0;
  color: var(--muted);
  line-height: 1.7;
}

.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.profile-audit-card {
  margin-top: 18px;
}

.service-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  font-weight: 800;
}

.shop-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 18px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 36px rgba(77, 61, 43, 0.08);
}

.shop-search input {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(246, 244, 239, 0.8);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.shop-search button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--accent-dark);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.shop-categories,
.service-commitments,
.purchase-note,
.detail-service-panel,
.detail-recommendations {
  margin: 18px 0;
}

.category-shortcuts,
.commitment-grid,
.detail-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.category-shortcuts a,
.commitment-grid article,
.purchase-note,
.detail-service-grid p {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(232, 226, 216, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 30px rgba(77, 61, 43, 0.07);
}

.category-shortcuts a {
  color: inherit;
  text-decoration: none;
}

.category-shortcuts strong,
.commitment-grid strong,
.purchase-note strong,
.detail-service-grid strong {
  color: var(--ink);
}

.category-shortcuts span,
.commitment-grid span,
.purchase-note span,
.detail-service-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.purchase-note {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

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

.category-filter a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.category-filter a.active {
  border-color: rgba(217, 70, 53, 0.3);
  background: rgba(217, 70, 53, 0.1);
  color: var(--accent-dark);
}

.sort-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sort-tabs a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.sort-tabs a.active {
  border-color: rgba(217, 70, 53, 0.32);
  background: rgba(217, 70, 53, 0.1);
  color: var(--accent-dark);
}

.product-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.product-facts span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(246, 244, 239, 0.9);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-service-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(31, 41, 51, 0.06);
}

.detail-service-panel h3 {
  margin: 0 0 14px;
}

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

.service-quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.category-page,
.orders-page,
.service-page,
.profile-page {
  padding: 42px 0 92px;
}

.hero {
  min-height: calc(100vh - 72px);
  max-height: 760px;
  padding: 56px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  align-items: center;
  gap: 54px;
}

.hero-copy h1 {
  margin: 12px 0 18px;
  max-width: 640px;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0;
}

.hero-actions {
  gap: 14px;
  margin-top: 28px;
}

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

.primary-button.compact {
  min-height: 40px;
  box-shadow: none;
  font-size: 14px;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.primary-link,
.primary-button {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(217, 70, 53, 0.24);
}

.secondary-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.secondary-link.compact {
  min-height: 40px;
  font-size: 14px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1 / 0.86;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metrics {
  margin: -10px 0 62px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.metrics div {
  padding: 24px 28px;
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  font-size: 28px;
}

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

.home-products {
  padding-bottom: 92px;
}

.shop-layout {
  display: block;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: 30px;
  letter-spacing: 0;
}

.page-heading {
  margin-bottom: 24px;
}

.page-heading h2 {
  margin: 8px 0 0;
  font-size: 34px;
}

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

.service-notice {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 18px;
  padding: 26px;
  border: 1px solid rgba(217, 70, 53, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(217, 70, 53, 0.08), rgba(245, 200, 75, 0.12)),
    var(--panel);
  box-shadow: 0 12px 32px rgba(31, 41, 51, 0.06);
}

.contact-panel,
.policy-card {
  border: 1px solid rgba(217, 70, 53, 0.18);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(31, 41, 51, 0.06);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  margin-top: 18px;
  padding: 26px;
}

.contact-panel h3,
.policy-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.35;
}

.contact-panel p,
.policy-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.contact-list p {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(246, 244, 239, 0.56);
}

.contact-list strong {
  color: var(--ink);
}

.contact-list span {
  overflow-wrap: anywhere;
}

.wechat-material {
  grid-column: 1 / -1;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
}

.service-page [id] {
  scroll-margin-top: 96px;
}

.policy-card {
  padding: 24px;
}

.policy-card p + p {
  margin-top: 10px;
}

.notice-label {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.service-notice h3 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.35;
}

.service-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.notice-content {
  display: grid;
  gap: 14px;
  max-width: 100%;
}

.notice-content summary {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(217, 70, 53, 0.24);
  border-radius: 8px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-weight: 900;
}

.notice-content[open] summary {
  margin-bottom: 14px;
}

.notice-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice-list li {
  position: relative;
  padding: 12px 14px 12px 28px;
  border: 1px solid rgba(217, 70, 53, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  line-height: 1.75;
}

.notice-list li + li {
  margin-top: 0;
}

.notice-list li::before {
  position: absolute;
  top: 1.18em;
  left: 14px;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--accent);
}

.service-panel,
.profile-card,
.profile-action,
.login-panel,
.address-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(31, 41, 51, 0.06);
}

.service-panel {
  padding: 24px;
}

.service-panel span {
  color: var(--accent);
  font-weight: 900;
}

.service-panel h3 {
  margin: 12px 0 10px;
  font-size: 22px;
}

.service-panel p,
.profile-card p,
.profile-action span {
  color: var(--muted);
  line-height: 1.7;
}

.profile-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 26px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.profile-card h2 {
  max-width: 420px;
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.35;
}

.profile-card p {
  margin: 0;
  font-size: 15px;
}

.logout-button {
  min-height: 38px;
  margin-top: 20px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.logout-button[hidden] {
  display: none;
}

.profile-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.login-panel,
.address-panel {
  margin-top: 18px;
  padding: 22px;
}

.login-panel[hidden],
.address-panel[hidden] {
  display: none;
}

.login-panel h3,
.address-panel h3 {
  margin: 0 0 18px;
  font-size: 22px;
}

.login-panel label,
.address-panel label {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.login-panel label:last-of-type,
.address-panel label:last-of-type {
  margin-bottom: 18px;
}

.address-panel label:last-of-type,
.login-panel label:last-of-type {
  border-bottom: 0;
}

.login-panel label span,
.address-panel label span {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.login-panel input,
.address-panel input {
  width: 100%;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 20px;
  font-weight: 700;
}

.address-panel input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  justify-self: start;
  accent-color: var(--accent);
}

.login-panel input::placeholder,
.address-panel input::placeholder {
  color: #c9c9c9;
}

.login-panel input:focus,
.address-panel input:focus {
  outline: 3px solid rgba(217, 70, 53, 0.14);
}

.login-panel .primary-button,
.address-panel .primary-button {
  width: 100%;
  margin-top: 4px;
  border: 0;
  cursor: pointer;
}

.wechat-login-button {
  display: none;
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #07c160;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.wechat-browser .wechat-login-button:not([hidden]) {
  display: block;
}

.wechat-browser .login-panel label,
.wechat-browser .login-panel [data-login-submit] {
  display: none;
}

.wechat-login-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.login-panel .primary-button:disabled,
.address-panel .primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.login-message {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--accent-dark);
}

.address-list-panel {
  display: block;
}

.address-list-panel[hidden] {
  display: none;
}

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

.address-list-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.address-list-head h3 {
  margin: 0;
}

.address-list-head .secondary-link {
  border: 1px solid var(--line);
  cursor: pointer;
}

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

.address-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f5ee;
}

.address-item.active {
  border-color: rgba(217, 70, 53, 0.46);
  background: rgba(217, 70, 53, 0.06);
}

.address-select {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.address-select strong,
.address-select span {
  overflow-wrap: anywhere;
}

.address-select span {
  color: var(--muted);
  line-height: 1.6;
}

.address-select em {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 8px;
  color: var(--accent-dark);
  background: rgba(217, 70, 53, 0.12);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.address-delete {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(217, 70, 53, 0.3);
  border-radius: 8px;
  color: var(--accent-dark);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.address-delete:disabled {
  cursor: wait;
  opacity: 0.7;
}

.address-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  padding: 28px;
  overflow: auto;
  background: rgba(31, 41, 51, 0.42);
}

.address-modal.open {
  display: grid;
  place-items: start center;
}

.address-dialog {
  width: min(760px, 100%);
  margin: 32px auto 96px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

.address-dialog-head h3 {
  margin: 0;
  font-size: 28px;
}

.address-dialog-head button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: #f2eee7;
  cursor: pointer;
  font-size: 28px;
}

.address-dialog label {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.address-dialog label:last-of-type {
  margin-bottom: 18px;
  border-bottom: 0;
}

.address-dialog label span {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.address-dialog input,
.address-dialog select {
  width: 100%;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 20px;
  font-weight: 700;
}

.address-dialog select {
  padding-right: 28px;
  cursor: pointer;
}

.address-dialog input::placeholder {
  color: #c9c9c9;
}

.address-dialog input:focus,
.address-dialog select:focus {
  outline: 3px solid rgba(217, 70, 53, 0.14);
}

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

.address-dialog input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  justify-self: start;
  accent-color: var(--accent);
}

.address-dialog .primary-button {
  width: 100%;
  margin-top: 4px;
  border: 0;
  cursor: pointer;
}

.address-dialog .primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.profile-action {
  min-height: 118px;
  padding: 22px;
  cursor: pointer;
  text-align: left;
}

.profile-action strong,
.profile-action span {
  display: block;
}

.profile-action strong {
  color: var(--accent);
  font-size: 28px;
}

.section-heading {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.sort-label {
  color: var(--muted);
  font-size: 14px;
}

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

.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(31, 41, 51, 0.06);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-content {
  padding: 16px;
}

.product-tag {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.product-content h3 {
  margin: 0 0 8px;
  min-height: 48px;
  font-size: 18px;
  line-height: 1.35;
}

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

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  color: var(--accent);
  font-size: 22px;
  font-weight: 900;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 16px;
}

.card-actions button,
.card-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.card-actions button {
  color: #fff;
  border: 0;
  background: var(--ink);
  cursor: pointer;
}

.card-actions a {
  border: 1px solid var(--line);
  background: #fff;
}

.news-page,
.news-detail-page {
  padding: 34px 0 64px;
}

.news-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 260px);
}

.news-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(31, 41, 51, 0.06);
}

.news-hero h1 {
  margin: 8px 0 10px;
  font-size: 42px;
  line-height: 1.15;
}

.news-hero p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.news-source {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(246, 244, 239, 0.72);
}

.news-source strong {
  font-size: 14px;
}

.news-source span,
.news-status {
  color: var(--muted);
  font-size: 13px;
}

.news-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.news-tabs a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.news-tabs a.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.news-status {
  min-height: 20px;
  margin: 0 0 14px;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.news-card-thumb {
  display: block;
  width: 86px;
  height: 86px;
  overflow: hidden;
  border-radius: 8px;
  background: #f3efe8;
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-date {
  height: 86px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.news-card-date strong {
  font-size: 28px;
  line-height: 1;
}

.news-card-date span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.news-card-body {
  min-width: 0;
}

.news-title {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

.news-card-body p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.news-meta,
.news-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 13px;
}

.news-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--green);
  font-weight: 900;
}

.news-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(31, 41, 51, 0.06);
}

.news-article h1 {
  margin: 10px 0 12px;
  font-size: 34px;
  line-height: 1.28;
}

.news-article-summary {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--green);
  background: rgba(246, 244, 239, 0.78);
  color: var(--muted);
  line-height: 1.75;
}

.news-article-content {
  color: #344054;
  font-size: 16px;
  line-height: 1.9;
}

.news-article-content p {
  margin: 0 0 16px;
}

.news-article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px auto;
  border-radius: 8px;
}

.news-article-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── News Pagination ── */
.news-pagination {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: 100%;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 20px 0 8px;
}

.news-pagination .page-number-track {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.news-pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.news-pagination .page-btn-nav {
  min-width: 84px;
  padding: 0 16px;
  white-space: nowrap;
}

.news-pagination .page-btn:hover:not(.active):not(.disabled) {
  border-color: var(--green);
  color: var(--green);
}

.news-pagination .page-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  cursor: default;
}

.news-pagination .page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.news-pagination .page-ellipsis {
  flex: 0 0 auto;
  padding: 0 4px;
  color: var(--muted);
  font-size: 14px;
  user-select: none;
}

.detail-page {
  padding-bottom: 92px;
}

.detail-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 760px);
  justify-content: center;
  gap: 24px;
  align-items: start;
}

.detail-summary,
.detail-image-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.detail-summary {
  position: sticky;
  top: 96px;
}

.detail-summary > div {
  padding: 20px;
}

.detail-summary span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.detail-summary h3 {
  margin: 8px 0;
  font-size: 24px;
}

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

.detail-facts {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
}

.detail-facts div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(246, 244, 239, 0.56);
}

.detail-facts dt,
.detail-facts dd {
  margin: 0;
  line-height: 1.55;
}

.detail-facts dt {
  color: var(--ink);
  font-weight: 900;
}

.detail-facts dd {
  color: var(--muted);
}

.detail-summary strong {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 30px;
}

.detail-summary .primary-button {
  width: 100%;
}

.detail-image-wrap img {
  display: block;
  width: 100%;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: rgba(31, 41, 51, 0);
  transition: background 0.24s ease;
}

.cart-drawer.open {
  pointer-events: auto;
  background: rgba(31, 41, 51, 0.38);
}

.cart-panel {
  width: min(420px, calc(100% - 28px));
  height: calc(100% - 28px);
  margin: 14px 14px 14px auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background: #fff;
  transform: translateX(calc(100% + 24px));
  transition: transform 0.24s ease;
}

.cart-drawer.open .cart-panel {
  transform: translateX(0);
}

.cart-header {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.cart-header button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: #f2eee7;
  cursor: pointer;
  font-size: 26px;
}

.cart-items {
  flex: 1;
  padding: 18px 0;
  overflow: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.cart-qty span,
.empty-cart {
  color: var(--muted);
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--muted);
}

.cart-qty button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.cart-qty strong {
  min-width: 18px;
  color: var(--ink);
  text-align: center;
  font-size: 14px;
}

.cart-qty button:hover {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.cart-item-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.cart-item-side button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.cart-item-side button:hover {
  color: var(--accent);
  border-color: rgba(217, 70, 53, 0.35);
}

.cart-total {
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.checkout {
  width: 100%;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 70;
  padding: 12px 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transform: translate(-50%, 90px);
  transition: transform 0.24s ease;
}

.toast.show {
  transform: translate(-50%, 0);
}

.checkout-page {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  padding: 28px;
  overflow: auto;
  background: rgba(31, 41, 51, 0.42);
}

.order-address-popup {
  position: fixed;
  inset: 0;
  z-index: 62;
  display: none;
  padding: 28px;
  overflow: auto;
  background: rgba(31, 41, 51, 0.42);
}

.order-address-popup.open {
  display: block;
}

.order-address-card {
  width: min(680px, 100%);
  margin: 0 auto 88px;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

.order-address-head h2 {
  margin: 0;
  font-size: 28px;
}

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

.order-address-head button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: #f2eee7;
  cursor: pointer;
  font-size: 28px;
}

.order-address-body {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.order-address-choices {
  display: grid;
  gap: 12px;
}

.order-address-choice {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.order-address-choice.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 70, 53, 0.12);
}

.address-radio {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid #c4beb4;
  border-radius: 50%;
}

.order-address-choice.active .address-radio {
  border: 6px solid var(--accent);
}

.order-address-choice strong,
.order-address-choice small {
  display: block;
}

.order-address-choice small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.5;
}

.order-address-actions {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
}

.order-address-actions .primary-button {
  width: 100%;
}

.checkout-page.open {
  display: block;
}

.checkout-card {
  width: min(980px, 100%);
  margin: 0 auto 88px;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

.checkout-head h2 {
  margin: 6px 0 0;
  font-size: 30px;
}

.checkout-head button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: #f2eee7;
  cursor: pointer;
  font-size: 28px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  padding: 24px;
}

.wechat-browser .checkout-layout {
  grid-template-columns: minmax(0, 1fr);
}

.order-panel,
.pay-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.wechat-browser .pay-panel {
  display: none;
}

.order-panel h3,
.pay-panel h3 {
  margin: 0 0 16px;
  font-size: 20px;
}

.order-address {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f5ee;
}

.order-address strong,
.order-address span {
  display: block;
}

.order-address span {
  color: var(--muted);
  line-height: 1.6;
}

.order-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.order-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.order-item h4 {
  margin: 0 0 5px;
  font-size: 16px;
}

.order-item span {
  color: var(--muted);
}

.order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  font-size: 18px;
}

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

.pay-methods {
  display: grid;
  gap: 12px;
}

.pay-method {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.pay-method.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 70, 53, 0.12);
}

.pay-logo {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}

.wechat {
  background: #19b75b;
}

.alipay {
  background: #1677ff;
}

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

.pay-method small {
  margin-top: 4px;
  color: var(--muted);
}

.pay-code {
  display: grid;
  place-items: center;
  margin: 18px 0;
  padding: 18px;
  border-radius: 8px;
  background: #f8f5ee;
  text-align: center;
}

.qr-code {
  width: 136px;
  height: 136px;
  padding: 8px;
  border: 8px solid #fff;
  background: #fff;
}

.qr-code[hidden] {
  display: none;
}

.qr-code img,
.qr-code canvas {
  width: 100%;
  height: 100%;
}

.qr-code[data-ready="true"] {
  display: block;
}

.pay-code p {
  margin: 12px 0 0;
  color: var(--muted);
}

.checkout-submit {
  width: 100%;
}

.pay-popup {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(31, 41, 51, 0.42);
}

.pay-popup.open {
  display: flex;
}

.pay-popup-card {
  width: min(420px, 100%);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.pay-popup-head h3 {
  margin: 0;
  font-size: 20px;
}

.pay-popup-head button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #f2eee7;
  cursor: pointer;
  font-size: 24px;
}

.pay-popup-body {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.pay-popup-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.pay-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.bottom-tabbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 45;
  display: none;
  border-top: 1px solid #e7e7e7;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.bottom-tabbar {
  grid-template-columns: repeat(5, 1fr);
  height: 74px;
  max-width: 572px;
  margin: 0 auto;
}

.tab-item {
  display: grid;
  min-width: 0;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #8491a5;
  cursor: pointer;
  font-size: 12px;
}

.tab-item.active {
  color: #ff2b83;
}

.tab-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
}

.tab-icon.home::before {
  position: absolute;
  inset: 7px 4px 3px;
  content: "";
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 4px;
}

.tab-icon.home::after {
  position: absolute;
  top: 2px;
  left: 5px;
  width: 12px;
  height: 12px;
  content: "";
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.tab-icon.category::before {
  position: absolute;
  inset: 3px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 4px;
  transform: rotate(30deg);
}

.tab-icon.service::before {
  position: absolute;
  inset: 4px 3px 6px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 3px;
}

.tab-icon.service::after {
  position: absolute;
  right: 5px;
  bottom: 3px;
  width: 7px;
  height: 7px;
  content: "";
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.tab-icon.profile::before {
  position: absolute;
  top: 3px;
  left: 7px;
  width: 8px;
  height: 8px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 50%;
}

.tab-icon.profile::after {
  position: absolute;
  right: 4px;
  bottom: 3px;
  left: 4px;
  height: 8px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 8px 8px 0 0;
  border-bottom: 0;
}

@media (max-width: 980px) {
  :root {
    --footer-height: 128px;
  }

  body {
    padding-bottom: 88px;
  }

  .nav {
    width: min(100% - 28px, 780px);
  }

  .nav-links {
    display: none;
  }

  main {
    width: min(100% - 28px, 780px);
  }

  .site-footer {
    width: min(100% - 28px, 780px);
    padding: 12px 0;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    max-height: none;
    padding: 32px 0 28px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

  .metrics {
    margin: 8px 0 42px;
    grid-template-columns: 1fr;
  }

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

  .metrics div:last-child {
    border-bottom: 0;
  }

  .detail-shell,
  .checkout-layout,
  .service-grid,
  .contact-panel,
  .policy-grid,
  .service-notice,
  .notice-list,
  .news-hero {
    grid-template-columns: 1fr;
  }

  .detail-summary {
    position: static;
  }

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

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

  .bottom-tabbar {
    display: grid;
  }
}

@media (max-width: 560px) {
  .nav {
    height: 62px;
  }

  .cart-button span {
    display: none;
  }

  .brand {
    max-width: 220px;
  }

  .brand span:last-child {
    display: inline;
    min-width: 0;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

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

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

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .news-page,
  .news-detail-page {
    padding-top: 22px;
  }

  .news-hero,
  .news-card,
  .news-article {
    padding: 18px;
  }

  .news-hero h1 {
    font-size: 34px;
  }

  .news-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-card-date {
    width: 86px;
  }

  .news-title {
    font-size: 18px;
  }

  .news-article h1 {
    font-size: 26px;
  }

  .detail-summary {
    display: grid;
    grid-template-columns: 116px 1fr;
  }

  .detail-summary img {
    width: 116px;
    height: 100%;
    object-fit: cover;
  }

  .detail-summary > div {
    padding: 14px;
  }

  .detail-summary h3 {
    font-size: 19px;
  }

  .detail-summary p {
    display: block;
    margin: 6px 0 8px;
    font-size: 13px;
    line-height: 1.5;
  }

  .detail-facts {
    gap: 6px;
    margin: 8px 0 12px;
  }

  .detail-facts div {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 6px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .category-page,
  .orders-page,
  .service-page,
  .profile-page {
    padding-top: 26px;
  }

  .page-heading h2,
  .profile-card h2 {
    font-size: 24px;
  }

  .service-notice {
    padding: 20px;
  }

  .contact-panel,
  .policy-card {
    padding: 20px;
  }

  .contact-list p {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .service-notice h3,
  .contact-panel h3,
  .policy-card h3 {
    font-size: 22px;
  }

  .profile-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
  }

  .profile-avatar {
    width: 56px;
    height: 56px;
    font-size: 18px;
  }

  .profile-card p {
    font-size: 14px;
  }

  .login-panel label,
  .address-panel label {
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
    padding: 12px 0;
  }

  .login-panel label span,
  .address-panel label span,
  .login-panel input,
  .address-panel input {
    font-size: 17px;
  }

  .address-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .address-delete {
    width: 100%;
  }

  .address-modal {
    padding: 12px;
  }

  .address-dialog {
    margin: 12px auto 82px;
    padding: 20px;
  }

  .address-dialog-head h3 {
    font-size: 22px;
  }

  .address-dialog label {
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
    padding: 12px 0;
  }

  .address-dialog label span,
  .address-dialog input,
  .address-dialog select {
    font-size: 17px;
  }

  .address-region-selects {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .logout-button {
    min-height: 36px;
    margin-top: 16px;
    padding: 0 14px;
  }

  .checkout-page {
    padding: 12px;
  }

  .order-address-popup {
    padding: 12px;
  }

  .order-address-card {
    margin-bottom: 82px;
  }

  .order-address-head,
  .order-address-body {
    padding: 16px;
  }

  .order-address-head h2 {
    font-size: 24px;
  }

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

  .checkout-card {
    margin-bottom: 82px;
  }

  .checkout-head,
  .checkout-layout {
    padding: 16px;
  }

  .order-item {
    grid-template-columns: 58px 1fr auto;
  }

  .order-item img {
    width: 58px;
    height: 58px;
  }
}

/* Mobile-first commerce shell overrides */
:root {
  --bg: #f9f9f7;
  --shell-max: 28.125rem;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-height: 4.625rem;
  --buybar-height: 4.75rem;
  --soft-line: #ece7df;
}

html {
  background: #ece8df;
}

body {
  width: min(100%, var(--shell-max));
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: calc(var(--tabbar-height) + var(--safe-bottom));
  background: var(--bg);
  overflow-x: hidden;
}

.site-header {
  width: min(100%, var(--shell-max));
  right: 0;
  left: 0;
  margin: 0 auto;
  border-bottom: 0.0625rem solid rgba(236, 231, 223, 0.82);
  background: rgba(249, 249, 247, 0.82);
  -webkit-backdrop-filter: blur(1rem);
  backdrop-filter: blur(1rem);
}

.nav,
main,
.site-footer {
  width: 100%;
  max-width: var(--shell-max);
}

.nav {
  height: 3.875rem;
  padding: 0 max(1rem, env(safe-area-inset-right, 0px)) 0 max(1rem, env(safe-area-inset-left, 0px));
  gap: 0.75rem;
}

.brand {
  min-width: 0;
  gap: 0.5rem;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 0.5rem;
  font-size: 0.75rem;
}

.brand span:last-child {
  max-width: 8.25rem;
  min-width: 0;
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-slogan {
  flex: 1;
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.nav-links {
  display: none;
}

main {
  padding: 0 1rem;
}

.home-page,
.category-page,
.news-page,
.orders-page,
.service-page,
.profile-page,
.detail-page {
  padding-top: 1.375rem;
  padding-bottom: calc(var(--tabbar-height) + var(--safe-bottom) + 1.5rem);
}

.news-page {
  min-height: calc(100vh - var(--tabbar-height) - var(--safe-bottom) - 9.75rem);
}

.hero {
  min-height: auto;
  max-height: none;
  padding: 1.25rem 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.hero-copy h1 {
  margin: 0.5rem 0 0.75rem;
  font-size: 2.125rem;
  line-height: 1.08;
}

.hero-copy p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  margin-top: 1rem;
}

.primary-link,
.secondary-link,
.primary-button {
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.metrics,
.product-grid,
.service-grid,
.policy-grid,
.notice-list,
.contact-panel {
  grid-template-columns: 1fr;
}

.metrics {
  margin: 0.75rem 0 2rem;
}

.product-grid {
  gap: 0.875rem;
}

.section-heading {
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.section-heading h2,
.page-heading h2 {
  margin: 0;
  font-size: 1.375rem;
}

.bottom-tabbar {
  width: min(100%, var(--shell-max));
  max-width: var(--shell-max);
  height: calc(var(--tabbar-height) + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-bottom: var(--safe-bottom);
  border-top: 0.0625rem solid rgba(232, 226, 216, 0.9);
  background: rgba(255, 255, 255, 0.94);
}

.tab-item {
  gap: 0.25rem;
  font-size: 0.6875rem;
}

.tab-item.active {
  color: var(--accent-dark);
}

.detail-page {
  padding-right: 0;
  padding-left: 0;
  padding-bottom: calc(var(--buybar-height) + var(--tabbar-height) + var(--safe-bottom) + 1rem);
}

.detail-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.detail-side {
  display: grid;
  gap: 0.75rem;
}

.detail-banner,
.detail-summary,
.sku-panel,
.spec-panel,
.detail-image-wrap {
  border: 0;
  border-radius: 0;
  background: var(--panel);
  box-shadow: none;
}

.detail-banner {
  width: 100%;
  height: min(56vw, 16.25rem);
  max-height: 16.25rem;
  overflow: hidden;
  background: #f0ece4;
}

.detail-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.detail-summary {
  position: static;
  display: block;
  grid-template-columns: none;
}

.detail-main-info,
.sku-panel,
.spec-panel {
  padding: 1rem;
}

.detail-tag {
  display: inline-flex;
  margin-bottom: 0.5rem;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 900;
}

.detail-summary h2 {
  margin: 0 0 0.625rem;
  color: #111827;
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 900;
}

.detail-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.detail-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.875rem;
}

.detail-price-row strong {
  margin: 0;
  color: #dc2626;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 950;
}

.stock-badge {
  display: inline-flex;
  min-height: 1.625rem;
  align-items: center;
  padding: 0 0.625rem;
  border-radius: 999rem;
  color: #667085;
  background: #f2f4f7;
  font-size: 0.75rem;
  font-weight: 800;
}

.detail-summary .stock-badge {
  color: #667085;
  font-size: 0.75rem;
}

.sku-panel h3,
.spec-panel h3,
.order-status-panel h3 {
  margin: 0 0 0.875rem;
  font-size: 1rem;
  line-height: 1.35;
}

.sku-group {
  display: grid;
  gap: 0.625rem;
}

.sku-group + .sku-group {
  margin-top: 0.875rem;
}

.sku-group > span {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 800;
}

.sku-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.sku-pill {
  min-height: 2.25rem;
  padding: 0 0.875rem;
  border: 0.0625rem solid var(--soft-line);
  border-radius: 999rem;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 800;
}

.sku-pill.active {
  border: 0.125rem solid #1f2933;
  box-shadow: 0 0.375rem 1rem rgba(31, 41, 51, 0.12);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 0.0625rem solid #e5e7eb;
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.6;
}

.spec-table th,
.spec-table td {
  padding: 0.75rem;
  border: 0.0625rem solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 34%;
  color: #111827;
  font-weight: 900;
  background: #fafafa;
}

.spec-table tr:nth-child(even) {
  background: #fbfaf8;
}

.detail-image-wrap {
  overflow: hidden;
  line-height: 0;
}

.detail-image-wrap img,
.detail-image-wrap p img,
.detail-image-wrap div img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  vertical-align: top;
}

.buy-bar {
  position: fixed;
  right: 0;
  bottom: calc(var(--tabbar-height) + var(--safe-bottom));
  left: 0;
  z-index: 44;
  width: min(100%, var(--shell-max));
  min-height: var(--buybar-height);
  display: grid;
  grid-template-columns: 6.75rem minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  margin: 0 auto;
  padding: 0.75rem 1rem calc(0.75rem + var(--safe-bottom));
  border-top: 0.0625rem solid rgba(232, 226, 216, 0.86);
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(1rem);
  backdrop-filter: blur(1rem);
}

.home-return-button,
.contact-buy-button,
.buy-now-button {
  min-height: 2.875rem;
  border-radius: 999rem;
  font-size: 0.875rem;
  font-weight: 900;
}

.home-return-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0.0625rem solid var(--soft-line);
  color: var(--muted);
  background: #fff;
}

.buy-now-button {
  width: 100%;
  border: 0;
  background: var(--accent-dark);
}

.service-quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
  margin-bottom: 0.875rem;
}

.service-quick-links a,
.service-panel,
.policy-card,
.contact-panel,
.service-notice {
  border-radius: 0.5rem;
}

.service-quick-links a {
  min-height: 4.25rem;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.35;
  background: #fff;
}

.service-grid,
.policy-grid {
  gap: 1.5rem;
}

.service-panel,
.policy-card,
.contact-panel,
.service-notice {
  padding: 1rem;
}

.service-panel h3,
.policy-card h3,
.contact-panel h3,
.service-notice h3 {
  font-size: 1rem;
}

.policy-card p,
.service-notice p,
.notice-list li,
.contact-panel p {
  font-size: 0.875rem;
  line-height: 1.8;
}

.notice-list {
  gap: 0.625rem;
}

.profile-card {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr);
  gap: 0.875rem;
  align-items: center;
  padding: 1rem;
  border: 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(167, 47, 35, 0.95), rgba(31, 41, 51, 0.88)),
    var(--accent-dark);
}

.profile-avatar {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 1rem;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
}

.profile-card h2 {
  margin: 0 0 0.625rem;
  color: #fff;
  font-size: 1.125rem;
}

.profile-login-state {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.375rem;
}

.profile-login-state span,
.profile-login-state em {
  font-size: 0.8125rem;
  line-height: 1.4;
}

.profile-login-state span {
  font-weight: 900;
}

.profile-login-state em {
  padding: 0.125rem 0.5rem;
  border-radius: 999rem;
  color: #ffe7d2;
  background: rgba(255, 255, 255, 0.14);
  font-style: normal;
  font-weight: 800;
}

.profile-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8125rem;
}

.login-panel,
.address-panel,
.order-status-panel {
  margin-top: 0.875rem;
  padding: 1rem;
  border: 0.0625rem solid var(--soft-line);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 0.75rem 2rem rgba(31, 41, 51, 0.06);
}

.login-panel label,
.address-panel label {
  grid-template-columns: 1fr;
  gap: 0.375rem;
  min-height: auto;
  padding: 0.75rem 0;
}

.login-panel label span,
.address-panel label span,
.login-panel input,
.address-panel input {
  font-size: 1rem;
}

.address-list-head {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.75rem;
}

.address-list-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.625rem;
}

.address-list-actions .primary-button {
  background: var(--accent-dark);
}

.address-item {
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: #fff;
}

.address-select em {
  color: #9a3412;
  background: #ffedd5;
}

.address-delete {
  width: 100%;
}

.order-status-panel {
  display: grid;
  gap: 0.875rem;
}

.order-status-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.375rem;
}

.order-status-step {
  display: grid;
  justify-items: center;
  gap: 0.375rem;
  min-width: 0;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 800;
}

.order-status-step svg {
  width: 1.375rem;
  height: 1.375rem;
  fill: none;
  stroke: var(--accent-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-order-state {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background: #fbfaf8;
  color: var(--muted);
  font-size: 0.875rem;
}

.empty-order-state svg {
  width: 8rem;
  max-width: 70%;
  fill: #fff8ef;
  stroke: #d9a06b;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-order-state p {
  margin: 0;
}

.profile-logout-bottom {
  width: 100%;
  margin-top: 1rem;
  border-color: #d0d5dd;
  color: #667085;
  background: transparent;
}

.address-dialog,
.order-address-card,
.checkout-card,
.pay-popup-card {
  width: min(100%, var(--shell-max));
}

.address-modal,
.order-address-popup,
.checkout-page {
  padding: 0.75rem;
}

@media (min-width: 768px) {
  body {
    width: auto;
    max-width: none;
    padding-bottom: 0;
  }

  .site-header {
    width: 100%;
    max-width: none;
  }

  .nav,
  main {
    width: min(1180px, calc(100% - 2.5rem));
    max-width: none;
  }

  .site-footer {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1rem 1.25rem 1.125rem;
  }

  .nav {
    height: 4.5rem;
    padding: 0;
  }

  .brand span:last-child {
    max-width: none;
    font-size: 1rem;
  }

  .header-slogan {
    max-width: 28rem;
    font-size: 0.875rem;
  }

  .nav-links {
    display: flex;
  }

  .home-page,
  .category-page,
  .news-page,
  .orders-page,
  .service-page,
  .profile-page,
  .detail-page {
    padding-top: 2.625rem;
    padding-bottom: 5.75rem;
  }

  .news-page {
    min-height: calc(100vh - 16.25rem);
  }

  .hero {
    min-height: calc(100vh - 4.5rem);
    max-height: 47.5rem;
    padding: 3.5rem 0 2.125rem;
    grid-template-columns: minmax(0, 0.86fr) minmax(22.5rem, 1.14fr);
    align-items: center;
    gap: 3.375rem;
  }

  .hero-copy h1 {
    max-width: 40rem;
    font-size: 4.5rem;
    line-height: 0.98;
  }

  .hero-copy p {
    max-width: 32.5rem;
    font-size: 1.125rem;
  }

  .hero-actions {
    display: flex;
    gap: 0.875rem;
  }

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

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

  .service-grid,
  .policy-grid,
  .notice-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-panel {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .bottom-tabbar {
    display: none;
  }

  .detail-page {
    padding-right: 0;
    padding-left: 0;
    padding-bottom: 6.5rem;
  }

  .detail-shell {
    max-width: 64rem;
    margin: 0 auto;
    grid-template-columns: minmax(22rem, 0.82fr) minmax(24rem, 1fr);
    gap: 1.25rem;
    align-items: start;
  }

  .detail-side {
    grid-column: 1;
    display: grid;
    gap: 1rem;
  }

  .detail-banner {
    height: min(32vw, 16.25rem);
    border-radius: 0.5rem;
  }

  .detail-summary,
  .sku-panel,
  .spec-panel {
    border-radius: 0.5rem;
  }

  .detail-image-wrap {
    grid-column: 2;
    grid-row: 1;
    border-radius: 0.5rem;
  }

  .detail-main-info,
  .sku-panel,
  .spec-panel {
    padding: 1.25rem;
  }

  .buy-bar {
    bottom: 0;
    width: 100%;
    max-width: none;
    grid-template-columns: 8rem minmax(0, 18rem) minmax(0, 36rem);
    justify-content: center;
    border: 0.0625rem solid rgba(232, 226, 216, 0.86);
    border-bottom: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .profile-page,
  .orders-page {
    max-width: 48rem;
    margin: 0 auto;
  }

  .address-list-head {
    align-items: center;
    flex-direction: row;
  }

  .address-list-actions {
    width: auto;
    display: flex;
  }

  .address-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .address-delete {
    width: auto;
  }

  .address-dialog,
  .order-address-card,
  .checkout-card,
  .pay-popup-card {
    width: min(100%, 48rem);
  }
}

@media (min-width: 768px) and (max-width: 980px) {
  body {
    padding-bottom: 0;
  }
}

@media (max-width: 560px) {
  .audit-info-card {
    padding: 1rem;
    border-radius: 1.25rem;
  }

  .audit-info-grid {
    grid-template-columns: 1fr;
  }

  .category-shortcuts,
  .commitment-grid,
  .detail-service-grid {
    grid-template-columns: 1fr;
  }

  .purchase-note {
    grid-template-columns: 1fr;
  }

  .contact-buy-button {
    display: none;
  }

  .buy-bar {
    grid-template-columns: 6.75rem minmax(0, 1fr);
  }

  .empty-state-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .news-pagination {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
  }

  .news-pagination .page-number-track {
    grid-column: auto;
    order: initial;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .news-pagination .page-btn-nav {
    min-width: 0;
    width: 100%;
    padding: 0 0.75rem;
    font-size: 0.875rem;
  }
}
