/* 亚马逊关键词调研专家 v1.1 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

#amzkw-root { font-family:'Noto Sans SC',-apple-system,BlinkMacSystemFont,sans-serif; max-width:1100px; margin:0 auto; color:#111827; line-height:1.6; }
#amzkw-root * { box-sizing:border-box; }

/* Header */
.amzkw-header { background:#fff; border:1px solid #f3f4f6; border-radius:14px; padding:16px 24px; display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; position:sticky; top:0; z-index:100; }
.amzkw-header-left { display:flex; align-items:center; gap:10px; }
.amzkw-logo { font-size:26px; }
.amzkw-title { font-size:17px; font-weight:800; color:#111; }
.amzkw-subtitle { font-size:12px; color:#9ca3af; }
.amzkw-counter { background:#fffbeb; border:1px solid #fde68a; border-radius:10px; padding:8px 16px; text-align:center; flex-shrink:0; }
.amzkw-counter-label { font-size:11px; color:#92400e; }
.amzkw-counter-num { font-size:22px; font-weight:800; color:#f59e0b; }
.amzkw-counter-num.exhausted { color:#dc2626; }
.amzkw-counter-num.member { color:#16a34a; font-size:26px; }

/* Steps */
.amzkw-section-step { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.amzkw-step-num { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; background:#f59e0b; color:#fff; font-size:14px; font-weight:700; }
.amzkw-step-label { font-size:16px; font-weight:600; color:#111; }

/* Dropzone */
.amzkw-dropzone { border:2px dashed #d1d5db; border-radius:14px; padding:40px 24px 28px; text-align:center; cursor:pointer; background:#fafbfc; transition:all .2s; margin-bottom:16px; }
.amzkw-dropzone:hover,.amzkw-dropzone.dragging { border-color:#f59e0b; background:#fffbeb; }
.amzkw-dropzone-icon { font-size:36px; margin-bottom:8px; }
.amzkw-dropzone-text { font-size:15px; font-weight:600; color:#374151; }
.amzkw-dropzone-hint { font-size:13px; color:#9ca3af; margin-top:6px; }
.amzkw-file-name { background:#f0fdf4; border:1px solid #bbf7d0; border-radius:8px; padding:8px 14px; font-size:13px; color:#16a34a; margin-bottom:16px; }

/* Multi-file List */
.amzkw-file-list { margin-bottom:16px; }
.amzkw-file-list-header { font-size:13px; font-weight:600; color:#16a34a; margin-bottom:8px; background:#f0fdf4; border:1px solid #bbf7d0; border-radius:8px 8px 0 0; padding:8px 14px; }
.amzkw-file-list-items { border:1px solid #e5e7eb; border-top:none; border-radius:0 0 8px 8px; overflow:hidden; }
.amzkw-file-item { display:flex; align-items:center; gap:8px; padding:8px 14px; font-size:13px; border-bottom:1px solid #f3f4f6; background:#fff; }
.amzkw-file-item:last-child { border-bottom:none; }
.amzkw-file-item:hover { background:#fafafa; }
.amzkw-file-item-name { flex:1; color:#374151; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.amzkw-file-item-size { font-size:12px; color:#9ca3af; white-space:nowrap; }
.amzkw-file-item-del { width:22px; height:22px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:#fee2e2; color:#dc2626; font-size:12px; font-weight:700; cursor:pointer; flex-shrink:0; transition:all .15s; }
.amzkw-file-item-del:hover { background:#dc2626; color:#fff; }

/* Tools Panel */
.amzkw-tools-panel { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:14px 18px; margin-bottom:24px; }
.amzkw-tools-label { font-size:12px; color:#9ca3af; margin-bottom:10px; font-weight:500; }
.amzkw-tool-featured { display:flex; align-items:center; gap:10px; background:linear-gradient(135deg,#eef2ff,#e0e7ff); border:1px solid #a5b4fc; border-radius:10px; padding:10px 16px; margin-bottom:10px; }
.amzkw-tool-featured-icon { font-size:22px; }
.amzkw-tool-featured-name { font-size:14px; font-weight:700; color:#4338ca; }
.amzkw-tool-featured-desc { font-size:11px; color:#6366f1; }
.amzkw-tool-featured-badge { margin-left:auto; font-size:11px; font-weight:700; background:#4338ca; color:#fff; padding:2px 10px; border-radius:12px; }
.amzkw-tools-list { display:flex; flex-wrap:wrap; gap:8px; }
.amzkw-tool-tag { display:inline-flex; align-items:center; gap:5px; padding:5px 12px; border-radius:20px; font-size:12px; font-weight:600; background:var(--tb); color:var(--tc); border:1px solid rgba(0,0,0,.06); white-space:nowrap; }

/* Textarea */
.amzkw-textarea { width:100%; min-height:100px; padding:14px; border:1px solid #d1d5db; border-radius:12px; font-size:14px; line-height:1.6; resize:vertical; outline:none; font-family:inherit; background:#fafbfc; }
.amzkw-textarea:focus { border-color:#f59e0b; box-shadow:0 0 0 3px rgba(245,158,11,.1); }

/* Buttons */
.amzkw-buttons { display:flex; gap:12px; margin-top:20px; }
.amzkw-btn-primary { flex:1; padding:13px 24px; background:linear-gradient(135deg,#f59e0b,#ea580c); color:#fff; border:none; border-radius:10px; font-size:15px; font-weight:700; cursor:pointer; font-family:inherit; }
.amzkw-btn-primary:hover { opacity:.9; }
.amzkw-btn-primary:disabled { opacity:.5; cursor:not-allowed; }
.amzkw-btn-outline { padding:13px 24px; background:#fff; color:#f59e0b; border:2px solid #f59e0b; border-radius:10px; font-size:15px; font-weight:700; cursor:pointer; white-space:nowrap; font-family:inherit; }
.amzkw-btn-outline:hover { background:#fffbeb; }

/* Member Tip */
.amzkw-member-tip { margin-top:16px; text-align:center; font-size:13px; color:#6b7280; background:#f0fdf4; border:1px solid #bbf7d0; border-radius:8px; padding:10px; }
.amzkw-member-tip a { color:#16a34a; font-weight:600; text-decoration:underline; }

/* Progress */
.amzkw-progress-box { background:#fffbeb; border:1px solid #fde68a; border-radius:16px; padding:32px; max-width:520px; margin:40px auto; text-align:center; }
.amzkw-progress-icon { font-size:40px; margin-bottom:16px; }
.amzkw-progress-title { font-size:18px; font-weight:700; color:#92400e; margin-bottom:8px; }
.amzkw-progress-label { font-size:14px; color:#b45309; margin-bottom:24px; }
.amzkw-progress-bar { height:8px; border-radius:4px; background:#fde68a; overflow:hidden; margin-bottom:8px; }
.amzkw-progress-fill { height:100%; width:0; border-radius:4px; background:linear-gradient(90deg,#f59e0b,#ea580c); transition:width .3s; }
.amzkw-progress-pct { font-size:13px; color:#92400e; font-weight:600; }
.amzkw-progress-steps { margin-top:16px; display:flex; flex-wrap:wrap; gap:6px; justify-content:center; }
.amzkw-progress-step-tag { font-size:11px; padding:2px 8px; border-radius:12px; background:#fef3c7; color:#92400e; }
.amzkw-progress-step-tag.done { color:#16a34a; }

/* Tabs */
.amzkw-tabs { display:flex; gap:4px; overflow-x:auto; padding-bottom:4px; margin-bottom:24px; border-bottom:2px solid #f3f4f6; }
.amzkw-tab { padding:10px 18px; border:none; background:transparent; border-bottom:3px solid transparent; color:#6b7280; font-size:14px; font-weight:500; cursor:pointer; border-radius:8px 8px 0 0; white-space:nowrap; font-family:inherit; }
.amzkw-tab:hover { background:#fafafa; }
.amzkw-tab.active { border-bottom-color:#f59e0b; background:#fffbeb; color:#92400e; font-weight:700; }

/* Tables */
.amzkw-table-wrap { overflow-x:auto; border-radius:10px; border:1px solid #e5e7eb; }
.amzkw-table { width:100%; border-collapse:collapse; font-size:13px; }
.amzkw-table th { padding:10px 12px; font-size:12px; font-weight:600; color:#6b7280; text-align:center; border-bottom:1px solid #e5e7eb; background:#f9fafb; white-space:nowrap; cursor:pointer; user-select:none; }
.amzkw-table td { padding:10px 12px; text-align:center; border-bottom:1px solid #f3f4f6; white-space:nowrap; }
.amzkw-table tbody tr:hover { background:#fef9ee !important; }
.amzkw-table tbody tr:nth-child(even) { background:#fafafa; }
.amzkw-kw-cell { text-align:left !important; font-weight:500; font-family:'SF Mono',Menlo,Consolas,monospace; color:#111; }
.amzkw-search-input { width:100%; max-width:320px; padding:8px 14px; border:1px solid #d1d5db; border-radius:8px; font-size:13px; outline:none; background:#fafafa; margin-bottom:12px; }

/* Badges */
.amzkw-badge { display:inline-block; padding:2px 10px; border-radius:20px; font-size:12px; font-weight:600; white-space:nowrap; }
.amzkw-badge-high { background:#dc26261a; color:#dc2626; }
.amzkw-badge-mid { background:#eab3081a; color:#a16207; }
.amzkw-badge-low { background:#16a34a1a; color:#16a34a; }
.amzkw-badge-strong { background:#16a34a1a; color:#16a34a; }
.amzkw-badge-title { background:#dc26261a; color:#dc2626; border:1px solid #dc262640; }
.amzkw-badge-bullet { background:#ea580c1a; color:#ea580c; border:1px solid #ea580c40; }
.amzkw-badge-st { background:#2563eb1a; color:#2563eb; border:1px solid #2563eb40; }
.amzkw-badge-aplus { background:#7c3aed1a; color:#7c3aed; border:1px solid #7c3aed40; }
.amzkw-badge-p0 { background:#dc26261a; color:#dc2626; }
.amzkw-badge-p1 { background:#ea580c1a; color:#ea580c; }
.amzkw-badge-p2 { background:#2563eb1a; color:#2563eb; }
.amzkw-badge-aba { background:#059669; color:#fff; font-size:11px; padding:1px 7px; }

/* Stat Cards */
.amzkw-stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:14px; margin-bottom:28px; }
.amzkw-stat-card { background:#fff; border:1px solid #e5e7eb; border-radius:14px; padding:20px 18px; position:relative; overflow:hidden; }
.amzkw-stat-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--accent,#f59e0b); }
.amzkw-stat-label { font-size:13px; color:#6b7280; }
.amzkw-stat-value { font-size:28px; font-weight:700; color:#111; margin-top:4px; }
.amzkw-stat-sub { font-size:12px; color:#9ca3af; }

.amzkw-section-title { font-size:18px; font-weight:700; color:#111; margin-bottom:16px; }
.amzkw-back-row { margin-top:32px; text-align:center; }
.amzkw-btn-back { padding:10px 32px; background:#f3f4f6; border:none; border-radius:8px; color:#6b7280; font-size:14px; font-weight:600; cursor:pointer; font-family:inherit; }

/* Source Bar */
.amzkw-source-bar { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:12px 18px; margin-bottom:20px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.amzkw-source-tag { font-size:12px; font-weight:600; padding:3px 10px; border-radius:16px; }
.amzkw-source-tag.featured { background:#4338ca; color:#fff; }

@media(max-width:640px) {
    .amzkw-header { flex-direction:column; gap:12px; text-align:center; }
    .amzkw-buttons { flex-direction:column; }
    .amzkw-stats-grid { grid-template-columns:repeat(2,1fr); }
    .amzkw-tab { padding:8px 12px; font-size:13px; }
}
