 * { margin: 0; padding: 0; box-sizing: border-box; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; }
  
  /* ===== 使用更具体的选择器避免与主页面冲突 ===== */
  .bookmark-panel-wrapper { max-width: 100%; width: 100%; background: #ffffff; border-radius: 0px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 6px rgba(0, 0, 0, 0.02); padding: 20px 20px 28px; transition: all 0.2s; }
  .bookmark-web-header { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 6px; border-bottom: 1px solid #eef1f5; padding-bottom: 14px; margin-bottom: 18px; }
  .bookmark-tab-menu { display: flex; align-items: center; flex-wrap: wrap; list-style: none; gap: 4px; flex: 1 1 auto; }
  .bookmark-tab-menu li { display: flex; align-items: center; position: relative; }
  .bookmark-slide-tab { background: #fff3e8; border-radius: 40px; padding: 3px 12px 3px 8px; margin-right: 4px; box-shadow: inset 0 0 0 1px rgba(255, 146, 43, 0.15); cursor: pointer; }
  .bookmark-slide-tab.bookmark-active-tab { background: #ff922b; box-shadow: none; }
  .bookmark-slide-tab.bookmark-active-tab .bookmark-move-tab { color: white; }
  .bookmark-move-tab { display: flex; align-items: center; gap: 6px; color: #ff922b; padding: 3px 14px 3px 10px; border-radius: 32px; font-weight: 500; font-size: 0.9rem; letter-spacing: 0.2px; }
  .bookmark-move-tab i { font-size: 0.8rem; }
  .bookmark-slide-tab .bookmark-el-dropdown { margin-left: 2px; color: #5e6c84; cursor: default; font-size: 1rem; line-height: 1; }
  .bookmark-slide-tab.bookmark-active-tab .bookmark-el-dropdown { color: rgba(255,255,255,0.7); }
  .bookmark-star-filter { display: flex; align-items: center; padding: 4px 10px 4px 8px; border-radius: 40px; cursor: pointer; transition: 0.15s; text-decoration: none; color: #1a2634; font-size: 0.88rem; font-weight: 500; gap: 6px; }
  .bookmark-star-filter:hover { background: #f0f3f8; }
  .bookmark-star-filter.bookmark-active { background: #fef3c7; }
  .bookmark-star-filter .bookmark-badge-count { font-size: 10px; background: #f59e0b; color: white; border-radius: 50%; padding: 1px 6px; min-width: 18px; text-align: center; line-height: 16px; }
  .bookmark-menu-item { padding: 4px 10px 4px 8px; border-radius: 40px; background: transparent; transition: 0.15s; cursor: pointer; }
  .bookmark-menu-item:hover { background: #f0f3f8; }
  .bookmark-menu-item a { display: flex; align-items: center; gap: 6px; text-decoration: none; color: #1a2634; font-size: 0.88rem; font-weight: 500; white-space: nowrap; }
  .bookmark-menu-item a .bookmark-nav-dot { font-size: 7px; width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
  .bookmark-menu-item.bookmark-active { background: #f2f6fe; border-radius: 40px; }
  .bookmark-menu-item.bookmark-active a { color: #ff922b; }
  .bookmark-tool-bar { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
  .bookmark-tool-btn { background: transparent; border: none; padding: 4px 8px; border-radius: 30px; color: #2c3a4b; font-size: 1rem; display: flex; align-items: center; gap: 4px; cursor: pointer; transition: 0.15s; background: #f8faff; border: 1px solid transparent; }
  .bookmark-tool-btn i { font-size: 1rem; }
  .bookmark-tool-btn:hover { background: #ecf0f5; border-color: #d9e0e8; }
  .bookmark-tool-btn-help { background: transparent; border: none; padding: 4px 8px; border-radius: 30px; color: #6d7b91; font-size: 1.1rem; cursor: default; }
  .bookmark-more-bag-btn { display: flex; align-items: center; justify-content: center; background: #f0f4fc; border-radius: 30px; padding: 3px 10px; cursor: default; color: #3c4c62; font-size: 0.95rem; }

  .bookmark-mode-toggle-btn {
    background: transparent;
    border: none;
    padding: 4px 10px;
    border-radius: 30px;
    color: #2c3a4b;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.15s;
    background: #f8faff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .bookmark-mode-toggle-btn:hover { background: #ecf0f5; }
  .bookmark-mode-toggle-btn .bookmark-mode-icon { font-size: 0.75rem; }
  .bookmark-mode-toggle-btn .bookmark-mode-label { font-size: 0.7rem; color: #64748b; }
  .bookmark-mode-toggle-btn .bookmark-mode-status { font-weight: 600; font-size: 0.8rem; }
  .bookmark-mode-toggle-btn .bookmark-mode-status.internal { color: #3b82f6; }
  .bookmark-mode-toggle-btn .bookmark-mode-status.direct { color: #10b981; }

  .bookmark-sort-btn.bookmark-active { background: #dbeafe; border-color: #3b82f6; color: #3b82f6; }

  .bookmark-simple-link-box { margin-top: 2px; }
  .bookmark-lists.bookmark-link-layout-card { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px 10px; }
  @media (max-width: 1024px) { .bookmark-lists.bookmark-link-layout-card { grid-template-columns: repeat(5, 1fr); } }
  @media (max-width: 820px) { .bookmark-lists.bookmark-link-layout-card { grid-template-columns: repeat(4, 1fr); } }
  @media (max-width: 600px) { .bookmark-lists.bookmark-link-layout-card { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 440px) { .bookmark-lists.bookmark-link-layout-card { grid-template-columns: repeat(2, 1fr); } .bookmark-panel-wrapper { padding: 14px 12px; } }
  .bookmark-link-item { background: transparent; border-radius: 12px; padding: 6px 4px; transition: all 0.12s; display: flex; align-items: center; gap: 6px; cursor: default; position: relative; min-height: 36px; border: none; box-shadow: none; overflow: hidden; }
  .bookmark-link-item:hover { background: rgba(0, 0, 0, 0.02); transform: translateY(-1px); }
  .bookmark-link-item .bookmark-el-dropdown { display: none !important; }
  .bookmark-link-item-a { text-decoration: none; display: flex; align-items: center; gap: 8px; width: 100%; color: #1f2a38; flex: 1; padding: 2px 0; min-width: 0; overflow: hidden; }
  .bookmark-cover { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 4px; background: transparent; display: flex; align-items: center; justify-content: center; padding: 1px; overflow: hidden; border: none; position: relative; }
  .bookmark-cover img { max-width: 18px; max-height: 18px; object-fit: contain; display: block; }
  .bookmark-cover .bookmark-fallback-icon { font-size: 11px; font-weight: 600; color: #667eea; background: #eef2ff; width: 18px; height: 18px; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .bookmark-recommend-badge { position: absolute; top: -4px; right: -6px; font-size: 8px; color: #f59e0b; }
  .bookmark-content { flex: 1; display: flex; align-items: center; min-width: 0; overflow: hidden; }
  .bookmark-title { display: flex; align-items: center; gap: 3px; width: 100%; min-width: 0; }
  .bookmark-title-h4 { font-size: 0.85rem; font-weight: 500; color: #1f2a38; letter-spacing: 0.1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; line-height: 1.3; max-width: 100%; }
  .bookmark-text-light { color: #6f7d93; }
  .bookmark-text-dark { color: #1a2634; }
  .bookmark-hide-on-mobile { display: inline; }
  .bookmark-empty-tip { grid-column: 1 / -1; text-align: center; padding: 40px 20px; color: #94a3b8; font-size: 0.9rem; }
  .bookmark-empty-tip i { font-size: 32px; display: block; margin-bottom: 10px; color: #d1d9e6; }

  .bookmark-star-btn { 
    background: none; 
    border: none; 
    color: #d1d5db; 
    font-size: 0.9rem; 
    cursor: pointer; 
    padding: 2px 4px; 
    transition: all 0.2s; 
    flex-shrink: 0; 
    line-height: 1; 
    margin-left: 2px; 
  }
  .bookmark-star-btn:hover { color: #f59e0b; transform: scale(1.1); }
  .bookmark-star-btn.bookmark-active { color: #f59e0b; }
  .bookmark-star-btn:disabled { opacity: 0.5; cursor: not-allowed; }

  @media (max-width: 480px) {
    .bookmark-web-header { gap: 6px; }
    .bookmark-menu-item a { font-size: 0.8rem; }
    .bookmark-move-tab { font-size: 0.8rem; padding: 2px 10px 2px 8px; }
    .bookmark-tool-btn { padding: 3px 6px; font-size: 0.9rem; }
    .bookmark-link-item { padding: 4px 2px; min-height: 32px; }
    .bookmark-title-h4 { font-size: 0.75rem; }
    .bookmark-cover { width: 16px; height: 16px; flex: 0 0 16px; }
    .bookmark-cover img { max-width: 16px; max-height: 16px; }
    .bookmark-hide-on-mobile { display: none; }
    .bookmark-star-btn { font-size: 0.8rem; }
    .bookmark-mode-toggle-btn { font-size: 0.75rem; padding: 3px 8px; }
    .bookmark-mode-toggle-btn .bookmark-mode-label { display: none; }
  }
  @media (max-width: 380px) {
    .bookmark-title-h4 { font-size: 0.7rem; }
    .bookmark-cover { width: 14px; height: 14px; flex: 0 0 14px; }
    .bookmark-cover img { max-width: 14px; max-height: 14px; }
  }

  /* ===== 模态框样式 ===== */
  .bookmark-modal-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: bookmarkFadeIn 0.2s ease;
  }
  .bookmark-modal-mask.bookmark-active { display: flex; }
  @keyframes bookmarkFadeIn { from { opacity: 0; } to { opacity: 1; } }

  .bookmark-modal-container {
    background: #ffffff;
    border-radius: 16px;
    max-width: 520px;
    width: 94%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: bookmarkSlideUp 0.25s ease;
  }
  @keyframes bookmarkSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

  .bookmark-modal-container::-webkit-scrollbar { width: 3px; }
  .bookmark-modal-container::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

  .bookmark-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid #eef1f5;
    background: #fafbfc;
    border-radius: 16px 16px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .bookmark-modal-header h3 {
    font-size: 1rem;
    color: #1a2634;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
  }
  .bookmark-modal-header h3 i { color: #3b82f6; font-size: 1.1rem; }
  .bookmark-modal-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    border: none;
  }
  .bookmark-modal-close:hover { background: #f1f5f9; color: #1a2634; }

  .bookmark-modal-body { padding: 18px 22px 22px; }

  .bookmark-form-row { margin-bottom: 12px; }
  .bookmark-form-row:last-of-type { margin-bottom: 16px; }

  .bookmark-form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
  }
  .bookmark-form-label i { margin-right: 4px; color: #3b82f6; width: 14px; }
  .bookmark-form-label .bookmark-required { color: #ef4444; }

  .bookmark-form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.2s;
    box-sizing: border-box;
    outline: none;
    background: #fafbfc;
  }
  .bookmark-form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.06);
    background: #fff;
  }
  .bookmark-form-control::placeholder { color: #94a3b8; }

  .bookmark-form-control-inline {
    display: flex;
    gap: 8px;
  }
  .bookmark-form-control-inline .bookmark-form-control { flex: 1; }
  .bookmark-form-control-inline .bookmark-btn-inline {
    padding: 8px 14px;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }
  .bookmark-form-control-inline .bookmark-btn-inline:hover { background: #e2e8f0; }
  .bookmark-form-control-inline .bookmark-btn-inline:disabled { opacity: 0.5; cursor: not-allowed; }

  .bookmark-form-hint { font-size: 11px; color: #94a3b8; margin-top: 3px; }

  .bookmark-icon-upload-area {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 6px 10px;
    background: #fafbfc;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
  }
  .bookmark-icon-preview {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
  }
  .bookmark-icon-preview img { width: 100%; height: 100%; object-fit: contain; }
  .bookmark-icon-preview .bookmark-placeholder { color: #94a3b8; font-size: 9px; text-align: center; line-height: 1.1; }
  .bookmark-icon-upload-btn {
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #475569;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 3px;
  }
  .bookmark-icon-upload-btn:hover { background: #f1f5f9; }
  .bookmark-icon-upload-btn:disabled { opacity: 0.5; cursor: not-allowed; }
  .bookmark-icon-url-input {
    flex: 1;
    min-width: 100px;
    padding: 5px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 11px;
    background: #fff;
    outline: none;
    transition: all 0.2s;
  }
  .bookmark-icon-url-input:focus { border-color: #3b82f6; }
  .bookmark-icon-get-btn {
    padding: 5px 12px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 3px;
  }
  .bookmark-icon-get-btn:hover { background: #2563eb; }
  .bookmark-icon-file-input { display: none; }

  .bookmark-tags-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
  }
  .bookmark-tag-option {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 10px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 11px;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    transition: all 0.15s;
    user-select: none;
  }
  .bookmark-tag-option:hover { background: #e2e8f0; }
  .bookmark-tag-option input { margin: 0; width: auto; cursor: pointer; accent-color: #3b82f6; }
  .bookmark-tag-option.bookmark-selected { background: #dbeafe; border-color: #3b82f6; }

  .bookmark-submit-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
  }
  .bookmark-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(59,130,246,0.3); }
  .bookmark-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

  #bookmarkFetchStatus { font-size: 11px; margin-top: 3px; min-height: 18px; }
  .bookmark-fetch-status-success { color: #10b981; }
  .bookmark-fetch-status-error { color: #ef4444; }
  .bookmark-fetch-status-loading { color: #3b82f6; }

  .bookmark-toast-msg {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 13px;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    max-width: 90%;
  }
  .bookmark-toast-msg.bookmark-show { opacity: 1; }
  .bookmark-toast-msg.bookmark-error { background: #dc2626; }