/* ============================================================
   主题变量
   深色（默认）：首页 index.html + 后台
   浅色：其余前台页面，在 <html data-theme="light"> 上启用
   所有颜色都走 RGB 通道变量，切主题只需翻转通道值
   ============================================================ */
:root {
      /* 通道值 —— 浅色主题只覆盖这几个 */
      --ink-rgb: 255, 255, 255;        /* 填充 / 边框 / 描边 */
      --text-rgb: 238, 241, 247;       /* 文字 */
      --accent-rgb: 122, 162, 255;
      --accent2-rgb: 185, 140, 255;
      --ok-rgb: 93, 220, 154;
      --err-rgb: 255, 143, 143;
      --on-media-rgb: 255, 255, 255;   /* 压在图片上的文字，两套主题都不变 */

      --bg: #08090c;
      --text: #eef1f7;
      --text-strong: #ffffff;
      --muted: rgba(var(--text-rgb), .46);
      --line: rgba(var(--ink-rgb), .09);
      --accent-1: #7aa2ff;
      --accent-2: #b98cff;
      --ok: #5ddc9a;
      --err: #ff8f8f;

      /* 浮层与面板 */
      --panel-bg: linear-gradient(180deg, rgba(30, 33, 42, .88), rgba(15, 16, 21, .94));
      --panel-solid: rgba(20, 22, 28, .94);
      --input-bg: rgba(8, 10, 16, .72);
      --overlay: rgba(4, 5, 8, .72);
      --ease: cubic-bezier(.25, .8, .25, 1);
      --out: cubic-bezier(.22, 1, .36, 1);     /* 柔和减速，用于"进场" */
      --in: cubic-bezier(.4, 0, 1, 1);         /* 加速，用于"退场" */
      --spring: cubic-bezier(.34, 1.2, .64, 1);
      --nav-h: 76px;
      --nav-top: 0px;
      --page-max: 1380px;
      --safe-bottom: env(safe-area-inset-bottom, 0px);
      --safe-top: env(safe-area-inset-top, 0px);
    }

    /* ---- 浅色主题：前台内容页（创作者 / 日常 / 服务 / 联系 / 详情）----
       首页与后台保持深色，不加这个属性即可。 */
    [data-theme="light"] {
      --ink-rgb: 24, 27, 34;
      --text-rgb: 23, 25, 31;
      --accent-rgb: 47, 107, 255;
      --accent2-rgb: 124, 92, 255;
      --ok-rgb: 26, 150, 100;
      --err-rgb: 209, 66, 66;

      --bg: #ffffff;
      --text: #16181d;
      --text-strong: #0b0d12;
      --muted: rgba(var(--text-rgb), .58);
      --line: rgba(var(--ink-rgb), .13);
      --accent-1: #2f6bff;
      --accent-2: #7c5cff;
      --ok: #1a9664;
      --err: #d14242;

      --panel-bg: #ffffff;
      --panel-solid: #ffffff;
      --input-bg: #f7f8fa;
      --overlay: rgba(16, 18, 22, .45);
    }

    * { box-sizing: border-box; }

    /* hidden 属性必须永远生效，否则自定义 display 会把它压掉 */
    [hidden] { display: none !important; }

    html {
      background: var(--bg);
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      color: var(--text);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
      -webkit-font-smoothing: antialiased;
    }

    body.no-scroll { overflow: hidden; }

    /* 违规禁用：全屏大弹窗，挡住浏览 */
    .ban-overlay {
      position: fixed;
      inset: 0;
      z-index: 99999;
      display: grid;
      place-items: center;
      padding: 24px;
      background: rgba(6, 7, 10, .92);
      color: #fff;
    }
    .ban-overlay[hidden] { display: none !important; }
    .ban-card {
      width: min(440px, 100%);
      padding: 36px 28px 28px;
      border-radius: 18px;
      background: #14161c;
      border: 1px solid rgba(255, 107, 107, .35);
      box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
      text-align: center;
    }
    .ban-card h2 {
      margin: 0 0 12px;
      font-size: 28px;
      font-weight: 800;
      letter-spacing: .02em;
      color: #ff8b8b;
    }
    .ban-card p {
      margin: 0 0 10px;
      font-size: 15px;
      line-height: 1.7;
      color: rgba(255, 255, 255, .82);
    }
    .ban-card a {
      color: #9eb6ff;
      word-break: break-all;
    }
    .ban-card .ban-ok {
      margin-top: 22px;
      width: 100%;
      height: 46px;
      border: 0;
      border-radius: 12px;
      background: #ff6b6b;
      color: #fff;
      font: inherit;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
    }
    .ban-card .ban-ok:hover { opacity: .92; }
    html.is-banned body > *:not(#banOverlay) {
      pointer-events: none !important;
      user-select: none !important;
    }
    html.is-banned #banOverlay { pointer-events: auto !important; }

    /* 违规警告：克制、清晰，只留重点 */
    .vio-warn-overlay {
      position: fixed;
      inset: 0;
      z-index: 99990;
      display: grid;
      place-items: center;
      padding: 20px;
      background: rgba(10, 10, 12, .55);
      opacity: 0;
      pointer-events: none;
      transition: opacity .28s ease;
    }
    .vio-warn-overlay.is-open {
      opacity: 1;
      pointer-events: auto;
    }
    .vio-warn-overlay[hidden] { display: none !important; }
    .vio-warn-card {
      width: min(400px, 100%);
      padding: 28px 28px 24px;
      border: 0;
      border-radius: 0;
      border-left: 3px solid #c43c2c;
      background: #f7f6f4;
      box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
      color: #141414;
      text-align: left;
      transform: translateY(16px);
      opacity: 0;
      transition:
        transform .34s cubic-bezier(.22, 1, .36, 1),
        opacity .28s ease;
    }
    .vio-warn-overlay.is-open .vio-warn-card {
      transform: translateY(0);
      opacity: 1;
    }
    .vio-warn-kicker {
      margin: 0 0 10px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .04em;
      color: #c43c2c;
    }
    .vio-warn-card h2 {
      margin: 0 0 10px;
      font-size: 22px;
      font-weight: 800;
      letter-spacing: -.03em;
      line-height: 1.2;
      color: #111;
    }
    .vio-warn-card p {
      margin: 0;
      font-size: 14.5px;
      line-height: 1.65;
      color: #444;
    }
    .vio-warn-card .vio-warn-focus {
      margin-top: 12px;
      font-size: 14.5px;
      font-weight: 700;
      color: #111;
    }
    .vio-warn-card .vio-warn-reason {
      margin: 14px 0 0;
      padding: 0;
      border: 0;
      background: none;
      color: #777;
      font-size: 12.5px;
      line-height: 1.55;
      word-break: break-word;
    }
    .vio-warn-card .vio-warn-ok {
      margin-top: 22px;
      width: auto;
      min-width: 108px;
      height: 40px;
      padding: 0 18px;
      border: 0;
      border-radius: 0;
      background: #111;
      color: #fff;
      font: inherit;
      font-size: 13.5px;
      font-weight: 700;
      cursor: pointer;
    }
    .vio-warn-card .vio-warn-ok:hover { opacity: .88; }
    .vio-warn-card .vio-warn-ok:active { opacity: .78; }

    ::selection { background: rgba(var(--accent-rgb), .32); }

    /* ---- 站点自定义背景（后台可换） ---- */
    .site-bg-layer {
      position: fixed;
      inset: 0;
      z-index: -3;
      pointer-events: none;
      background-color: var(--site-bg-color, var(--bg));
      background-image: var(--site-bg-image, none);
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      /* 底色也跟着主题一起过渡，免得和 <html> 的背景不同步 */
      transition: opacity .35s var(--ease), background-color .38s var(--ease);
    }

    .site-bg-layer.has-image::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(8, 9, 12, .42), rgba(8, 9, 12, .62));
    }

    /* 装饰性光晕 / 网格背景已移除：改成安静的纯色底，把注意力留给内容本身。
       .aura 保留为 display:none，因为页面里还有对应 DOM。 */
    .aura { display: none; }

    @keyframes rise {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: none; }
    }

    @keyframes menu-rise {
      from { opacity: 0; transform: translateY(-6px); }
      to { opacity: 1; transform: none; }
    }

    /* ============================================================
       顶部导航：通栏透明 · 左 logo · 中链接 · 右细线图标
       ============================================================ */

    .nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 50;
      width: 100%;
      margin: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
      transform: translate3d(0, 0, 0);
      transition: transform .32s var(--out);
      will-change: transform;
    }

    /* 下滑：整栏上移收起；上滑：再滑出来 */
    .nav.is-hidden {
      transform: translate3d(0, calc(-100% - 8px), 0);
      pointer-events: none;
    }

    .nav-inner {
      max-width: var(--page-max);
      height: var(--nav-h);
      margin: 0 auto;
      padding: 14px 36px 14px 22px;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 28px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      text-decoration: none;
      color: var(--text-strong);
      flex: 0 0 auto;
      margin-right: auto;
    }

    .brand-mark {
      width: 34px;
      height: 34px;
      display: inline-block;
      flex: 0 0 auto;
      border-radius: 0;
      background: transparent url("/logo/mark.png") center / contain no-repeat;
      color: transparent;
      font-size: 0;
      line-height: 0;
      overflow: hidden;
      box-shadow: none;
      /* 默认深色底：黑标反成白；浅色主题关掉反色 */
      filter: invert(1);
      transition: transform .3s var(--out), filter .2s ease;
    }

    [data-theme="light"] .brand-mark {
      filter: none;
    }

    .brand:hover .brand-mark { transform: scale(1.05); }

    .brand-name {
      font-size: clamp(14px, 1.7vw, 18px);
      font-weight: 700;
      letter-spacing: .01em;
      color: var(--text-strong);
      font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
      max-width: min(42vw, 280px);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .brand-text { display: none; }

    .nav-links {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 28px;
      margin: 0 8px 0 0;
      flex: 0 1 auto;
    }

    .nav-link {
      position: relative;
      padding: 10px 0 12px;
      color: rgba(var(--ink-rgb), .88);
      font-size: 18px;
      font-weight: 600;
      letter-spacing: .01em;
      text-decoration: none;
      font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
      transition: color .22s var(--ease);
    }

    .nav-link::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: 0;
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: var(--text-strong);
      transform: translateX(-50%) scale(0);
      transition: transform .26s var(--out);
    }

    .nav-link:hover { color: var(--text-strong); }
    .nav-link.is-active { color: var(--text-strong); }
    .nav-link.is-active::after { transform: translateX(-50%) scale(1); }

    .nav-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 2px;
      flex: 0 0 auto;
      margin-left: auto;
      padding-left: 14px;
      border-left: 1px solid rgba(var(--ink-rgb), .18);
      background: transparent;
    }

    .nav-icon {
      width: 34px;
      height: 34px;
      padding: 0;
      border: 0;
      border-radius: 50%;
      background: transparent;
      color: rgba(var(--ink-rgb), .9);
      display: grid;
      place-items: center;
      cursor: pointer;
      text-decoration: none;
      transition: color .2s, opacity .2s, transform .2s;
    }

    .nav-icon svg {
      width: 20px;
      height: 20px;
      display: block;
      stroke-width: 2.1;
    }

    .nav-icon:hover {
      color: var(--text-strong);
      opacity: 1;
      background: transparent;
    }

    .nav-icon:active { transform: scale(.92); }

    .nav-mail {
      position: relative;
    }

    .nav-mail-dot {
      position: absolute;
      top: 2px;
      right: 0;
      min-width: 16px;
      height: 16px;
      padding: 0 4px;
      border-radius: 999px;
      background: #ff6b6b;
      color: #fff;
      font-size: 10px;
      font-weight: 800;
      line-height: 16px;
      text-align: center;
      box-shadow: 0 0 0 2px rgba(8, 9, 12, .85);
      pointer-events: none;
    }

    .mail-panel {
      position: fixed;
      top: calc(var(--nav-h) + 8px);
      right: max(16px, calc((100vw - var(--page-max)) / 2 + 16px));
      z-index: 90;
      width: min(360px, calc(100vw - 24px));
      max-height: min(70vh, 520px);
      display: flex;
      flex-direction: column;
      border: 1px solid rgba(255, 255, 255, .12);
      border-radius: 12px;
      background: rgba(14, 16, 22, .97);
      box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
      overflow: hidden;
    }

    .mail-panel.is-reading {
      width: min(420px, calc(100vw - 24px));
      max-height: min(78vh, 640px);
    }

    .mail-panel[hidden] { display: none !important; }

    .mail-panel-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 14px 14px 10px;
      border-bottom: 1px solid rgba(255, 255, 255, .08);
      flex: 0 0 auto;
    }

    .mail-panel-head strong {
      font-size: 15px;
      font-weight: 750;
    }

    .mail-panel-read,
    .mail-panel-back {
      border: 0;
      background: transparent;
      color: var(--accent-1, #7aa2ff);
      font: inherit;
      font-size: 12.5px;
      font-weight: 650;
      cursor: pointer;
    }

    .mail-panel-back[hidden],
    .mail-panel-read[hidden] { display: none !important; }

    .mail-panel-list {
      overflow: auto;
      padding: 6px;
      flex: 1 1 auto;
      min-height: 0;
    }

    .mail-panel-list[hidden] { display: none !important; }

    .mail-detail {
      display: none;
      flex: 1 1 auto;
      min-height: 0;
      overflow: auto;
      padding: 14px 16px 18px;
    }

    .mail-panel.is-reading .mail-detail { display: block; }

    .mail-detail-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px 10px;
      align-items: baseline;
      margin: 0 0 8px;
      font-size: 12.5px;
      color: var(--muted);
    }

    .mail-detail-meta strong {
      color: var(--text);
      font-weight: 700;
      font-size: 13px;
    }

    .mail-detail-title {
      margin: 0 0 12px;
      font-size: 17px;
      font-weight: 750;
      line-height: 1.35;
      color: var(--text-strong, var(--text));
      word-break: break-word;
    }

    .mail-detail-body {
      margin: 0;
      font-size: 14px;
      line-height: 1.7;
      color: rgba(var(--text-rgb), .86);
      white-space: pre-wrap;
      word-break: break-word;
    }

    .mail-item {
      display: block;
      width: 100%;
      padding: 12px 12px;
      border: 0;
      border-radius: 12px;
      text-align: left;
      text-decoration: none;
      color: inherit;
      background: transparent;
      font: inherit;
      cursor: pointer;
      transition: background .18s;
    }

    .mail-item:hover { background: rgba(255, 255, 255, .05); }

    .mail-item.is-unread {
      background: rgba(122, 162, 255, .08);
    }

    .mail-item-top {
      display: flex;
      flex-wrap: wrap;
      gap: 6px 8px;
      align-items: baseline;
      font-size: 13px;
    }

    .mail-item-top strong { font-weight: 750; }

    .mail-item-top span { color: var(--muted); }

    .mail-item-title {
      margin-top: 4px;
      font-size: 13px;
      font-weight: 650;
      color: rgba(238, 241, 247, .9);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .mail-item-body {
      margin-top: 3px;
      font-size: 12.5px;
      color: var(--muted);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .mail-empty {
      padding: 28px 16px;
      text-align: center;
      color: var(--muted);
      font-size: 13px;
    }

    [data-theme="light"] .mail-panel {
      background: rgba(255, 255, 255, .97);
      border-color: rgba(24, 27, 34, .1);
      box-shadow: 0 20px 50px rgba(16, 18, 22, .18);
    }

    [data-theme="light"] .mail-item.is-unread {
      background: rgba(70, 110, 220, .08);
    }

    .login-btn { /* 兼容旧类名，实际用 nav-icon */ }

    .user-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      height: auto;
      min-height: 0;
      padding: 0;
      margin: 0;
      border: 0;
      border-radius: 0;
      background: transparent !important;
      box-shadow: none !important;
      -webkit-appearance: none;
      appearance: none;
      color: var(--text-strong);
      font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
      font-size: 19px;
      font-weight: 600;
      letter-spacing: .01em;
      cursor: pointer;
      animation: chip-in .44s var(--out) both;
      transition: opacity .22s;
    }

    .user-chip:hover,
    .user-chip:focus-visible {
      opacity: .88;
      background: transparent !important;
      outline: none;
    }

    .user-chip-name {
      max-width: 140px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 19px;
      font-weight: 600;
      line-height: 1.15;
      background: none;
    }

    .user-chip .user-avatar {
      width: 28px;
      height: 28px;
      font-size: 12px;
      flex: 0 0 28px;
      box-shadow: none;
    }

    @keyframes chip-in {
      from { opacity: 0; transform: scale(.78); }
      to { opacity: 1; transform: none; }
    }

    /* 头像容器：没自定义头像时是"用户名色相渐变 + 首字"，有图就铺满 */
    .user-avatar,
    .avatar,
    .avatar-preview {
      position: relative;
      overflow: hidden;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, var(--h1, #7aa2ff), var(--h2, #b98cff));
      color: #0a0b10;
      font-weight: 700;
    }

    .user-avatar {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      font-size: 12px;
    }

    .user-avatar img,
    .avatar img,
    .avatar-preview img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .burger {
      display: none;
      flex-direction: column;
      justify-content: center;
      gap: 4px;
      width: 30px;
      height: 30px;
      padding: 0;
      border: 0;
      border-radius: 50%;
      background: transparent;
      cursor: pointer;
    }

    .burger span {
      display: block;
      width: 14px;
      height: 2px;
      margin: 0 auto;
      border-radius: 2px;
      background: var(--text-strong);
      transition: transform .38s var(--out);
    }

    .burger.is-open span:first-child { transform: translateY(2.7px) rotate(45deg); }
    .burger.is-open span:last-child { transform: translateY(-2.7px) rotate(-45deg); }

    /* 默认隐藏；移动端由 media 切成 Tkong 式全屏菜单（须放在 .nav 外） */
    .mobile-menu {
      display: none;
    }

    .mobile-menu[hidden] {
      display: none !important;
    }

    .mobile-menu-search {
      position: relative;
      margin: 0 0 18px;
    }

    .mobile-menu-search-label {
      position: absolute;
      left: 16px;
      top: 50%;
      width: 16px;
      height: 16px;
      transform: translateY(-50%);
      color: rgba(10, 10, 10, .45);
      pointer-events: none;
      display: grid;
      place-items: center;
    }

    .mobile-menu-search-label svg {
      width: 16px;
      height: 16px;
      display: block;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .mobile-menu-search input {
      width: 100%;
      height: 45px;
      border: 0;
      border-radius: 999px;
      padding: 0 16px 0 44px;
      background: rgba(10, 10, 10, .1);
      color: #0a0a0a;
      font: inherit;
      font-size: 14px;
      outline: none;
    }

    .mobile-menu-search input::placeholder {
      color: rgba(10, 10, 10, .45);
    }

    .mobile-menu-links {
      display: grid;
      gap: 0;
      flex: 1 1 auto;
    }

    .mobile-menu a {
      display: block;
      padding: 16px 4px;
      border: 0;
      color: #0a0a0a;
      font-size: 18px;
      font-weight: 700;
      letter-spacing: -.01em;
      line-height: 1.35;
      text-decoration: none;
      background: transparent;
      -webkit-tap-highlight-color: transparent;
    }

    .mobile-menu a.is-active {
      color: #000;
      font-weight: 800;
    }

    .mobile-menu a:active {
      opacity: .55;
    }

    .mobile-login {
      margin-top: auto;
      height: 48px;
      border: 0;
      border-radius: 999px;
      background: #0a0a0a;
      color: #fff;
      font-family: inherit;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: opacity .22s var(--ease), transform .28s var(--out);
      -webkit-tap-highlight-color: transparent;
    }

    .mobile-login:active {
      opacity: .88;
      transform: scale(.985);
    }

    @keyframes mobile-menu-in {
      from { opacity: 0; transform: translate3d(0, 18px, 0); }
      to { opacity: 1; transform: none; }
    }

    @keyframes mobile-menu-link-in {
      from { opacity: 0; transform: translate3d(0, 14px, 0); }
      to { opacity: 1; transform: none; }
    }

    @keyframes mobile-menu-search-in {
      from { opacity: 0; transform: translate3d(0, 8px, 0); }
      to { opacity: 1; transform: none; }
    }

    /* ============================================================
       页面主体
       ============================================================ */

    /* ============================================================
       首屏轮播图（素材来自项目根目录的「轮播图」文件夹）
       纯图片展示：左右箭头翻页、底部圆点指示、自动播放
       ============================================================ */

    .carousel-section {
      max-width: var(--page-max);
      margin: 0 auto;
      /* 首屏大图：贴近导航，左右留边，接近参考站排版 */
      padding: calc(var(--nav-h) + 8px) 48px 10px;
      scroll-margin-top: calc(var(--nav-h) + 6px);
    }

    .carousel {
      position: relative;
      width: 100%;
      height: auto;
      aspect-ratio: 2 / 1; /* 固定 2000×1000 */
      border: 1px solid var(--line);
      border-radius: 0;
      overflow: hidden;
      background: rgba(var(--ink-rgb), .022);
      box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(var(--ink-rgb), .06);
      /* 水平方向交给脚本翻页，垂直方向仍然正常滚动页面 */
      touch-action: pan-y;
      cursor: grab;
    }

    .carousel.is-grabbing { cursor: grabbing; }

    .carousel-track {
      display: flex;
      height: 100%;
      margin: 0;
      padding: 0;
      transition: transform .72s var(--out);
    }

    /* 手指 / 鼠标拖动期间不要过渡，否则跟手感全无 */
    .carousel-track.is-dragging { transition: none; }

    .carousel-slide {
      position: relative;
      flex: 0 0 100%;
      height: 100%;
      overflow: hidden;
    }

    .carousel-media {
      display: block;
      position: relative;
      width: 100%;
      height: 100%;
      color: inherit;
      text-decoration: none;
    }

    .carousel-slide img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      opacity: 0;
      transform: scale(1.06);
      transition: opacity .8s var(--ease), transform 1.3s var(--out);
      -webkit-user-select: none;
      user-select: none;
    }

    /* 图片解码完（或加载失败）才淡入，避免先闪一块空白 */
    .carousel-slide.is-loaded img { opacity: 1; transform: none; }

    .carousel-caption {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 2;
      padding: 48px 28px 28px;
      background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72));
      display: flex;
      flex-direction: column;
      gap: 6px;
      pointer-events: none;
    }

    .carousel-caption strong {
      font-size: clamp(18px, 2.4vw, 28px);
      font-weight: 700;
      color: #fff;
      letter-spacing: .02em;
    }

    .carousel-caption span {
      max-width: 42em;
      font-size: 13.5px;
      line-height: 1.55;
      color: rgba(var(--on-media-rgb), .78);
    }

    /* 「轮播图」文件夹为空 / 请求失败时的兜底卡片 */
    .carousel-fallback {
      height: 100%;
      display: grid;
      place-content: center;
      gap: 10px;
      padding: 30px;
      text-align: center;
    }

    .carousel-fallback strong {
      font-size: 14px;
      font-weight: 500;
      color: rgba(var(--text-rgb), .55);
    }

    .carousel-fallback span {
      max-width: 30em;
      font-size: 12.5px;
      line-height: 1.8;
      color: rgba(var(--text-rgb), .3);
    }

    /* ---- 左右箭头：平时隐身，鼠标移上来 / 键盘聚焦才浮出 ---- */
    .carousel-arrow {
      position: absolute;
      top: 50%;
      z-index: 3;
      width: 46px;
      height: 46px;
      margin-top: -23px;
      padding: 0;
      display: grid;
      place-items: center;
      border: 1px solid rgba(var(--on-media-rgb), .16);
      border-radius: 50%;
      background: rgba(9, 10, 14, .52);
      -webkit-backdrop-filter: blur(14px) saturate(140%);
      backdrop-filter: blur(14px) saturate(140%);
      color: var(--text);
      cursor: pointer;
      opacity: 0;
      transition: opacity .3s var(--ease), transform .3s var(--out), background .24s, border-color .24s;
    }

    .carousel-arrow svg { width: 19px; height: 19px; display: block; }

    .carousel-arrow.prev { left: 16px; transform: translateX(-8px); }
    .carousel-arrow.next { right: 16px; transform: translateX(8px); }

    .carousel:hover .carousel-arrow,
    .carousel:focus-within .carousel-arrow {
      opacity: 1;
      transform: none;
    }

    .carousel-arrow:hover {
      background: rgba(22, 24, 31, .74);
      border-color: rgba(var(--on-media-rgb), .3);
    }

    .carousel-arrow:active { transform: scale(.94); transition-duration: .09s; }

    /* 触屏没有 hover，箭头常驻，不然根本点不到 */
    @media (hover: none) {
      .carousel-arrow { opacity: 1; transform: none; }
    }

    /* ---- 底部圆点 ---- */
    .carousel-dots {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 18px;
      z-index: 3;
      display: flex;
      justify-content: center;
      gap: 9px;
      pointer-events: none;          /* 只有圆点本身可点，别挡住拖动 */
    }

    .carousel-dot {
      width: 9px;
      height: 9px;
      padding: 0;
      border: 0;
      border-radius: 999px;
      background: rgba(var(--on-media-rgb), .36);
      box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
      cursor: pointer;
      pointer-events: auto;
      transition: width .46s var(--out), background .3s var(--ease);
    }

    .carousel-dot:hover { background: rgba(var(--on-media-rgb), .68); }

    .carousel-dot.is-active {
      width: 26px;
      background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    }

    /* 只有一张（或素材为空）时，箭头和圆点都没意义 */
    .carousel.is-single .carousel-arrow,
    .carousel.is-single .carousel-dots { display: none; }

    .hero {
      min-height: 84vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: calc(var(--nav-h) + 76px) 26px 80px;
      text-align: center;
    }

    .hero > * { animation: rise .9s var(--ease) both; }
    .hero > *:nth-child(1) { animation-delay: .05s; }
    .hero > *:nth-child(2) { animation-delay: .14s; }
    .hero > *:nth-child(3) { animation-delay: .22s; }
    .hero > *:nth-child(4) { animation-delay: .3s; }

    .hero-tag {
      margin: 0;
      font-size: 11.5px;
      letter-spacing: .34em;
      text-transform: uppercase;
      color: var(--accent-1);
    }

    .hero-title {
      max-width: 15em;
      margin: 24px 0 18px;
      font-size: clamp(32px, 5.6vw, 58px);
      font-weight: 600;
      line-height: 1.16;
      letter-spacing: -.015em;
    }

    .hero-title em {
      font-style: normal;
      background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .hero-sub {
      max-width: 520px;
      margin: 0;
      font-size: 15px;
      line-height: 1.95;
      color: var(--muted);
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 14px;
      margin-top: 36px;
    }

    .btn-primary,
    .btn-ghost {
      height: 46px;
      padding: 0 26px;
      border-radius: 13px;
      font-family: inherit;
      font-size: 14px;
      cursor: pointer;
      transition: transform .26s var(--out), background .22s, border-color .22s, box-shadow .22s;
    }

    .btn-primary {
      border: 0;
      background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
      color: #0a0b10;
      font-weight: 600;
      letter-spacing: .05em;
      box-shadow: 0 16px 34px -18px rgba(var(--accent-rgb), .95);
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 22px 42px -20px rgba(var(--accent-rgb), 1);
    }

    .btn-primary:active { transform: scale(.97); transition-duration: .09s; }

    .btn-ghost {
      display: inline-flex;
      align-items: center;
      border: 1px solid var(--line);
      background: rgba(var(--ink-rgb), .04);
      color: var(--text);
      text-decoration: none;
    }

    .btn-ghost:hover {
      transform: translateY(-2px);
      background: rgba(var(--ink-rgb), .09);
      border-color: rgba(var(--ink-rgb), .22);
    }

    .section {
      max-width: var(--page-max);
      margin: 0 auto;
      padding: 22px 48px;
      scroll-margin-top: calc(var(--nav-h) + 12px);
    }

    /* ---- 创作者 + AI：桌面左侧竖排；移动端轮播下横向卡片 ---- */
    .creators-dock {
      position: fixed;
      left: 12px;
      /* 底边停在中线上方，把中线下方留给小李 */
      top: calc(50% - 40px);
      z-index: 45;
      transform: translateY(-100%);
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
      pointer-events: none;
      max-height: calc(100vh - var(--nav-h) - 28px);
    }

    .creators-capsule {
      pointer-events: auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      width: 56px;
      max-height: min(42vh, 320px);
      padding: 16px 8px;
      border: 1px solid rgba(var(--ink-rgb), .12);
      border-radius: 999px;
      background: rgba(var(--ink-rgb), .06);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
      flex: 0 1 auto;
      min-height: 0;
    }

    /* ---- 主页左侧：小李 AI，贴在创作者栏下方，对话向右展开 ---- */
    .ai-wrap {
      position: fixed;
      left: max(12px, env(safe-area-inset-left, 0px));
      right: auto;
      top: calc(50% + 8px);
      z-index: 55;
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      gap: 12px;
      transform: none;
      pointer-events: none;
    }

    .ai-wrap > * {
      pointer-events: auto;
    }

    .ai-xiaoli-btn {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0;
      min-width: 56px;
      height: 56px;
      padding: 0 16px;
      border: 1px solid rgba(var(--ink-rgb), .14);
      border-radius: 999px;
      background: rgba(var(--ink-rgb), .08);
      color: rgba(var(--text-rgb), .9);
      font: inherit;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: .04em;
      cursor: pointer;
      -webkit-backdrop-filter: blur(14px);
      backdrop-filter: blur(14px);
      box-shadow: 0 14px 36px -22px rgba(0, 0, 0, .55);
      transition:
        transform .42s var(--out),
        background .28s var(--ease),
        border-color .28s var(--ease),
        color .28s var(--ease),
        box-shadow .42s var(--out);
    }

    .ai-xiaoli-btn:hover {
      transform: translateX(2px);
      color: var(--text-strong);
      background: rgba(var(--accent-rgb), .2);
      border-color: rgba(var(--accent-rgb), .42);
      box-shadow: 0 18px 40px -20px rgba(var(--accent-rgb), .55);
    }

    .ai-xiaoli-btn:focus-visible {
      outline: none;
      color: var(--text-strong);
      background: rgba(var(--accent-rgb), .22);
      border-color: rgba(var(--accent-rgb), .45);
    }

    .ai-xiaoli-btn:active {
      transform: scale(.97);
      transition-duration: .12s;
    }

    .ai-xiaoli-btn[aria-expanded="true"] {
      color: var(--text-strong);
      background: rgba(var(--accent-rgb), .28);
      border-color: rgba(var(--accent-rgb), .5);
    }

    .ai-assistant {
      width: min(340px, calc(100vw - 28px));
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 14px;
      border: 1px solid rgba(var(--ink-rgb), .12);
      border-radius: 22px;
      background: color-mix(in srgb, var(--panel-solid) 92%, transparent);
      -webkit-backdrop-filter: blur(18px) saturate(1.15);
      backdrop-filter: blur(18px) saturate(1.15);
      box-shadow:
        0 28px 60px -36px rgba(0, 0, 0, .62),
        0 0 0 1px rgba(255, 255, 255, .03) inset;
      min-height: 0;
      height: min(62vh, 480px);
      max-height: min(62vh, 480px);
      opacity: 0;
      transform: translate3d(-16px, 0, 0) scale(.96);
      transform-origin: center left;
      pointer-events: none;
      visibility: hidden;
      transition:
        opacity .28s var(--ease),
        transform .48s var(--out),
        visibility 0s linear .32s,
        box-shadow .4s var(--ease);
      will-change: transform, opacity;
    }

    .ai-wrap.is-open .ai-assistant {
      opacity: 1;
      transform: none;
      pointer-events: auto;
      visibility: visible;
      transition:
        opacity .34s var(--ease),
        transform .56s var(--out),
        visibility 0s,
        box-shadow .4s var(--ease);
    }

    .ai-assistant-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex: 0 0 auto;
    }

    .ai-assistant-title {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }

    .ai-assistant-head strong {
      font-size: 14px;
      font-weight: 650;
      letter-spacing: .02em;
    }

    .ai-assistant-status {
      font-size: 11px;
      color: rgba(var(--text-rgb), .42);
      letter-spacing: .02em;
      transition: color .25s var(--ease);
    }

    .ai-assistant-status.is-busy {
      color: rgba(var(--accent-rgb), .95);
    }

    .ai-assistant-actions {
      display: flex;
      align-items: center;
      gap: 6px;
      flex: 0 0 auto;
    }

    .ai-icon-btn,
    .ai-close {
      width: 30px;
      height: 30px;
      border: 0;
      border-radius: 50%;
      background: rgba(var(--ink-rgb), .06);
      color: rgba(var(--text-rgb), .68);
      font: inherit;
      font-size: 12px;
      font-weight: 600;
      line-height: 1;
      cursor: pointer;
      transition: transform .28s var(--out), background .2s, color .2s;
    }

    .ai-close {
      font-size: 17px;
    }

    .ai-icon-btn:hover,
    .ai-close:hover {
      color: var(--text-strong);
      background: rgba(var(--ink-rgb), .12);
      transform: scale(1.06);
    }

    .ai-assistant-msgs {
      flex: 1 1 auto;
      min-height: 96px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 2px 2px 4px;
      scrollbar-width: thin;
      scroll-behavior: smooth;
    }

    .ai-msg {
      max-width: 92%;
      padding: 9px 11px;
      border-radius: 14px;
      font-size: 12.5px;
      line-height: 1.5;
      white-space: pre-wrap;
      word-break: break-word;
      opacity: 0;
      transform: translateY(8px) scale(.98);
      animation: ai-msg-in .42s var(--out) forwards;
    }

    .ai-msg.is-bot {
      align-self: flex-start;
      background: rgba(var(--ink-rgb), .07);
      color: rgba(var(--text-rgb), .9);
      border-bottom-left-radius: 6px;
    }

    .ai-msg.is-user {
      align-self: flex-end;
      background: rgba(var(--accent-rgb), .24);
      color: var(--text);
      border-bottom-right-radius: 6px;
    }

    .ai-msg.is-err {
      align-self: flex-start;
      background: rgba(var(--err-rgb), .12);
      color: var(--err);
      border-bottom-left-radius: 6px;
    }

    .ai-msg.is-typing {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-width: 52px;
      padding-block: 12px;
    }

    .ai-msg.is-typing span {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(var(--text-rgb), .42);
      animation: ai-typing 1.05s var(--ease) infinite;
    }

    .ai-msg.is-typing span:nth-child(2) { animation-delay: .14s; }
    .ai-msg.is-typing span:nth-child(3) { animation-delay: .28s; }

    .ai-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      flex: 0 0 auto;
      max-height: 72px;
      overflow: hidden;
      transition: opacity .28s var(--ease), max-height .36s var(--out), margin .28s;
    }

    .ai-chips.is-hidden {
      opacity: 0;
      max-height: 0;
      margin: 0;
      pointer-events: none;
    }

    .ai-chip {
      appearance: none;
      border: 1px solid rgba(var(--ink-rgb), .12);
      border-radius: 999px;
      background: rgba(var(--ink-rgb), .04);
      color: rgba(var(--text-rgb), .72);
      font: inherit;
      font-size: 11.5px;
      padding: 6px 10px;
      cursor: pointer;
      transition: transform .28s var(--out), background .2s, border-color .2s, color .2s;
    }

    .ai-chip:hover {
      transform: translateY(-1px);
      color: var(--text-strong);
      background: rgba(var(--accent-rgb), .14);
      border-color: rgba(var(--accent-rgb), .35);
    }

    .ai-assistant-form {
      display: flex;
      align-items: center;
      gap: 8px;
      flex: 0 0 auto;
    }

    .ai-assistant-form input {
      flex: 1 1 auto;
      min-width: 0;
      height: 38px;
      padding: 0 14px;
      border: 1px solid rgba(var(--ink-rgb), .12);
      border-radius: 999px;
      background: rgba(var(--ink-rgb), .05);
      color: var(--text);
      font: inherit;
      font-size: 13px;
      outline: none;
      transition: border-color .22s var(--ease), background .22s, box-shadow .28s var(--out);
    }

    .ai-assistant-form input::placeholder {
      color: rgba(var(--text-rgb), .35);
    }

    .ai-assistant-form input:focus {
      border-color: rgba(var(--accent-rgb), .48);
      background: rgba(var(--ink-rgb), .07);
      box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .14);
    }

    .ai-assistant-form button {
      width: 38px;
      height: 38px;
      border: 0;
      border-radius: 50%;
      background: rgba(var(--accent-rgb), .92);
      color: #0b0d12;
      font: inherit;
      cursor: pointer;
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: transform .32s var(--out), opacity .2s, background .2s;
    }

    .ai-assistant-form button:hover:not(:disabled) {
      transform: scale(1.06);
    }

    .ai-assistant-form button:active:not(:disabled) {
      transform: scale(.94);
    }

    .ai-assistant-form button:disabled {
      opacity: .45;
      cursor: wait;
    }

    @keyframes ai-msg-in {
      to { opacity: 1; transform: none; }
    }

    @keyframes ai-typing {
      0%, 60%, 100% { transform: translateY(0); opacity: .35; }
      30% { transform: translateY(-3px); opacity: 1; }
    }


    .creators-label {
      writing-mode: vertical-rl;
      text-orientation: upright;
      letter-spacing: .28em;
      font-size: 12px;
      font-weight: 700;
      color: #fff;
      line-height: 1;
      flex: 0 0 auto;
    }

    .section-head {
      display: flex;
      align-items: baseline;
      gap: 12px;
      margin-bottom: 10px;
    }

    .section-index {
      font-size: 11px;
      letter-spacing: .24em;
      color: var(--accent-1);
    }

    .section-title {
      margin: 0;
      font-size: 20px;
      font-weight: 600;
    }

    .section-desc {
      margin: 2px 0 0;
      font-size: 12.5px;
      color: var(--muted);
      line-height: 1.5;
    }

    .creators-grid {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      width: 100%;
      min-height: 0;
      overflow-x: hidden;
      overflow-y: auto;
      scrollbar-width: none;
    }

    .creators-grid::-webkit-scrollbar { display: none; }

    .creator-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      width: 100%;
      padding: 0;
      border: 0;
      background: transparent;
      text-decoration: none;
      color: var(--text);
      opacity: .9;
    }

    .creator-card:hover,
    .creator-card:focus-visible {
      opacity: 1;
      outline: none;
    }

    .creator-avatar {
      position: relative;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      overflow: hidden;
      display: grid;
      place-items: center;
      font-size: 13px;
      font-weight: 600;
      color: #0a0b10;
      background: linear-gradient(135deg, var(--h1, #7aa2ff), var(--h2, #b98cff));
      flex-shrink: 0;
    }

    .creator-avatar span { line-height: 1; }

    .creator-avatar img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
    }

    .creator-name {
      margin: 0;
      max-width: 100%;
      font-size: 10px;
      font-weight: 500;
      color: rgba(var(--text-rgb), .55);
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .creator-card:hover .creator-name,
    .creator-card:focus-visible .creator-name {
      color: rgba(var(--text-rgb), .88);
    }

    .creators-empty {
      display: grid;
      place-items: center;
      padding: 4px 0;
      text-align: center;
    }

    .creators-empty strong {
      font-size: 11px;
      font-weight: 500;
      color: rgba(var(--text-rgb), .35);
      writing-mode: vertical-rl;
      text-orientation: upright;
      letter-spacing: .12em;
    }

    .creators-empty span {
      display: none;
    }

    /* ---- 首页消息横条：贴屏左右两侧、紧贴轮播顶边、细条直角 ---- */
    .message-banner {
      width: 100vw;
      max-width: 100vw;
      margin: 0;
      margin-left: calc(50% - 50vw);
      margin-right: calc(50% - 50vw);
      border-radius: 0;
      overflow: hidden;
      border: 0;
      background: #12141a;
    }

    .message-banner-stage {
      position: relative;
      width: 100%;
      height: 64px;
      overflow: hidden;
    }

    .message-banner-bg {
      position: absolute;
      inset: 0;
      background-color: #12141a;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }

    .message-banner-bg video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .message-banner-pattern {
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: .35;
    }

    .message-banner-pattern.is-dots {
      background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px);
      background-size: 14px 14px;
    }

    .message-banner-pattern.is-grid {
      background-image:
        linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
      background-size: 22px 22px;
    }

    .message-banner-pattern.is-lines {
      background-image: repeating-linear-gradient(
        -18deg,
        rgba(255,255,255,.1) 0 1px,
        transparent 1px 12px
      );
    }

    .message-banner-layers {
      position: absolute;
      inset: 0;
      z-index: 1;
    }

    .message-banner-item {
      position: absolute;
      margin: 0;
      max-width: 96%;
      pointer-events: none;
      user-select: none;
    }

    /* 文字按左缘锚点，避免 left 较小时被 overflow 裁掉半截 */
    .message-banner-item.is-text {
      transform: translateY(-50%);
      white-space: pre-wrap;
      word-break: break-word;
      line-height: 1.25;
      text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
    }

    /* Logo/图片仍按中心锚点 */
    .message-banner-item.is-image {
      display: block;
      object-fit: contain;
      transform: translate(-50%, -50%);
    }

    /* ---- 帖子：封面叠字卡片 + 横向滑动（Latest Post） ---- */
    .posts-head {
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .posts-head .section-index { flex: 0 0 auto; }

    .posts-head-text { flex: 1; min-width: 0; }

    .posts-more {
      flex: 0 0 auto;
      font-size: 13px;
      color: rgba(var(--text-rgb), .55);
      text-decoration: none;
      letter-spacing: .02em;
      transition: color .2s;
    }

    .posts-more:hover { color: var(--accent-1); }

    .posts-slider {
      position: relative;
      width: 100%;
    }

    .posts-slider-shell {
      position: relative;
      --post-visible: 3;
      --post-gap: 18px;
      --post-card-w: 320px;
      padding: 0 48px;
    }

    .posts-slider-viewport {
      overflow: hidden;
      width: 100%;
      border-radius: 4px;
    }

    .posts-slider-track {
      display: flex;
      gap: var(--post-gap);
      will-change: transform;
      transition: transform .62s var(--out);
    }

    .post-card {
      flex: 0 0 var(--post-card-w);
      width: var(--post-card-w);
      display: flex;
      flex-direction: column;
      gap: 12px;
      color: inherit;
      text-decoration: none;
      opacity: 0;
      animation: post-fade .55s var(--ease) forwards;
    }

    @keyframes post-fade {
      to { opacity: 1; }
    }

    .post-media {
      position: relative;
      display: block;
      aspect-ratio: 16 / 10;
      border-radius: 14px;
      overflow: hidden;
      background: #0e111a;
      color: #fff;
      text-decoration: none;
      isolation: isolate;
      box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .9);
      transition: transform .35s var(--out), box-shadow .35s var(--out);
    }

    .post-media:hover {
      transform: translateY(-3px);
      box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .92);
    }

    .post-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform .7s var(--out);
    }

    .post-media:hover img { transform: scale(1.05); }

    .post-media-fallback {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(120% 90% at 12% 0%, rgba(var(--accent-rgb), .22), transparent 55%),
        linear-gradient(155deg, #0a1228 0%, #12182a 48%, #0c1018 100%);
    }

    .post-media::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(
        180deg,
        rgba(6, 8, 14, 0) 35%,
        rgba(6, 8, 14, .55) 68%,
        rgba(6, 8, 14, .92) 100%
      );
      pointer-events: none;
      z-index: 1;
    }

    .post-overlay {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 2;
      padding: 18px 16px 14px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      pointer-events: none;
    }

    .post-title {
      margin: 0;
      font-size: 15px;
      font-weight: 650;
      line-height: 1.4;
      color: #fff;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-shadow: 0 6px 18px rgba(0, 0, 0, .45);
    }

    .post-date {
      font-size: 12px;
      color: rgba(230, 236, 250, .72);
      letter-spacing: .01em;
    }

    .post-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 0 2px;
    }

    .post-author {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      min-width: 0;
      color: var(--text);
      text-decoration: none;
    }

    .post-author:hover .post-author-name {
      color: var(--accent-1);
    }

    .post-author-avatar {
      position: relative;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      overflow: hidden;
      display: grid;
      place-items: center;
      flex-shrink: 0;
      font-size: 12px;
      font-weight: 700;
      color: #0a0b10;
      background: linear-gradient(135deg, var(--h1, #7aa2ff), var(--h2, #b98cff));
    }

    .post-author-avatar img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
    }

    .post-author-name {
      font-size: 13px;
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      transition: color .2s;
    }

    .post-stats {
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-variant-numeric: tabular-nums;
    }

    .post-comments {
      font-size: 12.5px;
      color: rgba(var(--text-rgb), .5);
      white-space: nowrap;
    }

    .post-comments.has-comments {
      color: var(--accent-1);
      font-weight: 600;
    }

    .post-views {
      font-size: 12.5px;
      color: rgba(var(--text-rgb), .7);
    }

    .posts-nav {
      position: absolute;
      top: 42%;
      z-index: 4;
      width: 44px;
      height: 44px;
      margin-top: -22px;
      padding: 0;
      display: grid;
      place-items: center;
      border: 1px solid rgba(var(--ink-rgb), .16);
      border-radius: 50%;
      background: var(--panel-solid);
      -webkit-backdrop-filter: blur(12px) saturate(140%);
      backdrop-filter: blur(12px) saturate(140%);
      color: var(--text);
      cursor: pointer;
      box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .85);
      transition: transform .28s var(--out), background .22s, border-color .22s, opacity .22s;
    }

    .posts-nav.prev { left: 0; }
    .posts-nav.next { right: 0; }

    .posts-nav svg { width: 18px; height: 18px; display: block; }

    .posts-nav:hover:not(:disabled) {
      background: var(--panel-solid);
      border-color: rgba(var(--accent-rgb), .42);
      transform: scale(1.05);
    }

    .posts-nav:active:not(:disabled) { transform: scale(.94); transition-duration: .09s; }

    .posts-nav:disabled {
      opacity: .28;
      cursor: default;
      pointer-events: none;
    }

    .posts-nav:focus-visible {
      outline: 2px solid rgba(var(--accent-rgb), .55);
      outline-offset: 3px;
    }

    .posts-dots {
      display: flex;
      justify-content: center;
      gap: 8px;
      margin-top: 12px;
    }

    .posts-dot {
      width: 7px;
      height: 7px;
      padding: 0;
      border: 0;
      border-radius: 999px;
      background: rgba(var(--text-rgb), .22);
      cursor: pointer;
      transition: width .35s var(--out), background .25s;
    }

    .posts-dot.is-active {
      width: 22px;
      background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    }

    .posts-slider.is-single .posts-nav,
    .posts-slider.is-single .posts-dots { display: none; }

    .posts-empty {
      display: grid;
      place-items: center;
      gap: 8px;
      min-height: 170px;
      padding: 34px 24px;
      border: 1px dashed rgba(var(--ink-rgb), .14);
      border-radius: 20px;
      background: rgba(var(--ink-rgb), .014);
      text-align: center;
    }

    .posts-empty strong {
      font-size: 14px;
      font-weight: 500;
      color: rgba(var(--text-rgb), .55);
    }

    .posts-empty span {
      font-size: 12.5px;
      color: rgba(var(--text-rgb), .3);
    }

    .placeholder {
      display: grid;
      place-items: center;
      gap: 8px;
      min-height: 170px;
      padding: 34px 24px;
      border: 1px dashed rgba(var(--ink-rgb), .14);
      border-radius: 20px;
      background: rgba(var(--ink-rgb), .014);
      text-align: center;
    }

    .placeholder strong {
      font-size: 14px;
      font-weight: 500;
      color: rgba(var(--text-rgb), .55);
    }

    .placeholder span {
      font-size: 12.5px;
      color: rgba(var(--text-rgb), .3);
    }

    .reveal {
      opacity: 0;
      transform: translateY(14px);
      transition: opacity .55s var(--ease), transform .62s var(--out);
    }

    .reveal.is-in {
      opacity: 1;
      transform: none;
    }

    .footer {
      margin-top: 12px;
      padding: 20px 26px 28px;
      border-top: 1px solid var(--line);
      text-align: center;
      font-size: 12.5px;
      color: rgba(var(--text-rgb), .3);
    }

    /* ---- 全站底部（沿用 Contact 排版结构，样式跟站点） ---- */
    .site-footer {
      margin-top: 48px;
      padding: 36px 28px 40px;
      border-top: 1px solid var(--line);
      background: transparent;
      color: var(--text);
    }

    .site-footer-inner {
      width: min(1100px, 100%);
      margin: 0 auto;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 32px 48px;
      flex-wrap: wrap;
    }

    .site-footer-left {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      min-width: min(100%, 280px);
      flex: 1 1 320px;
    }

    .site-footer-copy {
      margin: 0;
      font-size: 13px;
      color: var(--muted);
      font-weight: 500;
    }

    .site-footer-privacy {
      color: rgba(var(--text-rgb), .78);
      font-size: 13.5px;
      font-weight: 600;
      text-decoration: none;
    }

    .site-footer-privacy:hover {
      color: var(--text-strong);
      text-decoration: underline;
    }

    .site-footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 14px;
      margin-top: 2px;
    }

    .site-footer-links a {
      color: rgba(var(--text-rgb), .38);
      font-size: 12px;
      text-decoration: none;
      white-space: nowrap;
    }

    .site-footer-links a:hover {
      color: rgba(var(--text-rgb), .85);
      text-decoration: underline;
    }

    .site-footer-disclaimer {
      margin-top: 8px;
      display: inline-block;
      max-width: 100%;
      padding: 8px 12px;
      border-radius: 8px;
      background: rgba(var(--ink-rgb), .06);
      border: 1px solid var(--line);
      color: rgba(var(--text-rgb), .55);
      font-size: 12px;
      font-weight: 550;
      line-height: 1.35;
    }

    .site-footer-subscribe {
      display: flex;
      align-items: stretch;
      gap: 0;
      flex: 0 1 420px;
      width: min(420px, 100%);
      margin-left: auto;
    }

    .site-footer-subscribe input[type="email"] {
      flex: 1 1 auto;
      min-width: 0;
      height: 42px;
      padding: 0 14px;
      border: 1px solid var(--line);
      border-right: 0;
      border-radius: 10px 0 0 10px;
      background: rgba(var(--ink-rgb), .05);
      color: var(--text);
      font-size: 13.5px;
      outline: none;
    }

    .site-footer-subscribe input[type="email"]::placeholder {
      color: rgba(var(--text-rgb), .32);
    }

    .site-footer-subscribe input[type="email"]:focus {
      border-color: rgba(var(--accent-rgb), .45);
      background: rgba(var(--ink-rgb), .08);
    }

    .site-footer-subscribe button {
      flex: 0 0 auto;
      height: 42px;
      padding: 0 16px;
      border: 1px solid rgba(var(--accent-rgb), .35);
      border-radius: 0 10px 10px 0;
      background: linear-gradient(135deg, rgba(var(--accent-rgb), .28), rgba(var(--accent2-rgb), .22));
      color: var(--text-strong);
      font-size: 13px;
      font-weight: 650;
      cursor: pointer;
      white-space: nowrap;
    }

    .site-footer-subscribe button:hover {
      background: linear-gradient(135deg, rgba(var(--accent-rgb), .42), rgba(var(--accent2-rgb), .34));
    }

    @media (max-width: 720px) {
      .site-footer {
        padding: 28px 18px 32px;
      }

      .site-footer-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
      }

      .site-footer-left {
        flex: 0 1 auto;
        min-width: 0;
        width: 100%;
      }

      .site-footer-subscribe {
        flex: 0 0 auto;
        margin-left: 0;
        width: 100%;
      }
    }

    .section-user-posts {
      margin-top: 8px;
    }

    .posts-waterfall {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
      width: 100%;
      align-items: start;
    }

    .posts-waterfall .posts-empty {
      grid-column: 1 / -1;
    }

    .posts-waterfall .post-card {
      width: 100%;
      max-width: none;
      flex: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin: 0;
      opacity: 0;
      animation: post-fade .55s var(--ease) forwards;
    }

    .posts-waterfall .post-media,
    .posts-waterfall .post-media[data-ratio="tall"],
    .posts-waterfall .post-media[data-ratio="wide"],
    .posts-waterfall .post-media[data-ratio="square"] {
      width: 100%;
      aspect-ratio: 16 / 10;
      min-height: 0;
    }

    .posts-waterfall .post-media img {
      width: 100%;
      height: 100%;
      min-height: 0;
      object-fit: cover;
    }

    .posts-waterfall .post-media-fallback {
      position: absolute;
      inset: 0;
      min-height: 0;
    }

    .posts-waterfall .post-intro {
      margin: 0;
      min-height: 2.9em;
      font-size: 12.5px;
      line-height: 1.45;
      color: rgba(var(--text-rgb), .48);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    @media (min-width: 1200px) {
      .posts-waterfall {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
    }

    @media (max-width: 880px) {
      .posts-waterfall {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 520px) {
      .posts-waterfall {
        grid-template-columns: 1fr;
      }
    }

    .publish-fab {
      position: fixed;
      right: 20px;
      bottom: 20px;
      z-index: 70;
      display: inline-grid;
      place-items: center;
      width: 44px;
      height: 44px;
      padding: 0;
      border: 1px solid rgba(255, 255, 255, .14);
      border-radius: 50%;
      background: rgba(18, 20, 26, .88);
      color: #fff;
      font: inherit;
      cursor: pointer;
      box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      transition: background .2s ease, border-color .2s ease, color .2s ease;
    }

    .publish-fab span { display: none; }

    .publish-fab svg {
      width: 18px;
      height: 18px;
      stroke-width: 2;
    }

    .publish-fab:hover {
      background: rgba(28, 32, 40, .96);
      border-color: rgba(255, 255, 255, .28);
    }

    .publish-fab:active {
      background: #14161c;
    }

    .publish-modal-body {
      width: min(640px, 100%);
      max-width: 640px;
      max-height: min(88vh, 860px);
      overflow-y: auto;
    }

    .publish-card {
      padding: 22px 26px 18px;
    }

    .publish-card .head {
      margin-bottom: 10px;
    }

    .publish-card .mark {
      width: 36px;
      height: 36px;
      border-radius: 11px;
      font-size: 12px;
    }

    .publish-card .title {
      margin: 10px 0 4px;
      font-size: 19px;
    }

    .publish-card .sub {
      font-size: 12.5px;
    }

    .publish-card .field {
      margin-bottom: 12px;
    }

    .publish-card .field textarea {
      width: 100%;
      resize: vertical;
      min-height: 64px;
      max-height: 120px;
      padding: 18px 0 6px;
      border: 0;
      background: transparent;
      color: var(--text);
      font: inherit;
      font-size: 15px;
      line-height: 1.4;
      outline: none;
    }

    .publish-card .field textarea:focus + label,
    .publish-card .field textarea:not(:placeholder-shown) + label {
      transform: translateY(-13px) scale(.76);
      color: var(--accent-1);
    }

    .publish-card .field textarea:focus ~ .bar::after {
      transform: scaleX(1);
    }

    .publish-content {
      margin: 2px 0 12px;
    }

    .publish-content-label {
      margin-bottom: 8px;
      font-size: 12.5px;
      font-weight: 600;
      color: rgba(var(--text-rgb), .72);
    }

    .publish-content-label small {
      display: block;
      margin-top: 2px;
      font-size: 11px;
      font-weight: 400;
      color: rgba(var(--text-rgb), .35);
    }

    .publish-blocks {
      display: grid;
      gap: 8px;
    }

    .publish-cblock {
      border: 1px solid rgba(var(--ink-rgb), .1);
      border-radius: 10px;
      padding: 10px;
      background: rgba(var(--ink-rgb), .03);
    }

    .publish-cblock-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 6px;
      font-size: 12px;
      color: rgba(var(--text-rgb), .42);
    }

    .publish-cblock-head button {
      border: 0;
      background: none;
      color: rgba(var(--err-rgb), .9);
      font: inherit;
      font-size: 12px;
      cursor: pointer;
      padding: 0;
    }

    .publish-cblock textarea,
    .publish-cblock input[type="text"] {
      width: 100%;
      border: 1px solid rgba(var(--ink-rgb), .12);
      border-radius: 8px;
      background: var(--input-bg);
      color: rgba(var(--text-rgb), .92);
      padding: 8px 10px;
      font: inherit;
      font-size: 13px;
      resize: vertical;
    }

    .publish-cblock textarea {
      min-height: 56px;
      max-height: 110px;
    }

    .publish-cblock img,
    .publish-cblock video {
      display: block;
      max-width: 100%;
      max-height: 120px;
      margin-top: 6px;
      border-radius: 8px;
      object-fit: cover;
    }

    .publish-cblock .mini-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .publish-cblock .mini-row input[type="text"] {
      flex: 1 1 160px;
    }

    .publish-block-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 8px;
    }

    .publish-block-actions .btn-soft {
      padding: 6px 10px;
      font-size: 12px;
    }

    .publish-tags {
      margin: 4px 0 14px;
    }

    .publish-tags-label {
      margin-bottom: 10px;
      font-size: 13px;
      font-weight: 600;
      color: rgba(var(--text-rgb), .72);
    }

    .publish-tags-label small {
      margin-left: 6px;
      font-size: 12px;
      font-weight: 400;
      color: rgba(var(--text-rgb), .38);
    }

    .publish-tag-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .publish-tag {
      border: 1px solid rgba(var(--ink-rgb), .12);
      border-radius: 999px;
      padding: 7px 14px;
      background: rgba(var(--ink-rgb), .04);
      color: rgba(var(--text-rgb), .78);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: background .2s, border-color .2s, color .2s, transform .2s;
    }

    .publish-tag:hover {
      border-color: rgba(var(--accent-rgb), .45);
      color: var(--text-strong);
    }

    .publish-tag.is-on {
      background: linear-gradient(135deg, rgba(var(--accent-rgb), .35), rgba(var(--ok-rgb), .28));
      border-color: rgba(var(--accent-rgb), .65);
      color: var(--text-strong);
      transform: translateY(-1px);
    }

    .publish-cover {
      margin: 2px 0 10px;
    }

    .publish-cover-preview {
      position: relative;
      display: grid;
      place-items: center;
      min-height: 96px;
      max-height: 120px;
      border-radius: 12px;
      border: 1px dashed rgba(var(--ink-rgb), .2);
      background: rgba(var(--ink-rgb), .03);
      overflow: hidden;
      cursor: pointer;
      color: rgba(var(--text-rgb), .38);
      font-size: 12.5px;
      transition: border-color .2s, background .2s;
    }

    .publish-cover-preview:hover {
      border-color: rgba(var(--ink-rgb), .35);
      background: rgba(var(--ink-rgb), .05);
    }

    .publish-cover-preview.has-cover span,
    .publish-cover-preview.has-image span {
      display: none;
    }

    .publish-cover-preview img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .publish-card .submit {
      height: 44px;
      margin-top: 2px;
    }

    .section-user-posts {
      padding-top: 8px;
    }

    @media (max-width: 560px) {
      .publish-fab {
        right: 14px;
        bottom: 14px;
        width: 42px;
        height: 42px;
      }

      .publish-modal-body {
        width: 100%;
        max-width: 100%;
      }
    }

    /* ============================================================
       浮层：登录 / 账号共用同一套外壳
       ============================================================ */

    .modal {
      position: fixed;
      inset: 0;
      /* 必须高于移动端导航(1000)和全屏菜单(990)，否则其他页点登录会被挡住 */
      z-index: 2200;
      display: grid;
      place-items: center;
      padding: 18px;
      overflow-y: auto;
    }

    /* 关闭态：走得快一点，先退场 */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: var(--overlay);
      -webkit-backdrop-filter: blur(9px);
      backdrop-filter: blur(9px);
      opacity: 0;
      transition: opacity .22s var(--in);
    }

    /* 打开态：慢慢淡进来 */
    .modal.is-open .modal-backdrop {
      opacity: 1;
      transition: opacity .36s var(--ease);
    }

    .modal-body {
      position: relative;
      width: 100%;
      max-width: 480px;
      opacity: 0;
      transform: translateY(26px) scale(.94);
      transition: opacity .2s var(--in), transform .26s var(--in);
    }

    /* 卡片稍微滞后于遮罩浮上来，像被推上来的一张牌 */
    .modal.is-open .modal-body {
      opacity: 1;
      transform: none;
      transition: opacity .34s var(--ease) .05s, transform .62s var(--out) .05s;
    }

    .modal-close {
      position: absolute;
      top: 12px;
      right: 12px;
      z-index: 5;
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border: 1px solid var(--line);
      border-radius: 11px;
      background: rgba(var(--ink-rgb), .05);
      color: var(--muted);
      font-size: 17px;
      line-height: 1;
      cursor: pointer;
      transition: color .2s, background .2s, border-color .2s, transform .28s var(--out);
    }

    .modal-close:hover {
      color: var(--text);
      background: rgba(var(--ink-rgb), .1);
      border-color: rgba(var(--ink-rgb), .22);
      transform: scale(1.08);
    }

    /* ---- 卡片（登录 / 注册 / 账号） ---- */
    .card {
      position: relative;
      padding: 24px 28px 18px;
      border: 1px solid var(--line);
      border-radius: 20px;
      overflow: hidden;               /* 让光环在卡片内扩散 */
      background: var(--panel-bg);
      box-shadow: 0 40px 90px -34px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(var(--ink-rgb), .06);
      -webkit-backdrop-filter: blur(18px);
      backdrop-filter: blur(18px);
      transition: box-shadow .6s var(--ease), border-color .6s var(--ease);
    }

    .card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 12%;
      right: 12%;
      height: 1px;
      z-index: 4;
      background: linear-gradient(90deg, transparent, rgba(var(--ink-rgb), .55), transparent);
    }

    /* 鼠标跟随光斑已移除（纯装饰） */
    .card-glow { display: none; }

    /* 表单层退场：加速往外走 */
    .card-shell {
      position: relative;
      z-index: 1;
      transition: opacity .3s var(--in), transform .34s var(--in), filter .3s var(--in);
    }

    .card-shell.is-out {
      opacity: 0;
      transform: translateY(-16px) scale(.97);
      filter: blur(5px);
      pointer-events: none;
    }

    .head { text-align: center; }

    .mark {
      width: 44px;
      height: 44px;
      margin: 0 auto;
      display: grid;
      place-items: center;
      border-radius: 12px;
      overflow: hidden;
      background: #fff;
      color: #0a0b10;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: .04em;
      box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .45);
    }

    .mark.is-logo {
      background: #fff;
      box-shadow: 0 8px 18px -14px rgba(0, 0, 0, .4);
    }

    .mark img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: contain;
    }

    .title {
      margin: 10px 0 4px;
      font-size: 20px;
      font-weight: 600;
      letter-spacing: .01em;
    }

    .sub {
      margin: 0;
      font-size: 12.5px;
      color: var(--muted);
    }

    /* 登录/注册：只显示绿/红点，不写「数据库连接正常」等文字 */
    .db-state {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-top: 10px;
      padding: 0;
      border: 0;
      background: transparent;
      line-height: 0;
      cursor: default;
    }

    .db-state #dbText {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .db-dot {
      width: 8px;
      height: 8px;
      flex: 0 0 auto;
      border-radius: 50%;
      background: var(--muted);
      opacity: .55;
    }

    .db-state[data-state="ok"] .db-dot {
      background: var(--ok);
      opacity: 1;
      animation: breathe 2.4s ease-out infinite;
    }

    .db-state[data-state="fail"] .db-dot {
      background: var(--err);
      opacity: 1;
    }

    .db-state[data-state="checking"] .db-dot {
      opacity: .45;
    }

    @keyframes breathe {
      0% { box-shadow: 0 0 0 0 rgba(var(--ok-rgb), .5); }
      100% { box-shadow: 0 0 0 9px rgba(var(--ok-rgb), 0); }
    }

    .switch {
      position: relative;
      display: flex;
      padding: 3px;
      margin: 14px 0 14px;
      border: 1px solid var(--line);
      border-radius: 13px;
      background: rgba(var(--ink-rgb), .04);
    }

    .switch-btn {
      position: relative;
      z-index: 1;
      flex: 1;
      height: 34px;
      border: 0;
      background: transparent;
      color: var(--muted);
      font-family: inherit;
      font-size: 13.5px;
      cursor: pointer;
      transition: color .3s var(--ease);
    }

    .switch-btn.is-active {
      color: #0a0b10;
      font-weight: 600;
    }

    .thumb {
      position: absolute;
      top: 4px;
      left: 4px;
      width: calc(50% - 4px);
      height: calc(100% - 8px);
      border-radius: 12px;
      background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
      box-shadow: 0 8px 20px -10px rgba(var(--accent-rgb), .9);
      transition: transform .48s var(--out);
    }

    .field {
      position: relative;
      margin-bottom: 12px;
    }

    .field input {
      width: 100%;
      padding: 16px 30px 6px 0;
      border: 0;
      background: transparent;
      color: var(--text);
      font-family: inherit;
      font-size: 14.5px;
      outline: none;
    }

    .field label {
      position: absolute;
      left: 0;
      top: 12px;
      font-size: 14px;
      color: var(--muted);
      pointer-events: none;
      transform-origin: left top;
      transition: transform .3s var(--out), color .3s;
    }

    .field input:focus + label,
    .field input:not(:placeholder-shown) + label,
    .field input:-webkit-autofill + label {
      transform: translateY(-11px) scale(.76);
      color: var(--accent-1);
    }

    .field input:-webkit-autofill {
      -webkit-text-fill-color: var(--text);
      transition: background-color 9999s ease-out;
    }

    .field .bar {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 1px;
      background: var(--line);
    }

    .field .bar::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
      transform: scaleX(0);
      transform-origin: left;
      transition: transform .46s var(--out);
    }

    .field input:focus ~ .bar::after { transform: scaleX(1); }

    .field.has-action input { padding-right: 108px; }

    .code-btn {
      position: absolute;
      right: 0;
      top: 8px;
      height: 28px;
      padding: 0 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(var(--ink-rgb), .04);
      color: var(--accent-1);
      font-family: inherit;
      font-size: 12px;
      cursor: pointer;
      transition: background .2s, border-color .2s, opacity .2s;
    }

    .code-btn:hover:not(:disabled) {
      background: rgba(var(--accent-rgb), .1);
      border-color: rgba(var(--accent-rgb), .35);
    }

    .code-btn:disabled {
      opacity: .45;
      cursor: not-allowed;
      color: var(--muted);
    }

    .eye {
      position: absolute;
      right: 0;
      top: 10px;
      width: 28px;
      height: 28px;
      padding: 4px;
      border: 0;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      transition: color .2s;
    }

    .eye:hover { color: var(--text); }
    .eye svg { width: 100%; height: 100%; display: block; }

    .eye .slash {
      opacity: 0;
      transition: opacity .2s;
    }

    .eye.is-visible .slash { opacity: 1; }

    .submit {
      position: relative;
      width: 100%;
      height: 44px;
      margin-top: 2px;
      border: 0;
      border-radius: 13px;
      background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
      color: #0a0b10;
      font-family: inherit;
      font-size: 15px;
      font-weight: 600;
      letter-spacing: .18em;
      text-indent: .18em;
      cursor: pointer;
      overflow: hidden;
      box-shadow: 0 16px 34px -16px rgba(var(--accent-rgb), .95);
      transition: transform .26s var(--out), box-shadow .22s, opacity .22s;
    }

    .submit::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(var(--ink-rgb), .35), transparent 60%);
      opacity: .5;
      pointer-events: none;
    }

    .submit:hover:not(:disabled) {
      transform: translateY(-1.5px);
      box-shadow: 0 22px 44px -18px rgba(var(--accent-rgb), 1);
    }

    .submit:active:not(:disabled) { transform: scale(.985); transition-duration: .09s; }
    .submit:disabled { opacity: .6; cursor: not-allowed; }

    .submit-text {
      position: relative;
      z-index: 1;
      transition: opacity .2s;
    }

    .submit.is-loading .submit-text { opacity: 0; }

    .spinner {
      position: absolute;
      z-index: 1;
      top: 50%;
      left: 50%;
      width: 17px;
      height: 17px;
      margin: -8.5px 0 0 -8.5px;
      border: 2px solid rgba(10, 11, 16, .3);
      border-top-color: #0a0b10;
      border-radius: 50%;
      opacity: 0;
      animation: spin .7s linear infinite;
      transition: opacity .16s;
    }

    .submit.is-loading .spinner { opacity: 1; }

    @keyframes spin { to { transform: rotate(1turn); } }

    .message {
      min-height: 16px;
      margin: 8px 0 0;
      font-size: 12px;
      line-height: 1.45;
      text-align: center;
      color: var(--muted);
      word-break: break-word;
    }

    .message.ok { color: rgba(var(--ok-rgb), .95); }
    .message.err { color: rgba(var(--err-rgb), .95); }

    .foot {
      margin: 10px 0 0;
      padding-top: 10px;
      border-top: 1px solid var(--line);
      font-size: 11.5px;
      line-height: 1.6;
      text-align: center;
      color: rgba(var(--text-rgb), .3);
    }

    .auth-links {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      margin: 10px 0 0;
      min-height: 20px;
    }

    .auth-links .link-btn {
      appearance: none;
      border: 0;
      background: none;
      padding: 0;
      font: inherit;
      font-size: 12.5px;
      color: rgba(var(--text-rgb), .48);
      cursor: pointer;
      text-decoration: underline;
      text-underline-offset: 3px;
      transition: color .18s var(--ease);
    }

    .auth-links .link-btn:hover {
      color: rgba(var(--text-rgb), .82);
    }

    #authForm {
      display: flex;
      flex-direction: column;
    }

    #authModal.is-reset #emailField { order: 1; }
    #authModal.is-reset #codeField { order: 2; }
    #authModal.is-reset #passwordField { order: 3; }
    #authModal.is-reset #passwordConfirmField { order: 4; }
    #authModal.is-reset #submitBtn { order: 5; }
    #authModal.is-reset .auth-links { order: 6; }

    /* ---- 注册时的头像选择 ---- */
    .avatar-pick {
      margin-bottom: 12px;
      padding: 10px 12px 12px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: rgba(var(--ink-rgb), .025);
      animation: rise .35s var(--ease) both;
    }

    .avatar-pick-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 8px;
    }

    .avatar-pick-head span {
      font-size: 13px;
      color: var(--text);
    }

    .avatar-pick-head small {
      font-size: 11px;
      color: rgba(var(--text-rgb), .34);
      text-align: right;
    }

    .avatar-pick-body {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .avatar-pick .user-avatar {
      width: 54px;
      height: 54px;
      border-radius: 18px;
      font-size: 22px;
      flex: 0 0 auto;
      transition: transform .4s var(--out);
    }

    .avatar-pick .user-avatar.is-fresh { transform: scale(1.06); }

    .avatar-pick-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .mini-btn {
      height: 34px;
      padding: 0 16px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: rgba(var(--ink-rgb), .05);
      color: var(--text);
      font-family: inherit;
      font-size: 12.5px;
      cursor: pointer;
      transition: background .2s, border-color .2s, transform .22s var(--out);
    }

    .mini-btn:hover {
      background: rgba(var(--ink-rgb), .1);
      border-color: rgba(var(--ink-rgb), .22);
      transform: translateY(-1px);
    }

    .mini-btn:active { transform: scale(.96); transition-duration: .09s; }

    /* ---- 登录成功：只用一道主色描边提示，不再发光 ---- */
    .card.is-celebrate {
      border-color: var(--accent-1);
    }

    /* 登录成功的涟漪扩散已移除（纯装饰），DOM 保留但不再渲染 */
    .ripple { display: none; }

    /* 成功面板：退场快、进场慢 */
    .done {
      position: absolute;
      inset: 0;
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 30px;
      text-align: center;
      opacity: 0;
      transform: translateY(14px) scale(.97);
      transition: opacity .2s var(--in), transform .24s var(--in);
      pointer-events: none;
    }

    .done.is-in {
      opacity: 1;
      transform: none;
      transition: opacity .36s var(--ease), transform .52s var(--out);
      pointer-events: auto;
    }

    .avatar {
      width: 76px;
      height: 76px;
      border-radius: 26px;
      font-size: 30px;
      box-shadow: 0 20px 44px -18px rgba(var(--accent-rgb), .95);
      opacity: 0;
      transform: scale(.55) rotate(-8deg);
      transition: transform .6s cubic-bezier(.2, 1.5, .45, 1), opacity .4s var(--ease);
    }

    .done.is-in .avatar {
      opacity: 1;
      transform: none;
    }

    /* 头像之后，标题 / 名字 / 按钮依次浮现（只作用于成功面板内部） */
    .done .done-title,
    .done .done-sub,
    .done .ghost {
      opacity: 0;
      transform: translateY(10px);
      transition: opacity .4s var(--ease), transform .52s var(--out);
    }

    .done.is-in .done-title,
    .done.is-in .done-sub,
    .done.is-in .ghost {
      opacity: 1;
      transform: none;
    }

    .done.is-in .done-title { transition-delay: .1s; }
    .done.is-in .done-sub { transition-delay: .16s; }
    .done.is-in .ghost { transition-delay: .22s; }

    .done-title {
      margin: 20px 0 6px;
      font-size: 22px;
      font-weight: 600;
    }

    .done-sub {
      margin: 0;
      font-size: 13.5px;
      color: var(--muted);
      word-break: break-word;
    }

    .ghost {
      margin-top: 22px;
      height: 42px;
      padding: 0 24px;
      border: 1px solid var(--line);
      border-radius: 13px;
      background: rgba(var(--ink-rgb), .045);
      color: var(--text);
      font-family: inherit;
      font-size: 13.5px;
      cursor: pointer;
      transition: opacity .4s var(--ease), transform .52s var(--out), background .22s, border-color .22s;
    }

    .ghost:hover,
    .done.is-in .ghost:hover {
      background: rgba(var(--ink-rgb), .09);
      border-color: rgba(var(--ink-rgb), .22);
      transform: translateY(-1px);
      transition-delay: 0s;
    }

    .ghost.danger {
      color: rgba(var(--err-rgb), .95);
      border-color: rgba(var(--err-rgb), .25);
    }

    .ghost.danger:hover {
      background: rgba(var(--err-rgb), .1);
      border-color: rgba(var(--err-rgb), .45);
    }

    /* ============================================================
       账号 / 头像面板
       ============================================================ */

    .account {
      position: relative;
      z-index: 1;
      text-align: center;
    }

    .account .title { margin-top: 0; }

    .avatar-preview {
      width: 104px;
      height: 104px;
      margin: 18px auto 14px;
      border-radius: 32px;
      font-size: 40px;
      box-shadow: 0 22px 46px -20px rgba(var(--accent-rgb), .95);
      transition: transform .5s var(--out);
    }

    .avatar-preview.is-picking { transform: scale(1.04); }

    .account-name {
      margin: 0 0 16px;
      font-size: 14px;
      color: var(--muted);
      word-break: break-word;
    }

    .btn-soft {
      height: 42px;
      padding: 0 24px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: rgba(var(--ink-rgb), .05);
      color: var(--text);
      font-family: inherit;
      font-size: 13.5px;
      cursor: pointer;
      transition: background .22s, border-color .22s, transform .26s var(--out);
    }

    .btn-soft:hover {
      background: rgba(var(--ink-rgb), .1);
      border-color: rgba(var(--ink-rgb), .22);
      transform: translateY(-1px);
    }

    .hint {
      margin: 12px 0 20px;
      font-size: 11.5px;
      line-height: 1.75;
      color: rgba(var(--text-rgb), .34);
    }

    .account-actions {
      display: flex;
      gap: 10px;
      margin-top: 14px;
    }

    .account-actions .ghost {
      flex: 1;
      margin-top: 0;
    }

    /* 纸屑动画已移除（纯装饰粒子），DOM 保留但不再渲染 */
    .confetti { display: none; }

    /* 轻提示 */
    .toast {
      position: fixed;
      left: 50%;
      bottom: 30px;
      z-index: 95;
      padding: 12px 22px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--panel-solid);
      -webkit-backdrop-filter: blur(14px);
      backdrop-filter: blur(14px);
      font-size: 13.5px;
      color: var(--text);
      opacity: 0;
      transform: translate(-50%, 18px) scale(.96);
      pointer-events: none;
      transition: opacity .22s var(--in), transform .26s var(--in);
    }

    .toast.is-in {
      opacity: 1;
      transform: translate(-50%, 0) scale(1);
      transition: opacity .3s var(--ease), transform .48s var(--out);
    }

    /* ============================================================
       响应式 · 移动端简约 + 丝滑
       ============================================================ */

    @media (max-width: 880px) {
      :root { --nav-h: 60px; }

      .nav-links { display: none; }
      .burger { display: flex; }
      .nav-actions {
        margin-left: auto;
        gap: 0;
        padding-left: 0;
        border-left: 0;
      }

      /* 打开全屏菜单时锁滚动 */
      body.nav-menu-open,
      body:has(.burger.is-open) {
        overflow: hidden;
        touch-action: none;
      }

      .nav {
        padding-top: var(--safe-top);
        transition: transform .4s var(--out), background-color .3s var(--ease);
        z-index: 1000;
        overflow: visible;
      }

      /* 非首页移动端：磨砂顶栏 */
      body:not([data-page="home"]) .nav {
        background: color-mix(in srgb, var(--bg) 78%, transparent);
        -webkit-backdrop-filter: blur(14px) saturate(140%);
        backdrop-filter: blur(14px) saturate(140%);
      }

      /* 首页移动端：极淡底 + 一点点模糊 */
      body[data-page="home"] .nav,
      body[data-page="home"] .nav.is-scrolled {
        background: color-mix(in srgb, var(--bg) 28%, transparent) !important;
        -webkit-backdrop-filter: blur(6px) saturate(120%) !important;
        backdrop-filter: blur(6px) saturate(120%) !important;
        box-shadow: none !important;
      }

      /* 菜单打开：非首页顶栏浅灰；首页叠在菜单灰底上，去掉模糊避免发脏 */
      body.nav-menu-open:not([data-page="home"]) .nav,
      body:not([data-page="home"]):has(.burger.is-open) .nav,
      body.nav-menu-open:not([data-page="home"]) .nav.is-scrolled,
      body:not([data-page="home"]):has(.burger.is-open) .nav.is-scrolled {
        background: #f4f4f4 !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        border-bottom: 0;
        transform: none !important;
        will-change: auto;
        pointer-events: auto;
      }

      body[data-page="home"].nav-menu-open .nav,
      body[data-page="home"]:has(.burger.is-open) .nav,
      body[data-page="home"].nav-menu-open .nav.is-scrolled,
      body[data-page="home"]:has(.burger.is-open) .nav.is-scrolled {
        background: transparent !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        border-bottom: 0;
        transform: none !important;
        will-change: auto;
        pointer-events: auto;
      }

      body.nav-menu-open .nav.is-hidden,
      body:has(.burger.is-open) .nav.is-hidden {
        transform: none !important;
        pointer-events: auto;
      }

      body.nav-menu-open .burger,
      body:has(.burger.is-open) .burger {
        width: 40px;
        height: 40px;
        border-radius: 0;
        background: transparent;
        order: 99;
      }

      body.nav-menu-open .burger span,
      body:has(.burger.is-open) .burger span {
        width: 18px;
        height: 2px;
        background: #0a0a0a;
      }

      body.nav-menu-open .burger.is-open span:first-child,
      body:has(.burger.is-open) .burger.is-open span:first-child {
        transform: translateY(3px) rotate(45deg);
      }

      body.nav-menu-open .burger.is-open span:last-child,
      body:has(.burger.is-open) .burger.is-open span:last-child {
        transform: translateY(-3px) rotate(-45deg);
      }

      body.nav-menu-open .nav-icon,
      body:has(.burger.is-open) .nav-icon,
      body.nav-menu-open .brand-name,
      body:has(.burger.is-open) .brand-name {
        color: #0a0a0a;
      }

      .nav-inner {
        max-width: 100%;
        padding: 0 14px;
        gap: 10px;
        justify-content: space-between;
      }

      /* Tkong 式全屏汉堡：fixed 铺满视口 · #f4f4f4 · 搜索 · 大号竖排链接 */
      .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        z-index: 990;
        display: flex;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding:
          calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 20px)
          20px
          calc(24px + env(safe-area-inset-bottom, 0px));
        border: 0;
        background: #f4f4f4;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        opacity: 0;
        transform: translate3d(0, 16px, 0);
        pointer-events: none;
        transition:
          opacity .34s cubic-bezier(.22, 1, .36, 1),
          transform .4s cubic-bezier(.22, 1, .36, 1);
      }

      .mobile-menu.is-open {
        opacity: 1;
        transform: none;
        pointer-events: auto;
      }

      .mobile-menu.is-closing {
        opacity: 0;
        transform: translate3d(0, 12px, 0);
        pointer-events: none;
      }

      .mobile-menu .mobile-menu-search {
        opacity: 0;
        transform: translate3d(0, 8px, 0);
      }

      .mobile-menu.is-open .mobile-menu-search {
        animation: mobile-menu-search-in .36s cubic-bezier(.22, 1, .36, 1) .04s both;
      }

      .mobile-menu .mobile-menu-links a,
      .mobile-menu .mobile-login {
        opacity: 0;
        transform: translate3d(0, 14px, 0);
      }

      .mobile-menu.is-open .mobile-menu-links a,
      .mobile-menu.is-open .mobile-login {
        animation: mobile-menu-link-in .42s cubic-bezier(.22, 1, .36, 1) both;
      }

      .mobile-menu.is-open .mobile-menu-links a:nth-child(1) { animation-delay: .06s; }
      .mobile-menu.is-open .mobile-menu-links a:nth-child(2) { animation-delay: .1s; }
      .mobile-menu.is-open .mobile-menu-links a:nth-child(3) { animation-delay: .14s; }
      .mobile-menu.is-open .mobile-menu-links a:nth-child(4) { animation-delay: .18s; }
      .mobile-menu.is-open .mobile-menu-links a:nth-child(5) { animation-delay: .22s; }
      .mobile-menu.is-open .mobile-menu-links a:nth-child(6) { animation-delay: .26s; }
      .mobile-menu.is-open .mobile-menu-links a:nth-child(7) { animation-delay: .3s; }
      .mobile-menu.is-open .mobile-menu-links a:nth-child(8) { animation-delay: .34s; }
      .mobile-menu.is-open .mobile-login { animation-delay: .38s; }

      .mobile-menu.is-closing .mobile-menu-search,
      .mobile-menu.is-closing .mobile-menu-links a,
      .mobile-menu.is-closing .mobile-login {
        animation: none;
        opacity: 0;
        transition: opacity .2s ease;
      }

      .brand { gap: 8px; }
      .brand-mark { width: 28px; height: 28px; }
      .brand-name {
        font-size: 14px;
        max-width: min(46vw, 180px);
      }

      .nav-icon {
        width: 40px;
        height: 40px;
      }

      .nav-icon:not(.nav-user-btn):not(.nav-mail):not(.theme-toggle) { display: none; }
      .user-chip-name { display: none; }

      /* 轮播：直角、左右留边、加高 */
      .carousel-section {
        padding: calc(var(--nav-h) + var(--safe-top) + 10px) 12px 0;
      }
      .carousel {
        height: auto;
        aspect-ratio: 2 / 1;
        border-radius: 0;
        border: 0;
      }
      .message-banner {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
      }
      .message-banner-stage { height: 28px; }
      .carousel-slide img {
        transition: opacity .55s var(--ease), transform 1.1s var(--out);
      }
      .carousel-arrow {
        width: 36px;
        height: 36px;
        margin-top: -18px;
        opacity: .82;
      }
      .carousel-arrow.prev { left: 8px; }
      .carousel-arrow.next { right: 8px; }
      .carousel-dots { bottom: 12px; gap: 6px; }

      .section { padding: 18px 14px 28px; }
      .section-title { font-size: clamp(22px, 6vw, 28px); letter-spacing: -.03em; }

      /* 创作者：只要标签 + 头像 + 姓名；小李已独立固定在右下 */
      .creators-dock {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin: 12px 0 2px;
        padding: 0;
        max-height: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        pointer-events: auto;
        z-index: 4;
      }

      .ai-wrap {
        left: max(12px, env(safe-area-inset-left, 0px));
        right: max(12px, env(safe-area-inset-right, 0px));
        top: auto;
        bottom: max(14px, env(safe-area-inset-bottom, 0px));
        transform: none;
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 8px;
      }

      .ai-xiaoli-btn {
        align-self: flex-start;
        min-width: 0;
        height: 44px;
        padding: 0 16px;
        font-size: 14px;
      }

      .ai-assistant {
        width: 100%;
        height: min(68dvh, 460px);
        max-height: min(68dvh, 460px);
        border-radius: 20px;
        transform-origin: bottom left;
      }

      .ai-chips {
        flex-wrap: nowrap;
        max-height: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }

      .ai-chips::-webkit-scrollbar { display: none; }

      .ai-chip {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 12.5px;
      }

      .ai-assistant-msgs {
        font-size: 14px;
      }

      .ai-msg { font-size: 14px; }

      .ai-assistant-form input {
        height: 44px;
        font-size: 16px;
      }

      .ai-assistant-form button {
        width: 44px;
        height: 44px;
      }

      .creators-capsule {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        max-height: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
      }

      .creators-label {
        display: block;
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        letter-spacing: .18em;
        font-size: 12px;
        font-weight: 700;
        color: #fff;
        line-height: 1;
        padding: 0 2px;
      }

      .creators-grid {
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 2px 2px 4px;
        scrollbar-width: none;
      }

      .creators-grid::-webkit-scrollbar { display: none; }

      .creator-card {
        width: 64px;
        flex: 0 0 64px;
        scroll-snap-align: start;
        gap: 6px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        opacity: 1;
        transition: opacity .22s ease, transform .28s var(--out);
      }

      .creator-card:active {
        transform: scale(.96);
      }

      .creator-avatar {
        width: 52px;
        height: 52px;
        font-size: 18px;
        margin: 0;
      }

      .creator-name {
        max-width: 100%;
        font-size: 12px;
        font-weight: 650;
        color: var(--text-strong);
        letter-spacing: -.01em;
        line-height: 1.2;
      }

      .posts-slider-shell { --post-visible: 2; padding: 0 40px; }
      .posts-nav { width: 38px; height: 38px; margin-top: -19px; }
      .post-media { border-radius: 12px; }
      .post-title { font-size: 14px; }

      .publish-fab {
        right: max(14px, env(safe-area-inset-right, 0px));
        bottom: max(16px, calc(12px + var(--safe-bottom)));
        width: 44px;
        height: 44px;
        transition: background .25s var(--ease), border-color .25s var(--ease), transform .32s var(--out);
      }
      .publish-fab:active { transform: scale(.94); }

      .site-footer { padding: 24px 16px calc(28px + var(--safe-bottom)); }

      /* 触控反馈更干净 */
      a, button {
        -webkit-tap-highlight-color: transparent;
      }
    }

    @media (max-width: 560px) {
      .posts-slider-shell { --post-visible: 1; padding: 0 36px; }
      .posts-head {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 14px;
      }
      .posts-waterfall {
        grid-template-columns: 1fr;
        gap: 14px;
      }

      .creator-card { width: 58px; flex-basis: 58px; }
      .creator-avatar { width: 48px; height: 48px; font-size: 16px; }
      .creator-name { font-size: 11.5px; }

      .section-desc { font-size: 13px; line-height: 1.5; }
      .post-card {
        animation-duration: .5s;
      }

      .modal-body {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 16px 16px 0 0;
        align-self: flex-end;
        animation: menu-rise .4s var(--out) both;
        max-height: min(92dvh, 100%);
      }
      .modal {
        align-items: flex-end;
        padding: 0;
      }
      .card {
        border-radius: 16px 16px 0 0;
        padding: 14px 16px calc(12px + var(--safe-bottom));
        max-height: min(92dvh, 100%);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }

      /* 登录/注册：移动端整体收紧 */
      #authModal .mark {
        width: 34px;
        height: 34px;
        border-radius: 9px;
      }
      #authModal .title {
        margin: 6px 0 2px;
        font-size: 17px;
      }
      #authModal .sub {
        font-size: 11.5px;
      }
      #authModal .db-state {
        margin-top: 6px;
      }
      #authModal .switch {
        margin: 10px 0;
        border-radius: 11px;
      }
      #authModal .switch-btn {
        height: 30px;
        font-size: 13px;
      }
      #authModal .field {
        margin-bottom: 8px;
      }
      #authModal .field input {
        padding: 13px 30px 4px 0;
        font-size: 16px; /* iOS 避免自动放大 */
      }
      #authModal .field label {
        top: 10px;
        font-size: 13px;
      }
      #authModal .code-btn {
        top: 6px;
        height: 26px;
        font-size: 11.5px;
        padding: 0 8px;
      }
      #authModal .submit {
        height: 42px;
        margin-top: 2px;
        font-size: 14px;
        border-radius: 12px;
      }
      #authModal .foot {
        margin-top: 8px;
        font-size: 11px;
        line-height: 1.4;
      }
      #authModal .avatar-pick {
        margin: 6px 0 8px;
        padding: 8px 10px;
      }
      #authModal .modal-close {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
        border-radius: 9px;
        font-size: 15px;
      }
      #authModal .message {
        font-size: 12px;
        margin-top: 6px;
      }
    }

    @media (max-width: 420px) {
      .brand-name { max-width: min(42vw, 150px); font-size: 13px; }
      .title { font-size: 18px; }
      #authModal .title { font-size: 16px; }
      #authModal .card {
        padding: 12px 14px calc(10px + var(--safe-bottom));
      }
      #authModal .foot {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      .avatar { width: 64px; height: 64px; border-radius: 20px; font-size: 26px; }
      .avatar-preview { width: 88px; height: 88px; border-radius: 26px; font-size: 32px; }
      .brand-text small { display: none; }
      .avatar-pick-body { gap: 10px; }
      .avatar-pick .user-avatar { width: 44px; height: 44px; font-size: 18px; }
      .carousel {
        height: auto;
        aspect-ratio: 2 / 1;
        border-radius: 0;
      }
      .carousel-section { padding: calc(var(--nav-h) + var(--safe-top) + 8px) 10px 0; }
      .section { padding: 14px 12px 24px; }
      .carousel-dots { bottom: 10px; gap: 6px; }
      .ai-xiaoli-label { letter-spacing: .02em; }
    }

    /* 触控设备：去掉 hover 位移，保留按压缩放，动画更稳 */
    @media (hover: none) and (pointer: coarse) {
      .post-media:hover img,
      .post-media:hover {
        transform: none;
        filter: none;
      }
      .carousel-arrow:hover,
      .posts-nav:hover:not(:disabled) {
        transform: none;
      }
      .publish-fab:hover { transform: none; }

      .post-card,
      .reveal,
      .feed-card {
        animation-timing-function: var(--out);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .aura span, .hero > *, .mobile-menu, .user-chip, .avatar-pick, .db-state[data-state="ok"] .db-dot { animation: none; }
      .ripple, .confetti { display: none; }
      .reveal { opacity: 1; transform: none; }
      .done .done-title, .done .done-sub, .done .ghost { opacity: 1; transform: none; }
      .carousel { animation: none; }
      .carousel-slide img { opacity: 1; transform: none; }
      .post-card { animation: none; opacity: 1; }
      .ai-assistant, .ai-xiaoli-btn, .ai-msg, .ai-chip, .ai-icon-btn, .ai-close { transition: none !important; animation: none !important; }
      .ai-wrap.is-open .ai-assistant { transform: none; }
      .posts-slider-track { transition: none !important; }
      .nav { transition: none; }
      * { transition-duration: .01ms !important; }
    }

    /* ============================================================
       简约化收尾：去掉 hover 时的位移与放大
       只保留颜色 / 边框 / 阴影反馈，交互依然清楚，但不再"跳一下"
       ============================================================ */

    .brand:hover .brand-mark,
    .post-media:hover,
    .post-media:hover img,
    .posts-nav:hover:not(:disabled),
    .publish-tag.is-on,
    .btn-primary:hover:not(:active),
    .btn-ghost:hover:not(:active),
    .publish-fab:hover:not(:active),
    .submit:hover:not(:active),
    .mini-btn:hover:not(:active),
    .btn-soft:hover:not(:active),
    .ghost:hover:not(:active),
    .done.is-in .ghost:hover,
    .modal-close:hover:not(:active) {
      transform: none;
    }

    /* ============================================================
       浅色主题补充：深色底上的重投影在白底会显脏，统一调轻
       ============================================================ */

    [data-theme="light"] .card,
    [data-theme="light"] .toast,
    [data-theme="light"] .ai-assistant {
      box-shadow: 0 22px 48px -28px rgba(16, 18, 22, .28);
    }

    [data-theme="light"] .ai-xiaoli-btn {
      background: rgba(255, 255, 255, .86);
      box-shadow: 0 12px 28px -18px rgba(16, 18, 22, .35);
    }

    /* 卡片顶部那道光高线是给深色底做的，浅色底上会变成一道黑边 */
    [data-theme="light"] .card::before {
      display: none;
    }

    [data-theme="light"] .carousel {
      box-shadow: 0 24px 60px -42px rgba(16, 18, 22, .35);
    }

    [data-theme="light"] .post-media {
      box-shadow: 0 14px 34px -28px rgba(16, 18, 22, .32);
    }

    [data-theme="light"] .posts-nav {
      box-shadow: 0 10px 24px -16px rgba(16, 18, 22, .3);
    }

    /* 主色元素原本靠发光压在深色底上，浅色底只需要一点点 */
    [data-theme="light"] .mark {
      background: #f6f6f7;
      border: 1px solid rgba(17, 24, 39, .08);
      box-shadow: none;
    }

    [data-theme="light"] .thumb,
    [data-theme="light"] .submit,
    [data-theme="light"] .btn-primary,
    [data-theme="light"] .avatar,
    [data-theme="light"] .avatar-preview {
      box-shadow: 0 12px 26px -18px rgba(47, 107, 255, .6);
    }

    [data-theme="light"] .publish-fab {
      background: rgba(255, 255, 255, .92);
      color: #141414;
      border-color: rgba(20, 20, 20, .12);
      box-shadow: 0 6px 16px rgba(16, 18, 22, .12);
    }

    [data-theme="light"] .publish-fab:hover {
      background: #fff;
      border-color: rgba(20, 20, 20, .22);
    }

    /* ============================================================
       深/浅主题切换按钮（全站）
       首页把它静态写在导航里，其余前台页面由 site.js 注入到 .nav-actions，
       所以样式必须放在这里，不能只留在 index.html 的私有样式层。
       两个图标叠在同一格交叉淡入，切换时不做"跳变"。
       ============================================================ */

    .theme-toggle {
      position: relative;
    }

    .theme-toggle svg {
      position: absolute;
      inset: 0;
      margin: auto;
      width: 19px;
      height: 19px;
      transition: opacity .26s var(--ease), transform .34s var(--out);
    }

    .theme-toggle .icon-moon {
      opacity: 0;
      transform: rotate(-40deg) scale(.7);
    }

    [data-theme="light"] .theme-toggle .icon-sun {
      opacity: 0;
      transform: rotate(40deg) scale(.7);
    }

    [data-theme="light"] .theme-toggle .icon-moon {
      opacity: 1;
      transform: none;
    }
