:root {
  color-scheme: light;
  --bg: #f7f3ed;
  --panel: #ffffff;
  --ink: #1e2525;
  --muted: #66706c;
  --line: #e6ded2;
  --accent: #b6422e;
  --accent-dark: #873124;
  --green: #286a58;
  --gold: #d49b35;
  --shadow: 0 18px 45px rgba(48, 39, 26, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

[v-cloak] {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 237, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.topbar,
.nav-shell,
main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  font-size: 13px;
}

.topbar nav,
.main-nav,
.hero-actions,
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar button,
.topbar a,
.main-nav button,
.section-title button,
.section-title a,
.drawer-header button,
.modal-head button,
.text-btn,
.remove-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.nav-shell {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 78px;
}

.simple-nav {
  grid-template-columns: auto 1fr;
}

.simple-nav .main-nav {
  justify-content: flex-end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

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

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

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-width: 0;
  height: 46px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 14px;
  color: var(--ink);
}

.search-box button,
.primary-link,
.price-row button,
.cart-summary button,
.full-btn {
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.search-box button {
  height: 36px;
  padding: 0 18px;
}

.main-nav a,
.main-nav button {
  color: var(--muted);
  font-size: 15px;
}

.main-nav a:first-child,
.cart-link {
  color: var(--accent);
  font-weight: 700;
}

main {
  padding: 28px 0 42px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 28px;
  align-items: stretch;
  min-height: 430px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px;
  border-radius: 8px;
  background: #14201d;
  color: #fff;
}

.hero-copy p,
.section-title p,
.drawer-header p,
.modal-head p {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy > span {
  max-width: 520px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.hero-actions {
  margin-top: 34px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 7px;
}

.secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
}

.ai-art {
  background-repeat: no-repeat;
  background-size: 300% 300%;
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 8px;
  background-color: #e6ded2;
  box-shadow: var(--shadow);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.44));
}

.hero-stat {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  min-width: 112px;
  margin: 294px 0 0 18px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.hero-stat strong {
  color: var(--accent);
  font-size: 24px;
}

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

.section-wrap,
.deal-band,
.service-row {
  margin-top: 44px;
}

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

.section-title h2,
.drawer-header h2,
.modal-head h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.section-title > span,
.compact-title > span {
  color: var(--muted);
  font-size: 14px;
}

.product-card,
.service-item,
.order-strip article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(48, 39, 26, 0.06);
}

.product-card {
  overflow: hidden;
}

.product-card h3,
.service-item h3,
.cart-item h3 {
  margin: 0;
}

.product-card p,
.service-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.deal-band {
  padding: 26px;
  border-radius: 8px;
  background: #efe4d3;
}

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

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

.product-card {
  position: relative;
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #eee4d7;
}

.product-info {
  padding: 16px;
}

.tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f5e5df;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.product-card h3 {
  min-height: 48px;
  font-size: 17px;
  line-height: 1.4;
}

.product-card p {
  min-height: 46px;
}

.favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent);
  cursor: pointer;
  font-size: 20px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

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

.price-row del {
  margin-right: auto;
  color: #9a8e80;
}

.price-row button {
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

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

.filter-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

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

.orders-preview .section-title a {
  color: var(--accent);
  font-weight: 700;
}

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

.order-strip article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

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

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

.service-item {
  display: flex;
  gap: 14px;
  min-height: 112px;
  padding: 20px;
}

.service-item strong {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #e5f0ec;
  color: var(--green);
  font-size: 20px;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  height: 100vh;
  padding: 24px;
  background: #fff;
  box-shadow: -20px 0 45px rgba(30, 37, 37, 0.16);
  transform: translateX(105%);
  transition: transform 0.24s ease;
}

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

.drawer-header,
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.cart-list {
  display: grid;
  gap: 14px;
  overflow: auto;
  padding-right: 2px;
}

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

.cart-thumb {
  width: 82px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background-color: #eee4d7;
}

.cart-item span {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-weight: 700;
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 32px 34px 32px;
  align-items: center;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.qty-control button {
  height: 30px;
  border: 0;
  background: #f8f2e9;
}

.qty-control strong {
  text-align: center;
}

.remove-btn {
  color: var(--accent);
}

.cart-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.cart-summary strong {
  color: var(--accent);
  font-size: 26px;
}

.cart-summary button {
  grid-column: 1 / -1;
  min-height: 46px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(20, 32, 29, 0.42);
}

.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 50;
  width: min(680px, calc(100% - 28px));
  max-height: min(86vh, 760px);
  overflow: auto;
  transform: translate(-50%, -50%);
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-modal {
  width: min(420px, calc(100% - 28px));
}

.checkout-modal {
  width: min(820px, calc(100% - 28px));
}

.orders-modal {
  width: min(760px, calc(100% - 28px));
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  padding: 11px 12px;
  color: var(--ink);
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
}

.full-btn {
  min-height: 44px;
  padding: 0 16px;
}

.text-btn {
  justify-self: center;
  color: var(--accent);
}

.form-message {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
}

.page-main {
  min-height: calc(100vh - 150px);
}

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

.page-head p {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
}

.cart-page-grid,
.checkout-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

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

.cart-line {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cart-line .cart-thumb {
  width: 112px;
}

.cart-line-info h2 {
  margin: 0;
  font-size: 19px;
}

.cart-line-info p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.cart-line > strong {
  color: var(--accent);
  font-size: 22px;
}

.summary-panel,
.checkout-card,
.checkout-side {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(48, 39, 26, 0.06);
}

.summary-panel,
.checkout-card {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.summary-panel {
  position: sticky;
  top: 132px;
}

.summary-panel h2,
.checkout-card h2 {
  margin: 0;
  font-size: 24px;
}

.summary-panel div,
.summary-panel article {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

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

.summary-panel strong {
  color: var(--accent);
}

.summary-panel .text-btn {
  justify-self: center;
}

.checkout-page-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.checkout-card {
  align-content: start;
}

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

.checkout-side {
  display: grid;
  gap: 16px;
  padding: 18px;
  position: sticky;
  top: 132px;
}

.checkout-side .pay-box,
.checkout-side .summary-panel {
  position: static;
  box-shadow: none;
}

.checkout-side .summary-panel {
  padding: 0;
  border: 0;
}

.compact-summary article {
  align-items: flex-start;
}

.page-order-list {
  max-width: 880px;
}

.pay-box {
  display: grid;
  gap: 12px;
  align-content: start;
  justify-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7f0;
  text-align: center;
}

.pay-box img {
  width: min(220px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 10px solid #fff;
  box-shadow: 0 8px 20px rgba(48, 39, 26, 0.08);
}

.pay-box strong {
  color: var(--accent);
  font-size: 20px;
}

.pay-box span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

.order-list article {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-list article > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.order-list span,
.order-list p,
.order-list ul {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.order-list ul {
  padding-left: 18px;
}

.order-list b {
  color: var(--accent);
  font-size: 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer strong {
  color: var(--ink);
}

.loading,
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.loading.error {
  background: var(--accent-dark);
}

.empty-state {
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: 1fr;
    padding: 14px 0;
  }

  .simple-nav {
    grid-template-columns: 1fr;
  }

  .simple-nav .main-nav {
    justify-content: space-between;
  }

  .main-nav {
    justify-content: space-between;
    flex-wrap: wrap;
  }

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

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

  .deal-grid,
  .checkout-grid,
  .cart-page-grid,
  .checkout-page-grid {
    grid-template-columns: 1fr;
  }

  .summary-panel,
  .checkout-side {
    position: static;
  }

  .cart-line {
    grid-template-columns: 92px minmax(0, 1fr) auto;
  }

  .cart-line .cart-thumb {
    width: 92px;
  }

  .cart-line .qty-control,
  .cart-line .remove-btn {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
  }

  .topbar nav {
    flex-wrap: wrap;
  }

  .hero-copy {
    padding: 32px 24px;
  }

  .hero-actions,
  .section-title,
  .site-footer,
  .order-list article > div {
    align-items: stretch;
    flex-direction: column;
  }

  .product-grid,
  .service-row,
  .order-strip {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    margin-top: 250px;
  }

  .deal-band,
  .modal,
  .cart-drawer {
    padding: 18px;
  }

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

  .cart-line {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
  }

  .cart-line .cart-thumb {
    width: 74px;
  }

  .cart-line > strong {
    grid-column: 2;
  }

  .cart-item {
    grid-template-columns: 72px 1fr;
  }

  .remove-btn {
    grid-column: 2;
    justify-self: start;
  }
}
