/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #333;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.class-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.class-name span {
    font-size: 18px;
    font-weight: bold;
    color: #5a67d8;
}

.btn-batch {
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-batch:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    font-size: 16px;
    color: #718096;
}

#searchInput {
    padding: 10px 10px 10px 40px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    width: 250px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: #f7fafc;
}

#searchInput:focus {
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.1);
}

.nav-right {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.nav-btn:active {
    transform: scale(0.95);
}

/* 主内容区域 */
.main-content {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

/* 操作栏样式 */
.action-bar {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.action-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.action-bar-right {
    display: flex;
    align-items: center;
}

.btn-add-student {
    background: linear-gradient(45deg, #06D6A0, #118AB2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 214, 160, 0.3);
}

.btn-add-student:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 214, 160, 0.4);
}

.class-filter {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.class-filter:focus {
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.1);
}

.student-count {
    font-size: 14px;
    color: #718096;
    font-weight: 600;
}

.student-count span {
    color: #5a67d8;
    font-weight: bold;
}

/* 学生网格布局 */
.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* 学生卡片 */
.student-card {
    background: white;
    border-radius: 15px;
    padding: 15px 10px 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: visible;
    min-height: 220px;
}

.student-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.student-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
}

.student-info {
    text-align: center;
    margin-bottom: 10px;
}

.student-name {
    font-size: 15px;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 4px;
}

.student-class {
    display: inline-block;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 3px;
}

.student-id {
    font-size: 10px;
    color: #718096;
}

.pet-image-section {
    position: relative;
    animation: breathe 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
}

.pet-image-section:hover {
    transform: translateY(-5px);
}

.student-name {
    transition: all 0.3s ease;
}

.student-name:hover {
    transform: scale(1.02);
}

.pet-breed {
    transition: all 0.3s ease;
}

.pet-breed:hover {
    transform: scale(1.05);
}

.level-badge-inline {
    transition: all 0.3s ease;
}

.level-badge-inline:hover {
    transform: scale(1.05);
}

.exp-section {
    transition: all 0.3s ease;
}

.exp-section:hover {
    background: rgba(255, 255, 255, 0.85) !important;
}

.pet-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pet-image div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 呼吸动画 - 持续放大缩小 */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 等级指示器 - 发光动画 */
@keyframes level-blink {
    0% {
        opacity: 0.6;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* 小等级指示器 - 发光动画 */
@keyframes level-blink-small {
    0% {
        opacity: 0.5;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* 白底等级指示器 - 发光动画 */
@keyframes level-blink-white {
    0% {
        opacity: 0.7;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* 加分动画 - 向上飘 */
@keyframes score-up {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -80%) scale(1.2);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -120%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -150%) scale(0.8);
    }
}

/* emoji爆炸动画 */
@keyframes emoji-burst {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(0);
        opacity: 0;
    }
    20% {
        transform: translate(-50%, -50%) rotate(var(--rotation)) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translate(
            calc(-50% + var(--end-x)),
            calc(-50% + var(--end-y))
        ) rotate(var(--end-rotation)) scale(0.5);
        opacity: 0;
    }
}

/* 升级动画 - 缩放抖动 */
@keyframes level-up {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3);
    }
    30% {
        transform: translate(-50%, -50%) scale(0.9);
    }
    45% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    60% {
        transform: translate(-50%, -50%) scale(0.95);
    }
    75% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    90% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -30%) scale(0.8);
    }
}

/* 分数中心放大动画 - 向上 */
@keyframes score-center-up {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -80%) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -120%) scale(0.8);
    }
}

/* 分数中心放大动画 - 向下 */
@keyframes score-center-down {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -20%) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 30%) scale(0.8);
    }
}

/* 进度条流动动画 */
@keyframes progress-flow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.exp-fill {
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: progress-flow 3s linear infinite;
}

/* 宠物加分动画 - 快乐的弹跳 */
@keyframes pet-happy-bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-15px) scale(1.1);
    }
    50% {
        transform: translateY(-25px) scale(1.05);
    }
    75% {
        transform: translateY(-10px) scale(1.08);
    }
}

/* 宠物扣分动画 - 悲伤的摇晃 */
@keyframes pet-sad-shake {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    10% {
        transform: translateX(-5px) rotate(-2deg);
    }
    20% {
        transform: translateX(5px) rotate(2deg);
    }
    30% {
        transform: translateX(-5px) rotate(-2deg);
    }
    40% {
        transform: translateX(5px) rotate(2deg);
    }
    50% {
        transform: translateX(-3px) rotate(-1deg);
    }
    60% {
        transform: translateX(3px) rotate(1deg);
    }
    70% {
        transform: translateX(-2px) rotate(0deg);
    }
    80% {
        transform: translateX(2px) rotate(0deg);
    }
    90% {
        transform: translateX(-1px) rotate(0deg);
    }
}

.pet-mood {
    position: absolute;
    top: -5px;
    right: 20px;
    font-size: 30px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 宠物状态栏 */
.pet-status {
    margin-top: 15px;
}

.status-bar {
    margin-bottom: 10px;
}

.status-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
}

.status-label span:first-child {
    color: #4a5568;
    font-weight: 600;
}

.status-label span:last-child {
    color: #718096;
}

.status-progress {
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.status-fill {
    height: 100%;
    transition: all 0.5s ease;
    border-radius: 10px;
}

.happiness-fill {
    background: linear-gradient(90deg, #FF6B6B, #FFD166);
}

.hunger-fill {
    background: linear-gradient(90deg, #06D6A0, #118AB2);
}

.health-fill {
    background: linear-gradient(90deg, #EF476F, #FF9A9E);
}

/* 操作按钮 */
.pet-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.action-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.feed-btn {
    background: linear-gradient(45deg, #06D6A0, #118AB2);
    color: white;
}

.play-btn {
    background: linear-gradient(45deg, #FF6B6B, #FFD166);
    color: white;
}

.heal-btn {
    background: linear-gradient(45deg, #EF476F, #FF9A9E);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.action-btn:active {
    transform: scale(0.95);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 850px;
    width: 90%;
    margin: 40px auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    color: #2d3748;
    font-size: 24px;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #718096;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #e53e3e;
    transform: scale(1.1);
}

/* 小卖部样式 */
.store-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 25px;
}

.store-item {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.store-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.store-item:active {
    transform: scale(0.95);
}

.item-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.item-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.item-price {
    font-size: 14px;
    opacity: 0.9;
}

/* 光荣榜样式 */
.ranking-list {
    padding: 25px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 15px;
    background: linear-gradient(45deg, #f7fafc, #edf2f7);
    transition: all 0.3s ease;
}

.ranking-item:hover {
    transform: translateX(10px);
}

.rank-number {
    font-size: 24px;
    font-weight: bold;
    color: #5a67d8;
    margin-right: 15px;
}

.rank-number.top3 {
    color: #ffd700;
}

.rank-info {
    flex: 1;
}

.rank-name {
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 5px;
}

.rank-score {
    font-size: 14px;
    color: #718096;
}

.rank-pet {
    font-size: 30px;
}

/* 设置样式 */
.settings-content {
    padding: 25px;
}

.setting-group {
    margin-bottom: 30px;
}

.setting-group h3 {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #5a67d8, #667eea);
    color: white;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 表单样式 - 优化间距 */
.form-group {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.form-group:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2d3748;
    font-size: 16px;
    padding-left: 8px;
    position: relative;
}

.form-group label:before {
    content: "▶";
    position: absolute;
    left: -8px;
    color: #667eea;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.1);
}

/* 表单选择器样式 */
.form-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.form-select:focus {
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.1);
}

/* 宠物选择器 - 5列图片版优化 */
.pet-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 25px 0;
    border: 2px solid #e2e8f0;
}

.pet-option {
    background: white;
    border-radius: 15px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #e2e8f0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    position: relative;
}

.pet-option:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #a0aec0;
}

.pet-option.selected {
    border-color: #5a67d8;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 25px rgba(90, 102, 216, 0.4);
    transform: translateY(-3px);
}

.pet-option.selected .pet-name {
    color: white;
    font-weight: bold;
}

.pet-image-preview {
    width: 100%;
    height: 80px;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pet-option:hover .pet-image-preview img {
    transform: scale(1.1);
}

.pet-name {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin-top: 8px;
    line-height: 1.2;
}

.pet-option.selected .pet-name {
    color: white;
}

/* Fallback emoji for image loading error */
.pet-emoji-fallback {
    font-size: 45px;
    opacity: 0.8;
}

/* 分类标题 */
.pet-category-title {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #2d3748;
    margin: 25px 0 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 宠物选择器标题 */
.pet-selector-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

/* 宠物详情样式 */
.pet-detail-content {
    max-width: 500px;
}

/* 快速评分模态框 */
.score-modal-content {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.score-student-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 15px;
    margin-bottom: 25px;
    color: white;
}

.score-pet-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.score-student-details {
    flex: 1;
}

/* 模态框表单内容区域 - 宽版优化 */
.modal-content > .form-group:first-of-type {
    margin-top: 25px;
}

.modal-content > .btn-primary:last-child {
    margin: 30px auto;
    width: calc(100% - 60px);
    display: block;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(90, 102, 216, 0.3);
}

/* 调整模态框内容内边距 */
.modal-content {
    padding-bottom: 30px;
    max-height: 90vh;
    overflow-y: auto;
}

/* 自定义输入框样式 - 宽版优化 */
#customScore {
    margin-top: 15px !important;
    border-radius: 12px;
    padding: 14px;
    border: 2px dashed #e2e8f0;
    background: #fff9db;
    font-size: 16px;
    font-weight: 500;
}

#customScore:focus {
    border-color: #5a67d8;
    border-style: solid;
    background: white;
    box-shadow: 0 0 0 4px rgba(90, 102, 216, 0.1);
}

/* 表单组 - 宽版布局 */
.modal-content .form-group {
    margin: 25px 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #667eea;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.modal-content .form-group:last-child {
    margin-bottom: 10px;
}

/* 下拉选择框宽版样式 */
.form-select#initialScore {
    padding: 14px;
    font-size: 16px;
    height: auto;
}

/* 学生姓名输入框特殊样式 */
#studentName {
    font-size: 18px;
    font-weight: 500;
    padding: 16px;
}

.score-student-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.score-student-class {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.score-current-score {
    font-size: 18px;
}

.score-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.score-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #e9ecef;
}

.score-section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.score-section:first-child .score-section-title {
    color: #28a745;
    border-bottom-color: #28a745;
}

.score-section:last-child .score-section-title {
    color: #dc3545;
    border-bottom-color: #dc3545;
}

.score-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.score-item-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.score-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.score-item-btn.positive {
    border-left: 4px solid #28a745;
}

.score-item-btn.positive:hover {
    background: #d4edda;
}

.score-item-btn.negative {
    border-left: 4px solid #dc3545;
}

.score-item-btn.negative:hover {
    background: #f8d7da;
}

.score-item-icon {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.score-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.score-item-name {
    text-align: left;
    font-weight: 600;
    color: #2d3748;
}

.score-item-effect {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

.score-item-value {
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 13px;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.score-item-value.positive {
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
    color: #155724;
}

.score-item-value.negative {
    background: linear-gradient(45deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .score-item-btn {
        padding: 10px 12px;
        gap: 8px;
    }

    .score-item-icon {
        font-size: 18px;
        width: 25px;
    }

    .score-item-info {
        gap: 2px;
    }

    .score-item-name {
        font-size: 13px;
    }

    .score-item-effect {
        font-size: 10px;
    }

    .score-item-value {
        font-size: 11px;
        min-width: 45px;
        padding: 4px 8px;
    }
}

.score-note-section {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px dashed #dee2e6;
}

.score-note-section label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #495057;
}

.score-note-section textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ced4da;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
}

.score-note-section textarea:focus {
    outline: none;
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .score-sections {
        grid-template-columns: 1fr;
    }

    .score-student-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .score-student-name {
        font-size: 20px;
    }

    .score-item-btn {
        padding: 10px 12px;
    }
}

/* 图标选择器样式 */
.icon-option {
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: #a5b4fc !important;
}

/* 评分项列表样式 */
.score-item-list-element {
    transition: all 0.3s ease;
}

.score-item-list-element:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.pet-detail {
    padding: 25px;
    text-align: center;
}

.detail-pet-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 0 auto 20px;
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.detail-stats {
    text-align: left;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.stat-label {
    font-weight: 600;
    color: #4a5568;
}

.stat-value {
    font-weight: bold;
    color: #5a67d8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    #searchInput {
        width: 100%;
    }

    .students-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .modal-content {
        margin: 20px auto;
    }

    .store-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .students-grid {
        grid-template-columns: 1fr;
    }

    .nav-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-btn .btn-text {
        display: none;
    }

    .pet-actions {
        flex-direction: column;
    }
}

/* 动画效果 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    animation: slideInRight 0.3s ease;
    font-weight: bold;
}

.notification.success {
    border-left: 5px solid #06D6A0;
    color: #06D6A0;
}

.notification.error {
    border-left: 5px solid #EF476F;
    color: #EF476F;
}

.notification.info {
    border-left: 5px solid #5a67d8;
    color: #5a67d8;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
