/* ====== 弹窗遮罩 ====== */
.modal-mask {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-mask.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 1.5rem;
    width: 100%;
    margin: 0 1rem;
    transform: scale(0.95);
    transition: transform 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-mask.active .modal-content { transform: scale(1); }

#player-info-modal .modal-content {
    background-color: #1f2937;
    color: white;
}

/* ====== 玩家悬浮提示 ====== */
#player-list {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.5rem;
    width: 16rem;
    background-color: #1f2937;
    color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 50;
    pointer-events: none;
}

#player-count:hover #player-list {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ====== 服务条款弹窗 ====== */
#terms-content { scrollbar-width: thin; scrollbar-color: #06b6d4 #f1f1f1; }
#terms-content::-webkit-scrollbar { width: 6px; }
#terms-content::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
#terms-content::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, #06b6d4, #22d3ee); border-radius: 3px; }

#terms-content h1 { font-size: 1.75rem; font-weight: 800; color: #1f2937; margin: 1.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid #e5e7eb; }
#terms-content h2 { font-size: 1.35rem; font-weight: 700; color: #374151; margin: 1.25rem 0 0.75rem; padding-left: 0.5rem; border-left: 4px solid #06b6d4; }
#terms-content h3 { font-size: 1.1rem; font-weight: 600; color: #4b5563; margin: 1rem 0 0.5rem; }
#terms-content p { color: #4b5563; line-height: 1.8; margin-bottom: 0.75rem; }
#terms-content ul, #terms-content ol { margin: 0.5rem 0 1rem 1.5rem; color: #4b5563; line-height: 1.8; }
#terms-content li { margin-bottom: 0.4rem; }
#terms-content strong { color: #1f2937; font-weight: 700; }
#terms-content blockquote { background: #f0fdfa; border-left: 4px solid #06b6d4; padding: 0.75rem 1rem; margin: 1rem 0; border-radius: 0 0.5rem 0.5rem 0; color: #374151; font-style: italic; }
#terms-content hr { border: none; border-top: 1px solid #e5e7eb; margin: 1.5rem 0; }
#terms-content code { background: #f3f4f6; padding: 0.15rem 0.4rem; border-radius: 0.25rem; font-size: 0.9em; color: #dc2626; }
#terms-content .warning-tip { background: #fef2f2; border-left: 4px solid #ef4444; padding: 0.75rem 1rem; margin: 1rem 0; border-radius: 0 0.5rem 0.5rem 0; color: #991b1b; }
#terms-content .info-tip { background: #eff6ff; border-left: 4px solid #3b82f6; padding: 0.75rem 1rem; margin: 1rem 0; border-radius: 0 0.5rem 0.5rem 0; color: #1e40af; }

/* ====== 协管守则弹窗 ====== */
#moderator-content { scrollbar-width: thin; scrollbar-color: #3b82f6 #f1f1f1; }
#moderator-content::-webkit-scrollbar { width: 6px; }
#moderator-content::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
#moderator-content::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, #3b82f6, #8b5cf6); border-radius: 3px; }

#moderator-content h2 { font-size: 1.5rem; font-weight: 700; color: #1f2937; margin: 1.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid #e5e7eb; }
#moderator-content h3 { font-size: 1.15rem; font-weight: 600; color: #374151; margin: 1rem 0 0.5rem; }
#moderator-content p { color: #4b5563; line-height: 1.8; margin-bottom: 0.75rem; }
#moderator-content blockquote { background: #eff6ff; border-left: 4px solid #3b82f6; padding: 0.75rem 1rem; margin: 1rem 0; border-radius: 0 0.5rem 0.5rem 0; color: #1e40af; font-style: italic; }
#moderator-content hr { border: none; border-top: 1px solid #e5e7eb; margin: 1.5rem 0; }
#moderator-content strong { color: #1f2937; font-weight: 700; }
#moderator-content code { background: #f3f4f6; padding: 0.15rem 0.4rem; border-radius: 0.25rem; font-size: 0.9em; color: #3b82f6; }
