/* 沃借风用户中心专用样式表 (与插件风格 100% 同步) */
:root {
      --bg: #f8fafc;
      --card-bg: #ffffff;
      --card-border: #e2e8f0;
      --border-color: #e2e8f0;
      --border-hover: #cbd5e1;
      --text-main: #0f172a;
      --text-sub: #475569;
      --text-muted: #64748b;
      --brand-blue: #2563eb;
      --brand-blue-hover: #1d4ed8;
      --brand-subtle: #eff6ff;
      --brand-orange: #2563eb;
      --brand-orange-hover: #1d4ed8;
      --brand-orange-light: #eff6ff;
      --success: #059669;
      --success-light: #ecfdf5;
      --success-bg: #ecfdf5;
      --danger: #dc2626;
      --danger-bg: #fef2f2;
      --warning: #d97706;
      --warning-bg: #fffbeb;
      --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
      --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
      --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    }
    body { background-color: var(--bg); color: var(--text-main); min-height: 100vh; display: flex; flex-direction: column; }
    
    /* Stripe / Supabase 现代双色立体微质感矢量图标 */
    .duotone-icon {
      display: inline-block;
      width: 1.25em;
      height: 1.25em;
      vertical-align: -0.22em;
      flex-shrink: 0;
    }
    
    /* 1. 顶部导航栏 */
    .xydc-nav {
      background: #ffffff;
      border-bottom: 1px solid var(--border-color);
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: var(--shadow-sm);
    }
    .nav-inner {
      max-width: 1240px;
      margin: 0 auto;
      padding: 0 20px;
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .nav-left {
      display: flex;
      align-items: center;
      gap: 32px;
    }
    .brand-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: var(--text-main);
      font-size: 18px;
      font-weight: 700;
    }
    .brand-logo img {
      width: 32px;
      height: 32px;
      border-radius: 8px;
    }
    .brand-tag {
      font-size: 11px;
      background: var(--brand-subtle);
      color: var(--brand-blue);
      padding: 2px 8px;
      border-radius: 4px;
      font-weight: 600;
      border: 1px solid #bfdbfe;
    }
    .nav-tabs {
      display: flex;
      gap: 8px;
    }
    .nav-tab-btn {
      background: transparent;
      border: 1px solid transparent;
      padding: 8px 16px;
      font-size: 14px;
      font-weight: 600;
      color: var(--text-sub);
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: all .2s;
    }
    .nav-tab-btn:hover {
      color: var(--brand-blue);
      background: var(--brand-subtle);
    }
    .nav-tab-btn.active {
      color: var(--brand-blue);
      background: var(--brand-subtle);
      border-color: #bfdbfe;
    }

    .nav-right {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .user-pill {
      display: flex;
      align-items: center;
      gap: 8px;
      background: #f1f5f9;
      padding: 4px 12px 4px 6px;
      border-radius: 20px;
      font-size: 13px;
      color: var(--text-main);
    }
    .user-avatar {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: var(--brand-blue);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: bold;
    }
    .vip-badge-sm {
      background: #fef3c7;
      color: #b45309;
      font-size: 11px;
      padding: 1px 6px;
      border-radius: 10px;
      font-weight: 700;
      border: 1px solid #fde68a;
    }
    .logout-link {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 13px;
      cursor: pointer;
      transition: color .2s;
    }
    .logout-link:hover {
      color: var(--danger);
    }

    /* 2. 主体容器 */
    .main-container {
      max-width: 1240px;
      width: 100%;
      margin: 24px auto 40px;
      padding: 0 20px;
      flex: 1;
    }

    /* 3. 未登录认证卡片 */
    .auth-wrap {
      width: 100%;
      max-width: 440px;
      box-sizing: border-box;
      margin: 60px auto;
      background: #ffffff;
      border-radius: 16px;
      border: 1px solid var(--card-border);
      box-shadow: var(--shadow-lg);
      padding: 40px 32px;
      text-align: center;
    }
    .auth-wrap * { box-sizing: border-box; }
    .auth-wrap .auth-icon { font-size: 44px; margin-bottom: 12px; }
    .auth-wrap h2 { font-size: 20px; color: var(--text-main); margin-bottom: 6px; font-weight: 700; }
    .auth-wrap p { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; }
    .form-group { width: 100%; box-sizing: border-box; margin-bottom: 16px; text-align: left; }
    .form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-sub); margin-bottom: 6px; }
    .form-input { width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1px solid var(--card-border); border-radius: 8px; font-size: 14px; outline: none; transition: border-color .2s; }
    .form-input:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
    .auth-submit-btn { width: 100%; box-sizing: border-box; padding: 12px; background: var(--brand-blue); border: none; border-radius: 8px; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 8px; transition: background .2s; }
    .auth-submit-btn:hover { background: var(--brand-blue-hover); }
    .auth-error { margin-top: 12px; font-size: 13px; padding: 8px 12px; border-radius: 6px; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; display: none; }

    /* 4. 工作台顶层 KPI 状态条 */
    .kpi-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 16px;
      margin-bottom: 24px;
    }
    .kpi-card {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 18px 20px;
      box-shadow: var(--shadow-sm);
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .kpi-icon-box {
      width: 48px;
      height: 48px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
    }
    .kpi-icon-orange { background: var(--brand-subtle); color: var(--brand-blue); }
    .kpi-icon-blue { background: var(--brand-subtle); color: var(--brand-blue); }
    .kpi-icon-green { background: var(--success-light); color: var(--success); }
    .kpi-icon-yellow { background: #fef3c7; color: #d97706; }
    .kpi-info h4 { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; }
    .kpi-info .kpi-val { font-size: 24px; font-weight: 800; color: var(--text-main); }
    .kpi-info .kpi-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

    /* 5. 核心区块卡片与搜索框 */
    .section-card {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: 12px;
      box-shadow: var(--shadow-sm);
      padding: 24px;
      margin-bottom: 24px;
    }
    .search-box-wrap {
      display: flex;
      gap: 12px;
      margin-bottom: 16px;
    }
    .search-input-box {
      flex: 1;
      min-width: 0;
      position: relative;
    }
    .search-input-box input {
      width: 100%;
      height: 46px;
      box-sizing: border-box;
      padding: 0 16px 0 42px;
      border: 1px solid var(--border-color);
      border-radius: 8px;
      font-size: 15px;
      outline: none;
      transition: all .2s;
    }
    .search-input-box input:focus {
      border-color: var(--brand-blue);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }
    .search-icon-svg {
      position: absolute;
      left: 14px;
      top: 14px;
      width: 18px;
      height: 18px;
      fill: var(--text-muted);
    }
    .search-submit-btn {
      height: 46px;
      box-sizing: border-box;
      flex-shrink: 0;
      padding: 0 28px;
      background: var(--brand-blue);
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: background .2s;
    }
    .search-submit-btn:hover { background: var(--brand-blue-hover); }
    
    .hot-tags-row {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 20px;
    }
    .hot-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
    .hot-chip {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: #f1f5f9;
      border: 1px solid #e2e8f0;
      color: var(--text-sub);
      font-size: 12px;
      padding: 3px 10px 3px 6px;
      border-radius: 14px;
      cursor: pointer;
      transition: all .15s;
    }
    .chip-thumb {
      width: 18px;
      height: 18px;
      border-radius: 3px;
      object-fit: cover;
      background: #ffffff;
      border: 1px solid rgba(0, 0, 0, 0.08);
      flex-shrink: 0;
    }
    .hot-chip:hover {
      background: var(--brand-subtle);
      color: var(--brand-blue);
      border-color: #bfdbfe;
    }
    .hot-chip.active {
      background: var(--brand-blue);
      color: #fff;
      border-color: var(--brand-blue);
      font-weight: 600;
    }

    /* 8 列商品胶囊自适应网格与展开收起控件 */
    .recent-items-grid {
      display: grid;
      grid-template-columns: repeat(8, minmax(0, 1fr));
      gap: 8px;
      align-items: center;
    }
    @media (max-width: 1400px) {
      .recent-items-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
      }
    }
    @media (max-width: 1080px) {
      .recent-items-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
    }
    @media (max-width: 640px) {
      .recent-items-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }
    .recent-items-grid .hot-chip {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      min-width: 0;
      box-sizing: border-box;
      padding: 4px 6px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    .recent-items-grid .hot-chip span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .btn-toggle-items {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 10px;
      font-size: 11.5px;
      font-weight: 600;
      color: var(--brand-blue);
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.2s ease;
      user-select: none;
    }
    .btn-toggle-items:hover {
      background: #dbeafe;
      color: var(--brand-blue-hover);
      border-color: #93c5fd;
      transform: translateY(-1px);
    }
    .btn-toggle-items.hidden {
      display: none !important;
    }

    /* 6. 插件同款工具栏 */
    .ext-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 14px 0 12px;
      flex-wrap: wrap;
      border-top: 1px solid var(--border-color);
    }
    .ext-filters {
      display: flex;
      background: #f1f5f9;
      padding: 3px;
      border-radius: 8px;
      gap: 4px;
    }
    .filter-btn {
      background: transparent;
      border: none;
      padding: 6px 14px;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-sub);
      border-radius: 6px;
      cursor: pointer;
      transition: all .2s;
    }
    .filter-btn:hover { color: var(--brand-blue); }
    .filter-btn.active {
      background: #ffffff;
      color: var(--brand-blue);
      box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }
    .ext-search-wrap {
      flex: 1;
      max-width: 320px;
      position: relative;
    }
    .ext-search-wrap input {
      width: 100%;
      height: 34px;
      box-sizing: border-box;
      padding: 0 12px 0 32px;
      font-size: 13px;
      border: 1px solid var(--border-color);
      border-radius: 6px;
      outline: none;
      transition: all .2s;
    }
    .ext-search-wrap input:focus {
      border-color: var(--brand-blue);
      box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
    }
    .ext-search-icon {
      position: absolute;
      left: 10px;
      top: 9px;
      font-size: 12px;
      color: var(--text-muted);
    }
    .ext-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .btn-action {
      background: #ffffff;
      border: 1px solid #cbd5e1;
      color: #334155;
      padding: 6px 14px;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s;
    }
    .btn-action:hover {
      background: #f8fafc;
      border-color: #94a3b8;
      color: #0f172a;
    }
    .btn-action.btn-danger {
      background: #ef4444;
      border-color: #dc2626;
      color: #ffffff;
    }
    .btn-action.btn-danger:hover {
      background: #dc2626;
      border-color: #b91c1c;
      color: #ffffff;
    }
    .btn-action.btn-cancel {
      background: #f1f5f9;
      border-color: #cbd5e1;
      color: #64748b;
    }
    .btn-action.btn-cancel:hover {
      background: #e2e8f0;
      color: #334155;
    }
    .btn-action.btn-primary {
      background: #2563eb;
      border-color: #1d4ed8;
      color: #ffffff;
    }
    .btn-action.btn-primary:hover {
      background: #1d4ed8;
      border-color: #1e40af;
      color: #ffffff;
    }
    .col-tracker-select input[type="checkbox"],
    .col-mining-select input[type="checkbox"] {
      width: 16px;
      height: 16px;
      cursor: pointer;
      accent-color: var(--brand-blue);
      vertical-align: middle;
    }
    .row-selected {
      background-color: #eff6ff !important;
    }

    /* 7.  Listing 概览卡片 */
    .xydc-listing-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      background: #ffffff;
      border: 1px solid var(--card-border);
      border-radius: 10px;
      padding: 16px 20px;
      margin-bottom: 16px;
      box-shadow: var(--shadow-sm);
    }
    .listing-meta-left {
      display: flex;
      align-items: center;
      gap: 16px;
      flex: 1;
      min-width: 0;
    }
    .listing-thumb-img {
      width: 54px;
      height: 54px;
      object-fit: contain;
      border: 1px solid var(--border-color);
      border-radius: 8px;
      background: #fff;
      padding: 2px;
      flex-shrink: 0;
      box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .listing-info {
      flex: 1;
      min-width: 0;
    }
    .listing-title-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 6px;
    }
    .listing-main-id {
      font-size: 16px;
      font-weight: 800;
      color: var(--text-main);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .listing-title-text {
      font-size: 13px;
      color: var(--text-sub);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 620px;
    }
    .site-pill {
      background: transparent;
      padding: 0;
      margin-left: 4px;
      border: none;
      display: inline-flex;
      align-items: center;
      vertical-align: middle;
      line-height: 0;
    }
    .listing-stats-pills {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .stat-pill {
      background: #f8fafc;
      border: 1px solid var(--border-color);
      padding: 6px 14px;
      border-radius: 8px;
      text-align: center;
    }
    .stat-pill .sp-num {
      font-size: 16px;
      font-weight: 800;
      color: var(--text-main);
      display: block;
      line-height: 1.2;
    }
    .stat-pill .sp-label {
      font-size: 11px;
      color: var(--text-muted);
      font-weight: 500;
    }

    /* 8. 找词核心：变体胶囊切换栏 */
    .xydc-variant-section {
      background: #f8fafc;
      border: 1px solid var(--border-color);
      border-radius: 10px;
      padding: 12px 16px;
      margin-bottom: 20px;
    }
    .variant-bar-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
    }
    .variant-bar-title span {
      font-size: 13px;
      font-weight: 700;
      color: var(--text-main);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .variant-pills-row {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding-bottom: 4px;
      scrollbar-width: thin;
    }
    .variant-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: 20px;
      padding: 4px 14px 4px 8px;
      cursor: pointer;
      font-size: 12px;
      color: var(--text-sub);
      white-space: nowrap;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    }
    .variant-pill:hover {
      border-color: var(--brand-blue);
      color: var(--brand-blue);
      background: var(--brand-subtle);
    }
    .variant-pill.active {
      background: var(--brand-blue);
      border-color: var(--brand-blue);
      color: #ffffff;
      font-weight: 700;
      box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
    }
    .variant-pill-thumb {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      object-fit: cover;
      border: 1px solid rgba(0,0,0,0.1);
      background: #fff;
    }
    .variant-pill .var-count-badge {
      font-size: 10px;
      background: rgba(0, 0, 0, 0.08);
      padding: 1px 6px;
      border-radius: 10px;
      font-weight: 700;
    }
    .variant-pill.active .var-count-badge {
      background: rgba(255, 255, 255, 0.3);
      color: #ffffff;
    }
    .variant-pill.var-pill-zero {
      color: #64748b;
      background: #f8fafc;
      border-color: #e2e8f0;
    }
    .variant-pill.var-pill-zero:hover {
      border-color: var(--brand-blue);
      color: var(--brand-blue);
      background: var(--brand-subtle);
    }
    .variant-pill .var-count-badge.var-zero-badge {
      background: #e2e8f0;
      color: #64748b;
    }
    .variant-pill.active .var-count-badge.var-zero-badge {
      background: rgba(255, 255, 255, 0.3);
      color: #ffffff;
    }

    /* 9. 插件同款数据表格样式 */
    .table-container {
      width: 100%;
      overflow-x: auto;
      border: 1px solid var(--border-color);
      border-radius: 8px;
      background: #ffffff;
      box-shadow: var(--shadow-sm);
    }
    table.plugin-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
      text-align: left;
    }
    table.plugin-table th {
      background: #f8fafc;
      color: #475569;
      font-weight: 700;
      padding: 12px 14px;
      border-bottom: 1px solid var(--border-color);
      white-space: nowrap;
      position: sticky;
      top: 0;
      z-index: 10;
    }
    table.plugin-table th.sortable {
      cursor: pointer;
      user-select: none;
      transition: background .15s, color .15s;
    }
    table.plugin-table th.sortable:hover {
      background: #f1f5f9;
      color: var(--brand-blue);
    }
    table.plugin-table th.sortable.active-sort {
      color: var(--brand-blue);
      background: #e0f2fe;
    }
    .sort-icon {
      display: inline-block;
      font-size: 11px;
      margin-left: 3px;
      opacity: 0.4;
      vertical-align: middle;
    }
    table.plugin-table th.sortable.active-sort .sort-icon {
      opacity: 1;
      color: var(--brand-blue);
      font-weight: bold;
    }
    table.plugin-table td {
      padding: 10px 14px;
      border-bottom: 1px solid var(--border-color);
      color: var(--text-main);
      vertical-align: middle;
      white-space: nowrap;
    }
    table.plugin-table tr.indexed td {
      background: rgba(16, 185, 129, 0.02);
    }
    table.plugin-table tr:hover td {
      background-color: #f8fafc;
    }
    
    /* 关键词与翻译 */
    .kw-cell {
      display: block;
      max-width: 240px;
      width: 100%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    a.kw-link {
      display: inline-block;
      max-width: 100%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      vertical-align: middle;
      color: #0f172a; /* 告别刺眼生硬蓝色，采用大厂深色高质感墨黑/深灰 */
      text-decoration: none;
      font-weight: 600;
      line-height: 1.4;
      transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    }
    a.kw-link:hover {
      color: var(--brand-blue); /* 仅在鼠标移入时呈现温和科技蓝 */
      text-decoration: underline;
    }
    .kw-translation {
      display: block;
      max-width: 100%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-size: 11px;
      color: #64748b;
      line-height: 1.3;
      margin-top: 2px;
      letter-spacing: 0.2px;
    }

    /* Indexed 徽标 */
    .badge-indexed {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 8px;
      background: var(--success-bg);
      color: var(--success);
      border-radius: 12px;
      font-weight: 700;
      font-size: 11px;
      border: 1px solid #a7f3d0;
    }
    .badge-indexed::before {
      content: "";
      width: 6px;
      height: 6px;
      background: var(--success);
      border-radius: 50%;
    }

    /* 主排名 Item ID 单元格 (含缩略图) */
    .asin-cell {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 600;
      color: var(--text-main);
    }
    .asin-thumb {
      width: 34px;
      height: 34px;
      object-fit: contain;
      border: 1px solid var(--border-color);
      border-radius: 6px;
      background: #ffffff;
      padding: 2px;
      flex-shrink: 0;
    }

    /* 圆形排名球 (100% 同步插件科技蓝样式) */
    .rank-circle, .rank-circle.normal, .rank-circle.top3, .rank-circle.top10 {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      width: 26px !important;
      height: 26px !important;
      border-radius: 50% !important;
      background: var(--brand-blue) !important;
      color: #ffffff !important;
      font-weight: 800 !important;
      font-size: 12px !important;
      box-shadow: none !important;
    }

    /* 位置单元格与更新时效标签 (今天、昨天、N天前) */
    .pos-cell {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
    }
    .rank-time-tag {
      display: inline-block;
      font-size: 10.5px;
      color: #64748b;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      padding: 1px 6px;
      border-radius: 4px;
      line-height: 1.3;
      font-weight: 500;
    }
    .rank-time-tag.today {
      color: #059669;
      background: #ecfdf5;
      border-color: #a7f3d0;
      font-weight: 600;
    }
    .rank-time-tag.yesterday {
      color: var(--brand-blue);
      background: #eff6ff;
      border-color: #bfdbfe;
    }
    .rank-time-tag.days-ago {
      color: #94a3b8;
      background: #f8fafc;
      border-color: #e2e8f0;
    }

    /* ================= 词库搜索量与月购买量样式 (100% 同步插件样式) ================= */
    .volume-cell, .sales-cell {
      font-size: 13px;
      color: var(--text-main);
      display: inline-block;
    }
    .volume-val, .sales-val {
      color: var(--text-main);
      font-weight: normal;
      font-size: 13px;
    }
    .unindexed-dash {
      color: var(--text-muted);
      font-size: 13px;
    }

    /* 走势图标按钮与展开面板 */
    .history-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      border-radius: 6px;
      border: 1px solid #dbeafe;
      background: #f8fafc;
      color: #2563eb;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      user-select: none;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
      padding: 0;
    }
    .history-btn:hover {
      background: #eff6ff;
      border-color: #3b82f6;
      color: #1d4ed8;
      transform: translateY(-1px);
      box-shadow: 0 3px 8px rgba(37, 99, 235, 0.16);
    }
    .history-btn.active {
      background: linear-gradient(135deg, #2563eb, #1d4ed8);
      color: #ffffff;
      border-color: #1d4ed8;
      box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
    }
    .trend-icon { pointer-events: none; }

    .rank-history-wrap {
      position: relative;
      background: #fafbfc;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 14px 18px;
      margin: 6px 0 10px;
      box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
      overflow: hidden; /* 核心防御：防止任何内部元素、超长折线或 Tooltip 撑开外层表格滚动条 */
    }
    .rank-history-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }
    .rank-history-title {
      font-weight: 700;
      font-size: 13px;
      color: var(--text-main);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .rank-title-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 22px;
      height: 22px;
      background: #eff6ff;
      border-radius: 4px;
      color: #2563eb;
      border: 1px solid #dbeafe;
    }
    .subrow-time-tabs {
      display: inline-flex;
      background: #f1f5f9;
      padding: 2px;
      border-radius: 6px;
      gap: 2px;
    }
    .subrow-time-btn {
      border: none;
      background: transparent;
      font-size: 11px;
      font-weight: 600;
      color: var(--text-sub);
      padding: 4px 10px;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.15s;
    }
    .subrow-time-btn.active {
      background: #ffffff;
      color: var(--brand-blue);
      box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    }
    .rank-history-tip {
      position: absolute;
      display: none;
      background: rgba(15, 23, 42, 0.94);
      color: #ffffff;
      padding: 8px 12px;
      border-radius: 6px;
      font-size: 11px;
      line-height: 1.5;
      white-space: nowrap;
      pointer-events: none;
      z-index: 9999;
      box-shadow: 0 6px 16px rgba(0,0,0,0.3);
      backdrop-filter: blur(6px);
      border: 1px solid rgba(255, 255, 255, 0.12);
      transition: opacity 0.12s ease;
    }

    /* 10. 尊享特权中心 (左右双通道对称网格布局) */
    .vip-banner-compact {
      background: linear-gradient(135deg, #eff6ff 0%, #fff7ed 100%);
      border: 1px solid #fed7aa;
      border-radius: 12px;
      padding: 18px 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
      margin-bottom: 20px;
    }
    .vip-banner-left h2 {
      font-size: 18px;
      color: #9a3412;
      margin-bottom: 4px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .vip-banner-left p {
      font-size: 13px;
      color: #c2410c;
      line-height: 1.5;
      margin: 0;
    }
    .vip-banner-right {
      display: flex;
      align-items: baseline;
      gap: 6px;
      background: rgba(255, 255, 255, 0.75);
      padding: 6px 16px;
      border-radius: 8px;
      border: 1px solid rgba(254, 215, 170, 0.7);
      flex-shrink: 0;
    }
    .vip-days-num {
      font-size: 32px;
      font-weight: 900;
      color: var(--brand-blue);
      line-height: 1;
    }
    .vip-days-unit {
      font-size: 13px;
      color: #9a3412;
      font-weight: 700;
    }

    /* 双通道左右对称等高栅格 */
    .vip-channels-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      margin-bottom: 20px;
      align-items: stretch;
    }
    @media (max-width: 960px) {
      .vip-channels-grid {
        grid-template-columns: 1fr;
      }
    }

    /* 通用通道卡片 */
    .vip-channel-card {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 22px;
      display: flex;
      flex-direction: column;
      box-shadow: var(--shadow-sm);
      position: relative;
      overflow: hidden;
      transition: box-shadow 0.2s ease, border-color 0.2s ease;
    }
    .vip-channel-card:hover {
      box-shadow: var(--shadow-md);
    }
    .card-channel-one {
      border-top: 4px solid var(--brand-blue);
    }
    .card-channel-two {
      border-top: 4px solid #f59e0b;
    }
    .card-mining-box {
      border-top: 4px solid var(--brand-blue);
      margin-bottom: 24px;
      box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05);
      border-radius: 12px;
      padding: 24px;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .card-mining-box:hover {
      box-shadow: 0 8px 25px -4px rgba(15, 23, 42, 0.08);
    }
    .card-mining-box .channel-card-header {
      margin-bottom: 8px;
    }
    .card-mining-box .channel-intro {
      font-size: 13px;
      color: var(--text-muted);
      line-height: 1.6;
      margin: 0 0 18px;
    }
    .card-mining-box .search-box-wrap {
      margin-bottom: 14px;
    }
    .card-mining-box .search-input-box input {
      height: 46px;
      border-radius: 8px;
      font-size: 14.5px;
      border: 1px solid #cbd5e1;
      background: #f8fafc;
      transition: all 0.2s ease;
    }
    .card-mining-box .search-input-box input:focus {
      background: #ffffff;
      border-color: var(--brand-blue);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }
    .card-mining-box .search-submit-btn {
      background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
      box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
      border-radius: 8px;
      font-weight: 600;
      transition: all 0.2s ease;
    }
    .card-mining-box .search-submit-btn:hover {
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
      transform: translateY(-1px);
    }
    .card-mining-box .ext-toolbar {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 10px 14px;
      margin-bottom: 14px;
    }

    /* 卡片醒目标题栏 Header */
    .channel-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 8px;
    }
    .channel-badge-title {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    /* 醒目大号徽章 */
    .channel-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 4px 12px;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
      flex-shrink: 0;
    }
    .channel-badge.badge-blue {
      background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
      color: #ffffff;
    }
    .channel-badge.badge-gold {
      background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
      color: #ffffff;
    }
    .channel-title {
      font-size: 18px;
      font-weight: 800;
      color: var(--text-main);
      margin: 0;
      letter-spacing: -0.2px;
    }
    /* 权益微标签 */
    .channel-tag {
      font-size: 12px;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 6px;
      line-height: 1.4;
      white-space: nowrap;
    }
    .channel-tag.tag-green {
      background: #ecfdf5;
      color: #059669;
      border: 1px solid #a7f3d0;
    }
    .channel-tag.tag-orange {
      background: #fffbeb;
      color: #b45309;
      border: 1px solid #fde68a;
    }

    .channel-intro {
      font-size: 12.5px;
      color: var(--text-muted);
      line-height: 1.5;
      margin: 0 0 14px;
    }

    /* 方式一：收益指标胶囊 */
    .channel-stats-pills {
      display: flex;
      align-items: center;
      gap: 10px;
      background: #f8fafc;
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 10px 14px;
      margin-bottom: 14px;
      flex-wrap: wrap;
    }
    .stat-pill {
      display: flex;
      align-items: baseline;
      gap: 6px;
      font-size: 12px;
    }
    .stat-pill-label {
      color: var(--text-muted);
      font-weight: 500;
    }
    .stat-pill-val {
      font-size: 16px;
      font-weight: 800;
      color: var(--brand-blue);
    }
    .stat-pill-val.text-green {
      color: #059669;
    }
    .stat-pill-unit {
      color: var(--text-sub);
      font-size: 12px;
    }

    .channel-action-group {
      margin-bottom: 10px;
    }
    .action-label {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 6px;
    }
    .copy-input-row {
      display: flex;
      gap: 8px;
    }
    .copy-input-row input {
      flex: 1;
      min-width: 0;
      height: 38px;
      box-sizing: border-box;
      padding: 0 12px;
      border: 1px solid var(--border-color);
      border-radius: 6px;
      font-size: 12.5px;
      outline: none;
      background: #f8fafc;
      color: var(--text-main);
    }
    .copy-input-row input:focus {
      border-color: var(--brand-blue);
      background: #fff;
    }
    .btn-copy {
      height: 38px;
      padding: 0 14px;
      white-space: nowrap;
      font-size: 12.5px;
      font-weight: 600;
    }
    .promo-textarea {
      width: 100%;
      height: 52px;
      box-sizing: border-box;
      padding: 8px 10px;
      border: 1px solid var(--border-color);
      border-radius: 6px;
      font-size: 11.5px;
      line-height: 1.45;
      resize: none;
      background: #f8fafc;
      color: var(--text-sub);
      margin-bottom: 6px;
    }
    .btn-copy-full {
      width: 100%;
      height: 34px;
      justify-content: center;
      font-size: 12px;
      font-weight: 600;
    }

    /* 方式二：上下一体化布局 */
    .channel-two-body {
      display: flex;
      flex-direction: column;
      gap: 14px;
      flex: 1;
      justify-content: space-between;
    }
    .channel-kf-strip {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 12px 14px;
      background: #f8fafc;
      border: 1px solid var(--border-color);
      border-radius: 8px;
    }
    .channel-kf-qr {
      width: 96px;
      height: 96px;
      border-radius: 6px;
      overflow: hidden;
      border: 1px solid #e2e8f0;
      background: #fff;
      flex-shrink: 0;
      box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    }
    .channel-kf-qr img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .channel-kf-info {
      flex: 1;
      min-width: 0;
    }
    .channel-kf-title {
      font-size: 13.5px;
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 4px;
    }
    .channel-kf-desc {
      font-size: 12px;
      color: var(--text-muted);
      line-height: 1.5;
    }

    .channel-redeem-block {
      background: #fafbfc;
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 12px 14px;
    }
    .redeem-input-row {
      display: flex;
      gap: 8px;
    }
    .redeem-input-row input {
      flex: 1;
      min-width: 0;
      height: 40px;
      box-sizing: border-box;
      padding: 0 12px;
      font-size: 13.5px;
      font-weight: 600;
      font-family: monospace;
      letter-spacing: 0.5px;
      border: 1.5px solid var(--border-color);
      border-radius: 6px;
      outline: none;
      background: #ffffff;
      text-transform: uppercase;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .redeem-input-row input:focus {
      border-color: var(--brand-blue);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }
    .btn-orange {
      background: var(--brand-blue);
      color: #fff;
      border: none;
      border-radius: 6px;
      padding: 0 18px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      transition: background .2s;
      white-space: nowrap;
      height: 40px;
    }
    .btn-orange:hover {
      background: var(--brand-blue-hover);
    }
    .redeem-msg {
      font-size: 12px;
      padding: 6px 10px;
      border-radius: 6px;
      margin-top: 8px;
    }
    .redeem-msg.success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
    .redeem-msg.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
    .redeem-note {
      margin-top: 8px;
      font-size: 11.5px;
      color: var(--text-sub);
      display: flex;
      align-items: center;
      gap: 5px;
      line-height: 1.4;
    }

    .hidden { display: none !important; }
    .empty-row { text-align: center; color: var(--text-muted); padding: 36px !important; font-size: 13px; }

    /* ================= 全局优雅气泡提示 Toast ================= */
    .toast-container {
      position: fixed;
      top: 28px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 999999;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      pointer-events: none;
    }
    .toast-bubble {
      pointer-events: auto;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(15, 23, 42, 0.9);
      color: #ffffff;
      padding: 10px 22px;
      border-radius: 30px;
      font-size: 13px;
      font-weight: 500;
      box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.15);
      animation: toastIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      transition: opacity 0.25s ease, transform 0.25s ease;
    }
    .toast-bubble.toast-success {
      background: rgba(16, 185, 129, 0.95);
      color: #ffffff;
    }
    .toast-bubble.toast-info {
      background: rgba(37, 99, 235, 0.95);
      color: #ffffff;
    }
    .toast-bubble.toast-warning {
      background: rgba(245, 158, 11, 0.95);
      color: #ffffff;
    }
    @keyframes toastIn {
      from {
        opacity: 0;
        transform: translateY(-14px) scale(0.92);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    /* ================= 胶囊鼠标悬停 Popover 浮窗 (参考图2设计) ================= */
    .pill-popover-card {
      position: fixed !important;
      z-index: 9999999 !important;
      width: 220px;
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.18), 0 8px 16px -4px rgba(0, 0, 0, 0.08);
      padding: 14px;
      display: flex;
      flex-direction: column;
      align-items: center;
      box-sizing: border-box;
      pointer-events: auto;
      animation: popoverFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      transition: opacity 0.15s ease, transform 0.15s ease;
    }

    .pill-popover-card.hidden {
      display: none !important;
      opacity: 0;
      pointer-events: none;
    }

    /* 顶部朝上指示小箭头 (默认：卡片在胶囊下方) */
    .pill-popover-card .popover-arrow {
      position: absolute;
      width: 10px;
      height: 10px;
      background: #ffffff;
      transform: rotate(45deg);
      border-left: 1px solid #e2e8f0;
      border-top: 1px solid #e2e8f0;
      top: -6px;
      left: 50%;
      margin-left: -5px;
      z-index: 2;
    }

    /* 底部朝下指示小箭头 (卡片在胶囊上方) */
    .pill-popover-card.arrow-bottom .popover-arrow {
      top: auto;
      bottom: -6px;
      border-left: none;
      border-top: none;
      border-right: 1px solid #e2e8f0;
      border-bottom: 1px solid #e2e8f0;
    }

    /* 大图居中展示区 */
    .popover-thumb-box {
      width: 112px;
      height: 112px;
      border-radius: 8px;
      border: 1px solid #f1f5f9;
      background: #f8fafc;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      margin-bottom: 10px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
      flex-shrink: 0;
    }

    .popover-thumb-box img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    /* 完整 ID 标题与副标题 */
    .popover-id-title {
      font-size: 13px;
      font-weight: 800;
      color: #0f172a;
      margin-bottom: 3px;
      text-align: center;
      word-break: break-all;
      user-select: text;
    }

    .popover-subtitle {
      font-size: 11px;
      color: #64748b;
      text-align: center;
      margin-bottom: 8px;
      line-height: 1.35;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    /* 键值对统计表 (参考图2右侧排版) */
    .popover-stats-box {
      width: 100%;
      border-top: 1px dashed #e2e8f0;
      padding-top: 8px;
      margin-bottom: 8px;
      display: flex;
      flex-direction: column;
      gap: 5px;
      font-size: 11.5px;
    }

    .popover-stat-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .popover-stat-label {
      color: #64748b;
    }

    .popover-stat-val {
      font-weight: 700;
      color: #0f172a;
    }

    .popover-stat-val.blue {
      color: var(--brand-blue);
      font-weight: 800;
    }

    .popover-stat-val.orange {
      color: #ea580c;
      font-weight: 800;
    }

    /* 底部操作引导提示 */
    .popover-hint-bar {
      width: 100%;
      background: #eff6ff;
      color: var(--brand-blue);
      font-size: 11px;
      text-align: center;
      padding: 5px 0;
      border-radius: 6px;
      font-weight: 600;
    }

    @keyframes popoverFadeIn {
      from {
        opacity: 0;
        transform: translateY(4px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* ================= 全站公用官方标准页脚 (与首页 100% 一致) ================= */
    .site-footer {
      background: #0f172a;
      color: #ffffff;
      padding: 36px 0 28px;
      border-top: 1px solid #1e293b;
      margin-top: auto;
      width: 100%;
    }

    .site-footer .footer-container {
      max-width: 1240px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .site-footer__bottom {
      max-width: 1200px;
      margin: 0 auto;
    }

    .site-footer .footer-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 20px;
    }

    .site-footer .footer-brand {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .site-footer .footer-brand img {
      width: 42px;
      height: 42px;
      object-fit: contain;
      border-radius: 8px;
    }

    .site-footer .footer-brand-text h3 {
      font-size: 17px;
      font-weight: 800;
      color: #ffffff;
      margin-bottom: 2px;
    }

    .site-footer .footer-brand-text p {
      font-size: 12px;
      color: #94a3b8;
    }

    .site-footer .copyright {
      font-size: 12.5px;
      color: #94a3b8;
    }

    .site-footer .copyright a {
      color: #38bdf8;
      text-decoration: none;
    }

    .site-footer .copyright a:hover {
      text-decoration: underline;
    }

    .site-footer .footer-disclaimer {
      margin-top: 16px;
      padding-top: 12px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      font-size: 11px;
      color: #64748b;
      line-height: 1.6;
      text-align: center;
    }

    @media (max-width: 768px) {
      .site-footer .footer-row {
        flex-direction: column;
        text-align: center;
      }
      .site-footer .footer-brand {
        flex-direction: column;
        text-align: center;
      }
      .footer-quick-links__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
      .quick-links-group {
        justify-content: center;
      }
    }

    /* ===== 通用底部快捷入口导航 (Footer Quick Links) ===== */
    .footer-quick-links {
      margin-bottom: 24px;
      padding-bottom: 20px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-quick-links__inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px 20px;
    }

    .quick-links-title {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      font-weight: 700;
      color: #94a3b8;
      letter-spacing: 0.5px;
    }

    .quick-links-title svg {
      color: #38bdf8;
    }

    .quick-links-group {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px 12px;
      font-size: 13px;
    }

    .quick-link-item {
      color: #cbd5e1;
      text-decoration: none;
      font-weight: 500;
      padding: 4px 8px;
      border-radius: 6px;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .quick-link-item:hover {
      color: #38bdf8;
      background: rgba(56, 189, 248, 0.12);
      transform: translateY(-1px);
    }

    .quick-link-sep {
      color: #475569;
      font-size: 12px;
      user-select: none;
    }

    .quick-link-highlight {
      color: #38bdf8;
      font-weight: 600;
    }

    .quick-link-highlight:hover {
      color: #7dd3fc;
      background: rgba(56, 189, 248, 0.18);
    }

    .quick-link-cws {
      color: #60a5fa;
      font-weight: 600;
    }

    .quick-link-cws:hover {
      color: #93c5fd;
      background: rgba(96, 165, 250, 0.18);
    }

    /* ================= 关键词挖掘表格全选框与批量复制行高亮 ================= */
    .mining-check-all, .mining-row-check {
      cursor: pointer;
      width: 16px;
      height: 16px;
      accent-color: var(--brand-blue);
      vertical-align: middle;
      margin: 0 auto;
      display: block;
    }

    #mining-table tbody tr {
      transition: background-color 0.15s ease;
    }
    #mining-table tbody tr.row-selected {
      background-color: #f0f7ff !important;
    }

    /* ================= 关键词深度挖掘大厂高质感数据表格排版 ================= */
    #mining-table {
      border-collapse: separate;
      border-spacing: 0;
    }
    #mining-table th {
      background: #f8fafc;
      color: #334155;
      font-weight: 700;
      font-size: 12.5px;
      padding: 12px 14px;
      border-bottom: 2px solid #e2e8f0;
      letter-spacing: 0.2px;
    }
    #mining-table td {
      padding: 12px 14px;
      border-bottom: 1px solid #f1f5f9;
      vertical-align: middle;
      color: #1e293b;
    }
    #mining-table tbody tr:hover td {
      background-color: #f8fafc;
    }

    /* ================= 关键词现代科技胶囊体系 ================= */
    .mining-idx-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 22px;
      height: 22px;
      padding: 0 4px;
      border-radius: 6px;
      font-size: 11.5px;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
      color: #64748b;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
    }
    .mining-idx-badge.top-1 {
      color: #b45309;
      background: #fef3c7;
      border-color: #fde68a;
    }
    .mining-idx-badge.top-2 {
      color: #334155;
      background: #f1f5f9;
      border-color: #cbd5e1;
    }
    .mining-idx-badge.top-3 {
      color: #9a3412;
      background: #ffedd5;
      border-color: #fed7aa;
    }

    /* 关键词胶囊容器 (极简纯净大厂胶囊：词加浅色亮一点，hover显示箭头) */
    .mining-kw-pill-wrapper {
      display: inline-flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 2px;
      max-width: 320px;
    }
    .mining-kw-pill {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3.5px 12px;
      background: #f0f9ff;
      border: 1px solid #bae6fd;
      border-radius: 9999px;
      text-decoration: none !important;
      color: #0284c7 !important;
      font-weight: 500;
      font-size: 12.5px;
      line-height: 1.35;
      box-shadow: 0 1px 3px rgba(2, 132, 199, 0.08);
      transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
      cursor: pointer;
      max-width: 100%;
    }
    .mining-kw-pill:hover {
      background: #ffffff;
      border-color: #38bdf8;
      color: #0369a1 !important;
      transform: translateY(-1px);
      box-shadow: 0 3px 10px rgba(2, 132, 199, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
    }
    .mining-kw-pill-text {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 230px;
    }
    /* 默认不显示箭头 */
    .mining-kw-pill-arrow {
      display: none;
      width: 11px;
      height: 11px;
      color: #0284c7;
      flex-shrink: 0;
      vertical-align: middle;
    }
    /* 鼠标悬停放上去后再显示箭头 */
    .mining-kw-pill:hover .mining-kw-pill-arrow {
      display: inline-block;
    }
    /* 中文翻译：低调弱化、干净无框、无底色、不显眼 */
    .mining-kw-zh-pill {
      display: block;
      font-size: 11px;
      font-weight: 400;
      color: #94a3b8;
      line-height: 1.3;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 260px;
      padding: 0 2px;
      margin-top: 2px;
      background: transparent;
      border: none;
      box-shadow: none;
    }

    /* 兼容旧类名 */
    .mining-kw-link {
      color: #0284c7 !important;
      font-weight: 500;
      font-size: 13px;
      text-decoration: none;
    }
    .mining-kw-zh {
      color: #94a3b8;
      font-size: 11.5px;
    }

    /* 等宽千分位数字 (清秀不加粗) */
    .mining-num {
      font-variant-numeric: tabular-nums;
      font-size: 13px;
      color: #334155;
      font-weight: 500;
    }
    .mining-num.sub {
      color: #64748b;
      font-weight: 400;
    }
    .mining-dash {
      color: #94a3b8;
      font-size: 13px;
    }

    /* 购买转化率优雅三级色彩分层 (全量统一微边框胶囊，杜绝有框无框不一致) */
    .cr-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 3px;
      font-variant-numeric: tabular-nums;
      font-size: 12px;
      font-weight: 500;
      padding: 2.5px 8px;
      border-radius: 6px;
      min-width: 54px;
      line-height: 1.35;
      text-align: center;
      box-sizing: border-box;
      transition: all 0.15s ease;
    }
    .cr-badge.high {
      background: #ecfdf5;
      color: #059669;
      border: 1px solid #a7f3d0;
      font-weight: 600;
    }
    .cr-badge.mid {
      background: #f8fafc;
      color: #334155;
      border: 1px solid #e2e8f0;
    }
    .cr-badge.low {
      background: #f8fafc;
      color: #64748b;
      border: 1px solid #e2e8f0;
    }

    /* 词频梯队双色胶囊 */
    .mining-tier-tag {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 10px;
      border-radius: 12px;
      font-size: 11px;
      font-weight: 700;
      line-height: 1.4;
    }
    .mining-tier-tag::before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 50%;
    }
    .mining-tier-tag.head {
      background: #fef2f2;
      color: #b91c1c;
      border: 1px solid #fecaca;
    }
    .mining-tier-tag.head::before { background: #dc2626; }
    .mining-tier-tag.waist {
      background: #eff6ff;
      color: #1d4ed8;
      border: 1px solid #bfdbfe;
    }
    .mining-tier-tag.waist::before { background: #2563eb; }
    .mining-tier-tag.tail {
      background: #f8fafc;
      color: #475569;
      border: 1px solid #e2e8f0;
    }
    .mining-tier-tag.tail::before { background: #94a3b8; }

    /* 复制词现代微质感按钮 */
    .btn-copy-kw {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      padding: 4px 10px;
      font-size: 11.5px;
      font-weight: 600;
      color: #475569;
      background: #ffffff;
      border: 1px solid #cbd5e1;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 1px 2px rgba(0,0,0,0.04);
      user-select: none;
    }
    .btn-copy-kw:hover {
      color: var(--brand-blue);
      border-color: var(--brand-blue);
      background: #eff6ff;
      transform: translateY(-1px);
      box-shadow: 0 2px 5px rgba(37, 99, 235, 0.15);
    }
    .btn-copy-kw.copied {
      color: #059669 !important;
      border-color: #a7f3d0 !important;
      background: #ecfdf5 !important;
    }

    /* ================= 胶囊固定与卡片操作样式 ================= */
    .hot-chip.pinned {
      border-color: #f59e0b !important;
      background: #fffbeb !important;
      box-shadow: 0 1px 3px rgba(245, 158, 11, 0.15);
    }
    .chip-pin-icon {
      font-size: 11px;
      margin-right: 2px;
      display: inline-flex;
      align-items: center;
      vertical-align: -1px;
    }

    /* 网页端 Popover 操作工具条 */
    .popover-actions-bar {
      display: flex;
      gap: 6px;
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid #e2e8f0;
    }
    .popover-btn-action {
      flex: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      height: 28px;
      padding: 0 8px;
      font-size: 11.5px;
      font-weight: 600;
      border-radius: 6px;
      border: 1px solid #cbd5e1;
      background: #ffffff;
      color: #334155;
      cursor: pointer;
      transition: all 0.15s;
      white-space: nowrap;
    }
    .popover-btn-icon {
      width: 13px;
      height: 13px;
      flex-shrink: 0;
    }
    .popover-btn-action:hover {
      background: #f8fafc;
      border-color: #94a3b8;
    }
    .popover-btn-pin.is-pinned {
      background: #fffbeb;
      color: #b45309;
      border-color: #fde68a;
    }
    .popover-btn-pin.is-pinned:hover {
      background: #fef3c7;
    }
    .popover-btn-del {
      color: #dc2626;
      border-color: #fca5a5;
      background: #fff;
    }
    .popover-btn-del:hover {
      background: #fef2f2;
      border-color: #f87171;
    }

    /* ===== 搜索量与购买量未解锁：邀请获得徽章 ===== */
    .locked-cell {
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      user-select: none;
      text-decoration: none;
    }
    .locked-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: rgba(245, 158, 11, 0.1);
      border: 1px dashed rgba(245, 158, 11, 0.55);
      color: #d97706;
      font-size: 11.5px;
      font-weight: 600;
      padding: 3px 8px;
      border-radius: 6px;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .locked-cell:hover .locked-badge,
    .locked-badge:hover {
      background: #f59e0b;
      border-color: #f59e0b;
      color: #ffffff;
      transform: translateY(-1px);
      box-shadow: 0 2px 8px rgba(245, 158, 11, 0.28);
    }
    .locked-badge svg {
      width: 12px;
      height: 12px;
      flex-shrink: 0;
    }




