/**
 * report.css
 * 石化行业税务风险分析报告样式
 */

/* 基本页面设置 */
@page {
    size: A4;
    margin: 10mm;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* 报告容器 */
.risk-report-container {
    max-width: 210mm;
    margin: 0 auto;
    padding: 15mm;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* 页面分隔 */
.page-break {
    page-break-after: always;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
}

/* 报告头部 */
.report-header {
    text-align: center;
    margin-bottom: 40px;
}

.report-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 2px solid #1e88e5;
    padding-bottom: 10px;
}

.report-subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 5px;
}

.report-date {
    font-size: 14px;
    color: #777;
    margin-top: 10px;
}

/* 目录 */
.toc {
    margin: 20px 0 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.toc-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1e88e5;
}

.toc-item {
    margin: 5px 0;
}

.toc-item a {
    color: #333;
    text-decoration: none;
    padding: 2px 0;
    display: inline-block;
}

.toc-item a:hover {
    color: #1e88e5;
    text-decoration: underline;
}

/* 报告部分 */
.section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #1e88e5;
    margin: 20px 0 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.subsection-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 15px 0 10px;
}

/* 风险项目 */
.risk-item {
    margin: 15px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid #ff9800;
    border-radius: 0 5px 5px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.risk-item-title {
    font-weight: bold;
    color: #d32f2f;
    margin-bottom: 5px;
    font-size: 16px;
}

.risk-level {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    margin: 5px 0;
}

.risk-level-high {
    background-color: #ffcdd2;
    color: #c62828;
}

.risk-level-medium {
    background-color: #fff9c4;
    color: #f57f17;
}

.risk-level-low {
    background-color: #dcedc8;
    color: #33691e;
}

/* 建议 */
.suggestion {
    margin-top: 10px;
    padding: 10px;
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 0 5px 5px 0;
}

.suggestion-title {
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 5px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 石化行业特定样式 */
.petrochemical-specific {
    background-color: #e8f5e9;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    border-left: 4px solid #43a047;
}

.case-study {
    background-color: #fff8e1;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    border-left: 4px solid #ffb300;
}

.highlight-box {
    background-color: #ede7f6;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    border: 1px solid #b39ddb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 图表容器 */
.chart-container {
    margin: 20px 0;
    text-align: center;
}

.chart-container img {
    max-width: 100%;
    height: auto;
}

/* 页脚 */
.footer {
    margin-top: 40px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-size: 12px;
    color: #777;
    text-align: center;
}

/* 打印优化 */
@media print {
    body {
        background-color: white;
    }
    
    .risk-report-container {
        box-shadow: none;
        padding: 0;
    }
    
    .page-break {
        page-break-after: always;
    }
    
    a {
        text-decoration: none;
        color: #333;
    }
    
    .risk-item, .suggestion, .petrochemical-specific, .case-study, .highlight-box {
        box-shadow: none;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .risk-report-container {
        padding: 10mm;
    }
    
    .report-title {
        font-size: 20px;
    }
    
    .report-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .subsection-title {
        font-size: 16px;
    }
}

/* 扩展功能 - 风险指示器 */
.risk-indicator {
    width: 100%;
    height: 20px;
    background: linear-gradient(to right, #4caf50, #ffeb3b, #f44336);
    position: relative;
    border-radius: 10px;
    margin: 15px 0;
}

.risk-pointer {
    width: 10px;
    height: 30px;
    background-color: #333;
    position: absolute;
    top: -5px;
    transform: translateX(-50%);
    transition: left 0.5s ease;
}

/* 卡片样式 */
.risk-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.risk-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

/* 附加的工具和交互样式 */
.print-button {
    background-color: #1e88e5;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin: 15px 0;
    font-weight: bold;
}

.print-button:hover {
    background-color: #1565c0;
}

.report-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.report-nav a {
    display: block;
    padding: 5px;
    color: #333;
    text-decoration: none;
}

.report-nav a:hover {
    color: #1e88e5;
}

/* 详情展开/折叠功能 */
.risk-detail-toggle {
    cursor: pointer;
    user-select: none;
}

.risk-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.risk-detail.expanded {
    max-height: 1000px;
} 