:root {
  --primary: #e8557f;
  --primary-dark: #d63e6b;
  --gold: #c79a3a;
  --bg: #fff7f9;
  --surface: #ffffff;
  --text: #2b2330;
  --muted: #938a98;
  --border: #f1e4ea;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(214, 62, 107, 0.08);
  --shadow-hover: 0 10px 30px rgba(214, 62, 107, 0.16);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0 0 .4em; }
.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }
.link { color: var(--primary); font-size: 13px; }
.link:hover { text-decoration: underline; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 999px; padding: 10px 20px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s ease; background: #fff;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-hover); }
.btn-ghost { background: #fff; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }

/* ---------- 演示横幅 ---------- */
.demo-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(90deg, #fff3cd, #ffe0ec);
  color: #8a5a00; font-size: 13px; text-align: center; padding: 7px 12px;
  border-bottom: 1px solid #f0d9a0;
}
.has-demo-banner .site-header { top: 34px; }
.has-demo-banner { padding-top: 34px; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 18px;
}
.logo { font-size: 20px; font-weight: 800; color: var(--primary); white-space: nowrap; }
.search { flex: 1; display: flex; max-width: 480px; }
.search input {
  flex: 1; border: 1px solid var(--border); border-right: none;
  border-radius: 999px 0 0 999px; padding: 9px 16px; font-size: 14px; outline: none;
}
.search input:focus { border-color: var(--primary); }
.search button {
  border: 1px solid var(--primary); background: var(--primary); color: #fff;
  border-radius: 0 999px 999px 0; padding: 0 20px; cursor: pointer; font-size: 14px;
}
.header-nav { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.header-nav a { color: var(--text); }
.header-nav a:hover, .header-nav a.active { color: var(--primary); }
.cart-link { position: relative; }
.badge {
  position: absolute; top: -8px; right: -10px; background: var(--primary); color: #fff;
  font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; text-align: center;
  border-radius: 999px; padding: 0 4px; display: none;
}
.user-menu { position: relative; }
.user-btn { background: none; border: none; cursor: pointer; font-size: 14px; color: var(--text); }
.user-dropdown {
  position: absolute; right: 0; top: 120%; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 140px; z-index: 50;
}
.user-dropdown a, .user-dropdown button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border: none; background: none;
  font-size: 14px; cursor: pointer; border-radius: 8px; color: var(--text);
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--bg); color: var(--primary); }

/* ---------- 主区域 ---------- */
.app-main { max-width: var(--maxw); margin: 0 auto; padding: 24px 20px 60px; min-height: 60vh; }
.section-title { font-size: 20px; margin: 28px 0 14px; }
.section-title::before { content: "💐 "; }

/* ---------- 首页 Hero ---------- */
.hero {
  display: flex; align-items: center; gap: 30px; background: linear-gradient(120deg, #fff0f5, #ffe9f1);
  border-radius: 20px; padding: 36px; margin-bottom: 18px;
}
.hero-text { flex: 1; }
.hero-text h1 { font-size: 34px; line-height: 1.25; color: var(--text); }
.hero-text p { color: var(--muted); margin: 12px 0 20px; }
.hero-img { flex: 0 0 220px; }
.hero-img img { border-radius: 16px; box-shadow: var(--shadow); width: 220px; height: 220px; object-fit: cover; }

/* ---------- 分类条 ---------- */
.category-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; }
.chip {
  padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border);
  font-size: 14px; color: var(--text); cursor: pointer;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 婚庆信息网格 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.pc-img { aspect-ratio: 1 / 1; overflow: hidden; background: #faf2f6; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-body { padding: 12px 14px 16px; }
.pc-title { font-size: 15px; margin: 0 0 8px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; min-height: 4px; }
.tag { font-size: 11px; color: var(--primary); background: #fdeaf1; border-radius: 6px; padding: 2px 7px; }
.pc-price { display: flex; align-items: baseline; gap: 8px; }
.pc-price .now { color: var(--primary); font-size: 18px; font-weight: 800; }
.pc-price .was { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.pc-meta { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* ---------- 婚庆信息列表工具栏 ---------- */
.products-toolbar { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.list-search { flex: 1; min-width: 200px; border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; font-size: 14px; outline: none; }
.list-search:focus { border-color: var(--primary); }
.list-sort { border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px; font-size: 14px; background: #fff; }

/* ---------- 婚庆信息详情 ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.detail-gallery .main-img { border-radius: var(--radius); overflow: hidden; background: #faf2f6; aspect-ratio: 1/1; }
.detail-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid var(--border); background: #faf2f6; cursor: pointer; padding: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--primary); }
.detail-info h1 { font-size: 26px; }
.detail-price { margin: 14px 0; }
.detail-price .now { color: var(--primary); font-size: 30px; font-weight: 800; }
.detail-price .was { color: var(--muted); text-decoration: line-through; margin-left: 10px; }
.detail-meta { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.detail-desc { background: var(--bg); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: #5b5260; }
.qty { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.qty button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: #fff; font-size: 18px; cursor: pointer; }
.qty input { width: 50px; text-align: center; border: 1px solid var(--border); border-radius: 8px; height: 34px; }
.detail-actions { display: flex; gap: 12px; }

/* ---------- 收藏 ---------- */
.cart { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.ci-img img { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; }
.ci-name { font-weight: 600; font-size: 15px; }
.ci-price { color: var(--primary); font-weight: 700; margin-top: 6px; }
.ci-qty { display: flex; align-items: center; gap: 10px; }
.ci-qty button { width: 30px; height: 30px; border: 1px solid var(--border); background: #fff; border-radius: 8px; cursor: pointer; font-size: 16px; }
.ci-remove { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 13px; }
.ci-remove:hover { color: var(--primary); }
.cart-summary { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; position: sticky; top: 80px; }
.cs-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cs-row strong { color: var(--primary); font-size: 20px; }

/* ---------- 预约 / 地址 ---------- */
.checkout, .payment, .order-detail { max-width: 760px; margin: 0 auto; }
.co-section { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.co-section h3 { font-size: 16px; }
.addr-opt { display: block; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; }
.addr-opt:has(input:checked) { border-color: var(--primary); background: #fff5f9; }
.addr-opt div { font-size: 14px; }
.co-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.co-item img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.co-item > div:nth-child(2) { flex: 1; }
textarea#remark { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px; resize: vertical; min-height: 60px; outline: none; }
textarea#remark:focus { border-color: var(--primary); }
.co-summary { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; position: sticky; top: 80px; }
.co-summary .cs-row { margin-bottom: 14px; display: flex; justify-content: space-between; }
.co-summary strong { color: var(--primary); font-size: 20px; }

/* ---------- 支付 ---------- */
.pay-order { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.pay-items { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 16px; margin-bottom: 16px; }
.pay-total { text-align: right; font-size: 16px; margin-bottom: 6px; }
.pay-total strong { color: var(--primary); font-size: 26px; }
.pay-note { background: #fff7e6; border: 1px solid #ffe0a3; color: #8a5a00; font-size: 13px; padding: 10px 12px; border-radius: 10px; margin-bottom: 16px; }
.pay-success { text-align: center; padding: 40px 0; }
.pay-success .ok { width: 72px; height: 72px; border-radius: 50%; background: #2bb673; color: #fff; font-size: 40px; line-height: 72px; margin: 0 auto 16px; }
.pay-success h2 { color: #2bb673; }
.pay-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }

/* ---------- 预约 ---------- */
.orders .order-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.oc-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.status { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: #f1f1f1; color: #666; }
.status.paid, .status.shipped, .status.completed { background: #e6f7ee; color: #1b9e5a; }
.status.pending { background: #fff1e0; color: #d98300; }
.status.cancelled { background: #f3e9ec; color: #999; }
.oc-thumbs { display: flex; gap: 8px; margin-bottom: 10px; }
.oc-thumbs img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.oc-foot { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.oc-foot strong { color: var(--primary); font-size: 17px; }
.od-status { display: inline-block; margin-bottom: 14px; }
.od-section { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.od-total { text-align: right; font-size: 16px; margin: 16px 0; }
.od-total strong { color: var(--primary); font-size: 24px; }

/* ---------- 地址管理 ---------- */
.addr-head { display: flex; justify-content: space-between; align-items: center; }
.addr-card { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.ac-top { font-weight: 600; margin-bottom: 4px; }
.ac-actions { display: flex; gap: 12px; }

/* ---------- 登录 ---------- */
.login-wrap { max-width: 400px; margin: 40px auto; }
.login-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.login-card h2 { text-align: center; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab { flex: 1; padding: 9px; border: 1px solid var(--border); background: #fff; border-radius: 10px; cursor: pointer; font-size: 14px; }
.tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.login-card input { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; font-size: 14px; margin-bottom: 12px; outline: none; }
.login-card input:focus { border-color: var(--primary); }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.code-row .btn { white-space: nowrap; }
.login-card .btn-block { margin-top: 6px; }

/* ---------- 个人中心 ---------- */
.account { max-width: 720px; margin: 0 auto; }
.acc-head { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.acc-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center; }
.acc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 18px; }
.acc-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; font-weight: 600; }
.acc-item:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 模态框 / 表单 ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 500; padding: 16px; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 420px; overflow: hidden; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--border); font-weight: 700; }
.modal-close { border: none; background: none; font-size: 22px; cursor: pointer; color: var(--muted); }
.modal-body { padding: 18px; }
.modal-foot { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); }
.modal-foot .btn { flex: 1; }
.form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.form input[type="text"], .form input:not([type]) { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-top: 4px; outline: none; }
.form input:focus { border-color: var(--primary); }
.form .chk { display: flex; align-items: center; gap: 8px; color: var(--text); }
.form .chk input { width: auto; margin: 0; }

/* ---------- Toast / 加载 / 空态 ---------- */
.toast { position: fixed; left: 50%; top: 80px; transform: translateX(-50%) translateY(-12px); background: #333; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; transition: all .3s ease; z-index: 900; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-info { background: #333; }
.toast-error { background: #d63e6b; }
.loading { text-align: center; padding: 60px 0; color: var(--muted); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; margin: 0 auto 12px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty a { color: var(--primary); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .hero { flex-direction: column; text-align: center; padding: 24px; }
  .hero-img { flex: none; }
  .hero-img img { width: 160px; height: 160px; }
  .detail { grid-template-columns: 1fr; gap: 20px; }
  .cart { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .cart-item { grid-template-columns: 70px 1fr; grid-template-areas: "img info" "qty remove"; }
  .ci-img { grid-area: img; } .ci-info { grid-area: info; } .ci-qty { grid-area: qty; } .ci-remove { grid-area: remove; justify-self: end; }
  .acc-grid { grid-template-columns: 1fr; }
}

/* ================= 首页轮播 ================= */
.banner { position: relative; margin: 18px auto 4px; border-radius: 14px; overflow: hidden; max-width: 1100px; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.banner-slide { display: block; position: relative; }
.banner-slide img { width: 100%; height: 320px; object-fit: cover; display: block; }
.banner-cap { position: absolute; left: 24px; bottom: 22px; color: #fff; font-size: 22px; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.banner-dots { position: absolute; right: 18px; bottom: 16px; display: flex; gap: 8px; }
.banner-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.banner-dot.active { background: #fff; }

/* ================= 管理后台 ================= */
.admin { display: flex; min-height: 70vh; background: #f5f6f8; }
.admin-side { width: 210px; background: #1f2733; color: #cfd6e0; padding: 18px 0; display: flex; flex-direction: column; }
.admin-brand { font-size: 18px; font-weight: 700; color: #fff; padding: 6px 20px 16px; line-height: 1.3; }
.admin-brand small { display: block; font-size: 12px; font-weight: 400; color: #8b96a5; }
.admin-menu { flex: 1; display: flex; flex-direction: column; }
.adm-menu-item { color: #cfd6e0; padding: 12px 20px; text-decoration: none; font-size: 14px; border-left: 3px solid transparent; }
.adm-menu-item:hover { background: #2a3441; color: #fff; }
.adm-menu-item.active { background: #2a3441; color: #fff; border-left-color: #ff6b6b; }
.admin-side-foot { padding: 14px 20px; border-top: 1px solid #2a3441; display: flex; flex-direction: column; gap: 8px; }
.admin-side-foot .link { color: #8b96a5; font-size: 13px; text-align: left; }
.admin-side-foot button.link { background: none; border: none; cursor: pointer; padding: 0; }
.admin-main { flex: 1; padding: 24px 28px; overflow: auto; }
.adm-title { font-size: 20px; margin: 0 0 16px; color: #1f2733; }
.adm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.adm-head .adm-title { margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.stat-num { font-size: 26px; font-weight: 700; color: #ff6b6b; }
.stat-label { font-size: 13px; color: #888; margin-top: 4px; }
.panel { background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.05); margin-bottom: 18px; }
.panel h3 { margin: 0 0 14px; font-size: 15px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid #f0f0f0; }
.data-table th { color: #888; font-weight: 600; background: #fafafa; }
.data-table .thumb { width: 38px; height: 38px; object-fit: cover; border-radius: 6px; vertical-align: middle; margin-right: 6px; }
.data-table .empty { text-align: center; color: #aaa; padding: 26px 0; }
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.toolbar input, .toolbar select, .form-row input, .form-row select, .form-row textarea { padding: 8px 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; }
.toolbar input { flex: 1; max-width: 320px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; background: #eee; color: #666; }
.tag.ok { background: #e6f7ee; color: #1aa15a; }
/* 后台表单 */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-row.two { flex-direction: row; gap: 14px; }
.form-row.two > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13px; color: #555; }
.form-row textarea { resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
/* 弹窗 */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal { background: #fff; border-radius: 14px; width: 520px; max-width: 92vw; max-height: 90vh; overflow: auto; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #eee; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: #999; line-height: 1; }
.modal-body { padding: 20px; }
.order-detail p { margin: 4px 0; font-size: 14px; }
.order-detail .total { text-align: right; font-weight: 700; font-size: 16px; margin-top: 10px; }
/* 柱状图 */
.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 160px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar { width: 60%; background: linear-gradient(180deg,#ff8a8a,#ff6b6b); border-radius: 6px 6px 0 0; min-height: 2px; }
.bar-val { font-size: 11px; color: #666; margin: 4px 0 2px; }
.bar-x { font-size: 11px; color: #999; }
/* 后台登录卡片 */
.admin-card { max-width: 360px; }
.admin-card h1 { font-size: 20px; margin-bottom: 4px; }

/* 婚庆信息详情：商家/地区/电话 */
.detail-merchant { margin: 14px 0; padding: 12px 14px; background: #fbf7f7; border: 1px solid #f0e0e0; border-radius: 10px; }
.dm-row { font-size: 13px; line-height: 1.9; color: #333; }
.dm-row.muted { color: #999; font-size: 12px; margin-top: 2px; }
.dm-label { display: inline-block; width: 64px; color: #b06a6a; font-weight: 600; }
.dm-tel { color: #e0405a; font-weight: 600; text-decoration: none; }
.tag-top { background: linear-gradient(135deg,#e0405a,#ff8a5b); color: #fff; border: none; margin-left: 8px; vertical-align: middle; }
.pc-merchant { font-size: 12px; color: #8a5a5a; margin: 4px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-flag { position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg,#e0405a,#ff8a5b); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 0 8px 8px 0; z-index: 2; }
.product-card { position: relative; }

/* ===== 多商户：商家入驻入口 / 店铺页 / 卡片商家链接 ===== */
.merchant-entry { color: #e0405a; font-weight: 600; }
.merchant-entry:hover { text-decoration: underline; }
.pc-merchant-link { color: #8a5a5a; font-weight: 600; text-decoration: none; }
.pc-merchant-link:hover { color: #e0405a; text-decoration: underline; }
.pc-shop-go { color: #e0405a; font-size: 12px; text-decoration: none; margin-left: 4px; }
.pc-shop-go:hover { text-decoration: underline; }
.dm-shop-link { color: #e0405a; font-weight: 600; text-decoration: none; }
.dm-shop-link:hover { text-decoration: underline; }
.dm-shop-btn { margin: 4px 0 12px; }
.two-col { display: flex; gap: 10px; }
.two-col input { flex: 1; }

/* 公开店铺页 */
.shop { padding: 4px 0 20px; }
.shop-header { display: flex; align-items: center; gap: 18px; padding: 20px; background: linear-gradient(135deg,#fff5f5,#fdeaea); border: 1px solid #f3dada; border-radius: 14px; margin-bottom: 18px; }
.shop-logo { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; box-shadow: 0 4px 14px rgba(224,64,90,.18); }
.shop-logo-default { width: 84px; height: 84px; border-radius: 16px; background: linear-gradient(135deg,#e0405a,#ff8a5b); color: #fff; font-size: 34px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.shop-meta h1 { font-size: 22px; margin: 0 0 6px; }
.shop-meta p { margin: 3px 0; font-size: 13px; }
.shop-desc { max-width: 640px; line-height: 1.7; }
.admin-brand { font-size: 18px; font-weight: 700; color: #e0405a; display: flex; flex-direction: column; gap: 2px; padding: 6px 0 14px; }
.admin-brand small { font-size: 11px; color: #999; font-weight: 400; }

/* ===== 首页：分类栏目 & 商家列表 ===== */
.home-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.home-sec-head .section-title { margin: 0; }
.sec-more { font-size: 13px; color: var(--primary); white-space: nowrap; }
.sec-more:hover { text-decoration: underline; }
.sec-sub { font-size: 13px; color: var(--muted); }

/* 分类：分栏目网格 */
.cat-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.cat-col {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 16px 10px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-col:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #f3c3d3; }
.cat-col-icon { font-size: 26px; line-height: 1.2; }
.cat-col-name { font-size: 14px; font-weight: 600; }
.cat-col-count { font-size: 12px; color: var(--muted); }
.cat-col-all { background: linear-gradient(135deg, #fff1f5, #ffe7ef); border-color: #f6d3e0; }

/* 商家列表 */
.merchant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.merchant-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.merchant-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #f3c3d3; }
.mc-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.mc-logo-default {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), #ff8a5b); color: #fff;
  font-size: 24px; font-weight: 700;
}
.mc-body { min-width: 0; flex: 1; }
.mc-name { font-size: 16px; margin: 0 0 4px; }
.mc-loc { font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.mc-desc {
  font-size: 12px; color: var(--muted); margin: 0 0 8px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mc-foot { display: flex; align-items: center; justify-content: space-between; margin: 0; }
.mc-count { font-size: 12px; color: var(--primary); font-weight: 600; }
.mc-go { font-size: 12px; color: var(--primary); }

@media (max-width: 560px) {
  .cat-columns { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
  .cat-col { padding: 12px 6px; }
  .cat-col-icon { font-size: 22px; }
  .merchant-grid { grid-template-columns: 1fr; }
}

/* 首页大类板块 */
.board { margin: 8px 0 4px; }
.sec-more { font-size: 13px; color: var(--primary); font-weight: 600; text-decoration: none; }
.sec-more:hover { text-decoration: underline; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; max-width: var(--maxw); margin: 18px auto 12px; padding: 0 16px; }
.list-head .section-title { margin: 0; }

/* 分页 */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 24px 0 8px; }
.pagination .pg {
  min-width: 36px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text);
  font-size: 14px; text-decoration: none; transition: all .15s ease;
}
.pagination .pg:hover { border-color: var(--primary); color: var(--primary); }
.pagination .pg-current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; cursor: default; }
.pagination .pg-ellipsis { color: var(--muted); padding: 0 4px; }
.pagination .pg-prev, .pagination .pg-next { font-weight: 600; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 16px 28px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}
.footer-inner > div { min-width: 0; }
.footer-inner strong {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
}
.footer-inner p {
  margin: 0;
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .5px;
}
.footer-brand p { font-size: 13px; }
.footer-copy {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
.footer-copy a { color: var(--primary); }
.footer-copy a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 22px; padding-top: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .footer-inner { grid-template-columns: 1fr; }
}
