
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --rose: #e24a7b;
  --rose-d: #b32a58;
  --rose-l: #f2789f;
  --rose-x: #7a1c3e;
  --ink: #2a1b21;
  --ink-2: #5c4750;
  --ink-3: #7f6672;
  --gold: #c6a15b;
  --line: rgba(199, 72, 120, 0.14);
  --line-2: rgba(199, 72, 120, 0.24);
  --card: #fff;
  --wrap: 1160px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --barh: 54px;
  --sh-1: 0 1px 2px rgba(150, 40, 80, 0.04), 0 18px 40px -26px rgba(178, 45, 90, 0.38);
  --sh-2: 0 30px 70px -42px rgba(150, 40, 80, 0.6), 0 2px 8px rgba(150, 40, 80, 0.05);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #fdf0f6;
  font: 400 15px/1.7 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 8% -6%, #ffd3e4 0%, rgba(255, 211, 228, 0) 60%),
    radial-gradient(980px 520px at 98% 4%, #ffe2ef 0%, rgba(255, 226, 239, 0) 58%),
    radial-gradient(1200px 700px at 50% 104%, #ffc9df 0%, rgba(255, 201, 223, 0) 62%),
    linear-gradient(180deg, #fff8fb 0%, #fdeff6 46%, #fce4ef 100%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(226, 74, 123, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 74, 123, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(125% 92% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.5) 58%, transparent 100%);
  mask-image: radial-gradient(125% 92% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.5) 58%, transparent 100%);
}

.petal {
  position: absolute;
  top: 0;
  left: var(--x, 10%);
  width: 15px;
  height: 15px;
  opacity: var(--o, 0.5);
  background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.6c4.6 3.2 8.2 6.9 8.2 11.3 0 4.6-3.7 7.6-8.2 9.5-4.5-1.9-8.2-4.9-8.2-9.5C3.8 8.5 7.4 4.8 12 1.6z' fill='%23f58fb4'/%3E%3C/svg%3E")
    center / contain no-repeat;
  animation: drift var(--dur, 30s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}

.petal:nth-of-type(2) {
  --x: 6%;
  --dur: 27s;
  --delay: -3s;
  --o: 0.45;
}
.petal:nth-of-type(3) {
  --x: 21%;
  --dur: 36s;
  --delay: -19s;
  --o: 0.3;
}
.petal:nth-of-type(4) {
  --x: 38%;
  --dur: 31s;
  --delay: -8s;
  --o: 0.22;
}
.petal:nth-of-type(5) {
  --x: 56%;
  --dur: 42s;
  --delay: -25s;
  --o: 0.26;
}
.petal:nth-of-type(6) {
  --x: 72%;
  --dur: 34s;
  --delay: -12s;
  --o: 0.34;
}
.petal:nth-of-type(7) {
  --x: 88%;
  --dur: 29s;
  --delay: -6s;
  --o: 0.42;
}
.petal:nth-of-type(8) {
  --x: 95%;
  --dur: 38s;
  --delay: -21s;
  --o: 0.28;
}

@keyframes drift {
  0% {
    transform: translate3d(0, -14vh, 0) rotate(-12deg);
  }
  100% {
    transform: translate3d(5vw, 114vh, 0) rotate(240deg);
  }
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

.wrap--page {
  max-width: 1040px;
  padding-top: 16px;
}

.is-page {
  padding-top: var(--barh);
}

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--barh);
  background: rgba(255, 250, 252, 0.76);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(199, 72, 120, 0.09);
}

.bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 15px 0 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-2);
  color: #8a3a5c;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 18px -14px rgba(178, 45, 90, 0.7);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.back svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back:hover {
  background: #fff4f8;
  border-color: rgba(226, 74, 123, 0.5);
  transform: translateX(-2px);
}

.bar-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.bar-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(145deg, #f2789f, #d43a6c);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 14px -8px rgba(212, 58, 108, 0.9);
}

.bar-brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--rose-x);
}

.bar-logo {
  height: 26px;
  width: auto;
}

.hero {
  position: relative;
  padding: 16px 16px 0;
  max-width: var(--wrap);
  margin: 0 auto;
}

.hero::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 62%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 143, 180, 0.4), transparent 72%);
  filter: blur(34px);
  pointer-events: none;
}

.hero-fig {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sh-2);
}

.hero-fig::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(198, 161, 91, 0.34);
  pointer-events: none;
}

.hero-fig img {
  display: block;
  width: 100%;
  height: auto;
}

.sec {
  margin-top: 48px;
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
}

.sec-head::before,
.sec-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2));
}

.sec-head::after {
  background: linear-gradient(270deg, transparent, var(--line-2));
}

.sec-title {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--rose-x);
  white-space: nowrap;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}

.cats-card {
  padding: 18px 14px 14px;
}

.cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 4px 12px;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease);
}

.cat-ic {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffeef5 0%, #f9c6db 56%, #f2a8c6 100%);
  border: 1px solid rgba(226, 74, 123, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -10px 18px -12px rgba(178, 45, 90, 0.5),
    0 12px 24px -16px rgba(178, 45, 90, 0.75);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}

.cat-ic img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 5px 7px rgba(120, 30, 60, 0.2));
  transition: transform 0.24s var(--ease);
}

.cat-ph {
  font-size: 26px;
  font-weight: 700;
  color: var(--rose);
}

.cat-nm {
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--ink);
}

.cat:hover {
  background: linear-gradient(180deg, #fff 0%, #fff5f9 100%);
  transform: translateY(-3px);
}

.cat:hover .cat-ic {
  border-color: rgba(226, 74, 123, 0.46);
  box-shadow: inset 0 1px 0 #fff, 0 16px 28px -16px rgba(226, 74, 123, 0.9);
}

.cat:hover .cat-ic img {
  transform: scale(1.06);
}

.cat:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stack--narrow {
  max-width: 860px;
  margin: 0 auto;
}

.sheet {
  margin: 0;
  border-radius: var(--r-md);
  background: #fdf6f9;
  border: 1px solid rgba(199, 72, 120, 0.1);
  overflow: hidden;
}

.sheet--solo {
  border-radius: 18px;
  box-shadow: 0 16px 40px -30px rgba(150, 40, 80, 0.55);
}

.sheet-a {
  display: block;
  cursor: zoom-in;
}

.sheet img {
  display: block;
  width: 100%;
  height: auto;
}

.cap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #9a6076;
  background: linear-gradient(180deg, #fff9fb, #fff2f7);
  border-bottom: 1px solid rgba(199, 72, 120, 0.1);
}

.cap-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.16);
}

.page-card {
  position: relative;
  border-radius: var(--r-lg);
}

.page-head {
  position: relative;
  padding: 26px 22px 18px;
  text-align: center;
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -120px;
  width: min(560px, 130%);
  height: 240px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 150, 190, 0.34), transparent 72%);
  pointer-events: none;
}

.page-title {
  position: relative;
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--rose-x);
}

.page-meta {
  position: relative;
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.tabs {
  position: sticky;
  top: var(--barh);
  z-index: 30;
  background: rgba(255, 252, 253, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  backdrop-filter: blur(14px) saturate(1.35);
  border-top: 1px solid rgba(199, 72, 120, 0.1);
  border-bottom: 1px solid rgba(199, 72, 120, 0.1);
  padding: 10px 0;
}

.tabs-in {
  display: flex;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}

.tabs-in::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 17px;
  border-radius: 999px;
  border: 1px solid rgba(199, 72, 120, 0.22);
  background: #fff;
  color: #8a3a5c;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.tab:hover {
  border-color: rgba(226, 74, 123, 0.5);
  background: #fff5f9;
  color: var(--rose-d);
}

.tab[aria-selected="true"] {
  border-color: transparent;
  background: linear-gradient(140deg, #f2688f 0%, #db3a6c 100%);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(219, 58, 108, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.tab:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

.sheets {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  transition: opacity 0.18s var(--ease);
}

.sheets.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.empty {
  padding: 64px 20px 72px;
  text-align: center;
}

.empty-t {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

.empty-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(140deg, #f2688f, #db3a6c);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 14px 26px -16px rgba(219, 58, 108, 0.95);
}

.foot {
  max-width: var(--wrap);
  margin: 54px auto 0;
  padding: 22px 16px 34px;
  text-align: center;
  color: var(--ink-3);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(199, 72, 120, 0.1);
}

.foot-line {
  margin: 0;
}

.foot-line + .foot-line {
  margin-top: 4px;
}

.foot a {
  color: var(--rose-d);
  text-decoration: none;
  border-bottom: 1px solid rgba(226, 74, 123, 0.28);
}

.foot a:hover {
  border-bottom-color: var(--rose);
}

.foot-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  border-bottom: 1px dashed rgba(142, 117, 128, 0.5);
}

.foot-btn:hover {
  color: var(--rose-d);
}

.fab {
  position: fixed;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(199, 72, 120, 0.22);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--rose-d);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), background 0.2s var(--ease);
  box-shadow: 0 14px 28px -16px rgba(178, 45, 90, 0.85);
}

.fab svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fab.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.fab:hover {
  background: #fff;
}

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: rgba(36, 18, 26, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lb[hidden] {
  display: none;
}

.lb-top {
  display: flex;
  justify-content: flex-end;
  padding: 10px 12px;
}

.lb-x {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.lb-x svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.lb-x:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lb-body {
  overflow: auto;
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 0 12px 24px;
  -webkit-overflow-scrolling: touch;
}

.lb-body img {
  display: block;
  width: min(100%, 1100px);
  height: auto;
  border-radius: 10px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(36, 18, 26, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: 82vh;
  overflow: auto;
  padding: 24px 22px 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 40px 80px -40px rgba(30, 10, 20, 0.7);
}

.modal-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--rose-x);
}

.modal-list {
  margin: 0;
  padding-left: 1.15em;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.modal-list li + li {
  margin-top: 6px;
}

.modal-btn {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(140deg, #f2688f, #db3a6c);
  color: #fff;
  font-size: 14.5px;
  font-weight: 650;
  cursor: pointer;
}

body.is-locked {
  overflow: hidden;
}

@media (max-width: 860px) {
  .cat-ic {
    width: 76px;
    height: 76px;
  }
  .cat-ic img {
    width: 60px;
    height: 60px;
  }
  .cat-nm {
    font-size: 13px;
  }
  .sec-title {
    font-size: 20px;
  }
  .page-title {
    font-size: 24px;
  }
}

@media (max-width: 560px) {
  :root {
    --barh: 50px;
  }
  body {
    font-size: 14.5px;
  }
  .hero {
    padding: 12px 12px 0;
  }
  .hero-fig {
    border-radius: 18px;
  }
  .sec {
    margin-top: 32px;
  }
  .sec-head {
    gap: 10px;
    margin-bottom: 12px;
  }
  .sec-title {
    font-size: 17px;
    letter-spacing: 0.05em;
  }
  .cats-card {
    padding: 12px 6px 8px;
    border-radius: 20px;
  }
  .cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .cat {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #fff9fb 100%);
  }
  .cat-ic {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
  }
  .cat-ic img {
    width: 42px;
    height: 42px;
  }
  .cat-nm {
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    letter-spacing: 0;
  }
  .cap {
    padding: 8px 12px;
    font-size: 11.5px;
  }
  .page-head {
    padding: 20px 16px 14px;
  }
  .page-title {
    font-size: 20px;
  }
  .page-meta {
    font-size: 11.5px;
  }
  .tabs {
    padding: 8px 0;
  }
  .tabs-in {
    padding: 0 12px;
    gap: 6px;
  }
  .tab {
    height: 32px;
    padding: 0 13px;
    font-size: 12.5px;
  }
  .sheets {
    padding: 10px;
    gap: 10px;
  }
  .sheet {
    border-radius: 12px;
  }
  .foot {
    margin-top: 40px;
  }
  .fab {
    right: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 1900px) {
  :root {
    --wrap: 1240px;
  }
  .wrap--page {
    max-width: 1120px;
  }
  .bar-in {
    max-width: 1120px;
  }
  .sec-title {
    font-size: 26px;
  }
  .page-title {
    font-size: 30px;
  }
  .cat-ic {
    width: 96px;
    height: 96px;
  }
  .cat-ic img {
    width: 77px;
    height: 77px;
  }
  .cat-nm {
    font-size: 15.5px;
  }
  .tab {
    height: 38px;
    font-size: 15px;
    padding: 0 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .petal {
    animation: none;
    display: none;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}

.preview-note{position:fixed;z-index:90;left:50%;bottom:20px;transform:translateX(-50%);padding:9px 20px;border-radius:999px;background:rgba(122,28,62,.94);color:#fff;font-size:13px;letter-spacing:.02em;box-shadow:0 10px 28px rgba(122,28,62,.3);pointer-events:none}
