* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: none;
}

body {
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* 统一的背景视频样式 */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
}

/* 如果没有视频时的备用渐变背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -2;
}

/* 主容器 - 确保内容居中 */
.main-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 居中内容区域 */
.center-content {
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

/* 头像样式 */
.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    display: block;
}

.avatar:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

/* 时间容器样式 */
.time-container {
    margin-top: 30px;
    transition: all 0.4s ease;
    width: 100%;
    text-align: center;
}

.time-container.hidden {
    opacity: 0;
    transform: translateY(-20px);
    display: none;
}

/* 时间显示样式 */
.date-section {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.time-section {
    font-size: 3em;
    font-weight: bold;
    letter-spacing: 4px;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
}

/* 登录容器样式 */
.login-container {
    margin-top: 30px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    display: none;
}

.login-container.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

/* 登录表单样式 */
.login-form {
    width: 100%;
    padding: 35px 30px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.login-form input {
    width: 100%;
    padding: 16px;
    margin: 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 52px;
    box-sizing: border-box;
}

.login-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.login-form button {
    width: 100%;
    padding: 16px;
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: bold;
    min-height: 52px;
}

.login-form button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.login-hint {
    margin-top: 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* 主页样式 */
.homepage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1000;
    display: none;
}

.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    cursor: pointer;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

.user-role {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

/* 返回登录页按钮 */
.back-login-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 0.9em;
}

.back-login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 40px 25px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.sidebar-user-info {
    flex: 1;
}

#sidebarUsername {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.sidebar-user-role {
    font-size: 0.9em;
    opacity: 0.8;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid transparent;
}

.menu-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-left-color: #667eea;
    transform: translateX(5px);
}

.menu-icon {
    font-size: 1.3em;
    margin-right: 15px;
    width: 24px;
    text-align: center;
}

.menu-text {
    font-size: 1em;
    font-weight: 500;
}

.menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 15px 25px;
}

.logout-item {
    margin-top: 20px;
    color: #e74c3c;
}

.logout-item:hover {
    background: rgba(231, 76, 60, 0.1);
    border-left-color: #e74c3c;
}

.main-content {
    padding: 40px;
    color: white;
    height: calc(100% - 80px);
    overflow-y: auto;
    transition: all 0.3s ease;
}

.welcome-section {
    text-align: center;
    margin-bottom: 50px;
}

.welcome-section h1 {
    font-size: 3em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-section p {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* 通知样式 */
#custom-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    color: #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
}

#custom-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    font-size: 1.2em;
}

.notification-message {
    flex: 1;
    font-size: 0.95em;
    line-height: 1.4;
}
/* 管理员专属样式 */
.admin-only {
    display: none ;
}

.admin-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    margin-bottom: 25px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.add-user-form {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    margin-bottom: 5px;
}

.form-input, .form-select {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    backdrop-filter: blur(10px);
    min-height: 44px;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.add-user-btn {
    padding: 12px 20px;
    background: rgba(102, 126, 234, 0.8);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    min-height: 44px;
}

.add-user-btn:hover {
    background: rgba(102, 126, 234, 1);
    transform: translateY(-2px);
}

.users-list {
    margin-top: 20px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.refresh-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.user-role {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

.user-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8em;
}

.loading, .no-users {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 40px;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .user-item {
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }
}

/* 页面内容样式 */
.page-content {
    display: none;
}

/* 开发中提示 */
.coming-soon {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2em;
}

.coming-soon p {
    margin: 0;
}

