/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: 
        /* 太阳光芒效果 */
        radial-gradient(circle at 85% 15%, rgba(255, 223, 0, 0.6) 0%, rgba(255, 223, 0, 0.3) 15%, transparent 25%),
        /* 云朵效果 */
        radial-gradient(ellipse at 20% 25%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 30%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.3) 25%, transparent 40%),
        radial-gradient(ellipse at 40% 20%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 20%, transparent 35%),
        /* 远山效果 */
        linear-gradient(to bottom, 
            rgba(135, 206, 250, 0.8) 0%,    /* 天空蓝 */
            rgba(173, 216, 230, 0.6) 30%,   /* 浅蓝 */
            rgba(144, 238, 144, 0.5) 60%,   /* 浅绿 */
            rgba(255, 250, 205, 0.7) 80%,   /* 柠檬绸 */
            rgba(255, 228, 181, 0.8) 100%   /* 桃色 */
        ),
        /* 基础渐变 */
        linear-gradient(135deg, #87CEEB 0%, #98FB98 30%, #F0E68C 60%, #FFB6C1 100%);
    min-height: 100vh;
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-attachment: fixed;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

/* 阳光背景动画 - 优化版本，避免大小变化 */
@keyframes sunnyBackgroundShift {
    0%, 100% {
        background-position: 0% 0%, 20% 25%, 70% 30%, 40% 20%, 0% 0%, 0% 0%;
        background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
        filter: brightness(1.05) saturate(1.05);
    }
    25% {
        background-position: 2% 2%, 22% 22%, 72% 32%, 42% 18%, 0% 0%, 5% 5%;
        background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
        filter: brightness(1.08) saturate(1.08);
    }
    50% {
        background-position: 3% 3%, 18% 28%, 68% 33%, 38% 22%, 0% 0%, 8% 8%;
        background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
        filter: brightness(1.1) saturate(1.1);
    }
    75% {
        background-position: 1% 1%, 25% 20%, 75% 25%, 45% 15%, 0% 0%, 3% 3%;
        background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
        filter: brightness(1.08) saturate(1.08);
    }
}

/* 保留原背景动画作为备用 */
@keyframes backgroundShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* 添加阳光粒子效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* 金色光点 */
        radial-gradient(3px 3px at 20px 30px, rgba(255, 215, 0, 0.6), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 223, 0, 0.4), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 248, 220, 0.5), transparent),
        radial-gradient(1px 1px at 160px 30px, rgba(255, 215, 0, 0.3), transparent),
        /* 更多光点 */
        radial-gradient(2px 2px at 180px 60px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 60px 90px, rgba(255, 223, 0, 0.4), transparent);
    background-repeat: repeat;
    background-size: 220px 120px;
    animation: sunSparkle 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    will-change: opacity, transform;
}

@keyframes sunSparkle {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(0px) rotate(360deg);
        opacity: 0.6;
    }
}

/* 保留原动画 */
@keyframes sparkle {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-100px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 250px; /* 增加底部边距为技能栏留出空间 */
    position: relative;
    z-index: 2;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-family: 'Ma Shan Zheng', 'STHupo', '华文琥珀', 'Microsoft YaHei', Arial, sans-serif;
    color: white;
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    background: linear-gradient(45deg, #FFD700, #FF6B35, #F7931E, #FFD700);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 3s ease-in-out infinite alternate, gradientShift 4s ease-in-out infinite;
}

/* 顶部面板样式 */
.top-left-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    max-width: 350px;
}

.top-right-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    max-width: 400px;
}

/* 班级管理样式 */
.class-management {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 20px;
    color: white;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.current-class {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.class-label {
    font-size: 1rem;
    opacity: 0.9;
}

.class-name {
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.class-name:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.class-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

#classSelector {
    background: rgba(255,255,255,0.95);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    flex: 1;
}

#classSelector:hover {
    background: white;
    border-color: rgba(255,255,255,0.5);
}

#classSelector:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.create-class-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.create-class-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.score-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin: 0 auto;
    max-width: 600px;
}

.team-score {
    text-align: center;
    color: white;
}

.team-score h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.score {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.team-a .score {
    color: #ff6b6b;
}

.team-b .score {
    color: #4ecdc4;
}

.vs {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* 成就信息区域 */
.achievement-info {
    text-align: center;
}

.achievement-levels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.achievement-level {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    background: rgba(255,255,255,0.25);
    border-radius: 15px;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.achievement-level:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 背景选择器样式 */
.background-selector {
    margin-top: 15px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.background-title {
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.background-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.bg-option {
    background: rgba(255,255,255,0.25);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    padding: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bg-option:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.35);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.bg-option.active {
    background: rgba(255,255,255,0.5);
    border-color: rgba(255,255,255,0.6);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* 不同背景主题 */
body.bg-sunset {
    background: 
        radial-gradient(circle at 85% 15%, rgba(255, 94, 77, 0.7) 0%, rgba(255, 154, 0, 0.4) 20%, transparent 30%),
        radial-gradient(ellipse at 20% 25%, rgba(255, 183, 77, 0.6) 0%, rgba(255, 183, 77, 0.3) 25%, transparent 40%),
        radial-gradient(ellipse at 70% 30%, rgba(255, 206, 84, 0.5) 0%, rgba(255, 206, 84, 0.2) 20%, transparent 35%),
        linear-gradient(to bottom, 
            rgba(255, 94, 77, 0.8) 0%,
            rgba(255, 154, 0, 0.7) 30%,
            rgba(255, 206, 84, 0.6) 60%,
            rgba(255, 183, 77, 0.8) 100%
        ),
        linear-gradient(135deg, #FF5E4D 0%, #FF9A00 30%, #FFCE54 60%, #FFB74D 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-attachment: fixed;
}

body.bg-ocean {
    background: 
        radial-gradient(circle at 30% 20%, rgba(64, 224, 208, 0.6) 0%, rgba(64, 224, 208, 0.3) 25%, transparent 40%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 191, 255, 0.5) 0%, rgba(0, 191, 255, 0.2) 30%, transparent 50%),
        radial-gradient(ellipse at 20% 60%, rgba(135, 206, 235, 0.4) 0%, rgba(135, 206, 235, 0.1) 20%, transparent 35%),
        linear-gradient(to bottom, 
            rgba(135, 206, 235, 0.9) 0%,
            rgba(64, 224, 208, 0.7) 40%,
            rgba(0, 191, 255, 0.6) 70%,
            rgba(30, 144, 255, 0.8) 100%
        ),
        linear-gradient(135deg, #87CEEB 0%, #40E0D0 30%, #00BFFF 60%, #1E90FF 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-attachment: fixed;
}

body.bg-forest {
    background: 
        radial-gradient(circle at 40% 30%, rgba(34, 139, 34, 0.6) 0%, rgba(34, 139, 34, 0.3) 25%, transparent 40%),
        radial-gradient(ellipse at 80% 20%, rgba(154, 205, 50, 0.5) 0%, rgba(154, 205, 50, 0.2) 30%, transparent 50%),
        radial-gradient(ellipse at 20% 70%, rgba(107, 142, 35, 0.4) 0%, rgba(107, 142, 35, 0.1) 20%, transparent 35%),
        linear-gradient(to bottom, 
            rgba(154, 205, 50, 0.8) 0%,
            rgba(34, 139, 34, 0.7) 40%,
            rgba(107, 142, 35, 0.6) 70%,
            rgba(85, 107, 47, 0.8) 100%
        ),
        linear-gradient(135deg, #9ACD32 0%, #228B22 30%, #6B8E23 60%, #556B2F 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-attachment: fixed;
}

body.bg-galaxy {
    background: 
        radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.6) 0%, rgba(138, 43, 226, 0.3) 25%, transparent 40%),
        radial-gradient(ellipse at 80% 20%, rgba(75, 0, 130, 0.5) 0%, rgba(75, 0, 130, 0.2) 30%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(25, 25, 112, 0.4) 0%, rgba(25, 25, 112, 0.1) 20%, transparent 35%),
        linear-gradient(to bottom, 
            rgba(25, 25, 112, 0.9) 0%,
            rgba(75, 0, 130, 0.8) 40%,
            rgba(138, 43, 226, 0.7) 70%,
            rgba(72, 61, 139, 0.8) 100%
        ),
        linear-gradient(135deg, #191970 0%, #4B0082 30%, #8A2BE2 60%, #483D8B 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-attachment: fixed;
}

body.bg-spring {
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 182, 193, 0.7) 0%, rgba(255, 182, 193, 0.4) 25%, transparent 40%),
        radial-gradient(ellipse at 70% 30%, rgba(255, 192, 203, 0.6) 0%, rgba(255, 192, 203, 0.3) 30%, transparent 50%),
        radial-gradient(ellipse at 20% 70%, rgba(221, 160, 221, 0.5) 0%, rgba(221, 160, 221, 0.2) 20%, transparent 35%),
        linear-gradient(to bottom, 
            rgba(255, 182, 193, 0.8) 0%,
            rgba(255, 192, 203, 0.7) 30%,
            rgba(221, 160, 221, 0.6) 60%,
            rgba(216, 191, 216, 0.8) 100%
        ),
        linear-gradient(135deg, #FFB6C1 0%, #FFC0CB 30%, #DDA0DD 60%, #D8BFD8 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-attachment: fixed;
}

/* 主要内容区域 */
.teams-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.team-section {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.team-a-section {
    border-left: 5px solid #ff6b6b;
}

.team-b-section {
    border-left: 5px solid #4ecdc4;
}

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

.team-header h3 {
    font-size: 1.3rem;
    color: #333;
    font-weight: normal;
}

.team-title {
    cursor: pointer;
    transition: color 0.3s ease;
}

.team-title:hover {
    color: #667eea;
}

.team-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sort-btn {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sort-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.add-member-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.add-member-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 成员网格 */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 18px;
}

.member-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.member-card.horizontal {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    min-height: 140px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,250,252,0.9));
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background-size: cover;
    background-position: center;
    border: 3px solid #f0f0f0;
    flex-shrink: 0;
}

.member-card.horizontal .member-avatar {
    margin: 0;
    width: 70px;
    height: 70px;
    border: 3px solid;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.member-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.member-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    margin-left: 15px;
}

.member-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 10px;
}

/* 快速操作按钮组 */
.member-quick-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* 编辑按钮覆盖层 */
.member-edit-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    transform: translateY(-5px);
}

/* 编辑按钮显示状态 */
.member-edit-overlay.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 编辑按钮本身的样式 */
.member-edit-overlay .score-btn.edit-btn {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.drag-handle {
    cursor: grab;
    color: #cbd5e0;
    font-size: 0.7rem;
    padding: 2px;
    user-select: none;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    position: absolute;
    bottom: 8px;
    right: 8px;
}

.drag-handle:active {
    cursor: grabbing;
}

.member-card:hover .drag-handle {
    opacity: 0.7;
    color: #718096;
}

.team-a-section .member-avatar {
    border-color: #ff6b6b;
}

.team-b-section .member-avatar {
    border-color: #4ecdc4;
}

.member-name {
    font-weight: 700;
    margin: 0;
    color: #1a202c;
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.member-score-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-top: 4px;
}

.member-score {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 50px;
}

/* 技能栏位容器 */
.skill-slots-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
}

.member-note {
    width: 100%;
    padding: 10px 14px;
    border: 3px solid;
    border-image: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3) 1;
    border-radius: 12px;
    font-size: 1rem;
    min-height: 40px;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

/* 技能栏位样式 */
.skill-slot {
    min-width: 120px;
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 36px;
    font-size: 0.85rem;
    padding: 6px 10px;
}

/* 技能栏位炫彩背景效果 */
.skill-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255,0,150,0.1) 0%, 
        rgba(0,255,255,0.1) 25%, 
        rgba(255,255,0,0.1) 50%, 
        rgba(255,0,150,0.1) 75%, 
        rgba(0,255,255,0.1) 100%
    );
    background-size: 400% 400%;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rainbowShift 6s ease-in-out infinite;
    z-index: -1;
}

.skill-slot:hover::before {
    opacity: 1;
}

/* 技能栏位有内容时的特殊效果 */
.skill-slot.has-content {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.skill-slot.has-content::before {
    opacity: 1;
    background: linear-gradient(45deg, 
        rgba(255,0,150,0.2) 0%, 
        rgba(0,255,255,0.2) 25%, 
        rgba(255,255,0,0.2) 50%, 
        rgba(255,0,150,0.2) 75%, 
        rgba(0,255,255,0.2) 100%
    );
    animation: rainbowShift 4s ease-in-out infinite;
}

/* 技能栏位聚焦时的效果 */
.skill-slot:focus {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

.skill-slot:focus::before {
    opacity: 1;
    background: linear-gradient(45deg, 
        rgba(102, 126, 234, 0.3) 0%, 
        rgba(118, 75, 162, 0.3) 25%, 
        rgba(255, 107, 107, 0.3) 50%, 
        rgba(78, 205, 196, 0.3) 75%, 
        rgba(102, 126, 234, 0.3) 100%
    );
    animation: rainbowShift 3s ease-in-out infinite;
}

.member-note:focus,
.member-note.focused {
    border-image: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff, #5f27cd) 1;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.03);
    animation: borderGlow 2s ease-in-out infinite alternate;
}

.member-note:hover {
    border-image: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff) 1;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    transform: scale(1.01);
}

/* 技能标签样式增强 */
.member-note::placeholder {
    color: #666;
    font-style: italic;
}

/* 包含技能标签的文本框特殊样式 */
.member-note.has-skills {
    border-image: linear-gradient(45deg, #FFD700, #FF6B35, #4ecdc4, #45b7d1, #FFD700) 1 !important;
    box-shadow: 
        0 3px 12px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(255, 215, 0, 0.3),
        0 0 40px rgba(255, 215, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.1) !important;
    animation: skillGlow 4s ease-in-out infinite alternate;
    border-width: 4px !important;
}

.member-note.has-skills:focus {
    box-shadow: 
        0 0 0 5px rgba(255, 215, 0, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(255, 215, 0, 0.5),
        0 0 60px rgba(255, 215, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.02);
}

@keyframes skillGlow {
    0% {
        box-shadow: 
            0 3px 12px rgba(0, 0, 0, 0.15),
            0 0 20px rgba(255, 215, 0, 0.3),
            0 0 40px rgba(255, 215, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 0 15px rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow: 
            0 4px 16px rgba(0, 0, 0, 0.2),
            0 0 30px rgba(255, 215, 0, 0.5),
            0 0 60px rgba(255, 215, 0, 0.2),
            inset 0 2px 0 rgba(255, 255, 255, 0.4),
            inset 0 0 20px rgba(255, 255, 255, 0.15);
    }
}

@keyframes borderGlow {
    0% {
        border-image: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3) 1;
    }
    100% {
        border-image: linear-gradient(45deg, #ff9ff3, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57) 1;
    }
}

.member-card.horizontal .member-name {
    margin-bottom: 2px;
    font-size: 1.2rem;
}

.member-card.horizontal .member-score {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.member-card.horizontal .member-note {
    font-size: 0.9rem;
    padding: 8px 12px;
    min-height: 36px;
}

.team-a-section .member-score {
    color: #ff6b6b;
}

.team-b-section .member-score {
    color: #4ecdc4;
}


.score-controls {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.score-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
    position: relative;
}

.score-btn.large {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-radius: 8px;
}

.score-btn.edit-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    width: auto;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
    border: none;
}

.score-btn.increase {
    background: #4CAF50;
    color: white;
}

.score-btn.decrease {
    background: #f44336;
    color: white;
}

.score-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.score-btn:active {
    transform: scale(0.95) translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.score-btn.large:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.score-btn.large:active {
    transform: scale(0.95) translateY(2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

/* 编辑下拉菜单样式 */
.edit-dropdown {
    position: relative;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 移除原来的悬停显示逻辑，使用新的逻辑 */

.edit-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
    min-width: 120px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.edit-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.edit-dropdown-menu button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    transition: background-color 0.2s ease;
    border-radius: 0;
}

.edit-dropdown-menu button:first-child {
    border-radius: 8px 8px 0 0;
}

.edit-dropdown-menu button:last-child {
    border-radius: 0 0 8px 8px;
}

.edit-dropdown-menu button:only-child {
    border-radius: 8px;
}

.edit-dropdown-menu button:hover {
    background-color: #f5f5f5;
}

.edit-dropdown-menu button.delete-option:hover {
    background-color: #ffebee;
    color: #d32f2f;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

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

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

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
}

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

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

.form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

/* 头像选择 */
.avatar-selection {
    margin-top: 10px;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.avatar-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
}

.avatar-option:hover {
    transform: scale(1.1);
}

.avatar-option.selected {
    border-color: #667eea;
    transform: scale(1.1);
}

.custom-avatar-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.custom-avatar-btn:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

/* 积分操作模态框 */
.score-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.score-input-group .score-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

.score-input-group input {
    width: 80px;
    padding: 8px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
}

/* 模态框按钮 */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn-cancel, .btn-confirm {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background: #5a6268;
}

.btn-confirm {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 标题动画 */
@keyframes titleGlow {
    0% {
        text-shadow: 3px 3px 6px rgba(0,0,0,0.4), 0 0 20px rgba(255,215,0,0.3);
    }
    100% {
        text-shadow: 3px 3px 6px rgba(0,0,0,0.4), 0 0 30px rgba(255,107,53,0.6);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 120px 15px 20px;
    }
    
    .top-left-panel {
        top: 10px;
        left: 10px;
        max-width: 280px;
    }
    
    .top-right-panel {
        top: 10px;
        right: 10px;
        max-width: 300px;
    }
    
    .achievement-levels {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 15px;
    }
    
    .achievement-level {
        font-size: 0.75rem;
        padding: 8px 6px;
    }
    
    .class-management {
        padding: 15px;
    }
    
    .class-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    #classSelector {
        width: 100%;
        min-width: auto;
    }
    
    .create-class-btn {
        width: 100%;
        text-align: center;
    }
    
    header h1 {
        font-size: 2.8rem;
    }
    .teams-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .score-display {
        flex-direction: column;
        gap: 20px;
    }
    
    .class-management {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .class-controls {
        width: 100%;
        justify-content: center;
    }
    
    #classSelector {
        flex: 1;
        max-width: 200px;
    }
    
    .achievement-levels {
        gap: 10px;
        padding: 10px;
    }
    
    .achievement-level {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.empty-state-subtext {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 成就系统样式 */
.achievement-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 2000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
}

.achievement-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.achievement-content {
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

.achievement-icon {
    font-size: 4rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.achievement-text {
    flex: 1;
}

.achievement-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.achievement-name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.achievement-member {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 成就徽章样式 */
.member-name-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    width: 100%;
}

.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    animation: glow 2s ease-in-out infinite alternate;
}

.achievement-badge-icon {
    font-size: 0.9rem;
}

.achievement-badge-name {
    font-size: 0.7rem;
    white-space: nowrap;
}

@keyframes glow {
    from {
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    to {
        box-shadow: 0 2px 8px rgba(255,255,255,0.3), 0 0 12px rgba(255,255,255,0.2);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .achievement-popup {
        width: 90%;
        max-width: 400px;
        padding: 20px;
    }
    
    .achievement-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .achievement-icon {
        font-size: 3rem;
    }
    
    .achievement-title {
        font-size: 1.2rem;
    }
    
    .achievement-name {
        font-size: 1.5rem;
    }
    
    .achievement-member {
        font-size: 1rem;
    }
    
    .achievement-badge {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
    
    .achievement-badge-name {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .top-left-panel,
    .top-right-panel {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        max-width: 100%;
        margin: 10px;
    }
    
    .container {
        padding: 20px 10px;
    }
    
    .achievement-levels {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== 随机点名系统样式 ==================== */

/* 随机点名触发按钮 */
.random-call-trigger {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 100;
}

.random-call-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.2;
}

.random-call-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.random-call-btn:active {
    transform: translateY(-2px) scale(1.05);
}

/* 随机点名模态框 */
.random-call-modal {
    max-width: 600px;
    width: 95%;
}

.wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

/* 圆盘容器 */
.wheel-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 圆盘主体 */
.wheel {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
    border: 8px solid #333;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    transition: transform 0.1s ease-out;
    background: conic-gradient(
        #ff6b6b 0deg 60deg,
        #4ecdc4 60deg 120deg,
        #45b7d1 120deg 180deg,
        #96ceb4 180deg 240deg,
        #feca57 240deg 300deg,
        #ff9ff3 300deg 360deg
    );
}

/* 圆盘指针 */
.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 40px solid #333;
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* 学生名字标签 */
.student-segment {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 28px;
    transform-origin: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Ma Shan Zheng', 'STHupo', '华文琥珀', 'Microsoft YaHei', Arial, sans-serif;
    font-weight: bold;
    font-size: 1rem;
    color: white;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.9),
        -1px -1px 2px rgba(0,0,0,0.6),
        0 0 8px rgba(0,0,0,0.4);
    pointer-events: none;
    text-align: center;
    letter-spacing: 0.5px;
    background: linear-gradient(45deg, rgba(255,255,255,0.3), rgba(255,255,255,0.2));
    border-radius: 14px;
    backdrop-filter: blur(6px);
    border: 2px solid rgba(255,255,255,0.6);
    padding: 0;
    transition: all 0.3s ease;
    animation: nameAppear 0.6s ease-out forwards;
    opacity: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* 确保标签精确居中 */
    margin: 0;
    line-height: 1;
}

@keyframes nameAppear {
    0% {
        opacity: 0;
        transform: translate(var(--x, calc(-50%)), var(--y, calc(-50%))) rotate(var(--rotation, 0deg)) scale(0.5);
    }
    50% {
        opacity: 0.7;
        transform: translate(var(--x, calc(-50%)), var(--y, calc(-50%))) rotate(var(--rotation, 0deg)) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translate(var(--x, calc(-50%)), var(--y, calc(-50%))) rotate(var(--rotation, 0deg)) scale(1);
    }
}

/* 名字标签悬停效果（虽然pointer-events: none，但可以用于动画） */
.student-segment::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(255,215,0,0.3), 
        rgba(255,105,180,0.3), 
        rgba(64,224,208,0.3), 
        rgba(255,215,0,0.3)
    );
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    animation: nameGlow 3s ease-in-out infinite alternate;
}

@keyframes nameGlow {
    0% { opacity: 0; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.05); }
}

/* 根据不同颜色区域调整文字颜色 */
.student-segment.color-red {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(139,0,0,0.8);
}

.student-segment.color-teal {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,100,100,0.8);
}

.student-segment.color-blue {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,139,0.8);
}

.student-segment.color-green {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,100,0,0.8);
}

.student-segment.color-yellow {
    color: #333;
    text-shadow: 2px 2px 4px rgba(255,215,0,0.8);
}

.student-segment.color-pink {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(139,0,139,0.8);
}

/* 控制按钮 */
.wheel-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

.wheel-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-width: 140px;
}

.start-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.start-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.stop-btn {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
    color: white;
}

.stop-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.wheel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* 结果显示 */
.result-display {
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.result-text {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 10px;
}

.selected-student {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected-student.highlight {
    animation: studentHighlight 1s ease-in-out;
    color: #ff6b6b;
}

@keyframes studentHighlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 圆盘转动动画 */
.wheel.spinning {
    animation: wheelSpin 0.1s linear infinite;
}

@keyframes wheelSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .random-call-btn {
        width: 60px;
        height: 60px;
        font-size: 0.8rem;
        bottom: 20px;
        left: 20px;
    }
    
    .random-call-modal {
        width: 98%;
        margin: 2% auto;
    }
    
    .wheel-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .wheel {
        width: 240px;
        height: 240px;
    }
    
    .wheel-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .wheel-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .student-segment {
        font-size: 1rem;
        width: 80px;
        height: 32px;
    }
    
    .student-segment::before {
        animation-duration: 2s;
    }
}

/* ==================== 技能栏系统样式 ==================== */

/* 技能栏容器 */
.skill-bar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(100,100,120,0.5), rgba(120,120,140,0.6));
    backdrop-filter: blur(15px);
    border-top: 3px solid rgba(255,255,255,0.2);
    box-shadow: 0 -5px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.skill-bar-container.collapsed {
    transform: translateY(calc(100% - 50px));
}

/* 技能栏头部 */
.skill-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    background: linear-gradient(90deg, rgba(102,126,234,0.15), rgba(118,75,162,0.15));
    border-bottom: 1px solid rgba(255,255,255,0.1);
    min-height: 55px;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-bar-header h3 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #FFD700, #FF6B35, #F7931E, #FFD700);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

.skill-bar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 200px;
}

.skill-management-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    white-space: nowrap;
    min-width: 85px;
    text-align: center;
    margin: 0 2px;
}

.skill-management-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40,167,69,0.4);
}

.skill-management-btn.edit-skill-btn {
    background: linear-gradient(45deg, #ffc107, #ff8f00);
}

.skill-management-btn.edit-skill-btn:hover {
    box-shadow: 0 4px 12px rgba(255,193,7,0.4);
}

.skill-bar-toggle button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.skill-bar-toggle button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
}

/* 技能栏内容 */
.skill-bar-content {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    transition: all 0.4s ease;
    /* 自定义滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) rgba(0,0,0,0.1);
}

.skill-bar-content::-webkit-scrollbar {
    width: 8px;
}

.skill-bar-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}

.skill-bar-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.skill-bar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

.skill-bar-container.collapsed .skill-bar-content {
    max-height: 0;
    padding: 0 20px;
    opacity: 0;
}

/* 技能网格 */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    padding: 10px 0;
    width: 100%;
}

/* 技能卡片 */
.skill-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 15px;
    padding: 15px;
    cursor: grab;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0,0,0,0.2),
        0 0 20px rgba(255,255,255,0.1),
        0 0 40px rgba(255,215,0,0.05);
    /* 移除 user-select: none; 以允许拖拽 */
}

.skill-card:active {
    cursor: grabbing;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255,0,150,0.4) 0%, 
        rgba(0,255,255,0.4) 25%, 
        rgba(255,255,0,0.4) 50%, 
        rgba(255,0,150,0.4) 75%, 
        rgba(0,255,255,0.4) 100%
    );
    background-size: 400% 400%;
    border-radius: 15px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    animation: rainbowShift 4s ease-in-out infinite;
    z-index: -1;
}

.skill-card:hover::before {
    opacity: 0.8;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(0,0,0,0.5),
        0 0 30px rgba(255,255,255,0.2),
        0 0 60px rgba(255,215,0,0.1);
    border-color: rgba(255,255,255,0.6);
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.2));
}

/* 技能名称 */
.skill-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.9),
        0 0 8px rgba(255,255,255,0.5),
        0 0 16px rgba(255,215,0,0.4);
    cursor: grab;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.4);
    position: relative;
    overflow: hidden;
    /* 确保可以拖拽 */
    user-select: none;
    -webkit-user-drag: element;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.skill-name:active {
    cursor: grabbing;
}

.skill-name[draggable="true"] {
    cursor: grab;
}

/* 技能名称光效 */
.skill-name::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.2), 
        rgba(255,215,0,0.3), 
        rgba(255,107,53,0.3), 
        rgba(78,205,196,0.3), 
        rgba(255,255,255,0.2)
    );
    background-size: 200% 100%;
    border-radius: 12px;
    animation: shimmer 3s ease-in-out infinite;
    z-index: -1;
}

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

.skill-name[draggable="true"]:hover {
    transform: scale(1.1) translateY(-3px);
    background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.3));
    border-color: rgba(255,255,255,0.7);
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.4),
        0 0 40px rgba(255,215,0,0.6),
        0 0 80px rgba(255,107,53,0.3),
        inset 0 0 25px rgba(255,255,255,0.2);
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.9),
        0 0 12px rgba(255,255,255,0.8),
        0 0 24px rgba(255,215,0,0.6);
}

.skill-name[draggable="true"]:active {
    transform: scale(1.02) translateY(1px);
    box-shadow: 
        0 4px 15px rgba(0,0,0,0.4),
        0 0 20px rgba(255,215,0,0.3);
}

/* 技能描述 */
.skill-description {
    color: rgba(255,255,255,0.95);
    font-size: 0.85rem;
    line-height: 1.5;
    text-shadow: 
        1px 1px 2px rgba(0,0,0,0.8),
        0 0 4px rgba(255,255,255,0.3);
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* 炫彩动画 */
@keyframes rainbowShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 技能卡片特殊效果 */
.skill-card.legendary {
    border: 2px solid rgba(255,215,0,0.6);
    box-shadow: 0 0 20px rgba(255,215,0,0.3);
}

.skill-card.epic {
    border: 2px solid rgba(138,43,226,0.6);
    box-shadow: 0 0 20px rgba(138,43,226,0.3);
}

.skill-card.rare {
    border: 2px solid rgba(0,191,255,0.6);
    box-shadow: 0 0 20px rgba(0,191,255,0.3);
}

/* 拖拽状态 */
.skill-card.dragging {
    opacity: 0.7;
    transform: rotate(5deg) scale(0.95);
    z-index: 2000;
    pointer-events: none;
}

/* 拖拽目标高亮 */
.member-note.drag-target {
    border-color: #FFD700 !important;
    box-shadow: 0 0 15px rgba(255,215,0,0.5) !important;
    background: rgba(255,215,0,0.1) !important;
    animation: pulseGlow 1s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { 
        box-shadow: 0 0 15px rgba(255,215,0,0.5);
        border-color: #FFD700;
    }
    100% { 
        box-shadow: 0 0 25px rgba(255,215,0,0.8);
        border-color: #FFA500;
    }
}

/* ==================== 点击式技能装备系统样式 ==================== */

/* 技能装备按钮 */
.member-skill-controls {
    margin: 0;
}

.skill-equip-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    white-space: nowrap;
    min-width: 60px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-equip-btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
}

/* 技能选择模态框 */
.skill-selection-modal {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.skill-selection-modal .modal-body {
    padding: 25px;
}

/* 当前技能区域 */
.current-skills-section {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(76,175,80,0.1), rgba(76,175,80,0.05));
    border-radius: 15px;
    border: 2px solid rgba(76,175,80,0.2);
}

.current-skills-section h4 {
    margin: 0 0 15px 0;
    color: #4CAF50;
    font-size: 1.2rem;
}

.current-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 50px;
    align-items: center;
}

.no-skills {
    color: rgba(255,255,255,0.6);
    font-style: italic;
    text-align: center;
    width: 100%;
    padding: 20px;
}

/* 已装备技能项 */
.equipped-skill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    padding: 8px 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-width: 150px;
}

.equipped-skill-item.rare {
    border-color: rgba(0,191,255,0.5);
    box-shadow: 0 0 10px rgba(0,191,255,0.2);
}

.equipped-skill-item.epic {
    border-color: rgba(138,43,226,0.5);
    box-shadow: 0 0 10px rgba(138,43,226,0.2);
}

.equipped-skill-item.legendary {
    border-color: rgba(255,215,0,0.5);
    box-shadow: 0 0 10px rgba(255,215,0,0.2);
}

.equipped-skill-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.equipped-skill-icon {
    font-size: 1.2rem;
}

.equipped-skill-name {
    color: #1a202c;
    font-weight: 700;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    letter-spacing: 0.2px;
}


.remove-skill-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.remove-skill-btn:hover {
    opacity: 1;
    transform: scale(1.2);
    background: rgba(255,0,0,0.2);
}

/* 可装备技能区域 */
.available-skills-section {
    padding: 20px;
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.05));
    border-radius: 15px;
    border: 2px solid rgba(102,126,234,0.2);
}

.available-skills-section h4 {
    margin: 0 0 15px 0;
    color: #667eea;
    font-size: 1.2rem;
}

.available-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
}

/* 可装备技能项 */
.available-skill-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.available-skill-item:not(.disabled):hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.available-skill-item.rare {
    border-color: rgba(0,191,255,0.3);
}

.available-skill-item.epic {
    border-color: rgba(138,43,226,0.3);
}

.available-skill-item.legendary {
    border-color: rgba(255,215,0,0.3);
}

.available-skill-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(100,100,100,0.2);
}

.available-skill-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.available-skill-icon {
    font-size: 1.3rem;
    margin-right: 8px;
}

.available-skill-name {
    color: #1a202c;
    font-weight: 700;
    font-size: 1rem;
    flex: 1;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    letter-spacing: 0.3px;
}

.add-skill-btn {
    background: rgba(76,175,80,0.8);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.available-skill-item:hover .add-skill-btn {
    background: rgba(76,175,80,1);
    transform: scale(1.1);
}

.equipped-badge {
    background: rgba(255,193,7,0.8);
    color: #333;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

.available-skill-description {
    color: #4a5568;
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

/* 技能装备成功通知 */
.skill-equip-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 2000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    max-width: 300px;
}

.skill-equip-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-icon {
    font-size: 2rem;
    animation: bounce 1s infinite;
}

.notification-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.notification-desc {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 技能文字优化样式 - 炫酷版本 */
.skill-text-enhanced {
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.5px !important;
    padding: 12px 16px !important;
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(20,20,40,0.9)) !important;
    border: 3px solid rgba(255,255,255,0.3) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2) !important;
    color: #ffffff !important;
    text-shadow: 
        0 0 10px rgba(255,255,255,0.8),
        0 0 20px rgba(255,215,0,0.6),
        0 0 30px rgba(255,107,53,0.4),
        2px 2px 4px rgba(0,0,0,0.8) !important;
    position: relative !important;
    overflow: hidden !important;
    animation: skillTextGlow 4s ease-in-out infinite alternate !important;
}

/* 技能文字基础发光动画 */
@keyframes skillTextGlow {
    0% {
        text-shadow: 
            0 0 10px rgba(255,255,255,0.8),
            0 0 20px rgba(255,215,0,0.6),
            0 0 30px rgba(255,107,53,0.4),
            2px 2px 4px rgba(0,0,0,0.8);
        box-shadow: 0 4px 15px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    }
    100% {
        text-shadow: 
            0 0 15px rgba(255,255,255,1),
            0 0 25px rgba(255,215,0,0.8),
            0 0 35px rgba(255,107,53,0.6),
            2px 2px 4px rgba(0,0,0,0.8);
        box-shadow: 0 6px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
    }
}

/* 技能文字炫彩背景效果 */
.skill-text-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,215,0,0.4), 
        rgba(255,107,53,0.4), 
        rgba(78,205,196,0.4), 
        rgba(255,215,0,0.4), 
        transparent
    );
    transition: left 0.8s ease;
    z-index: -1;
    animation: backgroundShimmer 3s ease-in-out infinite;
}

@keyframes backgroundShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.skill-text-enhanced:hover::before {
    left: 100%;
}

/* 技能文字粒子效果 */
.skill-text-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,215,0,0.6), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,107,53,0.4), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(78,205,196,0.5), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,215,0,0.3), transparent);
    background-repeat: repeat;
    background-size: 50px 50px;
    animation: particleFloat 8s ease-in-out infinite;
    z-index: -1;
    opacity: 0.7;
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-2px) rotate(180deg);
        opacity: 1;
    }
}

/* 传奇技能特殊效果 */
.skill-text-enhanced.legendary {
    border-color: rgba(255,215,0,0.8) !important;
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(0,0,0,0.8)) !important;
    text-shadow: 
        0 0 15px rgba(255,215,0,1),
        0 0 25px rgba(255,215,0,0.8),
        0 0 35px rgba(255,165,0,0.6),
        2px 2px 4px rgba(0,0,0,0.8) !important;
    animation: legendaryGlow 3s ease-in-out infinite alternate !important;
}

.skill-text-enhanced.legendary::before {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,215,0,0.6), 
        rgba(255,165,0,0.6), 
        rgba(255,215,0,0.6), 
        transparent
    ) !important;
}

.skill-text-enhanced.legendary::after {
    background-image: 
        radial-gradient(3px 3px at 20px 30px, rgba(255,215,0,0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,165,0,0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,215,0,0.7), transparent) !important;
}

@keyframes legendaryGlow {
    0% {
        text-shadow: 
            0 0 15px rgba(255,215,0,1),
            0 0 25px rgba(255,215,0,0.8),
            0 0 35px rgba(255,165,0,0.6),
            2px 2px 4px rgba(0,0,0,0.8);
        box-shadow: 
            0 6px 20px rgba(255,215,0,0.4), 
            0 0 30px rgba(255,215,0,0.3), 
            inset 0 1px 0 rgba(255,255,255,0.4);
    }
    100% {
        text-shadow: 
            0 0 20px rgba(255,215,0,1.2),
            0 0 30px rgba(255,215,0,1),
            0 0 40px rgba(255,165,0,0.8),
            2px 2px 4px rgba(0,0,0,0.8);
        box-shadow: 
            0 8px 25px rgba(255,215,0,0.6), 
            0 0 40px rgba(255,215,0,0.5), 
            inset 0 1px 0 rgba(255,255,255,0.6);
    }
}

/* 史诗技能特殊效果 */
.skill-text-enhanced.epic {
    border-color: rgba(138,43,226,0.8) !important;
    background: linear-gradient(135deg, rgba(138,43,226,0.1), rgba(0,0,0,0.8)) !important;
    text-shadow: 
        0 0 15px rgba(138,43,226,1),
        0 0 25px rgba(138,43,226,0.8),
        0 0 35px rgba(186,85,211,0.6),
        2px 2px 4px rgba(0,0,0,0.8) !important;
    animation: epicGlow 4s ease-in-out infinite alternate !important;
}

.skill-text-enhanced.epic::before {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(138,43,226,0.6), 
        rgba(186,85,211,0.6), 
        rgba(138,43,226,0.6), 
        transparent
    ) !important;
}

.skill-text-enhanced.epic::after {
    background-image: 
        radial-gradient(3px 3px at 20px 30px, rgba(138,43,226,0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(186,85,211,0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(138,43,226,0.7), transparent) !important;
}

@keyframes epicGlow {
    0% {
        text-shadow: 
            0 0 15px rgba(138,43,226,1),
            0 0 25px rgba(138,43,226,0.8),
            0 0 35px rgba(186,85,211,0.6),
            2px 2px 4px rgba(0,0,0,0.8);
        box-shadow: 
            0 6px 20px rgba(138,43,226,0.4), 
            0 0 30px rgba(138,43,226,0.3), 
            inset 0 1px 0 rgba(255,255,255,0.4);
    }
    100% {
        text-shadow: 
            0 0 20px rgba(138,43,226,1.2),
            0 0 30px rgba(138,43,226,1),
            0 0 40px rgba(186,85,211,0.8),
            2px 2px 4px rgba(0,0,0,0.8);
        box-shadow: 
            0 8px 25px rgba(138,43,226,0.6), 
            0 0 40px rgba(138,43,226,0.5), 
            inset 0 1px 0 rgba(255,255,255,0.6);
    }
}

/* 稀有技能特殊效果 */
.skill-text-enhanced.rare {
    border-color: rgba(0,191,255,0.8) !important;
    background: linear-gradient(135deg, rgba(0,191,255,0.1), rgba(0,0,0,0.8)) !important;
    text-shadow: 
        0 0 15px rgba(0,191,255,1),
        0 0 25px rgba(0,191,255,0.8),
        0 0 35px rgba(64,224,208,0.6),
        2px 2px 4px rgba(0,0,0,0.8) !important;
    animation: rareGlow 5s ease-in-out infinite alternate !important;
}

.skill-text-enhanced.rare::before {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0,191,255,0.6), 
        rgba(64,224,208,0.6), 
        rgba(0,191,255,0.6), 
        transparent
    ) !important;
}

.skill-text-enhanced.rare::after {
    background-image: 
        radial-gradient(3px 3px at 20px 30px, rgba(0,191,255,0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(64,224,208,0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(0,191,255,0.7), transparent) !important;
}

@keyframes rareGlow {
    0% {
        text-shadow: 
            0 0 15px rgba(0,191,255,1),
            0 0 25px rgba(0,191,255,0.8),
            0 0 35px rgba(64,224,208,0.6),
            2px 2px 4px rgba(0,0,0,0.8);
        box-shadow: 
            0 6px 20px rgba(0,191,255,0.4), 
            0 0 30px rgba(0,191,255,0.3), 
            inset 0 1px 0 rgba(255,255,255,0.4);
    }
    100% {
        text-shadow: 
            0 0 20px rgba(0,191,255,1.2),
            0 0 30px rgba(0,191,255,1),
            0 0 40px rgba(64,224,208,0.8),
            2px 2px 4px rgba(0,0,0,0.8);
        box-shadow: 
            0 8px 25px rgba(0,191,255,0.6), 
            0 0 40px rgba(0,191,255,0.5), 
            inset 0 1px 0 rgba(255,255,255,0.6);
    }
}

/* 技能管理模态框样式 */
.edit-skill-modal {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.skills-management-section {
    padding: 20px;
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.05));
    border-radius: 15px;
    border: 2px solid rgba(102,126,234,0.2);
}

.skills-management-section h4 {
    margin: 0 0 15px 0;
    color: #667eea;
    font-size: 1.2rem;
}

.skills-management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 5px;
}

.skill-management-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-management-item.rare {
    border-color: rgba(0,191,255,0.3);
}

.skill-management-item.epic {
    border-color: rgba(138,43,226,0.3);
}

.skill-management-item.legendary {
    border-color: rgba(255,215,0,0.3);
}

.skill-management-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.skill-management-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-management-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.skill-management-icon {
    font-size: 1.5rem;
}

.skill-management-name {
    color: #1a202c;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    letter-spacing: 0.3px;
}

.skill-management-description {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
    margin-bottom: 10px;
}

.skill-management-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.skill-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.skill-edit-btn {
    background: linear-gradient(45deg, #ffc107, #ff8f00);
    color: white;
}

.skill-edit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,193,7,0.4);
}

.skill-delete-btn {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
}

.skill-delete-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220,53,69,0.4);
}

/* 表单样式增强 */
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    resize: vertical;
    font-family: inherit;
}

.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* 技能栏响应式设计 */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .skill-card {
        padding: 12px;
    }
    
    .skill-name {
        font-size: 1rem;
    }
    
    .skill-description {
        font-size: 0.8rem;
    }
    
    .skill-bar-content {
        max-height: 250px;
        padding: 15px;
    }
    
    .container {
        padding-bottom: 300px; /* 增加移动端的底部边距 */
    }
    
    .skill-bar-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 15px;
    }
    
    .skill-bar-controls {
        justify-content: center;
        gap: 10px;
        flex-wrap: nowrap;
        min-width: auto;
    }
    
    .skill-management-btn {
        font-size: 0.7rem;
        padding: 6px 10px;
        min-width: 75px;
        flex: 1;
        margin: 0 1px;
    }
    
    .skill-bar-toggle button {
        font-size: 0.8rem;
        padding: 6px 12px;
        flex: 1;
    }
    
    .skills-management-grid {
        grid-template-columns: 1fr;
        max-height: 300px;
    }
    
    .skill-management-item {
        padding: 12px;
    }
    
    .skill-management-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .skill-management-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    /* 技能装备系统响应式 */
    .skill-selection-modal {
        width: 98%;
        max-height: 95vh;
    }
    
    .available-skills-grid {
        grid-template-columns: 1fr;
        max-height: 200px;
    }
    
    .current-skills-section,
    .available-skills-section {
        padding: 15px;
    }
    
    .skill-equip-notification {
        right: 10px;
        max-width: 250px;
    }
    
    .member-skill-controls {
        margin-left: 5px;
    }
    
    .skill-equip-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    
    .member-quick-actions {
        gap: 6px;
    }
    
    .score-btn.large {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .member-edit-overlay {
        top: 8px;
        right: 8px;
    }
    
    .score-btn.edit-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}
