/* ===================================================================
   FDCARD — refinement layer (additive only; 原主题文件零改动)
   方向: Editorial Luxury · 暖白底 + 深墨字 + 金铜强调
   口径: refinement 不重设计 — 只提升排版渲染、动效质感、可访问性
   =================================================================== */

:root {
  --fd-ink: #1c1917;
  --fd-ink-soft: #44403c;
  --fd-cream: #faf9f7;
  --fd-accent: #a16207;
  --fd-accent-deep: #854d0e;
  --fd-hairline: #e8e4de;
  --fd-ease: cubic-bezier(0.32, 0.72, 0, 1);
}

/* —— 排版渲染：中文优先的系统字体链 + 抗锯齿 —— */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .uk-h1, .uk-h2, .uk-h3 {
  letter-spacing: 0.02em;
  color: var(--fd-ink);
}

/* —— 交互质感：统一的自定义缓动 —— */
a, .uk-button, button, input[type="submit"] {
  transition: color 0.45s var(--fd-ease), background-color 0.45s var(--fd-ease),
    border-color 0.45s var(--fd-ease), opacity 0.45s var(--fd-ease),
    transform 0.45s var(--fd-ease), box-shadow 0.45s var(--fd-ease);
}

.uk-button:hover { transform: translateY(-1px); }
.uk-button:active { transform: translateY(0) scale(0.98); }

/* 键盘可见焦点（a11y，theme 原样式未覆盖） */
a:focus-visible, button:focus-visible, .uk-button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--fd-accent);
  outline-offset: 2px;
}

/* —— 图片呈现：柔和高光 + 阻尼 hover —— */
.uk-overlay img,
.uk-grid img:not(.uk-object-cover) {
  will-change: transform;
}

a[data-uk-lightbox] img {
  transition: transform 0.7s var(--fd-ease), box-shadow 0.7s var(--fd-ease);
}

a[data-uk-lightbox]:hover img {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(28, 25, 23, 0.14);
}

/* —— 导航：滚动后柔和阴影（配合 refine.js） —— */
.uk-navbar {
  transition: box-shadow 0.6s var(--fd-ease), background-color 0.6s var(--fd-ease);
}

.fd-nav-scrolled .uk-navbar {
  box-shadow: 0 1px 24px rgba(28, 25, 23, 0.08);
}

/* —— 滚动显现（refine.js 控制；reduced-motion 时全量可见） —— */
.fd-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--fd-ease), transform 0.9s var(--fd-ease);
}

.fd-reveal.fd-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fd-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  a, .uk-button, a[data-uk-lightbox] img, .uk-navbar { transition: none !important; }
}

/* —— 预约/联系卡（静态化降级组件） —— */
.fdcard-booking {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--fd-hairline);
  background: var(--fd-cream);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 8px 32px rgba(28, 25, 23, 0.05);
}

.fdcard-booking img { border-radius: 4px; }

/* —— 选区与细节 —— */
::selection { background: rgba(161, 98, 7, 0.18); }

/* 表单控件（预约卡外的普通输入若保留）：统一 hairline */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  transition: border-color 0.45s var(--fd-ease), box-shadow 0.45s var(--fd-ease);
}
