/*
Theme Name: 月珩 Atelier
Theme URI: https://yueheng-atelier.com
Author: 月珩 Atelier
Description: 月珩 Atelier 品牌展示主题。水墨留白、杏咖色阶，支持品牌、产品与系列展示。纯展示型，不含交易功能。
Version: 1.0.3-Brand-Story-1.0.2
Requires at least: 6.0
Tested up to: 6.7
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: yueheng
Tags: custom-colors, custom-menu, featured-images
*/

/* ============================================================
   本文件只放 WordPress 相关的补充样式。
   视觉主体在 assets/css/style.css、pages.css、ink.css 中。
   ============================================================ */

/* 登录状态下的管理条会把固定导航顶下去 */
body.admin-bar .nav{ top: 32px; }
@media screen and (max-width: 782px){
  body.admin-bar .nav{ top: 46px; }
}

/* 真实图片进入原有的图片位 */
.prod-art img,
.g-main img,
.slide img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prod-img img{ transition: transform 1.4s var(--ease); }
.prod:hover .prod-img img{ transform: scale(1.06); }

/* 系列行、详情页的主图位 */
.ser-art img{ display:block; width:100%; height:100%; object-fit:cover; transition: transform 1.4s var(--ease); }
.ser-card:hover .ser-art img{ transform: scale(1.055); }

.srow-art img{
  display:block; width:100%; height:100%; object-fit:cover;
}

/* 编辑器内容的基础排版 */
.entry-body{ font-size:.92rem; line-height:2.15; letter-spacing:.05em; color: rgba(42,33,26,.78); }
.entry-body p + p{ margin-top: 14px; }
.entry-body a{ border-bottom: 1px solid var(--line); }

/* 分页 */
.yh-pager{
  display:flex; gap:10px; justify-content:center; margin-top: clamp(40px,6vw,64px);
  font-family: var(--sans); font-size: 11px; letter-spacing: .16em;
}
.yh-pager .page-numbers{
  min-width: 38px; height: 38px; display:inline-flex; align-items:center; justify-content:center;
  border: 1px solid var(--line); color: rgba(42,33,26,.7);
}
.yh-pager .page-numbers.current{ background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* 空状态 */
.yh-empty{
  grid-column: 1 / -1; padding: 60px 0; text-align: center;
  font-size: .9rem; letter-spacing: .1em; color: var(--muted);
}

/* 后台字段小样式 */
.yh-field{ margin-bottom: 16px; }
.yh-field label{ display:block; font-weight:600; margin-bottom:6px; }
.yh-field .description{ color:#646970; font-size:12px; margin-top:4px; }
.yh-gallery-preview{ display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.yh-gallery-preview img{ width:80px; height:100px; object-fit:cover; border:1px solid #dcdcde; }

/* 无障碍：仅供读屏 */
.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;
  width:1px; word-wrap:normal !important;
}

