/*
Theme Name: WPS学堂
Theme URI: https://wps-cnweb.site/
Author: WPS学堂 编辑部
Author URI: https://wps-cnweb.site/
Description: WPS学堂专注WPS使用教程与WPS使用技巧分享，整理WPS官网各版本功能差异、新手常见疑问与WPS应用技巧，用图文步骤带你高效使用WPS完成日常办公任务。
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: wpsxuetang
Tags: blog, tutorial, custom-colors, responsive-layout, right-sidebar
*/

/* =========================================================
   WPS学堂 —— 结构与基础样式
   ========================================================= */

:root {
	--primary: #1668dc;
	--primary-dark: #0b4aa2;
	--accent: #ff7a45;
	--bg: #f5f8fd;
	--surface: #ffffff;
	--text: #1d2129;
	--muted: #5c6673;
	--line: #e6ebf2;
	--radius: 10px;
	--radius-sm: 6px;
	--shadow: 0 6px 20px rgba(16, 42, 86, 0.07);
	--shadow-hover: 0 12px 32px rgba(16, 42, 86, 0.14);
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
	--font-head: var(--font-sans);
	--wrap: 1200px;
	--gap: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease, background .2s ease, opacity .2s ease; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.35; margin: 0 0 .6em; color: var(--text); }
h1 { font-size: 30px; }
h2 { font-size: 23px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 999;
	width: auto; height: auto; clip: auto; padding: 10px 16px;
	background: var(--primary); color: #fff; border-radius: 6px;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow-wrap { max-width: 880px; }

/* ---------------- 头部 ---------------- */
.site-header { background: var(--surface); box-shadow: 0 1px 0 var(--line); position: relative; z-index: 20; }
.header-top, .header-bar {
	display: flex; align-items: center; justify-content: space-between;
	gap: 20px; padding-top: 16px; padding-bottom: 16px;
}
.hv-centered .header-top { flex-direction: column; text-align: center; }
.hv-centered .header-extra { width: 100%; max-width: 460px; }
.hv-inline.site-header { position: sticky; top: 0; }
.header-bar { flex-wrap: wrap; }
.site-brand { display: flex; align-items: center; }
.brand-link { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-link:hover { color: var(--primary); }
.brand-mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 12px;
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .5px;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: .5px; }
.brand-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.nav-main { border-top: 1px solid var(--line); }
.hv-inline .nav-main, .hv-topbar .nav-main { border-top: 0; }
.menu { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu > li > a {
	display: block; padding: 13px 16px; color: var(--text);
	font-size: 15.5px; font-weight: 600; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.menu > li > a:hover, .menu > li.current-menu-item > a { color: var(--primary); background: rgba(0,0,0,.03); }
.nav-toggle {
	display: none; width: 100%; padding: 10px 14px; margin-top: 8px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
	text-align: left; cursor: pointer; font-weight: 600;
}
.topbar { background: var(--primary-dark); color: rgba(255,255,255,.9); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: rgba(255,255,255,.95); }

/* ---------------- 搜索框 ---------------- */
.search-form { display: flex; gap: 8px; width: 100%; }
.search-form input[type="search"] {
	flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line);
	border-radius: var(--radius-sm); background: var(--surface);
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--primary); }
.search-form button {
	padding: 11px 20px; border: 0; border-radius: var(--radius-sm);
	background: var(--primary); color: #fff; font-weight: 600; cursor: pointer;
}
.search-form button:hover { background: var(--primary-dark); }

/* ---------------- 主区域 ---------------- */
.site-main { padding: 32px 0 10px; }
.content-wrap { display: flex; gap: 32px; align-items: flex-start; }
.wrap-reverse { flex-direction: row-reverse; }
.content-main { flex: 1 1 auto; min-width: 0; }
.sidebar { flex: 0 0 320px; width: 320px; }

/* ---------------- 区块标题 ---------------- */
.section { margin-bottom: 40px; }
.section-head {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; margin-bottom: 20px; padding-bottom: 12px;
	border-bottom: 2px solid var(--line);
}
.section-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; font-weight: 800; }
.section-title .bar { display: inline-block; width: 4px; height: 20px; border-radius: 2px; background: var(--primary); }
.section-more { font-size: 14px; color: var(--muted); }
.section-more:hover { color: var(--primary); }
.archive-head { margin-bottom: 24px; }
.archive-title { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.archive-desc {
	padding: 14px 18px; background: var(--surface); border-left: 3px solid var(--primary);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted);
	font-size: 15px; line-height: 1.85;
}

/* ---------------- 栅格与卡片 ---------------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
	background: var(--surface); border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow); display: flex; flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-cat {
	display: inline-block; align-self: flex-start; margin-bottom: 10px;
	padding: 3px 10px; border-radius: 999px; font-size: 12.5px;
	background: rgba(22, 104, 220, .1); color: var(--primary); font-weight: 600;
}
.card-title { font-size: 17px; font-weight: 700; margin: 0 0 10px; line-height: 1.5; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }
.card-excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.8; margin: 0 0 14px; flex: 1; }
.meta-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.meta-dot { opacity: .6; }

/* ---------------- 横向条目 ---------------- */
.rows { display: grid; gap: 20px; }
.row-item {
	display: grid; grid-template-columns: 260px 1fr; gap: 20px;
	background: var(--surface); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .25s ease;
}
.row-item:hover { box-shadow: var(--shadow-hover); }
.row-media { display: block; overflow: hidden; background: var(--line); }
.row-media img { width: 100%; height: 100%; object-fit: cover; min-height: 170px; }
.row-body { padding: 18px 20px 18px 0; display: flex; flex-direction: column; justify-content: center; }
.row-title { font-size: 18.5px; margin: 0 0 10px; }
.row-title a { color: var(--text); }
.row-title a:hover { color: var(--primary); }
.row-excerpt { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; }
.text-list { list-style: none; margin: 0; padding: 0; }
.text-item {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 11px 2px; border-bottom: 1px dashed var(--line);
}
.text-item a { color: var(--text); font-size: 15.5px; }
.text-item a:hover { color: var(--primary); }
.text-date { color: var(--muted); font-size: 13px; flex: 0 0 auto; }
.list-mixed .grid-lead { margin-bottom: 24px; }

/* ---------------- 文章页 ---------------- */
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.crumb-sep { margin: 0 8px; opacity: .6; }
.crumb-cur { color: var(--text); }
.entry {
	background: var(--surface); border-radius: var(--radius);
	box-shadow: var(--shadow); padding: 34px 38px 30px; margin-bottom: 28px;
}
.entry-head { margin-bottom: 20px; }
.entry-title { font-size: 30px; font-weight: 800; margin: 8px 0 14px; line-height: 1.4; }
.entry-thumb { margin: 0 0 24px; border-radius: var(--radius-sm); overflow: hidden; }
.entry-content { font-size: 16.5px; line-height: 2; color: #24292f; }
.entry-content h2 {
	font-size: 22px; margin: 34px 0 14px; padding-left: 12px;
	border-left: 4px solid var(--primary); font-weight: 800;
}
.entry-content h3 { font-size: 18.5px; margin: 26px 0 10px; font-weight: 700; }
.entry-content p { margin: 0 0 18px; }
.entry-content ul, .entry-content ol { margin: 0 0 18px; }
.entry-content li { margin-bottom: 8px; }
.entry-content img { border-radius: var(--radius-sm); margin: 6px 0 8px; }
.entry-content figure { margin: 22px 0; }
.entry-content figcaption { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.entry-content table {
	width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15px;
}
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: rgba(0,0,0,.03); font-weight: 700; }
.entry-content blockquote {
	margin: 0 0 20px; padding: 14px 18px; border-left: 4px solid var(--accent);
	background: rgba(0,0,0,.025); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted);
}
.entry-content code {
	background: rgba(0,0,0,.05); padding: 2px 6px; border-radius: 4px;
	font-family: Consolas, Monaco, monospace; font-size: .92em;
}
.entry-content .wpscore-inline-home { border-bottom: 1px dashed var(--primary); }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.entry-tags a {
	padding: 4px 12px; background: rgba(0,0,0,.04); border-radius: 999px;
	font-size: 13px; color: var(--muted);
}
.entry-tags a:hover { background: var(--primary); color: #fff; }
.post-toc {
	background: rgba(0,0,0,.025); border: 1px solid var(--line); border-radius: var(--radius-sm);
	padding: 18px 22px; margin: 0 0 28px;
}
.post-toc-title { font-weight: 800; margin-bottom: 10px; }
.post-toc ol { margin: 0; padding-left: 1.2em; }
.post-toc li { margin-bottom: 6px; font-size: 15px; }
.post-toc .toc-h3 { margin-left: 18px; font-size: 14.5px; list-style: circle; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.post-nav a {
	display: block; padding: 16px 18px; background: var(--surface);
	border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text);
	font-size: 15px; line-height: 1.6;
}
.post-nav a:hover { color: var(--primary); box-shadow: var(--shadow-hover); }
.post-nav .nav-label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.post-nav-next { text-align: right; }
.page-links { margin: 20px 0; }
.page-links a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 4px; margin-right: 6px; }
.related-section { margin-bottom: 32px; }

/* ---------------- 侧边栏 ---------------- */
.widget {
	background: var(--surface); border-radius: var(--radius);
	box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 24px;
}
.widget-title { font-size: 17px; font-weight: 800; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.widget-list { list-style: none; margin: 0; padding: 0; }
.widget-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.widget-list li:last-child { border-bottom: 0; }
.widget-list .count { color: var(--muted); font-size: 13px; }
.widget-posts { list-style: none; margin: 0; padding: 0; }
.widget-posts li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.widget-posts li:last-child { border-bottom: 0; }
.widget-posts .wp-thumb img { width: 92px; height: 62px; object-fit: cover; border-radius: var(--radius-sm); }
.wp-title { display: block; font-size: 14.5px; line-height: 1.55; color: var(--text); }
.wp-title:hover { color: var(--primary); }
.wp-date { font-size: 12.5px; color: var(--muted); }
.widget-about p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------------- 首页 ---------------- */
.hero {
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	color: #fff; padding: 54px 0 58px; margin-bottom: 40px;
}
.hero-inner { display: grid; gap: 30px; }
.hero-title { font-size: 34px; font-weight: 800; color: #fff; margin: 0 0 14px; line-height: 1.4; }
.hero-text { font-size: 16px; color: rgba(255,255,255,.88); max-width: 780px; margin: 0 0 22px; line-height: 1.9; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.hero-tags a {
	padding: 6px 14px; border-radius: 999px; font-size: 14px;
	background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.24);
}
.hero-tags a:hover { background: #fff; color: var(--primary-dark); }
.hero .search-form input[type="search"] { border: 0; }
.hero .search-form button { background: var(--accent); }
.hero-cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; }
.hero-lead { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hover); }
.hero-lead .card-media { aspect-ratio: 16/9; }
.hero-lead .card-title { font-size: 21px; }
.hero-side { display: grid; gap: 12px; align-content: start; }
.hero-side-item {
	display: grid; grid-template-columns: 108px 1fr; gap: 14px;
	background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow);
}
.hero-side-item img { width: 108px; height: 78px; object-fit: cover; }
.hero-side-body { padding: 10px 14px 10px 0; }
.hero-side-title { font-size: 15px; font-weight: 600; line-height: 1.5; display: block; color: var(--text); }
.hero-side-title:hover { color: var(--primary); }

/* ---------------- 友情链接（仅首页） ---------------- */
.flinks-wrap { margin: 10px 0 34px; }
.flinks {
	font-size: 13.5px; color: var(--muted); line-height: 2.1;
	padding: 16px 18px; background: var(--surface); border: 1px dashed var(--line);
	border-radius: var(--radius-sm);
}
.flinks-label { color: var(--muted); margin-right: 2px; }
.flinks a { color: var(--muted); margin-right: 12px; border-bottom: 1px dotted transparent; }
.flinks a:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------------- 分页 ---------------- */
.pagination { margin: 34px 0 10px; }
.pagination-inner { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination-inner .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	background: var(--surface); border-radius: var(--radius-sm);
	box-shadow: var(--shadow); color: var(--text); font-size: 15px;
}
.pagination-inner .page-numbers.current, .pagination-inner .page-numbers:hover { background: var(--primary); color: #fff; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #101826; color: rgba(255,255,255,.72); margin-top: 40px; padding: 44px 0 0; font-size: 14.5px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.footer-cols-3 { grid-template-columns: 1.4fr 1fr 1.2fr; }
.footer-title { font-size: 15.5px; color: #fff; margin-bottom: 14px; font-weight: 700; }
.footer-text { color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.9; margin: 0; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 9px; }
.footer-menu-cols { columns: 2; }
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-tags a { padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 13px; }
.footer-bottom { margin-top: 34px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); }
.copyright { margin: 0; font-size: 13px; color: rgba(255,255,255,.55); }
.footer-simple { text-align: center; padding-bottom: 6px; }
.footer-brand { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.footer-menu-inline { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; list-style: none; margin: 0 0 18px; padding: 0; }

/* ---------------- 其它 ---------------- */
.empty-tip { padding: 30px; background: var(--surface); border-radius: var(--radius); text-align: center; color: var(--muted); }
.search-box-wrap { margin-bottom: 26px; max-width: 460px; }
.error-404 { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 60px 40px; text-align: center; }
.error-code { font-size: 84px; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 10px; opacity: .25; }
.error-title { font-size: 26px; margin-bottom: 12px; }
.error-text { color: var(--muted); margin-bottom: 24px; }
.error-404 .search-form { max-width: 420px; margin: 0 auto 26px; }
.error-cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.error-cats a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); }
.error-cats a:hover { border-color: var(--primary); color: var(--primary); }
.comments-area { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 30px; margin-bottom: 30px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 20px; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px dashed var(--line); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
	.content-wrap { gap: 24px; }
	.sidebar { flex: 0 0 290px; width: 290px; }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero-cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.content-wrap, .wrap-reverse { flex-direction: column; }
	.sidebar { flex: 1 1 auto; width: 100%; }
	.site-main { padding-top: 22px; }
	.entry { padding: 24px 20px; }
	.entry-title { font-size: 24px; }
	.hero { padding: 36px 0 40px; }
	.hero-title { font-size: 25px; }
	.footer-cols, .footer-cols-3 { grid-template-columns: 1fr 1fr; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav-next { text-align: left; }
}
@media (max-width: 620px) {
	.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
	.row-item { grid-template-columns: 1fr; }
	.row-media img { min-height: 0; height: 200px; }
	.row-body { padding: 0 18px 18px; }
	.footer-cols, .footer-cols-3 { grid-template-columns: 1fr; }
	.menu { display: none; }
	.menu.is-open { display: block; }
	.menu > li > a { border-radius: var(--radius-sm); }
	.nav-toggle { display: block; }
	.hv-centered .header-top { padding-bottom: 8px; }
	.hero-side-item { grid-template-columns: 96px 1fr; }
	.hero-side-item img { width: 96px; height: 72px; }
}

/* =========================================================
   首页组件（各站共用结构，配色由主题覆盖）
   ========================================================= */
.hero-search { max-width: 520px; }
.hero-kicker {
	display: inline-block; margin-bottom: 12px; padding: 5px 14px;
	border-radius: 999px; font-size: 13px; letter-spacing: .5px;
	background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
}
.grid-sections { align-items: start; }
.grid-sections .section { margin-bottom: 28px; }
.mini-section { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px 8px; }
.mini-section .section-title { font-size: 18px; }
.about-section .about-box {
	background: var(--surface); border-radius: var(--radius);
	box-shadow: var(--shadow); padding: 30px 34px;
}
.about-box h2 { font-size: 21px; margin-bottom: 14px; }
.about-box p { color: var(--muted); margin-bottom: 12px; }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; }
.about-links a {
	padding: 5px 14px; border-radius: 999px; background: rgba(0, 0, 0, .04);
	font-size: 14px; color: var(--primary);
}
.about-links a:hover { background: var(--primary); color: #fff; }

/* 杂志型首屏 */
.hero-mag-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-mag-lead { box-shadow: var(--shadow-hover); border-radius: var(--radius); overflow: hidden; }

/* 门户型首屏 */
.hero-portal-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.portal-cat-list { list-style: none; margin: 0; padding: 0; background: rgba(255, 255, 255, .1); border-radius: var(--radius); overflow: hidden; }
.portal-cat-list li { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.portal-cat-list li:last-child { border-bottom: 0; }
.portal-cat-list a { display: flex; justify-content: space-between; padding: 12px 20px; color: #fff; font-size: 15px; }
.portal-cat-list a:hover { background: rgba(255, 255, 255, .16); }
.pc-count { opacity: .75; font-size: 13px; }

/* 知识库 */
.hero-wiki-inner { max-width: 880px; }
.wiki-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.wiki-cat { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.wiki-cat-name { font-size: 18px; margin-bottom: 8px; }
.wiki-cat-desc { color: var(--muted); font-size: 14px; min-height: 44px; }
.wiki-cat-list { list-style: none; margin: 0 0 12px; padding: 0; }
.wiki-cat-list li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.wiki-cat-list li a { color: var(--text); }
.wiki-cat-list li a:hover { color: var(--primary); }
.wiki-cat-more { font-size: 13.5px; }

/* 效率风 */
.hero-dark-inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.hero-metrics { display: flex; gap: 34px; }
.metric { text-align: center; }
.metric-num { display: block; font-size: 34px; font-weight: 800; line-height: 1.2; }
.metric-label { font-size: 13.5px; opacity: .78; }
.fast-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 32px 0 10px; }
.fast-nav-item {
	display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
	background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
	color: var(--text); border: 1px solid transparent;
}
.fast-nav-item:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }
.fn-name { font-weight: 700; font-size: 15.5px; }
.fn-count { font-size: 13px; color: var(--muted); }
.rank-block { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 26px; }
.rank-title { font-size: 17px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rank-list { margin: 0; padding-left: 1.4em; }
.rank-list li { margin-bottom: 9px; font-size: 15px; }
.rank-list li::marker { font-weight: 700; }

/* 课堂风 */
.hero-campus-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.campus-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-hover); padding: 24px 26px; }
.campus-card-title { font-size: 17px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.campus-list { list-style: none; margin: 0; padding: 0; }
.campus-list li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.campus-list li:last-child { border-bottom: 0; }
.campus-num { font-size: 13px; font-weight: 800; color: var(--primary); }
.campus-list a { color: var(--text); font-size: 15px; }
.campus-list a:hover { color: var(--primary); }
.campus-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.campus-cat {
	display: flex; flex-direction: column; gap: 6px; padding: 20px 22px;
	background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text);
}
.campus-cat:hover { color: var(--primary); transform: translateY(-3px); }
.cc-name { font-weight: 800; font-size: 16.5px; }
.cc-desc { font-size: 13.5px; color: var(--muted); line-height: 1.7; min-height: 46px; }
.cc-count { font-size: 12.5px; color: var(--primary); font-weight: 600; }

/* 进阶风 */
.pro-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.pro-panel { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: 22px 26px; }
.pro-panel-title { font-size: 17px; color: #fff; margin-bottom: 12px; }
.pro-list { list-style: none; margin: 0; padding: 0; }
.pro-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, .2); font-size: 14.5px; }
.pro-list li:last-child { border-bottom: 0; }
.pro-list a { color: #fff; }
.pro-list span { opacity: .7; font-size: 13px; }

/* 笔记风 */
.note-wrap { display: grid; grid-template-columns: 1fr; gap: 24px; }
.note-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.note-tabs a {
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px;
	border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 14px;
	border: 1px solid rgba(255, 255, 255, .22);
}
.note-tabs a:hover { background: #fff; color: var(--primary-dark); }
.note-tabs em { font-style: normal; font-size: 12px; opacity: .7; }
.narrow-wrap-full { max-width: 1080px; }
.note-list { list-style: none; margin: 0; padding: 0; }
.note-list li {
	display: grid; grid-template-columns: 92px 1fr 110px; gap: 20px; align-items: baseline;
	padding: 20px 0; border-bottom: 1px dashed var(--line);
}
.note-date { font-size: 14px; color: var(--primary); font-weight: 600; }
.note-title { display: block; font-size: 17.5px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.note-title:hover { color: var(--primary); }
.note-excerpt { color: var(--muted); font-size: 14.5px; margin: 0; }
.note-cat { font-size: 13px; color: var(--muted); text-align: right; }

/* 商务风 */
.biz-head { max-width: 760px; margin-bottom: 30px; }
.biz-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.biz-hl {
	display: flex; flex-direction: column; gap: 8px; padding: 20px 22px;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
	border-radius: var(--radius); color: #fff;
}
.biz-hl:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.biz-hl-tag {
	align-self: flex-start; padding: 2px 10px; border-radius: 999px;
	background: var(--accent); color: #101826; font-size: 12px; font-weight: 700;
}
.biz-hl-title { font-size: 16.5px; font-weight: 700; line-height: 1.55; }
.biz-hl-excerpt { font-size: 13.5px; color: rgba(255, 255, 255, .78); line-height: 1.7; }
.biz-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.biz-cat {
	display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; text-align: center;
	background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); color: var(--text);
	border-top: 3px solid var(--accent);
}
.biz-cat:hover { color: var(--primary); }
.bc-name { font-weight: 700; font-size: 15.5px; }
.bc-count { font-size: 12.5px; color: var(--muted); }
.biz-block { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 26px; }
.biz-block-title { font-size: 17px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.biz-list { list-style: none; margin: 0; padding: 0; }
.biz-list li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.biz-list li a { color: var(--text); }
.biz-list li a:hover { color: var(--primary); }
.biz-list li span { color: var(--muted); font-size: 12.5px; flex: 0 0 auto; }

/* 明快卡片风 */
.world-head { max-width: 800px; margin-bottom: 24px; }
.world-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.world-pills a {
	padding: 7px 18px; border-radius: 999px; background: rgba(255, 255, 255, .18);
	color: #fff; font-size: 14.5px; border: 1px solid rgba(255, 255, 255, .26);
}
.world-pills a:hover { background: #fff; color: var(--primary-dark); }
.world-cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.world-cat-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.world-cat-card h3 { font-size: 17.5px; margin-bottom: 10px; }
.world-cat-card p { color: var(--muted); font-size: 14px; min-height: 48px; }
.world-cat-card ul { list-style: none; margin: 0; padding: 0; }
.world-cat-card li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.world-cat-card li a { color: var(--text); }
.world-cat-card li a:hover { color: var(--primary); }

@media (max-width: 1080px) {
	.wiki-cats, .campus-cats, .world-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fast-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.biz-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hero-mag-grid, .hero-portal-inner, .hero-campus-grid, .pro-grid { grid-template-columns: 1fr; }
	.biz-highlights { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
	.wiki-cats, .campus-cats, .world-cat-grid, .fast-nav, .biz-cats { grid-template-columns: 1fr; }
	.note-list li { grid-template-columns: 1fr; gap: 6px; }
	.note-cat { text-align: left; }
	.about-section .about-box { padding: 22px 20px; }
}


/* ================= 本站专属设计 ================= */
/* WPS学堂：杂志红橙 · 直角克制 · 编辑感 */
:root {
	--primary: #d4380d;
	--primary-dark: #8f2408;
	--accent: #faad14;
	--bg: #fdf9f6;
	--text: #262626;
	--line: #ecdfd6;
	--radius: 4px;
	--radius-sm: 3px;
	--shadow: 0 4px 14px rgba(90, 40, 20, .07);
	--shadow-hover: 0 12px 28px rgba(90, 40, 20, .14);
	--font-head: Georgia, "Songti SC", "STSong", "SimSun", var(--font-sans);
}
.site-header { border-bottom: 3px solid var(--primary); }
.brand-mark { border-radius: 4px; background: var(--primary); }
.brand-name { letter-spacing: 1px; }
.menu > li > a { border-radius: 0; font-weight: 700; }
.menu > li.current-menu-item > a { border-bottom: 2px solid var(--primary); }
.hero-mag { background: linear-gradient(120deg, #1f1a17 0%, #4a2a1c 60%, #6b3418 100%); }
.hero-mag .hero-kicker { background: rgba(250, 173, 20, .18); border-color: rgba(250, 173, 20, .4); color: #ffd591; }
.hero-mag-lead .card { box-shadow: none; }
.section-head { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.section-title { font-family: var(--font-head); font-size: 23px; }
.section-title .bar { height: 22px; width: 3px; }
.card { border-top: 3px solid var(--primary); }
.card-media { aspect-ratio: 3 / 2; }
.card-title { font-family: var(--font-head); }
.entry-title { font-family: var(--font-head); }
.entry-content h2 { border-left: 0; border-bottom: 2px solid var(--primary); padding: 0 0 8px; }
.post-toc { background: #fff8f2; border-color: var(--line); }
.flinks { background: #fffaf6; }
.widget-title { border-bottom: 2px solid var(--primary); }

