* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #F7F9FC;
    background-image: none;
    background-attachment: fixed;
    min-height: 100vh;
    color: #262626;
    margin: 0;
    padding: 0;
}

/* 页面显示控制 */
.page {
    display: block;
}

.hidden {
    display: none !important;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部 */
.header {
    background: linear-gradient(135deg, #4C7DFF 0%, #6B9AFF 100%);
    backdrop-filter: blur(20px);
    color: white;
    padding: 20px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-left h1 {
    font-size: 20px;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: white;
}

.header-left .subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
    font-weight: 400;
}

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

.user-info span {
    font-size: 14px;
    color: white;
    font-weight: 500;
}

.btn-user {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-user:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* 登录页面 */
#loginPage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-box {
    background: white;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.15);
    text-align: center;
    max-width: 420px;
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.login-box h2 {
    margin-bottom: 32px;
    color: #262626;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.login-box input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #F0F0F0;
    border-radius: 12px;
    font-size: 15px;
    margin-bottom: 24px;
    transition: all 0.3s;
    background: #F7F9FC;
    color: #262626;
}

.login-box input::placeholder {
    color: #8C8C8C;
}

.login-box input:focus {
    outline: none;
    border-color: #4C7DFF;
    box-shadow: 0 0 0 4px rgba(76, 125, 255, 0.1);
    background: white;
}

#loginPage h1 {
    color: #262626;
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
    letter-spacing: -1px;
}

/* 按钮 */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #4C7DFF 0%, #6B9AFF 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 125, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3D6EFF 0%, #4C7DFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(76, 125, 255, 0.4);
}

.btn-secondary {
    background: #F7F9FC;
    color: #262626;
    border: 1px solid #F0F0F0;
}

.btn-secondary:hover {
    background: #F0F0F0;
    border-color: #8C8C8C;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover {
    background: #da190b;
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(76, 125, 255, 0.15);
}

.btn-add {
    width: 100%;
    margin-bottom: 20px;
    font-size: 18px;
}

/* 标签切换 */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: white;
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: #8C8C8C;
    font-size: 15px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s;
    font-weight: 500;
}

.tab-btn.active {
    background: #4C7DFF;
    color: white;
}

.tab-btn:hover {
    background: #F7F9FC;
}

.tab-btn.active:hover {
    background: #3D6EFF;
}

.tab-content {
    display: block;
}

/* 影棚区域 */
.studio-section {
    background: white;
    padding: 28px 32px;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #F0F0F0;
    transition: all 0.3s ease;
}

.studio-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.studio-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.studio-section-header h2 {
    color: #262626;
    font-size: 22px;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* 预约列表 */
.booking-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.booking-card {
    background: linear-gradient(135deg, #ffffff 0%, #F7F9FC 100%);
    width: 160px;
    height: 80px;
    padding: 14px;
    border-radius: 10px;
    border-left: 4px solid #BFBFBF;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.booking-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    border-left-color: #8C8C8C;
}

.booking-card.my-booking {
    border-left-color: #52C41A;
    background: linear-gradient(135deg, #f6ffed 0%, #ffffff 100%);
    box-shadow: 0 1px 3px rgba(82, 196, 26, 0.1);
}

.booking-card.my-booking:hover {
    background: linear-gradient(135deg, #f6ffed 0%, #f6ffed 100%);
    box-shadow: 0 8px 20px rgba(82, 196, 26, 0.2);
    border-left-color: #389e0d;
}

/* 已结束的预约显示为灰色 */
.booking-card.booking-completed {
    background: #e5e7eb;
    border-left-color: #9ca3af;
    opacity: 0.7;
}

.booking-card.booking-completed:hover {
    background: #d1d5db;
    opacity: 0.85;
}

.booking-card.booking-completed.my-booking {
    background: #e5e7eb;
    border-left-color: #9ca3af;
}

.booking-card.booking-completed .booking-time,
.booking-card.booking-completed .booking-photographer,
.booking-card.booking-completed .booking-note {
    color: #6b7280;
}

.booking-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.booking-time {
    font-weight: 700;
    color: #262626;
    font-size: 14px;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.booking-date {
    color: #8C8C8C;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 3px;
}

.booking-photographer {
    color: #4C7DFF;
    font-weight: 600;
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 3px;
    line-height: 1.3;
}

.booking-note {
    margin-top: 4px;
    color: #8C8C8C;
    font-size: 10px;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.empty-message {
    text-align: center;
    color: #999;
    padding: 40px;
    font-size: 16px;
}

/* 弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border: 1px solid #F0F0F0;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #262626;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 30px;
    color: #8C8C8C;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    transition: all 0.3s;
}

.close-btn:hover {
    color: #262626;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #262626;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #F0F0F0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: #F7F9FC;
    color: #262626;
    transition: all 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8C8C8C;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4C7DFF;
    box-shadow: 0 0 0 4px rgba(76, 125, 255, 0.1);
    background: white;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions .btn {
    flex: 1;
}

/* 详情显示 */
.detail-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0F0F0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #8C8C8C;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 500;
}

.detail-value {
    color: #262626;
    font-size: 16px;
    font-weight: 500;
}

/* 响应式设计 */
/* 移动端菜单按钮（默认隐藏） */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white; /* 修改为白色，确保在蓝色背景上可见 */
    cursor: pointer;
    padding: 8px;
    margin-right: 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn:active {
    background: rgba(255, 255, 255, 0.3);
}

/* 移动端专属元素（默认隐藏） */
.mobile-fab,
.mobile-bottom-nav {
    display: none;
}

/* 侧边栏遮罩层（默认隐藏） */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    /* 基础布局 */
    .container {
        padding: 0;
    }

    /* 显示移动端菜单按钮 */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 头部优化 */
    .header {
        padding: 10px 15px;
        min-height: 50px;
    }

    .header-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .header h1 {
        font-size: 16px;
        white-space: nowrap;
    }

    .subtitle {
        font-size: 11px;
    }

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

    .user-info span {
        font-size: 13px;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .btn-user {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* 登录页面 */
    #loginPage h1 {
        font-size: 26px;
    }

    .login-box {
        padding: 30px 20px;
        margin: 20px;
    }

    /* 主容器 */
    .main-container {
        height: calc(100vh - 50px);
        overflow: hidden;
        display: block !important;
        position: relative;
    }

    /* 侧边栏抽屉 */
    .sidebar {
        position: fixed !important;
        left: -280px !important;
        top: 50px !important;
        bottom: 0;
        width: 260px !important;
        max-width: 80vw;
        background: #ffffff;
        z-index: 999;
        transition: left 0.3s ease;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        padding: 16px;
        border-right: none;
        display: block !important;
        flex-direction: initial !important;
        gap: initial !important;
        backdrop-filter: none !important;
    }

    .sidebar.active {
        left: 0 !important;
    }

    .sidebar h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .filter-section,
    .quota-section,
    .reminder-settings {
        margin-bottom: 20px;
    }

    .search-input {
        font-size: 14px;
        padding: 10px 12px;
    }

    .switch-label {
        font-size: 13px;
        padding: 10px 0;
    }

    .quota-value {
        font-size: 28px;
    }

    .reminder-note {
        font-size: 12px;
        margin-top: 8px;
    }

    /* 内容区域 */
    .content-area {
        width: 100% !important;
        height: 100%;
        padding: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: none !important;
        margin-left: 0 !important;
    }

    /* 工具栏 */
    .toolbar {
        padding: 12px 15px;
        gap: 12px;
        flex-wrap: wrap;
        background: #ffffff;
        border-bottom: 1px solid #f0f0f0;
    }

    /* 移动端隐藏顶部视图切换按钮，使用底部导航替代 */
    .view-controls {
        display: none !important;
    }

    .time-settings {
        font-size: 12px;
        white-space: nowrap;
        width: 100%;
        display: flex;
        justify-content: space-between;
        margin: 0;
    }

    /* 底部导航栏 */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #F0F0F0;
        padding: 8px 0;
        padding-bottom: max(8px, env(safe-area-inset-bottom));
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    }

    .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        gap: 4px;
        color: #8C8C8C;
        font-size: 10px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-icon {
        font-size: 20px;
        margin-bottom: 2px;
    }

    .nav-item.active {
        color: #4C7DFF;
    }

    .nav-item.active .nav-icon {
        transform: scale(1.1);
        transition: transform 0.2s;
    }

    /* 悬浮添加按钮 (FAB) */
    .mobile-fab {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 80px;
        right: 20px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, #4C7DFF 0%, #6B9AFF 100%);
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(76, 125, 255, 0.4);
        z-index: 999;
        font-size: 32px;
        cursor: pointer;
        transition: transform 0.2s;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-fab:active {
        transform: scale(0.95);
    }

    /* 内容区域底部留白，防止被底部导航遮挡 */
    .content-area {
        padding-bottom: 70px !important;
    }

    .timeline-view,
    .list-view,
    .stats-view {
        padding-bottom: 80px;
    }

    /* 时间轴视图 - 关键优化 */
    .timeline-view {
        overflow-x: hidden; /* 禁止横向滚动 */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 80px;
    }

    .timeline-header,
    .timeline-body {
        min-width: 0; /* 取消最小宽度限制 */
        width: 100%;
    }

    .timeline-header {
        display: grid;
        grid-template-columns: 45px 1fr 1fr; /* 缩小时间列，平分剩余空间 */
        gap: 0;
        font-size: 12px;
        position: sticky;
        top: 0;
        background: #ffffff;
        z-index: 10;
        border-bottom: 1px solid #e5e7eb;
    }

    .timeline-time-column {
        min-width: 0;
        width: 100%;
        font-size: 11px;
        padding: 10px 2px;
        font-weight: 600;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .timeline-studio-column {
        min-width: 0;
        padding: 8px 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .studio-header-wrapper {
        display: flex;
        flex-direction: column;
        gap: 4px;
        align-items: center;
        width: 100%;
    }

    .studio-header {
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        white-space: nowrap; /* 防止换行 */
    }

    /* 移动端隐藏表头里的"新建预约"按钮，因为已经有 FAB 了 */
    .btn-add-inline {
        display: none !important;
    }

    /* 时间轴行 */
    .timeline-body {
        display: grid;
        grid-template-columns: 45px 1fr 1fr;
        gap: 0;
    }

    .timeline-time-cell {
        min-width: 0;
        width: 100%;
        font-size: 11px;
        padding: 0 2px;
        border-right: 1px solid #e5e7eb;
        border-bottom: 1px solid #f3f4f6;
        background: #fafafa;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .timeline-booking-cell {
        min-width: 0;
        padding: 4px; /* 减小内边距 */
        border-right: 1px solid #e5e7eb;
        border-bottom: 1px solid #f3f4f6;
        min-height: 50px;
    }

    /* 时间轴预约卡片 */
    .timeline-booking-item {
        padding: 6px;
        font-size: 11px;
        margin-bottom: 4px;
        border-radius: 4px;
        cursor: pointer;
        min-height: 40px;
        display: flex;
        flex-direction: column;
        gap: 2px;
        border-left-width: 3px; /* 稍微减小边框宽度 */
    }

    .timeline-booking-time {
        font-size: 11px;
        font-weight: 600;
        white-space: nowrap; /* 时间不换行 */
    }

    .timeline-booking-user {
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .timeline-booking-note {
        display: none; /* 移动端在卡片中隐藏备注，节省空间，点击详情可见 */
    }

    .available-slot {
        font-size: 10px;
        padding: 4px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-width: 1px;
    }

    /* 列表视图 */
    .list-view {
        padding: 12px;
    }

    .studio-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .studio-section-header {
        margin-bottom: 15px;
    }

    .studio-section h2 {
        font-size: 16px;
    }

    .booking-card {
        font-size: 13px;
        margin-bottom: 12px;
        padding: 12px;
        min-height: 70px;
    }

    .booking-time {
        font-size: 15px;
    }

    .booking-date {
        font-size: 12px;
    }

    .booking-photographer {
        font-size: 12px;
    }

    .booking-note {
        font-size: 12px;
        margin-top: 8px;
    }

    /* 统计视图 */
    .stats-view {
        padding: 12px;
    }

    .stats-header {
        flex-direction: column;
        gap: 12px;
        padding: 0;
        margin-bottom: 15px;
    }

    .stats-header h2 {
        font-size: 18px;
    }

    .stats-filters {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .stats-filters select {
        font-size: 14px;
        padding: 10px 12px;
        width: 100%;
    }

    .stats-summary {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .stats-card {
        padding: 15px;
    }

    .stats-card-label {
        font-size: 13px;
    }

    .stats-card-value {
        font-size: 26px;
    }

    .stats-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -12px;
        padding: 0 12px;
    }

    .stats-table {
        font-size: 12px;
        min-width: 500px;
    }

    .stats-table th,
    .stats-table td {
        padding: 10px 6px;
        white-space: nowrap;
    }

    .stats-table th:first-child,
    .stats-table td:first-child {
        padding-left: 12px;
    }

    /* 弹窗优化 */
    .modal-content {
        margin: 15px;
        width: calc(100% - 30px);
        max-width: 500px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .modal-body {
        padding: 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 10px 12px;
    }

    .form-actions {
        gap: 10px;
        padding-top: 15px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
        min-height: 44px; /* 确保触摸区域 */
    }

    .btn-small {
        padding: 8px 14px;
        font-size: 13px;
        min-height: 36px;
    }

    /* 提醒弹窗 */
    .reminder-modal-content {
        margin: 20px;
        width: calc(100% - 40px);
        padding: 20px;
    }

    .reminder-modal-icon {
        font-size: 40px;
    }

    .reminder-modal-body h2 {
        font-size: 18px;
    }

    .reminder-modal-body p {
        font-size: 14px;
    }

    /* Toast提示 */
    .toast {
        top: 60px;
        right: 15px;
        left: 15px;
        font-size: 13px;
        padding: 12px 15px;
    }

    /* 提醒条 */
    .reminder-bar {
        top: 50px;
        padding: 10px 15px;
        font-size: 12px;
    }

    /* 确保触摸友好 */
    button,
    .booking-card,
    .timeline-booking-item {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }

    /* 隐藏PC端的一些元素 */
    .date-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 20px;
    color: #6366f1;
    font-weight: 500;
}

/* 成功/错误提示 */
.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    animation: slideIn 0.3s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 14px;
    font-weight: 500;
}

.toast.success {
    border-left: 4px solid #52C41A;
    color: #262626;
}

.toast.error {
    border-left: 4px solid #FF4D4F;
    color: #262626;
    background: #FFF1F0;
    border-color: #FFCCC7;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 主容器布局 */
.main-container {
    display: flex;
    height: calc(100vh - 72px);
    overflow: hidden;
}

/* 侧边栏 */
.sidebar {
    width: 240px;
    background: #ffffff;
    backdrop-filter: blur(20px);
    padding: 20px 16px;
    overflow-y: auto;
    border-right: 1px solid #F0F0F0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quota-section h3 {
    font-size: 11px;
    font-weight: 600;
    color: #8C8C8C;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.search-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #F0F0F0;
    border-radius: 6px;
    font-size: 11px;
    margin-bottom: 10px;
    background: white;
    color: #262626;
    transition: all 0.3s;
}

.search-input::placeholder {
    color: #8C8C8C;
}

.search-input:focus {
    outline: none;
    border-color: #4C7DFF;
    box-shadow: 0 0 0 4px rgba(76, 125, 255, 0.1);
}

.filter-section {
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #F0F0F0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-section h3 {
    font-size: 10px;
    font-weight: 600;
    color: #8C8C8C;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.filter-option {
    margin-bottom: 6px;
}

.filter-option:last-child {
    margin-bottom: 0;
}

.switch-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 11px;
    color: #262626;
    font-weight: 400;
    padding: 5px 0;
}

.switch-label span:first-child {
    flex: 1;
}

.switch-label input[type="checkbox"] {
    position: relative;
    width: 32px;
    height: 18px;
    -webkit-appearance: none;
    background: #BFBFBF;
    outline: none;
    border-radius: 18px;
    transition: 0.3s;
    cursor: pointer;
    flex-shrink: 0;
}

.switch-label input[type="checkbox"]:checked {
    background: #FFC53D;
}

.switch-label input[type="checkbox"]:before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    background: white;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.switch-label input[type="checkbox"]:checked:before {
    left: 16px;
}

.quota-section {
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #F0F0F0;
}

.quota-section h3 {
    font-size: 10px;
    font-weight: 600;
    color: #8C8C8C;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.quota-info {
    margin-bottom: 0;
}

.quota-label {
    font-size: 10px;
    color: #8C8C8C;
    margin-bottom: 4px;
    font-weight: 500;
}

.quota-value {
    font-size: 24px;
    font-weight: 700;
    color: #262626;
    letter-spacing: -1px;
}

.quota-value span {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 400;
}

.quota-note {
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
}

/* 内容区域 */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 工具栏 */
.toolbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 20px 40px;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.date-nav {
    display: flex;
    gap: 8px;
}

.date-btn {
    padding: 8px 18px;
    background: white;
    border: 1.5px solid #F0F0F0;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: #8C8C8C;
}

.date-btn:hover {
    background: #F7F9FC;
    border-color: #BFBFBF;
}

.date-btn.active {
    background: #4C7DFF;
    color: white;
    border-color: #4C7DFF;
}

.view-controls {
    display: flex;
    background: #F7F9FC;
    border-radius: 12px;
    padding: 4px;
}

.view-btn {
    padding: 10px 24px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #8C8C8C;
}

.view-btn.active {
    background: linear-gradient(135deg, #4C7DFF 0%, #6B9AFF 100%);
    color: white;
}

.view-btn:hover:not(.active) {
    background: rgba(76, 125, 255, 0.05);
    color: #262626;
}

.time-settings {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #8C8C8C;
}

.granularity-label {
    padding: 8px 14px;
    background: #E6F0FF;
    border-radius: 10px;
    font-size: 12px;
    color: #4C7DFF;
    border: 1px solid #4C7DFF;
    font-weight: 600;
}

.status-indicator {
    color: #52C41A;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(82, 196, 26, 0.5);
}

/* 时间轴视图 */
.timeline-view {
    flex: 1;
    overflow-y: auto;
    background: #F7F9FC;
}

.timeline-header {
    display: grid;
    grid-template-columns: 60px 1fr 1fr;
    border-bottom: 2px solid #F0F0F0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.timeline-time-column,
.timeline-studio-column {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 13px;
    color: #262626;
    letter-spacing: -0.2px;
}

.timeline-time-column {
    border-right: 1px solid #F0F0F0;
    text-align: center;
}

.timeline-studio-column {
    border-right: 1px solid #F0F0F0;
    text-align: center;
}

.timeline-studio-column:last-child {
    border-right: none;
}

.studio-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.studio-header {
    font-weight: 700;
    font-size: 22px !important;
    letter-spacing: -0.5px;
}

.btn-add-inline {
    background: #4C7DFF;
    color: white;
    border: none;
    padding: 4px 10px !important;
    border-radius: 6px;
    font-size: 11px !important;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-add-inline:hover {
    background: #3D6EFF;
    transform: translateY(-1px);
}

.timeline-body {
    display: grid;
    grid-template-columns: 60px 1fr 1fr;
}

.timeline-row {
    display: contents;
}

.timeline-time-cell {
    padding: 10px 6px;
    border-right: 1px solid #F0F0F0;
    border-bottom: 1px solid #F0F0F0;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #8C8C8C;
    background: white;
}

.timeline-booking-cell {
    padding: 2px 6px;
    border-right: 1px solid #F0F0F0;
    border-bottom: 1px solid #F0F0F0;
    position: relative;
    min-height: 40px;
    background: #F7F9FC;
}

.timeline-booking-cell:last-child {
    border-right: none;
}

.timeline-booking-item {
    background: white;
    border-left: 3px solid #BFBFBF;
    padding: 8px 10px;
    margin: 2px 0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.timeline-booking-item:hover {
    background: #F7F9FC;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left-color: #8C8C8C;
}

.timeline-booking-item.my-booking {
    background: #f6ffed;
    border-left-color: #52C41A;
}

.timeline-booking-item.my-booking:hover {
    background: #f6ffed;
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.2);
    border-left-color: #389e0d;
}

/* 已结束的预约显示为灰色 */
.timeline-booking-item.booking-completed {
    background: #e5e7eb;
    border-left-color: #9ca3af;
    opacity: 0.7;
}

.timeline-booking-item.booking-completed:hover {
    background: #d1d5db;
    opacity: 0.85;
}

.timeline-booking-item.booking-completed.my-booking {
    background: #e5e7eb;
    border-left-color: #9ca3af;
}

.timeline-booking-item.booking-completed.my-booking:hover {
    background: #d1d5db;
}

.timeline-booking-item.booking-completed .timeline-booking-time,
.timeline-booking-item.booking-completed .timeline-booking-user,
.timeline-booking-item.booking-completed .timeline-booking-note {
    color: #6b7280;
}

.timeline-booking-time {
    font-size: 11px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 2px;
}

.timeline-booking-user {
    font-size: 10px;
    color: #8C8C8C;
}

.timeline-booking-note {
    font-size: 10px;
    color: #8C8C8C;
    margin-top: 2px;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 空闲时段提示 */
.available-slot {
    background: white;
    border: 2px dashed #52C41A;
    border-radius: 10px;
    padding: 8px;
    text-align: center;
    color: #52C41A;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.available-slot:hover {
    background: #f6ffed;
    border-color: #389e0d;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(82, 196, 26, 0.2);
}

/* 列表视图 */
.list-view {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    background: #F7F9FC;
}

/* 统计视图 */
.stats-view {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    background: #F7F9FC;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.stats-header h2 {
    color: #262626;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.stats-filters {
    display: flex;
    gap: 12px;
}

.stats-filters select {
    padding: 10px 16px;
    border: 1.5px solid #F0F0F0;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    color: #262626;
    font-weight: 500;
    transition: all 0.2s;
}

.stats-filters select:hover {
    border-color: #BFBFBF;
}

.stats-filters select:focus {
    outline: none;
    border-color: #4C7DFF;
    box-shadow: 0 0 0 4px rgba(76, 125, 255, 0.1);
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 220px));
    gap: 20px;
    margin-bottom: 32px;
    justify-content: start;
}

.stats-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #F0F0F0;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4C7DFF 0%, #6B9AFF 100%);
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.stats-card-label {
    font-size: 13px;
    color: #8C8C8C;
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.stats-card-value {
    font-size: 32px;
    font-weight: 700;
    color: #262626;
    letter-spacing: -2px;
}

.stats-table-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #F0F0F0;
}

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

.stats-table thead {
    background: #F7F9FC;
}

.stats-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #8C8C8C;
    font-size: 13px;
    border-bottom: 1px solid #F0F0F0;
    letter-spacing: 0.3px;
}

.stats-table tbody tr {
    border-bottom: 1px solid #F0F0F0;
    transition: background 0.2s;
}

.stats-table tbody tr:hover {
    background: #F7F9FC;
}

.stats-table td {
    padding: 16px;
    color: #262626;
    font-size: 14px;
}

.stats-table td:first-child {
    font-weight: 600;
    color: #4C7DFF;
}

.stats-table .rank-1 {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.stats-table .rank-2 {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.stats-table .rank-3 {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.stats-percentage {
    display: inline-block;
    padding: 4px 10px;
    background: #E6F0FF;
    color: #4C7DFF;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* 提醒条 */
.reminder-bar {
    background: linear-gradient(135deg, #FFF7E6 0%, #FFE7BA 100%);
    color: #D48806;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(250, 173, 20, 0.15);
    animation: slideDown 0.3s ease-out;
    border-bottom: 1px solid #FAAD14;
}

.reminder-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.reminder-icon {
    font-size: 20px;
    animation: shake 0.5s ease-in-out infinite;
}

.reminder-close {
    background: none;
    border: none;
    color: #D48806;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 1;
    transition: color 0.2s;
}

.reminder-close:hover {
    color: #AD6800;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* 提醒设置 */
.reminder-settings {
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #F0F0F0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.reminder-settings h3 {
    font-size: 10px;
    font-weight: 600;
    color: #8C8C8C;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reminder-note {
    margin-top: 6px;
    color: #8C8C8C;
    font-size: 9px;
    line-height: 1.4;
    font-weight: 400;
}

/* 提醒弹窗 */
.reminder-modal {
    z-index: 2000;
    background: transparent;
    backdrop-filter: none;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 30px;
}

.reminder-modal-content {
    max-width: 400px;
    width: 400px;
    text-align: center;
    padding: 0;
    overflow: hidden;
    animation: slideInFromRight 0.4s ease-out;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.2);
    background: white;
}

.reminder-modal-icon {
    background: linear-gradient(135deg, #FFF7E6 0%, #FFE7BA 100%);
    padding: 40px;
}

.reminder-bell {
    font-size: 80px;
    display: inline-block;
    animation: bellRing 1s ease-in-out infinite;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-15deg); }
    20%, 40% { transform: rotate(15deg); }
    50% { transform: rotate(0deg); }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(500px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.reminder-modal-body {
    padding: 32px 24px 24px;
}

.reminder-modal-body h2 {
    font-size: 24px;
    color: #262626;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.reminder-modal-body p {
    font-size: 16px;
    color: #8C8C8C;
    line-height: 1.6;
    margin-bottom: 16px;
}

.reminder-modal-time {
    background: #F7F9FC;
    padding: 16px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #262626;
    margin: 16px 0;
}

.reminder-modal-actions {
    padding: 0 24px 32px;
}

.btn-large {
    width: 100%;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

