/* 引入日系超萌圆体 */
    @import url('https://fonts.googleapis.com/css2?family=Sniglet:wght@800&family=Quicksand:wght@700&display=swap');

    /* 全屏预加载动画背景 (支持后台与环境变量自定义) */
    #komari-preloader {
      position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
      z-index: 999999;
      display: flex; flex-direction: column; justify-content: center; align-items: center;
      transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease;
      background: var(--cfg-preloader-bg, linear-gradient(135deg, #e6fffa 0%, #a7f3d0 50%, #6ee7b7 100%));
      overflow: hidden;
    }
    #komari-preloader.fade-out { opacity: 0; visibility: hidden; }

    /* 上方角色与动态水泡 */
    .preloader-avatar-box {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 140px;
      height: 120px;
      margin-bottom: 18px;
    }
    .anime-loader-img {
      width: 105px;
      height: auto;
      z-index: 2;
      animation: cuteFloat 1.8s ease-in-out infinite alternate;
      filter: drop-shadow(0 10px 14px rgba(6, 95, 70, 0.15));
    }
    @keyframes cuteFloat {
      0% { transform: translateY(0px) rotate(0deg); }
      100% { transform: translateY(-8px) rotate(1.5deg); }
    }

    .bubble-wrapper {
      position: absolute;
      bottom: 5px; width: 100%; height: 100%;
      pointer-events: none; z-index: 1;
    }
    .bubble {
      position: absolute; bottom: 0; border-radius: 50%;
      background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.4) 60%, rgba(167, 243, 208, 0.3));
      box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
      border: 1px solid rgba(255, 255, 255, 0.8);
      opacity: 0;
      animation: bubbleRise infinite ease-in-out;
    }
    .bubble:nth-child(1) { width: 14px; height: 14px; left: 15%; animation-duration: 2.2s; animation-delay: 0.1s; }
    .bubble:nth-child(2) { width: 10px; height: 10px; left: 40%; animation-duration: 1.8s; animation-delay: 0.6s; }
    .bubble:nth-child(3) { width: 20px; height: 20px; left: 65%; animation-duration: 2.5s; animation-delay: 0.2s; }
    .bubble:nth-child(4) { width: 12px; height: 12px; left: 82%; animation-duration: 2.0s; animation-delay: 0.9s; }

    @keyframes bubbleRise {
      0% { transform: translateY(5px) scale(0.4); opacity: 0; }
      20% { opacity: 0.85; }
      80% { opacity: 0.7; transform: translateY(-110px) translateX(6px) scale(1); }
      100% { transform: translateY(-150px) translateX(-4px) scale(1.1); opacity: 0; }
    }

    /* 跑道整体区域 */
    .patty-run-wrapper {
      position: relative;
      width: 250px;
      height: 52px;
      display: flex;
      align-items: flex-end;
      padding-bottom: 6px;
      z-index: 3;
    }

    /* 跑道底槽与粉红填充 */
    .patty-track {
      width: 100%;
      height: 8px;
      background: rgba(255, 255, 255, 0.75);
      border: 1.5px solid #ffffff;
      border-radius: 20px;
      box-shadow: 0 3px 10px rgba(6, 95, 70, 0.08), inset 0 1px 3px rgba(0, 0, 0, 0.04);
      position: relative;
      overflow: hidden;
    }
    .patty-fill {
      width: 0%;
      height: 100%;
      background: linear-gradient(90deg, #ffa8ba 0%, #ff6b8b 100%);
      border-radius: 20px;
      transition: width 0.2s linear;
    }

    /* 终点汉堡包 */
    .target-burger {
      position: absolute;
      right: -16px;
      bottom: -1px;
      z-index: 4;
      transform-origin: bottom center;
      filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.1));
      animation: burgerIdle 1.2s ease-in-out infinite alternate;
    }
    @keyframes burgerIdle {
      0% { transform: translateY(0) scale(1); }
      100% { transform: translateY(-2px) scale(1.04); }
    }
    .target-burger.bounce {
      animation: burgerCheer 0.38s ease-in-out infinite alternate !important;
    }
    @keyframes burgerCheer {
      0% { transform: translateY(0) scale(1); }
      100% { transform: translateY(-8px) scale(1.15) rotate(6deg); }
    }

    /* 朝右走动的派大星 */
    .walker-patrick {
      position: absolute;
      bottom: 2px;
      left: 0%;
      transform: translateX(-50%);
      transition: left 0.2s linear;
      z-index: 5;
      pointer-events: none;
      filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.12));
    }
    .walker-patrick svg {
      animation: patrickWalk 0.35s ease-in-out infinite alternate;
      transform-origin: bottom center;
    }
    @keyframes patrickWalk {
      0% { transform: translateY(0) rotate(2deg); }
      100% { transform: translateY(-4px) rotate(8deg); }
    }
    .walker-patrick.celebrate svg {
      animation: patrickCheer 0.38s cubic-bezier(0.28, 0.84, 0.42, 1) infinite alternate !important;
    }
    @keyframes patrickCheer {
      0% { transform: translateY(0) scale(1.05, 0.9) rotate(0deg); }
      40% { transform: translateY(-18px) scale(0.95, 1.1) rotate(6deg); }
      100% { transform: translateY(-24px) scale(1, 1.05) rotate(-6deg); }
    }

    /* 进度条下方草莓奶油胶囊百分比 */
    .cute-percent-badge {
      margin-top: 10px;
      background: rgba(255, 255, 255, 0.88);
      border: 2px solid #ffffff;
      border-radius: 18px;
      padding: 2px 14px;
      font-family: 'Sniglet', 'Quicksand', sans-serif;
      font-size: 14px;
      color: #ff6b8b;
      box-shadow: 0 4px 10px rgba(6, 95, 70, 0.08);
      display: inline-flex;
      align-items: center;
      gap: 4px;
      z-index: 3;
      animation: badgeBob 1.4s ease-in-out infinite alternate;
    }
    .cute-percent-badge .star-icon {
      font-size: 10px;
      color: #ffd166;
    }
    @keyframes badgeBob {
      0% { transform: translateY(0) scale(1); }
      100% { transform: translateY(-2px) scale(1.03); }
    }
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    :root {
      --cfg-glass-alpha: 0.17;
      --cfg-bg-brightness: 0.8;
      --cfg-bg-image-url: url('https://img.osea.cloud/f/4226_1788594305474_puun.png');
      --cfg-bg-mobile-url: url('https://img.osea.cloud/f/4BCF73CC-0FC1-458F-8DBC-BBAA03BA6723_1788510061718_ejz8.png');
      --cfg-preloader-bg: linear-gradient(135deg, #e6fffa 0%, #a7f3d0 50%, #6ee7b7 100%);
      --glass-alpha: var(--cfg-glass-alpha, 0.1);
      --glass-surface: rgba(255, 255, 255, var(--glass-alpha));
      --glass-surface-hover: rgba(255, 255, 255, calc(var(--glass-alpha) + 0.08));
      --glass-blur: 24px;
      --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35), inset 0 1px 1px 0 rgba(255, 255, 255, 0.35);
      --glass-shadow-hover: 0 16px 44px 0 rgba(0, 0, 0, 0.45), inset 0 1px 2px 0 rgba(255, 255, 255, 0.55);
      --cyan-glow: #38bdf8;
      --indigo-glow: #818cf8;
      --danger: #fb7185;
      --radius-sm: 10px;
      --radius-md: 16px;
      --radius-lg: 24px;
      --bg-image-url: var(--cfg-bg-image-url, url('https://img.osea.cloud/f/4226_1788594305474_puun.png'));
      --bg-mobile-url: var(--cfg-bg-mobile-url, url('https://img.osea.cloud/f/4BCF73CC-0FC1-458F-8DBC-BBAA03BA6723_1788510061718_ejz8.png'));
    }

    html[data-theme="light"] {
      --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15), inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.6);
      --glass-shadow-hover: 0 16px 42px 0 rgba(0, 0, 0, 0.22), inset 0 2px 3px 0 rgba(255, 255, 255, 0.8);
    }

    html, body {
      user-select: none;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
    }

    input, textarea, .selectable {
      user-select: text !important;
      -webkit-user-select: text !important;
      -moz-user-select: text !important;
    }

    body, p, span, label, h1, h2, h3, h4, h5, div, button {
      color: #ffffff !important;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    }

    input::placeholder {
      color: rgba(255, 255, 255, 0.65) !important;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    body {
      font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: #060810;
      min-height: 100vh;
      overflow-x: hidden;
      position: relative;
      -webkit-font-smoothing: antialiased;
    }

    .viewport-bg-layer {
      position: fixed;
      inset: 0;
      background-image: var(--bg-image-url);
      background-size: cover;
      background-position: center;
      background-attachment: fixed;
      background-repeat: no-repeat;
      filter: brightness(var(--cfg-bg-brightness, 1.0));
      transition: filter 0.35s ease;
      z-index: 0;
      pointer-events: none;
      will-change: filter;
    }

    .liquid-glass {
      position: relative;
      background: var(--glass-surface);
      backdrop-filter: blur(var(--glass-blur)) saturate(180%);
      -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
      border: none !important;
      box-shadow: var(--glass-shadow);
      border-radius: var(--radius-lg);
      transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
    }

    .liquid-glass.zoomable:hover {
      transform: translateY(-3px) scale(1.015);
      box-shadow: var(--glass-shadow-hover);
      background: var(--glass-surface-hover);
    }

    .app-viewport {
      position: relative;
      z-index: 2;
      max-width: 1260px;
      margin: 0 auto;
      padding: 32px 24px;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 28px;
      margin-bottom: 32px;
    }

    .brand-group {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      cursor: pointer;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      padding: 0 !important;
    }

    .brand-badge {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      padding: 0 !important;
    }

    .brand-logo-img {
      height: 44px;
      width: auto;
      max-height: 44px;
      object-fit: contain;
      vertical-align: middle;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      padding: 0 !important;
      margin: 0 !important;
      border-radius: 0 !important;
    }

    /* 标题 WebGL2 原生物理液态玻璃 Canvas 容器 */
    .liquid-glass-logo, .brand-title {
      height: 36px;
      width: auto;
      max-width: 250px;
      aspect-ratio: 500 / 80;
      object-fit: contain;
      display: inline-block;
      vertical-align: middle;
      cursor: pointer;
      user-select: none;
      -webkit-user-select: none;
      filter: none !important;
      border: none !important;
      outline: none !important;
      box-shadow: none !important;
    }

    .convex-glass-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 6px 14px;
      font-size: 0.85rem;
      font-weight: 700;
      white-space: nowrap;
      color: #ffffff !important;
      background: rgba(255, 255, 255, 0.16);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-radius: 9px;
      border: none !important;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22), inset 0 1px 1.5px rgba(255, 255, 255, 0.5), inset 0 -1.5px 3px rgba(0, 0, 0, 0.2) !important;
      cursor: pointer;
      outline: none;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .convex-glass-btn:hover {
      transform: translateY(-2px) scale(1.04);
      background: rgba(255, 255, 255, 0.26);
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32), inset 0 1.5px 2.5px rgba(255, 255, 255, 0.65) !important;
    }

    .convex-glass-btn.danger {
      background: rgba(251, 113, 133, 0.25);
      border: none !important;
      box-shadow: 0 4px 12px rgba(251, 113, 133, 0.2), inset 0 1px 1.5px rgba(255, 255, 255, 0.4) !important;
    }

    .convex-glass-btn.danger:hover {
      background: rgba(251, 113, 133, 0.4);
    }

    /* 导航栏右上角操作按钮组：日夜、设置、退出按钮全设备尺寸、高度、圆角与居中严格统一 */
    #nav-user-ctrl div {
      gap: 8px !important;
    }
    #btn-theme-toggle, #btn-open-settings, #btn-logout-run {
      width: 38px !important;
      height: 32px !important;
      min-width: 38px !important;
      max-width: 38px !important;
      padding: 0 !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      border-radius: 8px !important;
      box-sizing: border-box !important;
      line-height: 1 !important;
      flex-shrink: 0 !important;
    }
    #btn-theme-toggle svg, #btn-open-settings svg, #btn-logout-run svg {
      width: 16px !important;
      height: 16px !important;
      display: block !important;
      margin: auto !important;
      flex-shrink: 0 !important;
      pointer-events: none;
    }

    .btn, .action-btn, .card-btn, .convex-glass-btn {
      position: relative;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* 全局统一 Loading 态：按钮保持外形轮廓，内部文字与图标100%消失，仅显示居中旋转圈 (点 8) */
    .btn.loading, .action-btn.loading, .card-btn.loading, .convex-glass-btn.loading, .icon-btn.loading, button.loading {
      pointer-events: none !important;
      cursor: wait !important;
      position: relative !important;
      color: transparent !important;
      text-shadow: none !important;
      font-size: 0 !important;
      opacity: 0.92 !important;
    }

    .btn.loading *, .action-btn.loading *, .card-btn.loading *, .convex-glass-btn.loading *, .icon-btn.loading *, button.loading * {
      color: transparent !important;
      text-shadow: none !important;
      opacity: 0 !important;
      visibility: hidden !important;
      font-size: 0 !important;
    }

    .btn.loading::after, .action-btn.loading::after, .card-btn.loading::after, .convex-glass-btn.loading::after, .icon-btn.loading::after, button.loading::after {
      content: '' !important;
      position: absolute !important;
      width: 16px !important;
      height: 16px !important;
      top: 50% !important;
      left: 50% !important;
      margin-top: -8px !important;
      margin-left: -8px !important;
      border: 2.2px solid rgba(255, 255, 255, 0.25) !important;
      border-top-color: #38bdf8 !important;
      border-radius: 50% !important;
      animation: spinLoader 0.65s linear infinite !important;
      opacity: 1 !important;
      visibility: visible !important;
      display: block !important;
      z-index: 10 !important;
    }

    @keyframes spinLoader {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    /* 刷新文件列表按钮：点击加载时改为图标自身平滑旋转，子元素svg与path保持可见 (点 5) */
    #btn-reload.loading,
    #btn-re-request.loading {
      color: #ffffff !important;
      font-size: initial !important;
    }
    #btn-reload.loading::after,
    #btn-re-request.loading::after {
      display: none !important;
      content: none !important;
    }
    #btn-reload.loading svg,
    #btn-reload.loading svg *,
    #btn-re-request.loading svg,
    #btn-re-request.loading svg * {
      opacity: 1 !important;
      visibility: visible !important;
      color: inherit !important;
      fill: none !important;
    }
    #btn-reload.loading svg,
    #btn-re-request.loading svg {
      animation: spinLoader 0.75s linear infinite !important;
      transform-origin: center center !important;
    }

    /* 后台设置保存与关闭按钮：尺寸完全一致 (点 2) */
    #btn-save-settings-fixed, #btn-close-settings {
      min-width: 64px !important;
      height: 32px !important;
      padding: 6px 16px !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      box-sizing: border-box !important;
      font-size: 0.85rem !important;
    }
    #btn-save-settings-fixed.loading {
      min-width: 64px !important;
      height: 32px !important;
      padding: 0 !important;
    }

    .btn-liquid {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 24px;
      border-radius: var(--radius-md);
      font-size: 0.92rem;
      font-weight: 700;
      background: rgba(255, 255, 255, 0.18);
      backdrop-filter: blur(20px);
      color: #fff !important;
      box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.45);
      cursor: pointer;
      border: none;
    }

    .btn-liquid:hover {
      background: rgba(255, 255, 255, 0.28);
      transform: translateY(-2px);
      box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.35), inset 0 1px 1.5px rgba(255, 255, 255, 0.6);
    }

    .btn-ghost {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 24px;
      border-radius: var(--radius-md);
      font-size: 0.92rem;
      font-weight: 700;
      background: rgba(255, 255, 255, 0.08);
      color: #fff !important;
      backdrop-filter: blur(16px);
      box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
      cursor: pointer;
      border: none;
    }

    .btn-ghost:hover {
      background: rgba(255, 255, 255, 0.16);
    }

    .btn-danger-pill {
      background: rgba(251, 113, 133, 0.25);
      color: #fff !important;
      padding: 6px 14px;
      font-size: 0.82rem;
      font-weight: 700;
      border-radius: 8px;
      box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
      cursor: pointer;
      border: none;
      transition: all 0.2s;
    }

    .btn-danger-pill:hover {
      background: rgba(251, 113, 133, 0.4);
      transform: translateY(-1px);
    }

    .pill-tag {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 700;
      background: rgba(255, 255, 255, 0.12);
      backdrop-filter: blur(16px);
      color: #fff !important;
      box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
    }

    .pill-tag .live-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--cyan-glow);
      box-shadow: 0 0 10px var(--cyan-glow);
    }

    /* 登录卡片：锁死完全一致的高度与布局结构，切换选项与错误提示出现时绝不抖动，绝不出界 */
    .login-center {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 40px 0;
    }

    .login-card {
      width: 100%;
      max-width: 460px;
      min-height: 410px;
      height: 410px;
      padding: 34px 34px 26px;
      display: flex;
      flex-direction: column;
      text-align: center;
      box-sizing: border-box;
      justify-content: flex-start;
      position: relative;
    }

    .login-tabs {
      display: flex;
      background: rgba(0, 0, 0, 0.25);
      border-radius: 14px;
      padding: 4px;
      margin-bottom: 12px;
      box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
      position: relative;
    }

    .login-tabs .liquid-indicator {
      position: absolute;
      bottom: 4px;
      left: 4px;
      width: calc(50% - 4px);
      height: calc(100% - 8px);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.22);
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.4);
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 0;
      pointer-events: none;
    }

    .login-tabs .liquid-indicator.tab-right {
      transform: translateX(100%);
    }

    .login-tab-btn {
      flex: 1;
      padding: 10px 12px;
      border-radius: 10px;
      font-size: 0.88rem;
      font-weight: 700;
      background: transparent;
      color: rgba(255, 255, 255, 0.8) !important;
      border: none;
      cursor: pointer;
      transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .login-tab-btn.active {
      transform: scale(1.03);
      background: transparent;
      color: #fff !important;
      z-index: 1;
    }

    /* 登录内联错误提示框：预留固定高度与动画，显示时决不挤占与下推后续内容导致出界 (问题 1) */
    .inline-msg-box {
      font-size: 0.82rem;
      font-weight: 700;
      padding: 7px 14px;
      border-radius: 10px;
      margin-bottom: 12px;
      text-align: center;
      line-height: 1.4;
      box-sizing: border-box;
      min-height: 34px;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.25s ease, transform 0.25s ease;
      transform: translateY(-4px);
    }

    .inline-msg-box.show {
      display: flex !important;
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0);
    }

    .inline-msg-box.error {
      background: rgba(251, 113, 133, 0.32);
      color: #fff !important;
      box-shadow: 0 4px 14px rgba(251, 113, 133, 0.25);
      border: 1px solid rgba(251, 113, 133, 0.4);
    }

    .inline-msg-box.success {
      background: rgba(56, 189, 248, 0.32);
      color: #fff !important;
      box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
      border: 1px solid rgba(56, 189, 248, 0.4);
    }

    /* 内容承载区域：锁定绝对高度 192px，内部所有按钮底部绝对对齐 (问题 2) */
    .tab-content-wrapper {
      position: relative;
      width: 100%;
      height: 192px;
      box-sizing: border-box;
    }

    .tab-panel {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      box-sizing: border-box;
      animation: tabFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    #block-send-code,
    #block-verify-code {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      box-sizing: border-box;
    }

    .panel-form-area {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 100%;
      box-sizing: border-box;
    }

    #panel-guest-login .panel-form-area {
      align-items: stretch;
      text-align: left;
    }

    .login-guide-text {
      font-size: 0.82rem;
      opacity: 0.85;
      margin: 0 0 8px 0;
      text-align: center;
    }

    .login-guide-label {
      font-size: 0.84rem;
      font-weight: 700;
      opacity: 0.9;
      margin-bottom: 8px;
      display: block;
    }

    .btn-resend-link {
      background: transparent;
      border: none;
      cursor: pointer;
      color: rgba(255, 255, 255, 0.8);
      font-size: 0.76rem;
      margin-top: 6px;
      padding: 2px 8px;
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
    }

    .btn-resend-link:hover {
      color: #fff;
      background: rgba(255, 255, 255, 0.12);
    }

    /* 登录操作按钮：全选项高度、宽度、圆角、底对齐严格一致 */
    .login-action-btn {
      width: 100% !important;
      height: 46px !important;
      min-height: 46px !important;
      max-height: 46px !important;
      padding: 0 !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      box-sizing: border-box !important;
      margin: 0 !important;
    }

    @keyframes tabFadeIn {
      from { opacity: 0; transform: scale(0.96); }
      to { opacity: 1; transform: scale(1); }
    }

    .code-grid {
      display: flex;
      gap: 8px;
      justify-content: center;
      margin-bottom: 0;
    }

    /* 验证码单个数字输入框：caret-color 设为透明彻底消除光标跳出边框问题 (点 9) */
    .code-cell {
      width: 46px;
      height: 52px;
      background: rgba(255, 255, 255, 0.12);
      backdrop-filter: blur(16px);
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: var(--radius-sm);
      color: #fff !important;
      font-size: 1.45rem;
      font-weight: 800;
      text-align: center;
      line-height: normal;
      padding: 0 !important;
      caret-color: #fff !important;
      box-sizing: border-box;
      outline: none;
      box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.35), 0 4px 12px rgba(0,0,0,0.15);
      transition: all 0.2s;
    }

    .code-cell:focus {
      background: rgba(255, 255, 255, 0.22);
      border-color: #38bdf8 !important;
      box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 0 16px rgba(56, 189, 248, 0.55);
    }

    .input-field {
      width: 100%;
      padding: 12px 16px;
      border-radius: 12px;
      background: rgba(0, 0, 0, 0.28);
      border: none;
      color: #fff !important;
      font-size: 0.92rem;
      outline: none;
      box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
      transition: box-shadow 0.2s;
    }

    .input-field:focus {
      box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 15px rgba(56, 189, 248, 0.45);
    }

    /* Duplicate .inline-msg-box removed to prevent overriding display: flex */

    .inline-msg-box.error {
      background: rgba(251, 113, 133, 0.35);
      color: #fff !important;
      box-shadow: 0 4px 14px rgba(251, 113, 133, 0.25);
    }

    .inline-msg-box.success {
      background: rgba(56, 189, 248, 0.35);
      color: #fff !important;
      box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
    }

    @keyframes shakeIn {
      0%, 100% { transform: translateX(0); }
      25% { transform: translateX(-4px); }
      75% { transform: translateX(4px); }
    }

            .upload-zone {
      position: relative;
      padding: 50px 32px;
      text-align: center;
      cursor: pointer;
      margin-bottom: 28px;
      border-radius: var(--radius-lg);
    }

    .upload-zone.drag-active {
      background: rgba(255, 255, 255, 0.22);
      transform: scale(1.02);
    }

    .zone-lens {
      width: 58px;
      height: 58px;
      margin: 0 auto 16px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.14);
      backdrop-filter: blur(20px);
      box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      transition: transform 0.3s;
    }

    .upload-zone:hover .zone-lens {
      transform: translateY(-4px);
    }

    .monitor-panel {
      margin-top: 22px;
      padding: 18px 22px;
      border-radius: var(--radius-md);
      background: rgba(0, 0, 0, 0.35);
      backdrop-filter: blur(30px);
      box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
      display: none;
      flex-direction: column;
      gap: 12px;
      text-align: left;
      cursor: default;
    }

    .fluid-track {
      width: 100%;
      height: 7px;
      background: rgba(255, 255, 255, 0.15);
      border-radius: 4px;
      overflow: hidden;
      position: relative;
    }

    .fluid-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, #38bdf8, #818cf8);
      border-radius: 4px;
      transition: width 0.12s linear;
      box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
    }

    .monitor-stats {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.82rem;
      font-variant-numeric: tabular-nums;
    }

    .speed-badge {
      color: var(--cyan-glow) !important;
      font-weight: 700;
    }

    .section-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      margin-bottom: 20px;
      flex-wrap: wrap;
    }

    .section-label {
      font-size: 1.25rem;
      font-weight: 800;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .search-box {
      position: relative;
      min-width: 240px;
      max-width: 360px;
      flex: 1;
    }

    .search-input {
      width: 100%;
      padding: 9px 14px 9px 36px;
      border-radius: 12px;
      background: rgba(0, 0, 0, 0.3);
      border: none;
      color: #fff !important;
      font-size: 0.86rem;
      outline: none;
      box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.2);
    }

    .search-icon {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      width: 15px;
      height: 15px;
      stroke: rgba(255, 255, 255, 0.7) !important;
      color: rgba(255, 255, 255, 0.7) !important;
      pointer-events: none;
      display: block;
    }

    .action-btn-group {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex-direction: row;
      flex-wrap: nowrap;
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 22px;
    }

    .media-card {
      overflow: hidden;
      display: flex;
      flex-direction: column;
      content-visibility: auto;
      contain-intrinsic-size: 280px;
    }

    .media-viewport {
      position: relative;
      width: 100%;
      min-height: 140px;
      aspect-ratio: 16 / 9;
      background: rgba(0, 0, 0, 0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      cursor: pointer;
    }

    .media-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }

    .media-card:hover .media-image {
      transform: scale(1.05);
    }

    .media-video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .tag-bubble {
      position: absolute;
      top: 10px;
      right: 10px;
      padding: 3px 7px;
      border-radius: 6px;
      font-size: 0.72rem;
      font-weight: 700;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(12px);
      box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
      color: #fff !important;
    }

    .card-meta-box {
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      flex: 1;
    }

    .card-title {
      font-size: 0.92rem;
      font-weight: 700;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: #ffffff !important;
    }

    .card-row {
      display: flex;
      justify-content: space-between;
      font-size: 0.8rem;
    }

    .card-btn-group {
      display: flex;
      gap: 5px;
      margin-top: auto;
      width: 100%;
    }

    .card-btn {
      flex: 1;
      min-width: 0;
      height: 32px;
      padding: 0;
      border-radius: 7px;
      border: none !important;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.12);
      color: #fff !important;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.25);
      transition: all 0.2s;
    }

    .card-btn svg {
      width: 14px;
      height: 14px;
      vertical-align: middle;
      display: block;
      stroke: currentColor;
    }

    .card-btn:hover {
      background: rgba(255, 255, 255, 0.22);
      transform: translateY(-1px);
    }

    .card-btn.active {
      background: rgba(56, 189, 248, 0.35) !important;
      box-shadow: 0 0 12px rgba(56, 189, 248, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    }

    .card-btn.del-btn:hover {
      background: rgba(251, 113, 133, 0.35);
    }

    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.45);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
    }

    .modal-overlay.active {
      opacity: 1;
      pointer-events: auto;
    }

    .modal-viewport-box {
      position: relative;
      max-width: 90vw;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 12px;
      border: none !important;
    }

    .modal-media-item {
      max-width: 100%;
      max-height: 80vh;
      border-radius: var(--radius-md);
      object-fit: contain;
    }

    .modal-exit-btn {
      position: fixed;
      top: 24px;
      right: 28px;
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: rgba(15, 23, 42, 0.85) !important;
      backdrop-filter: blur(16px);
      color: #ffffff !important;
      border: none !important;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 1.5px rgba(255, 255, 255, 0.5) !important;
      font-size: 1.5rem;
      font-weight: 800;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .modal-exit-btn:hover {
      transform: scale(1.1) rotate(90deg);
      background: rgba(15, 23, 42, 0.95) !important;
    }

    .confirm-box {
      width: 100%;
      max-width: 440px;
      padding: 32px 28px;
      text-align: center;
      display: flex;
      flex-direction: column;
      gap: 16px;
      border: none !important;
    }

    .confirm-icon {
      width: 54px;
      height: 54px;
      margin: 0 auto;
      border-radius: 16px;
      background: rgba(251, 113, 133, 0.25);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
      box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
    }
    /* 临时凭据管理项：按需求改为宽敞舒适的横向扁平长方形按钮 (点 12) */
    .token-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 18px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      margin-bottom: 10px;
      box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
      font-size: 0.85rem;
      border: none !important;
    }

    .token-item-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .token-action-btn {
      height: 32px;
      padding: 0 16px;
      min-width: 60px;
      border-radius: 8px;
      border: none !important;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.14);
      color: #fff !important;
      font-size: 0.82rem;
      font-weight: 700;
      backdrop-filter: blur(12px);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.25);
      cursor: pointer;
      transition: all 0.2s;
    }

    .token-action-btn:hover {
      background: rgba(255, 255, 255, 0.24);
      transform: translateY(-1px);
    }

    .token-action-btn.del-btn {
      background: rgba(251, 113, 133, 0.25);
    }

    .token-action-btn.del-btn:hover {
      background: rgba(251, 113, 133, 0.4);
    }

    .top-toast-center {
      position: fixed;
      top: 24px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 999;
      pointer-events: none;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .toast-capsule {
      padding: 10px 22px;
      border-radius: 30px;
      background: rgba(15, 23, 42, 0.9);
      backdrop-filter: blur(24px);
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 1.5px rgba(255, 255, 255, 0.3);
      color: #fff !important;
      font-size: 0.88rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 10px;
      animation: slideDownFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      border: none !important;
    }

    @keyframes slideDownFade {
      from { opacity: 0; transform: translateY(-16px) scale(0.96); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    /* 设置弹窗：硬件加速极速秒开、杜绝层叠重度模糊导致的卡顿掉帧 (点 5) */
    #modal-settings {
      background: rgba(0, 0, 0, 0.55) !important;
      backdrop-filter: blur(8px) !important;
      -webkit-backdrop-filter: blur(8px) !important;
    }

    .settings-modal-box {
      width: 100%;
      max-width: 620px;
      height: 600px;
      display: flex;
      flex-direction: column;
      padding: 24px 28px;
      text-align: left;
      border: none !important;
      background: var(--glass-surface);
      backdrop-filter: blur(16px) saturate(160%);
      -webkit-backdrop-filter: blur(16px) saturate(160%);
      box-shadow: 0 16px 44px 0 rgba(0, 0, 0, 0.45), inset 0 1px 2px 0 rgba(255, 255, 255, 0.4) !important;
      overflow: hidden;
      position: relative;
      transform: translateZ(0);
      will-change: transform, opacity;
    }

    .settings-fixed-header {
      flex-shrink: 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-bottom: 14px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
      margin-bottom: 14px;
    }

    .settings-header-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .settings-scroll-body {
      flex: 1;
      overflow-y: auto;
      scrollbar-width: none;
      -ms-overflow-style: none;
      padding: 6px 4px 14px 2px;
    }
    .settings-scroll-body::-webkit-scrollbar {
      display: none;
    }

    .settings-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 18px;
      position: relative;
      border-bottom: none;
    }

    .settings-tab-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 36px;
      padding: 0 16px;
      border-radius: 8px;
      background: transparent;
      color: rgba(255, 255, 255, 0.8) !important;
      font-size: 0.85rem;
      font-weight: 700;
      cursor: pointer;
      border: none !important;
      white-space: nowrap;
      transition: all 0.2s;
      position: relative;
      z-index: 1;
      line-height: 1;
    }

    .settings-tab-btn.active {
      color: #fff !important;
    }

    .settings-tabs .liquid-indicator {
      position: absolute;
      top: 0;
      bottom: 0;
      height: 100%;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.22);
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.4);
      transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 0;
      pointer-events: none;
    }

    .settings-field-group {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-bottom: 16px;
    }

    .settings-field-group label {
      font-size: 0.82rem;
      font-weight: 700;
    }

    .range-wrapper {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .range-input {
      flex: 1;
      accent-color: #38bdf8;
      cursor: pointer;
    }

    /* 夜间模式背景自动变暗 */
    html[data-theme="dark"] .viewport-bg-layer {
      filter: brightness(0.55) !important;
    }

    /* 后缀与自定义标签分类 Chip 栏 */
    .filter-chips-bar {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 18px;
    }

    .filter-chip {
      padding: 5px 14px;
      border-radius: 20px;
      font-size: 0.78rem;
      font-weight: 700;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(12px);
      color: rgba(255, 255, 255, 0.8) !important;
      cursor: pointer;
      border: none !important;
      transition: all 0.25s;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    }

    .filter-chip:hover {
      background: rgba(255, 255, 255, 0.18);
    }

    
    .filter-chip.loading {
      position: relative !important;
      color: transparent !important;
      pointer-events: none !important;
    }
    .filter-chip.loading * {
      visibility: hidden !important;
      opacity: 0 !important;
    }
    .filter-chip.loading::after {
      content: '' !important;
      position: absolute !important;
      width: 14px !important;
      height: 14px !important;
      top: 50% !important;
      left: 50% !important;
      margin-top: -7px !important;
      margin-left: -7px !important;
      border: 2px solid rgba(255, 255, 255, 0.25) !important;
      border-top-color: #38bdf8 !important;
      border-radius: 50% !important;
      animation: spinLoader 0.6s linear infinite !important;
      display: block !important;
      z-index: 5 !important;
    }

    .filter-chip.active {
      background: rgba(56, 189, 248, 0.35);
      color: #fff !important;
      box-shadow: 0 0 12px rgba(56, 189, 248, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    }

    .filter-chip.custom-tag {
      background: rgba(168, 85, 247, 0.18);
    }

    .filter-chip.custom-tag.active {
      background: rgba(168, 85, 247, 0.45);
      box-shadow: 0 0 12px rgba(168, 85, 247, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    }

    .filter-chip.add-tag-btn {
      background: rgba(255, 255, 255, 0.16);
      border: 1px dashed rgba(255, 255, 255, 0.35) !important;
    }

    /* 多格式复制弹窗平滑过渡展开动画 (点 5) */
    .copy-popup {
      position: fixed;
      z-index: 200;
      background: rgba(15, 23, 42, 0.92);
      backdrop-filter: blur(28px) saturate(180%);
      -webkit-backdrop-filter: blur(28px) saturate(180%);
      border-radius: 14px;
      padding: 8px;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 1.5px rgba(255, 255, 255, 0.3);
      display: flex;
      flex-direction: column;
      gap: 3px;
      min-width: 175px;
      border: none !important;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-8px) scale(0.92);
      pointer-events: none;
      transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
      transform-origin: top center;
    }

    .copy-popup.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scale(1);
      pointer-events: auto;
    }

    .copy-popup-item {
      padding: 8px 12px;
      border-radius: 8px;
      font-size: 0.8rem;
      font-weight: 600;
      color: #fff !important;
      cursor: pointer;
      border: none !important;
      background: transparent;
      text-align: left;
      transition: background 0.15s;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .copy-popup-item:hover {
      background: rgba(255, 255, 255, 0.14);
    }

    /* 卡片网格大小模式切换样式 (点 6) */
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 20px;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .gallery-grid.grid-size-compact {
      grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
      gap: 12px !important;
    }

    .gallery-grid.grid-size-compact .media-viewport {
      min-height: 105px !important;
    }

    .gallery-grid.grid-size-compact .card-meta-box {
      padding: 8px 10px !important;
      gap: 5px !important;
    }

    .gallery-grid.grid-size-compact .card-title {
      font-size: 0.8rem !important;
    }

    .gallery-grid.grid-size-compact .card-row {
      font-size: 0.72rem !important;
    }

    .gallery-grid.grid-size-compact .card-btn {
      padding: 3px 6px !important;
      font-size: 0.72rem !important;
    }

    .gallery-grid.grid-size-large {
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
      gap: 24px !important;
    }

    .gallery-grid.grid-size-large .media-viewport {
      min-height: 200px !important;
    }

    /* 编辑模式 */
    .edit-bar {
      display: flex;
      gap: 10px;
      align-items: center;
      margin-bottom: 14px;
      flex-wrap: wrap;
    }

    .media-card .edit-checkbox {
      position: absolute;
      top: 10px;
      left: 10px;
      width: 24px;
      height: 24px;
      border-radius: 7px;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(8px);
      border: none !important;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.35);
      cursor: pointer;
      z-index: 5;
      display: none;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      color: #fff;
      font-size: 0.8rem;
      font-weight: 800;
    }

    .media-card .edit-checkbox.checked {
      background: #38bdf8;
      box-shadow: 0 0 12px rgba(56, 189, 248, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    }
    .media-card .edit-checkbox.checked::after {
      content: '✓';
    }

    .edit-mode .media-card .edit-checkbox {
      display: flex;
    }

    /* 编辑模式下存储标签向右平移，避免与左上角勾选框重叠 (点 1) */
    .edit-mode .media-card .tag-storage-bubble {
      left: 42px !important;
    }

    .edit-mode .media-card {
      cursor: pointer;
      user-select: none;
    }

    .media-card.selected-card {
      box-shadow: 0 0 0 2px #38bdf8, 0 12px 32px rgba(56, 189, 248, 0.25) !important;
    }

    /* 多文件上传列表 */
    
    .target-storage-btn {
      padding: 6px 14px;
      border-radius: 9px;
      font-size: 0.82rem;
      font-weight: 600;
      border: 1px solid transparent;
      background: transparent;
      color: rgba(255, 255, 255, 0.7);
      cursor: pointer;
      transition: all 0.25s ease;
    }
    .target-storage-btn:hover {
      color: #fff;
      background: rgba(255, 255, 255, 0.1);
    }
    .target-storage-btn.active#btn-target-r2 {
      background: rgba(56, 189, 248, 0.25);
      border-color: rgba(56, 189, 248, 0.6);
      color: #38bdf8;
      box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
    }
    .target-storage-btn.active#btn-target-tg {
      background: rgba(168, 85, 247, 0.25);
      border-color: rgba(168, 85, 247, 0.6);
      color: #c084fc;
      box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
    }
    .storage-stats-card {
      cursor: pointer;
      user-select: none;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .storage-stats-card:hover {
      transform: translateY(-2px);
    }
    .storage-stats-card.active-filter#card-storage-r2 {
      border: 1px solid rgba(56, 189, 248, 0.85) !important;
      box-shadow: 0 0 20px rgba(56, 189, 248, 0.35) !important;
    }
    .storage-stats-card.active-filter#card-storage-tg {
      border: 1px solid rgba(168, 85, 247, 0.85) !important;
      box-shadow: 0 0 20px rgba(168, 85, 247, 0.35) !important;
    }

    .upload-queue-container {
      max-height: 150px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-top: 10px;
      padding-top: 8px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      scrollbar-width: none;
    }
    .upload-queue-container::-webkit-scrollbar { display: none; }

    .upload-queue-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 6px 12px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 8px;
      font-size: 0.78rem;
      border: none !important;
    }

    .upload-queue-item .status-badge {
      padding: 2px 8px;
      border-radius: 12px;
      font-size: 0.72rem;
      font-weight: 700;
    }
    .upload-queue-item .status-badge.wait { background: rgba(255, 255, 255, 0.15); }
    .upload-queue-item .status-badge.running { background: rgba(56, 189, 248, 0.3); color: #38bdf8; }
    .upload-queue-item .status-badge.done { background: rgba(52, 211, 153, 0.3); color: #34d399; }
    .upload-queue-item .status-badge.error { background: rgba(251, 113, 133, 0.3); color: #fb7185; }

    @media (max-width: 640px) {
      /* 彻底解决手机端滑动窗口导致背景无限放大问题 */
      .viewport-bg-layer {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background-image: var(--bg-mobile-url) !important;
        background-size: cover !important;
        background-position: center center !important;
        background-attachment: scroll !important;
        background-repeat: no-repeat !important;
        transform: translateZ(0) !important;
      }
      .app-viewport { padding: 14px 12px; }
      .navbar { padding: 10px 14px; margin-bottom: 18px; border-radius: 18px; }
      
      /* 手机端日夜、设置、退出按钮尺寸与高度统一为扁平长方形，图标完美居中 */
      #nav-user-ctrl div { gap: 6px !important; }
      #btn-theme-toggle, #btn-open-settings, #btn-logout-run {
        width: 36px !important;
        height: 32px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        padding: 0 !important;
      }

      .login-card { padding: 28px 18px 24px; border-radius: 20px; min-height: 380px; height: 380px; }
      .code-grid { gap: 6px; }
      .code-cell { width: 38px !important; height: 48px !important; line-height: normal !important; font-size: 1.25rem !important; caret-color: #fff !important; box-sizing: border-box !important; }

      /* 移动端卡片大小三档自适应切换 (点 11) */
      .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
      }
      .media-card {
        contain-intrinsic-size: 160px;
      }
      .gallery-grid.grid-size-compact {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
      }
      /* 手机端切换到最小卡片时，卡片底部按钮修正为正方形 (点 11) */
      .gallery-grid.grid-size-compact .media-card .card-btn-group {
        gap: 3px !important;
      }
      .gallery-grid.grid-size-compact .media-card .card-btn {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        border-radius: 5px !important;
      }
      .gallery-grid.grid-size-compact .media-card .card-btn svg {
        width: 12px !important;
        height: 12px !important;
      }
      .gallery-grid.grid-size-large {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
      }
      
      .section-bar { flex-direction: column; align-items: stretch; gap: 12px; }
      .search-box { max-width: 100%; min-width: 100%; }

      /* 移动端操作栏按钮横排排列，绝不垂直换行或挤压 (点 3, 10) */
      .action-btn-group {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: auto !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
      }
      .action-btn-group .card-btn {
        flex: 0 0 auto !important;
        width: 38px !important;
        height: 36px !important;
        padding: 0 !important;
      }

      /* 移动端双存储卡片单列布局 */
      .storage-dual-grid {
        grid-template-columns: 1fr !important;
      }

      .liquid-glass-logo, .brand-title { height: 32px; max-width: 190px; }
      .settings-modal-box { padding: 20px 16px; height: 90vh; }
      .modal-exit-btn { top: 16px; right: 16px; width: 38px; height: 38px; }
    }
