﻿:root {
  --primary: #176b4d;
  --primary-dark: #0f4d39;
  --accent: #d48130;
  --accent-soft: #fff2e4;
  --lake: #2f8191;
  --ink: #1f2b27;
  --muted: #66736e;
  --line: #dde5df;
  --page: #f4f7f4;
  --white: #ffffff;
  --danger: #c63e2c;
  --radius: 8px;
  --shadow: 0 8px 22px rgba(24, 52, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 1180px;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: var(--page);
  color: var(--ink);
  font-size: 14px;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.container {
  width: 1200px;
  margin: 0 auto;
}

.topbar {
  background: #edf3ef;
  border-bottom: 1px solid var(--line);
  color: #4e5d58;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}

.topbar a,
.topbar button {
  border: 0;
  background: transparent;
  color: #40524b;
  padding: 0 7px;
}

.topbar .link-hot {
  color: var(--accent);
  font-weight: 700;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.masthead {
  background: var(--white);
}

.masthead-inner {
  display: grid;
  grid-template-columns: 270px 1fr 190px;
  align-items: center;
  gap: 30px;
  height: 108px;
}

.brand-logo {
  width: 238px;
  height: auto;
}

.search-wrap {
  min-width: 0;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 110px;
  height: 44px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.search-box input {
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: var(--ink);
}

.search-box button {
  border: 0;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
}

.hot-search {
  display: flex;
  gap: 14px;
  padding-top: 9px;
  color: #697872;
  font-size: 13px;
}

.hot-search button {
  border: 0;
  background: transparent;
  color: #697872;
}

.cart-entry {
  height: 44px;
  border: 1px solid var(--line);
  background: #f9fbf9;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 700;
}

.cart-entry strong {
  min-width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  color: var(--white);
  background: var(--accent);
  border-radius: 20px;
  font-size: 12px;
}

.main-nav {
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(15, 77, 57, 0.18);
}

.nav-inner {
  display: flex;
  height: 44px;
}

.nav-inner a {
  display: flex;
  align-items: center;
  padding: 0 30px;
  font-size: 15px;
  font-weight: 700;
}

.nav-inner a.active,
.nav-inner a:hover {
  background: var(--accent);
}

.page-main {
  padding-bottom: 34px;
}

.hero-area {
  background: linear-gradient(180deg, #ffffff 0, #f4f7f4 100%);
  padding: 16px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 220px 1fr 252px;
  gap: 14px;
  height: 430px;
}

.category-panel,
.deal-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.category-title {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: 16px;
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.category-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid #eef3f0;
  color: #33443e;
}

.category-list li a:hover {
  background: #f1f8f4;
  color: var(--primary);
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dbe7df;
  box-shadow: var(--shadow);
}

.hero-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 15s infinite;
  filter: contrast(1.05) saturate(1.04);
}

.hero-carousel img:nth-child(2) {
  animation-delay: 5s;
}

.hero-carousel img:nth-child(3) {
  animation-delay: 10s;
}

@keyframes heroFade {
  0%,
  28% {
    opacity: 1;
  }
  36%,
  100% {
    opacity: 0;
  }
}

.hero-copy {
  position: absolute;
  left: 30px;
  bottom: 28px;
  width: 360px;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.2;
}

.hero-copy p {
  margin: 0;
  line-height: 1.8;
}

.deal-panel {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0;
}

.deal-block {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.deal-block:last-child {
  border-bottom: 0;
}

.deal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.deal-head h3 {
  margin: 0;
  font-size: 17px;
}

.deal-head button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
}

.mini-product {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding: 7px 0;
  cursor: pointer;
}

.mini-product img {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  background: #edf3ef;
}

.mini-product strong {
  display: block;
  max-height: 40px;
  overflow: hidden;
  line-height: 20px;
  font-size: 13px;
}

.price {
  color: var(--danger);
  font-weight: 800;
}

.section {
  margin-top: 24px;
}

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

.section-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
}

.section-sub {
  color: var(--muted);
}

.text-link {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
}

.image-map {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.image-map img {
  width: 100%;
  height: auto;
  filter: contrast(1.06) saturate(1.05);
}

.hotspot {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0);
  border-radius: 4px;
}

.hotspot:hover {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(23, 107, 77, 0.04);
}

.merchant-carousel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.merchant-track {
  display: flex;
  width: 200%;
  animation: merchantMove 24s infinite linear;
}

.merchant-card {
  flex: 0 0 25%;
  min-height: 226px;
  display: grid;
  grid-template-columns: 150px 1fr;
  border-right: 1px solid var(--line);
}

@keyframes merchantMove {
  0%,
  40% {
    transform: translateX(0);
  }
  50%,
  90% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.merchant-name {
  padding: 18px;
  background: linear-gradient(180deg, #173f32, #286b52);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.merchant-name strong {
  font-size: 18px;
  line-height: 1.35;
}

.merchant-name span {
  color: #dcece4;
  line-height: 1.7;
}

.merchant-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
}

.merchant-product {
  cursor: pointer;
}

.merchant-product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  background: #eef3ef;
}

.merchant-product span {
  display: block;
  height: 36px;
  overflow: hidden;
  line-height: 18px;
  margin-top: 7px;
  font-size: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.product-card {
  position: relative;
  min-height: 332px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(31, 43, 39, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 107, 77, 0.45);
  box-shadow: var(--shadow);
}

.product-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #eef3ef;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.badge.self {
  position: absolute;
  left: 8px;
  top: 8px;
  background: var(--primary);
}

.badge.hot {
  background: var(--danger);
}

.product-info {
  padding: 10px 12px 12px;
}

.product-title {
  height: 42px;
  line-height: 21px;
  overflow: hidden;
  font-weight: 700;
  color: #273932;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.outline-btn,
.solid-btn,
.ghost-btn {
  height: 36px;
  border-radius: var(--radius);
  padding: 0 16px;
  font-weight: 700;
}

.outline-btn {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: var(--white);
}

.solid-btn {
  border: 1px solid var(--primary);
  color: var(--white);
  background: var(--primary);
}

.solid-btn.accent {
  border-color: var(--accent);
  background: var(--accent);
}

.ghost-btn {
  border: 1px solid var(--line);
  background: #f7faf7;
  color: #34473f;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin: 18px 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--line);
  background: #fbfdfb;
  border-radius: 20px;
  padding: 7px 14px;
  color: #3d4d47;
}

.chip.active,
.chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #eef8f2;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 18px;
}

.detail-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.product-detail-top {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 24px;
}

.gallery-main {
  width: 460px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef3ef;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.thumb-row img {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
}

.detail-title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.38;
}

.price-box {
  background: #fff6ef;
  border: 1px solid #f2d4b5;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
}

.price-box .price {
  font-size: 30px;
}

.info-lines {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.info-line {
  display: grid;
  grid-template-columns: 84px 1fr;
  color: #35473f;
}

.info-line label {
  color: var(--muted);
}

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

.sku-row button {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
  min-width: 72px;
  height: 34px;
}

.sku-row button.selected {
  border-color: var(--primary);
  color: var(--primary);
  background: #eef8f2;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.merchant-side {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  height: max-content;
  box-shadow: var(--shadow);
}

.merchant-side h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.merchant-side p {
  color: var(--muted);
  line-height: 1.75;
}

.merchant-side .solid-btn {
  width: 100%;
}

.detail-section {
  margin-top: 20px;
}

.detail-section h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.spec-table th,
.spec-table td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

.spec-table th {
  width: 150px;
  background: #f6faf7;
  color: var(--muted);
}

.detail-images {
  display: grid;
  gap: 12px;
}

.detail-image-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.detail-image-tile img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f7faf7;
}

.detail-caption {
  padding: 14px 16px;
  color: #374a42;
  line-height: 1.75;
}

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

.merchant-row {
  display: grid;
  grid-template-columns: 230px 220px 1fr 140px;
  gap: 16px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.merchant-row h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.merchant-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.merchant-license-small {
  width: 220px;
  height: 150px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f7f7;
}

.license-gate {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 150px;
  padding: 16px;
  border: 1px dashed #bfd0c6;
  border-radius: var(--radius);
  background: #f8fbf8;
  color: #31443d;
}

.license-gate strong {
  font-size: 17px;
}

.license-gate span,
.license-gate p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.license-gate.small .outline-btn {
  width: 100%;
  padding: 0 10px;
}

.license-gate.profile {
  min-height: 220px;
}

.license-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(19, 42, 35, 0.54);
  padding: 32px;
}

.license-dialog {
  width: 760px;
  max-height: 86vh;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.license-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.license-dialog-head button {
  border: 0;
  background: transparent;
  font-size: 24px;
  color: #40524b;
}

.license-dialog-body {
  max-height: calc(86vh - 54px);
  overflow: auto;
  padding: 18px;
}

.license-dialog-body img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7faf7;
}

.license-dialog-body p {
  margin: 12px 0 0;
  color: var(--muted);
}
.merchant-picks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.merchant-pick img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  background: #eef3ef;
}

.merchant-profile {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 20px 0;
}

.merchant-profile img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-panel,
.plain-panel,
.cart-panel,
.order-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

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

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: #40524b;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
  outline: none;
  background: var(--white);
}

.form-field textarea {
  min-height: 96px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 107, 77, 0.1);
}

.agreement-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  color: #495b55;
}

.agreement-line input {
  width: 16px;
  height: 16px;
}

.agreement-line a {
  color: var(--primary);
  font-weight: 700;
}

.auth-layout {
  width: 520px;
  margin: 34px auto;
}

.auth-layout h1 {
  margin-top: 0;
}

.auth-switch {
  margin-top: 16px;
  color: var(--muted);
}

.auth-switch a {
  color: var(--primary);
  font-weight: 700;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th,
.cart-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

.cart-product {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
}

.cart-product img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
}

.qty-box {
  display: inline-grid;
  grid-template-columns: 30px 44px 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.qty-box button {
  border: 0;
  background: #f5f8f6;
}

.qty-box span {
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 16px;
}

.summary-row .price {
  font-size: 24px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 18px;
}

.checkout-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  height: max-content;
}

.checkout-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

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

.member-page,
.order-detail-page {
  background: #f3f5f7;
  padding: 28px 0 58px;
  min-height: 650px;
}

.order-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  color: #6a7788;
  font-size: 16px;
}

.order-breadcrumb a {
  color: #3c628a;
}

.order-breadcrumb strong {
  color: #667287;
}

.member-layout {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: start;
}

.member-sidebar {
  background: var(--white);
  padding: 28px 20px 34px;
  min-height: 420px;
}

.member-sidebar h3 {
  margin: 0 0 20px;
  font-size: 18px;
  color: #172033;
}

.member-sidebar h3:not(:first-child) {
  margin-top: 34px;
}

.member-sidebar a {
  display: block;
  margin: 0 0 20px;
  color: #667287;
  font-size: 16px;
  line-height: 1;
}

.member-sidebar a.active,
.member-sidebar a:hover {
  color: #b57a37;
}

.member-main {
  min-width: 0;
}

.member-card {
  background: var(--white);
  border: 1px solid #e8edf2;
}

.member-card-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid #e8edf2;
}

.member-card-head h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #172033;
}

.order-search {
  display: grid;
  grid-template-columns: 250px 64px;
  height: 34px;
}

.order-search input {
  border: 1px solid #d9e0e8;
  border-right: 0;
  padding: 0 12px;
  color: #516072;
  outline: none;
}

.order-search button {
  border: 1px solid #d9e0e8;
  background: #fff;
  color: #b57a37;
  font-weight: 700;
}

.order-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 22px 16px 18px;
}

.order-tabs button {
  border: 0;
  border-right: 1px solid #cfd7df;
  background: transparent;
  padding: 0 22px;
  color: #1f2f48;
  font-size: 16px;
}

.order-tabs button:first-child {
  padding-left: 0;
}

.order-tabs button:last-child {
  border-right: 0;
}

.order-tabs button.active,
.order-tabs button:hover {
  color: #b57a37;
}

.order-list {
  display: grid;
  gap: 14px;
  padding: 0 16px 18px;
}

.order-card {
  background: var(--white);
  border: 1px solid #e5e9ee;
  overflow: hidden;
}

.order-card-head {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 38px;
  padding: 0 20px;
  background: #f1f3f6;
  color: #667287;
  font-size: 14px;
}

.order-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 160px 150px 150px;
  min-height: 104px;
}

.order-item-cell,
.order-unit-cell,
.order-total-cell,
.order-state-cell,
.order-action-cell {
  padding: 16px 18px;
  border-right: 1px solid #e8edf2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-item-cell {
  display: grid;
  justify-content: stretch;
  gap: 12px;
}

.order-action-cell {
  border-right: 0;
}

.order-product-line {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.order-product-line img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  background: #fff;
}

.order-product-title {
  display: block;
  max-width: 100%;
  line-height: 1.55;
  color: #1f2b3f;
  font-weight: 500;
}

.order-product-sku {
  display: block;
  margin-top: 8px;
  color: #667287;
  line-height: 1.45;
}

.order-unit-cell,
.order-total-cell {
  color: #1f2b3f;
  font-size: 16px;
}

.order-total-cell {
  font-weight: 700;
}

.order-state-cell {
  flex-direction: column;
  gap: 9px;
  color: #667287;
}

.order-state-cell strong {
  color: #667287;
  font-weight: 500;
}

.order-link {
  border: 0;
  background: transparent;
  color: #8d6330;
  padding: 0;
}

.order-link:hover {
  color: #b57a37;
}

.order-action-cell .solid-btn,
.order-action-cell .outline-btn,
.detail-actions .solid-btn,
.detail-actions .outline-btn {
  min-width: 82px;
  height: 30px;
  border-radius: 3px;
  padding: 0 12px;
  font-weight: 500;
}

.order-action-cell .solid-btn,
.detail-actions .solid-btn,
.logistics-dialog-foot .solid-btn {
  border-color: #b57a37;
  background: #b57a37;
}

.order-action-cell .outline-btn,
.detail-actions .outline-btn {
  border-color: #b57a37;
  color: #8d6330;
}

.order-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 16px 24px;
}

.order-pagination button,
.order-pagination strong {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9e0e8;
  background: #fff;
  color: #b6bfca;
  border-radius: 4px;
}

.order-pagination strong {
  border-color: #b57a37;
  background: #b57a37;
  color: #fff;
}

.order-status-board {
  background: var(--white);
  border: 1px solid #e8edf2;
  min-height: 110px;
  padding: 28px 46px;
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 34px;
  margin-bottom: 18px;
}

.order-status-title {
  color: #b57a37;
  font-size: 28px;
  font-weight: 800;
  padding-right: 34px;
  border-right: 1px solid #edf0f3;
}

.order-step-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
}

.order-step {
  position: relative;
  min-height: 52px;
  padding-left: 48px;
  color: #667287;
}

.order-step::after {
  content: "";
  position: absolute;
  left: 30px;
  right: -18px;
  top: 15px;
  height: 2px;
  background: #b57a37;
  z-index: 0;
}

.order-step:last-child::after {
  display: none;
}

.step-mark {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b57a37;
  border-radius: 50%;
  background: #fff;
  color: #b57a37;
  font-style: normal;
  font-weight: 700;
}

.order-step.current .step-mark,
.order-step.done .step-mark {
  background: #fff;
}

.order-step.current .step-mark {
  background: #b57a37;
  color: #fff;
}

.order-step strong {
  display: block;
  color: #344154;
  font-size: 15px;
  line-height: 28px;
}

.order-step em {
  display: block;
  color: #87909e;
  font-style: normal;
  margin-top: 4px;
}

.detail-section {
  background: var(--white);
  border: 1px solid #e8edf2;
  margin-top: 18px;
  padding: 28px 36px 34px;
}

.detail-section h2 {
  margin: 0 0 28px;
  color: #172033;
  font-size: 18px;
}

.order-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 110px;
  max-width: 780px;
}

.info-line {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 16px;
  color: #5f6e80;
  line-height: 1.45;
}

.info-line.wide {
  grid-column: 1 / -1;
}

.info-line span {
  text-align: right;
  color: #5f6e80;
}

.info-line strong {
  color: #4b596b;
  font-weight: 500;
}

.shipping-info-block {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: start;
}

.order-shipping-product .order-product-line,
.order-shipping-product {
  max-width: 360px;
}

.shipping-lines {
  display: grid;
  gap: 18px;
  color: #4b596b;
  font-size: 16px;
}

.shipping-lines div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.shipping-lines span {
  color: #5f6e80;
}

.shipping-lines strong {
  font-weight: 500;
}

.order-detail-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e8edf2;
}

.order-detail-table th {
  background: #f1f3f6;
  color: #39465a;
  font-weight: 500;
  padding: 16px 18px;
  text-align: left;
}

.order-detail-table td {
  padding: 18px;
  border-top: 1px solid #e8edf2;
  color: #4b596b;
  vertical-align: middle;
}

.order-detail-table th:nth-child(n+2),
.order-detail-table td:nth-child(n+2) {
  text-align: center;
}

.price-cell {
  color: #c71916 !important;
  font-weight: 800;
}

.detail-actions {
  display: grid;
  justify-content: center;
  gap: 8px;
}

.order-money-summary {
  display: grid;
  justify-content: end;
  gap: 14px;
  margin-top: 34px;
  color: #273343;
  font-size: 16px;
}

.order-money-summary div {
  display: grid;
  grid-template-columns: 92px 120px;
  align-items: baseline;
  gap: 18px;
}

.order-money-summary span {
  text-align: right;
}

.order-money-summary strong {
  font-weight: 500;
}

.order-money-summary .payable strong {
  color: #b60000;
  font-size: 26px;
  font-weight: 900;
}

.order-detail-page.is-dimmed {
  min-height: 900px;
}

.logistics-mask {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}

.logistics-dialog {
  width: 760px;
  min-height: 520px;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.logistics-dialog-head {
  position: relative;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
  border-bottom: 1px solid #e8edf2;
}

.logistics-dialog-head h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #172033;
}

.logistics-dialog-head button {
  position: absolute;
  right: 18px;
  top: 12px;
  border: 0;
  background: transparent;
  color: #8b929d;
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
}

.logistics-dialog-body {
  flex: 1;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 60px;
}

.logistics-empty {
  color: #8c95a3;
  font-size: 16px;
}

.logistics-dialog-foot {
  min-height: 66px;
  border-top: 1px solid #e8edf2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logistics-dialog-foot .solid-btn {
  min-width: 88px;
  height: 42px;
  border-radius: 3px;
  font-size: 16px;
}

.modal-logistics-list {
  width: 100%;
  display: grid;
  gap: 18px;
}

.modal-logistics-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  color: #4b596b;
  line-height: 1.6;
}

.modal-logistics-item strong {
  color: #87909e;
  font-weight: 500;
}
.empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-state h2 {
  color: var(--ink);
}

.protocol {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 42px;
  line-height: 2;
}

.protocol h1 {
  margin-top: 0;
  text-align: center;
}

.protocol h2 {
  margin-top: 28px;
  font-size: 20px;
}

.protocol p {
  margin: 10px 0;
}

.protocol .sign {
  margin-top: 28px;
  text-align: right;
  font-weight: 700;
}

.footer {
  margin-top: 34px;
  background: #f7faf8;
  color: #31443d;
  border-top: 1px solid var(--line);
}

.footer-main {
  padding: 28px 0 30px;
}

.footer-links,
.friend-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin-bottom: 18px;
}

.footer-links a,
.friend-links a {
  color: var(--primary-dark);
  font-weight: 700;
}

.friend-links {
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.friend-links strong {
  color: var(--ink);
}

.copyright {
  text-align: center;
  line-height: 1.8;
  color: #60726b;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%) translateY(20px);
  min-width: 220px;
  padding: 12px 18px;
  background: rgba(15, 77, 57, 0.96);
  color: var(--white);
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
  text-align: center;
}

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

.service-float {
  position: fixed;
  right: 26px;
  bottom: 32px;
  z-index: 40;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  color: var(--white);
  background: var(--primary);
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(23, 107, 77, 0.25);
}

.chat-drawer {
  position: fixed;
  right: 26px;
  bottom: 104px;
  z-index: 45;
  width: 360px;
  height: 520px;
  display: none;
  grid-template-rows: 54px 96px 1fr 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 44px rgba(22, 44, 36, 0.22);
}

.chat-drawer.open {
  display: grid;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: var(--white);
  background: var(--primary-dark);
}

.chat-head button {
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 18px;
}

.faq-row {
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: #f7faf7;
}

.faq-row button {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  color: #40524b;
  padding: 6px 10px;
  font-size: 12px;
}

.chat-messages {
  padding: 12px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
}

.bubble {
  max-width: 82%;
  padding: 9px 11px;
  border-radius: 8px;
  line-height: 1.6;
}

.bubble.bot {
  background: #eef3ef;
  justify-self: start;
}

.bubble.user {
  background: var(--primary);
  color: var(--white);
  justify-self: end;
}

.chat-input {
  display: grid;
  grid-template-columns: 1fr 68px;
  border-top: 1px solid var(--line);
}

.chat-input input {
  border: 0;
  outline: none;
  padding: 0 12px;
}

.chat-input button {
  border: 0;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
}

.notice {
  border: 1px solid #d8eadf;
  background: #f1faf4;
  color: #27513e;
  border-radius: var(--radius);
  padding: 12px 14px;
  line-height: 1.7;
}

.status-pill {
  display: inline-flex;
  height: 28px;
  align-items: center;
  border-radius: 20px;
  padding: 0 10px;
  background: #eef8f2;
  color: var(--primary);
  font-weight: 700;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.w-full {
  width: 100%;
}






