/* ================= 站点头部 ================= */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.header-bar .brand {
  margin-left: -10px;
  flex-shrink: 0;
}

.search-form {
  flex: 1;
  max-width: 560px;
  display: flex;
  border: 2px solid var(--brand);
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
}

.search-form input {
  flex: 1;
  border: none;
  border-radius: 0;
  padding: 9px 18px;
  box-shadow: none !important;
}

.search-form button {
  border: none;
  background: var(--brand);
  color: #fff;
  padding: 0 26px;
  font-size: 14px;
  cursor: pointer;
}

.search-form button:hover {
  background: var(--brand-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--text-sub);
  margin-left: auto;
}

.cart-link {
  position: relative;
  padding-left: 22px;
}

.cart-link::before {
  content: '🛒';
  position: absolute;
  left: 0;
  font-size: 15px;
}

.cart-badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  vertical-align: middle;
}

.merchant-entry {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

/* 用户下拉 */
.user-dropdown {
  position: relative;
  padding: 22px 0;
}

.user-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--text);
}

.user-dropdown-menu {
  position: absolute;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  min-width: 140px;
  display: none;
}

.user-dropdown:hover .user-dropdown-menu {
  display: block;
}

.user-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
}

.user-dropdown-menu a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

/* 类目导航 */
.category-nav {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.category-nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
}

.cat-all {
  font-weight: 600;
  color: var(--brand);
  padding-right: 14px;
  margin-right: 6px;
  border-right: 1px solid var(--line);
}

.cat-item {
  position: relative;
  padding: 12px 0;
}

.cat-item > a {
  padding: 0 14px;
  color: var(--text-sub);
}

.cat-item:hover > a {
  color: var(--brand);
}

.cat-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  min-width: 640px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  display: none;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 18px 24px;
}

.cat-item:hover .cat-panel {
  display: grid;
}

.cat-panel-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  align-content: start;
}

.cat-panel-pic {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-warm);
  position: relative;
  align-self: stretch;
  min-height: 160px;
}

.cat-panel-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-panel-pic span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  font-size: 12.5px;
  color: #fff;
  background: linear-gradient(180deg, rgba(28, 18, 10, 0), rgba(28, 18, 10, 0.72));
}

.cat-group-title {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.cat-group-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.cat-group-links a {
  font-size: 13px;
  color: var(--text-sub);
}

/* ================= 页脚 ================= */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 36px 0;
}

.footer-col h4 {
  margin-bottom: 12px;
}

.footer-col p {
  color: var(--text-sub);
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
}

.footer-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.footer-meta .dot {
  color: #c9cfd8;
}

.footer-icp {
  color: var(--muted);
}

.footer-icp:hover {
  color: var(--brand);
}

/* ================= 首页 ================= */
.hero-kitchen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  margin-bottom: 30px;
}

/* 焦点图 */
.hero-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #2b2118;
  height: 380px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px 40px;
  color: #fff;
  background: linear-gradient(180deg, rgba(28, 18, 10, 0) 35%, rgba(28, 18, 10, 0.78) 100%);
}

.hero-slide-tag {
  align-self: flex-start;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(4px);
  margin-bottom: 10px;
}

.hero-slide-mask h2 {
  font-size: 30px;
  margin: 0 0 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-slide-mask p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-slide-cta {
  margin-top: 14px;
  align-self: flex-start;
  font-size: 13px;
  padding: 7px 18px;
  border-radius: 20px;
  background: var(--brand);
  color: #fff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(24, 16, 10, 0.42);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease;
}

.hero-arrow:hover {
  background: rgba(24, 16, 10, 0.72);
}

.hero-prev {
  left: 14px;
}
.hero-next {
  right: 14px;
}

.hero-dots {
  position: absolute;
  left: 40px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-dots button.active {
  width: 26px;
  border-radius: 5px;
  background: var(--brand);
}

/* 首页右侧保障面板 */
.hero-side {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-side-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-side-head strong {
  font-size: 16px;
}

.hero-side-head span {
  font-size: 12px;
  color: var(--muted);
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--text-sub);
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.hero-points .ico {
  font-size: 15px;
  line-height: 1.4;
}

.hero-side-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 类目实物图卡片 */
.cat-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.cat-card-pic {
  aspect-ratio: 1 / 1;
  background: var(--bg-warm);
  overflow: hidden;
}

.cat-card-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.cat-card:hover .cat-card-pic img {
  transform: scale(1.06);
}

.cat-card-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cat-card-info strong {
  font-size: 14px;
}

.cat-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 12px;
  color: var(--muted);
}

.cat-card-links em {
  font-style: normal;
}

/* 服务保障条 */
.service-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.service-ico {
  font-size: 24px;
  line-height: 1.2;
}

.service-item strong {
  display: block;
  margin-bottom: 2px;
}

.service-item p {
  font-size: 12.5px;
}

.section {
  margin-bottom: 34px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
}

.section-head a {
  font-size: 13px;
  color: var(--text-sub);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* 商品卡片 */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  color: var(--text);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.product-card-cover {
  aspect-ratio: 1 / 1;
  background: var(--bg-warm);
  overflow: hidden;
}

.product-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-cover img {
  transform: scale(1.04);
}

.product-card-body {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card-title {
  font-size: 14px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.product-card-sub {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
}

.product-card-price .price {
  font-size: 19px;
}

.product-card-price .sales {
  margin-left: auto;
}

.shop-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--text-sub);
  background: var(--bg-warm);
  border-radius: 4px;
  padding: 1px 8px;
}

/* ================= 商品列表页 ================= */
.list-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
}

.filter-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  height: fit-content;
}

.filter-panel h4 {
  margin-bottom: 10px;
  font-size: 14px;
}

.filter-panel ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.filter-panel li a {
  display: block;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 13px;
}

.filter-panel li a:hover,
.filter-panel li a.active {
  background: var(--brand-soft);
  color: var(--brand);
}

.filter-panel li.lv2 a {
  padding-left: 18px;
  font-size: 12.5px;
}

.sort-bar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow);
  font-size: 13px;
}

.sort-bar span.label {
  color: var(--muted);
  margin-right: 4px;
}

.sort-bar a {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
}

.sort-bar a.active {
  background: var(--brand);
  color: #fff;
}

.sort-bar .result-count {
  margin-left: auto;
  color: var(--muted);
}

/* ================= 商品详情 ================= */
.detail-layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 28px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.gallery-main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-warm);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.gallery-thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
}

.gallery-thumbs img.active {
  border-color: var(--brand);
}

.detail-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.detail-subtitle {
  color: var(--text-sub);
  margin-bottom: 16px;
}

.detail-price-box {
  background: linear-gradient(90deg, var(--brand-soft), var(--white));
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.detail-price-box .price {
  font-size: 30px;
}

.detail-meta {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

.spec-group {
  margin-bottom: 16px;
}

.spec-group .spec-name {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.spec-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spec-value {
  padding: 7px 16px;
  border: 1px solid #dfe3e9;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  background: var(--white);
  transition: all 0.15s ease;
}

.spec-value:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.spec-value.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.spec-value.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.buy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.quantity-box {
  display: flex;
  align-items: center;
  border: 1px solid #dfe3e9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 42px;
}

.quantity-box button {
  width: 38px;
  height: 100%;
  border: none;
  background: var(--bg-warm);
  cursor: pointer;
  font-size: 16px;
  color: var(--text-sub);
}

.quantity-box button:hover {
  color: var(--brand);
}

.quantity-box input {
  width: 56px;
  height: 100%;
  border: none;
  border-left: 1px solid #dfe3e9;
  border-right: 1px solid #dfe3e9;
  text-align: center;
  border-radius: 0;
  box-shadow: none !important;
}

.stock-hint {
  font-size: 12px;
  color: var(--muted);
}

.shop-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--bg-warm);
  border-radius: var(--radius);
}

.detail-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
  box-shadow: var(--shadow);
}

.detail-section h3 {
  padding-left: 12px;
  border-left: 3px solid var(--brand);
  margin-bottom: 18px;
}

.detail-content {
  color: var(--text-sub);
  line-height: 1.9;
  word-break: break-all;
}

.detail-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 10px 0;
}

/* ================= 购物车 ================= */
.cart-group {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.cart-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}

.cart-row {
  display: grid;
  grid-template-columns: 36px 90px minmax(0, 1fr) 140px 120px 100px 70px;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.cart-row:last-child {
  border-bottom: none;
}

.cart-row img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-warm);
}

.cart-row .title {
  font-size: 14px;
  margin-bottom: 4px;
  display: block;
}

.cart-row .title:hover {
  color: var(--brand);
}

.cart-row .spec {
  font-size: 12px;
  color: var(--muted);
}

.cart-row .subtotal {
  font-weight: 700;
  color: var(--brand);
  font-size: 16px;
}

.cart-row.invalid {
  opacity: 0.6;
}

.cart-bar {
  position: sticky;
  bottom: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  z-index: 20;
}

.cart-bar .checkbox-line {
  min-width: 90px;
}

.cart-bar .total-box {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-bar .total-box .price {
  font-size: 24px;
}

/* ================= 结算页 ================= */
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.address-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.address-item {
  display: block;
  position: relative;
  border: 1px solid #dfe3e9;
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--white);
}

.address-item:hover {
  border-color: var(--brand);
}

.address-item input {
  position: absolute;
  opacity: 0;
}

.address-item:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.address-item .name {
  font-weight: 600;
  margin-bottom: 4px;
}

.address-item .addr {
  font-size: 12.5px;
  color: var(--text-sub);
}

.address-item .default-tag {
  position: absolute;
  top: 12px;
  right: 12px;
}

.order-preview-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.order-preview-item:last-child {
  border-bottom: none;
}

.order-preview-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-warm);
}

.summary-box {
  position: sticky;
  top: 90px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--text-sub);
  font-size: 13px;
}

.summary-line.total {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 14px;
  font-size: 15px;
  color: var(--text);
}

.summary-line.total .price {
  font-size: 24px;
}

/* ================= 支付 / 结果 ================= */
.pay-box {
  max-width: 720px;
  margin: 0 auto;
}

.pay-amount {
  text-align: center;
  padding: 28px 0;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 20px;
}

.pay-amount .label {
  color: var(--muted);
  font-size: 13px;
}

.pay-amount .price {
  display: block;
  font-size: 40px;
  margin-top: 6px;
}

.pay-methods {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.pay-method {
  flex: 1;
  border: 1px solid #dfe3e9;
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
}

.pay-method.active {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.pay-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.result-box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.result-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #e8f7ee;
  color: var(--success);
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* ================= 订单 ================= */
.order-tabs {
  display: flex;
  gap: 4px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow-x: auto;
}

.order-tabs a {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  white-space: nowrap;
  font-size: 13.5px;
}

.order-tabs a.active {
  background: var(--brand);
  color: #fff;
}

.order-tabs a .count {
  color: var(--brand);
  font-weight: 600;
}

.order-tabs a.active .count {
  color: #fff;
}

.order-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}

.order-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 18px;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-sub);
}

.order-card-head .order-no {
  font-weight: 600;
  color: var(--text);
}

.order-card-head .status {
  margin-left: auto;
  font-weight: 600;
}

.order-card-body {
  display: flex;
}

.order-items {
  flex: 1;
  padding: 14px 18px;
  min-width: 0;
}

.order-item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
}

.order-item img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-warm);
}

.order-item .info {
  flex: 1;
  min-width: 0;
}

.order-item .info .title {
  font-size: 13.5px;
  display: block;
  margin-bottom: 4px;
}

.order-item .info .spec {
  font-size: 12px;
  color: var(--muted);
}

.order-side {
  width: 200px;
  border-left: 1px solid var(--line);
  padding: 16px;
  text-align: right;
  font-size: 13px;
  color: var(--text-sub);
}

.order-side .amount {
  color: var(--brand);
  font-weight: 700;
  font-size: 16px;
}

.order-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.order-actions form {
  display: inline-block;
}

/* 订单详情 */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  position: relative;
  padding: 0 0 18px 22px;
  border-left: 1px solid var(--line);
  font-size: 13px;
}

.timeline li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
}

.timeline .time {
  color: var(--muted);
  font-size: 12px;
}

/* ================= 账号中心 ================= */
.account-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.account-side {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
}

.account-side .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  text-align: center;
}

.stat-card .value {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
}

.stat-card .label {
  font-size: 12.5px;
  color: var(--text-sub);
}

.address-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  position: relative;
  background: var(--white);
}

.address-card .name {
  font-weight: 600;
  margin-bottom: 4px;
}

.address-card .addr {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.address-card .ops {
  display: flex;
  gap: 8px;
}

/* ================= 页脚条款链接 ================= */
.footer-links {
  border-top: 1px solid var(--line);
  background: var(--bg-warm);
}

.footer-links-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 12px 0;
  font-size: 13px;
}

.footer-links-inner a {
  color: var(--text-sub);
}

.footer-links-inner a:hover {
  color: var(--brand);
}

.footer-links-inner .dot {
  color: #c9cfd8;
}

/* ================= 平台条款文档页 ================= */
.legal-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.legal-side {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  position: sticky;
  top: 16px;
}

.legal-side h4 {
  margin-bottom: 10px;
}

.legal-side a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 13px;
}

.legal-side a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.legal-side a.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.legal-side .legal-back {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.legal-doc {
  padding: 26px 30px;
}

.legal-lead {
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.legal-section h3 {
  margin: 18px 0 8px;
}

.legal-section p,
.legal-section ul {
  color: var(--text-sub);
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-foot {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
}

/* 条款文档内的资费表格 */
.legal-table {
  margin: 12px 0 14px;
}

.legal-table-caption {
  font-size: 12.5px;
  margin-bottom: 8px;
}

.legal-table .data-table {
  font-size: 12.5px;
}

.legal-table .data-table td {
  color: var(--text-sub);
}

.legal-table .data-table th:first-child,
.legal-table .data-table td:first-child {
  white-space: nowrap;
  font-weight: 600;
  color: var(--text);
}

.legal-note {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--terracotta-soft);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-sub);
}

.legal-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.legal-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.legal-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.legal-card h3 {
  margin-bottom: 8px;
}

.legal-card p {
  font-size: 13px;
  margin-bottom: 12px;
}

.legal-card-more {
  color: var(--brand);
  font-size: 13px;
}

/* 文字型操作按钮（替代 javascript:; 空链接） */
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}

.link-btn:hover {
  color: var(--brand);
}

@media (max-width: 1280px) {
  .cat-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-kitchen {
    grid-template-columns: minmax(0, 1fr);
  }
  .brand-slogan {
    display: none;
  }
  .hero-slider {
    height: 300px;
  }
  .service-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .list-layout,
  .detail-layout,
  .checkout-grid,
  .account-grid,
  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cat-panel {
    min-width: 460px;
    grid-template-columns: minmax(0, 1fr);
  }
  .cat-panel-pic {
    display: none;
  }
  .legal-side {
    position: static;
  }
  .legal-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
