<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ clinic_name }} - 患者画像回访话术系统</title>
    <style>
        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            margin: 0;
            padding: 0;
            background: #f5f5f5;
        }
        .header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .header h1 {
            margin: 0;
            font-size: 24px;
        }
        .user-info {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        .logout-btn {
            background: rgba(255,255,255,0.2);
            border: 1px solid rgba(255,255,255,0.3);
            color: white;
            padding: 8px 16px;
            border-radius: 5px;
            cursor: pointer;
            text-decoration: none;
        }
        .logout-btn:hover {
            background: rgba(255,255,255,0.3);
        }
        .container {
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
        }
        .clinic-card {
            background: white;
            border-radius: 10px;
            padding: 30px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            margin-top: 20px;
        }
        .clinic-card h2 {
            margin: 0 0 20px 0;
            color: #333;
        }
        .clinic-card p {
            color: #666;
            margin: 10px 0;
        }
        .patient-link {
            display: inline-block;
            background: #667eea;
            color: white;
            padding: 12px 24px;
            border-radius: 5px;
            text-decoration: none;
            margin-top: 20px;
            font-size: 16px;
        }
        .patient-link:hover {
            background: #5a6fd8;
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>患者画像回访话术系统 - {{ clinic_name }}</h1>
        <div class="user-info">
            <span>欢迎，{{ session_data.real_name }}</span>
            <a href="/login" class="logout-btn">登出</a>
        </div>
    </div>
    
    <div class="container">
        <div class="clinic-card">
            <h2>{{ clinic_name }}</h2>
            <p><strong>门诊ID:</strong> {{ clinic_id }}</p>
            <p><strong>用户:</strong> {{ session_data.real_name }} ({{ session_data.username }})</p>
            <p><strong>角色:</strong> 门诊用户</p>
            <p>您可以查看和管理本门诊的患者画像和回访话术数据。</p>
            
            <a href="/patient_profiles/{{ clinic_id }}/index.html" class="patient-link">查看患者画像</a>
        </div>
    </div>
</body>
</html>
