    /* 早期浅色模式：在body.light-mode生效前，通过html.light-mode-early设置浅色背景，防止闪黑 */
    html.light-mode-early {
      background: #FCFFFD;
    }
    html.light-mode-early body {
      background: #FCFFFD !important;
      color: #333333;
    }
    /* 早期：广告暂隐藏，筛选在顶栏 */
    html.light-mode-early .hero-section {
      display: none !important;
    }
    html.light-mode-early .page-top-header .filter-section {
      flex: 1 1 auto !important;
      min-width: 0 !important;
      padding: 0 !important;
      height: auto !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }
    html.light-mode-early .page-top-header .filter-tabs {
      justify-content: center;
      gap: 12px;
    }
    html.light-mode-early .filter-tab {
      color: #999999;
      background: transparent;
    }
    html.light-mode-early .filter-tab.active {
      color: #333333;
      background: #EEEEEE;
    }
    html.light-mode-early .page-wrapper {
      background: transparent !important;
    }
    html.light-mode-early .light-ambient-bg {
      display: block !important;
    }
    html.light-mode-early .footer-text {
      color: #CCCCCC;
    }
    /* 早期浅色模式下的按钮样式 */
    html.light-mode-early .temp-file-btn {
      background: #EEEEEE !important;
    }
    html.light-mode-early .temp-file-btn-text {
      color: #333333 !important;
    }
    html.light-mode-early .temp-file-btn-icon {
      opacity: 1 !important;
      filter: brightness(0) saturate(100%) !important;
    }
    html.light-mode-early .collapse-btn {
      background: #EEEEEE !important;
    }
    html.light-mode-early .collapse-btn img {
      filter: brightness(0) saturate(100%) invert(18%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(96%) contrast(87%) !important;
      opacity: 1 !important;
    }
    /* 早期浅色模式下的境内/境外切换按钮 */
    html.light-mode-early .region-toggle-btn {
      background: #EEEEEE !important;
    }
    html.light-mode-early .region-toggle-text {
      color: #333333 !important;
    }
    html.light-mode-early .region-toggle-icon {
      opacity: 1 !important;
      filter: brightness(0) saturate(100%) !important;
    }
    /* 早期浅色模式下的主题切换按钮 */
    html.light-mode-early .theme-toggle-btn {
      background: #EEEEEE !important;
    }
    html.light-mode-early .theme-toggle-icon {
      filter: brightness(0) saturate(100%) !important;
      opacity: 1 !important;
    }
    /* 早期浅色模式下图标：隐藏太阳，显示月亮 */
    html.light-mode-early .theme-icon-sun {
      display: none !important;
    }
    html.light-mode-early .theme-icon-moon {
      display: inline-block !important;
    }
    html.light-mode-early .cards-section {
      padding-top: 40px !important;
    }
    html.light-mode-early .action-bar {
      display: none !important;
    }
    html.light-mode-early .page-top-header {
      display: flex;
    }
    html.light-mode-early .page-logo-icon,
    html.light-mode-early .top-right-btns {
      position: relative;
      top: auto;
      left: auto;
      right: auto;
    }
    html.light-mode-early #template-filter-anchor {
      display: none !important;
    }
    /* ===== Reset & Base ===== */
    *, *::before, *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html, body {
      height: 100%;
      overflow-x: hidden;
      scrollbar-width: none; /* Firefox */
      -ms-overflow-style: none; /* IE/Edge */
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
      display: none; /* Chrome/Safari */
    }

    body {
      background: #000000;
      color: #ffffff;
      font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      min-width: 320px;
    }

    /* ===== Page Container ===== */
    .page-wrapper {
      width: 100%;
      max-width: none;
      margin: 0;
      position: relative;
      z-index: 1;
      padding-top: 0;
      min-height: 100vh;
      background: #000000;
    }

    /* ===== 顶部栏：Logo + 筛选 + 右侧按钮同一行 ===== */
    .page-top-header {
      width: 100%;
      max-width: none;
      margin: 0;
      padding: 40px var(--page-content-padding-x, 40px) 0;
      position: relative;
      z-index: 100;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      box-sizing: border-box;
      min-height: 39px;
    }

    .page-top-header .filter-section {
      flex: 1 1 auto;
      min-width: 0;
      margin: 0;
      padding: 4px 0 0;
      height: auto;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .page-top-header .filter-tabs {
      justify-content: center;
      gap: 12px;
    }

    .page-top-header #template-filter-anchor {
      display: none;
    }

    .page-logo-icon {
      position: relative;
      top: auto;
      left: auto;
      width: 44px;
      height: 39px;
      flex-shrink: 0;
      pointer-events: auto;
      cursor: pointer;
    }

    .page-logo-icon img {
      width: 100%;
      height: 100%;
      display: block;
    }

    /* ===== Hero Banner（暂隐藏，保留 DOM 供后续启用） ===== */
    .hero-section {
      display: none !important;
      width: 100%;
      height: 0;
      overflow: hidden;
      pointer-events: none;
      background: #000000;
    }

    .hero-bg-container {
      position: absolute;
      inset: 0;
      overflow: hidden;
    }

    .hero-bg {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      background: #000000;
      opacity: 0;
      position: absolute;
      top: 0;
      left: 0;
      transform: translateX(20px);
      transition: opacity 1.2s ease, transform 1.2s ease;
      z-index: 1;
    }

    .hero-bg.active {
      opacity: 1;
      transform: translateX(0);
      z-index: 3;
    }

    .hero-bg.no-transition {
      transition: none !important;
    }

    .hero-bg.exiting {
      opacity: 0;
      transform: translateX(-20px);
      z-index: 2;
    }

    .hero-media-loading {
      position: absolute;
      inset: 0;
      z-index: 8;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      background: #000000;
      opacity: 1;
      visibility: visible;
      transition: opacity .22s ease, visibility 0s linear .22s;
    }

    .hero-media-loading.is-hidden {
      opacity: 0;
      visibility: hidden;
    }

    .hero-media-loading-spinner {
      width: var(--loading-spinner-size-sm, 22px);
      height: var(--loading-spinner-size-sm, 22px);
      border-radius: 50%;
      border: var(--loading-spinner-stroke-sm, 3px) solid var(--loading-spinner-track, rgba(255, 255, 255, 0.30));
      border-top-color: var(--loading-spinner-head, #FFFFFF);
      box-sizing: border-box;
      animation: heroMiniLoadingSpin var(--loading-spinner-duration, 0.9s) linear infinite;
    }

    @keyframes heroMiniLoadingSpin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    .hero-overlay {
      position: absolute;
      inset: 0;
      z-index: 3;
      background: none;
    }

    .hero-content-wrapper {
      position: absolute;
      left: 260px;
      top: 160px;
      width: 630px;
      max-width: calc(100% - 24%);
      height: auto;
      background: transparent;
      box-sizing: border-box;
      z-index: 4;
      opacity: 0;
      transform: translateY(30px);
      /* 默认无过渡，移除animate-in时瞬间消失 */
    }

    .hero-content-wrapper.animate-in {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    }

    .hero-title {
      color: #ffffff;
      font-family: "PingFang SC";
      font-size: 90px;
      font-style: normal;
      font-weight: 400;
      line-height: 126px;
      margin: 0 0 60px 0;
      width: 100%;
      box-sizing: border-box;
      white-space: normal;
      opacity: 0;
      transform: translateY(20px);
      /* 默认无过渡，瞬间消失 */
    }

    .hero-content-wrapper.animate-in .hero-title {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
    }

    .hero-info-block {
      width: 100%;
      background: transparent;
      padding: 0;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }

    .hero-subtitle {
      font-size: 28px;
      font-weight: 400;
      color: #ffffff;
      margin: 0;
      line-height: 39.2px;
      width: 100%;
      box-sizing: border-box;
      margin-bottom: 20px;
      opacity: 0;
      transform: translateY(20px);
      /* 默认无过渡，瞬间消失 */
    }

    .hero-content-wrapper.animate-in .hero-subtitle {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.6s ease-out 0.4s, transform 0.6s ease-out 0.4s;
    }

    .hero-subtitle span {
      font-weight: 400;
    }

    .hero-description {
      font-size: 14px;
      font-weight: 400;
      color: #999999;
      line-height: 24px;
      margin: 0 0 28px 0;
      width: 100%;
      box-sizing: border-box;
      max-height: 48px;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      word-break: break-word;
      opacity: 0;
      transform: translateY(20px);
      /* 默认无过渡，瞬间消失 */
    }

    .hero-content-wrapper.animate-in .hero-description {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.6s ease-out 0.5s, transform 0.6s ease-out 0.5s;
    }

    @media (max-width: 1024px) {
      .hero-content-wrapper {
        left: 40px;
        max-width: calc(100% - 80px);
        width: 100%;
      }

      .action-bar {
        padding: 0 24px;
      }

      .action-btn {
        max-width: calc(50% - 12px);
      }
    }

    @media (max-width: 768px) {
      .hero-content-wrapper {
        left: 24px;
        top: 140px;
        max-width: calc(100% - 48px);
        width: 100%;
      }

      .hero-subtitle {
        font-size: 24px;
      }

      .action-bar {
        padding: 0 24px;
        gap: 12px;
      }

      .action-btn {
        min-width: calc(50% - 6px);
        max-width: calc(50% - 6px);
      }
    }

    .hero-cta-btn {
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      gap: 6px;
      width: 94px;
      height: 36px;
      background: rgba(255, 255, 255, 0.047);
      border: 1px solid rgba(255, 255, 255, 0.067);
      border-radius: 8px;
      color: #999999;
      font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      font-size: 14px;
      font-weight: 400;
      line-height: 19.6px;
      cursor: pointer;
      text-decoration: none;
      padding: 0 15px;
      box-sizing: border-box;
      flex-shrink: 0;
      white-space: nowrap;
      word-break: keep-all;
      opacity: 0;
      transform: translateY(20px);
      /* 默认无出现动画过渡，瞬间消失；仅保留hover的背景和颜色过渡 */
      transition: background 0.2s ease, color 0.2s ease;
    }

    .hero-cta-btn img {
      width: 14px;
      height: 14px;
      display: block;
      flex: none;
    }

    .hero-content-wrapper.animate-in .hero-cta-btn {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.6s ease-out 0.6s, transform 0.6s ease-out 0.6s, background 0.2s ease, color 0.2s ease;
    }

    .hero-cta-btn:hover {
      background: rgba(255, 255, 255, 0.1);
      color: #ffffff;
    }

    .hero-cta-btn:hover img {
      filter: brightness(0) invert(1); /* 图标变白色 */
    }

    .hero-cta-btn svg {
      width: 14px;
      height: 14px;
    }



    /* ===== Action Bar (My Templates / New Template) ===== */
    .action-bar {
      display: none !important;
      width: 100%;
      max-width: none;
      height: 52px;
      align-items: center;
      justify-content: center;
      gap: 24px;
      padding: 0 var(--page-content-padding-x, 40px);
      margin: 0;
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
      will-change: opacity, transform;
      opacity: 0;
      transform: translateY(60px);
      box-sizing: border-box;
    }

    .action-bar.card-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .action-bar.card-enter-from-down {
      opacity: 0;
      transform: translateY(60px);
    }

    .action-bar.card-enter-from-up {
      opacity: 0;
      transform: translateY(-60px);
    }

    .action-bar.card-leave-up {
      opacity: 0;
      transform: translateY(-60px);
    }

    .action-bar.card-leave-down {
      opacity: 0;
      transform: translateY(60px);
    }

    .action-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 300px;
      height: 52px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 400;
      cursor: pointer;
      transition: background 0.2s, color 0.2s;
      text-decoration: none;
      color: #999999;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.07);
      box-sizing: border-box;
    }

    .action-btn:hover {
      background: rgba(255, 255, 255, 0.1);
      color: #ffffff;
    }

    .action-btn:hover img {
      filter: brightness(0) invert(1);
    }

    /* ===== 右上角按钮组 ===== */
    .top-right-btns {
      position: relative;
      top: auto;
      right: auto;
      z-index: 100;
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
      margin-left: auto;
      padding-top: 4px;
    }

    .temp-file-btn {
      width: 100px;
      height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      border: none;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.1);
      text-decoration: none;
      cursor: pointer;
      transition: background 0.2s ease;
    }

    .temp-file-btn:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    .temp-file-btn-icon {
      width: 14px;
      height: 14px;
      flex-shrink: 0;
      opacity: 0.6;
      transition: opacity 0.2s ease, filter 0.2s ease;
    }

    .temp-file-btn-text {
      font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      font-size: 12px;
      font-weight: 400;
      line-height: 16.8px;
      color: #999999;
      white-space: nowrap;
      transition: color 0.2s ease;
    }

    .temp-file-btn:hover .temp-file-btn-icon {
      opacity: 1;
      filter: brightness(0) invert(1);
    }

    .temp-file-btn:hover .temp-file-btn-text {
      color: #FFFFFF;
    }

    /* 境内/境外切换按钮 */
    .region-toggle-btn {
      height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 0 12px;
      border: none;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.1);
      cursor: pointer;
      transition: background 0.2s ease;
      white-space: nowrap;
    }

    .region-toggle-btn:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    .region-toggle-icon {
      width: 14px;
      height: 14px;
      flex-shrink: 0;
      opacity: 0.6;
      transition: opacity 0.2s ease, filter 0.2s ease;
    }

    .region-toggle-text {
      font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      font-size: 12px;
      font-weight: 400;
      line-height: 16.8px;
      color: #999999;
      white-space: nowrap;
      transition: color 0.2s ease;
    }

    .region-toggle-btn:hover .region-toggle-icon {
      opacity: 1;
      filter: brightness(0) invert(1);
    }

    .region-toggle-btn:hover .region-toggle-text {
      color: #FFFFFF;
    }

    /* 浅色模式下境内/境外切换按钮 */
    body.light-mode .region-toggle-btn {
      background: #EEEEEE;
    }

    body.light-mode .region-toggle-btn:hover {
      background: #E0E0E0;
    }

    body.light-mode .region-toggle-text {
      color: #333333;
    }

    body.light-mode .region-toggle-btn:hover .region-toggle-text {
      color: #333333;
    }

    body.light-mode .region-toggle-icon {
      opacity: 1;
      filter: brightness(0) saturate(100%);
    }

    body.light-mode .region-toggle-btn:hover .region-toggle-icon {
      opacity: 1;
      filter: brightness(0) saturate(100%);
    }

    /* 收起模式下境内/境外切换按钮 */
    body.collapsed-mode .region-toggle-btn {
      background: rgba(255, 255, 255, 0.1);
    }

    body.collapsed-mode .region-toggle-btn:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    /* 浅色+收起模式 */
    body.light-mode.collapsed-mode .region-toggle-btn {
      background: #EEEEEE;
    }

    body.light-mode.collapsed-mode .region-toggle-btn:hover {
      background: #E0E0E0;
    }

    /* 深色/浅色模式切换按钮 */
    .theme-toggle-btn {
      width: 36px;
      height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: none;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.1);
      cursor: pointer;
      transition: background 0.2s ease;
    }

    .theme-toggle-btn:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    .theme-toggle-icon {
      width: 14px;
      height: 14px;
      opacity: 0.6;
      transition: opacity 0.2s ease, filter 0.2s ease;
    }

    .theme-toggle-btn:hover .theme-toggle-icon {
      opacity: 1;
      filter: brightness(0) invert(1);
    }

    /* 浅色模式下切换按钮样式 */
    body.light-mode .theme-toggle-btn {
      background: #EEEEEE;
    }

    body.light-mode .theme-toggle-btn:hover {
      background: #E0E0E0;
    }

    body.light-mode .theme-toggle-icon {
      opacity: 1;
      filter: brightness(0) saturate(100%);
    }

    body.light-mode .theme-toggle-btn:hover .theme-toggle-icon {
      filter: brightness(0) saturate(100%);
      opacity: 1;
    }

    /* 收起模式下切换按钮样式 */
    body.collapsed-mode .theme-toggle-btn {
      background: rgba(255, 255, 255, 0.1);
    }

    body.collapsed-mode .theme-toggle-btn:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    /* ===== 浅色模式样式 ===== */
    body.light-mode {
      background: #FCFFFD;
      color: #333333;
    }

    body.light-mode .page-wrapper {
      background: transparent;
    }

    body.light-mode .hero-section {
      background: transparent;
    }

    /* 卡片 - 套用admin.html效果：毛玻璃背景 + 白色描边 + 柔和阴影 + hover上移动画 */
    body.light-mode .template-card {
      background: rgba(255, 255, 255, 0.6);
      border: none;
      outline: 1px solid rgba(255, 255, 255, 0.8);
      outline-offset: -1px;
      box-shadow: 0px 8px 16px -2px rgba(0, 0, 0, 0.04);
      clip-path: none;
    }

    body.light-mode .template-card:hover:not(.is-stack-leader) {
      transform: translateY(-3px);
      box-shadow: 0px 8px 16px -2px rgba(0, 0, 0, 0.04);
    }

    /* 卡片标题 - 深色文字 */
    body.light-mode .card-title {
      color: #333333;
    }

    /* 卡片标签 - 颜色999999 + 描边 */
    body.light-mode .card-tag {
      color: #999999;
      border-color: #E5E5E5;
      background: transparent;
    }

    /* 卡片最小字（日期等） - CCCCCC */
    body.light-mode .card-date {
      color: #CCCCCC;
    }

    /* 卡片操作区 - 分割线见 template-stack.css (--stack-card-divider) */

    /* 卡片操作按钮 */
    body.light-mode .card-action-btn {
      color: #999999;
    }

    body.light-mode .card-action-btn:hover {
      color: #333333;
      font-weight: 400;
    }

    /* 独立按钮（"我的模板"）- 套用admin.html的back-to-home-btn效果 */
    body.light-mode .temp-file-btn {
      background: #EEEEEE;
    }

    body.light-mode .temp-file-btn:hover {
      background: #E0E0E0;
    }

    body.light-mode .temp-file-btn-text {
      color: #333333;
    }

    body.light-mode .temp-file-btn:hover .temp-file-btn-text {
      color: #333333;
    }

    body.light-mode .temp-file-btn-icon {
      opacity: 1;
      filter: brightness(0) saturate(100%);
    }

    body.light-mode .temp-file-btn:hover .temp-file-btn-icon {
      opacity: 1;
      filter: brightness(0) saturate(100%);
    }

    /* 收起按钮 - 同独立按钮效果 */
    body.light-mode .collapse-btn {
      background: #EEEEEE;
    }

    body.light-mode .collapse-btn:hover {
      background: #E0E0E0;
    }

    body.light-mode .collapse-btn img {
      filter: brightness(0) saturate(100%) invert(18%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(96%) contrast(87%);
      opacity: 1;
    }

    body.light-mode .collapse-btn:hover img {
      filter: brightness(0) saturate(100%) invert(18%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(96%) contrast(87%);
      opacity: 1;
    }

    /* 主题切换按钮 - 同独立按钮效果，图标颜色#333333 */
    body.light-mode .theme-toggle-btn {
      background: #EEEEEE;
    }

    body.light-mode .theme-toggle-btn:hover {
      background: #E0E0E0;
    }

    body.light-mode .theme-toggle-icon {
      filter: brightness(0) saturate(100%);
      opacity: 1;
    }

    body.light-mode .theme-toggle-btn:hover .theme-toggle-icon {
      filter: brightness(0) saturate(100%);
      opacity: 1;
    }

    /* 筛选按钮 - 与其他按钮颜色统一，active状态与独立按钮一致 */
    body.light-mode .filter-tab {
      color: #999999;
      background: transparent;
    }

    body.light-mode .filter-tab:hover {
      color: #333333;
      background: #EEEEEE;
    }

    body.light-mode .filter-tab.active {
      color: #333333;
      background: #EEEEEE;
      font-weight: 400;
    }

    /* 浅色模式 + 收起模式 */
    body.light-mode.collapsed-mode .page-top-header .filter-section {
      background: transparent;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }

    body.light-mode.collapsed-mode .temp-file-btn {
      background: #EEEEEE;
    }

    body.light-mode.collapsed-mode .temp-file-btn:hover {
      background: #E0E0E0;
    }

    body.light-mode.collapsed-mode .collapse-btn {
      background: #EEEEEE;
    }

    body.light-mode.collapsed-mode .collapse-btn:hover {
      background: #E0E0E0;
    }

    body.light-mode.collapsed-mode .collapse-btn img {
      filter: brightness(0) saturate(100%) invert(18%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(96%) contrast(87%);
      opacity: 1;
    }

    body.light-mode.collapsed-mode .collapse-btn:hover img {
      filter: brightness(0) saturate(100%) invert(18%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(96%) contrast(87%);
      opacity: 1;
    }

    body.light-mode.collapsed-mode .theme-toggle-btn {
      background: #EEEEEE;
    }

    body.light-mode.collapsed-mode .theme-toggle-btn:hover {
      background: #E0E0E0;
    }

    /* 浅色模式下的action-bar */
    body.light-mode .action-btn {
      color: #999999;
      background: transparent;
      border-color: transparent;
    }

    body.light-mode .action-btn:hover {
      color: #333333;
      background: rgba(0, 0, 0, 0.04);
    }

    /* 浅色模式下的page-logo-icon - 无背景色 */
    body.light-mode .page-logo-icon {
      background: transparent;
    }

    body.light-mode .page-logo-icon img {
      filter: none;
    }

    /* 浅色模式下的footer文字 - 最小字CCCCCC */
    body.light-mode .footer-text {
      color: #CCCCCC;
    }

    /* 浅色模式下的ambient流动背景 — 见 light-ambient-bg.css */

    /* 收起按钮 */
    .collapse-btn {
      width: 36px;
      height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: none;
      border-radius: 8px;
      background: rgba(0, 0, 0, 0.8);
      cursor: pointer;
      transition: background 0.2s ease;
    }

    .collapse-btn:hover {
      background: rgba(0, 0, 0, 0.9);
    }

    .collapse-btn img {
      width: 14px;
      height: 14px;
      opacity: 0.6;
      transition: opacity 0.2s ease, filter 0.2s ease;
    }

    .collapse-btn:hover img {
      opacity: 1;
      filter: brightness(0) invert(1);
    }

    /* ===== 收起模式 ===== */
    .hero-section {
      transition: opacity 0.35s ease, height 0.4s ease-out;
    }

    .cards-section {
      transition: padding-top 0.4s ease-out;
    }

    /* 页面加载/返回时禁用收起动画，避免出现不必要的过渡效果 */
    body.no-collapse-transition .hero-section,
    body.no-collapse-transition .filter-section,
    body.no-collapse-transition .page-top-header,
    body.no-collapse-transition .page-logo-icon,
    body.no-collapse-transition .top-right-btns,
    body.no-collapse-transition .cards-section,
    body.no-collapse-transition .action-bar {
      transition: none !important;
    }

    body.no-collapse-transition .cards-section {
      transition: none !important;
    }

    /* ===== 深浅色模式切换过渡动画 ===== */
    body.theme-transitioning,
    body.theme-transitioning .page-wrapper {
      transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    body.theme-transitioning .template-card {
      transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s ease !important;
    }

    body.theme-transitioning .card-title,
    body.theme-transitioning .card-tag,
    body.theme-transitioning .card-date,
    body.theme-transitioning .card-actions,
    body.theme-transitioning .card-action-btn,
    body.theme-transitioning .filter-tab,
    body.theme-transitioning .action-btn,
    body.theme-transitioning .footer-text {
      transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    body.theme-transitioning .temp-file-btn,
    body.theme-transitioning .region-toggle-btn,
    body.theme-transitioning .theme-toggle-btn,
    body.theme-transitioning .collapse-btn {
      transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    body.theme-transitioning .temp-file-btn-text,
    body.theme-transitioning .temp-file-btn-icon,
    body.theme-transitioning .region-toggle-text,
    body.theme-transitioning .region-toggle-icon,
    body.theme-transitioning .theme-toggle-icon,
    body.theme-transitioning .collapse-btn img {
      transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    body.theme-transitioning .filter-section {
      transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    body.theme-transitioning .light-ambient-bg {
      transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* 深色 → 浅色：先铺背景，再显示卡片，避免切换瞬间截图穿帮 */
    body.theme-switch-to-light,
    body.theme-switch-to-light .page-wrapper {
      transition: background 0s, color 0s !important;
    }

    body.theme-switch-to-light {
      background: #FCFFFD !important;
      color: #333333;
    }

    body.theme-switch-to-light .page-wrapper {
      background: transparent !important;
    }

    body.theme-switch-to-light .light-ambient-bg {
      display: block !important;
      opacity: 1;
      transition: none !important;
    }

    body.theme-switch-to-light:not(.theme-cards-ready) .cards-section {
      opacity: 0 !important;
      visibility: hidden !important;
      pointer-events: none !important;
    }

    body.theme-switch-to-light.theme-cards-ready .cards-section {
      opacity: 1 !important;
      visibility: visible !important;
      pointer-events: auto !important;
      transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.collapsed-mode .hero-section {
      height: 0;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
    }

    /* 渐变消失阶段：先淡出，高度保持不变 */
    body.collapsing-phase-fade .hero-section {
      opacity: 0 !important;
      height: 637px !important;
      overflow: hidden;
      pointer-events: none;
      transition: opacity 0.35s ease, height 0.4s ease-out !important;
    }

    /* 渐变消失阶段：filter-section/logo/按钮暂不改变位置 */
    body.collapsing-phase-fade .filter-section {
      position: relative !important;
      top: auto !important;
      left: auto !important;
      right: auto !important;
      height: auto !important;
      display: block !important;
      background: transparent !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      padding: 0 var(--page-content-padding-x, 40px) !important;
      max-width: none !important;
    }

    body.collapsing-phase-fade .cards-section {
      padding-top: 60px;
      transition: padding-top 0.45s ease-out;
    }

    body.collapsing-phase-fade .page-top-header {
      display: flex !important;
    }

    body.collapsing-phase-fade .page-logo-icon,
    body.collapsing-phase-fade .top-right-btns {
      position: relative !important;
      top: auto !important;
      left: auto !important;
      right: auto !important;
    }

    /* 收起高度阶段：已经透明，开始收高度（过渡由JS内联样式控制） */
    body.collapsing-phase-shrink .hero-section {
      opacity: 0 !important;
      pointer-events: none;
      overflow: hidden;
    }

    body.collapsing-phase-shrink .cards-section {
      /* 过渡由JS内联样式控制 */
    }

    body.collapsing-phase-shrink .filter-section {
      position: relative !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      z-index: 99 !important;
      max-width: 100% !important;
      padding: 0 var(--page-content-padding-x, 40px) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      background: transparent !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }

    body.collapsing-phase-shrink .page-top-header {
      display: flex !important;
    }

    body.collapsing-phase-shrink .page-logo-icon,
    body.collapsing-phase-shrink .top-right-btns {
      position: relative !important;
      top: auto !important;
      left: auto !important;
      right: auto !important;
    }

    body.collapsed-mode .page-top-header {
      display: flex;
    }

    body.collapsed-mode .page-logo-icon {
      position: relative;
      top: auto;
      left: auto;
    }

    body.collapsed-mode .page-top-header .filter-section {
      background: transparent;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }

    body.collapsed-mode .filter-tab {
      font-size: 12px;
      height: 36px;
      padding: 0 16px;
      line-height: 16.8px;
    }

    body.collapsed-mode .action-bar {
      display: none !important;
    }

    /* 收起模式下右侧按钮样式调整 */
    body.collapsed-mode .top-right-btns {
      position: relative;
      top: auto;
      right: auto;
      gap: 12px;
    }

    body.collapsed-mode .temp-file-btn {
      background: rgba(255, 255, 255, 0.1);
    }

    body.collapsed-mode .temp-file-btn:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    body.collapsed-mode .collapse-btn {
      background: rgba(255, 255, 255, 0.1);
    }

    body.collapsed-mode .collapse-btn:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    /* ===== Filter Tabs Section ===== */
    .filter-section {
      display: block;
      width: 100%;
      max-width: none;
      margin: 0;
      padding: 0 var(--page-content-padding-x, 40px);
      transition: background 0.3s ease, padding 0.3s ease;
    }

    .filter-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      align-items: center;
      justify-content: center;
      scroll-margin-top: 28px;
    }

    .filter-tab {
      height: 36px;
      padding: 0 16px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 400;
      line-height: 16.8px;
      cursor: pointer;
      transition: all 0.2s;
      border: none;
      color: #999999;
      background: transparent;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }

    .filter-tab:hover {
      background: rgba(255, 255, 255, 0.1);
      color: #ffffff;
    }

    .filter-tab.active {
      background: rgba(255, 255, 255, 0.1);
      border: none;
      color: #ffffff;
    }

    /* 首个(全部)筛选按钮使用绿色风格 */
    .filter-tab.active[data-filter="全部"] {
      background: rgba(255, 255, 255, 0.1);
    }

    /* ===== Template Cards Grid ===== */
    .cards-section {
      display: block;
      width: 100%;
      max-width: none;
      margin: 0;
      padding: 40px var(--page-content-padding-x, 40px) 0;
      min-height: 360px;
    }

    .cards-groups {
      display: flex;
      flex-direction: column;
      gap: 0;
      width: 100%;
    }

    .main-tag-section {
      width: 100%;
    }

    /* 上一组卡片底 → 本组标题：24px（不含卡片阴影外扩） */
    .main-tag-section + .main-tag-section {
      margin-top: 24px;
    }

    .main-tag-section-toggle {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      margin: 0 0 24px;
      padding: 0;
      border: none;
      background: transparent;
      cursor: pointer;
      text-align: left;
    }

    .main-tag-section-title {
      font-size: 12px;
      line-height: 1.4;
      font-weight: 400;
      color: #666666;
    }

    body.light-mode .main-tag-section-title {
      color: #999999;
    }

    .main-tag-section-chevron {
      width: 12px;
      height: 12px;
      flex-shrink: 0;
      display: block;
      transition: transform 0.2s ease, filter 0.2s ease;
    }

    /* 深色模式：与 .card-tag 文字色 #666666 一致 */
    body:not(.light-mode) .main-tag-section-chevron {
      filter: brightness(0) saturate(100%) invert(42%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
      opacity: 1;
    }

    /* a.svg 默认向下；展开时旋转 180° 指向上方 */
    .main-tag-section:not(.is-collapsed) .main-tag-section-chevron {
      transform: rotate(180deg);
    }

    .main-tag-section-body {
      overflow: visible;
      opacity: 1;
      transform: translateY(0);
      transition: max-height 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
      will-change: max-height, opacity, transform;
    }

    .main-tag-section.is-collapsed .main-tag-section-body {
      max-height: 0;
      opacity: 0;
      transform: translateY(-8px);
      pointer-events: none;
      overflow: hidden;
    }

    .main-tag-section.is-animating .main-tag-section-toggle {
      pointer-events: none;
    }

    /* 网格列规则见 design-tokens.css (.cards-grid) */

    /* 次类筛选时：不分主类，所有卡片平铺在一个网格里 */
    .cards-groups.is-sub-filter-active {
      display: block;
    }

    .cards-groups.is-sub-filter-active > .cards-grid--flat {
      width: 100%;
    }

    /* ===== Card Style (no scroll animation) ===== */
    .template-card {
      /* width / max-width 见 design-tokens.css */
      background: #0C0C0C;
      border: 1px solid rgba(255, 255, 255, 0.067);
      border-radius: 16px;
      overflow: hidden;
      transition: box-shadow 0.2s, transform 0.2s;
      cursor: default;
      box-shadow: 0 8px 16px -2px rgba(0, 0, 0, 0.04);
      clip-path: inset(0 0 0 0 round 16px);
      opacity: 1;
      transform: translateY(0);
    }

    .template-card.card-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .template-card:hover:not(.is-stack-leader) {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }

    /* Card Thumbnail */
    .card-thumbnail {
      width: 100%;
      height: 348px;
      background: transparent;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      padding: 0;
      box-sizing: border-box;
      cursor: pointer;
    }

    .card-thumbnail > img.js-template-preview-image,
    .card-thumbnail-front > img.js-template-preview-image {
      width: auto;
      height: auto;
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      border-radius: 0;
      display: block;
    }

    .card-thumbnail img {
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      object-fit: contain;
      border-radius: 0;
      display: block;
    }

    .expand-icon {
      width: 14px;
      height: 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.2s ease;
      pointer-events: none;
    }

    .expand-icon img {
      width: 100%;
      height: 100%;
      display: block;
    }

    .template-card:hover .expand-icon {
      opacity: 1;
    }

    /* ===== Image Preview Overlay (click-to-zoom) ===== */
    .image-preview-overlay {
      position: fixed;
      inset: 0;
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: clamp(24px, 4vw, 48px);
      background: rgba(0, 0, 0, 0.8);
      cursor: default;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.22s ease, visibility 0s linear 0.22s;
    }

    .image-preview-overlay.is-open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transition: opacity 0.22s ease;
    }

    .image-preview-content {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .image-preview-stage {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .image-preview-image {
      display: block;
      max-width: min(1440px, calc(100vw - 96px));
      max-height: calc(100vh - 96px);
      width: auto;
      height: auto;
      object-fit: contain;
      cursor: default;
      margin: auto;
      opacity: 0;
      transform: scale(0.96);
      transition: opacity 0.22s ease, transform 0.22s ease;
    }

    .image-preview-overlay.is-open .image-preview-image {
      opacity: 1;
      transform: scale(1);
    }

    /* Card Body — 与 admin.html .admin-card-body / .admin-card-info 对齐 */
    .card-body {
      padding: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      box-sizing: border-box;
      align-items: stretch;
    }

    /* Card Info Area (title + tags) */
    .card-info {
      padding: 0 20px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      justify-content: flex-start;
      align-items: stretch;
    }

    .card-title {
      font-size: 14px;
      font-weight: 400;
      color: #999999;
      line-height: 19.6px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      margin: 0;
      width: 100%;
    }

    .card-tags {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0;
      width: 100%;
    }

    .card-tag {
      height: 18px;
      padding: 0 6px;
      border-radius: 4px;
      font-size: 10px;
      font-weight: 400;
      color: #666666;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: transparent;
      line-height: 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
      font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }

    /* 卡片操作区布局见 template-stack.css（Figma 997:19206 / 1035:23535） */

    /* 详情按钮：暂未开放，隐藏保留 DOM 便于后续开发 */
    .card-action-btn.js-card-detail {
      display: none;
    }

    /* ===== Footer Section ===== */
    .footer-section {
      display: block;
      margin-top: 60px;
      padding: 0 40px 40px 40px;
      text-align: center;
      height: 163px;
      box-sizing: border-box;
    }

    .footer-divider {
      display: none;
    }

    .footer-divider-line {
      display: none;
    }

    .footer-divider-dot {
      display: none;
    }

    .footer-text {
      font-size: 12px;
      font-weight: 400;
      color: #333333;
      line-height: 16.8px;
    }

    /* ===== Manage Tags Modal ===== */
    .manage-tags-modal {
      position: fixed;
      inset: 0;
      z-index: 2100;
      display: none;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
    }
    .manage-tags-modal.is-open { display: flex; }

    .manage-tags-dialog {
      width: 800px;
      height: 559px;
      max-width: calc(100vw - 32px);
      max-height: calc(100vh - 64px);
      border-radius: 20px;
      background: var(--modal-bg, #F7F7F7);
      border: 1px solid #FFFFFF;
      box-shadow: 0px 8px 16px -2px rgba(0, 0, 0, 0.04);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .manage-tags-header {
      padding: 24px;
      height: 70px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
    }

    .manage-tags-header-actions {
      display: flex;
      align-items: center;
      gap: 0;
    }

    .manage-tags-header-divider {
      width: 1px;
      height: 14px;
      background: #eeeeee;
      margin: 0 12px;
      flex: none;
    }

    .manage-tags-title {
      font-size: 16px;
      font-weight: 500;
      line-height: 22.4px;
      color: rgba(0, 0, 0, 0.9);
    }

    .manage-tags-add-category {
      background: transparent;
      color: #999999;
      height: 17px;
      padding: 0;
      min-width: auto;
      font-size: 12px;
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      border: none;
      cursor: pointer;
      font-family: 'PingFang SC', sans-serif;
      font-weight: 400;
      white-space: nowrap;
      transition: color 0.2s;
    }

    .manage-tags-add-category svg {
      width: 12px;
      height: 12px;
      margin-right: 4px;
      flex-shrink: 0;
    }

    .manage-tags-add-category:hover {
      color: #333333;
    }

    .manage-tags-add-category:hover svg path {
      fill: #333333;
    }

    .manage-tags-content {
      flex: 1;
      overflow-y: auto;
      min-height: 0;
      padding: 0 24px 24px;
    }

    .manage-tags-group {
      background: #FFFFFF;
      border: 1px solid #EEEEEE;
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 16px;
    }
    .manage-tags-group:last-child {
      margin-bottom: 0;
    }

    .manage-tags-label-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }

    .manage-tags-label {
      font-size: 12px;
      font-weight: 400;
      line-height: 16.8px;
      color: #666666;
      margin-bottom: 0;
    }

    .manage-tags-group-actions {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .manage-tags-group-action {
      width: 14px;
      height: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s;
    }
    .manage-tags-group-action svg path {
      transition: stroke 0.2s, fill 0.2s;
    }
    .manage-tags-group-action:hover svg path[fill="#999999"] {
      fill: #333333;
    }
    .manage-tags-group-action:hover svg path[stroke="#999999"] {
      stroke: #333333;
    }
    .manage-tags-group-action svg {
      width: 14px;
      height: 14px;
    }

    .manage-tags-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      margin-bottom: 12px;
    }

    .manage-tags-row:last-child {
      margin-bottom: 0;
    }

    .manage-tags-row.is-main-row,
    .manage-tags-belongs-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      margin-bottom: 12px;
    }

    .manage-tags-row.is-main-row {
      margin-bottom: 0;
    }

    .manage-tags-section-label {
      font-size: 12px;
      font-weight: 400;
      line-height: 16.8px;
      color: #666666;
      margin-bottom: 12px;
    }

    .manage-tags-main-card {
      margin-bottom: 16px;
    }

    .manage-tags-belongs-select.select-wrapper {
      position: relative;
      width: 100%;
      min-width: 0;
    }

    .manage-tags-belongs-select .manage-tags-belongs-trigger {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      height: 36px;
      padding: 0 12px;
      border: 1px solid #EEEEEE;
      border-radius: 8px;
      background: #FFFFFF;
      cursor: pointer;
      box-sizing: border-box;
    }

    .manage-tags-belongs-select.is-disabled .manage-tags-belongs-trigger {
      cursor: not-allowed;
      pointer-events: none;
    }

    .manage-tags-belongs-select:not(.is-disabled) .manage-tags-belongs-trigger:hover {
      border-color: #07C160;
    }

    .manage-tags-belongs-select.open .manage-tags-belongs-trigger {
      border-color: #07C160;
      box-shadow: -2px 0px 1px #CCF3DC,
                  2px 0px 1px #CCF3DC,
                  0px -2px 1px #CCF3DC,
                  0px 2px 1px #CCF3DC;
      outline: 1px #07C160 solid;
      outline-offset: -1px;
    }

    .manage-tags-belongs-value,
    .manage-tags-belongs-select .select-placeholder {
      flex: 1;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 12px;
      line-height: 16.8px;
      font-family: 'PingFang SC', sans-serif;
    }

    .manage-tags-belongs-value {
      color: rgba(0, 0, 0, 0.9);
    }

    .manage-tags-belongs-select .select-placeholder {
      color: #CCCCCC;
    }

    .manage-tags-belongs-arrow {
      flex-shrink: 0;
      margin-left: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #333333;
      pointer-events: none;
    }

    .manage-tags-belongs-select.is-disabled .manage-tags-belongs-arrow {
      color: #cccccc;
    }

    .manage-tags-belongs-arrow svg {
      width: 12px;
      height: 12px;
      display: block;
      transition: transform 0.2s ease;
    }

    .manage-tags-belongs-select.open .manage-tags-belongs-arrow svg {
      transform: rotate(180deg);
    }

    .manage-tags-belongs-dropdown {
      position: absolute;
      top: 40px;
      left: 0;
      width: 100%;
      background: #FFFFFF;
      border-radius: 8px;
      box-shadow: 0px 2px 8px -1px rgba(0, 0, 0, 0.12);
      outline: 1px #EEEEEE solid;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-8px);
      transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
      z-index: 20;
      overflow: hidden;
    }

    .manage-tags-belongs-select.open .manage-tags-belongs-dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .manage-tags-belongs-dropdown .select-option {
      padding: 0 12px;
      height: 36px;
      display: flex;
      align-items: center;
      font-size: 12px;
      line-height: 16.8px;
      color: #333333;
      font-family: 'PingFang SC', sans-serif;
      cursor: pointer;
    }

    .manage-tags-belongs-dropdown .select-option:hover {
      background: #FAFAFA;
    }

    .manage-tags-belongs-dropdown .select-option.selected {
      color: #07C160;
    }

    .manage-tags-belongs-dropdown .select-option.is-disabled {
      color: #cccccc;
      cursor: not-allowed;
      pointer-events: none;
    }

    .manage-tags-belongs-dropdown .select-option.is-disabled:hover {
      background: transparent;
    }

    .manage-tag-add-box {
      width: 100%;
      height: 36px;
      min-width: 0;
      background: #FFFFFF;
      border: 1px solid #EEEEEE;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: border-color 0.2s ease;
      box-sizing: border-box;
    }

    .manage-tag-add-box:hover {
      border-color: #07C160;
    }

    .manage-tag-add-box svg {
      width: 12px;
      height: 12px;
    }

    .manage-tag-item {
      width: 100%;
      height: 36px;
      background: #FFFFFF;
      border: 1px solid #EEEEEE;
      border-radius: 8px;
      display: flex;
      align-items: center;
      padding: 0 12px;
      gap: 0;
      box-sizing: border-box;
      overflow: hidden;
      min-width: 0;
      transition: border-color 0.2s ease;
    }

    .manage-tag-item:hover {
      border-color: #07C160;
    }

    .manage-tag-item.is-editing {
      border-color: #07C160;
      box-shadow: -2px 0px 1px #CCF3DC,
                  2px 0px 1px #CCF3DC,
                  0px -2px 1px #CCF3DC,
                  0px 2px 1px #CCF3DC;
      outline: 1px #07C160 solid;
      outline-offset: -1px;
    }

    .manage-tag-text {
      flex: 1;
      min-width: 0;
      font-size: 12px;
      font-weight: 400;
      line-height: 16.8px;
      color: rgba(0, 0, 0, 0.9);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      cursor: text;
    }

    .manage-tag-text.is-placeholder {
      color: #CCCCCC;
    }

    .manage-tag-input {
      flex: 1;
      min-width: 0;
      width: 0;
      border: none;
      outline: none;
      background: transparent;
      font-size: 12px;
      font-weight: 400;
      line-height: 16.8px;
      color: rgba(0, 0, 0, 0.9);
      font-family: inherit;
      padding: 0;
      display: none;
      box-sizing: border-box;
    }
    .manage-tag-input::placeholder {
      color: #CCCCCC;
    }

    .manage-tag-item.is-editing .manage-tag-text { display: none; }
    .manage-tag-item.is-editing .manage-tag-input { display: block; }

    .manage-tag-delete {
      width: 14px;
      height: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      flex-shrink: 0;
      margin-left: 8px;
      transition: all 0.2s;
    }

    .manage-tag-delete svg path {
      transition: fill 0.2s;
    }

    .manage-tag-delete:hover svg path {
      fill: #333333;
    }

    .manage-tag-delete svg { width: 14px; height: 14px; }

    .manage-tag-add {
      width: 78px;
      height: 29px;
      background: transparent;
      border: none;
      border-radius: 6px;
      outline: 1px #EEEEEE solid;
      outline-offset: -1px;
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      padding: 0 6px;
      cursor: pointer;
      transition: all 0.2s;
      color: #666666;
      font-size: 12px;
    }

    .manage-tag-add:hover {
      background: #EEEEEE;
      color: #333333;
      outline: none;
    }

    .manage-tag-add:hover svg path {
      fill: #333333;
    }

    .manage-tag-add-icon {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .manage-tag-add-icon svg {
      width: 12px;
      height: 12px;
      margin-right: 4px;
      flex-shrink: 0;
    }

    .manage-tag-add-text {
      font-size: 12px;
      font-weight: 400;
      line-height: 16.8px;
      color: inherit;
      white-space: nowrap;
    }

    .manage-tags-footer {
      height: 69px;
      border-top: 1px solid #EEEEEE;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
      flex-shrink: 0;
      background: #FFFFFF;
      border-radius: 0 0 8px 8px;
    }

    .manage-tags-footer .mt-btn {
      width: 80px;
      height: 29px;
      padding: 0;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 400;
      line-height: 16.8px;
      border: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
      transition: background-color 0.2s ease, opacity 0.2s ease;
    }

    .manage-tags-footer .mt-btn--cancel {
      background: #EEEEEE;
      color: #333333;
    }
    .manage-tags-footer .mt-btn--cancel:hover {
      background: #E0E0E0;
    }

    .manage-tags-footer .mt-btn--confirm {
      background: #07C160;
      color: #FFFFFF;
    }
    .manage-tags-footer .mt-btn--confirm:hover {
      background: #06AE56;
    }

    .manage-tags-footer .mt-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    /* 筛选标签旁的编辑按钮 */
    .filter-edit-btn {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      border: none;
      background: transparent;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background 0.2s;
      flex-shrink: 0;
    }
    .filter-edit-btn:hover {
      background: rgba(255, 255, 255, 0.1);
    }
    .filter-edit-btn svg {
      width: 14px;
      height: 14px;
    }


    .admin-secret-hitbox {
      position: fixed;
      right: 0;
      bottom: 0;
      width: 20px;
      height: 20px;
      z-index: 2147483646;
      opacity: 0;
      background: transparent;
      border: 0;
      padding: 0;
      margin: 0;
      cursor: default;
      outline: none;
      -webkit-tap-highlight-color: transparent;
    }
    .admin-secret-hitbox:hover,
    .admin-secret-hitbox:focus,
    .admin-secret-hitbox:active {
      opacity: 0;
      background: transparent;
      outline: none;
      cursor: default;
    }
