<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>树状家谱系统</title>
    <style>
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            font-family: 'Microsoft YaHei', sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f4f4f4;
            padding: 20px;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }
        h1, h2, h3 {
            color: #333;
            margin-bottom: 15px;
        }
        .btn {
            display: inline-block;
            padding: 8px 16px;
            background: #4CAF50;
            color: white;
            text-decoration: none;
            border-radius: 4px;
            border: none;
            cursor: pointer;
            font-size: 14px;
            margin: 5px 5px 5px 0;
        }
        .btn-danger {
            background: #f44336;
        }
        .btn-secondary {
            background: #777;
        }
        .form-group {
            margin-bottom: 15px;
        }
        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        input[type="text"],
        input[type="date"],
        input[type="password"],
        textarea {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px; /* 增加字体大小改善移动端体验 */
        }
        textarea {
            min-height: 100px;
        }
        .actions {
            margin-top: 10px;
        }
        .tree-node {
            margin: 10px 0;
        }
        .person-card {
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 15px;
            background: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        .alert {
            padding: 10px;
            margin-bottom: 15px;
            border-radius: 4px;
        }
        .alert-error {
            background: #ffebee;
            color: #c62828;
            border: 1px solid #ef9a9a;
        }
        .alert-success {
            background: #e8f5e9;
            color: #2e7d32;
            border: 1px solid #a5d6a7;
        }
        .login-form {
            max-width: 400px;
            margin: 50px auto;
            padding: 20px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        .login-form h2 {
            text-align: center;
            margin-bottom: 20px;
        }
        .person-details {
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .person-details h2 {
            border-bottom: 2px solid #4CAF50;
            padding-bottom: 10px;
            margin-bottom: 20px;
        }
        .detail-row {
            margin-bottom: 15px;
            display: flex;
            flex-wrap: wrap;
        }
        .detail-label {
            font-weight: bold;
            width: 100px;
            flex-shrink: 0;
        }
        .detail-value {
            flex-grow: 1;
        }
        .login-note {
            text-align: center;
            margin-top: 20px;
            padding: 10px;
            background: #e3f2fd;
            border-radius: 4px;
        }
        @media (max-width: 768px) {
            .detail-row {
                flex-direction: column;
            }
            .detail-label {
                width: 100%;
                margin-bottom: 5px;
            }
            .tree-node {
                margin-left: 10px !important;
            }
            .btn {
                display: block;
                width: 100%;
                text-align: center;
                margin: 5px 0;
            }
            header {
                flex-direction: column;
                text-align: center;
            }
            header h1 {
                margin-bottom: 10px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        
                
        
                        <h2>家谱树</h2>
                                    <div class="login-note">
                        <p>请<a href="?url=https%3A%2F%2Fweb.daaee.cn%2F%3Faction%3Dlogin">登录</a>后添加或修改家谱信息</p>
                    </div>
                                <div class="tree">
                    <div class="tree-node" style="margin-left: 0px;"><div class="person-card"><h3><a href="?url=https%3A%2F%2Fweb.daaee.cn%2F%3Faction%3Dview%26id%3D1">泰伯</a></h3><p>出生: 2025-09-03 @ 西岐</p><p>逝世: 2025-09-03</p></div><div class="tree-node" style="margin-left: 30px;"><div class="person-card"><h3><a href="?url=https%3A%2F%2Fweb.daaee.cn%2F%3Faction%3Dview%26id%3D2">古公亶父</a></h3><p>字号: 亶</p></div><div class="tree-node" style="margin-left: 60px;"><div class="person-card"><h3><a href="?url=https%3A%2F%2Fweb.daaee.cn%2F%3Faction%3Dview%26id%3D3">季历</a></h3></div><div class="tree-node" style="margin-left: 90px;"><div class="person-card"><h3><a href="?url=https%3A%2F%2Fweb.daaee.cn%2F%3Faction%3Dview%26id%3D5">百度</a></h3></div></div></div></div><div class="tree-node" style="margin-left: 30px;"><div class="person-card"><h3><a href="?url=https%3A%2F%2Fweb.daaee.cn%2F%3Faction%3Dview%26id%3D4">康定</a></h3></div></div></div>                </div>
                    </div>
</body>
</html>