/* 全局样式 */
body {
    font-family: 'Roboto', 'Arial', sans-serif;
    background-color: #d4edda; /* 设置淡绿色背景颜色 */
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* 标题样式 */
h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

h2 {
    color: #34495e;
    margin-top: 30px;
    font-weight: 600;
}

/* 段落样式 */
p {
    margin: 15px 0;
}

/* 链接样式 */
a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 导航栏样式 */
nav {
    background-color: #2c3e50; /* 设置导航栏的背景颜色 */
    color: #ecf0f1; /* 设置导航栏文字颜色 */
    padding: 10px 0; /* 添加上下内边距 */
    margin-bottom: 30px; /* 添加下边距 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* 添加阴影效果 */
}

nav ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
    max-width: 800px; /* 设置导航栏的最大宽度 */
    margin: 0 auto; /* 使导航栏居中 */
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    color: #ecf0f1; /* 设置链接颜色 */
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 3px;
}

nav ul li a:hover {
    color: #3498db; /* 悬停时链接颜色 */
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.1); /* 悬停时背景颜色 */
}

/* 特色区域样式 */
.feature {
    background-color: #ffffff;
    padding: 30px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 响应式图片样式 */
img.responsive {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 容器样式 */
.container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.copyright {
    font-size: 0.9em;
    margin-top: 10px;
}

/* 输入框样式 */
.form-group {
    display: flex; /* 使用 Flexbox */
    align-items: center; /* 垂直居中对齐 */
    margin-bottom: 20px; /* 每个输入框之间的间距 */
}

.custom-input, .custom-textarea {
    border: none; /* 去掉边框 */
    border-bottom: 2px solid #ccc; /* 下边框 */
    padding: 10px 0; /* 上下内边距 */
    font-size: 16px; /* 字体大小 */
    width: 100%; /* 宽度 */
    max-width: 600px; /* 最大宽度 */
    outline: none; /* 去掉聚焦时的轮廓 */
    transition: border-bottom-color 0.3s; /* 下边框颜色过渡效果 */
}

.custom-input:focus, .custom-textarea:focus {
    border-bottom-color: #007bff; /* 聚焦时下边框颜色 */
    box-shadow: none; /* 去掉阴影效果 */
}

.custom-textarea {
    height: 200px; /* 设置文本区域的高度 */
    resize: none; /* 禁止调整大小 */
}

.custom-button {
    background-color: #007bff; /* 按钮背景颜色 */
    color: white; /* 按钮文字颜色 */
    border: none; /* 去掉边框 */
    border-radius: 5px; /* 圆角 */
    padding: 10px 20px; /* 内边距 */
    font-size: 16px; /* 字体大小 */
    transition: background-color 0.3s; /* 背景颜色过渡效果 */
    width: 100%; /* 设置按钮宽度为100%以适应容器 */
    max-width: 300px; /* 可选：设置最大宽度 */
    padding: 10px; /* 增加内边距以提高可点击区域 */
}

.custom-button:hover {
    background-color: #0056b3; /* 悬停时按钮背景颜色 */
}

/* Alert样式 */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Banner样式 */
.banner {
    width: 100%; /* 确保横幅宽度为100% */
    max-width: 1000px; /* 设置最大宽度（可选） */
    margin: 0 auto; /* 使横幅居中 */
    overflow: hidden; /* 隐藏溢出内容 */
    padding: 0; /* 去掉内边距 */
}

.banner img {
    width: 100%; /* 图片宽度为100% */
    height: auto; /* 高度自适应 */
    display: block; /* 确保图片是块级元素，去掉底部空隙 */
}

/* 主内容区域样式 */
main {
    background-color: #f8f9fa; /* 设置主内容区域的背景颜色 */
    padding: 20px; /* 添加内边距以增加内容的可读性 */
    border-radius: 8px; /* 可选：添加圆角效果 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 可选：添加阴影效果 */
}

/* 自定义输入框样式 */
.styled-input {
    border: 2px solid #007bff; /* 自定义边框颜色 */
    border-radius: 5px; /* 圆角 */
    padding: 5px; /* 减少内边距以收缩高度 */
    font-size: 14px; /* 减少字体大小以收缩高度 */
    transition: border-color 0.3s; /* 边框颜色过渡效果 */
    max-width: 300px; /* 设置最大宽度为300px */
    width: 100%; /* 宽度为100%以适应容器 */
}

.styled-input:focus {
    border-color: #0056b3; /* 聚焦时边框颜色 */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* 聚焦时阴影效果 */
}

/* static/css/style.css */
.custom-input {
    border: 2px solid #007bff; /* 自定义边框颜色 */
    border-radius: 5px; /* 圆角 */
    padding: 10px; /* 内边距 */
    font-size: 16px; /* 字体大小 */
}

.custom-textarea {
    border: 2px solid #007bff; /* 自定义边框颜色 */
    border-radius: 5px; /* 圆角 */
    padding: 10px; /* 内边距 */
    font-size: 16px; /* 字体大小 */
}

.custom-button {
    width: 100%; /* 设置按钮宽度为100%以适应容器 */
    max-width: 300px; /* 可选：设置最大宽度 */
    padding: 10px; /* 增加内边距以提高可点击区域 */
}
