/* 品牌定位分析报告样式 - 高性能静态设计 */

/* CSS变量定义 */
:root {
    --brand-primary: #4CAF50;
    --brand-secondary: #2E7D32;
    --brand-accent: #81C784;
    --brand-light: #E8F5E9;
    --brand-dark: #1B5E20;
    --text-primary: #2C3E50;
    --text-secondary: #5D6D7E;
    --text-muted: #85929E;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --border-light: #E8F5E9;
    --shadow-light: 0 2px 8px rgba(76, 175, 80, 0.1);
    --shadow-medium: 0 4px 12px rgba(76, 175, 80, 0.15);
}

/* 报告头部 */
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    border-bottom: 3px solid var(--border-light);
    background: var(--brand-light);
    border-radius: 12px 12px 0 0;
}

.report-actions {
    display: flex;
    gap: 1rem;
}

/* 报告内容容器 */
.report-content {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-light);
    border-top: 4px solid var(--brand-primary);
}

/* 报告包装器 */
.report-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-light);
    min-height: 100vh;
}

/* 报告标题区域 */
.report-title-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem 0;
    background: var(--brand-primary);
    color: white;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
}

.report-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.report-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
    font-weight: 400;
}

/* 店铺基本信息 */
.store-info {
    background: var(--brand-light);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    border: 2px solid var(--border-light);
    border-left: 6px solid var(--brand-primary);
    box-shadow: var(--shadow-light);
}

.store-info-title {
    color: var(--brand-secondary);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--brand-primary);
}

.store-info-title i {
    font-size: 1.3rem;
    color: var(--brand-primary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.info-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-light);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
}

.info-icon i {
    font-size: 1.2rem;
    color: white;
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-label {
    font-weight: 600;
    color: var(--brand-secondary);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    word-wrap: break-word;
}

/* 特定信息项的图标颜色 */
.info-item.store-name .info-icon {
    background: var(--brand-primary);
}

.info-item.category .info-icon {
    background: #FF9800;
}

.info-item.address .info-icon {
    background: #2196F3;
}

.info-item.target-group .info-icon {
    background: #9C27B0;
}

.info-item.price-range .info-icon {
    background: #4CAF50;
}

.info-item.main-products .info-icon {
    background: #FF5722;
}

.info-item.features .info-icon {
    background: #FFC107;
}

/* 分析模块 */
.analysis-section {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 16px;
    border: 2px solid var(--border-light);
    border-top: 4px solid var(--brand-primary);
    box-shadow: var(--shadow-light);
}

.analysis-section h2 {
    color: var(--brand-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.analysis-section h2::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--brand-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.analysis-section h3 {
    color: var(--brand-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    padding-left: 1rem;
    border-left: 4px solid var(--brand-accent);
}

.analysis-section p {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.analysis-section ul {
    margin: 1rem 0;
    padding-left: 0;
    list-style: none;
}

.analysis-section li {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1rem;
}

.analysis-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-primary);
    font-weight: bold;
    font-size: 1.1rem;
    top: 0;
}

.analysis-section strong {
    color: var(--brand-secondary);
    font-weight: 600;
}

/* 强调文本 */
.highlight {
    color: var(--brand-secondary);
    font-weight: 700;
    background: var(--brand-light);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.emphasis {
    color: var(--brand-primary);
    font-weight: 600;
}

/* 分析要点样式 */
.analysis-point {
    background: var(--brand-light);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 6px solid var(--brand-primary);
    border-radius: 0 12px 12px 0;
    box-shadow: var(--shadow-light);
    position: relative;
}

.analysis-point::before {
    content: '💡';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    opacity: 0.7;
}

.analysis-point strong {
    color: var(--brand-secondary);
    font-weight: 600;
}

/* 建议框 */
.suggestion-box {
    background: var(--brand-light);
    border: 2px solid var(--brand-accent);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    box-shadow: var(--shadow-light);
}

.suggestion-box::before {
    content: '💼';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
}

.suggestion-box h4 {
    color: var(--brand-secondary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestion-box h4::before {
    content: '📋';
    font-size: 1.2rem;
}

.suggestion-box ul {
    margin-bottom: 0;
}

/* SWOT分析 */
.swot-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.swot-item {
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid;
    position: relative;
    box-shadow: var(--shadow-light);
}

.swot-strengths {
    background: #E8F5E9;
    border-color: var(--brand-primary);
}

.swot-strengths::before {
    content: '💪';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.swot-weaknesses {
    background: #FFF3E0;
    border-color: #FF9800;
}

.swot-weaknesses::before {
    content: '⚠️';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.swot-opportunities {
    background: #E3F2FD;
    border-color: #2196F3;
}

.swot-opportunities::before {
    content: '🚀';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.swot-threats {
    background: #FFEBEE;
    border-color: #F44336;
}

.swot-threats::before {
    content: '⚡';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.swot-item h4 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.swot-strengths h4 {
    color: var(--brand-secondary);
}

.swot-weaknesses h4 {
    color: #F57C00;
}

.swot-opportunities h4 {
    color: #1976D2;
}

.swot-threats h4 {
    color: #D32F2F;
}

/* 数据表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--border-light);
}

.data-table th,
.data-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    background: var(--brand-primary);
    font-weight: 600;
    color: white;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    color: var(--text-primary);
    font-size: 1rem;
}

.data-table tr:nth-child(even) {
    background: var(--bg-light);
}

/* 评分显示 */
.rating-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--brand-light);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.rating-stars {
    color: #FFD700;
    font-size: 1.5rem;
}

.rating-text {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* 进度条 */
.progress-bar {
    background: var(--border-light);
    border-radius: 12px;
    height: 12px;
    margin: 1rem 0;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: var(--brand-primary);
    border-radius: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .report-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
        padding: 1rem;
    }

    .report-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .report-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .report-title {
        font-size: 2rem;
    }

    .analysis-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .analysis-section h2 {
        font-size: 1.3rem;
    }

    .swot-analysis {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-item {
        padding: 1rem;
        gap: 0.75rem;
    }

    .info-icon {
        width: 40px;
        height: 40px;
    }

    .info-icon i {
        font-size: 1rem;
    }

    .data-table {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .report-content {
        padding: 1rem;
        margin: 0.5rem;
    }

    .report-title {
        font-size: 1.8rem;
    }

    .report-title-section {
        padding: 1.5rem 0;
    }

    .analysis-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .analysis-section h2 {
        font-size: 1.2rem;
    }

    .store-info {
        padding: 1rem;
    }

    .store-info-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .info-grid {
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .info-item {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .info-icon {
        width: 36px;
        height: 36px;
    }

    .info-icon i {
        font-size: 0.9rem;
    }

    .info-label {
        font-size: 0.8rem;
    }

    .info-value {
        font-size: 0.9rem;
    }

    .swot-item {
        padding: 1rem;
    }
}

/* 打印样式 */
@media print {
    .report-header {
        border-bottom: 3px solid var(--brand-secondary);
        background: white !important;
        color: var(--brand-secondary) !important;
    }

    .report-actions {
        display: none;
    }

    .report-title-section {
        background: white !important;
        color: var(--brand-secondary) !important;
        border: 2px solid var(--brand-secondary);
    }

    .analysis-section {
        break-inside: avoid;
        box-shadow: none;
        border: 2px solid var(--border-light);
        background: white !important;
    }

    .analysis-section h2 {
        color: var(--brand-secondary) !important;
    }

    .highlight {
        background: var(--brand-light) !important;
        color: var(--brand-secondary) !important;
    }

    .emphasis {
        color: var(--brand-primary) !important;
    }

    .store-info {
        background: white !important;
        border: 2px solid var(--border-light);
    }
}

/* 滚动条美化 */
.report-content::-webkit-scrollbar {
    width: 8px;
}

.report-content::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 4px;
}

.report-content::-webkit-scrollbar-thumb {
    background: var(--brand-accent);
    border-radius: 4px;
}
