:root {
  --primary: #1f5fd6;
  --primary-dark: #1648a8;
  --primary-light: #eaf1fc;
  --accent: #e8702a;
  --text: #1f2733;
  --text-soft: #5b6675;
  --text-mute: #8a94a3;
  --line: #e6e9ef;
  --bg: #f6f8fb;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(31, 50, 90, 0.08);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 12px; color: var(--text); font-weight: 700; }
p { margin: 0 0 12px; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ---------- 头部 ---------- */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(31, 50, 90, 0.04);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 18px;
  height: 64px; display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.brand-text { font-weight: 700; font-size: 16px; white-space: nowrap; }
.main-nav { display: flex; gap: 6px; margin-left: 10px; }
.main-nav a {
  padding: 8px 14px; border-radius: 8px; color: var(--text-soft); font-weight: 600;
}
.main-nav a:hover { background: var(--primary-light); color: var(--primary); }
.main-nav a.active { background: var(--primary); color: #fff; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-login, .nav-register {
  padding: 8px 16px; border-radius: 8px; font-weight: 600;
}
.nav-login { color: var(--primary); }
.nav-register { background: var(--primary); color: #fff; }
.nav-register:hover { background: var(--primary-dark); color: #fff; }
.nav-cart {
  position: relative; padding: 8px 14px; border-radius: 8px; color: var(--text-soft); font-weight: 600;
}
.nav-cart:hover { background: var(--primary-light); color: var(--primary); }
.badge {
  display: inline-block; min-width: 18px; height: 18px; line-height: 18px; text-align: center;
  background: var(--accent); color: #fff; border-radius: 9px; font-size: 12px; padding: 0 5px; margin-left: 4px;
}
.user-menu { position: relative; }
.user-name { cursor: pointer; font-weight: 600; color: var(--text); padding: 8px 10px; border-radius: 8px; }
.user-menu:hover .user-dropdown { display: block; }
.user-dropdown {
  display: none; position: absolute; right: 0; top: 100%; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); min-width: 130px; overflow: hidden;
}
.user-dropdown a { display: block; padding: 10px 14px; color: var(--text-soft); font-weight: 600; }
.user-dropdown a:hover { background: var(--bg); color: var(--primary); }
.menu-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text); margin-left: auto; }

/* ---------- 底部 ---------- */
#site-footer { background: #172033; color: #c4ccd8; margin-top: 50px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 18px 20px;
  display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 28px;
}
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col p { font-size: 13px; color: #9aa6b6; margin: 0 0 8px; }
.footer-col a { display: block; color: #9aa6b6; font-size: 13px; padding: 3px 0; }
.footer-col a:hover { color: #fff; }
/* 后台入口：运营方日常要用，从一串导航链接里单独拎出来，避免找不到 */
.footer-col a.footer-admin {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14);
  color: #cfd8e3; font-weight: 600;
}
.footer-col a.footer-admin:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #283349; padding: 16px 18px; text-align: center; }
.footer-bottom p { margin: 2px 0; font-size: 12px; color: #8b97a8; }
.footer-links a { color: #9aa6b6; }
.footer-bottom .icp-link { color: #9aa6b6; text-decoration: none; border-bottom: 1px dotted #5a6678; padding-bottom: 1px; transition: color .15s, border-color .15s; }
.footer-bottom .icp-link:hover { color: #d7dee8; border-bottom-color: #d7dee8; }

/* ---------- 通用区块 ---------- */
.section { padding: 46px 0; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head h2 { font-size: 26px; }
.section-head .sub { color: var(--text-mute); font-size: 14px; }
.section-tip { color: var(--text-mute); font-size: 13px; text-align: center; margin-top: -16px; margin-bottom: 26px; }

/* ---------- 首页 ---------- */
.hero {
  background: linear-gradient(135deg, #1f5fd6, #2a73e6 55%, #3a86f0);
  color: #fff; padding: 64px 0 70px;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.hero h1 { color: #fff; font-size: 34px; margin-bottom: 14px; }
.hero p { color: #dbe7fb; font-size: 16px; max-width: 640px; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-tags span {
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px; border-radius: 20px; font-size: 13px;
}
.hero-btns { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 9px; font-weight: 700; cursor: pointer; border: none;
}
.btn-primary { background: #fff; color: var(--primary); }
.btn-primary:hover { background: #eef3fc; color: var(--primary-dark); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-blue { background: var(--primary); color: #fff; }
.btn-blue:hover { background: var(--primary-dark); color: #fff; }
.btn-line { background: var(--primary-light); color: var(--primary); }
.btn-line:hover { background: #dde8fb; }
.btn-block { width: 100%; text-align: center; }

.module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 8px; }
.module-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.module-card .mc-body { padding: 28px; flex: 1; }
.module-card .mc-icon {
  width: 54px; height: 54px; border-radius: 12px; background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; margin-bottom: 14px;
}
.module-card h3 { font-size: 21px; }
.module-card p { color: var(--text-soft); }
.module-card .mc-foot { padding: 0 28px 26px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; text-align: center;
}
.feature .f-num { font-size: 22px; font-weight: 800; color: var(--primary); }
.feature h4 { font-size: 15px; margin: 8px 0 4px; }
.feature p { font-size: 13px; color: var(--text-mute); margin: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; position: relative; }
.step .s-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 12px;
}
.step h4 { font-size: 16px; }
.step p { font-size: 13px; color: var(--text-mute); margin: 0; }

/* ---------- 卡片网格（商品/信息）---------- */
.toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px;
}
.search-box { flex: 1; min-width: 220px; position: relative; }
.search-box input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px;
}
.search-box input:focus { outline: none; border-color: var(--primary); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 16px; border: 1px solid var(--line); background: #fff; border-radius: 20px;
  cursor: pointer; font-size: 13px; color: var(--text-soft); font-weight: 600;
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .thumb { aspect-ratio: 1 / 1; overflow: hidden; background: #f1f3f7; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.card .title { font-size: 15px; font-weight: 700; margin: 0 0 6px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: 12px; color: var(--text-mute); margin-bottom: 8px; }
.card .meta.phone-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 0; }
.card .meta.phone-line .phone-num { font-variant-numeric: tabular-nums; letter-spacing: .2px; color: var(--text-soft); white-space: nowrap; }
.card .meta.phone-line .phone-date { color: var(--text-mute); white-space: nowrap; }
.card .price { color: var(--accent); font-weight: 800; font-size: 17px; }
.card .price .orig { color: var(--text-mute); font-weight: 400; font-size: 12px; text-decoration: line-through; margin-left: 6px; }
.card .row-between { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.tag { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-right: 4px; }
.empty { text-align: center; color: var(--text-mute); padding: 50px 0; }

/* ---------- 商品详情 ---------- */
.breadcrumb { font-size: 13px; color: var(--text-mute); margin: 18px 0; }
.breadcrumb a { color: var(--text-mute); }
/* ---------- 商品详情：图列 · 信息 · 商家侧栏 ---------- */
.detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 280px;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
  align-items: start;
}
.gallery-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 760px;
  overflow-y: auto;
  padding-right: 4px;
  scroll-behavior: smooth;
}
.gallery-scroll .pd-image {
  width: 100%;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
}
.gallery-scroll::-webkit-scrollbar { width: 6px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: #cfd5de; border-radius: 4px; }
.gallery-scroll::-webkit-scrollbar-track { background: transparent; }

.detail-info h1 { font-size: 24px; }
.detail-info .price-line { margin: 14px 0; }
.detail-info .price-line .now { color: var(--accent); font-size: 28px; font-weight: 800; }
.detail-info .price-line .orig { color: var(--text-mute); text-decoration: line-through; margin-left: 10px; }
.detail-info .tags { margin: 10px 0; }
.spec-list { list-style: none; padding: 0; margin: 14px 0; border-top: 1px solid var(--line); }
.spec-list li { display: flex; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-list li .sk { width: 80px; color: var(--text-mute); }
.stock-line { color: var(--text-soft); font-size: 13px; margin: 10px 0 0; }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.qty-label { color: var(--text-soft); font-weight: 600; }
.qty-ctrl { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty-ctrl button { width: 38px; height: 38px; border: none; background: #f3f5f9; font-size: 18px; cursor: pointer; color: var(--text); }
.qty-ctrl input { width: 54px; height: 38px; border: none; text-align: center; font-size: 15px; }
.detail-actions { display: flex; gap: 12px; }
.detail-actions .btn { flex: 1; text-align: center; }
.scroll-hint { margin-top: 14px; padding: 10px 12px; background: #f6f8fb; border-radius: 8px; color: var(--text-soft); font-size: 12px; }

/* ---------- 商家信息卡（侧栏） ---------- */
.merchant-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  position: sticky;
  top: 16px;
  font-size: 13px;
  color: var(--text-soft);
}
.merchant-card .mc-head { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.merchant-card .mc-logo {
  width: 48px; height: 48px; border-radius: 10px;
  background: linear-gradient(135deg, #2c6b4f 0%, #3a8665 100%);
  color: #fff; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.merchant-card .mc-name { font-size: 15px; font-weight: 700; color: var(--text); }
.merchant-card .mc-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.merchant-card .mc-pill { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #eef1f5; color: var(--text-soft); }
.merchant-card .mc-pill-ok { background: #e6f5ed; color: #1e7e44; }
.merchant-card .mc-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 12px 0; border-bottom: 1px dashed var(--line); text-align: center; }
.merchant-card .mc-stats .num { font-size: 16px; font-weight: 700; color: var(--text); }
.merchant-card .mc-stats .lbl { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.merchant-card .mc-meta { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.merchant-card .mc-meta > div { display: flex; padding: 5px 0; font-size: 12px; line-height: 1.5; }
.merchant-card .mc-meta .k { width: 64px; color: var(--text-mute); flex-shrink: 0; }
.merchant-card .mc-meta .phone-cell { color: var(--text); font-weight: 600; flex: 1; }
.merchant-card .mc-meta .login-tip { display: block; font-style: normal; font-weight: 400; font-size: 11px; color: var(--primary); margin-top: 2px; }
.merchant-card .mc-actions { display: flex; gap: 8px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.merchant-card .mc-actions .btn { flex: 1; padding: 6px 0; font-size: 13px; }
.merchant-card .mc-section { padding-top: 12px; }
.merchant-card .mc-section-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.merchant-card .mc-products { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; }
.merchant-card .mp-row { display: flex; gap: 8px; padding: 6px; border-radius: 8px; text-decoration: none; color: var(--text); }
.merchant-card .mp-row:hover { background: #f6f8fb; }
.merchant-card .mp-row img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.merchant-card .mp-row .mp-info { flex: 1; min-width: 0; }
.merchant-card .mp-row .mp-name { font-size: 12px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.merchant-card .mp-row .mp-price { font-size: 12px; color: var(--accent); font-weight: 700; margin-top: 2px; }
.merchant-card .text-muted { color: var(--text-mute); font-size: 12px; }

.detail-desc { margin-top: 30px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: var(--shadow); }
.detail-desc h3 { font-size: 18px; }
.detail-desc .article-images { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.detail-desc .article-images img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }

/* ---------- 购物车 ---------- */
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cart-table th, .cart-table td { padding: 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.cart-table th { background: var(--bg); color: var(--text-soft); font-weight: 600; }
.cart-table .ci { display: flex; align-items: center; gap: 12px; }
.cart-table .ci img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-table .ci .nm { font-weight: 600; }
.cart-table .qty-ctrl button { height: 32px; width: 32px; }
.cart-table .qty-ctrl input { height: 32px; width: 46px; }
.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-top: 20px; box-shadow: var(--shadow); }
.cart-summary .line { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.cart-summary .total { font-size: 22px; font-weight: 800; color: var(--accent); }
.auth-tip { background: var(--primary-light); border: 1px solid #cfe0fb; color: var(--primary-dark);
  padding: 16px 18px; border-radius: 10px; margin-bottom: 20px; }

/* ---------- 信息详情 ---------- */
.info-detail-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; }
.info-main { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: var(--shadow); }
.info-main .cover { border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.info-main h1 { font-size: 24px; }
.info-main .article p { color: var(--text-soft); line-height: 1.9; }
.info-side .contact-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); position: sticky; top: 84px; }
.contact-card h4 { font-size: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.contact-card .field { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.contact-card .field .k { color: var(--text-mute); }
.contact-card .phone-mask { font-weight: 800; color: var(--primary); letter-spacing: 1px; }
.contact-card .login-hint { font-size: 12px; color: var(--text-mute); margin-top: 6px; }

/* ---------- 表单 / 认证 ---------- */
.auth-wrap { max-width: 460px; margin: 40px auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; box-shadow: var(--shadow); }
.auth-wrap h2 { text-align: center; font-size: 22px; }
.auth-wrap .sub { text-align: center; color: var(--text-mute); font-size: 13px; margin-bottom: 22px; }
.field-group { margin-bottom: 16px; }
.field-group label { display: block; font-size: 13px; color: var(--text-soft); margin-bottom: 6px; font-weight: 600; }
.field-group input, .field-group select, .field-group textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-family: inherit;
}
.field-group input:focus, .field-group select:focus, .field-group textarea:focus { outline: none; border-color: var(--primary); }
.field-group textarea { resize: vertical; min-height: 120px; }
.agree-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-soft); margin: 6px 0 16px; }
.agree-row input { margin-top: 4px; }
.agree-row a { color: var(--primary); }
.msg { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; display: none; }
.msg.error { display: block; background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6; }
.msg.ok { display: block; background: #e9f7ef; color: #1e7e44; border: 1px solid #b7e4c7; }
.auth-switch { text-align: center; font-size: 13px; color: var(--text-mute); margin-top: 16px; }

/* ---------- 关于 ---------- */
.about-block { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); margin-bottom: 22px; }
.about-block h3 { font-size: 19px; }
.about-meta { display: grid; grid-template-columns: 1fr; gap: 10px 30px; margin-top: 10px; }
.about-meta .m { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.about-meta .m .k { font-size: 12px; color: var(--text-mute); }
.about-meta .m .v { font-weight: 600; }
.scope-text { color: var(--text-soft); line-height: 1.9; white-space: pre-wrap; }

/* ---------- 个人中心 ---------- */
.account-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: var(--shadow); }

/* ---------- 会员方案卡片 ---------- */
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; position: relative; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan-card.plan-hot { border-color: var(--primary); box-shadow: 0 6px 22px rgba(31, 95, 214, 0.18); }
.plan-tag { position: absolute; top: -12px; right: 16px; background: var(--accent); color: #fff; font-size: 12px; padding: 4px 12px; border-radius: 12px; font-weight: 700; }
.plan-name { font-size: 18px; font-weight: 700; }
.plan-price { color: var(--accent); font-size: 32px; font-weight: 800; margin: 8px 0 14px; }
.plan-period { color: var(--text-mute); font-size: 14px; font-weight: 400; }
.plan-benefits { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.plan-benefits li { font-size: 14px; color: var(--text-soft); padding: 6px 0 6px 22px; position: relative; }
.plan-benefits li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.plan-buy { margin-top: auto; }

/* ---------- 头部会员服务链接 ---------- */
.nav-recharge { padding: 8px 16px; border-radius: 8px; background: var(--accent); color: #fff !important; font-weight: 700; }
.nav-recharge:hover { background: #d05e1f; color: #fff !important; }
.nav-recharge.active { background: #d05e1f; color: #fff !important; }
.nav-notice { padding: 8px 12px; border-radius: 8px; color: var(--text-soft); font-weight: 600; }
.nav-notice:hover { background: var(--primary-light); color: var(--primary); }
.nav-notice.active { background: var(--primary); color: #fff; }

/* ---------- 个人中心：侧栏 + 主区 ---------- */
.account-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
}
.account-sidebar {
  background: linear-gradient(180deg, #2c6b4f 0%, #235c44 100%);
  color: #e9efe9;
  border-radius: var(--radius);
  padding: 18px 14px;
  height: max-content;
  position: sticky;
  top: 16px;
}
.account-sidebar .user-card { text-align: center; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.account-sidebar .avatar {
  width: 56px; height: 56px; margin: 0 auto 10px;
  background: rgba(255,255,255,0.18); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.account-sidebar .phones .masked { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.account-sidebar .phones .full { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.account-sidebar .level-row { margin-top: 10px; display: flex; justify-content: center; gap: 8px; align-items: center; flex-wrap: wrap; }
.account-sidebar .lvl { font-size: 12px; color: #cfe1d4; }
.account-sidebar .badge-ok { background: #4ea880; color: #fff; padding: 2px 10px; border-radius: 10px; font-size: 12px; }
.account-sidebar .badge-warn { background: #b56b3a; color: #fff; padding: 2px 10px; border-radius: 10px; font-size: 12px; }
.account-sidebar .coins-row { padding: 14px 8px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.12); }
.account-sidebar .coins-label { font-size: 14px; color: #cfe1d4; }
.account-sidebar .coins-num { font-size: 24px; font-weight: 700; color: #fff; }
.account-sidebar .sb-menu { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.account-sidebar .sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 8px; color: #d9e5dd;
  font-size: 14px; cursor: pointer; text-decoration: none; transition: background .15s;
}
.account-sidebar .sb-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.account-sidebar .sb-item.active { background: #3a8665; color: #fff; font-weight: 600; }
.account-sidebar .sb-item svg { flex-shrink: 0; opacity: .9; }

.account-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pane-title { font-size: 22px; font-weight: 700; color: var(--text); margin: 0 0 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card {
  background: #f5efe6; border-radius: var(--radius);
  padding: 22px 16px; text-align: center;
  border: 1px solid #ebe1d2;
}
.stat-card .stat-num { font-size: 30px; font-weight: 700; color: var(--text); line-height: 1; }
.stat-card .stat-suffix { font-size: 14px; font-weight: 400; color: var(--text-soft); margin-left: 4px; }
.stat-card .stat-label { margin-top: 8px; font-size: 13px; color: var(--text-soft); }

.sec-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px;
}
.sec-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.sec-body { font-size: 14px; color: var(--text-soft); line-height: 1.7; }
.sec-body .text-muted { color: var(--text-mute); }
.sec-body .link-inline { color: var(--primary); font-weight: 600; margin-left: 6px; }
.sec-body .link-inline:hover { text-decoration: underline; }
.sec-body .badge-ok { background: #e6f5ed; color: #1e7e44; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.sec-body .badge-warn { background: #fff3e3; color: #b3621a; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }

.btn.btn-green { background: #2c6b4f; color: #fff; padding: 8px 18px; border-radius: 8px; font-weight: 600; border: 0; cursor: pointer; display: inline-block; text-decoration: none; }
.btn.btn-green:hover { background: #235c44; color: #fff; }
.btn.btn-line { background: #fff; color: var(--text); border: 1px solid var(--line); padding: 7px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; display: inline-block; text-decoration: none; }
.btn.btn-line:hover { border-color: var(--primary); color: var(--primary); }
.btn.btn-xs { padding: 5px 12px; font-size: 12.5px; border-radius: 7px; font-weight: 600; }
.btn.btn-danger { color: #c0392b; }
.btn.btn-danger:hover { border-color: #c0392b; color: #c0392b; background: #fdecec; }
/* 「我发布的信息」行内操作：查看 / 编辑 / 删除 */
.post-row.has-acts { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.post-row.has-acts .left { flex: 1; min-width: 0; }
.post-acts { display: flex; gap: 8px; flex-shrink: 0; }
.owner-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }

.quick-row { display: flex; gap: 10px; flex-wrap: wrap; }

.rn-form, .rt-form, .addr-form { display: flex; flex-direction: column; gap: 12px; }
.rn-form { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; }
.rn-form label, .rt-form label, .addr-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-soft); }
.rn-form input, .rt-form input, .rt-form textarea, .addr-form input {
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 14px;
  background: #fff; color: var(--text); outline: none; transition: border-color .15s;
}
.rn-form input:focus, .rt-form input:focus, .rt-form textarea:focus, .addr-form input:focus { border-color: var(--primary); }
.msg { font-size: 13px; }
.msg.ok { color: #1e7e44; }
.msg.error { color: #c0392b; }

.post-row { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.post-row:last-child { border-bottom: none; }
.post-row:hover .t { color: var(--primary); }
.post-row .t { font-weight: 600; }
.post-row .m { font-size: 12px; color: var(--text-mute); margin-top: 4px; }

.coins-big { display: flex; align-items: baseline; gap: 8px; }
.coins-big .num { font-size: 36px; font-weight: 700; color: var(--text); }
.coins-big .lbl { color: var(--text-soft); }
.coin-list { list-style: none; padding: 0; margin: 0; }
.coin-list li { display: grid; grid-template-columns: 140px 1fr 80px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--text-soft); }
.coin-list li:last-child { border-bottom: none; }
.coin-list .plus { color: #1e7e44; font-weight: 600; text-align: right; }
.coin-list .minus { color: #c0392b; font-weight: 600; text-align: right; }

.vip-row { display: grid; grid-template-columns: 1fr 120px 80px 120px; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.vip-row:last-child { border-bottom: none; }
.vip-row .vip-name { font-weight: 600; }
.vip-row .vip-price { color: var(--accent); font-weight: 700; }
.vip-row .vip-days { color: var(--text-soft); font-size: 13px; }

.addr-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.addr-row:last-child { border-bottom: none; }
.addr-row .addr-main { font-size: 14px; }
.addr-row .addr-actions { display: flex; gap: 8px; flex-shrink: 0; }

@media (max-width: 980px) {
  .account-wrap { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .vip-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 760px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .rn-form { grid-template-columns: 1fr !important; }
  .coin-list li { grid-template-columns: 1fr 60px; }
  .coin-list li span:nth-child(2) { display: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .detail-wrap, .info-detail-wrap { grid-template-columns: 1fr; }
  .info-side .contact-card { position: static; }
  .detail-wrap .merchant-card { position: static; }
  #plan-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 10px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .header-right { display: none; }
  .header-right.open { display: flex; position: absolute; top: 64px; right: 18px; background: #fff;
    padding: 12px; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); flex-direction: column; gap: 8px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .about-meta { grid-template-columns: 1fr; }
  #plan-grid { grid-template-columns: 1fr !important; }
}

/* ---------- 通用状态徽章 ---------- */
.badge-ok { background: #e6f5ed; color: #1e7e44; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.badge-warn { background: #fff3e3; color: #b3621a; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }

/* ---------- 服务承诺 ---------- */
.sp-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.sp-pill { font-size: 12px; color: #1e7e44; background: #e6f5ed; border-radius: 4px; padding: 3px 10px; }
.spec-list.ship-list { margin-top: 14px; }
.mc-shop-link { display: block; text-align: center; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--primary); }
.mc-pill { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #eef1f5; color: var(--text-soft); }
.mc-pill-ok { background: #e6f5ed; color: #1e7e44; }

/* ---------- 用户评价 ---------- */
.rv-summary { display: flex; align-items: baseline; gap: 10px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); margin-bottom: 6px; }
.rv-score { font-size: 30px; font-weight: 800; color: var(--accent); }
.rv-label { color: var(--text-soft); }
.rv-count { color: var(--text-mute); font-size: 13px; margin-left: auto; }
.rv-item { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.rv-item:last-child { border-bottom: none; }
.rv-head { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 4px; }
.rv-user { font-weight: 700; color: var(--text); }
.rv-stars { color: var(--accent); letter-spacing: 1px; }
.rv-date { color: var(--text-mute); margin-left: auto; }
.rv-text { color: var(--text-soft); font-size: 14px; }

/* ---------- 购物车提示 ---------- */
.cart-tip { font-size: 12px; color: var(--text-mute); margin: 12px 0 0; text-align: center; }

/* ---------- 结算页 / 收银台 ---------- */
.checkout-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.co-left { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.co-box, .co-summary { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow); }
.co-summary { position: sticky; top: 84px; }
.co-box-title { font-size: 16px; font-weight: 700; padding-bottom: 10px; border-bottom: 1px dashed var(--line); margin-bottom: 14px; display: flex; align-items: center; }
.co-box-extra { margin-left: auto; font-size: 13px; font-weight: 400; }
.co-tip { font-size: 12px; color: var(--text-mute); margin: 10px 0 0; }
.co-addr-list, .co-option-list { display: flex; flex-direction: column; gap: 10px; }
.co-addr, .co-option { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.co-addr.on, .co-option.on { border-color: var(--primary); background: var(--primary-light); }
.co-addr input, .co-option input { margin-top: 5px; }
.co-option > div { flex: 1; }
.co-addr-body { flex: 1; }
.co-addr-line1 { font-weight: 700; }
.co-addr-phone { color: var(--text-soft); font-weight: 400; margin-left: 10px; }
.co-addr-line2 { font-size: 13px; color: var(--text-soft); margin-top: 2px; }
.co-option-name { font-weight: 700; }
.co-option-desc { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.co-option-fee { font-weight: 700; color: var(--accent); font-size: 13px; white-space: nowrap; }
.co-rec { font-size: 11px; color: #fff; background: var(--accent); border-radius: 4px; padding: 1px 6px; margin-left: 6px; font-weight: 400; }
.co-field { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.co-field label { width: 88px; color: var(--text-soft); font-size: 14px; flex-shrink: 0; }
.co-field input, .co-field select, .co-field textarea {
  flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; color: var(--text); background: #fff;
}
.co-field input:focus, .co-field select:focus, .co-field textarea:focus { outline: none; border-color: var(--primary); }
.co-field textarea { resize: vertical; }
.co-remark { align-items: flex-start; }
.co-items { display: flex; flex-direction: column; }
.co-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--text); }
a.co-item:hover { color: var(--primary); }
.co-item img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.co-item-info { flex: 1; min-width: 0; }
.co-item-name { font-size: 14px; font-weight: 600; line-height: 1.4; }
.co-item-meta { font-size: 12px; color: var(--text-mute); margin-top: 2px; }
.co-item-qty { color: var(--text-mute); font-size: 13px; white-space: nowrap; }
.co-item-price { font-weight: 700; white-space: nowrap; }
.co-line { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.co-line-total { border-bottom: none; }
.co-total { font-size: 22px; font-weight: 800; color: var(--accent); }
.co-kv > div { display: flex; padding: 7px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.co-kv > div:last-child { border-bottom: none; }
.co-kv .k { width: 84px; color: var(--text-mute); flex-shrink: 0; }

.pay-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); position: sticky; top: 84px; }
.pay-head { text-align: center; padding-bottom: 16px; border-bottom: 1px dashed var(--line); margin-bottom: 16px; }
.pay-label { color: var(--text-soft); font-size: 13px; }
.pay-amount { font-size: 36px; font-weight: 800; color: var(--accent); line-height: 1.3; }
.pay-order { font-size: 12px; color: var(--text-mute); }
.pay-result { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 46px 24px; text-align: center; box-shadow: var(--shadow); }
.pay-result h2 { font-size: 22px; }
.pay-result p { color: var(--text-soft); margin-bottom: 6px; }
.pay-result-icon {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  background: #e6f5ed; color: #1e7e44; display: flex; align-items: center; justify-content: center;
}

/* ---------- 我的订单 ---------- */
.order-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.order-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.order-no { font-weight: 700; }
.order-time { color: var(--text-mute); font-weight: 400; font-size: 12px; margin-left: 12px; }
.order-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.order-amount { font-size: 14px; color: var(--text-soft); display: flex; flex-direction: column; gap: 2px; }
.order-amount strong { color: var(--accent); font-size: 18px; }
.order-ship { font-size: 12px; color: var(--text-mute); }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.order-actions .btn { padding: 7px 14px; font-size: 13px; }

/* ---------- 帮助中心 ---------- */
.help-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.help-nav {
  position: sticky; top: 84px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px;
}
.help-nav a { padding: 10px 12px; border-radius: 8px; color: var(--text-soft); font-size: 14px; font-weight: 600; }
.help-nav a:hover { background: var(--primary-light); color: var(--primary); }
.help-main .about-block { margin-bottom: 18px; }
.help-main h3 { scroll-margin-top: 84px; }
.help-steps { margin: 0; padding-left: 20px; color: var(--text-soft); }
.help-steps li { margin-bottom: 8px; }
.help-list { margin: 0 0 12px; padding-left: 20px; color: var(--text-soft); }
.help-list li { margin-bottom: 6px; }
.help-note { background: var(--bg); border-left: 3px solid var(--primary); padding: 10px 14px; border-radius: 6px; color: var(--text-soft); font-size: 13px; }
.table-wrap { overflow-x: auto; margin: 12px 0; }
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table th, .info-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.info-table th { background: var(--bg); color: var(--text-soft); font-weight: 600; }
.faq-item { border-bottom: 1px dashed var(--line); padding: 12px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.faq-a { color: var(--text-soft); font-size: 14px; }

/* ---------- 店铺页 ---------- */
.shop-head {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) 260px; gap: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); align-items: start;
}
.shop-logo {
  width: 76px; height: 76px; border-radius: 14px;
  background: linear-gradient(135deg, #2c6b4f 0%, #3a8665 100%);
  color: #fff; font-size: 32px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.shop-name { font-size: 22px; font-weight: 800; }
.shop-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.shop-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.shop-stats .num { font-size: 22px; font-weight: 800; color: var(--text); margin-right: 6px; }
.shop-stats .lbl { font-size: 12px; color: var(--text-mute); }
.shop-contact { background: var(--bg); border-radius: 10px; padding: 14px; font-size: 13px; }
.shop-contact-title { font-weight: 700; margin-bottom: 8px; }
.shop-contact .row { display: flex; padding: 4px 0; }
.shop-contact .row .k { width: 70px; color: var(--text-mute); flex-shrink: 0; }
.shop-contact .row .v { color: var(--text); font-weight: 600; }
.shop-tip { font-size: 12px; color: var(--primary); margin: 6px 0 0; }

@media (max-width: 980px) {
  .checkout-wrap { grid-template-columns: 1fr; }
  .co-summary, .pay-box, .help-nav { position: static; }
  .help-wrap { grid-template-columns: 1fr; }
  .shop-head { grid-template-columns: 76px minmax(0, 1fr); }
  .shop-contact { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .co-field { flex-direction: column; align-items: stretch; gap: 6px; }
  .co-field label { width: auto; }
  .shop-head { grid-template-columns: 1fr; }
  .shop-logo { width: 60px; height: 60px; font-size: 26px; }
  .order-foot { flex-direction: column; align-items: flex-start; }
  .co-item-name { font-size: 13px; }
  .co-box, .co-summary, .pay-box { padding: 16px; }
}


/* 发布人实名标识与后台来源标识（2026-09-18） */
.pub-tag {
  display: inline-block; font-size: 11px; line-height: 1; font-weight: 600;
  padding: 3px 8px; border-radius: 10px; margin-left: 6px;
  background: #e6f5ed; color: #1e7e44; vertical-align: middle; white-space: nowrap;
}
.src-tag {
  display: inline-block; font-size: 11px; line-height: 1; font-weight: 600;
  padding: 3px 8px; border-radius: 10px; margin-left: 8px;
  background: #eef1f5; color: var(--text-soft); vertical-align: middle; white-space: nowrap;
}
.publisher-panel { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.publisher-chip {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; box-shadow: var(--shadow); min-width: 210px;
}
.publisher-chip .pc-name { font-size: 14px; font-weight: 700; }
.publisher-chip .pc-meta { color: var(--text-mute); font-size: 12px; margin-top: 4px; }

/* 发布人证件照片弹窗（2026-09-18） */
.publisher-chip { font: inherit; text-align: left; cursor: default; }
.publisher-chip.is-clickable { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.publisher-chip.is-clickable:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(15, 23, 42, .1); transform: translateY(-1px); }
.publisher-chip.is-clickable:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.publisher-chip .pc-link { font-size: 12px; font-weight: 600; color: var(--primary); margin-top: 6px; }

.idmodal { position: fixed; inset: 0; z-index: 900; display: none; }
.idmodal.show { display: block; }
.idmodal__mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.idmodal__box {
  position: relative; max-width: 880px; margin: 5vh auto; background: #fff;
  border-radius: 14px; box-shadow: 0 20px 60px rgba(15, 23, 42, .3);
  max-height: 90vh; display: flex; flex-direction: column; overflow: hidden;
}
.idmodal__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.idmodal__name { font-size: 17px; font-weight: 700; }
.idmodal__meta { color: var(--text-mute); font-size: 13px; margin-top: 4px; }
.idmodal__close {
  border: 0; background: transparent; font-size: 26px; line-height: 1;
  color: var(--text-mute); cursor: pointer; padding: 0 4px;
}
.idmodal__close:hover { color: var(--text); }
.idmodal__body {
  padding: 18px 22px; overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.idm-photo { margin: 0; }
.idm-photo a { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
.idm-photo img { display: block; width: 100%; height: auto; }
.idm-photo figcaption {
  font-size: 12px; color: var(--text-mute); margin-top: 6px;
  display: flex; justify-content: space-between;
}
.idm-photo figcaption span { color: var(--primary); }
.idmodal__foot {
  padding: 12px 22px; border-top: 1px solid var(--line); background: var(--bg);
  color: var(--text-mute); font-size: 12px;
}
@media (max-width: 760px) {
  .idmodal__box { margin: 2vh 12px; max-height: 94vh; }
  .idmodal__body { grid-template-columns: 1fr; }
}

/* ---------- 商城商家入驻入口 ---------- */
.section-head-split { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.section-head-split .sh-text { min-width: 0; }
.entry-btn {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 18px; box-shadow: var(--shadow);
  transition: border-color .18s, transform .18s;
}
.entry-btn:hover { border-color: var(--primary); transform: translateY(-2px); }
.entry-btn-icon {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
}
.entry-btn-text { display: flex; flex-direction: column; line-height: 1.4; }
.entry-btn-text strong { font-size: 15px; color: var(--text); font-weight: 700; }
.entry-btn-text em { font-style: normal; font-size: 12px; color: var(--text-mute); }
.entry-btn-arrow { display: flex; align-items: center; color: var(--primary); }

/* ---------- 商家入驻页 ---------- */
.join-hero {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px;
  box-shadow: var(--shadow); display: flex; gap: 28px; align-items: center; justify-content: space-between;
}
.join-hero-main { min-width: 0; }
.join-hero-main h3 { font-size: 19px; margin-bottom: 10px; }
.join-hero-main p { color: var(--text-soft); line-height: 1.9; font-size: 14px; }
.join-hero-side { display: flex; gap: 12px; flex: none; }
.join-stat {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; text-align: center; min-width: 96px;
}
.join-stat .num { display: block; font-size: 22px; font-weight: 800; color: var(--primary); }
.join-stat .lbl { display: block; font-size: 12px; color: var(--text-mute); margin-top: 4px; }
.join-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.join-cols .about-block { margin-bottom: 0; }
.join-cols .about-block h3 { font-size: 16px; margin-bottom: 12px; }
.join-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.join-agree { font-size: 12px; color: var(--text-mute); margin: 4px 0 16px; line-height: 1.7; }
.join-agree a { color: var(--primary); }
.join-mch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.join-mch {
  display: flex; align-items: center; gap: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow);
  transition: border-color .18s, transform .18s;
}
.join-mch:hover { border-color: var(--primary); transform: translateY(-2px); }
.join-mch-logo {
  width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--primary-light);
  color: var(--primary-dark); font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.join-mch-body { min-width: 0; flex: 1; }
.join-mch-name { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.join-mch-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.join-mch-arrow { font-size: 12px; color: var(--primary); flex: none; }

/* ---------- 后台入驻申请 ---------- */
.apply-list { display: flex; flex-direction: column; gap: 16px; }
.ap-kvs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 18px; margin: 12px 0; }
.ap-kv { font-size: 13px; display: flex; gap: 8px; min-width: 0; }
.ap-kv .k { color: var(--text-mute); flex: none; }
.ap-kv .v { color: var(--text); font-weight: 600; word-break: break-all; }

@media (max-width: 900px) {
  .join-hero { flex-direction: column; align-items: stretch; }
  .join-hero-side { justify-content: space-between; }
  .join-cols { grid-template-columns: 1fr; }
  .join-mch-grid { grid-template-columns: 1fr; }
  .ap-kvs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .join-grid { grid-template-columns: 1fr; }
  .section-head-split { align-items: stretch; }
  .entry-btn { width: 100%; }
  .ap-kvs { grid-template-columns: 1fr; }
}

/* ============ 经营主体信息条 ============ */
.biz-strip { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.biz-strip-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.biz-strip-head h2 { margin: 0; font-size: 19px; }
.biz-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; color: #1a7a4a; background: #e8f6ee; border: 1px solid #c6e8d6; }
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 20px; }
.biz-cell .k { font-size: 12px; color: var(--text-mute); margin-bottom: 2px; }
.biz-cell .v { font-size: 14px; color: var(--text); font-weight: 600; word-break: break-all; }
.biz-addr { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--text-soft); }

/* ============ 平台公告 ============ */
.notice-list { list-style: none; padding: 0; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.notice-list li { display: flex; align-items: center; gap: 16px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.notice-list li:last-child { border-bottom: none; }
.notice-list .nt-date { flex: 0 0 96px; font-size: 13px; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.notice-list .nt-title { flex: 1; font-size: 14.5px; }
.notice-list li:hover { background: var(--primary-light); }

/* ============ 商品参数表 ============ */
.pd-params { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); }
.pd-params-title { padding: 11px 16px; font-weight: 700; font-size: 14px; background: #f3f6fb; border-bottom: 1px solid var(--line); color: var(--text); }
.pd-params table { width: 100%; border-collapse: collapse; }
.pd-params tr { border-bottom: 1px solid var(--line); }
.pd-params tr:last-child { border-bottom: none; }
.pd-params th { width: 132px; text-align: left; padding: 10px 16px; font-weight: 400; font-size: 13px; color: var(--text-soft); background: #fafbfd; vertical-align: top; }
.pd-params td { padding: 10px 16px; font-size: 13.5px; color: var(--text); }

/* ============ 平台公告页 ============ */
.notice-page { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 28px; }
.notice-page .np-item { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.notice-page .np-item:first-child { padding-top: 4px; }
.notice-page .np-item:last-child { border-bottom: none; padding-bottom: 0; }
.notice-page h3 { font-size: 16px; margin: 0 0 6px; }
.notice-page .np-date { font-size: 12.5px; color: var(--text-mute); display: block; margin-bottom: 10px; }
.notice-page p { font-size: 14px; color: var(--text-soft); }

/* ============ 静态预渲染内容随 JS 接管自然替换 ============ */
#home-products .card, #mall-grid .card { }

@media (max-width: 900px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .biz-grid { grid-template-columns: 1fr; }
  .notice-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .pd-params th { width: 104px; }
}
