/* GPT-4O 图像提示词助手工具 - 简约高级样式 */

/* CSS变量定义 - 简约配色系统 */
:root {
    /* 主色调 - 简约灰蓝色系 */
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #f0f0ff;
    
    /* 中性色系 */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* 功能色 */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    /* 文字颜色 */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-400);
    --text-white: #ffffff;
    
    /* 背景颜色 */
    --bg-primary: #ffffff;
    --bg-secondary: var(--gray-50);
    --bg-tertiary: var(--gray-100);
    
    /* 边框和阴影 */
    --border-color: var(--gray-200);
    --border-focus: var(--primary-color);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* 间距系统 */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* 圆角 */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* 过渡动画 */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 60px; /* 为固定的版权信息预留空间 */
}

/* 应用头部 */
.app-header {
    background: var(--bg-primary);
    padding: var(--space-8) 0 var(--space-6);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
}

.header-right {
    display: flex;
    align-items: center;
}

.app-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.title-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    justify-content: flex-start;
}

.app-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-normal);
}

.app-logo:hover {
    transform: scale(1.05);
}

.app-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 28px;
    font-weight: 200;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    text-transform: none;
    font-style: normal;
    margin: 0;
    line-height: 1.2;
    transition: color 0.3s ease;
    text-align: left; /* 强制左对齐 */
}

/* 版本号徽章样式 */
.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 12px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease;
}

.version-badge:hover {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.8);
}

.version-badge svg {
    width: 10px;
    height: 10px;
    color: rgba(0, 0, 0, 0.4);
}

.version-text {
    font-family: 'Inter', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.app-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    margin: 0;
    line-height: 1.3;
    text-align: left; /* 强制左对齐 */
}

/* API密钥设置按钮样式 */
.api-key-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.api-key-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.api-key-btn svg {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.api-key-btn:hover svg {
    color: var(--primary-color);
}

/* API密钥设置模态框样式 */
.api-key-modal {
    max-width: 580px;
    width: 580px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6) var(--space-6) var(--space-4);
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-body {
    padding: var(--space-6);
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6) var(--space-6);
    background: var(--bg-primary);
    justify-content: flex-end;
}

/* 版本信息样式 */
.modal-version-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    margin-top: var(--space-4);
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

.version-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.version-label {
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version-value {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

/* 表单样式 */
.form-group {
    margin-bottom: var(--space-6);
}


.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all var(--transition-fast);
    padding-right: 40px; /* 为切换按钮留出空间 */
}

.form-input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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

.toggle-password {
    position: absolute;
    right: var(--space-2);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: var(--space-1);
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.toggle-password:hover {
    color: var(--text-primary);
    background: var(--gray-100);
}

.form-hint {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.form-hint svg {
    color: var(--success-color);
    flex-shrink: 0;
}

/* 状态指示器 */
.status-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-400);
    transition: background-color var(--transition-fast);
}

.status-dot.set {
    background: var(--success-color);
}

.status-dot.not-set {
    background: var(--warning-color);
}

.status-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* 按钮样式 */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--gray-50);
    color: var(--text-primary);
    border-color: var(--gray-300);
}

.btn .btn-text {
    transition: opacity var(--transition-fast);
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn .btn-loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn.loading .btn-loading {
    display: flex !important;
}

/* 主容器 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
}

/* 检测模式切换器 */
.detection-mode-selector {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 0.5rem 0;
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mode-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 通用检测按钮悬停 */
.mode-btn[data-mode="trademark"]:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    color: #2563eb;
}

/* 人脸检测按钮悬停 */
.mode-btn[data-mode="face"]:hover {
    border-color: #fb923c;
    background: rgba(251, 146, 60, 0.05);
    color: #f97316;
}

/* 通用检测按钮激活状态 */
.mode-btn[data-mode="trademark"].active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
    transform: scale(1.02);
}

.mode-btn[data-mode="trademark"].active:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: scale(1.02) translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* 人脸检测按钮激活状态 */
.mode-btn[data-mode="face"].active {
    background: #fb923c;
    border-color: #fb923c;
    color: white;
    box-shadow: 0 4px 16px rgba(251, 146, 60, 0.35);
    transform: scale(1.02);
}

.mode-btn[data-mode="face"].active:hover {
    background: #f97316;
    border-color: #f97316;
    transform: scale(1.02) translateY(-1px);
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.4);
}

.mode-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* 上传区域布局 */
.upload-section {
    margin-bottom: var(--space-8);
}

.upload-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}


.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-xl);
    padding: var(--space-12) var(--space-8);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg-secondary);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 移除蚂蚁线动画，使用静态虚线 */

/* 通用检测模式 - 简约蓝色虚线 */
.upload-zone.trademark-mode {
    border: 2px dashed #3b82f6;
    background: rgba(59, 130, 246, 0.02);
    position: relative;
}

/* 人脸检测模式 - 简约橙色虚线 */
.upload-zone.face-mode {
    border: 2px dashed #fb923c;
    background: rgba(251, 146, 60, 0.02);
    position: relative;
}

.upload-zone:hover {
    transform: translateY(-1px);
}

/* 通用检测模式hover - 简约效果 */
.upload-zone.trademark-mode:hover {
    border-color: #2563eb;
    background: rgba(59, 130, 246, 0.04);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* 人脸检测模式hover - 简约效果 */
.upload-zone.face-mode:hover {
    border-color: #f97316;
    background: rgba(251, 146, 60, 0.04);
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.1);
}

.upload-zone.drag-over {
    transform: scale(1.01);
}

/* 拖拽时的效果 */
.upload-zone.trademark-mode.drag-over {
    border-style: solid;
    border-width: 2px;
    background: rgba(59, 130, 246, 0.06);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15);
}

.upload-zone.face-mode.drag-over {
    border-style: solid;
    border-width: 2px;
    background: rgba(251, 146, 60, 0.06);
    box-shadow: 0 0 0 6px rgba(251, 146, 60, 0.15);
}

.upload-zone.paste-active {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.03);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.upload-icon {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.upload-zone:hover .upload-icon {
    color: var(--primary-color);
}

.upload-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.upload-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.upload-counter {
    margin-top: var(--space-2);
}

#imageCounter {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
}

/* 图片显示区域 */
.image-display {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.image-display img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-display .remove-image-btn {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.image-display .remove-image-btn:hover {
    background: var(--error-color);
    transform: scale(1.1);
}




.image-preview-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    transition: all var(--transition-normal);
    aspect-ratio: 1;
    box-shadow: var(--shadow-sm);
}

.image-preview-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* 图片预览 */
.image-preview {
    position: relative;
}

.preview-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-preview-item .preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    display: flex;
    gap: var(--space-1);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.preview-container:hover .image-overlay,
.image-preview-item:hover .image-overlay {
    opacity: 1;
}

.enlarge-btn,
.remove-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.enlarge-btn svg,
.remove-btn svg {
    width: 14px;
    height: 14px;
}

.enlarge-btn:hover {
    background: var(--primary-color);
}

.remove-btn:hover {
    background: var(--error-color);
}

/* 图片信息显示 */
.image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: var(--space-2) var(--space-2) var(--space-1);
    font-size: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.image-preview-item:hover .image-info {
    opacity: 1;
}

.image-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.image-size {
    font-size: 9px;
    opacity: 0.8;
    line-height: 1.2;
}

/* 人脸扫描动画 */
.scanning-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

/* 扫描线 */
.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(79, 70, 229, 0.8) 20%,
        rgba(79, 70, 229, 1) 50%,
        rgba(79, 70, 229, 0.8) 80%,
        transparent 100%);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.8);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% {
        top: 0;
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* 扫描框角 */
.scan-corners {
    position: absolute;
    width: 60%;
    height: 60%;
    max-width: 300px;
    max-height: 300px;
    pointer-events: none;
}

.corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary-color);
    animation: corner-pulse 1.5s ease-in-out infinite;
}

.corner.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.corner.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.corner.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.corner.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

@keyframes corner-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* 扫描信息 */
.scan-info {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
}

.scan-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: pulse 1.5s ease-in-out infinite;
}

.scan-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    animation: progress 20s linear forwards;
}

@keyframes progress {
    0% {
        width: 0;
    }
    90% {
        width: 90%;
    }
    100% {
        width: 100%;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* 添加更多图片区域 */
.add-more-item {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
}

.add-more-item:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-2px);
}

.add-more-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
}

.add-more-icon {
    color: var(--gray-400);
    transition: color var(--transition-fast);
    width: 20px;
    height: 20px;
}

.add-more-item:hover .add-more-icon {
    color: var(--primary-color);
}

.add-more-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.add-more-hint {
    font-size: 10px;
    color: var(--text-muted);
}


.submit-btn {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: var(--space-4) var(--space-10);
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-width: 180px;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.submit-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
}

/* 内联按钮样式 - 与标题同一行 */
.submit-btn-inline {
    align-self: auto;
    padding: var(--space-3) var(--space-6);
    font-size: 13px;
    min-width: 120px;
    height: 36px;
}

.submit-btn .btn-text {
    transition: opacity var(--transition-fast);
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .btn-loading {
    display: flex !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 加载动画 */
.loading-dots {
    display: flex;
    gap: 4px;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: loading-bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* 结果展示区域 - 重新设计对齐版本 */
.result-section {
    display: none;
}

.result-section.show {
    display: block !important;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 打印机容器 - Apple风格设计 */
.printer-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
}

/* 打印机顶部状态栏 */
.printer-top {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    padding: var(--space-4) var(--space-8);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 50px;
}

.printer-light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    animation: printer-blink 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

@keyframes printer-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.printer-status {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* 纸张内容区域 - 直接显示在打印机容器内 */

/* 纸张内容区域 */
.paper-content {
    padding: var(--space-8);
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
    max-height: 400px;
    overflow-y: auto;
    word-wrap: break-word;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    min-height: 200px;
    transform: translateY(20px);
    opacity: 0;
    animation: content-emerge 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 双语版本显示样式 */
.bilingual-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    height: 100%;
}

.prompt-version {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-color);
}

.version-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.version-content {
    white-space: pre-wrap;
    line-height: 1.7;
    color: var(--text-primary);
    flex: 1;
    overflow-y: auto;
}

/* 复制按钮样式优化 */
.copy-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.copy-btn.copied {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

@keyframes content-emerge {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    50% {
        transform: translateY(-2px);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-4);
    animation: modal-fade-in 0.3s ease-out;
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    animation: modal-scale-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--bg-primary);
    box-shadow: var(--shadow-xl);
}

@keyframes modal-scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-fast);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: var(--bg-primary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        padding: var(--space-4);
    }
    
    .header-content {
        padding: 0 var(--space-4);
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    .header-left {
        flex-direction: column;
        gap: var(--space-3);
        align-items: center;
    }
    
    .title-group {
        text-align: center;
    }
    
    .header-right {
        justify-content: center;
    }
    
    .api-key-btn {
        padding: var(--space-2) var(--space-4);
        font-size: 12px;
    }
    
    .api-key-btn .btn-text {
        display: none; /* 在移动端只显示图标 */
    }
    
    .input-section {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        padding: var(--space-6);
    }
    
    .image-upload-area {
        width: 100%;
        min-height: auto;
    }
    
    .upload-zone {
        min-height: 120px;
    }
    
    .images-preview-container {
        position: relative;
        display: flex;
        flex-direction: row;
        gap: var(--space-2);
        padding: var(--space-2);
        border: none;
        background: transparent;
        box-shadow: none;
    }
    
    .image-preview-item,
    .add-more-item {
        aspect-ratio: 16/9;
        flex: 1;
        min-width: 0;
    }
    
    .prompt-input {
        min-height: 120px;
        flex: none;
    }
    
    .submit-btn {
        align-self: stretch;
    }
    
    .app-title {
        font-size: 22px;
    }
    
    /* 移动端版本号徽章样式 */
    .version-badge {
        margin-left: 8px;
        padding: 1px 4px;
        font-size: 9px;
        border-radius: 4px;
    }
    
    .version-badge svg {
        width: 8px;
        height: 8px;
    }
    
    .version-text {
        font-size: 8px;
    }
    
    .app-subtitle {
        font-size: 12px;
    }
    
    .app-icon {
        margin-bottom: var(--space-2);
    }
    
    .modal-content {
        margin: var(--space-4);
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
    }
    
    .modal-close {
        top: var(--space-2);
        right: var(--space-2);
    }
    
    .paper-content {
        padding: var(--space-6);
    }
    
    /* 移动端双语版本垂直排列 */
    .bilingual-container {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .version-header {
        margin-bottom: var(--space-3);
        padding-bottom: var(--space-2);
    }
    
    /* API密钥模态框移动端适配 */
    .api-key-modal {
        width: calc(100vw - 2rem);
        max-width: 320px;
        margin: var(--space-4);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
    
    .modal-footer {
        flex-direction: column;
        gap: var(--space-2);
        justify-content: flex-end;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* 移动端版本信息样式 */
    .modal-version-info {
        padding: var(--space-3) var(--space-4);
        flex-direction: column;
        gap: var(--space-2);
        align-items: flex-start;
    }
    
    .version-item {
        width: 100%;
        justify-content: space-between;
    }
    
    .version-label {
        font-size: 10px;
        color: var(--gray-400);
    }
    
    .version-value {
        font-size: 11px;
        color: var(--gray-500);
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: var(--space-3);
    }
    
    .input-section {
        padding: var(--space-4);
    }
    
    .app-header {
        padding: var(--space-6) 0 var(--space-4);
    }
    
    .printer-container {
        margin: 0 -var(--space-3);
        border-radius: var(--radius-xl);
    }
}

/* 滚动条样式 */
.paper-content::-webkit-scrollbar {
    width: 6px;
}

.paper-content::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.paper-content::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.paper-content::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-xl);
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    animation: notificationFadeIn 0.3s ease-out;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 280px;
    max-width: 400px;
    text-align: center;
}

.notification-success {
    background: rgba(16, 185, 129, 0.9);
}

.notification-error {
    background: rgba(239, 68, 68, 0.9);
}

.notification-info {
    background: rgba(79, 70, 229, 0.9);
}

.notification-warning {
    background: rgba(245, 158, 11, 0.9);
}

.notification-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon svg {
    width: 16px;
    height: 16px;
}

.notification-text {
    flex: 1;
    line-height: 1.4;
}

@keyframes notificationFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 焦点可见性 */
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========== 商标检测专用样式 ========== */

/* 品牌标签样式 */
.brand-tag {
    display: inline-block;
    padding: 6px 14px;
    margin: 4px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
    animation: fadeInScale 0.3s ease;
    transition: all 0.3s ease;
}

.brand-tag:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 品牌检测网格 */
.brand-detection-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

.detected-brands {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
}

.brand-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.no-brands-detected {
    text-align: center;
    padding: 2rem;
    color: var(--success-color);
}

.no-brands-detected svg {
    color: var(--success-color);
    margin-bottom: 1rem;
}

/* 可疑元素列表 */
.suspicious-elements {
    background: #fff5f5;
    border: 2px solid #feb2b2;
    border-radius: 12px;
    padding: 1.5rem;
}

.suspicious-elements h5 {
    color: #c53030;
    margin-bottom: 1rem;
}

.element-list {
    list-style: none;
    padding: 0;
}

.element-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #742a2a;
}

.element-list li:before {
    content: "⚠";
    position: absolute;
    left: 0;
}

/* 风险评估网格 */
.risk-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.risk-item {
    display: grid;
    grid-template-columns: 140px 1fr 60px;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.risk-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.risk-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.risk-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.risk-fill {
    height: 100%;
    transition: width 1s ease;
    border-radius: 4px;
}

.risk-item.risk-critical .risk-fill {
    background: var(--error-color);
}

.risk-item.risk-high .risk-fill {
    background: var(--warning-color);
}

.risk-item.risk-medium .risk-fill {
    background: var(--primary-color);
}

.risk-item.risk-low .risk-fill {
    background: var(--success-color);
}

.risk-value {
    font-weight: 700;
    text-align: right;
}

/* 合规建议卡片 */
.recommendations-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.recommendation-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.rec-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.rec-content {
    flex: 1;
    line-height: 1.6;
}

/* 商标报告专用区域 */
.trademark-report {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 品牌检测状态样式 */
.infringement-type.brand-detected {
    background: var(--warning-color);
    color: white;
}

.infringement-type.no-brand {
    background: var(--success-color);
    color: white;
}

/* ========== 品牌库管理样式 ========== */

/* 浮动按钮 */
.floating-btn {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 999;
}

.floating-btn:hover {
    transform: scale(1.1);
    background: var(--primary-hover);
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.4);
}

/* 品牌库模态框 */
.brand-library-modal {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.library-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 添加品牌表单 */
.add-brand-section {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.add-brand-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.risk-slider {
    width: 100%;
    margin: 0.5rem 0;
}

/* 自定义品牌列表 */
.custom-brand-list {
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
}

.brand-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg-primary);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.brand-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.brand-info {
    flex: 1;
}

.brand-item-name {
    font-weight: 600;
    color: var(--text-primary);
}

.brand-item-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.brand-item-risk {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--warning-color);
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.delete-brand-btn {
    padding: 0.5rem;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-brand-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* 页面底部版权信息 */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: var(--space-4) var(--space-6);
    background: transparent;
    z-index: 10;
    pointer-events: none; /* 避免阻挡其他元素的交互 */
}

.copyright {
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 400;
    letter-spacing: 0.5px;
    margin: 0;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.copyright:hover {
    opacity: 0.8;
}

/* ===== 人脸侵权检测器新增样式 ===== */

/* 风险评分卡片 */
.risk-score-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    animation: slideUp 0.5s ease-out;
    transition: all 0.3s ease;
}

/* 儿童产品结果卡片样式 */
.risk-score-card.children-product {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(76, 175, 80, 0.1));
    border: 2px solid rgba(76, 175, 80, 0.3);
}

/* 非儿童产品结果卡片样式 */
.risk-score-card.regular-product {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.05), rgba(244, 67, 54, 0.1));
    border: 2px solid rgba(244, 67, 54, 0.3);
}

/* 新的简洁结果显示样式 */
.result-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: var(--space-8) 0;
    padding: var(--space-6);
}

.result-text {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    border: 2px solid;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-text.toy-result {
    color: #4CAF50;
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.result-text.non-toy-result {
    color: #F44336;
    border-color: #F44336;
    background: rgba(244, 67, 54, 0.1);
}

/* 新的左右布局样式 */
.form-layout {
    display: flex;
    gap: var(--space-8);
    margin-bottom: var(--space-6);
    align-items: flex-start; /* 顶部对齐，确保视觉平衡 */
}

.form-left {
    flex: 1;
    min-width: 400px;
}

.form-left .form-group {
    margin-bottom: 0; /* 移除底部边距，确保对齐 */
}

.form-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* 确保图片上传框高度与右侧内容匹配 */
.form-left .compact-upload-zone {
    min-height: 280px; /* 增加高度以匹配右侧3个表单字段 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.market-analysis-section {
    margin-top: var(--space-6);
}

.market-analysis-section .form-group {
    margin-bottom: var(--space-4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-layout {
        flex-direction: column;
        gap: var(--space-6);
    }
    
    .form-left {
        min-width: auto;
    }
}

/* 高风险审核按钮区域 */
.audit-action {
    margin-top: var(--space-6);
    padding: var(--space-6);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(239, 68, 68, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-lg);
    text-align: center;
    animation: slideUp 0.6s ease-out;
}

.audit-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    color: var(--error-color);
    font-size: 14px;
    font-weight: 600;
}

.audit-warning svg {
    color: var(--error-color);
    flex-shrink: 0;
}

.audit-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.audit-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.audit-btn:active {
    transform: translateY(0);
}

.audit-btn svg {
    flex-shrink: 0;
}

.score-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.score-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.score-header .header-badges {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    flex-wrap: wrap;
}

.infringement-type {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.infringement-type.celebrity {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    border-color: rgba(79, 70, 229, 0.3);
}

.infringement-type.minor {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border-color: rgba(245, 158, 11, 0.3);
}

.infringement-type.celebrity.minor {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border-color: rgba(239, 68, 68, 0.3);
}

.infringement-type.children {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border-color: rgba(76, 175, 80, 0.3);
}

.infringement-type.regular {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
    border-color: rgba(244, 67, 54, 0.3);
}

.risk-level {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.risk-level.low-risk {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.risk-level.medium-risk {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.risk-level.high-risk {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.risk-level.very-high-risk {
    background: rgba(153, 27, 27, 0.1);
    color: #991b1b;
}

.risk-level.children {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    font-weight: 700;
    font-size: 16px;
}

.risk-level.regular {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
    font-weight: 700;
    font-size: 16px;
}

.score-display {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-4);
}

.score-circle {
    position: relative;
    width: 150px;
    height: 150px;
}

.score-progress {
    transform: rotate(-90deg);
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
}

/* 分析图表容器 */
.analysis-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.chart-container {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-6);
    animation: slideUp 0.6s ease-out;
}

.chart-container h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.chart-container canvas {
    max-height: 250px;
}

/* 详细报告 */
.detailed-report {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    animation: slideUp 0.7s ease-out;
}

.detailed-report h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

.report-section {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--border-color);
}

.report-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}


.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-3);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.info-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.info-value.warning {
    color: var(--warning-color);
    font-weight: 700;
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--warning-color);
}

.analysis-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

.recommendations-list {
    list-style: none;
}

.recommendations-list li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-3);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.recommendations-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 600;
}

/* 动画效果 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.preview-image:hover {
    transform: scale(1.05);
}

.remove-image-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.9);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.remove-image-btn:hover {
    background: var(--error-color);
    transform: scale(1.1);
}

/* 通知样式优化 */
.notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .analysis-charts {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .score-header {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }
    
    .header-badges {
        justify-content: center;
        width: 100%;
        order: -1; /* 在移动端将标签放在标题上方 */
    }
    
    .upload-container {
        padding: var(--space-4);
    }
    
    .images-preview-grid {
        grid-template-columns: 1fr;
    }
    
    /* 移动端审核按钮样式 */
    .audit-action {
        padding: var(--space-4);
        margin-top: var(--space-4);
    }
    
    .audit-warning {
        font-size: 13px;
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }
    
    .audit-btn {
        width: 100%;
        padding: var(--space-3) var(--space-6);
        font-size: 14px;
        justify-content: center;
    }
    
    /* 移动端通知样式 */
    .notification {
        min-width: 240px;
        max-width: 320px;
        padding: var(--space-3) var(--space-4);
        font-size: 13px;
    }
    
    .notification-icon svg {
        width: 14px;
        height: 14px;
    }
}

/* ===== 快速Google搜索按钮样式 ===== */
.quick-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.quick-google-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-primary);
    border: 1px solid #4285F4;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    color: #4285F4;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quick-google-btn:hover {
    background: #4285F4;
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.quick-google-btn.image-search {
    border-color: #EA4335;
    color: #EA4335;
}

.quick-google-btn.image-search:hover {
    background: #EA4335;
    color: white;
}

.quick-google-btn.primary-search {
    background: #4285F4;
    color: white;
    font-weight: 600;
}

.quick-google-btn.primary-search:hover {
    background: #1a73e8;
    box-shadow: var(--shadow-md);
}

.quick-google-btn svg {
    flex-shrink: 0;
}

.info-value .quick-google-btn {
    margin-left: var(--space-2);
}

/* 分析区域搜索按钮 */
.analysis-search-btns {
    float: right;
    display: inline-flex;
    gap: var(--space-2);
}

.analysis-search-btns .quick-google-btn {
    font-size: 11px;
    padding: var(--space-1) var(--space-2);
}

/* 提取的关键词标签 */
.extracted-keywords {
    margin-top: var(--space-4);
    padding: var(--space-3);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.keywords-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: var(--space-2);
}

.keyword-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.keyword-tag:hover {
    border-color: #4285F4;
    color: #4285F4;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.keyword-tag svg {
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.keyword-tag:hover svg {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .quick-search-actions {
        flex-direction: column;
    }
    
    .quick-google-btn {
        width: 100%;
        justify-content: center;
    }
    
    .keyword-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .keyword-actions {
        width: 100%;
        margin-top: var(--space-2);
    }
    
    .keyword-actions .quick-google-btn {
        flex: 1;
    }
    
    .analysis-search-btns {
        float: none;
        display: flex;
        width: 100%;
        margin-top: var(--space-2);
    }
    
    .analysis-search-btns .quick-google-btn {
        flex: 1;
    }
}

/* 快速图片搜索横幅 */
.quick-image-search-banner {
    background: linear-gradient(135deg, #4285F4 0%, #1a73e8 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.primary-image-search-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    color: #4285F4;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.primary-image-search-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-xl);
    background: #f8f9fa;
}

.primary-image-search-btn svg {
    flex-shrink: 0;
}

.search-tip {
    margin-top: var(--space-3);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* AI搜索建议样式 */
.ai-suggestions {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-top: var(--space-3);
}

.suggestion-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    padding: var(--space-2);
    background: var(--bg-primary);
    border-left: 3px solid #4285F4;
    border-radius: var(--radius-sm);
}

.search-keywords-display {
    margin-top: var(--space-2);
}

.keyword-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-2);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.keyword-item:hover {
    border-color: #4285F4;
    box-shadow: var(--shadow-sm);
}

.keyword-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #4285F4;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.keyword-text {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
    line-height: 1.4;
}

.keyword-actions {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}

.keyword-actions .quick-google-btn {
    padding: var(--space-1) var(--space-2);
    font-size: 11px;
}

/* 产品信息表单样式 */
.product-info-section {
    margin-bottom: var(--space-6);
}

.form-container {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.form-title::before {
    content: "📝";
    font-size: 1.2em;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* 移除标题后的蓝色小圆点
.form-label::after {
    content: "";
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
}
*/

.form-input {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgb(79 70 229 / 0.1);
    background: var(--bg-primary);
}

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

.form-input[required] + .form-label::after {
    content: "*";
    color: var(--error-color);
    font-weight: bold;
    margin-left: var(--space-1);
}

/* 响应式设计调整 */
@media (max-width: 768px) {
    .form-container {
        padding: var(--space-4);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .form-group.full-width {
        grid-column: 1;
    }
}

/* 上传区域标题样式调整 */
.upload-section .form-title {
    margin-bottom: var(--space-4);
}

.upload-section .form-title::before {
    content: "📸";
}

/* 审核结果相关样式调整 */
.risk-score-card h3 {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detailed-report h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--space-2);
}

/* 修复审核结果显示的布局问题 */
.report-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.report-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-2);
    min-width: 120px; /* 确保标题有足够宽度，避免文字竖直排列 */
    white-space: nowrap; /* 防止标题换行 */
    flex-shrink: 0; /* 防止标题被压缩 */
}

/* 审核结果判定框样式 */
.decision-box {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    border: 2px solid;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: var(--space-2);
}

.decision-box.children-product {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    color: #2E7D32;
}

.decision-box.regular-product {
    border-color: #F44336;
    background: rgba(244, 67, 54, 0.1);
    color: #C62828;
}

.decision-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.decision-text {
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

/* 紧凑型图片上传框样式 */
.image-upload-group {
    min-height: auto;
}

.compact-upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    text-align: center;
    background: var(--bg-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compact-upload-zone:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.compact-upload-zone.dragover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: scale(1.02);
}

.compact-upload-zone .upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.compact-upload-zone .upload-icon {
    color: var(--text-muted);
    margin-bottom: var(--space-1);
}

.compact-upload-zone .upload-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.compact-upload-zone .upload-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.compact-upload-zone .image-display {
    position: relative;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(200, 200, 200, 0.5); /* 保持浅色虚线边框 */
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.02); /* 很浅的背景色 */
}

.compact-upload-zone .image-display img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* 保持图片完整显示，不被裁剪 */
    border-radius: var(--radius-md);
}

.compact-upload-zone .remove-image-btn {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 2;
}

.compact-upload-zone .remove-image-btn:hover {
    background: var(--error-color);
    transform: scale(1.1);
}

/* 粘贴状态样式 */
.compact-upload-zone.paste-processing {
    border-color: var(--primary-color);
    background: var(--primary-light);
    animation: paste-pulse 1s ease-in-out infinite;
}

.compact-upload-zone.paste-success {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
    animation: paste-success 0.5s ease-out;
}

.compact-upload-zone.paste-error {
    border-color: var(--error-color);
    background: rgba(239, 68, 68, 0.1);
    animation: paste-error 0.5s ease-out;
}

/* 粘贴指示器样式 */
.paste-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.95);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 10;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.paste-indicator.processing svg {
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

/* 粘贴动画 */
@keyframes paste-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

@keyframes paste-success {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes paste-error {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

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

/* 让上传区域可以获得焦点时的样式 */
.compact-upload-zone:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.compact-upload-zone .scanning-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.compact-upload-zone .scan-text {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-2);
}

.compact-upload-zone .scan-progress {
    width: 80%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.compact-upload-zone .progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    animation: progress 2s infinite;
}

/* 表单提交按钮样式 */
.form-actions {
    margin-top: var(--space-6);
    text-align: center;
}

.analyze-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    min-width: 160px;
    justify-content: center;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.analyze-btn:active {
    transform: translateY(0);
}

.analyze-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.analyze-btn .btn-loading {
    display: none;
}

.analyze-btn.loading .btn-text {
    display: none;
}

.analyze-btn.loading .btn-loading {
    display: flex;
}

.analyze-btn .loading-dots {
    display: flex;
    gap: var(--space-1);
}

.analyze-btn .loading-dots span {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.analyze-btn .loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.analyze-btn .loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

@keyframes progress {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}


/* 响应式调整 */
@media (max-width: 768px) {
    .form-container {
        padding: var(--space-4);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .form-group.full-width {
        grid-column: 1;
    }
    
    .analyze-btn {
        width: 100%;
        padding: var(--space-4) var(--space-6);
    }
}

@media (max-width: 480px) {
    .compact-upload-zone {
        height: 140px;
        padding: var(--space-3);
    }

    .compact-upload-zone .upload-text {
        font-size: 0.8rem;
    }

    .compact-upload-zone .upload-hint {
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   图片对比界面专用样式
   ========================================================================== */

/* 图片对比主容器 */
.image-comparison-section {
    margin-bottom: 2rem;
}

.comparison-container {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

/* 三列布局：左图片 + 中间控制 + 右图片 */
.comparison-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: start;
}

/* 左右两侧图片上传区域 */
.comparison-left,
.comparison-right {
    display: flex;
    flex-direction: column;
}

/* 中间VS分隔符和对比按钮区域 */
.comparison-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    min-height: 200px;
    padding: 1rem 0;
}

/* VS对比按钮样式 */
.vs-compare-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15), 0 2px 6px rgba(99, 102, 241, 0.1);
}

.vs-compare-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #10b981, #059669);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3), 0 4px 12px rgba(16, 185, 129, 0.2);
}

.vs-compare-btn:active:not(:disabled) {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
}

.vs-compare-btn:disabled {
    background: linear-gradient(135deg, var(--gray-300), var(--gray-400));
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.vs-btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 2;
    transition: all 0.3s ease;
}

.vs-text {
    font-weight: 800;
    font-size: 1.4rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    margin-bottom: -2px;
}

.vs-subtitle {
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vs-compare-btn:hover:not(:disabled) .vs-subtitle {
    opacity: 1;
}

/* 波纹效果 */
.vs-ripple-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    pointer-events: none;
}

.vs-compare-btn:active:not(:disabled) .vs-ripple-effect {
    width: 100px;
    height: 100px;
    transition: all 0s;
}

/* 悬浮时的脉冲效果 */
.vs-compare-btn:not(:disabled)::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(5, 150, 105, 0.4));
    opacity: 0;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.vs-compare-btn:hover:not(:disabled)::before {
    opacity: 1;
    animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

/* 加载状态 */
.vs-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    z-index: 3;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2px;
}

.loading-text {
    color: white;
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 对比处理动画 */
.comparison-processing {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    z-index: 10;
}

.processing-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
}

.processing-content {
    text-align: center;
    max-width: 400px;
}

.processing-animation {
    margin-bottom: 1.5rem;
}

.comparison-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.icon-wrapper {
    padding: 1rem;
    background: var(--primary-light);
    border-radius: 12px;
    color: var(--primary-color);
    animation: float 2s ease-in-out infinite;
}

.icon-wrapper.left {
    animation-delay: 0s;
}

.icon-wrapper.right {
    animation-delay: 1s;
}

.comparison-arrow {
    color: var(--primary-color);
    animation: bounce-horizontal 1.5s ease-in-out infinite;
}

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

@keyframes bounce-horizontal {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

.processing-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.processing-progress {
    width: 100%;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}

.processing-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    border-radius: 2px;
    animation: progress-fill 3s ease-in-out infinite;
}

@keyframes progress-fill {
    0% {
        width: 0%;
        transform: translateX(0);
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .comparison-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .comparison-center {
        order: -1;
        flex-direction: row;
        justify-content: center;
        min-height: auto;
        padding: 1rem;
    }

    .vs-compare-btn {
        width: 70px;
        height: 70px;
    }

    .vs-text {
        font-size: 1.2rem;
    }

    .vs-subtitle {
        font-size: 0.6rem;
    }
}

@media (max-width: 768px) {
    .comparison-container {
        padding: 1.5rem;
    }

    .comparison-layout {
        gap: 1rem;
    }

    .comparison-center {
        gap: 1rem;
    }

    .vs-compare-btn {
        width: 65px;
        height: 65px;
    }

    .vs-text {
        font-size: 1.1rem;
    }

    .vs-subtitle {
        font-size: 0.55rem;
    }
}

@media (max-width: 480px) {
    .comparison-container {
        padding: 1rem;
    }

    .vs-compare-btn {
        width: 55px;
        height: 55px;
    }

    .vs-text {
        font-size: 1rem;
    }

    .vs-subtitle {
        font-size: 0.5rem;
    }
}

/* ==========================================================================
   报告展示和通知样式
   ========================================================================== */

/* 报告内容样式 */
.report-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.report-section h4 {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.report-section p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 差异列表 */
.differences-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.difference-item {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.diff-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.diff-category {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.diff-severity {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.diff-severity.low {
    background: #d1fae5;
    color: #065f46;
}

.diff-severity.medium {
    background: #fef3c7;
    color: #92400e;
}

.diff-severity.high {
    background: #fee2e2;
    color: #991b1b;
}

.diff-severity.critical {
    background: #fecaca;
    color: #7f1d1d;
}

.diff-description {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.diff-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 发现和建议列表 */
.findings-list,
.recommendations-list {
    margin: 0;
    padding-left: 1.5rem;
}

.findings-list li,
.recommendations-list li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 通知系统 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary-color);
    min-width: 300px;
    max-width: 400px;
    z-index: 1000;
    transform: translateX(calc(100% + 20px));
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.notification-success {
    border-left-color: var(--success-color);
}

.notification.notification-error {
    border-left-color: var(--error-color);
}

.notification.notification-warning {
    border-left-color: var(--warning-color);
}

.notification.notification-info {
    border-left-color: var(--primary-color);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.notification-message {
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: var(--text-primary);
}

/* 拖拽状态样式 */
.drag-over {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.drag-over .upload-text {
    color: var(--primary-color);
}

/* VS按钮就绪状态 - 保持蓝色，悬浮时才变绿 */
.vs-compare-btn.ready {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    animation: ready-pulse 2s infinite ease-in-out;
}

.vs-compare-btn.ready:hover:not(:disabled) {
    background: linear-gradient(135deg, #10b981, #047857);
}

@keyframes ready-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15), 0 2px 6px rgba(99, 102, 241, 0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25), 0 3px 10px rgba(99, 102, 241, 0.15);
    }
}

/* 上传成功提示样式 */
.upload-success-tip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    color: #10b981;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: success-fade-in 0.2s ease-out;
    z-index: 5;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.success-text {
    white-space: nowrap;
}

/* 成功提示动画 */
@keyframes success-fade-in {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 淡出动画 */
@keyframes success-fade-out {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

.upload-success-tip.fade-out {
    animation: success-fade-out 0.3s ease-out forwards;
}

/* 确保上传区域有相对定位 */
.compact-upload-zone {
    position: relative;
}

/* 响应式通知 */
@media (max-width: 768px) {
    .upload-success-tip {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .success-icon {
        width: 18px;
        height: 18px;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }

    .notification.show {
        transform: translateY(0);
    }
}

/* 图片预览增强 */
.image-display img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.image-display img:hover {
    transform: scale(1.02);
}

/* ==========================================================================
   侵权风险分析报告专用样式
   ========================================================================== */

/* 设计风格分析 */
.style-analysis {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.analysis-item {
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    line-height: 1.6;
}

.analysis-item strong {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* 结论框 */
.conclusion-box {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.conclusion-box p {
    margin: 0;
    color: #991b1b;
    font-size: 1.1rem;
    font-weight: 600;
}

/* 风险等级颜色优化 */
.infringement-type.low,
.risk-level.low {
    background: #d1fae5;
    color: #065f46;
}

.infringement-type.medium,
.risk-level.medium {
    background: #fef3c7;
    color: #92400e;
}

.infringement-type.high,
.risk-level.high {
    background: #fed7aa;
    color: #c2410c;
}

.infringement-type.critical,
.risk-level.critical {
    background: #fee2e2;
    color: #991b1b;
}

/* 响应式设计增强 */
@media (max-width: 768px) {
    .style-analysis {
        gap: 0.5rem;
    }

    .analysis-item {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .conclusion-box {
        padding: 0.75rem;
    }

    .conclusion-box p {
        font-size: 1rem;
    }
} 
/* ============================================
   产品标题输入框样式
   ============================================ */

.product-title-input {
    margin-top: var(--space-3);
}

.product-title-input .title-input {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-title-input .title-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.product-title-input .title-input::placeholder {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.product-title-input .title-hint {
    margin-top: var(--space-1);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .product-title-input .title-input {
        font-size: 0.8rem;
        padding: var(--space-2);
    }
    
    .product-title-input .title-hint {
        font-size: 0.7rem;
    }
}

