diff --git a/platform/frontend/admin.html b/platform/frontend/admin.html index 601e5bf..8627685 100644 --- a/platform/frontend/admin.html +++ b/platform/frontend/admin.html @@ -16,14 +16,14 @@ .avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 14px; } .main-content { display: flex; flex: 1; max-width: 1400px; margin: 0 auto; width: 100%; } .sidebar { width: 180px; background: white; padding: 16px; box-shadow: 2px 0 8px rgba(0,0,0,0.05); } - .sidebar-btn { width: 100%; text-align: left; padding: 12px 16px; border: none; background: transparent; border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: all 0.3s; color: #606266; font-size: 14px; } - .sidebar-btn:hover { background: #f5f7fa; color: #409eff; } - .sidebar-btn.active { background: #ecf5ff; color: #409eff; font-weight: 600; } + + + .content-area { flex: 1; padding: 24px; overflow-y: auto; } .card { background: white; border-radius: 12px; padding: 24px; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); } .mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: white; box-shadow: 0 -2px 8px rgba(0,0,0,0.1); padding: 8px 0; z-index: 1000; } - .mobile-nav-btn { flex: 1; border: none; background: transparent; padding: 12px; text-align: center; font-size: 12px; color: #606266; cursor: pointer; } - .mobile-nav-btn.active { color: #409eff; font-weight: 600; } + + @media (max-width: 768px) { .sidebar { display: none; } .mobile-nav { display: flex; } @@ -66,6 +66,8 @@ } } + +