/* =========================================================
   杭州智祯物业管理有限公司 · 数码电子商城
   style.css —— 粉色 B2C 模板骨架（brown / coral / green / cyan / beige）
   ========================================================= */

:root {
  --brown: #5f5142;
  --brown-2: #6b5d4f;
  --brown-3: #7a6a58;
  --coral: #e05a5a;
  --coral-d: #c94b4b;
  --green: #91b677;
  --green-d: #7ba262;
  --cyan: #1bccf7;
  --cyan-d: #0fb5e0;
  --beige: #f0ead8;
  --beige-2: #f7f3e6;
  --gray: #8a8a8a;
  --orange: #ee4a02;
  --ink: #4a4a4a;
  --muted: #9a9a9a;
  --line: #e6e0d0;
  --bg: #fbfaf7;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
}
img { border: 0; }
input, select, textarea { background-color: #fff; color: var(--ink); font-family: inherit; }
a { color: inherit; }
main { min-height: 60vh; }
.shell { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.muted { color: var(--muted); }
.ic { width: 16px; height: 16px; display: inline-block; vertical-align: middle; flex: 0 0 auto; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; font-size: 14px; border: none; cursor: pointer;
  text-decoration: none; border-radius: 2px; transition: background .2s, color .2s;
  font-family: inherit;
}
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-d); color: #fff; }
.btn-ghost { background: #fff; color: var(--brown-3); border: 1px solid #d8d2c2; }
.btn-ghost:hover { border-color: var(--coral); color: var(--coral); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-d); color: #fff; }
.btn-amber { background: var(--orange); color: #fff; }
.btn-lg { padding: 13px 30px; font-size: 15px; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---------------- 头部：三段式 ---------------- */
.site-header { background: #fff; }
.header-top { background: var(--brown); color: #e8ddcf; font-size: 12px; }
.header-top-inner { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.ht-left span { vertical-align: middle; }
.ht-sep { opacity: .4; margin: 0 8px; }
.ht-right { display: flex; align-items: center; }
.ht-link { color: #e8ddcf; text-decoration: none; margin-left: 18px; display: inline-flex; align-items: center; gap: 5px; }
.ht-link .ic { width: 14px; height: 14px; }
.ht-link:hover { color: #fff; }

.header-bottom { background: #fff; }
.header-bottom-inner { display: flex; align-items: center; gap: 18px; padding: 18px 15px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; }
.brand-txt b { display: block; font-size: 18px; color: var(--brown-2); letter-spacing: .5px; line-height: 1.2; white-space: nowrap; }
.hb-clock { display: flex; align-items: center; gap: 6px; color: var(--brown-3); font-size: 13px; }
.hb-clock .ic { width: 18px; height: 18px; }
.hb-search { flex: 1; max-width: 460px; margin-left: auto; display: flex; }
.hb-search input {
  flex: 1; height: 40px; border: 1px solid #eec3c3; border-right: none;
  padding: 0 12px; font-size: 13px; font-family: inherit; outline: none;
}
.hb-search input:focus { border-color: var(--coral); }
.hb-search button {
  width: 52px; height: 40px; background: var(--coral); color: #fff;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.hb-search button:hover { background: var(--coral-d); }
.hb-search .ic { width: 18px; height: 18px; }
.hb-bag {
  position: relative; background: var(--coral); color: #fff; height: 40px; width: 52px;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
}
.hb-bag:hover { background: var(--coral-d); }
.hb-bag .ic { width: 20px; height: 20px; }
.hb-bag-count {
  position: absolute; top: -7px; right: -7px; background: var(--brown); color: #fff;
  font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.hb-total {
  background: var(--coral); color: #fff; height: 40px; display: flex; align-items: center;
  padding: 0 14px; font-weight: 700; font-size: 14px; margin-left: 6px; white-space: nowrap;
}

.main-menu { background: #fff; border-top: 1px solid #eee; border-bottom: 2px solid var(--coral); }
.menu-inner { display: flex; }
.menu-list { display: flex; list-style: none; margin: 0; padding: 0; }
.menu-item { position: relative; }
.menu-link {
  display: block; padding: 14px 22px; font-size: 13px; letter-spacing: 1px;
  color: #555; text-decoration: none; font-weight: 600;
}
.menu-link:hover { color: var(--coral); }
.menu-item.active .menu-link { background: var(--coral); color: #fff; }
.nav-badge {
  background: var(--coral); color: #fff; font-size: 10px; font-style: normal;
  padding: 1px 5px; border-radius: 3px; margin-left: 6px; vertical-align: 2px;
}
.menu-item.active .nav-badge { background: #fff; color: var(--coral); }
.megamenu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--coral);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12); padding: 18px; width: 560px; gap: 24px;
}
.menu-item.has-mega:hover .megamenu { display: flex; }
.mega-col { flex: 1; }
.mega-col h4 { font-size: 12px; color: var(--brown-3); margin: 0 0 8px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.mega-col a { display: flex; justify-content: space-between; font-size: 13px; color: #666; text-decoration: none; padding: 5px 0; }
.mega-col a i { font-style: normal; color: var(--muted); font-size: 11px; }
.mega-col a:hover { color: var(--coral); }

/* ---------------- 首页轮播 ---------------- */
.hero-carousel { position: relative; overflow: hidden; background: var(--beige); }
.carousel-slide { display: none; }
.carousel-slide.on { display: block; }
.hc-inner { display: flex; align-items: center; justify-content: space-between; min-height: 340px; padding: 30px 15px; gap: 30px; }
.hc-txt { max-width: 540px; }
.hc-kicker { display: block; font-size: 15px; color: var(--brown-3); letter-spacing: 2px; margin-bottom: 12px; }
.hc-off {
  display: inline-block; font-size: 44px; font-weight: 800; color: var(--brown-2);
  background: #fff; padding: 6px 18px; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); line-height: 1.2;
}
.hc-off i { font-style: normal; font-size: 13px; color: var(--muted); margin-left: 6px; vertical-align: middle; }
.hc-desc { font-size: 13px; color: #8a7f6d; margin: 14px 0 18px; line-height: 1.7; }
.hc-btns { display: flex; gap: 10px; }
.hc-pic { flex: 0 0 340px; height: 300px; display: flex; align-items: center; justify-content: center; }
.hc-pic img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .15)); }
.carousel-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: #cfc6b0; cursor: pointer; }
.carousel-dot.on { background: var(--coral); }

/* ---------------- 服务条 ---------------- */
.service-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px 0; }
.svc-box { display: flex; align-items: center; gap: 12px; padding: 18px 16px; color: #fff; min-height: 74px; }
.svc-ico { width: 34px; height: 34px; flex: 0 0 34px; }
.svc-txt b { display: block; font-size: 14px; font-weight: 700; }
.svc-txt i { display: block; font-style: normal; font-size: 12px; opacity: .92; }
.svc-1 { background: var(--cyan); }
.svc-2 { background: linear-gradient(135deg, #d9bfa8, #e9d6c4); }
.svc-3 { background: linear-gradient(135deg, #e05a5a, #f0908d); }
.svc-4 { background: var(--gray); }

/* ---------------- 首页居中导语 ---------------- */
.home-intro { text-align: center; padding: 30px 15px 6px; }
.hi-title { font-size: 30px; color: var(--brown-2); letter-spacing: 2px; margin: 0 0 10px; font-weight: 800; }
.hi-sub { font-size: 13px; color: #9a9184; margin: 0 0 18px; }
.hi-rule { display: block; border-bottom: 1px dashed #d8d2c2; }

/* ---------------- 区块 / 标题条 ---------------- */
.section { padding: 26px 0; }
.section-alt { background: #f6f4ee; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.sec-bar { display: flex; align-items: center; gap: 10px; background: var(--beige); padding: 10px 16px; margin-bottom: 18px; }
.sec-ico { width: 18px; height: 18px; color: var(--brown-2); }
.sec-title { font-size: 18px; color: var(--brown-2); margin: 0; font-weight: 800; letter-spacing: 1px; }
.sec-more { margin-left: auto; font-size: 12px; color: #8a7f6d; text-decoration: none; }
.sec-more:hover { color: var(--coral); }
.sec-center { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; }
.sec-center h2 { font-size: 22px; color: var(--brown-2); margin: 0; font-weight: 800; }
.sec-center .sec-ico { width: 20px; height: 20px; }

/* ---------------- 商品卡片 ---------------- */
.goods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.goods-card { background: #fff; border: 1px solid #ececec; display: flex; flex-direction: column; transition: box-shadow .2s; }
.goods-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .1); }
.goods-pic { position: relative; display: block; background: #fff; padding: 10px; height: 200px; }
.goods-pic img { width: 100%; height: 100%; object-fit: contain; }
.card-ribbon { position: absolute; top: 0; right: 0; width: 44px; height: 44px; background: var(--cyan); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.card-ribbon .ic { position: absolute; top: 6px; right: 6px; width: 14px; height: 14px; color: #fff; }
.card-heart {
  position: absolute; left: 8px; bottom: 8px; background: var(--coral); color: #fff;
  display: flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 12px; font-size: 11px;
}
.card-heart .ic { width: 12px; height: 12px; }
.card-heart i { font-style: normal; }
.goods-info { padding: 10px 12px; text-align: center; border-top: 1px solid #f0f0f0; }
.goods-name {
  display: block; font-size: 14px; color: var(--brown-2); font-weight: 700;
  text-decoration: none; height: 40px; overflow: hidden; line-height: 1.4;
}
.goods-name:hover { color: var(--coral); }
.goods-price { margin: 6px 0; }
.goods-price b { color: var(--cyan-d); font-size: 16px; font-weight: 700; }
.goods-market { color: #bbb; font-size: 12px; margin-left: 6px; }
.goods-merchant { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goods-acts { display: flex; margin-top: auto; }
.btn-add {
  flex: 1.2; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--green); color: #fff; border: none; padding: 10px 4px; font-size: 12px;
  cursor: pointer; font-family: inherit;
}
.btn-add:hover { background: var(--green-d); }
.btn-add .ic { width: 14px; height: 14px; }
.btn-more {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--coral); color: #fff; padding: 10px 4px; font-size: 12px; text-decoration: none;
}
.btn-more:hover { background: var(--coral-d); color: #fff; }
.btn-more .ic { width: 12px; height: 12px; }

/* ---------------- 促销横滑 ---------------- */
.promo-wrap { position: relative; padding: 0 40px; }
.promo-track { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.promo-track::-webkit-scrollbar { display: none; }
.promo-card { flex: 0 0 220px; background: #fff; border: 1px solid #ececec; display: flex; flex-direction: column; }
.promo-pic { position: relative; display: block; height: 200px; padding: 10px; background: #fff; }
.promo-pic img { width: 100%; height: 100%; object-fit: contain; }
.promo-info { background: var(--beige); padding: 10px; text-align: center; }
.promo-name { display: block; font-size: 13px; color: var(--brown-2); font-weight: 700; text-decoration: none; height: 36px; overflow: hidden; }
.promo-name:hover { color: var(--coral); }
.promo-price { color: var(--cyan-d); font-size: 14px; font-weight: 700; margin-top: 4px; }
.promo-add {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--green); color: #fff; border: none; padding: 10px; font-size: 13px;
  cursor: pointer; font-family: inherit;
}
.promo-add:hover { background: var(--green-d); }
.promo-add .ic { width: 15px; height: 15px; }
.promo-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 48px;
  background: none; border: none; color: var(--brown-2); cursor: pointer; z-index: 2;
}
.promo-arrow.prev { left: 0; }
.promo-arrow.next { right: 0; }
.promo-arrow .ic { width: 26px; height: 26px; }
.promo-arrow:hover { color: var(--coral); }

/* ---------------- 特惠 + 资讯 ---------------- */
.db-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: start; }
.deal-box { border: 2px solid var(--green); background: #fff; }
.deal-pic { position: relative; height: 220px; padding: 10px; }
.deal-pic img { width: 100%; height: 100%; object-fit: contain; }
.deal-cd {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; justify-content: center; gap: 12px; background: rgba(255, 255, 255, .88); padding: 8px 0;
}
.cd-cell { text-align: center; }
.cd-cell b { display: block; font-size: 26px; color: var(--green); font-weight: 800; line-height: 1.1; }
.cd-cell i { display: block; font-style: normal; font-size: 9px; color: #9a9a9a; letter-spacing: 1px; }
.deal-info { padding: 12px; text-align: center; border-top: 1px solid #eee; }
.deal-name { display: block; font-size: 14px; color: var(--brown-2); font-weight: 700; height: 40px; overflow: hidden; }
.deal-prices { margin-top: 6px; }
.deal-old { color: #bbb; font-size: 13px; margin-right: 8px; }
.deal-new { color: var(--orange); font-size: 20px; font-weight: 800; }
.deal-buy {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: var(--green); color: #fff; border: none; padding: 13px; font-size: 16px;
  font-weight: 700; cursor: pointer; font-family: inherit;
}
.deal-buy:hover { background: var(--green-d); }
.deal-buy .ic { width: 18px; height: 18px; }
.blog-list { display: flex; flex-direction: column; }
.blog-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed #d8d2c2; text-decoration: none; }
.blog-thumb { flex: 0 0 72px; height: 72px; background: #fff; border: 1px solid #eee; padding: 4px; }
.blog-thumb img { width: 100%; height: 100%; object-fit: contain; }
.blog-main { flex: 1; min-width: 0; }
.blog-title { display: block; font-size: 14px; color: var(--brown-2); font-weight: 700; margin-bottom: 6px; }
.blog-sum {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-style: normal; font-size: 12px; color: #9a9a9a; line-height: 1.6;
}
.blog-arrow { flex: 0 0 40px; height: 30px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; }
.blog-arrow .ic { width: 16px; height: 16px; }
.blog-row:hover .blog-title { color: var(--coral); }

/* ---------------- 四栏信息 ---------------- */
.info4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.info4-head { display: flex; align-items: center; gap: 8px; background: var(--beige); padding: 9px 14px; margin-bottom: 14px; }
.info4-head .ic { width: 16px; height: 16px; color: var(--brown-2); }
.info4-head b { font-size: 15px; color: var(--brown-2); }
.info4-img { width: 100%; height: 160px; object-fit: contain; background: #fff; border: 1px solid #eee; padding: 8px; }
.info4-text { font-size: 12px; color: #8a8a8a; line-height: 1.8; margin: 0; }
.social-sqs { display: flex; gap: 8px; margin-bottom: 12px; }
.social-sq { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 700; }
.social-sq:nth-child(1) { background: #3b5998; }
.social-sq:nth-child(2) { background: #1da1f2; }
.social-sq:nth-child(3) { background: #9a9a9a; }
.social-sq:nth-child(4) { background: #0077b5; }
.social-sq:nth-child(5) { background: var(--coral); }

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--brown); color: #cfc4b4; margin-top: 30px; padding: 30px 0 20px; }
.foot-inner { text-align: center; }
.foot-pay { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.pay-badge { background: #6b5d4f; color: #d8cdbd; font-size: 11px; padding: 4px 10px; border-radius: 3px; }
.foot-nav { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.foot-nav a { color: #cfc4b4; font-size: 12px; text-decoration: none; }
.foot-nav a:hover { color: #fff; }
.foot-contact { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; font-size: 12px; margin-bottom: 12px; }
.foot-contact span { display: inline-flex; align-items: center; gap: 6px; }
.foot-contact .ic { width: 14px; height: 14px; }
.foot-copy { font-size: 11px; color: #a99c8a; border-top: 1px solid #6b5d4f; padding-top: 14px; }

/* ---------------- 商城页 ---------------- */
.mall-banner { background: var(--beige); padding: 30px 0; }
.mall-banner h1 { font-size: 26px; color: var(--brown-2); margin: 0 0 8px; }
.mall-banner p { font-size: 13px; color: #9a9184; margin: 0; }
.mall-toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pill {
  background: #fff; border: 1px solid #ddd; color: #666; padding: 7px 16px;
  font-size: 13px; cursor: pointer; border-radius: 2px; font-family: inherit;
}
.cat-pill:hover { border-color: var(--coral); color: var(--coral); }
.cat-pill.on { background: var(--coral); border-color: var(--coral); color: #fff; }
.cat-pill.on:hover { color: #fff; }
.mall-tools { display: flex; gap: 10px; align-items: center; }
.mall-search { flex: 1; max-width: 320px; height: 38px; border: 1px solid #ddd; padding: 0 12px; font-size: 13px; font-family: inherit; outline: none; }
.mall-search:focus { border-color: var(--coral); }
.mall-sort { height: 38px; border: 1px solid #ddd; padding: 0 8px; background: #fff; font-family: inherit; }
.btn-cart-link {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  background: var(--coral); color: #fff; padding: 9px 16px; font-size: 13px; text-decoration: none;
}
.btn-cart-link:hover { background: var(--coral-d); color: #fff; }
.btn-cart-link .ic { width: 15px; height: 15px; }
.top-badge {
  background: #fff; color: var(--coral); font-style: normal; font-size: 11px;
  min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 4px;
}
.mall-empty { padding: 40px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed #ddd; }

/* ---------------- 面包屑 / 商品详情 ---------------- */
.crumb { font-size: 12px; color: var(--muted); padding: 16px 0; }
.crumb a { color: #8a7f6d; text-decoration: none; }
.crumb a:hover { color: var(--coral); }
.crumb span { color: var(--brown-2); }
.pd-layout { display: grid; grid-template-columns: 420px 1fr; gap: 30px; background: #fff; border: 1px solid #ececec; padding: 24px; }
.pd-pic { position: relative; height: 380px; background: #fff; border: 1px solid #f0f0f0; padding: 16px; }
.pd-pic img { width: 100%; height: 100%; object-fit: contain; }
.pd-name { font-size: 22px; color: var(--brown-2); margin: 0 0 12px; }
.pd-price { background: var(--beige); padding: 12px 16px; display: flex; align-items: baseline; gap: 10px; }
.pd-price b { color: var(--orange); font-size: 28px; font-weight: 800; }
.pd-market { color: #b0a894; font-size: 14px; }
.pd-price span { color: #8a7f6d; font-size: 13px; }
.pd-brand { margin-left: auto; font-style: normal; background: var(--cyan); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 2px; }
.pd-desc { font-size: 13px; color: #8a8a8a; line-height: 1.8; margin: 14px 0; }
.goods-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.goods-tags i { font-style: normal; background: #f2f2f2; color: #8a8a8a; font-size: 11px; padding: 3px 8px; border-radius: 2px; }
.pd-meta { list-style: none; margin: 0 0 18px; padding: 0; font-size: 13px; color: #666; }
.pd-meta li { padding: 5px 0; border-bottom: 1px dashed #eee; }
.pd-meta li span { display: inline-block; width: 60px; color: var(--muted); }
.pd-buy { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.pd-qty { display: flex; border: 1px solid #ddd; }
.pd-qty button { width: 34px; height: 40px; background: #f7f7f7; border: none; font-size: 16px; cursor: pointer; }
.pd-qty input { width: 46px; height: 40px; border: none; border-left: 1px solid #ddd; border-right: 1px solid #ddd; text-align: center; font-size: 14px; }
.pd-merchant { background: #f7f5ef; padding: 12px 16px; font-size: 13px; }
.pd-merchant b { color: var(--brown-2); display: block; margin-bottom: 4px; }
.pd-merchant span { color: var(--muted); font-size: 12px; }
.pd-sections { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin: 24px 0; }
.pd-sec { background: #fff; border: 1px solid #ececec; padding: 20px; }
.pd-sec h3 { font-size: 16px; color: var(--brown-2); margin: 0 0 12px; border-left: 3px solid var(--coral); padding-left: 10px; }
.pd-sec h4 { font-size: 14px; color: var(--brown-2); margin: 16px 0 8px; }
.pd-detail { font-size: 13px; color: #666; line-height: 1.9; }
.pd-specs, .pd-feats { list-style: none; margin: 0; padding: 0; font-size: 13px; color: #666; }
.pd-specs li, .pd-feats li { padding: 6px 0; border-bottom: 1px dashed #eee; }
.pd-comment { border-bottom: 1px dashed #eee; padding: 12px 0; }
.pc-head { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.pc-head b { color: var(--brown-2); }
.pc-stars { color: var(--orange); font-style: normal; }
.pc-head span { color: var(--muted); margin-left: auto; }
.pd-comment p { font-size: 13px; color: #666; margin: 6px 0 0; }

/* ---------------- 购物车 ---------------- */
.cart-empty { padding: 60px 20px; text-align: center; background: #fff; border: 1px dashed #ddd; margin: 20px 0; }
.cart-empty img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; margin-bottom: 14px; }
.cart-empty p { color: var(--muted); margin: 0 0 16px; }
.cart-list { background: #fff; border: 1px solid #ececec; margin-bottom: 16px; }
.cart-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-bottom: 1px solid #f0f0f0; }
.cart-pic { flex: 0 0 72px; height: 72px; border: 1px solid #f0f0f0; padding: 4px; }
.cart-pic img { width: 100%; height: 100%; object-fit: contain; }
.cart-main { flex: 1; min-width: 0; }
.cart-name { display: block; font-size: 14px; color: var(--brown-2); font-weight: 700; text-decoration: none; }
.cart-name:hover { color: var(--coral); }
.cart-merchant { font-size: 11px; color: var(--muted); margin: 4px 0; }
.cart-price { font-size: 13px; color: var(--cyan-d); font-weight: 700; }
.cart-qty { display: flex; border: 1px solid #ddd; }
.cart-qty button { width: 28px; height: 30px; background: #f7f7f7; border: none; cursor: pointer; }
.cart-qty span { width: 36px; height: 30px; display: flex; align-items: center; justify-content: center; border-left: 1px solid #ddd; border-right: 1px solid #ddd; font-size: 13px; }
.cart-sub { flex: 0 0 90px; text-align: right; color: var(--orange); font-weight: 700; }
.cart-del { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; }
.cart-del:hover { color: var(--coral); }
.cart-bar { display: flex; align-items: center; justify-content: flex-end; gap: 20px; background: var(--beige); padding: 16px; }
.cart-total { font-size: 14px; color: var(--brown-2); }
.cart-total b { color: var(--orange); font-size: 22px; }

/* ---------------- 资讯列表 ---------------- */
.news-banner { background: var(--brown); color: #fff; padding: 34px 0; }
.news-banner h1 { font-size: 26px; margin: 0 0 8px; }
.news-banner p { font-size: 13px; color: #cfc4b4; margin: 0; }
.news-wrap { padding: 24px 15px; }
.news-cats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.news-cats-tip { margin-left: auto; font-size: 12px; color: var(--orange); }
.nz-list { display: flex; flex-direction: column; gap: 14px; }
.nz-item { display: flex; background: #fff; border: 1px solid #ececec; text-decoration: none; overflow: hidden; }
.nz-flip { flex-direction: row-reverse; }
.nz-side { flex: 0 0 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; }
.nz-side-1 { background: var(--coral); }
.nz-side-2 { background: var(--green); }
.nz-side-3 { background: var(--cyan); }
.nz-side-4 { background: var(--brown-3); }
.nz-side-5 { background: var(--orange); }
.nz-num { font-size: 30px; font-weight: 800; }
.nz-yuan { font-size: 13px; background: rgba(255, 255, 255, .2); padding: 2px 10px; border-radius: 10px; }
.nz-main { flex: 1; padding: 16px 20px; min-width: 0; }
.nz-meta { display: flex; gap: 12px; font-size: 11px; color: var(--muted); margin-bottom: 8px; align-items: center; }
.nz-cat { background: var(--beige); color: var(--brown-2); padding: 2px 8px; border-radius: 2px; }
.nz-title { font-size: 17px; color: var(--brown-2); margin: 0 0 8px; }
.nz-sum { font-size: 13px; color: #8a8a8a; line-height: 1.7; margin: 0 0 12px; }
.nz-foot { display: flex; align-items: center; }
.nz-badge { background: var(--coral); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 2px; }
.nz-more { margin-left: auto; color: var(--green); font-size: 12px; font-weight: 700; }
.nz-item:hover .nz-title { color: var(--coral); }

/* ---------------- 资讯详情 ---------------- */
.news-detail-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 24px; margin-bottom: 30px; }
.nd-card { background: #fff; border: 1px solid #ececec; padding: 26px; position: relative; }
.nd-head { border-bottom: 1px solid #eee; padding-bottom: 16px; margin-bottom: 16px; }
.nd-head h1 { font-size: 24px; color: var(--brown-2); margin: 10px 0; }
.nd-meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); align-items: center; }
.nd-price-tag { margin-left: auto; background: var(--orange); color: #fff; padding: 2px 10px; border-radius: 2px; }
.nd-body { font-size: 14px; color: #555; line-height: 2; }
.nd-body p { margin: 0 0 14px; }
.nd-lead { font-size: 15px; color: var(--brown-2); font-weight: 600; }
.nd-body.is-locked { max-height: 220px; overflow: hidden; position: relative; }
.nd-body.is-locked::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, #fff); }
.nd-wall { position: relative; margin-top: -60px; background: #fff; border: 1px dashed var(--coral); padding: 26px; text-align: center; }
.nd-wall-logo { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.nd-wall-t { font-size: 16px; color: var(--brown-2); font-weight: 700; margin-bottom: 14px; }
.nd-wall-tip { font-size: 12px; color: var(--muted); margin-top: 12px; }
.nd-side { display: flex; flex-direction: column; gap: 16px; }
.nd-side-card { background: #fff; border: 1px solid #ececec; padding: 18px; }
.nd-side-card h4 { font-size: 14px; color: var(--brown-2); margin: 0 0 12px; border-left: 3px solid var(--coral); padding-left: 8px; }
.nd-side-card a { display: block; font-size: 13px; color: #666; text-decoration: none; padding: 6px 0; border-bottom: 1px dashed #eee; }
.nd-side-card a:hover { color: var(--coral); }
.nd-mini.cur { color: var(--coral); font-weight: 700; }

/* ---------------- 商家入驻 ---------------- */
.ma-banner { background: var(--brown); color: #fff; padding: 30px 0; }
.ma-banner h1 { font-size: 26px; margin: 0; }
.ma-grid { display: grid; grid-template-columns: 1fr 420px; gap: 24px; padding: 24px 0; }
.ma-status { background: #fff; border: 1px solid #ececec; padding: 14px 16px; margin-bottom: 16px; }
.ma-status-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 13px; }
.ma-status-row b { color: var(--brown-2); }
.ma-status-row i { margin-left: auto; font-style: normal; color: var(--muted); font-size: 12px; }
.st { font-size: 11px; padding: 2px 10px; border-radius: 10px; }
.st.ok { background: #e8f3e0; color: var(--green-d); }
.st.no { background: #fde8e8; color: var(--coral); }
.st.wait { background: #fdf3e0; color: var(--orange); }
.ma-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.ma-step { background: #fff; border: 1px solid #ececec; padding: 16px; text-align: center; }
.ma-step b { display: flex; width: 34px; height: 34px; margin: 0 auto 8px; background: var(--coral); color: #fff; border-radius: 50%; align-items: center; justify-content: center; font-size: 16px; }
.ma-step span { display: block; font-size: 14px; color: var(--brown-2); font-weight: 700; }
.ma-step i { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 4px; }
.ma-rights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.ma-right { background: var(--beige); padding: 14px; text-align: center; }
.ma-right b { display: block; font-size: 16px; color: var(--brown-2); }
.ma-right span { display: block; font-size: 11px; color: #8a7f6d; margin-top: 4px; }
.ma-shops { background: #fff; border: 1px solid #ececec; padding: 18px; }
.ma-shops h3 { font-size: 16px; color: var(--brown-2); margin: 0 0 12px; border-left: 3px solid var(--coral); padding-left: 10px; }
.ma-shop { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #eee; }
.ma-shop img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.ma-shop-main { flex: 1; min-width: 0; }
.ma-shop-main b { font-size: 14px; color: var(--brown-2); }
.ma-self { font-style: normal; background: var(--green); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 2px; margin-left: 6px; }
.ma-shop-main span { display: block; font-size: 12px; color: #8a8a8a; margin: 4px 0; }
.ma-shop-meta { font-size: 11px; color: var(--muted); margin: 2px 0; }
.ma-form-card { background: #fff; border: 1px solid #ececec; padding: 20px; position: sticky; top: 20px; }
.ma-form-card h3 { font-size: 16px; color: var(--brown-2); margin: 0 0 14px; border-left: 3px solid var(--coral); padding-left: 10px; }
.form-item { margin-bottom: 12px; }
.form-item label { display: block; font-size: 12px; color: var(--brown-3); margin-bottom: 5px; }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; border: 1px solid #ddd; padding: 9px 10px; font-size: 13px;
  font-family: inherit; background: #fff; outline: none;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { border-color: var(--coral); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ma-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.ma-cat { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #666; background: #f7f7f7; padding: 4px 8px; border-radius: 2px; cursor: pointer; }
.ma-cat input { width: auto; }
.ma-form-tip { font-size: 11px; color: var(--muted); }
.ma-form-tip a { color: var(--coral); }

/* ---------------- 个人中心 ---------------- */
.mb-head { display: flex; align-items: center; gap: 16px; background: var(--beige); padding: 18px 20px; margin: 20px 0 16px; }
.mb-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--coral); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.mb-id { flex: 1; }
.mb-id b { display: block; font-size: 17px; color: var(--brown-2); }
.mb-id span { font-size: 12px; color: #8a7f6d; }
.mb-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--coral); margin-bottom: 16px; }
.mb-tab { background: #f2f0ea; border: none; padding: 10px 22px; font-size: 14px; color: #666; cursor: pointer; font-family: inherit; }
.mb-tab.on { background: var(--coral); color: #fff; }
.mo-card { background: #fff; border: 1px solid #ececec; padding: 16px; margin-bottom: 14px; }
.mo-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--brown-2); border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; margin-bottom: 10px; }
.mo-status { color: var(--orange); font-size: 12px; }
.mo-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }
.mo-item img { width: 40px; height: 40px; object-fit: contain; border: 1px solid #f0f0f0; }
.mo-item span { flex: 1; color: #666; }
.mo-item i { font-style: normal; color: var(--muted); }
.mo-item b { color: var(--orange); }
.mo-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); border-top: 1px solid #f0f0f0; padding-top: 10px; margin-top: 8px; gap: 12px; }
.mo-foot b { color: var(--orange); font-size: 14px; white-space: nowrap; }
.mo-line { font-size: 13px; color: #666; margin: 6px 0; }
.mb-profile { max-width: 480px; }

/* ---------------- 管理后台 ---------------- */
.ad-head { display: flex; align-items: baseline; gap: 14px; padding: 20px 0; }
.ad-head h1 { font-size: 24px; color: var(--brown-2); margin: 0; }
.ad-head span { font-size: 12px; color: var(--muted); }
.ad-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; }
.ad-stat { background: var(--beige); padding: 16px; text-align: center; }
.ad-stat b { display: block; font-size: 26px; color: var(--coral); font-weight: 800; }
.ad-stat span { font-size: 12px; color: #8a7f6d; }
.ad-sec { background: #fff; border: 1px solid #ececec; padding: 18px; margin-bottom: 16px; }
.ad-sec h3 { font-size: 16px; color: var(--brown-2); margin: 0 0 12px; border-left: 3px solid var(--coral); padding-left: 10px; }
.ad-app { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #eee; font-size: 13px; }
.ad-app b { display: block; color: var(--brown-2); }
.ad-app span { display: block; color: var(--muted); font-size: 12px; }
.ad-app-acts { display: flex; align-items: center; gap: 8px; }
.ad-order { display: flex; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 13px; color: #666; }
.ad-order b { margin-left: auto; color: var(--orange); }

/* ---------------- 协议文档 ---------------- */
.page-title-bar { background: var(--brown); color: #fff; padding: 26px 0; }
.page-title-bar h1 { font-size: 24px; margin: 0; }
.doc-layout { padding: 24px 15px; }
.doc-card { background: transparent; }
.doc-head { padding: 0 0 12px; border-bottom: 2px solid var(--coral); margin-bottom: 16px; }
.doc-subtitle { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.doc-meta { display: flex; gap: 16px; font-size: 12px; color: #8a7f6d; flex-wrap: wrap; }
.doc-preamble { background: var(--beige); padding: 16px 20px; font-size: 13px; color: #6b5d4f; line-height: 1.9; margin-bottom: 16px; }
.doc-preamble p { margin: 0 0 8px; }
.doc-body { display: grid; grid-template-columns: 240px 1fr; gap: 24px; margin-bottom: 30px; }
.doc-toc { background: #fff; border: 1px solid #ececec; padding: 16px; align-self: start; position: sticky; top: 20px; }
.doc-toc b { display: block; font-size: 14px; color: var(--brown-2); margin-bottom: 10px; }
.doc-toc ul { list-style: none; margin: 0; padding: 0; }
.doc-toc li a { display: block; font-size: 12px; color: #666; text-decoration: none; padding: 5px 0; border-bottom: 1px dashed #eee; }
.doc-toc li a:hover { color: var(--coral); }
.doc-main { background: #fff; border: 1px solid #ececec; padding: 24px; }
.doc-sec { margin-bottom: 20px; }
.doc-sec h3 { font-size: 16px; color: var(--brown-2); margin: 0 0 10px; border-left: 3px solid var(--coral); padding-left: 10px; }
.doc-sec p { font-size: 13px; color: #555; line-height: 1.9; margin: 0 0 8px; }
.doc-list { margin: 0; padding-left: 20px; font-size: 13px; color: #555; line-height: 1.9; }
.doc-tail { border-top: 1px dashed #ddd; padding-top: 14px; font-size: 12px; color: var(--muted); }

/* ---------------- 登录 / 注册 ---------------- */
.auth-wrap { display: flex; justify-content: center; padding: 50px 15px; }
.auth-card { width: 420px; max-width: 100%; background: #fff; border: 1px solid #ececec; border-top: 3px solid var(--coral); padding: 30px; text-align: center; }
.auth-logo { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; margin-bottom: 14px; }
.auth-card h1 { font-size: 22px; color: var(--brown-2); margin: 0 0 8px; }
.auth-sub { font-size: 12px; color: var(--muted); margin: 0 0 20px; }
.auth-card form { text-align: left; }
.auth-foot { font-size: 13px; color: #666; margin: 16px 0 0; }
.auth-foot a { color: var(--coral); text-decoration: none; }
.auth-tip { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.auth-agree { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #666; margin-bottom: 6px; cursor: pointer; }
.auth-agree input { width: auto; margin-top: 3px; }
.auth-agree a { color: var(--coral); }
.auth-agree-tip { font-size: 11px; color: var(--muted); margin: 0 0 14px; }

/* ---------------- 弹窗 / 轻提示 ---------------- */
.app-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.app-modal.show { display: block; }
.app-modal-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.app-modal-box {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 420px; max-width: calc(100vw - 40px); max-height: 86vh; overflow: auto;
  background: #fff; border-radius: 4px; box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}
.m-head { background: var(--coral); color: #fff; padding: 12px 18px; font-size: 15px; font-weight: 700; }
.m-body { padding: 18px; }
.m-tip { font-size: 13px; color: #666; line-height: 1.8; }
.m-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 18px 18px; }
.ck-sum { background: var(--beige); padding: 10px 14px; font-size: 13px; color: var(--brown-2); margin-top: 12px; }
.ck-sum b { color: var(--orange); }
.ck-ok { font-size: 14px; color: var(--brown-2); margin-bottom: 10px; }
.ck-ok b { color: var(--coral); }
.pay-head { background: var(--green); color: #fff; padding: 12px 18px; font-size: 15px; font-weight: 700; text-align: center; }
.pay-body { padding: 18px; text-align: center; }
.pay-title { font-size: 14px; color: var(--brown-2); font-weight: 700; margin-bottom: 8px; }
.pay-amount { font-size: 13px; color: #666; margin-bottom: 12px; }
.pay-amount b { color: var(--orange); font-size: 20px; }
.pay-qr-box { background: #fff; border: 1px solid #eee; padding: 10px; display: inline-block; }
.pay-qr { width: 200px; height: 200px; object-fit: contain; display: block; }
.pay-scan-tip { font-size: 12px; color: var(--muted); margin: 10px 0; }
.pay-status { display: inline-block; background: #fdf3e0; color: var(--orange); font-size: 12px; padding: 3px 12px; border-radius: 10px; }
.pay-tip { font-size: 12px; color: #8a8a8a; margin-top: 10px; }
.pay-foot { padding: 0 18px 18px; }
.app-toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  background: rgba(0, 0, 0, .8); color: #fff; padding: 10px 20px; border-radius: 4px;
  font-size: 13px; z-index: 300; opacity: 0; pointer-events: none; transition: opacity .3s;
  max-width: 80vw; text-align: center;
}
.app-toast.show { opacity: 1; }
.shake { animation: shake .4s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}