
    :root {
      --bg: #fff3f8;
      --bg-2: #ffe5f0;
      --card: rgba(255, 255, 255, 0.82);
      --text: #5a3343;
      --muted: #9c6b7d;
      --pink: #ff9ac7;
      --pink-2: #ffc2dc;
      --pink-3: #ff6faf;
      --shadow: 0 18px 45px rgba(221, 92, 147, 0.18);
      --radius: 24px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      min-height: 100vh;
      color: var(--text);
      font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC",
        "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
      background:
        radial-gradient(circle at 15% 10%, rgba(255, 194, 220, 0.72), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(255, 222, 237, 0.95), transparent 24%),
        linear-gradient(135deg, var(--bg), var(--bg-2));
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      opacity: 0.33;
      background-image:
        radial-gradient(#ff9ac7 1px, transparent 1px),
        radial-gradient(#ffffff 1px, transparent 1px);
      background-size: 34px 34px, 46px 46px;
      background-position: 0 0, 16px 18px;
      mask-image: linear-gradient(to bottom, black, transparent 92%);
    }

    a {
      color: inherit;
    }

    .site {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
      padding: 38px 0 56px;
      position: relative;
      z-index: 1;
    }

    .hero {
      padding: 34px;
      border: 1px solid rgba(255, 154, 199, 0.36);
      border-radius: 32px;
      background: rgba(255, 255, 255, 0.62);
      box-shadow: var(--shadow);
      backdrop-filter: blur(16px);
      overflow: hidden;
      position: relative;
    }

    .hero::after {
      content: "♡";
      position: absolute;
      right: 34px;
      top: 18px;
      font-size: 96px;
      line-height: 1;
      color: rgba(255, 111, 175, 0.13);
      transform: rotate(12deg);
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 13px;
      border-radius: 999px;
      background: #fff;
      color: var(--pink-3);
      font-weight: 700;
      box-shadow: 0 8px 24px rgba(255, 111, 175, 0.12);
    }

    h1 {
      margin: 18px 0 10px;
      font-size: clamp(34px, 7vw, 64px);
      line-height: 1;
      letter-spacing: -0.04em;
    }

    .subtitle {
      max-width: 720px;
      margin: 0;
      color: var(--muted);
      line-height: 1.8;
      font-size: 16px;
    }

    .toolbar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin: 24px 0 18px;
    }

    .search {
      width: min(430px, 100%);
      position: relative;
    }

    .search input {
      width: 100%;
      padding: 14px 18px 14px 44px;
      border: 1px solid rgba(255, 154, 199, 0.5);
      border-radius: 999px;
      outline: none;
      background: rgba(255, 255, 255, 0.72);
      color: var(--text);
      font-size: 15px;
      box-shadow: 0 12px 28px rgba(221, 92, 147, 0.09);
    }

    .search input:focus {
      border-color: var(--pink-3);
      box-shadow: 0 0 0 4px rgba(255, 111, 175, 0.14);
    }

    .search span {
      position: absolute;
      left: 17px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--pink-3);
    }

    .crumbs {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--muted);
      font-size: 14px;
    }

    .btn {
      appearance: none;
      border: 0;
      cursor: pointer;
      border-radius: 999px;
      padding: 12px 18px;
      color: white;
      background: linear-gradient(135deg, var(--pink), var(--pink-3));
      box-shadow: 0 12px 24px rgba(255, 111, 175, 0.24);
      font-weight: 800;
      transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 16px 28px rgba(255, 111, 175, 0.30);
    }

    .hidden {
      display: none !important;
    }

    .folder-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
      gap: 18px;
    }

    .folder-card {
      min-height: 230px;
      border: 1px solid rgba(255, 154, 199, 0.32);
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--card);
      box-shadow: var(--shadow);
      cursor: pointer;
      transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
      position: relative;
    }

    .folder-card:hover {
      transform: translateY(-5px);
      border-color: rgba(255, 111, 175, 0.72);
      box-shadow: 0 24px 54px rgba(221, 92, 147, 0.22);
    }

    .folder-cover {
      height: 164px;
      width: 100%;
      object-fit: cover;
      display: block;
      background:
        linear-gradient(135deg, rgba(255, 154, 199, 0.35), rgba(255, 255, 255, 0.72)),
        repeating-linear-gradient(-45deg, transparent 0 10px, rgba(255, 255, 255, 0.5) 10px 20px);
    }

    .folder-info {
      padding: 14px 16px 16px;
    }

    .folder-title {
      margin: 0 0 7px;
      font-size: 19px;
      font-weight: 900;
    }

    .folder-meta {
      color: var(--muted);
      font-size: 13px;
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 18px;
    }

    .image-card {
      overflow: hidden;
      border: 1px solid rgba(255, 154, 199, 0.32);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, 0.78);
      box-shadow: var(--shadow);
      transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .image-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 22px 48px rgba(221, 92, 147, 0.21);
    }

    .media-preview {
      width: 100%;
      height: 260px;
      display: block;
      object-fit: cover;
      background: #fff;
    }

    .image-card img {
      cursor: zoom-in;
    }

    .image-card video {
      cursor: default;
      object-fit: contain;
      background: #111;
    }

    .image-card video:fullscreen,
    .image-card video:-webkit-full-screen {
      width: 100%;
      height: 100%;
      object-fit: contain;
      background: #111;
    }

    .file-preview {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 18px;
      color: var(--pink-3);
      font-weight: 900;
      font-size: 32px;
      letter-spacing: 0;
      background:
        linear-gradient(135deg, rgba(255, 154, 199, 0.18), rgba(255, 255, 255, 0.86)),
        repeating-linear-gradient(-45deg, transparent 0 12px, rgba(255, 255, 255, 0.6) 12px 24px);
    }

    .audio-preview {
      display: flex;
      align-items: center;
      padding: 18px;
    }

    .audio-preview audio {
      width: 100%;
    }

    .image-caption {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px;
      color: var(--text);
      font-size: 14px;
    }

    .image-caption a {
      color: var(--pink-3);
      text-decoration: none;
      font-weight: 800;
      white-space: nowrap;
    }

    .empty {
      padding: 30px;
      border-radius: var(--radius);
      background: rgba(255, 255, 255, 0.72);
      color: var(--muted);
      text-align: center;
      box-shadow: var(--shadow);
    }

    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 20;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
      background: rgba(66, 32, 47, 0.72);
      backdrop-filter: blur(10px);
    }

    .lightbox.open {
      display: flex;
    }

    .lightbox-inner {
      width: min(1100px, 100%);
      max-height: 92vh;
      position: relative;
      text-align: center;
    }

    .lightbox img {
      max-width: 100%;
      max-height: 82vh;
      border-radius: 18px;
      box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
      background: #fff;
    }

    .lightbox p {
      margin: 12px 0 0;
      color: white;
    }

    .lightbox-close {
      position: absolute;
      right: 0;
      top: -46px;
      width: 38px;
      height: 38px;
      border: 0;
      border-radius: 50%;
      background: white;
      color: var(--pink-3);
      font-size: 24px;
      cursor: pointer;
    }

    footer {
      margin-top: 34px;
      color: var(--muted);
      text-align: center;
      font-size: 13px;
    }

    @media (max-width: 620px) {
      .site {
        width: min(100% - 22px, 1180px);
        padding-top: 18px;
      }

      .hero {
        padding: 24px;
        border-radius: 26px;
      }

      .toolbar {
        align-items: stretch;
      }

      .search,
      .btn {
        width: 100%;
      }

      .folder-grid,
      .gallery-grid {
        grid-template-columns: 1fr;
      }
    }
  

/* Static catalog: shares the original gallery palette and cards. */
.catalog-hero h1 { font-size: clamp(28px, 5vw, 48px); line-height: 1.2; overflow-wrap: anywhere; }
.catalog-breadcrumbs { flex-wrap: wrap; margin: 24px 0; line-height: 1.8; }
.catalog-folder { display: block; text-decoration: none; }
.catalog-folder .folder-meta + .folder-meta { margin-top: 6px; line-height: 1.6; }
.catalog-placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 800; }
.catalog-summary { color: var(--muted); line-height: 1.9; margin: 18px 0 26px; overflow-wrap: anywhere; }
.catalog-section-title { margin: 28px 0 16px; font-size: 24px; }
.catalog-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; list-style: none; }
.catalog-file { display: flex; gap: 14px; padding: 12px; min-width: 0; border: 1px solid rgba(255,154,199,.32); border-radius: 18px; background: var(--card); box-shadow: 0 8px 22px rgba(221,92,147,.09); }
.catalog-preview { flex: 0 0 112px; width: 112px; height: 96px; border-radius: 12px; overflow: hidden; background: rgba(255,194,220,.22); }
.catalog-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.catalog-file-info { flex: 1; min-width: 0; align-self: center; }
.catalog-file-name { font-weight: 800; line-height: 1.6; overflow-wrap: anywhere; }
.catalog-file-meta { color: var(--muted); margin: 6px 0; font-size: 13px; }
.catalog-original { font-size: 13px; color: #ad3b72; }
.catalog-actions { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 16px 0; line-height: 1.8; }
footer { line-height: 1.9; }
footer p { margin: 6px 0; }
@media (max-width: 620px) { .catalog-list { grid-template-columns: 1fr; } .catalog-preview { flex-basis: 88px; width: 88px; } }
