/* 样式文件：style.css */

/* 全局样式 */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f8f8;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* 容器样式 */
.container {
    background-color: #fff;
    padding: 20px;
    margin: 15px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* 标题样式 */
h1 {
    text-align: center;
    color: #ff7f00;
    font-size: 24px;
    margin-bottom: 20px;
}

/* 表单元素样式 */
form {
    display: flex;
    flex-direction: column;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

input[type="submit"] {
    background-color: #ff7f00;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #ff5c00;
}

/* 链接样式 */
a {
    color: #ff7f00;
    text-align: center;
    display: block;
    margin-top: 10px;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 错误信息样式 */
p.error {
    color: red;
    text-align: center;
}

/* 成功消息样式 */
p.success {
    color: green;
    text-align: center;
}

/* 响应式设计：针对手机端 */
@media (max-width: 600px) {
    .container {
        padding: 15px;
        margin: 10px;
    }

    h1 {
        font-size: 22px;
    }

    input[type="submit"] {
        font-size: 16px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        font-size: 14px;
    }
}
