/*
Theme Name: 珍宝馆
Theme URI: https://zhenbaoguan.com
Author: 珍宝馆团队
Author URI: https://zhenbaoguan.com
Description: 珍宝馆是一个专为展示珍贵藏品而设计的现代WordPress主题。采用传统PHP模板技术，优雅的排版和精致的布局，完美展现每一件珍藏的独特价值。主题提供丰富的自定义选项，让您可以轻松打造独特的网站。
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
Version: 1.0.59
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zhenbaoguan
Tags: one-column, two-columns, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, accessibility-ready, blog, portfolio, gallery

珍宝馆 WordPress 主题, (C) 2024
珍宝馆 is distributed under the terms of the GNU GPL.
*/

/*
 * 字体平滑处理
 * 提供更好的字体渲染效果
 */
body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

/*
 * 链接样式
 */
a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25ch;
	transition: all 0.3s ease;
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: none;
}

a:active {
	text-decoration: none;
}

/* 导航链接样式 */
.wp-block-navigation .wp-block-navigation-item a:hover,
.wp-block-navigation .wp-block-navigation-item a:focus {
	text-decoration: underline;
	text-decoration-style: solid;
}

/*
 * 按钮样式
 */
.wp-block-search__button,
.wp-block-file .wp-block-file__button {
	background-color: var(--wp--preset--color--primary);
	border-radius: 4px;
	border: 0 solid;
	color: var(--wp--preset--color--background);
	font-size: var(--wp--preset--font-size--medium);
	padding: calc(.667em + 2px) calc(1.333em + 2px);
	transition: all 0.3s ease;
}

.wp-block-search__button:hover,
.wp-block-file .wp-block-file__button:hover,
.wp-block-button__link:hover {
	opacity: 0.90;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/*
 * 对齐样式
 */
.wp-site-blocks,
body > .is-root-container,
.edit-post-visual-editor__post-title-wrapper,
.wp-block-group.alignfull,
.wp-block-group.has-background,
.wp-block-cover.alignfull,
.is-root-container .wp-block[data-align="full"] > .wp-block-group,
.is-root-container .wp-block[data-align="full"] > .wp-block-cover {
	padding-left: var(--wp--custom--spacing--outer);
	padding-right: var(--wp--custom--spacing--outer);
}

.wp-site-blocks .alignfull,
.wp-site-blocks > .wp-block-group.has-background,
.wp-site-blocks > .wp-block-cover,
.wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
.wp-site-blocks > .wp-block-template-part > .wp-block-cover,
body > .is-root-container > .wp-block-cover,
body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background,
body > .is-root-container > .wp-block-template-part > .wp-block-cover,
.is-root-container .wp-block[data-align="full"] {
	margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important;
	margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important;
	width: unset;
}

.wp-site-blocks .wp-block-columns .wp-block-column .alignfull,
.is-root-container .wp-block-columns .wp-block-column .wp-block[data-align="full"],
.wp-site-blocks .alignfull:not(.wp-block-group) .alignfull,
.is-root-container .wp-block[data-align="full"] > *:not(.wp-block-group) .wp-block[data-align="full"] {
	margin-left: auto !important;
	margin-right: auto !important;
	width: inherit;
}

/*
 * 响应式菜单容器内边距
 */
.wp-block-navigation__responsive-container.is-menu-open {
	padding-top: var(--wp--custom--spacing--outer);
	padding-bottom: var(--wp--custom--spacing--large);
	padding-right: var(--wp--custom--spacing--outer);
	padding-left: var(--wp--custom--spacing--outer);
}

/*
 * 评论区域样式优化
 */
.wp-block-post-comments ol.commentlist ul.children {
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.wp-block-post-comments ol.commentlist li.comment:not(:last-child) {
	margin-bottom: 1rem;
}

/*
 * 图片悬停效果
 */
.wp-block-image img {
	transition: transform 0.3s ease;
}

.wp-block-image:hover img {
	transform: scale(1.02);
}

/*
 * 画廊样式
 */
.wp-block-gallery {
	gap: var(--wp--custom--spacing--small);
}

/* ================================
   基础布局样式
   ================================ */

.site {
	max-width: 100%;
	margin: 0 auto;
}

/* 容器 */
.header-container,
.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ================================
   页头样式
   ================================ */

/* 页头和导航样式已移至 custom.css，避免冲突 */

/* ================================
   主内容区域样式
   ================================ */

/* .site-main 样式已移至 custom.css，避免冲突 */

/* 文章列表 */
/*
article {
	margin-bottom: 60px;
	padding-bottom: 40px;
	border-bottom: 1px solid #e5e5e5;
}

article:last-child {
	border-bottom: none;
}
*/

.entry-header {
	margin-bottom: 20px;
}

.entry-title {
	margin: 0 0 15px;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a1a;
}

.entry-title a {
	color: inherit;
	text-decoration: none;
}

.entry-title a:hover {
	color: #8b4513;
}

.entry-meta {
	font-size: 0.875rem;
	color: #666;
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.entry-meta a {
	color: #8b4513;
	text-decoration: none;
}

.entry-meta a:hover {
	text-decoration: underline;
}

/* 特色图片 */
.post-thumbnail {
	margin-bottom: 30px;
	overflow: hidden;
	border-radius: 8px;
}

.post-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.post-thumbnail a:hover img {
	transform: scale(1.05);
}

/* 文章内容 */
.entry-content {
	margin-bottom: 20px;
	line-height: 1.8;
	font-size: 1rem;
}

.entry-content p {
	margin-bottom: 1.5em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	margin-top: 2em;
	margin-bottom: 1em;
	font-weight: 600;
}

.entry-content img {
	max-width: 100%;
	height: auto;
}

.entry-content blockquote {
	margin: 2em 0;
	padding-left: 1.5em;
	border-left: 4px solid #8b4513;
	font-style: italic;
	color: #666;
}

/* 文章页脚 */
.entry-footer {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #e5e5e5;
	font-size: 0.875rem;
}

.cat-links,
.tags-links {
	display: inline-block;
	margin-right: 20px;
}

.cat-links a,
.tags-links a {
	color: #8b4513;
	text-decoration: none;
	margin-right: 5px;
}

.cat-links a:hover,
.tags-links a:hover {
	text-decoration: underline;
}

/* ================================
   页头和归档标题
   ================================ */



.archive-description {
	margin-top: 15px;
	color: #666;
}

/* ================================
   分页导航
   ================================ */

.pagination,
.posts-pagination,
.post-navigation,
.comments-pagination {
	margin: 40px 0;
	clear: both;
}

.nav-links {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.page-numbers {
	display: inline-block;
	padding: 8px 15px;
	background: #f8f5f0;
	color: #1a1a1a;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
	background: #8b4513;
	color: #ffffff;
}

.nav-previous a,
.nav-next a {
	display: inline-block;
	padding: 10px 20px;
	background: #8b4513;
	color: #ffffff;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
	background: #d4a574;
	transform: translateY(-2px);
}

/* ================================
   侧边栏样式
   ================================ */

.widget-area {
	max-width: 350px;
	margin-left: auto;
}

.widget {
	margin-bottom: 40px;
	padding: 25px;
	background: #f8f5f0;
	border-radius: 8px;
}

.widget-title {
	margin: 0 0 20px;
	font-size: 1.25rem;
	font-weight: 600;
	color: #8b4513;
	padding-bottom: 10px;
	border-bottom: 2px solid #d4a574;
}

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

.widget li {
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e5e5e5;
}

.widget li:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.widget a {
	color: #1a1a1a;
	text-decoration: none;
}

.widget a:hover {
	color: #8b4513;
}

/* ================================
   评论区域样式
   ================================ */

.comments-area {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 2px solid #e5e5e5;
}

.comments-title {
	margin-bottom: 30px;
	font-size: 1.75rem;
	font-weight: 600;
}

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

.comment-body {
	margin-bottom: 30px;
	padding: 20px;
	background: #f8f5f0;
	border-radius: 8px;
}

.comment-author {
	margin-bottom: 10px;
	font-weight: 600;
}

.comment-metadata {
	margin-bottom: 15px;
	font-size: 0.875rem;
	color: #666;
}

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

.reply {
	margin-top: 10px;
}

.comment-reply-link {
	font-size: 0.875rem;
	color: #8b4513;
	text-decoration: none;
}

.comment-reply-link:hover {
	text-decoration: underline;
}

/* 评论表单 */
.comment-form {
	margin-top: 40px;
}

.comment-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	font-family: inherit;
}

.comment-form input[type="submit"] {
	padding: 12px 30px;
	background: #8b4513;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s ease;
}

.comment-form input[type="submit"]:hover {
	background: #d4a574;
	transform: translateY(-2px);
}

/* ================================
   页脚样式
   ================================ */

.site-footer {

}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.footer-widget-area {
	margin-bottom: 0;
}

.site-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 30px;
	border-top: 1px solid #e5e5e5;
	font-size: 0.875rem;
	color: #666;
	flex-wrap: wrap;
	gap: 20px;
}

.site-info a {
	color: #8b4513;
	text-decoration: none;
}

.site-info a:hover {
	text-decoration: underline;
}

.site-info p {
	margin: 0;
}

/* ================================
   搜索表单样式
   ================================ */

.search-form {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 500px;
}

.search-form label {
	flex: 1;
}

.search-field {
	width: 100%;
	padding: 10px 15px;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	font-size: 1rem;
	transition: border-color 0.3s ease;
}

.search-field:focus {
	outline: none;
	border-color: #8b4513;
}

.search-submit {
	padding: 10px 15px;
	background: #8b4513;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.search-submit:hover {
	background: #d4a574;
	transform: translateY(-2px);
}

.search-submit svg {
	width: 16px;
	height: 16px;
}

/* ================================
   响应式设计
   ================================ */

@media screen and (max-width: 768px) {
	.menu-toggle {
		display: block;
	}

	.main-navigation .nav-menu {
		display: none;
		flex-direction: column;
		width: 100%;
		margin-top: 20px;
		background: #ffffff;
		padding: 20px;
		border-radius: 8px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	}

	.main-navigation .nav-menu.toggled {
		display: flex;
	}

	.nav-menu .sub-menu {
		position: static;
		box-shadow: none;
		padding-left: 20px;
		display: none;
	}

	.nav-menu .sub-menu.toggled {
		display: block;
	}

	.site-main {
		margin: 0 auto;
	}

	.entry-title {
		font-size: 1.5rem;
	}

	.page-title {
		font-size: 1.75rem;
	}

	.site-info {
		flex-direction: column;
		text-align: center;
	}

	.footer-widgets {
		grid-template-columns: 1fr;
	}
}

/* ================================
   辅助样式
   ================================ */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.clear::after {
	content: "";
	display: table;
	clear: both;
}

