<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>统计分析</title> <link rel="stylesheet" href="css/common.css" type="text/css" /> <script src="system/js/jquery-1.7.2.min.js"></script> <script src="js/chart.js"></script> <style> body { margin: 0; padding: 20px; background: #fff; font-family: Arial, sans-serif; } .container { width: 100%; max-width: 100%; margin: 0 auto; } .page-header { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; display: flex; justify-content: space-between; align-items: center; } .page-title { font-size: 24px; font-weight: bold; color: #333; margin: 0; } .export-btn { padding: 8px 15px; background: #4CAF50; color: white; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; display: inline-block; } .export-btn:hover { background: #45a049; } .filter-form { background: #f9f9f9; padding: 15px; border-radius: 5px; margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 15px; align-items: center; } .filter-form-inline { display: flex; flex-wrap: nowrap; align-items: flex-end; gap: 15px; width: 100%; } .filter-form-inline .form-group { margin-right: 0; flex: 0 0 auto; } .form-group { margin-right: 15px; } .form-group label { display: block; margin-bottom: 5px; font-weight: bold; } .form-control { padding: 6px; border: 1px solid #ddd; border-radius: 4px; min-width: 150px; } .btn { padding: 8px 15px; background: #337ab7; color: white; border: none; border-radius: 4px; cursor: pointer; } .btn:hover { background: #286090; } .stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(45%, 1fr)); gap: 20px; margin-bottom: 20px; } .stat-card { background: white; border-radius: 5px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); padding: 20px; } .stat-card h3 { margin-top: 0; color: #555; font-size: 16px; border-bottom: 1px solid #eee; padding-bottom: 10px; } .stat-value { font-size: 24px; font-weight: bold; color: #333; margin: 15px 0; } .chart-container { margin-bottom: 30px; background: white; border-radius: 5px; padding: 20px; } .chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .chart-title { font-size: 18px; font-weight: bold; color: #333; margin: 0; } .chart-row { display: flex; flex-wrap: wrap; } .chart-column { flex: 0 0 50%; max-width: 50%; padding: 0 10px; } .data-table { width: 100%; border-collapse: collapse; margin-top: 20px; } .data-table th, .data-table td { padding: 10px; text-align: left; border-bottom: 1px solid #eee; } .data-table th { background: #f5f5f5; font-weight: bold; } .data-table tr:hover { background: #f9f9f9; } .custom-date-inputs { display: none; } #date_range[value="custom"]:checked ~ .custom-date-inputs { display: block; } .download-btn { padding: 5px 10px; background: #4CAF50; color: white; border: none; border-radius: 3px; font-size: 14px; cursor: pointer; } .download-btn:hover { background: #45a049; } /* 关键指标样式 */ .key-metrics-section { margin-bottom: 30px; } .section-title { margin-bottom: 15px; } .section-title h2 { font-size: 20px; font-weight: bold; color: #333; margin: 0; } .stats-card-container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; } .stats-card { background: white; border-radius: 5px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); padding: 15px; min-width: 180px; flex: 1; transition: all 0.3s ease; } .stats-card:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); } .stats-card-header { margin-bottom: 10px; } .stats-card-header h3 { font-size: 16px; font-weight: bold; color: #555; margin: 0; } .stats-card-body { text-align: center; } .stats-card-value { font-size: 28px; font-weight: bold; color: #2196F3; } .stats-card-subtitle { font-size: 14px; color: #777; margin-top: 5px; } /* 添加客户价值分布的子值样式 */ .stat-sub-value { display: block; font-size: 14px; color: #4CAF50; margin-top: 3px; } /* 转化率样式 */ .stat-conversion { display: block; font-size: 13px; color: #FF5722; margin-top: 3px; font-style: italic; } </style> </head> <body> <div class="container">