:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel-2: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #d8422a;
  --brand-2: #f97316;
  --brand-soft: #fff1ec;
  --blue: #2563eb;
  --green: #16a34a;
  --red: #dc2626;
  --yellow: #f59e0b;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
textarea { resize: vertical; min-height: 130px; }

.container { width: min(var(--container), calc(100vw - 28px)); margin: 0 auto; }
.site-header {
  background: linear-gradient(180deg, #fff, #fff8f4);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}
.top-strip {
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  color: var(--muted);
}
.top-strip-inner, .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.top-strip-inner { min-height: 38px; }
.top-actions, .mini-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.brand-row { padding: 15px 0; }
.brand {
  display: flex; align-items: center; gap: 12px;
  min-width: 240px;
}
.brand-logo {
  width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 24px; box-shadow: var(--shadow);
}
.brand h1 { margin: 0; font-size: 24px; letter-spacing: -0.5px; }
.brand p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.navbar {
  background: linear-gradient(90deg, #b91c1c, #ea580c);
  color: white;
}
.nav-inner { min-height: 46px; }
.main-nav { display: flex; align-items: center; gap: 2px; overflow-x: auto; }
.main-nav a {
  padding: 12px 14px; font-weight: 700; white-space: nowrap; opacity: 0.94;
  border-radius: 10px;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,0.18); opacity: 1; }
.header-search { display: flex; align-items: center; gap: 8px; min-width: 250px; }
.header-search input {
  width: 100%; padding: 9px 11px; border: 1px solid rgba(255,255,255,0.25); border-radius: 999px;
  background: rgba(255,255,255,0.12); color: #fff; outline: none;
}
.header-search input::placeholder { color: rgba(255,255,255,0.75); }

.app-main { min-height: 72vh; padding: 20px 0 34px; }
.site-footer { background: #111827; color: #d1d5db; padding: 28px 0; margin-top: 22px; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-grid p { color: #9ca3af; max-width: 560px; margin: 8px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-links a { color: #fcd34d; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 8px 13px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  transition: transform .15s, box-shadow .15s, background .15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border: none; }
.btn.dark { background: #111827; color: #fff; border: none; }
.btn.blue { background: #2563eb; color: #fff; border: none; }
.btn.green { background: #16a34a; color: #fff; border: none; }
.btn.red { background: #dc2626; color: #fff; border: none; }
.btn.ghost { background: transparent; }
.btn.soft { background: var(--brand-soft); color: var(--brand); border-color: #fed7c7; }
.btn.small { min-height: 29px; padding: 5px 9px; font-size: 13px; border-radius: 8px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.badge, .tag {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 700;
  background: #eef2ff; color: #3730a3; white-space: nowrap;
}
.badge.lv { background: #111827; color: #fff; }
.badge.business { background: #fef3c7; color: #92400e; }
.badge.admin { background: #fee2e2; color: #991b1b; }
.badge.urgent, .tag.critical { background: #fee2e2; color: #b91c1c; }
.tag.featured { background: #fef3c7; color: #92400e; }
.tag.pinned { background: #e0f2fe; color: #075985; }
.tag.city { background: #ecfdf5; color: #065f46; }
.tag.pending { background: #fff7ed; color: #c2410c; }
.tag.resolved { background: #dcfce7; color: #166534; }
.tag.deleted { background: #f3f4f6; color: #6b7280; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: minmax(0, 1fr) 330px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.panel.pad { padding: 18px; }
.panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fff;
}
.panel-head h2, .panel-head h3 { margin: 0; font-size: 17px; }
.panel-body { padding: 16px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 12px; }
.section-title h2 { margin: 0; font-size: 22px; }
.section-title p { margin: 4px 0 0; color: var(--muted); }

.hero {
  background:
    radial-gradient(circle at top left, rgba(249,115,22,.25), transparent 28%),
    linear-gradient(135deg, #7f1d1d, #ea580c 72%, #f59e0b);
  color: #fff; border-radius: 22px; padding: 24px; box-shadow: var(--shadow); overflow: hidden; position: relative;
}
.hero:after {
  content: ""; position: absolute; right: -80px; top: -60px; width: 240px; height: 240px;
  border-radius: 50%; background: rgba(255,255,255,.13);
}
.hero h2 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 40px); line-height: 1.15; }
.hero p { margin: 0 0 18px; color: rgba(255,255,255,.9); max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn { border: none; }
.hero .btn.ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.12); }
.notice-line {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin-top: 18px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.12);
}

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.stat-card strong { display: block; font-size: 24px; color: var(--brand); }
.stat-card span { color: var(--muted); font-size: 13px; }

.list { display: grid; gap: 10px; }
.list.compact { gap: 7px; }
.post-item, .message-row, .user-row, .report-row, .news-card, .help-card {
  background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 12px;
  min-width: 0; overflow-wrap: anywhere;
}
.post-item:hover, .news-card:hover, .help-card:hover { border-color: #fecaca; box-shadow: 0 8px 18px rgba(248,113,113,.08); }
.post-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; min-width: 0; }
.post-top > * { min-width: 0; }
.post-title { font-weight: 800; font-size: 16px; color: #111827; }
.post-title:hover { color: var(--brand); }
.post-meta, .muted { color: var(--muted); font-size: 13px; }
.post-snippet { color: #374151; margin: 7px 0 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.post-stats { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; margin-top: 9px; }

.board-section { margin-bottom: 16px; }
.board-section-title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 12px; background: linear-gradient(90deg, #fff7ed, #fff); border: 1px solid #fed7aa;
}
.board-section-title h3 { margin: 0; }
.board-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.board-card {
  display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff;
}
.board-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); font-size: 20px; flex: 0 0 auto; }
.board-card h4 { margin: 0 0 3px; font-size: 15px; }
.board-card p { margin: 0; color: var(--muted); font-size: 12px; }
.board-card .counts { display: flex; gap: 10px; margin-top: 7px; color: var(--muted); font-size: 12px; }

.sidebar-stack { display: grid; gap: 14px; }
.weather-card {
  background: linear-gradient(135deg, #eff6ff, #fff);
  border: 1px solid #bfdbfe; border-radius: 14px; padding: 14px;
}
.weather-card strong { display: inline-flex; align-items: center; gap: 6px; }
.weather-auto-badge { display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 9px; border-radius: 999px; background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; font-size: 12px; font-weight: 900; white-space: nowrap; }
.weather-city-select { margin: 10px 0 6px; }
.weather-temp { font-size: 36px; font-weight: 900; color: #1d4ed8; }
.weather-icon-img { width: 28px; height: 28px; vertical-align: middle; }
.weather-icon-fallback { font-size: 24px; line-height: 1; }
.weather-forecast-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 11px 0; }
.weather-day { border: 1px solid #dbeafe; background: rgba(255,255,255,.72); border-radius: 10px; padding: 7px 5px; text-align: center; display: grid; gap: 2px; }
.weather-day img { width: 28px; height: 28px; margin: 0 auto; }
.weather-day small { color: var(--muted); font-weight: 700; }
 .radio-card { background: radial-gradient(circle at 88% 8%, rgba(248,113,113,.24), transparent 32%), linear-gradient(135deg, #0f172a, #1f2937 54%, #7c2d12); color: white; border-radius: 18px; padding: 14px; box-shadow: 0 16px 34px rgba(15,23,42,.18); border: 1px solid rgba(255,255,255,.12); overflow: hidden; }
.radio-card .muted { color: #d1d5db; }
.local-alert-head { align-items: flex-start; }
.local-alert-live { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 10px 0 12px; color: #fde68a; font-size: 12px; font-weight: 900; letter-spacing: .03em; }
.live-dot { width: 8px; height: 8px; border-radius: 999px; background: #ef4444; box-shadow: 0 0 0 6px rgba(239,68,68,.18); animation: livePulse 1.6s infinite ease-in-out; }
.local-alert-item { color: #fff; text-decoration: none; cursor: default; outline: none; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.local-alert-main { display: block; padding: 13px; border-radius: 14px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.14); }
.local-alert-main:hover, .local-alert-main:focus-visible { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); transform: translateY(-1px); }
.local-alert-main strong { display: block; font-size: 16px; line-height: 1.35; margin: 7px 0 6px; }
.local-alert-main p { margin: 0 0 8px; color: rgba(255,255,255,.88); font-size: 13px; line-height: 1.55; }
.local-alert-list { display: grid; gap: 7px; margin-top: 10px; }
.local-alert-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; align-items: center; color: rgba(255,255,255,.92); padding: 9px 10px; border-radius: 11px; background: rgba(255,255,255,.07); border: 1px solid transparent; }
.local-alert-row:hover, .local-alert-row:focus-visible { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.20); }
.local-alert-row .post-tags { margin-bottom: 2px; }
.local-alert-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.local-alert-row p { margin: 0; color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.45; }
.local-alert-detail { max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; padding-top: 0; border-top: 0 solid rgba(255,255,255,.14); color: rgba(255,255,255,.9); transition: max-height .28s ease, opacity .22s ease, margin-top .22s ease, padding-top .22s ease, border-width .22s ease; }
.local-alert-item:hover .local-alert-detail, .local-alert-item:focus-visible .local-alert-detail, .local-alert-item:focus-within .local-alert-detail { max-height: 260px; opacity: 1; margin-top: 10px; padding-top: 10px; border-top-width: 1px; }
.local-alert-detail p { margin: 0 0 8px; color: rgba(255,255,255,.88); font-size: 12px; line-height: 1.55; }
.local-alert-meta { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; margin-top: 6px; font-size: 11px; line-height: 1.4; }
.local-alert-meta span { color: #fde68a; font-weight: 900; }
.local-alert-meta b { color: rgba(255,255,255,.92); font-weight: 800; }
.local-alert-url { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.10); color: rgba(255,255,255,.92); font-size: 11px; font-weight: 900; text-decoration: none; overflow-wrap: anywhere; }
.local-alert-url:hover, .local-alert-url:focus-visible { background: rgba(255,255,255,.18); color: #fff; }
@keyframes livePulse { 0%,100%{ transform: scale(1); opacity:.9;} 50%{ transform: scale(1.28); opacity:.65;} }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; }
.tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.filters { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filter-input, .form-control {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; background: #fff; color: var(--text); outline: none;
}
.filter-input:focus, .form-control:focus { border-color: #fb923c; box-shadow: 0 0 0 3px rgba(251,146,60,.13); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-weight: 700; font-size: 13px; }
.form-field.full { grid-column: 1 / -1; }
.form-note { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; border-radius: 12px; padding: 10px 12px; font-size: 13px; }

.auth-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: stretch; }
.oauth-box {
  background: linear-gradient(160deg, #111827, #7f1d1d); color: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.oauth-box h2 { margin-top: 0; }
.oauth-buttons { display: grid; gap: 10px; margin: 18px 0; }
.oauth-buttons .btn { color: #111827; background: #fff; border: none; }
.captcha-box { display: flex; gap: 8px; align-items: center; }
.captcha-code { min-width: 82px; text-align: center; padding: 10px; border-radius: 10px; background: #111827; color: #fff; letter-spacing: 4px; font-weight: 900; user-select: none; }

.profile-header {
  display: flex; gap: 16px; align-items: center; padding: 20px;
  background: linear-gradient(135deg, #fff7ed, #fff); border: 1px solid #fed7aa; border-radius: var(--radius);
}
.avatar {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 24px; font-weight: 900;
  box-shadow: 0 8px 18px rgba(234,88,12,.2);
}
.avatar.small { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }
.avatar.frame-gold { border: 3px solid #f59e0b; }
.level-progress { width: 100%; height: 11px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.level-progress > span { display: block; height: 100%; background: linear-gradient(90deg, #16a34a, #f59e0b); border-radius: 999px; }

.detail-article { padding: 22px; }
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 16px; }
.article-head h1 { margin: 8px 0; font-size: clamp(24px, 4vw, 34px); }
.article-content { white-space: pre-wrap; font-size: 16px; line-height: 1.75; }
.article-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.comment { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: none; }
.comment-content { white-space: pre-wrap; }

.admin-layout { display: grid; grid-template-columns: 235px 1fr; gap: 16px; }
.admin-menu { position: sticky; top: 128px; align-self: start; display: grid; gap: 8px; }
.admin-menu button { justify-content: flex-start; }
.admin-menu button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f9fafb; color: #374151; white-space: nowrap; }
tr:hover td { background: #fff7ed; }

.chat-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; }
.conversation-list { display: grid; gap: 8px; }
.conversation-item { padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.conversation-item.active { border-color: var(--brand); background: var(--brand-soft); }
.chat-box { min-height: 430px; display: flex; flex-direction: column; }
.message-list { flex: 1; display: grid; align-content: end; gap: 9px; padding: 14px; background: #f9fafb; border-radius: 12px; overflow-y: auto; }
.bubble { max-width: 75%; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.bubble.me { justify-self: end; background: #dcfce7; border-color: #bbf7d0; }
.chat-input { display: flex; gap: 8px; margin-top: 10px; }

.empty { padding: 30px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 13px; background: #fff; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(24px);
  background: #111827; color: #fff; padding: 11px 16px; border-radius: 999px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 2147483647;
}
body.auth-modal-open .toast {
  top: 24px;
  bottom: auto;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.mobile-only { display: none; }
.inline { display: inline; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.kbd { padding: 2px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: #fff; font-size: 12px; color: var(--muted); }

@media (max-width: 980px) {
  .grid.two, .auth-layout, .admin-layout, .chat-layout { grid-template-columns: 1fr; }
  .grid.three, .grid.four, .board-grid, .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-search { min-width: 220px; }
  .admin-menu { position: static; display: flex; overflow-x: auto; }
  .admin-menu button { white-space: nowrap; }
}
@media (max-width: 720px) {
  .brand-row .top-actions { display: none; }
  .brand h1 { font-size: 20px; }
  .brand-logo { width: 42px; height: 42px; }
  .nav-inner { align-items: stretch; flex-direction: column; padding: 7px 0; }
  .main-nav { width: 100%; }
  .header-search { width: 100%; min-width: 0; }
  .grid.three, .grid.four, .board-grid, .stats-row, .form-grid { grid-template-columns: 1fr; }
  .footer-grid, .top-strip-inner { flex-direction: column; align-items: flex-start; padding: 8px 0; }
  .post-top { flex-direction: column; }
  .profile-header { align-items: flex-start; }
  .bubble { max-width: 90%; }
  .mobile-only { display: inline-flex; }
}

/* 商家广告 / 服务信息展示模块 */
.btn.green { background: #16a34a; color: #fff; border-color: #16a34a; }
.merchant-hero { background: linear-gradient(135deg, #065f46, #16a34a 55%, #f59e0b); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.price-card { display: block; position: relative; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; }
.price-card.featured { border-color: #f59e0b; box-shadow: 0 12px 30px rgba(245, 158, 11, .16); }
.price-card input { position: absolute; right: 14px; top: 14px; }
.price-card h3 { margin: 8px 0 4px; }
.price { font-size: 28px; font-weight: 900; color: #065f46; }
.price span { font-size: 13px; color: var(--muted); font-weight: 600; }
.price-card ul { margin: 10px 0 0; padding-left: 18px; color: #374151; }
.merchant-list { display: grid; gap: 12px; }
.merchant-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.merchant-card:hover { border-color: #86efac; box-shadow: 0 12px 24px rgba(22,163,74,.1); }
.merchant-card-main, .merchant-title, .checkout-summary { display: flex; gap: 14px; align-items: flex-start; color: inherit; }
.merchant-card h3, .product-card h3 { margin: 6px 0; }
.merchant-actions, .product-actions, .order-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.merchant-logo { width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; background: linear-gradient(135deg, #065f46, #16a34a); color: #fff; font-weight: 900; flex: 0 0 auto; }
.merchant-logo.big { width: 58px; height: 58px; border-radius: 18px; font-size: 24px; }
.merchant-logo.huge { width: 84px; height: 84px; border-radius: 24px; font-size: 34px; }
.merchant-detail h1 { margin: 4px 0 6px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.product-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 14px; }
.product-card:hover { border-color: #fed7aa; box-shadow: 0 10px 22px rgba(234,88,12,.08); }
.product-emoji { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; background: #fff7ed; border: 1px solid #fed7aa; }
.product-price { font-size: 22px; font-weight: 900; color: var(--brand); margin: 8px 0 4px; }
.order-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.flow-list { margin: 0; padding-left: 18px; color: #374151; }
.flow-list li { margin: 6px 0; }
@media (max-width: 980px) { .pricing-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .pricing-grid, .product-grid { grid-template-columns: 1fr; } .merchant-card-main, .merchant-title, .checkout-summary, .order-row { flex-direction: column; } }

/* 商家广告与服务信息展示模块 */
.business-hero {
  background:
    radial-gradient(circle at 0 0, rgba(22,163,74,.24), transparent 28%),
    linear-gradient(135deg, #064e3b, #15803d 65%, #f59e0b);
  color: #fff;
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.business-hero h2 { margin: 8px 0; font-size: clamp(25px, 4vw, 42px); line-height: 1.15; }
.business-hero p { color: rgba(255,255,255,.9); max-width: 780px; }
.business-profile {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: linear-gradient(135deg, #ecfdf5, #fff7ed);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.business-profile h1 { margin: 8px 0; font-size: clamp(24px, 4vw, 36px); }
.business-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.business-mini-card {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.business-mini-card.active, .business-mini-card:hover { border-color: #86efac; box-shadow: 0 8px 20px rgba(34,197,94,.12); }
.business-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.business-card {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.business-card:hover, .product-card:hover, .product-mini-card:hover { border-color: #fdba74; box-shadow: 0 8px 20px rgba(249,115,22,.11); }
.business-card h3, .product-card h3 { margin: 10px 0 6px; }
.business-card p, .product-card p { color: #374151; }
.biz-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #16a34a, #f97316);
  box-shadow: 0 8px 18px rgba(22,163,74,.18);
}
.biz-logo.large { width: 56px; height: 56px; font-size: 22px; }
.biz-logo.xl { width: 88px; height: 88px; border-radius: 24px; font-size: 34px; }
.verified-mark {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  border-radius: 50%;
  color: #fff;
  background: #16a34a;
  font-size: 11px;
  font-weight: 900;
}
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pricing-grid.single { grid-template-columns: 1fr; }
.price-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}
.price-card.highlight { border-color: #fb923c; background: #fff7ed; }
.price-card strong { display: block; font-size: 24px; color: var(--brand); margin: 6px 0; }
.price-card ul { padding-left: 18px; margin: 10px 0 14px; color: #4b5563; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.product-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}
.product-cover {
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
  color: #92400e;
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 10px;
}
.product-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.product-mini-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}
.order-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}
@media (max-width: 980px) {
  .business-mini-grid, .business-grid, .pricing-grid, .product-grid, .product-strip { grid-template-columns: 1fr; }
  .business-profile { align-items: flex-start; }
}

/* 本次调整：保留部分商家广告/服务信息展示类名，已关闭站内交易流程 */
.business-hero {
  min-height: 220px; border-radius: var(--radius); padding: 28px;
  background: linear-gradient(135deg, #064e3b, #16a34a 58%, #f59e0b); color: #fff;
  box-shadow: var(--shadow); display: flex; align-items: center;
}
.business-hero p { max-width: 820px; color: rgba(255,255,255,.9); }
.business-hero .tag { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.25); }
.business-grid, .business-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.business-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.business-mini-card, .business-card {
  display: flex; gap: 12px; align-items: flex-start; color: inherit; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px;
}
.business-card { display: block; min-height: 210px; }
.business-mini-card:hover, .business-card:hover, .business-mini-card.active {
  border-color: #86efac; box-shadow: 0 12px 24px rgba(22,163,74,.10); transform: translateY(-1px);
}
.biz-logo {
  width: 44px; height: 44px; border-radius: 14px; flex: 0 0 auto;
  display: grid; place-items: center; background: linear-gradient(135deg, #065f46, #22c55e);
  color: #fff; font-weight: 900; box-shadow: 0 8px 16px rgba(22,163,74,.18);
}
.biz-logo.large { width: 62px; height: 62px; border-radius: 18px; font-size: 26px; }
.biz-logo.xl { width: 92px; height: 92px; border-radius: 26px; font-size: 38px; }
.verified-mark {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: #16a34a; color: #fff; font-size: 11px; margin-left: 4px;
}
.business-profile {
  display: flex; gap: 18px; align-items: center; background: linear-gradient(135deg, #ecfdf5, #fff7ed);
  border: 1px solid #bbf7d0; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.product-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.product-mini-card { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 14px; padding: 12px; }
.product-cover {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  background: #fff7ed; border: 1px solid #fed7aa; color: var(--brand); font-size: 28px; font-weight: 900;
  margin-bottom: 10px;
}
.price-card.highlight { border-color: var(--brand); box-shadow: 0 12px 30px rgba(234,88,12,.14); }
.price-card .full { margin-top: 12px; width: 100%; justify-content: center; }
.pricing-grid.single { grid-template-columns: 1fr; }
.order-row { align-items: flex-start; }
.order-actions { min-width: 120px; display: grid; gap: 8px; }
@media (max-width: 980px) {
  .business-grid, .business-mini-grid, .product-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .business-profile { align-items: flex-start; }
}
@media (max-width: 720px) {
  .business-grid, .business-mini-grid, .product-strip { grid-template-columns: 1fr; }
  .business-profile { flex-direction: column; }
}

/* 后台增强版：布局、媒体、板块、账号管理 */
.grid.single { grid-template-columns: 1fr; }
.grid.two-equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-compact-home { gap: 10px; }
.admin-compact-home .hero { padding: 18px; border-radius: 18px; }
.admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-shortcuts, .admin-toolbar, .row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-toolbar { justify-content: space-between; margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff7ed; }
.admin-shortcuts { margin: 14px 0; }
.admin-card { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 14px; }
.admin-card h3 { margin-top: 0; }
.board-grid.board-grid-list { grid-template-columns: 1fr; }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.media-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 12px; display: grid; gap: 8px; }
.media-preview { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #f3f4f6; display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.media-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
td .avatar.small { display: inline-grid; vertical-align: middle; margin-right: 6px; }

@media (max-width: 900px) {
  .grid.two-equal, .media-grid, .admin-stats { grid-template-columns: 1fr; }
}

/* 前台 DIY 编辑模式：管理员可直接在页面拖动、缩放、隐藏和恢复模块 */
.diy-dock {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #fff7ed;
  box-shadow: var(--shadow);
}
.diy-dock.on { border-color: var(--brand); background: linear-gradient(135deg, #fff7ed, #fff); }
.diy-dock > div:first-child { display: grid; gap: 2px; }
.diy-page-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px dashed var(--brand);
  border-radius: 14px;
  background: #fff;
}
.diy-page-note strong { color: var(--brand); }
.diy-free-canvas {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  min-height: 160px;
}
.diy-free-canvas.editing {
  padding: 12px;
  border: 2px dashed #fdba74;
  border-radius: 18px;
  background: rgba(255,247,237,.55);
}
.diy-free-canvas.public { gap: 16px; }
.diy-module {
  min-width: 260px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}
.diy-module.public { overflow: visible; }
.diy-module.editing {
  position: relative;
  resize: both;
  overflow: auto;
  min-height: 150px;
  border: 2px solid #fdba74;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(234,88,12,.10);
}
.diy-module.editing::after {
  content: "↘";
  position: absolute;
  right: 8px;
  bottom: 4px;
  color: #f97316;
  font-size: 16px;
  pointer-events: none;
}
.diy-module-body { display: grid; gap: 14px; min-width: 0; }
.diy-module.editing .diy-module-body { padding: 0 10px 10px; }
.diy-module.editing .panel,
.diy-module.editing .weather-card,
.diy-module.editing .radio-card,
.diy-module.editing .hero,
.diy-module.editing .stats-row { box-shadow: none; }
.diy-module-toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border-bottom: 1px solid #fed7aa;
  background: rgba(255,247,237,.96);
  backdrop-filter: blur(8px);
}
.drag-handle {
  cursor: grab;
  font-weight: 900;
  color: var(--brand);
}
.diy-shelf {
  margin-top: 18px;
  border: 2px dashed #d1d5db;
  border-radius: 18px;
  background: #f9fafb;
  overflow: hidden;
}
.diy-shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}
.diy-hidden-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.diy-hidden-card:hover { border-color: var(--brand); box-shadow: 0 8px 18px rgba(234,88,12,.09); }
.hero-edit-btn {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
}
.diy-board-section {
  padding: 10px;
  border: 1px dashed #fdba74;
  border-radius: 16px;
  background: rgba(255,247,237,.45);
}
.diy-board-section.is-hidden,
.diy-board-card.is-hidden {
  opacity: .58;
  filter: grayscale(.2);
}
.diy-board-grid {
  min-height: 80px;
  padding: 8px;
  border: 1px dashed #fed7aa;
  border-radius: 14px;
  background: rgba(255,255,255,.7);
}
.diy-board-card {
  position: relative;
  flex-direction: column;
  cursor: grab;
}
.diy-board-card > span:first-child,
.diy-board-card > span:nth-child(2) { align-self: stretch; }
.diy-board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.admin-diy-on .site-header { z-index: 80; }
.admin-diy-on .board-card:hover,
.admin-diy-on .post-item:hover { border-color: var(--brand); }
@media (max-width: 980px) {
  .diy-shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diy-module { width: 100% !important; }
  .diy-dock { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 720px) {
  .diy-shelf-grid { grid-template-columns: 1fr; }
}

/* 前台 DIY 编辑模式：管理员可直接在页面拖动、缩放、隐藏和恢复模块 */
.diy-dock {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #fff7ed;
  box-shadow: var(--shadow);
}
.diy-dock.on { border-color: var(--brand); background: linear-gradient(135deg, #fff7ed, #fff); }
.diy-dock > div:first-child { display: grid; gap: 2px; }
.diy-page-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px dashed var(--brand);
  border-radius: 14px;
  background: #fff;
}
.diy-page-note strong { color: var(--brand); }
.diy-free-canvas {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  min-height: 160px;
}
.diy-free-canvas.editing {
  padding: 12px;
  border: 2px dashed #fdba74;
  border-radius: 18px;
  background: rgba(255,247,237,.55);
}
.diy-free-canvas.public { gap: 16px; }
.diy-module {
  min-width: 260px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}
.diy-module.public { overflow: visible; }
.diy-module.editing {
  position: relative;
  resize: both;
  overflow: auto;
  min-height: 150px;
  border: 2px solid #fdba74;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(234,88,12,.10);
}
.diy-module.editing::after {
  content: "↘";
  position: absolute;
  right: 8px;
  bottom: 4px;
  color: #f97316;
  font-size: 16px;
  pointer-events: none;
}
.diy-module-body { display: grid; gap: 14px; min-width: 0; }
.diy-module.editing .diy-module-body { padding: 0 10px 10px; }
.diy-module.editing .panel,
.diy-module.editing .weather-card,
.diy-module.editing .radio-card,
.diy-module.editing .hero,
.diy-module.editing .stats-row { box-shadow: none; }
.diy-module-toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border-bottom: 1px solid #fed7aa;
  background: rgba(255,247,237,.96);
  backdrop-filter: blur(8px);
}
.drag-handle { cursor: grab; font-weight: 900; color: var(--brand); }
.diy-shelf {
  margin-top: 18px;
  border: 2px dashed #d1d5db;
  border-radius: 18px;
  background: #f9fafb;
  overflow: hidden;
}
.diy-shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}
.diy-hidden-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.diy-hidden-card:hover { border-color: var(--brand); box-shadow: 0 8px 18px rgba(234,88,12,.09); }
.diy-board-section {
  padding: 10px;
  border: 1px dashed #fdba74;
  border-radius: 16px;
  background: rgba(255,247,237,.45);
}
.diy-board-section.is-hidden,
.diy-board-card.is-hidden { opacity: .58; filter: grayscale(.2); }
.diy-board-grid {
  min-height: 80px;
  padding: 8px;
  border: 1px dashed #fed7aa;
  border-radius: 14px;
  background: rgba(255,255,255,.7);
}
.diy-board-card {
  position: relative;
  flex-direction: column;
  cursor: grab;
}
.diy-board-card > span:first-child,
.diy-board-card > span:nth-child(2) { align-self: stretch; }
.diy-board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.admin-diy-on .site-header { z-index: 80; }
.admin-diy-on .board-card:hover,
.admin-diy-on .post-item:hover { border-color: var(--brand); }
@media (max-width: 980px) {
  .diy-shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diy-module { width: 100% !important; }
  .diy-dock { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 720px) { .diy-shelf-grid { grid-template-columns: 1fr; } }

.custom-image-module .preview-image {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.custom-image-module .panel-body {
  display: grid;
  gap: 10px;
}

/* 全局 DIY：左右空白区 + 中间主体区都可以拖放模块 */
.global-diy-shell {
  width: min(1760px, calc(100vw - 28px));
  overflow-x: hidden;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, var(--container)) minmax(150px, 1fr);
  gap: 16px;
  align-items: start;
}
.global-diy-center { min-width: 0; }
.global-diy-center > .container,
.global-diy-center .container { width: 100%; max-width: 100%; }
.global-diy-side { min-width: 0; position: sticky; top: 150px; }
.global-diy-zone {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 14px;
  min-height: 1px;
}
.global-diy-zone.editing {
  min-height: 360px;
  padding: 12px;
  border: 2px dashed #fdba74;
  border-radius: 18px;
  background: rgba(255,247,237,.55);
}
.global-zone-title {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #fed7aa;
  color: var(--brand);
}
.global-zone-title span { color: var(--muted); font-size: 12px; }
.global-empty-drop {
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  border: 1px dashed #f59e0b;
  border-radius: 14px;
  color: #9a3412;
  background: rgba(255,255,255,.72);
  cursor: pointer;
  transition: width .22s ease, transform .22s ease, background .22s ease, opacity .22s ease;
}
.global-diy-side .diy-module { min-width: 0; width: 100%; }
.global-diy-side .post-top { flex-direction: column; }
.global-diy-side .diy-module.editing { min-height: 120px; }
.global-diy-side .hero { padding: 18px; }
.global-diy-side .hero h2 { font-size: 24px; }
.global-diy-side .hero-actions { gap: 6px; }
.global-diy-side .stats-row { grid-template-columns: 1fr; }
.global-diy-side .board-grid { grid-template-columns: 1fr; }
.global-diy-side .business-market-grid { grid-template-columns: 1fr; }
.global-diy-shelf { width: min(1760px, calc(100vw - 28px)); margin: 18px auto 0; }
.global-center-canvas.editing { min-height: 260px; }
.global-diy-shell.editing .global-diy-center { outline: 2px dashed rgba(249,115,22,.25); outline-offset: 8px; border-radius: 18px; }
.diy-module[data-zone="left"] .diy-module-toolbar,
.diy-module[data-zone="right"] .diy-module-toolbar { gap: 5px; }
.diy-module[data-zone="left"] .diy-module-toolbar .btn,
.diy-module[data-zone="right"] .diy-module-toolbar .btn { padding-left: 7px; padding-right: 7px; }
@media (max-width: 1380px) {
  .global-diy-shell { grid-template-columns: minmax(0, 1fr); }
  .global-diy-side { position: static; }
  .global-diy-side-left { order: 1; }
  .global-diy-center { order: 2; }
  .global-diy-side-right { order: 3; }
  .global-diy-zone.public:empty { display: none; }
  .global-diy-zone.editing { min-height: 160px; }
}

/* Coin wallet */
.coin-pill {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
  font-weight: 800;
}
.coin-balance-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
}
.wallet-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border: 1px solid #fed7aa;
  box-shadow: var(--shadow);
}
.wallet-hero h2 {
  margin: 4px 0;
  font-size: 38px;
}
.wallet-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 620px;
}
@media (max-width: 720px) {
  .wallet-hero { align-items: flex-start; flex-direction: column; }
  .coin-balance-line { border-radius: 12px; align-items: flex-start; }
}

/* 高端简约顶部：默认稳定收起；只有鼠标真正移入顶部区域才展开，避免自动下拉/收回抖动 */
.site-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229,231,235,.82);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
  transition: box-shadow .42s ease, background .42s ease;
}
.top-strip,
.brand-row {
  max-height: 120px;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: max-height .62s ease, opacity .48s ease, padding .62s ease, transform .62s ease, border .62s ease;
}
.site-header.header-compact .top-strip,
.site-header.header-compact .brand-row {
  max-height: 0;
  opacity: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-bottom-width: 0;
  pointer-events: none;
  transform: translateY(-10px);
}
.site-header.header-compact { box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }
.navbar {
  color: #111827;
  background: rgba(255,255,255,.86);
  border-top: 1px solid rgba(229,231,235,.72);
  backdrop-filter: blur(16px);
}
.nav-inner { min-height: 52px; }
.main-nav { gap: 6px; }
.main-nav a {
  position: relative;
  color: #374151;
  opacity: 1;
  font-weight: 800;
  padding: 10px 13px;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 22px rgba(234, 88, 12, .18);
}
.header-search input {
  color: #111827;
  background: #f9fafb;
  border-color: var(--line);
}
.header-search input::placeholder { color: #9ca3af; }
.nav-inner-branded {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-inner-branded .main-nav {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 4px;
}
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}
.nav-right .header-search {
  min-width: 220px;
  flex: 0 1 220px;
}
.nav-brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 205px;
  padding: 6px 10px 6px 6px;
  border-radius: 19px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(229,231,235,.86);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
  white-space: nowrap;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.nav-brand-mini:hover {
  transform: translateY(-1px);
  border-color: #fed7aa;
  box-shadow: 0 18px 34px rgba(234, 88, 12, .16);
}
.nav-brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}
.nav-brand-copy {
  display: grid;
  line-height: 1.08;
  gap: 3px;
}
.nav-brand-copy strong {
  color: #111827;
  font-size: 23px;
  font-weight: 950;
  letter-spacing: -.8px;
}
.nav-brand-copy small {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}
.site-header.header-compact .nav-inner-branded { min-height: 58px; }
.site-header.header-compact .nav-brand-mini { transform: scale(.96); }
.brand-row { padding: 12px 0; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.brand h1 { letter-spacing: -.8px; }
.top-strip { background: rgba(255,255,255,.94); }

/* 登录后的顶部账户区：压缩成一行，减少视觉噪音 */
.logged-top-strip {
  background:
    radial-gradient(circle at 86% -20%, rgba(249,115,22,.16), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(250,250,252,.92));
  border-bottom: 1px solid rgba(229,231,235,.78);
}
.member-topbar {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 9px 0;
}
.top-left-cluster {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.site-chip,
.city-switch-card,
.announcement-pill,
.header-pill,
.member-card-top {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(229,231,235,.88);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  backdrop-filter: blur(14px);
}
.site-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  color: #334155;
  font-weight: 900;
  white-space: nowrap;
}
.site-chip .chip-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eff6ff;
}
.city-switch-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 14px;
  white-space: nowrap;
}
.city-switch-card > span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}
.header-city-select {
  min-height: 32px;
  min-width: 170px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 0 28px 0 10px;
  color: #0f172a;
  background: #f8fafc;
  font-weight: 900;
}
.announcement-pill {
  min-width: 0;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  color: #475569;
  overflow: hidden;
}
.announcement-pill strong {
  color: var(--brand);
  font-size: 12px;
  letter-spacing: .06em;
  white-space: nowrap;
}
.announcement-pill span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-dock {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.member-card-top {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 7px;
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  border-color: rgba(254,215,170,.92);
  box-shadow: 0 16px 34px rgba(234,88,12,.10);
}
.member-card-avatar { display: inline-flex; }
.member-card-top .avatar.small {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  font-size: 18px;
  box-shadow: 0 10px 18px rgba(234,88,12,.18);
}
.member-card-copy {
  display: grid;
  gap: 2px;
  line-height: 1.1;
  min-width: 110px;
}
.member-card-copy strong {
  color: #111827;
  font-size: 14px;
  font-weight: 950;
  max-width: 136px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-card-copy small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.member-card-copy small span {
  max-width: 104px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-card-copy em {
  font-style: normal;
  color: #991b1b;
  background: #fee2e2;
  border-radius: 999px;
  padding: 2px 6px;
}
.header-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 13px;
  color: #1f2937;
  font-weight: 900;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.header-pill:hover {
  transform: translateY(-1px);
  border-color: #fed7aa;
  box-shadow: 0 16px 30px rgba(15,23,42,.10);
}
.coin-balance-pill {
  color: #9a3412;
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fff7ed, #fff);
}
.coin-balance-pill strong { font-size: 15px; }
.coin-balance-pill small { color: #9a3412; font-size: 12px; }
.admin-pill {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.dark-pill {
  color: #fff;
  border: 0;
  background: #111827;
}
.logout-pill {
  color: #64748b;
  background: rgba(248,250,252,.85);
}
.guest-topbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.guest-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-header.header-compact .member-topbar,
.site-header.header-compact .guest-topbar {
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.notification-link,
.main-nav a,
.conversation-item > div:first-child { position: relative; }
.nav-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  box-shadow: 0 0 0 2px #fff;
}
.notification-link .nav-badge,
.main-nav .nav-badge {
  position: absolute;
  right: -5px;
  top: -6px;
}
.conversation-badge { margin-left: auto; }

/* 首页广告位 */
.home-ad-slot { width: 100%; }
.home-ad-slot .ad-hero { animation: homeAdFadeIn .42s ease both; }
@keyframes homeAdFadeIn {
  from { opacity: .88; transform: translateY(4px) scale(.996); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ad-hero {
  position: relative;
  min-height: 300px;
  width: 100%;
  overflow: hidden;
  border-radius: 26px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 340px);
  gap: 22px;
  align-items: end;
  color: #fff;
  background:
    radial-gradient(circle at 88% 8%, rgba(255,255,255,.24), transparent 30%),
    linear-gradient(135deg, #111827, #9a3412 58%, #f97316);
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 55px rgba(15,23,42,.16);
}
.ad-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,.28), rgba(15,23,42,.04));
  pointer-events: none;
}
.ad-hero > * { position: relative; z-index: 1; }
.ad-hero-content { max-width: 780px; display: grid; gap: 12px; }
.ad-kicker { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}
.ad-hero h2 { margin: 0; font-size: clamp(28px, 4vw, 52px); line-height: 1.08; letter-spacing: -1.4px; }
.ad-hero p { margin: 0; max-width: 720px; color: rgba(255,255,255,.9); font-size: clamp(15px, 1.5vw, 19px); }
.ad-hero-meta { color: rgba(255,255,255,.76); font-size: 13px; }
.ad-hero .btn { border: none; }
.ad-hero .btn.ghost { color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26); }
.ad-price-strip,
.ad-hero-side { display: grid; gap: 10px; align-self: stretch; }
.ad-price-strip > div,
.ad-mini {
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(12px);
}
.ad-price-strip strong,
.ad-mini strong { display: block; color: #fff; }
.ad-price-strip span,
.ad-mini span { color: rgba(255,255,255,.76); font-size: 12px; }
.ad-hero-empty { min-height: 270px; }
.global-diy-side .ad-hero,
.sidebar-stack .ad-hero {
  min-height: 260px;
  grid-template-columns: 1fr;
  padding: 20px;
  border-radius: 18px;
}
.global-diy-side .ad-hero h2,
.sidebar-stack .ad-hero h2 { font-size: 25px; }
.global-diy-side .ad-price-strip,
.sidebar-stack .ad-price-strip { grid-template-columns: 1fr; }

.ad-package-grid .price-card { cursor: pointer; }
.ad-package-grid .price-card input { float: right; }
.ad-application-row,
.ad-review-card {
  display: grid;
  grid-template-columns: 150px minmax(0,1fr);
  gap: 14px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.ad-application-thumb,
.ad-review-preview {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #111827, #f97316);
  color: #fff;
  font-weight: 900;
  letter-spacing: .08em;
}
.ad-application-thumb img,
.ad-review-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-review-card { grid-template-columns: 230px minmax(0,1fr); }
.ad-review-main h3 { margin: 8px 0 4px; }
.ad-review-main p { margin: 6px 0; color: #374151; }

@media (max-width: 980px) {
  .ad-hero { grid-template-columns: 1fr; min-height: 260px; }
  .ad-price-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-review-card { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ad-hero { padding: 20px; border-radius: 20px; }
  .ad-price-strip { grid-template-columns: 1fr; }
  .ad-application-row { grid-template-columns: 1fr; }
  .site-header.header-compact .top-strip { max-height: 0; }
  .top-strip-inner, .brand-row.top-strip-inner { flex-direction: row; align-items: center; }
  .nav-inner-branded { min-height: 58px; gap: 8px; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .nav-right { margin-left: 0; order: 1; }
  .nav-brand-mini { min-width: auto; padding: 5px 7px 5px 5px; border-radius: 16px; }
  .nav-brand-logo { width: 38px; height: 38px; border-radius: 13px; }
  .nav-brand-copy strong { font-size: 18px; }
  .nav-brand-copy small { font-size: 11px; }
  .nav-inner-branded .main-nav { order: 2; flex-basis: 100%; padding-bottom: 6px; }
}
.site-header.header-compact .top-strip .top-strip-inner,
.site-header.header-compact .brand-row.top-strip-inner { min-height: 0; }

/* 云顶品牌与登录弹窗优化 */
.yunding-brand { min-width: 260px; }
.yunding-logo {
  background: transparent;
  box-shadow: 0 14px 30px rgba(127, 29, 29, .22);
  overflow: hidden;
}
.yunding-logo-svg { width: 100%; height: 100%; display: block; }
.brand-aside {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: #111827;
  text-align: right;
}
.brand-aside span {
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--brand);
  font-weight: 900;
}
.brand-aside strong { font-size: 14px; color: #374151; }
.notification-link { padding-right: 18px; }

body.auth-modal-open { overflow: hidden; }
#auth-modal-root:empty { display: none; }
#auth-modal-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
}
.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(10px);
}
.auth-modal {
  position: relative;
  width: min(520px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 34px));
  overflow: auto;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
  padding: 22px;
}
.auth-modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 24px;
  line-height: 1;
  color: #374151;
}
.auth-modal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-right: 38px;
}
.auth-modal-brand .brand-logo { width: 54px; height: 54px; border-radius: 18px; }
.auth-modal-brand h2 { margin: 0; font-size: 24px; letter-spacing: -.6px; }
.auth-modal-brand p { margin: 2px 0 0; color: var(--muted); }
.auth-modal-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px;
  border-radius: 16px;
  background: #f3f4f6;
}
.auth-modal-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-weight: 900;
  color: #4b5563;
}
.auth-modal-tabs button.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 18px rgba(234, 88, 12, .18);
}
.auth-modal-oauth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.auth-modal-form .form-grid { gap: 12px; }
.auth-modal-demo { margin: 14px 0 0; font-size: 12px; }

.quick-action-dock {
  position: fixed;
  right: 0;
  top: 42vh;
  z-index: 48;
  display: grid;
  gap: 8px;
  padding: 8px 10px 8px 18px;
  transform: translateX(calc(100% - 24px));
  opacity: .74;
  transition: transform .28s ease, opacity .28s ease;
}
.quick-action-dock:hover,
.quick-action-dock:focus-within {
  transform: translateX(0);
  opacity: 1;
}
.quick-action-dock::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 6px;
  height: 78px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 26px rgba(234,88,12,.24);
}
.quick-action-dock a,
.quick-action-dock button {
  min-width: 74px;
  min-height: 64px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(229,231,235,.88);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
  backdrop-filter: blur(14px);
  color: #111827;
}
.quick-action-dock a:hover,
.quick-action-dock button:hover {
  transform: translateY(-2px);
  border-color: #fed7aa;
  box-shadow: 0 22px 45px rgba(234, 88, 12, .16);
}
.quick-action-dock span {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}
.quick-action-dock strong { font-size: 13px; }
.quick-action-dock button {
  font: inherit;
  cursor: pointer;
  appearance: none;
}

.ad-hero-pager {
  align-self: end;
  justify-self: end;
  display: grid;
  justify-items: end;
  gap: 9px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,.92);
  font-weight: 900;
}
.ad-arrow {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #dc2626;
  font-size: 19px;
  font-weight: 900;
}
.ad-hero-pager > span { font-size: 13px; }
.ad-dots { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 140px; }
.ad-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.42);
}
.ad-dot.active { width: 22px; background: #fff; }
.ad-action-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .07);
}
.ad-action-strip > div:first-child { display: grid; gap: 2px; min-width: 0; }
.ad-action-strip strong { font-size: 14px; }
.ad-action-strip span { color: var(--muted); font-size: 13px; }
.ad-hero .hero-actions { display: none; }
.sidebar-stack .ad-action-strip,
.global-diy-side .ad-action-strip { flex-direction: column; align-items: stretch; }
.sidebar-stack .ad-action-strip .row-actions,
.global-diy-side .ad-action-strip .row-actions { display: grid; }

@media (max-width: 1180px) {
  .nav-right .header-search { display: none; }
  .nav-brand-mini { min-width: 190px; }
}
@media (max-width: 980px) {
  .brand-aside { display: none; }
  .auth-modal-oauth { grid-template-columns: 1fr; }
  .quick-action-dock {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    grid-template-columns: repeat(4, 1fr);
    padding: 0;
    transform: none;
    opacity: 1;
  }
  .quick-action-dock::before { display: none; }
  .quick-action-dock a,
.quick-action-dock button { min-height: 54px; min-width: 0; border-radius: 16px; }
  .app-main { padding-bottom: 92px; }
  .ad-hero-pager { justify-self: start; }
  .ad-action-strip { flex-direction: column; align-items: stretch; }
  .ad-action-strip .row-actions { display: grid; grid-template-columns: 1fr; }
}

/* 本轮优化：主导航左侧品牌、广告圆点、天气文案、扫码登录 */
.nav-brand-left,
.nav-inner-branded > .nav-brand-mini {
  order: 0;
  flex: 0 0 auto;
  margin-left: 0;
  margin-right: 10px;
}
.nav-inner-branded .nav-right {
  margin-left: auto;
}
.site-header.header-compact .nav-brand-mini {
  opacity: 1;
  visibility: visible;
}

.ad-hero-pager.ad-hero-dots-only {
  align-self: end;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}
.ad-hero-pager.ad-hero-dots-only .ad-dots {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: none;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
}
.ad-hero-pager.ad-hero-dots-only .ad-dot {
  width: 10px;
  height: 10px;
  cursor: pointer;
  transition: width .22s ease, background .22s ease, opacity .22s ease, transform .22s ease;
}
.ad-hero-pager.ad-hero-dots-only .ad-dot:hover {
  transform: translateY(-1px);
  opacity: 1;
}
.ad-hero-pager.ad-hero-dots-only .ad-dot.active {
  width: 28px;
}
.weather-auto-badge { display: none !important; }

.oauth-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  font-weight: 900;
}
.oauth-btn span {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}
.oauth-btn strong { font-size: 14px; }
.oauth-btn.wechat span { background: linear-gradient(135deg, #16a34a, #22c55e); }
.oauth-btn.qq span { background: linear-gradient(135deg, #2563eb, #38bdf8); }
.oauth-scan-modal {
  width: min(720px, calc(100vw - 28px));
}
.oauth-scan-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.oauth-qr-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 250px;
  border-radius: 24px;
  border: 1px solid rgba(229,231,235,.92);
  background: linear-gradient(180deg, #fff, #f9fafb);
  box-shadow: inset 0 0 0 10px #fff, 0 20px 46px rgba(15,23,42,.12);
}
.oauth-qr-frame.wechat { box-shadow: inset 0 0 0 10px #fff, 0 20px 46px rgba(22,163,74,.16); }
.oauth-qr-frame.qq { box-shadow: inset 0 0 0 10px #fff, 0 20px 46px rgba(37,99,235,.16); }
.oauth-qr-svg {
  width: 188px;
  height: 188px;
  border-radius: 14px;
  background: #fff;
}
.oauth-qr-provider {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
  color: #111827;
}
.oauth-scan-copy {
  display: grid;
  gap: 12px;
}
.oauth-scan-copy > strong {
  font-size: 20px;
  color: #111827;
}
.oauth-scan-copy p {
  margin: 0;
  color: #4b5563;
  line-height: 1.7;
}
.oauth-scan-copy .row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 720px) {
  .nav-brand-left,
  .nav-inner-branded > .nav-brand-mini { order: 0; margin-right: auto; }
  .nav-inner-branded .nav-right { order: 1; margin-left: 0; }
  .oauth-scan-layout { grid-template-columns: 1fr; }
  .oauth-qr-frame { min-height: 230px; }
  .oauth-qr-svg { width: 170px; height: 170px; }
  .ad-hero-pager.ad-hero-dots-only { justify-self: start; }
}

/* 本轮调整：Logo 放到主导航左侧，收起顶部后仍固定可见 */
.nav-inner-branded {
  justify-content: flex-start;
}
.nav-inner-branded > .nav-brand-mini {
  order: 0;
  margin-left: 0;
  margin-right: 10px;
  flex: 0 0 auto;
}
.nav-inner-branded > .main-nav {
  order: 1;
  flex: 1 1 auto;
}
.nav-inner-branded > .nav-right {
  order: 2;
  margin-left: auto;
}
.site-header.header-compact .nav-inner-branded > .nav-brand-mini {
  opacity: 1;
  visibility: visible;
  transform: none;
}

@media (max-width: 720px) {
  .nav-inner-branded > .nav-brand-mini {
    order: 0;
    margin-right: 6px;
  }
  .nav-inner-branded > .nav-right {
    order: 1;
    margin-left: auto;
  }
  .nav-inner-branded > .main-nav {
    order: 2;
    flex-basis: 100%;
  }
}

/* 本轮调整：登录入口只保留手机号注册/登录与微信登录 */
.auth-layout-simple .oauth-buttons { gap: 12px; }
.auth-modal-tabs.auth-modal-tabs-two { grid-template-columns: repeat(2, 1fr); }
.wechat-login-panel { display: grid; gap: 14px; }
.wechat-qr-preview {
  display: grid;
  place-items: center;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  overflow: hidden;
}
.wechat-qr-preview iframe {
  width: 100%;
  min-height: 310px;
  border: 0;
  background: #fff;
}
.wechat-qr-preview > span {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}
.avatar.avatar-image { overflow: hidden; padding: 0; background: #fff; }
.avatar.avatar-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.avatar-upload-btn { position: relative; overflow: hidden; }
.avatar-upload-btn input { display: none !important; }
.auth-forgot-row { display: flex; justify-content: flex-end; margin-top: -6px; }
.auth-forgot-row .nube-forgot-link { color: #dc2626; font-weight: 800; text-decoration: none; }
.auth-forgot-row .nube-forgot-link:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .auth-layout.auth-layout-simple { grid-template-columns: 1fr; }
  .wechat-qr-preview iframe { min-height: 260px; }
}


.wechat-official-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(22, 163, 74, .18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(34,197,94,.08), rgba(255,255,255,.94));
  box-shadow: 0 12px 35px rgba(15,23,42,.06);
}
.wechat-official-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 10px 22px rgba(34,197,94,.24);
  flex: 0 0 auto;
}
.wechat-official-card strong { display: block; color: #111827; font-size: 16px; margin-bottom: 4px; }
.wechat-official-card p { margin: 0; color: #64748b; line-height: 1.6; }

/* 本轮调整：邮箱验证注册 */
.email-verify-result:empty { display: none; }
.email-verify-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}
.email-verify-box strong { color: #9a3412; font-size: 15px; }
.email-verify-box p { margin: 0; color: #6b7280; }
.email-verify-page { text-align: center; }

/* Legal pages and registration agreement */
.terms-check { display:flex; align-items:flex-start; gap:8px; line-height:1.6; }
.terms-check input { margin-top:4px; }
.terms-check a { color:#ef3b22; font-weight:800; text-decoration:none; }
.terms-check a:hover { text-decoration:underline; }
.legal-page .panel { max-width:980px; margin:0 auto; }
.legal-page h1 { margin:0 0 14px; font-size:clamp(28px, 4vw, 42px); letter-spacing:-.04em; }
.legal-page h2 { margin:26px 0 10px; font-size:22px; }
.legal-page p, .legal-page li { color:#334155; line-height:1.85; font-size:16px; }
.legal-page ol { padding-left:22px; display:grid; gap:6px; }

@media (max-width: 1180px) {
  .logged-top-strip { max-height: 210px; }
  .member-topbar { grid-template-columns: 1fr; gap: 10px; }
  .member-dock { justify-self: stretch; overflow-x: auto; padding-bottom: 4px; }
  .top-left-cluster { flex-wrap: wrap; }
  .announcement-pill { flex-basis: 100%; min-height: 38px; }
}
@media (max-width: 720px) {
  .logged-top-strip { max-height: 260px; }
  .member-topbar { padding: 8px 0; }
  .site-chip, .city-switch-card, .announcement-pill { width: 100%; }
  .header-city-select { min-width: 0; flex: 1; }
  .member-card-copy strong { max-width: 120px; }
  .member-dock { gap: 6px; }
  .header-pill { min-height: 38px; padding: 0 11px; }
}

/* 全站置顶公告 */
.announcement-action {
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.announcement-action:hover {
  border-color: #fed7aa;
  box-shadow: 0 16px 34px rgba(234,88,12,.12);
  transform: translateY(-1px);
}
.site-announcement-shell {
  position: sticky;
  top: 78px;
  z-index: 42;
  width: min(1480px, calc(100vw - 28px));
  margin: 14px auto 10px;
  pointer-events: none;
}
.site-announcement-card {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 237, 213, .72);
  background:
    linear-gradient(90deg, rgba(127,29,29,.98) 0%, rgba(185,28,28,.96) 18%, rgba(234,88,12,.96) 68%, rgba(249,115,22,.94) 100%);
  color: #fff;
  box-shadow: 0 22px 58px rgba(185,28,28,.34), 0 10px 28px rgba(15,23,42,.18);
  backdrop-filter: blur(18px);
}
.site-announcement-card::before {
  content: "公告";
  position: absolute;
  left: -8px;
  top: 0;
  bottom: 0;
  width: 76px;
  display: grid;
  place-items: center;
  background: rgba(15,23,42,.22);
  color: rgba(255,255,255,.22);
  font-size: 34px;
  font-weight: 950;
  letter-spacing: 4px;
  writing-mode: vertical-rl;
  pointer-events: none;
}
.site-announcement-card.announcement-important {
  border-color: rgba(255,237,213,.82);
  background:
    linear-gradient(90deg, rgba(127,29,29,.98) 0%, rgba(185,28,28,.96) 18%, rgba(234,88,12,.96) 68%, rgba(249,115,22,.94) 100%);
}
.site-announcement-card.announcement-urgent {
  border-color: rgba(252,165,165,.52);
  background:
    radial-gradient(circle at 92% -40%, rgba(255,255,255,.28), transparent 34%),
    linear-gradient(135deg, #7f1d1d 0%, #dc2626 54%, #f97316 100%);
  box-shadow: 0 20px 52px rgba(220,38,38,.3), 0 8px 24px rgba(15,23,42,.16);
}
.site-announcement-card.announcement-info {
  border-color: rgba(147,197,253,.52);
  background:
    radial-gradient(circle at 92% -40%, rgba(255,255,255,.28), transparent 34%),
    linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #06b6d4 100%);
  box-shadow: 0 20px 52px rgba(37,99,235,.25), 0 8px 24px rgba(15,23,42,.16);
}
.site-announcement-icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #dc2626;
  font-size: 19px;
  font-weight: 950;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 12px 26px rgba(15,23,42,.16);
}
.announcement-info .site-announcement-icon { color: #2563eb; background: rgba(255,255,255,.94); }
.announcement-urgent .site-announcement-icon { color: #dc2626; background: rgba(255,255,255,.94); }
.site-announcement-copy { position: relative; z-index: 1; min-width: 0; display: grid; gap: 5px; }
.site-announcement-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.site-announcement-title span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #b45309;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(15,23,42,.1);
}
.announcement-info .site-announcement-title span { color: #1d4ed8; }
.announcement-urgent .site-announcement-title span { color: #b91c1c; }
.site-announcement-title strong {
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(15,23,42,.25);
}
.site-announcement-copy p {
  margin: 0;
  color: rgba(255,255,255,.96);
  line-height: 1.55;
  font-weight: 800;
}
.site-announcement-copy small { color: rgba(255,255,255,.9); font-weight: 850; }
.site-announcement-link {
  position: relative;
  z-index: 1;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: #111827;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(15,23,42,.14);
}
.site-announcement-link:hover { transform: translateY(-1px); }
.site-announcement-close {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #111827;
  font-size: 23px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15,23,42,.12);
}
.site-announcement-close:hover { color: #dc2626; background: #fff; border-color: rgba(255,255,255,.88); transform: scale(1.04); }
.announcement-modal { width: min(680px, calc(100vw - 28px)); }
.announcement-admin-list { margin-top: 16px; display: grid; gap: 10px; }
.announcement-admin-list h3 { margin: 0; }
.announcement-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.announcement-admin-row strong { display: block; color: #111827; }
.announcement-admin-row small { color: #64748b; font-weight: 800; }
.announcement-admin-row p { margin: 4px 0 0; color: #475569; line-height: 1.55; }
@media (max-width: 720px) {
  .site-announcement-shell { top: 70px; width: min(100% - 20px, 680px); }
  .site-announcement-card { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; }
  .site-announcement-link { grid-column: 2 / -1; width: fit-content; }
  .site-announcement-copy p { font-size: 14px; }
}

/* 管理员公告按钮 */
.announce-header-pill {
  color: #9a3412;
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fff7ed, #fff);
}
.announce-header-pill:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

/* 墨西哥华人网：使用用户提供的 PNG Logo，并避免被裁切 */
.nav-brand-logo.yunding-logo,
.brand-logo.yunding-logo {
  background: transparent;
  box-shadow: none;
}
.nav-brand-logo.yunding-logo img,
.brand-logo.yunding-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0;
}
.nav-brand-logo.yunding-logo {
  width: 58px;
  height: 46px;
}


/* V4 修复：只删除公告前面的白色圆角“告/!”图标，不删除后面的公告背景字 */
.site-announcement-icon {
  display: none !important;
}
.site-announcement-card {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
@media (max-width: 760px) {
  .site-announcement-card { grid-template-columns: minmax(0, 1fr) auto; }
  .site-announcement-link { grid-column: 1 / -1; }
}

/* V5 修复：保留左侧背景“公告”，把公告正文整体右移，避免覆盖背景字 */
.site-announcement-copy {
  padding-left: 72px !important;
}
@media (max-width: 760px) {
  .site-announcement-copy {
    padding-left: 58px !important;
  }
}

/* 美食地图 / 餐饮商家展示页 */
.food-map-page,
.food-detail-page { display: grid; gap: 18px; }

.food-map-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 18px;
  align-items: stretch;
  border-radius: 24px;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.22), transparent 34%),
    linear-gradient(135deg, #4c1d0d, #b91c1c 54%, #f97316);
  color: #fff;
  box-shadow: var(--shadow);
}
.food-map-hero-copy { display: flex; flex-direction: column; justify-content: center; min-height: 310px; }
.food-map-hero .eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  font-size: 13px;
  font-weight: 900;
}
.food-map-hero h2 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 44px); line-height: 1.12; letter-spacing: -0.6px; }
.food-map-hero p { max-width: 720px; margin: 0 0 18px; color: rgba(255,255,255,.88); }
.food-map-hero-map { min-height: 310px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.12); }
.food-map-hero-map iframe,
.food-sidebar-map,
.food-detail-map { width: 100%; border: 0; display: block; background: #f3f4f6; }
.food-map-hero-map iframe { height: 100%; min-height: 310px; }
.food-sidebar-map { height: 260px; border-radius: 14px; }
.food-detail-map { height: 330px; border-radius: 14px; margin-top: 10px; }

.food-filter-panel .panel-body { display: grid; gap: 12px; }
.food-search-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
.food-search-bar input,
.food-join-form input,
.food-join-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  outline: none;
}
.food-search-bar input:focus,
.food-join-form input:focus,
.food-join-form textarea:focus { border-color: #fb923c; box-shadow: 0 0 0 3px rgba(251,146,60,.16); }
.food-filter-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: start; }
.food-filter-row > strong { padding-top: 4px; }
.food-filter-row > div { display: flex; gap: 7px; flex-wrap: wrap; }
.food-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}
.food-filter-chip.active,
.food-filter-chip:hover { background: var(--brand-soft); color: var(--brand); border-color: #fed7aa; }

.food-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 345px;
  gap: 18px;
  align-items: start;
}
.food-card-list { display: grid; gap: 14px; }
.food-map-sidebar { display: grid; gap: 14px; position: sticky; top: 90px; }

.food-card {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.food-card-media {
  position: relative;
  min-height: 238px;
  background-size: cover;
  background-position: center;
}
.food-ribbon {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(17,24,39,.82);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.food-card-body { padding: 15px; display: grid; gap: 10px; }
.food-card-title { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.food-card-title h3 { margin: 0; font-size: 20px; }
.food-card-title p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.food-rating {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 900;
  white-space: nowrap;
}
.food-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.food-address { margin: 0; color: #374151; font-weight: 700; }
.food-menu-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.food-menu-strip span {
  display: grid;
  gap: 2px;
  padding: 9px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff7ed;
}
.food-menu-strip strong { font-size: 13px; }
.food-menu-strip small { color: #9a3412; font-weight: 800; }
.food-card-actions { margin-top: 2px; }

.food-preview-panel .panel-body { display: grid; gap: 12px; }
.food-preview-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 15px;
  background: linear-gradient(90deg, #fff7ed, #fff);
  border: 1px solid #fed7aa;
}
.food-preview-hero strong { display: block; font-size: 16px; }
.food-preview-hero span { display: block; color: var(--muted); font-size: 13px; }
.food-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.food-preview-scroll { overflow: hidden; width: 100%; }
.food-preview-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.food-preview-scroll.is-marquee { mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
.food-preview-scroll.is-marquee .food-preview-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: foodMarquee var(--food-marquee-duration, 48s) linear infinite;
}
.food-preview-scroll.is-marquee:hover .food-preview-track { animation-play-state: paused; }
.food-preview-scroll.is-marquee .food-mini-card { flex: 0 0 330px; }
@keyframes foodMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.food-mini-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px;
  background: #fff;
  min-width: 0;
}
.food-mini-card:hover { border-color: #fed7aa; box-shadow: 0 8px 18px rgba(248,113,113,.08); }
.food-mini-image {
  width: 92px;
  height: 76px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}
.food-mini-copy { display: grid; gap: 3px; min-width: 0; }
.food-mini-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.food-mini-copy em {
  margin-left: 5px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-style: normal;
}
.food-mini-copy small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.food-join-form { display: grid; gap: 10px; margin-top: 12px; }

.food-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 18px;
  align-items: stretch;
}
.food-detail-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 190px;
  gap: 10px;
}
.food-detail-img {
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.food-detail-img.main { grid-column: 1 / -1; grid-row: span 2; min-height: 390px; }
.food-detail-summary h3 { margin: 12px 0 8px; font-size: 28px; }
.food-detail-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.food-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 12px 0; }
.food-info-grid span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafa;
  color: #374151;
}
.food-info-grid strong { color: #111827; }
.food-detail-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; }
.food-menu-list { display: grid; gap: 9px; }
.food-menu-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.food-menu-item div { display: grid; gap: 3px; }
.food-menu-item span { color: var(--muted); font-size: 13px; }
.food-menu-item em { color: var(--brand); font-style: normal; font-weight: 900; white-space: nowrap; }

@media (max-width: 980px) {
  .food-map-hero,
  .food-map-layout,
  .food-detail-hero,
  .food-detail-layout { grid-template-columns: 1fr; }
  .food-map-sidebar { position: static; }
  .food-card { grid-template-columns: 210px minmax(0, 1fr); }
  .food-preview-grid, .food-preview-track { grid-template-columns: 1fr; }
  .food-preview-scroll.is-marquee .food-mini-card { flex-basis: 290px; }
}

@media (max-width: 680px) {
  .food-map-hero { padding: 16px; border-radius: 18px; }
  .food-search-bar { grid-template-columns: 1fr; }
  .food-filter-row { grid-template-columns: 1fr; }
  .food-card { grid-template-columns: 1fr; }
  .food-card-media { min-height: 210px; }
  .food-menu-strip { grid-template-columns: 1fr; }
  .food-detail-gallery { grid-template-columns: 1fr; grid-auto-rows: 170px; }
  .food-detail-img.main { min-height: 230px; grid-row: auto; }
  .food-info-grid { grid-template-columns: 1fr; }
  .food-mini-card { grid-template-columns: 82px minmax(0, 1fr); }
  .food-mini-image { width: 82px; height: 68px; }
}

/* 商家认证 / 餐厅管理增强 */
.badge.business { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.merchant-page { display: grid; gap: 18px; }
.merchant-page .panel-body { display: grid; gap: 12px; }
.mini-image-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mini-image-row span {
  display: inline-block;
  width: 52px;
  height: 42px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  box-shadow: 0 4px 10px rgba(15,23,42,.06);
}
.admin-card .mini-image-row span { width: 48px; height: 38px; }
.form-grid input[type="file"].form-control { padding: 10px; }

.account-business-settings .panel-body { display: grid; gap: 12px; }
.business-cert-list .post-item { border-left: 3px solid #fed7aa; }
.food-preview-scroll.is-marquee { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }

/* 外部地图链接导入样式（功能已关闭，保留兼容旧缓存） */
.inline-action-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.google-import-field .muted { margin-top: 6px; }
.google-import-status { margin-top: 8px; display: grid; gap: 8px; }
.google-import-loading,
.google-import-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
}
.google-import-loading div,
.google-import-success { min-width: 0; }
.google-import-loading strong,
.google-import-success strong { display: block; color: #7c2d12; }
.google-import-loading small,
.google-import-success span { display: block; color: #9a3412; }
.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid #fed7aa;
  border-top-color: var(--brand);
  animation: mapImportSpin .82s linear infinite;
  flex: 0 0 auto;
}
.btn.is-loading { opacity: .72; cursor: wait; }
@keyframes mapImportSpin { to { transform: rotate(360deg); } }
.google-photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.google-photo-preview span {
  width: 58px;
  height: 46px;
  display: inline-block;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(251,146,60,.45);
  box-shadow: 0 6px 14px rgba(15,23,42,.08);
}
.google-reviews-panel .panel-head span { font-size: 12px; }
.google-review-list { display: grid; gap: 10px; }
.google-review-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.google-review-item div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.google-review-item span { color: #9a3412; font-size: 12px; font-weight: 800; }
.google-review-item p { margin: 6px 0 0; color: #374151; }
@media (max-width: 680px) {
  .inline-action-field { grid-template-columns: 1fr; }
  .inline-action-field .btn { width: 100%; }
}

/* 2026-05-05 私信中心修复：红点数字、点击联系人不跳页、聊天框自适应屏幕 */
.chat-layout {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: start;
}
.conversation-panel,
.chat-box {
  min-height: 0;
}
.conversation-list {
  max-height: clamp(260px, calc(100vh - 230px), 640px);
  overflow-y: auto;
}
.conversation-item {
  width: 100%;
  display: block;
  text-align: left;
  font: inherit;
  color: inherit;
}
.conversation-person {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.conversation-last {
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-box {
  height: clamp(390px, calc(100vh - 205px), 660px);
  display: flex;
  flex-direction: column;
}
.chat-head {
  flex-shrink: 0;
}
.chat-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.message-list {
  min-height: 0;
}
.chat-input {
  flex-shrink: 0;
}
.nav-badge,
.chat-title-badge,
.conversation-badge {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 0 0 2px #fff, 0 6px 14px rgba(220,38,38,.28);
}
.chat-title-badge {
  position: static;
  margin-left: 8px;
}
.conversation-badge {
  margin-left: auto;
}

@media (max-width: 980px) {
  .chat-layout { grid-template-columns: 1fr; }
  .conversation-list {
    max-height: 28vh;
  }
  .chat-box {
    height: clamp(360px, calc(100vh - 180px), 620px);
  }
}
@media (max-width: 560px) {
  .chat-layout { gap: 10px; }
  .conversation-list {
    max-height: 24vh;
    padding: 10px;
  }
  .chat-box {
    height: calc(100vh - 150px);
    min-height: 350px;
  }
  .chat-input {
    gap: 6px;
  }
  .chat-input .form-control {
    min-width: 0;
  }
}


/* 2026-05-05 消息中心：会话可移除。点击 × 只隐藏当前用户会话列表，不删除聊天记录。 */
.conversation-item {
  position: relative;
  padding-right: 38px;
}
.conversation-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #9ca3af;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.conversation-close:hover {
  color: #dc2626;
  background: #fee2e2;
  border-color: #fecaca;
}
.conversation-item.active .conversation-close {
  color: #ef4444;
}


/* 商家认证：多图分组上传 */
.business-cert-photo-manager { display: grid; gap: 12px; }
.business-photo-category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.business-photo-category {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fff7ed 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}
.business-photo-category-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.business-photo-category-head strong { font-size: 15px; color: var(--ink); }
.business-photo-category-head span {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}
.business-photo-batch-note {
  padding: 10px 12px;
  border: 1px dashed #fed7aa;
  border-radius: 14px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.6;
}
.business-photo-dropzone {
  position: relative;
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 92px;
  padding: 14px;
  border: 1.5px dashed #fb923c;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  text-align: center;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.business-photo-dropzone.dragging {
  transform: translateY(-1px);
  border-color: #ea580c;
  background: #ffedd5;
  box-shadow: 0 14px 30px rgba(234, 88, 12, .14);
}
.business-photo-dropzone::before {
  content: "📷";
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #ffedd5;
  font-size: 21px;
}
.business-photo-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.business-photo-picker-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(239, 68, 68, .18);
}
.business-photo-picker-button:hover { filter: brightness(.98); transform: translateY(-1px); }
.business-photo-batch-tip { color: #64748b; font-size: 12px; line-height: 1.55; }
.business-photo-batch-meta {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.business-photo-batch-meta span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 11px;
  font-weight: 800;
}
.business-photo-preview { min-height: 88px; }

.business-photo-status,
.business-photo-global-status {
  min-height: 18px;
  font-size: 12px;
  color: #64748b;
}
.business-photo-global-status {
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px dashed #fed7aa;
  display: none;
}
.business-photo-global-status:not(:empty) { display: block; }
.business-photo-status.loading,
.business-photo-global-status.loading { color: #9a3412; }
.business-photo-status.success,
.business-photo-global-status.success { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.business-photo-status.error,
.business-photo-global-status.error { color: #dc2626; background: #fef2f2; border-color: #fecaca; }

.business-photo-empty {
  min-height: 82px;
  border: 1px dashed #fdba74;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #9ca3af;
  background: rgba(255,255,255,.7);
  font-size: 13px;
}
.business-photo-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.business-photo-thumb {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15,23,42,.07);
  margin: 0;
}
.business-photo-thumb img { width: 100%; height: 92px; object-fit: cover; display: block; background: #f8fafc; }
.business-photo-thumb figcaption {
  padding: 7px 8px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.business-photo-actions {
  display: flex;
  gap: 5px;
  padding: 0 8px 8px;
  flex-wrap: wrap;
}
.btn.tiny { padding: 4px 8px; border-radius: 999px; font-size: 12px; line-height: 1.2; }
.business-preview-block { display: grid; gap: 5px; }
.business-preview-block .small { font-size: 12px; }
@media (max-width: 980px) {
  .business-photo-category-grid { grid-template-columns: 1fr; }
  .business-photo-preview-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

/* 商家认证上传区：移除静态说明文字，只保留分类、数量、按钮和预览 */
.business-photo-batch-note,
.business-photo-batch-tip,
.business-photo-batch-meta { display: none !important; }


/* 删除帖子后，只移除当前帖子模块，不触发整页跳动 */
.post-item.is-removing,
tr.is-removing,
.detail-article.is-removing {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease;
}

/* 2026-05-08 成长装扮中心独立页 + 聊天浮窗 */
.user-name { font-weight: inherit; }
.dress-name-gold { background: linear-gradient(90deg,#b45309,#f59e0b,#fef3c7,#ea580c); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 2px 10px rgba(245,158,11,.18); }
.dress-name-rose { background: linear-gradient(90deg,#be123c,#fb7185,#f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 2px 10px rgba(244,63,94,.18); }
.dress-name-jade { background: linear-gradient(90deg,#047857,#34d399,#a7f3d0); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 2px 10px rgba(16,185,129,.16); }
.dress-name-sky { background: linear-gradient(90deg,#1d4ed8,#38bdf8,#dbeafe); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 2px 10px rgba(37,99,235,.16); }

.avatar.dress-avatar-gold { border: 3px solid #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.18), 0 12px 28px rgba(245,158,11,.26); }
.avatar.dress-avatar-jade { border: 3px solid #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.18), 0 12px 28px rgba(20,184,166,.22); }
.avatar.dress-avatar-rose { border: 3px solid #fb7185; box-shadow: 0 0 0 4px rgba(251,113,133,.18), 0 12px 28px rgba(225,29,72,.22); }
.avatar.dressup-avatar-large { width: 76px; height: 76px; border-radius: 24px; font-size: 32px; }

.profile-header.dress-home-sunset,
.dressup-preview-stage.dress-home-sunset,
.dressup-hero.dress-home-sunset { background: radial-gradient(circle at 12% 0%, rgba(254,243,199,.9), transparent 30%), linear-gradient(135deg,#fff7ed,#fed7aa,#fff); border-color:#fdba74; }
.profile-header.dress-home-bay,
.dressup-preview-stage.dress-home-bay,
.dressup-hero.dress-home-bay { background: radial-gradient(circle at 90% 0%, rgba(34,211,238,.22), transparent 30%), linear-gradient(135deg,#ecfeff,#dbeafe,#fff); border-color:#67e8f9; }
.profile-header.dress-home-night,
.dressup-preview-stage.dress-home-night,
.dressup-hero.dress-home-night { background: radial-gradient(circle at 18% 10%, rgba(168,85,247,.26), transparent 34%), linear-gradient(135deg,#111827,#312e81,#4c1d95); border-color:#8b5cf6; color:#fff; }
.profile-header.dress-home-night .muted,
.dressup-preview-stage.dress-home-night .muted,
.dressup-hero.dress-home-night .muted,
.dressup-hero.dress-home-night p { color: rgba(255,255,255,.78); }
.dressup-hero.dress-home-night .btn:not(.primary) { background: rgba(255,255,255,.12); color:#fff; border-color: rgba(255,255,255,.24); }

.post-item.dress-post-warm,
.detail-article.dress-post-warm { background: linear-gradient(135deg,#fff7ed,#fff); border-color:#fdba74; box-shadow: 0 12px 28px rgba(249,115,22,.12); }
.post-item.dress-post-ink,
.detail-article.dress-post-ink { background: linear-gradient(135deg,#f8fafc,#fff); border-color:#cbd5e1; box-shadow: 0 12px 28px rgba(71,85,105,.10); }
.post-item.dress-post-festival,
.detail-article.dress-post-festival { background: radial-gradient(circle at 96% 0%, rgba(248,113,113,.18), transparent 34%), linear-gradient(135deg,#fff1f2,#fff7ed,#fff); border-color:#fca5a5; box-shadow: 0 12px 28px rgba(248,113,113,.14); }
.post-item.dress-effect-starlight,
.detail-article.dress-effect-starlight,
.post-item.dress-effect-neon,
.detail-article.dress-effect-neon { position: relative; overflow: hidden; }
.post-item.dress-effect-starlight:after,
.detail-article.dress-effect-starlight:after { content:""; position:absolute; inset:-40% auto auto -30%; width:42%; height:220%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.88), transparent); transform: rotate(24deg); animation: dressShine 3.6s infinite ease-in-out; pointer-events:none; }
.post-item.dress-effect-neon:before,
.detail-article.dress-effect-neon:before { content:""; position:absolute; inset:0; border-radius: inherit; padding:1px; background: linear-gradient(135deg,#06b6d4,#7c3aed,#ec4899,#06b6d4); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events:none; animation: hueSpin 4s linear infinite; }
@keyframes dressShine { 0% { left:-45%; opacity:0; } 35% { opacity:.8; } 70%,100% { left:118%; opacity:0; } }
@keyframes hueSpin { 0% { filter:hue-rotate(0deg); } 100% { filter:hue-rotate(360deg); } }
.comment.dress-comment-glow { background: radial-gradient(circle at 10% 0%, rgba(253,230,138,.42), transparent 36%), #fffaf0; border-radius: 14px; padding: 13px; border: 1px solid #fde68a; }
.comment.dress-comment-aurora { background: linear-gradient(135deg, rgba(219,234,254,.78), rgba(204,251,241,.72), rgba(245,208,254,.68)); border-radius: 14px; padding: 13px; border: 1px solid #bfdbfe; }

.dressup-page { display: grid; gap: 16px; }
.dressup-hero { display:flex; justify-content:space-between; gap:18px; align-items:center; padding:24px; border:1px solid #fed7aa; border-radius:22px; background: linear-gradient(135deg,#fff7ed,#fff); box-shadow: var(--shadow); overflow:hidden; position:relative; }
.dressup-hero h1 { margin:8px 0; font-size: clamp(26px,4vw,42px); }
.dressup-hero p { margin:0; max-width: 760px; color: var(--muted); }
.dressup-hero-actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; }
.dressup-preview-panel { overflow:hidden; }
.dressup-preview-stage { display:grid; gap:14px; border-radius: 18px; border:1px solid var(--line); background:#fff; }
.dressup-profile-card { display:flex; gap:14px; align-items:center; padding:16px; border-radius:18px; background: rgba(255,255,255,.72); border:1px solid rgba(255,255,255,.55); box-shadow: 0 12px 28px rgba(15,23,42,.08); }
.dressup-profile-card h2 { margin:0 0 6px; }
.dressup-sample-post { margin:0; }
.dressup-sample-comment { border-bottom: 0; }
.dressup-unlock-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.dressup-group .panel-head { align-items:flex-start; }
.dressup-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px; }
.dressup-card { position:relative; overflow:hidden; border:1px solid var(--line); border-radius:16px; padding:14px; background:#fff; transition: transform .18s, box-shadow .18s, border-color .18s; }
.dressup-card:hover { transform: translateY(-2px); box-shadow: 0 18px 32px rgba(15,23,42,.10); border-color:#fdba74; }
.dressup-card.locked { background: linear-gradient(135deg,#fff,#f9fafb); }
.dressup-card.equipped { border-color:#16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.10); }
.dressup-card.trying { border-color:#ea580c; box-shadow: 0 0 0 3px rgba(234,88,12,.12), 0 16px 32px rgba(234,88,12,.12); }
.dressup-card-top { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.dressup-card h3 { margin:0 0 8px; font-size:16px; }
.dressup-card p { color:var(--muted); margin:12px 0; min-height:42px; }
.dressup-swatch { width:58px; height:42px; border-radius:14px; border:1px solid rgba(15,23,42,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.36), 0 10px 22px rgba(15,23,42,.10); flex:0 0 auto; }
.dressup-card-actions { display:flex; gap:8px; flex-wrap:wrap; }

.chat-float-help { border-top:1px solid var(--line); display:grid; gap:8px; }
.conversation-item.room { background: linear-gradient(135deg,#eff6ff,#fff); border-color:#bfdbfe; }
.room-avatar { background: linear-gradient(135deg,#2563eb,#7c3aed); }
.room-message { display:grid; grid-template-columns: minmax(116px, 150px) minmax(0, 1fr); gap:9px; align-items:end; }
.room-message.me { grid-template-columns: minmax(0,1fr) minmax(116px,150px); }
.room-message.me .room-message-user { grid-column: 2; grid-row: 1; }
.room-message.me .bubble { grid-column: 1; grid-row: 1; }
.room-message-user { display:flex; align-items:center; gap:8px; min-width:0; }
.room-message-user > span:last-child { min-width:0; }
.chat-image-link { display:block; margin-top:7px; }
.chat-image { max-width: min(260px, 72vw); max-height: 220px; border-radius:12px; border:1px solid rgba(15,23,42,.10); object-fit:cover; display:block; }
.room-chat-input { align-items:center; }
.chat-file-btn { position:relative; overflow:hidden; flex:0 0 auto; }
.chat-file-btn input { position:absolute; inset:0; opacity:0; cursor:pointer; }

.floating-chat-window { position: fixed; right: 18px; bottom: 18px; width: min(760px, calc(100vw - 28px)); height: min(620px, calc(100vh - 100px)); background:#fff; border:1px solid rgba(15,23,42,.12); border-radius:20px; box-shadow: 0 28px 70px rgba(15,23,42,.28); z-index: 2147483000; overflow:hidden; display:flex; flex-direction:column; }
.floating-chat-head { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 14px; background: radial-gradient(circle at 0 0, rgba(249,115,22,.24), transparent 35%), linear-gradient(135deg,#111827,#7c2d12); color:#fff; }
.floating-chat-head strong { display:block; font-size:16px; }
.floating-chat-head span { display:block; font-size:12px; color:rgba(255,255,255,.78); }
.floating-chat-head .btn { background: rgba(255,255,255,.14); color:#fff; border-color: rgba(255,255,255,.26); }
.floating-chat-head .btn.red { background:#dc2626; border:0; }
.floating-chat-main { flex:1; min-height:0; display:grid; grid-template-columns: 210px minmax(0,1fr); }
.float-chat-tabs { min-height:0; overflow-y:auto; padding:10px; background:#f8fafc; border-right:1px solid var(--line); display:grid; align-content:start; gap:8px; }
.float-chat-tab { width:100%; border:1px solid var(--line); background:#fff; border-radius:14px; padding:9px; display:flex; align-items:center; gap:9px; text-align:left; color:var(--text); }
.float-chat-tab.active { border-color:var(--brand); background:var(--brand-soft); }
.float-chat-tab span:last-child { display:grid; min-width:0; }
.float-chat-tab strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.float-chat-tab small { color:var(--muted); font-size:12px; }
.float-chat-empty { padding:8px; }
.floating-chat-body { min-height:0; padding:12px; display:flex; flex-direction:column; }
.floating-chat-body .message-list { flex:1; min-height:0; }
.floating-message-list { height: auto; max-height: none; }
.floating-chat-minimized { position:fixed; right:18px; bottom:18px; min-width:190px; max-width: calc(100vw - 28px); border:0; border-radius:999px; padding:12px 16px; display:flex; align-items:center; gap:9px; background:linear-gradient(135deg,#111827,#ea580c); color:#fff; box-shadow:0 18px 38px rgba(15,23,42,.32); z-index:2147483000; }
.floating-chat-minimized span { font-size:20px; }
.floating-chat-minimized strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.floating-chat-minimized em { min-width:20px; height:20px; border-radius:999px; background:#dc2626; display:grid; place-items:center; font-style:normal; font-size:12px; margin-left:auto; }

@media (max-width: 980px) {
  .dressup-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dressup-hero { align-items:flex-start; flex-direction:column; }
  .floating-chat-window { right:10px; bottom:10px; width: calc(100vw - 20px); height: min(680px, calc(100vh - 84px)); }
  .floating-chat-main { grid-template-columns: 1fr; }
  .float-chat-tabs { grid-auto-flow: column; grid-auto-columns: minmax(160px, 210px); overflow-x:auto; overflow-y:hidden; border-right:0; border-bottom:1px solid var(--line); }
}
@media (max-width: 640px) {
  .dressup-grid { grid-template-columns: 1fr; }
  .room-message, .room-message.me { grid-template-columns: 1fr; }
  .room-message.me .room-message-user, .room-message.me .bubble { grid-column:auto; grid-row:auto; }
  .room-message.me .room-message-user { justify-content:flex-end; }
  .chat-input { flex-wrap:wrap; }
  .chat-input .form-control { flex: 1 1 100%; }
}

/* 2026-05-08 chat emoji polish */
.chat-input{position:relative;}
.chat-input .emoji-toggle{min-width:42px;padding-left:0;padding-right:0;font-size:18px;line-height:1;}
.emoji-picker{position:absolute;right:96px;bottom:56px;z-index:80;width:232px;max-width:calc(100vw - 32px);padding:10px;display:grid;grid-template-columns:repeat(8,1fr);gap:6px;border:1px solid rgba(148,163,184,.32);border-radius:18px;background:rgba(255,255,255,.98);box-shadow:0 18px 45px rgba(15,23,42,.18);backdrop-filter:blur(14px);}
.emoji-picker[hidden]{display:none!important;}
.emoji-item{width:24px;height:24px;border:0;border-radius:10px;background:transparent;cursor:pointer;font-size:18px;line-height:1;display:flex;align-items:center;justify-content:center;transition:transform .15s ease,background .15s ease;}
.emoji-item:hover{background:#f1f5f9;transform:translateY(-1px) scale(1.08);}
.floating-chat-window .emoji-picker{right:88px;bottom:54px;}
.conversation-item.room{padding-bottom:12px;}

/* 2026-05-08 admin moderation / business photo / per-user dressup fixes */
.admin-wide-modal{width:min(980px,calc(100vw - 28px));max-height:calc(100vh - 42px);overflow:auto;}
.report-row-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:4px;}
.report-detail-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:14px;margin-bottom:14px;}
.report-detail-card{border:1px solid var(--line);border-radius:18px;background:#fff;padding:14px;margin-bottom:14px;box-shadow:0 10px 24px rgba(15,23,42,.04);}
.report-detail-card h3{margin:0 0 10px;font-size:17px;}
.report-meta-list,.sanction-meta-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:10px;}
.report-meta-list div,.sanction-meta-list div{border:1px solid rgba(226,232,240,.9);border-radius:14px;background:#f8fafc;padding:10px;display:grid;gap:4px;}
.report-meta-list strong,.sanction-meta-list strong{font-size:12px;color:#64748b;}
.report-target-box{border:1px dashed rgba(148,163,184,.55);border-radius:16px;background:#f8fafc;padding:12px;}
.recent-activity-list{display:grid;gap:9px;max-height:360px;overflow:auto;padding-right:4px;}
.recent-activity-item{border:1px solid rgba(226,232,240,.9);border-radius:14px;background:#fff;padding:10px;}
.recent-activity-item p{margin:.35em 0 0;color:#334155;}
.report-detail-actions{position:sticky;bottom:0;background:linear-gradient(180deg,rgba(255,255,255,.82),#fff 42%);padding-top:10px;}
.admin-sanction-form .form-note{background:#fff7ed;border-color:#fed7aa;}
.account-sanction-banner{margin:12px 0 0;border:1px solid #fed7aa;border-radius:16px;background:#fff7ed;padding:12px 14px;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;color:#7c2d12;}
.account-sanction-banner strong{color:#9a3412;}
.sanction-notice-modal{max-width:560px;}
.sanction-notice-text{font-size:15px;line-height:1.7;}
.mini-image-row.business-preview-images span.clickable{cursor:pointer;transition:transform .15s ease,box-shadow .15s ease;}
.mini-image-row.business-preview-images span.clickable:hover{transform:translateY(-2px) scale(1.04);box-shadow:0 8px 18px rgba(15,23,42,.18);}
.business-photo-preview-modal{display:grid;gap:12px;}
.business-photo-main{border:1px solid var(--line);border-radius:18px;background:#0f172a;min-height:320px;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.business-photo-main img{max-width:100%;max-height:62vh;object-fit:contain;display:block;}
.business-photo-thumbs{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;}
.business-photo-thumbs .business-photo-thumb{width:72px;height:60px;border:2px solid transparent;border-radius:12px;padding:0;overflow:hidden;background:#f8fafc;flex:0 0 auto;cursor:pointer;}
.business-photo-thumbs .business-photo-thumb.active{border-color:#f97316;}
.business-photo-thumbs .business-photo-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
@media (max-width:760px){.report-detail-grid{grid-template-columns:1fr}.report-meta-list,.sanction-meta-list{grid-template-columns:1fr}.business-photo-main{min-height:220px}}

/* 2026-05-09 广告后台增强 */
.ad-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #111827;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.ad-hero-cta:hover { transform: translateY(-1px); }
.ad-hero-contact { background: rgba(250, 204, 21, .95); }
.admin-ad-create-card textarea,
.ad-inline-edit textarea { min-height: 92px; }
.admin-ad-editor-card .ad-inline-edit {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #f8fafc;
}
.admin-ad-list { margin-top: 14px; }
.admin-preset-ad-list {
  display: grid;
  gap: 10px;
}
.admin-preset-ad-list .mini-image-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.admin-preset-ad-list .mini-image-row img {
  width: 120px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
@media (max-width: 720px) {
  .admin-preset-ad-list .mini-image-row { grid-template-columns: 1fr; }
  .admin-preset-ad-list .mini-image-row img { width: 100%; height: auto; aspect-ratio: 16 / 4.25; }
}


/* 2026-05-09 首页广告图片纯展示：不叠加广告语、按钮或标签；保留右下角可点击轮播圆点 */
.ad-hero.ad-hero-image-only {
  min-height: 0;
  padding: 0;
  display: block;
  grid-template-columns: none;
  gap: 0;
  color: inherit;
  background: #0b1220;
}
.ad-hero.ad-hero-image-only::before { display: none; }
.ad-hero-image-link { display: block; width: 100%; text-decoration: none; line-height: 0; }
.ad-hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: #0b1220;
}
.ad-hero-image-placeholder {
  min-height: 280px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #111827, #f97316);
}
@media (max-width: 720px) {
  .ad-hero.ad-hero-image-only { border-radius: 18px; }
}

/* 2026-05-09 首页广告纯图片模式：保留右下角可点击轮播圆点 */
.ad-hero.ad-hero-image-only .ad-hero-image-dots {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 8;
  pointer-events: auto;
}
.ad-hero.ad-hero-image-only .ad-hero-image-dots .ad-dots {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .52);
  border: 1px solid rgba(255,255,255,.30);
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
}
.ad-hero.ad-hero-image-only .ad-hero-image-dots .ad-dot {
  width: 10px;
  height: 10px;
  opacity: .72;
  background: rgba(255,255,255,.72);
  cursor: pointer;
  transition: width .22s ease, transform .22s ease, background .22s ease, opacity .22s ease;
}
.ad-hero.ad-hero-image-only .ad-hero-image-dots .ad-dot:hover {
  transform: translateY(-1px);
  opacity: 1;
  background: rgba(255,255,255,.88);
}
.ad-hero.ad-hero-image-only .ad-hero-image-dots .ad-dot.active {
  width: 28px;
  opacity: 1;
  background: #fff;
}
@media (max-width: 720px) {
  .ad-hero.ad-hero-image-only .ad-hero-image-dots {
    right: 12px;
    bottom: 10px;
  }
  .ad-hero.ad-hero-image-only .ad-hero-image-dots .ad-dots {
    padding: 7px 9px;
    gap: 6px;
  }
  .ad-hero.ad-hero-image-only .ad-hero-image-dots .ad-dot {
    width: 8px;
    height: 8px;
  }
  .ad-hero.ad-hero-image-only .ad-hero-image-dots .ad-dot:hover {
  transform: translateY(-1px);
  opacity: 1;
  background: rgba(255,255,255,.88);
}
.ad-hero.ad-hero-image-only .ad-hero-image-dots .ad-dot.active {
    width: 22px;
  }
}
