* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    line-height: 1.5;
    font-size: 16px;
}

.container {
    max-width: 100%;
    min-height: 100vh;
    padding: 0;
}
/* 顶部用户信息 */
.user-header {
    display: flex;
    align-items: center;
    padding: 30px 20px 20px;
    background: transparent;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-right: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.welcome {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 6px;
}

.subject {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}
/* 右上角操作区域 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 优化后的托管类型切换器 */
.hosting-toggle {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 4px 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 36px;
    width: 100px;
}

.hosting-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hosting-toggle:active {
    transform: translateY(0);
}

.hosting-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
    height: 28px;
}

.hosting-slider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: calc(50% - 4px);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.hosting-slider.hosting-one {
    left: 4px;
    transform: translateX(0);
}

.hosting-slider.hosting-two {
    left: 4px;
    transform: translateX(100%);
}

.hosting-active {
    color: #667eea;
}
.notification {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.icon-notice {
    font-size: 18px;
    color: white;
}

/* 统计卡片 */
.stats-cards {
    display: flex;
    padding: 0 20px 20px;
    gap: 10px;
}

.stat-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.today::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.present::before {
    background: linear-gradient(90deg, #4CAF50, #45a049);
}

.absent::before {
    background: linear-gradient(90deg, #ff6b6b, #ee5a52);
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #7f8c8d;
    display: block;
}

.stat-badge, .stat-trend {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.stat-badge {
    background: #e3f2fd;
    color: #1976d2;
}

.stat-trend {
    background: #f0f9f0;
    color: #4CAF50;
}

.absent .stat-trend {
    background: #ffeaea;
    color: #ff6b6b;
}

/* 内容区域 */
.section {
    background: white;
    margin: 0 10px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 10px;
    border-bottom: 1px solid #f8f9fa;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

/* 班级选择器 - 优化样式 */
.class-selector {
    width: 236px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.class-selector::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.class-selector:hover::before {
    left: 100%;
}

.class-selector:hover {
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

.class-selector:active {
    transform: translateY(0);
}

/* 优化后的下拉框样式 */
.class-picker {
    width: 230px !important; /* 增加宽度确保文字完整显示 */
}

/* 美化下拉框样式 */
.class-picker .el-input__wrapper {
    background: white !important;
    border: none !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    padding: 12px 16px !important;
    height: 48px !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.class-picker .el-input__wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.class-picker .el-input__wrapper:hover::before {
    transform: scaleX(1);
}

.class-picker .el-input__wrapper:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2) !important;
    transform: translateY(-1px);
}

.class-picker .el-input__inner {
    color: #2c3e50 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-align: center;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.class-picker .el-input__suffix {
    color: #667eea !important;
    transition: transform 0.3s ease;
}

.class-picker .el-input__suffix-inner .el-icon {
    font-size: 20px !important;
    font-weight: bold;
}

.class-picker .el-input.is-focus .el-input__suffix {
    transform: rotate(180deg);
}

/* 下拉菜单样式美化 */
.el-select-dropdown {
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid #f0f0f0 !important;
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98) !important;
}

.el-select-dropdown__item {
    padding: 5px 20px !important;
    border-bottom: 1px solid #f8f9fa !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #5a6c7d !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 50px;
    line-height: 40px;
}

.el-select-dropdown__item:last-child {
    border-bottom: none !important;
}

.el-select-dropdown__item:hover {
    background: linear-gradient(135deg, #f8f9ff, #f0f4ff) !important;
    color: #667eea !important;
    transform: translateX(8px);
    padding-left: 28px !important;
}

.el-select-dropdown__item:hover::before {
    transform: scaleY(1);
}

/* 增强选中效果 */
.el-select-dropdown__item.is-selected {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    font-weight: 700 !important;
    /*transform: translateX(8px);*/
    padding-left: 28px !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 1;
}

.el-select-dropdown__item.is-selected::before {
    transform: scaleY(1);
    background: white;
}

.el-select-dropdown__item.is-selected::after {
    content: '✓';
    position: absolute;
    right: 20px;
    font-weight: bold;
    font-size: 16px;
    animation: checkmark 0.3s ease;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 课程信息卡片 */
.course-info-card {
    padding: 15px 20px;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.course-name {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
    margin-right: 10px;
}

.course-badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.course-badge1 {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1976d2;
    border: 1px solid #90caf9;
}

.course-badge2 {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    color: #7b1fa2;
    border: 1px solid #ce93d8;
}

.course-badge3 {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    color: #388e3c;
    border: 1px solid #a5d6a7;
}

.course-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-icon {
    font-size: 16px;
    width: 20px;
}

.detail-text {
    font-size: 16px;
    color: #5a6c7d;
}

.attendance-status {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    justify-content: space-around;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.status-label {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 4px;
}

.status-value {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.present-count {
    color: #4CAF50;
}

.absent-count {
    color: #ff6b6b;
}

.status-divider {
    width: 1px;
    background: #e0e0e0;
    margin: 0 10px;
}

/* 操作工具栏 - 吸顶效果 */
.action-toolbar {
    background: white;
    margin: 0 10px 10px;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 100;
}

.action-toolbar.sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 12px 12px;
    margin: 0;
    padding: 15px 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 0 15px;
    margin-bottom: 15px;
    height: 40px;
}

.icon-search {
    font-size: 16px;
    color: #7f8c8d;
    margin-right: 10px;
}

.search-input {
    flex: 1;
    height: 100%;
    font-size: 16px;
    color: #2c3e50;
    border: none;
    background: transparent;
    outline: none;
}

.icon-clear {
    font-size: 18px;
    color: #bdc3c7;
    padding: 5px;
    cursor: pointer;
}

.toolbar-buttons {
    display: flex;
    /*gap: 10px;*/
}

.btn {
    flex: 1;
    height: 44px;
    border-radius: 11px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:active {
    transform: scale(0.98);
}

.btn-mark {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #d63031;
}

.btn-all {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    color: #0984e3;
}

.student-count {
    font-size: 14px;
    color: #7f8c8d;
}

/* 学生列表 - 优化选中效果 */
.student-list-container {
    padding: 15px 20px;
}

.student-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
    margin-bottom: 8px;
    padding: 16px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

/* 出勤学生突出显示样式 */
.student-item.present {
    background: linear-gradient(135deg, #f0fff4, #e6fffa);
    border: 2px solid #c6f6d5;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.15);
    position: relative;
}

.student-item.present::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(72, 187, 120, 0.2), transparent);
    transition: left 0.5s ease;
}

.student-item.present:hover::before {
    left: 100%;
}

.student-item.present:hover {
    background: linear-gradient(135deg, #e6fffa, #d1f7e9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.25);
    border-color: #9ae6b4;
}

.student-item.present .student-avatar {
    background: linear-gradient(135deg, #48bb78, #38a169);
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.4);
    position: relative;
}

.student-item.present .student-name {
    color: #2f855a;
    font-weight: 700;
}

.student-item.present .attendance-status {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
    border: none;
}

/* 缺勤学生突出显示样式 */
.student-item.absent {
    background: linear-gradient(135deg, #fff5f5, #ffeaea);
    border: 2px solid #ffcdd2;
    /*animation: pulse 2s infinite;*/
    position: relative;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.15);
}

.student-item.absent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.2), transparent);
    transition: left 0.5s ease;
}

.student-item.absent:hover::before {
    left: 100%;
}

.student-item.absent:hover {
    background: linear-gradient(135deg, #ffeaea, #ffdbdb);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
    border-color: #ff8a8a;
}

.student-item.absent .student-avatar {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    position: relative;
}

.student-item.absent .student-name {
    color: #d63031;
    font-weight: 700;
}

.student-item.absent .attendance-status {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    border: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

.student-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.student-item:hover::before {
    left: 100%;
}

.student-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e1e8ff;
}

.student-item.selected {
    background: linear-gradient(135deg, #f0f7ff, #e6f7ff);
    border: 2px solid #1890ff;
    box-shadow: 0 6px 20px rgba(24, 144, 255, 0.15);
    transform: translateY(-2px);
}

.student-item.selected::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 24px 24px 0;
    border-color: transparent #1890ff transparent transparent;
}

.student-item.selected::before {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 4px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.student-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.student-item.selected .student-avatar {
    background: linear-gradient(135deg, #1890ff, #36cfc9);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
}

.student-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.student-name {
    font-weight: 600;
    font-size: 18px;
    color: #2c3e50;
    transition: all 0.3s ease;
}
.student-id {
    font-size: 16px;
    color: #999;
}
.student-item.selected .student-name {
    color: #1890ff;
    font-weight: 700;
}

.attendance-status {
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 70px;
    text-align: center;
}

.status-present {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #4CAF50;
    border: 1px solid #c8e6c9;
}

.status-absent {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #f44336;
    border: 1px solid #ffcdd2;
}

.student-item.selected .attendance-status {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Element Plus 单选按钮样式 - 隐藏 radio 标签 */
.el-radio-group {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.el-radio {
    margin-right: 0;
}

/* 隐藏 radio 组件的标签文本 */
.el-radio .el-radio__label {
    display: none !important;
}
.main-content {
    padding-bottom: 70px;
}
/* 按钮样式覆盖 */
.el-button--mark {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%) !important;
    border: none !important;
    color: #d63031 !important;
    height: 44px !important;
    border-radius: 11px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    flex: 1;
}

.el-button--all {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border: none !important;
    color: white !important;
    height: 44px !important;
    border-radius: 11px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    flex: 1;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.el-button--select {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%) !important;
    border: none !important;
    color: #0984e3 !important;
    height: 44px !important;
    border-radius: 11px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    flex: 1;
}

/* 搜索框样式覆盖 */
.el-input {
    border-radius: 25px !important;
    overflow: hidden !important;
}

.el-input .el-input__inner {
    border: none !important;
    background: #f8f9fa !important;
    padding-left: 40px !important;
    font-size: 16px !important;
    border-radius: 25px !important;
}

.el-input .el-input__prefix {
    left: 15px !important;
    color: #7f8c8d !important;
}

.el-input .el-input__suffix {
    right: 15px !important;
}

.el-input .el-input__clear {
    color: #bdc3c7 !important;
}

.search-box .el-input__wrapper {
    background: transparent;
    box-shadow: 0 0 0 0;
}

.search-box .el-input__wrapper .el-input__inner {
    background: transparent;
    box-shadow: 0 0 0 0;
    padding-left: 0 !important;
}

.el-dialog {
    border-radius: 20px !important;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.el-dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    z-index: 1;
}

.dialog-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.08) 0%, transparent 40%),
            radial-gradient(circle at 90% 80%, rgba(118, 75, 162, 0.08) 0%, transparent 40%),
            radial-gradient(circle at 50% 50%, rgba(240, 147, 251, 0.05) 0%, transparent 50%),
            linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 70%;
    right: 10%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    width: 50px;
    height: 50px;
    top: 30%;
    right: 5%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.dialog-content {
    padding: 0 5px;
    position: relative;
    z-index: 2;
}

.dialog-user-info {
    display: flex;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.dialog-user-info::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, transparent);
}

.dialog-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin-right: 15px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.dialog-user-details {
    flex: 1;
}

.dialog-user-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
    color: #2c3e50;
}

.dialog-user-id {
    font-size: 13px;
    color: #7f8c8d;
}

.dialog-attendance-status {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    gap: 12px;
}

.status-option {
    flex: 1;
    text-align: center;
    padding: 15px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(233, 236, 239, 0.8);
    background: rgba(248, 249, 250, 0.8);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.status-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: all 0.3s ease;
}

.status-option:active {
    transform: scale(0.95);
}

.status-option.active {
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.status-option.present.active {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.status-option.present.active::before {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.status-option.absent.active {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.status-option.absent.active::before {
    background: linear-gradient(90deg, #e74c3c, #e67e22);
}

.status-icon {
    font-size: 24px;
    margin-bottom: 6px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-text {
    font-size: 14px;
    font-weight: 600;
}

.status-desc {
    font-size: 11px;
    margin-top: 3px;
    opacity: 0.8;
}

.reason-input {
    margin-top: 15px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dialog-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 12px;
}

.footer-button {
    flex: 1;
    height: 45px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.footer-button:active {
    transform: scale(0.98);
}

.el-dialog__header {
    padding: 20px 20px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(233, 236, 239, 0.5);
    background: transparent;
    position: relative;
}

.el-dialog__title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    position: relative;
}

.el-dialog__title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.el-dialog__body {
    padding: 20px;
    background: transparent;
}

.el-dialog__footer {
    padding: 0 20px 20px;
    background: transparent;
}

.el-textarea__inner {
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
    font-size: 14px;
    resize: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

.el-textarea__inner:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
    background: white;
}
.dialog-info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(245, 245, 245, 0.8);
    font-size: 14px;
}

.dialog-info-label {
    color: #7f8c8d;
}

.dialog-info-value {
    color: #2c3e50;
    font-weight: 500;
}
/* 安全区域适配 */
.safe-area-bottom {
    height: env(safe-area-inset-bottom);
    /*background: var(--bg-primary);*/
}
.custom-class-select-dropdown{border-radius: unset !important;}