:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --ink: #17213a;
  --muted: #6b7691;
  --line: #e5e9f2;
  --primary: #2f6bff;
  --primary-dark: #2054d8;
  --accent: #ff7a45;
  --accent-soft: #fff1e9;
  --blue-soft: #eef4ff;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(36, 56, 105, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 70px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #7b61ff);
  color: white; font-weight: 800; font-size: 20px;
  box-shadow: 0 8px 18px rgba(47,107,255,0.28);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 19px; letter-spacing: .5px; }
.brand-text small { font-size: 11px; color: var(--muted); margin-top: 3px; }
.main-nav { display: flex; gap: 4px; flex: 1; }
.nav-link {
  border: 0; background: transparent; color: var(--muted);
  padding: 9px 12px; border-radius: 10px; font-size: 14px;
}
.nav-link:hover, .nav-link.active { background: var(--blue-soft); color: var(--primary); }
.header-actions { display: flex; gap: 8px; align-items: center; }

.btn {
  border: 1px solid transparent; border-radius: 10px;
  padding: 9px 15px; font-size: 14px; font-weight: 600;
  transition: all .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--primary); }
.btn-light { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.btn-lg { padding: 13px 24px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-wechat { background: #eefaf2; color: #1aad5b; border-color: #d7f3e3; }
.btn-wechat:hover { background: #e1f6ea; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(255,122,69,.18), transparent 28%),
    radial-gradient(circle at 15% 80%, rgba(47,107,255,.20), transparent 32%),
    linear-gradient(135deg, #f8fbff, #eef3ff);
  padding: 72px 0 64px;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.eyebrow { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: 2px; }
.hero h1 { font-size: 48px; line-height: 1.18; margin: 12px 0 18px; letter-spacing: -1px; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero-copy > p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; margin-top: 20px; }
.hero-meta b { color: var(--accent); font-size: 17px; }
.hero-panel { background: #fff; border-radius: 24px; padding: 26px; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.8); }
.panel-title { font-weight: 800; font-size: 17px; margin-bottom: 18px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quick-card {
  border: 1px solid var(--line); background: #fbfcff; border-radius: 14px;
  padding: 16px 10px; text-align: center; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: all .18s ease;
}
.quick-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 12px 24px rgba(47,107,255,.12); }
.quick-card strong { font-size: 14px; }
.quick-card small { color: var(--muted); font-size: 11px; }
.quick-icon {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--primary); font-weight: 800; margin-bottom: 4px;
}
.panel-note { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 12px; text-align: center; }

.section { padding: 66px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.section-head h2 { font-size: 30px; margin: 0 0 6px; }
.section-head p { color: var(--muted); margin: 0; }
.search-box { display: flex; gap: 8px; }
.search-box input { width: 280px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none; }
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,107,255,.10); }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 15px; color: var(--muted); font-size: 13px; }
.filter-chip:hover, .filter-chip.active { border-color: var(--primary); background: var(--primary); color: #fff; }

.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.listing-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; min-height: 210px; display: flex; flex-direction: column;
  transition: all .18s ease; cursor: pointer;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(47,107,255,.35); }
.listing-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cat-tag { font-size: 12px; font-weight: 700; color: var(--primary); background: var(--blue-soft); border-radius: 999px; padding: 3px 10px; }
.price { color: var(--accent); font-weight: 800; font-size: 14px; }
.listing-title { font-size: 18px; font-weight: 800; margin: 14px 0 8px; line-height: 1.4; }
.listing-summary { color: var(--muted); font-size: 13px; flex: 1; }
.listing-thumb { width: 100%; height: 130px; object-fit: cover; border-radius: 10px; margin-top: 12px; background: var(--bg); }
.listing-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.empty-state { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card { background: var(--bg); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.feature-card span { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.feature-card h3 { margin: 10px 0 8px; font-size: 17px; }
.feature-card p { color: var(--muted); font-size: 13px; margin: 0; }

.site-footer { background: #101a33; color: #cbd4e8; padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-inner strong { display: block; color: #fff; font-size: 16px; }
.footer-inner span { font-size: 12px; }
.footer-note { font-size: 12px; opacity: .7; }

.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12,20,40,.55); backdrop-filter: blur(3px); }
.modal-card { position: relative; background: #fff; border-radius: 20px; width: min(480px, 100%); max-height: calc(100vh - 40px); overflow: auto; box-shadow: 0 30px 80px rgba(10,20,45,.28); }
.modal-wide { width: min(720px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 18px; }
.icon-btn { border: 0; background: transparent; font-size: 26px; color: var(--muted); line-height: 1; }
.modal-body { padding: 22px 24px 24px; }
.modal-hint { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.modal-hint.small { font-size: 12px; text-align: center; margin: 10px 0 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field-full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  background: #fff; color: var(--ink); outline: none; width: 100%; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,107,255,.10); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.image-preview { max-width: 180px; max-height: 140px; object-fit: cover; border-radius: 10px; margin-top: 8px; }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.phone-login { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 13px; color: var(--muted); }
.text-input { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--ink); outline: none; width: 100%; font-size: 14px; }
.text-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,107,255,.10); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-row .btn { white-space: nowrap; }
.login-divider { text-align: center; margin: 18px 0 14px; border-top: 1px solid var(--line); position: relative; }
.login-divider span { position: relative; top: -11px; background: #fff; padding: 0 10px; color: var(--muted); font-size: 12px; }
.field-error, .auth-error { color: #d94b4b; font-size: 12px; min-height: 18px; margin: 0; }
.divider { text-align: center; margin: 20px 0 14px; border-top: 1px solid var(--line); position: relative; }
.divider span { position: relative; top: -12px; background: #fff; padding: 0 10px; color: var(--muted); font-size: 12px; }
.detail-image { width: 100%; border-radius: 12px; margin-bottom: 16px; }
.detail-meta { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; font-size: 14px; margin-bottom: 16px; }
.detail-meta dt { color: var(--muted); }
.detail-meta dd { margin: 0; }
.detail-content { white-space: pre-wrap; border-top: 1px dashed var(--line); padding-top: 14px; color: var(--ink); }
.detail-contact { margin-top: 16px; padding: 14px; background: var(--accent-soft); border-radius: 12px; font-weight: 700; color: #b84f21; }
.delete-btn { margin-top: 16px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.detail-actions .btn { margin-top: 0; }
.report-btn { color: #c43d3d; }

.listing-card.is-featured { border-color: #c9b6ff; box-shadow: 0 10px 30px rgba(109,75,214,.12); }

.admin-section { background: #f5f7ff; border-top: 1px solid var(--line); }
.admin-head-actions { display: flex; gap: 10px; }
.admin-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.admin-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.admin-stat b { display: block; font-size: 24px; color: var(--ink); }
.admin-stat span { font-size: 12px; color: var(--muted); }
.admin-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.admin-tab { border: 0; background: transparent; padding: 10px 18px; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-tab:hover { color: var(--ink); }
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: #ffe8e8; color: #c43d3d; font-size: 11px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-toolbar .filter-row { margin-bottom: 0; }
.admin-list { display: flex; flex-direction: column; gap: 12px; }
.admin-row { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: 0 8px 24px rgba(20,30,60,.04); }
.admin-row-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.admin-row-title { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.admin-row-meta { font-size: 12px; color: var(--muted); line-height: 1.7; }
.admin-row-content { margin: 12px 0; font-size: 13px; color: var(--ink); line-height: 1.7; white-space: pre-wrap; }
.admin-row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.admin-row-actions .btn { padding: 7px 12px; font-size: 12px; }
.status-badge, .featured-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 800; margin-right: 6px; }
.status-pending { background: #fff3d6; color: #9a6a00; }
.status-published { background: #e6f8ed; color: #168a4a; }
.status-rejected { background: #ffe8e8; color: #c43d3d; }
.status-offlined { background: #eceff5; color: #687287; }
.status-resolved { background: #e6f8ed; color: #168a4a; }
.status-dismissed { background: #eceff5; color: #687287; }
.featured-badge { background: #eee8ff; color: #6d4bd6; }
.review-note { margin-top: 8px; font-size: 12px; color: #b84f21; }
.report-row { background: #fff; border: 1px solid var(--line); border-left: 3px solid #e08a8a; border-radius: 14px; padding: 16px 18px; box-shadow: 0 8px 24px rgba(20,30,60,.04); }

.wechat-guide { margin-top: 14px; padding: 14px 16px; border: 1px solid #f0d7a8; border-radius: 12px; background: #fff9ec; color: #7a5410; }
.wechat-guide strong { display: block; margin-bottom: 6px; font-size: 14px; }
.wechat-guide p { margin: 0 0 10px; font-size: 13px; line-height: 1.7; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #17213a; color: #fff; padding: 11px 20px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 80; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 24px); }
  .header-inner { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 12px; }
  .header-actions { width: 100%; }
  .header-actions .btn { flex: 1; }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 32px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: stretch; }
  .search-box input { width: 100%; }
  .listing-grid, .feature-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-head-actions { width: 100%; }
  .admin-row-main { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
