:root {
  color-scheme: light;
  --ink: #3e3340;
  --ink-soft: #706270;
  --pink: #df789f;
  --pink-deep: #bd567f;
  --pink-pale: #fff2f7;
  --blue-pale: #eef7ff;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.76);
  --shadow: 0 24px 70px rgba(68, 46, 68, 0.16);
  --soft-shadow: 0 12px 38px rgba(91, 62, 83, 0.11);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
  background-color: #f8edf3;
  background-image: url("./background.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    linear-gradient(105deg, rgba(255, 250, 253, 0.94) 0%, rgba(255, 246, 250, 0.82) 38%, rgba(238, 247, 255, 0.58) 72%, rgba(255, 238, 247, 0.45) 100%),
    linear-gradient(180deg, transparent 52%, rgba(255, 249, 252, 0.86) 88%, #fff8fb 100%);
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.32;
  background-image: radial-gradient(rgba(255, 255, 255, 0.9) 0.7px, transparent 0.7px);
  background-size: 9px 9px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  color: #fff;
  background: var(--pink);
}

:focus-visible {
  outline: 3px solid rgba(202, 91, 133, 0.34);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(4px);
  pointer-events: none;
}

.ambient-one {
  top: 9vh;
  left: -8vw;
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle, rgba(255, 205, 225, 0.6), transparent 70%);
}

.ambient-two {
  right: -8vw;
  bottom: 5vh;
  width: 34vw;
  height: 34vw;
  background: radial-gradient(circle, rgba(196, 222, 255, 0.52), transparent 70%);
}

.glass-panel {
  border: 1px solid var(--glass-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.69), rgba(255, 249, 252, 0.48));
  box-shadow: var(--soft-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(26px) saturate(1.15);
  -webkit-backdrop-filter: blur(26px) saturate(1.15);
}

.site-header {
  position: relative;
  z-index: 5;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark,
.footer-mark {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #f3a5bf, #cc6e96);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(184, 78, 122, 0.22), inset 0 1px 2px rgba(255, 255, 255, 0.7);
  font-family: "Songti SC", "SimSun", serif;
  font-size: 22px;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  line-height: 1.25;
}

.brand-copy strong {
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 18px;
  letter-spacing: 0.06em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.header-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(73, 60, 73, 0.68);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.header-note span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #83ac77;
  box-shadow: 0 0 0 5px rgba(131, 172, 119, 0.14);
}

.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 96px;
}

.hero {
  position: relative;
  min-height: 390px;
  padding: clamp(38px, 7vw, 82px);
  display: flex;
  overflow: hidden;
  align-items: center;
  border-radius: var(--radius-xl);
}

.hero::before {
  position: absolute;
  top: -120px;
  right: -70px;
  width: 360px;
  height: 360px;
  content: "";
  border: 1px solid rgba(217, 124, 159, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 0 0 34px rgba(255, 255, 255, 0.12), inset 0 0 0 35px rgba(217, 124, 159, 0.09);
}

.hero::after {
  position: absolute;
  right: 18%;
  bottom: -58px;
  width: 150px;
  height: 150px;
  content: "";
  transform: rotate(18deg);
  background: radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, 0.95), rgba(243, 166, 194, 0.42) 55%, transparent 58%);
  border-radius: 75% 25% 75% 25%;
  filter: blur(1px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--pink-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-size: clamp(40px, 6.3vw, 72px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.16;
}

.hero h1 em {
  color: var(--pink-deep);
  font-style: normal;
  text-shadow: 0 10px 26px rgba(188, 84, 126, 0.14);
}

.hero-description {
  max-width: 590px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.hero-orbit {
  position: absolute;
  right: clamp(32px, 7vw, 90px);
  bottom: 48px;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  color: var(--pink-deep);
  border: 1px solid rgba(200, 97, 139, 0.22);
  border-radius: 50%;
}

.orbit-word {
  position: absolute;
  top: 13px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.orbit-flower {
  font-size: 34px;
  animation: float-flower 4.5s ease-in-out infinite;
}

.finder {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  padding: 20px;
  display: grid;
  gap: 18px;
  border-radius: var(--radius-lg);
}

.search-box {
  min-height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.58);
  border-radius: 16px;
  box-shadow: inset 0 1px 5px rgba(96, 69, 87, 0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.search-box:focus-within {
  border-color: rgba(216, 115, 154, 0.48);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(229, 139, 173, 0.1);
}

.search-box svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--pink-deep);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.search-box input::placeholder {
  color: rgba(90, 75, 89, 0.48);
}

.search-box kbd {
  padding: 4px 7px;
  color: rgba(75, 61, 74, 0.48);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(87, 66, 82, 0.08);
  border-radius: 7px;
  box-shadow: 0 2px 0 rgba(91, 67, 85, 0.1);
  font-family: inherit;
  font-size: 10px;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.filter-label {
  padding-top: 9px;
  color: rgba(80, 65, 78, 0.45);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.25em;
}

.tag-filters {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-filter {
  --tag-color: #d98baa;
  min-height: 34px;
  padding: 6px 13px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(77, 53, 71, 0.05);
  cursor: pointer;
  font-size: 12px;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.tag-filter::before {
  width: 6px;
  height: 6px;
  margin-right: 7px;
  display: inline-block;
  content: "";
  vertical-align: 1px;
  background: var(--tag-color);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tag-color), transparent 82%);
}

.all-filter::before {
  background: linear-gradient(135deg, #ef9fbb, #8fb7e8);
}

.tag-filter:hover {
  transform: translateY(-2px);
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(83, 57, 77, 0.09);
}

.tag-filter[data-active="true"] {
  color: #fff;
  background: color-mix(in srgb, var(--tag-color), #6a455b 10%);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--tag-color), transparent 72%);
}

.tag-filter[data-active="true"]::before {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.all-filter[data-active="true"] {
  --tag-color: #d47b9d;
}

.resource-section {
  padding-top: 80px;
}

.section-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading .eyebrow {
  margin-bottom: 6px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.result-count {
  margin: 0 0 5px;
  color: var(--ink-soft);
  font-size: 12px;
}

.resource-list {
  display: grid;
  gap: 18px;
}

.resource-card {
  position: relative;
  min-height: 254px;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: rgba(49, 45, 48, 0.3);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.36);
  transform: translateZ(0);
  animation: card-enter 520ms both;
  animation-delay: calc(var(--card-order) * 55ms);
}

.resource-cover {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(0.88) contrast(0.94) brightness(0.9);
  transform: scale(1.015);
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1), filter 450ms ease;
}

.resource-card:nth-child(2n) .resource-cover {
  object-position: 20% 44%;
}

.resource-card:nth-child(3n) .resource-cover {
  object-position: 82% 58%;
}

.resource-tint {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(48, 39, 47, 0.82) 0%, rgba(59, 44, 54, 0.64) 42%, rgba(66, 54, 60, 0.18) 75%, rgba(255, 230, 240, 0.06) 100%),
    linear-gradient(0deg, rgba(40, 34, 38, 0.32), transparent 52%);
}

.resource-card::before {
  position: absolute;
  z-index: -1;
  inset: 10px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 19px;
}

.resource-card-content {
  min-height: 254px;
  padding: clamp(30px, 5vw, 52px);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  color: #fff;
}

.resource-meta {
  margin-bottom: 19px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.resource-title {
  max-width: 66%;
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(27px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.24;
  text-shadow: 0 4px 24px rgba(39, 25, 34, 0.3);
}

.resource-summary {
  max-width: 58%;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.8;
}

.resource-tags {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resource-tag {
  --tag-color: #e58eae;
  padding: 5px 10px;
  color: #fff;
  background: color-mix(in srgb, var(--tag-color), transparent 25%);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(20, 15, 18, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 700;
}

.resource-arrow {
  position: absolute;
  right: 34px;
  bottom: 30px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(42, 29, 38, 0.18);
  backdrop-filter: blur(10px);
  font-size: 20px;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.resource-card:hover .resource-cover {
  filter: saturate(1) contrast(0.96) brightness(0.96);
  transform: scale(1.055);
}

.resource-card:hover .resource-arrow {
  color: #fff;
  background: var(--pink);
  transform: translate(3px, -3px) rotate(5deg);
}

.empty-state {
  padding: 64px 24px;
  text-align: center;
  border-radius: var(--radius-xl);
}

.empty-state > span {
  color: var(--pink);
  font-size: 34px;
}

.empty-state h3 {
  margin: 12px 0 4px;
  font-family: "Songti SC", serif;
  font-size: 24px;
}

.empty-state p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.pagination {
  min-height: 42px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pagination button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(70, 49, 65, 0.07);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.pagination button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.pagination button[data-active="true"] {
  color: #fff;
  background: linear-gradient(145deg, #e890ae, #c65f88);
  box-shadow: 0 9px 20px rgba(190, 83, 125, 0.2);
}

.pagination button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.site-footer {
  padding: 0 20px 28px;
}

.footer-inner {
  position: relative;
  width: min(100%, var(--max-width));
  min-height: 134px;
  margin: 0 auto;
  padding: 26px 70px 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-radius: 24px;
}

.footer-branding {
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-mark {
  width: 38px;
  height: 38px;
  font-size: 18px;
}

.footer-branding strong {
  font-family: "Songti SC", serif;
  font-size: 15px;
}

.footer-branding p,
.legal-copy p {
  margin: 3px 0;
  color: rgba(73, 59, 72, 0.59);
  font-size: 10px;
}

.legal-copy {
  flex: 1;
  text-align: right;
}

.footer-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px 9px;
}

.author-link {
  padding: 2px 7px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: rgba(130, 87, 112, 0.68);
  border: 1px solid rgba(190, 104, 139, 0.14);
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.author-link:hover,
.author-link:focus-visible {
  color: var(--pink-deep);
  background: rgba(255, 255, 255, 0.54);
  border-color: rgba(190, 104, 139, 0.3);
}

.beian-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.beian-links a:hover {
  color: var(--pink-deep);
}

.police-mark {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: #61768f;
  border-radius: 4px;
  font-size: 8px;
}

.admin-trigger {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: rgba(184, 91, 128, 0.24);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  font-size: 11px;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.admin-trigger:hover,
.admin-trigger:focus-visible {
  color: var(--pink-deep);
  background: rgba(255, 255, 255, 0.58);
  transform: rotate(25deg);
}

.login-dialog {
  width: min(calc(100% - 28px), 430px);
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 28px;
  background: transparent;
}

.login-dialog::backdrop {
  background: rgba(72, 50, 66, 0.36);
  backdrop-filter: blur(14px);
}

.login-card {
  position: relative;
  padding: 42px;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 249, 0.93));
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  box-shadow: 0 34px 100px rgba(65, 42, 59, 0.26);
}

.login-symbol {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #ef9fbb, #ca628a);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(192, 80, 124, 0.23);
  font-family: "Songti SC", serif;
  font-size: 23px;
}

.login-card .eyebrow {
  margin-bottom: 5px;
}

.login-card h2 {
  margin: 0;
  font-family: "Songti SC", serif;
  font-size: 29px;
  font-weight: 600;
}

.login-card > p:not(.eyebrow):not(.form-error) {
  margin: 7px 0 26px;
  color: var(--ink-soft);
  font-size: 12px;
}

.login-card label,
.editor-grid label,
.local-upload-field {
  display: grid;
  gap: 7px;
}

.login-card label + label {
  margin-top: 14px;
}

.login-card label > span,
.editor-grid label > span,
.local-upload-field > span,
.resource-tags-field legend {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.login-card input,
.editor-grid input,
.editor-grid select,
.editor-grid textarea,
.tag-editor-row input:not([type="color"]) {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid rgba(102, 73, 94, 0.12);
  outline: 0;
  background: rgba(255, 255, 255, 0.74);
  border-radius: 11px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.editor-grid textarea {
  min-height: 72px;
  resize: vertical;
}

.login-card input:focus,
.editor-grid input:focus,
.editor-grid select:focus,
.editor-grid textarea:focus,
.tag-editor-row input:not([type="color"]):focus {
  border-color: rgba(210, 102, 144, 0.5);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(226, 128, 165, 0.1);
}

.form-error {
  min-height: 20px;
  margin: 9px 0 2px;
  color: #b44262;
  font-size: 11px;
}

.primary-button,
.secondary-button,
.text-button,
.upload-button {
  min-height: 42px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(145deg, #e991af, #c65d87);
  box-shadow: 0 10px 24px rgba(193, 75, 121, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.login-card .primary-button {
  width: 100%;
  margin-top: 12px;
}

.primary-button:hover:not(:disabled),
.secondary-button:hover:not(:disabled),
.upload-button:hover {
  transform: translateY(-2px);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.secondary-button {
  color: var(--pink-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(220, 113, 154, 0.18);
  box-shadow: 0 6px 16px rgba(83, 54, 76, 0.07);
}

.text-button {
  color: var(--ink-soft);
  background: transparent;
}

.text-button:hover {
  color: var(--pink-deep);
}

.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(101, 73, 94, 0.1);
  border-radius: 12px;
  cursor: pointer;
  font-size: 19px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.icon-button:hover:not(:disabled) {
  color: var(--pink-deep);
  background: #fff;
  transform: translateY(-1px);
}

.icon-button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.icon-button.soft {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 15px;
}

.icon-button.danger:hover {
  color: #fff;
  background: #c9546f;
}

.login-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.admin-open {
  overflow: hidden;
}

.admin-shell {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--ink);
  background:
    radial-gradient(circle at 0 0, rgba(250, 195, 217, 0.36), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(185, 217, 252, 0.32), transparent 34%),
    #fff8fb;
}

.admin-header {
  min-height: 88px;
  padding: 16px clamp(22px, 5vw, 70px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(100, 72, 93, 0.09);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
}

.admin-header .eyebrow {
  margin-bottom: 2px;
}

.admin-header h2 {
  margin: 0;
  font-family: "Songti SC", serif;
  font-size: 25px;
  font-weight: 600;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-scroll {
  overflow: auto;
  padding: 30px clamp(18px, 5vw, 70px) 70px;
}

.admin-scroll > * {
  width: min(100%, 1080px);
  margin-right: auto;
  margin-left: auto;
}

.admin-notice {
  min-height: 42px;
  margin-bottom: 16px;
  padding: 11px 15px;
  color: #7e5870;
  background: rgba(240, 168, 196, 0.13);
  border: 1px solid rgba(215, 111, 151, 0.13);
  border-radius: 12px;
  font-size: 11px;
}

.editor-section {
  margin-top: 18px;
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 0 16px 46px rgba(84, 55, 77, 0.08);
}

.editor-section-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.editor-section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.editor-section-heading > div > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--pink-deep);
  background: var(--pink-pale);
  border-radius: 11px;
  font-size: 10px;
  font-weight: 800;
}

.editor-section-heading h3 {
  margin: 0;
  font-family: "Songti SC", serif;
  font-size: 21px;
  font-weight: 600;
}

.editor-section-heading > p {
  margin: 0 0 0 auto;
  color: var(--ink-soft);
  font-size: 11px;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wide-field {
  grid-column: 1 / -1;
}

.tag-editor-list {
  display: grid;
  gap: 10px;
}

.tag-editor-row {
  --editor-tag-color: #e89ab7;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto minmax(130px, 1fr) minmax(150px, 0.5fr) auto;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--editor-tag-color), transparent 91%), rgba(255, 255, 255, 0.7));
  border: 1px solid color-mix(in srgb, var(--editor-tag-color), transparent 82%);
  border-radius: 14px;
}

.drag-dot {
  color: color-mix(in srgb, var(--editor-tag-color), #51404b 30%);
  font-size: 9px;
  letter-spacing: 1px;
}

.color-field {
  min-height: 38px;
  padding: 4px 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(97, 70, 90, 0.09);
  border-radius: 10px;
}

.color-field input {
  width: 28px;
  height: 28px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.color-field input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-field input::-webkit-color-swatch {
  border: 0;
  border-radius: 7px;
}

.tag-color-value {
  color: var(--ink-soft);
  font-family: ui-monospace, monospace;
  font-size: 10px;
}

.resource-editor-list {
  display: grid;
  gap: 16px;
}

.resource-editor-card {
  overflow: hidden;
  background: rgba(255, 251, 253, 0.88);
  border: 1px solid rgba(99, 68, 91, 0.09);
  border-radius: 18px;
}

.resource-editor-topline {
  min-height: 48px;
  padding: 7px 10px 7px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(99, 68, 91, 0.07);
}

.resource-order {
  color: var(--pink-deep);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.order-actions {
  display: flex;
  gap: 5px;
}

.resource-editor-body {
  padding: 18px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
}

.cover-editor {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 15px;
  background: #eadde4;
}

.cover-preview {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.upload-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-height: 34px;
  padding: 7px 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(44, 30, 40, 0.16);
  backdrop-filter: blur(10px);
  font-size: 10px;
}

.upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-button[data-loading="true"],
.local-upload-field[data-loading="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.resource-tags-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.resource-tags-field legend {
  margin-bottom: 8px;
}

.resource-tag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.resource-tag-option {
  --tag-color: #e89ab7;
  position: relative;
  cursor: pointer;
}

.resource-tag-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.resource-tag-option span {
  padding: 6px 10px;
  display: block;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--tag-color), transparent 90%);
  border: 1px solid color-mix(in srgb, var(--tag-color), transparent 76%);
  border-radius: 8px;
  font-size: 10px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.resource-tag-option input:checked + span {
  color: #fff;
  background: var(--tag-color);
}

.resource-tag-option:hover span {
  transform: translateY(-1px);
}

.local-upload-field input[type="file"] {
  min-height: 44px;
  padding: 9px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.74);
  border: 1px dashed rgba(202, 96, 138, 0.3);
  border-radius: 11px;
  font-size: 10px;
}

.admin-savebar {
  min-height: 78px;
  padding: 13px clamp(22px, 5vw, 70px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  border-top: 1px solid rgba(100, 72, 93, 0.09);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 -14px 34px rgba(70, 44, 63, 0.06);
  backdrop-filter: blur(20px);
}

.admin-savebar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.admin-savebar p.is-dirty {
  color: #bd557d;
  font-weight: 700;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: min(340px, calc(100% - 48px));
  padding: 12px 16px;
  color: #fff;
  background: rgba(66, 52, 63, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(44, 30, 40, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  backdrop-filter: blur(16px);
  font-size: 12px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast[data-type="error"] {
  background: rgba(168, 57, 84, 0.94);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  padding: 12px 16px;
  color: #fff;
  background: #a84f70;
  border-radius: 12px;
}

@keyframes float-flower {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-8px) rotate(8deg); }
}

@keyframes card-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }

  .site-header {
    min-height: 78px;
  }

  .header-note {
    display: none;
  }

  .page-shell {
    padding-top: 12px;
  }

  .hero {
    min-height: 365px;
    padding: 40px 28px 96px;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: clamp(38px, 12.5vw, 54px);
  }

  .hero-description {
    font-size: 13px;
  }

  .hero-orbit {
    right: 25px;
    bottom: 24px;
    width: 82px;
    height: 82px;
  }

  .orbit-word {
    display: none;
  }

  .orbit-flower {
    font-size: 26px;
  }

  .finder {
    padding: 15px;
  }

  .filter-row {
    display: grid;
    gap: 8px;
  }

  .filter-label {
    padding-top: 0;
  }

  .resource-section {
    padding-top: 58px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .resource-card,
  .resource-card-content {
    min-height: 280px;
  }

  .resource-card-content {
    padding: 31px 27px;
  }

  .resource-tint {
    background: linear-gradient(90deg, rgba(48, 39, 47, 0.86), rgba(58, 44, 54, 0.48) 78%, rgba(66, 54, 60, 0.18));
  }

  .resource-title,
  .resource-summary {
    max-width: 86%;
  }

  .resource-title {
    font-size: clamp(27px, 9vw, 37px);
  }

  .resource-summary {
    font-size: 12px;
  }

  .resource-arrow {
    right: 20px;
    bottom: 20px;
    width: 42px;
    height: 42px;
  }

  .footer-inner {
    padding: 26px 52px 26px 22px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .legal-copy {
    text-align: left;
  }

  .beian-links {
    justify-content: flex-start;
  }

  .footer-meta-row {
    justify-content: flex-start;
  }

  .admin-header {
    min-height: 74px;
  }

  .admin-header .eyebrow,
  .admin-logout {
    display: none;
  }

  .admin-scroll {
    padding-top: 18px;
  }

  .editor-section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .editor-section-heading > p {
    width: 100%;
    margin: 0;
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }

  .wide-field {
    grid-column: auto;
  }

  .tag-editor-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .color-field {
    grid-column: 2 / 3;
  }

  .delete-tag {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .resource-editor-body {
    grid-template-columns: 1fr;
  }

  .cover-editor,
  .cover-preview {
    min-height: 190px;
  }

  .admin-savebar {
    justify-content: space-between;
  }

  .admin-savebar p {
    max-width: 120px;
  }
}

@media (max-width: 430px) {
  .site-header,
  .page-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    border-radius: 25px;
  }

  .search-box kbd {
    display: none;
  }

  .tag-filter {
    padding-right: 10px;
    padding-left: 10px;
  }

  .resource-card,
  .resource-card-content {
    min-height: 300px;
  }

  .resource-meta {
    margin-bottom: 14px;
  }

  .resource-title,
  .resource-summary {
    max-width: 100%;
  }

  .resource-summary {
    padding-right: 24px;
  }

  .resource-arrow {
    width: 38px;
    height: 38px;
  }

  .login-card {
    padding: 34px 25px 28px;
  }

  .admin-header,
  .admin-scroll,
  .admin-savebar {
    padding-right: 14px;
    padding-left: 14px;
  }

  .editor-section {
    padding: 17px;
  }

  .admin-savebar .primary-button {
    padding-right: 13px;
    padding-left: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
