/* ==========================================================================
   濮阳职称 fszg.cn · 全站公共样式 common.css
   风格：极简高级 · 米白 + 浅灰 + 哑光黑 · 点缀暖铜
   说明：仅公共基础 / 顶栏 / 导航 / 页脚 / 通用组件，各页面专属样式在独立 css 文件
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --bg:        #f6f3ec;   /* 米白 */
  --bg-soft:   #efece3;   /* 米白-浅 */
  --bg-deep:   #e8e3d8;   /* 浅灰 */
  --card:      #fcfbf7;   /* 卡片白 */
  --line:      #e2ddd2;   /* 分割线 */
  --line-dark: #d4cec0;
  --ink:       #1b1916;   /* 哑光黑 */
  --ink-2:     #43403a;
  --muted:     #8b857a;
  --bronze:    #9c8559;   /* 暖铜主色 */
  --bronze-d:  #7d6b47;
  --bronze-l:  #c9b78f;
  --gold:      #e0d3ae;
  --white:     #fdfcf9;
  --shadow:    0 18px 45px rgba(27, 25, 22, .08);
  --shadow-sm: 0 6px 18px rgba(27, 25, 22, .06);
  --radius:    14px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-serif:"Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font-family: inherit; font-size: 15px; }
::selection { background: var(--bronze-l); color: var(--ink); }

/* 页面入场过渡 */
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
body { animation: pageIn .55s ease both; }

/* ---------- 布局工具 ---------- */
.container { width: min(1200px, 92%); margin: 0 auto; }
.section { padding: 96px 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--deep { background: var(--bg-deep); }
.sec-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.sec-head--left { margin-left: 0; text-align: left; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .28em; color: var(--bronze-d);
  text-transform: uppercase; margin-bottom: 14px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--bronze); }
.sec-title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px); color: var(--ink); line-height: 1.3;
}
.sec-sub { margin-top: 14px; color: var(--muted); font-size: 15.5px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .04em;
  transition: all .3s ease; white-space: nowrap;
}
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--bronze-d); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--bronze { background: var(--bronze); color: #fff; }
.btn--bronze:hover { background: var(--bronze-d); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { border: 1px solid var(--line-dark); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--white); transform: translateY(-2px); }
.btn--lg { padding: 16px 38px; font-size: 16px; }
.btn .arw { transition: transform .3s ease; }
.btn:hover .arw { transform: translateX(4px); }

/* ---------- 顶栏 ---------- */
.topbar { background: var(--ink); color: #cfc9bc; font-size: 13px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.topbar-slogan { letter-spacing: .06em; color: #b9b2a4; }
.topbar-contact { display: flex; align-items: center; gap: 22px; }
.topbar-contact a { transition: color .25s; }
.topbar-contact a:hover { color: var(--gold); }
.topbar-contact .sep { width: 1px; height: 12px; background: rgba(255,255,255,.18); }

/* ---------- 主导航 ---------- */
.site-header { position: sticky; top: 0; z-index: 200; }
.nav-wrap {
  background: rgba(246, 243, 236, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.nav-wrap.is-scrolled {
  background: rgba(252, 251, 247, .96);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(27,25,22,.07);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-family: var(--font-serif); font-size: 21px; color: var(--ink); letter-spacing: .1em; }
.brand-text i { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: .22em; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a, .has-sub > a {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 15px; font-size: 15.5px; color: var(--ink-2);
  border-radius: 8px; transition: color .25s, background .25s;
}
.nav-links > a::after, .has-sub > a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px;
  height: 2px; background: var(--bronze); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav-links > a:hover, .nav-links > a.on, .has-sub > a:hover { color: var(--ink); }
.nav-links > a:hover::after, .nav-links > a.on::after, .has-sub > a:hover::after { transform: scaleX(1); }
.has-sub { position: relative; }
.has-sub > a .caret { font-size: 10px; opacity: .7; transition: transform .3s; }
.has-sub:hover > a .caret { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .28s ease; z-index: 300;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 8px; font-size: 14.5px; color: var(--ink-2);
  transition: all .22s;
}
.sub-menu a em { font-style: normal; font-size: 11px; color: var(--muted); }
.sub-menu a:hover { background: var(--bg-soft); color: var(--ink); padding-left: 18px; }

.nav-phone {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line-dark); padding: 9px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  transition: all .3s; white-space: nowrap;
}
.nav-phone svg { color: var(--bronze-d); }
.nav-phone:hover { border-color: var(--bronze); background: var(--bronze); color: #fff; }
.nav-phone:hover svg { color: #fff; }

.hamburger { display: none; width: 44px; height: 44px; border-radius: 10px; position: relative; z-index: 310; }
.hamburger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .3s ease; }
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* 移动端菜单 */
.mobile-menu {
  position: fixed; inset: 0; z-index: 290;
  background: var(--bg); padding: 110px 7% 40px;
  overflow-y: auto; display: none;
}
.mobile-menu.open { display: block; animation: menuIn .35s ease both; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.mobile-menu a {
  display: block; padding: 16px 4px; font-size: 18px; color: var(--ink);
  border-bottom: 1px solid var(--line); letter-spacing: .05em;
}
.mobile-menu .mm-sub { padding-left: 18px; }
.mobile-menu .mm-sub a { font-size: 15px; color: var(--ink-2); padding: 11px 4px; border-bottom-color: rgba(226,221,210,.6); }
.mobile-menu .mm-contact { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.mobile-menu .mm-contact a { border: 1px solid var(--line-dark); border-radius: 999px; text-align: center; font-size: 15px; padding: 12px; }
.mobile-menu .mm-contact a:hover { border-color: var(--bronze); color: var(--bronze-d); }

/* ---------- 面包屑 ---------- */
.crumbs { padding: 22px 0 0; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--muted); transition: color .25s; }
.crumbs a:hover { color: var(--bronze-d); }
.crumbs i { font-style: normal; margin: 0 8px; color: var(--line-dark); }

/* ---------- 滚动渐入 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }
.reveal[data-d="4"] { transition-delay: .4s; }

/* ---------- 数字滚动 ---------- */
.count { font-variant-numeric: tabular-nums; }

/* ---------- 卡片通用 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- 手风琴 FAQ ---------- */
.acc-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; transition: border-color .3s; }
.acc-item.open { border-color: var(--bronze-l); }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; text-align: left; font-size: 16px; font-weight: 600; color: var(--ink);
}
.acc-head .acc-icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: all .3s; }
.acc-head .acc-icon svg { transition: transform .3s; }
.acc-item.open .acc-icon { background: var(--bronze); border-color: var(--bronze); }
.acc-item.open .acc-icon svg { transform: rotate(45deg); }
.acc-item.open .acc-icon svg path { stroke: #fff; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .45s ease; }
.acc-body-in { padding: 0 22px 22px; color: var(--ink-2); font-size: 15px; }
.acc-body-in p + p { margin-top: 10px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #171512; color: #a8a296; margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 46px;
  padding: 70px 0 54px;
}
.footer-col h4 { color: #efece3; font-size: 15px; letter-spacing: .18em; margin-bottom: 22px; font-weight: 600; }
.footer-col p { font-size: 14px; line-height: 1.9; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { width: 42px; height: 42px; }
.footer-brand b { font-family: var(--font-serif); font-size: 19px; color: #f2efe7; letter-spacing: .1em; }
.footer-brand i { display: block; font-style: normal; font-size: 11px; color: #7d7668; letter-spacing: .2em; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul a { font-size: 14px; color: #a8a296; transition: all .25s; }
.footer-col ul a:hover { color: var(--gold); padding-left: 6px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin-bottom: 14px; color: #b6b0a3; }
.footer-contact svg { flex-shrink: 0; margin-top: 3px; color: var(--bronze); }
.footer-contact b { color: #efece3; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; color: #7d7668; }
.footer-bottom a { color: #a8a296; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- 悬浮联系方式 ---------- */
.float-contact { position: fixed; right: 22px; bottom: 26px; z-index: 400; display: flex; flex-direction: column; gap: 12px; }
.fc-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: var(--gold);
  display: grid; place-items: center; position: relative;
  box-shadow: var(--shadow); transition: all .3s ease;
}
.fc-btn:hover { background: var(--bronze-d); transform: translateY(-3px); }
.fc-btn .fc-tip {
  position: absolute; right: 62px; top: 50%; transform: translateY(-50%) translateX(6px);
  background: var(--ink); color: #eee; font-size: 13px; padding: 8px 14px; border-radius: 8px;
  white-space: nowrap; opacity: 0; visibility: hidden; transition: all .28s;
}
.fc-btn .fc-tip::after { content: ""; position: absolute; right: -5px; top: 50%; transform: translateY(-50%) rotate(45deg); width: 10px; height: 10px; background: var(--ink); }
.fc-btn:hover .fc-tip { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }

/* ---------- 返回顶部 ---------- */
#backTop { position: fixed; right: 22px; bottom: 92px; z-index: 400; width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: all .3s; box-shadow: var(--shadow-sm); }
#backTop.show { opacity: 1; visibility: visible; }
#backTop:hover { background: var(--ink); color: var(--gold); }

/* ---------- 页头 Hero（各页通用骨架） ---------- */
.page-hero { position: relative; padding: 88px 0 96px; overflow: hidden; background: var(--bg-soft); }
.page-hero .ph-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .16; }
.page-hero .ph-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(246,243,236,0) 40%, var(--bg-soft) 100%); }
.page-hero-in { position: relative; z-index: 2; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .nav-phone { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .section { padding: 72px 0; }
  .topbar-slogan { display: none; }
  .topbar-contact { justify-content: center; width: 100%; gap: 14px; font-size: 12.5px; }
}
@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 54px 0 40px; }
  .float-contact { right: 14px; bottom: 18px; }
  .fc-btn { width: 46px; height: 46px; }
  #backTop { right: 16px; bottom: 78px; }
  .btn { padding: 12px 24px; }
}

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