* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 抖动动画 */
@keyframes shake {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-2px);
    }
    75% {
        transform: translateY(2px);
    }
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    height: 100vh;
    overflow: hidden;
}

.main-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.main-header {
    background: white;
    color: #333;
    padding: 0.5rem 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #eee;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.logo-section {
    display: flex;
    align-items: center;
    color: white;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    background-color: #ffffff;
    animation: shake 3s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-section h1 {
    font-size: 1.2rem;
    margin-right: 10px;
    color: #4CAF50;
}

.class-status {
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    text-decoration: underline;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.class-status:hover {
    background: #f0f0f0;
}

.class-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    color: #333;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    min-width: 150px;
}

.class-status-container:hover .class-dropdown {
    display: block;
}

.dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.dropdown-item:hover {
    background: #f0f0f0;
}

.search-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    margin-right: 10px;
    width: 200px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sort-btn {
    background: white;
    color: #666;
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sort-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.sort-dropdown {
    position: relative;
}

.sort-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    width: 220px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.sort-dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.sort-option {
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
    padding: 12px 16px;
    font-size: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}

.sort-option:hover {
    background: #f3f4f6;
}

.sort-option span {
    flex: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.action-btn {
    background: white;
    color: #666;
    border: 1px solid #ddd;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.action-btn.primary {
    background: #ff9800;
    color: white;
    border-color: #ff9800;
}

.header-right {
    display: flex;
    gap: 10px;
}

.header-btn {
    background: white;
    color: #666;
    border: 1px solid #ddd;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.15) 100%);
    padding: 20px;
    overflow-y: auto;
    background-size: 100% 100%;
    background-attachment: fixed;
}

.welcome-section {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    align-self: center;
    margin-top: 50px;
}

.welcome-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #4CAF50;
}

.hint {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
}

.primary-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

.primary-btn:hover {
    background: linear-gradient(135deg, #ee5a6f, #cc4b5c);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 107, 107, 0.4);
}

.lock-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1500;
    display: none;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-header h3 {
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #666;
}

/* 编辑班级按钮样式 */
.edit-class-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    margin-left: 10px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.edit-class-btn:hover {
    background: #f0f0f0;
    color: #333;
    transform: scale(1.1);
}

.edit-class-btn svg {
    width: 14px;
    height: 14px;
}

/* 编辑班级模态框样式 */
.edit-class-modal {
    max-width: 400px;
    width: 90%;
    border-radius: 12px;
}

.edit-class-modal .form-group {
    margin-bottom: 20px;
}

.edit-class-modal label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.edit-class-modal .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.edit-class-modal .form-control:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
}

.edit-class-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

.edit-class-modal .cancel-btn {
    background: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-class-modal .cancel-btn:hover {
    background: #e0e0e0;
}

.edit-class-modal .confirm-btn {
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-class-modal .confirm-btn:hover {
    background: linear-gradient(135deg, #f57c00, #e64a19);
    transform: translateY(-2px);
}

.modal-body {
    padding: 1.8rem;
    background: #f9f9f9;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.class-form {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.class-form h4,
.class-list h4 {
    margin-bottom: 1rem;
    color: #4CAF50;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.class-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.class-item {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
}

.class-item h4,
.student-item h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.class-item p,
.student-item p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.student-item {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #2196F3;
}

.student-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.egg-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
    width: 100%;
}

.egg-item {
    background: white;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 180px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.egg-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.egg-icon {
    width: 100%;
    height: 160px;
    background: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=colorful%20cute%20egg%20with%20rainbow%20colors%20and%20sparkles&image_size=square') no-repeat center;
    background-size: contain;
    animation: shake 3s ease-in-out infinite 0.5s;
    position: relative;
}

.egg-icon.has-pet {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.pet-level {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 50%, #a18cd1 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.change-pet-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(252, 211, 77, 0.5);
    border-radius: 0.5rem;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    z-index: 20;
}

.change-pet-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.change-pet-btn:active {
    background: #d97706;
    color: white;
    border: 1px solid rgba(252, 211, 77, 0.5);
}

.egg-item-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.egg-name {
    font-weight: bold;
    color: #333;
    font-size: 1rem;
    margin-bottom: 8px;
}

.pet-name {
    font-size: 0.9rem;
    color: #4CAF50;
    font-weight: bold;
    margin-bottom: 8px;
}

.egg-id {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
}

.growth-section {
    margin-top: 8px;
}

.growth-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.growth-bar {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.growth-progress {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #81C784);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.next-level-hint {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    text-align: right;
}

.egg-btn {
    background: #ff9800;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 8px;
}

.egg-btn:hover {
    background: #f57c00;
}

.lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    display: none;
}

.lock-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.lock-content h3 {
    margin-bottom: 1rem;
    color: #333;
}

/* 登录/注册相关样式 */
.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    background: #f9f9f9;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    transition: all 0.3s;
}

.auth-tab.active {
    background: #4CAF50;
    color: white;
}

.auth-form {
    margin-top: 1rem;
}

/* 会员中心相关样式 */
.membership-info {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
}

.membership-info h4 {
    margin-bottom: 1rem;
    color: #4CAF50;
}

.membership-plans h4 {
    margin-bottom: 1.5rem;
    color: #4CAF50;
}

.plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.plan-card {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.plan-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.plan-card.recommended {
    border: 2px solid #4CAF50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.2);
}

.plan-card h5 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.plan-saving {
    font-size: 0.9rem;
    color: #ff9800;
    margin-bottom: 1rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.plan-features li {
    margin-bottom: 0.5rem;
    padding-left: 20px;
    position: relative;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.subscribe-btn {
    width: 100%;
    margin-top: 1rem;
}

/* 领养宠物模态框样式 */
.pet-search {
    margin-bottom: 1rem;
}

.pet-filter {
    margin-bottom: 1.5rem;
}

.pet-filter select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.pet-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.pet-item {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.pet-item:hover {
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.pet-item h5 {
    margin-bottom: 0.5rem;
    color: #333;
}

.pet-item p {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.pet-item .pet-type {
    font-size: 0.7rem;
    color: #999;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.pet-item button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s;
}

.pet-item button:hover {
    background: #45a049;
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-section {
        margin-top: 1rem;
        width: 100%;
    }

    .user-section {
        margin-top: 1rem;
        width: 100%;
        justify-content: space-between;
    }

    .search-input {
        flex: 1;
        padding: 6px 10px;
        border: 2px solid rgba(255, 255, 255, 0.5);
        border-radius: 4px;
        width: 180px;
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .header-right {
        flex-wrap: wrap;
        margin-top: 1rem;
    }

    .action-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .welcome-section {
        padding: 2rem;
    }

    .welcome-section h2 {
        font-size: 1.5rem;
    }

    .class-items {
        grid-template-columns: 1fr;
    }

    .plan-cards {
        grid-template-columns: 1fr;
    }

    .auth-tabs {
        flex-direction: column;
    }

    .auth-tab {
        margin-bottom: 5px;
        border-radius: 5px;
    }
}

/* 班级管理新样式 */
.class-management-modal {
    max-width: 800px;
    height: 80vh;
}

.class-management-body {
    display: flex;
    padding: 0;
    height: calc(100% - 60px);
}

.class-list-section {
    width: 300px;
    border-right: 1px solid #eee;
    padding: 1rem;
    overflow-y: auto;
    background: #fafafa;
}

.class-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.class-list-title {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.add-class-btn {
    background: none;
    border: none;
    color: #ff9800;
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.3s;
}

.add-class-btn:hover {
    background: #fff3e0;
    color: #f57c00;
}

.no-class {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    color: #999;
}

.no-class-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-class-text {
    font-size: 0.9rem;
}

.class-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.class-item {
    padding: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    border-left: 3px solid transparent;
    background: white;
}

.class-item:hover {
    background: #f5f5f5;
}

.class-item.active {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.class-item .class-name {
    font-weight: bold;
    margin-bottom: 0.2rem;
    color: #333;
}

.class-item .class-code {
    font-size: 0.8rem;
    color: #666;
}

.action-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background: white;
}

.action-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.action-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.action-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    max-width: 400px;
}

/* 创建班级弹窗 */
.create-class-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    display: none;
}

.create-class-content {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
}

.create-class-content h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-primary {
    background: #ff9800;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #f57c00;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

@media (max-width: 768px) {
    .class-management-modal {
        max-width: 95%;
    }
    
    .class-list-section {
        width: 250px;
    }
    
    .form-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .student-input {
        width: 100%;
    }
    
    .add-btn {
        align-self: stretch;
    }
}

/* 班级详情和学生管理样式 */
.class-details {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.class-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

#class-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.student-count {
    font-size: 0.9rem;
    color: #666;
    background: #f5f5f5;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.add-student-form {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.form-title {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.close-form-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-content {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.student-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.name-input {
    flex: 2;
}

.id-input {
    flex: 1;
}

.add-btn {
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.add-btn:hover {
    background: #f57c00;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.4);
}

.student-list-section {
    flex: 1;
    overflow-y: auto;
}

.student-list-section h4 {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

/* 搜索框样式 */
.search-container {
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.1);
}

/* 学生列表 */
.student-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.student-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
}

.student-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.student-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.student-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.student-details {
    flex: 1;
}

.student-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.25rem;
}

.student-id {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.student-class {
    font-size: 0.8rem;
    color: #999;
}

.student-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #f5f5f5;
    color: #666;
}

.edit-btn:hover {
    color: #2196f3;
}

.delete-btn:hover {
    color: #f44336;
}

/* 选中班级的样式 */
.class-item.active {
    background: #fff3e0;
    border-left-color: #ff9800;
    font-weight: bold;
}

/* 学生编辑弹窗样式 */
.edit-student-modal {
    max-width: 500px;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 空状态 */
.empty-students {
    text-align: center;
    padding: 2rem;
    color: #999;
}

.empty-students-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 卡片式学生项目样式 */
.group {
    position: relative;
}

.group:hover .opacity-0 {
    opacity: 1;
}

.transition-all {
    transition: all 0.3s ease;
}

.hover\:border-amber-300:hover {
    border-color: #fcd34d;
}

.hover\:shadow-md:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.hover\:-translate-y-0\.5:hover {
    transform: translateY(-0.125rem);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.p-4 {
    padding: 1rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.border {
    border: 1px solid #e5e7eb;
}

.border-white {
    border-color: #ffffff;
}

.bg-white {
    background-color: #ffffff;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: 1rem;
}

.overflow-hidden {
    overflow: hidden;
}

.flex-1 {
    flex: 1;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to));
}

.from-indigo-500 {
    --tw-gradient-from: #6366f1;
}

.to-indigo-400 {
    --tw-gradient-to: #818cf8;
}

.text-white {
    color: #ffffff;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.font-black {
    font-weight: 900;
}

.shrink-0 {
    flex-shrink: 0;
}

.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-indigo-100 {
    --tw-shadow-color: #e0e7ff;
    --tw-shadow: var(--tw-shadow-colored);
}

.min-w-0 {
    min-width: 0;
}

.text-gray-800 {
    color: #1f2937;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leading-tight {
    line-height: 1.25;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-gray-500 {
    color: #6b7280;
}

.font-medium {
    font-weight: 500;
}

.text-gray-400 {
    color: #9ca3af;
}

.gap-1 {
    gap: 0.25rem;
}

.opacity-0 {
    opacity: 0;
}

.group:hover .opacity-0 {
    opacity: 1;
}

.p-2\.5 {
    padding: 0.625rem;
}

.hover\:text-indigo-500:hover {
    color: #6366f1;
}

.hover\:bg-indigo-50:hover {
    background-color: #eef2ff;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.hover\:text-red-500:hover {
    color: #ef4444;
}

.hover\:bg-red-50:hover {
    background-color: #fee2e2;
}

/* 加减分模态框样式 */
.score-modal {
    max-width: 800px;
}

.score-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.score-tab {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.score-tab.active {
    background: #ff9800;
    color: white;
    border-color: #ff9800;
}

.score-section h4 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.score-items-container {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f9f9f9;
}

.score-items-container::-webkit-scrollbar {
    width: 8px;
}

.score-items-container::-webkit-scrollbar-track {
    background: #f9f9f9;
    border-radius: 4px;
}

.score-items-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.score-items-container::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}

.score-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f9f9f9;
}

.score-items::-webkit-scrollbar {
    width: 8px;
}

.score-items::-webkit-scrollbar-track {
    background: #f9f9f9;
    border-radius: 4px;
}

.score-items::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.score-items::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}

.score-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.score-item:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.score-item-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.score-item-name {
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

.score-item-value {
    font-size: 12px;
    font-weight: bold;
    color: #4CAF50;
    background: #e8f5e8;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.score-item-value.negative {
    color: #f44336;
    background: #ffebee;
}

/* 动画效果 */
@keyframes scoreJump {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes scoreShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

@keyframes heartFloat {
    0% {
        transform: translateY(100%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translateY(calc(-1 * var(--random-height, 30px))) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(calc(-2 * var(--random-height, 30px))) scale(0.8);
        opacity: 0;
    }
}

@keyframes confettiFloat {
    0% {
        transform: translateY(100%) rotate(0deg) scale(0);
        opacity: 0;
    }
    50% {
        transform: translateY(calc(-1 * var(--random-height, 30px))) rotate(180deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(calc(-2 * var(--random-height, 30px))) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

@keyframes negativeFall {
    0% {
        transform: translateY(-100%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(100%) scale(0.5);
        opacity: 0;
    }
}

.score-jump {
    animation: scoreJump 1s ease-in-out;
}

.score-shake {
    animation: scoreShake 1s ease-in-out;
}

/* 快速抖动动画 */
.score-shake-fast {
    animation: scoreShakeFast 1s ease-in-out;
}

/* 冷色调图标容器 */
.cold-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

/* 冷色调图标 */
.cold-icon {
    position: absolute;
    top: -20px;
    color: #4a90e2;
    animation: coldFall 1.5s ease-in forwards;
    text-shadow: 0 0 4px rgba(74, 144, 226, 0.6);
}

/* 冷色调图标落下动画 */
@keyframes coldFall {
    0% {
        top: -20px;
        opacity: 1;
        transform: scale(0) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
    80% {
        opacity: 0.8;
    }
    100% {
        top: var(--random-height, 80%);
        opacity: 0;
        transform: scale(0.5) rotate(360deg);
    }
}

/* 快速抖动动画 */
@keyframes scoreShakeFast {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.hearts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.heart {
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 20px;
    background: #ff6b6b;
    transform: rotate(-45deg);
    animation: heartFloat 1s ease-in-out forwards;
}

.heart::before,
.heart::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff6b6b;
    border-radius: 50%;
}

.heart::before {
    top: -10px;
    left: 0;
}

.heart::after {
    top: 0;
    left: 10px;
}

.heart:nth-child(2n) {
    background: #4ECDC4;
}

.heart:nth-child(2n)::before,
.heart:nth-child(2n)::after {
    background: #4ECDC4;
}

.heart:nth-child(3n) {
    background: #45B7D1;
}

.heart:nth-child(3n)::before,
.heart:nth-child(3n)::after {
    background: #45B7D1;
}

.heart:nth-child(4n) {
    background: #96CEB4;
}

.heart:nth-child(4n)::before,
.heart:nth-child(4n)::after {
    background: #96CEB4;
}

.heart:nth-child(5n) {
    background: #FFEAA7;
}

.heart:nth-child(5n)::before,
.heart:nth-child(5n)::after {
    background: #FFEAA7;
}

.confetti {
    position: absolute;
    bottom: 0;
    width: 12px;
    height: 12px;
    background: #ff9800;
    border-radius: 50%;
    animation: confettiFloat 1s ease-in-out forwards;
}

.confetti:nth-child(2n) {
    background: #4CAF50;
    width: 10px;
    height: 10px;
}

.confetti:nth-child(3n) {
    background: #2196F3;
    width: 14px;
    height: 14px;
}

.confetti:nth-child(4n) {
    background: #9C27B0;
    width: 8px;
    height: 8px;
}

.confetti:nth-child(5n) {
    background: #FF5722;
    width: 16px;
    height: 16px;
}

.negative-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.negative-icon {
    position: absolute;
    top: -10px;
    width: 15px;
    height: 15px;
    background: #f44336;
    border-radius: 50%;
    animation: negativeFall 2s ease-in-out forwards;
}

.negative-icon::before {
    content: '✖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

/* 设置与帮助模态框样式 */
.settings-modal {
    max-width: 900px;
    width: 95%;
    border-radius: 16px;
    overflow: hidden;
}

.settings-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.settings-tab {
    padding: 8px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.settings-tab.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
    font-weight: bold;
}

.settings-content-section {
    display: none;
}

.settings-content-section.active {
    display: block;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.growth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.growth-header h3 {
    margin: 0;
}

.growth-header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.growth-header .save-btn {
    margin-left: 0;
}

.restore-btn {
    background: #ff9800;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.restore-btn:hover {
    background: #f57c00;
}

.add-rule-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.add-rule-btn:hover {
    background: #45a049;
}

.settings-header-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.restore-default-btn {
    background: #ff9800;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.restore-default-btn:hover {
    background: #f57c00;
}

.rule-category {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.settings-body {
    display: flex;
    gap: 20px;
}

.category-sidebar {
    width: 200px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.category-sidebar h4 {
    margin-bottom: 15px;
    color: #333;
}

.category-list {
    list-style: none;
    margin-bottom: 20px;
}

.category-item {
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    justify-content: space-between;
}

.category-item.active {
    background: #4CAF50;
    color: white;
}

.category-item:hover {
    background: #f0f0f0;
}

.category-item.active:hover {
    background: #45a049;
}

.rule-summary {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.summary-item {
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-item.positive {
    color: #4CAF50;
    font-weight: bold;
}

.summary-item.negative {
    color: #f44336;
    font-weight: bold;
}

.rule-content {
    flex: 1;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    max-height: 500px;
    overflow-y: auto;
}

.rule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.rule-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.rule-item.positive {
    border-left: 4px solid #4CAF50;
}

.rule-item.negative {
    border-left: 4px solid #f44336;
}

.rule-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.rule-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
    transition: transform 0.2s ease;
}

.action-btn:hover {
    transform: scale(1.1);
}

.rule-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.rule-value {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.rule-item.positive .rule-value {
    color: #4CAF50;
}

.rule-item.negative .rule-value {
    color: #f44336;
}

.rule-scope {
    font-size: 12px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

/* 成长设置样式 */
.growth-description {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.growth-tip {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.tip-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.tip-content strong {
    display: block;
    margin-bottom: 5px;
    color: #856404;
}

.tip-content p {
    margin: 5px 0;
    color: #856404;
    font-size: 14px;
}

.level-config h4 {
    margin-bottom: 15px;
    color: #333;
}

.level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48%, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.level-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.level-number {
    background: #ff9800;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.level-label {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.level-input {
    width: 100px;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

.level-item.graduation {
    background: #fff3cd;
    border-color: #ffeeba;
}

.level-item.graduation .level-number {
    background: #856404;
}

.graduation-content {
    flex: 1;
}

.graduation-title {
    font-weight: bold;
    color: #856404;
    margin-bottom: 5px;
}

.graduation-desc {
    font-size: 14px;
    color: #856404;
}

.save-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.save-btn:hover {
    background: #45a049;
}

/* 解锁屏幕样式 */
.unlock-modal, .reset-password-modal, .setup-password-modal {
    max-width: 400px;
    width: 90%;
}

.unlock-header, .reset-header, .setup-header {
    text-align: center;
    margin-bottom: 20px;
}

.unlock-header h3, .reset-header h3, .setup-header h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.unlock-body, .reset-body, .setup-body {
    padding: 20px;
}

.unlock-description, .reset-description, .setup-description {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.unlock-input, .reset-input, .setup-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.unlock-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

.unlock-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    background: white;
}

.unlock-button, .reset-button, .setup-button {
    width: 100%;
    padding: 12px;
    background: #e91e63;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
    margin-bottom: 20px;
}

.unlock-button:hover, .reset-button:hover, .setup-button:hover {
    background: #c2185b;
}

.unlock-footer, .reset-footer {
    text-align: center;
}

.unlock-footer a, .reset-footer a {
    color: #e91e63;
    text-decoration: none;
    font-size: 14px;
}

.unlock-footer a:hover, .reset-footer a:hover {
    text-decoration: underline;
}

.reset-footer {
    display: flex;
    justify-content: space-between;
}

/* 锁屏样式 */
.lock-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    color: #e91e63;
    border: 3px solid #e91e63;
    padding: 20px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    min-width: 120px;
    justify-content: center;
}

.lock-btn:hover {
    background: #fce4ec;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(233, 30, 99, 0.5);
}

/* 账号管理模态框样式 */
.account-modal {
    max-width: 500px;
}

.account-section {
    margin-bottom: 30px;
}

.account-section h4 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.account-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.info-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.info-label {
    font-weight: bold;
    color: #666;
    width: 80px;
}

.info-value {
    color: #333;
    font-size: 14px;
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.action-btn:hover {
    background: #f8f9fa;
    border-color: #4CAF50;
}

.action-btn.primary {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    text-align: center;
}

.action-btn.primary:hover {
    background: #45a049;
}

.action-btn.danger {
    background: #f44336;
    color: white;
    border-color: #f44336;
}

.action-btn.danger:hover {
    background: #da190b;
}

/* 修改密码模态框样式 */
.change-password-modal {
    max-width: 400px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

/* 管理账号模态框样式 */
.manage-account-modal {
    max-width: 600px;
}

.account-list-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.account-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-item .account-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.account-item .account-username {
    font-weight: bold;
    color: #333;
}

.account-item .account-role {
    font-size: 12px;
    color: #666;
    background: #e3f2fd;
    padding: 2px 8px;
    border-radius: 10px;
    align-self: flex-start;
}

.account-item .account-actions {
    display: flex;
    gap: 10px;
}

.account-item .action-btn {
    padding: 5px 10px;
    font-size: 12px;
}

#add-account-btn {
    width: 100%;
}

/* 评价记录模态框样式 */
.record-modal {
    max-width: 800px;
    width: 90%;
}

.record-header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.record-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.record-header h3::before {
    content: '📊';
    font-size: 1.5rem;
}

.export-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.export-btn:hover {
    background: #45a049;
}

.record-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.record-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.record-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.record-info {
    flex: 1;
}

.record-student {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-bottom: 2px;
}

.record-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.record-description {
    font-size: 14px;
    color: #666;
}

.record-value {
    font-size: 14px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
    margin-left: 20px;
    white-space: nowrap;
}

.record-value.positive {
    background: #e8f5e8;
    color: #4CAF50;
}

.record-value.negative {
    background: #ffebee;
    color: #f44336;
}

.record-value.withdraw {
    background: #fff3cd;
    color: #856404;
}

.record-value.positive::before {
    content: '↑ ';
}

.record-value.negative::before {
    content: '↓ ';
}

.record-value.withdraw::before {
    content: '↩ ';
}

.no-records {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 14px;
}

/* 删除确认模态框样式 */
.delete-confirm-modal {
    max-width: 400px;
    width: 90%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1600;
    overflow: visible;
}

.delete-confirm-content {
    padding: 40px 30px;
    text-align: center;
}

.delete-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.delete-confirm-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
}

.delete-confirm-content p {
    margin: 0 0 30px 0;
    color: #666;
    font-size: 16px;
}

.delete-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.delete-buttons .action-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-buttons .action-btn.cancel {
    background: white;
    color: #666;
    border: 1px solid #ddd;
}

.delete-buttons .action-btn.cancel:hover {
    background: #f8f9fa;
    border-color: #4CAF50;
}

.delete-buttons .action-btn.delete {
    background: #f44336;
    color: white;
    border: 1px solid #f44336;
}

.delete-buttons .action-btn.delete:hover {
    background: #da190b;
    border-color: #da190b;
}

/* 编辑指标模态框样式 */
.edit-indicator-modal {
    max-width: 600px;
    width: 90%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 80vh;
    overflow-y: auto;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.icon-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.icon-item:hover {
    border-color: #4CAF50;
    background: #f0f9ff;
}

.icon-item.active {
    border-color: #4CAF50;
    background: #e6f7ee;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group.half {
    flex: 1;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

/* 提示框样式 */
.toast-modal {
    max-width: 320px;
    width: 90%;
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: none;
}

.toast-content {
    background: linear-gradient(135deg, #FF9800, #FF5722);
    color: white;
    padding: 20px 30px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.4);
    pointer-events: auto;
}

.toast-icon {
    font-size: 24px;
    font-weight: bold;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.toast-message {
    font-size: 16px;
    font-weight: bold;
    flex: 1;
}

/* 评价记录模态框样式 */
.record-modal {
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    border-radius: 16px;
}

.record-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 16px 16px 0 0;
}

.record-modal h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.export-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.export-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
}

.record-content {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.record-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.record-item {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.record-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.record-info {
    flex: 1;
}

.record-student {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.record-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.record-description {
    font-size: 14px;
    color: #666;
}

.record-value {
    font-size: 18px;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 20px;
    min-width: 80px;
    text-align: center;
}

.record-value.positive {
    background: #e8f5e8;
    color: #4CAF50;
}

.record-value.negative {
    background: #ffebee;
    color: #f44336;
}

.record-value.withdraw {
    background: #e3f2fd;
    color: #2196F3;
}