/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #4A90E2;
    color: white;
    padding: 10px 0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: white;
    text-decoration: none;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
nav ul li {
    margin-left: 20px;
}
nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}
nav ul li a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    color: #4A90E2;
}

form {
    background-color: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

input[type="text"], input[type="email"], input[type="password"], textarea, select {
    width: 100%;
    padding: 8px 10px;
    margin-top: 4px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

button {
    background-color: #4A90E2;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #357ABD;
}

.flash-messages {
    margin-bottom: 20px;
}
.flash-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 600;
}
.flash-message.success {
    background-color: #50E3C2;
    color: #004d40;
}
.flash-message.danger {
    background-color: #f44336;
    color: white;
}
.flash-message.info {
    background-color: #2196F3;
    color: white;
}

.history-list {
    list-style: none;
    padding: 0;
}
.history-list li {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

footer {
    background-color: #4A90E2;
    color: #004d40;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
}

@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    nav ul {
        flex-direction: column;
        width: 100%;
    }
    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }
}

.form {
    max-width: 400px;
}
