/* AI工具箱页面样式 */
.ai-toolbox-main {
    display: flex;
    min-height: 600px;
    background: #fff;
}

/* 左侧边栏样式 */
.ai-toolbox-sidebar {
    width: 280px;
    background: #f7f8fa;
    border-right: 1px solid #e5e6eb;
    padding: 0;
    overflow-y: auto;
}

.sidebar-header {
    padding: 24px 20px 20px 20px;
    border-bottom: 1px solid #e5e6eb;
    background: #fff;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: #1677ff;
    margin: 0 0 4px 0;
}

.sidebar-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 工具分类样式 */
.tool-categories {
    padding: 16px 0;
}

.tool-category {
    margin-bottom: 8px;
}

.category-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.category-header:hover {
    background: #f8f9fa;
}

.category-header.active {
    background: #f8f9fa;
    border-left: 4px solid #e5e6eb;
}

.category-icon {
    font-size: 18px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.category-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.category-arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.2s;
    transform: rotate(180deg); /* 默认指向下方，表示展开状态 */
}

.category-header:not(.active) .category-arrow {
    transform: rotate(0deg); /* 未激活时指向右侧，表示折叠状态 */
}

/* 工具项目样式 */
.category-items {
    display: block;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.category-items.hidden {
    display: none;
}

.tool-item {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 56px;
    cursor: pointer;
    transition: background 0.2s;
    border-left: 3px solid transparent;
}

.tool-item:hover {
    background: #f8f9fa;
}

.tool-item.active {
    background: #eaf3ff;
    border-left: 3px solid #1677ff;
    color: #1677ff;
}

.tool-icon {
    font-size: 16px;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.tool-name {
    font-size: 14px;
    color: #555;
}

.tool-item.active .tool-name {
    color: #1677ff;
    font-weight: 500;
}

/* 右侧内容区域样式 */
.ai-toolbox-content {
    flex: 1;
    padding: 32px 40px;
    overflow-y: auto;
    background: #fff;
}

.content-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e6eb;
}

.content-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.content-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.content-body {
    min-height: 400px;
}

.tool-content {
    background: #f7f8fa;
    border-radius: 12px;
    padding: 32px;
    min-height: 400px;
}

/* 欢迎页面样式 */
.welcome-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.welcome-card {
    text-align: center;
    background: #fff;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    width: 100%;
}

.welcome-icon {
    font-size: 64px;
    margin-bottom: 24px;
    display: block;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: #1677ff;
    margin: 0 0 16px 0;
}

.welcome-desc {
    font-size: 16px;
    color: #666;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.welcome-features {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    font-size: 24px;
}

.feature-item span:last-child {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ai-toolbox-main {
        flex-direction: column;
        height: auto;
    }
    
    .ai-toolbox-sidebar {
        width: 100%;
        height: auto;
        max-height: 300px;
    }
    
    .ai-toolbox-content {
        padding: 20px;
    }
    
    .welcome-features {
        flex-direction: column;
        gap: 16px;
    }
}

/* 工具内容区域通用样式 */
.tool-panel {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tool-panel h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

.tool-panel p {
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

/* 加载状态样式 */
.tool-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1677ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #666;
    font-size: 14px;
}

/* 工具表单样式 */
.tool-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.tool-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 10px;
}

.tool-btn.primary {
    background: #007bff;
    color: white;
}

.tool-btn.primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.tool-result {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #007bff;
}

.tool-result h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
}

/* 欢迎页面样式 */
.welcome-stats {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-size: 14px;
}

.welcome-tips {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.welcome-tips h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.welcome-tips ul {
    margin: 0;
    padding-left: 20px;
}

.welcome-tips li {
    margin-bottom: 8px;
    color: #495057;
    line-height: 1.5;
}

/* 结果样式 */
.result-section {
    margin-bottom: 20px;
}

.result-section h5 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.result-content {
    background: white;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #e9ecef;
    line-height: 1.6;
    color: #495057;
    white-space: pre-wrap;
}

.loading-container {
    text-align: center;
    padding: 40px 20px;
}

.loading-container .loading-spinner {
    margin-bottom: 15px;
}

.loading-container .loading-text {
    font-size: 16px;
    color: #6c757d;
}

/* 错误消息样式 */
.error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff4757;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==================== 智能内容分析功能样式 ==================== */

/* 下拉框样式 */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

select:focus {
    outline: none;
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

/* 报告卡片样式 */
.ai-toolbox-main .report-card {
    background: white;
    border-radius: 16px;
    box-shadow: none;
    transition: all 0.3s ease;
}

.ai-toolbox-main .report-card:hover {
    transform: none;
    box-shadow: none;
}

/* 指标项样式 */
.ai-toolbox-main .metric-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.ai-toolbox-main .metric-item:hover {
    transform: none;
    box-shadow: none;
}

/* 报告内所有卡片的统一悬浮效果 */
.ai-toolbox-main .report-card .bg-blue-50,
.ai-toolbox-main .report-card .bg-gray-50,
.ai-toolbox-main .report-card .bg-purple-50,
.ai-toolbox-main .report-card .bg-green-50,
.ai-toolbox-main .report-card .bg-red-50,
.ai-toolbox-main .report-card .bg-yellow-50,
.ai-toolbox-main .report-card .bg-orange-50,
.ai-toolbox-main .report-card .bg-indigo-50 {
    transition: all 0.3s ease;
    border-left: none !important;
}

.ai-toolbox-main .report-card .bg-blue-50:hover,
.ai-toolbox-main .report-card .bg-gray-50:hover,
.ai-toolbox-main .report-card .bg-purple-50:hover,
.ai-toolbox-main .report-card .bg-green-50:hover,
.ai-toolbox-main .report-card .bg-red-50:hover,
.ai-toolbox-main .report-card .bg-yellow-50:hover,
.ai-toolbox-main .report-card .bg-orange-50:hover,
.ai-toolbox-main .report-card .bg-indigo-50:hover {
    transform: none;
    box-shadow: none;
}

/* 产品卖点卡片特殊样式 */
.ai-toolbox-main .report-card .bg-blue-50 {
    border-left: none !important;
}

/* 合作达人推荐卡片特殊样式 */
.ai-toolbox-main .report-card .bg-purple-50 {
    border-left: none !important;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin: 2px;
}

.tag-positive { 
    background: #dcfce7; 
    color: #166534; 
}

.tag-negative { 
    background: #fee2e2; 
    color: #991b1b; 
}

.tag-neutral { 
    background: #f3f4f6; 
    color: #374151; 
}

.tag-region { 
    background: #dbeafe; 
    color: #1e40af; 
}

/* 加载动画样式 */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .report-card {
        padding: 16px;
    }
    
    .metric-item {
        padding: 12px;
    }
    
    select {
        font-size: 14px;
        padding: 10px 12px;
    }
} 