/* ===== 公共样式 ===== */
:root {
  --primary: #1a73e8;
  --primary-dark: #0f5bb5;
  --primary-light: #e8f0fe;
  --orange: #ff6a00;
  --orange-light: #fff3e8;
  --teal: #00b8a9;
  --bg: #f2f4f8;
  --text: #2c3e50;
  --text-light: #8a94a6;
  --border: #eceef3;
  --white: #fff;
  --shadow: 0 8px 30px rgba(26, 115, 232, .10);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .14);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 顶部导航 ===== */
.topbar {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .5px;
}

.logo .brand-icon {
  font-size: 30px;
  background: linear-gradient(135deg, #1a73e8, #00b8a9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo .sub {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 1px;
  display: block;
}

.nav {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav a {
  font-size: 15px;
  color: var(--text);
  padding: 8px 2px;
  position: relative;
  transition: color .2s;
  font-weight: 500;
}

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

.nav a.active {
  color: var(--primary);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  border-radius: 3px;
  animation: growline .3s forwards;
}

@keyframes growline {
  to { right: 0; }
}

.nav .btn-login {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 9px 24px;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(26, 115, 232, .35);
}

.nav .btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 115, 232, .45);
  color: #fff;
}

/* ===== 大型导航图（Banner） ===== */
.banner {
  margin: 24px auto;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=1600&h=800&fit=crop") center/cover no-repeat;
  box-shadow: var(--shadow-lg);
  max-width: 1240px;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(8, 20, 45, .92) 0%, rgba(26, 115, 232, .72) 55%, rgba(0, 184, 169, .55) 100%);
}

.banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 70px;
  min-height: 420px;
}

.banner-text h1 {
  font-size: 52px;
  margin-bottom: 18px;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}

.banner-text .slogan {
  font-size: 20px;
  font-weight: 600;
  color: #eaf2ff;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.banner-text .slogan-line {
  font-size: 15px;
  opacity: .92;
  color: #dce9ff;
  margin-bottom: 8px;
}

.banner-tags {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.banner-tags span {
  background: rgba(255, 255, 255, .16);
  padding: 8px 18px;
  border-radius: 22px;
  font-size: 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(4px);
}

.banner-cta {
  margin-top: 30px;
  display: flex;
  gap: 16px;
}

.banner-cta .btn {
  padding: 13px 34px;
  font-size: 16px;
}

.banner-visual {
  font-size: 160px;
  opacity: .92;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .3));
  animation: floaty 4s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* ===== 服务优势模块 ===== */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 34px 0 8px;
}

.feature-item {
  background: var(--white);
  border-radius: 14px;
  padding: 26px 20px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s;
}

.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.feature-item .ficon {
  font-size: 42px;
  margin-bottom: 12px;
}

.feature-item h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== 数据统计模块 ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 20px 0 10px;
}

.stat-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  color: #fff;
  box-shadow: 0 10px 26px rgba(26, 115, 232, .3);
}

.stat-box:nth-child(2) { background: linear-gradient(135deg, var(--orange), #ff8f34); box-shadow: 0 10px 26px rgba(255, 106, 0, .3); }
.stat-box:nth-child(3) { background: linear-gradient(135deg, var(--teal), #0a9b8f); box-shadow: 0 10px 26px rgba(0, 184, 169, .3); }
.stat-box:nth-child(4) { background: linear-gradient(135deg, #8e6cef, #6740d6); box-shadow: 0 10px 26px rgba(103, 64, 214, .3); }

.stat-box .num {
  font-size: 34px;
  font-weight: 800;
}

.stat-box .label {
  font-size: 14px;
  opacity: .9;
  margin-top: 4px;
}

/* ===== 区块标题 ===== */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 36px 0 20px;
}

.section-title h2 {
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.section-title h2::before {
  content: "";
  width: 5px;
  height: 26px;
  background: linear-gradient(180deg, var(--primary), var(--teal));
  border-radius: 3px;
}

.section-title .more {
  color: var(--primary);
  font-size: 14px;
}

.section-title .more:hover {
  opacity: .85;
}

/* ===== 商品网格 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  border: 1px solid var(--border);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card .main-pic {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  background: #eef;
  transition: transform .4s;
}

.product-card:hover .main-pic {
  transform: scale(1.06);
}

.product-card .img-wrap {
  overflow: hidden;
}

.product-card .tag-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  z-index: 2;
}

.product-card .info {
  padding: 14px;
}

.product-card .title {
  font-size: 14px;
  height: 40px;
  line-height: 20px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--text);
}

.product-card .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.product-card .price {
  color: var(--orange);
  font-weight: 800;
  font-size: 20px;
}

.product-card .price small {
  font-size: 13px;
  font-weight: 400;
}

.product-card .buy-btn {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 14px;
}

/* ===== 公告栏 ===== */
.notice {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.notice .n-label {
  background: linear-gradient(90deg, var(--orange), #ff9a4d);
  color: #fff;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.notice .n-text {
  font-size: 14px;
  color: var(--text-light);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ===== 底部 ===== */
.footer {
  background: linear-gradient(160deg, #141a26, #1a2436);
  color: #aab4c4;
  margin-top: 60px;
  padding: 52px 0 20px;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 16px;
  border-left: 3px solid var(--primary);
  padding-left: 10px;
}

.footer-col p,
.footer-col a {
  display: block;
  font-size: 13px;
  margin-bottom: 9px;
  color: #aab4c4;
  transition: color .2s;
}

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

.footer-bottom {
  text-align: center;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid #2a3547;
  font-size: 13px;
  color: #7d8798;
}

.footer-bottom a {
  color: #aab4c4;
  transition: color .2s;
}

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

/* ===== 通用按钮 ===== */
.btn {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  transition: .25s;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 6px 16px rgba(26, 115, 232, .3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(26, 115, 232, .4);
  color: #fff;
}

.btn-orange {
  background: linear-gradient(135deg, var(--orange), #ff8f34);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 106, 0, .3);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 106, 0, .4);
  color: #fff;
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== 商品详情页 ===== */
.page-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  margin-top: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 22px;
}

.breadcrumb a {
  color: var(--primary);
}

.product-detail {
  display: flex;
  gap: 44px;
}

.detail-pic {
  width: 440px;
  flex-shrink: 0;
}

.detail-main-pic {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 12px;
  background: #eef;
  box-shadow: var(--shadow);
}

.detail-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.detail-thumbs img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border .2s;
}

.detail-thumbs img.active {
  border-color: var(--primary);
}

.detail-info {
  flex: 1;
}

.detail-info .d-title {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 800;
}

.detail-info .d-desc {
  color: var(--text-light);
  margin: 14px 0;
  font-size: 14px;
}

.detail-price-box {
  background: linear-gradient(135deg, var(--orange-light), #fff8f0);
  padding: 22px;
  border-radius: 12px;
  margin: 18px 0;
  border: 1px solid #ffead6;
}

.detail-price {
  color: var(--orange);
  font-size: 38px;
  font-weight: 800;
}

.detail-old-price {
  color: #a0a0a0;
  font-size: 16px;
  text-decoration: line-through;
  margin-left: 12px;
}

.detail-meta {
  font-size: 14px;
  margin: 10px 0;
  color: var(--text-light);
}

.detail-meta b {
  color: var(--text);
  font-weight: 500;
}

.detail-actions {
  display: flex;
  gap: 16px;
  margin-top: 26px;
}

.detail-actions .btn {
  padding: 13px 40px;
  font-size: 16px;
}

/* 商家信息卡片（商品详情页） */
.store-panel {
  margin-top: 30px;
  background: linear-gradient(100deg, var(--primary-light), #f4f9ff);
  border: 1px solid #d6e4ff;
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.store-panel .sp-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.store-panel .sp-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(26, 115, 232, .3);
}

.store-panel .sp-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
}

.store-panel .sp-tag {
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 10px;
  margin-left: 8px;
}

.store-panel .sp-contact {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
}

.store-panel a.btn {
  font-size: 14px;
  padding: 9px 20px;
}

/* ===== 店铺详情页 ===== */
.sp-banner {
  background: linear-gradient(120deg, var(--primary-light), #eef7ff);
  border: 1px solid #d6e4ff;
  border-radius: 14px;
  padding: 30px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.sp-avatar-lg {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff;
  font-size: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(26, 115, 232, .35);
}

.sp-info-main .sp-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}

.sp-tag-row {
  margin: 8px 0;
}

.sp-info-main .sp-tag {
  background: linear-gradient(135deg, var(--orange), #ff8f34);
  color: #fff;
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 14px;
  font-weight: 500;
}

.sp-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 10px;
  max-width: 720px;
}

.sp-contact {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text);
}

/* 详细图片区 */
.detail-gallery {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.detail-gallery h3 {
  font-size: 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-gallery h3::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
}

.detail-gallery img {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 18px;
  display: block;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* 同类推荐 */
.recommend-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.recommend-card {
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: .25s;
}

.recommend-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.recommend-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.recommend-card .rc-info {
  padding: 10px;
}

.recommend-card .rc-title {
  font-size: 13px;
  height: 34px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.recommend-card .rc-price {
  color: var(--orange);
  font-weight: 700;
  margin-top: 6px;
  font-size: 16px;
}

/* ===== 表单页（登录/注册/入驻） ===== */
.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  width: 420px;
  padding: 38px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.auth-card.wide {
  width: 600px;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 26px;
  color: var(--primary);
  font-size: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border .2s, box-shadow .2s;
  font-family: inherit;
  background: #fbfcfe;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, .12);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group .row {
  display: flex;
  gap: 14px;
}

.form-group .row > div {
  flex: 1;
}

.auth-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  margin-top: 8px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(26, 115, 232, .3);
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(26, 115, 232, .4);
}

.auth-foot {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-light);
}

.auth-foot a {
  color: var(--primary);
}

.auth-section-title {
  font-size: 17px;
  color: var(--primary);
  margin: 10px 0 16px;
  font-weight: 700;
  border-left: 4px solid var(--primary);
  padding-left: 10px;
}

/* ===== 入驻流程步骤 ===== */
.flow-steps {
  display: flex;
  justify-content: space-between;
  margin: 20px 0 40px;
  gap: 12px;
}

.flow-step {
  flex: 1;
  text-align: center;
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 26px 14px;
  border: 1px solid var(--border);
  transition: .3s;
}

.flow-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.flow-step:not(:last-child)::after {
  content: "➜";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 18px;
  z-index: 2;
}

.flow-step .num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(26, 115, 232, .3);
}

.flow-step h4 {
  font-size: 15px;
  color: var(--text);
}

.flow-step p {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
}

/* ===== 店铺街 ===== */
.store-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.store-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: linear-gradient(90deg, #eef4ff, #f8fbff);
  border-bottom: 1px solid var(--border);
}

.store-head .s-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
}

.store-head .s-contact {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.store-head .s-contact span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.store-tag {
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 12px;
  margin-left: 10px;
  font-weight: 500;
}

.store-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
}

.store-goods {
  padding: 22px 28px;
}

.store-goods .sg-title {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

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

/* ===== 购物车 ===== */
.cart-box {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-top: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cart-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  padding: 14px 26px;
  background: var(--primary-light);
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
}

.cart-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--border);
}

.cart-row:last-child {
  border-bottom: none;
}

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

.cart-cell img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-cell .c-title {
  font-size: 14px;
}

.cart-cell .c-title:hover {
  color: var(--primary);
}

.cart-row .c-price {
  color: var(--orange);
  font-weight: 700;
}

.cart-row .subtotal {
  font-size: 16px;
}

/* 数量控制器 */
.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.qty-btn {
  width: 32px;
  height: 32px;
  background: var(--bg);
  font-size: 18px;
  line-height: 1;
  color: var(--text);
  transition: .2s;
}

.qty-btn:hover {
  background: var(--primary);
  color: #fff;
}

.qty-num {
  width: 44px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 32px;
}

/* 删除按钮 */
.del-btn {
  background: transparent;
  color: var(--text-light);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: .2s;
  width: fit-content;
}

.del-btn:hover {
  background: #fff0f0;
  color: #e0232e;
  border-color: #ffc4c4;
}

.cart-summary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  padding: 20px 26px;
  background: #fafcff;
  border-top: 1px solid var(--border);
}

.cart-summary .total {
  font-size: 16px;
}

.cart-summary .total b {
  color: var(--orange);
  font-size: 26px;
  margin-left: 6px;
}

.empty-tip {
  text-align: center;
  padding: 70px 0;
  color: var(--text-light);
}

.empty-tip .big {
  font-size: 70px;
  margin-bottom: 14px;
}

/* ===== 消息提示 ===== */
.toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 28, 40, .9);
  color: #fff;
  padding: 13px 30px;
  border-radius: 26px;
  font-size: 14px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  opacity: 1;
}

/* ===== 登录提示弹窗 ===== */
.login-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.login-modal.show {
  display: flex;
}

.login-modal .box {
  background: #fff;
  padding: 42px;
  border-radius: 16px;
  text-align: center;
  width: 380px;
  box-shadow: var(--shadow-lg);
  animation: pop .3s;
}

@keyframes pop {
  from { transform: scale(.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.login-modal .box .icon {
  font-size: 58px;
  margin-bottom: 14px;
}

.login-modal .box h3 {
  margin-bottom: 8px;
}

.login-modal .box p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 24px;
}

.login-modal .box .btns {
  display: flex;
  gap: 14px;
  justify-content: center;
}

/* 返回顶部 */
.back-top {
  position: fixed;
  right: 30px;
  bottom: 40px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: .3s;
  z-index: 90;
}

.back-top.show {
  opacity: 1;
  pointer-events: all;
}

.back-top:hover {
  transform: translateY(-4px);
}

/* ===== 用户协议勾选 ===== */
.agree-box {
  margin-bottom: 18px;
}

.agree-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1.5;
}

.agree-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.agree-check a {
  color: var(--primary);
  font-weight: 500;
}

.agree-check a:hover {
  text-decoration: underline;
}

/* ===== 协议/隐私弹窗 ===== */
.doc-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

.doc-modal.show {
  display: flex;
}

.doc-box {
  background: #fff;
  border-radius: 14px;
  width: 640px;
  max-width: 92vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: pop .3s;
}

.doc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--primary-light);
}

.doc-head h3 {
  font-size: 18px;
  color: var(--primary-dark);
}

.doc-close {
  background: transparent;
  font-size: 20px;
  color: var(--text-light);
  transition: .2s;
}

.doc-close:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.doc-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.doc-item p {
  font-size: 14px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 4px;
}

.doc-item {
  margin-bottom: 16px;
}

.doc-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  text-align: right;
  background: #fafcff;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .store-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .store-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { flex-direction: column; }
  .detail-pic { width: 100%; }
  .banner-inner { padding: 50px 25px; flex-direction: column; text-align: center; min-height: 380px; }
  .banner-text h1 { font-size: 32px; }
  .nav { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .topbar-inner { flex-direction: column; height: auto; padding: 12px 0; }
  .nav { margin-top: 10px; }
  .cart-head { display: none; }
  .cart-row { grid-template-columns: 1fr; }
  .feature-item .ficon { font-size: 34px; }
  .store-head { flex-direction: column; align-items: flex-start; }
}
