/* 春航商城 — 公共样式（手册红色 EC 风格，PC 1190） */
:root {
  --primary: #e4393c;
  --primary-dark: #c81623;
  --primary-soft: #ffeded;
  --text: #333;
  --muted: #999;
  --border: #e5e5e5;
  --bg: #f5f5f5;
  --link: #005ea7;
  --orange: #ff6700;
  --width: 1190px;
}

* {
  box-sizing: border-box;
}
html {
  height: 100%;
}
html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font: 12px/1.5 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: #fff;
}
/* 短页面（帮助中心/留言板等）页脚贴底 */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* 页脚容器推到底部；内容够长时自然落在文末 */
#site-shell-footer,
body > .site-footer {
  margin-top: auto;
}
a {
  color: var(--text);
  text-decoration: none;
}
a:hover {
  color: var(--primary);
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
img {
  border: 0;
  vertical-align: middle;
}
input,
button,
select,
textarea {
  font: inherit;
  outline: none;
}
.w {
  width: var(--width);
  margin: 0 auto;
}
.clearfix::after {
  content: "";
  display: block;
  clear: both;
}
.fl {
  float: left;
}
.fr {
  float: right;
}
.red {
  color: var(--primary);
}
.muted {
  color: var(--muted);
}
.hide {
  display: none !important;
}

/* 顶栏 */
.site-topbar {
  height: 30px;
  line-height: 30px;
  background: #f1f1f1;
  border-bottom: 1px solid #e5e5e5;
  color: #666;
}
.site-topbar a {
  color: #666;
  margin: 0 6px;
}
.site-topbar .user-name {
  color: var(--primary);
  margin-right: 4px;
}
.site-topbar .split {
  color: #ddd;
  margin: 0 4px;
}

/* logo 搜索区 */
.site-header {
  padding: 20px 0 10px;
  background: #fff;
}
.site-header .logo {
  float: left;
  width: 240px;
  height: 60px;
}
.site-header .logo a {
  display: flex;
  align-items: center;
  height: 60px;
}
/* 官方 logo.png：255×76，顶栏等比缩放 */
.site-header .logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
}

.search-box {
  float: left;
  margin-left: 40px;
  width: 540px;
  padding-top: 8px;
}
.search-box .search-form {
  display: flex;
  border: 2px solid var(--primary);
  height: 36px;
}
.search-box .search-type {
  width: 70px;
  border: 0;
  border-right: 1px solid #ddd;
  padding: 0 6px;
  background: #fff;
}
.search-box .search-input {
  flex: 1;
  border: 0;
  padding: 0 10px;
}
.search-box .search-btn {
  width: 80px;
  border: 0;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}
.search-box .hot-words {
  margin-top: 6px;
  color: #999;
  line-height: 1.6;
}
.search-box .hot-words .hot-label {
  color: #999;
  margin-right: 6px;
}
.search-box .hot-words a {
  color: #999;
  margin-right: 12px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
/* hover 底部下划线 */
.search-box .hot-words a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.service-icons {
  float: right;
  padding-top: 10px;
  text-align: center;
}
.service-icons .item {
  display: inline-block;
  width: 70px;
  color: var(--primary);
  font-size: 12px;
}
.service-icons .ico {
  width: 32px;
  height: 32px;
  line-height: 32px;
  margin: 0 auto 4px;
  border: 1px solid #f5b5b6;
  border-radius: 50%;
  color: var(--primary);
  font-weight: bold;
}

/* 导航 */
.site-nav {
  background: #fff;
  border-bottom: 2px solid var(--primary);
  position: relative;
  z-index: 20;
}
.site-nav .nav-inner {
  height: 40px;
  position: relative;
}
.cate-menu {
  float: left;
  width: 200px;
  position: relative;
}
.cate-menu .cate-title {
  height: 40px;
  line-height: 40px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
}
.cate-menu .cate-list {
  display: none;
  position: absolute;
  left: 0;
  top: 40px;
  width: 200px;
  background: #c81623;
  color: #fff;
  z-index: 30;
  /* 与首页 banner 同高，避免红区比右侧短一截 */
  height: 360px;
  min-height: 360px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: visible;
}
.cate-menu:hover .cate-list,
.cate-menu.open .cate-list {
  display: flex;
  flex-direction: column;
}
/* 首页分类常开：固定 360 贴满，条目均分高度 */
.cate-menu.open .cate-list,
.cate-menu:hover .cate-list {
  height: 360px;
  min-height: 360px;
}
.cate-menu .cate-list > li {
  flex: 1;
  height: auto;
  min-height: 0;
  line-height: normal;
  padding: 0 28px 0 16px; /* 右侧给箭头留位，避免贴边 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}
.cate-menu .cate-list > li:last-child {
  border-bottom: 0;
}
.cate-menu .cate-list > li > a {
  color: #fff;
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 8px;
  line-height: 1.4;
}
.cate-menu .cate-list > li:hover {
  background: #a9111b;
}
/* 箭头内收，不要紧贴右边缘 */
.cate-menu .cate-list .arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  pointer-events: none;
}
/* 二级分类浮层 */
.cate-menu .cate-sub {
  display: none;
  position: absolute;
  left: 200px;
  top: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 40;
  padding: 8px 0;
}
.cate-menu .cate-list > li:hover .cate-sub {
  display: block;
}
.cate-menu .cate-sub a {
  display: block;
  height: 34px;
  line-height: 34px;
  padding: 0 16px;
  color: #333;
  white-space: nowrap;
}
.cate-menu .cate-sub a:hover {
  background: #fff5f5;
  color: var(--primary);
}
.nav-links {
  float: left;
  height: 40px;
  line-height: 40px;
  margin-left: 20px;
}
.nav-links a {
  display: inline-block;
  height: 40px;
  line-height: 40px;
  padding: 0 18px;
  font-size: 14px;
  color: #333;
  border-bottom: 2px solid transparent;
  box-sizing: border-box;
}
.nav-links a.active,
.nav-links a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* 页脚 */
.site-footer {
  /* 与正文间距：短页由 #site-shell-footer margin-top:auto 贴底，长页保留上边距 */
  margin-top: 0;
  background: #2b2b2b;
  color: #999;
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}
#site-shell-footer {
  padding-top: 40px;
}
/* 无 shell 包裹、直接挂在 body 下的页脚 */
body > .site-footer {
  margin-top: auto;
  padding-top: 20px;
}
.site-footer a {
  color: #ccc;
  margin: 0 8px;
}
.site-footer .copy {
  margin-top: 6px;
  color: #777;
}

/* 按钮 */
.btn {
  display: inline-block;
  height: 32px;
  line-height: 30px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
  vertical-align: middle;
  background: #f7f7f7;
  color: #333;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}
.btn-outline {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-orange {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.btn-default {
  background: #fff;
  border-color: #ddd;
  color: #666;
}
.btn-block {
  display: block;
  width: 100%;
}
.btn-lg {
  height: 40px;
  line-height: 38px;
  font-size: 14px;
  padding: 0 24px;
}
.btn-sm {
  height: 26px;
  line-height: 24px;
  padding: 0 10px;
  font-size: 12px;
}

/* 表单 */
.form-row {
  margin-bottom: 14px;
  overflow: hidden;
}
.form-row label {
  display: inline-block;
  width: 100px;
  text-align: right;
  color: #666;
  margin-right: 8px;
  vertical-align: middle;
}
.form-row .req,
.addr-label .req,
.mch-label .req {
  color: var(--primary);
  margin-right: 2px;
}
.form-control {
  height: 32px;
  line-height: 30px;
  border: 1px solid #ddd;
  padding: 0 8px;
  width: 260px;
  vertical-align: middle;
}
.form-control:focus {
  border-color: var(--primary);
}
textarea.form-control {
  height: 80px;
  line-height: 1.5;
  padding: 6px 8px;
  resize: vertical;
}
.form-tip {
  color: #999;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
}

/* —— 地址表单（结算弹窗 / 用户中心） —— */
.addr-form-box {
  border: 1px solid #eee;
  padding: 16px 18px 8px;
  background: #fff;
}
.addr-form-box h4 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: normal;
}
.addr-form .addr-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 14px;
}
.addr-form .addr-label {
  width: 88px;
  flex-shrink: 0;
  text-align: right;
  color: #666;
  margin-right: 12px;
  line-height: 34px;
  box-sizing: border-box;
}
.addr-form .addr-label-inline {
  width: auto;
  margin: 0 8px 0 16px;
  color: #666;
  line-height: 34px;
}
.addr-form .addr-controls {
  flex: 1;
  min-width: 0;
}
.addr-form .addr-controls .form-control,
.addr-form .addr-input,
.addr-form .addr-input-lg,
.addr-form .addr-input-sm {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.addr-form .addr-region {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.addr-form .addr-region .form-control {
  flex: 1;
  width: auto;
  min-width: 0;
}
.addr-form .addr-or {
  margin: 0 8px;
  color: #999;
}
.addr-form .addr-sub {
  color: #666;
  margin-right: 6px;
}
.addr-form .addr-actions {
  margin-top: 4px;
}
.addr-card-row {
  border: 1px solid #eee;
  padding: 12px;
  margin-bottom: 12px;
}
/* 弹窗：加宽 + 表单对齐（覆盖后面默认 480 宽） */
.ch-modal.ch-modal-addr {
  width: 560px;
  max-width: 92vw;
  margin: 6% auto 0;
}
.ch-modal.ch-modal-addr .ch-modal-bd {
  max-height: none;
  overflow: visible;
  padding: 20px 24px 8px;
}
.ch-modal.ch-modal-addr .addr-form-modal .addr-label {
  width: 80px;
}
.ch-modal.ch-modal-addr .addr-form-modal .addr-row {
  align-items: center;
}

/* —— 商家入驻表单 —— */
.mch-form {
  max-width: 860px;
}
.mch-section {
  margin: 18px 0 14px;
  padding: 8px 0 8px 10px;
  border-left: 3px solid var(--primary);
  font-size: 14px;
  color: #333;
  background: #fafafa;
}
.mch-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 14px;
}
.mch-label {
  width: 130px;
  flex-shrink: 0;
  text-align: right;
  color: #666;
  line-height: 32px;
  padding-right: 12px;
  box-sizing: border-box;
}
.mch-field {
  flex: 1;
  min-width: 0;
  line-height: 32px;
}
.mch-input {
  width: 280px;
  max-width: 100%;
}
.mch-input-lg {
  width: 420px;
  max-width: 100%;
}
.mch-input-sm {
  width: 100px;
  margin: 0 8px;
}
.mch-textarea {
  width: 420px;
  max-width: 100%;
  height: 72px;
}
.mch-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  color: #666;
}
.mch-radio {
  margin-right: 18px;
  color: #333;
  cursor: pointer;
}
.mch-tip {
  margin: 0 0 16px 142px;
  line-height: 1.6;
}
.mch-field .addr-region,
.mch-field.addr-region {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mch-field .addr-region .form-control,
.mch-field.addr-region .form-control {
  width: 130px;
}
/* 入驻提交成功 / 进度页信息摘要表 */
.mch-summary {
  text-align: left;
  margin: 0 auto;
  max-width: 720px;
}
.mch-summary-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.mch-summary-table th,
.mch-summary-table td {
  border: 1px solid #eee;
  padding: 10px 14px;
  vertical-align: top;
  font-size: 13px;
}
.mch-summary-table th {
  width: 130px;
  background: #fafafa;
  color: #666;
  font-weight: normal;
  text-align: right;
}
.mch-summary-table td.left {
  text-align: left;
  color: #333;
  word-break: break-all;
}

/* 面包屑 */
.breadcrumb {
  height: 40px;
  line-height: 40px;
  color: #666;
}
.breadcrumb a {
  color: #666;
}
.breadcrumb .sep {
  margin: 0 6px;
  color: #ccc;
}

/* toast / modal */
.ch-toast {
  position: fixed;
  left: 50%;
  top: 40%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 10px 22px;
  border-radius: 4px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  font-size: 13px;
}
.ch-toast.show {
  opacity: 1;
}
.ch-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9000;
  display: none;
}
.ch-modal {
  width: 480px;
  background: #fff;
  margin: 10% auto 0;
  border-radius: 4px;
  overflow: hidden;
}
/* 地址弹窗加宽（放在通用样式后，避免被 480 覆盖） */
.ch-modal.ch-modal-addr {
  width: 560px;
  max-width: 92vw;
  margin: 6% auto 0;
}
.ch-modal-hd {
  height: 42px;
  line-height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}
.ch-modal-close {
  float: right;
  cursor: pointer;
  font-size: 20px;
  color: #999;
}
.ch-modal-bd {
  padding: 16px;
  max-height: 360px;
  overflow: auto;
}
.ch-modal-ft {
  padding: 10px 16px;
  text-align: right;
  border-top: 1px solid #eee;
}
.ch-modal-ft .btn {
  margin-left: 8px;
}

/* 右侧工具条 */
.right-toolbar {
  position: fixed;
  right: 0;
  top: 30%;
  z-index: 50;
  width: 36px;
}
.right-toolbar .tb-item {
  display: block;
  width: 36px;
  background: #333;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  margin-bottom: 1px;
  cursor: pointer;
  position: relative;
  font-size: 12px;
  line-height: 1.3;
}
.right-toolbar .tb-item:hover,
.right-toolbar .tb-item.active {
  background: var(--primary);
}
.right-toolbar .badge {
  position: absolute;
  top: 4px;
  right: 2px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  font-size: 11px;
}
.mini-cart-panel {
  display: none;
  position: absolute;
  right: 36px;
  top: 0;
  width: 280px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  color: #333;
  text-align: left;
}
.right-toolbar .tb-item:hover .mini-cart-panel,
.mini-cart-panel.show {
  display: block;
}
.mini-cart-panel .hd {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  font-weight: bold;
}
.mini-cart-panel .list {
  max-height: 260px;
  overflow: auto;
}
.mini-cart-panel .item {
  padding: 8px 12px;
  border-bottom: 1px solid #f5f5f5;
  overflow: hidden;
}
.mini-cart-panel .item img,
.mini-cart-panel .item .cover {
  width: 50px;
  height: 50px;
  float: left;
  margin-right: 8px;
  object-fit: cover;
  background: #eee;
}
.mini-cart-panel .ft {
  padding: 10px 12px;
  background: #f9f9f9;
}
.mini-cart-panel .ft .btn {
  float: right;
}

/* 对比栏 */
.compare-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 2px solid var(--primary);
  z-index: 40;
  display: none;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}
.compare-bar.show {
  display: block;
}
.compare-bar .inner {
  width: var(--width);
  margin: 0 auto;
  padding: 10px 0;
  overflow: hidden;
}
.compare-bar .tabs {
  float: left;
  margin-right: 12px;
}
.compare-bar .tabs span {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid #ddd;
  cursor: pointer;
  margin-right: 4px;
}
.compare-bar .tabs span.on {
  border-color: var(--primary);
  color: var(--primary);
}
.compare-bar .slots {
  float: left;
}
.compare-bar .slot {
  display: inline-block;
  width: 160px;
  vertical-align: top;
  margin-right: 8px;
  border: 1px dashed #ddd;
  padding: 6px;
  min-height: 60px;
  position: relative;
}
.compare-bar .slot img,
.compare-bar .slot .cover {
  width: 40px;
  height: 50px;
  float: left;
  margin-right: 6px;
  background: #eee;
}
.compare-bar .actions {
  float: right;
  padding-top: 10px;
}
.compare-bar .actions .btn {
  display: block;
  margin-bottom: 6px;
  width: 90px;
}

/* 商品卡片 */
/* 列表卡片：约 5 列铺满 1190 宽（每页 20 条更满） */
.goods-card {
  width: 222px;
  float: left;
  margin: 0 14px 18px 0;
  border: 1px solid transparent;
  padding: 10px;
  background: #fff;
  box-sizing: border-box;
}
.goods-grid .goods-card:nth-child(5n) {
  margin-right: 0;
}
.goods-card:hover {
  border-color: #e5e5e5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.goods-card .pic {
  display: block;
  height: 200px;
  text-align: center;
  margin-bottom: 8px;
  overflow: hidden;
  background: #fafafa;
}
.goods-card .pic img,
.goods-card .pic .cover {
  max-width: 100%;
  max-height: 200px;
  height: 200px;
  width: 200px;
  object-fit: contain;
  background: #fafafa;
}
.goods-card .name {
  height: 36px;
  overflow: hidden;
  color: #666;
  margin-bottom: 6px;
}
.goods-card .price {
  color: var(--primary);
  font-size: 14px;
  font-weight: bold;
}

/* 用户中心布局 */
.user-layout {
  width: var(--width);
  margin: 20px auto;
  overflow: hidden;
}
.user-side {
  float: left;
  width: 200px;
  background: #fff;
  border: 1px solid #eee;
}
.user-card {
  background: linear-gradient(180deg, #e4393c 0%, #f5a5a7 100%);
  color: #fff;
  padding: 16px;
  text-align: center;
}
.user-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  margin: 0 auto 8px;
  line-height: 64px;
  color: #e4393c;
  font-size: 28px;
}
.user-card .acts a {
  color: #fff;
  margin: 0 4px;
  font-size: 12px;
}
.user-menu h4 {
  margin: 0;
  padding: 10px 16px;
  background: #fafafa;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  color: #666;
  font-size: 13px;
}
.user-menu a {
  display: block;
  padding: 8px 16px 8px 24px;
  color: #666;
  border-left: 3px solid transparent;
}
.user-menu a:hover,
.user-menu a.active {
  color: var(--primary);
  background: #fff5f5;
  border-left-color: var(--primary);
}
.user-main {
  float: right;
  width: 970px;
  min-height: 500px;
  background: #fff;
  border: 1px solid #eee;
  padding: 16px 20px;
}
.user-main h3.page-title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  font-size: 16px;
  display: inline-block;
  padding-right: 20px;
}

/* 表格 */
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  border: 1px solid #eee;
  padding: 10px 8px;
  text-align: center;
}
.table th {
  background: #f7f7f7;
  color: #666;
  font-weight: normal;
}
.table .left {
  text-align: left;
}

/* 步骤条 */
.steps {
  display: flex;
  justify-content: center;
  margin: 24px 0;
  counter-reset: step;
}
.steps .step {
  flex: 1;
  text-align: center;
  position: relative;
  color: #999;
  max-width: 180px;
}
.steps .step::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: #ddd;
  color: #fff;
}
.steps .step.done::before,
.steps .step.active::before {
  background: #4a90e2;
}
.steps .step.active {
  color: #4a90e2;
  font-weight: bold;
}
.steps .step::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #ddd;
  z-index: -1;
}
.steps .step:last-child::after {
  display: none;
}
.steps .step.done::after {
  background: #4a90e2;
}

/* 分页 */
.pager {
  text-align: center;
  padding: 20px 0 8px;
  clear: both;
}
.pager a,
.pager span {
  display: inline-block;
  min-width: 28px;
  height: 28px;
  line-height: 28px;
  margin: 0 3px;
  border: 1px solid #ddd;
  padding: 0 8px;
  vertical-align: middle;
  background: #fff;
}
.pager a:hover,
.pager .on {
  border-color: var(--primary);
  color: var(--primary);
}
.pager .on {
  background: #fff5f5;
  font-weight: bold;
}
.pager .disabled {
  color: #ccc;
  border-color: #eee;
  cursor: default;
}
.pager .pager-ellipsis {
  border: 0;
  min-width: 16px;
  padding: 0 2px;
  color: #999;
}
.pager .pager-nav {
  min-width: 56px;
}
.pager .pager-info {
  border: 0;
  color: #999;
  margin-right: 10px;
  padding: 0 4px;
}

/* 空状态 */
.empty-tip {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 14px;
}

/* 登录注册页 — 顶栏 Logo/slogan + 红底舞台铺满 + 页脚贴底 */
.auth-page {
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.auth-top {
  flex-shrink: 0;
  height: 80px;
  border-bottom: 1px solid #eee;
  background: #fff;
}
.auth-top-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.auth-logo {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}
/* 顶栏 slogan */
.auth-slogan {
  color: #999;
  font-size: 13px;
  white-space: nowrap;
  border-left: 1px solid #e5e5e5;
  padding-left: 16px;
  line-height: 1.4;
}
.auth-title {
  font-size: 18px;
  color: #666;
  flex-shrink: 0;
}
.auth-title .bar {
  display: inline-block;
  width: 2px;
  height: 18px;
  background: #ddd;
  margin-right: 10px;
  vertical-align: middle;
}
/* 通栏红色舞台：占满中间剩余高度，避免底部空荡 */
.auth-stage {
  flex: 1;
  background: #e4393c;
  padding: 36px 0 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 520px;
  box-sizing: border-box;
}
/* 登录/注册中间区：高度随内容撑开（不做固定高度防跳动） */
.auth-body {
  width: 1100px;
  max-width: 96%;
  overflow: hidden;
  min-height: 450px;
  position: relative;
  display: flex;
  align-items: stretch;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
/* 左侧营销 Banner：login_banner.png 登录/注册共用 */
.auth-banner {
  flex: 1;
  min-width: 0;
  height: 450px;
  position: relative;
  overflow: hidden;
  background: #3a6fe0 url("../images/banner/login_banner.png") center center / cover no-repeat;
  color: #fff;
}
/* 无图时的 CSS 兜底，避免空荡 */
.auth-banner.fallback {
  background-image: none;
  background: linear-gradient(120deg, #3b6de0 0%, #5b8def 45%, #7aa7f5 100%);
}
.auth-banner .banner-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.auth-banner .slogan {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  font-weight: bold;
  line-height: 1.45;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  z-index: 2;
  letter-spacing: 2px;
  pointer-events: none;
}
.auth-banner .slogan .line2 {
  font-size: 42px;
  margin-top: 8px;
}
/* 右侧登录卡片 */
.auth-panel-wrap {
  width: 400px;
  flex-shrink: 0;
  background: #e4393c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 28px;
}
.auth-panel {
  width: 100%;
  border: 0;
  padding: 28px 28px 24px;
  min-height: 360px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}
.auth-panel h3 {
  margin: 0 0 22px;
  font-size: 16px;
  font-weight: normal;
  color: #333;
  overflow: hidden;
}
.auth-panel .link-right {
  float: right;
  color: var(--primary);
  font-size: 12px;
}
.auth-panel .field {
  margin-bottom: 14px;
  position: relative;
}
.auth-panel .field input {
  width: 100%;
  height: 42px;
  border: 1px solid #ddd;
  padding: 0 12px 0 36px;
  background: #fff;
  box-sizing: border-box;
}
.auth-panel .field input:focus {
  border-color: #e4393c;
}
.auth-panel .field .ico {
  position: absolute;
  left: 10px;
  top: 11px;
  color: #bbb;
  width: 18px;
  text-align: center;
}
.auth-panel .captcha-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.auth-panel .captcha-row input {
  flex: 1;
  height: 42px;
  border: 1px solid #ddd;
  padding: 0 12px;
  box-sizing: border-box;
}
.auth-panel .captcha-code {
  width: 100px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  background: #f3f3f3;
  letter-spacing: 3px;
  font-weight: bold;
  font-style: italic;
  cursor: pointer;
  user-select: none;
  color: #333;
  border: 1px solid #eee;
  flex-shrink: 0;
}
.auth-panel .opts {
  margin: 10px 0 18px;
  color: #666;
  overflow: hidden;
}
.auth-panel .opts a {
  float: right;
  color: #666;
}
.auth-panel .btn-login {
  height: 44px;
  line-height: 44px;
  font-size: 16px;
  border-radius: 2px;
}
/* 舞台底部服务条，填补红区空白 */
.auth-stage-bar {
  width: 1100px;
  max-width: 96%;
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 48px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  letter-spacing: 1px;
}
.auth-stage-bar span {
  position: relative;
  padding: 0 4px;
}
.auth-stage-bar span::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: -1px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.95;
}
.auth-footer {
  flex-shrink: 0;
  margin-top: 0;
  background: #fff;
  color: #999;
  padding: 18px 0 22px;
  text-align: center;
  border-top: 1px solid #f0f0f0;
}
.auth-footer a {
  color: #666;
  margin: 0 6px;
}
.auth-footer-icp {
  margin-left: 8px;
  color: #999;
}
.auth-footer-icp a {
  color: #999;
  margin: 0;
}
.auth-footer-icp a:hover {
  color: var(--primary);
}
.auth-footer .copy {
  margin-top: 8px;
  color: #999;
  font-size: 12px;
  line-height: 1.8;
}
/* 注册密码强弱：仅输入时显示 */
.pwd-strength-wrap {
  margin: -4px 0 12px;
}
.pwd-strength {
  display: flex;
  gap: 4px;
  margin: 0 0 6px;
}
.pwd-strength i {
  flex: 1;
  height: 4px;
  background: #eee;
}
.pwd-strength.s0 i:nth-child(1) {
  background: #e4393c;
}
.pwd-strength.s1 i:nth-child(1),
.pwd-strength.s1 i:nth-child(2) {
  background: #f0ad4e;
}
.pwd-strength.s2 i {
  background: #5cb85c;
}
.pwd-strength-text {
  text-align: center;
  color: #999;
  font-size: 12px;
}
.pwd-strength-text span {
  margin: 0 18px;
}

/* 首页主区 */
/* 首页主区：与导航下分类面板顶对齐（不再 margin-top，避免红区比 banner 短） */
.home-main {
  width: var(--width);
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}
.home-left {
  float: left;
  width: 200px;
  height: 360px;
  min-height: 360px;
  /* 占位列与分类下拉同宽同高，防止布局塌陷 */
  background: transparent;
}
.home-center {
  float: left;
  width: 720px;
  margin-left: 10px;
  height: 360px;
}
.home-right {
  float: right;
  width: 240px;
  height: 360px;
}
.banner {
  height: 360px;
  background: #f0f0f0;
  position: relative;
  overflow: hidden;
}
.banner .slide {
  height: 360px;
  display: none;
  position: relative;
}
.banner .slide.active {
  display: block;
}
/* 首页 4 张 index_banner 轮播图 */
.banner .slide img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}
.banner .slide-text {
  position: absolute;
  left: 40px;
  top: 100px;
  font-size: 32px;
  color: #2c5f4a;
  font-weight: bold;
  line-height: 1.4;
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.6);
}
.banner .dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 3;
}
.banner .dots i {
  display: inline-block;
  width: 20px;
  height: 4px;
  background: rgba(255, 255, 255, 0.55);
  margin: 0 3px;
  cursor: pointer;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
}
.banner .dots i.on {
  background: var(--primary);
}
.banner .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  cursor: pointer;
  z-index: 3;
  user-select: none;
  font-size: 18px;
}
.banner .arrow:hover {
  background: rgba(0, 0, 0, 0.45);
}
.banner .arrow.prev {
  left: 0;
}
.banner .arrow.next {
  right: 0;
}

.side-panel {
  border: 1px solid #eee;
  background: #fff;
  height: 360px;
  min-height: 360px;
  box-sizing: border-box;
  overflow: hidden;
}
.side-panel .tabs {
  display: flex;
  border-bottom: 1px solid #eee;
}
.side-panel .tabs span {
  flex: 1;
  text-align: center;
  height: 40px;
  line-height: 40px;
  cursor: pointer;
  background: #fafafa;
}
.side-panel .tabs span.on {
  background: #fff;
  color: var(--primary);
  font-weight: bold;
}
.side-panel .panel-body {
  padding: 16px;
  text-align: center;
  height: calc(360px - 40px);
  overflow: auto;
  box-sizing: border-box;
}
.side-panel .panel-body .btn-orange {
  margin-top: 12px;
  width: 160px;
  display: inline-block;
}
.side-panel #panel-join {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* 公告列表左对齐可读 */
.side-panel #panel-notice {
  text-align: left;
}
.side-panel #panel-notice .notice-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.home-floor {
  width: var(--width);
  margin: 20px auto;
}
.floor-tabs {
  height: 40px;
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
}
.floor-tabs a {
  display: inline-block;
  padding: 0 24px;
  height: 40px;
  line-height: 40px;
  font-size: 14px;
  color: #666;
  position: relative;
}
.floor-tabs a.on {
  color: var(--primary);
}
.floor-tabs a.on::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 2px;
  background: var(--primary);
}
.goods-grid {
  overflow: hidden;
}

/* 详情 */
.detail-wrap {
  width: var(--width);
  margin: 10px auto 40px;
  overflow: hidden;
}
.detail-gallery {
  float: left;
  width: 380px;
}
.detail-gallery .main-pic {
  width: 320px;
  height: 320px;
  border: 1px solid #eee;
  text-align: center;
  line-height: 320px;
  background: #fafafa;
  overflow: hidden;
  position: relative;
}
.detail-gallery .main-pic img,
.detail-gallery .main-pic .cover {
  max-width: 320px;
  max-height: 320px;
  width: 320px;
  height: 320px;
  vertical-align: middle;
  object-fit: contain;
  background: #fff;
}
/* 缩略图切换 */
.detail-gallery .thumbs {
  width: 360px;
  margin-top: 10px;
  overflow: hidden;
  white-space: nowrap;
}
.detail-gallery .thumbs .thumb {
  display: inline-block;
  width: 58px;
  height: 58px;
  margin-right: 8px;
  border: 2px solid #eee;
  box-sizing: border-box;
  cursor: pointer;
  overflow: hidden;
  background: #fafafa;
  vertical-align: top;
  text-align: center;
  line-height: 54px;
}
.detail-gallery .thumbs .thumb img,
.detail-gallery .thumbs .thumb .cover {
  max-width: 52px;
  max-height: 52px;
  width: auto;
  height: auto;
  vertical-align: middle;
  object-fit: cover;
}
.detail-gallery .thumbs .thumb:hover,
.detail-gallery .thumbs .thumb.on {
  border-color: var(--primary);
}
.detail-gallery .thumbs .thumb-nav {
  display: inline-block;
  width: 22px;
  height: 58px;
  line-height: 58px;
  text-align: center;
  border: 1px solid #eee;
  color: #999;
  cursor: pointer;
  vertical-align: top;
  user-select: none;
  margin-right: 6px;
  background: #fff;
}
.detail-gallery .thumbs .thumb-nav:hover {
  color: var(--primary);
  border-color: #f5b5b6;
}
.detail-info {
  float: left;
  width: 520px;
  padding-left: 20px;
}
.detail-info h1 {
  font-size: 16px;
  font-weight: normal;
  margin: 0 0 16px;
  line-height: 1.4;
}
.price-box {
  background: #f5f5f5;
  padding: 12px 16px;
  margin-bottom: 12px;
}
.price-box .label {
  color: #999;
  margin-right: 8px;
}
.price-box .sale {
  color: var(--primary);
  font-size: 24px;
  font-weight: bold;
}
.price-box .market {
  color: #999;
  text-decoration: line-through;
  margin-left: 12px;
}
.meta-row {
  margin: 10px 0;
  color: #666;
}
.meta-row .cell {
  display: inline-block;
  margin-right: 24px;
}
.qty-box {
  display: inline-block;
  border: 1px solid #ddd;
  vertical-align: middle;
}
.qty-box button {
  width: 28px;
  height: 28px;
  border: 0;
  background: #f7f7f7;
  cursor: pointer;
}
.qty-box input {
  width: 40px;
  height: 28px;
  border: 0;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-align: center;
}
.buy-actions {
  margin: 20px 0;
}
.buy-actions .btn {
  height: 42px;
  line-height: 40px;
  padding: 0 28px;
  margin-right: 12px;
  font-size: 14px;
}
.detail-shop {
  float: right;
  width: 250px;
  border: 1px solid #eee;
}
.detail-shop .shop-hd {
  background: var(--primary);
  color: #fff;
  padding: 10px 12px;
  font-size: 14px;
}
.detail-shop .shop-bd {
  padding: 12px;
  line-height: 1.8;
  color: #666;
}
.detail-shop .tags {
  display: flex;
  margin-top: 10px;
}
.detail-shop .tags span {
  flex: 1;
  text-align: center;
  border: 1px solid #f5b5b6;
  color: var(--primary);
  margin: 0 2px;
  padding: 6px 0;
  font-size: 11px;
}
.detail-ops {
  clear: both;
  padding: 12px 0;
  color: #666;
}
.detail-ops a,
.detail-ops label {
  margin-right: 16px;
  cursor: pointer;
}
.detail-tabs {
  clear: both;
  margin-top: 20px;
  border: 1px solid #eee;
}
.detail-tabs .tab-hd {
  background: #f7f7f7;
  border-bottom: 1px solid #eee;
  height: 40px;
}
.detail-tabs .tab-hd a {
  display: inline-block;
  height: 40px;
  line-height: 40px;
  padding: 0 24px;
  border-right: 1px solid #eee;
}
.detail-tabs .tab-hd a.on {
  background: var(--primary);
  color: #fff;
}
.detail-tabs .tab-bd {
  padding: 20px;
  min-height: 200px;
  line-height: 1.8;
}

/* 购物车页 */
.cart-page {
  width: var(--width);
  margin: 20px auto;
}
.cart-table th {
  background: #f7f7f7;
}
.cart-table .goods {
  text-align: left;
}
.cart-table .goods .cover {
  width: 60px;
  height: 80px;
  float: left;
  margin-right: 10px;
  background: #eee;
  object-fit: cover;
}
.cart-footer {
  margin-top: 12px;
  background: #f7f7f7;
  padding: 12px 16px;
  overflow: hidden;
  line-height: 32px;
}
.cart-footer .total {
  font-size: 16px;
  color: var(--primary);
  font-weight: bold;
}

/* 结算 */
.checkout-page {
  width: var(--width);
  margin: 20px auto 40px;
}
.checkout-block {
  border: 1px solid #eee;
  margin-bottom: 16px;
  background: #fff;
}
.checkout-block .hd {
  background: #f7f7f7;
  padding: 10px 16px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}
.checkout-block .bd {
  padding: 16px;
}
.addr-card {
  display: inline-block;
  width: 260px;
  border: 2px solid #ddd;
  padding: 12px;
  margin: 0 12px 12px 0;
  vertical-align: top;
  cursor: pointer;
  position: relative;
}
.addr-card.on {
  border-color: var(--primary);
}
.addr-card .ops {
  position: absolute;
  right: 8px;
  top: 8px;
}
.checkout-summary {
  text-align: right;
  padding: 16px;
  font-size: 14px;
  line-height: 1.8;
}
.checkout-summary .pay {
  color: var(--primary);
  font-size: 20px;
  font-weight: bold;
}

/* 列表页 */
.list-page {
  width: var(--width);
  margin: 10px auto 40px;
  overflow: hidden;
}
.list-filter {
  background: #f7f7f7;
  padding: 10px 16px;
  margin-bottom: 16px;
  border: 1px solid #eee;
}
.list-filter a {
  margin-right: 16px;
  color: #666;
}
.list-filter a.on {
  color: var(--primary);
  font-weight: bold;
}

/* 入驻 */
.merchant-hero {
  background: #fafafa;
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, #e4393c, #f5a623, #4a90e2) 1;
  padding: 30px 0;
}
.merchant-box {
  width: 900px;
  margin: 30px auto;
  background: #5a5a5a;
  color: #fff;
  padding: 20px 24px;
  border-radius: 2px;
}
.merchant-box .btn {
  margin-right: 10px;
}
.flow-icons {
  display: flex;
  justify-content: space-between;
  text-align: center;
  margin: 30px 0;
  color: #666;
}
.flow-icons .fi {
  flex: 1;
}
.flow-icons .fi .circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #eef5ff;
  line-height: 64px;
  font-size: 22px;
  color: #4a90e2;
}

/* 其它 */
.mt10 {
  margin-top: 10px;
}
.mt20 {
  margin-top: 20px;
}
.mb10 {
  margin-bottom: 10px;
}
.mb20 {
  margin-bottom: 20px;
}
.text-right {
  text-align: right;
}
.text-center {
  text-align: center;
}
.cover-box {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  text-align: center;
  overflow: hidden;
  vertical-align: middle;
}
