* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #F0F0F0;
    color: #333;
    line-height: 1.5;
}

/* 头部样式 */
.header {
    background-color: #006633;
    padding: 0 20px;
    height: 64px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 40px;
    width: 140px;
    margin-right: 8px;
}

.title {
    color: #fff;
    margin-left: 20px;
    font-size: 22px;
    font-weight: 500;
}

.spacer {
    flex-grow: 1;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-name, .user-points {
    color: #fff;
    margin-right: 15px;
    font-size: 14px;
}

.recharge-btn {
    background-color: #FFFFFF;
    border: 1px solid #fff;
    color: #006633;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    font: 14.4px Avenir, Helvetica, Arial, sans-serif;
    border-radius: 30px;
}

.logout-btn {
    background-color: transparent;
    border: 1px solid #fff;
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 14px;
    border-radius: 30px;
}

/* 主容器样式 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 64px);
}

/* 内容头部 */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.page-title {
    font: 24px, sans-serif;
    color: #333333;
    width: 96px;
    height: 36px;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background-color: #004D26;
    color: white;
    width: 96px;
    height: 44px;
    font: 16px Arial,sans-serif;
}

/* 内容网格 */
.content-grid {
    display: flex;
    gap: 20px;
}

/* 场馆选择区域 */
.venue-selection {
    flex: 2;
    width: 306.59px;
    height: 576.81px;
}

.venue-info {
    display: flex;
    margin-bottom: 20px;
}

.venue-image {
    width: 160px;
    height: 110px;
    margin-right: 16px;
    border-radius: 4px;
    object-fit: cover;
    border-radius: 7px;
}

.venue-name {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 500;
}

.venue-location {
    color: #666;
    margin-bottom: 5px;
    font-size: 16px;
}

.venue-actions {
    margin-bottom: 20px;
}

/* 日期选择器 */
.date-selector {
    display: flex;
    margin-bottom: 20px;
    margin-left: -2px;
    overflow-x: auto;
    background-color: #F0F0F0;
    padding: 8px;
    margin-right: 8px;
    border-radius: 8px;
}

.date-item {
    width: 80px;
    height: 87.38px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px;
    margin-right: 8px;
    text-align: center;
    cursor: pointer;
    background-color: #FFFFFF;
    border-radius: 7px;
}

.date-item.selected {
    background-color: #006633;
    margin-right: 7px;
    padding: 8px;
    border-radius: 7px;
    box-shadow: 0 0 0 1.2px #ff8400;
}

.date-item:not(.selected) .date-day {
    color: #666666;
}

.date-item:not(.selected) .date-number {
    color: #666666;
}

.date-item:not(.selected) .date-available {
    color: #006633;
}

.date-day {
    font-weight: 500;
    font-size: 12.8px;
    color: #E6F3ED;
}

.date-number {
    color: #E6F3ED;
    font-size: 16px;
    margin: 3px 0;
}

.date-available {
    color: #999;
    font-size: 12.8px;
}

/* 时间表格 */
.time-slot-table {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-left: -6px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    font: 16px Arial, sans-serif;
    width: 150px;
    height: 41px;
    vertical-align: middle;
}

th {
    background-color: #f0f0f0;
    font-weight: 500;
}

.slot-btn {
    padding: 6px 10px;
    border-radius: 4px;
    border: none;
    width: 138.59px;
    height: 40px;
    cursor: not-allowed;
    font-size: 14px;
    border-radius: 7px;
}

.slot-btn.over {
    color: #a8a7a7;
    width: 138.59px;
    height: 40px;
}

.slot-btn.sold {
    background-color: #E0E0E0;
    color: #9c9b9b;
    border-radius: 4px;
    font: 16px Arial, sans-serif;
    filter: contrast(1.17);
}

/* 侧边栏 */
.sidebar {
    flex: 1;
    background-color: #f0f0f0;
    border-radius: 4px;
    padding: 20px;
    width: 306.59px;
    height: 488.03px;
    margin-left: -6px;
}

.sidebar-title {
    margin-bottom: 16px;
    font-size: 19.2px Arial, sans-serif;
    padding-bottom: 10px;
    color: #333333;
    font-weight: 500;
    width: 274.59px;
    height: 28.8px;
}

.booking-list {
    list-style: none;
}

.booking-item {
    margin-bottom: 8px;
    margin-left: -3px;
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #FFFFFF;
    width: 274.59px;
    height: 93.61px;
    border-radius: 3px;
}

.history-bookings .booking-item {
    height: 61.61px;
}

.booking-venue {
    font-weight: 500;
    font-size: 16px;
}

.booking-date {
    color: #666;
    font-size: 14.4px;
}

.booking-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.btn-small {
    font: 12px Arial, sans-serif;
}

.btn-cancel {
    background-color: #FF4D4F;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    height: 18px;
    width: 48px;
    margin-right: 210px;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .content-grid {
        flex-direction: column;
    }
    
    .desktop-only {
        display: none;
    }
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
    width: 333px;
}

.text-status {
    color: #a8a7a7;
    font: 16px Arial, sans-serif;
    display: inline-block;
    width: 138.59px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}