* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --pink: #ec5f8a;
  --pink-dark: #d64a76;
  --pink-light: #fdeef3;
  --pink-soft: #fff5f8;
  --text: #333;
  --muted: #999;
  --line: #f0dfe6;
  --gold: #f5a623;
  --green: #2e9e6b;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--pink-soft);
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
}
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }
img { display: block; }
.hidden { display: none !important; }

/* ---------- 开始页（密码门） ---------- */
.lock-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, #fff 0%, var(--pink-light) 100%);
}
.lock-wrap h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--pink-dark);
  margin-bottom: 16px;
  user-select: none;
}
.lock-sub { font-size: 14px; color: #666; line-height: 1.9; text-align: center; }
.lock-form { width: 100%; max-width: 320px; margin-top: 28px; }
.lock-form input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #fff;
}
.lock-form input:focus { border-color: var(--pink); }
.lock-form button {
  width: 100%;
  margin-top: 14px;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: var(--pink);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.lock-form button:active { background: var(--pink-dark); }
.lock-error { color: #e5484d; font-size: 13px; margin-top: 10px; min-height: 18px; text-align: center; }

/* ---------- 顶部栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px 0;
}
.topbar h2 { font-size: 18px; color: var(--pink-dark); margin-bottom: 10px; }
.sort-row { display: flex; gap: 8px; padding-bottom: 10px; }
.sort-btn {
  flex: 1;
  padding: 8px 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: #666;
  font-size: 14px;
}
.sort-btn.active { background: var(--pink); border-color: var(--pink); color: #fff; }
.filter-row { display: flex; gap: 8px; padding-bottom: 12px; }
.filter-row select {
  flex: 1;
  height: 38px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
}

/* ---------- 列表 ---------- */
.page { padding: 12px 12px 90px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(236, 95, 138, .12);
  cursor: pointer;
}
.card-cover { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--pink-light); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
}
.card-body { padding: 10px; }
.card-name-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.card-name { font-size: 15px; font-weight: 600; }
.status { font-size: 11px; padding: 2px 7px; border-radius: 9px; white-space: nowrap; }
.status.available { background: #e6f6ee; color: var(--green); }
.status.booked { background: #fdecec; color: #d64545; }
.card-rating { font-size: 12px; color: var(--gold); margin-top: 6px; }
.card-rating b { color: var(--gold); }
.card-platform { font-size: 12px; color: var(--muted); margin-top: 4px; }
.card-area { font-size: 12px; color: #666; margin-top: 4px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tag-pill {
  font-size: 11px;
  background: var(--pink-light);
  color: var(--pink-dark);
  padding: 3px 8px;
  border-radius: 10px;
}
.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }
.load-more {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--pink);
  border-radius: 10px;
  background: #fff;
  color: var(--pink-dark);
  font-size: 15px;
}

/* ---------- 搜索 ---------- */
.search-box { display: flex; gap: 8px; padding: 12px 16px 0; }
.search-box input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #fff;
  min-width: 0;
}
.search-box input:focus { border-color: var(--pink); }
.search-box button {
  padding: 0 18px;
  border: none;
  border-radius: 10px;
  background: var(--pink);
  color: #fff;
  font-size: 15px;
}

/* ---------- 详情页 ---------- */
.detail { background: #fff; min-height: 100vh; padding-bottom: 40px; }
.detail-cover { width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: var(--pink-light); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.detail-back {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--line);
}
.detail-back button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--pink-dark);
}
.detail-body { padding: 16px; }
.detail-name-row { display: flex; justify-content: space-between; align-items: center; }
.detail-body h2 { font-size: 20px; }
.detail-rating { color: var(--gold); font-size: 14px; margin-top: 8px; }
.info-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14px; }
.info-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 400;
  width: 64px;
  padding: 8px 8px 8px 0;
  vertical-align: top;
}
.info-table td { padding: 8px 0; line-height: 1.6; }
.intro-title { font-size: 16px; font-weight: 600; margin: 20px 0 10px; color: var(--pink-dark); }
.intro { font-size: 15px; line-height: 1.9; color: #444; }
.intro p { margin-bottom: 10px; }
.intro img { width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }

/* ---------- 联系我们 ---------- */
.contact-page { padding: 16px 16px 90px; }
.contact-page h2 { font-size: 18px; color: var(--pink-dark); margin-bottom: 14px; }
.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 6px rgba(236, 95, 138, .08);
}
.contact-row .label { font-size: 14px; color: var(--muted); }
.contact-row .value { font-size: 16px; font-weight: 600; margin-top: 4px; word-break: break-all; }
.copy-btn {
  border: 1px solid var(--pink);
  background: #fff;
  color: var(--pink-dark);
  border-radius: 16px;
  padding: 7px 14px;
  font-size: 13px;
  white-space: nowrap;
  margin-left: 12px;
}
.copy-btn.copied { background: var(--pink); color: #fff; border-color: var(--pink); }

/* ---------- 底部导航 ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: 30;
}
.bottom-nav button {
  flex: 1;
  padding: 11px 0 13px;
  border: none;
  background: #fff;
  color: #888;
  font-size: 13px;
}
.bottom-nav button.active { color: var(--pink-dark); font-weight: 700; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  width: 100%;
  max-width: 360px;
}
.modal h3 { font-size: 18px; margin-bottom: 14px; color: var(--pink-dark); }
.modal input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  margin-bottom: 10px;
}
.modal input:focus { border-color: var(--pink); }
.modal .modal-btns { display: flex; gap: 10px; margin-top: 6px; }
.modal .modal-btns button {
  flex: 1;
  padding: 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
}
.modal .modal-btns button.primary { background: var(--pink); border-color: var(--pink); color: #fff; }
.modal-error { color: #e5484d; font-size: 13px; min-height: 18px; margin-top: 4px; }

/* ---------- 后台 ---------- */
.admin-page { padding: 16px 16px 90px; }
.admin-page h2 { font-size: 18px; color: var(--pink-dark); margin-bottom: 12px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.admin-tabs button {
  flex: 1;
  padding: 9px 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  font-size: 14px;
  color: #666;
}
.admin-tabs button.active { background: var(--pink); border-color: var(--pink); color: #fff; }
.admin-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 6px rgba(236, 95, 138, .08);
}
.admin-card .row-title { font-size: 15px; font-weight: 600; }
.admin-card .row-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.admin-card .row-btns { display: flex; gap: 8px; margin-top: 10px; }
.btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
}
.btn.primary { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn.danger { color: #d64545; border-color: #f3c1c1; }
.btn.small { padding: 6px 10px; font-size: 13px; }
.admin-form label { display: block; font-size: 13px; color: #666; margin: 12px 0 5px; }
.admin-form input, .admin-form select, .admin-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: #fff;
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: var(--pink); }
.admin-form .form-row { display: flex; gap: 10px; }
.admin-form .form-row > div { flex: 1; min-width: 0; }
.editor {
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
  background: #fff;
  font-size: 15px;
  line-height: 1.8;
}
.editor:focus { border-color: var(--pink); }
.editor img { max-width: 100%; height: auto; border-radius: 6px; margin: 6px 0; }
.cover-preview { width: 120px; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center; border-radius: 8px; margin-top: 8px; }
.admin-msg { font-size: 13px; color: var(--green); min-height: 18px; margin-top: 8px; }
.admin-msg.err { color: #e5484d; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.admin-top h2 { margin-bottom: 0; }
