@charset "UTF-8";
/*!
 * Mooto · base.css
 * 设计变量 / 重置 / 排版 / 通用工具类 / 媒体容器 / 入场动画
 * 全站只加载一次（原站把它内联进了每一个页面，且首页重复 2 遍）
 */

/* ============================================================
   1. 设计变量
   ============================================================ */
:root {
	--bg: #ffffff;
	--fg: #0a0a0a;
	--brand: #0a0a0a;
	--paper: #faf9f7;          /* 交替区块的米白底 */
	--photo: #f2f0ec;          /* 图片占位底色 */

	--muted: rgba(10, 10, 10, .42);
	--soft: rgba(10, 10, 10, .6);
	--line: rgba(10, 10, 10, .08);
	--line-strong: rgba(10, 10, 10, .22);

	--nav-h: 118px;
	--tabbar-h: 62px;

	--pad: clamp(22px, 4.5vw, 72px);
	--radius-scale: 1;
	--radius-sm: calc(clamp(10px, 1.2vw, 16px) * var(--radius-scale));
	--radius-md: calc(clamp(16px, 2vw, 28px) * var(--radius-scale));
	--radius-lg: calc(clamp(22px, 2.8vw, 42px) * var(--radius-scale));

	--sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	--serif: "Songti SC", "STSong", "Noto Serif SC", "Playfair Display", Georgia, serif;

	--ease-soft: cubic-bezier(.22, .7, .2, 1);
	--section-y: clamp(80px, 12vh, 180px);
}

/* ============================================================
   2. 重置
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ★★★ 关掉浏览器的**默认点击高亮**（安卓 Chrome / WebView / 微信内核都会画）。
 *
 * 这条是访客报出来的：「点击完蝴蝶以后，不论在哪再点击屏幕，都会有一瞬间
 * 接近透明的蓝色全屏」。逐帧录像 + 反解叠加层色值得出结论：
 * 那层蓝 = `rgba(51, 181, 229, 0.4)`，就是 `-webkit-tap-highlight-color`
 * 在 html/body 上的**浏览器默认值**（UA 样式表给的；本站 CSS 里一个字都没写过，
 * 用 CDP CSS.getMatchedStylesForNode 查过）。约 190ms、铺满 100% 视口。
 *
 * 本主题原来只在 `a` / `button` / `.backtop` 上关掉了它 —— 也就是说
 * **点到 div / p / section / img 这些"非链接"时就会漏出来**。
 * 这条只作用在"是否绘制一层高亮"上，不参与布局、不影响滚动与点击，
 * 所以直接全局关掉最省事也最可靠（各厂商 ROM 的默认色还不一样，
 * 有的偏黄有的偏灰，靠逐个元素去堵必然漏）。
 *
 * ★ 与 butterfly.js 的关系：那边原来在 document 上挂了 click 监听，
 *   实测会让 Blink 认定"文档是可点击的"，从而把高亮铺到**整个文档**上。
 *   那边已经把拦截改到 pointerdown、不再挂 click；这里再全局关一道，
 *   是给别的页面 / 别的内核留兜底（两道各自独立都能修好）。 */
*,
*::before,
*::after { -webkit-tap-highlight-color: transparent; }

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
	/* 横向兜底，两道：hidden 给老浏览器，clip 给新浏览器。
	   clip 不在 body 上产生滚动容器 —— 连手势拖动都滑不动，比 hidden 更彻底；
	   本主题的导航是 position: fixed（相对视口），不受影响。
	   ★ 这只兜底，不是修复：真正的修复是「列宽 minmax(0,1fr) + 窄屏放开 nowrap」。 */
	overflow-x: hidden;
	overflow-x: clip;
	position: relative;
	font-family: var(--sans);
	background: var(--bg);
	color: var(--fg);
	font-weight: 300;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
iframe { display: block; max-width: 100%; }

img { height: auto; }

a {
	color: inherit;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

a:focus,
a:focus-visible,
a:active { outline: none; }

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	outline: none;
	touch-action: manipulation;
}

input,
select,
textarea { font: inherit; color: inherit; background: none; border: 0; outline: none; }

ul,
ol { list-style: none; }

table { border-collapse: collapse; width: 100%; }

:where(.mooto-body :focus-visible) { outline: 2px solid rgba(10, 10, 10, .5); outline-offset: 3px; }

/* 屏幕阅读器专用文本（原站缺失，这里补上无障碍基础） */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px; left: 12px;
	z-index: 100000;
	padding: 12px 22px;
	background: #0a0a0a;
	color: #fff;
	font-size: 12px;
	letter-spacing: .12em;
	border-radius: 0 0 8px 8px;
	transition: top .25s ease;
}
.skip-link:focus { top: 0; }

/* 图片默认行为：容器负责裁切，img 铺满 */
.mooto-body img { object-fit: cover; }

/* ============================================================
   3. 排版工具类
   ============================================================ */
.kicker {
	font-size: 11px;
	letter-spacing: .5em;
	margin-right: -.5em;
	text-transform: uppercase;
	color: var(--muted);
}

.section { padding: var(--section-y) var(--pad); }

.section--paper { background: var(--paper); }

.section__head { text-align: center; margin-bottom: clamp(70px, 11vh, 140px); }

.section__title {
	font-family: var(--serif);
	font-size: clamp(24px, 3vw, 42px);
	font-weight: 400;
	letter-spacing: .22em;
	margin-right: -.22em;
	margin-top: 32px;
}

.section__lead {
	font-size: 13.5px;
	line-height: 2.2;
	letter-spacing: .08em;
	color: var(--soft);
	max-width: 620px;
	margin: clamp(28px, 4vh, 44px) auto 0;
	text-align: left;
}

/* ============================================================
   4. 媒体容器（.media）
   原站的视差、圆角、裁切都靠它，统一保留
   ============================================================ */
.media,
.mooto-media {
	position: relative;
	overflow: hidden;
	background: var(--photo);
	border-radius: var(--radius-md);
	isolation: isolate;
	transform: translateZ(0);
	-webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* ★ 首页花语区那两张实景图走 WebP 双轨（见 inc/render.php 的 mooto_block_render_img），
   img 外面多包了一层 <picture>。两件事必须一起做，少一件就出事：
     ① `> picture { display: contents }` —— 让这层包装在布局里彻底「透明」。
        不写它，picture 是 inline 元素，会把容器的 aspect-ratio 撑歪。
     ② `> picture > img` 得**单独列一条** —— `display: contents` 只改布局树，
        DOM 父子关系不变，所以 `.media > img` 这条直接子选择器不会再匹配，
        img 会当场丢掉 width/height/object-fit，整块版面塌下去。
        两条并列写，加 <picture> 与不加 <picture> 的图共用同一套尺寸规则。 */
.media > picture,
.mooto-media > picture {
	display: contents;
}

.media > img,
.media > picture > img,
.mooto-media > img,
.mooto-media > picture > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.12);
	will-change: transform;
}

/* ============================================================
   5. 入场动画（原站 .reveal）
   支持 animation-timeline: view() 的浏览器走原生滚动时间轴，
   不支持的用 CSS 动画兜底；尊重 prefers-reduced-motion
   ============================================================ */
.reveal { animation: reveal-up .9s var(--ease-soft) both; }
.reveal.d1 { animation-delay: .1s; }
.reveal.d2 { animation-delay: .2s; }
.reveal.d3 { animation-delay: .3s; }
/* d4：2026-10-08 加 —— 预约区块的按钮排在「电话 / 地址」之后，需要再错开一拍。 */
.reveal.d4 { animation-delay: .4s; }

@keyframes reveal-up {
	from { opacity: 0; transform: translateY(28px); }
	to   { opacity: 1; transform: none; }
}

@supports (animation-timeline: view()) {
	.reveal {
		animation-name: reveal-up;
		animation-duration: 1ms;
		animation-timing-function: linear;
		animation-fill-mode: both;
		animation-timeline: view();
		animation-range: entry 5% entry 35%;
	}
	.reveal.d1,
	.reveal.d2,
	.reveal.d3,
	.reveal.d4 { animation-delay: 0s; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { animation: none; opacity: 1; transform: none; }
	*,
	*::before,
	*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============================================================
   6. 色卡 / 调色盘（案例圆形色块）
   ============================================================ */
.palette {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.palette i {
	display: block;
	width: clamp(20px, 1.8vw, 26px);
	height: clamp(20px, 1.8vw, 26px);
	border-radius: 50%;
	border: 1px solid rgba(10, 10, 10, .08);
	transition: transform .4s var(--ease-soft);
}

.palette em {
	font-style: normal;
	font-size: 10px;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--muted);
	margin-left: 8px;
}

/* 深色背景上的色卡（精选案例覆盖层） */
.works-feature__palette i,
.palette--on-dark i { border-color: rgba(255, 255, 255, .28); }

.works-feature__palette em,
.palette--on-dark em { color: rgba(255, 255, 255, .6); }

a:hover .palette i { transform: scale(1.08); }

/* ============================================================
   7. 按钮
   ============================================================ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 56px;
	padding: 0 clamp(36px, 5vw, 64px);
	border-radius: 100px;
	border: 1px solid var(--fg);
	background: var(--fg);
	color: #fff;
	font-size: 11px;
	letter-spacing: .32em;
	text-transform: uppercase;
	transition: background .35s ease, color .35s ease, transform .3s ease, border-color .35s ease;
}

.btn:hover { background: #1a1a1a; transform: translateY(-2px); }

.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--fg); color: #fff; }

/* ============================================================
   8. 表单基础（联系页预约以外的通用样式）
   ============================================================ */
.field { display: flex; flex-direction: column; }

.field__label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	letter-spacing: .12em;
	line-height: 1.6;
	margin-bottom: 14px;
}

.field__req { color: var(--fg); }

.field__hint { font-size: 11.5px; letter-spacing: .06em; color: var(--muted); }

.input,
.select,
.textarea {
	width: 100%;
	padding: 14px 0;
	border-bottom: 1px solid rgba(10, 10, 10, .14);
	font-size: 14px;
	letter-spacing: .06em;
	transition: border-color .35s ease;
}

.input::placeholder,
.textarea::placeholder { color: rgba(10, 10, 10, .25); letter-spacing: .04em; }

.input:focus,
.select:focus,
.textarea:focus { border-bottom-color: rgba(10, 10, 10, .4); }

.textarea { min-height: 120px; resize: vertical; background: none; }

.input.is-invalid { border-bottom-color: rgba(10, 10, 10, .5); }

/* ============================================================
   9. WordPress 核心兼容：对齐、图注、文章内容
   （原站完全没有处理这些，导致后台插入的图片/表格会跑版）
   ============================================================ */
.alignleft { float: left; margin: 0 32px 24px 0; }
.alignright { float: right; margin: 0 0 24px 32px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide { width: min(1400px, calc(100% + 8vw)); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

.entry-content { font-size: 14.5px; line-height: 2.2; letter-spacing: .04em; color: var(--soft); }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { font-family: var(--serif); font-weight: 400; letter-spacing: .1em; color: var(--fg); margin-top: 2.2em; }
.entry-content h2 { font-size: clamp(22px, 2.4vw, 32px); }
.entry-content h3 { font-size: clamp(18px, 1.9vw, 24px); }
.entry-content a { border-bottom: 1px solid var(--line-strong); }
.entry-content a:hover { border-bottom-color: var(--fg); }
.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: .5em; }
.entry-content blockquote {
	padding: 8px 0 8px 26px;
	border-left: 1px solid var(--line-strong);
	font-family: var(--serif);
	font-size: 1.05em;
	letter-spacing: .08em;
	color: var(--fg);
}
.entry-content img { border-radius: var(--radius-md); }
.entry-content table { font-size: 13.5px; }
.entry-content th,
.entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { font-weight: 500; color: var(--fg); }
.entry-content pre { overflow-x: auto; padding: 20px 22px; background: #f6f5f2; border-radius: 12px; font-size: 13px; }
.entry-content code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .92em; }

.wp-caption { max-width: 100%; }
.wp-caption-text,
figcaption { margin-top: 12px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; }

.wp-block-image figcaption { text-transform: none; letter-spacing: .06em; }

/* 分页 */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: clamp(48px, 7vh, 80px); }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 14px;
	border: 1px solid var(--line); border-radius: 100px;
	font-size: 11.5px; letter-spacing: .22em; color: var(--soft);
	transition: color .35s ease, border-color .35s ease, background .35s ease;
}
.pagination a.page-numbers:hover { color: var(--fg); border-color: var(--line-strong); }
.pagination .page-numbers.current { background: var(--fg); color: #fff; border-color: var(--fg); }
.pagination .prev,
.pagination .next { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }

/* ============================================================
   10. 页脚
   ============================================================ */
.footer {
	padding: 54px var(--pad) 48px;
	text-align: center;
	border-top: 1px solid var(--line);
	background: var(--bg);
}

/* ---- 品牌矩阵（2026-10-08 第二十二轮新增；同日第二十三轮改成徽章）----
   茉棠设计 / 荷墅美学 / 聚龙装饰 三个品牌平列。

   ★ 第二十三轮改版缘由：第一版在每个品牌上方挂了一枚小红书红方块，
     访客反馈「三个红色太突兀」，并给了一张 App Store / Google Play
     徽章的参考图。现在改成**黑底圆角徽章**：小字在上（品牌定位）、
     大字在下（品牌名）—— 和参考图的「小字在上、大字在下」同一套层级。

   ★ 参考图量出来的规格（原图 308×54 里那枚 99×29 的徽章）：
       底色纯黑 #000 ／ 圆角 5px ≈ 高度 × 0.17
       横向  左内边距 12 · 标记 13 · 间隔 7 · 文字块 56 · 右内边距 13
       纵向  小字 cap 6px（占高 .21）→ 间隔 2 → 大字 cap 9px（占高 .31）
     中文是方块字，同样信息量必然更宽，所以不去追 3.41 那个宽高比，
     只搬四条：纯黑底 / 圆角 ≈ 高度 × 0.17 / 小字在上大字在下 /
     横向内边距约等于宽度的 15%。底色用 --fg 而非纯黑，与站内 .btn 同色。

   ★ 排版用 flex + wrap，不用 grid：徽章宽度跟着字走（中文 4 字 / 6 字），
     grid 的等分格会在两侧留下大片空档；flex 让三枚徽章自然贴近、整体居中，
     条数少于 3 时也不会剩空列。窄屏靠 clamp() 缩字号与内边距 ——
     320px 仍能一行放下三枚（实测合计 237px，可用宽 276px）。

   ★ ★ 徽章里的字**绝不能回退到 --muted**：底色是黑的，深灰落在黑底上
     等于隐形。所以 kicker 与 name 都显式写死白 / 半透明白，不继承。
     （第一版就是撞了 base.css 里已有的 `.kicker` 工具类 —— 它带
       `color: var(--muted)`，于是小字整行看不见。本项目所有新类名
       一律带 `footer__brand-` 前缀，不复用 .kicker / .name / .mark 这类通用名。）
   -------------------------------------------------------------------- */
.footer__brands {
	padding-bottom: 30px;
	margin-bottom: 30px;
	border-bottom: 1px solid var(--line);
}

.footer__brands-label {
	font-size: 10px;
	letter-spacing: .28em;
	color: var(--muted);
	margin: 0 0 22px;
}

.footer__brands-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer__brand { display: flex; }

/* 徽章本体。<a> 或 <span>（后台没填链接时就是纯展示），两者同款。 */
.footer__brand-badge {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(9px, 2.4vw, 12px) clamp(11px, 2.9vw, 20px) clamp(10px, 2.6vw, 13px);
	border-radius: clamp(8px, 2.1vw, 10px);
	background: var(--fg);
	color: #fff;
	text-decoration: none;
	transition: transform .3s var(--ease-soft), opacity .3s ease;
}

/* 只有 <a> 才给反馈 —— 纯展示的 <span> 不该看起来像能点。 */
a.footer__brand-badge:hover { transform: translateY(-2px); opacity: .9; }

.footer__brand-badge-kicker {
	font-size: clamp(8px, 2.2vw, 9px);
	letter-spacing: .18em;
	line-height: 1.5;
	color: rgba(255, 255, 255, .62);
}

.footer__brand-badge-name {
	font-family: var(--serif);
	font-size: clamp(12.5px, 3.6vw, 16px);
	letter-spacing: .14em;
	line-height: 1.3;
	color: #fff;
}

.footer__top {
	font-size: 10px;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 22px;
}

.footer__nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; margin-bottom: 22px; }
.footer__nav a { font-size: 11px; letter-spacing: .22em; color: var(--muted); transition: color .3s ease; }
.footer__nav a:hover { color: var(--fg); }

.footer__filing {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 10.5px;
	letter-spacing: .14em;
	color: var(--muted);
	text-decoration: none;
}

.footer__filing svg { width: 14px; height: 14px; flex: 0 0 auto; }
.footer__filing:hover { color: var(--fg); }
