/*
	基金会内部邮箱 - 视觉层移植自 SCP Sigma 9
	[2014 Wikidot Theme] Created for the SCP Foundation by Aelanna
	Edited for SCP Foundation by Dr Devan
	(SCP-CN 分支,CC-BY-SA 3.0;图片素材取自 sigma9.scpwikicn.com/cn/img)
*/

@charset "utf-8";

@import url('https://scp-wiki.wdfiles.com/local--files/component%3Atheme/font-bauhaus.css');
@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700');

/* COMMON */
#content-wrap {
	position: relative;
	margin: 2em auto 0;
	max-width: 1040px;
	min-height: 700px;
	height: auto !important;
}

h1, #page-title {
	color: #901;
	padding: 0 0 .25em;
	margin: 0 0 .6em;
	font-weight: normal;
}

#page-title {
	font-size: 200%;
	border-color: #bbb;
	border-bottom: solid 1px #bbb;
}

h2, h3, h4, h5, h6 {
	margin: .5em 0 .4em;
	padding: 0;
	letter-spacing: 1px;
}

h2.section {
	color: #600;
	font-size: 130%;
	border-bottom: solid 1px #ddd;
	padding-bottom: 3px;
}

li, p {
	line-height: 141%;
}

a {
	color: #b01;
	text-decoration: none;
	background: transparent;
}

a:visited {
	color: #824;
}

a:hover {
	text-decoration: underline;
	background-color: transparent;
}

#side-bar a:visited {
	color: #b01;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
	background-color: #fff;
	font-size: .8em;
	color: #333;
	font-family: Verdana, "Microsoft YaHei", 'Nanum Gothic', Arial, sans-serif;
}

/* GLOBAL WIDTH */
#header, #top-bar {
	width: 90%;
	max-width: 980px;
	margin: 0 auto;
}

div#container-wrap {
	background: url('/img/body_bg.png') top left repeat-x;
}

/* HEADER */
#header {
	height: 140px;
	position: relative;
	z-index: 10;
	padding-bottom: 22px; /* FOR MENU */
	background: url('/img/logo.png') 10px 64% no-repeat;
	background-size: 100px;
}

#search-top-box {
	position: absolute;
	top: 79px;
	right: 9px;
	width: 250px;
	text-align: right;
}

#search-top-box-input {
	border: solid 1px #999;
	border-radius: 5px;
	padding: 2px 5px;
	width: 160px;
	color: #ccc;
	background-color: #300;
	box-shadow: inset 1px 1px 3px rgba(0, 0, 0, .5);
	font-family: inherit;
	font-size: 90%;
}

#search-top-box-input:hover,
#search-top-box-input:focus {
	border: solid 1px #fff;
	color: #fff;
	background-color: #633;
	box-shadow: inset 1px 1px 3px rgba(0, 0, 0, .8);
	outline: none;
}

#search-top-box-form input[type='submit'] {
	border: solid 1px #999;
	border-radius: 5px;
	padding: 2px 5px;
	font-size: 90%;
	font-weight: bold;
	color: #ccc;
	background-color: #633;
	background-image: linear-gradient(to bottom, #966, #633, #300);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
	cursor: pointer;
	font-family: inherit;
}

#search-top-box-form input[type='submit']:hover,
#search-top-box-form input[type='submit']:focus {
	border: solid 1px #fff;
	color: #fff;
	text-shadow: 0 0 1px rgba(255, 255, 255, .25);
	background-color: #966;
	background-image: linear-gradient(to bottom, #c99, #966, #633);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

#login-status {
	position: absolute;
	top: 15px;
	right: 9px;
	color: #aaa;
	font-size: 90%;
	z-index: 30;
}

#login-status a {
	background: transparent;
	color: #ddd;
}

#header h1 {
	margin-left: 120px;
	padding: 0;
	float: left;
	max-height: 95px;
}

#header h2 {
	margin-left: 120px;
	padding: 0;
	clear: left;
	float: left;
	font-size: 105%;
	max-height: 38px;
}

#header h1 a {
	display: block;
	margin: 0;
	padding: 80px 0 25px;
	line-height: 0px;
	max-height: 0;
	color: #eee;
	background: transparent;
	font-family: BauhausLTDemi, 'Nanum Gothic', Arial, sans-serif;
	font-size: 180%;
	text-decoration: none;
	text-shadow: 3px 3px 5px #000;
	letter-spacing: .9px;
}

#header h1 a:hover {
	text-decoration: none;
	background: transparent;
}

#header h2 span {
	display: block;
	margin: 0;
	padding: 2px 0;
	line-height: 0px;
	max-height: 0;
	font-weight: bold;
	color: #f0f0c0;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, .8);
}

/* TOP MENU */
#top-bar {
	position: absolute;
	top: 140px;
	height: 21px;
	line-height: 18px;
	padding: 0;
	z-index: 20;
	font-size: 90%;
}

#top-bar ul {
	float: right;
	list-style: none;
}

#top-bar li {
	margin: 0;
	display: block;
	float: left;
}

#top-bar a {
	color: #fff;
	background: transparent;
}

#top-bar ul li {
	border: 0;
	position: relative;
}

#top-bar ul li ul {
	border: solid 1px #666;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
	border-top: 0;
	border-width: 0 1px;
	width: auto;
	display: none;
	position: absolute;
	left: 0;
	top: 21px;
	background: #fff;
}

#top-bar ul li a {
	border-left: solid 1px rgba(64, 64, 64, .1);
	border-right: solid 1px rgba(64, 64, 64, .1);
	text-decoration: none;
	padding: .25em min(.75vw, 1em);
	display: block;
}

#top-bar .top-bar > ul > li > a {
	font-weight: bold;
}

#top-bar ul li:hover ul {
	display: block;
}

#top-bar ul li:hover a {
	background: #eee;
	color: #a01;
	border-left: solid 1px rgba(64, 64, 64, 1);
	border-right: solid 1px rgba(64, 64, 64, 1);
}

#top-bar ul li:hover ul li a {
	border-width: 0;
	width: 150px;
	border-top: 1px solid #ddd;
	line-height: 160%;
	height: auto;
	max-height: none;
	padding-top: 0;
	padding-bottom: 0;
	color: #a01;
	background: transparent;
}

#top-bar ul li:hover a:hover {
	background: #fff;
	text-decoration: none;
}

#top-bar ul li ul li {
	float: none;
}

#top-bar ul li ul li:hover a {
	background: #fff;
}

.top-bar ul li:last-of-type ul {
	left: auto;
	right: 0;
}

/* SIDE MENU */
#side-bar {
	clear: none;
	float: none;
	position: absolute;
	top: .5em;
	left: 2em;
	width: 17em;
	padding: 0;
	border: none;
	display: block;
}

#side-bar .side-block {
	padding: 10px;
	border: 1px solid #600;
	border-radius: 10px;
	box-shadow: 0 2px 6px rgba(102, 0, 0, .5);
	background: #fff;
	margin-bottom: 15px;
}

#side-bar .side-block.media {
	background: #e5e5ff;
}

#side-bar .side-block.resources {
	background: #e7f7e9;
}

#side-bar .heading {
	color: #600;
	border-bottom: solid 1px #600;
	padding-left: 15px;
	margin-top: 10px;
	margin-bottom: 5px;
	font-size: 8pt;
	font-weight: bold;
	letter-spacing: 1px;
}

#side-bar p {
	margin: 0;
}

#side-bar .menu-item {
	margin: 2px 0;
}

#side-bar .menu-item a {
	font-weight: bold;
}

#side-bar .menu-item .sub-text {
	font-size: 80%;
	color: #666;
}

#side-bar ul {
	list-style-type: none;
	padding: 0 5px;
}

#side-bar .status-line {
	font-size: 90%;
	color: #555;
	margin: 3px 0;
}

#side-bar .status-line strong { color: #600; }

/* MAIN CONTENT */
#main-content {
	margin: 0 2em 0 22em;
	padding: 1em;
	position: relative;
}

/* ---- 应用组件(沿用 Sigma-9 视觉语言) ---- */

table.scp-table {
	width: 100%;
	border-collapse: collapse;
	margin: 8px 0 16px;
	font-size: 95%;
}

table.scp-table th {
	background: #600;
	color: #fff;
	text-align: left;
	padding: 5px 8px;
	border: 1px solid #500;
}

table.scp-table td {
	border: 1px solid #999;
	padding: 5px 8px;
	background: #fff;
}

table.scp-table tr:nth-child(even) td { background: #f7f4f4; }
table.scp-table tr.unread td { font-weight: bold; }
table.scp-table tr:hover td { background: #f4f4f4; }
table.scp-table .col-date { white-space: nowrap; color: #555; font-size: 92%; }

.status-tag {
	display: inline-block;
	padding: 0 6px;
	border-radius: 3px;
	font-size: 85%;
	background: #666;
	color: #fff;
}
.status-tag.delivered-internal { background: #3c6e3c; }
.status-tag.received-external { background: #356; }
.status-tag.sent-external { background: #356; }
.status-tag.failed { background: #901; }

.mail-meta {
	border: 1px dashed #999;
	background: #f4f4f4;
	padding: 8px 12px;
	margin-bottom: 12px;
	font-size: 95%;
}

.mail-meta p { margin: 2px 0; }
.mail-meta .label { color: #600; font-weight: bold; }

.mail-body {
	border-left: 3px solid #600;
	background: #fcfdfb;
	padding: 12px 16px;
	white-space: pre-wrap;
	word-break: break-word;
	min-height: 120px;
}

.form-row { margin-bottom: 12px; }

.form-row label {
	display: block;
	color: #600;
	font-weight: bold;
	margin-bottom: 3px;
	letter-spacing: 1px;
}

input[type="text"],
input[type="password"],
textarea {
	width: 100%;
	padding: 6px 8px;
	border: 1px solid #999;
	border-radius: 4px;
	font-family: inherit;
	font-size: 100%;
	color: #333;
	background: #fff;
}

input:focus, textarea:focus {
	outline: none;
	border-color: #600;
	box-shadow: inset 1px 1px 3px rgba(0, 0, 0, .3);
}

textarea { min-height: 180px; resize: vertical; }

/* 富文本编辑器 */
.compose-optional-links a {
	margin-right: 14px;
	font-weight: bold;
	font-size: 95%;
}

.opt-remove { font-weight: normal !important; font-size: 85%; margin-left: 6px; }

.editor-toolbar {
	border: 1px solid #999;
	border-bottom: none;
	border-radius: 4px 4px 0 0;
	background: #f4f4f4;
	padding: 5px 8px;
	line-height: 24px;
}

.et-btn {
	display: inline-block;
	min-width: 26px;
	padding: 2px 8px;
	margin-right: 3px;
	border: 1px solid #999;
	border-radius: 3px;
	background: #fff;
	color: #333;
	font-weight: bold;
	cursor: pointer;
	font-family: inherit;
	font-size: 100%;
	vertical-align: middle;
}

.et-btn:hover { background: #eee; border-color: #600; color: #600; }

.et-italic { font-style: italic; }
.et-underline { text-decoration: underline; }
.et-plain { font-weight: normal; }

.et-select {
	padding: 2px 4px;
	border: 1px solid #999;
	border-radius: 3px;
	background: #fff;
	font-family: inherit;
	font-size: 95%;
	vertical-align: middle;
	margin-right: 3px;
}

.et-color {
	width: 32px;
	height: 26px;
	padding: 0 2px;
	border: 1px solid #999;
	border-radius: 3px;
	background: #fff;
	cursor: pointer;
	vertical-align: middle;
}

.et-sep {
	display: inline-block;
	width: 1px;
	height: 20px;
	background: #bbb;
	margin: 0 8px;
	vertical-align: middle;
}

.et-hint {
	font-size: 85%;
	color: #888;
	margin-left: 8px;
}

.editor-area {
	min-height: 180px;
	max-height: 600px;
	border: 1px solid #999;
	border-radius: 0 0 4px 4px;
	background: #fff;
	padding: 10px 12px;
	font-size: 110%;
	line-height: 1.6;
	color: #333;
	overflow: auto;
	resize: vertical;
	outline: none;
	word-break: break-word;
}

.editor-area:focus { border-color: #600; }

.mail-body-html { white-space: normal; }
.mail-body-html img { max-width: 100%; }
.mail-body-html a { color: #b01; }

.btn {
	display: inline-block;
	padding: 4px 14px;
	border: solid 1px #999;
	border-radius: 5px;
	font-size: 95%;
	font-weight: bold;
	color: #ccc;
	background-color: #633;
	background-image: linear-gradient(to bottom, #966, #633, #300);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
	cursor: pointer;
	letter-spacing: 1px;
	font-family: inherit;
}

.btn:hover {
	border-color: #fff;
	color: #fff;
	background-color: #966;
	background-image: linear-gradient(to bottom, #c99, #966, #633);
}

.btn-secondary {
	display: inline-block;
	padding: 4px 12px;
	border: 1px solid #999;
	border-radius: 5px;
	background: #f4f4f4;
	color: #b01;
	cursor: pointer;
	font-family: inherit;
	font-size: 95%;
}

.btn-secondary:hover { background: #eee; }

.message-box {
	padding: 8px 12px;
	border-radius: 5px;
	margin-bottom: 12px;
	border: 1px solid;
}

.message-box.ok { background: #f7fff7; border-color: #3c6e3c; color: #2a522a; }
.message-box.err { background: #fff6f0; border-color: #901; color: #901; }

/* 认证页 */
.auth-wrap { max-width: 480px; }

.auth-tabs { margin-bottom: 0; }

.auth-tabs .tab {
	display: inline-block;
	padding: 6px 20px;
	border: 1px solid #999;
	border-bottom: none;
	border-radius: 5px 5px 0 0;
	background: #d8d8d8;
	color: #333;
	cursor: pointer;
	font-weight: bold;
}

.auth-tabs .tab.active { background: #700; color: #fff; border-color: #700; }

.auth-panel {
	border: 1px solid #999;
	background: #f5f5f5;
	padding: 18px;
	border-radius: 0 5px 5px 5px;
}

.auth-note { font-size: 90%; color: #666; margin-top: 8px; }

.empty {
	border: 1px dashed #999;
	background: #f4f4f4;
	color: #666;
	padding: 24px;
	text-align: center;
	margin: 12px 0;
}

code.dns-val {
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 3px;
	padding: 1px 5px;
	font-size: 92%;
	word-break: break-all;
}

/* FOOTER */
#footer {
	margin-top: 3em;
	background: #444;
	color: #bbb;
	padding: 14px 0;
	text-align: center;
	font-size: 90%;
}

#footer a { color: #fff; }

.licensebox {
	font-size: 90%;
	color: #777;
	margin-top: 10px;
}

/* MOBILE */
@media (max-width: 767px) {
	#side-bar {
		position: static;
		width: auto;
		margin: 0 5%;
	}
	#main-content {
		margin: 0 5%;
		max-width: 90%;
		padding: 0;
	}
	#header h1, #header h2 {
		margin-left: 110px;
	}
	#search-top-box { display: none; }
}
