/*
Theme Name: wang.plus
Theme URI: https://wang.plus
Author: wang.plus
Description: wang.plus 内容站点自研轻量主题，纸感目录式排版，配合 wangplus 插件使用。
Version: 1.2.4
Requires at least: 6.4
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: wangplus
*/

:root {
	--t-bg: #f6f1e7;
	--t-surface: #fcf9f1;
	--t-border: rgba(51, 48, 42, .18);
	--t-border-strong: rgba(51, 48, 42, .45);
	--t-text: #33302a;
	--t-muted: #6b655b;
	--t-accent: #3d5a80;
	--t-accent-dark: #31496a;
	--t-soft: #e8ecf2;
	--t-gold: #8c3b32;
	--t-gold-soft: #f2e6e2;
	--t-caramel: #5a7d5a;
	--t-serif: Georgia, "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", SimSun, serif;
	--t-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
	--t-radius: 14px 6px 12px 7px / 7px 12px 6px 14px;
	--t-radius-sm: 5px 2px 5px 3px / 3px 5px 2px 5px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--t-bg);
	color: var(--t-text);
	font-family: var(--t-sans);
	font-size: 15px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--t-accent); text-decoration: none; }
a:hover { color: var(--t-accent-dark); }
img { max-width: 100%; height: auto; }

/* 顶栏：一条细线，克制的书刊页眉 */
.t-header { position: sticky; top: 0; z-index: 20; background: var(--t-surface); border-bottom: 1px solid var(--t-border); }
.t-header-inner { max-width: 1160px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap; }
.t-brand { display: flex; align-items: baseline; gap: 9px; text-decoration: none; color: var(--t-text); }
.t-brand strong { font-family: var(--t-serif); font-size: 18px; font-weight: 600; letter-spacing: .03em; }
.t-brand small { font-size: 10.5px; color: var(--t-muted); letter-spacing: .08em; }
.t-header-inner > nav { min-width: 0; max-width: 100%; margin-left: auto; }
.t-nav { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.t-nav li { flex: 0 0 auto; }
.t-nav a { display: inline-block; padding: 2px 0 4px; font-size: 13px; color: var(--t-muted); text-decoration: none; white-space: nowrap; border-bottom: 1px solid transparent; letter-spacing: .02em; }
.t-nav a:hover { color: var(--t-text); text-decoration: none; }
.t-nav a.current { color: var(--t-text); font-weight: 600; border-bottom-color: var(--t-gold); }
.t-nav-toggle { display: none; }

/* 页头右侧：一言 */
.t-hitokoto { display: flex; align-items: baseline; gap: 7px; flex: 0 1 auto; max-width: 360px; min-width: 0; margin-left: 4px; padding-left: 18px; border-left: 1px solid var(--t-border); font-size: 12px; color: var(--t-muted); }
.t-hitokoto-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .02em; }
.t-hitokoto-from { flex: none; font-size: 11px; font-style: normal; color: var(--t-border-strong); white-space: nowrap; }

.t-searchbar { background: var(--t-surface); border-bottom: 1px solid var(--t-border); padding: 15px 24px; }

.t-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px 88px; min-height: calc(100vh - 160px); }

/* 域名米表：整页左右留白加大 */
body.page-id-6 .t-wrap,
.t-wrap:has(.wpplus-domains) { padding-left: 72px; padding-right: 72px; }
@media screen and (max-width: 900px) {
	body.page-id-6 .t-wrap,
	.t-wrap:has(.wpplus-domains) { padding-left: 28px; padding-right: 28px; }
}

/* 首页：无导语、无报头，直接从页头进内容 */
.t-wrap-home { padding-top: 34px; }

/* 内页页头：左标题 + 右检索，无分隔线 */
.t-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 0 0 22px; padding: 26px 0 0; }
.t-page-head-main { min-width: 0; }
.t-page-head h1 { font-family: var(--t-serif); font-size: 30px; margin: 0 0 4px; letter-spacing: .03em; font-weight: 600; }
.t-page-head .t-breadcrumb { font-size: 11px; letter-spacing: .08em; color: var(--t-muted); }
.t-page-head .t-breadcrumb a { color: var(--t-muted); }
.t-page-head p { margin: 7px 0 0; color: var(--t-muted); font-size: 13.5px; }

/* 页头检索栏（公开导航） */
.t-head-search { position: relative; flex: 0 0 auto; width: 264px; max-width: 100%; }
.t-head-search-ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--t-muted); pointer-events: none; }
.t-head-search input { width: 100%; padding: 8px 12px 8px 31px; border: 1px solid var(--t-border-strong); border-radius: 3px; background: var(--t-surface); font-family: inherit; font-size: 13px; color: var(--t-text); outline: none; }
.t-head-search input::placeholder { color: var(--t-muted); }
.t-head-search input:focus { border-color: var(--t-accent); }
.t-head-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.t-content { min-height: 260px; min-width: 0; }.t-content h1, .t-content h2, .t-content h3 { color: var(--t-text); font-family: var(--t-serif); font-weight: 600; }
.t-entry { padding: 4px 0; }
.entry-content p { margin: 0 0 14px; }
.t-notice { padding: 13px 16px; background: var(--t-soft); border-left: 2px solid var(--t-accent); color: var(--t-text); }

.t-footer { border-top: 1px solid var(--t-border); background: var(--t-surface); }
.t-footer-inner { max-width: 1160px; margin: 0 auto; padding: 24px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; font-size: 11px; letter-spacing: .05em; color: var(--t-muted); }
.t-footer a { color: var(--t-muted); }
.t-footer a:hover { color: var(--t-accent); }

.t-404 { text-align: center; padding: 88px 20px; }
.t-404 h1 { font-family: var(--t-serif); font-size: 80px; margin: 0; color: var(--t-gold); font-weight: 600; }

@media screen and (max-width: 768px) {
	.t-header-inner { gap: 12px; padding: 12px 18px; }
	.t-brand small { display: none; }
	.t-hitokoto { display: none; }
	.t-header-inner > nav { flex: 0 0 100%; width: 100%; min-width: 0; }
	.t-nav { width: 100%; margin-left: 0; gap: 16px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.t-nav::-webkit-scrollbar { display: none; }
	.t-wrap { padding: 0 18px 64px; }
	.t-wrap-home { padding-top: 22px; }
	body.page-id-6 .t-wrap,
	.t-wrap:has(.wpplus-domains) { padding-left: 22px; padding-right: 22px; }
	.t-page-head { padding: 20px 0 0; gap: 14px; }
	.t-page-head h1 { font-size: 25px; }
	.t-head-search { width: 100%; }
}
@media screen and (max-width: 375px) {
	.t-footer-inner { flex-direction: column; }
}
