<!-- 投保建议书 CSS 模板（专业资管风·深字浅底·PDF 打印友好） -->
<style>
  :root {
    --primary: #1e3a5f;
    --primary-light: #4a6e8a;
    --accent: #2563a8;
    --accent-light: #e8f0fe;
    --bg: #f5f7fa;
    --card-bg: #ffffff;
    --text: #1e293b;
    --border: #d4dae3;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: 'PingFang SC', 'Source Han Sans SC', 'Noto Sans CJK SC', 'Microsoft YaHei', 'SimHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
  }

  /* ===== 页头 ===== */
  .page-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6e 50%, #4a6e8a 100%);
    color: #ffffff;
    padding: 30px 36px 22px;
  }
  .header-title { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
  .header-sub { font-size: 14px; color: rgba(255,255,255,0.9); margin-bottom: 12px; }
  .header-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .header-tag {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
  }

  /* ===== 导航（硬编码背景·防跨页丢失） ===== */
  .nav-bar {
    background: #1e3a5f;
    padding: 0 40px;
    display: flex;
    gap: 0;
    overflow-x: auto;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    page-break-after: avoid;
    page-break-inside: avoid;
    border-bottom: 2px solid #1e3a5f;
  }
  .nav-bar a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .nav-bar a:hover { color: #ffd700; border-bottom-color: #2563a8; }
  .nav-icon { display:inline-block; width:14px; height:14px; margin-right:6px; vertical-align:middle; border-radius:3px; }

  /* ===== 容器/区块 ===== */
  .container { max-width: 1200px; margin: 0 auto; padding: 20px 18px; }
  .section { margin-bottom: 22px; }
  .section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a5f;
    border-left: 4px solid #1e3a5f;
    padding-left: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d4dae3;
  }

  /* ===== 统计卡 ===== */
  .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
  .stat-card {
    background: #fff;
    border: 1px solid #d4dae3;
    border-radius: 10px;
    padding: 14px;
  }
  .stat-num { font-size: 30px; font-weight: 700; color: #1e3a5f; }
  .stat-num.accent { color: #2563a8; }
  .stat-label { font-size: 13px; color: #5d7c8a; margin-top: 4px; }
  .stat-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }

  /* ===== 产品卡 ===== */
  .product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
  .product-card {
    background: #fff;
    border: 1px solid #d4dae3;
    border-radius: 12px;
    overflow: hidden;
  }
  .product-card.recommended { border: 2px solid #2563a8; }
  .product-card-header { padding: 12px 16px; color: #fff; }
  .product-card-header.c1 { background: #1e3a5f; }
  .product-card-header.c2 { background: #3d5a4f; }
  .product-card-header.c3 { background: #9333ea; }
  .product-card-header.c4 { background: #dc2626; }
  .product-card-header.c5 { background: #0d9488; }
  .product-card-header.c6 { background: #4a6e8a; }
  .product-card-header.c7 { background: #c2703d; }
  .product-card-tag { font-size: 12px; font-weight: 600; opacity: 0.9; }
  .product-card-company { font-size: 13px; font-weight: 500; margin-top: 4px; }
  .product-card-name { font-size: 16px; font-weight: 700; margin-top: 2px; }
  .product-card-body { padding: 12px 16px; }
  .param-item { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; }
  .param-label { color: #5d7c8a; }
  .param-value { color: #1e3a5f; font-weight: 600; }
  .param-value.highlight { color: #dc2626; font-weight: 700; }

  /* ===== 表格（深字浅底·表头跨页重复） ===== */
  .table-wrap { overflow-x: auto; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); margin-bottom: 16px; }
  table { width: 100%; border-collapse: collapse; background: #fff; }
  thead { display: table-header-group; }   /* 跨页自动重复表头 */
  tr { page-break-inside: avoid; }          /* 防单行切 */
  thead th {
    background: #dde4ee;
    color: #1e3a5f;
    padding: 8px 8px;
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    border-bottom: 2px solid #1e3a5f;
  }
  tbody td {
    padding: 7px 8px;
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px solid #d4dae3;
    text-align: center;
    vertical-align: middle;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  tbody td:first-child { text-align: left; font-weight: 500; }
  tbody tr:nth-child(even) td { background: #f9fbfd; }
  tbody tr:hover td { background: #eef1f6; }
  td.td-label { font-weight: 600; color: #1e3a5f; }
  td.num { color: #1e3a5f; font-weight: 600; }
  .best-val { color: #dc2626; font-weight: 700; }
  .red-val { color: #dc2626; font-weight: 600; }

  /* ===== 信息框 ===== */
  .info-box {
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 10px;
    font-size: 13px;
  }
  .info-box.blue { background: #f0f3f7; border-left: 4px solid #1e3a5f; }
  .info-box.amber { background: #f5edde; border-left: 4px solid #b08d57; }
  .info-box.red { background: #f5e8e6; border-left: 4px solid #a23b3b; }
  .info-box.green { background: #e7ede8; border-left: 4px solid #3d5a4f; }

  /* ===== 图表 ===== */
  .chart-canvas-wrap {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    padding: 14px 14px 10px;
    margin-bottom: 16px;
  }
  .chart-canvas-wrap .chart-title { font-size: 13.5px; font-weight: 600; color: #1e3a5f; margin-bottom: 10px; }
  .chart-canvas-wrap img { width: 100%; height: auto; display: block; }
  .legend { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
  .legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #1e3a5f; }
  .legend-dot { width: 12px; height: 12px; border-radius: 3px; }
  .legend-dot.c1 { background: #1e3a5f; }
  .legend-dot.c2 { background: #3d5a4f; }
  .legend-dot.c3 { background: #9333ea; }
  .legend-dot.c4 { background: #dc2626; }
  .legend-dot.c5 { background: #0d9488; }
  .legend-dot.c6 { background: #4a6e8a; }
  .legend-dot.c7 { background: #c2703d; }

  /* ===== 结论卡 ===== */
  .conclusion-card {
    background: #fff;
    border: 2px solid #2563a8;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
  }
  .conclusion-title { font-size: 16px; font-weight: 700; color: #1e3a5f; margin-bottom: 12px; }
  .conclusion-list { list-style: none; padding: 0; }
  .conclusion-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #d4dae3;
    font-size: 13.5px;
    line-height: 1.7;
    color: #1e293b;
  }
  .conclusion-list li:last-child { border-bottom: none; }

  /* ===== 数据来源声明 ===== */
  .data-note {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 14px;
  }

  /* ===== 页脚 ===== */
  .page-footer {
    text-align: center;
    padding: 18px;
    font-size: 12px;
    color: #64748b;
    margin-top: 24px;
    border-top: 1px solid #d4dae3;
  }

  /* ===== 打印/PDF 优化 ===== */
  @media print {
    .nav-bar { position: relative; }
    p, li, td, th { orphans: 2; widows: 2; }
  }
</style>
