 :root {
   --primary: #2563eb;
   --primary-hover: #1d4ed8;
   --primary-light: #eff6ff;
   --secondary: #64748b;
   --secondary-hover: #475569;
   --success: #10b981;
   --success-light: #ecfdf5;
   --warning: #f59e0b;
   --warning-light: #fffbeb;
   --danger: #ef4444;
   --danger-light: #fef2f2;
   --bg-page: #f8fafc;
   --bg-card: #ffffff;
   --border: #e2e8f0;
   --text-main: #1e293b;
   --text-muted: #64748b;
   --radius: 10px;
   --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
   --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
 }
 
 * {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
 }
 
 body {
   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
   background-color: var(--bg-page);
   color: var(--text-main);
   line-height: 1.5;
   min-height: 100vh;
 }
 
 .app-container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 24px 20px 60px;
 }
 
 /* 顶部导航区域 */
 .app-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 24px;
   flex-wrap: wrap;
   gap: 16px;
 }
 
 .brand-area {
   display: flex;
   align-items: center;
   gap: 14px;
 }
 
 .logo {
   font-size: 34px;
   background: white;
   width: 54px;
   height: 54px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 12px;
   box-shadow: var(--shadow);
   border: 1px solid var(--border);
 }
 
 .app-header h1 {
   font-size: 22px;
   font-weight: 700;
   color: #0f172a;
 }
 
 .subtitle {
   font-size: 13px;
   color: var(--text-muted);
 }
 
 .header-right {
   display: flex;
   align-items: center;
   gap: 12px;
 }
 
 .lan-share-card {
   display: flex;
   align-items: center;
   gap: 8px;
   background: white;
   border: 1px solid #cbd5e1;
   border-radius: 8px;
   padding: 6px 12px;
   font-size: 13px;
   cursor: pointer;
   box-shadow: 0 1px 2px rgba(0,0,0,0.05);
   transition: all 0.2s;
 }
 
 .lan-share-card:hover {
   border-color: var(--primary);
   background: var(--primary-light);
 }
 
 .lan-dot {
   width: 8px;
   height: 8px;
   border-radius: 50%;
   background: var(--success);
 }
 
 .btn-copy-sm {
   background: #e2e8f0;
   border: none;
   padding: 2px 8px;
   border-radius: 4px;
   font-size: 11px;
   cursor: pointer;
   font-weight: 600;
   color: #334155;
 }
 
 .btn-copy-sm:hover {
   background: #cbd5e1;
 }
 
 .status-badge {
   display: flex;
   align-items: center;
   gap: 6px;
   font-size: 12px;
   padding: 6px 12px;
   border-radius: 20px;
   background: #f1f5f9;
   color: #475569;
   border: 1px solid var(--border);
 }
 
 .status-dot {
   width: 8px;
   height: 8px;
   border-radius: 50%;
   background: #94a3b8;
 }
 
 .status-dot.online {
   background: var(--success);
 }
 
 /* 导航标签 */
 .nav-tabs {
   display: flex;
   gap: 6px;
   border-bottom: 2px solid var(--border);
   margin-bottom: 20px;
   overflow-x: auto;
 }
 
 .nav-tab {
   display: flex;
   align-items: center;
   gap: 8px;
   padding: 12px 18px;
   background: none;
   border: none;
   font-size: 15px;
   font-weight: 600;
   color: var(--text-muted);
   cursor: pointer;
   border-bottom: 2px solid transparent;
   margin-bottom: -2px;
   transition: all 0.2s;
   white-space: nowrap;
 }
 
 .nav-tab:hover {
   color: var(--primary);
 }
 
 .nav-tab.active {
   color: var(--primary);
   border-bottom-color: var(--primary);
 }
 
 /* 内容面板 */
 .tab-pane {
   display: none;
 }
 
 .tab-pane.active {
   display: block;
   animation: fadeIn 0.2s ease-in-out;
 }
 
 @keyframes fadeIn {
   from { opacity: 0; transform: translateY(4px); }
   to { opacity: 1; transform: translateY(0); }
 }
 
 /* 卡片组件 */
 .card {
   background: var(--bg-card);
   border: 1px solid var(--border);
   border-radius: var(--radius);
   padding: 24px;
   box-shadow: var(--shadow);
   margin-bottom: 20px;
 }
 
 .card-header-flex {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 12px;
 }
 
 .section-desc {
   font-size: 13px;
   color: var(--text-muted);
   margin-bottom: 16px;
 }
 
 /* 表单控件 */
 .form-group {
   margin-bottom: 16px;
 }
 
 .form-label {
   display: block;
   font-size: 14px;
   font-weight: 600;
   color: #334155;
   margin-bottom: 8px;
 }
 
 .label-hint {
   font-size: 12px;
   font-weight: 400;
   color: var(--text-muted);
 }
 
 .form-control {
   width: 100%;
   padding: 10px 14px;
   border: 1px solid var(--border);
   border-radius: 8px;
   font-size: 14px;
   color: var(--text-main);
   background: white;
   outline: none;
   transition: border-color 0.2s, box-shadow 0.2s;
 }
 
 .form-control:focus {
   border-color: var(--primary);
   box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
 }
 
 .form-control-sm {
   padding: 6px 10px;
   font-size: 13px;
 }
 
 .form-select {
   padding: 8px 12px;
   border: 1px solid var(--border);
   border-radius: 6px;
   font-size: 13px;
   background: white;
   color: var(--text-main);
   outline: none;
 }
 
 .input-with-action {
   display: flex;
   gap: 10px;
 }
 
 .options-bar {
   display: flex;
   gap: 20px;
   margin-top: 16px;
   padding-top: 14px;
   border-top: 1px solid var(--border);
   flex-wrap: wrap;
 }
 
 .option-item {
   display: flex;
   align-items: center;
   gap: 8px;
   font-size: 13px;
   color: var(--text-muted);
 }
 
 /* 按钮 */
 .btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 9px 18px;
   font-size: 14px;
   font-weight: 600;
   border-radius: 8px;
   border: none;
   cursor: pointer;
   transition: all 0.2s;
   white-space: nowrap;
 }
 
 .btn-sm {
   padding: 5px 10px;
   font-size: 12px;
 }
 
 .btn-lg {
   padding: 12px 24px;
   font-size: 15px;
 }
 
 .btn-primary {
   background: var(--primary);
   color: white;
 }
 
 .btn-primary:hover {
   background: var(--primary-hover);
 }
 
 .btn-secondary {
   background: #e2e8f0;
   color: #334155;
 }
 
 .btn-secondary:hover {
   background: #cbd5e1;
 }
 
 .btn-success {
   background: var(--success);
   color: white;
 }
 
 .btn-success:hover {
   background: #059669;
 }
 
 .btn-warning {
   background: var(--warning);
   color: white;
 }
 
 .btn-warning:hover {
   background: #d97706;
 }
 
 .btn-danger {
   background: var(--danger);
   color: white;
 }
 
 .btn-danger:hover {
   background: #dc2626;
 }
 
 /* 指令预览条 */
 .query-preview-bar {
   display: flex;
   align-items: center;
   justify-content: space-between;
   background: #f1f5f9;
   border: 1px solid #cbd5e1;
   border-radius: 8px;
   padding: 10px 16px;
   margin-bottom: 20px;
   font-size: 13px;
   flex-wrap: wrap;
   gap: 12px;
 }
 
 .preview-item {
   display: flex;
   align-items: center;
   gap: 8px;
   flex: 1;
   min-width: 280px;
 }
 
 .preview-label {
   font-weight: 600;
   color: #475569;
 }
 
 .query-preview-bar code {
   background: white;
   padding: 4px 8px;
   border-radius: 4px;
   border: 1px solid #cbd5e1;
   color: #0f172a;
   font-family: monospace;
   font-size: 12px;
   word-break: break-all;
 }
 
 .btn-copy-code {
   background: #e2e8f0;
   border: none;
   padding: 3px 8px;
   border-radius: 4px;
   font-size: 11px;
   cursor: pointer;
 }
 
 .preview-direct-link {
   color: var(--primary);
   text-decoration: none;
   font-weight: 600;
 }
 
 .preview-direct-link:hover {
   text-decoration: underline;
 }
 
 /* 人机验证警告卡片 */
 .captcha-alert-card {
   display: flex;
   gap: 14px;
   background: var(--warning-light);
   border: 1px solid #fde68a;
   border-radius: var(--radius);
   padding: 16px 20px;
   margin-bottom: 20px;
 }
 
 .alert-icon {
   font-size: 28px;
 }
 
 .alert-body h4 {
   color: #92400e;
   font-size: 15px;
   margin-bottom: 6px;
 }
 
 .alert-body p {
   color: #78350f;
   font-size: 13px;
   margin-bottom: 12px;
 }
 
 .alert-actions {
   display: flex;
   align-items: center;
   gap: 14px;
   flex-wrap: wrap;
 }
 
 .alert-tip {
   font-size: 12px;
   color: #92400e;
 }
 
 /* 单条结果卡片样式 */
 .matched-hero-card {
   background: white;
   border: 2px solid #93c5fd;
   border-radius: var(--radius);
   padding: 24px;
   margin-bottom: 20px;
   box-shadow: var(--shadow-lg);
 }
 
 .hero-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 16px;
   flex-wrap: wrap;
   gap: 10px;
 }
 
 .hero-tag-group {
   display: flex;
   align-items: center;
   gap: 8px;
 }
 
 .tag {
   padding: 3px 8px;
   border-radius: 4px;
   font-size: 12px;
   font-weight: 600;
 }
 
 .tag-taobao {
   background: #ffedd5;
   color: #c2410c;
   border: 1px solid #fed7aa;
 }
 
 .tag-tmall {
   background: #ffe4e6;
   color: #e11d48;
   border: 1px solid #fecdd3;
 }

.tag-jd {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.tag-jd-hk {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #d8b4fe;
}
 
 .tag-id {
   background: #f1f5f9;
   color: #334155;
   border: 1px solid #e2e8f0;
   font-family: monospace;
 }
 
 .tag-success {
   background: var(--success-light);
   color: #065f46;
 }
 
 .tag-warning {
   background: var(--warning-light);
   color: #92400e;
 }
 
 .tag-error {
   background: var(--danger-light);
   color: #991b1b;
 }
 
 .hero-url-box {
   background: #f8fafc;
   border: 1px solid #cbd5e1;
   border-radius: 8px;
   padding: 12px 16px;
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 16px;
   gap: 12px;
 }
 
 .hero-url-link {
   font-size: 15px;
   font-weight: 600;
   color: var(--primary);
   text-decoration: none;
   word-break: break-all;
 }
 
 .hero-url-link:hover {
   text-decoration: underline;
 }
 
 .hero-actions {
   display: flex;
   gap: 10px;
 }
 
 .hero-title-text {
   font-size: 16px;
   font-weight: 600;
   margin-bottom: 8px;
   color: #0f172a;
 }
 
 .hero-snippet-text {
   font-size: 13px;
   color: var(--text-muted);
   line-height: 1.6;
 }
 
 /* 搜索结果备选项列表 */
 .sub-results-card h4 {
   font-size: 14px;
   margin-bottom: 12px;
   color: #475569;
 }
 
 .sub-item {
   padding: 12px;
   border-bottom: 1px solid var(--border);
 }
 
 .sub-item:last-child {
   border-bottom: none;
 }
 
 .sub-item-title {
   font-weight: 600;
   font-size: 14px;
   margin-bottom: 4px;
 }
 
 .sub-item-link {
   font-size: 12px;
   color: var(--primary);
   word-break: break-all;
 }
 
 /* 批量查询控制 */
 .batch-textarea {
   font-family: monospace;
   font-size: 13px;
   line-height: 1.6;
 }
 
 .batch-controls {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-top: 16px;
   flex-wrap: wrap;
   gap: 14px;
 }
 
 .batch-settings {
   display: flex;
   align-items: center;
   gap: 8px;
   font-size: 13px;
 }
 
 .setting-hint {
   font-size: 12px;
   color: var(--text-muted);
 }
 
 /* 进度条 */
 .progress-info {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 10px;
   font-size: 14px;
 }
 
 .progress-tags {
   display: flex;
   gap: 8px;
 }
 
 .progress-bar-bg {
   background: #e2e8f0;
   height: 10px;
   border-radius: 5px;
   overflow: hidden;
 }
 
 .progress-bar-fill {
   background: var(--primary);
   height: 100%;
   transition: width 0.3s ease;
 }
 
 /* 数据表格 */
 .table-header-flex {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 16px;
 }
 
 .table-responsive {
   overflow-x: auto;
 }
 
 .data-table {
   width: 100%;
   border-collapse: collapse;
   font-size: 13px;
   text-align: left;
 }
 
 .data-table th {
   background: #f8fafc;
   padding: 10px 12px;
   border-bottom: 2px solid var(--border);
   color: #475569;
   font-weight: 600;
   white-space: nowrap;
 }
 
 .data-table td {
   padding: 10px 12px;
   border-bottom: 1px solid var(--border);
   vertical-align: middle;
 }
 
 .data-table tbody tr:hover {
   background: #f8fafc;
 }
 
 .text-center {
   text-align: center;
 }
 
 /* 栅格 2 列 */
 .grid-2 {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 20px;
 }
 
 @media (max-width: 860px) {
   .grid-2 {
     grid-template-columns: 1fr;
   }
 }
 
 /* 书签小工具盒 */
 .bookmarklet-box {
   text-align: center;
   padding: 24px;
   background: #f8fafc;
   border: 2px dashed #cbd5e1;
   border-radius: var(--radius);
   margin-bottom: 20px;
 }
 
 .btn-bookmarklet {
   display: inline-block;
   background: #3b82f6;
   color: white;
   padding: 12px 24px;
   border-radius: 8px;
   font-weight: 700;
   font-size: 15px;
   text-decoration: none;
   cursor: grab;
   box-shadow: var(--shadow);
 }
 
 .btn-bookmarklet:active {
   cursor: grabbing;
 }
 
 .guide-box {
   background: white;
   border: 1px solid var(--border);
   border-radius: 8px;
   padding: 14px 18px;
   font-size: 13px;
 }
 
 .guide-box h4 {
   margin-bottom: 8px;
   color: #334155;
 }
 
 .guide-box ol {
   padding-left: 20px;
   line-height: 1.8;
   color: var(--text-muted);
 }
 
 .pasted-list {
   display: flex;
   flex-direction: column;
   gap: 10px;
   margin-top: 10px;
 }
 
 .pasted-item {
   background: #f8fafc;
   border: 1px solid var(--border);
   padding: 10px 14px;
   border-radius: 6px;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 10px;
 }
 
 /* Toast 全局提示 */
 .toast-container {
   position: fixed;
   bottom: 24px;
   right: 24px;
   display: flex;
   flex-direction: column;
   gap: 10px;
   z-index: 9999;
 }
 
 .toast {
   background: #1e293b;
   color: white;
   padding: 12px 20px;
   border-radius: 8px;
   font-size: 14px;
   box-shadow: var(--shadow-lg);
   display: flex;
   align-items: center;
   gap: 10px;
   animation: slideUp 0.25s ease-out;
   max-width: 380px;
 }
 
 .toast.success {
   background: #065f46;
 }
 
 .toast.error {
   background: #991b1b;
 }
 
 .toast.warning {
   background: #92400e;
 }
 
 @keyframes slideUp {
   from { opacity: 0; transform: translateY(10px); }
   to { opacity: 1; transform: translateY(0); }
 }
 
 .helper-text {
   font-size: 12px;
   color: var(--text-muted);
   margin-top: 6px;
   line-height: 1.5;
 }
 
 .helper-text a {
   color: var(--primary);
   text-decoration: none;
 }
 
 .helper-text a:hover {
   text-decoration: underline;
 }
