/* =========================================================
   华椿茂（北京）健康管理有限公司 · 家居用品商城 + 付费资讯
   style.css —— Sailor 基调（纯商城版） v=20261028h
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700;800&family=Poppins:wght@400;600;700;800&family=Open+Sans:wght@400;600;700&display=swap');

:root {
  --ink: #444;
  --muted: #707070;
  --bg: #F8F9FA;
  --grad: linear-gradient(90deg, #0000FF, #33FF00);
  --amber: #FCCB0F;
  --red: #E9797F;
  --dark: #3F4953;
  --accent: #556270;
  --banner: #FFDB14;
  --line: #ECEEF0;
  --card: #ffffff;
  --price: #E64A4E;
  --shadow: 0 10px 30px rgba(63, 73, 83, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Open Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }
.shell { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

h1, h2, h3, h4, .nav-link, .hcat-num, .nz-num, .brand-txt b {
  font-family: 'Raleway', 'Poppins', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 10px; padding: 10px 22px;
  font-size: 14px; font-weight: 700; line-height: 1.4;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 200, .18); }
.btn-primary:hover { opacity: .92; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid #D9DDE2; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-amber { background: var(--amber); color: #5B4200; }
.btn-amber:hover { opacity: .92; }
.btn-lg { padding: 13px 30px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------------- 头部 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; height: 74px;
  box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(63, 73, 83, .04);
}
.header-inner { display: flex; align-items: center; gap: 30px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.3; }
.brand-txt b { font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.brand-txt i { font-style: normal; font-size: 11px; color: var(--muted); }
.main-nav { flex: 1; }
.nav-list { display: flex; gap: 30px; }
.nav-link { position: relative; font-weight: 700; font-size: 15px; color: var(--ink); padding: 6px 0; }
.nav-link:hover { color: #000; }
.nav-link.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; border-radius: 2px; background: var(--grad);
}
.nav-badge {
  position: absolute; top: -9px; right: -20px;
  background: var(--red); color: #fff;
  font-size: 10px; font-style: normal; font-weight: 700;
  padding: 1px 5px; border-radius: 8px 8px 8px 1px; line-height: 1.5;
}
.top-acts { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.top-user { font-size: 13px; color: var(--muted); max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-link { font-size: 13px; font-weight: 600; color: var(--ink); position: relative; }
.top-link:hover { color: #000; }
.top-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; padding: 0 4px; margin-left: 4px;
  background: var(--red); color: #fff; font-size: 11px; font-style: normal;
  border-radius: 9px; vertical-align: top;
}

/* ---------------- 轮播 ---------------- */
.hero-carousel { position: relative; height: 460px; overflow: hidden; background: var(--dark); }
.carousel-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .9s ease; pointer-events: none;
}
.carousel-slide.on { opacity: 1; pointer-events: auto; }
.carousel-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 9px; z-index: 5; }
.carousel-dot { width: 26px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .38); transition: background .3s; }
.carousel-dot.on { background: #fff; }

.hc-mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 28, 34, .62) 0%, rgba(20, 28, 34, .22) 55%, rgba(20, 28, 34, 0) 100%); }
.hc-txt { position: absolute; left: 8%; top: 50%; transform: translateY(-50%); color: #fff; max-width: 560px; }
.hc-txt h2 { font-size: 42px; font-weight: 800; letter-spacing: 1px; line-height: 1.3; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.hc-txt p { margin: 12px 0 24px; font-size: 15px; opacity: .92; }
.hc-btns { display: flex; gap: 14px; }
.hc-btns .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .08); }
.hc-btns .btn-ghost:hover { background: rgba(255, 255, 255, .18); }

/* ---------------- 公告条 ---------------- */
.announce-bar { background: #FFF7DC; border-bottom: 1px solid #F4E7B4; }
.announce-bar .shell { display: flex; align-items: center; gap: 12px; padding: 10px 20px; font-size: 13px; color: #6B5A18; }
.announce-ico {
  flex: none; font-style: normal; font-size: 12px; font-weight: 800; color: #fff;
  background: var(--grad); padding: 2px 9px; border-radius: 20px;
}

/* ---------------- 区块标题 ---------------- */
.section { padding: 48px 0 26px; }
.section-alt { background: #fff; margin: 26px 0 0; }
.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: 36px; font-weight: 800; letter-spacing: 1px; color: var(--ink); line-height: 1.2; }
.section-head em { width: 64px; height: 4px; border-radius: 2px; background: var(--grad); }
.section-more { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); }
.section-more:hover { color: var(--ink); }

/* ---------------- 首页品类磁贴 ---------------- */
.home-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.hcat {
  position: relative; overflow: hidden; border-radius: 14px;
  background: var(--grad); color: #fff; padding: 22px 18px 18px;
  display: flex; flex-direction: column; min-height: 168px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.hcat-1 { background: linear-gradient(135deg, #0022D6, #17C22B); }
.hcat-2 { background: linear-gradient(135deg, #063AB8, #2BA84A); }
.hcat-3 { background: linear-gradient(135deg, #0B4AA0, #3F8F60); }
.hcat-4 { background: linear-gradient(135deg, #114F8F, #4A8177); }
.hcat-5 { background: linear-gradient(135deg, #274653, #556270); }
.hcat-6 { background: linear-gradient(135deg, #3F4953, #6A7683); }
.hcat-num { font-family: 'Poppins', sans-serif; font-size: 54px; font-weight: 800; line-height: 1; opacity: .95; }
.hcat-name { font-size: 17px; font-weight: 800; margin-top: 10px; letter-spacing: 1px; }
.hcat-count { margin-top: auto; font-size: 12px; opacity: .85; }
.hcat:hover { transform: translateY(-5px); background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.hcat:hover .hcat-num {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; opacity: 1;
}
.hcat:hover .hcat-count { color: var(--muted); opacity: 1; }

/* ---------------- 首页资讯条 ---------------- */
.home-news { display: flex; flex-direction: column; gap: 12px; }
.ns-item {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: 12px; padding: 15px 20px;
  transition: transform .15s, box-shadow .15s;
}
.ns-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ns-cat {
  flex: none; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #274653, #4A8177);
  padding: 3px 10px; border-radius: 20px;
}
.ns-title { flex: 1; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-price { flex: none; color: var(--price); font-weight: 800; font-size: 14px; background: #FDECEC; padding: 2px 10px; border-radius: 20px; }
.ns-date { flex: none; color: var(--muted); font-size: 13px; }

/* ---------------- 商品卡片 ---------------- */
.goods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 18px; }
.goods-card { background: #fff; border-radius: 14px; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.goods-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.goods-pic { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #F2F4F6; }
.goods-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.goods-card:hover .goods-pic img { transform: scale(1.05); }
.goods-info { padding: 13px 15px 15px; }
.goods-name { display: block; font-weight: 700; font-size: 14px; line-height: 1.5; height: 42px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.goods-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.goods-tags i { font-style: normal; font-size: 11px; color: var(--accent); background: #F0F3F5; padding: 1px 8px; border-radius: 4px; }
.goods-row { display: flex; align-items: center; justify-content: space-between; }
.goods-price b { color: var(--price); font-size: 19px; font-weight: 800; font-family: 'Poppins', sans-serif; }
.goods-price span { font-size: 12px; color: var(--muted); }
.btn-cart {
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: var(--grad); color: #fff; font-size: 19px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-cart:hover { opacity: .88; }
.goods-merchant { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* ---------------- 商城页 ---------------- */
.mh-carousel { height: 320px; }
.mh-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 28, 34, .18), rgba(20, 28, 34, .38)); }
.mall-hero .carousel-carousel { position: relative; }
.ad-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px auto 0; }
.ad-card { position: relative; border-radius: 14px; overflow: hidden; height: 150px; }
.ad-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ad-card:hover img { transform: scale(1.06); }
.ad-card span {
  position: absolute; left: 0; right: 0; bottom: 0; color: #fff;
  padding: 26px 16px 10px; font-weight: 700; font-size: 15px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .6));
}
.mall-toolbar {
  background: #fff; border-radius: 14px; padding: 16px 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 20px;
}
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.cat-pill {
  border: 1px solid #DDE1E6; background: #fff; color: var(--ink);
  border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 600;
  transition: all .15s;
}
.cat-pill:hover { border-color: var(--accent); }
.cat-pill.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.mall-tools { display: flex; align-items: center; gap: 10px; }
.mall-search {
  width: 190px; padding: 8px 14px; border: 1px solid #DDE1E6; border-radius: 999px; outline: none;
}
.mall-search:focus { border-color: var(--accent); }
.mall-sort { padding: 8px 12px; border: 1px solid #DDE1E6; border-radius: 999px; background: #fff; outline: none; }
.btn-cart-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid #DDE1E6; border-radius: 999px; padding: 8px 16px;
  font-size: 13px; font-weight: 700; background: #fff;
}
.mall-empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* ---------------- 商品详情 ---------------- */
.crumb { padding: 18px 0 14px; font-size: 13px; color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.crumb span { color: var(--ink); }
.pd-layout { display: grid; grid-template-columns: 460px 1fr; gap: 34px; background: #fff; border-radius: 16px; padding: 26px; }
.pd-pic { border-radius: 12px; overflow: hidden; background: #F2F4F6; }
.pd-pic img { width: 100%; object-fit: cover; }
.pd-name { font-size: 24px; font-weight: 800; line-height: 1.45; }
.pd-price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 6px; }
.pd-price b { font-size: 34px; font-weight: 800; color: var(--price); font-family: 'Poppins', sans-serif; }
.pd-price span { color: var(--muted); font-size: 13px; }
.pd-brand { font-style: normal; margin-left: 10px; font-size: 12px; color: #8A6A00; background: #FFF3C9; padding: 2px 10px; border-radius: 20px; font-weight: 700; }
.pd-desc { color: var(--muted); margin-bottom: 12px; }
.pd-meta { margin: 14px 0 20px; border-top: 1px dashed var(--line); }
.pd-meta li { display: flex; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.pd-meta li span { flex: none; width: 52px; color: var(--muted); }
.pd-buy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd-qty { display: flex; align-items: center; border: 1px solid #DDE1E6; border-radius: 10px; overflow: hidden; }
.pd-qty button { width: 38px; height: 44px; border: 0; background: #F6F7F8; font-size: 17px; }
.pd-qty input { width: 52px; height: 44px; border: 0; text-align: center; font-weight: 700; outline: none; }
.pd-merchant { margin-top: 20px; background: #F6F8F9; border-radius: 12px; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.pd-merchant b { font-size: 14px; }
.pd-merchant span { font-size: 13px; color: var(--muted); }
.pd-sections { display: grid; gap: 20px; margin: 22px 0 40px; }
.pd-sec { background: #fff; border-radius: 16px; padding: 26px; }
.pd-sec h3 { font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.pd-sec h4 { font-size: 15px; font-weight: 800; margin: 18px 0 8px; }
.pd-detail { color: #4A4A4A; line-height: 2; }
.pd-specs li, .pd-feats li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; color: #4A4A4A; }
.pd-feats li::before { content: '✓ '; color: #17C22B; font-weight: 800; }
.pd-comment { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.pc-head { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.pc-head b { font-size: 14px; }
.pc-stars { font-style: normal; color: var(--amber); letter-spacing: 2px; }
.pc-head span { margin-left: auto; color: var(--muted); }
.pd-comment p { margin-top: 6px; color: #4A4A4A; }

/* ---------------- 购物车 ---------------- */
.cart-list { display: flex; flex-direction: column; gap: 14px; }
.cart-row {
  display: grid; grid-template-columns: 88px 1fr 130px 110px 60px;
  gap: 16px; align-items: center;
  background: #fff; border-radius: 14px; padding: 16px 20px;
}
.cart-pic { width: 88px; height: 88px; border-radius: 10px; overflow: hidden; background: #F2F4F6; }
.cart-pic img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { font-weight: 700; font-size: 14px; line-height: 1.5; }
.cart-name:hover { color: var(--accent); }
.cart-merchant { font-size: 12px; color: var(--muted); margin: 5px 0; }
.cart-price { color: var(--muted); font-size: 13px; }
.cart-qty { display: flex; align-items: center; border: 1px solid #DDE1E6; border-radius: 9px; overflow: hidden; width: fit-content; }
.cart-qty button { width: 30px; height: 32px; border: 0; background: #F6F7F8; font-size: 15px; }
.cart-qty span { width: 40px; text-align: center; font-weight: 700; }
.cart-sub { font-weight: 800; color: var(--price); }
.cart-del { border: 0; background: none; color: var(--muted); font-size: 13px; text-align: right; }
.cart-del:hover { color: var(--red); }
.cart-bar {
  display: flex; align-items: center; justify-content: flex-end; gap: 22px;
  background: #fff; border-radius: 14px; padding: 16px 22px; margin: 16px 0 46px;
}
.cart-total { font-size: 14px; color: var(--muted); }
.cart-total b { font-size: 24px; color: var(--price); font-family: 'Poppins', sans-serif; margin: 0 2px; }
.cart-empty { text-align: center; padding: 70px 0 90px; }
.cart-empty img { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 16px; opacity: .8; }
.cart-empty p { color: var(--muted); margin-bottom: 18px; }

/* ---------------- 付费资讯：banner ---------------- */
.news-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #274653 0%, #37646F 55%, #4A8177 100%);
  color: #fff; padding: 64px 0 58px;
}
.news-banner h1 { font-size: 38px; font-weight: 800; letter-spacing: 2px; position: relative; z-index: 2; }
.news-banner p { margin-top: 10px; font-size: 14px; opacity: .88; position: relative; z-index: 2; }
.nb-ring {
  position: absolute; border: 2px solid rgba(255, 255, 255, .14); border-radius: 50%;
}
.nb-ring1 { width: 320px; height: 320px; right: -70px; top: -110px; }
.nb-ring2 { width: 180px; height: 180px; right: 130px; bottom: -80px; border-color: rgba(255, 255, 255, .1); }
.news-wrap { padding: 26px 20px 60px; }
.news-cats { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.news-cats-tip { margin-left: auto; font-size: 12px; color: var(--muted); }

/* ---------------- 付费资讯：杂志系 zigzag 列表（nz-） ---------------- */
.nz-list { display: flex; flex-direction: column; gap: 20px; }
.nz-item {
  display: flex; background: #fff; border-radius: 16px; overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.nz-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.nz-flip { flex-direction: row-reverse; }
.nz-side {
  flex: none; width: 148px; min-height: 170px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #fff;
}
.nz-side-1 { background: linear-gradient(160deg, #0022D6, #17C22B); }
.nz-side-2 { background: linear-gradient(160deg, #063AB8, #2BA84A); }
.nz-side-3 { background: linear-gradient(160deg, #114F8F, #4A8177); }
.nz-side-4 { background: linear-gradient(160deg, #274653, #556270); }
.nz-side-5 { background: linear-gradient(160deg, #B8770A, #FCCB0F); }
.nz-num { font-family: 'Poppins', sans-serif; font-size: 46px; font-weight: 800; line-height: 1; }
.nz-yuan { font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .22); padding: 2px 12px; border-radius: 20px; }
.nz-main { flex: 1; padding: 22px 26px; display: flex; flex-direction: column; }
.nz-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.nz-cat {
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #274653, #4A8177);
  padding: 2px 10px; border-radius: 20px;
}
.nz-title { font-size: 20px; font-weight: 800; line-height: 1.5; color: var(--ink); }
.nz-item:hover .nz-title { color: #000; }
.nz-sum {
  margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nz-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; }
.nz-badge { font-size: 12px; font-weight: 800; color: #7A5A00; background: #FFF3C9; padding: 3px 12px; border-radius: 20px; }
.nz-more { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); }
.nz-item:hover .nz-more { color: var(--ink); }

/* ---------------- 付费资讯：详情页 ---------------- */
.news-detail-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 24px; padding-bottom: 60px; }
.nd-card { background: #fff; border-radius: 16px; padding: 34px 38px; }
.nd-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 22px; }
.nd-head .nz-cat { display: inline-block; margin-bottom: 12px; }
.nd-head h1 { font-size: 27px; font-weight: 800; line-height: 1.5; }
.nd-meta { display: flex; align-items: center; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.nd-price-tag { color: var(--price); font-weight: 800; background: #FDECEC; padding: 2px 12px; border-radius: 20px; }
.nd-body p { font-size: 16px; line-height: 2.1; color: #4A4A4A; margin-bottom: 20px; }
.nd-lead { font-size: 19px !important; font-weight: 600; color: #333 !important; line-height: 1.95 !important; }
.nd-body.is-locked { position: relative; max-height: 390px; overflow: hidden; }
.nd-body.is-locked::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 200px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .92) 55%, #fff 100%);
  pointer-events: none;
}
.nd-wall {
  position: relative; z-index: 3;
  width: min(440px, 100%); margin: 6px auto 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 18px 46px rgba(63, 73, 83, .14);
  padding: 26px 30px 22px; text-align: center;
}
.nd-wall-logo { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 12px; }
.nd-wall-t { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.nd-wall-tip { margin-top: 12px; font-size: 12px; color: var(--muted); }
.nd-side { display: flex; flex-direction: column; gap: 18px; }
.nd-side-card { background: #fff; border-radius: 16px; padding: 20px 22px; }
.nd-side-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.nd-side-card > a { display: inline-block; margin: 0 12px 10px 0; font-size: 13px; color: var(--accent); }
.nd-side-card > a:hover { color: var(--ink); }
.nd-mini {
  display: block !important; margin: 0 0 12px !important;
  font-size: 13px; line-height: 1.6; color: var(--ink) !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nd-mini:hover { color: var(--accent) !important; }
.nd-mini.cur { color: #000; font-weight: 700; }

/* ---------------- 收银台弹窗 / 通用弹窗 ---------------- */
.app-modal { position: fixed; inset: 0; z-index: 300; display: none; }
.app-modal.show { display: flex; align-items: center; justify-content: center; }
.app-modal-mask { position: absolute; inset: 0; background: rgba(20, 26, 32, .55); }
.app-modal-box {
  position: relative; width: min(430px, calc(100vw - 40px));
  max-height: calc(100vh - 40px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #fff; border-radius: 18px;
  animation: pop .22s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.m-head { padding: 16px 22px; font-size: 16px; font-weight: 800; border-bottom: 1px solid var(--line); }
.m-body { padding: 20px 22px; }
.m-tip { color: var(--muted); font-size: 14px; }
.m-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 14px 22px 18px; }

.pay-modal { padding-bottom: 6px; }
.pay-head {
  background: var(--grad); color: #fff; font-weight: 800;
  padding: 14px 22px; font-size: 16px; letter-spacing: 2px;
}
.pay-body { text-align: center; padding: 24px 24px 10px; }
.pay-logo { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 12px; }
.pay-title {
  font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pay-amount { font-size: 14px; color: var(--muted); }
.pay-amount b { font-size: 30px; color: var(--price); font-family: 'Poppins', sans-serif; margin-left: 4px; }
.pay-qr-box {
  width: 216px; margin: 16px auto 0; padding: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 6px 18px rgba(63, 73, 83, .08);
}
.pay-qr { display: block; width: 100%; height: auto; border-radius: 6px; }
.pay-scan-tip { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--ink); }
.pay-status {
  display: inline-block; margin-top: 10px;
  background: #FFF3C9; color: #7A5A00; font-size: 12px; font-weight: 800;
  padding: 3px 16px; border-radius: 20px;
}
.pay-tip { margin: 14px 0 6px; font-size: 13px; color: var(--muted); }
.pay-foot { padding: 10px 24px 20px; }

/* ---------------- 轻提示 ---------------- */
.app-toast {
  position: fixed; left: 50%; bottom: 46px; transform: translateX(-50%) translateY(16px);
  z-index: 400; background: rgba(38, 44, 51, .94); color: #fff;
  font-size: 14px; padding: 11px 22px; border-radius: 30px;
  opacity: 0; pointer-events: none; transition: all .25s;
}
.app-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- 表单 ---------------- */
.form-item { margin-bottom: 14px; }
.form-item label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; padding: 11px 14px; border: 1px solid #DDE1E6;
  border-radius: 10px; outline: none; background: #fff; color: var(--ink);
  transition: border-color .15s;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { border-color: var(--accent); }
.form-item input[readonly] { background: #F6F7F8; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ck-sum { text-align: right; font-size: 14px; color: var(--muted); padding-top: 6px; }
.ck-sum b { color: var(--price); font-size: 22px; font-family: 'Poppins', sans-serif; }
.ck-ok { text-align: center; font-size: 15px; padding: 10px 0 4px; }
.ck-ok b { color: var(--price); }

/* ---------------- 商家入驻 ---------------- */
.ma-banner {
  background: linear-gradient(120deg, #274653, #37646F, #4A8177);
  color: #fff; padding: 52px 0; position: relative; overflow: hidden;
}
.ma-banner h1 { font-size: 32px; font-weight: 800; letter-spacing: 2px; }
.ma-banner p { margin-top: 8px; font-size: 14px; opacity: .85; }
.ma-grid { display: grid; grid-template-columns: 1fr 430px; gap: 24px; align-items: start; }
.ma-left, .ma-form-card { display: flex; flex-direction: column; gap: 18px; }
.ma-form-card { background: #fff; border-radius: 16px; padding: 26px; }
.ma-form-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 16px; }
.ma-flow { background: #fff; border-radius: 16px; padding: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ma-step { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.ma-step b {
  width: 40px; height: 40px; margin: 0 auto; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif;
}
.ma-step span { font-weight: 800; font-size: 14px; margin-top: 6px; }
.ma-step i { font-style: normal; font-size: 12px; color: var(--muted); }
.ma-rights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ma-right { background: #fff; border-radius: 14px; padding: 18px 16px; text-align: center; }
.ma-right b { display: block; font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.ma-right span { font-size: 12px; color: var(--muted); }
.ma-status { background: #fff; border-radius: 16px; padding: 18px 22px; }
.ma-status-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 14px; }
.ma-status-row i { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.st { font-style: normal; font-size: 12px; font-weight: 800; padding: 2px 12px; border-radius: 20px; }
.st.wait { background: #FFF3C9; color: #7A5A00; }
.st.ok { background: #E4F7E7; color: #178A38; }
.st.no { background: #FDECEC; color: #C04545; }
.ma-shops { background: #fff; border-radius: 16px; padding: 22px 24px; }
.ma-shops h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.ma-shop { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.ma-shop:last-child { border-bottom: 0; }
.ma-shop img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.ma-shop-main { flex: 1; min-width: 0; }
.ma-shop b { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.ma-shop span {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.65;
}
.ma-shop-meta { margin-top: 5px; font-size: 11.5px; color: #8E99A2; line-height: 1.7; }
.ma-shop-meta.muted { color: #A6AFB6; }
.ma-self { font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: var(--grad); padding: 2px 10px; border-radius: 20px; flex: none; }
.ma-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.ma-cat {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #DDE1E6; border-radius: 999px; padding: 7px 14px;
  font-size: 13px; cursor: pointer;
}
.ma-cat:has(input:checked) { border-color: var(--accent); background: #F0F4F6; }
.ma-cat input { accent-color: #274653; }
.ma-form-tip { font-size: 12px; color: var(--muted); }
.ma-form-tip a { color: var(--accent); font-weight: 700; }

/* ---------------- 个人中心 ---------------- */
.mb-head {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border-radius: 16px; padding: 22px 24px; margin: 20px 0 16px;
}
.mb-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 24px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.mb-id b { display: block; font-size: 17px; }
.mb-id span { font-size: 13px; color: var(--muted); }
.mb-head .btn { margin-left: auto; }
.mb-tabs { display: flex; gap: 10px; margin-bottom: 16px; }
.mb-tab {
  border: 1px solid #DDE1E6; background: #fff; color: var(--ink);
  border-radius: 999px; padding: 9px 22px; font-size: 14px; font-weight: 700;
}
.mb-tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mb-pane { padding-bottom: 50px; }
.mo-card { background: #fff; border-radius: 16px; padding: 18px 22px; margin-bottom: 14px; }
.mo-head { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.mo-head span:first-child { font-weight: 700; color: var(--ink); }
.mo-status { margin-left: auto; color: #B8770A; font-weight: 800; font-size: 13px; }
.mo-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.mo-item img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; }
.mo-item span { flex: 1; }
.mo-item i { font-style: normal; color: var(--muted); }
.mo-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; font-size: 13px; color: var(--muted); }
.mo-foot b { color: var(--price); font-size: 18px; font-family: 'Poppins', sans-serif; }
.mo-line { font-size: 13px; color: #4A4A4A; padding: 4px 0; }
.mb-profile { max-width: 560px; }

/* ---------------- 管理后台 ---------------- */
.ad-head { display: flex; align-items: baseline; gap: 14px; padding: 24px 0 18px; }
.ad-head h1 { font-size: 26px; font-weight: 800; }
.ad-head span { color: var(--muted); font-size: 13px; }
.ad-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 20px; }
.ad-stat { background: #fff; border-radius: 14px; padding: 20px; text-align: center; }
.ad-stat b {
  display: block; font-size: 30px; font-weight: 800; font-family: 'Poppins', sans-serif;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ad-stat span { font-size: 12px; color: var(--muted); }
.ad-sec { background: #fff; border-radius: 16px; padding: 22px 24px; margin-bottom: 18px; }
.ad-sec h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.ad-app { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.ad-app > div:first-child { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ad-app b { font-size: 14px; }
.ad-app-acts { display: flex; align-items: center; gap: 10px; }
.ad-order { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.ad-order span:first-child { font-weight: 700; }
.ad-order b { margin-left: auto; color: var(--price); }

/* ---------------- 文档页 ---------------- */
.page-title-bar { background: linear-gradient(120deg, #274653, #37646F, #4A8177); color: #fff; padding: 42px 0; }
.page-title-bar h1 { font-size: 28px; font-weight: 800; letter-spacing: 1px; }
.doc-layout { padding: 26px 20px 60px; }
.doc-card { background: #fff; border-radius: 16px; padding: 36px 44px 30px; max-width: 1080px; }
.doc-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.doc-title { font-size: 26px; font-weight: 800; letter-spacing: 1px; }
.doc-subtitle { font-size: 13px; color: var(--muted); margin-top: 6px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.doc-meta span { font-size: 12.5px; color: #6B7780; background: #F3F5F7; border-radius: 20px; padding: 4px 12px; }
.doc-preamble { margin-top: 18px; padding: 16px 20px; background: #F8FAFB; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; }
.doc-preamble p { font-size: 14px; color: #4A4A4A; line-height: 1.95; }
.doc-preamble p + p { margin-top: 8px; }
.doc-body { display: grid; grid-template-columns: 240px 1fr; gap: 34px; margin-top: 26px; align-items: start; }
.doc-toc { position: sticky; top: 18px; background: #FAFBFC; border: 1px solid var(--line); border-radius: 12px; padding: 16px 14px; }
.doc-toc b { display: block; font-size: 13px; color: var(--accent); letter-spacing: 1px; margin-bottom: 8px; }
.doc-toc ul { list-style: none; }
.doc-toc li { font-size: 12.8px; line-height: 1.5; }
.doc-toc li a { display: block; padding: 5px 4px; color: #5A646C; border-radius: 6px; transition: background .15s, color .15s; }
.doc-toc li a:hover { background: #EDF1F4; color: var(--accent); }
.doc-main { min-width: 0; }
.doc-card h3 { font-size: 17px; font-weight: 800; margin: 24px 0 10px; padding-left: 10px; border-left: 3px solid #C9D2D9; }
.doc-sec:first-child h3 { margin-top: 0; }
.doc-card p { font-size: 14.5px; color: #4A4A4A; line-height: 2; margin-bottom: 10px; }
.doc-list { margin: 4px 0 12px; padding-left: 2px; }
.doc-list li { position: relative; font-size: 14.2px; color: #4A4A4A; line-height: 1.95; padding-left: 18px; margin-bottom: 6px; }
.doc-list li::before { content: ''; position: absolute; left: 4px; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: #B9C4CC; }
.doc-tail { margin-top: 26px; padding-top: 16px; border-top: 1px dashed #DDE3E8; font-size: 12.5px; color: #8A949C; line-height: 1.9; }
@media (max-width: 860px) {
  .doc-card { padding: 24px 20px; }
  .doc-body { grid-template-columns: 1fr; gap: 18px; }
  .doc-toc { position: static; }
}

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--dark); color: #C9D2D9; margin-top: 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px; padding: 44px 20px 30px; }
.foot-brand img { width: 46px; height: 46px; border-radius: 11px; margin-bottom: 12px; }
.foot-brand b { display: block; color: #fff; font-size: 16px; margin-bottom: 8px; }
.foot-brand p { font-size: 12.5px; line-height: 1.9; color: #9AA7B0; }
.foot-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: 1px; }
.foot-col a { display: block; font-size: 13px; color: #AEB9C1; padding: 4px 0; }
.foot-col a:hover { color: #fff; }
.foot-line { font-size: 12.5px; color: #AEB9C1; padding: 3px 0; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; }
.foot-bottom .shell { text-align: center; font-size: 12.5px; color: #8D9AA4; }

/* ---------------- 登录 / 注册 ---------------- */
.auth-wrap { min-height: calc(100vh - 74px); display: flex; align-items: center; justify-content: center; padding: 50px 20px; }
.auth-card {
  width: min(420px, 100%); background: #fff; border-radius: 18px;
  box-shadow: var(--shadow); padding: 36px 36px 28px; text-align: center;
}
.auth-logo { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 14px; }
.auth-card h1 { font-size: 22px; font-weight: 800; }
.auth-sub { font-size: 12.5px; color: var(--muted); margin: 8px 0 22px; }
.auth-card form { text-align: left; }
.auth-foot { margin-top: 16px; font-size: 13px; color: var(--muted); }
.auth-foot a { color: var(--accent); font-weight: 700; }
.auth-tip { margin-top: 8px; font-size: 12px; color: var(--muted); }
.auth-agree {
  display: flex; align-items: flex-start; gap: 9px; margin: 4px 0 4px;
  padding: 11px 13px; background: #F7F9FA; border: 1px solid #E3E8EC; border-radius: 10px;
  font-size: 12.5px; line-height: 1.7; color: #5A646C; text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.auth-agree:hover { border-color: #C3CDD5; background: #F3F6F8; }
.auth-agree input {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; flex: 0 0 16px;
  margin-top: 2px; border: 1.5px solid #B9C4CC; border-radius: 4px; background: #fff;
  position: relative; cursor: pointer; transition: background .15s, border-color .15s;
}
.auth-agree input:checked { background: var(--accent); border-color: var(--accent); }
.auth-agree input:checked::after {
  content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.auth-agree a { color: var(--price); font-weight: 700; }
.auth-agree a:hover { text-decoration: underline; }
.auth-agree.shake { animation: authShake .4s; border-color: var(--price); background: #FDF3F3; }
@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
.auth-agree-tip { font-size: 11.5px; color: #A6AFB6; margin: 0 0 14px 2px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .home-cats { grid-template-columns: repeat(3, 1fr); }
  .nz-item, .nz-flip { flex-direction: column; }
  .nz-side { width: 100%; min-height: 0; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 14px 22px; }
  .nz-num { font-size: 30px; }
  .news-detail-wrap { grid-template-columns: 1fr; }
  .pd-layout { grid-template-columns: 1fr; }
  .ma-grid { grid-template-columns: 1fr; }
  .ad-stats { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-carousel { height: 380px; }
  .hc-txt h2 { font-size: 32px; }
  .header-inner { gap: 16px; }
  .brand-txt i { display: none; }
  .nav-list { gap: 18px; }
  .cart-row { grid-template-columns: 72px 1fr 110px; grid-auto-rows: auto; }
  .cart-sub, .cart-del { grid-column: 3; text-align: right; }
}
@media (max-width: 700px) {
  .site-header { height: auto; }
  .header-inner { height: auto; flex-wrap: wrap; padding: 9px 0 6px; gap: 10px 14px; }
  .main-nav { order: 3; flex: 1 0 100%; }
  .nav-list { gap: 16px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .nav-link { font-size: 13.5px; white-space: nowrap; }
  .nav-badge { display: none; }
  .brand-txt b { font-size: 15px; }
}
@media (max-width: 560px) {
  .home-cats { grid-template-columns: repeat(2, 1fr); }
  .ad-strip { grid-template-columns: 1fr; }
  .hero-carousel { height: 300px; }
  .hc-txt h2 { font-size: 26px; }
  .section-head h2 { font-size: 26px; }
  .goods-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-list { gap: 12px; font-size: 13px; }
  .top-user { display: none; }
  .mall-search { width: 130px; }
  .ma-flow, .ma-rights { grid-template-columns: 1fr; }
  .ad-stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  .nd-card { padding: 22px 18px; }
  .nd-head h1 { font-size: 21px; }
  .pd-layout { padding: 16px; }
  .form-row { grid-template-columns: 1fr; }
}
