      /* 收藏链接：绿色系 */
      #favoriteModal[data-tab="links"] .sms-item-title,
      #favoriteModal[data-tab="links"] .link-item-title {
        color: #059669;
        background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
        border-color: #a7f3d0;
      }

      /* 其他：琥珀色系 */
      #favoriteModal[data-tab="other"] .sms-item-title,
      #favoriteModal[data-tab="other"] .link-item-title {
        color: #d97706;
        background: linear-gradient(135deg, #fffbeb 0%, #fff8e6 100%);
        border-color: #fde68a;
      }

      #favoriteModal .sms-item-header {
        margin-bottom: 6px;
        align-items: center;
        gap: 8px;
      }

      #favoriteModal .sms-item-content {
        font-size: 12px;
        line-height: 1.45;
      }

      .sms-item-actions {
        display: flex;
        gap: 6px;
        flex-shrink: 0;
      }

      .sms-item-btn {
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 400;
        border: 1px solid transparent;
        cursor: pointer;
        transition: color 80ms linear, background-color 80ms linear, border-color 80ms linear;
        position: relative;
        overflow: hidden;
        background: transparent;
        color: #6b7280;
      }

      .sms-item-btn::after {
        display: none;
      }

      .sms-item-btn:hover::after {
        opacity: 0;
      }

      .sms-copy-btn {
        background: transparent;
        color: #4b5563;
        border: 1px solid #e5e7eb;
      }

      .sms-copy-btn:hover {
        background: #f3f4f6;
        color: #111827;
        border-color: #d1d5db;
        box-shadow: none;
        transform: none;
      }

      .sms-delete-btn {
        background: transparent;
        color: #9ca3af;
        border: 1px solid transparent;
      }

      .sms-delete-btn:hover {
        background: transparent;
        color: #ef4444;
        border-color: #fecaca;
        box-shadow: none;
        transform: none;
      }

      .sms-item-content {
        font-size: 13px;
        line-height: 1.6;
        color: #6b7280;
        white-space: pre-wrap;
        word-break: break-word;
        padding: 0;
        background: transparent;
        border-radius: 0;
        border: none;
        position: relative;
      }

      .sms-empty {
        text-align: center;
        padding: 60px 20px;
        margin: 0;
        color: #9ca3af;
        font-size: 13px;
        font-weight: 400;
      }

      .sms-empty::before {
        content: "";
        display: block;
        margin: 0 auto 12px;
        width: 32px;
        height: 32px;
        background: #f3f4f6;
        border-radius: 50%;
        opacity: 1;
        animation: none;
      }

      @keyframes floatEmpty {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
      }

      .favorite-tabs {
        display: flex;
        border-bottom: 1px solid #f1f3f5;
        background: #ffffff;
        padding: 0 24px;
        gap: 24px;
      }

      .favorite-tab {
        flex: 1;
        padding: 12px 4px;
        border: none;
        background: transparent;
        color: #6b7280;
        font-size: 14px;
        font-weight: 400;
        cursor: pointer;
        transition: color 80ms linear;
        position: relative;
        border-radius: 0;
      }

      .favorite-tab:hover {
        color: #1f2937;
        background: transparent;
        transform: none;
      }

      /* 三个标签页各自的区分色 */
      .favorite-tab[data-tab="sms"]:hover { color: #3b82f6; }
      .favorite-tab[data-tab="links"]:hover { color: #10b981; }
      .favorite-tab[data-tab="other"]:hover { color: #f59e0b; }

      .favorite-tab.active {
        font-weight: 500;
        background: transparent;
        box-shadow: none;
      }

      .favorite-tab[data-tab="sms"].active { color: #2563eb; }
      .favorite-tab[data-tab="links"].active { color: #059669; }
      .favorite-tab[data-tab="other"].active { color: #d97706; }

      .favorite-tab.active::after {
        content: "";
        position: absolute;
        bottom: -1px;
        left: 0;
        right: 0;
        height: 2px;
        border-radius: 0;
        animation: none;
      }

      .favorite-tab[data-tab="sms"].active::after { background: #2563eb; }
      .favorite-tab[data-tab="links"].active::after { background: #059669; }
      .favorite-tab[data-tab="other"].active::after { background: #d97706; }

      @keyframes tabIndicator {
        from {
          left: 50%;
          right: 50%;
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }

      .other-paste-area {
        border: 1px dashed #d1d5db;
        border-radius: 8px;
        padding: 16px;
        text-align: center;
        background: #fafbfc;
        transition: border-color 80ms linear, background-color 80ms linear;
        cursor: pointer;
        min-height: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
      }

      .other-paste-area:hover {
        border-color: #9ca3af;
        background: #f9fafb;
      }

      .other-paste-area.dragover {
        border-color: #6b7280;
        background: rgba(0, 188, 212, 0.1);
        transform: scale(1.01);
      }

      .other-paste-icon {
        font-size: 20px;
        opacity: 0.5;
      }

      .other-paste-text {
        color: #6b7280;
        font-size: 13px;
      }

      .other-image-thumb {
        width: 40px;
        height: 40px;
        border-radius: 4px;
        object-fit: cover;
        background: #f3f4f6;
      }

      .toolbar {
        margin-bottom: 16px;
        display: flex;
        gap: 8px;
        align-items: center;
        flex-wrap: wrap;
      }

      .search-input-wrapper {
        position: relative;
        flex: 2;
        min-width: 200px;
      }

      .search-input-wrapper input {
        width: 100%;
        padding-right: 32px;
        flex: none;
      }

      .clear-search-btn {
        position: absolute;
        right: 8px;
        top: 50%;
        /* 用负 margin 垂直居中，不依赖 transform，避免被全局 hover 规则清掉导致按钮跳动 */
        margin-top: -11px;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: rgba(0, 150, 200, 0.15);
        color: var(--muted);
        border: none;
        cursor: pointer;
        font-size: 16px;
        line-height: 1;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 150ms ease, color 150ms ease;
      }

      .clear-search-btn:hover {
        background: rgba(255, 82, 82, 0.2);
        color: #d32f2f;
      }

      .toolbar input,
      .toolbar select {
        width: auto;
        min-width: 0;
        flex: 1;
        min-width: 120px;
        transition: all 200ms ease;
      }

      .toolbar select:hover {
        border-color: rgba(0, 188, 212, 0.4);
        background: rgba(255, 255, 255, 0.95);
      }

      .toolbar .search-input-wrapper {
        flex: 2;
        min-width: 200px;
      }

      .toolbar .search-input-wrapper input {
        flex: none;
        width: 100%;
      }

      .color-filter-wrapper {
        min-width: 120px;
        flex: 1;
      }

      .color-filter-wrapper .color-select-display {
        padding: 12px 14px;
        font-size: inherit;
      }

      .color-filter-wrapper .color-select-dropdown {
        min-width: 160px;
      }

      .toolbar button {
        white-space: nowrap;
      }

      .range-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 14px;
        background: rgba(0, 188, 212, 0.12);
        border: 1px solid rgba(0, 188, 212, 0.3);
        color: var(--text);
        border-radius: 14px;
        font-size: 14px;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.18s ease;
      }

      .range-toggle:hover {
        background: rgba(0, 188, 212, 0.22);
        border-color: rgba(0, 188, 212, 0.5);
      }

      .range-toggle.all {
        background: rgba(255, 171, 64, 0.18);
        border-color: rgba(255, 171, 64, 0.5);
        color: #b76a00;
      }

      .range-toggle.all:hover {
        background: rgba(255, 171, 64, 0.28);
      }

      .range-toggle .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--accent);
      }

      .range-toggle.all .dot {
        background: var(--orange);
      }

      .stats-header {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 24px;
        padding: 20px 24px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
        border-radius: 22px;
        position: relative;
        overflow: hidden;
      }

      .stats-header h2 {
        position: absolute;
        left: 24px;
        margin: 0;
        font-size: 24px;
        background: linear-gradient(135deg, var(--text) 0%, var(--accent) 50%, var(--accent) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
      }

      .sakura-back-btn {
        font-size: 28px;
        padding: 8px 12px;
        background: transparent;
        border: none;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
      }

      .sakura-back-btn:hover {
        transform: scale(1.1);
      }

      .sakura-back-btn:active {
        transform: scale(0.95);
      }

      .stats-header h2 {
        margin: 0;
        font-size: 24px;
        background: linear-gradient(135deg, var(--text) 0%, var(--accent) 50%, var(--accent) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        padding-left: 16px;
      }

