636 lines
10 KiB
CSS
636 lines
10 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
padding: 20px;
|
|
color: #333;
|
|
}
|
|
|
|
/* 模态框样式 */
|
|
.modal {
|
|
display: flex;
|
|
position: fixed;
|
|
z-index: 1000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.modal-content {
|
|
background-color: white;
|
|
border-radius: 16px;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
width: 90%;
|
|
max-width: 400px;
|
|
animation: slideIn 0.3s ease;
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
transform: translateY(-50px);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px;
|
|
border-bottom: 1px solid #e5e7eb;
|
|
}
|
|
|
|
.modal-header h2 {
|
|
color: #667eea;
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.modal-close {
|
|
background: none;
|
|
border: none;
|
|
font-size: 28px;
|
|
color: #999;
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
padding: 0;
|
|
width: 30px;
|
|
height: 30px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
color: #333;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 20px;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.form-group input {
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.form-group input:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.btn-primary, .btn-secondary {
|
|
flex: 1;
|
|
padding: 12px 24px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: #667eea;
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #5568d3;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: #10b981;
|
|
color: white;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: #059669;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
|
|
}
|
|
|
|
.auth-message {
|
|
margin-bottom: 15px;
|
|
padding: 10px;
|
|
border-radius: 6px;
|
|
font-size: 13px;
|
|
text-align: center;
|
|
min-height: 20px;
|
|
}
|
|
|
|
.auth-message.error {
|
|
background: #fee2e2;
|
|
color: #991b1b;
|
|
}
|
|
|
|
.auth-message.success {
|
|
background: #d1fae5;
|
|
color: #065f46;
|
|
}
|
|
|
|
.auth-switch {
|
|
text-align: center;
|
|
font-size: 13px;
|
|
color: #667eea;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.auth-switch:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.container {
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
background: white;
|
|
border-radius: 16px;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
padding: 25px;
|
|
}
|
|
|
|
header {
|
|
text-align: center;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 2.5em;
|
|
color: #667eea;
|
|
margin-bottom: 10px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 20px;
|
|
padding: 10px 15px;
|
|
background: #f8f9fa;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.user-info span {
|
|
font-weight: 600;
|
|
color: #667eea;
|
|
}
|
|
|
|
.btn-logout {
|
|
padding: 6px 12px;
|
|
background: #ef4444;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-logout:hover {
|
|
background: #dc2626;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.bottom-section {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.controls {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.month-display {
|
|
font-size: 1.5em;
|
|
font-weight: 600;
|
|
color: #333;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.btn-nav {
|
|
background: #667eea;
|
|
color: white;
|
|
border: none;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.btn-nav:hover {
|
|
background: #5568d3;
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.btn-nav:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.btn-today {
|
|
background: #764ba2;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 20px;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-today:hover {
|
|
background: #653a8a;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(118, 75, 162, 0.4);
|
|
}
|
|
|
|
.legend {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 25px;
|
|
margin-bottom: 15px;
|
|
padding: 10px;
|
|
background: #f8f9fa;
|
|
border-radius: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.mark {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: bold;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.mark.completed {
|
|
background: #10b981;
|
|
color: white;
|
|
}
|
|
|
|
.mark.partial {
|
|
background: #f59e0b;
|
|
color: white;
|
|
}
|
|
|
|
.mark.none {
|
|
background: #e5e7eb;
|
|
border: 2px solid #d1d5db;
|
|
}
|
|
|
|
.calendar {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
gap: 3px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.weekday {
|
|
text-align: center;
|
|
font-weight: 600;
|
|
color: #667eea;
|
|
padding: 8px;
|
|
font-size: 14px;
|
|
background: #f0f4ff;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.day {
|
|
aspect-ratio: 1;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
background: white;
|
|
position: relative;
|
|
padding: 5px;
|
|
}
|
|
|
|
.day:hover {
|
|
border-color: #667eea;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
|
|
}
|
|
|
|
.day.other-month {
|
|
opacity: 0.4;
|
|
background: #f9fafb;
|
|
}
|
|
|
|
.day.future-day {
|
|
opacity: 0.6;
|
|
background: #f3f4f6;
|
|
color: #9ca3af;
|
|
}
|
|
|
|
.day.future-day .day-number {
|
|
color: #9ca3af;
|
|
}
|
|
|
|
.day.today {
|
|
border-color: #667eea;
|
|
background: #f0f4ff;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.day.completed {
|
|
background: #d1fae5;
|
|
border-color: #10b981;
|
|
}
|
|
|
|
.day.completed .day-number {
|
|
color: #065f46;
|
|
}
|
|
|
|
.day.partial {
|
|
background: #fef3c7;
|
|
border-color: #f59e0b;
|
|
}
|
|
|
|
.day.partial .day-number {
|
|
color: #92400e;
|
|
}
|
|
|
|
.day-number {
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.day-mark {
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
line-height: 1;
|
|
}
|
|
|
|
.day.completed .day-mark {
|
|
color: #10b981;
|
|
}
|
|
|
|
.day.partial .day-mark {
|
|
color: #f59e0b;
|
|
}
|
|
|
|
.instructions {
|
|
text-align: center;
|
|
padding: 10px;
|
|
background: #f0f4ff;
|
|
border-radius: 8px;
|
|
color: #667eea;
|
|
font-size: 14px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.instructions p {
|
|
margin: 5px 0;
|
|
}
|
|
|
|
.server-section {
|
|
padding: 15px;
|
|
background: #f8f9fa;
|
|
border-radius: 8px;
|
|
border-top: 2px solid #e5e7eb;
|
|
}
|
|
|
|
.server-section label {
|
|
display: block;
|
|
margin-bottom: 10px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.server-input-group {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
|
|
#serverInput {
|
|
flex: 1;
|
|
min-width: 200px;
|
|
padding: 12px 16px;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
#serverInput:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
|
}
|
|
|
|
.server-select {
|
|
flex: 1;
|
|
min-width: 200px;
|
|
padding: 12px 16px;
|
|
border: 2px solid #e5e7eb;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
background: white;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.server-select:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
|
}
|
|
|
|
.btn-add, .btn-remove {
|
|
padding: 12px 20px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-add {
|
|
background: #10b981;
|
|
color: white;
|
|
}
|
|
|
|
.btn-add:hover {
|
|
background: #059669;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
|
|
}
|
|
|
|
.btn-remove {
|
|
background: #ef4444;
|
|
color: white;
|
|
}
|
|
|
|
.btn-remove:hover {
|
|
background: #dc2626;
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
|
|
}
|
|
|
|
/* 右上角 Toast 提示消息 */
|
|
.status-message-toast {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
padding: 14px 20px;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
min-width: 200px;
|
|
max-width: 400px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
z-index: 10000;
|
|
opacity: 0;
|
|
transform: translateX(400px);
|
|
transition: all 0.3s ease;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.status-message-toast.show {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.status-message-toast.success {
|
|
background: #10b981;
|
|
color: white;
|
|
}
|
|
|
|
.status-message-toast.error {
|
|
background: #ef4444;
|
|
color: white;
|
|
}
|
|
|
|
.status-message-toast.info {
|
|
background: #667eea;
|
|
color: white;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
padding: 20px;
|
|
}
|
|
|
|
.month-display {
|
|
font-size: 1.2em;
|
|
min-width: 150px;
|
|
}
|
|
|
|
.calendar {
|
|
gap: 4px;
|
|
}
|
|
|
|
.day {
|
|
padding: 4px;
|
|
}
|
|
|
|
.day-number {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.day-mark {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.legend {
|
|
gap: 15px;
|
|
}
|
|
|
|
.legend-item {
|
|
gap: 6px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.mark {
|
|
width: 20px;
|
|
height: 20px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.server-section {
|
|
padding: 12px;
|
|
}
|
|
|
|
.server-section label {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.instructions {
|
|
padding: 8px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.user-info {
|
|
padding: 8px 12px;
|
|
}
|
|
}
|