/* components-extended.css */

/* 光荣榜样式 - 奖台效果 - 全新美化版 */
.honor-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (max-width: 768px) {
    .honor-layout {
        gap: 20px;
    }
}

.honor-top {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .honor-top {
        padding: 20px 8px;
        border-radius: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 10px;
    }
}

.honor-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffed4a, #ffd700);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 24px;
    position: relative;
    padding: 20px 0;
}

/* 移动端奖台并排显示 */
@media (max-width: 768px) {
    .podium-container {
        flex-direction: row;
        align-items: flex-end;
        gap: 8px;
        min-width: 320px;
        padding: 10px 0;
    }
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.3s;
}

.podium-item:hover {
    transform: translateY(-10px);
}

/* 移动端奖台项调整 */
@media (max-width: 768px) {
    .podium-item {
        width: 30%;
        min-width: 90px;
        flex-shrink: 0;
    }
    .podium-item:hover {
        transform: translateY(-5px);
    }
}

.podium-crown {
    font-size: 36px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(255,215,0,0.5));
    animation: float 2s ease-in-out infinite;
}

@media (max-width: 768px) {
    .podium-crown {
        font-size: 24px;
        margin-bottom: 8px;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.podium-avatar-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.podium-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: contain;
    background: white;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 4px solid;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .podium-avatar {
        width: 60px;
        height: 60px;
        padding: 4px;
        border-width: 3px;
    }
}

.podium-rank-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 3px solid white;
}

@media (max-width: 768px) {
    .podium-rank-badge {
        width: 24px;
        height: 24px;
        font-size: 12px;
        border-width: 2px;
        bottom: -3px;
        right: -3px;
    }
}

.rank-1 .podium-avatar { border-color: #ffd700; }
.rank-1 .podium-rank-badge { background: linear-gradient(135deg, #ffd700, #ffed4a); color: #92400e; }
.rank-1 .podium-crown { color: #ffd700; }

.rank-2 .podium-avatar { border-color: #c0c0c0; }
.rank-2 .podium-rank-badge { background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #374151; }
.rank-2 .podium-crown { color: #c0c0c0; }

.rank-3 .podium-avatar { border-color: #cd7f32; }
.rank-3 .podium-rank-badge { background: linear-gradient(135deg, #d97706, #b45309); color: white; }
.rank-3 .podium-crown { color: #cd7f32; }

.podium-info {
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

@media (max-width: 768px) {
    .podium-info {
        margin-bottom: 10px;
    }
}

.podium-name {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .podium-name {
        font-size: 13px;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 80px;
    }
}

.podium-score {
    font-size: 28px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255,215,0,0.5);
}

@media (max-width: 768px) {
    .podium-score {
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2px;
    }
}

.podium-base {
    width: 160px;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
    position: relative;
    overflow: hidden;
}

/* 移动端奖台底座调整 */
@media (max-width: 768px) {
    .podium-base {
        width: 100%;
        border-radius: 8px 8px 0 0;
        padding-top: 10px;
    }
}

.podium-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 50%);
}

.base-1 {
    height: 180px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    box-shadow: 0 -8px 32px rgba(245, 158, 11, 0.5);
}

@media (max-width: 768px) {
    .base-1 {
        height: 120px;
    }
}

.base-2 {
    height: 140px;
    background: linear-gradient(135deg, #e5e7eb 0%, #9ca3af 50%, #6b7280 100%);
    box-shadow: 0 -8px 32px rgba(156, 163, 175, 0.4);
}

@media (max-width: 768px) {
    .base-2 {
        height: 90px;
    }
}

.base-3 {
    height: 100px;
    background: linear-gradient(135deg, #d97706 0%, #b45309 50%, #92400e 100%);
    box-shadow: 0 -8px 32px rgba(180, 83, 9, 0.4);
}

@media (max-width: 768px) {
    .base-3 {
        height: 60px;
    }
}

.base-number {
    font-size: 48px;
    font-weight: 900;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
}

@media (max-width: 768px) {
    .base-number {
        font-size: 28px;
    }
}

.honor-middle {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

@media (max-width: 968px) {
    .honor-middle {
        grid-template-columns: 1fr;
    }
}

/* 修复：确保section不会裁剪hover效果 */
.honor-section {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 2px solid #f3f4f6;
    min-width: 0;
    overflow: visible;
    position: relative;
}

@media (max-width: 768px) {
    .honor-section {
        padding: 16px;
        border-radius: 16px;
    }
}

.honor-section-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

/* 修复：leaderboard-item hover效果优化 */
.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-radius: 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 2px solid transparent;
    transition: all 0.3s;
    flex-wrap: nowrap;
    min-width: 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .leaderboard-item {
        padding: 12px;
        margin-bottom: 8px;
    }
}

/* 修复：hover时提高层级并优化效果，防止被右边元素遮挡 */
.leaderboard-item:hover {
    z-index: 10;
    transform: translateX(5px) scale(1.01);
    border-color: #e0e7ff;
    background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.rank-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    margin-right: 14px;
    background: #f3f4f6;
    color: #6b7280;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .rank-badge {
        width: 32px;
        height: 32px;
        font-size: 12px;
        margin-right: 10px;
    }
}

.rank-badge.top {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.rank-badge.gold {
    background: linear-gradient(135deg, #ffd700, #f59e0b);
    color: #92400e;
}

.rank-badge.silver {
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
    color: #374151;
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white;
}

/* 移动端适配优化 */
@media (max-width: 768px) {
    .honor-bottom {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .honor-section-title {
        font-size: 16px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    
    .leaderboard-item {
        border-radius: 12px;
    }
    
    .leaderboard-item > div[style*="flex: 1"] {
        min-width: 0;
        overflow: hidden;
    }
    
    .leaderboard-item > div[style*="flex: 1"] > div:first-child {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.honor-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* 移动端统计卡片并排显示 */
@media (max-width: 768px) {
    .honor-bottom {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 2px solid #f3f4f6;
    text-align: center;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .stat-card {
        padding: 16px 8px;
        border-radius: 12px;
    }
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    border-color: #e0e7ff;
}

@media (max-width: 768px) {
    .stat-card:hover {
        transform: translateY(-2px);
    }
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-bottom: 8px;
        border-radius: 10px;
    }
}

.stat-value {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .stat-value {
        font-size: 20px;
        margin-bottom: 2px;
    }
}

.stat-label {
    font-size: 15px;
    color: #64748b;
    font-weight: 600;
}

@media (max-width: 768px) {
    .stat-label {
        font-size: 12px;
    }
}

/* PK场景样式 - 移动端优化 */
.pk-arena {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    z-index: 3000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pk-arena.active {
    display: flex;
}

.pk-vs {
    font-size: 120px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
    animation: pulse 1s infinite;
    z-index: 10;
}

@media (max-width: 768px) {
    .pk-vs {
        font-size: 60px;
    }
}

.pk-fighter {
    position: absolute;
    width: 300px;
    text-align: center;
    transition: all 0.5s;
}

@media (max-width: 768px) {
    .pk-fighter {
        width: 150px;
    }
}

.pk-fighter.left { left: 10%; }
.pk-fighter.right { right: 10%; }

@media (max-width: 768px) {
    .pk-fighter.left { left: 5%; }
    .pk-fighter.right { right: 5%; }
}

.pk-fighter-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    animation: fighterFloat 2s ease-in-out infinite;
}

@media (max-width: 768px) {
    .pk-fighter-img {
        width: 120px;
        height: 120px;
    }
}

@keyframes fighterFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.pk-fighter-name {
    color: white;
    font-size: 32px;
    font-weight: 800;
    margin-top: 20px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .pk-fighter-name {
        font-size: 20px;
    }
}

/* 晋级动画 */
.levelup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.levelup-overlay.active {
    display: flex;
}

.levelup-content {
    text-align: center;
    animation: levelUpScale 0.6s ease-out;
    width: 100%;
    padding: 20px;
}

@keyframes levelUpScale {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    50% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.levelup-title {
    font-size: 64px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-shadow: 0 0 60px rgba(255, 215, 0, 0.5);
}

@media (max-width: 768px) {
    .levelup-title {
        font-size: 36px;
    }
}

.levelup-pet {
    width: 300px;
    height: 300px;
    object-fit: contain;
    margin: 20px auto;
    display: block;
    filter: drop-shadow(0 20px 60px rgba(255, 215, 0, 0.4));
    animation: petCelebrate 1s ease-in-out infinite;
}

@media (max-width: 768px) {
    .levelup-pet {
        width: 200px;
        height: 200px;
        margin: 20px auto;
    }
}

@keyframes petCelebrate {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

/* 滚动条样式 - 默认隐藏，hover时显示 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

*:hover::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

*:hover::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 拖拽样式 */
.draggable-source {
    opacity: 0.4;
}

.drag-over {
    border: 3px dashed #667eea !important;
    background: #f5f3ff !important;
}

/* 新手指引 */
.guide-step {
    position: absolute;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    max-width: 300px;
    z-index: 3001;
    display: none;
}

.guide-step.active {
    display: block;
    animation: guidePop 0.3s ease;
}

@keyframes guidePop {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.guide-arrow {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
}

.guide-highlight {
    position: relative;
    z-index: 3000;
    box-shadow: 0 0 0 4px #667eea, 0 0 0 9999px rgba(0,0,0,0.5);
    border-radius: 8px;
}

/* 批量选择框 - 修改为打勾样式 */
.select-checkbox {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 5;
    font-size: 16px;
    color: white;
}

.select-checkbox.checked {
    background: #667eea;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.select-checkbox.checked::after {
    content: '✓';
    font-weight: 800;
}

@media (max-width: 768px) {
    .select-checkbox {
        width: 24px;
        height: 24px;
        font-size: 14px;
        top: 8px;
        left: 8px;
    }
}

/* 批量操作面板 - 优化布局 */
.batch-panel {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 16px 32px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 999;
    border: 2px solid #e0e7ff;
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    .batch-panel {
        padding: 12px 16px;
        gap: 10px;
        width: 95%;
        max-width: 500px;
        border-radius: 24px;
        flex-wrap: wrap;
    }
}

.batch-panel.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(100px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* 批量操作按钮组 - 垂直居中布局 */
.batch-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

@media (max-width: 768px) {
    .batch-actions {
        gap: 6px;
    }
    .batch-actions button {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* 宠物选择网格 */
.pet-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .pet-select-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .pet-select-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pet-option {
    padding: 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid transparent;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .pet-option {
        padding: 16px;
        border-radius: 16px;
    }
}

.pet-option:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-color: #c4b5fd;
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.2);
}

.pet-option.selected {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.pet-option-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

@media (max-width: 768px) {
    .pet-option-img {
        width: 60px;
        height: 60px;
    }
}

.pet-option-name {
    font-weight: 700;
    color: #374151;
    font-size: 15px;
}

@media (max-width: 768px) {
    .pet-option-name {
        font-size: 13px;
    }
}

/* 标签样式 */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    margin: 4px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.tag:hover {
    background: #e5e7eb;
}

.tag.active {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #3b82f6;
}

.tag.add {
    background: #d1fae5;
    color: #065f46;
}

.tag.add.active {
    background: #10b981;
    color: white;
}

.tag.subtract {
    background: #fee2e2;
    color: #991b1b;
}

.tag.subtract.active {
    background: #ef4444;
    color: white;
}

/* 导出按钮 */
.export-btn {
    margin-top: 30px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .export-btn {
        width: 100%;
        font-size: 16px;
        padding: 14px;
    }
}

.exp-bar-container {
    width: 100%;
    height: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
    position: relative;
}

.exp-bar {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.exp-text {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-top: 6px;
    font-weight: 600;
}

/* 小组视图样式 */
.group-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
}

@media (max-width: 768px) {
    .group-card {
        padding: 16px;
        border-radius: 16px;
    }
}

.group-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: #e0e7ff;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.group-title {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-title-input {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    border: 2px solid transparent;
    background: transparent;
    border-radius: 8px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.group-title-input:hover {
    border-color: #e0e7ff;
    background: #f8fafc;
}

.group-title-input:focus {
    border-color: #667eea;
    background: white;
    outline: none;
}

@media (max-width: 768px) {
    .group-title, .group-title-input {
        font-size: 16px;
    }
}

.group-score {
    font-size: 16px;
    font-weight: 900;
    color: #f59e0b;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 8px 16px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .group-score {
        font-size: 18px;
        padding: 6px 12px;
    }
}

.group-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.group-member:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.group-member img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .group-member img {
        width: 32px;
        height: 32px;
    }
}

/* 工作台内部样式 - 美化版 */
.workbench-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 2px solid #e2e8f0;
}

@media (max-width: 768px) {
    .workbench-header {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
}

.workbench-class-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .workbench-class-selector {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
}

.workbench-class-label {
    font-weight: 700;
    color: #64748b;
    font-size: 14px;
}

.workbench-class-select {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    background: white;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .workbench-class-select {
        width: 100%;
        border-radius: 20px;
    }
}

.workbench-class-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 表单编辑区域样式 */
.edit-form-container {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    border: 2px solid #f3f4f6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .edit-form-container {
        padding: 16px;
    }
}

.edit-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .edit-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.edit-form-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edit-form-item label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.edit-form-item input,
.edit-form-item select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .edit-form-item input,
    .edit-form-item select {
        border-radius: 20px;
    }
}

.edit-form-item input:focus,
.edit-form-item select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.edit-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .edit-form-actions {
        justify-content: stretch;
    }
    .edit-form-actions button {
        flex: 1;
        justify-content: center;
    }
}

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

.item-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: white;
    border-radius: 16px;
    border: 2px solid #f3f4f6;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .item-card {
        padding: 12px;
        gap: 12px;
        flex-wrap: wrap;
    }
}

.item-card:hover {
    border-color: #e0e7ff;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .item-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 16px;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .item-name {
        font-size: 14px;
    }
}

.item-meta {
    font-size: 13px;
    color: #64748b;
}

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

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.icon-btn.edit {
    background: #dbeafe;
    color: #1d4ed8;
}

.icon-btn.edit:hover {
    background: #3b82f6;
    color: white;
}

.icon-btn.delete {
    background: #fee2e2;
    color: #dc2626;
}

.icon-btn.delete:hover {
    background: #ef4444;
    color: white;
}

/* 班级管理特殊样式 */
.class-management-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: white;
    border-radius: 16px;
    border: 2px solid #f3f4f6;
    margin-bottom: 12px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .class-management-item {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
}

.class-management-item:hover {
    border-color: #e0e7ff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.class-management-item.current {
    border-color: #667eea;
    background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
}

.class-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

@media (max-width: 768px) {
    .class-info {
        width: 100%;
    }
}

.class-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
}

.class-details h4 {
    font-weight: 700;
    color: #1e293b;
    font-size: 17px;
    margin-bottom: 4px;
}

.class-details p {
    font-size: 13px;
    color: #64748b;
}

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

@media (max-width: 768px) {
    .class-actions {
        width: 100%;
        justify-content: stretch;
    }
    .class-actions button {
        flex: 1;
        justify-content: center;
    }
}

/* 随机分配宠物按钮 */
.random-assign-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.random-assign-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

@media (max-width: 768px) {
    .random-assign-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 钱袋图标样式 */
.money-bag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 4px;
    font-size: 18px;
}

@media (max-width: 768px) {
    .money-bag-icon {
        width: 16px;
        height: 16px;
        font-size: 14px;
    }
}

/* 分值选择器 */
.score-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .score-selector {
        flex-direction: column;
        width: 100%;
    }
}

.score-selector select {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    font-size: 15px;
    outline: none;
    background: white;
    min-width: 120px;
}

@media (max-width: 768px) {
    .score-selector select,
    .score-selector input {
        width: 100%;
        border-radius: 20px;
    }
}

.score-selector input {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    font-size: 15px;
    outline: none;
    width: 100px;
}

@media (max-width: 768px) {
    .score-selector input {
        border-radius: 20px;
    }
}

/* ===== 新增：学生管理页面专用样式 ===== */

/* 拖拽上传区域 */
.upload-dropzone {
    border: 3px dashed #cbd5e1;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 24px;
}

.upload-dropzone:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}

.upload-dropzone.drag-over {
    border-color: #667eea;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    transform: scale(1.02);
}

.upload-dropzone-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 56px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.upload-text {
    font-size: 18px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 14px;
    color: #64748b;
}

@media (max-width: 768px) {
    .upload-dropzone {
        padding: 24px;
    }
    .upload-icon {
        font-size: 40px;
    }
    .upload-text {
        font-size: 16px;
    }
    .upload-hint {
        font-size: 12px;
    }
}

/* 学生列表头部：统计和排序 - 修改：移动端分两行显示 */
.student-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 16px;
    border: 2px solid #bfdbfe;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 768px) {
    .student-list-header {
        flex-direction: column; /* 修改：改为垂直排列实现两行布局 */
        align-items: stretch; /* 修改：子元素宽度填满容器 */
        padding: 12px;
        gap: 12px;
    }
    
    /* 新增：统计信息区域在移动端占满宽度并居中 */
    .student-list-header .student-stats {
        width: 100%;
        justify-content: center;
    }
    
    /* 新增：排序控制区域在移动端占满宽度并另起一行 */
    .student-list-header .student-sort-controls {
        width: 100%;
        flex: none; /* 取消flex: 1，避免与width: 100%冲突 */
    }
}

.student-stats {
    display: flex;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.stat-number {
    font-size: 28px;
    font-weight: 900;
    color: #3b82f6;
}

.stat-label-small {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

/* 修改：学生管理页面排序控制区域 - 移动端三按钮同行 */
.student-sort-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

@media (max-width: 768px) {
    .student-sort-controls {
        width: 100%; /* 修改：占满宽度 */
        flex: none;
        display: flex;
        flex-direction: row; /* 保持横向排列 */
        gap: 8px;
    }
    
    /* 修改：排序选择器和按钮都自适应 */
    .student-sort-controls .sort-select,
    .student-sort-controls button {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 修改：排序框在移动端自适应 */
    .student-sort-controls .sort-select {
        width: auto;
        min-width: 0;
        padding: 10px 28px 10px 10px; /* 减小内边距适应小屏 */
        font-size: 13px;
        background-position: right 8px center;
        background-size: 12px;
        height: 40px;
    }
    
    /* 修改：加载示例和清空所有按钮样式 */
    .student-sort-controls .btn-secondary,
    .student-sort-controls .btn-danger {
        padding: 10px 8px;
        font-size: 13px;
        border-radius: 20px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }
}

/* 学生管理网格 - 无滚动条，显示全部 */
.student-management-list {
    /* 无max-height限制，显示全部学生 */
}

.student-grid-management {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

@media (max-width: 1200px) {
    .student-grid-management {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .student-grid-management {
        grid-template-columns: 1fr;
    }
}

.student-management-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 2px solid #f3f4f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s;
    position: relative;
    cursor: pointer; /* 修改为pointer，表示可点击 */
}

.student-management-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

/* 点击编辑提示 */
.student-management-card::after {
    content: '✏️ 点击编辑';
    position: absolute;
    top: 8px;
    right: 40px;
    font-size: 11px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.student-management-card:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .student-management-card::after {
        display: none; /* 移动端隐藏提示 */
    }
}

.student-management-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.student-management-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.student-management-info {
    flex: 1;
    min-width: 0;
}

.student-management-name {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.student-management-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.group-tag {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}

.group-tag.no-group {
    background: #f3f4f6;
    color: #9ca3af;
}

.student-management-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.student-management-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label-m {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

.stat-value-m {
    font-size: 15px;
    font-weight: 700;
    color: #374151;
}

.stat-value-m.score {
    color: #f59e0b;
}

.stat-value-m.level {
    color: #8b5cf6;
}

.stat-value-m.pet {
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value-m.adopted {
    color: #f59e0b;
    font-size: 13px;
}

.student-delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #fee2e2;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: all 0.2s;
}

.student-management-card:hover .student-delete-btn {
    opacity: 1;
}

.student-delete-btn:hover {
    background: #ef4444;
    color: white;
}

@media (max-width: 768px) {
    .student-delete-btn {
        opacity: 1;
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* 分组框样式优化 */
.group-box {
    position: relative;
}

.group-box.drag-over {
    border-color: #667eea !important;
    background: #f5f3ff !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
}

/* ===== 新增：系统设置页面移动端优化样式 ===== */

/* 系统设置网格布局 - PC端双列，移动端单列 */
.system-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .system-settings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* 系统设置卡片样式 */
.system-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    border: 2px solid #f3f4f6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.system-card:hover {
    border-color: #e0e7ff;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.1);
}

@media (max-width: 768px) {
    .system-card {
        padding: 20px;
        border-radius: 16px;
    }
}

/* 卡片头部 */
.system-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.system-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .system-card-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
}

.system-card-title {
    flex: 1;
}

.system-card-title-text {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .system-card-title-text {
        font-size: 16px;
    }
}

.system-card-subtitle {
    font-size: 14px;
    color: #64748b;
}

/* 音效切换按钮组 */
.sound-toggle-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .sound-toggle-group {
        flex-direction: column;
        width: 100%;
    }
}

.sound-toggle-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 24px;
    border: 2px solid #e5e7eb;
    background: white;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    color: #64748b;
}

@media (max-width: 768px) {
    .sound-toggle-btn {
        padding: 12px 16px;
        font-size: 14px;
        width: 100%;
        border-radius: 20px;
    }
}

.sound-toggle-btn:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.sound-toggle-btn.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sound-toggle-btn.sound-on.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: transparent;
}

.sound-toggle-btn.sound-off.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: transparent;
}

.sound-icon {
    font-size: 18px;
}

/* 数据管理操作按钮网格 */
.data-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .data-actions-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.data-action-btn {
    padding: 14px 16px;
    border-radius: 24px;
    border: 2px solid #e5e7eb;
    background: white;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    color: #374151;
    text-align: center;
}

@media (max-width: 768px) {
    .data-action-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 16px;
        text-align: left;
        border-radius: 20px;
    }
}

.data-action-btn:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.data-action-icon {
    font-size: 24px;
}

@media (max-width: 768px) {
    .data-action-icon {
        font-size: 20px;
        width: 32px;
        text-align: center;
    }
}

.data-action-text {
    font-size: 14px;
}

.data-action-btn.btn-export:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.data-action-btn.btn-backup:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.data-action-btn.btn-restore:hover {
    border-color: #f59e0b;
    background: #fffbeb;
}

/* 危险区域标题 */
.danger-zone-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 16px;
    border: 2px solid #fecaca;
}

@media (max-width: 768px) {
    .danger-zone-header {
        padding: 16px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

.danger-icon {
    font-size: 28px;
    color: #dc2626;
}

.danger-title {
    font-size: 18px;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 2px;
}

.danger-subtitle {
    font-size: 14px;
    color: #991b1b;
}

/* 数据清零选项网格 */
.reset-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .reset-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .reset-options-grid {
        grid-template-columns: 1fr;
    }
}

/* 数据清零卡片 */
.reset-card {
    padding: 24px;
    border-radius: 20px;
    border: 2px solid;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 768px) {
    .reset-card {
        padding: 20px;
        border-radius: 16px;
    }
}

.reset-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.reset-card.reset-score {
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    border-color: #fcd34d;
}

.reset-card.reset-score-pet {
    background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
    border-color: #fca5a5;
}

.reset-card.reset-all {
    background: linear-gradient(135deg, #fecaca 0%, #fee2e2 100%);
    border-color: #f87171;
}

.reset-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reset-icon {
    font-size: 28px;
}

.reset-title {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.reset-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    flex: 1;
}

/* 清零按钮样式 */
.reset-btn {
    width: 100%;
    padding: 14px;
    border-radius: 24px;
    border: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    margin-top: auto;
}

@media (max-width: 768px) {
    .reset-btn {
        border-radius: 20px;
    }
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-reset-score {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.btn-reset-score:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.btn-reset-score-pet {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-reset-score-pet:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.btn-reset-all {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

.btn-reset-all:hover {
    background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
}

/* ===== 新增：分组管理专用样式 ===== */

/* 分组管理卡片 */
.group-management-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    padding: 20px;
    border-radius: 20px;
    border: 2px solid #f3f4f6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s;
    position: relative;
}

.group-management-card:hover {
    border-color: #e0e7ff;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.group-management-card.drag-over {
    border-color: #667eea !important;
    background: #f5f3ff !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
    transform: scale(1.02);
}

/* 分组管理头部 */
.group-management-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
    gap: 12px;
}

/* 标题包装器 */
.group-management-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.group-icon {
    font-size: 22px;
    flex-shrink: 0;
}

/* 组名输入框 */
.group-management-title-input {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    border: 2px solid transparent;
    background: transparent;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.group-management-title-input:hover {
    border-color: #e0e7ff;
    background: #f8fafc;
}

.group-management-title-input:focus {
    border-color: #667eea;
    background: white;
    outline: none;
    cursor: text;
}

/* 人数统计徽章 */
.group-member-count {
    display: flex;
    align-items: center;
    gap: 2px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 6px 14px;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.group-count-number {
    font-size: 18px;
    font-weight: 900;
    color: #3b82f6;
    line-height: 1;
}

.group-count-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    line-height: 1;
}

/* 成员容器 */
.group-members-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
}

/* 成员标签 */
.group-member-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: white;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    border: 2px solid #f3f4f6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    cursor: move;
    transition: all 0.2s;
    user-select: none;
}

@media (max-width: 768px) {
    .group-member-tag {
        border-radius: 20px;
    }
}

.group-member-tag:hover {
    border-color: #667eea;
    background: #f5f3ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.15);
}

.member-icon {
    font-size: 16px;
}

.member-name {
    white-space: nowrap;
}

/* 移动端分组管理优化 */
@media (max-width: 768px) {
    .group-management-card {
        padding: 16px;
        border-radius: 16px;
    }
    
    .group-management-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .group-management-title-wrapper {
        width: 100%;
        order: 1;
    }
    
    .group-management-title-input {
        font-size: 16px;
        padding: 4px 8px;
    }
    
    .group-member-count {
        order: 2;
        padding: 4px 10px;
    }
    
    .group-count-number {
        font-size: 16px;
    }
    
    .group-count-label {
        font-size: 12px;
    }
    
    .group-icon {
        font-size: 20px;
    }
    
    .group-member-tag {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .member-icon {
        font-size: 14px;
    }
}

/* 空状态提示 */
.group-members-container:empty::after {
    content: '拖拽学生到此处添加';
    color: #94a3b8;
    font-size: 14px;
    padding: 12px;
    text-align: center;
    width: 100%;
    font-style: italic;
}

/* ===== 宠物PK移动端适配增强 ===== */
@media (max-width: 768px) {
    #pkArena .w-48.h-48 {
        width: 100px !important;
        height: 100px !important;
    }
    #pkArena .w-32.h-32 {
        width: 70px !important;
        height: 70px !important;
    }
    #pkArena .text-8xl {
        font-size: 3rem !important;
    }
    #pkArena .text-3xl {
        font-size: 1.3rem !important;
    }
    #pkArena .px-10 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    #pkArena .mt-6 {
        margin-top: 0.5rem !important;
    }
    #pkArena .relative.z-10 {
        width: 100%;
    }
    #pkArena .w-64.h-64 {
        width: 150px !important;
        height: 150px !important;
    }
    #pkArena .w-48.h-48 {
        width: 100px !important;
        height: 100px !important;
    }
    #pkArena .text-6xl {
        font-size: 2.5rem !important;
    }
    #pkArena .text-2xl {
        font-size: 1.2rem !important;
    }
    #pkArena .px-16 {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    #pkArena .py-5 {
        padding-top: 0.8rem !important;
        padding-bottom: 0.8rem !important;
    }
    #pkArena .text-3xl {
        font-size: 1.4rem !important;
    }
}

/* ==================== 学号标签样式 ==================== */

/* 学生管理卡片中的学号标签 */
.student-no-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4338ca;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 6px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    white-space: nowrap;
}

/* 移动端学号标签适配 */
@media (max-width: 768px) {
    .student-no-tag {
        padding: 2px 8px;
        font-size: 11px;
        margin-right: 4px;
    }
}

/* 小组标签保持原有样式 */
.group-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.group-tag.no-group {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
}

@media (max-width: 768px) {
    .group-tag {
        padding: 2px 8px;
        font-size: 11px;
    }
}

/* 学生管理卡片中的元信息区域 */
.student-management-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}