:root {
  --brand: #e63946;
  --brand-soft: #ff7a85;
  --gold: #ff8c42;
  --cream: #fff8f4;
  --ink: #2b2b2b;
  --muted: #8a8a8a;
  --line: #f0e2dc;
  --card-bg: #ffffff;
  --shadow: 0 6px 22px rgba(230, 57, 70, 0.10);
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, #ffe9e3 0, transparent 38%),
    radial-gradient(circle at 88% 4%, #fff0d9 0, transparent 32%),
    var(--cream);
  line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }

/* ===== Top bar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--brand);
}
.brand .logo { font-size: 24px; }
.topbar nav a {
  margin-left: 18px;
  color: var(--ink);
  font-size: 14px;
  opacity: 0.8;
}
.topbar nav a:hover { color: var(--brand); opacity: 1; }

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 48px 20px 30px;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: 38px;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* ===== Filters ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 6px 20px 22px;
}
.filters input, .filters select {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.filters input:focus, .filters select:focus { border-color: var(--brand-soft); }

/* ===== Grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ===== Card ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(230,57,70,.16); }
.card .head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 12px;
}
.avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 26px;
  background: linear-gradient(135deg, #ffe3df, #fff0d9);
  flex-shrink: 0;
}
.card .name { font-weight: 700; font-size: 18px; }
.card .meta { color: var(--muted); font-size: 13px; }
.badge-verified {
  display: inline-block;
  font-size: 11px;
  color: #fff;
  background: #2a9d8f;
  border-radius: 6px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.badge-member {
  display: inline-block;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(90deg, #ff8c42, #ffb347);
  border-radius: 6px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 600;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 8px; }
.tag {
  font-size: 12px;
  color: var(--brand);
  background: #fff0ee;
  border: 1px solid #ffd9d4;
  border-radius: 999px;
  padding: 2px 9px;
}
.card .intro {
  padding: 0 18px 14px;
  color: #555;
  font-size: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card .foot .date { color: var(--muted); font-size: 12px; }
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.btn:hover { opacity: .92; }

.empty { text-align: center; color: var(--muted); padding: 40px; grid-column: 1/-1; }

/* ===== Detail page ===== */
.detail {
  max-width: 760px;
  margin: 24px auto 60px;
  padding: 0 20px;
}
.back { color: var(--muted); font-size: 14px; }
.detail .panel {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-top: 14px;
}
.detail .d-head { display: flex; align-items: center; gap: 16px; }
.detail .d-name { font-size: 26px; font-weight: 800; }
.detail .d-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px 12px;
  margin-top: 18px;
  font-size: 15px;
}
.detail .d-row .k { color: var(--muted); }
.detail h3 { margin: 24px 0 8px; font-size: 16px; color: var(--brand); }
.contact-box {
  margin-top: 18px;
  background: #fff7f2;
  border: 1px dashed var(--brand-soft);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
}
.section-title {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 18px;
  color: var(--ink);
}

/* ===== Contact bar ===== */
.contact-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 28px;
  max-width: 760px;
  margin: 0 auto 18px;
  padding: 14px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  font-size: 15px;
}
.contact-bar a { color: var(--brand); font-weight: 600; }
.qr-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.qr-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.qr-inline small {
  color: var(--muted);
  font-size: 12px;
}
.contact-item.qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.wechat-qr {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.contact-item small {
  color: var(--muted);
  font-size: 12px;
}

/* ===== Photo badge / detail image ===== */
.photo-badge {
  font-size: 11px;
  color: #fff;
  background: var(--gold);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 4px;
}
.photo-box {
  margin: 6px 0 18px;
  text-align: center;
}
.post-photo {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

/* ===== Submit form ===== */
.submit-wrap { max-width: 760px; margin: 24px auto 60px; padding: 0 20px; }
.submit-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.submit-card h2 { margin: 0 0 6px; font-size: 22px; color: var(--ink); }
.submit-card .hint { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 14px; font-weight: 600; color: #444; }
.form-group label .req { color: var(--brand); margin-left: 2px; }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--brand-soft); }
.form-group textarea { resize: vertical; min-height: 88px; }
.radio-row { display: flex; gap: 18px; align-items: center; padding: 6px 0; }
.radio-row label { font-weight: 400; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.submit-btn {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 6px;
  padding: 12px 40px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.submit-btn:hover { opacity: .92; }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.form-msg { grid-column: 1 / -1; text-align: center; font-size: 14px; min-height: 20px; }
.form-msg.ok { color: #2a9d8f; }
.form-msg.err { color: var(--brand); }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 30px 20px 50px;
  border-top: 1px solid var(--line);
  margin-top: 30px;
}

@media (max-width: 520px) {
  .hero h1 { font-size: 30px; }
  .detail .d-row { grid-template-columns: 72px 1fr; }
}

/* ===== Service & Fee section ===== */
.service-fee {
  max-width: 760px;
  margin: 4px auto 6px;
  padding: 26px 22px 4px;
}
.sf-head { text-align: center; margin-bottom: 18px; }
.sf-kicker {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--gold);
  font-weight: 600;
}
.sf-head h2 {
  margin: 6px 0 8px;
  font-size: 24px;
  color: var(--brand);
}
.sf-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.sf-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sf-item {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color .15s ease;
}
.sf-item[open] { border-color: var(--brand-soft); }
.sf-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  user-select: none;
}
.sf-item summary::-webkit-details-marker { display: none; }
.sf-name {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  white-space: nowrap;
}
.sf-price {
  font-weight: 700;
  font-size: 17px;
  color: var(--brand);
  white-space: nowrap;
}
.sf-tag {
  color: var(--muted);
  font-size: 13px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sf-arrow {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  position: relative;
}
.sf-arrow::before, .sf-arrow::after {
  content: "";
  position: absolute;
  background: var(--brand);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.sf-arrow::before {
  top: 10px; left: 4px;
  width: 14px; height: 2px;
}
.sf-arrow::after {
  top: 4px; left: 10px;
  width: 2px; height: 14px;
}
.sf-item[open] .sf-arrow::after { transform: rotate(90deg); opacity: 0; }
.sf-detail {
  margin: 0;
  padding: 0 18px 16px 18px;
  list-style: none;
}
.sf-detail li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 14px;
  color: #555;
  border-top: 1px dashed var(--line);
}
.sf-detail li:first-child { border-top: 0; }
.sf-detail li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--gold);
  font-weight: 700;
}
.sf-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 16px 0 0;
}
.sf-note a { font-weight: 600; }

/* ===== 联系我们按钮 + 媒体矩阵弹窗 ===== */
.contact-bar { flex-wrap: wrap; }
.contact-btn {
  display: inline-block;
  margin: 14px auto 0;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--brand), #e0573f);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(230,57,70,.28);
  user-select: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.contact-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(230,57,70,.36); }

.modal-toggle { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.modal-toggle:checked ~ .modal { display: block; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18,28,42,.55);
  cursor: pointer;
}
.modal-box {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 7vh auto 0;
  background: #fff;
  border-radius: 18px;
  padding: 24px 22px 26px;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
  max-height: 86vh;
  overflow-y: auto;
  animation: mm-pop .2s ease;
}
@keyframes mm-pop { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 32px; height: 32px;
  line-height: 30px;
  text-align: center;
  font-size: 24px;
  color: #888;
  border-radius: 50%;
  cursor: pointer;
}
.modal-close:hover { background: #f0f0f0; color: #333; }
.mm-head { text-align: center; margin-bottom: 16px; }
.mm-kicker { font-size: 12px; letter-spacing: .12em; color: var(--gold); font-weight: 600; }
.mm-head h2 { margin: 6px 0 6px; font-size: 24px; color: var(--brand); }
.mm-sub { margin: 0; color: var(--muted); font-size: 13px; }

.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.pc-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pc-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(230,57,70,.14); }
.pc-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
  background: #f7f7f7;
}
.pc-meta { margin-top: 10px; }
.pc-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.pc-id { font-size: 12px; color: var(--muted); margin-top: 2px; word-break: break-all; }

/* ===== New 300 yuan member service ===== */
.sf-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff0ee 0%, #fff8f4 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
}
.sf-price-box {
  flex: 1 1 240px;
  text-align: center;
}
.sf-price-main {
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  letter-spacing: -2px;
}
.sf-price-main .sf-unit {
  font-size: 32px;
  margin-left: 4px;
}
.sf-price-sub {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 10px 0 14px;
}
.sf-price-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.sf-price-tags span {
  font-size: 12px;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.sf-poster {
  flex: 1 1 220px;
  max-width: 280px;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(192,57,70,.18);
}
.sf-section-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  margin: 26px 0 16px;
}
.sf-advantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}
.sf-adv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px;
  text-align: center;
}
.sf-adv-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}
.sf-adv-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--ink);
}
.sf-adv-card p {
  margin: 0;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}
.sf-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.sf-step {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  align-items: flex-start;
}
.sf-step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
}
.sf-step-body h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--ink);
}
.sf-step-body p {
  margin: 0;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}
.sf-poster-wide {
  text-align: center;
  margin: 18px 0 10px;
}
.sf-poster-wide img {
  max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(192,57,70,.16);
}
.sf-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 10px;
}
.sf-trust-item {
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
}
.sf-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--brand) 0%, #c62f3d 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 20px;
}
.sf-cta-line {
  margin: 0 0 8px;
  font-size: 16px;
}
.sf-cta-line strong { font-size: 28px; margin: 0 4px; }
.sf-cta-tel {
  margin: 0 0 10px;
  font-size: 15px;
}
.sf-cta-tel a { color: #fff; font-weight: 700; text-decoration: underline; }
.sf-cta .sf-note {
  color: rgba(255,255,255,.85);
  margin: 0;
  font-size: 12px;
}
.sf-cta .sf-note a { color: #fff; }

@media (max-width: 520px) {
  .service-fee { padding: 22px 16px 4px; }
  .sf-name, .sf-price { font-size: 15px; }
  .sf-tag { display: none; }
  .sf-hero { padding: 18px 14px; }
  .sf-price-main { font-size: 56px; }
  .sf-price-sub { font-size: 17px; }
  .sf-advantages { grid-template-columns: 1fr; }
  .sf-steps { grid-template-columns: 1fr; }
  .sf-cta-line strong { font-size: 24px; }
  .modal-box { margin: 5vh 12px 0; padding: 20px 16px 22px; }
  .mm-head h2 { font-size: 22px; }
  .pc-grid { gap: 12px; }
}
