/*
Theme Name: 苏绣艺术展示馆
Theme URI: https://sxzs66.com/
Author: 苏绣艺术展示馆
Author URI: https://sxzs66.com/
Description: 苏绣艺术展示馆 - 面向文化馆、展览馆等文化艺术事业单位的官方网站主题。采用“政务红头 + 新闻杂志”融合布局，包含首页、关于我们、联系我们、展馆服务列表页、服务详情页、展览案例页、新闻动态页、FAQ、隐私政策与404页面，内置SEO TDK 设置与完整移动端适配。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sxzs66
Tags: one-column, two-columns, custom-logo, custom-menu, featured-images, footer-widgets, grid-layout, theme-options, translation-ready
*/

/*--------------------------------------------------------------
>>> 目录
1. 变量与基础
2. 全局框架（顶部条/红头/导航/页脚）
3. 首页模块
4. 内页与文章
5. 组件（卡片/按钮/表单/FAQ/分页/面包屑）
6. 响应式
--------------------------------------------------------------*/

:root {
	--sx-brand: #A5242A;        /* 品牌色：苏绣朱砂红 */
	--sx-brand-dark: #7E1A20;   /* 品牌色加深 */
	--sx-accent: #C9A24B;       /* 辅助色：织金 */
	--sx-ink: #2B2B2B;          /* 中性色：墨 */
	--sx-gray: #6E6A64;         /* 中性色：灰 */
	--sx-paper: #F7F4EF;        /* 中性色：宣纸白 */
	--sx-line: #E8E2D8;
	--sx-radius: 6px;
	--sx-shadow: 0 2px 12px rgba(43, 43, 43, .08);
	--sx-font-serif: "Noto Serif SC", "Source Han Serif SC", "STZhongsong", "SimSun", serif;
	--sx-font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
	--sx-line-height: 1.75;
}

* { box-sizing: border-box; }

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

body {
	margin: 0;
	color: var(--sx-ink);
	background: #fff;
	font-family: var(--sx-font-sans);
	font-size: 16px;
	line-height: var(--sx-line-height);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--sx-brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--sx-brand-dark); }

h1, h2, h3, h4 { font-family: var(--sx-font-serif); line-height: 1.35; margin: 0 0 .6em; }

.sx-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

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

/*--------------------------------------------------------------
2. 全局框架
--------------------------------------------------------------*/

/* 顶部工具条 */
.sx-topbar {
	background: var(--sx-brand-dark);
	color: rgba(255, 255, 255, .85);
	font-size: 13px;
}
.sx-topbar .sx-container { display: flex; align-items: center; justify-content: space-between; min-height: 34px; gap: 12px; }
.sx-topbar a { color: rgba(255, 255, 255, .85); }
.sx-topbar a:hover { color: #fff; }
.sx-topbar-meta { display: flex; gap: 18px; align-items: center; }

/* 红头 */
.sx-masthead {
	background: #fff url() no-repeat;
	border-bottom: 3px solid var(--sx-brand);
}
.sx-masthead-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; gap: 24px; flex-wrap: wrap; }
.sx-brand { display: flex; align-items: center; gap: 14px; }
.sx-brand-seal {
	width: 52px; height: 52px; border-radius: 8px;
	background: var(--sx-brand); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--sx-font-serif); font-size: 24px; font-weight: 700; flex: none;
}
.sx-brand-text .sx-site-name {
	font-family: var(--sx-font-serif);
	font-size: 26px; font-weight: 700; letter-spacing: 2px;
	color: var(--sx-brand); margin: 0;
}
.sx-brand-text .sx-site-sub { font-size: 12px; color: var(--sx-gray); letter-spacing: 4px; text-transform: uppercase; }
.sx-header-search { display: flex; gap: 8px; }
.sx-header-search input[type="search"] {
	width: 220px; padding: 8px 12px; border: 1px solid var(--sx-line);
	border-radius: var(--sx-radius); font-size: 14px; background: var(--sx-paper);
}
.sx-header-search button {
	padding: 8px 18px; border: 0; border-radius: var(--sx-radius);
	background: var(--sx-brand); color: #fff; cursor: pointer; font-size: 14px;
}

/* 主导航 */
.sx-nav { background: var(--sx-brand); }
.sx-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.sx-nav li { position: relative; }
.sx-nav a {
	display: block; color: #fff; padding: 13px 20px; font-size: 16px;
	letter-spacing: 1px;
}
.sx-nav li:hover > a, .sx-nav .current-menu-item > a { background: var(--sx-brand-dark); color: #fff; }
.sx-menu-toggle {
	display: none; background: var(--sx-brand); color: #fff; border: 0;
	padding: 12px 20px; font-size: 16px; cursor: pointer; width: 100%; text-align: left;
}

/* 页脚 */
.sx-footer { background: #26221E; color: rgba(255, 255, 255, .72); margin-top: 60px; font-size: 14px; }
.sx-footer a { color: rgba(255, 255, 255, .72); }
.sx-footer a:hover { color: #fff; }
.sx-footer-grid {
	display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px;
	padding: 48px 0 36px;
}
.sx-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; font-family: var(--sx-font-sans); }
.sx-footer ul { list-style: none; margin: 0; padding: 0; }
.sx-footer li { margin-bottom: 10px; }
.sx-footer-bar {
	border-top: 1px solid rgba(255, 255, 255, .12);
	padding: 18px 0; text-align: center; font-size: 13px;
}
.sx-footer-bar .sx-icp { margin: 0 14px; }

/*--------------------------------------------------------------
3. 首页模块
--------------------------------------------------------------*/

.sx-hero { position: relative; background: var(--sx-ink); overflow: hidden; }
.sx-hero img { width: 100%; height: 460px; object-fit: cover; opacity: .82; }
.sx-hero-caption {
	position: absolute; left: 0; right: 0; bottom: 0;
	background: linear-gradient(transparent, rgba(0, 0, 0, .65));
	color: #fff; padding: 90px 0 28px;
}
.sx-hero-caption h2 { font-size: 30px; margin-bottom: 6px; color: #fff; }
.sx-hero-caption p { margin: 0; opacity: .9; }

.sx-notice-bar { background: var(--sx-paper); border-bottom: 1px solid var(--sx-line); font-size: 14px; }
.sx-notice-bar .sx-container { display: flex; gap: 10px; align-items: center; min-height: 42px; }
.sx-notice-bar strong { color: var(--sx-brand); font-weight: 600; flex: none; }

.sx-section { padding: 52px 0 40px; }
.sx-section-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; border-bottom: 2px solid var(--sx-line); padding-bottom: 14px; }
.sx-section-title h2 { font-size: 24px; margin: 0; padding-left: 14px; border-left: 5px solid var(--sx-brand); }
.sx-section-title h2 small { font-size: 13px; color: var(--sx-gray); font-family: var(--sx-font-sans); font-weight: 400; margin-left: 10px; letter-spacing: 2px; }
.sx-section-title .sx-more { font-size: 14px; }

.sx-grid { display: grid; gap: 24px; }
.sx-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sx-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sx-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 数据展示 */
.sx-stats { background: var(--sx-brand); color: #fff; }
.sx-stats .sx-section-title { border-color: rgba(255, 255, 255, .25); }
.sx-stats .sx-section-title h2 { color: #fff; border-color: var(--sx-accent); }
.sx-stat { text-align: center; padding: 10px 0; }
.sx-stat b { display: block; font-size: 38px; font-family: var(--sx-font-serif); color: var(--sx-accent); }
.sx-stat span { font-size: 14px; opacity: .88; }

/* 卡片 */
.sx-card {
	background: #fff; border: 1px solid var(--sx-line); border-radius: var(--sx-radius);
	overflow: hidden; box-shadow: var(--sx-shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.sx-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(43, 43, 43, .14); }
.sx-card img { width: 100%; height: 200px; object-fit: cover; }
.sx-card-body { padding: 18px 20px 22px; }
.sx-card-body h3 { font-size: 18px; margin: 0 0 8px; }
.sx-card-body p { margin: 0; color: var(--sx-gray); font-size: 14px; }
.sx-card-body time { color: var(--sx-accent); font-size: 13px; }

/* 新闻列表 */
.sx-news-list { display: grid; gap: 18px; }
.sx-news-item { display: flex; gap: 18px; align-items: flex-start; border-bottom: 1px dashed var(--sx-line); padding-bottom: 18px; }
.sx-news-item img { width: 160px; height: 104px; object-fit: cover; border-radius: var(--sx-radius); flex: none; }
.sx-news-item h3 { font-size: 17px; margin: 0 0 6px; font-family: var(--sx-font-sans); font-weight: 600; }
.sx-news-item p { margin: 0; color: var(--sx-gray); font-size: 14px; }
.sx-news-meta { font-size: 13px; color: var(--sx-accent); margin-top: 6px; }

/* 联系模块 */
.sx-contact-band { background: var(--sx-paper); border: 1px solid var(--sx-line); border-radius: var(--sx-radius); padding: 30px 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sx-contact-band b { display: block; font-size: 15px; margin-bottom: 6px; }
.sx-contact-band p { margin: 0; color: var(--sx-gray); }

/*--------------------------------------------------------------
4. 内页与文章
--------------------------------------------------------------*/

.sx-page-head { background: var(--sx-paper); border-bottom: 1px solid var(--sx-line); padding: 34px 0; }
.sx-page-head h1 { font-size: 26px; margin: 0 0 8px; }
.sx-breadcrumb { font-size: 13px; color: var(--sx-gray); }
.sx-breadcrumb a { color: var(--sx-gray); }

.sx-content-area { padding: 40px 0 20px; }
.sx-layout-with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
.sx-content-area p { margin: 0 0 1.2em; }
.sx-content-area img { border-radius: var(--sx-radius); }

.sx-sidebar .sx-widget { background: var(--sx-paper); border: 1px solid var(--sx-line); border-radius: var(--sx-radius); padding: 22px 24px; margin-bottom: 24px; }
.sx-sidebar h4 { margin: 0 0 14px; font-size: 16px; padding-left: 10px; border-left: 4px solid var(--sx-brand); }
.sx-sidebar ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.sx-sidebar li { padding: 7px 0; border-bottom: 1px dashed var(--sx-line); }

.sx-entry-meta { font-size: 13px; color: var(--sx-gray); margin-bottom: 22px; }
.sx-entry-featured img { border-radius: var(--sx-radius); margin-bottom: 24px; width: 100%; }

.sx-404 { text-align: center; padding: 90px 20px; }
.sx-404 b { font-size: 88px; font-family: var(--sx-font-serif); color: var(--sx-brand); display: block; }

/*--------------------------------------------------------------
5. 组件
--------------------------------------------------------------*/

.sx-btn {
	display: inline-block; padding: 10px 26px; border-radius: var(--sx-radius);
	background: var(--sx-brand); color: #fff; font-size: 15px; border: 1px solid var(--sx-brand);
	cursor: pointer; transition: background .2s ease;
}
.sx-btn:hover { background: var(--sx-brand-dark); color: #fff; }
.sx-btn-outline { background: transparent; color: var(--sx-brand); }
.sx-btn-outline:hover { background: var(--sx-brand); color: #fff; }

.sx-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 1.2em; }
.sx-table th, .sx-table td { border: 1px solid var(--sx-line); padding: 10px 14px; text-align: left; }
.sx-table th { background: var(--sx-paper); font-weight: 600; }

/* FAQ */
.sx-faq details { border: 1px solid var(--sx-line); border-radius: var(--sx-radius); margin-bottom: 12px; background: #fff; }
.sx-faq summary {
	padding: 15px 18px; cursor: pointer; font-weight: 600; font-size: 15px;
	background: var(--sx-paper); border-radius: var(--sx-radius);
}
.sx-faq details p { padding: 4px 18px 16px; margin: 0; color: var(--sx-gray); font-size: 14px; }

/* 分页 */
.sx-pagination { display: flex; gap: 8px; margin: 30px 0 0; }
.sx-pagination .page-numbers {
	display: inline-block; padding: 7px 14px; border: 1px solid var(--sx-line);
	border-radius: var(--sx-radius); font-size: 14px; color: var(--sx-ink);
}
.sx-pagination .current, .sx-pagination a:hover { background: var(--sx-brand); border-color: var(--sx-brand); color: #fff; }

/* 表单 */
.sx-form input[type="text"], .sx-form input[type="email"], .sx-form input[type="tel"], .sx-form textarea {
	width: 100%; padding: 10px 14px; border: 1px solid var(--sx-line); border-radius: var(--sx-radius);
	font-size: 14px; font-family: inherit; background: #fff; margin-bottom: 16px;
}
.sx-form label { display: block; font-size: 14px; margin-bottom: 6px; }

.sx-tagline { color: var(--sx-accent); letter-spacing: 6px; font-size: 13px; text-transform: uppercase; }

/*--------------------------------------------------------------
6. 响应式
--------------------------------------------------------------*/

@media (max-width: 991px) {
	.sx-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.sx-grid-3 { grid-template-columns: repeat(2, 1fr); }
	.sx-layout-with-sidebar { grid-template-columns: 1fr; }
	.sx-footer-grid { grid-template-columns: repeat(2, 1fr); }
	.sx-hero img { height: 340px; }
}

@media (max-width: 767px) {
	.sx-menu-toggle { display: block; }
	.sx-nav { display: none; }
	.sx-nav.sx-nav-open { display: block; }
	.sx-nav ul { flex-direction: column; }
	.sx-nav a { padding: 12px 20px; border-top: 1px solid rgba(255, 255, 255, .15); }
	.sx-grid-2, .sx-grid-3, .sx-grid-4 { grid-template-columns: 1fr; }
	.sx-footer-grid { grid-template-columns: 1fr; gap: 24px; }
	.sx-contact-band { grid-template-columns: 1fr; }
	.sx-news-item { flex-direction: column; }
	.sx-news-item img { width: 100%; height: 180px; }
	.sx-hero img { height: 260px; }
	.sx-hero-caption h2 { font-size: 22px; }
	.sx-header-search input[type="search"] { width: 150px; }
	.sx-topbar-meta { display: none; }
}
