/* 后端样式 - 老旧垃圾的票务系统 */
.backend {
    font-family: "宋体", SimSun, sans-serif;
    background-color: #f0f0f0;
    color: #000080;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.backend-header {
    background-color: #000080;
    color: #ffffff;
    padding: 5px;
    border-bottom: 3px double #ffffff;
}

.backend-title {
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    margin-bottom: 5px;
}

.backend-nav {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.backend-btn {
    background-color: #d4d0c8;
    border: 2px outset #ffffff;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
    color: #000000;
    font-family: "宋体", SimSun, sans-serif;
}

.backend-btn:active {
    border-style: inset;
}

.backend-content {
    display: flex;
    flex: 1;
    padding: 10px;
    gap: 10px;
}

.backend-sidebar {
    width: 200px;
    background-color: #d4d0c8;
    border: 1px solid #808080;
}

.backend-login, .backend-notice {
    margin-bottom: 10px;
    border: 1px solid #808080;
}

.login-title, .notice-title {
    background-color: #000080;
    color: #ffffff;
    padding: 2px 5px;
    font-weight: bold;
    font-size: 12px;
}

.form-group {
    margin: 5px;
}

.form-group label {
    display: block;
    font-size: 12px;
    margin-bottom: 2px;
}

.backend-input, .backend-select {
    width: 100%;
    border: 1px inset #808080;
    background-color: #ffffff;
    padding: 2px;
    font-size: 12px;
    font-family: "宋体", SimSun, sans-serif;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 10px 0;
}

.notice-content {
    padding: 5px;
    font-size: 12px;
    height: 100px;
    overflow: hidden;
}

.backend-main {
    flex: 1;
    background-color: #ffffff;
    border: 1px solid #808080;
    padding: 10px;
}

.booking-system {
    width: 100%;
}

.booking-title {
    background-color: #000080;
    color: #ffffff;
    padding: 5px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.booking-steps {
    display: flex;
    margin-bottom: 20px;
    border: 1px solid #808080;
    background-color: #d4d0c8;
}

.step {
    flex: 1;
    padding: 5px;
    text-align: center;
    font-size: 12px;
    border-right: 1px solid #808080;
}

.step:last-child {
    border-right: none;
}

.step.active {
    background-color: #000080;
    color: #ffffff;
    font-weight: bold;
}

.form-section {
    border: 1px solid #808080;
    padding: 10px;
    margin-bottom: 10px;
}

.form-section h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #000080;
}

.calendar {
    border: 1px solid #808080;
    margin-bottom: 10px;
}

.calendar-header {
    background-color: #000080;
    color: #ffffff;
    padding: 5px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #d4d0c8;
    border-bottom: 1px solid #808080;
}

.calendar-weekdays div {
    padding: 5px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.day {
    padding: 5px;
    text-align: center;
    border: 1px solid #d4d0c8;
    font-size: 12px;
    cursor: pointer;
}

.day:hover {
    background-color: #e6e6e6;
}

.day.disabled {
    color: #a0a0a0;
    background-color: #f0f0f0;
    cursor: not-allowed;
}

.day.sold-out {
    color: #ff0000;
    text-decoration: line-through;
    cursor: not-allowed;
}

.time-slots {
    margin-top: 10px;
}

.time-slots h4 {
    font-size: 12px;
    margin-bottom: 5px;
    color: #000080;
}

.time-slot {
    padding: 5px;
    border: 1px solid #808080;
    margin-bottom: 5px;
    font-size: 12px;
    cursor: pointer;
}

.time-slot:hover {
    background-color: #e6e6e6;
}

.time-slot.sold-out {
    color: #ff0000;
    text-decoration: line-through;
    cursor: not-allowed;
}

.visitor-info {
    border: 1px solid #808080;
    padding: 10px;
    margin-bottom: 10px;
}

.order-summary {
    border: 1px solid #808080;
    padding: 10px;
    margin-bottom: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
}

.summary-item.total {
    font-weight: bold;
    border-top: 1px solid #808080;
    padding-top: 5px;
    margin-top: 5px;
}

.payment-methods {
    margin-bottom: 10px;
}

.payment-methods h4 {
    font-size: 12px;
    margin-bottom: 5px;
    color: #000080;
}

.payment-method {
    margin-bottom: 5px;
    font-size: 12px;
}

.backend-footer {
    background-color: #d4d0c8;
    border-top: 1px solid #808080;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #000080;
}

/* 错误弹窗 */
.error-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.error-content {
    width: 300px;
    background-color: #d4d0c8;
    border: 2px outset #ffffff;
}

.error-header {
    background-color: #000080;
    color: #ffffff;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.error-title {
    font-weight: bold;
    font-size: 12px;
}

.error-close {
    cursor: pointer;
    font-weight: bold;
}

.error-body {
    padding: 20px;
    display: flex;
    align-items: center;
}

.error-icon {
    color: #ff0000;
    font-size: 24px;
    margin-right: 10px;
}

.error-message {
    font-size: 12px;
}

.error-footer {
    padding: 10px;
    display: flex;
    justify-content: center;
}