:root {
	--文字颜色: #fff;
	--窗口颜色: #007acc;
	--工具背景: #0062a3;
}
body {
	margin: 0;
	height: 100vh;
	background: #eee;
}
#窗口 {
	width: 100%;
	height: 100%;
	border: var(--窗口颜色) 1px solid;
	border-top: 0;
	box-sizing: border-box;
	position: relative;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}
#窗口 .窗口标题 {
	background: var(--窗口颜色);
	color: var(--文字颜色);
	text-align: center;
	height: 30px;
	line-height: 30px;
	display: flex;
}
#窗口 .窗口标题 .标题 {
	width: calc(100% - 120px);
}
#窗口 .窗口标题 h1 {
	margin: 0;
	font-size: 14px;
	font-weight: normal;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	max-width: calc(100% - 120px);
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}
#窗口 .窗口标题 .工具 {
	display: flex;
}
#窗口 .窗口标题 .工具 div {
	width: 40px;
	height: 30px;
	position: relative;
	cursor: pointer;
}
#窗口 .窗口标题 .工具 div:hover {
	background: var(--工具背景);
}
#窗口 .窗口标题 .工具 .关闭:hover {
	background: Red;
}
#窗口 .窗口标题 .工具 div:after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
}
#窗口 .窗口标题 .工具 .最小化:after {
	width: 12px;
	height: 1px;
	background: var(--文字颜色);
	margin-left: -6px;
}
#窗口 .窗口标题 .工具 .最大化:after {
	width: 11px;
	height: 11px;
	border: 1px solid var(--文字颜色);
	box-sizing: border-box;
	margin-top: -5.5px;
	margin-left: -5.5px;
}
#窗口 .窗口标题 .工具 .关闭:after {
	content: "✖";
	top: 0;
	left: 0;
	text-align: center;
	width: 100%;
}
#窗口 .窗口标题 .工具 .关闭:hover:after {
	color: #fff;
}
#窗口.窗口内容 {
    word-wrap: break-word;
    word-break: break-all;
    max-height: calc(100vh - 30px);
    overflow-y: auto;
}