/* ============================================================
   IconScout - 全局样式
   ============================================================ */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --bg: #0f0f11;
    --bg-card: #18181b;
    --bg-card-hover: #1f1f23;
    --bg-input: #27272a;
    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border: #3f3f46;
    --border-light: #52525b;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   页面切换
   ============================================================ */
.page { display: none; }
.page.active { display: block; }

/* ============================================================
   搜索主页
   ============================================================ */
.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 2rem;
    padding-top: 15vh;
}

.logo-area {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.logo-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.logo-text {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light), #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.logo-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.5rem;
    font-weight: 300;
}

/* 搜索框 */
.search-box {
    display: flex;
    width: 100%;
    max-width: 640px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: var(--text);
    font-family: inherit;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    margin: 0.35rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* 快捷标签 */
.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    justify-content: center;
    max-width: 640px;
}

.quick-tags span {
    padding: 0.4rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.quick-tags span:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--primary-light);
}

/* ============================================================
   顶部搜索栏
   ============================================================ */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 15, 17, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.top-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
}

.top-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.top-search-box {
    flex: 1;
    max-width: 480px;
    display: flex;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.top-search-box:focus-within {
    border-color: var(--primary);
}

.top-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: var(--text);
    font-family: inherit;
}

.top-search-box input::placeholder { color: var(--text-muted); }

.top-search-box button {
    padding: 0.5rem 0.8rem;
    margin: 0.2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.top-search-box button:hover { background: var(--primary-dark); }

/* ============================================================
   结果内容区
   ============================================================ */
.result-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* 状态卡片 */
.state-card {
    text-align: center;
    padding: 4rem 2rem;
}

.state-card h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.state-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 加载动画 */
.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* 任务进度 */
.task-icon, .notfound-icon { font-size: 3rem; margin-bottom: 1rem; }

.notfound-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.action-btn {
    padding: 0.55rem 1.2rem;
    font-size: 0.85rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.action-btn.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.action-btn.primary:hover {
    opacity: 0.85;
}

.vendor-cache-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: var(--text-muted, #888);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.task-progress {
    margin-top: 1.5rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.progress-bar {
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease;
    animation: progress-pulse 2s ease-in-out infinite;
}

@keyframes progress-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

#task-status-text {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ============================================================
   厂商信息头
   ============================================================ */
.vendor-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.vendor-refresh {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-muted, #888);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
}

.vendor-refresh:hover {
    color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

.vendor-refresh:active svg {
    transform: rotate(-180deg);
    transition: transform 0.3s;
}

.vendor-primary-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vendor-primary-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.vendor-info h1 {
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: capitalize;
}

.vendor-domain {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.vendor-domain a {
    color: var(--primary-light);
    text-decoration: none;
}

.vendor-domain a:hover { text-decoration: underline; }

.vendor-meta {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 0.25rem;
}

/* ============================================================
   Tab 导航
   ============================================================ */
.result-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.2rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -1px;
}

.tab-btn:hover {
    color: var(--text-secondary);
}

.tab-btn.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary);
}

.tab-btn svg {
    opacity: 0.6;
}

.tab-btn.active svg {
    opacity: 1;
    color: var(--primary-light);
}

.tab-badge {
    font-size: 0.72rem;
    background: var(--bg-input);
    padding: 1px 7px;
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.tab-btn.active .tab-badge {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ============================================================
   LLM 审查横幅
   ============================================================ */
.review-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.review-banner.review-correct {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.3);
}

.review-banner.review-partial {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

.review-banner.review-incorrect {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
}

.review-banner.review-unknown {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
}

.review-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1.4;
}

.review-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.review-text strong {
    font-size: 0.9rem;
}

.review-text span {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================================
   最终推荐配色
   ============================================================ */
.final-palette-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.final-color-chip {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
}

.final-color-chip:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.fcc-swatch {
    height: 56px;
    width: 100%;
}

.fcc-info {
    padding: 0.5rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.fcc-hex {
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    color: var(--text);
}

.fcc-name {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.fcc-role {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* ============================================================
   折叠详情
   ============================================================ */
.color-details-section {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.color-details-section summary {
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.color-details-section summary::-webkit-details-marker {
    display: none;
}

.clickable::after {
    content: " ▸";
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}

details[open] > .clickable::after {
    content: " ▾";
}

/* ============================================================
   Section (legacy compat)
   ============================================================ */
.section {
    margin-bottom: 2.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-title svg { color: var(--primary-light); }

/* ============================================================
   配色方案
   ============================================================ */
.color-palette {
    display: flex;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    height: 64px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.color-swatch {
    flex: 1;
    min-width: 40px;
    cursor: pointer;
    position: relative;
    transition: flex 0.3s ease;
}

.color-swatch:hover {
    flex: 2;
}

.color-swatch .swatch-label {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0,0,0,0.5);
    color: white;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
}

.color-swatch:hover .swatch-label { opacity: 1; }

.color-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.color-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    transition: border-color 0.2s;
}

.color-card:hover { border-color: var(--border-light); }

.color-preview {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}

.color-info { flex: 1; min-width: 0; }

.color-info .color-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.color-info .color-pct {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.color-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.color-tag {
    font-size: 0.72rem;
    padding: 2px 8px;
    background: var(--bg-input);
    border-radius: 4px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    user-select: all;
}

.color-tag:hover {
    background: var(--primary);
    color: white;
}

/* ============================================================
   图标网格
   ============================================================ */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.icon-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.icon-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.icon-card .icon-preview {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border-radius: 8px;
    overflow: hidden;
}

.icon-card .icon-preview.checkerboard {
    background-image:
        linear-gradient(45deg, #2a2a2e 25%, transparent 25%),
        linear-gradient(-45deg, #2a2a2e 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #2a2a2e 75%),
        linear-gradient(-45deg, transparent 75%, #2a2a2e 75%);
    background-size: 12px 12px;
    background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
}

.icon-card .icon-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.icon-card .icon-size {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.icon-card .icon-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.icon-card .icon-source {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    padding: 2px 8px;
    background: var(--bg-input);
    border-radius: 4px;
    display: inline-block;
}

.icon-card .icon-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.icon-card .icon-actions a {
    font-size: 0.75rem;
    color: var(--primary-light);
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.15s;
}

.icon-card .icon-actions a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============================================================
   嵌入面板
   ============================================================ */
.embed-panel {
    border-top: 1px solid var(--border);
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.15);
}

.embed-loading, .embed-empty {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0.5rem 0;
}

.embed-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    margin-top: 0.5rem;
}

.embed-row:first-child {
    margin-top: 0;
}

.embed-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.embed-copy {
    font-size: 0.65rem;
    padding: 2px 8px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}

.embed-copy:hover {
    opacity: 0.85;
}

.embed-code {
    display: block;
    font-size: 0.68rem;
    font-family: 'Courier New', monospace;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    word-break: break-all;
    line-height: 1.4;
    max-height: 3.2em;
    overflow: hidden;
}

/* ============================================================
   品牌官方配色（LLM 提供）
   ============================================================ */
.brand-colors-section {
    margin-bottom: 1.5rem;
}

.subsection-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    margin-top: 1.2rem;
}

.brand-color-strip {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.brand-color-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 72px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
    padding: 0.4rem 0.6rem;
}

.brand-color-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.chip-hex {
    font-size: 0.72rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.chip-name {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    margin-top: 0.15rem;
    text-align: center;
}

/* ============================================================
   首页任务卡片
   ============================================================ */
.task-cards-area {
    width: 100%;
    max-width: 640px;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.task-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    transition: border-color 0.2s;
    animation: task-card-in 0.3s ease;
}

@keyframes task-card-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.task-card-done { border-color: var(--success); border-left: 3px solid var(--success); }
.task-card-error { border-color: var(--error); border-left: 3px solid var(--error); }

.task-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.task-card-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.task-card-spinner {
    width: 22px;
    height: 22px;
    border: 2.5px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.task-card-done-icon {
    font-size: 1.3rem;
}

.task-card-info { flex: 1; min-width: 0; }

.task-card-vendor {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: capitalize;
}

.task-card-status {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-card-progress {
    margin-bottom: 0.5rem;
}

.task-card-progress .progress-bar {
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
    overflow: hidden;
}

.task-card-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    transition: width 0.4s ease;
}

.task-card-progress .progress-fill.done {
    background: linear-gradient(90deg, var(--success), #4ade80);
    animation: none;
}

.task-card-progress .progress-fill.error {
    background: linear-gradient(90deg, var(--error), #f87171);
    animation: none;
}

.task-card-log {
    max-height: 160px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.task-log-line {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.15rem 0;
    font-size: 0.72rem;
    color: var(--text-muted);
    animation: log-line-in 0.2s ease;
}

@keyframes log-line-in {
    from { opacity: 0; transform: translateX(-4px); }
    to { opacity: 1; transform: translateX(0); }
}

.log-icon {
    flex-shrink: 0;
    font-size: 0.7rem;
    line-height: 1.4;
}

.log-text {
    line-height: 1.4;
}

.task-card-actions {
    margin-top: 0.6rem;
    display: flex;
    justify-content: flex-end;
}

.task-card-actions button {
    padding: 0.35rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.task-card-actions button:hover {
    background: var(--primary-dark);
}

/* ============================================================
   Toast 通知
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text);
    box-shadow: var(--shadow);
    animation: toast-in 0.3s ease;
    max-width: 360px;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--error); }
.toast.info { border-left: 3px solid var(--primary); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 640px) {
    .logo-text { font-size: 2rem; }
    .search-box input { padding: 0.8rem 1rem; font-size: 0.9rem; }
    .search-box button span { display: none; }
    .vendor-header { flex-direction: column; text-align: center; }
    .color-details { grid-template-columns: 1fr; }
    .icon-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
