/*
Theme Name: Yimeiv
Theme URI: https://www.yimeiv.com
Author: Yimeiv Studio
Author URI: https://www.yimeiv.com
Description: Yimeiv 是一套为高端医美整形门户 / 连锁诊所打造的中英双语（En / zh-CN / zh-Hant）极简轻量 WordPress 主题。采用现代轻奢视觉语言、微感玻璃拟态、Tailwind CSS 原子化样式与原生 PHP 模板，零 Page Builder 依赖。内置多站点（Subdomain Multisite）与 *.yimeiv.com 泛解析支持，同一套主题可直接用于 shanghai.yimeiv.com、guangdong.yimeiv.com 等城市分站。
Version: 1.3.2
Requires at least: 6.0
Tested up to: 6.8
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: yimeiv
Tags: business, medical, clinic, one-column, custom-logo, custom-menu, featured-images, translation-ready, block-styles, wide-blocks, full-width-template, threaded-comments, right-sidebar
*/

/* ==========================================================================
   Yimeiv — Design Tokens
   Modern Luxury / Clean Medical / Light Glassmorphism
   ========================================================================== */

:root {
  /* Primary — Champagne Gold */
  --y-primary: #c5a880;
  --y-primary-deep: #a98a5b;
  --y-primary-soft: #e8dcc8;
  --y-primary-tint: #f7f2e9;

  /* Secondary — Glacier Blue (deep, authoritative) */
  --y-ink: #0f2c59;
  --y-ink-soft: #1d4585;

  /* Neutrals */
  --y-bg: #fafafa;
  --y-surface: #ffffff;
  --y-text: #1a1a1a;
  --y-muted: #6b7280;
  --y-line: rgba(26, 26, 26, 0.08);

  /* Dark callout */
  --y-night: #0b1b33;
  --y-night-2: #123056;
  --y-night-text: #eef2f7;

  /* Effects */
  --y-radius: 1rem;        /* rounded-2xl */
  --y-radius-lg: 1.5rem;
  --y-shadow-sm: 0 1px 2px rgba(15, 44, 89, 0.04);
  --y-shadow: 0 10px 30px -12px rgba(15, 44, 89, 0.18);
  --y-shadow-xl: 0 24px 60px -20px rgba(15, 44, 89, 0.28);
  --y-ring: 0 0 0 1px rgba(197, 168, 128, 0.28);

  --y-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --y-header-h: 76px;
}

/* ==========================================================================
   Base
   ========================================================================== */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.yimeiv-body {
  background-color: var(--y-bg);
  color: var(--y-text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  line-height: 1.75;
  letter-spacing: 0.002em;
  overflow-x: hidden;
}

/* 标题默认排版。
   注意：这里刻意只使用「元素选择器」（特异性 0,0,1），
   以便 Tailwind 工具类（text-white / font-bold / leading-tight 等，特异性 0,1,0）
   始终能够覆盖。切勿把 .y-font-display 写进本规则的同一选择器列表 ——
   那样会与工具类同权重，再叠加 style.css 后加载的顺序，
   足以压掉 text-white 导致深色区块标题「黑字压深底」。 */
h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", "Inter", ui-sans-serif, system-ui, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.18;
  color: var(--y-text);
}

/* 仅用于给「非标题元素」套用展示字体；不声明 color / font-weight，
   避免覆盖工具类。 */
.y-font-display {
  font-family: "Montserrat", "Inter", ui-sans-serif, system-ui, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  letter-spacing: -0.015em;
}

::selection {
  background: var(--y-primary-soft);
  color: var(--y-night);
}

.yimeiv-body a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--y-ease), opacity 0.25s var(--y-ease);
}

.yimeiv-body img,
.yimeiv-body svg,
.yimeiv-body video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   FAQ 手风琴
   ⚠️ 折叠状态必须由 CSS 控制，**不能**写成元素上的内联 style="grid-template-rows:0fr"。
   内联样式优先级高于任何选择器，会把 .is-open 的 1fr 永久压住，表现为
   「aria-expanded 变成 true 但面板高度始终为 0」——手风琴点不开。
   ========================================================================== */
.y-acc__trigger {
  cursor: pointer;
}

.y-acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--y-ease);
}

.y-acc__item.is-open .y-acc__panel {
  grid-template-rows: 1fr;
}

/* grid 动画要求子项有 min-height:0，否则内容会撑破 0fr 容器 */
.y-acc__panel > div {
  overflow: hidden;
  min-height: 0;
}

.y-acc__icon {
  transition: transform 0.3s var(--y-ease);
}

.y-acc__item.is-open .y-acc__icon {
  transform: rotate(180deg);
}

.y-acc__item.is-open {
  border-color: rgba(197, 168, 128, 0.45);
}

/* Accessible focus states */
.yimeiv-body :focus-visible {
  outline: 2px solid var(--y-primary-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.yimeiv-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 0.75rem 1.25rem;
  background: var(--y-night);
  color: #fff;
  border-radius: 0 0 0.75rem 0;
}
.yimeiv-skip:focus {
  left: 0;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   Utility layer (kept tiny — Tailwind supplies the rest)
   ========================================================================== */

.y-container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .y-container { padding-inline: 2rem; }
}
@media (min-width: 1280px) {
  .y-container { padding-inline: 2.5rem; }
}

/* Glassmorphism surfaces */
.y-glass {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--y-shadow);
}

.y-glass-dark {
  background: rgba(11, 27, 51, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Hairline gold divider */
.y-rule {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(197, 168, 128, 0.55), transparent);
}

/* Eyebrow / kicker */
.y-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--y-primary-deep);
}
.y-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--y-primary);
}

/* Buttons */
.y-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--y-ease), box-shadow 0.3s var(--y-ease),
    background-color 0.3s var(--y-ease), color 0.3s var(--y-ease);
  will-change: transform;
}
.y-btn:hover { transform: translateY(-2px); }
.y-btn:active { transform: translateY(0); }

.y-btn--primary {
  background: linear-gradient(120deg, var(--y-primary) 0%, var(--y-primary-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(169, 138, 91, 0.7);
}
.y-btn--primary:hover {
  box-shadow: 0 18px 34px -12px rgba(169, 138, 91, 0.85);
}

.y-btn--ink {
  background: var(--y-ink);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(15, 44, 89, 0.7);
}
.y-btn--ink:hover { background: var(--y-ink-soft); }

.y-btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--y-night);
  border-color: rgba(15, 44, 89, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.y-btn--ghost:hover {
  background: #fff;
  border-color: var(--y-primary);
  color: var(--y-primary-deep);
}

.y-btn--onDark {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.y-btn--onDark:hover { background: rgba(255, 255, 255, 0.2); }

/* Shine sweep on hover (used by the header CTA) */
.y-shine { position: relative; overflow: hidden; }
.y-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s var(--y-ease);
}
.y-shine:hover::after { left: 140%; }

/* Cards */
.y-card {
  background: var(--y-surface);
  border: 1px solid var(--y-line);
  border-radius: var(--y-radius-lg);
  box-shadow: var(--y-shadow-sm);
  transition: transform 0.4s var(--y-ease), box-shadow 0.4s var(--y-ease),
    border-color 0.4s var(--y-ease);
}
.y-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--y-shadow-xl);
  border-color: rgba(197, 168, 128, 0.4);
}

.y-media-zoom { overflow: hidden; }
.y-media-zoom img {
  transition: transform 0.7s var(--y-ease);
  will-change: transform;
}
.y-card:hover .y-media-zoom img,
.y-media-zoom:hover img { transform: scale(1.06); }

/* ==========================================================================
   Header
   ========================================================================== */

.y-header {
  position: sticky;
  top: 0;
  z-index: 60;
  transition: box-shadow 0.3s var(--y-ease), background-color 0.3s var(--y-ease),
    backdrop-filter 0.3s var(--y-ease);
}
.y-header__inner {
  min-height: var(--y-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.y-header.is-stuck {
  background: rgba(250, 250, 250, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow: 0 8px 30px -18px rgba(15, 44, 89, 0.35);
  border-bottom: 1px solid var(--y-line);
}

/* Primary nav */
.y-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.y-nav > ul > li { position: relative; }
.y-nav > ul > li > a {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(26, 26, 26, 0.78);
}
.y-nav > ul > li > a:hover,
.y-nav > ul > li.current-menu-item > a,
.y-nav > ul > li.current-menu-ancestor > a,
.y-nav > ul > li.current_page_item > a {
  color: var(--y-primary-deep);
  background: var(--y-primary-tint);
}

/* Dropdown */
.y-nav ul ul {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  display: block;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--y-line);
  border-radius: var(--y-radius);
  box-shadow: var(--y-shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--y-ease), transform 0.25s var(--y-ease),
    visibility 0.25s;
}
.y-nav li:hover > ul,
.y-nav li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.y-nav ul ul li { width: 100%; }
.y-nav ul ul a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  color: rgba(26, 26, 26, 0.8);
}
.y-nav ul ul a:hover {
  background: var(--y-primary-tint);
  color: var(--y-primary-deep);
}

/* Mobile drawer */
.y-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}
.y-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(86vw, 380px);
  background: #fff;
  box-shadow: -20px 0 60px -30px rgba(15, 44, 89, 0.5);
  transform: translateX(102%);
  transition: transform 0.42s var(--y-ease);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem 2rem;
  overflow-y: auto;
}
.y-drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 27, 51, 0.42);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.42s var(--y-ease);
}
body.y-drawer-open { overflow: hidden; }
body.y-drawer-open .y-drawer { pointer-events: auto; }
body.y-drawer-open .y-drawer__panel { transform: translateX(0); }
body.y-drawer-open .y-drawer__scrim { opacity: 1; }

.y-drawer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.y-drawer__nav > ul > li {
  border-bottom: 1px solid var(--y-line);
}
.y-drawer__nav a {
  display: block;
  padding: 0.95rem 0.25rem;
  font-size: 1.0625rem;
  font-weight: 500;
}
.y-drawer__nav a:hover { color: var(--y-primary-deep); }
.y-drawer__nav ul ul { padding-left: 0.9rem; }
.y-drawer__nav ul ul a {
  font-size: 0.9375rem;
  color: var(--y-muted);
  padding: 0.6rem 0.25rem;
}

/* Burger */
.y-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 0.75rem;
  border: 1px solid var(--y-line);
  background: rgba(255, 255, 255, 0.7);
}
.y-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--y-night);
  transition: transform 0.3s var(--y-ease), opacity 0.3s var(--y-ease);
}
.y-burger span:nth-child(2) { width: 70%; }
body.y-drawer-open .y-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.y-drawer-open .y-burger span:nth-child(2) { opacity: 0; }
body.y-drawer-open .y-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Before / After comparison slider
   ========================================================================== */

.y-ba {
  position: relative;
  overflow: hidden;
  border-radius: var(--y-radius-lg);
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  background: #eceff3;
}
.y-ba__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.y-ba__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.06s linear;
}
.y-ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 12px rgba(15, 44, 89, 0.35);
  transform: translateX(-1px);
}
.y-ba__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px -8px rgba(15, 44, 89, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--y-night);
}
.y-ba__tag {
  position: absolute;
  top: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(11, 27, 51, 0.62);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.y-ba__tag--l { left: 0.85rem; }
.y-ba__tag--r { right: 0.85rem; }

.y-ba-tabs {
  display: inline-flex;
  padding: 0.25rem;
  gap: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--y-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.y-ba-tabs button {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--y-muted);
  cursor: pointer;
  transition: all 0.3s var(--y-ease);
}
.y-ba-tabs button[aria-selected="true"] {
  background: var(--y-ink);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(15, 44, 89, 0.8);
}

/* ==========================================================================
   Trust / accreditation marquee
   ========================================================================== */

.y-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.y-marquee__track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: y-marquee 32s linear infinite;
}
.y-marquee:hover .y-marquee__track { animation-play-state: paused; }
@keyframes y-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.y-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--y-radius);
  background: #fff;
  border: 1px solid var(--y-line);
  box-shadow: var(--y-shadow-sm);
  white-space: nowrap;
  transition: border-color 0.3s var(--y-ease), box-shadow 0.3s var(--y-ease);
}
.y-badge:hover {
  border-color: rgba(197, 168, 128, 0.5);
  box-shadow: var(--y-shadow);
}

/* ==========================================================================
   Floating CTA dock
   ========================================================================== */

.y-dock {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}
.y-dock__fab {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 34px -12px rgba(15, 44, 89, 0.6);
  transition: transform 0.3s var(--y-ease), box-shadow 0.3s var(--y-ease);
  position: relative;
  cursor: pointer;
}
.y-dock__fab:hover { transform: translateY(-3px) scale(1.04); }
.y-dock__fab--phone { background: linear-gradient(140deg, var(--y-ink), var(--y-ink-soft)); }
.y-dock__fab--wechat { background: linear-gradient(140deg, #22b573, #12975e); }
.y-dock__fab--top { background: rgba(255,255,255,.92); color: var(--y-night); border-color: var(--y-line); }
.y-dock__fab--top:hover { color: var(--y-primary-deep); }

.y-dock__label {
  position: absolute;
  right: calc(100% + 0.7rem);
  white-space: nowrap;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 0.6rem;
  background: rgba(11, 27, 51, 0.9);
  color: #fff;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s var(--y-ease), transform 0.25s var(--y-ease);
  pointer-events: none;
}
.y-dock__fab:hover .y-dock__label { opacity: 1; transform: translateX(0); }

.y-dock__pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: inherit;
  animation: y-pulse 2.4s var(--y-ease) infinite;
  z-index: -1;
}
@keyframes y-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

.y-dock__qr {
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.35s var(--y-ease);
  border-radius: var(--y-radius);
  background: #fff;
  padding: 0;
  box-shadow: var(--y-shadow-xl);
}
.y-dock__qr.is-open {
  width: 172px;
  height: auto;
  padding: 0.75rem;
  opacity: 1;
}

/* Mobile bottom action bar */
.y-mobilebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 85;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  border-top: 1px solid var(--y-line);
}
@media (max-width: 767px) {
  .y-mobilebar { display: grid; }
  .y-dock { bottom: 5.2rem; right: 0.85rem; }
  .y-mobilebar-spacer { height: 4.5rem; }
}

/* ==========================================================================
   Forms
   ========================================================================== */

.y-field {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--y-line);
  background: #fff;
  font-size: 0.9375rem;
  color: var(--y-text);
  transition: border-color 0.25s var(--y-ease), box-shadow 0.25s var(--y-ease);
}
.y-field::placeholder { color: #9aa1ac; }
.y-field:focus {
  outline: none;
  border-color: var(--y-primary);
  box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.16);
}
.y-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(26, 26, 26, 0.75);
}

/* ==========================================================================
   Editorial content (single / page)
   ========================================================================== */

.y-prose { font-size: 1.0625rem; line-height: 1.85; color: #2b2b2b; }
.y-prose > * + * { margin-top: 1.15em; }
.y-prose h2 {
  margin-top: 2.4em;
  margin-bottom: 0.7em;
  font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2rem);
}
.y-prose h3 {
  margin-top: 1.9em;
  margin-bottom: 0.6em;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
}
.y-prose h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  margin-bottom: 0.8rem;
  background: linear-gradient(90deg, var(--y-primary), var(--y-primary-deep));
}
.y-prose a {
  color: var(--y-primary-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(169, 138, 91, 0.4);
}
.y-prose a:hover { text-decoration-color: var(--y-primary-deep); }
.y-prose ul, .y-prose ol { padding-left: 1.35rem; }
.y-prose li + li { margin-top: 0.4em; }
.y-prose ul li::marker { color: var(--y-primary); }
.y-prose ol li::marker { color: var(--y-primary-deep); font-weight: 700; }
.y-prose blockquote {
  margin-inline: 0;
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--y-primary);
  border-radius: 0 var(--y-radius) var(--y-radius) 0;
  background: var(--y-primary-tint);
  font-size: 1.0625rem;
  color: #3b3b3b;
}
.y-prose blockquote p:first-child { margin-top: 0; }
.y-prose blockquote p:last-child { margin-bottom: 0; }
.y-prose img { border-radius: var(--y-radius); box-shadow: var(--y-shadow); }
.y-prose figcaption {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  color: var(--y-muted);
  text-align: center;
}
.y-prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
  border: 1px solid var(--y-line);
  border-radius: var(--y-radius);
  overflow: hidden;
}
.y-prose thead th {
  background: var(--y-night);
  color: var(--y-night-text);
  font-weight: 600;
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
}
.y-prose tbody td {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--y-line);
  vertical-align: top;
}
.y-prose tbody tr:nth-child(even) { background: #fcfcfc; }
.y-prose code {
  background: #f2f3f5;
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.875em;
}
.y-prose pre {
  background: var(--y-night);
  color: #e8eef7;
  padding: 1.15rem 1.3rem;
  border-radius: var(--y-radius);
  overflow-x: auto;
  font-size: 0.875rem;
}
.y-prose pre code { background: transparent; padding: 0; }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--y-ease), transform 0.75s var(--y-ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

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

/* ==========================================================================
   WordPress core class compatibility
   ========================================================================== */

.alignleft { float: left; margin: 0.4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.4rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { margin-inline: -2rem; max-width: none; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8125rem; color: var(--y-muted); text-align: center; margin-top: .5rem; }
.sticky .y-card { border-color: rgba(197, 168, 128, 0.6); }
.bypostauthor > .comment-body { border-left: 3px solid var(--y-primary); }

.y-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.y-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid var(--y-line);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}
.y-pagination .page-numbers:hover { border-color: var(--y-primary); color: var(--y-primary-deep); }
.y-pagination .page-numbers.current {
  background: var(--y-ink);
  border-color: var(--y-ink);
  color: #fff;
}

/* Comment form */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--y-line);
  border-radius: 0.85rem;
  background: #fff;
  font-size: 0.9375rem;
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none;
  border-color: var(--y-primary);
  box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.16);
}
.comment-form .submit,
.wp-block-search__button,
input[type="submit"] {
  padding: 0.8rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--y-primary), var(--y-primary-deep));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s var(--y-ease), box-shadow 0.3s var(--y-ease);
}
.comment-form .submit:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(169, 138, 91, 0.8);
}

/* ==========================================================================
   Multisite city switcher
   ========================================================================== */

.y-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.y-cities a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.82);
}
.y-cities a:hover {
  background: rgba(197, 168, 128, 0.18);
  border-color: var(--y-primary);
  color: #fff;
}
.y-cities a.is-current {
  background: var(--y-primary);
  border-color: var(--y-primary);
  color: #fff;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   全国城市分站目录（页脚）：按大区分组
   -------------------------------------------------------------------------- */

.y-citydir {
  display: grid;
  gap: 1.25rem 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .y-citydir {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .y-citydir {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.y-citydir__group {
  min-width: 0;
}

.y-citydir__region {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--y-primary-deep);
  margin-bottom: 0.6rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(197, 168, 128, 0.28);
}

.y-citydir__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.y-citydir__item {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--y-muted, #6b7280);
  border: 1px solid transparent;
  transition: color 0.2s var(--y-ease), background-color 0.2s var(--y-ease),
    border-color 0.2s var(--y-ease);
}

a.y-citydir__item:hover {
  color: var(--y-primary-deep);
  background: var(--y-primary-tint, #f7f2e9);
  border-color: rgba(197, 168, 128, 0.4);
}

/* 一线 / 直辖市：加粗并前置小圆点，视觉上优先 */
.y-citydir__item.is-tier1 {
  font-weight: 600;
  color: var(--y-text, #1a1a1a);
}

.y-citydir__item.is-tier1::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--y-primary);
  margin-right: 0.4rem;
  flex: none;
}

.y-citydir__item.is-current {
  background: var(--y-primary);
  border-color: var(--y-primary);
  color: #fff;
  font-weight: 600;
}

.y-citydir__item.is-current::before {
  background: rgba(255, 255, 255, 0.85);
}

a.y-citydir__item.is-current:hover {
  color: #fff;
  background: var(--y-primary-deep);
  border-color: var(--y-primary-deep);
}

/* 尚未开通的分站：弱化且不可点击 */
.y-citydir__item.is-pending {
  color: #b9bcc1;
  border-color: rgba(0, 0, 0, 0.05);
  cursor: not-allowed;
}

.y-citydir__item.is-pending::before {
  background: #d7d9dc;
}

/* ==========================================================================
   招商高亮横幅（合作加盟 / 认领网站）
   ========================================================================== */

.y-promo {
  position: relative;
  z-index: 60;
  background: linear-gradient(92deg, #dcc7a0 0%, var(--y-primary) 45%, var(--y-primary-deep) 100%);
  color: var(--y-ink);
}

.y-promo[hidden] {
  display: none;
}

.y-promo__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
}

/* 脉冲点：提示「有新消息」的视觉暗示 */
.y-promo__dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--y-ink);
}

.y-promo__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid rgba(15, 44, 89, 0.45);
  animation: y-promo-pulse 1.9s ease-out infinite;
}

@keyframes y-promo-pulse {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .y-promo__dot::after {
    animation: none;
  }
}

.y-promo__tag {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--y-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.y-promo__text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.y-promo__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 44, 89, 0.25);
  background: rgba(15, 44, 89, 0.1);
  color: var(--y-ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.y-promo__cta:hover {
  background: var(--y-ink);
  color: #fff;
  transform: translateY(-1px);
}

.y-promo__close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: rgba(15, 44, 89, 0.7);
  transition: background 0.2s, color 0.2s;
}

.y-promo__close:hover {
  background: rgba(15, 44, 89, 0.14);
  color: var(--y-ink);
}

@media (max-width: 767px) {
  .y-promo__inner {
    gap: 10px;
    min-height: 0;
    padding: 9px 0;
  }

  .y-promo__tag {
    display: none;
  }

  .y-promo__text {
    font-size: 12px;
    white-space: normal;
  }

  .y-promo__cta {
    padding: 6px 11px;
  }
}
