/*
 * Succulent Primer · 阶段 6 视觉层（2026-10-30）。站主选版本 A「园艺杂志」（_交接/站主原话-阶段6视觉-20261030.md「选A 其他按你建议来」）。
 * 🔴 叠在 base.css 之上，不改 base.css（base.css 是阶段 4 登记产物，管正文栏宽 37rem / 18px）。
 *    10-30 站主原话「放宽」：换无衬线后 37rem 一行中位只 12–13 词，本层把电脑端（≥768px）栏宽覆盖成 41rem = 656px，实测中位 14 词；手机（<768px）仍走 base.css 的 100%，字号 18px 不动。
 * 色值只取 Radix 刻度（设计库/数值/刻度.md）：中性 sand、强调 green；A 的墨绿实色带 = green-12（手法 F 铺 12 档）。
 * 几何量自 A 预览（本机设计/首页-A.html，量 Epic Gardening）：H1 44/700、H2 28/700、竖卡 4:5 无圆角、区块上下 64、深色带一条。
 * 广告位 0、弹窗 / 悬浮 / 贴底 0（站主原话第 4 条）—— 本层不写任何 position:fixed / sticky 的页面级元素（表格首列 sticky 除外，在框内）。
 */
:root {
	--s1: #fdfdfc;   /* sand-1 页面底 */
	--s2: #f9f9f8;   /* sand-2 */
	--s3: #f1f0ef;   /* sand-3 组件底 */
	--s6: #dad9d6;   /* sand-6 细边框 */
	--s11: #63635e;  /* sand-11 辅助字 */
	--s12: #21201c;  /* sand-12 正文字 */
	--a3: #e6f6eb;   /* green-3 */
	--a9: #30a46c;   /* green-9 强调实色 */
	--a-btn-fg: #fff; /* 白字压 green-9 = 3.16（刻度.md 按钮字色表，大字 3:1 过） */
	--a11: #218358;  /* green-11 链接色（白底） */
	--a12: #193b2d;  /* green-12 墨绿：实色带底 / 站点图标底 */
	--a1: #fbfefc;   /* green-1 墨绿带上的字 / 按钮底 */
	--sp-wrap: 1232px;
	--sp-pad: max(1rem, calc((100% - var(--sp-wrap)) / 2));
	--sp-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (min-width: 768px) {
	:root { --sp-pad: max(1.5rem, calc((100% - var(--sp-wrap)) / 2)); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	background: var(--s1);
	color: var(--s12);
	font-family: var(--sp-font);
	font-size: 17px;
	line-height: 1.7;
	overflow-wrap: break-word;
	display: flex;
	flex-direction: column;
	min-height: 100vh; /* 短内容：页脚贴底，不悬在半屏 */
}
.site-header, .site-main, .site-footer { width: 100%; margin-left: 0; margin-right: 0; } /* base.css 的 margin:0 auto 在 flex 列里会让块缩成内容宽、居中 */
.site-main { flex: 1 0 auto; }
a { color: var(--a11); }
a:hover { color: var(--a12); }
:focus-visible { outline: 2px solid var(--a9); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.site-skip-link { position: absolute; left: -9999px; }
.site-skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--s1); padding: .5rem 1rem; }

/* ---------- 页头：文字 logo + 一行导航，下细线 ---------- */
.site-header {
	max-width: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem 2rem;
	min-height: 64px;
	padding: .75rem var(--sp-pad);
	border-bottom: 1px solid var(--s6);
	background: var(--s1);
}
.site-brand {
	font-weight: 800;
	font-size: 20px;
	letter-spacing: -.3px;
	color: var(--s12);
	text-decoration: none;
}
.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.375rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--s12); font-size: 15px; font-weight: 600; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--a11); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 内页主栏 ---------- */
.site-main { max-width: none; padding: 0 var(--sp-pad) 4rem; }
.seo-core-breadcrumb { margin: 1.25rem 0 0; font-size: 14px; color: var(--s11); }
.seo-core-breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.seo-core-breadcrumb li + li::before { content: "/"; margin-right: .25rem; color: var(--s11); }
.seo-core-breadcrumb a { color: var(--s11); }
.site-title {
	font-size: 44px;
	line-height: 1.1;
	letter-spacing: -.8px;
	font-weight: 700;
	margin: 1.5rem 0 .75rem;
}
.site-page-dates { margin: 0 0 2rem; font-size: 14px; color: var(--s11); }
.site-page-dates span + span::before { content: "· "; }

/* ---------- 正文：字号由 base.css 管；电脑端栏宽在这里覆盖（站主 10-30「放宽」，保一行中位约 14 词，量法见 工具/放宽正文栏/量词数.js） ---------- */
@media (min-width: 768px) {
	:root { --sp-prose-measure: 41rem; } /* base.css 37rem → 41rem；42rem 起中位到 15，过宽，停在 41 */
}
.site-prose h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.4px; font-weight: 700; margin: 3rem 0 1rem; }
.site-prose h3 { font-size: 21px; line-height: 1.3; font-weight: 700; margin: 2rem 0 .75rem; }
.site-prose p, .site-prose ul, .site-prose ol { margin: 0 0 1.25rem; }
.site-prose figure { margin: 2rem 0; }
.site-prose figure img { display: block; width: 100%; height: auto; } /* 图片默认：撑满正文栏、高随比例 */
.site-prose figcaption, .site-prose .wp-element-caption { font-size: 14px; color: var(--s11); margin-top: .5rem; }
.site-prose blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--a9); }

/* 目录：浅底块（手法 A：铺 3 档底，块内字用 12 档） */
.site-toc { background: var(--s3); padding: 1rem 1.25rem; margin: 0 0 2rem; font-size: 16px; }
.site-toc__title { margin: 0 0 .5rem; font-weight: 700; }
.site-toc ul { margin: 0; padding-left: 1.25rem; }
.site-toc a { color: var(--s12); }

/* ---------- 表格：框内横滑 + 首列钉住（组件自带，坑-267）。站上只有正文表外包这一种容器 ---------- */
.site-table-wrap, .tbl { overflow-x: auto; margin: 2rem 0; -webkit-overflow-scrolling: touch; }
.site-table-wrap > table, .tbl > table { border-collapse: collapse; width: 100%; min-width: 560px; margin: 0; font-size: 16px; line-height: 1.5; }
.site-table-wrap th, .site-table-wrap td, .tbl th, .tbl td { padding: .625rem .75rem; border-bottom: 1px solid var(--s6); text-align: left; vertical-align: top; }
.site-table-wrap thead th, .tbl thead th { border-bottom: 2px solid var(--s12); font-weight: 700; }
.site-table-wrap tr > :first-child, .tbl tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--s1); }
.site-prose .wp-block-table { margin: 0; overflow: visible; }

/* ---------- 卡片：竖卡 4:5、无圆角、图片打断（A 的区块区分手法） ---------- */
.site-section { margin: 4rem 0 0; }
.site-section__title { font-size: 28px; line-height: 1.2; letter-spacing: -.4px; font-weight: 700; margin: 0 0 1.5rem; }
.site-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.site-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: .75rem; }
.site-card__title { font-size: 18px; line-height: 1.3; font-weight: 700; margin: 0 0 .25rem; }
.site-card__title a { color: var(--s12); text-decoration: none; }
.site-card__title a:hover { color: var(--a11); text-decoration: underline; }
.site-card__excerpt { margin: 0; font-size: 14px; line-height: 1.5; color: var(--s11); }

/* ---------- 分页 ---------- */
.site-pagination ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.site-pagination a, .site-pagination span { display: inline-block; min-width: 2.5rem; padding: .5rem .75rem; border: 1px solid var(--s6); text-align: center; text-decoration: none; color: var(--s12); }
.site-pagination [aria-current="page"] { background: var(--a12); border-color: var(--a12); color: var(--a1); }

/* ---------- 按钮：实色 ---------- */
.sp-btn { display: inline-block; padding: 14px 24px; font-weight: 700; text-decoration: none; background: var(--a9); color: var(--a-btn-fg); }
.sp-btn:hover { color: var(--a-btn-fg); background: var(--a11); }

/* ---------- 作者署名条：实拍图占位（站主原话第 3 条：不放真人照，用楼顶多肉实拍） ---------- */
.sp-author { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 1rem; align-items: start; max-width: var(--sp-prose-measure); margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--s6); font-size: 16px; line-height: 1.6; }
.sp-author img { display: block; width: 88px; height: 88px; object-fit: cover; border-radius: 50%; }
.sp-author__name { margin: 0 0 .25rem; font-weight: 700; }
.sp-author p { margin: 0; }
.sp-author__bio { color: var(--s11); }

/* ---------- 首页（A）：通栏头图 → Start here 竖卡 → 墨绿转化带 → 新文横排 ---------- */
.page-type-front .site-main { padding: 0 0 0; }
.sp-hero { position: relative; overflow: hidden; aspect-ratio: 2.67 / 1; max-height: 540px; background: var(--a12); }
.sp-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(15 30 22 / .78), rgb(15 30 22 / .1) 65%); }
.sp-hero__txt { position: absolute; z-index: 1; left: var(--sp-pad); right: var(--sp-pad); bottom: 56px; max-width: 560px; color: #fff; }
.sp-hero h1 { font-size: 44px; line-height: 1.05; letter-spacing: -.8px; font-weight: 700; margin: 0 0 .75rem; }
.sp-hero p { margin: 0; font-size: 17px; }
.page-type-front .site-section { margin: 0; padding: 4rem var(--sp-pad); }
.sp-band { background: var(--a12); color: var(--a1); padding: 4rem var(--sp-pad); }
.sp-band__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.sp-band h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.4px; margin: 0 0 1rem; color: #fff; }
.sp-band p { margin: 0; }
.sp-band .sp-btn { margin-top: 1rem; background: var(--a1); color: var(--a12); }
.sp-band .sp-btn:hover { background: #fff; color: var(--a12); }
.sp-band img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.sp-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.sp-list li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1rem; align-items: start; }
.sp-list li.sp-list--text { grid-template-columns: minmax(0, 1fr); }
.sp-list img { display: block; width: 120px; height: 120px; object-fit: cover; }
.sp-list h3 { font-size: 17px; line-height: 1.3; margin: 0 0 .25rem; }
.sp-list h3 a { color: var(--s12); text-decoration: none; }
.sp-list h3 a:hover { color: var(--a11); text-decoration: underline; }
.sp-list p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--s11); }

/* ---------- 阶段 7（2026-10-30）：速览卡 / 文末分享 / 首页介绍 / 搜索计数 / 出路链接 ---------- */
.plant-card { margin: 1.5rem 0 2rem; padding: 1.25rem 1.5rem; background: var(--s3); border-left: 4px solid var(--a9); }
.plant-card__title { margin: 0 0 .75rem; font-weight: 700; color: var(--a12); }
.plant-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.5rem; margin: 0; }
.plant-card dl div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .75rem; }
.plant-card dt { color: var(--s11); font-size: 14px; }
.plant-card dd { margin: 0; }
.sp-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 2rem 0 0; font-size: 15px; }
.sp-share p { margin: 0; color: var(--s11); }
.sp-share ul, .sp-topics ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.sp-topics { margin: 1.5rem 0 0; }
.sp-intro__txt { max-width: 41rem; }
.sp-intro__txt p { margin: 0 0 1rem; line-height: 1.65; }
.site-search-count { color: var(--s11); }
@media (max-width: 760px) { .plant-card dl, .plant-card dl div { grid-template-columns: minmax(0, 1fr); gap: .25rem; } }

/* ---------- 页脚 ---------- */
.site-footer { max-width: none; margin: 0; padding: 2.5rem var(--sp-pad); border-top: 1px solid var(--s6); font-size: 14px; color: var(--s11); }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 .75rem; padding: 0; list-style: none; }
.site-footer a { color: var(--s11); }
.site-footer__copy { margin: 0; }

/* ---------- 手机 ---------- */
@media (max-width: 760px) {
	.site-title { font-size: 32px; }
	.sp-hero { aspect-ratio: 4 / 5; max-height: none; }
	.sp-hero h1 { font-size: 32px; }
	.sp-hero__txt { bottom: 32px; }
	.sp-hero::after { background: linear-gradient(0deg, rgb(15 30 22 / .85), rgb(15 30 22 / .1) 70%); } /* 竖图上字在下半，渐变改成自下而上 */
	.site-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
	.sp-band__in, .sp-list { grid-template-columns: minmax(0, 1fr); }
	.page-type-front .site-section, .sp-band { padding-top: 2.5rem; padding-bottom: 2.5rem; }
	.site-prose h2, .site-section__title, .sp-band h2 { font-size: 24px; }
}
