/* ============================================================
   烨鸿 · 奇连 — 国风设计系统
   纸 · 墨 · 芝麻金 · 印章红
   ============================================================ */

:root {
  --paper:      #f7f1e4;   /* 宣纸底 */
  --paper-deep: #efe5d0;   /* 深一度的纸 */
  --paper-card: #fdfaf3;   /* 卡片纸 */
  --ink:        #2e2316;   /* 浓墨 */
  --ink-soft:   #6c5a41;   /* 淡墨 */
  --ink-faint:  #9a8a70;   /* 极淡 */
  --gold:       #b8741a;   /* 芝麻金 */
  --gold-deep:  #8f5a12;
  --seal:       #c2331e;   /* 奇连印章红 */
  --line:       rgba(62, 44, 23, .16);
  --line-strong:rgba(62, 44, 23, .32);

  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --brush: "LXGW WenKai", "Kaiti SC", "KaiTi", cursive;
  --mono:  "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--serif);
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(105deg, rgba(120, 90, 50, .025) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(15deg, rgba(120, 90, 50, .018) 0 1px, transparent 1px 9px);
  color: var(--ink);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 品牌词高亮（brandMark 输出）*/
em { font-style: normal; color: var(--seal); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 顶部导航 ---------- */
.yh-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 228, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.yh-header-in {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex; align-items: center; gap: 28px;
}
.yh-brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.yh-brand img { height: 44px; width: auto; }
.yh-brand-name { display: flex; flex-direction: column; line-height: 1.3; }
.yh-brand-name b { font-size: 17px; letter-spacing: .12em; font-weight: 700; }
.yh-brand-name span { font-size: 10.5px; letter-spacing: .26em; color: var(--ink-faint); }

.yh-nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.yh-nav a { color: var(--ink-soft); transition: color .2s, background .2s; white-space: nowrap; font-size: 15.5px; letter-spacing: .14em; padding: 8px 14px; border-radius: 4px; }
.yh-nav a:hover { color: var(--ink); background: rgba(184, 116, 26, .08); }
.yh-nav a.on { color: var(--seal); font-weight: 700; position: relative; }
.yh-nav a.on::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px;
  height: 2px; background: var(--seal); border-radius: 2px;
}

.yh-burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--line-strong); border-radius: 6px;
  cursor: pointer; color: var(--ink);
  font-size: 18px; line-height: 1;
}

/* ---------- 页脚 ---------- */
.yh-footer {
  margin-top: 110px;
  background: #241a0f;
  color: #cfc2ab;
  border-top: 4px solid var(--gold);
}
.yh-footer-in {
  max-width: var(--maxw); margin: 0 auto;
  padding: 68px 24px 30px;
  display: grid; grid-template-columns: 1.5fr 1fr 1.15fr auto; gap: 56px;
}
.yh-footer-brand { display: flex; flex-direction: column; gap: 22px; }
.yh-footer-id { display: flex; align-items: center; gap: 15px; }
.yh-footer-id .yh-seal { width: 52px; height: 52px; font-size: 21px; flex-shrink: 0; }
.yh-footer-name { display: flex; flex-direction: column; line-height: 1.45; }
.yh-footer-name b { font-size: 16px; letter-spacing: .1em; color: #efe5d0; font-weight: 700; }
.yh-footer-name span { font-size: 10px; letter-spacing: .24em; color: #8a7b5f; }
.yh-footer h4 {
  font-size: 14px; letter-spacing: .3em; color: #efe5d0;
  margin-bottom: 18px; font-weight: 700;
}
.yh-footer p, .yh-footer a { font-size: 13.5px; line-height: 2.2; color: #b3a486; display: block; }
.yh-footer a:hover { color: var(--gold); }
.yh-footer-motto { font-family: var(--brush); font-weight: 700; font-size: 25px; color: #d8c39a; line-height: 1.75; letter-spacing: .04em; }
.yh-footer-bottom {
  max-width: var(--maxw); margin: 0 auto; padding: 20px 24px;
  border-top: 1px solid rgba(207, 194, 171, .15);
  font-size: 12px; color: #8a7b5f;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.yh-qr {
  width: 116px; height: 116px; border-radius: 8px;
  background: #fdfaf3;
  display: grid; place-items: center;
  color: #8a7b5f; font-family: var(--mono); font-size: 11px;
  text-align: center; line-height: 1.5;
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.05) 0 6px, transparent 6px 12px);
}

/* ---------- 通用版式 ---------- */
.yh-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.yh-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: .42em; color: var(--gold-deep);
  margin-bottom: 16px;
}
.yh-kicker::before { content: ""; width: 34px; height: 1px; background: var(--gold); }

.yh-h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900; letter-spacing: .08em; line-height: 1.4;
}
.yh-h2 .brush { font-family: var(--brush); font-weight: 700; color: var(--seal); font-size: 1.15em; line-height: 1; }

.yh-lead { font-size: 16.5px; color: var(--ink-soft); max-width: 640px; text-wrap: pretty; }

.yh-section { padding: 96px 0 0; }

/* 印章 */
.yh-seal {
  display: inline-grid; place-items: center;
  width: 58px; height: 58px;
  background: var(--seal); color: #fdfaf3;
  font-family: var(--brush); font-size: 24px; line-height: 1.1;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px rgba(253, 250, 243, .55), inset 0 0 0 4px var(--seal);
  transform: rotate(-3deg);
  text-align: center; padding: 4px;
}

/* 竖排文字 */
.yh-vert {
  writing-mode: vertical-rl;
  letter-spacing: .35em;
  font-family: var(--brush);
  white-space: nowrap;
}

/* 按钮 */
.yh-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 15px; letter-spacing: .2em;
  padding: 14px 30px; border-radius: 4px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.yh-btn:active { transform: translateY(1px); }
.yh-btn-seal { background: var(--seal); color: #fdfaf3; }
.yh-btn-seal:hover { background: #a82a17; box-shadow: 0 6px 18px rgba(194, 51, 30, .25); }
.yh-btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.yh-btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }

/* 卡片 */
.yh-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
a.yh-card, button.yh-card { cursor: pointer; }
a.yh-card:hover, a.yh-card:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(62, 44, 23, .12); }
.yh-card.no-hover:hover { transform: none; box-shadow: none; }

/* 图片占位（无 image-slot 时的纯 CSS 备用） */
.yh-ph {
  background: var(--paper-deep);
  background-image: repeating-linear-gradient(45deg, rgba(120, 90, 50, .06) 0 10px, transparent 10px 20px);
  display: grid; place-items: center;
  color: var(--ink-faint); font-family: var(--mono); font-size: 12px;
  letter-spacing: .08em;
}

/* image-slot 默认风格统一 */
image-slot { background: var(--paper-deep); }

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
  .yh-nav {
    display: none;
    position: fixed; top: 76px; left: 0; right: 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper-card);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 14px;
    box-shadow: 0 18px 30px rgba(62, 44, 23, .12);
  }
  .yh-nav.open { display: flex; }
  .yh-nav a { padding: 13px 28px; font-size: 16px; }
  .yh-nav a.on::after { display: none; }
  .yh-burger { display: block; }
  .yh-footer-in { grid-template-columns: 1fr 1fr; gap: 36px; }
  .yh-section { padding: 64px 0 0; }
}
@media (max-width: 560px) {
  .yh-footer-in { grid-template-columns: 1fr; }
  .yh-brand-name b { font-size: 15px; }
}
@media (max-width: 400px) {
  .yh-header-in { padding: 0 14px; gap: 14px; }
  .yh-wrap { padding: 0 16px; }
}
@media print {
  .yh-header, .yh-float, .yh-notice, .yh-burger { display: none !important; }
  .yh-footer { margin-top: 40px; }
  body { background: #fff; }
}

/* ---------- 导航滚动投影（首页/全站） ---------- */
.yh-header { transition: box-shadow .3s, background .3s; }
.yh-header.scrolled { box-shadow: 0 10px 30px rgba(62, 44, 23, .08); background: rgba(247, 241, 228, .97); }

/* ---------- 公告条 ---------- */
.yh-notice { background: #241a0f; color: #efe5d0; }
.yh-notice-in { max-width: var(--maxw); margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 12px; font-size: 13.5px; letter-spacing: .06em; }
.yh-notice .zi { font-family: var(--brush); color: #b8741a; font-size: 16px; flex-shrink: 0; }
.yh-notice p { flex: 1; margin: 0; line-height: 1.6; }
.yh-notice button { background: none; border: none; color: #8a7b5f; cursor: pointer; font-size: 14px; flex-shrink: 0; padding: 4px 8px; border-radius: 4px; }
.yh-notice button:hover { color: #efe5d0; }

/* ---------- 悬浮件 ---------- */
.yh-float { position: fixed; right: 18px; bottom: 24px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.yh-float-item { position: relative; width: 48px; height: 48px; border-radius: 50%; background: #fdfaf3; border: 1px solid rgba(62,44,23,.3); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(62,44,23,.16); transition: transform .2s, border-color .2s; text-decoration: none; color: inherit; }
.yh-float-item:hover { transform: translateY(-2px); border-color: #b8741a; }
.yh-float-item .zi { font-family: var(--brush); font-size: 20px; color: #8f5a12; line-height: 1; }
.yh-float-item .tip { position: absolute; right: 58px; top: 50%; transform: translateY(-50%) scale(.92); opacity: 0; visibility: hidden; pointer-events: none; background: #241a0f; color: #efe5d0; font-size: 13px; letter-spacing: .08em; padding: 9px 14px; border-radius: 8px; white-space: nowrap; transition: opacity .18s, transform .18s, visibility .18s; font-family: var(--mono); }
.yh-float-item:hover .tip, .yh-float-item:focus-within .tip { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); }
.yh-float-item .tip-qr { font-family: var(--serif); text-align: center; }
.yh-float-item .tip-qr .qr { display: block; width: 104px; height: 104px; border-radius: 6px; margin: 0 0 8px; background-color: #fdfaf3; background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.07) 0 6px, transparent 6px 12px); }
.yh-float-item .tip-qr img.qr { background-image: none; object-fit: cover; }
.yh-top { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, visibility .25s; background: none; border: 1px solid rgba(62,44,23,.3); }
.yh-top.show { opacity: 1; visibility: visible; pointer-events: auto; }
@media (hover: none) { .yh-float-item .tip { display: none; } }
@media (max-width: 560px) { .yh-float { right: 12px; bottom: 16px; } .yh-float-item { width: 44px; height: 44px; } .yh-float-item .zi { font-size: 18px; } }

/* ---------- 图片占位（媒体未上传时） ---------- */
.yh-imgph { background: var(--paper-deep); background-image: repeating-linear-gradient(45deg, rgba(120,90,50,.06) 0 10px, transparent 10px 20px); display: grid; place-items: center; color: var(--ink-faint); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-align: center; padding: 12px; }
