:root {
	/* --paper: #f3efe6; */
	--paper: #fff;
	--ink: #1c1a17;
	--cinnabar: #c23b22;
	--line: #d9d1c3;
	--muted: #6d655c;
	--serif: "Songti SC", "STSong", "SimSun", "NSimSun", serif;
	--sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	--page: 1120px;
	--nav-height: 64px;
}

html, body, div, p, ul, ol, li, dl, dt, dd, h1, h2, h3, h4, h5, h6, form, input, select, button, textarea {
	margin: 0;
	padding: 0;
}
img { border: 0; vertical-align: top; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }
body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: var(--paper);
	background-image: radial-gradient(rgba(28, 26, 23, 0.045) 0.6px, transparent 0.6px);
	background-size: 3px 3px;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.7;
}
body::before {
	content: "";
	display: block;
	height: 3px;
	background: var(--cinnabar);
	flex-shrink: 0;
}
h1, h2, h3, .r_title, .nav_logo, .foote_logo {
	font-family: var(--serif);
	font-weight: 600;
}

.nav {
	position: relative;
	background: transparent;
	border-bottom: 1px solid var(--line);
}
.nav_con {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: min(var(--page), calc(100% - 48px));
	min-height: var(--nav-height);
	margin: 0 auto;
}
.nav_logo {
	display: block;
	color: var(--ink);
	font-size: 18px;
	line-height: 1.2;
	letter-spacing: 0.04em;
	white-space: nowrap;
}
.nav_ul {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	gap: 4px 22px;
	list-style: none;
}
.nav_li { position: relative; }
.nav_line { display: none; }
.nav_ul a {
	position: relative;
	display: inline-block;
	padding: 20px 0 16px;
	color: var(--ink);
	font-size: 14px;
	letter-spacing: 0.08em;
}
.nav_ul a.active_hover::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 12px;
	width: 18px;
	height: 2px;
	background: var(--cinnabar);
}
.nav_actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
	font-size: 14px;
	white-space: nowrap;
}
.nav_actions .nav-login,
.nav_actions .nav-user { display: none; }
.nav_actions .nav-login.show { display: inline; }
.nav_actions .nav-user.show {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.nav-publish {
	color: var(--cinnabar);
	letter-spacing: 0.06em;
	border-bottom: 1px solid var(--cinnabar);
}
.nav_actions .avatar,
.nav_actions .logout {
	width: 18px;
	height: 18px;
	cursor: pointer;
}
.nav_actions .space { color: var(--muted); }

.home-main,
.page-wrap,
.auth-page { flex: 1 0 auto; }

.footer {
	margin-top: auto;
	background: var(--ink);
	color: var(--paper);
	flex-shrink: 0;
}
.footer_con {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	width: min(var(--page), calc(100% - 48px));
	margin: 0 auto;
	padding: 36px 0 28px;
}
.foote_logo {
	font-size: 22px;
	letter-spacing: 0.06em;
	max-width: none;
}
.footer_font { font-size: 13px; line-height: 1.8; text-align: right; }
.footer_font ul { list-style: none; }
.footer_font a { border-bottom: 1px solid rgba(243, 239, 230, 0.45); }
.footer_font .np { display: inline-block; width: 18px; text-align: center; color: rgba(243, 239, 230, 0.4); }

.contact_us {
	border-top: 1px solid var(--line);
	background: transparent;
}
.contact_us .contact_con {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 48px;
	width: min(var(--page), calc(100% - 48px));
	margin: 0 auto;
	padding: 40px 0 48px;
}
.con_list_title {
	font-family: var(--serif);
	font-size: 28px;
	font-weight: 600;
	margin-bottom: 12px;
}
.contact_us__note {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.6;
}
.contact_us__social {
	display: flex;
	gap: 20px;
	margin-top: 20px;
	font-size: 13px;
	color: var(--muted);
}
.contact_us__social img { width: 18px; height: 18px; margin-right: 6px; }
.contact_us__lines { border-top: 1px solid var(--line); }
.contact_us__line {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
}
.contact_us__line span { color: var(--muted); letter-spacing: 0.12em; font-size: 13px; }
.contact_us .c_c_three { display: none; }

@media (max-width: 900px) {
	.nav_con {
		flex-wrap: wrap;
		width: calc(100% - 32px);
		padding: 10px 0 0;
		gap: 8px 16px;
	}
	.nav_ul {
		order: 3;
		width: 100%;
		justify-content: flex-start;
		flex-wrap: wrap;
		gap: 0 16px;
	}
	.nav_ul a { padding: 8px 0 12px; }
	.footer_con,
	.contact_us .contact_con {
		grid-template-columns: 1fr;
		width: calc(100% - 32px);
		flex-direction: column;
		align-items: flex-start;
	}
	.footer_font { text-align: left; }
	.contact_us__line { grid-template-columns: 64px 1fr; }
}
