/* 喵喵宠物店 · 内置价格表 */
.pricebook-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 2px solid var(--ink, #493c58);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff1f6, #e6f8ff);
  color: var(--ink, #493c58);
  font: 900 11px/1.1 "Microsoft YaHei", "PingFang SC", sans-serif;
  white-space: nowrap;
  box-shadow: 0 4px 0 rgba(73, 60, 88, .13);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pricebook-pill:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 6px 0 rgba(73, 60, 88, .13); }
.pricebook-pill:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(73, 60, 88, .13); }
.pricebook-pill .pricebook-pill-icon { font-size: 15px; line-height: 1; }

.pricebook-modal {
  position: fixed;
  inset: 0;
  z-index: 760;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(62, 43, 68, .62);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.pricebook-modal[hidden] { display: none; }
.pricebook-modal.show { opacity: 1; visibility: visible; }
body.pricebook-open { overflow: hidden; }

.pricebook-dialog {
  min-width: 0;
  max-width: 100%;
  --price-ink: #493c58;
  --price-muted: #806f89;
  --price-paper: #fffaf3;
  --price-line: rgba(73, 60, 88, .18);
  width: min(1120px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 20px;
  border: 4px solid var(--price-ink);
  border-radius: 30px;
  background:
    radial-gradient(circle at 7% 5%, rgba(255, 216, 116, .22) 0 62px, transparent 63px),
    radial-gradient(circle at 95% 3%, rgba(135, 217, 255, .20) 0 86px, transparent 87px),
    linear-gradient(160deg, #fffdf8, #fff7e8 56%, #fff2f6);
  box-shadow: 0 14px 0 rgba(73, 60, 88, .20), 0 34px 90px rgba(33, 19, 42, .42);
  transform: translateY(18px) scale(.975);
  transition: transform .22s ease;
  overscroll-behavior: contain;
  scrollbar-color: #d4bfe7 #fff8ee;
}
.pricebook-modal.show .pricebook-dialog { transform: none; }

.pricebook-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 0 14px;
}
.pricebook-head-copy { min-width: 0; }
.pricebook-kicker {
  margin: 0 0 4px;
  color: #a05a75;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}
.pricebook-head h2 {
  margin: 0;
  color: var(--price-ink);
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.12;
}
.pricebook-head p.pricebook-subtitle {
  margin: 7px 0 0;
  color: var(--price-muted);
  font-size: 12px;
  line-height: 1.55;
}
.pricebook-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 3px solid var(--price-ink);
  border-radius: 50%;
  background: #ffd2dc;
  color: var(--price-ink);
  font: 900 24px/1 "Microsoft YaHei", sans-serif;
  box-shadow: 0 5px 0 rgba(73, 60, 88, .15);
  cursor: pointer;
}
.pricebook-close:hover { transform: rotate(5deg) scale(1.04); }

.pricebook-tabs {
  position: sticky;
  top: -1px;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 -2px 2px;
  padding: 10px 2px 12px;
  background: linear-gradient(180deg, rgba(255, 253, 248, .99) 58%, rgba(255, 253, 248, .78) 82%, transparent);
}
.pricebook-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  border: 3px solid var(--price-ink);
  border-radius: 17px;
  background: #fff;
  color: var(--price-ink);
  font: 900 14px/1.2 "Microsoft YaHei", "PingFang SC", sans-serif;
  box-shadow: 0 5px 0 rgba(73, 60, 88, .14);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.pricebook-tab span { font-size: 19px; line-height: 1; }
.pricebook-tab[data-price-tab="valorant"][aria-selected="true"] { background: linear-gradient(135deg, #ffdce9, #efe7ff); transform: translateY(-2px); }
.pricebook-tab[data-price-tab="delta"][aria-selected="true"] { background: linear-gradient(135deg, #dff5ff, #fff0b8); transform: translateY(-2px); }
.pricebook-tab[aria-selected="true"] { box-shadow: 0 7px 0 rgba(73, 60, 88, .17); }

.pricebook-panels,
.price-panel { min-width: 0; max-width: 100%; }
.price-panel { --accent: #ff9fbd; --accent-2: #bca2f6; --soft: #fff0f6; }
.price-panel[data-game="delta"] { --accent: #78cdf0; --accent-2: #ffd874; --soft: #eff9ff; }
.price-panel[hidden] { display: none; }

.price-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  margin-top: 2px;
  padding: 19px 21px;
  border: 3px solid var(--price-ink);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--soft), #fff 60%, color-mix(in srgb, var(--accent-2) 25%, #fff));
  box-shadow: 0 7px 0 rgba(73, 60, 88, .13);
}
.price-hero::after {
  content: "🐾";
  position: absolute;
  right: 112px;
  bottom: -25px;
  color: var(--accent);
  font-size: 92px;
  line-height: 1;
  opacity: .11;
  transform: rotate(-18deg);
  pointer-events: none;
}
.price-hero-copy { position: relative; z-index: 1; }
.price-hero-copy h3 { margin: 0; color: var(--price-ink); font-size: clamp(25px, 4vw, 40px); line-height: 1.05; }
.price-hero-copy .price-en { margin: 3px 0 8px; color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.price-hero-copy p:last-child { margin: 0; color: var(--price-muted); font-size: 11px; line-height: 1.55; }
.pricebook-mascot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 3px solid var(--price-ink);
  border-radius: 29px;
  background: linear-gradient(145deg, #fff, var(--accent));
  color: var(--price-ink);
  font-size: 34px;
  font-weight: 900;
  transform: rotate(4deg);
  box-shadow: 6px 7px 0 rgba(73, 60, 88, .14);
}
.pricebook-mascot::before,
.pricebook-mascot::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 22px;
  height: 24px;
  border: 3px solid var(--price-ink);
  border-bottom: 0;
  border-radius: 16px 16px 3px 3px;
  background: var(--accent);
}
.pricebook-mascot::before { left: 11px; transform: rotate(-18deg); }
.pricebook-mascot::after { right: 11px; transform: rotate(18deg); }

.price-section {
  min-width: 0;
  max-width: 100%;
  margin-top: 17px;
  overflow: hidden;
  border: 3px solid var(--price-ink);
  border-radius: 24px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 7px 0 rgba(73, 60, 88, .12);
}
.price-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 3px solid var(--price-ink);
  background: linear-gradient(90deg, var(--soft), color-mix(in srgb, var(--accent-2) 20%, #fff));
}
.price-section-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.price-section-title span { font-size: 24px; line-height: 1; }
.price-section-title h3 { margin: 0; color: var(--price-ink); font-size: 21px; }
.price-note {
  flex: 0 1 620px;
  color: var(--price-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.45;
  text-align: right;
}
.price-section-body { min-width: 0; max-width: 100%; padding: 16px; }

.price-panel[data-game="other"] { --accent: #ff83ae; --accent-2: #ffd58a; --soft: #fff1f7; }
.other-price-list { display: grid; gap: 9px; }
.other-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 11px 14px;
  border: 2px dashed color-mix(in srgb, var(--accent) 64%, var(--price-ink));
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, var(--soft));
}
.other-price-row:nth-child(even) { background: linear-gradient(135deg, #fff9df, #fff); }
.other-price-name { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--price-ink); font-size: 13px; }
.other-price-icon { flex: 0 0 auto; font-size: 17px; line-height: 1; }
.other-price-values { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.other-price-value {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border: 2px solid var(--price-ink);
  border-radius: 999px;
  background: #fff;
  color: #a05a75;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 3px 0 rgba(73, 60, 88, .09);
}
.price-panel[data-game="other"] .other-price-row:nth-child(3n+1) .other-price-value { background: #fff0f6; }
.price-panel[data-game="other"] .other-price-row:nth-child(3n+2) .other-price-value { background: #fff7cf; }
.price-panel[data-game="other"] .other-price-row:nth-child(3n) .other-price-value { background: #eaf9ff; }

.price-source-note {
  margin: 0 0 11px;
  padding: 9px 12px;
  border: 2px dashed var(--price-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .78);
  color: var(--price-muted);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}
.price-source-frame {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 2px dashed color-mix(in srgb, var(--accent) 72%, var(--price-ink));
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, var(--soft));
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .72);
  cursor: zoom-in;
}
.price-source-frame:hover { border-color: var(--accent-2); }
.price-source-image {
  display: block;
  width: 100%;
  height: auto;
  min-width: 0;
  border: 2px solid var(--price-ink);
  border-radius: 13px;
  background: #fff;
}

.entertainment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.price-card {
  position: relative;
  min-width: 0;
  padding: 14px 13px 13px;
  border: 2px dashed color-mix(in srgb, var(--accent) 72%, var(--price-ink));
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, var(--soft));
  text-align: center;
}
.price-card::after {
  content: "♥";
  position: absolute;
  right: 10px;
  top: 7px;
  color: var(--accent);
  font-size: 13px;
}
.price-card span { display: block; color: var(--price-muted); font-size: 11px; font-weight: 900; }
.price-card b { display: block; margin-top: 5px; color: #a05a75; font-size: 24px; line-height: 1; }
.price-panel[data-game="delta"] .price-card b { color: #4d86a2; }
.price-card small { display: block; margin-top: 6px; color: var(--price-muted); font-size: 9px; }

.price-addons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.price-addons-label { color: var(--price-muted); font-size: 11px; font-weight: 900; }
.price-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border: 2px solid var(--price-ink);
  border-radius: 999px;
  background: #fff7c9;
  color: var(--price-ink);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 3px 0 rgba(73, 60, 88, .10);
}
.price-chip b { color: #a05a75; }
.price-panel[data-game="delta"] .price-chip { background: #e5f7ff; }
.price-panel[data-game="delta"] .price-chip b { color: #3c7f9f; }
.price-callout {
  margin: 12px 2px 0;
  padding: 10px 12px;
  border: 2px dashed var(--price-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .76);
  color: var(--price-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.55;
}
.price-callout b { color: var(--price-ink); }

.price-table-swipe-tip { display: none; margin: 0 0 8px; color: var(--price-muted); font-size: 9px; font-weight: 900; text-align: center; }
.price-table-wrap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
.price-table-wrap { overscroll-behavior-x: contain; }
.price-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 2px solid var(--price-ink);
  border-radius: 17px;
  background: #fff;
  color: var(--price-ink);
  font-size: 12px;
}
.price-table.is-delta { min-width: 700px; }
.price-table th,
.price-table td { padding: 10px 11px; border-right: 2px solid rgba(73, 60, 88, .12); border-bottom: 2px solid rgba(73, 60, 88, .12); text-align: center; }
.price-table th:last-child,
.price-table td:last-child { border-right: 0; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table thead th {
  background: linear-gradient(180deg, var(--soft), color-mix(in srgb, var(--accent-2) 22%, #fff));
  color: var(--price-ink);
  font-size: 12px;
}
.price-table thead th:first-child { border-radius: 14px 0 0 0; }
.price-table thead th:last-child { border-radius: 0 14px 0 0; }
.price-table tbody tr:nth-child(even) td { background: rgba(255, 247, 232, .54); }
.price-table tbody tr:hover td { background: color-mix(in srgb, var(--accent) 14%, #fff); }
.price-table .rank-cell { font-weight: 900; background: rgba(255, 255, 255, .72); }
.price-table .price-cell { color: #a05a75; font-weight: 900; }
.price-panel[data-game="delta"] .price-table .price-cell { color: #3c7f9f; }
.price-table .muted-cell { color: #b5aab9; font-weight: 900; }

.escort-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}
.escort-card {
  position: relative;
  min-width: 0;
  padding: 15px 11px 13px;
  border: 2px dashed #7dbbd8;
  border-radius: 18px;
  background: linear-gradient(150deg, #fff, #e8f9ff);
  text-align: center;
}
.escort-card:first-child { background: linear-gradient(150deg, #fff9da, #fff); border-color: #e3b94f; }
.escort-card span { display: block; color: var(--price-muted); font-size: 10px; font-weight: 900; }
.escort-card b { display: block; margin-top: 5px; color: #3c7f9f; font-size: 19px; line-height: 1.15; }
.escort-card small { display: block; margin-top: 6px; color: var(--price-muted); font-size: 9px; }
.escort-card .escort-badge { display: inline-block; margin: 7px 0 0; padding: 3px 7px; border: 2px solid var(--price-ink); border-radius: 999px; background: #ffd874; color: var(--price-ink); font-size: 8px; }

.pricebook-footer {
  margin-top: 16px;
  padding: 10px 3px 2px;
  color: var(--price-muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.55;
  text-align: center;
}
.pricebook-footer b { color: var(--price-ink); }

@media (max-width: 720px) {
  .pricebook-pill { padding: 7px 8px; font-size: 9px; gap: 4px; }
  .pricebook-pill .pricebook-pill-icon { font-size: 13px; }
  .pricebook-modal { padding: 6px; align-items: stretch; }
  .pricebook-dialog { max-height: calc(100dvh - 12px); padding: 13px; border-width: 3px; border-radius: 22px; }
  .pricebook-head { gap: 10px; padding-bottom: 10px; }
  .pricebook-head p.pricebook-subtitle { font-size: 10px; }
  .pricebook-close { width: 37px; height: 37px; border-width: 2px; font-size: 21px; }
  .pricebook-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 8px 0 10px; }
  .pricebook-tab { min-width: 0; min-height: 43px; padding: 8px 7px; border-width: 2px; border-radius: 14px; font-size: 11px; }
  .pricebook-tab span { font-size: 16px; }
  .price-hero { grid-template-columns: 1fr; gap: 10px; padding: 15px; border-radius: 19px; }
  .pricebook-mascot { position: absolute; right: 14px; top: 14px; width: 57px; height: 57px; border-width: 2px; border-radius: 19px; font-size: 22px; opacity: .96; }
  .pricebook-mascot::before, .pricebook-mascot::after { top: -8px; width: 15px; height: 17px; border-width: 2px; }
  .pricebook-mascot::before { left: 7px; }
  .pricebook-mascot::after { right: 7px; }
  .price-hero-copy { padding-right: 64px; }
  .price-hero-copy h3 { font-size: 27px; }
  .price-hero-copy p:last-child { font-size: 10px; }
  .price-section { margin-top: 13px; border-width: 2px; border-radius: 19px; }
  .price-section-head { display: block; padding: 11px 12px; border-bottom-width: 2px; }
  .price-section-title span { font-size: 20px; }
  .price-section-title h3 { font-size: 18px; }
  .price-note { display: block; margin-top: 6px; font-size: 9px; text-align: left; }
  .price-section-body { padding: 11px; }
  .other-price-row { align-items: flex-start; gap: 10px; padding: 10px; }
  .other-price-name { font-size: 12px; }
  .other-price-value { padding: 5px 7px; font-size: 10px; }
  .price-source-note { margin-bottom: 8px; padding: 7px 8px; font-size: 9px; }
  .price-source-frame { padding: 6px; border-radius: 14px; }
  .price-source-image { border-radius: 10px; }
  .entertainment-grid { grid-template-columns: 1fr; gap: 8px; }
  .price-card { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 10px 12px; text-align: left; }
  .price-card b { margin: 0; font-size: 20px; }
  .price-card small { grid-column: 1 / -1; margin-top: 3px; }
  .price-card::after { display: none; }
  .price-addons { gap: 6px; }
  .price-chip { padding: 6px 8px; font-size: 9px; }
  .price-table-swipe-tip { display: block; }
  .price-table thead th:first-child,
  .price-table tbody th:first-child { position: sticky; left: 0; z-index: 3; }
  .price-table tbody th:first-child { z-index: 2; background: #fff !important; }
  .price-table { font-size: 11px; }
  .price-table th, .price-table td { padding: 9px 8px; }
  .price-table th { font-size: 10px; }
  .escort-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .escort-card { padding: 12px 7px 10px; }
  .escort-card b { font-size: 16px; }
}

@media (max-width: 420px) {
  .pricebook-pill .pricebook-pill-text { display: none; }
  .pricebook-pill { width: 35px; height: 35px; justify-content: center; padding: 4px; }
  .pricebook-head h2 { font-size: 21px; }
  .pricebook-head p.pricebook-subtitle { display: none; }
  .pricebook-tab { font-size: 10px; }
  .pricebook-tab span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pricebook-pill,
  .pricebook-modal,
  .pricebook-dialog,
  .pricebook-tab { transition: none; }
}

@media (max-width: 420px) {
  .other-price-row { display: block; }
  .other-price-values { justify-content: flex-start; margin-top: 7px; }
}
