/* 商圈调研分析模块样式文件 */
/* 使用 market- 前缀避免与品牌定位分析模块样式冲突 */

/* ===== 双模块布局样式 ===== */
.dual-module-layout {
    display: flex;
    gap: 30px;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

.module-container {
    flex: 1;
    min-width: 0; /* 防止flex子项溢出 */
    position: relative; /* 为加载遮罩层提供定位基准 */
}

.brand-analysis-module {
    border-right: 2px solid #e0e0e0;
    padding-right: 30px;
}

.market-analysis-module {
    padding-left: 30px;
}

/* 模块头部样式 */
.module-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.module-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 300;
}

.module-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* ===== 商圈调研模块专用样式 ===== */

/* 容器样式 */
.market-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* ===== 图表相关样式 ===== */

/* 商圈概况卡片 - 主题化现代设计 */
.market-overview-section {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, var(--theme-light, #EFF6FF), var(--theme-bg, #F8FAFC));
    border-radius: 16px;
    border: 1px solid var(--theme-accent, #60A5FA);
    border-left: 4px solid var(--theme-primary, #1E3A8A);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.market-overview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-primary, #1E3A8A), var(--theme-secondary, #3B82F6));
    pointer-events: none;
}

.market-overview-section .market-section-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--theme-primary, #1E3A8A);
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.market-overview-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.market-overview-card {
    background: white;
    padding: 20px 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--theme-accent, #60A5FA);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.market-overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--theme-secondary, #3B82F6), var(--theme-accent, #60A5FA));
}

.market-overview-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--theme-primary, #1E3A8A);
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

.market-score {
    font-size: 2rem;
    font-weight: 700;
    margin: 12px 0 8px 0;
    color: var(--theme-secondary, #3B82F6);
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.market-overview-card p {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    padding: 0 4px;
}

/* 图表区域 */
.market-charts-section {
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.market-charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.market-chart-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #E8F5E9;
}

.market-chart-item h3 {
    color: #2E7D32;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 8px;
}

.market-chart-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #E8F5E9;
}

.market-chart-header {
    margin-bottom: 15px;
    text-align: center;
}

.market-chart-title {
    color: #2E7D32;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.market-chart-body {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.market-chart-body canvas {
    max-width: 100%;
    max-height: 100%;
}

/* 图表网格布局 */
.market-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* 隐藏图表数据元素 */
.chart-data {
    display: none;
}

/* 评分显示 */
.market-score-display {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    font-weight: bold;
    color: #2E7D32;
    margin-top: 15px;
    text-align: center;
    font-size: 1.1rem;
}

/* 分析内容样式 */
.market-analysis-content h3 {
    color: #2E7D32;
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #E8F5E9;
}

.market-analysis-content ul {
    margin-bottom: 15px;
}

.market-analysis-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.market-analysis-content strong {
    color: #2E7D32;
    font-weight: 600;
}

/* 响应式设计 - 商圈概况卡片 */
@media (max-width: 1200px) {
    .market-overview-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .market-overview-section {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .market-overview-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .market-overview-section {
        padding: 16px;
        margin-bottom: 20px;
    }

    .market-overview-section .market-section-title {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }

    .market-overview-card {
        padding: 16px 12px;
    }

    .market-score {
        font-size: 1.8rem;
    }

    .market-charts-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .market-chart-item {
        padding: 15px;
    }

    .market-chart-body {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .market-overview-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .market-overview-section {
        padding: 12px;
    }

    .market-overview-section .market-section-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .market-overview-card {
        padding: 12px 8px;
    }

    .market-score {
        font-size: 1.6rem;
    }

    .market-overview-card h3 {
        font-size: 0.9rem;
    }

    .market-overview-card p {
        font-size: 0.8rem;
    }

    .market-chart-body {
        height: 200px;
    }
}

/* 区域样式 */
.market-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 20px;
}

.market-section-title {
    color: #2E7D32;
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

/* ===== 专业文字板块样式 ===== */

/* 竞争对手菜品和定价策略分析板块 */
.market-analysis-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid var(--theme-accent, #60A5FA) !important;
    border-left: 4px solid var(--theme-primary, #1E3A8A) !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    margin: 2rem 0 !important;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.06) !important;
    position: relative !important;
    overflow: hidden !important;
}

.market-analysis-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-primary, #1E3A8A), var(--theme-secondary, #3B82F6));
    pointer-events: none;
}

.market-analysis-section .market-section-title {
    color: var(--theme-primary, #1E3A8A) !important;
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 2px solid var(--theme-accent, #60A5FA) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    position: relative !important;
    z-index: 1 !important;
}

.market-analysis-section .market-section-title::before {
    content: '';
    display: none;
}

.market-analysis-content {
    position: relative;
    z-index: 1;
}

.market-analysis-content h3 {
    color: var(--theme-secondary, #3B82F6) !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin: 1.5rem 0 1rem 0 !important;
    padding: 0.75rem 1rem !important;
    background: linear-gradient(135deg, var(--theme-light, #EFF6FF), rgba(59, 130, 246, 0.05)) !important;
    border-radius: 8px !important;
    border-left: 3px solid var(--theme-secondary, #3B82F6) !important;
    position: relative !important;
}

.market-analysis-content h3::before {
    content: '▶';
    color: var(--theme-secondary, #3B82F6);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.market-analysis-content ul {
    margin: 1rem 0 1.5rem 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.market-analysis-content li {
    margin-bottom: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(59, 130, 246, 0.1) !important;
    position: relative !important;
    padding-left: 2.5rem !important;
}

.market-analysis-content li::before {
    content: '•';
    color: var(--theme-primary, #1E3A8A);
    font-weight: bold;
    position: absolute;
    left: 1rem;
    top: 0.75rem;
    font-size: 1.2rem;
}

.market-analysis-content strong {
    color: var(--theme-primary, #1E3A8A) !important;
    font-weight: 600 !important;
}

/* 市场定位分析板块 */
.market-positioning-section {
    background: linear-gradient(135deg, #ffffff 0%, #fefbff 100%) !important;
    border: 1px solid #a855f7 !important;
    border-left: 4px solid #7c3aed !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    margin: 2rem 0 !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.06) !important;
    position: relative !important;
    overflow: hidden !important;
}

.market-positioning-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    pointer-events: none;
}

.market-positioning-section .market-section-title {
    color: #7c3aed !important;
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 2px solid #a855f7 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    position: relative !important;
    z-index: 1 !important;
}

.market-positioning-section .market-section-title::before {
    content: '';
    display: none;
}

.market-positioning-section .market-analysis-content h3 {
    color: #a855f7 !important;
    background: linear-gradient(135deg, #faf5ff, rgba(168, 85, 247, 0.05)) !important;
    border-left: 3px solid #a855f7 !important;
}

.market-positioning-section .market-analysis-content h3::before {
    color: #a855f7;
}

.market-positioning-section .market-analysis-content li::before {
    color: #7c3aed;
}

.market-positioning-section .market-analysis-content strong {
    color: #7c3aed !important;
}

/* 优化建议板块 */
.market-optimization-section {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%) !important;
    border: 1px solid #22c55e !important;
    border-left: 4px solid #16a34a !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    margin: 2rem 0 !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.06) !important;
    position: relative !important;
    overflow: hidden !important;
}

.market-optimization-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    pointer-events: none;
}

.market-optimization-section .market-section-title {
    color: #16a34a !important;
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 2px solid #22c55e !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    position: relative !important;
    z-index: 1 !important;
}

.market-optimization-section .market-section-title::before {
    content: '';
    display: none;
}

.market-optimization-section .market-analysis-content h3 {
    color: #22c55e !important;
    background: linear-gradient(135deg, #f0fdf4, rgba(34, 197, 94, 0.05)) !important;
    border-left: 3px solid #22c55e !important;
}

.market-optimization-section .market-analysis-content h3::before {
    color: #22c55e;
}

.market-optimization-section .market-analysis-content li::before {
    color: #16a34a;
}

.market-optimization-section .market-analysis-content strong {
    color: #16a34a !important;
}

/* 综合建议和行动计划板块 */
.market-comprehensive-section {
    background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%) !important;
    border: 1px solid #f59e0b !important;
    border-left: 4px solid #d97706 !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    margin: 2rem 0 !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.06) !important;
    position: relative !important;
    overflow: hidden !important;
}

.market-comprehensive-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d97706, #f59e0b);
    pointer-events: none;
}

.market-comprehensive-section .market-section-title {
    color: #d97706 !important;
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 2px solid #f59e0b !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    position: relative !important;
    z-index: 1 !important;
}

.market-comprehensive-section .market-section-title::before {
    content: '';
    display: none;
}

.market-comprehensive-section .market-analysis-content h3 {
    color: #f59e0b !important;
    background: linear-gradient(135deg, #fef3c7, rgba(245, 158, 11, 0.05)) !important;
    border-left: 3px solid #f59e0b !important;
}

.market-comprehensive-section .market-analysis-content h3::before {
    color: #f59e0b;
}

.market-comprehensive-section .market-analysis-content li::before {
    color: #d97706;
}

.market-comprehensive-section .market-analysis-content strong {
    color: #d97706 !important;
}

/* ===== 专业文字板块响应式设计 ===== */

@media (max-width: 768px) {
    .market-analysis-section,
    .market-positioning-section,
    .market-optimization-section,
    .market-comprehensive-section {
        padding: 1.5rem !important;
        margin: 1.5rem 0 !important;
        border-radius: 12px !important;
    }

    .market-analysis-section .market-section-title,
    .market-positioning-section .market-section-title,
    .market-optimization-section .market-section-title,
    .market-comprehensive-section .market-section-title {
        font-size: 1.4rem !important;
        margin-bottom: 1.25rem !important;
        padding-bottom: 0.75rem !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        text-align: center !important;
    }

    .market-analysis-content h3 {
        font-size: 1.1rem !important;
        padding: 0.6rem 0.8rem !important;
        margin: 1.25rem 0 0.75rem 0 !important;
    }

    .market-analysis-content li {
        padding: 0.6rem 0.8rem !important;
        padding-left: 2rem !important;
        margin-bottom: 0.6rem !important;
        font-size: 0.9rem !important;
    }

    .market-analysis-content li::before {
        left: 0.8rem;
        top: 0.6rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .market-analysis-section,
    .market-positioning-section,
    .market-optimization-section,
    .market-comprehensive-section {
        padding: 1rem !important;
        margin: 1rem 0 !important;
        border-radius: 10px !important;
    }

    .market-analysis-section .market-section-title,
    .market-positioning-section .market-section-title,
    .market-optimization-section .market-section-title,
    .market-comprehensive-section .market-section-title {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
        padding-bottom: 0.5rem !important;
    }

    .market-analysis-content h3 {
        font-size: 1rem !important;
        padding: 0.5rem 0.6rem !important;
        margin: 1rem 0 0.5rem 0 !important;
    }

    .market-analysis-content li {
        padding: 0.5rem 0.6rem !important;
        padding-left: 1.8rem !important;
        margin-bottom: 0.5rem !important;
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }

    .market-analysis-content li::before {
        left: 0.6rem;
        top: 0.5rem;
        font-size: 0.9rem;
    }
}

/* 表单样式 */
.market-form {
    width: 100%;
}

.market-form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.market-form-section-title {
    color: #2E7D32;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.market-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.market-form-group {
    flex: 1;
    margin-bottom: 20px;
}

.market-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.market-form-group input,
.market-form-group textarea,
.market-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: white;
}

.market-form-group input:focus,
.market-form-group textarea:focus,
.market-select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.market-select {
    cursor: pointer;
}

/* 复选框组样式 */
.market-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.market-checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: white;
}

.market-checkbox-item:hover {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
}

.market-checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.market-checkbox-item input[type="checkbox"]:checked + span {
    color: #2E7D32;
    font-weight: 500;
}

/* 按钮样式 */
.market-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 48px;
}

.market-btn-primary {
    background: #4CAF50;
    color: white;
}

.market-btn-primary:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.market-btn-secondary {
    background: #6c757d;
    color: white;
}

.market-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.market-form-actions {
    text-align: center;
    margin-top: 30px;
}

/* 加载状态样式 - 商圈调研模块专用 */
.market-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: 10px;
}

.market-loading-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.market-loading-spinner-large {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: market-spin 1s linear infinite;
    margin: 0 auto 20px;
}

.market-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    animation: market-spin 1s linear infinite;
    margin-right: 8px;
}

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

.market-loading-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.market-loading-subtext {
    font-size: 14px;
    color: #666;
}

/* 报告样式 */
.market-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.market-report-actions {
    display: flex;
    gap: 10px;
}

.market-report-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 错误信息样式 */
.error-message {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* 必填标识 */
.required {
    color: #d32f2f;
}

/* 表单描述文字 */
.market-form-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #4CAF50;
}

/* 文件上传区域 */
.market-file-upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafafa;
}

.market-file-upload-area:hover {
    border-color: #4CAF50;
    background: #f8fff8;
}

.market-file-upload-area.dragover {
    border-color: #4CAF50;
    background: #e8f5e8;
    transform: scale(1.02);
}

.market-upload-icon {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 15px;
}

.market-upload-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.market-upload-hint {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 文件预览 */
.market-file-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.market-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.market-file-icon {
    font-size: 1.5rem;
    color: #4CAF50;
}

.market-file-name {
    flex: 1;
    font-weight: 500;
    color: #333;
    text-align: left;
}

.market-file-size {
    font-size: 14px;
    color: #666;
}

.market-file-remove {
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    position: relative;
    padding: 0;
    margin: 0;
    outline: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.market-file-remove:hover {
    background: #d32f2f;
    transform: scale(1.05);
}

.market-file-remove:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.3);
}

.market-file-remove i {
    font-size: 10px !important;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .dual-module-layout {
        flex-direction: column;
        gap: 40px;
    }
    
    .brand-analysis-module {
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
        padding-right: 0;
        padding-bottom: 30px;
    }
    
    .market-analysis-module {
        padding-left: 0;
        padding-top: 30px;
    }
}

@media (max-width: 768px) {
    .market-form-row {
        flex-direction: column;
        gap: 0;
    }

    .market-checkbox-group {
        flex-direction: column;
        gap: 10px;
    }

    .market-report-header {
        flex-direction: column;
        align-items: stretch;
    }

    .market-report-actions {
        justify-content: center;
    }

    .module-title {
        font-size: 1.5rem;
    }

    .module-subtitle {
        font-size: 0.9rem;
    }
}

/* ===== 商圈分析报告专用样式 ===== */

/* 报告包装器 */
.market-report-wrapper {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

/* 报告头部区域 */
.market-report-header-section {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.market-report-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 300;
}

.market-report-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.market-meta-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
}

.market-meta-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.market-meta-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
}

.market-overall-score {
    font-size: 1.5rem !important;
    font-weight: bold !important;
    color: var(--theme-secondary, #3B82F6) !important;
}

/* 摘要区域 */
.market-summary-section {
    padding: 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.market-summary-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.market-summary-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.market-score-display {
    flex-shrink: 0;
}

.market-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.market-score-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.market-score-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 分析区域 */
.market-analysis-section {
    padding: 25px 30px;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.market-analysis-section:hover {
    background: #f8f9fa;
}

.market-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.market-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.market-dimension-score {
    background: #4CAF50;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.market-analysis-content {
    margin-left: 35px;
}

.market-analysis-text {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

.market-analysis-text p {
    margin-bottom: 10px;
}

/* 关键要点 */
.market-highlights {
    background: #e8f5e8;
    border-left: 4px solid #4CAF50;
    padding: 15px;
    border-radius: 0 5px 5px 0;
}

.market-highlights-title {
    color: #2E7D32;
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.market-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.market-highlight-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
}

.market-highlight-item:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

/* 总结区域 */
.market-conclusion-section {
    padding: 30px;
    background: #f0f8f0;
    border-top: 3px solid #4CAF50;
}

.market-conclusion-content {
    text-align: center;
}

.market-conclusion-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
}

/* 生成信息 */
.market-generation-info {
    padding: 20px 30px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #666;
}

.market-generation-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.market-generation-item {
    display: flex;
    align-items: center;
}

/* 错误报告样式 */
.market-error-report {
    text-align: center;
    padding: 50px 30px;
    color: #333;
}

.market-error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.market-error-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #d32f2f;
}

.market-error-message {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.market-error-details {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 25px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #666;
}



/* 响应式优化 */
@media (max-width: 768px) {
    .market-summary-content {
        flex-direction: column;
        text-align: center;
    }

    .market-score-circle {
        width: 100px;
        height: 100px;
    }

    .market-score-number {
        font-size: 1.5rem;
    }

    .market-report-meta {
        grid-template-columns: 1fr;
    }

    .market-generation-details {
        flex-direction: column;
        gap: 10px;
    }

    .market-analysis-content {
        margin-left: 0;
    }

    .market-section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}





/* ===== 竞争对手概览表格样式 ===== */

/* 竞争对手概览区域 */
.competitor-overview-section {
    background: white !important;
    padding: 25px !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08) !important;
    margin-bottom: 25px !important;
}

/* 竞争对手表格样式 */
.competitor-overview-section table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: white !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #e0e0e0 !important;
}

.competitor-overview-section table thead tr {
    background: var(--theme-primary, #4CAF50) !important;
    color: white !important;
}

.competitor-overview-section table thead th {
    padding: 12px 15px !important;
    font-weight: 600 !important;
    text-align: center !important;
    border: none !important;
    color: white !important;
}

.competitor-overview-section table thead th:first-child,
.competitor-overview-section table thead th:last-child {
    text-align: left !important;
}

.competitor-overview-section table tbody tr {
    border-bottom: 1px solid #f0f0f0 !important;
    transition: background-color 0.2s ease !important;
}

.competitor-overview-section table tbody tr:nth-child(even) {
    background: #fafafa !important;
}

.competitor-overview-section table tbody tr:nth-child(odd) {
    background: white !important;
}

.competitor-overview-section table tbody td {
    padding: 12px 15px !important;
    color: #333 !important;
    border: none !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.competitor-overview-section table tbody td:first-child,
.competitor-overview-section table tbody td:last-child {
    text-align: left !important;
}

.competitor-overview-section table tbody td:first-child {
    font-weight: 500 !important;
}

/* 评分样式 */
.competitor-overview-section table tbody td:nth-child(2) span {
    color: #ff6b35 !important;
    font-weight: 600 !important;
}

/* 价格样式 */
.competitor-overview-section table tbody td:nth-child(4) span,
.competitor-overview-section table tbody td:nth-child(6) span {
    color: #666 !important;
}

/* 特色/排名列样式 */
.competitor-overview-section table tbody td:last-child {
    font-size: 13px !important;
    color: #666 !important;
    line-height: 1.4 !important;
}

/* 竞争对手总结区域样式 - 主题化 */
.competitor-overview-section .competitor-summary {
    background: linear-gradient(135deg, var(--theme-light, #EFF6FF), var(--theme-bg, #F8FAFC)) !important;
    padding: 20px !important;
    border-radius: 12px !important;
    margin-top: 25px !important;
    border-left: 4px solid var(--theme-primary, #1E3A8A) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid var(--theme-accent, #60A5FA) !important;
    position: relative !important;
    overflow: hidden !important;
}

.competitor-overview-section .competitor-summary::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, var(--theme-primary, #1E3A8A), var(--theme-secondary, #3B82F6)) !important;
}

.competitor-overview-section .competitor-summary h4 {
    color: var(--theme-primary, #1E3A8A) !important;
    margin: 0 0 15px 0 !important;
    font-size: 1.2em !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.competitor-overview-section .competitor-summary h4::before {
    content: '📊' !important;
    font-size: 1.1em !important;
}

.competitor-overview-section .competitor-summary p {
    margin: 0 0 12px 0 !important;
    color: #333 !important;
    background: white !important;
    padding: 15px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
    border: 1px solid var(--theme-accent, #60A5FA) !important;
    transition: all 0.3s ease !important;
}

.competitor-overview-section .competitor-summary p:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
}

.competitor-overview-section .competitor-summary p:last-child {
    margin-bottom: 0 !important;
}

.competitor-overview-section .competitor-summary strong {
    color: var(--theme-secondary, #3B82F6) !important;
    font-weight: 600 !important;
}



/* 响应式设计 */
@media (max-width: 768px) {
    .competitor-overview-section {
        padding: 15px !important;
    }

    .competitor-overview-section table {
        font-size: 12px !important;
    }

    .competitor-overview-section table th,
    .competitor-overview-section table td {
        padding: 8px 6px !important;
    }

    .competitor-overview-section table th:nth-child(3),
    .competitor-overview-section table th:nth-child(4),
    .competitor-overview-section table th:nth-child(5),
    .competitor-overview-section table td:nth-child(3),
    .competitor-overview-section table td:nth-child(4),
    .competitor-overview-section table td:nth-child(5) {
        display: none !important;
    }
}
