<!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;
}
.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"],
textarea {
width: 100%;
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
}
textarea {
min-height: 100px;
}
.actions {
margin-top: 10px;
}
.actions a {
margin-right: 10px;
color: #4CAF50;
text-decoration: none;
}
.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;
}
.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;
}
@media (max-width: 768px) {
.detail-row {
flex-direction: column;
}
.detail-label {
width: 100%;
margin-bottom: 5px;
}
.tree-node {
margin-left: 10px !important;
}
}
</style>
</head>
<body>
<div class="container">
<div class="login-form">
<h2>登录</h2>
<form method="POST">
<div class="form-group">
<label for="username">用户名:</label>
<input type="text" id="username" name="username" required>
</div>
<div class="form-group">
<label for="password">密码:</label>
<input type="password" id="password" name="password" required>
</div>
<button type="submit" class="btn">登录</button>
</form>
<p>默认账号: admin / admin123</p>
</div>
</div>
</body>
</html>