:root {
    --primary: #1e40af;
    --secondary: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --light: #f3f4f6;
    --dark: #1f2937;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'system-ui', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    min-height: 100vh;
}

.flex { display: flex; }
.flex-1 { flex: 1; }
.hidden { display: none !important; }
.relative { position: relative; }
.absolute { position: absolute; }

.h-screen { height: 100vh; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

.m-2 { margin: 0.5rem; }
.m-4 { margin: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.ml-auto { margin-left: auto; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-card { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-dropdown { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-r { border-right-width: 1px; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-blue-700 { border-color: var(--primary); }

.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-success { background-color: var(--success); }
.bg-warning { background-color: var(--warning); }
.bg-danger { background-color: var(--danger); }
.bg-info { background-color: var(--info); }
.bg-light { background-color: var(--light); }
.bg-dark { background-color: var(--dark); }
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-500 { background-color: var(--secondary); }
.bg-blue-600 { background-color: #2563eb; }
.bg-blue-700 { background-color: var(--primary); }
.bg-green-50 { background-color: #ecfdf5; }
.bg-green-500 { background-color: var(--success); }
.bg-red-500 { background-color: var(--danger); }

.text-white { color: #ffffff; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-blue-600 { color: #2563eb; }
.text-blue-800 { color: #1e40af; }
.text-green-600 { color: #059669; }
.text-green-800 { color: #047857; }
.text-yellow-800 { color: #854d0e; }
.text-red-600 { color: #dc2626; }
.text-red-800 { color: #991b1b; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.w-4 { width: 1rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-64 { width: 16rem; }
.w-full { width: 100%; }

.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-16 { height: 4rem; }

.min-h-6 { min-height: 1.5rem; }
.min-h-8 { min-height: 2rem; }

.whitespace-nowrap { white-space: nowrap; }

.cursor-pointer { cursor: pointer; }

.transition-colors { transition: background-color, color, border-color 0.2s ease; }
.transition-all { transition: all 0.3s ease; }
.transition-transform { transition: transform 0.2s ease; }

.translate-y-10 { transform: translateY(2.5rem); }
.opacity-0 { opacity: 0; }
.opacity-80 { opacity: 0.8; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }

.divide-y > * + * { border-top-width: 1px; border-color: #e5e7eb; }

.container { max-width: 1200px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.content-auto { content-visibility: auto; }

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

.transition-height { transition: height 0.3s ease; }

.calendar-cell { min-height: 80px; }

.shift-cell {
    cursor: pointer;
    transition: all 0.2s ease;
}

.shift-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dragging { opacity: 0.5; z-index: 100; }

.drop-target {
    background-color: rgba(59, 130, 246, 0.1);
    border: 2px dashed #3b82f6;
}

.layout-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 16rem;
    background-color: var(--primary);
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--primary);
}

.sidebar-nav {
    flex: 1;
    margin-top: 1rem;
}

.sidebar-nav ul { list-style: none; }

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s;
}

.sidebar-nav li a:hover {
    background-color: var(--secondary);
}

.sidebar-nav li a.active {
    background-color: var(--secondary);
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--primary);
    position: absolute;
    bottom: 0;
    width: 100%;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    background-color: var(--light);
}

.top-bar {
    background-color: white;
    padding: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-container {
    padding: 1rem;
}

.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.nav-btn {
    padding: 0.5rem;
    border-radius: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.nav-btn:hover { background-color: #f3f4f6; }

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover { background-color: #1e3a8a; }

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover { background-color: #2563eb; }

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover { background-color: #059669; }

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover { background-color: #dc2626; }

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-body { margin-bottom: 1rem; }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.notification {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 1001;
}

.right-panel {
    width: 320px;
    background-color: white;
    border-left: 1px solid #e5e7eb;
    padding: 1rem;
    overflow-y: auto;
    box-shadow: -4px 0 6px -1px rgba(0, 0, 0, 0.1);
}

.form-group { margin-bottom: 1rem; }

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background-color: white;
}

.form-select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.table { width: 100%; border-collapse: collapse; }

.table th {
    padding: 0.75rem 1.5rem;
    background-color: #f9fafb;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    padding: 1rem 1.5rem;
    white-space: nowrap;
}

.color-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    display: inline-block;
    margin-right: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-yellow { background-color: #fef3c7; color: #854d0e; }
.badge-green { background-color: #d1fae5; color: #047857; }
.badge-red { background-color: #fee2e2; color: #991b1b; }
.badge-blue { background-color: #dbeafe; color: #1e40af; }

.tab-bar {
    display: none;
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .tab-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: white;
        border-top: 1px solid #e5e7eb;
        z-index: 100;
    }
    .tab-bar-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0.5rem;
        color: #6b7280;
        text-decoration: none;
        font-size: 0.75rem;
    }
    .tab-bar-item.active { color: var(--primary); }
    .tab-bar-item i { font-size: 1.25rem; margin-bottom: 0.25rem; }
    .main-content { padding-bottom: 4rem; }
    .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .grid-cols-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .grid-cols-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .top-bar { flex-direction: column; gap: 1rem; }
    .top-bar > div:first-child { flex-wrap: wrap; justify-content: center; }
    .top-bar > div:last-child { flex-wrap: wrap; justify-content: center; }
}

@media (min-width: 769px) {
    .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .text-4xl { font-size: 1.875rem; }
    .text-5xl { font-size: 2.5rem; }
    .p-4 { padding: 0.75rem; }
    .py-8 { padding-top: 1rem; padding-bottom: 1rem; }
}

.col-span-full { grid-column: 1 / -1; }

@keyframes bounce {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-bounce { animation: bounce 0.6s ease-out; }
.animate-spin { animation: spin 1s linear infinite; }

.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background-color: #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-switch.active { background-color: var(--success); }

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch.active::after { transform: translateX(24px); }

.select-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
}

.select-list-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.select-list-item:hover { background-color: #f3f4f6; }
.select-list-item.selected { background-color: #dbeafe; color: var(--primary); }

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.calendar-header-cell {
    text-align: center;
    font-weight: 500;
    color: #6b7280;
    padding: 0.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.875rem;
}

.calendar-day:hover { background-color: #f3f4f6; }
.calendar-day.today { background-color: var(--secondary); color: white; }
.calendar-day.other-month { color: #d1d5db; }
.calendar-day.has-shift { border: 2px solid var(--secondary); }

.day-shift {
    font-size: 0.625rem;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    margin-top: 0.125rem;
    color: white;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.week-view-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.25rem;
}

.week-view-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.employee-cell {
    background-color: #f9fafb;
    padding: 0.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    margin-right: 0.5rem;
}

.avatar-blue { background-color: var(--secondary); }
.avatar-green { background-color: var(--success); }
.avatar-purple { background-color: #8b5cf6; }
.avatar-orange { background-color: #f97316; }
.avatar-pink { background-color: #ec4899; }
.avatar-teal { background-color: #14b8a6; }

.color-picker {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-option {
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}

.color-option:hover { transform: scale(1.1); }
.color-option.selected { border-color: #111827; }

.stat-card {
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
}

.stat-card-blue { background-color: #eff6ff; }
.stat-card-green { background-color: #ecfdf5; }
.stat-card-yellow { background-color: #fef3c7; }
.stat-card-red { background-color: #fef2f2; }

.tooltip {
    position: absolute;
    background-color: #1f2937;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    z-index: 1000;
    pointer-events: none;
    white-space: nowrap;
}

.search-box {
    display: flex;
    flex: 1;
}

.search-box input { flex: 1; }
.search-box select { border-left: none; }

/* 手机版样式 */
.mobile-view {
    font-size: 16px;
}

.mobile-view body {
    padding-bottom: 4rem;
}

.mobile-view .sidebar {
    transform: translateX(-100%);
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 70%;
    max-width: 280px;
    z-index: 100;
    transition: transform 0.3s ease;
}

.mobile-view .sidebar.open {
    transform: translateX(0);
}

.mobile-view .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding-bottom: 4rem;
}

.mobile-view header {
    padding: 0.5rem;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 50;
    background: white;
}

.mobile-view header h1 {
    font-size: 1rem;
}

.mobile-view header h2 {
    font-size: 0.875rem;
}

.mobile-view #toggle-device {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.mobile-view #toggle-device i {
    margin-right: 0.25rem;
}

.mobile-view #toggle-device span {
    display: inline;
}

.mobile-view .view-content {
    padding: 0.5rem;
}

.mobile-view .view-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.mobile-view .view-header select {
    width: 100%;
}

.mobile-view .calendar-grid {
    overflow-x: auto;
}

.mobile-view .calendar-grid .grid {
    min-width: 600px;
}

.mobile-view .calendar-grid .grid-cols-8 {
    grid-template-columns: 80px repeat(7, 1fr);
}

.mobile-view .calendar-cell {
    min-height: 50px;
    padding: 0.25rem;
}

.mobile-view .calendar-cell .shift-cell {
    font-size: 0.625rem;
    padding: 0.25rem;
}

.mobile-view .grid-cols-2 {
    grid-template-columns: 1fr;
}

.mobile-view .p-6 {
    padding: 0.75rem;
}

.mobile-view .p-4 {
    padding: 0.75rem;
}

.mobile-view .bg-white.rounded-lg {
    padding: 0.75rem;
}

.mobile-view .gap-4 {
    gap: 0.5rem;
}

.mobile-view #random-select-view {
    padding: 0.5rem;
}

.mobile-view #random-select-view .grid {
    grid-template-columns: 1fr;
}

.mobile-view #random-select-view .bg-blue-50,
.mobile-view #random-select-view .bg-green-50 {
    padding: 1rem 0.5rem;
}

.mobile-view #random-select-view .text-4xl {
    font-size: 1.5rem;
}

.mobile-view #random-select-view #start-random-select {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    width: 100%;
}

.mobile-view #result-employees {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
}

.mobile-view #result-employees .bg-white {
    padding: 0.75rem 0.5rem;
}

.mobile-view .employee-card,
.mobile-view .shift-card {
    margin-bottom: 0.5rem;
}

.mobile-view .modal-content {
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.mobile-view .modal-content input,
.mobile-view .modal-content select,
.mobile-view .modal-content textarea {
    font-size: 16px;
}

.mobile-view button {
    min-height: 44px;
    touch-action: manipulation;
}

.mobile-view select {
    min-height: 44px;
}

.mobile-view input[type="checkbox"],
.mobile-view input[type="radio"] {
    width: 24px;
    height: 24px;
}

/* 底部导航栏 - 手机版 */
.mobile-view .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    color: white;
    padding: 0.5rem 0.25rem;
    justify-content: space-around;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.mobile-view .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    min-width: 60px;
    flex: 1;
}

.mobile-view .bottom-nav-item:hover,
.mobile-view .bottom-nav-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.mobile-view .bottom-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.125rem;
}

.mobile-view .bottom-nav-item span {
    font-size: 0.625rem;
    margin-top: 0.125rem;
}

.mobile-view .right-panel {
    position: fixed;
    right: -100%;
    top: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    z-index: 200;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-view .right-panel.open {
    right: 0;
}

.mobile-view .panel-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
}

.mobile-view .panel-overlay.open {
    display: block;
}

/* 响应式媒体查询 */
@media (max-width: 768px) {
    .sidebar {
        width: 12rem;
    }
    
    .main-content {
        margin-left: 12rem;
    }
    
    .grid-cols-8 {
        grid-template-columns: 80px repeat(7, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sidebar {
        width: 10rem;
    }
    
    .main-content {
        margin-left: 10rem;
    }
    
    header {
        padding: 0.5rem;
    }
    
    header h2 {
        font-size: 1rem;
    }
}
