blob: 1fd5e0a4e6fd1eb1270a38b37b929abd4fd29981 [file] [log] [blame]
/* Administer.css */
.administer-container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: #333;
}
.administer-container h1 {
text-align: center;
color: #2c3e50;
margin-bottom: 30px;
font-size: 28px;
font-weight: 600;
}
/* 选项卡样式 */
.tab-container {
display: flex;
margin-bottom: 20px;
border-bottom: 1px solid #ddd;
}
.tab-button {
padding: 10px 20px;
background: none;
border: none;
cursor: pointer;
font-size: 16px;
color: #555;
transition: all 0.3s ease;
border-bottom: 3px solid transparent;
margin-right: 5px;
}
.tab-button:hover {
color: #3498db;
}
.tab-button.active {
color: #3498db;
border-bottom: 3px solid #3498db;
font-weight: 600;
}
/* 搜索区域 */
.search-container {
display: flex;
margin-bottom: 20px;
gap: 10px;
}
.search-input {
flex: 1;
padding: 10px 15px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
transition: border 0.3s;
}
.search-input:focus {
outline: none;
border-color: #3498db;
}
.search-button, .reset-button {
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s;
}
.search-button {
background-color: #3498db;
color: white;
}
.search-button:hover {
background-color: #2980b9;
}
.reset-button {
background-color: #f1f1f1;
color: #333;
}
.reset-button:hover {
background-color: #ddd;
}
/* 表格样式 */
.user-table, .discount-table, .announcement-table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.user-table th,
.discount-table th,
.announcement-table th {
background-color: #3498db;
color: white;
padding: 12px 15px;
text-align: left;
}
.user-table td,
.discount-table td,
.announcement-table td {
padding: 12px 15px;
border-bottom: 1px solid #ddd;
}
.user-table tr:nth-child(even),
.discount-table tr:nth-child(even),
.announcement-table tr:nth-child(even) {
background-color: #f9f9f9;
}
.user-table tr:hover,
.discount-table tr:hover,
.announcement-table tr:hover {
background-color: #f1f1f1;
}
/* 权限选择框 */
.authority-select {
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
background-color: white;
cursor: pointer;
}
.authority-select:focus {
outline: none;
border-color: #3498db;
}
/* 错误消息 */
.error-message {
color: #e74c3c;
background-color: #fadbd8;
padding: 10px 15px;
border-radius: 4px;
margin-bottom: 15px;
border-left: 4px solid #e74c3c;
}
/* 加载状态 */
.loading-message {
color: #3498db;
text-align: center;
padding: 15px;
font-style: italic;
}
/* 折扣卡片 */
.current-discount-section {
margin-bottom: 30px;
padding: 20px;
background-color: #f8f9fa;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.current-discount-section h3 {
margin-top: 0;
color: #2c3e50;
border-bottom: 1px solid #eee;
padding-bottom: 10px;
}
.current-discount-card {
background-color: white;
padding: 15px;
border-radius: 6px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
margin-top: 15px;
}
.current-discount-card p {
margin: 8px 0;
}
.current-discount-card strong {
color: #2c3e50;
margin-right: 10px;
}
/* 表单样式 */
.add-discount-form, .announcement-form {
background-color: #f8f9fa;
padding: 20px;
border-radius: 8px;
margin-bottom: 30px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.add-discount-form h3, .announcement-form h3 {
margin-top: 0;
color: #2c3e50;
border-bottom: 1px solid #eee;
padding-bottom: 10px;
}
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: #2c3e50;
}
.form-group input[type="text"],
.form-group textarea,
.form-group select {
width: 100%;
padding: 10px 15px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
transition: border 0.3s;
}
.form-group textarea {
min-height: 100px;
resize: vertical;
}
.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group select:focus {
outline: none;
border-color: #3498db;
}
/* 日期选择器样式 */
.react-datepicker-wrapper {
width: 100%;
}
.react-datepicker__input-container input {
width: 100%;
padding: 10px 15px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
}
/* 按钮样式 */
button {
padding: 10px 20px;
background-color: #3498db;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s;
}
button:hover {
background-color: #2980b9;
}
.delete-button {
background-color: #e74c3c;
}
.delete-button:hover {
background-color: #c0392b;
}
/* 响应式调整 */
@media (max-width: 768px) {
.administer-container {
padding: 15px;
}
.tab-container {
flex-wrap: wrap;
}
.tab-button {
padding: 8px 15px;
font-size: 14px;
}
.user-table, .discount-table, .announcement-table {
display: block;
overflow-x: auto;
}
.search-container {
flex-direction: column;
}
.search-button, .reset-button {
width: 100%;
}
}