/* ==========================================================
   云集市 · 静态商城通用样式（Bootstrap 5 之上叠加｜仅PC端，移除移动端适配）
   ========================================================== */

:root {
  --brand: #ff5b24;
  --brand-dark: #e8480f;
  --brand-2: #ff9147;
  --brand-soft: #fff1ea;
  --ink: #1d2433;
  --ink-2: #5b6478;
  --ink-3: #8b93a7;
  --line: #e9ecf2;
  --bg: #f6f7fb;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(29, 36, 51, 0.06);
  --shadow-md: 0 14px 34px rgba(29, 36, 51, 0.1);
}

* {
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  min-width: 100%; /* 强制最小宽度，手机打开出现横向滚动，不再自动收缩适配 */
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand);
}

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

.container {
  max-width: 1200px;
  width: 1200px; /* 固定宽度，不再自适应 */
  margin: 0 auto;
}

/* ---------- 顶部信息条 ---------- */
.topbar {
  background: #171d29;
  color: #b9c0d0;
  font-size: 12.5px;
  line-height: 36px;
}

.topbar a {
  color: #cdd3e0;
}

.topbar a:hover {
  color: #fff;
}

.topbar .sep {
  margin: 0 10px;
  color: #444d60;
}

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

.topbar i {
  color: var(--brand-2);
}

/* ---------- 主导航 ---------- */
.main-nav {
  background: #6f7074;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 60;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 6px 14px rgba(255, 91, 36, 0.32);
}

.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--ink-3);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 15px;
  color: white;
  position: relative;
  padding: 25px 0;
  display: inline-block;
}

.nav-links a:hover {
  color: var(--brand);
}

.nav-links a.active {
  color: white;
  font-weight: 600;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  background: #f4f5f9;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  width: 300px;
  transition: 0.2s;
  flex-shrink: 0;
}

.nav-search:focus-within {
  background: #fff;
  border-color: rgba(255, 91, 36, 0.35);
}

.nav-search input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 13.5px;
  color: var(--ink);
  min-width: 0;
}

.nav-search button {
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  font-size: 18px;
  background: #f4f5f9;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 999px;
  border: 2px solid #fff;
  line-height: 1;
}

/* ---------- 按钮 ---------- */
.btn-brand {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: none;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  padding: 10px 24px;
  box-shadow: 0 8px 18px rgba(255, 91, 36, 0.24);
}

.btn-brand:hover,
.btn-brand:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(255, 91, 36, 0.3);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  color: var(--ink-2);
  padding: 9px 22px;
  font-weight: 500;
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-soft {
  background: var(--brand-soft);
  color: var(--brand);
  border: none;
  border-radius: 999px;
  font-weight: 600;
  padding: 8px 18px;
}

.btn-soft:hover {
  background: var(--brand);
  color: #fff;
}

/* ---------- 轮播 ---------- */
.hero {
  padding: 24px 0 10px;
}

.hero .carousel-item .slide {
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero .carousel-item .slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 19, 28, 0.86) 0%, rgba(15, 19, 28, 0.55) 42%, rgba(15, 19, 28, 0.04) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 560px;
  padding: 0 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  font-size: 12.5px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.slide-content h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.slide-content p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14.5px;
  line-height: 1.8;
  margin-bottom: 26px;
}

.hero .carousel-indicators {
  bottom: 18px;
  margin-bottom: 0;
}

.hero .carousel-indicators [data-bs-target] {
  width: 22px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  opacity: 1;
}

.hero .carousel-indicators .active {
  background: #fff;
  width: 34px;
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  width: 46px;
  height: 46px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: 0.25s;
}

.hero:hover .carousel-control-prev,
.hero:hover .carousel-control-next {
  opacity: 1;
}

.hero .carousel-control-prev {
  left: 18px;
}

.hero .carousel-control-next {
  right: 18px;
}

/* ---------- 服务保障 ---------- */
.service-strip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 10px;
  margin-top: 18px;
  box-shadow: var(--shadow-sm);
}

.service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 18px;
}

.service-item i {
  font-size: 22px;
  color: var(--brand);
}

.service-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.service-item span {
  font-size: 12px;
  color: var(--ink-3);
}

/* ---------- 区块标题 ---------- */
.section {
  padding: 40px 0 8px;
}

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

.section-head h2 {
  font-size: 23px;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.5px;
}

.section-head h2 span {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 10px;
  letter-spacing: 0;
}

.section-head .more {
  font-size: 13.5px;
  color: var(--ink-3);
}

.section-head .more:hover {
  color: var(--brand);
}

/* ---------- 分类入口 ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.cat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 10px;
  text-align: center;
  transition: 0.25s;
}

.cat-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-size: 23px;
}

.cat-card strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.cat-card small {
  color: var(--ink-3);
  font-size: 11.5px;
}

.c-1 { background: #fff1ea; color: #ff5b24; }
.c-2 { background: #eef4ff; color: #3b7bff; }
.c-3 { background: #ecfbf4; color: #12b76a; }
.c-4 { background: #f5efff; color: #8b5cf6; }
.c-5 { background: #fff7e8; color: #f59e0b; }
.c-6 { background: #ffeef3; color: #f43f5e; }

/* ---------- 商品卡片 ---------- */
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: 0.25s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.product-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f2f3f7;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.06);
}

.product-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 91, 36, 0.95);
  color: #fff;
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.product-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-name {
  font-size: 14.5px;
  line-height: 1.5;
  height: 3em;
  overflow: hidden;
  color: var(--ink);
}

.product-name:hover {
  color: var(--brand);
}

.product-sub {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stars {
  color: #ffb020;
  font-size: 11px;
}

.stars span {
  color: var(--ink-3);
  margin-left: 4px;
}

.product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}

.price {
  color: var(--brand);
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
}

.price .cny {
  font-size: 12px;
  margin-right: 1px;
}

.price del {
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 400;
  margin-left: 6px;
}

.cart-inline {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 15px;
  transition: 0.2s;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.cart-inline:hover {
  background: var(--brand);
  color: #fff;
}

/* ---------- 秒杀 ---------- */
.flash-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.flash-head h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--ink-2);
}

.countdown b {
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- 商家入驻横幅 ---------- */
.merchant-banner {
  margin: 44px 0 10px;
  border-radius: 24px;
  background: linear-gradient(115deg, #1b2231 0%, #2a1a17 60%, #4a2313 100%);
  padding: 42px 46px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  overflow: hidden;
}

.merchant-banner::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -60px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 46, 0.5), transparent 65%);
}

.merchant-banner h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}

.merchant-banner p {
  color: rgba(255, 255, 255, 0.66);
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
}

.merchant-banner .btn-brand {
  flex-shrink: 0;
  padding: 12px 30px;
  position: relative;
}

/* ---------- 页头 / 面包屑 ---------- */
.page-head {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.page-head h1 {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}

.page-head .desc {
  color: var(--ink-3);
  font-size: 13px;
  margin-top: 6px;
  margin-bottom: 0;
}

.crumb {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.crumb a {
  color: var(--ink-3);
}

.crumb a:hover {
  color: var(--brand);
}

.crumb .divider {
  margin: 0 6px;
}

/* ---------- 通用卡片 ---------- */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.panel-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-head i {
  color: var(--brand);
  margin-right: 6px;
}

.panel-body {
  padding: 22px;
}

/* ---------- 购物车 ---------- */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table thead th {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  background: #fafbfd;
}

.cart-table td {
  padding: 18px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.cart-item {
  display: flex;
  gap: 14px;
  align-items: center;
}

.cart-item img {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  background: #f2f3f7;
}

.cart-item .name {
  font-size: 14px;
  margin-bottom: 4px;
  display: block;
}

.cart-item .spec {
  font-size: 12px;
  color: var(--ink-3);
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.qty button {
  width: 30px;
  height: 30px;
  border: none;
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1;
}

.qty button:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.qty input {
  width: 40px;
  height: 30px;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  outline: none;
}

.link-del {
  color: var(--ink-3);
  font-size: 12.5px;
  background: none;
  border: none;
  padding: 0;
}

.link-del:hover {
  color: var(--brand);
}

.summary {
  position: sticky;
  top: 92px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 9px 0;
}

.summary-row strong {
  color: var(--ink);
  font-weight: 600;
}

.summary-total {
  border-top: 1px dashed var(--line);
  margin-top: 8px;
  padding-top: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.summary-total .num {
  color: var(--brand);
  font-size: 26px;
  font-weight: 800;
}

.coupon-input {
  display: flex;
  gap: 8px;
}

.coupon-input input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
}

.coupon-input input:focus {
  border-color: rgba(255, 91, 36, 0.5);
}

.empty-state {
  text-align: center;
  padding: 70px 20px;
}

.empty-state i {
  font-size: 52px;
  color: #d6dae4;
}

.empty-state p {
  color: var(--ink-3);
  margin: 16px 0 22px;
}

/* ---------- 结算 ---------- */
.addr-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  background: #fff;
  height: 100%;
  transition: 0.2s;
}

.addr-card:hover {
  border-color: rgba(255, 91, 36, 0.45);
}

.addr-card.selected {
  border-color: var(--brand);
  background: #fffaf7;
  box-shadow: 0 0 0 3px rgba(255, 91, 36, 0.08);
}

.addr-card .addr-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.addr-card .addr-name {
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 4px;
}

.addr-card .addr-name .tag {
  font-size: 11px;
  background: var(--brand);
  color: #fff;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 8px;
  font-weight: 500;
}

.addr-card .addr-detail {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.7;
}

.addr-add {
  border: 1px dashed #cdd3df;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 13px;
  min-height: 92px;
  background: #fcfcfe;
  transition: 0.2s;
  height: 100%;
}

.addr-add:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #fffaf7;
}

.addr-add i {
  font-size: 22px;
}

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

.pay-option {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: #fff;
  transition: 0.2s;
}

.pay-option:hover {
  border-color: rgba(255, 91, 36, 0.45);
}

.pay-option input {
  position: absolute;
  opacity: 0;
}

.pay-option input:checked + .pay-mark {
  border-color: var(--brand);
}

.pay-option input:checked ~ .pay-check {
  opacity: 1;
  transform: scale(1);
}

.pay-option .pay-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #fff;
}

.pay-alipay { background: linear-gradient(135deg, #1677ff, #45a3ff); }
.pay-wechat { background: linear-gradient(135deg, #09bb07, #4ed64c); }
.pay-card { background: linear-gradient(135deg, #4b5563, #8b93a7); }

.pay-option strong {
  display: block;
  font-size: 14px;
}

.pay-option small {
  color: var(--ink-3);
  font-size: 11.5px;
}

.pay-check {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  opacity: 0;
  transform: scale(0.6);
  transition: 0.2s;
}

.bill-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.bill-item:last-child {
  border-bottom: none;
}

.bill-item img {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
  background: #f2f3f7;
}

.bill-item .name {
  font-size: 13.5px;
  margin-bottom: 4px;
}

.bill-item .spec {
  font-size: 12px;
  color: var(--ink-3);
}

.bill-item .price {
  font-size: 15px;
  margin-left: auto;
  white-space: nowrap;
}

/* ---------- 地址管理 ---------- */
.address-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  height: 100%;
  transition: 0.2s;
  position: relative;
}

.address-item:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.address-item.is-default {
  border-color: rgba(255, 91, 36, 0.4);
  background: linear-gradient(180deg, #fffaf7, #fff);
}

.address-item .name {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-item .phone {
  color: var(--ink-2);
  font-size: 13px;
  margin-left: 4px;
  font-weight: 400;
}

.badge-default {
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  border-radius: 999px;
  padding: 2px 9px;
  font-weight: 500;
}

.address-item .detail {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.8;
  margin: 10px 0 16px;
  min-height: 46px;
}

.address-item .ops {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.address-item .ops a:hover {
  color: var(--brand);
}

/* ---------- 表单美化 ---------- */
.form-label {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 6px;
}

.form-label .req {
  color: var(--brand);
  margin-left: 2px;
}

.form-control,
.form-select {
  border-radius: 10px;
  border-color: #e2e6ef;
  font-size: 13.5px;
  padding: 10px 13px;
  color: var(--ink);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(255, 91, 36, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 91, 36, 0.1);
}

.form-control::placeholder {
  color: #b3bacb;
}

.form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

.form-check-label {
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- 登录注册 ---------- */
.auth-wrap {
  min-height: calc(100vh - 109px);
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.auth-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.auth-visual {
  background: linear-gradient(150deg, #1b2231, #3a1f14 65%, #7a3512);
  color: #fff;
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.auth-visual::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  right: -110px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(255, 122, 46, 0.55), transparent 68%);
}

.auth-visual h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  margin: 26px 0 14px;
}

.auth-visual p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13.5px;
  line-height: 1.9;
}

.auth-points {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}

.auth-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.86);
}

.auth-points i {
  color: #ffb27a;
}

.auth-form {
  padding: 48px 46px;
}

.auth-form h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.auth-form .tip {
  color: var(--ink-3);
  font-size: 13px;
  margin-bottom: 26px;
}

.auth-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.auth-tabs a {
  padding: 0 2px 13px;
  font-size: 15px;
  color: var(--ink-3);
  position: relative;
}

.auth-tabs a.active {
  color: var(--ink);
  font-weight: 700;
}

.auth-tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.input-icon {
  position: relative;
}

.input-icon > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-size: 15px;
}

.input-icon .form-control {
  padding-left: 40px;
  height: 46px;
}

.input-icon .btn-code {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  border: none;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 600;
}

.auth-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}

.other-login {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
}

.other-login a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f4f5f9;
  color: var(--ink-2);
  display: grid;
  place-items: center;
  font-size: 17px;
}

.other-login a:hover {
  background: var(--brand);
  color: #fff;
}

/* ---------- 商家入驻 ---------- */
.merchant-hero {
  background: linear-gradient(120deg, #171d29, #33201a 55%, #6b3012);
  color: #fff;
  padding: 62px 0 52px;
  position: relative;
  overflow: hidden;
}

.merchant-hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -80px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 46, 0.42), transparent 66%);
}

.merchant-hero h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
}

.merchant-hero p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.9;
  max-width: 540px;
}

.merchant-hero .stats {
  display: flex;
  gap: 46px;
  margin-top: 30px;
}

.merchant-hero .stats strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: #ffb27a;
}

.merchant-hero .stats span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
}

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

.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  position: relative;
}

.step-card .num {
  font-size: 30px;
  font-weight: 800;
  color: #eef0f5;
  position: absolute;
  right: 16px;
  top: 10px;
  line-height: 1;
}

.step-card i {
  font-size: 21px;
  color: var(--brand);
  margin-bottom: 12px;
  display: block;
}

.step-card strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 6px;
}

.step-card span {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.7;
}

.benefit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  height: 100%;
}

.benefit-card .ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.benefit-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.benefit-card p {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.8;
  margin: 0;
}

.upload-box {
  border: 1px dashed #cdd3df;
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  color: var(--ink-3);
  background: #fcfcfe;
  cursor: pointer;
  transition: 0.2s;
}

.upload-box:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #fffaf7;
}

.upload-box i {
  font-size: 26px;
  display: block;
  margin-bottom: 8px;
}

.upload-box small {
  display: block;
  font-size: 11.5px;
  margin-top: 4px;
  color: #b3bacb;
}

/* ---------- 协议 / 政策 ---------- */
.doc-wrap {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 24px;
  align-items: start;
}

.doc-toc {
  position: sticky;
  top: 92px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.doc-toc .title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.doc-toc nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.doc-toc nav a {
  font-size: 12.5px;
  color: var(--ink-2);
  padding: 8px 10px;
  border-radius: 8px;
  line-height: 1.5;
}

.doc-toc nav a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.doc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 44px;
}

.doc-card h1 {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
}

.doc-meta {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.doc-module {
  background: #fafbfd;
  border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-2);
  margin-bottom: 26px;
}

.doc-card h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 30px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--brand);
  line-height: 1.4;
}

.doc-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 20px 0 8px;
}

.doc-card p,
.doc-card li {
  font-size: 13.5px;
  line-height: 2;
  color: #3f4a5e;
}

.doc-card p {
  margin-bottom: 10px;
}

.doc-card ol,
.doc-card ul {
  padding-left: 22px;
  margin-bottom: 12px;
}

.doc-card li {
  margin-bottom: 4px;
}

.doc-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 13px;
}

.doc-card table th,
.doc-card table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  color: #3f4a5e;
  line-height: 1.7;
}


.doc-card table th {
  background: #fafbfd;
  font-weight: 600;
  color: var(--ink);
}

.doc-foot {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.9;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #141a26;
  color: #9aa3b7;
  margin-top: 60px;
  padding-top: 52px;
  font-size: 13px;
}

.site-footer h6 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}

.site-footer a {
  color: #9aa3b7;
  display: inline-block;
  padding: 5px 0;
  font-size: 12.5px;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand .brand:hover {
  color: #fff;
}

.footer-brand p {
  font-size: 12.5px;
  line-height: 1.9;
  color: #8791a6;
  margin-bottom: 16px;
}

.hotline {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.hotline small {
  display: block;
  font-size: 11.5px;
  color: #8791a6;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid #232b3a;
    margin-top: 34px;
    padding: 18px 0;
    font-size: 12px;
    color: #6d7689;
    gap: 14px;
    text-align: center;
}

.footer-bottom a {
  color: #6d7689;
  font-size: 12px;
}


/* ===== 收银台 pay.html ===== */
.badge-soft {
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
  margin: 0;
}
.pay-method:hover { border-color: #ffc4ad; }
.pay-method.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 4px 14px rgba(255, 91, 36, .08);
}
.pay-method input { display: none; }
.pm-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.pm-text { display: flex; flex-direction: column; line-height: 1.35; }
.pm-text strong { font-size: 13.5px; }
.pm-text small { font-size: 11.5px; color: var(--ink-3); }
.pm-check { color: var(--brand); opacity: 0; transition: opacity .18s; }
.pay-method.is-active .pm-check { opacity: 1; }

/* ===== 结算页：长条布局 ===== */
.sum-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fbfcfe;
}
.sum-item {
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-right: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}
.sum-item:last-child { border-right: none; }
.sum-item strong { font-size: 15px; color: var(--ink); font-weight: 600; }
.sum-item.sum-total {
  background: #fff7f2;
  flex: 1 1 200px;
}
.sum-item.sum-total .num { color: var(--brand); font-size: 26px; font-weight: 800; line-height: 1.1; }
.sum-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}
