/* 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: column;
    gap: 2px;
    justify-content: center;
}

.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;
}

.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;
}

/* 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;
    }
    
    .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;
}

/* 高风险审核按钮区域 */
.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);
}

.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;
}

.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;
}

.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);
}

.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;
} 