:root {
      color-scheme: light;
      --ink: #2b0717;
      --muted: #713149;
      --rose: #c41461;
      --rose-2: #df2f79;
      --rose-dark: #75032f;
      --line: #d66f9c;
      --soft: #ffd3e5;
      --paper: #fff5fa;
      --wash: #ffe1ee;
      --shadow: rgba(116, 13, 54, .22);
      --header-bg: rgba(255, 240, 247, .22);
      --page-bg-image: url("/static/images/purple-floral-bg.png");
      --page-bg-overlay: linear-gradient(135deg, rgba(248, 241, 255, .14), rgba(84, 31, 139, .12));
      --petal-dark: #c41461;
      --petal-mid: #d92d78;
      --petal-light: #ed76a7;
    }
    * { box-sizing: border-box; }
    html { min-height: 100%; scroll-behavior: smooth; overflow-x: hidden; }
    body {
      margin: 0;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
      color: var(--ink);
      background: #ffd6e7;
      min-height: 100vh;
      overflow-x: hidden;
    }
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -2;
      background:
        var(--page-bg-overlay),
        var(--page-bg-image) center top / cover no-repeat;
      transform: translateZ(0);
    }
    body.theme-purple {
      --ink: #160820;
      --muted: #57306c;
      --rose: #5b249c;
      --rose-2: #7d36c7;
      --rose-dark: #35105f;
      --line: #8d5bc8;
      --soft: #d9b9ff;
      --paper: #f5ecff;
      --wash: #e7d3ff;
      --shadow: rgba(35, 8, 70, .3);
      --header-bg: rgba(238, 225, 255, .22);
      --page-bg-image: url("/static/images/purple-floral-bg.png");
      --page-bg-overlay: linear-gradient(135deg, rgba(248, 241, 255, .14), rgba(84, 31, 139, .12));
      --petal-dark: #4f1c88;
      --petal-mid: #6f2db3;
      --petal-light: #a06be0;
      background: #d9c1f4;
    }
    body.theme-pink {
      --ink: #2b0717;
      --muted: #713149;
      --rose: #c41461;
      --rose-2: #df2f79;
      --rose-dark: #75032f;
      --line: #d66f9c;
      --soft: #ffd3e5;
      --paper: #fff5fa;
      --wash: #ffe1ee;
      --shadow: rgba(116, 13, 54, .22);
      --header-bg: rgba(255, 240, 247, .22);
      --page-bg-image: url("/static/images/sakura-bg.png");
      --page-bg-overlay: linear-gradient(135deg, rgba(255, 236, 244, .16), rgba(226, 58, 129, .08));
      --petal-dark: #c41461;
      --petal-mid: #d92d78;
      --petal-light: #ed76a7;
      background: #ffd6e7;
    }
    header {
      border-bottom: 1px solid rgba(255, 255, 255, .28);
      background: var(--header-bg);
      backdrop-filter: blur(6px);
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 20;
    }
    .bar, main, footer { width: min(1060px, calc(100% - 32px)); margin: 0 auto; }
    .bar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
    .site-title { color: #0b0b0b; font-weight: 850; font-size: 17px; text-decoration: none; text-shadow: 0 1px 12px rgba(255, 255, 255, .86); }
    nav { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
    nav a { color: #1d0611; text-decoration: none; font-size: 11px; font-weight: 700; text-shadow: 0 1px 10px rgba(255, 255, 255, .82); }
    nav a:hover, .card a:hover { color: var(--rose-dark); }
    main { padding: 92px 0 36px; }
    footer { color: var(--muted); padding: 0 0 34px; font-size: 11px; }
    .hero { padding: 34px 0 30px; }
    h1 { font-size: clamp(26px, 4.5vw, 48px); line-height: 1.04; margin: 0 0 14px; letter-spacing: 0; }
    h2 { font-size: 21px; margin: 28px 0 12px; }
    h3 { font-size: 17px; margin: 24px 0 10px; }
    h4 { font-size: 14px; margin: 22px 0 10px; }
    p { line-height: 1.85; }
    a { color: var(--rose-dark); }
    .lead { color: var(--muted); max-width: 700px; font-size: 14px; }
    .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
    .home-list {
      display: grid;
      gap: 14px;
    }
    .home-post-button {
      display: grid;
      gap: 5px;
      width: 100%;
      min-height: 86px;
      padding: 18px 22px;
      color: #0b0b0b;
      text-decoration: none;
      background: rgba(255, 255, 255, .46);
      border: 1px solid rgba(255, 255, 255, .34);
      border-radius: 8px;
      box-shadow: 0 14px 42px rgba(22, 5, 14, .16);
      backdrop-filter: blur(8px) saturate(1.08);
    }
    .home-post-button:hover {
      background: rgba(255, 255, 255, .58);
      transform: translateY(-1px);
    }
    .home-post-button strong {
      font-size: 18px;
      line-height: 1.35;
    }
    .home-post-button span:not(.meta) {
      color: #303030;
      font-size: 12px;
      line-height: 1.6;
    }
    .pagination {
      display: flex;
      gap: 8px;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: 24px;
    }
    .page-link {
      min-width: 34px;
      padding: 8px 11px;
      text-align: center;
      color: #0b0b0b;
      text-decoration: none;
      background: rgba(255, 255, 255, .42);
      border: 1px solid rgba(255, 255, 255, .34);
      border-radius: 8px;
      backdrop-filter: blur(8px) saturate(1.08);
    }
    .page-link.active,
    .page-link:hover {
      color: #fff;
      background: var(--rose-dark);
    }
    .card, .panel {
      background: rgba(255, 248, 251, .84);
      border: 1px solid rgba(123, 13, 56, .18);
      border-radius: 8px;
      box-shadow: 0 18px 52px var(--shadow);
    }
    .card { padding: 0; transition: transform .16s ease, box-shadow .16s ease; }
    .card:hover { transform: translateY(-2px); box-shadow: 0 22px 58px var(--shadow); }
    .card-link { display: block; height: 100%; padding: 22px; color: inherit; text-decoration: none; }
    .card a { color: var(--rose-dark); text-decoration: none; }
    .meta { color: var(--muted); font-size: 10px; }
    .panel { padding: 24px; max-width: 840px; }
    label { display: block; font-weight: 750; margin: 18px 0 8px; }
    input[type=text], input[type=password], textarea {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 12px 13px;
      font: inherit;
      color: var(--ink);
      background: white;
    }
    textarea { min-height: 300px; resize: vertical; }
    textarea.short { min-height: 90px; }
    .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
    button, .button {
      border: 0;
      border-radius: 8px;
      padding: 11px 15px;
      font: inherit;
      font-weight: 760;
      cursor: pointer;
      color: white;
      background: var(--rose-dark);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 42px;
    }
    .ghost { background: #fff; color: var(--rose-dark); border: 1px solid var(--line); }
    .danger { background: #711936; }
    .list { width: 100%; border-collapse: collapse; background: rgba(255, 248, 251, .92); }
    th, td { text-align: left; padding: 12px; border-bottom: 1px solid rgba(134, 19, 63, .14); }
    th { color: var(--muted); font-size: 10px; }
    .post-shell { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; align-items: start; }
    article {
      min-width: 0;
      color: #080808;
      background: rgba(255, 255, 255, .46);
      border: 1px solid rgba(255, 255, 255, .34);
      border-radius: 8px;
      padding: 30px;
      box-shadow: 0 18px 56px rgba(22, 5, 14, .18);
      backdrop-filter: blur(8px) saturate(1.08);
    }
    article h1, article h2, article h3, article h4, article p, article li { color: #080808; }
    article .lead, article .meta { color: #333; }
    article .body { margin-top: 28px; font-size: 14px; }
    article img { max-width: 100%; border-radius: 8px; border: 1px solid rgba(134, 19, 63, .16); box-shadow: 0 14px 38px var(--shadow); }
    article code { background: #ffe1ec; color: #6e1235; padding: 2px 6px; border-radius: 6px; }
    .quick-nav {
      position: sticky;
      top: 92px;
      background: rgba(255, 255, 255, .48);
      backdrop-filter: blur(8px) saturate(1.08);
      border: 1px solid rgba(123, 13, 56, .16);
      border-radius: 8px;
      padding: 14px;
      box-shadow: 0 14px 36px rgba(116, 13, 54, .12);
    }
    .quick-nav strong { display: block; margin-bottom: 10px; color: var(--rose-dark); }
    .quick-nav a { display: block; color: var(--muted); text-decoration: none; font-size: 11px; line-height: 1.7; }
    .quick-nav .lv3 { padding-left: 12px; }
    .quick-nav .lv4 { padding-left: 24px; }
    .code-block { margin: 22px 0; background: #301522; color: #ffeef5; border-radius: 8px; overflow: hidden; box-shadow: 0 16px 42px rgba(48, 21, 34, .22); }
    .code-block figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: #511a32; color: #ffd4e5; font-size: 10px; }
    .code-block button { min-height: 32px; padding: 6px 10px; background: #ffd1e2; color: #6e1235; }
    pre { margin: 0; padding: 16px; overflow: auto; }
    pre code { background: transparent; color: inherit; padding: 0; border-radius: 0; }
    .petal {
      position: fixed;
      top: -24px;
      width: 16px;
      height: 16px;
      pointer-events: none;
      z-index: 30;
      background: var(--petal-color, var(--petal-mid));
      box-shadow: 0 0 10px rgba(255, 255, 255, .36);
      border-radius: 58% 46% 60% 48%;
      opacity: .9;
      animation: petal-fall 5.2s linear forwards;
    }
    @keyframes petal-fall {
      to { transform: translate(var(--drift), var(--drop)) rotate(520deg); opacity: 0; }
    }
    .copy-toast {
      position: fixed;
      left: 50%;
      bottom: 28px;
      transform: translateX(-50%);
      z-index: 60;
      min-width: 132px;
      padding: 11px 16px;
      border-radius: 8px;
      color: #fff;
      background: rgba(98, 0, 36, .94);
      box-shadow: 0 16px 38px rgba(76, 0, 30, .36);
      text-align: center;
      font-weight: 780;
      opacity: 0;
      transition: opacity .18s ease, bottom .18s ease;
    }
    .copy-toast.show {
      bottom: 38px;
      opacity: 1;
    }
    .switch-group {
      display: inline-flex;
      gap: 4px;
      padding: 3px;
      background: rgba(255, 255, 255, .34);
      border: 1px solid rgba(255, 255, 255, .34);
      border-radius: 8px;
      backdrop-filter: blur(8px) saturate(1.08);
    }
    .switch-button {
      min-height: 30px;
      min-width: 32px;
      padding: 5px 9px;
      color: #111;
      background: transparent;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 800;
      text-shadow: none;
    }
    .switch-button.active,
    .switch-button:hover {
      color: #fff;
      background: var(--rose-dark);
    }
    .top-action { white-space: nowrap; }
    .top-action:empty { display: none; }
    .upload-status { color: var(--muted); font-size: 10px; min-height: 18px; }
    .file-input { display: none; }
    #body-editor {
      min-height: 560px;
      font-family: "Cascadia Mono", "Consolas", "Courier New", monospace;
      line-height: 1.7;
    }
    @media (max-width: 760px) {
      body { width: 100%; max-width: 100%; }
      .bar { align-items: flex-start; flex-direction: column; padding: 14px 0; }
      nav { width: 100%; }
      main { padding-top: 112px; }
      .post-shell { display: block; }
      .quick-nav { position: static; margin-top: 24px; }
      img, pre, textarea, input { max-width: 100%; }
      th:nth-child(3), td:nth-child(3) { display: none; }
    }
