/* ========== 容器 ========== */
.cyber-modal-container {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 5px 0;
}

/* ========== 按钮（summary） ========== */
.cyber-modal-btn {
    cursor: pointer;
    color: #e24a4a;
    font-weight: bold;
    padding: 6px 14px;
    border: 1px solid #e24a4a;
    border-radius: 4px;
    background-color: rgba(226, 74, 74, 0.1);
    transition: all 0.2s ease;
    display: inline-block;
    user-select: none;
    /* ===== 三连打爆白色空框 ===== */
    list-style: none !important;
}
.cyber-modal-btn::-webkit-details-marker {
    display: none !important;
}
.cyber-modal-btn::marker {
    display: none !important;
    content: "" !important;
}

.cyber-modal-btn:hover {
    background-color: rgba(226, 74, 74, 0.2);
    box-shadow: 0 0 10px rgba(226, 74, 74, 0.3);
}

/* ========== 弹窗内容（默认隐藏） ========== */
.cyber-modal-content {
    display: none;
    position: absolute;
    top: 120%;
    left: 0;
    z-index: 999;
    min-width: 280px;
    max-width: 380px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 12px 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
    font-size: 0.9em;
    line-height: 1.5;
}

/* ========== 核心逻辑：details打开时显示弹窗 ========== */
.cyber-modal-container[open] .cyber-modal-content {
    display: block;
}

/* ========== 打开状态的按钮反馈 ========== */
.cyber-modal-container[open] .cyber-modal-btn {
    background-color: rgba(226, 74, 74, 0.3);
    box-shadow: inset 0 0 8px rgba(226, 74, 74, 0.3);
}

/* ========== 弹窗内部排版 ========== */
.cyber-modal-content p {
    margin: 4px 0;
}
.cyber-modal-content ul,
.cyber-modal-content ol {
    margin: 4px 0;
    padding-left: 20px;
}
.cyber-modal-content li {
    margin: 2px 0;
}

/* ========== 表格 ========== */
.cyber-modal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 6px 0;
    font-size: 0.85em;
}
.cyber-modal-content th,
.cyber-modal-content td {
    border: 1px solid #444;
    padding: 4px 6px;
    text-align: left;
    word-break: break-word;
}
.cyber-modal-content th {
    background-color: rgba(226, 74, 74, 0.15);
    color: #e24a4a;
    font-weight: bold;
}
.cyber-modal-content td {
    background-color: rgba(255, 255, 255, 0.03);
}