@charset "utf-8";
/* ==========================================================================
   校园日用品商城 —— 全局样式
   分层结构：变量/重置 → 通用组件 → 导航 → 首页 → 商城 → 入驻 → 购物车
             → 弹窗 → 提示条 → 页脚 → 响应式
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 校园主色：学院蓝 + 活力青 */
  --c-primary: #1f5eff;
  --c-primary-dark: #1447c4;
  --c-primary-light: #e8f0ff;
  --c-accent: #ff7a45;
  --c-accent-light: #fff1e8;

  /* 中性色 */
  --c-text: #1f2937;
  --c-text-sub: #5b6472;
  --c-text-weak: #97a0ae;
  --c-border: #e6e9ef;
  --c-bg: #f5f7fb;
  --c-bg-card: #ffffff;

  /* 圆角与阴影 */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(31, 41, 55, .06);
  --shadow: 0 6px 20px rgba(31, 41, 55, .09);
  --shadow-lg: 0 16px 40px rgba(31, 41, 55, .14);

  /* 尺寸 */
  --header-h: 64px;
  --container: 1200px;
}

/* ---------- 2. 重置与基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary); }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

.container { width: var(--container); margin: 0 auto; }

/* 通用区块标题 */
.section { padding: 56px 0; width: var(--container); margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
/* 标题下方校园风格装饰线 */
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
}
.section-sub { margin-top: 14px; color: var(--c-text-sub); font-size: 15px; }

/* ---------- 3. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: all .22s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-primary), #4b83ff);
  color: #fff;
  box-shadow: 0 4px 14px rgba(31, 94, 255, .28);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary)); box-shadow: 0 6px 18px rgba(31, 94, 255, .38); color: #fff; }
.btn-ghost { background: #fff; border: 1px solid var(--c-border); color: var(--c-text-sub); }
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-block { width: 100%; }
.btn-sm { height: 34px; padding: 0 16px; font-size: 14px; }
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: #f2602a; color: #fff; }

.link { color: var(--c-primary); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

.required { color: var(--c-accent); }

/* ---------- 4. 顶部导航（滚动吸顶） ---------- */
.site-header {
  position: sticky;          /* 吸顶核心 */
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s, background .25s;
}
/* 滚动后加深阴影，提示导航已吸顶 */
.site-header.scrolled {
  box-shadow: 0 4px 16px rgba(31, 41, 55, .09);
  border-bottom-color: var(--c-border);
}

.header-inner {
  width: var(--container);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff; font-size: 20px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(31, 94, 255, .3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 18px; letter-spacing: 1px; }
.brand-text em {
  font-style: normal; font-size: 10px;
  color: var(--c-text-weak); letter-spacing: 2px;
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--c-text-sub);
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--c-primary); background: var(--c-primary-light); }
.nav-link.active { color: var(--c-primary); font-weight: 600; background: var(--c-primary-light); }
/* 选中态底部指示条 */
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: -1px;
  height: 3px; border-radius: 2px;
  background: var(--c-primary);
}

/* 购物车角标：图标 + 文字 + 数量横向排列 */
.nav-cart { display: inline-flex; align-items: center; gap: 6px; }
.nav-cart-icon { width: 18px; height: 18px; flex: none; }
.cart-badge {
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--c-accent);
  color: #fff; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: transform .25s;
}
/* 加购时的放大反馈 */
.cart-badge.pulse { transform: scale(1.35); }

/* 右侧用户区（登录 / 注册 / 用户名） */
.nav-user { display: flex; align-items: center; gap: 16px; }
.nav-user-link { font-size: 14px; color: var(--c-text-sub); }
.nav-user-link:hover { color: var(--c-primary); }
.nav-user-name { font-size: 14px; color: var(--c-text); font-weight: 600; }
.nav-user-btn {
  height: 34px; padding: 0 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--c-primary), #4b83ff);
  color: #fff; font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center;
  transition: box-shadow .2s, background .2s;
}
.nav-user-btn:hover {
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
  color: #fff;
  box-shadow: 0 4px 12px rgba(31, 94, 255, .28);
}

/* ---------- 5. 页面通用区块 ---------- */
.page-head { padding: 46px 0 26px; text-align: center; }
.page-title { font-size: 32px; font-weight: 700; letter-spacing: 1px; }
.page-desc { margin-top: 10px; color: var(--c-text-sub); font-size: 15px; }

/* ---------- 6. 首页轮播 Banner ---------- */
.banner {
  position: relative;
  width: var(--container);
  height: 440px;
  margin: 24px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.banner-track { position: relative; width: 100%; height: 100%; }

.banner-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
}
.banner-item.active { opacity: 1; visibility: visible; }

.banner-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* 图片上的遮罩，保证文字可读 */
.banner-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12, 24, 48, .62) 0%, rgba(12, 24, 48, .28) 45%, rgba(12, 24, 48, 0) 70%);
}
.banner-text {
  position: absolute;
  left: 64px; top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 560px;
  color: #fff;
}
.banner-item.active .banner-text > * { animation: bannerIn .7s ease both; }
.banner-item.active .banner-text > *:nth-child(2) { animation-delay: .12s; }
.banner-item.active .banner-text > *:nth-child(3) { animation-delay: .24s; }
@keyframes bannerIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.banner-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .4);
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.banner-title { font-size: 42px; font-weight: 700; line-height: 1.25; letter-spacing: 2px; }
.banner-desc { margin-top: 14px; font-size: 16px; color: rgba(255, 255, 255, .88); }
.banner-cta {
  display: inline-block;
  margin-top: 26px;
  padding: 11px 32px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--c-primary);
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.banner-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--c-primary); }

/* 轮播左右按钮 */
.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  color: #fff;
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .25s, background .25s;
}
.banner:hover .banner-nav { opacity: 1; }
.banner-nav:hover { background: rgba(255, 255, 255, .55); }
.banner-prev { left: 18px; }
.banner-next { right: 18px; }

/* 轮播指示器 */
.banner-dots {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; gap: 10px;
}
.banner-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  transition: width .25s, background .25s;
}
.banner-dot.active { width: 30px; border-radius: 5px; background: #fff; }

/* ---------- 7. 首页特色数据条 ---------- */
.feature-bar {
  width: var(--container);
  margin: 26px auto 0;
  padding: 22px 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.feature-item {
  text-align: center;
  border-right: 1px solid var(--c-border);
  display: flex; flex-direction: column; gap: 2px;
}
.feature-item:last-child { border-right: none; }
.feature-item strong { font-size: 26px; color: var(--c-primary); }
.feature-item span { font-size: 13px; color: var(--c-text-sub); }

/* ---------- 8. 商品卡片 ---------- */
.product-grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-grid-4 { width: 100%; }

/* 页面底部居中按钮 */
.section-more { text-align: center; margin-top: 36px; }

.product-card {
  position: relative;
  background: var(--c-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
/* 卡片 hover：上浮 + 阴影加深 */
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-thumb {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #f0f2f6;
}
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.08); }

/* 分类角标 */
.product-cat {
  position: absolute;
  left: 12px; top: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(31, 94, 255, .9);
  color: #fff;
  font-size: 12px;
  letter-spacing: .5px;
}

/* 快捷加购按钮（hover 时浮现） */
.product-quick {
  position: absolute;
  right: 12px; bottom: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .28s, transform .28s;
}
.product-card:hover .product-quick { opacity: 1; transform: scale(1); }
.product-quick:hover { background: #f2602a; }

.product-info { padding: 16px 18px 20px; }
.product-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  height: 45px;                 /* 固定两行高度，保证卡片对齐 */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-intro {
  margin-top: 8px;
  font-size: 13px;
  color: var(--c-text-weak);
  line-height: 1.5;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-meta {
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.price { color: var(--c-accent); font-weight: 700; }
.price .price-symbol { font-size: 14px; }
.price .price-num { font-size: 23px; }
.price-origin {
  display: block;
  color: var(--c-text-weak);
  font-size: 12px;
  text-decoration: line-through;
  font-weight: 400;
}
.product-sales { font-size: 12px; color: var(--c-text-weak); }

/* ---------- 9. 商家入驻 ---------- */
.merchant-layout {
  width: var(--container);
  margin: 0 auto 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}
.merchant-form-wrap,
.agreement-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
}
.form-title, .agreement-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
  padding-left: 12px;
  position: relative;
}
.form-title::before, .agreement-title::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 18px;
  border-radius: 2px;
  background: var(--c-primary);
}

.form-row { margin-bottom: 16px; }
.form-label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  color: var(--c-text-sub);
}
.form-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: #fbfcfe;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-textarea { height: auto; padding: 10px 14px; resize: vertical; line-height: 1.6; }
.form-input:focus {
  outline: none;
  border-color: var(--c-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 94, 255, .12);
}
.form-input.error { border-color: #f5222d; background: #fff5f5; }
.form-error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: #f5222d;
}
.form-error.show { display: block; }

.form-agreement { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.checkbox { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; color: var(--c-text-sub); }
.checkbox input { width: 15px; height: 15px; accent-color: var(--c-primary); cursor: pointer; }
.form-agreement .form-error { width: 100%; margin-top: 0; }
.form-tip { margin-top: 14px; font-size: 12px; color: var(--c-text-weak); text-align: center; }

/* 协议正文 */
.agreement-body {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 10px;
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.85;
}
.agreement-body h3 {
  margin: 18px 0 6px;
  font-size: 15px;
  color: var(--c-text);
}
.agreement-body h3:first-child { margin-top: 0; }
.agreement-body p { margin-bottom: 6px; }
.agreement-body::-webkit-scrollbar { width: 6px; }
.agreement-body::-webkit-scrollbar-thumb { background: #d6dae2; border-radius: 3px; }

/* ---------- 10. 购物车 ---------- */
.cart-layout {
  width: var(--container);
  margin: 0 auto 70px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
.cart-main {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 8px 26px 26px;
  min-height: 300px;
}

.cart-head {
  display: grid;
  grid-template-columns: 76px 1fr 130px 150px 118px 60px;
  gap: 16px;
  padding: 16px 0;
  font-size: 13px;
  color: var(--c-text-weak);
  border-bottom: 1px solid var(--c-border);
}
.cart-head span:last-child { text-align: center; }

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr 130px 150px 118px 60px;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px dashed var(--c-border);
}
.cart-thumb {
  width: 76px; height: 76px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f0f2f6;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { min-width: 0; }
.cart-name { font-size: 15px; font-weight: 600; }
.cart-name:hover { color: var(--c-primary); }
.cart-cat { margin-top: 4px; font-size: 12px; color: var(--c-text-weak); }
.cart-price { color: var(--c-accent); font-weight: 700; font-size: 16px; }

/* 数量步进器 */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  width: 30px; height: 30px;
  background: #f7f8fb;
  color: var(--c-text-sub);
  transition: background .2s, color .2s;
}
.qty-btn:hover { background: var(--c-primary-light); color: var(--c-primary); }
.qty-num {
  width: 46px; height: 30px;
  border: none;
  text-align: center;
  background: #fff;
  -moz-appearance: textfield;
}
.qty-num::-webkit-outer-spin-button,
.qty-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-subtotal { font-weight: 700; color: var(--c-accent); text-align: right; }
.cart-remove {
  text-align: center;
  color: var(--c-text-weak);
  font-size: 13px;
  transition: color .2s;
}
.cart-remove:hover { color: #f5222d; }

/* 空购物车 */
.cart-empty { display: none; text-align: center; padding: 60px 0 40px; }
.cart-empty.show { display: block; }
.cart-empty-icon { font-size: 62px; opacity: .55; }
.cart-empty-text { margin: 14px 0 22px; color: var(--c-text-sub); }

/* 结算侧栏 */
.cart-summary {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 26px 26px;
}
.summary-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.summary-list li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 14px;
  color: var(--c-text-sub);
}
.summary-list strong { color: var(--c-text); font-weight: 600; }
.summary-total {
  margin-top: 8px;
  padding-top: 16px !important;
  border-top: 1px solid var(--c-border);
  font-size: 15px !important;
}
.summary-total strong { color: var(--c-accent); font-size: 24px; }
.cart-summary .btn { margin-top: 12px; }
.cart-summary .btn-ghost { margin-top: 10px; }

/* ---------- 11. 弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-mask {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, .55);
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-dialog {
  position: relative;
  z-index: 1;
  width: 620px;
  max-width: calc(100vw - 60px);
  max-height: calc(100vh - 80px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: dialogIn .3s ease;
}
@keyframes dialogIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-body { padding: 30px 32px; overflow-y: auto; }
.modal-title { font-size: 21px; font-weight: 700; margin-bottom: 18px; }
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  z-index: 3;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--c-text-weak);
  font-size: 15px;
  transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--c-primary-light); color: var(--c-primary); }
.modal-footer { margin-top: 20px; display: flex; justify-content: flex-end; gap: 12px; }

/* 商品详情页（独立页面） */
.detail-wrap {
  width: var(--container);
  margin: 34px auto 0;
  padding: 34px 40px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 44px;
  align-items: start;
}
.detail-gallery {
  height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f0f2f6;
}
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.detail-cat {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--c-primary-light);
  color: var(--c-primary);
  font-size: 12px;
}
.detail-name { margin: 12px 0 10px; font-size: 26px; font-weight: 700; line-height: 1.35; }
.detail-intro { font-size: 14px; color: var(--c-text-sub); line-height: 1.75; }
.detail-price-box {
  margin: 18px 0;
  padding: 16px 20px;
  background: var(--c-accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detail-price { color: var(--c-accent); font-weight: 700; }
.detail-price .price-num { font-size: 32px; }
.detail-price .price-symbol { font-size: 16px; }
.detail-sold { font-size: 13px; color: var(--c-text-sub); }

/* 数量选择行 */
.detail-qty { display: flex; align-items: center; gap: 14px; margin: 22px 0; }
.detail-qty-label { font-size: 14px; color: var(--c-text-sub); }
.detail-stock { font-size: 13px; color: var(--c-text-weak); }
.detail-actions { display: flex; gap: 12px; margin-top: 6px; }
.detail-actions .btn { height: 46px; padding: 0 32px; font-size: 16px; }

/* 商品不存在提示 */
.detail-empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; }
.detail-empty-text { margin-bottom: 20px; color: var(--c-text-sub); font-size: 16px; }

/* ---------- 详情信息区块（参数 / 详情 / 服务） ---------- */
.detail-info {
  width: var(--container);
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
/* 服务保障横跨整行 */
.detail-info .info-panel:last-child { grid-column: 1 / -1; }
.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.info-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 28px 28px;
}
.info-panel-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-left: 12px;
  position: relative;
}
.info-panel-title::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 17px;
  border-radius: 2px;
  background: var(--c-primary);
}

/* 参数规格表 */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table tr { border-bottom: 1px dashed var(--c-border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th {
  width: 96px;
  padding: 11px 0;
  text-align: left;
  font-weight: 500;
  color: var(--c-text-weak);
  vertical-align: top;
}
.spec-table td { padding: 11px 0; color: var(--c-text); }

/* 商品详情描述 */
.detail-desc p {
  font-size: 14px;
  line-height: 1.95;
  color: var(--c-text-sub);
  margin-bottom: 10px;
}
.detail-desc p:last-child { margin-bottom: 0; }

/* 服务保障列表 */
.service-item { display: flex; align-items: flex-start; gap: 12px; }
.service-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--c-primary-light);
  color: var(--c-primary);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-body { display: flex; flex-direction: column; }
.service-title { font-size: 14px; font-weight: 600; }
.service-desc { font-size: 13px; color: var(--c-text-weak); }

/* 商家信息卡片（详情中展示商家名称） */
.merchant-card {
  margin-top: 24px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.merchant-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: #fafbfe;
}
.merchant-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-primary), #4b83ff);
  color: #fff;
  font-size: 19px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.merchant-name { font-size: 17px; font-weight: 700; }

/* ---------- 13. 登录 / 注册页 ---------- */
.auth-wrap {
  width: var(--container);
  margin: 0 auto;
  padding: 60px 0 80px;
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 60px;
  align-items: center;
}
.auth-title { font-size: 38px; font-weight: 700; line-height: 1.35; letter-spacing: 1px; }
.auth-desc { margin-top: 18px; font-size: 15px; color: var(--c-text-sub); line-height: 1.9; }
.auth-points { margin-top: 32px; display: grid; gap: 14px; }
.auth-points li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  color: var(--c-text-sub);
}
.auth-point-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--c-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 34px 36px 30px;
}
.auth-card-title { font-size: 24px; font-weight: 700; }
.auth-card-sub { margin-top: 8px; font-size: 13px; color: var(--c-text-sub); }
.auth-form { margin-top: 22px; }
.auth-form .form-row { margin-bottom: 18px; }
.auth-form .btn { height: 46px; font-size: 16px; }

/* ---------- 14. 全局提示条 ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 40px;
  transform: translateX(-50%);
  z-index: 2000;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  background: rgba(31, 41, 55, .92);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: toastIn .3s ease;
}
.toast[hidden] { display: none; }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  background: #1b2436;
  color: #a7b0c0;
  margin-top: 20px;
}
.footer-inner {
  width: var(--container);
  margin: 0 auto;
  padding: 50px 0 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.footer-title { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.footer-text { font-size: 13px; line-height: 1.9; }
.footer-text a { color: #7fa8ff; }
.footer-links li { margin-bottom: 10px; font-size: 13px; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 22px 0 28px;
  text-align: center;
  font-size: 12.5px;
  line-height: 2;
}
.footer-record { color: #8d96a6; }
.footer-record a { color: #8d96a6; }
.footer-record a:hover { color: #7fa8ff; }
/* 公安备案图标需与文字同行（覆盖全局 img{display:block}） */
.mps-icon { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; margin-right: 3px; }
.footer-copy { margin-top: 4px; color: #6b7484; }

/* ---------- 16. 响应式（仅适配 PC 端，兼容常见笔记本宽度） ---------- */
@media (max-width: 1280px) {
  :root { --container: 1180px; }
  .banner-text { left: 48px; }
  .banner-title { font-size: 38px; }
}
@media (max-width: 1100px) {
  :root { --container: 980px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .merchant-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr 280px; }
  .cart-head, .cart-item { grid-template-columns: 68px 1fr 110px 120px 100px 52px; }
  .detail-wrap { grid-template-columns: 340px 1fr; gap: 30px; }
  .detail-gallery { height: 340px; }
  .detail-info { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .auth-wrap { grid-template-columns: 1fr 400px; gap: 36px; }
  .auth-title { font-size: 32px; }
}
