@import 'style-post-custom.css';

:root {
	--light-background: #FAFAFA;
	--light-background-secondary: #fff;
	--light-header: #fff;
	--light-color: #222;
	--light-color-secondary: #999;
	--light-border-color: #dcdcdc;
	--light-sidebar-color: #FCFBEF;
	--light-inner-content-color: #FFFFFF;
	--light-button-color: #fff;
	--light-button-border-color: #333;
	--dark-background: #2f2f2f;
	--dark-background-secondary: #3b3d42;
	--dark-header: #252627;
	--dark-color: #f5f5f5;
	--dark-color-secondary: #73747b;
	--dark-border-color: #4a4b50;
	--phoneWidth: (max-width:684px);
	--tabletWidth: (max-width:900px);
}
	
body {
	margin: 0;
	padding: 0;
	font-family: "LXGW WenKai Screen",-apple-system,BlinkMacSystemFont,Roboto,Segoe UI,Helvetica,Arial,sans-serif;
	font-size: 1.1rem;
	font-weight: 400;
	line-height: 2.2;
	background-color: var(--light-background);
	color: #222;
	color: var(--light-color);
	-webkit-overflow-scrolling: touch;
	-webkit-text-size-adjust: 100%
}

	h1,h2,h3,h4,h5,h6 {
		line-height: 1.3
	}
	
	h1 {
		font-size: 2.625rem
	}
	
	h2 {
		font-size: 1.625rem
	}
	
	h3 {
		font-size: 1.375rem
	}
	
	h4 {
		font-size: 1.125rem
	}

	@media (max-width:683px) {
		h1 {
			font-size: 2rem
		}
	
		h2 {
			font-size: 1.4rem
		}
	
		h3 {
			font-size: 1.15rem
		}
	
		h4 {
			font-size: 1.125rem
		}
	}

	blockquote {
		border-left: 2px solid;
		margin: 1.4rem;
		padding: 0.8rem 1.2rem;
		font-family: KaiTi,STKaiti,PingFang SC,STFangsong !important;
	}
	blockquote p{margin:0;}
	.home blockquote {margin:0;padding:0 10px;}
	@media (max-width:683px) {
		blockquote {
			margin: 10px;
			padding: 10px
		}
	}
/** 整体布局 */
.container {
	/** background-color: #FDF6E3 !important;*/
	background-color: var(--light-background);
	
	gap: 2rem;
}

/******* header *******/
.container .header {
	background: var(--light-background-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 20px 30px;
	box-shadow: inset 0 -1px var(--light-background-secondary);
}

/******* main *******/
.container .main {
	display: flex;
	justify-content: center;
	flex-direction: row;
	background: var(--light-background);
	gap: 1rem;
	padding: 0rem 1rem;
}
	/******* aside *******/
	.sidebar {
		top: 2rem;
		padding: 2rem 1rem;
		background-color: var(--light-sidebar-color);
		border-radius: 10px;
		border-right:  0px solid;
		flex: 0 0 300px;
		position: sticky;
		height: calc(100vh - 4rem);
		transition: all 0.3s ease-in-out;
		transform: translateX(0);
		opacity: 1;
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		overflow-y: auto;
		width: var(--sidebar-width);
	  }
	  
	  .sidebar h3 {
		margin-bottom: 1rem;
		font-size: 1.2rem;
	  }
	  
	  .sidebar ul {
		list-style: none;
		padding: 0;
	  }
	  
	  .sidebar li {
		margin-bottom: 0.5rem;
	  }
	  
	  .sidebar a {
		text-decoration: none;
		color: #333;
	  }
	  
	  .sidebar a:hover {
		color: #007bff;
	  }
	  
	  .tag-cloud {
		display: flex;
		flex-wrap: wrap;
		gap: 0.5rem;
	  }
	  
	  .tag {
		padding: 0.2rem 0.5rem;
		background: #e9ecef;
		border-radius: 4px;
		font-size: 0.9rem;
	  }
	  
	  .profile-avatar {
		width: 120px;
		height: 120px;
		border-radius: 50%;
		margin-bottom: 1.5rem;
		transition: transform 0.3s ease;
		box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
		display: block;
		margin-left: auto;
		margin-right: auto;
	  }
	  
	  .profile-avatar:hover {
		transform: scale(1.05);
	  }
	  
	  .profile-name {
		font-size: 1.5rem;
		font-weight: bold;
		margin-bottom: 0.5rem;
	  }
	  
	  .profile-bio {
		font-size: 0.95rem;
		line-height: 1.6;
		color: var(--color-secondary);
		margin-bottom: 1.5rem;
		padding: 0 1rem;
	  }
	  @media (max-width:683px) {
		.sidebar {
			transform: translateX(-100%);
			opacity: 0;
			display: none;
		}
	
	}
	/* Add animation for larger screens */
	@media (min-width:684px) {
		.sidebar {
			animation: slideIn 0.3s ease-out forwards;
		}
	}

	@keyframes slideIn {
		from {
			transform: translateX(-100%);
			opacity: 0;
		}
		to {
			transform: translateX(0);
			opacity: 1;
		}
	}

	/******* inner-content *******/
	.inner-content {
		flex: 1;
		padding: 1.5rem;
		min-width: 0;
		background-color: var(--light-inner-content-color);
	}
	.home{
		position: relative;
		padding: 1rem;
	}
	.homemore{
		position: absolute;
		bottom: 0rem;
		right: 5%;
	}
	.homemore a{
		bottom: 0px;
		position: relative;
		z-index: 999;
		text-decoration: none;
		padding: .5rem 3rem;
		border-radius: 0.3rem;
		background: var(--light-background-color);
		box-shadow: 0 3px 6px rgba(0,0,0,.05);
		border: 1px solid var(--light-button-border-color);
	}
	.dark .homemore a{background: #3b3d42;border: 1px solid var(--dark-background-secondary);}
	/******* footer *******/

/* Home modern layout */
.modern-card {
	background: var(--light-inner-content-color, var(--background-secondary));
	border-radius: 18px;
	padding: 1.5rem 1.8rem;
	box-shadow: 0 16px 30px rgba(15,23,42,0.03);
	border: 1px solid rgba(17,24,39,0.05);
}

.modern-card.compact {
	padding: 1rem 1.25rem;
}

.home-hero {
	background: #f6f7f8;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.hero-heading {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	flex-wrap: wrap;
}

.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-size: 0.72rem;
	color: #9ca3af;
	margin-bottom: 0.4rem;
}

.hero-subtitle {
	font-size: 1rem;
	color: var(--color-secondary);
	margin: 0;
}

.home-hero h1 {
	margin: 0;
	font-size: 2.1rem;
	line-height: 1.2;
}

.hero-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.btn {
	border-radius: 999px;
	padding: 0.65rem 1.5rem;
	font-weight: 600;
	border: 1px solid transparent;
	text-decoration: none;
	transition: all 0.2s ease;
	font-size: 0.95rem;
}

.btn.primary {
	background: #111827;
	color: #fff;
	border-color: #111827;
}

.btn.primary:hover {
	background: #0f172a;
}

.btn.ghost {
	border-color: #d1d5db;
	color: #111827;
	background: transparent;
}

.btn.ghost:hover {
	background: #f3f4f6;
}

.hero-stats {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.stat-value {
	font-size: 1.35rem;
	font-weight: 700;
	display: block;
}

.stat-label {
	font-size: 0.82rem;
	color: var(--color-secondary);
}

.home-latest {
	margin-top: 1.5rem;
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.section-header h2 {
	margin: 0;
	font-size: 1.35rem;
}

.text-link {
	text-decoration: none;
	color: #111827;
	font-weight: 600;
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
}

.text-link.subtle {
	pointer-events: none;
	color: var(--color-secondary);
}

.post-feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.post-card-featured {
	border-radius: 16px;
	border: 1px solid rgba(17,24,39,0.08);
	background: #fff;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	margin: 0;
	height: 100%;
	max-height: 360px;
}

.post-card-content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.post-card-content p {
	margin: 0;
	color: var(--color-secondary);
	line-height: 1.7;
}

.post-card-image {
	height: 150px;
	overflow: hidden;
}

.post-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.post-card-featured:hover .post-card-image img {
	transform: scale(1.05);
}

.post-card-meta {
	font-size: 0.85rem;
	color: var(--color-secondary);
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.post-card-content h3 {
	margin: 0;
	font-size: 1.3rem;
}

.post-card-content h3 a {
	text-decoration: none;
	color: inherit;
}

.post-card-footer {
	margin-top: 0.5rem;
}

.post-card-footer a {
	text-decoration: none;
	font-weight: 600;
	color: #111827;
}

.post-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid #f0f2f5;
}

.post-list li {
	border-bottom: 1px solid #f0f2f5;
}

.archive-list .post-row {
	display: grid;
	grid-template-columns: 90px 1fr auto;
	gap: 1.25rem;
	align-items: center;
	padding: 1rem 0;
	text-decoration: none;
	color: inherit;
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	border-radius: 12px;
	padding: 1rem 1rem;
}

.archive-list .post-row:hover {
	background: rgba(17,24,39,0.03);
	transform: translateX(6px);
	box-shadow: 0 8px 18px rgba(15,23,42,0.06);
}

.archive-list .post-row:hover h4 {
	color: #111827;
}

.archive-list .post-row-date {
	font-size: 0.75rem;
	font-weight: 600;
	color: #e53e3e;
	display: flex;
	flex-direction: column;
	letter-spacing: 0.1em;
}

.archive-list .post-row-date .day {
	font-size: 1.1rem;
	letter-spacing: normal;
	color: #111827;
}

.archive-list .post-row-title h4 {
	margin: 0;
	font-weight: 600;
	font-size: 1rem;
}

.archive-list .post-row-meta span {
	font-size: 0.85rem;
	color: var(--color-secondary);
	white-space: nowrap;
}

.home-panels {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-top: 2rem;
}

.panel-card .panel-body {
	min-height: 200px;
}

.empty-state {
	color: var(--color-secondary);
}

@media (max-width: 768px) {
	.modern-card {
		padding: 1.25rem;
	}

	.hero-meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.section-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.post-row {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}

	.post-row-date {
		flex-direction: row;
		gap: 0.5rem;
		align-items: center;
	}
}
