/* ========================================
   pc.css — PC端专属样式
   ======================================== */

/* Layout */
.pc-layout {
    display: flex;
    min-height: 100vh;
    background: #F0F2F5;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: var(--primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
}
.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.nav-item.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-left: 3px solid #4FC3F7;
}

.nav-icon { font-size: 18px; width: 24px; text-align: center; }
.nav-text { white-space: nowrap; }

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}
.sidebar-footer .user-name { display: block; font-weight: 500; color: #fff; }
.sidebar-footer .user-role { display: block; color: rgba(255,255,255,0.5); font-size: 12px; margin-bottom: 8px; }

/* Main Wrapper */
.main-wrapper {
    flex: 1;
    margin-left: 240px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Bar */
.top-bar {
    height: 56px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}

.breadcrumb { font-size: 13px; color: var(--text-secondary); }
.top-bar-actions { display: flex; align-items: center; gap: 16px; }
.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--danger);
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    cursor: pointer;
}
.current-time { font-size: 13px; color: var(--text-muted); }

/* Content Area */
.content-area {
    flex: 1;
    padding: 24px;
}

/* Page Header */
.page-header {
    margin-bottom: 24px;
}
.page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}
.page-header .welcome-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.page-header .role-badge {
    display: inline-block;
    padding: 2px 12px;
    background: var(--primary-lighter);
    color: var(--primary);
    border-radius: 12px;
    font-size: 12px;
    margin-left: 8px;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
    overflow-x: auto;
}
.tab-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s ease; }

/* Panel Toolbar */
.panel-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 16px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}
.quick-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.quick-icon { font-size: 32px; }
.quick-label { font-size: 13px; font-weight: 500; }

/* Schedule Grid */
.schedule-table {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.schedule-table th {
    background: var(--primary);
    color: #fff;
    padding: 12px;
    text-align: center;
}
.schedule-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid var(--border-light);
    min-height: 60px;
    vertical-align: middle;
    font-size: 12px;
}
.period-label { font-weight: 600; background: var(--bg-secondary); width: 60px; }
.cell-filled { background: var(--primary-lighter); color: var(--primary); cursor: pointer; border-radius: 4px; }
.cell-empty { color: var(--text-muted); cursor: pointer; }
.cell-empty:hover { background: var(--bg-tertiary); }

/* Todo Items */
.todo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
}
.todo-item:hover { background: var(--bg-secondary); }
.todo-item.urgent { border-left: 3px solid var(--danger); }
.todo-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--primary-lighter);
    color: var(--primary);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.todo-title { flex: 1; font-size: 14px; }
.todo-time { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* Notification Items */
.notification-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}
.notification-item.unread { background: #F0F7FF; }
.noti-icon { font-size: 20px; width: 32px; text-align: center; }
.noti-content { flex: 1; font-size: 13px; }
.noti-time { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* Stats Cards */
.analysis-cards, .monitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card, .monitor-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.stat-card h4, .monitor-card h4 {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.stat-value, .monitor-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

/* Ops Cards */
.ops-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.ops-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.ops-card h3 { font-size: 16px; margin-bottom: 8px; }
.ops-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    background: var(--bg-secondary);
    transition: all 0.2s;
    cursor: pointer;
}
.upload-area:hover, .upload-area.drag-over {
    border-color: var(--primary-light);
    background: var(--primary-lighter);
}
.upload-icon { font-size: 48px; margin-bottom: 12px; }

/* Chart Area */
.chart-area {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    min-height: 300px;
    box-shadow: var(--shadow-sm);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    margin-bottom: 24px;
    padding: 16px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
}
.pagination button {
    padding: 6px 12px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
}
.pagination button.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.progress-fill {
    height: 100%;
    background: var(--success);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Footer */
.main-footer {
    padding: 16px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    border-top: 1px solid var(--border);
    background: #fff;
}

/* Calendar View */
.calendar-view {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.calendar-day {
    padding: 8px;
    min-height: 80px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 12px;
}
.calendar-day .day-number { font-weight: 600; margin-bottom: 4px; }
.calendar-day.has-event { background: var(--primary-lighter); }
.calendar-day.today { border-color: var(--primary); }

/* Seating Area */
.seating-area {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    padding: 20px;
}
.seat {
    padding: 8px;
    text-align: center;
    background: var(--primary-lighter);
    border-radius: var(--radius-sm);
    font-size: 11px;
}
.seat.empty { background: var(--bg-tertiary); color: var(--text-muted); }

/* Config Groups */
.config-groups { display: grid; gap: 16px; }
.config-group {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}
.config-group h4 { margin-bottom: 12px; color: var(--text-primary); }
.config-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}
.config-item:last-child { border-bottom: none; }
.config-key { font-size: 13px; color: var(--text-secondary); }
.config-value { font-size: 13px; font-weight: 500; }

/* View all link */
.view-all { font-size: 13px; color: var(--primary-light); }
