    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --bg-primary: #f5f5f5;
      --bg-secondary: #ffffff;
      --text-primary: #333333;
      --text-secondary: #999999;
      --border-color: #e5e5e5;
      --primary-color: #409eff;
      --success-color: #67c23a;
      --warning-color: #e6a23c;
      --grid-color: rgba(0, 0, 0, 0.04);
      --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
      --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    [data-theme="dark"] {
      --bg-primary: #1a1a1a;
      --bg-secondary: #2d2d2d;
      --text-primary: #e5e5e5;
      --text-secondary: #999999;
      --border-color: #404040;
      --grid-color: rgba(255, 255, 255, 0.03);
      --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
      --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
      background: var(--bg-primary);
      color: var(--text-primary);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      position: relative;
    }

    body::before {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: 
        linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
      background-size: 20px 20px;
      z-index: -1;
      pointer-events: none;
    }

    /* 导航栏 */
    .navbar {
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--border-color);
      padding: 10px 20px;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: var(--shadow-sm);
    }

    .nav-container {
      max-width: 1000px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .nav-title {
      font-size: 22px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--text-primary);
      transition: opacity 0.2s;
    }

    .nav-title:hover {
      opacity: 0.8;
    }

    .nav-title img {
      width: 28px;
      height: 28px;
      border-radius: 6px;
    }

    .nav-buttons {
      display: flex;
      gap: 12px;
      align-items: center;
    }

    .nav-btn {
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      padding: 6px 14px;
      border-radius: 6px;
      cursor: pointer;
      font-size: 13px;
      color: var(--text-primary);
      transition: all 0.2s;
      font-weight: 500;
      position: relative;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    /* 红色数字气泡样式 */
    .badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background-color: #ff4d4f;
      color: white;
      font-size: 10px;
      font-weight: bold;
      min-width: 16px;
      height: 16px;
      padding: 0 4px;
      border-radius: 10px;
      line-height: 1;
      white-space: nowrap;
      box-shadow: 0 0 0 1px #fff;
    }

    .nav-btn .badge {
      margin-left: 2px;
    }

    [data-theme="dark"] .badge {
      box-shadow: 0 0 0 1px #2d2d2d;
    }

    .nav-btn:hover {
      background: var(--bg-primary);
      border-color: var(--primary-color);
      color: var(--primary-color);
    }

    .theme-toggle {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      border: 1px solid var(--border-color);
      background: var(--bg-secondary);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      transition: all 0.2s;
    }

    .theme-toggle:hover {
      background: var(--bg-primary);
      transform: scale(1.05);
    }

    /* 主容器 */
    .container {
      max-width: 800px;
      margin: 40px auto 100px;
      padding: 0 20px;
      flex: 1;
      width: 100%;
    }

    .main-card {
      background: var(--bg-secondary);
      border-radius: 16px;
      box-shadow: var(--shadow-md);
      overflow: hidden;
      border: 1px solid var(--border-color);
      display: flex;
      flex-direction: column;
      min-height: 360px;
    }

    /* 针对上传和设置视图保持固定高度，其他视图自适应 */
    #uploadView, #settingsView {
      height: 360px;
    }

    /* 上传区域 */
    .upload-area {
      padding: 20px;
      text-align: center;
      cursor: pointer;
      transition: all 0.3s;
      position: relative;
      background: var(--bg-secondary);
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      box-sizing: border-box;
      border-radius: 16px;
    }

    #uploadView.hidden, #settingsView.hidden, #mainView.hidden, #apiView.hidden, #historyView.hidden {
      display: none !important;
    }

    #uploadView, #settingsView {
      display: flex;
      flex-direction: column;
    }

    /* 骨架屏样式 */
    .skeleton {
      background: linear-gradient(90deg, var(--bg-primary) 25%, var(--border-color) 37%, var(--bg-primary) 63%);
      background-size: 400% 100%;
      animation: skeleton-loading 1.4s ease infinite;
      border-radius: 8px;
    }
    @keyframes skeleton-loading {
      0% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }
    .skeleton-card {
      width: 100%;
      height: 320px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 16px;
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: 12px;
    }
    .skeleton-image { height: 200px; width: 100%; }
    .skeleton-text { height: 20px; width: 80%; }
    .skeleton-button { height: 36px; width: 100%; }

    .upload-area:hover {
      background: var(--bg-primary);
    }

    .folder-icon {
      width: 120px;
      height: 100px;
      margin: 0 auto 64px;
      position: relative;
      filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    }

    .folder-icon::before {
      content: '';
      position: absolute;
      top: 0;
      left: 15%;
      width: 35%;
      height: 14px;
      background: linear-gradient(to bottom, #f1c40f 0%, #f39c12 100%);
      border-radius: 4px 4px 0 0;
      box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 2px rgba(0, 0, 0, 0.1);
    }

    .folder-icon::after {
      content: '';
      position: absolute;
      top: 14px;
      left: 0;
      width: 100%;
      height: 86px;
      background: linear-gradient(to bottom, #f1c40f 0%, #f39c12 60%, #e67e22 100%);
      border-radius: 8px;
      box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15);
    }

    .upload-title {
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 24px;
      color: var(--text-primary);
    }

    .upload-subtitle {
      color: var(--text-secondary);
      font-size: 14px;
      margin-bottom: 16px;
      line-height: 1.6;
    }

    .upload-hint {
      color: var(--text-secondary);
      font-size: 13px;
      margin-top: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    .settings-btn {
      position: absolute;
      top: 24px;
      right: 24px;
      width: 42px;
      height: 42px;
      border-radius: 50%;
      border: 1px solid var(--border-color);
      background: var(--bg-secondary);
      cursor: pointer;
      font-size: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      box-shadow: var(--shadow-sm);
    }

    .settings-btn:hover {
      background: var(--bg-primary);
      transform: rotate(90deg);
    }

    /* 设置面板 */
    .settings-panel {
      padding: 16px 24px;
      height: 100%; /* 撑满父容器 */
      display: flex;
      flex-direction: column;
      justify-content: center;
      box-sizing: border-box;
      position: relative;
      overflow-y: auto; /* 允许垂直滚动以防止内容溢出 */
    }

    /* X关闭按钮 */
    .settings-close-btn {
      position: absolute;
      top: 20px;
      right: 20px;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 1px solid var(--border-color);
      background: var(--bg-secondary);
      cursor: pointer;
      font-size: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      box-shadow: var(--shadow-sm);
      color: var(--text-secondary);
      z-index: 10;
    }

    .settings-close-btn:hover {
      background: var(--bg-primary);
      color: var(--text-primary);
      transform: rotate(90deg);
    }

    .settings-title {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 12px;
      margin-top: -8px; /* 标题上移 */
      color: var(--text-primary);
    }

    .setting-item {
      margin-bottom: 14px;
    }

    .setting-item:last-child {
      margin-bottom: 0;
    }

    .setting-item label {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      cursor: pointer;
      font-size: 14px;
    }

    .setting-item input[type="checkbox"] {
      width: 18px;
      height: 18px;
      margin-top: 1px;
      cursor: pointer;
      accent-color: var(--success-color);
    }

    .setting-label-text {
      flex: 1;
    }

    .setting-desc {
      color: var(--text-secondary);
      font-size: 12px;
      margin-top: 4px;
      line-height: 1.4;
    }

    .quality-control {
      margin-top: 8px;
    }

    .quality-label {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 14px;
      margin-bottom: 8px;
    }

    .quality-value {
      color: var(--success-color);
      font-weight: 700;
      font-size: 14px;
    }

    input[type="range"] {
      width: 100%;
      height: 6px;
      border-radius: 3px;
      background: var(--border-color);
      outline: none;
      -webkit-appearance: none;
      accent-color: var(--success-color);
    }

    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: var(--success-color);
      cursor: pointer;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }



    /* API 页面 */
    .api-container {
      padding: 48px;
    }

    .api-section {
      margin-bottom: 48px;
    }

    .api-section-title {
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 24px;
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--text-primary);
    }

    .api-key-box {
      display: flex;
      gap: 12px;
      margin-bottom: 24px;
    }

    .api-key-input {
      flex: 1;
      padding: 12px 16px;
      border: 1px solid var(--border-color);
      border-radius: 8px;
      background: var(--bg-primary);
      color: var(--text-primary);
      font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
      font-size: 13px;
    }

    .api-btn {
      padding: 12px 24px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
      font-weight: 600;
      transition: all 0.2s;
      box-shadow: var(--shadow-sm);
    }

    .api-btn:hover {
      transform: translateY(-1px);
      box-shadow: var(--shadow-md);
    }

    .api-btn-primary {
      background: var(--primary-color);
      color: white;
    }

    .api-btn-warning {
      background: var(--warning-color);
      color: white;
    }

    .api-doc-item {
      background: var(--bg-primary);
      border-radius: 12px;
      padding: 24px;
      margin-bottom: 24px;
      border: 1px solid var(--border-color);
    }

    .api-method {
      display: inline-block;
      padding: 4px 14px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 700;
      margin-right: 12px;
      letter-spacing: 0.5px;
    }

    .method-post { background: #67c23a; color: white; }
    .method-get { background: #409eff; color: white; }
    .method-delete { background: #f56c6c; color: white; }

    .api-endpoint {
      font-weight: 600;
      font-size: 16px;
      color: var(--text-primary);
    }

    .api-description {
      margin: 12px 0;
      color: var(--text-secondary);
      font-size: 14px;
      line-height: 1.6;
    }

    .code-block {
      background: #2c3e50;
      color: #ecf0f1;
      padding: 20px;
      border-radius: 8px;
      font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
      font-size: 13px;
      margin-top: 12px;
      position: relative;
      overflow-x: auto;
      line-height: 1.6;
    }

    .code-block pre {
      margin: 0;
      white-space: pre-wrap;
      word-wrap: break-word;
    }

    .copy-code-btn {
      position: absolute;
      top: 12px;
      right: 12px;
      padding: 6px 12px;
      background: rgba(255, 255, 255, 0.1);
      color: #ecf0f1;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 4px;
      cursor: pointer;
      font-size: 12px;
      transition: all 0.2s;
    }

    .copy-code-btn:hover {
      background: rgba(255, 255, 255, 0.2);
    }

    /* 结果展示 */
    .results-container {
      padding: 0;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* 恢复稳定版的网格设置 */
      gap: 20px;
      width: 100%;
    }

    .result-card {
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      transition: all 0.2s;
      height: auto;
      margin-bottom: 20px;
    }

    .result-card:hover {
      box-shadow: var(--shadow-md);
      transform: translateY(-2px);
    }

    .result-image-wrapper {
      width: 100%;
      height: 200px; /* 调整为更适中的高度，对齐主流图床布局 */
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--bg-primary);
      cursor: pointer;
      overflow: hidden;
      border-bottom: 1px solid var(--border-color);
    }

    .result-image {
      width: 100%;
      height: 100%;
      object-fit: cover; /* 使用 cover 确保图片填满容器且不拉伸变形 */
      transition: transform 0.3s;
    }

    .result-image-wrapper:hover .result-image {
      transform: scale(1.05);
    }

    .result-info {
      padding: 16px;
    }

    .result-url {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid var(--border-color);
      border-radius: 6px;
      background: var(--bg-primary);
      color: var(--text-primary);
      font-size: 12px;
      margin-bottom: 12px;
      outline: none;
    }

    .result-format-buttons {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .format-btn {
      flex: 1;
      height: 36px;
      border: 1px solid rgba(0, 0, 0, 0.05);
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
      font-weight: 500;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
      background: var(--bg-secondary);
      color: var(--text-primary);
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    [data-theme="dark"] .format-btn {
      border-color: rgba(255, 255, 255, 0.1);
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    .format-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: currentColor;
      opacity: 0.08;
      transition: opacity 0.2s;
    }

    .format-btn.btn-url { color: #2ecc71; border-color: rgba(46, 204, 113, 0.2); }
    .format-btn.btn-html { color: #e67e22; border-color: rgba(230, 126, 34, 0.2); }
    .format-btn.btn-markdown { color: #3498db; border-color: rgba(52, 152, 219, 0.2); }
    .format-btn.btn-bbcode { color: #e74c3c; border-color: rgba(231, 76, 60, 0.2); }

    .format-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      border-color: currentColor;
    }

    .format-btn:hover::before {
      opacity: 0.15;
    }

    .format-btn:active {
      transform: translateY(0);
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .format-btn span {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .format-btn .btn-text {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      opacity: 0.9;
    }

    /* 动画 */
    .fade-in { animation: fadeIn 0.3s ease-out forwards; }
    .fade-out { animation: fadeOut 0.3s ease-in forwards; }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeOut {
      from { opacity: 1; transform: translateY(0); }
      to { opacity: 0; transform: translateY(10px); }
    }

    /* 预览弹窗样式 */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 2000;
      backdrop-filter: blur(4px);
    }

    .modal-content {
      background: var(--bg-secondary);
      width: 90%;
      max-width: 500px;
      border-radius: 16px;
      padding: 16px;
      position: relative;
      box-shadow: var(--shadow-md);
      animation: modalScale 0.3s ease-out;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
    }

    @keyframes modalScale {
      from { transform: scale(0.9); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }

    .modal-close {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: var(--bg-primary);
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      color: var(--text-secondary);
      z-index: 10;
    }
    .modal-image-container {
      width: 100%;
      max-height: 60vh;
      overflow-y: auto;
      border-radius: 12px;
      margin-bottom: 16px;
      background: var(--bg-primary);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .modal-image {
      max-width: 100%;
      height: auto;
      display: block;
    }  background: var(--bg-primary);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .modal-image {
      max-width: 100%;
      max-height: 60vh;
      object-fit: contain;
    }

    .modal-footer {
      display: flex;
      gap: 10px;
      align-items: center;
    }

    .modal-input {
      flex: 1;
      padding: 12px 16px;
      border: 1px solid var(--border-color);
      border-radius: 8px;
      background: var(--bg-primary);
      color: var(--text-primary);
      font-size: 14px;
      outline: none;
    }

    .modal-copy-btn {
      padding: 12px 20px;
      background: #409eff;
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
    }

    .modal-copy-btn:hover {
      background: #3a8ee6;
    }

    /* 页脚 */
    .footer {
      padding: 20px;
      text-align: center;
      color: var(--text-secondary);
      font-size: 14px;
      border-top: none;
      background: transparent;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      margin-top: auto; /* 确保在底部 */
      z-index: 10;
    }

    .footer > * {
      pointer-events: auto; /* 恢复页脚内容的交互 */
    }

    .footer-link {
      display: flex;
      align-items: center;
      gap: 4px;
      color: var(--text-secondary);
      font-size: 10px;
      font-weight: bold;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      opacity: 0;
      animation: fadeInDelayed 0.6s ease-out 0.6s forwards;
      transition: all 0.3s;
    }

    .footer-link i {
      font-style: normal;
      color: #f1c40f;
      animation: lightningPulse 2s infinite;
    }

    #latency-value {
      color: var(--primary-color);
    }

    .footer-copyright {
      font-size: 12px;
      opacity: 0;
      animation: fadeInDelayed 0.6s ease-out 1.0s forwards;
      letter-spacing: 0.3px;
    }

    @keyframes fadeInDelayed {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes lightningPulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.7; transform: scale(1.1); }
    }

    /* Nodeimage 像素级复刻提示框 */
    .toast-container {
      position: fixed;
      top: 45px;
      right: 8px;
      z-index: 10000;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 8px;
      pointer-events: none;
    }

    .toast {
      background-color: #86efac; /* 清新浅绿色 */
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      color: #166534; /* 深绿色文字 */
      padding: 6px 14px;
      border-radius: 30px; /* 恢复圆角矩形胶囊形状 */
      font-size: 12px;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 6px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.3);
      pointer-events: auto;
      animation: nodeimage-toast-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
      white-space: nowrap;
    }

    .toast-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 16px;
      height: 16px;
      background: #ffffff;
      border-radius: 50%; /* 恢复圆形图标背景 */
      flex-shrink: 0;
    }

    .toast-icon svg {
      width: 10px;
      height: 10px;
      fill: #22c55e; /* 图标颜色与浅绿背景协调 */
    }

    .toast.fade-out {
      animation: nodeimage-toast-out 0.4s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
    }

    @keyframes nodeimage-toast-in {
      0% { transform: translateY(-50px) scale(0.8); opacity: 0; }
      100% { transform: translateY(0) scale(1); opacity: 1; }
    }

    @keyframes nodeimage-toast-out {
      0% { transform: translateY(0) scale(1); opacity: 1; }
      100% { transform: translateY(-20px) scale(0.8); opacity: 0; }
    }

    .hidden { display: none !important; }

    /* 响应式 */
    @media (max-width: 768px) {
      .main-card {
        height: auto; /* 移动端自适应高度 */
        min-height: 340px;
        max-height: none; /* 移除最大高度限制，允许页面滚动 */
        overflow: visible; /* 允许内容撑开 */
      }
      
      /* 移动端设置面板仍需限制高度并支持内部滚动 */
      #settingsView .settings-panel {
        max-height: 80vh;
        overflow-y: auto;
      }
      .settings-panel {
        padding: 40px 16px 16px; /* 顶部留出X按钮空间 */
        justify-content: flex-start; /* 内容靠上对齐 */
      }
      .settings-close-btn {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
        font-size: 18px;
        z-index: 100; /* 确保在最上层 */
        background: var(--bg-secondary); /* 确保背景不透明 */
      }
      .settings-title {
        font-size: 16px;
        margin-bottom: 12px;
      }
      .setting-item {
        margin-bottom: 12px;
      }
      .nav-container {
        padding: 0 12px;
        gap: 4px;
      }

      .nav-title {
        font-size: 15px;
        gap: 4px;
        flex-shrink: 0;
      }

      .nav-title img {
        width: 24px;
        height: 24px;
      }

      .nav-btn {
        padding: 6px 8px;
        font-size: 12px;
      }
      
      .nav-buttons {
        gap: 4px;
        display: flex;
        align-items: center;
      }

      .container {
        margin: 16px auto 20px;
        padding: 0 12px;
      }
      
      .footer {
        padding: 16px 0 32px;
        margin-top: 20px;
      }
      
      .footer-copyright {
        font-size: 12px;
      }

      .api-container {
        padding: 24px;
      }

      .result-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
      }

      .result-image-wrapper {
        width: 100% !important;
        max-width: 100%;
        height: 200px !important;
        margin-bottom: 0;
      }
      .results-container {
        grid-template-columns: 1fr;
        gap: 16px;
      }
      
      .result-card {
        margin-bottom: 0;
      }
      
      .modal-content {
        width: 95%;
        padding: 12px;
        position: relative; /* 确保子元素绝对定位正确 */
      }
      
      .modal-close {
        top: 12px; /* 回到容器内 */
        right: 12px;
        width: 30px;
        height: 30px;
        border-radius: 50%; /* 圆形 */
        background: #fff; /* 白色背景 */
        color: #333; /* 深色图标 */
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        z-index: 100;
      }
      
      .modal-image-container {
        max-height: 50vh;
      }

      .result-info {
        width: 100%;
      }

      .result-format-buttons {
        justify-content: center;
      }

      .api-container {
        padding: 24px 16px;
      }

      .api-key-box {
        flex-direction: column;
      }

      .api-btn {
        width: 100%;
      }

      .code-block {
        font-size: 11px;
        padding: 16px;
        overflow-x: hidden; /* 禁止横向滚动 */
        position: relative;
      }

      .code-block pre {
        white-space: pre-wrap; /* 自动换行 */
        word-break: break-all;
      }

      .copy-code-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        width: auto;
        margin-top: 0;
        padding: 4px 8px;
        font-size: 11px;
        z-index: 5;
        background: rgba(44, 62, 80, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.3);
      }

      .upload-title {
        font-size: 18px;
      }

      .upload-subtitle {
        font-size: 13px;
      }

      .folder-icon {
        width: 100px;
        height: 80px;
      }

      .settings-btn {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 18px;
      }

      #uploadView .upload-area {
        padding: 16px;
      }

      .toast {
        font-size: 11px;
        padding: 5px 12px;
      }
    }

    /* 超小屏幕优化 */
    @media (max-width: 480px) {

      .nav-title {
        min-width: auto;
      }

      .nav-btn {
        padding: 6px 8px;
        font-size: 11px;
      }

      .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 14px;
      }

      .upload-area {
        padding: 40px 16px;
      }

      .folder-icon {
        width: 80px;
        height: 60px;
      }

