*,
*::before,
*::after {
	box-sizing: border-box;
}

article,
aside,
dialog,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
	display: block;
}

:focus::-webkit-input-placeholder {
	color: transparent;
}

:focus::-moz-placeholder {
	color: transparent;
}

:focus:-moz-placeholder {
	color: transparent;
}

:focus:-ms-input-placeholder {
	color: transparent;
}

/* Structure */

html {
	font-size: 100%;
	-ms-text-size-adjust: none;
	-webkit-text-size-adjust: none;
}

body {
	margin: 0;
	font-family: "Open Sans", Helvetica, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	word-wrap: break-word;
	background: #f7f7f7;
	-webkit-font-smoothing: antialiased;
}

.container {
	position: relative;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
}

.container--outer {
	margin: 25px auto;
	box-shadow: 0 0 10px rgba(50, 50, 50, .17);
}

.wrapper {
	padding: 20px;
	background: #fff;
}

.flex {
	display: -webkit-flex;
	display: flex;
}

.primary {
	-webkit-flex: 1;
	flex: 1;
	-webkit-order: 1;
	order: 1;
	min-width: 0;
}

.sidebar {
	-webkit-order: 2;
	order: 2;
	min-width: 0;
	margin: 0 0 0 1%;
}

.sidebar--left {
	-webkit-order: 0;
	order: 0;
	margin: 0 2.5% 0 0;
}

.clearfix {
	display: block;
}

.clearfix::after {
	display: block;
	height: 0;
	padding: 0;
	margin: 0;
	clear: both;
	line-height: 0;
	visibility: hidden;
	content: "";
}

input,
button,
select,
optgroup,
textarea {
	margin: 0;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

/* Button */
.btn {
	padding: 5px 10px;
	font-weight: 700;
	color: #fff;
	white-space: pre-line;
	background: #2a2a2a;
}

.btn:hover {
	color: #fff;
	background: #e22d30;
}

/* Animation */
.menu__item,
.btn {
	transition: background-color .25s ease-out;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 20px;
	margin: 0 0 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	color: #000;
}

h1 {
	font-size: 32px;
	font-size: 2rem;
}

h2 {
	font-size: 24px;
	font-size: 1.5rem;
}

h3 {
	font-size: 20px;
	font-size: 1.25rem;
}

h4 {
	font-size: 18px;
	font-size: 1.125rem;
}

h5 {
	font-size: 16px;
	font-size: 1rem;
}

h6 {
	font-size: 16px;
	font-size: 1rem;
}

a {
	color: #000;
	text-decoration: none;
}

a:hover {
	color: #e22d30;
}

hr {
	margin: 0 0 20px;
	border: 0;
	border-top: 1px solid #dadada;
}

p {
	margin: 0 0 10px;
	margin: 0 0 0.65rem;
}

b,
strong {
	font: inherit;
	font-weight: 700;
}

i,
em {
	font: inherit;
	font-style: italic;
}

ol,
ul {
	padding: 0;
	margin: 0;
}

small {
	font-size: 12px;
	font-size: .75rem;
}

mark {
	background-color: #fd5;
}

figure {
	margin: 0 0 20px;
	margin: 0 0 1.25rem;
}

figcaption {
	margin-top: 4px;
	margin-top: .25rem;
	color: #666;
}

figcaption h4 {
	margin: 0;
	color: inherit;
}

pre,
code,
kbd,
samp {
	font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: inherit;
}

pre,
code {
	background-color: #f5f5f5;
	border: 1px solid #ebebeb;
}

code {
	padding: 0 5px;
	color: #c33;
}

pre {
	display: block;
	padding: 0;
	padding: 1.25rem;
	margin-bottom: 20px;
	margin-bottom: 1.25rem;
	overflow: auto;
	color: #000;
	font-size: 0.92em;
	white-space: pre-wrap;
	word-wrap: break-word;
	white-space: -moz-pre-wrap;
	white-space: -pre-wrap;
	white-space: -o-pre-wrap;
}

pre code {
	padding: 0;
	color: inherit;
	white-space: inherit;
	background: inherit;
	border: 0;
}

kbd {
	padding: 2px 3px;
	color: #fff;
	background-color: #2a2a2a;
}

blockquote {
	display: block;
	padding: 5px 0 5px 15px;
	margin: 0 0 20px;
	margin: 0 0 1.25rem;
	line-height: 1.6;
	color: #666;
	border-left: 5px solid #e22d30;
}

blockquote p:last-child {
	margin: 0;
}

blockquote footer {
	text-align: right;
}

sup,
sub {
	font-size: 10px;
	font-size: .625rem;
	font-style: normal;
}

sup {
	vertical-align: super;
}

sub {
	vertical-align: sub;
}

abbr[title] {
	text-decoration: none;
	cursor: help;
	border-bottom: 1px dotted #000;
}

q {
	font-style: italic;
}

address {
	margin-bottom: 20px;
	margin-bottom: 1.25rem;
	font-family: "Consolas", Courier New, Courier, monospace;
	line-height: 1.5;
}

dl {
	margin: 0 0 10px 20px;
}

dt,
dd {
	display: list-item;
}

dt {
	font-weight: bold;
	list-style-type: square;
}

dd {
	margin-left: 20px;
	list-style-type: circle;
}

select {
	max-width: 100%;
}

.warning {
	padding: 20px 10px;
	text-align: center;
	border: 1px solid #ddd;
}

.warning__icon {
	margin-bottom: 20px;
	fill: #ddd;
}

/* Header */
.header {
	background: #fff;
}

.logo {
	padding: 25px;
}

.logo__link {
	display: inline-block;
}

.logo__item {
	display: inline-block;
	vertical-align: middle;
}

.logo__img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid white;
	margin-right: 0.75rem;
	flex-shrink: 0;
}

.logo__text {
	text-transform: none;
}

.logo--mixed .logo__item {
	margin: .5rem auto;
}

.logo--mixed .logo__img {
	max-width: 80px;
	max-height: 80px;
}

.logo--mixed .logo__text {
	padding: 0 1rem;
}

.logo__title {
	font-size: 32px;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
	color: #000;
}

.logo__tagline {
	display: inline-block;
	padding-top: 10px;
	margin-top: 10px;
	font-size: 14px;
	font-size: .875rem;
	font-weight: 700;
	line-height: 1;
	color: #e22d30;
	border-top: 1px solid #ebebeb;
}

.divider {
	height: 5px;
	margin: 0;
	background: #e22d30;
	border: 0;
}

/* Main menu */
.no-js .menu__btn {
	display: none;
}

.menu__btn {
	display: block;
	width: 100%;
	padding: 0;
	font: inherit;
	color: #fff;
	background: #2a2a2a;
	border: 0;
	outline: 0;
}

.menu__btn-title {
	position: relative;
	display: block;
	padding: 10px 15px;
	padding: .625rem .9375rem;
	font-weight: 700;
	text-align: right;
	text-transform: none;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
}

:focus > .menu__btn-title {
	box-shadow: inset 0 0 1px 3px #e22d30;
}

button:not(:-moz-focusring):focus > .menu__btn-title {
	box-shadow: none;
}

.menu__btn:focus,
.menu__btn-title:focus {
	outline: 0;
}

.js .menu__btn--active {
	color: #e22d30;
}

.menu__list {
	list-style: none;
	background: #2a2a2a;
}

.menu__item:hover {
	background: #e22d30;
}

.menu__item:first-child {
	border: 0;
}

.menu__item--active {
	background: #e22d30;
}

.menu__link {
	display: block;
	padding: 10px 15px;
	padding: .625rem .9375rem;
	font-weight: 700;
	color: #fff;
	text-transform: none;
}

.menu__link:hover {
	color: #fff;
}

.js .menu__list {
	position: absolute;
	z-index: 1;
	width: 100%;
	visibility: hidden;
	-webkit-transform: scaleY(0);
	transform: scaleY(0);
	-webkit-transform-origin: top left;
	transform-origin: top left;
}

.js .menu__list--active {
	visibility: visible;
	border-top: 1px solid rgba(255, 255, 255, .1);
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	-webkit-transform: scaleY(1);
	transform: scaleY(1);
}

.menu__list--transition {
	transition: visibility .15s ease, transform .15s ease, -webkit-transform .15s ease;
}

@media screen and (min-width: 767px) {
	.menu {
		border-bottom: 5px solid #e22d30;
	}

	.menu__btn {
		display: none;
	}

	.menu__list,
	.js .menu__list {
		position: relative;
		display: -webkit-flex;
		display: flex;
		-webkit-flex-wrap: wrap;
		flex-wrap: wrap;
		visibility: visible;
		border: 0;
		-webkit-transform: none;
		transform: none;
	}

	.menu__item {
		border-left: 1px solid rgba(255, 255, 255, .1);
	}
}

/* Posts/Pages */
.post__header,
.main__header {
	margin-bottom: 20px;
	margin-bottom: 1.25rem;
}

.main__title {
	font-size: 28px;
	font-size: 1.75rem;
}

.main__content {
	margin-bottom: 20px;
	margin-bottom: 1.25rem;
}

.meta {
	font-size: 13px;
	font-size: .8125rem;
	vertical-align: baseline;
}

.meta,
.meta a {
	color: #666;
}

.meta a:hover {
	color: #e22d30;
}

.meta__item {
	display: inline;
	margin-left: 15px;
}

.meta__item:first-child {
	margin-left: 0;
}

.meta__icon {
	margin-right: 5px;
	vertical-align: middle;
	fill: #e22d30;
}

.meta__text {
	vertical-align: middle;
}

.post__title {
	margin: 0;
}

.post__meta {
	padding: 5px 0;
	margin-top: 10px;
	margin-top: .625rem;
	border-bottom: 1px dotted #ebebeb;
}

.post__thumbnail {
	margin: 0 0 20px;
	margin-bottom: 1.25rem;
}

.post__thumbnail img {
	width: 100%;
}

.content a,
.warning a,
.authorbox__description a,
.main .pagination a,
.post-related a {
	font-weight: 700;
	color: #e22d30;
}

.content a:hover,
.warning a:hover,
.authorbox__description a:hover,
.main .pagination a:hover,
.post-related a:hover {
	color: black;
	text-decoration: underline;
}

.content .alignnone {
	display: block;
	margin: 20px 0;
	margin: 1.25rem 0;
}

.content .aligncenter {
	display: block;
	margin: 20px auto;
	margin: 1.25rem auto;
}

.content .alignleft {
	display: inline;
	float: left;
	margin: 5px 20px 20px 0;
	margin: .3125rem 1.25rem 1.25rem 0;
}

.content .alignright {
	display: inline;
	float: right;
	margin: 5px 0 20px 20px;
	margin: .3125rem 0 1.25rem 1.25rem;
}

.content ul {
	list-style: square;
}

.content ol {
	list-style: decimal;
}

.content ul,
.content ol {
	margin: 0 0 10px 40px;
}

.content ul ul,
.content ol ol,
.content ol ul,
.content ul ol {
	margin: 0 0 0 40px;
}

.content li {
	margin-bottom: 5px;
}

.post__footer {
	margin-top: 20px;
	margin-top: 1.25rem;
}

/* Post tags */
.tags {
	margin-bottom: 20px;
	margin-bottom: 1.25rem;
	font-size: 12px;
	font-size: .75rem;
	line-height: 1;
	color: #fff;
}

.tags__list {
	list-style: none;
}

.tags__item {
	float: left;
	margin: 0 6px 6px 0;
	margin: 0 .375rem .375rem 0;
	text-transform: lowercase;
	background: #2a2a2a;
}

.tags__item:hover {
	background: #e22d30;
}

.tags__link,
.tags__link:hover {
	display: block;
	padding: 10px 15px;
}

.tags__badge {
	float: left;
	width: 32px;
	height: 32px;
	padding: 8px;
	margin-right: 6px;
	background: #e22d30;
	fill: #fff;
}

/* Table of Contents */
.toc {
	margin-bottom: 20px;
	font-weight: 400;
	color: #7a8288;
	background: #fff;
	border: 1px solid #ebebeb;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	position: sticky;
	top: 20px;
	width: 100%;
	max-width: 240px;
}

.toc__title {
	padding: 12px 16px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
	background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
	border-bottom: 1px solid #ebebeb;
}

.toc__menu {
	max-height: 510px;
	overflow-y: auto;
	padding: 4px 0;
}

.toc__menu::-webkit-scrollbar {
	width: 6px;
}

.toc__menu::-webkit-scrollbar-track {
	background: #f8f9fa;
	border-radius: 3px;
}

.toc__menu::-webkit-scrollbar-thumb {
	background: #dee2e6;
	border-radius: 3px;
	transition: background 0.2s ease;
}

.toc__menu::-webkit-scrollbar-thumb:hover {
	background: #adb5bd;
}

.toc__menu ul {
	margin: 0;
	list-style: none;
	padding: 0;
}

.toc__menu li {
	margin: 0;
}

.toc__menu a {
	display: block;
	padding: 5px 10px;
	color: #666;
	font-size: 13px;
	line-height: 1.3;
	text-decoration: none;
	border-left: 3px solid transparent;
	transition: all 0.2s ease;
	word-break: break-word;
}

.toc__menu a:hover {
	color: #e22d30;
	background: rgba(226, 45, 48, 0.05);
	border-left-color: #e22d30;
	padding-left: 14px;
}

.toc__menu li li a {
	padding-left: 20px;
	font-size: 12px;
	color: #777;
}

.toc__menu li li a:hover {
	padding-left: 24px;
}

.toc__menu li li li a {
	padding-left: 30px;
	font-size: 11px;
	color: #888;
}

.toc__menu li li li a:hover {
	padding-left: 34px;
}

.toc__menu li li li li a {
	padding-left: 48px;
	font-size: 11px;
}

.toc__menu li li li li a:hover {
	padding-left: 52px;
}

.toc__menu li li li li li a {
	padding-left: 60px;
	font-size: 11px;
}

.toc__menu li li li li li a:hover {
	padding-left: 64px;
}

.toc__menu li li li li li li a {
	padding-left: 72px;
	font-size: 11px;
}

.toc__menu li li li li li li a:hover {
	padding-left: 76px;
}

/* Author Box */
.authorbox {
	padding: 25px 0;
	margin-bottom: 25px;
	line-height: 1.5;
	border-top: 1px solid #ebebeb;
	border-bottom: 1px solid #ebebeb;
}

.authorbox__avatar {
	float: left;
	padding: 3px;
	margin: 0 25px 0 0;
	border: 1px solid #ebebeb;
}

.authorbox__header {
	margin-bottom: 10px;
}

.authorbox__name {
	font-size: 16px;
	font-size: 1rem;
	font-weight: 700;
}

/* List content */
.list__item {
	padding-bottom: 20px;
	padding-bottom: 1.25rem;
	margin-bottom: 20px;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid #ebebeb;
}

.list__item .content h2 {
	font-size: 1em;
}

.list__header {
	margin-bottom: 10px;
	margin-bottom: .625rem;
}

.list__title {
	font-size: 20px;
	font-size: 1.25rem;
}

.list__meta {
	margin-top: 5px;
}

.list__thumbnail {
	float: left;
	margin: 0 20px 0 0;
}

.list__thumbnail img {
	width: 100%;
	max-width: 135px;
}

.list__footer-readmore {
	float: right;
	margin-top: 0px;
}

/* Pagination */
.pagination {
	margin-top: 20px;
}

.pagination__item {
	display: inline-block;
	padding: 5px 10px;
	font-weight: 700;
	color: #000;
	background: #f5f5f5;
}

.pagination__item a {
	color: #e22d30;
}

/* pagination (prev/next links) navigation */
.pagination {
	-webkit-justify-content: space-between;
	justify-content: space-between;
	padding-top: 15px;
	padding-bottom: 10px;
	margin-bottom: 10px;
}

.pagination__subtitle {
	display: block;
	margin-bottom: 5px;
	font-weight: 700;
	line-height: 1;
	text-transform: none;
}

.pagination__title {
	margin-bottom: 0;
	overflow: hidden;
}

.pagination__item {
	-webkit-flex: 1 1 50%;
	flex: 1 1 50%;
	max-width: 48%;
}

.pagination__item--next {
	margin-left: auto;
	text-align: right;
}

.list .pagination__item--next a {
	color: white
}

.pagination__link {
	display: block;
}


/* 相关文章区美化 */
.post-related {
    padding: 15px 0;
	border-top: 1px solid #ebebeb;
	padding-bottom: 10px;
}
.post-related h3 {
	font-size: 1.18em;
	margin-bottom: 10px;
	font-weight: 600;
	letter-spacing: 0.02em;
}
.post-related-list {
	padding-left: 1.2em;
	margin: 0;
	display: block;
}
.post-related-item {
	background: none;
	border-radius: 0;
	box-shadow: none;
	padding: 0.2em 0;
	min-width: 0;
	transition: none;
}

/* Images / Video */
img {
	width: auto\9; /* ie8 */
	max-width: 100%;
	height: auto;
	vertical-align: bottom;
}

iframe,
embed,
object,
video {
	max-width: 100%;
}

/* Table */
table {
	width: 100%;
	margin-bottom: 20px;
	margin-bottom: 1.25rem;
	border-spacing: 0;
	border-collapse: collapse;
	border-top: 1px solid #ebebeb;
	border-left: 1px solid #ebebeb;
	word-break: break-all;
	word-wrap: break-word;
}

td,
th {
	padding: 5px 10px;
	border-right: 1px solid #ebebeb;
	border-bottom: 1px solid #ebebeb;
}

th {
	font-weight: 700;
}

/* Forms */
input {
	padding: 5px;
	font-size: 12px;
	vertical-align: middle;
	background: #f5f5f5;
	border: 1px solid #ebebeb;
	transition: all .25s ease-in-out;
}

input[type=text],
input[type=email],
input[type=tel],
input[type=url] {
	width: 60%;
}

input[type=text]:hover,
input[type=email]:hover,
input[type=tel]:hover,
input[type=url]:hover,
textarea:hover {
	border: 1px solid #aaa;
}

input[type=submit],
input[type=reset] {
	display: inline-block;
	min-width: 150px;
	padding: 10px 15px;
	font-weight: 700;
	color: #fff;
	text-transform: none;
	cursor: pointer;
	background: #2a2a2a;
	border: 0;
	transition: all .1s linear;
	-webkit-appearance: none;
}

input[type=submit]:hover,
input[type=reset]:hover {
	background: #e22d30;
}

textarea {
	width: 96%;
	padding: 5px;
	overflow: auto;
	line-height: 1.5;
	resize: vertical;
	background: #f5f5f5;
	border: 1px solid rgba(0, 0, 0, .1);
}

/* Widgets */
.widget {
	margin-bottom: 25px;
	overflow: hidden;
}

.widget:last-child {
	margin-bottom: 0;
}

.widget__title {
	position: relative;
	padding-bottom: 5px;
	font-size: 16px;
	font-size: 1rem;
	text-transform: none;
	border-bottom: 3px solid #e22d30;
}

.widget__item {
	display: block;
	padding: 5px 0;
	border-bottom: 1px dotted #ebebeb;
}

.widget__item:first-child {
	padding-top: 0;
}

.widget__counter--bubble {
	display: inline-block;
	padding: 0 6px;
	font-size: .75rem;
	color: #666;
	text-align: center;
	background: #ebebeb;
	border-radius: 2em;
}

/* Search widget */
.widget-search__form {
	padding: 16px 24px;
	background: #f5f5f5;
}

.widget-search__submit[type=submit] {
	display: none;
}

.widget-search__field {
	width: 100%;
	padding: 6px 8px;
	font-size: 13px;
	cursor: pointer;
	background: #fff;
	border: 1px solid #ebebeb;
	outline-offset: -2px;
	transition: none;
	-webkit-appearance: none;
}

.widget-search__field:active,
.widget-search__field:focus {
	cursor: text;
	outline: 2px solid #005fcc;
}

/* Social */
.social__content {
	margin-bottom: 1.25rem;
	justify-content: flex-start;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.social__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: #eee;
	transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
	box-shadow: none;
	margin: 0;
	padding: 0;
}

.social__link-icon {
	width: 22px;
	height: 22px;
	display: block;
	fill: #fff;
}

/* 品牌色背景（社交栏和分享栏通用） */
.social__link[title*="Twitter"]  { background: #1da1f2; }
.social__link[title*="Facebook"]  { background: #1877f3; }
.social__link[title*="LinkedIn"]  { background: #0077b5; }
.social__link[title*="Weibo"]   { background: #e6162d; }
.social__link[title*="Telegram"] { background: #229ed9; }
.social__link[title*="GitHub"] { background: #333; }
.social__link[title*="Email"]   { background: #888; }
.social__link[title*="YouTube"]  { background: #ff0000; }
.social__link[title*="Instagram"] { background: #e4405f; }
.social__link[title*="GitLab"] { background: #fc6d26; }
.social__link[title*="Bitbucket"] { background: #205081; }

/* Tags Widget */
.widget-taglist__link {
	display: inline-block;
	margin: 0 4px 8px 0;
	font-size: 12px;
	text-transform: lowercase;
}

/* Languages Widget */
.widget-languages__link {
	display: block;
}

.widget-languages__link:hover .widget-languages__link-btn {
	color: #fff;
	background: #e22d30;
}

.widget-languages__link-btn {
	display: inline-block;
}

/* Footer */
.footer {
	padding: 15px 25px;
	font-size: 13px;
	font-size: .85rem;
	color: #999;
	background: #2a2a2a;
	border-top: 3px solid #999;
}

.footer__container {
	-webkit-flex-flow: row wrap;
	flex-flow: row wrap;
	-webkit-justify-content: space-between;
	justify-content: space-between;
}

.footer__links {
	-webkit-order: 1;
	order: 1;
}

.footer a {
	color: #fff;
}

.footer a:hover {
	text-decoration: underline;
}

/* Media Queries */
@media screen and (max-width: 1475px) {
	.container--outer {
		width: 95%;
	}
}

@media screen and (max-width: 900px) {
	.container--outer {
		width: 100%;
		margin: 0 auto;
		box-shadow: none;
	}

	.wrapper,
	.logo {
		padding: 18px;
	}

	.widget {
		margin-bottom: 20px;
		padding: 15px;
	}

	.footer__container {
		display: block;
		padding: 18px;
	}

	.footer__links {
		padding-bottom: 8px;
		padding-bottom: 0.5rem;
		text-align: center;
	}

	.footer__copyright {
		text-align: center;
		font-size: 0.9em;
	}

	/* Code blocks */
	pre {
		font-size: 0.9em;
		padding: 15px;
	}

	/* Tables */
	table {
		font-size: 0.95em;
	}

	td,
	th {
		padding: 8px 10px;
	}

	/* Content headings */
	.content h1 {
		font-size: 1.85rem;
	}

	.content h2 {
		font-size: 1.6rem;
	}

	.content h3 {
		font-size: 1.35rem;
	}
}

/* Adjust layout for medium screens */
@media screen and (max-width: 1200px) {
	.sidebar {
		-webkit-flex: 0 0 180px;
		flex: 0 0 180px;
	}

	.toc {
		max-width: 200px;
	}
}

/* Hide TOC on tablets and smaller screens */
@media screen and (max-width: 1024px) {
	.sidebar {
		display: none;
	}

	.primary {
		-webkit-flex: 1;
		flex: 1;
		margin: 0;
	}
}

@media screen and (max-width: 767px) {
	.wrapper {
		display: block;
		padding: 15px;
	}

	.sidebar {
		display: none;
	}

	.primary {
		width: 100%;
		margin: 0;
	}

	.logo {
		text-align: center;
		padding: 15px;
	}

	.logo__link {
		margin: 0 auto;
	}

	.logo__title {
		font-size: 24px;
		font-size: 1.5rem;
	}

	.logo__tagline {
		font-size: 0.85rem;
	}

	/* Menu improvements */
	.menu__btn-title {
		padding: 12px 15px;
		font-size: 0.95rem;
	}

	.menu__link {
		padding: 12px 15px;
		font-size: 0.95rem;
	}

	/* Content improvements */
	.content {
		word-wrap: break-word;
		overflow-wrap: break-word;
	}

	/* Post thumbnail */
	.post__thumbnail {
		margin-bottom: 15px;
	}

	/* List improvements */
	.list__item {
		margin-bottom: 20px;
		padding-bottom: 15px;
	}

	.list__header {
		margin-bottom: 8px;
	}

	.list__footer-readmore {
		margin-top: 8px;
	}
}

@media screen and (max-width: 620px) {
	body {
		font-size: 0.98em;
	}

	.wrapper {
		padding: 15px;
	}

	.container--outer {
		margin: 0;
		box-shadow: none;
	}

	/* Code blocks - horizontal scroll on mobile */
	pre {
		font-size: 0.85em;
		padding: 12px 15px;
		margin-left: 0;
		margin-right: 0;
		border-left: 1px solid #ebebeb;
		border-right: 1px solid #ebebeb;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		border-radius: 4px;
	}

	pre code {
		padding: 0;
	}

	/* Inline code */
	code {
		font-size: 0.9em;
		padding: 2px 4px;
		word-break: break-word;
	}

	/* Tables - horizontal scroll on mobile */
	table {
		display: block;
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		margin-left: 0;
		margin-right: 0;
		border-left: 1px solid #ebebeb;
		border-right: 1px solid #ebebeb;
		border-radius: 4px;
	}

	table thead,
	table tbody,
	table tr {
		display: table;
		width: 100%;
		table-layout: fixed;
	}

	td,
	th {
		padding: 8px 10px;
		font-size: 0.9em;
		word-break: break-word;
	}

	/* Blockquotes */
	blockquote {
		margin-left: 0;
		margin-right: 0;
		padding-left: 15px;
		padding-right: 15px;
		font-size: 0.95em;
	}

	/* Images */
	.content img {
		max-width: 100%;
		height: auto;
		margin-left: auto;
		margin-right: auto;
	}

	.content .alignleft,
	.content .alignright {
		float: none;
		display: block;
		margin: 15px auto;
	}

	/* Forms */
	input[type=text],
	input[type=email],
	input[type=tel],
	input[type=url] {
		width: 100%;
		max-width: 100%;
	}

	textarea {
		width: 100%;
		max-width: 100%;
	}

	.meta__item {
		display: inline-block;
		margin-left: 5px;
		font-size: 0.9em;
	}

	.authorbox {
		text-align: center;
		padding: 15px;
	}

	.authorbox__avatar {
		display: inline-block;
		float: none;
		margin: 0 0 15px;
	}

	.pagination {
		display: block;
		margin-top: 20px;
	}

	.pagination__item {
		min-width: 100%;
		text-align: center;
		margin-bottom: 10px;
	}

	.pagination__item--prev {
		padding-bottom: 15px;
		margin-bottom: 15px;
		border-bottom: 1px solid #ebebeb;
	}

	.pagination__item--next {
		margin-left: 0;
	}

	/* Content lists */
	.content ul,
	.content ol {
		margin: 0 0 10px 20px;
		padding-left: 0;
	}

	.content ul ul,
	.content ol ol,
	.content ol ul,
	.content ul ol {
		margin: 0 0 0 20px;
	}

	.content li {
		margin-bottom: 8px;
		line-height: 1.6;
	}

	/* List items */
	.list__thumbnail {
		max-width: 80px;
		margin-right: 12px;
	}

	.list__title {
		font-size: 16px;
		font-size: 1rem;
		line-height: 1.4;
	}

	.list__lead {
		font-size: 14px;
		font-size: .875rem;
		line-height: 1.5;
	}

	.list__meta {
		display: inline-block;
		font-size: 11px;
		font-size: .6875rem;
	}

	/* Post header */
	.post__header {
		margin-bottom: 15px;
	}

	.main__title {
		font-size: 1.5rem;
		line-height: 1.3;
	}

	/* Post content */
	.content {
		font-size: 1em;
		line-height: 1.7;
	}

	.content h1 {
		font-size: 1.75rem;
		margin-top: 1.5em;
		margin-bottom: 0.75em;
	}

	.content h2 {
		font-size: 1.5rem;
		margin-top: 1.5em;
		margin-bottom: 0.75em;
	}

	.content h3 {
		font-size: 1.25rem;
		margin-top: 1.25em;
		margin-bottom: 0.625em;
	}

	.content h4 {
		font-size: 1.1rem;
		margin-top: 1em;
		margin-bottom: 0.5em;
	}

	.content p {
		margin-bottom: 1em;
	}

	/* Post related */
	.post-related {
		padding: 15px 0;
		margin-top: 20px;
	}

	.post-related h3 {
		font-size: 1.1em;
		margin-bottom: 12px;
	}

	/* Tags */
	.tags {
		margin-bottom: 15px;
	}

	.tags__item {
		margin: 0 4px 4px 0;
		font-size: 0.75rem;
	}

	.tags__link {
		padding: 8px 12px;
	}

	/* Logo */
	.logo {
		padding: 15px;
	}

	.logo__title {
		font-size: 1.5rem;
	}

	.logo__tagline {
		font-size: 0.8rem;
		padding-top: 8px;
		margin-top: 8px;
	}

	.logo__img {
		width: 50px;
		height: 50px;
	}

	/* Widgets */
	.widget {
		margin-bottom: 20px;
		padding: 15px;
	}

	.widget__title {
		font-size: 1.1rem;
		margin-bottom: 12px;
	}

	/* Footer */
	.footer__container {
		padding: 15px;
	}

	.footer__links {
		margin-bottom: 10px;
	}

	/* Summary */
	.summary {
		margin-bottom: 20px;
		padding: 15px;
	}

	.summary__header {
		margin-bottom: 10px;
	}

	.summary__title {
		font-size: 1.1rem;
		line-height: 1.4;
	}

	.summary__lead {
		font-size: 0.9rem;
		line-height: 1.5;
	}
}

/* Taxonomy Pages (Categories & Tags) */
.taxonomy-container {
	max-width: 1200px;
	margin: 0 auto;
}

.taxonomy-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.taxonomy-card {
	background: #fff;
	border: 1px solid #e1e5e9;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	transition: box-shadow 0.3s ease;
}

.taxonomy-card:hover {
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.taxonomy-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e1e5e9;
}

.taxonomy-title {
	margin: 0;
	font-size: 1.2em;
}

.taxonomy-title a {
	color: #2c3e50;
	text-decoration: none;
}

.taxonomy-title a:hover {
	color: #e22d30;
}

.taxonomy-count {
	color: white;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 0.85em;
	font-weight: 500;
}

/* Category specific styles */
.category-count {
	background: #e74c3c;
}

/* Tag specific styles */
.tag-count {
	background: #3498db;
}

.taxonomy-posts {
	max-height: 300px;
	overflow-y: auto;
}

.taxonomy-post-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid #f8f9fa;
}

.taxonomy-post-item:last-child {
	border-bottom: none;
}

.post-link {
	color: #2c3e50;
	text-decoration: none;
	flex: 1;
	margin-right: 10px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.post-link:hover {
	color: #e22d30;
}

.post-date {
	color: #7f8c8d;
	font-size: 0.85em;
	white-space: nowrap;
}

.taxonomy-more {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #e1e5e9;
	text-align: center;
}

.more-link {
	color: #e22d30;
	text-decoration: none;
	font-weight: 500;
}

.more-link:hover {
	text-decoration: underline;
}

.no-taxonomy {
	text-align: center;
	padding: 40px;
	color: #7f8c8d;
}

/* Responsive design for taxonomy pages */
@media (max-width: 768px) {
	.taxonomy-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.taxonomy-card {
		padding: 15px;
	}

	.taxonomy-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.taxonomy-post-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 5px;
	}

	.post-link {
		margin-right: 0;
	}
}

/* Simple Tags Page */
.tags-simple-container {
	max-width: 1200px;
	margin: 0 auto;
}

.tags-simple-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

.tags-simple-item {
	display: inline-block;
}

.tags-simple-link {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	margin: 4px;
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 20px;
	color: #495057;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tags-simple-link:hover {
	background: #e22d30;
	color: #fff;
	border-color: #e22d30;
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.tags-simple-name {
	margin-right: 8px;
}

.tags-simple-count {
	background: rgba(255, 255, 255, 0.2);
	color: inherit;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	min-width: 20px;
	text-align: center;
}

.tags-simple-link:hover .tags-simple-count {
	background: rgba(255, 255, 255, 0.3);
}

.no-tags {
	text-align: center;
	padding: 40px;
	color: #7f8c8d;
}

/* Responsive design for simple tags */
@media (max-width: 768px) {
	.tags-simple-container {
		padding: 15px;
	}

	.tags-simple-list {
		gap: 6px;
		margin-top: 15px;
	}

	.tags-simple-link {
		padding: 6px 12px;
		margin: 3px;
		font-size: 13px;
	}

	.tags-simple-count {
		padding: 1px 6px;
		font-size: 11px;
	}
}

/* Additional mobile optimizations */
@media screen and (max-width: 480px) {
	/* Extra small screens */
	body {
		font-size: 0.95em;
	}

	.wrapper {
		padding: 12px;
	}

	.logo {
		padding: 12px;
	}

	.logo__title {
		font-size: 1.35rem;
	}

	.logo__img {
		width: 45px;
		height: 45px;
	}

	/* Touch-friendly buttons */
	input[type=submit],
	input[type=reset],
	button {
		min-height: 44px;
		padding: 12px 20px;
		font-size: 1em;
	}

	/* Better spacing */
	.content h1 {
		font-size: 1.6rem;
	}

	.content h2 {
		font-size: 1.4rem;
	}

	.content h3 {
		font-size: 1.2rem;
	}

	.content h4 {
		font-size: 1.05rem;
	}

	/* Smaller code blocks */
	pre {
		font-size: 0.8em;
		padding: 10px 12px;
		border-radius: 4px;
	}

	/* Compact tables */
	td,
	th {
		padding: 6px 8px;
		font-size: 0.85em;
	}

	/* Compact lists */
	.list__thumbnail {
		max-width: 70px;
		margin-right: 10px;
	}

	.list__title {
		font-size: 0.95rem;
	}

	.list__lead {
		font-size: 0.85rem;
	}

	/* Compact pagination */
	.pagination__item {
		padding: 10px 15px;
	}

	.pagination__title {
		font-size: 0.9em;
	}

	.pagination__subtitle {
		font-size: 0.8em;
	}
}

/* Touch-friendly improvements for all mobile devices */
@media (hover: none) and (pointer: coarse) {
	/* Touch devices */
	a,
	button,
	input[type=submit],
	input[type=reset] {
		min-height: 44px;
		min-width: 44px;
	}

	.menu__link {
		min-height: 44px;
		display: flex;
		align-items: center;
	}

	.tags__link {
		min-height: 36px;
		display: flex;
		align-items: center;
	}

	/* Better tap targets */
	.pagination__link {
		padding: 12px;
		display: block;
	}

	/* Prevent text selection on tap */
	.menu__btn-title {
		-webkit-tap-highlight-color: transparent;
	}
}

/* Smooth scrolling on mobile */
@media screen and (max-width: 767px) {
	html {
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
	}

	body {
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}

	/* Prevent horizontal scroll */
	body,
	html {
		overflow-x: hidden;
		max-width: 100%;
	}

	.container,
	.container--outer,
	.wrapper {
		max-width: 100%;
		overflow-x: hidden;
	}
}

/* Landscape orientation optimizations */
@media screen and (max-width: 767px) and (orientation: landscape) {
	.logo {
		padding: 10px 15px;
	}

	.logo__title {
		font-size: 1.3rem;
	}

	.wrapper {
		padding: 12px 15px;
	}

	.content h1 {
		font-size: 1.5rem;
	}

	.content h2 {
		font-size: 1.35rem;
	}
}
