/*
Theme Name: Fences 中文站主题
Theme URI: https://www.fences.cn
Author: fences.cn
Description: Fences 6 桌面整理软件中文网定制主题，深色 Hero + 官方截图展示，含功能/下载/购买/帮助中心模板。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: fencestheme
*/

:root {
	--green: #3fae4e;
	--green-d: #33913f;
	--green-tint: #e9f6eb;
	--teal: #17b3a6;
	--ink: #131a22;
	--muted: #5d6b7a;
	--line: #e6eaf0;
	--bg-soft: #f5f8fa;
	--dark: #0b1118;
	--dark-2: #101d2b;
	--radius: 16px;
	--shadow: 0 10px 34px rgba(16, 29, 43, .10);
	--wrap: 1180px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	font-family: var(--font);
	color: var(--ink);
	background: #fff;
	line-height: 1.75;
	font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-d); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ---------------- 按钮 ---------------- */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 13px 30px; border-radius: 999px;
	font-weight: 600; font-size: 16px; line-height: 1.2;
	border: 1px solid transparent; cursor: pointer;
	transition: all .2s ease;
}
.btn svg { flex: none; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 22px rgba(63, 174, 78, .35); }
.btn--primary:hover { background: var(--green-d); text-decoration: none; transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.btn--ghost-dark { border-color: #c9d4de; color: var(--ink); }
.btn--ghost-dark:hover { border-color: var(--green); color: var(--green-d); text-decoration: none; }
.btn--lg { padding: 16px 38px; font-size: 17px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
	position: sticky; top: 0; z-index: 99;
	background: rgba(255,255,255,.92);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.site-header__in { display: flex; align-items: center; gap: 30px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand small { font-weight: 500; font-size: 11px; color: var(--muted); display: block; line-height: 1.1; margin-top: 1px; }
.brand__txt { line-height: 1.15; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; padding: 0; }
.main-nav a {
	display: block; padding: 9px 15px; border-radius: 9px;
	color: #33404d; font-size: 15px; font-weight: 500;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--green-d); text-decoration: none; }
.main-nav .nav-cta { background: var(--green); color: #fff; padding: 9px 20px; margin-left: 8px; }
.main-nav .nav-cta:hover { background: var(--green-d); color: #fff; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 8px; }

/* ---------------- Hero ---------------- */
.hero {
	background:
		radial-gradient(900px 480px at 78% -10%, rgba(63, 174, 78, .22), transparent 60%),
		radial-gradient(700px 420px at 8% 8%, rgba(23, 179, 166, .14), transparent 55%),
		linear-gradient(180deg, #0b1118 0%, #0e1a26 100%);
	color: #fff;
	padding: 74px 0 0;
	overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero__badge {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 7px 16px; border-radius: 999px; font-size: 13.5px;
	color: #8ee69a; background: rgba(63,174,78,.14);
	border: 1px solid rgba(63,174,78,.35);
	margin-bottom: 22px;
}
.hero h1 { font-size: 46px; line-height: 1.22; letter-spacing: .5px; font-weight: 800; }
.hero h1 em { font-style: normal; color: #7ddf8b; }
.hero__sub { margin: 18px 0 30px; color: #aebbc9; font-size: 18px; max-width: 34em; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero__meta div { font-size: 13px; color: #8d9aa8; }
.hero__meta strong { display: block; color: #e8eef4; font-size: 15.5px; font-weight: 600; margin-top: 3px; }
.hero__shot { position: relative; padding-bottom: 56px; }
.hero__shot img {
	border-radius: 12px;
	box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
}
.hero__glow {
	position: absolute; inset: 12% -6% -4% 6%;
	background: radial-gradient(closest-side, rgba(63,174,78,.35), transparent 70%);
	filter: blur(30px); z-index: -1;
}

/* ---------------- 媒体条 ---------------- */
.press { background: #0b1118; padding: 34px 0 44px; border-top: 1px solid rgba(255,255,255,.06); }
.press__in { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; }
.press__item { display: flex; align-items: center; gap: 12px; color: #7f8c9a; font-size: 14px; }
.press__item img { height: 30px; width: auto; opacity: .85; }
.press__item span b { color: #cfd8e1; font-weight: 600; display: block; font-size: 14.5px; }
.press__label { width: 100%; text-align: center; color: #66727f; font-size: 13px; letter-spacing: 4px; margin-bottom: 6px; }

/* ---------------- 通用节 ---------------- */
.section { padding: 86px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section__tag {
	display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px;
	color: var(--green-d); background: var(--green-tint);
	padding: 6px 16px; border-radius: 999px; margin-bottom: 16px;
}
.section__head h2 { font-size: 34px; line-height: 1.3; font-weight: 800; }
.section__head p { color: var(--muted); margin-top: 14px; font-size: 16.5px; }

/* ---------------- 功能卡片 ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.fcard {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 30px 26px; transition: all .25s ease;
}
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6ecda; }
.fcard__icon {
	width: 52px; height: 52px; border-radius: 14px;
	background: var(--green-tint); color: var(--green-d);
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 18px;
}
.fcard h3 { font-size: 18.5px; margin-bottom: 9px; font-weight: 700; }
.fcard p { color: var(--muted); font-size: 15px; }

/* ---------------- 图文横排 ---------------- */
.showrow { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.showrow--rev .showrow__txt { order: 2; }
.showrow--rev .showrow__media { order: 1; }
.showrow + .showrow { margin-top: 96px; }
.showrow__txt .kicker {
	color: var(--green-d); font-weight: 700; font-size: 14px; letter-spacing: 2px;
	margin-bottom: 12px; display: block;
}
.showrow__txt h2 { font-size: 30px; line-height: 1.32; font-weight: 800; margin-bottom: 16px; }
.showrow__txt > p { color: var(--muted); margin-bottom: 18px; }
.ticklist { list-style: none; padding: 0; margin: 0 0 24px; }
.ticklist li { padding: 7px 0 7px 32px; position: relative; color: #2c3945; }
.ticklist li::before {
	content: ""; position: absolute; left: 0; top: 12px;
	width: 20px; height: 20px; border-radius: 50%;
	background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233fae4e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center no-repeat;
}
.showrow__media img { border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* ---------------- 数据带 ---------------- */
.statsband { background: linear-gradient(135deg, var(--dark-2), #0b1118); color: #fff; padding: 58px 0; }
.statsband__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.statsband__grid strong { font-size: 36px; font-weight: 800; color: #7ddf8b; display: block; }
.statsband__grid span { color: #93a1af; font-size: 14px; margin-top: 6px; display: block; }

/* ---------------- 使用场景 ---------------- */
.scene {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 28px 24px; text-align: left;
}
.scene__icon {
	width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--green-tint), #e3f4f1); color: var(--green-d);
}
.scene h3 { font-size: 17px; margin-bottom: 8px; }
.scene p { color: var(--muted); font-size: 14.5px; }

/* ---------------- 下载带 ---------------- */
.dlband {
	background:
		radial-gradient(700px 340px at 85% 120%, rgba(63,174,78,.28), transparent 60%),
		linear-gradient(160deg, #0e1a26, #0b1118);
	color: #fff; text-align: center; padding: 80px 0;
}
.dlband h2 { font-size: 34px; font-weight: 800; margin-bottom: 14px; }
.dlband p { color: #a4b1bf; max-width: 560px; margin: 0 auto 30px; }
.dlband__req { margin-top: 26px; color: #7d8b99; font-size: 13.5px; display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.dlband__req b { color: #c6d1db; font-weight: 600; }

/* ---------------- 帮助中心 ---------------- */
.helpgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 44px; }
.helpcard {
	border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
	background: #fff; transition: all .2s ease; display: block; color: var(--ink);
}
.helpcard:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d6ecda; }
.helpcard__icon { color: var(--green-d); margin-bottom: 12px; }
.helpcard h3 { font-size: 17.5px; margin-bottom: 6px; }
.helpcard p { color: var(--muted); font-size: 14px; }
.helpcard__more { color: var(--green-d); font-size: 14px; font-weight: 600; display: inline-block; margin-top: 12px; }

/* ---------------- 文章卡片 ---------------- */
.postgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.postgrid--3 { grid-template-columns: repeat(3, 1fr); }
.postcard {
	border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px;
	background: #fff; display: flex; flex-direction: column; gap: 10px;
	transition: all .2s ease;
}
.postcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.postcard__date { font-size: 12.5px; color: #93a0ad; }
.postcard__title { font-size: 16px; line-height: 1.5; font-weight: 700; }
.postcard__title a { color: var(--ink); }
.postcard__title a:hover { color: var(--green-d); text-decoration: none; }
.postcard__excerpt { color: var(--muted); font-size: 13.8px; flex: 1; }
.postcard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.postcard__cat {
	font-size: 12px; color: var(--green-d); background: var(--green-tint);
	padding: 3px 10px; border-radius: 999px; font-weight: 600;
}
.postcard__more { font-size: 13.5px; font-weight: 600; }

/* ---------------- FAQ ---------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border: 1px solid var(--line); border-radius: 13px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq__q {
	width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
	padding: 19px 22px; font-size: 16px; font-weight: 600; color: var(--ink);
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	font-family: var(--font);
}
.faq__q::after {
	content: "+"; font-size: 21px; color: var(--green-d); flex: none; font-weight: 400;
	transition: transform .2s ease;
}
.faq__item.is-open .faq__q::after { transform: rotate(45deg); }
.faq__a { display: none; padding: 0 22px 20px; color: var(--muted); }
.faq__item.is-open .faq__a { display: block; }

/* ---------------- CTA 带 ---------------- */
.ctaband {
	background: linear-gradient(135deg, var(--green) 0%, #2f9e63 100%);
	color: #fff; text-align: center; padding: 66px 0;
}
.ctaband h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.ctaband p { opacity: .92; margin-bottom: 26px; }
.ctaband .btn--primary { background: #fff; color: var(--green-d); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.ctaband .btn--primary:hover { background: #f2fbf3; }
.ctaband .btn--ghost { border-color: rgba(255,255,255,.55); }

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--dark); color: #93a1af; padding: 60px 0 34px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 40px; }
.footer__brand img { width: 40px; height: 40px; border-radius: 9px; margin-bottom: 14px; }
.footer__brand p { max-width: 30em; }
.footer__col h4 { color: #dfe7ee; font-size: 15px; margin-bottom: 14px; font-weight: 600; }
.footer__col ul { list-style: none; padding: 0; }
.footer__col li { margin-bottom: 9px; }
.footer__col a { color: #93a1af; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
	border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px;
	display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
	font-size: 13px; color: #6d7a88;
}
.footer__bottom a { color: #8b98a6; }

/* ---------------- 内页通用 ---------------- */
.pagehero { background: linear-gradient(180deg, #0e1a26, #0b1118); color: #fff; padding: 64px 0 56px; text-align: center; }
.pagehero h1 { font-size: 38px; font-weight: 800; }
.pagehero p { color: #a4b1bf; margin-top: 12px; max-width: 640px; margin-left: auto; margin-right: auto; }
.breadcrumb { font-size: 13.5px; color: #8b98a6; margin-bottom: 16px; }
.breadcrumb a { color: #8b98a6; }
.breadcrumb a:hover { color: #fff; }

.mainbox { padding: 66px 0 84px; }

/* 文章排版 */
.entry { max-width: 780px; margin: 0 auto; font-size: 16.5px; }
.entry h2 { font-size: 26px; margin: 40px 0 16px; font-weight: 700; }
.entry h3 { font-size: 20px; margin: 30px 0 12px; font-weight: 700; }
.entry p { margin: 14px 0; color: #2c3945; }
.entry ul li, .entry ol li { margin: 8px 0; color: #2c3945; }
.entry img { border-radius: 12px; margin: 20px auto; border: 1px solid var(--line); }
.entry blockquote {
	border-left: 4px solid var(--green); background: var(--green-tint);
	padding: 14px 20px; border-radius: 0 10px 10px 0; margin: 20px 0; color: #35513a;
}
.entry a { color: var(--green-d); font-weight: 500; }
.entry table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; }
.entry th, .entry td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.entry th { background: var(--bg-soft); }

.entry-head { max-width: 780px; margin: 0 auto 30px; }
.entry-head h1 { font-size: 32px; line-height: 1.35; font-weight: 800; }
.entry-head__meta { display: flex; gap: 16px; margin-top: 16px; color: #8b98a6; font-size: 13.5px; align-items: center; flex-wrap: wrap; }
.entry-head__meta .postcard__cat { font-size: 12.5px; }

/* 分页 */
.pagenavi { display: flex; gap: 8px; justify-content: center; margin-top: 46px; }
.pagenavi .page-numbers {
	padding: 9px 16px; border: 1px solid var(--line); border-radius: 9px;
	font-size: 14.5px; color: #47545f;
}
.pagenavi .current, .pagenavi .page-numbers:hover { background: var(--green); border-color: var(--green); color: #fff; text-decoration: none; }

/* 相关阅读 */
.related { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--line); }
.related h3 { font-size: 20px; margin-bottom: 22px; }

/* 分类标签页 */
.cattabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.cattabs a {
	padding: 9px 22px; border-radius: 999px; border: 1px solid var(--line);
	color: #47545f; font-size: 14.5px; font-weight: 500; background: #fff;
}
.cattabs a:hover { border-color: var(--green); color: var(--green-d); text-decoration: none; }
.cattabs a.is-active { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------------- 购买页 ---------------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 330px)); gap: 22px; justify-content: center; }
.pcard {
	border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px;
	background: #fff; position: relative; text-align: center;
}
.pcard--hot { border: 2px solid var(--green); box-shadow: var(--shadow); }
.pcard__badge {
	position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
	background: var(--green); color: #fff; font-size: 12.5px; font-weight: 600;
	padding: 4px 16px; border-radius: 999px; white-space: nowrap;
}
.pcard__type { font-size: 13.5px; color: var(--muted); letter-spacing: 1px; }
.pcard__name { font-size: 19px; font-weight: 700; margin: 8px 0 16px; }
.pcard__price { font-size: 44px; font-weight: 800; color: var(--ink); }
.pcard__price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.pcard__origin { color: #a0acb8; font-size: 13.5px; text-decoration: line-through; margin-top: 4px; min-height: 20px; }
.pcard__feat { list-style: none; padding: 0; margin: 22px 0 26px; text-align: left; }
.pcard__feat li { padding: 7px 0 7px 30px; position: relative; font-size: 14.5px; color: #2c3945; }
.pcard__feat li::before {
	content: ""; position: absolute; left: 2px; top: 12px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%233fae4e' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center no-repeat;
}
.pcard .btn { width: 100%; justify-content: center; }

/* 步骤条 */
.steps { counter-reset: step; max-width: 780px; margin: 0 auto; }
.step { position: relative; padding: 0 0 34px 64px; }
.step::before {
	counter-increment: step; content: counter(step);
	position: absolute; left: 0; top: 0;
	width: 42px; height: 42px; border-radius: 50%;
	background: var(--green-tint); color: var(--green-d);
	font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center;
	border: 2px solid #cde8d2;
}
.step::after {
	content: ""; position: absolute; left: 20px; top: 46px; bottom: 4px; width: 2px;
	background: var(--line);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* 表格卡 */
.info-table { max-width: 780px; margin: 0 auto; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.info-table div { display: grid; grid-template-columns: 180px 1fr; padding: 14px 22px; font-size: 15px; border-bottom: 1px solid var(--line); }
.info-table div:last-child { border-bottom: 0; }
.info-table div:nth-child(odd) { background: var(--bg-soft); }
.info-table b { color: var(--ink); font-weight: 600; }
.info-table span { color: var(--muted); }

/* 提示框 */
.notice {
	display: flex; gap: 12px; max-width: 780px; margin: 26px auto;
	background: var(--green-tint); border: 1px solid #cde8d2;
	border-radius: 12px; padding: 16px 18px; color: #35513a; font-size: 14.5px;
}
.notice svg { flex: none; margin-top: 3px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
	.hero__grid { grid-template-columns: 1fr; gap: 38px; }
	.hero h1 { font-size: 38px; }
	.hero__shot { padding-bottom: 30px; }
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
	.postgrid { grid-template-columns: repeat(2, 1fr); }
	.footer__grid { grid-template-columns: repeat(2, 1fr); }
	.showrow, .showrow--rev { grid-template-columns: 1fr; gap: 30px; }
	.showrow--rev .showrow__txt { order: 1; }
	.showrow--rev .showrow__media { order: 2; }
	.showrow + .showrow { margin-top: 66px; }
	.statsband__grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}
@media (max-width: 760px) {
	.section { padding: 60px 0; }
	.grid-3, .grid-2, .helpgrid, .postgrid--3 { grid-template-columns: 1fr; }
	.hero { padding-top: 52px; }
	.hero h1 { font-size: 31px; }
	.hero__sub { font-size: 16px; }
	.section__head h2, .dlband h2, .ctaband h2, .pagehero h1 { font-size: 26px; }
	.entry-head h1 { font-size: 25px; }
	.main-nav {
		display: none; position: absolute; top: 66px; left: 0; right: 0;
		background: #fff; border-bottom: 1px solid var(--line);
		padding: 12px 22px 18px; box-shadow: 0 18px 30px rgba(0,0,0,.08);
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 2px; }
	.main-nav .nav-cta { margin: 8px 0 0; text-align: center; }
	.nav-toggle { display: block; }
	.info-table div { grid-template-columns: 1fr; gap: 2px; }
	.press__in { gap: 30px; }
}
