:root {
  --gold: #c9a96e;
  --gold-2: #b8944f;
  --gold-deep: #8a6d3b;
  --ink: #1d1b19;
  --text-sub: #5c554d;
  --line: #e8dfd0;
  --card-bg: #faf7f1;
  --page-bg: #f5f3f0;
  --nav-bg: rgba(250, 247, 241, 0.96);
  --card-border: rgba(201, 169, 110, 0.22);
  --card-shadow: 0 8px 24px rgba(26, 22, 18, 0.06);
  --gradient: linear-gradient(135deg, #d4b87a 0%, #c9a96e 45%, #a88a4e 100%);
  --radius: 16px;
  --pink: #e89ab0;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
  color: var(--ink);
}
body { padding-bottom: calc(64px + var(--safe-bottom)); }

#app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(900px 380px at 85% -8%, rgba(217, 189, 136, 0.28), transparent 55%),
    var(--page-bg);
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px 10px;
  background: rgba(245, 243, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}
.brand {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold-2);
  font-weight: 700;
}
.page-title {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.points-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(201, 169, 110, 0.25);
}

.view { display: none; padding: 10px 12px 28px; }
.view.active { display: block; }

.search-wrap {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 8px;
  margin-bottom: 4px;
}
.search-wrap input,
.search-wrap select,
.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
}

.filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0 10px;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 13px;
  letter-spacing: 0.2px;
  background: var(--card-bg);
  color: var(--text-sub);
  border: 1px solid transparent;
  cursor: pointer;
}
.filter-tab.active {
  background: rgba(201, 169, 110, 0.18);
  border-color: rgba(201, 169, 110, 0.45);
  color: var(--gold-deep);
  font-weight: 700;
}

.mcard-list { display: grid; gap: 12px; }

.mcard {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
}
.mcard-btn {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: inherit;
}
.mcard-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 70% 18%, rgba(217, 189, 136, 0.22), transparent 55%),
    linear-gradient(158deg, #3a2c1e 0%, #241a12 55%, #171009 100%);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  color: #fff;
}
.mcard-cover-name {
  font-size: 22px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.mcard-scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}
.mcard-body {
  padding: 10px 11px 12px;
  background: #faf7f1;
}
.mcard-prow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.mcard-name {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.mcard-price {
  color: #8a6d3b;
  font-weight: 700;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.mcard-meta {
  margin: 6px 0 0;
  color: var(--text-sub);
  font-size: 12px;
}
.mcard-intro {
  margin: 6px 0 0;
  color: #6b645c;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mcard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.mcard-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(201, 169, 110, 0.14);
  color: var(--gold-deep);
  font-weight: 600;
}

.back-btn {
  border: 0;
  background: transparent;
  color: var(--gold-deep);
  font-weight: 700;
  padding: 0 0 10px;
  font-size: 14px;
}

.detail-hero {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  margin-bottom: 12px;
}
.detail-hero .mcard-cover { aspect-ratio: 16 / 9; }
.detail-hero .mcard-body h2 {
  margin: 0 0 6px;
  font-size: 22px;
}
.detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--card-shadow);
}
.info-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.info-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-stack { display: grid; gap: 10px; }
.field { display: grid; gap: 6px; }
.field label {
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 700;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 2px 8px rgba(201, 169, 110, 0.25);
}
.btn-primary:active { box-shadow: 0 1px 4px rgba(201, 169, 110, 0.35); }
.btn-default {
  background: #fff;
  color: var(--gold-deep);
  border: 1px solid rgba(201, 169, 110, 0.4);
}
.btn-light {
  background: #fff;
  color: var(--gold-deep);
  box-shadow: none;
}
.detail-book-btn { width: 100%; margin-top: 4px; }

.review-stack { display: grid; gap: 8px; margin-bottom: 10px; }
.review-item {
  padding: 10px;
  border-radius: 12px;
  background: #f3efe7;
  border: 1px solid var(--line);
}
.review-item strong { color: var(--gold-deep); }

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.seg-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px;
  color: var(--text-sub);
  font-weight: 700;
}
.seg-item.active {
  background: rgba(201, 169, 110, 0.18);
  border-color: rgba(201, 169, 110, 0.5);
  color: var(--gold-deep);
}

.coupon-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--pink);
  border-top: 1px solid var(--card-border);
  border-right: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.coupon-card .left h3 { margin: 0 0 4px; font-size: 15px; }
.coupon-card .amt {
  color: var(--gold-deep);
  font-size: 22px;
  font-weight: 800;
}

.map-box {
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  margin-bottom: 12px;
  box-shadow: var(--card-shadow);
}

.me-banner {
  text-align: center;
  background: linear-gradient(160deg, #dfc28a, #b8904f 55%, #9a7540);
  color: #fff;
  border-radius: 20px;
  padding: 22px 16px;
  margin-bottom: 12px;
  box-shadow: 0 12px 28px rgba(168, 132, 69, 0.28);
}
.me-name { font-size: 18px; font-weight: 800; }
.me-sub { margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, 0.86); }
.me-score {
  margin: 10px 0 0;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.me-banner .btn-light { margin-top: 12px; }

.feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.feature-cards button {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  border-radius: 14px;
  padding: 14px 10px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--card-shadow);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 100%);
  display: flex;
  justify-content: space-around;
  background: var(--nav-bg);
  border-top: 1px solid var(--card-border);
  padding: 4px 0;
  padding-bottom: max(4px, var(--safe-bottom));
  z-index: 100;
  backdrop-filter: blur(12px);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: var(--text-sub);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  min-width: 56px;
}
.nav-item.active { color: var(--gold-deep); }
.nav-ico { font-size: 16px; line-height: 1.1; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(78px + var(--safe-bottom));
  transform: translateX(-50%);
  background: #1d1b19;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 120;
  max-width: 90vw;
}
.muted { color: var(--text-sub); font-size: 12px; }
.status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
}
.empty {
  padding: 36px 12px;
  text-align: center;
  color: var(--text-sub);
  font-size: 14px;
}
.section-label {
  margin: 4px 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

/* 短视频标签（合并 /sv/） */
.view-video{padding:0!important;margin:0}
.sv-frame{display:block;width:100%;height:calc(100vh - 64px - env(safe-area-inset-bottom));border:0;background:#000}
body.in-video .top-bar{display:none}
body.in-video #main{padding:0}
body.in-video .bottom-nav{background:#0b0b0b;border-top-color:#222}
body.in-video .bottom-nav .nav-item{color:#888}
body.in-video .bottom-nav .nav-item.active{color:#fff}

