/* AI SEO Generator 管理界面样式 */ /* 主容器样式 */ .ai-seo-meta-box { background: #fff; border: 1px solid #e1e1e1; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); } /* 头部样式 */ .ai-seo-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 15px 20px; border-radius: 8px 8px 0 0; margin: -15px -15px 20px -15px; } .ai-seo-header h4 { color: white !important; font-size: 16px; font-weight: 600; } #generate-seo-btn { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); color: white; border-radius: 6px; padding: 8px 16px; font-weight: 500; transition: all 0.3s ease; } #generate-seo-btn:hover { background: rgba(255,255,255,0.3); border-color: rgba(255,255,255,0.5); transform: translateY(-1px); } #generate-seo-btn:disabled { opacity: 0.6; cursor: not-allowed; } /* 加载状态样式 */ .ai-seo-loading { background: linear-gradient(45deg, #f0f8ff, #e6f3ff); border: 2px dashed #4a90e2; border-radius: 8px; text-align: center; padding: 30px; margin-bottom: 20px; animation: pulse 2s infinite; } @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } } .ai-seo-loading .spinner { margin: 0 auto 10px; } .ai-seo-loading p { color: #4a90e2; font-weight: 500; margin: 0; } /* 字段样式 */ .ai-seo-field { background: #fafafa; border: 1px solid #e1e1e1; border-radius: 6px; padding: 15px; margin-bottom: 15px; transition: all 0.3s ease; } .ai-seo-field:hover { background: #f5f5f5; border-color: #d1d1d1; } .ai-seo-field label { color: #333; font-size: 14px; margin-bottom: 8px; } .ai-seo-field input, .ai-seo-field textarea { border: 2px solid #e1e1e1; border-radius: 4px; padding: 10px 12px; font-size: 14px; transition: border-color 0.3s ease; background: white; } .ai-seo-field input:focus, .ai-seo-field textarea:focus { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); outline: none; } /* 计数器样式 */ .ai-seo-counter { background: #e9ecef; padding: 4px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; } .ai-seo-counter.good { background: #d4edda; color: #155724; } .ai-seo-counter.warning { background: #f8d7da; color: #721c24; } /* 复制按钮样式 */ .copy-btn { background: transparent; border: none; color: #666; cursor: pointer; font-size: 12px; margin-left: 8px; padding: 2px 6px; border-radius: 3px; transition: all 0.2s ease; } .copy-btn:hover { background: #f0f0f0; color: #333; } /* 预览样式 */ .ai-seo-preview { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); border: none; border-radius: 8px; padding: 20px; margin: 20px 0; } .ai-seo-preview h4 { color: #2c3e50; margin-bottom: 15px; font-size: 15px; } .search-preview { background: white; border-radius: 6px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border-left: 4px solid #4285f4; } .preview-title { color: #1a0dab; font-size: 18px; line-height: 1.3; margin-bottom: 8px; font-weight: 500; cursor: pointer; transition: color 0.2s ease; } .preview-title:hover { color: #0d47a1; text-decoration: underline; } .preview-url { color: #006621; font-size: 14px; margin-bottom: 8px; font-family: 'Courier New', monospace; } .preview-description { color: #545454; font-size: 14px; line-height: 1.5; } /* SEO评分样式 */ .seo-score { background: white; border: 2px solid #e1e1e1; border-radius: 8px; padding: 20px; margin: 20px 0; } .seo-score h4 { margin-top: 0; color: #333; display: flex; align-items: center; gap: 10px; } .score-good { color: #28a745; font-weight: bold; } .score-ok { color: #ffc107; font-weight: bold; } .score-poor { color: #dc3545; font-weight: bold; } .seo-issues { list-style: none; padding: 0; margin: 15px 0 0 0; } .seo-issues li { background: #fff3cd; border: 1px solid #ffeaa7; border-radius: 4px; padding: 10px 15px; margin-bottom: 8px; color: #856404; font-size: 13px; } .seo-perfect { background: #d4edda; border: 1px solid #c3e6cb; border-radius: 4px; padding: 15px; color: #155724; margin: 15px 0 0 0; font-weight: 500; } /* 提示样式 */ .ai-seo-tips { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 8px; padding: 20px; margin-top: 20px; } .ai-seo-tips h4 { color: white !important; margin-top: 0; font-size: 15px; } .ai-seo-tips ul { margin: 15px 0 0 20px; } .ai-seo-tips li { margin-bottom: 8px; color: rgba(255,255,255,0.9); line-height: 1.5; } /* 通知样式 */ .notice { border-radius: 6px; margin: 15px 0; animation: slideIn 0.3s ease; } @keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } /* 响应式设计 */ @media (max-width: 768px) { .ai-seo-header { flex-direction: column; gap: 10px; text-align: center; } .ai-seo-field label { flex-direction: column; align-items: flex-start; gap: 5px; } .ai-seo-counter { align-self: flex-start; } } /* 设置页面样式 */ .ai-seo-info { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); border: none; border-radius: 8px; padding: 25px; margin-top: 30px; } .ai-seo-info h2, .ai-seo-info h3 { color: #2c3e50; border-bottom: 2px solid #3498db; padding-bottom: 8px; margin-bottom: 15px; } .ai-seo-info ul li, .ai-seo-info ol li { margin-bottom: 8px; line-height: 1.6; } .ai-seo-info ul li:before { content: "✓"; color: #27ae60; font-weight: bold; margin-right: 8px; } /* 动画效果 */ .ai-seo-field { animation: fadeInUp 0.5s ease; } @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* 深色模式支持 */ @media (prefers-color-scheme: dark) { .ai-seo-field { background: #2c3e50; border-color: #34495e; color: #ecf0f1; } .ai-seo-field input, .ai-seo-field textarea { background: #34495e; border-color: #4a5f7a; color: #ecf0f1; } .search-preview { background: #2c3e50; color: #ecf0f1; } }