/* 小组精灵模块样式 - jingling.css */
/* 功能：小组团队养成玩法UI样式 - 上下布局设计 */

/* ==================== 小组精灵卡片容器 ==================== */
.group-jingling-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 24px 20px 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.35);
}

/* 不同小组的渐变色 */
.group-jingling-card[data-group="1"] { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
}
.group-jingling-card[data-group="2"] { 
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); 
}
.group-jingling-card[data-group="3"] { 
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); 
}
.group-jingling-card[data-group="4"] { 
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); 
}
.group-jingling-card[data-group="5"] { 
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); 
}
.group-jingling-card[data-group="6"] { 
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); 
}
.group-jingling-card[data-group="7"] { 
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%); 
}
.group-jingling-card[data-group="8"] { 
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); 
}

/* 星光背景 */
.group-jingling-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.5), transparent);
    background-repeat: repeat;
    background-size: 150px 100px;
    opacity: 0.35;
    pointer-events: none;
}

/* ==================== 上部：精灵展示区 ==================== */
.jingling-top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

/* 精灵图片容器 - 进一步增大尺寸 */
.jingling-avatar-box {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 16px;
}

/* 外圈光环 - 随容器进一步增大 */
.jingling-avatar-ring {
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(255,215,0,0.6), rgba(255,255,255,0.3), rgba(255,215,0,0.6));
    animation: ringRotate 8s linear infinite;
}

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

/* 内圈背景 */
.jingling-avatar-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 0 20px rgba(255,255,255,0.1);
}

/* 精灵图片 - 进一步增大尺寸 */
.jingling-avatar-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 170px;
    height: 170px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
    animation: avatarFloat 3s ease-in-out infinite;
}

.jingling-avatar-egg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95px;
    height: 85px;
    object-fit: contain;
    animation: eggGlow 2s ease-in-out infinite;
}

@keyframes avatarFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-6px); }
}

@keyframes eggGlow {
    0%, 100% { filter: drop-shadow(0 0 12px rgba(255,215,0,0.5)); }
    50% { filter: drop-shadow(0 0 24px rgba(255,215,0,0.9)); }
}

/* 等级徽章 - 悬浮在图片右下（精致小巧版） */
.jingling-lv-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: linear-gradient(145deg, #ffd700 0%, #ffed4e 50%, #ffc800 100%);
    color: #1a1a2e;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 
        0 3px 10px rgba(0,0,0,0.25),
        0 0 0 2px rgba(255,255,255,0.4),
        inset 0 1px 1px rgba(255,255,255,0.5);
    border: 1.5px solid rgba(255,255,255,0.9);
    z-index: 2;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
    min-width: 40px;
    text-align: center;
}

/* 精灵名称 */
.jingling-name-box {
    text-align: center;
}

.jingling-pet-name {
    font-size: 22px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
    margin-bottom: 6px;
}

.jingling-stage-name {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.15);
    padding: 4px 14px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 600;
}

/* ==================== 中部：养分条区域 ==================== */
.jingling-nutrient-section {
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

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

.jingling-nutrient-label {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.jingling-nutrient-value {
    font-size: 14px;
    font-weight: 700;
    color: #ffd700;
}

.jingling-nutrient-bar-bg {
    height: 10px;
    background: rgba(0,0,0,0.25);
    border-radius: 5px;
    overflow: hidden;
}

.jingling-nutrient-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border-radius: 5px;
    transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 0 10px rgba(255,215,0,0.4);
}

/* 满级状态 */
.jingling-nutrient-section.max-level {
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,237,78,0.1));
    border: 1px solid rgba(255,215,0,0.4);
}

.jingling-max-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #ffd700;
    padding: 8px;
}

/* 升级奖励 */
.jingling-reward-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.95);
    background: rgba(255,255,255,0.1);
    padding: 10px 16px;
    border-radius: 12px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.jingling-reward-icon {
    font-size: 16px;
}

.jingling-reward-text {
    font-weight: 600;
}

.jingling-reward-value {
    color: #ffd700;
    font-weight: 800;
}

/* ==================== 下部：按钮区域 ==================== */
.jingling-actions-section {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 480px) {
    .jingling-actions-section {
        flex-wrap: wrap;
    }
}

/* 精致按钮设计 */
.jingling-btn {
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.jingling-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.jingling-btn:hover::before {
    left: 100%;
}

.jingling-btn:hover {
    transform: translateY(-2px);
}

.jingling-btn:active {
    transform: translateY(0);
}

/* 主按钮 - 金色渐变 */
.jingling-btn-primary {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(255,215,0,0.4), inset 0 1px 0 rgba(255,255,255,0.4);
}

.jingling-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255,215,0,0.55), inset 0 1px 0 rgba(255,255,255,0.4);
}

/* 次按钮 - 玻璃态 */
.jingling-btn-secondary {
    background: rgba(255,255,255,0.12);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.jingling-btn-secondary:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.4);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

/* 轮廓按钮 */
.jingling-btn-outline {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.5);
}

.jingling-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.8);
}

/* 图标按钮 - 只有图标的按钮 */
.jingling-btn-icon {
    padding: 10px 12px;
    font-size: 16px;
    min-width: 42px;
    justify-content: center;
}

.jingling-btn-icon span {
    font-size: 18px;
    line-height: 1;
}

/* ==================== 空状态 ==================== */
.jingling-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    color: white;
    position: relative;
    z-index: 1;
}

.jingling-empty-egg-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-bottom: 12px;
}

.jingling-empty-egg-wrap:hover {
    transform: scale(1.05);
}

.jingling-empty-egg {
    width: 130px;
    height: 115px;
    object-fit: contain;
    margin-bottom: 10px;
    animation: emptyEggPulse 2s ease-in-out infinite;
    display: block;
}

.jingling-empty-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jingling-empty-egg-wrap:hover .jingling-empty-hint {
    opacity: 1;
}

@keyframes emptyEggPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(255,215,0,0.4)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 30px rgba(255,215,0,0.8)); }
}

.jingling-empty-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* ==================== 精灵选择弹窗 ==================== */
#jinglingSelectModal .modal-content {
    max-width: 900px;
}

.jingling-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    max-height: 500px;
    overflow-y: auto;
    padding: 4px;
}

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

.jingling-select-item {
    cursor: pointer;
    padding: 16px 12px;
    background: white;
    border-radius: 16px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.jingling-select-item:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.jingling-select-item img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto 10px;
    display: block;
}

@media (max-width: 768px) {
    .jingling-select-item img {
        width: 65px;
        height: 65px;
    }
}

.jingling-select-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 13px;
}

/* ==================== 精灵升级弹窗 ==================== - z-index必须高于模态框(10000) */
#jinglingLevelupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

#jinglingLevelupOverlay.active {
    opacity: 1;
    visibility: visible;
}

.jingling-levelup-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 32px;
    padding: 48px;
    text-align: center;
    max-width: 480px;
    width: 90%;
    position: relative;
    border: 2px solid rgba(255,215,0,0.3);
    box-shadow: 0 0 60px rgba(255,215,0,0.25);
}

@media (max-width: 768px) {
    .jingling-levelup-content {
        padding: 32px 24px;
    }
}

.jingling-levelup-title {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

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

.jingling-levelup-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin: 0 auto 24px;
    filter: drop-shadow(0 0 30px rgba(255,215,0,0.5));
    animation: levelUpBounce 2s ease-in-out infinite;
}

@keyframes levelUpBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.05); }
}

@media (max-width: 768px) {
    .jingling-levelup-image {
        width: 130px;
        height: 130px;
    }
}

.jingling-levelup-text {
    font-size: 20px;
    color: white;
    margin-bottom: 12px;
    font-weight: 700;
}

.jingling-levelup-reward {
    font-size: 17px;
    color: #ffd700;
    margin-bottom: 28px;
    font-weight: 600;
}

.jingling-levelup-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a2e;
    border: none;
    padding: 14px 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.jingling-levelup-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255,215,0,0.4);
}

/* ==================== 进化图鉴 ==================== */
.jingling-evolution-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
    padding: 30px 15px;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .jingling-evolution-timeline {
        gap: 8px;
        padding: 20px 10px;
        justify-content: flex-start; /* 移动端靠左排列 */
    }
}

.jingling-evolution-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 8px;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 90px;
}

.jingling-evolution-stage.unlocked {
    border-color: #667eea;
    background: linear-gradient(145deg, #f0f4ff 0%, #e8eeff 100%);
    box-shadow: 0 4px 16px rgba(102,126,234,0.15);
}

.jingling-evolution-stage.locked {
    opacity: 0.85;
    background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
}

.jingling-evolution-level {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(102,126,234,0.3);
}

.jingling-evolution-stage.locked .jingling-evolution-level {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    box-shadow: none;
}

@media (max-width: 768px) {
    .jingling-evolution-level {
        padding: 2px 8px;
        font-size: 10px;
        border-radius: 8px;
    }
}

.jingling-evolution-img-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.06);
}

.jingling-evolution-stage.unlocked .jingling-evolution-img-wrap {
    background: linear-gradient(145deg, #ffffff 0%, #f0f4ff 100%);
    box-shadow: inset 0 2px 8px rgba(102,126,234,0.1), 0 4px 12px rgba(102,126,234,0.1);
}

@media (max-width: 768px) {
    .jingling-evolution-img-wrap {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }
}

.jingling-evolution-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.jingling-evolution-stage.unlocked .jingling-evolution-img {
    filter: drop-shadow(0 4px 8px rgba(102,126,234,0.2));
}

.jingling-evolution-stage.locked .jingling-evolution-img {
    filter: grayscale(40%) brightness(0.85);
}

@media (max-width: 768px) {
    .jingling-evolution-img {
        width: 50px;
        height: 50px;
    }
}

/* 未解锁精灵蒙层 */
.jingling-evolution-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(148,163,184,0.7) 0%, rgba(100,116,139,0.85) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.jingling-evolution-lock-icon {
    font-size: 28px;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.jingling-evolution-lock-text {
    font-size: 11px;
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.jingling-evolution-name {
    font-size: 12px;
    color: #1e293b;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    max-width: 85px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jingling-evolution-stage.locked .jingling-evolution-name {
    color: #64748b;
}

.jingling-evolution-arrow {
    font-size: 20px;
    color: #667eea;
    font-weight: 700;
    opacity: 0.8;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .jingling-evolution-arrow {
        font-size: 16px;
    }
    .jingling-evolution-name {
        font-size: 11px;
        max-width: 65px;
    }
}

/* ==================== 成长记录 ==================== */
.jingling-history-list {
    max-height: 400px;
    overflow-y: auto;
}

.jingling-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.jingling-history-item:hover {
    background: #f8fafc;
}

.jingling-history-item.exp {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
}

.jingling-history-item.levelup {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.jingling-history-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.jingling-history-content {
    flex: 1;
}

.jingling-history-text {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    margin-bottom: 2px;
}

.jingling-history-time {
    font-size: 11px; /* 字体更小 */
    color: #94a3b8; /* 颜色更淡 */
    font-weight: 400;
}

/* ==================== 已养成列表 ==================== */
.jingling-completed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jingling-completed-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 2px solid #e2e8f0;
}

.jingling-completed-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 12px;
    background: white;
    padding: 8px;
}

.jingling-completed-info {
    flex: 1;
}

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

.jingling-completed-date {
    font-size: 13px;
    color: #64748b;
}

.jingling-completed-empty,
.jingling-history-empty {
    text-align: center;
    color: #94a3b8;
    padding: 40px;
    font-size: 15px;
}

/* ==================== 工作台管理页面 ==================== */
.jingling-management-section {
    width: 100%;
    max-width: 100%;
}

/* 禁用状态遮罩 */
.jingling-management-section.disabled {
    position: relative;
    pointer-events: none;
}

.jingling-management-section.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    border-radius: 16px;
    z-index: 10;
}

.jingling-management-section.disabled .jingling-config-input,
.jingling-management-section.disabled .jingling-toggle-switch input {
    background-color: #f1f5f9;
    cursor: not-allowed;
}

.jingling-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
}

.jingling-toggle-label {
    font-weight: 700;
    color: #1e293b;
    font-size: 16px;
    flex: 1;
}

.jingling-toggle-switch {
    position: relative;
    width: 56px;
    height: 30px;
}

.jingling-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.jingling-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 30px;
}

.jingling-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.jingling-toggle-switch input:checked + .jingling-toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.jingling-toggle-switch input:checked + .jingling-toggle-slider:before {
    transform: translateX(26px);
}

.jingling-management-title {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin: 24px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

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

.jingling-config-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jingling-config-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.jingling-config-input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}

.jingling-config-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

/* ==================== 精灵城堡（光荣榜） ==================== */
.jingling-castle-section {
    margin-top: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    padding: 24px;
    border: 2px solid #e2e8f0;
}

.jingling-castle-title {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jingling-castle-title span {
    font-size: 24px;
}

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

.jingling-castle-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.jingling-castle-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
    border-color: #667eea;
}

.jingling-castle-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    background: linear-gradient(145deg, #f0f4ff 0%, #e8eeff 100%);
    padding: 8px;
    flex-shrink: 0;
}

.jingling-castle-info {
    flex: 1;
    min-width: 0;
}

.jingling-castle-group {
    font-size: 13px;
    color: #667eea;
    font-weight: 700;
    margin-bottom: 4px;
}

.jingling-castle-name {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}

.jingling-castle-date {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.jingling-castle-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
}

.jingling-castle-top .top-member {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #92400e;
    cursor: pointer;
    transition: all 0.2s;
}

.jingling-castle-top .top-member:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.jingling-castle-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
}

@media (max-width: 768px) {
    .jingling-castle-section {
        padding: 16px;
    }
    
    .jingling-castle-title {
        font-size: 18px;
    }
    
    #jinglingCastleContainer {
        grid-template-columns: 1fr;
    }
    
    .jingling-castle-image {
        width: 64px;
        height: 64px;
    }
    
    .jingling-castle-name {
        font-size: 14px;
    }
}

/* ==================== 旧版兼容 ==================== */
.group-jingling-section,
.jingling-content,
.jingling-image-section,
.jingling-image-wrapper,
.jingling-aura,
.jingling-image,
.jingling-egg,
.jingling-info-section,
.jingling-name-wrapper,
.jingling-name,
.jingling-level-badge,
.jingling-stage-name,
.jingling-exp-container,
.jingling-exp-header,
.jingling-exp-label,
.jingling-exp-value,
.jingling-exp-bar-bg,
.jingling-exp-bar,
.jingling-reward,
.jingling-reward-icon,
.jingling-actions {
    display: none;
}
