﻿/* ============================================================
   瑜玉阁玉石商城 - 响应式样式
   清新雅致的东方玉石风格：玉色青绿 + 暖白纸底 + 点缀金
   移动优先，平板/桌面自适应
   ============================================================ */

:root {
  --jade-900: #1E3A2D;
  --jade-800: #27503E;
  --jade-700: #2F6B54;
  --jade-600: #35805F;
  --jade-500: #3E8E6E;
  --jade-400: #63A888;
  --jade-300: #93C4AB;
  --jade-200: #C2DDCF;
  --jade-100: #E2F0E9;
  --jade-50:  #F2F8F5;
  --paper:    #FAF8F3;
  --card:     #FFFFFF;
  --gold:     #B08D4F;
  --gold-light: #D8BC85;
  --red:      #C0432B;
  --red-light:#FBEDE9;
  --text:     #2A3B34;
  --muted:    #84948B;
  --line:     #E7EBE5;
  --line-dark:#D5DCD5;
  --shadow:   0 2px 12px rgba(30, 58, 45, 0.06);
  --shadow-lg:0 8px 30px rgba(30, 58, 45, 0.10);
  --radius:   14px;
  --serif: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --sans: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===== 头部购物车下拉（迷你购物车） ===== */
.cart-wrap { position: relative; display: inline-flex; }
.cart-drop { position: absolute; right: -10px; top: calc(100% + 10px); width: 320px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 60; }
.cart-wrap:hover .cart-drop, .cart-wrap:focus-within .cart-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.cart-drop::before { content: ""; position: absolute; top: -6px; right: 24px; width: 10px; height: 10px; background: var(--card); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.cart-drop .cd-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; text-decoration: none; }
.cart-drop .cd-item:hover { background: var(--jade-50); }
.cart-drop .cd-item img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); flex: 0 0 auto; }
.cart-drop .cd-info { flex: 1; min-width: 0; }
.cart-drop .cd-info b { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-drop .cd-info i { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.cart-drop .cd-info em { display: block; font-style: normal; font-size: 12.5px; color: var(--jade-600); font-weight: 700; }
.cart-drop .cd-empty { text-align: center; color: var(--muted); font-size: 12.5px; padding: 22px 0 14px; }
.cart-drop .cd-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); margin-top: 4px; padding: 10px 8px 4px; font-size: 12.5px; color: var(--muted); }
.cart-drop .cd-foot b { color: var(--jade-600); }
.cart-drop .cd-go { background: var(--jade-500); color: #fff; border-radius: 18px; padding: 6px 18px; font-size: 12.5px; text-decoration: none; }
.cart-drop .cd-go:hover { background: var(--jade-600); color: #fff; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.65;
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.serif { font-family: var(--serif); }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.hide { display: none !important; }
.flex { display: flex; }
.between { display: flex; align-items: center; justify-content: space-between; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; }
.price { color: var(--red); font-weight: 700; font-family: var(--sans); }
.price::before { content: "¥"; font-size: 0.72em; margin-right: 1px; font-weight: 600; }
.price-origin { color: var(--muted); text-decoration: line-through; font-size: 12px; margin-left: 6px; font-weight: 400; }
.price-origin::before { content: "¥"; }

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  height: 60px; display: flex; align-items: center; gap: 18px;
}
.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo svg { width: 34px; height: 34px; }
.logo .logo-img { height: 42px; width: auto; max-width: 240px; object-fit: contain; display: block; }
.logo-name { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: 4px; color: var(--jade-800); }
.logo-sub { font-size: 10px; letter-spacing: 2px; color: var(--gold); margin-top: -4px; }
.nav-main { display: none; gap: 26px; margin-left: 8px; }
.nav-main a {
  font-size: 15px; color: var(--text); padding: 4px 2px; position: relative;
  transition: color .2s;
}
.nav-main a:hover, .nav-main a.active { color: var(--jade-600); }
.nav-main a.active::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  width: 18px; height: 2px; border-radius: 2px; background: var(--jade-500);
}
.header-search {
  flex: 1; min-width: 0; max-width: 380px; margin-left: auto;
  display: flex; align-items: center;
  background: var(--jade-50); border: 1px solid var(--line);
  border-radius: 999px; padding: 0 6px 0 14px; height: 38px;
  transition: border-color .2s, box-shadow .2s;
}
.header-search:focus-within { border-color: var(--jade-300); box-shadow: 0 0 0 3px var(--jade-100); }
.header-search input { flex: 1; border: none; background: none; outline: none; font-size: 13px; min-width: 0; }
.header-search input::placeholder { color: var(--muted); }
.header-search button {
  border: none; background: var(--jade-600); color: #fff;
  width: 62px; height: 28px; border-radius: 999px; font-size: 13px; cursor: pointer;
  transition: background .2s;
}
.header-search button:hover { background: var(--jade-700); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; color: var(--jade-800);
  position: relative; transition: background .2s; cursor: pointer;
}
.icon-btn:hover { background: var(--jade-50); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn .badge {
  position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px;
  background: var(--red); color: #fff; border-radius: 999px;
  font-size: 10px; line-height: 16px; text-align: center; padding: 0 4px;
}
.menu-toggle { display: flex; }
.nav-drawer {
  display: none; background: #fff; border-bottom: 1px solid var(--line);
  padding: 8px 16px 14px;
}
.nav-drawer.open { display: block; }
.nav-drawer a { display: block; padding: 11px 4px; font-size: 15px; border-bottom: 1px dashed var(--line); }
.nav-drawer a:last-child { border-bottom: none; }

/* ============ 首页轮播 ============ */
.hero { margin-top: 14px; }
.hero .swiper-container {
  position: relative;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 2 / 1;
}
.hero .swiper-wrapper { height: 100%; }
.hero .swiper-slide { position: relative; height: 100%; background: var(--jade-50); }
.hero .swiper-slide a { display: block; height: 100%; }
.hero .swiper-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .swiper-pagination-bullet { background: #fff; opacity: .55; }
.hero .swiper-pagination-bullet-active { background: var(--jade-600); opacity: 1; width: 18px; border-radius: 4px; }
.hero .swiper-button-prev, .hero .swiper-button-next {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.85);
  color: var(--jade-700); box-shadow: 0 2px 8px rgba(30,58,45,.18); transition: background .2s;
}
.hero .swiper-button-prev:hover, .hero .swiper-button-next:hover { background: #fff; }
.hero .swiper-button-prev::after, .hero .swiper-button-next::after { font-size: 15px; font-weight: 700; }
.hero .swiper-button-next { right: 12px; }
.hero .swiper-button-prev { left: 12px; }
@media (max-width: 767px) {
  .hero .swiper-button-prev, .hero .swiper-button-next { display: none; }
}

/* ============ 分类快捷导航 ============ */
.cat-nav { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 10px; margin-top: 14px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 6px; }
.cat-item { text-align: center; }
.cat-item img { width: 62px; height: 62px; margin: 0 auto; border-radius: 18px; transition: transform .25s; }
.cat-item:hover img { transform: translateY(-3px); }
.cat-item p { margin-top: 7px; font-size: 13px; color: var(--text); }

/* ============ 通用区块 ============ */
.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-bottom: 16px; position: relative; }
.section-head .ornament { width: 42px; height: auto; opacity: .8; }
.section-title { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: 5px; color: var(--jade-900); }
.section-sub { font-size: 12px; color: var(--gold); letter-spacing: 2px; margin-top: 2px; text-align: center; }
.section-more { position: absolute; right: 0; bottom: 2px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 2px; }
.section-more:hover { color: var(--jade-600); }

/* ============ 商品卡片 ============ */
.pro-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pro-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column; position: relative;
}
.pro-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pro-card .img-wrap { position: relative; aspect-ratio: 1/1; background: var(--jade-50); overflow: hidden; }
.pro-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pro-card:hover .img-wrap img { transform: scale(1.05); }
.pro-tag {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff; font-size: 11px; padding: 2px 9px; border-radius: 999px; letter-spacing: 1px;
}
.pro-tag.green { background: linear-gradient(135deg, var(--jade-400), var(--jade-600)); }
.pro-card .body { padding: 10px 12px 13px; display: flex; flex-direction: column; flex: 1; }
.pro-card .title {
  font-size: 14px; line-height: 1.45; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.pro-card .desc {
  font-size: 12px; color: var(--muted); margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.pro-card .foot { margin-top: auto; padding-top: 9px; display: flex; align-items: baseline; justify-content: space-between; }
.pro-card .sales { font-size: 11px; color: var(--muted); }

/* ============ 筛选栏 ============ */
.filter-bar {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  margin-top: 14px; overflow: hidden;
}
.filter-sorts { display: flex; border-bottom: 1px solid var(--line); }
.filter-sorts a {
  flex: 1; text-align: center; padding: 12px 4px; font-size: 13px; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
  transition: color .2s; position: relative;
}
.filter-sorts a.active { color: var(--jade-600); font-weight: 600; }
.filter-sorts a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 26px; height: 2px; background: var(--jade-500); border-radius: 2px;
}
.filter-sorts .arrow { font-size: 9px; line-height: 1; display: inline-flex; flex-direction: column; }
.filter-sorts .arrow i { font-style: normal; color: #C6CFC7; }
.filter-sorts .arrow i.on { color: var(--jade-600); }
.filter-cats { display: flex; gap: 8px; padding: 12px; overflow-x: auto; scrollbar-width: none; }
.filter-cats::-webkit-scrollbar { display: none; }
.filter-cats a {
  flex-shrink: 0; padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: var(--jade-50); color: var(--text); border: 1px solid var(--line);
  transition: all .2s; cursor: pointer;
}
.filter-cats a.active { background: var(--jade-600); color: #fff; border-color: var(--jade-600); }
.price-filter { padding: 0 12px 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.price-filter a {
  padding: 5px 12px; border-radius: 999px; font-size: 12px; cursor: pointer;
  background: #fff; color: var(--muted); border: 1px solid var(--line-dark);
}
.price-filter a.active { color: var(--jade-700); border-color: var(--jade-400); background: var(--jade-50); font-weight: 600; }

/* ============ 面包屑/页面头 ============ */
.page-head { padding: 18px 0 4px; }
.page-title { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: 3px; color: var(--jade-900); }
.crumb { font-size: 12px; color: var(--muted); margin-top: 4px; }
.crumb a:hover { color: var(--jade-600); }

/* ============ 商品详情 ============ */
.detail-layout { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 14px; }
/* 关键：grid 单元格默认 min-width:auto，Swiper loop 复制 slide 后 flex 行的最小内容宽
   会反向撑大 1fr 轨道（容器越量越大，图片被放大成模糊色块），必须显式清零 */
.detail-layout > div { min-width: 0; }
.gallery {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); max-width: 100%;
  aspect-ratio: 1 / 1; /* 大图框强制 1:1，与图片大小一致，不留白 */
  position: relative;
}
.gallery .swiper-container,
.gallery .swiper-wrapper,
.gallery .swiper-slide { height: 100% !important; }
.gallery .swiper-slide { display: flex; align-items: center; justify-content: center; background: var(--jade-50); }
.gallery .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .swiper-pagination { bottom: 10px; }
.gallery .swiper-pagination-bullet { background: var(--jade-700); opacity: .4; }
.gallery .swiper-pagination-bullet-active { opacity: 1; }
.info-panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.info-name { font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.5; }
.info-summary { color: var(--muted); font-size: 13px; margin-top: 6px; }
.info-price-row {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--red-light), #FDF6EF);
  border-radius: 12px; padding: 12px 14px; margin-top: 12px;
}
.info-price-row .now { font-size: 26px; }
.info-price-row .sales { font-size: 12px; color: var(--muted); margin-left: auto; }
.info-meta { display: flex; gap: 18px; margin-top: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.info-meta b { color: var(--text); font-weight: 600; }
.sku-block { margin-top: 16px; }
.sku-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.sku-list { display: flex; gap: 8px; flex-wrap: wrap; }
.sku-list a {
  padding: 7px 14px; border-radius: 10px; font-size: 13px; cursor: pointer;
  background: var(--jade-50); border: 1px solid var(--line); color: var(--text);
  transition: all .15s;
}
.sku-list a:hover { border-color: var(--jade-300); }
.sku-list a.active { border-color: var(--jade-600); background: var(--jade-100); color: var(--jade-800); font-weight: 600; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.qty-box { display: flex; align-items: center; border: 1px solid var(--line-dark); border-radius: 10px; overflow: hidden; }
.qty-box button {
  width: 34px; height: 34px; border: none; background: #fff; font-size: 17px; color: var(--jade-800);
  cursor: pointer; transition: background .15s;
}
.qty-box button:hover { background: var(--jade-50); }
.qty-box input { width: 52px; height: 34px; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; outline: none; font-size: 14px; }
.stock-tip { font-size: 12px; color: var(--muted); }
.detail-actions { display: flex; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 12px; padding: 12px 22px; font-size: 15px; cursor: pointer;
  transition: all .2s; text-align: center; font-weight: 600;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--jade-500), var(--jade-700)); color: #fff; box-shadow: 0 4px 14px rgba(62, 142, 110, .32); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(62, 142, 110, .42); }
.btn-buy { background: linear-gradient(135deg, #D85A3C, var(--red)); color: #fff; box-shadow: 0 4px 14px rgba(192, 67, 43, .3); }
.btn-buy:hover { box-shadow: 0 6px 18px rgba(192, 67, 43, .4); }
.btn-outline { background: #fff; color: var(--jade-700); border: 1px solid var(--jade-300); }
.btn-outline:hover { background: var(--jade-50); }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #fff; }
.btn-ghost { background: var(--jade-50); color: var(--jade-800); }
.btn-ghost:hover { background: var(--jade-100); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.article-attach { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.detail-content { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 16px; margin-top: 16px; overflow: hidden; }
.detail-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 12px auto; display: block; }
.detail-content p { margin: 10px 0; line-height: 1.9; color: #3D4F46; }
.detail-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.detail-tabs a { padding: 11px 2px; font-size: 15px; color: var(--muted); cursor: pointer; position: relative; }
.detail-tabs a.active { color: var(--jade-700); font-weight: 600; }
.detail-tabs a.active::after { content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); width: 22px; height: 2px; background: var(--jade-500); }
.eva-item { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.eva-item:last-child { border-bottom: none; }
.eva-head { display: flex; justify-content: space-between; font-size: 13px; }
.eva-head .name { font-weight: 600; color: var(--jade-800); }
.eva-head .time { color: var(--muted); font-size: 12px; }
.eva-text { margin-top: 5px; font-size: 13px; color: #3D4F46; line-height: 1.7; }
.eva-stars { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #B08D4F; }
.eva-stars .eva-dim { display: inline-flex; align-items: center; }
.eva-stars .st { font-style: normal; font-size: 14px; line-height: 1; color: #DCD6C9; margin-left: 1px; letter-spacing: 1px; }
.eva-stars .st.on { color: #E8A33D; }
.eva-imgs { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.eva-imgs a { display: block; cursor: zoom-in; line-height: 0; }
.eva-imgs img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); transition: border-color .2s; }
.eva-imgs a:hover img { border-color: #E8A33D; }
/* ============ 商品咨询 ============ */
.zixun-form { margin-top: 12px; }
.zixun-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.6; resize: vertical; background: #fff; box-sizing: border-box; }
.zixun-form-bar { margin-top: 8px; text-align: right; }
.zixun-login-tip { margin-top: 14px; font-size: 13px; color: var(--muted); }
.zixun-login-tip a { color: var(--jade-700); }
.zixun-item { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.zixun-item:last-child { border-bottom: none; }
.zixun-head { display: flex; justify-content: space-between; font-size: 13px; }
.zixun-head .name { font-weight: 600; color: var(--jade-800); }
.zixun-head .time, .zixun-a .time { color: var(--muted); font-size: 12px; }
.zixun-q { margin-top: 6px; font-size: 13.5px; color: #2E3F37; line-height: 1.7; }
.zixun-q b { color: var(--jade-700); }
.zixun-a { margin-top: 6px; font-size: 13px; color: #3D4F46; line-height: 1.7; background: var(--jade-50); border-radius: 8px; padding: 8px 10px; }
.zixun-a b { color: var(--jade-700); }
.zixun-a .time { margin-left: 8px; }
.zixun-a-none { background: #F6F7F5; color: var(--muted); }
.zixun-reply-bar { margin-top: 6px; font-size: 12.5px; }
.zixun-reply-bar a { color: var(--jade-700); }
.zixun-reply { margin-top: 8px; }
.zixun-reply textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; line-height: 1.6; resize: vertical; box-sizing: border-box; }
.zixun-reply .btn { margin-top: 6px; }
.empty-box { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-box svg { width: 74px; height: 74px; margin: 0 auto 12px; opacity: .65; }
.empty-box p { font-size: 14px; }
.empty-box .btn { margin-top: 16px; }

/* ============ 购物车 ============ */
.cart-list { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.cart-item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; display: flex; gap: 12px; align-items: center; }
.cart-check { flex-shrink: 0; width: 22px; height: 22px; }
.cart-check input { width: 20px; height: 20px; accent-color: var(--jade-600); cursor: pointer; }
.cart-item .img { width: 88px; height: 88px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--jade-50); }
.cart-item .img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .title { font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item .sku { font-size: 12px; color: var(--muted); background: var(--jade-50); display: inline-block; padding: 1px 8px; border-radius: 6px; margin-top: 4px; }
.cart-item .row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.cart-bar {
  position: sticky; bottom: 60px; margin-top: 14px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 12px 16px; display: flex; align-items: center; gap: 12px; z-index: 50;
}
.cart-bar .total { flex: none; margin-left: auto; text-align: right; font-size: 13px; color: var(--muted); }
.cart-bar .total b { font-size: 19px; }
.cart-bar .check-all { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.cart-bar .del-checked { font-size: 12.5px; color: #8a958e; margin-left: 14px; flex: none; }
.cart-bar .del-checked:hover { color: var(--red); }
.link-del { font-size: 12px; color: var(--muted); cursor: pointer; }
.link-del:hover { color: var(--red); }

/* ============ 确认订单 ============ */
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-top: 14px; }
.panel-title { font-size: 15px; font-weight: 600; color: var(--jade-900); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.panel-title::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: linear-gradient(var(--jade-400), var(--jade-600)); }
.addr-card { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.addr-card .ic { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--jade-50); display: flex; align-items: center; justify-content: center; color: var(--jade-600); }
.addr-card .ic svg { width: 20px; height: 20px; }
.addr-card .txt { flex: 1; min-width: 0; }
.addr-card .name { font-weight: 600; font-size: 15px; }
.addr-card .name span { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 10px; }
.addr-card .detail { font-size: 13px; color: #4A5B52; margin-top: 3px; line-height: 1.6; }
.addr-card .arrow { color: var(--line-dark); align-self: center; }
.order-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.order-item:last-child { border-bottom: none; }
.order-item .img { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--jade-50); }
.order-item .img img { width: 100%; height: 100%; object-fit: cover; }
.order-item .info { flex: 1; min-width: 0; }
.order-item .title { font-size: 14px; line-height: 1.45; }
.order-item .sku { font-size: 12px; color: var(--muted); margin-top: 3px; }
.order-item .row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.amount-row { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; }
.amount-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 11px; font-weight: 600; }
.amount-row.total b { font-size: 20px; }
.amount-row .label { color: var(--muted); }
/* 积分抵扣（确认订单页） */
.point-row .point-ctrl { display: inline-flex; align-items: center; gap: 6px; }
/* 步进器：− 输入 + 三段一体圆角 */
.point-row .point-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-dark); border-radius: 10px; overflow: hidden; background: #fff; }
.point-row .point-stepper .step-btn { width: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 40px; color: var(--jade-700); background: #fff; cursor: pointer; -webkit-user-select: none; user-select: none; text-decoration: none; }
.point-row .point-stepper .step-btn:active { background: var(--jade-100); }
.point-row .point-stepper .point-input { width: 64px; height: 40px; border: none; border-left: 1px solid var(--line-dark); border-right: 1px solid var(--line-dark); border-radius: 0; padding: 0 4px; font-size: 15px; text-align: center; background: #fff; color: var(--jade-900); }
.point-row .point-stepper .point-input:focus { outline: none; box-shadow: none; border-left: 1px solid var(--jade-500); border-right: 1px solid var(--jade-500); }
.point-row .point-unit { color: var(--muted); font-size: 12px; }
.point-row .point-max { color: var(--jade-500); font-size: 12px; padding: 6px 10px; border: 1px solid var(--jade-200); border-radius: 8px; }
.point-tip { padding: 0 0 8px; font-size: 12px; color: var(--muted); text-align: right; }
.point-tip b { color: var(--jade-700); }
.point-warn { color: #B26A00; font-style: normal; }
.point-line .point-minus { color: #C0432B; font-weight: 600; }
.point-line .point-minus b { font-size: 15px; }
.submit-bar { position: sticky; bottom: 60px; margin-top: 14px; z-index: 50; }
.submit-bar .panel { display: flex; align-items: center; gap: 12px; margin-top: 0; box-shadow: var(--shadow-lg); }
.submit-bar .amount { flex: 1; font-size: 13px; color: var(--muted); }
.submit-bar .amount b { font-size: 20px; }

/* ============ 收银台 ============ */
.pay-hero { text-align: center; padding: 30px 20px 24px; }
.pay-hero .label { font-size: 13px; color: var(--muted); letter-spacing: 2px; }
.pay-hero .amount { font-size: 40px; font-weight: 700; color: var(--jade-900); font-family: var(--serif); margin-top: 6px; }
.pay-hero .amount::before { content: "¥"; font-size: 22px; margin-right: 4px; color: var(--muted); }
.pay-hero .order-no { font-size: 12px; color: var(--muted); margin-top: 8px; }
.pay-methods { display: flex; flex-direction: column; gap: 12px; }
.pay-method {
  display: flex; align-items: center; gap: 14px; padding: 15px 16px; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  transition: all .2s;
}
.pay-method:hover { border-color: var(--jade-300); }
.pay-method.selected { border-color: var(--jade-500); background: var(--jade-50); box-shadow: 0 0 0 3px var(--jade-100); }
.pay-method .ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pay-method .ic svg { width: 24px; height: 24px; }
.pay-method .ic.wechat { background: #E8F7EE; color: #1AAD19; }
.pay-method .ic.alipay { background: #E8F3FD; color: #1677FF; }
.pay-method .ic.balance { background: var(--jade-100); color: var(--jade-700); }
.pay-method .name { font-size: 15px; font-weight: 600; }
.pay-method .desc { font-size: 12px; color: var(--muted); }
.pay-method .radio { margin-left: auto; width: 20px; height: 20px; accent-color: var(--jade-600); }
.result-box { text-align: center; padding: 46px 20px; }
.result-box .ic { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.result-box .ic.ok { background: var(--jade-100); color: var(--jade-600); }
.result-box .ic svg { width: 44px; height: 44px; }
.result-box h3 { font-family: var(--serif); font-size: 22px; letter-spacing: 3px; color: var(--jade-900); }
.result-box p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.result-box .ops { display: flex; gap: 12px; justify-content: center; margin-top: 22px; }

/* ============ 登录/注册 ============ */
.auth-wrap { max-width: 430px; margin: 26px auto; }
.auth-card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 30px 26px; }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head .logo-name { font-size: 26px; }
.auth-head p { font-size: 12px; color: var(--gold); letter-spacing: 3px; margin-top: 4px; }
.form-row { margin-bottom: 15px; }
.form-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form-input {
  width: 100%; height: 44px; border: 1.5px solid var(--line-dark); border-radius: 11px;
  padding: 0 14px; font-size: 14px; outline: none; background: #fff; transition: all .2s;
}
.form-input:focus { border-color: var(--jade-400); box-shadow: 0 0 0 3px var(--jade-100); }
textarea.form-input { height: auto; padding: 10px 14px; line-height: 1.6; resize: vertical; }
select.form-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.form-tip { font-size: 12px; color: var(--red); margin-top: 5px; min-height: 16px; }
.form-links { display: flex; justify-content: space-between; font-size: 13px; margin: 4px 0 18px; }
.form-links a { color: var(--jade-600); }
.auth-alt { text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
.auth-alt a { color: var(--jade-600); font-weight: 600; }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.radio-row input { accent-color: var(--jade-600); width: 17px; height: 17px; }

/* ============ 会员中心 ============ */
.member-hero {
  background: linear-gradient(150deg, var(--jade-700) 0%, var(--jade-500) 55%, var(--jade-400) 100%);
  border-radius: 0 0 26px 26px; padding: 26px 20px 58px; color: #fff; position: relative; overflow: hidden;
}
.member-hero::after {
  content: ""; position: absolute; right: -46px; top: -46px; width: 190px; height: 190px;
  border-radius: 50%; border: 26px solid rgba(255, 255, 255, .09);
}
.member-hero::before {
  content: ""; position: absolute; left: -30px; bottom: -60px; width: 130px; height: 130px;
  border-radius: 50%; border: 18px solid rgba(255, 255, 255, .07);
}
.m-user { display: flex; align-items: center; gap: 15px; position: relative; z-index: 2; }
.m-user .avatar {
  width: 64px; height: 64px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .75);
  object-fit: cover; background: rgba(255, 255, 255, .25);
}
.m-user .name { font-size: 18px; font-weight: 600; letter-spacing: 1px; }
.m-user .sub { font-size: 12px; opacity: .82; margin-top: 3px; }
.m-stats {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  margin: -40px 16px 0; padding: 15px 8px; display: flex; position: relative; z-index: 3;
}
.m-stats a { flex: 1; text-align: center; }
.m-stats .num { font-size: 17px; font-weight: 700; color: var(--jade-800); font-family: var(--serif); }
.m-stats .lab { font-size: 12px; color: var(--muted); margin-top: 2px; }
.m-menu { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin: 14px 16px; padding: 6px 14px; }
.m-menu .group-title { font-size: 13px; color: var(--muted); padding: 14px 0 8px; letter-spacing: 1px; }
.m-menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 0; }
.m-menu-grid a { text-align: center; padding: 12px 2px; border-radius: 12px; transition: background .2s; }
.m-menu-grid a:hover { background: var(--jade-50); }
.m-menu-grid .ic {
  width: 42px; height: 42px; margin: 0 auto; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; color: var(--jade-600);
}
.m-menu-grid .ic svg { width: 21px; height: 21px; }
.m-menu-grid p { font-size: 12px; margin-top: 6px; color: var(--text); }
.m-menu-grid .ic.gold { background: #F7F0E3; color: var(--gold); }
.m-menu-grid .ic.green { background: var(--jade-100); color: var(--jade-700); }
.m-menu-grid .ic.red { background: var(--red-light); color: var(--red); }
.m-menu-grid .ic.blue { background: #E9F1FA; color: #3B6EA5; }

/* ============ 订单 ============ */
.order-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 14px; overflow: hidden; }
.order-card .head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted);
}
.order-card .head .no { font-family: var(--sans); }
.order-card .head .no-link { color: var(--jade-700); text-decoration: none; border-bottom: 1px dashed var(--jade-300); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.order-card .head .no-link:hover { color: var(--jade-500); border-bottom-color: var(--jade-500); }
.order-card .status { color: var(--jade-700); font-weight: 600; font-size: 13px; }
.order-card .status.red { color: var(--red); }
.order-card .body { padding: 4px 16px; }
.order-card .foot { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.order-tabs { display: flex; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-top: 14px; }
.order-tabs a { flex: 1; text-align: center; padding: 13px 4px; font-size: 13px; color: var(--muted); position: relative; cursor: pointer; }
.order-tabs a.active { color: var(--jade-700); font-weight: 600; }
.order-tabs a.active::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 24px; height: 2.5px; border-radius: 2px; background: var(--jade-500); }
.trace-list { padding-left: 18px; border-left: 2px dashed var(--line-dark); margin: 8px 4px 12px; }
.trace-list li { position: relative; padding: 9px 0 9px 12px; font-size: 13px; color: #4A5B52; }
.trace-list li::before { content: ""; position: absolute; left: -24px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: var(--jade-300); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--jade-200); }
.trace-list li:first-child { color: var(--jade-700); font-weight: 600; }
.trace-list li:first-child::before { background: var(--jade-500); }

/* 订单操作按钮（WebBllPage 返回的 order_btn1/2） */
.order_btn1, .order_btn2 {
    display: inline-block; padding: 7px 15px; border-radius: 999px; font-size: 12.5px;
    cursor: pointer; margin-left: 8px; transition: all .2s; border: 1px solid var(--line-dark);
    color: var(--muted); background: #fff;
}
.order_btn1:hover { border-color: var(--red); color: var(--red); }
.order_btn2 { border-color: var(--jade-500); color: var(--jade-700); background: var(--jade-50); font-weight: 600; }
.order_btn2:hover { background: var(--jade-500); color: #fff; }
/* 退款 / 售后：中性玉绿描边，区别于主按钮 */
.order_btn3 { display: inline-block; padding: 7px 15px; border-radius: 999px; font-size: 12.5px; cursor: pointer; margin-left: 8px; transition: all .2s; border: 1px solid var(--jade-300); color: var(--jade-700); background: #fff; }
.order_btn3:hover { background: var(--jade-50); }
/* 售后禁用态（订单完成超过一周） */
.order_btn_disabled { display: inline-block; padding: 7px 15px; border-radius: 999px; font-size: 12.5px; margin-left: 8px; border: 1px solid var(--line); color: #bbb; background: #f7f7f7; cursor: not-allowed; }
/* 会员页内搜索 */
.member-search { display: flex; gap: 8px; margin-top: 12px; }
.member-search .form-input { flex: 1; }
/* 会员页标题条 */
.member-head { display: flex; align-items: center; gap: 10px; padding: 16px 0 6px; }
.member-head .back {
    width: 34px; height: 34px; border-radius: 10px; background: var(--card); box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: center; color: var(--jade-800); cursor: pointer;
}
.member-head h1 { font-family: var(--serif); font-size: 19px; letter-spacing: 2px; color: var(--jade-900); }
.member-head .op { margin-left: auto; font-size: 13px; color: var(--jade-600); }

/* ============ 地址/银行卡 ============ */
.addr-item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-top: 12px; }
.addr-item .row1 { display: flex; align-items: baseline; gap: 10px; }
.addr-item .name { font-weight: 600; font-size: 15px; }
.addr-item .tel { color: var(--muted); font-size: 13px; }
.addr-item .default-tag { font-size: 11px; color: var(--gold); border: 1px solid var(--gold-light); border-radius: 6px; padding: 0 7px; line-height: 18px; }
.addr-item .detail { font-size: 13px; color: #4A5B52; margin-top: 5px; line-height: 1.6; }
.addr-item .ops { display: flex; gap: 16px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; }
.addr-item .ops a, .addr-item .ops span { color: var(--muted); cursor: pointer; }
.addr-item .ops a:hover, .addr-item .ops span:hover { color: var(--jade-600); }
.bank-card {
  background: linear-gradient(135deg, var(--jade-800), var(--jade-600));
  border-radius: 16px; padding: 18px; color: #fff; margin-top: 12px; position: relative; overflow: hidden;
}
.bank-card::after { content: ""; position: absolute; right: -24px; bottom: -34px; width: 110px; height: 110px; border-radius: 50%; border: 16px solid rgba(255,255,255,.08); }
.bank-card .bank-name { font-size: 14px; opacity: .9; }
.bank-card .card-no { font-size: 19px; letter-spacing: 2px; margin-top: 14px; font-family: var(--sans); }
.bank-card .holder { font-size: 12px; opacity: .75; margin-top: 10px; display: flex; justify-content: space-between; }
.bank-card .ops { display: flex; gap: 14px; margin-top: 12px; font-size: 12px; position: relative; z-index: 2; }
.bank-card .ops a { color: rgba(255,255,255,.85); }

/* ============ 文章/资讯 ============ */
.article-item { display: flex; gap: 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; margin-top: 12px; transition: transform .2s; }
.article-item:hover { transform: translateY(-2px); }
.article-item .img { width: 108px; height: 78px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--jade-50); }
.article-item .img img { width: 100%; height: 100%; object-fit: cover; }
.article-item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.article-item .title { font-size: 14.5px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-item .tags { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 5px; }
.article-item .tags .tag { font-size: 10.5px; line-height: 1.6; color: var(--jade-700); background: var(--jade-50); border: 1px solid var(--jade-200); border-radius: 4px; padding: 0 7px; white-space: nowrap; }
.article-item .summary { font-size: 12px; color: var(--muted); margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-item .time { font-size: 11px; color: var(--muted); margin-top: auto; }
.article-body { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px; margin-top: 14px; }
.article-body h1 { font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--jade-900); }
.article-body .meta { font-size: 12px; color: var(--muted); margin: 8px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.article-body .content { line-height: 2; color: #3D4F46; }
.article-body .content p { margin: 10px 0; }
.article-body .content img { border-radius: 10px; margin: 12px auto; }

/* ============ 页脚 ============ */
.site-footer { background: var(--jade-900); color: rgba(255, 255, 255, .78); margin-top: 40px; }
/* 服务保障条（首页「品读饮食文化」下方） */
.service-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 26px;
  background: #f6f7f4; color: #44544b; border-radius: 10px; padding: 16px 22px; margin: 28px 0 6px; }
.service-item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.service-item svg { width: 21px; height: 21px; color: #3E8E6E; flex: none; }
@media (max-width: 700px) { .service-bar { justify-content: flex-start; gap: 10px 22px; padding: 14px 16px; } .service-item { font-size: 12.5px; } }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 30px 0 22px; }
.foot-brand .logo-name { color: #fff; font-size: 22px; }
.foot-brand p { font-size: 12.5px; line-height: 1.9; margin-top: 10px; opacity: .75; max-width: 340px; text-align:c }
.foot-col h4 { font-size: 14px; color: #fff; letter-spacing: 2px; margin-bottom: 12px; font-family: var(--serif); }
.foot-col a { display: block; font-size: 13px; padding: 4px 0; opacity: .75; transition: opacity .2s; }
.foot-col a:hover { opacity: 1; }
.foot-contact { font-size: 13px; line-height: 2; opacity: .8; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .12); padding: 14px 0 18px; font-size: 12px; text-align: center; opacity: .6; line-height: 1.8; }
    .copyright a {
        text-decoration: underline;
       
    }
    .copyright img {
        width: 20px; display:block; margin:0 auto; text-align:center
      
    }

/* ============ 移动端底部导航 ============ */
.tabbar { display: none; }

/* ============ 响应式 ============ */
@media (min-width: 768px) {
  body { font-size: 14.5px; }
  .nav-main { display: flex; }
  .menu-toggle { display: none; }
  .pro-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
  .detail-layout { grid-template-columns: 1fr 1fr; align-items: start; }
  .foot-grid { grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr 1.1fr; }
  .hero .swiper-container { aspect-ratio: 3 / 1; }
  .m-menu-grid { grid-template-columns: repeat(4, 1fr); }
  .cart-bar, .submit-bar { bottom: 0; }
  .section-title { font-size: 24px; }
}
@media (min-width: 1024px) {
  .pro-grid { grid-template-columns: repeat(4, 1fr); }
  .container { padding: 0 24px; }
  .detail-layout { grid-template-columns: 480px 1fr; }
}
@media (max-width: 767px) {
  .header-inner { height: 54px; gap: 10px; }
  .logo-name { font-size: 18px; letter-spacing: 3px; }
  .header-actions .pc-only { display: none; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); padding: 5px 0 calc(5px + env(safe-area-inset-bottom));
  }
  .tabbar a { flex: 1; text-align: center; color: var(--muted); position: relative; padding: 3px 0; }
  .tabbar a.active { color: var(--jade-600); }
  .tabbar svg { width: 23px; height: 23px; }
  .tabbar p { font-size: 10.5px; margin-top: 1px; }
  .tabbar .badge {
    position: absolute; top: -1px; right: calc(50% - 22px); min-width: 15px; height: 15px;
    background: var(--red); color: #fff; border-radius: 999px; font-size: 9.5px; line-height: 15px; padding: 0 4px;
  }
  body { padding-bottom: 58px; }
  .pay-hero .amount { font-size: 34px; }
  .detail-actions .btn { flex: 1; padding: 12px 8px; font-size: 14px; }
  .auth-wrap { margin: 16px auto; }
  .auth-card { padding: 24px 18px; }
  .member-hero { border-radius: 0 0 22px 22px; }
}

/* ===== 列表页小类行（与大类 chips 区分：透明底、细边、小字） ===== */
.filter-subs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 12px; }
.filter-subs a { flex-shrink: 0; padding: 4px 12px; border-radius: 999px; font-size: 12px; background: transparent; color: #7a8a80; border: 1px solid var(--line); transition: all .2s; cursor: pointer; }
.filter-subs a:hover { color: var(--jade-700); border-color: var(--jade-400); }
.filter-subs a.active { color: var(--jade-700); border-color: var(--jade-500); background: var(--jade-50); font-weight: 600; }

/* ===== 头部登录头像 ===== */
.icon-btn .header-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: block; border: 2px solid var(--jade-100); }

/* ===== 详情页分享入口 + 分享弹窗（对齐 newmall） ===== */
.pd-share-entry { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); text-decoration: none; }
.pd-share-entry:hover { color: var(--jade-700); }
.pd-share-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999999; display: none; align-items: center; justify-content: center; }
.pd-share-modal.show { display: flex; }
.pd-share-mask { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); }
.pd-share-box { position: relative; z-index: 2; background: #fff; border-radius: 12px; width: 420px; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.22); }
.pd-share-head { position: relative; height: 52px; line-height: 52px; text-align: center; border-bottom: 1px solid #f0f0f0; flex-shrink: 0; font-size: 16px; color: #333; }
.pd-share-close { position: absolute; right: 0; top: 0; width: 52px; height: 52px; line-height: 52px; text-align: center; color: #999; font-size: 20px; text-decoration: none; }
.pd-share-close:hover { color: #333; }
.pd-share-body { padding: 26px 24px; }
.pd-share-options { display: flex; justify-content: space-around; }
.pd-share-options a { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.pd-share-options a i { width: 56px; height: 56px; line-height: 56px; text-align: center; border-radius: 50%; background: #f5f5f5; font-size: 24px; font-style: normal; margin-bottom: 8px; transition: background .2s; }
.pd-share-options a:hover i { background: var(--jade-50); }
.pd-share-options a span { font-size: 13px; color: #666; }
.pd-share-tip { margin: 20px 0 0; font-size: 12px; color: #999; text-align: center; line-height: 1.7; }
.pd-share-foot { padding: 0 24px 20px; }
.pd-share-btn { display: block; width: 100%; height: 42px; line-height: 42px; text-align: center; border-radius: 21px; background: var(--jade-600); color: #fff; font-size: 14px; text-decoration: none; border: none; cursor: pointer; box-sizing: border-box; }
.pd-share-btn:hover { background: var(--jade-700); color: #fff; }
.pd-poster-wrap { display: flex; justify-content: center; }
.pd-poster-card { width: 280px; background: #fff; border: 1px solid #f0f0f0; border-radius: 10px; padding: 12px; box-sizing: border-box; }
.pd-poster-img { display: block; width: 100%; height: 256px; object-fit: cover; border-radius: 6px; background: #f5f6f8; }
.pd-poster-info { padding: 10px 2px 6px; }
.pd-poster-title { margin: 0; font-size: 14px; color: #333; line-height: 1.5; max-height: 42px; overflow: hidden; }
.pd-poster-price-row { margin-top: 8px; }
.pd-poster-price { font-size: 20px; color: #C0432B; font-weight: 700; }
.pd-poster-market { margin-left: 8px; font-size: 13px; color: #999; text-decoration: line-through; }
.pd-poster-qr { display: flex; justify-content: flex-end; margin-top: 8px; min-height: 80px; }
.pd-poster-qr canvas, .pd-poster-qr img { display: block; }
.pd-poster-tip { margin-top: 4px; text-align: right; font-size: 12px; color: #bbb; }
.pd-qrcode-box { display: flex; align-items: center; justify-content: center; padding: 20px 0; min-height: 200px; }
.pd-qrcode-box canvas, .pd-qrcode-box img { display: block; }

/* ===== 开户行选择底部弹层（add_bankcard） ===== */
.bank-sheet { position: fixed; inset: 0; z-index: 99999; }
.bank-sheet-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.bank-sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 62vh; background: #fff; border-radius: 14px 14px 0 0; display: flex; flex-direction: column; overflow: hidden; }
.bank-sheet-head { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-size: 15px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line); }
.bank-sheet-close { font-size: 22px; line-height: 1; color: var(--muted); text-decoration: none; padding: 2px 6px; }
.bank-sheet-close:hover { color: var(--text); }
.bank-sheet-list { flex: 1; overflow-y: auto; margin: 0; padding: 6px 0 12px; list-style: none; }
.bank-sheet-list li { padding: 13px 16px; font-size: 14px; color: var(--text); border-bottom: 1px solid #f2f4f1; cursor: pointer; }
.bank-sheet-list li:active { background: var(--jade-50); }

/* ===== 详情页分组式规格选择（对齐参考站：组名 + 两列大按钮） ===== */
.sku-group { margin-bottom: 14px; }
.sku-group:last-child { margin-bottom: 0; }
.sku-group-name { font-size: 14px; color: var(--text); font-weight: 600; margin-bottom: 10px; }
.sku-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sku-opt {
  display: flex; align-items: center; justify-content: center;
  padding: 13px 8px; border: 1px solid var(--line-dark); border-radius: 8px;
  background: #fff; font-size: 14px; color: var(--text);
  transition: border-color .15s, background .15s, color .15s; cursor: pointer;
}
.sku-opt:hover { border-color: var(--jade-500); }
.sku-opt.active { border-color: var(--jade-600); background: var(--jade-50); color: var(--jade-700); font-weight: 600; }

/* ===== 详情页商品参数 tab ===== */
.param-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.param-table th, .param-table td { border-bottom: 1px solid var(--line); padding: 11px 8px; text-align: left; vertical-align: top; }
.param-table tr:last-child th, .param-table tr:last-child td { border-bottom: none; }
.param-table th { width: 96px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.param-table td { color: var(--text); }

/* ===== 详情页图廊：视频 slide + 缩略图横滚条 ===== */
.gallery-video { background: #000; }
.gallery-video video { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-thumbs {
  position: relative; margin-top: 10px; padding: 0 30px;
  height: 72px; /* 显式固定高度，防止被主图撑开 */
  overflow: hidden;
}
.gallery-thumbs .swiper-container,
.gallery-thumbs .swiper-wrapper,
.gallery-thumbs .swiper-slide { height: 100% !important; }
.gallery-thumbs .swiper-slide {
  width: 72px; height: 72px; border: 2px solid var(--line-dark); border-radius: 8px;
  overflow: hidden; cursor: pointer; opacity: .72; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .15s, border-color .15s;
}
.gallery-thumbs .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs .swiper-slide-thumb-active { border-color: var(--jade-600); opacity: 1; }
.gallery-thumbs .gt-video { background: var(--jade-900); color: #fff; }
.gallery-thumbs .gt-play { font-size: 20px; line-height: 1; }
.gt-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 24px; height: 24px; line-height: 22px; text-align: center; border-radius: 50%;
  background: rgba(0,0,0,.35); color: #fff; font-size: 16px; text-decoration: none;
}
.gt-arrow:hover { background: rgba(0,0,0,.55); }
.gt-prev { left: 0; }
.gt-next { right: 0; }


/* ============================================================
   SW-MINIPROGRAM-ALIGN
   拾味小馆：与小程序「效果」对齐（追加式覆盖，勿删上方原定义）
   仅覆盖 :root 变量 + 新增 sw-* 组件类，不与既有规则冲突。
   ============================================================ */
:root {
  --jade-900: #22262B;
  --jade-800: #3A4048;
  --jade-700: #4A5058;
  --jade-600: #D9532B;
  --jade-500: #E2704C;
  --jade-400: #EC9A7E;
  --jade-300: #F3BBA5;
  --jade-200: #F8D9CB;
  --jade-100: #FCEBE3;
  --jade-50:  #FFF1EB;
  --paper:    #F6F7F8;
  --card:     #FFFFFF;
  --gold:     #D9532B;
  --gold-light: #E2704C;
  --red:      #D9532B;
  --red-light:#FFF1EB;
  --text:     #22262B;
  --muted:    #9AA1A9;
  --line:     #EFF1F2;
  --line-dark:#E4E7E9;
  --shadow:   0 2px 12px rgba(30, 34, 40, .045);
  --shadow-lg:0 8px 30px rgba(30, 34, 40, .10);
  --radius:   16px;
  --serif: "PingFang SC", "Microsoft YaHei", "微软雅黑", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
body { background: var(--paper); font-family: var(--sans); }

/* 品牌卡：对应小程序 brand / cover */
.sw-brand { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; margin-top: 14px; }
.sw-brand__mark { width: 56px; height: 56px; border-radius: 16px; overflow: hidden; flex: 0 0 auto; background: linear-gradient(135deg, var(--jade-600), var(--jade-400)); display: flex; align-items: center; justify-content: center; color: #fff; }
.sw-brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.sw-brand__mark svg { width: 30px; height: 30px; }
.sw-brand__text { min-width: 0; }
.sw-brand__name { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: 1px; }
.sw-brand__cat { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.sw-brand__status { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--jade-600); background: var(--jade-50); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.sw-brand__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--jade-600); }

/* 门店信息卡：对应小程序 info card */
.sw-info { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 2px 16px; margin-top: 14px; }
.sw-info__row { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.sw-info__row + .sw-info__row { border-top: 1px solid var(--line); }
.sw-info__ic { width: 20px; height: 20px; color: var(--jade-600); flex: 0 0 auto; }
.sw-info__label { font-size: 13.5px; color: var(--muted); width: 76px; flex: 0 0 auto; }
.sw-info__value { font-size: 14px; color: var(--text); font-weight: 600; flex: 1; text-align: right; word-break: break-all; }
.sw-call { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 999px; background: var(--jade-600); color: #fff; font-size: 15px; font-weight: 600; margin-top: 14px; text-decoration: none; }
.sw-call:hover { color: #fff; opacity: .92; }
.sw-notice { text-align: center; font-size: 12px; color: var(--muted); padding: 18px 0 10px; }

/* 会员中心：用户卡 / 统计 / 资料行，对应小程序 user / stats / menu-group */
.sw-user { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; margin-top: 14px; }
.sw-user__avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; background: var(--jade-50); flex: 0 0 auto; }
.sw-user__name { font-size: 17px; font-weight: 700; color: var(--text); }
.sw-user__badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--jade-600); background: var(--jade-50); border-radius: 999px; padding: 3px 10px; margin-top: 6px; }
.sw-stats { display: flex; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 0; margin-top: 14px; }
.sw-stats__item { flex: 1; text-align: center; }
.sw-stats__num { font-size: 19px; font-weight: 700; color: var(--text); }
.sw-stats__label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.sw-stats__line { width: 1px; background: var(--line); }
.sw-group { border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; margin-top: 14px; background: var(--card); }
.sw-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); text-decoration: none; color: inherit; }
.sw-row + .sw-row { border-top: 1px solid var(--line); }
.sw-row:hover { background: var(--jade-50); }
.sw-row__icon { width: 36px; height: 36px; border-radius: 10px; background: var(--jade-50); color: var(--jade-600); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.sw-row__icon svg { width: 19px; height: 19px; }
.sw-row__text { font-size: 14.5px; font-weight: 600; flex: 1; }
.sw-row__value { font-size: 13px; color: var(--muted); }
.sw-row__hint { font-size: 12px; color: var(--jade-600); }
.sw-row__arrow { width: 16px; height: 16px; color: var(--muted); flex: 0 0 auto; }

/* 小票：与后台 dialog_print 小票、小程序订单详情一致 */
.sw-receipt { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 18px; margin-top: 14px; color: var(--text); }
.sw-receipt__head { text-align: center; padding-bottom: 14px; border-bottom: 1px dashed var(--line-dark); }
.sw-receipt__logo { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; margin: 0 auto 8px; display: block; }
.sw-receipt__name { font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.sw-receipt__sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.sw-receipt__meta { padding: 12px 0; border-bottom: 1px dashed var(--line-dark); font-size: 12.5px; line-height: 2; }
.sw-receipt__meta .k { color: var(--muted); }
.sw-receipt__goods { padding: 10px 0; border-bottom: 1px dashed var(--line-dark); }
.sw-receipt__line { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 13px; }
.sw-receipt__line .n { flex: 1; min-width: 0; }
.sw-receipt__line .q { color: var(--muted); font-size: 12px; white-space: nowrap; }
.sw-receipt__line .p { width: 76px; text-align: right; white-space: nowrap; }
.sw-receipt__sum { padding-top: 12px; font-size: 13px; }
.sw-receipt__sum .r { display: flex; justify-content: space-between; padding: 5px 0; }
.sw-receipt__sum .r.total { font-size: 16px; font-weight: 700; border-top: 1px dashed var(--line-dark); margin-top: 8px; padding-top: 12px; }
.sw-receipt__sum .r.total b { color: var(--jade-600); }
.sw-receipt__contact { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-dark); font-size: 12.5px; line-height: 2; color: var(--muted); }
.sw-receipt__thanks { text-align: center; font-size: 12px; color: var(--muted); margin-top: 16px; }

/* 小票打印：只留小票本体 */
@media print {
  .site-header, .nav-drawer, .site-footer, .tabbar, .member-head, .submit-bar, .jade-float, .sw-noprint, .member-hero { display: none !important; }
  body { background: #fff !important; }
  .container { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .sw-receipt { border: none !important; border-radius: 0 !important; box-shadow: none !important; margin: 0 !important; padding: 0 !important; width: 100% !important; }
}


/* SW-BRAND-TYPO：品牌区排版与小程序 brand 对齐（追加覆盖） */
.logo .logo-img { height: 40px; max-width: 160px; }
.logo-name { letter-spacing: 1px; }
.logo-sub { letter-spacing: .5px; margin-top: 2px; color: var(--muted); }
.sw-brand__status { font-weight: 600; }


/* ============================================================
   SW-FOOTER-CLEANUP：移除底部黑色版权区，底部菜单与小程序 tabBar 对齐
   （追加式覆盖，勿删；如需恢复版权区，删除本段并在 footer.ascx 加回标记）
   ============================================================ */
.site-footer, .foot-grid, .copyright { display: none !important; }
@media (max-width: 767px) {
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    background: #FFFFFF; border-top: 1px solid #EFF1F2;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { flex: 1 1 20%; max-width: 20%; color: #8A9098; text-align: center; position: relative; padding: 2px 0; }
  .tabbar a.active { color: #D9532B; }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar p { font-size: 11px; margin-top: 2px; }
  body { padding-bottom: 62px; }
}


/* 购物车空态：与小程序 cart-bar 一致（橙色圆标 + 文案 + 去点餐胶囊按钮） */
.sw-cart-empty {
  display: flex; align-items: center; gap: 14px; margin-top: 20px;
  background: #FFFFFF; border-radius: 20px; padding: 16px 18px;
  box-shadow: 0 6rpx 24rpx rgba(30, 34, 40, .045);
}
.sw-cart-empty__bubble {
  width: 56px; height: 56px; border-radius: 50%; flex: 0 0 auto;
  background: #D9532B; display: flex; align-items: center; justify-content: center;
}
.sw-cart-empty__bubble svg { width: 28px; height: 28px; }
.sw-cart-empty__text { flex: 1; font-size: 15px; color: #22262B; font-weight: 600; }
.sw-cart-empty__btn {
  flex: 0 0 auto; padding: 10px 22px; border-radius: 999px;
  background: #EFF1F2; color: #4A5058; font-size: 14px; font-weight: 600; text-decoration: none;
}
.sw-cart-empty__btn:hover { background: #E4E7E9; color: #22262B; }


/* ============================================================
   SW-CARTBAR：底部购物车条，与小程序 components/cart-bar 一致
   （追加式覆盖；空态 = 橙色圆购物车 + 还没有选择菜品 + 灰色「去点餐」）
   ============================================================ */
.sw-cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #FFFFFF; border-top: 1px solid #EFF1F2;
  box-shadow: 0 -8px 28px rgba(30, 34, 40, .06);
}
.sw-cartbar__cart {
  position: relative; flex: 0 0 auto; width: 48px; height: 48px;
  border-radius: 50%; background: #D9532B;
  display: flex; align-items: center; justify-content: center;
}
.sw-cartbar__cart svg { width: 26px; height: 26px; }
.sw-cartbar__badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #22262B; color: #FFFFFF;
  font-size: 11px; line-height: 18px; text-align: center;
}
.sw-cartbar__money { flex: 1; min-width: 0; }
.sw-cartbar__hint { font-size: 14px; font-weight: 600; color: #6B7178; }
.sw-cartbar__btn {
  flex: 0 0 auto; height: 40px; padding: 0 22px;
  border-radius: 20px; background: #F1F2F4; color: #6B7178;
  font-size: 14px; font-weight: 700; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
}
.sw-cartbar__btn.is-active { background: #D9532B; color: #FFFFFF; }
.sw-cartbar__spacer { height: 72px; }
@media (max-width: 767px) {
  .sw-cartbar { bottom: 60px; }
}


/* ============================================================
   SW-MENU：网页点餐页，与小程序 pages/menu 视觉对齐
   （追加式覆盖；rpx → px 按 2 倍换算）
   ============================================================ */
.sw-menu { max-width: 720px; margin: 0 auto; background: #F6F7F8; }
.sw-menu__top {
  position: sticky; top: 0; z-index: 30;
  padding: 10px 14px; background: #FFFFFF; border-bottom: 1px solid #F0F1F2;
}
.sw-menu__search {
  display: flex; align-items: center; height: 38px;
  padding: 0 6px 0 12px; border-radius: 19px; background: #F4F5F6;
}
.sw-menu__search > svg { width: 17px; height: 17px; color: #A8AEB5; flex: 0 0 auto; }
.sw-menu__search input {
  flex: 1; min-width: 0; margin-left: 8px; border: 0; outline: 0;
  background: transparent; font-size: 13px; color: #22262B;
}
.sw-menu__search input::placeholder { color: #A8AEB5; }
.sw-menu__clear { font-size: 20px; line-height: 1; color: #9AA1A9; text-decoration: none; padding: 0 8px; }
.sw-menu__searchbtn {
  flex: 0 0 auto; height: 28px; padding: 0 14px; border: 0; border-radius: 14px;
  background: #D9532B; color: #FFFFFF; font-size: 12px; font-weight: 600; cursor: pointer;
}
.sw-menu__body { display: flex; align-items: flex-start; }
.sw-menu__side {
  width: 92px; flex: 0 0 92px; background: #F0F2F3;
  position: sticky; top: 59px; max-height: calc(100vh - 190px); overflow-y: auto;
}
.sw-menu__sideitem {
  position: relative; display: flex; align-items: center; min-height: 52px;
  padding: 0 8px 0 12px; font-size: 12.5px; color: #6B7178; text-decoration: none;
}
.sw-menu__sideitem.is-active { background: #FFFFFF; color: #22262B; font-weight: 700; }
.sw-menu__sideitem.is-active::before {
  content: ''; position: absolute; left: 0; top: 15px; bottom: 15px;
  width: 3px; border-radius: 0 3px 3px 0; background: #D9532B;
}
.sw-menu__sidepad { height: 90px; }
.sw-menu__list { flex: 1; min-width: 0; padding: 0 10px; }
.sw-menu__head { display: flex; align-items: baseline; justify-content: space-between; padding: 13px 3px 9px; }
.sw-menu__title { font-size: 14.5px; font-weight: 700; color: #22262B; }
.sw-menu__count { font-size: 10.5px; color: #9AA1A9; }
.sw-menu__listpad { height: 100px; }

.sw-dish {
  display: flex; padding: 10px; margin-bottom: 9px;
  background: #FFFFFF; border-radius: 12px; box-shadow: 0 2px 12px rgba(30, 34, 40, .045);
}
.sw-dish__img { width: 82px; height: 82px; flex: 0 0 82px; border-radius: 9px; overflow: hidden; background: #F4F5F6; }
.sw-dish__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-dish__body { flex: 1; min-width: 0; margin-left: 10px; display: flex; flex-direction: column; }
.sw-dish__name {
  font-size: 14px; font-weight: 600; color: #22262B; text-decoration: none;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.sw-dish__desc {
  margin-top: 4px; font-size: 10.5px; color: #8A9098;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.sw-dish__tags { display: flex; gap: 5px; margin-top: 5px; overflow: hidden; }
.sw-dish__tags .pro-tag, .sw-dish__tag {
  flex: 0 0 auto; font-size: 9.5px; line-height: 15px; padding: 0 6px;
  border-radius: 4px; background: #FFF1EB; color: #D9532B;
}
.sw-dish__sales { margin-top: 4px; font-size: 10px; color: #A8AEB5; }
.sw-dish__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 5px; }
.sw-dish__price { font-size: 16px; font-weight: 700; color: #22262B; }
.sw-dish__price small { font-size: 11px; color: #D9532B; margin-right: 1px; }
.sw-dish__stepper { display: flex; align-items: center; gap: 7px; }
.sw-step {
  width: 24px; height: 24px; border-radius: 50%; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; line-height: 1; font-weight: 500; font-family: Arial, sans-serif;
}
.sw-step.is-plus { background: #D9532B; color: #FFFFFF; }
.sw-step.is-minus { border: 1px solid #E4E7E9; color: #D9532B; background: #FFFFFF; }
.sw-step__num { min-width: 14px; text-align: center; font-size: 13px; font-weight: 600; color: #22262B; }
.sw-menu__empty { padding: 60px 10px; text-align: center; }
.sw-menu__empty-ic {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  background: #EFF1F2; color: #A8AEB5; display: flex; align-items: center; justify-content: center;
}
.sw-menu__empty-ic svg { width: 28px; height: 28px; }
.sw-menu__empty-title { font-size: 14px; font-weight: 600; color: #22262B; }
.sw-menu__empty-desc { font-size: 11.5px; color: #9AA1A9; margin-top: 6px; }
.sw-toast {
  position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%);
  z-index: 999; padding: 9px 18px; border-radius: 20px;
  background: rgba(34, 38, 43, .9); color: #FFFFFF; font-size: 13px;
}
@media (max-width: 767px) {
  .sw-menu__side { max-height: calc(100vh - 230px); }
  .sw-toast { bottom: 210px; }
}


/* SW-MENU-STICKY：搜索栏与左侧分类避让 sticky 页头（PC 60px / 移动 54px） */
.sw-menu__top { top: 60px; }
.sw-menu__side { top: 118px; }
@media (max-width: 767px) {
  .sw-menu__top { top: 54px; }
  .sw-menu__side { top: 112px; }
}

/* 购物车条与点餐页内容同宽，PC 上保持小程序式窄栏观感 */
.sw-cartbar { max-width: 720px; margin: 0 auto; }


/* ============================================================
   SW-HOME：网页首页与小程序 pages/index 视觉对齐
   （追加式覆盖；rpx → px 按 2 倍换算）
   ============================================================ */
.sw-home { max-width: 720px; margin: 0 auto; padding: 0 14px 20px; }
.sw-h-brand { display: flex; align-items: center; justify-content: space-between; padding: 15px 0 13px; }
.sw-h-brand__left { display: flex; align-items: center; min-width: 0; }
.sw-h-brand__mark {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; overflow: hidden;
  background: #D9532B; display: flex; align-items: center; justify-content: center; margin-right: 10px;
}
.sw-h-brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.sw-h-brand__mark svg { width: 22px; height: 22px; }
.sw-h-brand__name { font-size: 18px; font-weight: 700; color: #22262B; letter-spacing: .5px; }
.sw-h-brand__cat { margin-top: 3px; font-size: 11.5px; color: #8A9098; }
.sw-h-brand__status {
  display: flex; align-items: center; gap: 5px; flex: 0 0 auto;
  padding: 5px 10px; border-radius: 13px; background: #EAF6EE; color: #2E9E6B;
  font-size: 11.5px; font-weight: 600;
}
.sw-h-brand__dot { width: 6px; height: 6px; border-radius: 50%; background: #2E9E6B; }

.sw-h-hero, .sw-h-hero .swiper-container { height: 150px; border-radius: 13px; overflow: hidden; }
.sw-h-hero .swiper-slide { height: 150px; }
.sw-h-hero__slide {
  position: relative; display: block; width: 100%; height: 100%;
  border-radius: 13px; overflow: hidden; text-decoration: none;
}
.sw-h-hero__slide--fallback { background: linear-gradient(120deg, #D9532B, #EC9A7E); }
.sw-h-hero__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-h-hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(24, 18, 14, .62) 0%, rgba(24, 18, 14, .12) 100%);
}
.sw-h-hero__content { position: absolute; left: 17px; top: 29px; right: 17px; display: block; }
.sw-h-hero__eyebrow { display: block; color: #FFD9C7; font-size: 10.5px; font-weight: 700; letter-spacing: 2px; }
.sw-h-hero__title { display: block; margin-top: 9px; color: #FFFFFF; font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.sw-h-hero__sub { display: block; margin-top: 7px; color: rgba(255,255,255,.86); font-size: 11.5px; }
.sw-h-hero__dots { bottom: 8px !important; }
.sw-h-hero__dots .swiper-pagination-bullet { background: #FFFFFF; opacity: .45; }
.sw-h-hero__dots .swiper-pagination-bullet-active { background: #D9532B; opacity: 1; }

.sw-h-info {
  display: flex; align-items: center; margin-top: 12px; padding: 13px 12px;
  background: #FFFFFF; border-radius: 12px; box-shadow: 0 2px 12px rgba(30,34,40,.045);
}
.sw-h-info__item { flex: 1; min-width: 0; display: flex; align-items: center; }
.sw-h-info__item > svg { width: 18px; height: 18px; flex: 0 0 18px; color: #D9532B; }
.sw-h-info__text { margin-left: 7px; min-width: 0; display: flex; flex-direction: column; }
.sw-h-info__label { font-size: 10.5px; color: #9AA1A9; }
.sw-h-info__value { margin-top: 3px; font-size: 12.5px; font-weight: 600; color: #22262B; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-h-info__line { width: 1px; height: 27px; background: #EFF1F2; margin: 0 9px; flex: 0 0 1px; }

.sw-h-search {
  display: flex; align-items: center; height: 38px; margin-top: 12px;
  padding: 0 6px 0 12px; border-radius: 19px; background: #FFFFFF;
}
.sw-h-search > svg { width: 17px; height: 17px; color: #A8AEB5; flex: 0 0 17px; }
.sw-h-search input {
  flex: 1; min-width: 0; margin-left: 7px; border: 0; outline: 0; background: transparent;
  font-size: 13px; color: #22262B;
}
.sw-h-search input::placeholder { color: #9AA1A9; }
.sw-h-search button {
  flex: 0 0 auto; height: 28px; padding: 0 15px; border: 0; border-radius: 14px;
  background: #FFF1EB; color: #D9532B; font-size: 12.5px; font-weight: 600; cursor: pointer;
}

.sw-h-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 20px 2px 11px; }
.sw-h-head__title { font-size: 16px; font-weight: 700; color: #22262B; }
.sw-h-head__caption { margin-top: 3px; font-size: 11.5px; color: #9AA1A9; }
.sw-h-head__more { font-size: 12px; color: #9AA1A9; text-decoration: none; }
.sw-h-cats { display: flex; flex-wrap: wrap; gap: 2%; }
.sw-h-cat {
  width: 23.5%; display: flex; flex-direction: column; align-items: center;
  padding: 12px 3px 11px; margin-bottom: 8px; border-radius: 11px;
  background: #FFFFFF; text-decoration: none;
}
.sw-h-cat__icon {
  width: 39px; height: 39px; border-radius: 13px; background: #FFF1EB; color: #D9532B;
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.sw-h-cat__icon svg { width: 21px; height: 21px; }
.sw-h-cat__name { font-size: 12px; font-weight: 600; color: #22262B; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-h-cat__sub { margin-top: 2px; font-size: 9.5px; color: #A8AEB5; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sw-h-sig { display: flex; gap: 10px; overflow-x: auto; padding: 0 0 4px; scrollbar-width: none; }
.sw-h-sig::-webkit-scrollbar { display: none; }
.sw-h-sigcard {
  flex: 0 0 150px; width: 150px; overflow: hidden; background: #FFFFFF;
  border-radius: 12px; box-shadow: 0 2px 12px rgba(30,34,40,.045);
}
.sw-h-sigcard__img { display: block; width: 100%; height: 100px; overflow: hidden; background: #F4F5F6; }
.sw-h-sigcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-h-sigcard__body { padding: 9px 10px 10px; }
.sw-h-sigcard__name { font-size: 14px; font-weight: 600; color: #22262B; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sw-h-sigcard__desc { margin-top: 4px; font-size: 10.5px; color: #9AA1A9; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sw-h-sigcard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }

.sw-h-price { color: #D9532B; font-size: 16px; font-weight: 700; }
.sw-h-price small { font-size: 11.5px; margin-right: 1px; font-weight: 600; }

.sw-h-popitem {
  position: relative; display: flex; padding: 10px; margin-bottom: 10px;
  background: #FFFFFF; border-radius: 12px; box-shadow: 0 2px 12px rgba(30,34,40,.045);
}
.sw-h-popitem:nth-child(n+7) { display: none; }
.sw-h-popitem__rank {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  width: 20px; height: 20px; border-radius: 6px 0 6px 0;
  background: rgba(34,38,43,.82); color: #FFFFFF; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.sw-h-popitem__img { width: 84px; height: 84px; flex: 0 0 84px; border-radius: 9px; overflow: hidden; background: #F4F5F6; }
.sw-h-popitem__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-h-popitem__body { flex: 1; min-width: 0; margin-left: 11px; display: flex; flex-direction: column; justify-content: space-between; }
.sw-h-popitem__name { font-size: 14.5px; font-weight: 600; color: #22262B; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sw-h-popitem__desc { margin-top: 4px; font-size: 11px; color: #8A9098; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sw-h-popitem__sales { margin-top: 4px; font-size: 10.5px; color: #A8AEB5; }
.sw-h-popitem__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }

.sw-h-notice { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 0 10px; }
.sw-h-notice svg { width: 13px; height: 13px; color: #A8AEB5; }
.sw-h-notice span { font-size: 10.5px; color: #A8AEB5; }


/* ============================================================
   SW-NO-HEADER：网页端头部已移除，点餐页 sticky 偏移归零
   （追加式覆盖，放在 SW-MENU-STICKY 之后生效）
   ============================================================ */
.site-header, .nav-drawer { display: none !important; }
.sw-menu__top { top: 0; }
.sw-menu__side { top: 58px; }
@media (max-width: 767px) {
  .sw-menu__top { top: 0; }
  .sw-menu__side { top: 58px; }
}


/* 主要食材：网页商品详情页与小程序 dish「菜品信息」同源 */
.detail-material {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 16px;
  background: #FFFFFF; border-radius: 12px; box-shadow: 0 2px 12px rgba(30,34,40,.045);
}
.detail-material__label {
  flex: 0 0 auto; font-size: 12px; font-weight: 700; color: #D9532B;
  background: #FFF1EB; border-radius: 6px; padding: 4px 9px;
}
.detail-material__value { font-size: 13.5px; color: #22262B; line-height: 1.6; }

