/* ============================================================
   易海东方易经研究院 — 全局样式
   主色:朱砂红(主导)  辅色:米黄宣纸 / 墨色 / 描金
   技术:HTML + CSS + jQuery
   ============================================================ */

:root {
  /* 朱砂红 —— 主色 */
  --red: #b0231c;
  --red-deep: #8c1712;
  --red-dark: #6e100c;
  --red-light: #cf4237;
  --red-tint: #f7e3df;

  /* 米黄宣纸 —— 辅色 */
  --paper: #f6ecd9;
  --paper-light: #fbf5e8;
  --paper-card: #fffaf0;

  /* 墨色 / 描金 */
  --ink: #2c2320;
  --ink-soft: #5a4a40;
  --ink-faint: #8a786a;
  --gold: #c9a24a;
  --gold-light: #e0c383;

  --line: #e3d4b8;
  --line-strong: #cdb894;

  --font-shu: "Ma Shan Zheng", "STXingkai", "华文行楷", "STKaiti", "KaiTi", "楷体", serif;
  --font-kai: "STKaiti", "KaiTi", "楷体", "Kaiti SC", serif;
  --font-song: "Noto Serif SC", "Songti SC", "SimSun", "宋体", serif;
  /* 导航专用: 书法体无粗体字重, 合成加粗在高分屏会笔画粘连, 故用真实字重的黑体 */
  --font-nav: "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;

  --max-w: 1160px;
  --radius: 4px;
  --shadow: 0 6px 22px rgba(110, 16, 12, 0.14);
  --shadow-lift: 0 14px 38px rgba(110, 16, 12, 0.22);
  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-song);
  color: var(--ink);
  line-height: 1.85;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 8% 4%, rgba(176, 35, 28, 0.06), transparent 40%),
    radial-gradient(circle at 92% 96%, rgba(201, 162, 74, 0.08), transparent 44%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--red-light); }
h1, h2, h3, h4 { font-family: var(--font-kai); font-weight: 700; line-height: 1.35; color: var(--ink); margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部大标题 Masthead ---------- */
.masthead {
  background: linear-gradient(150deg, var(--red-deep), var(--red) 55%, var(--red-light));
  color: var(--paper-light);
  text-align: center;
  padding: 38px 24px 42px;
  position: relative;
  overflow: hidden;
}
.masthead .mh-row { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 4vw, 54px); }
.masthead .mh-center { min-width: 0; }
.mh-bagua { width: clamp(76px, 13vw, 168px); height: auto; opacity: .96; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .28)); flex: 0 0 auto; transition: filter 0.35s; }
.mh-bagua:hover { filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .34)) brightness(1.14); }
.mh-bagua .halo { transform-origin: 100px 100px; animation: haloBreathe 6s ease-in-out infinite; }
.mh-bagua .wheel { transform-origin: 100px 100px; animation: baguaSpin 64s linear infinite; }
.mh-bagua.rev .wheel { animation-direction: reverse; }
.mh-bagua .ticks { transform-origin: 100px 100px; animation: baguaSpin 120s linear infinite reverse; }
.mh-bagua .orbit { transform-origin: 100px 100px; animation: baguaSpin 14s linear infinite; }
.mh-bagua.rev .orbit { animation-direction: reverse; }
.mh-bagua .taiji { transform-origin: 100px 100px; animation: baguaSpin 26s linear infinite reverse; }
.mh-bagua .yao { animation: yaoShimmer 4.2s ease-in-out infinite; animation-delay: var(--yd, 0s); }
@keyframes haloBreathe { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes yaoShimmer { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mh-bagua .wheel, .mh-bagua .taiji, .mh-bagua .ticks, .mh-bagua .orbit, .mh-bagua .halo, .mh-bagua .yao { animation: none; } }
@keyframes baguaSpin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .mh-bagua { display: none; } .masthead .mh-row { gap: 0; } }
.masthead .seal-row { display: flex; justify-content: center; gap: 14px; margin-bottom: 18px; }
.masthead .seal-row span {
  width: 12px; height: 12px; background: var(--gold-light); transform: rotate(45deg); box-shadow: 0 0 0 3px rgba(224, 195, 131, 0.25);
}
.masthead h1 {
  display: flex; align-items: center; justify-content: center; gap: 0.16em;
  font-family: var(--font-shu);
  font-size: clamp(1.15rem, 3.8vw, 3.2rem);
  white-space: nowrap;
  margin: 0;
}
.masthead h1 .ch {
  display: inline-block;
  background-image: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, .9) 50%, transparent 58%), linear-gradient(180deg, #fff8ec 0%, #f3ddb0 38%, #d8b26a 66%, #f6e2b6 100%);
  background-repeat: no-repeat; background-size: 260% 100%, 100% 100%; background-position: 130% 0, 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .35));
  animation: chIn 0.8s calc(var(--i) * 0.09s) both cubic-bezier(.2, .75, .25, 1), titleSweep 7s ease-in-out infinite;
}
.masthead h1 .mh-gua { color: rgba(224, 195, 131, .55); font-size: 0.52em; animation: guaPulse 4s ease-in-out infinite; }
.masthead h1 .mh-gua.last { animation-delay: 2s; }
.masthead .mh-rule { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; }
.masthead .mh-rule i { height: 1px; width: clamp(56px, 12vw, 150px); background: linear-gradient(90deg, transparent, var(--gold)); transform-origin: right center; animation: ruleIn 0.9s 0.9s both var(--ease); }
.masthead .mh-rule i:last-child { background: linear-gradient(270deg, transparent, var(--gold)); transform-origin: left center; }
.masthead .mh-rule b { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 8px rgba(224, 195, 131, .7); animation: diamondPulse 3.2s ease-in-out infinite; }
@keyframes chIn { from { opacity: 0; transform: translateY(26px) rotate(5deg); filter: blur(6px) drop-shadow(0 4px 14px rgba(0, 0, 0, .35)); } to { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 4px 14px rgba(0, 0, 0, .35)); } }
@keyframes titleSweep { 0%, 52% { background-position: 130% 0, 0 0; } 74%, 100% { background-position: -30% 0, 0 0; } }
@keyframes guaPulse { 0%, 100% { opacity: .45; transform: scale(1); } 50% { opacity: .95; transform: scale(1.12); } }
@keyframes ruleIn { from { transform: scaleX(0); } }
@keyframes diamondPulse { 0%, 100% { transform: rotate(45deg) scale(1); opacity: .85; } 50% { transform: rotate(45deg) scale(1.35); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .masthead h1 .ch, .masthead h1 .mh-gua, .masthead .mh-rule i, .masthead .mh-rule b { animation: none; }
  .masthead h1 .ch { background-position: 0 0, 0 0; }
}
/* 书法体不能合成加粗(高分屏笔画粘连), 醒目度靠字号+提亮+阴影 */
.masthead .sub {
  margin-top: 12px; color: #f6e2b6; letter-spacing: 0.12em; text-indent: 0.12em; font-size: clamp(1.18rem, 0.95rem + 0.75vw, 1.45rem); line-height: 1.85; max-width: 72ch; margin-left: auto; margin-right: auto; font-family: var(--font-kai); text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
.masthead .en { margin-top: 6px; color: rgba(251, 245, 232, 0.78); font-size: clamp(0.88rem, 0.7rem + 0.55vw, 1.05rem); letter-spacing: 0.3em; text-transform: uppercase; }

/* ---------- 导航栏 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: linear-gradient(180deg, #7a120d 0%, var(--red-dark) 55%, #6f100c 100%);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s var(--ease);
}
.navbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(224, 195, 131, .5) 22%, rgba(224, 195, 131, .5) 78%, transparent); pointer-events: none; }
.navbar.is-stuck { box-shadow: 0 6px 22px rgba(0, 0, 0, 0.38); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; padding: 8px 24px; transition: min-height 0.25s var(--ease), padding 0.25s var(--ease); }
.navbar.is-stuck .navbar-inner { min-height: 52px; padding: 4px 24px; }
.navbar .logo { display: flex; align-items: center; gap: 10px; color: var(--paper-light); font-family: var(--font-shu); font-size: 1.55rem; letter-spacing: 0.06em; transition: color 0.25s; }
.navbar .logo:hover { color: #ffe9c4; }
.navbar .logo .mark { width: 34px; height: 34px; background: var(--paper-light); color: var(--red); display: grid; place-items: center; border-radius: 3px; font-size: 1.2rem; box-shadow: inset 0 0 0 2px rgba(176,35,28,0.3); }
.navbar .logo img.mark { width: 38px; height: 38px; object-fit: contain; animation: logoSpin 12s linear infinite; background: none; box-shadow: none; border-radius: 0; display: block; transition: width 0.25s, height 0.25s; filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
.navbar .logo:hover img.mark { animation-duration: 3s; }
.navbar.is-stuck .logo img.mark { width: 32px; height: 32px; }
.nav-menu { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; row-gap: 6px; flex: 1 1 0; min-width: 0; }
.nav-menu .nav-break { flex-basis: 100%; height: 0; padding: 0; margin: 0; }
.nav-menu a {
  color: #fff; padding: 8px 10px; font-size: 1.0625rem; letter-spacing: 0.08em; border-radius: var(--radius); position: relative; font-family: var(--font-nav); font-weight: 500; white-space: nowrap;
  background-color: transparent;
  transition: color 0.22s, background-color 0.22s;
}
.nav-menu a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--gold) 75%, transparent); transform: scaleX(0); transform-origin: center; transition: transform 0.28s var(--ease); }
.nav-menu a:hover { color: #ffedd2; background-color: rgba(255, 250, 240, 0.10); }
.nav-menu a:hover::after { transform: scaleX(1); }
.nav-menu a:active { background-color: rgba(255, 250, 240, 0.16); }
.nav-menu a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-menu a.active { color: #ffe1a6; }
.nav-menu a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(224, 195, 131, .45); color: var(--paper-light); width: 42px; height: 38px; border-radius: var(--radius); font-size: 1.2rem; cursor: pointer; transition: transform 0.3s var(--ease), background 0.25s, border-color 0.25s; }
.nav-toggle:hover { background: rgba(255, 250, 240, .12); border-color: rgba(224, 195, 131, .8); }
.nav-toggle[aria-expanded="true"] { transform: rotate(90deg); }
/* 宽屏给导航更多横向空间; 左 padding 补偿 (1400-1160)/2, 使 Logo 左缘仍与正文对齐 */
@media (min-width: 1500px) {
  .navbar .container { max-width: 1400px; padding-left: 144px; }
  /* 吸附态的 padding 简写会吃掉左补偿, 需同优先级再声明一次 */
  .navbar.is-stuck .navbar-inner { padding-left: 144px; }
  .nav-menu a { padding: 8px 14px; font-size: 1.125rem; }
  .nav-menu a::after { left: 14px; right: 14px; }
}
/* 1080-1200 窄桌面: 收紧单项宽度, 保证 9+9 两行不折出第三行 */
@media (min-width: 1081px) and (max-width: 1200px) {
  .nav-menu { gap: 4px; }
  .nav-menu a { padding: 8px 8px; font-size: 1.0625rem; letter-spacing: 0.06em; }
  .nav-menu a::after { left: 8px; right: 8px; }
}
/* 吸附态只压纵向, 横向内边距留给各档规则: 用 padding 简写会把横向拉回同一值并撑出第三行 */
@media (min-width: 1081px) {
  .navbar.is-stuck .nav-menu { row-gap: 4px; }
  .navbar.is-stuck .nav-menu a { padding-top: 5px; padding-bottom: 5px; }
}
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- 通用区块 ---------- */
.section { padding: 46px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 250, 240, 0.7), transparent); }
.section-red { background: linear-gradient(150deg, var(--red-deep), var(--red)); color: var(--paper-light); }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head .kicker { letter-spacing: 0.5em; text-indent: 0.5em; font-size: 0.78rem; color: var(--red); margin-bottom: 10px; }
.section-red .section-head .kicker { color: var(--gold-light); }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: 0.1em; color: var(--red-deep); }
.section-head h2.h2-slogan { font-size: clamp(1.05rem, 2.3vw, 1.6rem); letter-spacing: 0.16em; line-height: 1.9; font-weight: 600; }
.section-red .section-head h2 { color: var(--paper-light); }
.section-head .rule { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 300px; margin: 18px auto 0; color: var(--line-strong); }
.section-head .rule::before, .section-head .rule::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--red)); }
.section-head .rule::after { background: linear-gradient(90deg, var(--red), transparent); }
.section-red .section-head .rule::before { background: linear-gradient(90deg, transparent, var(--gold-light)); }
.section-red .section-head .rule::after { background: linear-gradient(90deg, var(--gold-light), transparent); }
.section-head .rule i { width: 9px; height: 9px; background: var(--red); transform: rotate(45deg); }
.section-red .section-head .rule i { background: var(--gold-light); }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius); cursor: pointer; font-family: var(--font-kai); font-size: 1rem; letter-spacing: 0.1em; border: 1px solid transparent; transition: all 0.3s var(--ease); }
.btn-red { background: var(--red); color: var(--paper-light); box-shadow: 0 6px 16px rgba(176,35,28,0.3); }
.btn-red:hover { background: var(--red-deep); color: #fff; transform: translateY(-2px); }
.btn-line { border-color: var(--red); color: var(--red); background: transparent; }
.btn-line:hover { background: var(--red); color: var(--paper-light); }
.btn-ghost-light { border-color: rgba(251,245,232,0.6); color: var(--paper-light); }
.btn-ghost-light:hover { background: var(--paper-light); color: var(--red); }

/* ---------- 师傅介绍 ---------- */
.master-grid { display: grid; grid-template-columns: 360px 1fr; gap: 52px; align-items: center; }
.master-photo { position: relative; }
.master-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lift); border: 6px solid var(--paper-card); outline: 1px solid var(--line-strong); }
.master-photo .stamp {
  position: absolute; right: -14px; bottom: 22px; background: var(--red); color: var(--paper-light); font-family: var(--font-shu); font-size: 1.4rem; padding: 10px 12px; border-radius: 3px; writing-mode: vertical-rl; letter-spacing: 0.2em; box-shadow: 0 6px 16px rgba(110,16,12,0.35);
}
.master-info .name { font-family: var(--font-shu); font-size: 2.2rem; color: var(--red-deep); letter-spacing: 0.08em; }
.master-info .title-line { color: var(--gold); letter-spacing: 0.14em; margin: 6px 0 18px; font-size: 0.98rem; }
.master-info p { color: var(--ink-soft); margin: 0 0 16px; text-align: justify; }
.master-info .quote { font-family: var(--font-kai); font-size: 1.2rem; color: var(--red); border-left: 3px solid var(--gold); padding-left: 16px; margin: 20px 0; }
.master-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.master-tags span { border: 1px solid var(--red); color: var(--red); padding: 5px 16px; border-radius: 999px; font-size: 0.86rem; letter-spacing: 0.06em; background: rgba(176,35,28,0.05); }

/* ---------- 文章卡片 ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card { background: var(--paper-card); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); padding: 26px 26px 22px; display: flex; flex-direction: column; transition: all 0.35s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.post-card .cat-line { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.post-card .tri-rings { position: relative; width: 20px; height: 20px; flex: none; }
.post-card .tri-rings::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px 2px rgba(255, 255, 255, .85); animation: triCore 2.4s ease-in-out infinite;
}
.post-card .tri-rings b {
  position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid; opacity: 0; transform: scale(.18);
  animation: triGlow 2.4s cubic-bezier(.2, .6, .4, 1) infinite;
}
.post-card .tri-rings b:nth-child(1) { border-color: #e0433a; box-shadow: 0 0 7px rgba(224, 67, 58, .75), inset 0 0 5px rgba(224, 67, 58, .5); }
.post-card .tri-rings b:nth-child(2) { border-color: #3a6fe0; box-shadow: 0 0 7px rgba(58, 111, 224, .75), inset 0 0 5px rgba(58, 111, 224, .5); animation-delay: .55s; }
.post-card .tri-rings b:nth-child(3) { border-color: #8a3ae0; box-shadow: 0 0 7px rgba(138, 58, 224, .75), inset 0 0 5px rgba(138, 58, 224, .5); animation-delay: 1.1s; }
@keyframes triGlow { 0% { opacity: 0; transform: scale(.18); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.08); } }
@keyframes triCore { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.5); opacity: 1; } }
.post-card .cat { display: inline-block; align-self: center; background: var(--red); color: var(--paper-light); font-family: var(--font-nav); font-weight: 500; font-size: 0.9rem; padding: 4px 14px; border-radius: 999px; letter-spacing: 0.08em; margin-bottom: 0; }
.post-card h3 { font-size: 1.22rem; margin-bottom: 10px; letter-spacing: 0.03em; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--red); }
.post-card p { color: var(--ink-faint); font-size: 0.94rem; margin: 0 0 18px; flex: 1; }
.post-card .meta { display: flex; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 12px; font-size: 0.8rem; color: var(--ink-faint); }
.post-card .meta .more { color: var(--red); }

/* ---------- 产品轮播(从右往左) ---------- */
.carousel { overflow: hidden; position: relative; padding: 6px 0; }
.carousel-track { display: flex; gap: 24px; width: max-content; will-change: transform; }
.carousel-item { width: 250px; flex: none; background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.carousel-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.carousel-item img { width: 100%; height: 200px; object-fit: cover; }
.carousel-item .ci-body { padding: 14px 16px 16px; }
.carousel-item .ci-name { font-family: var(--font-kai); font-size: 1.05rem; color: var(--ink); margin-bottom: 6px; }
.carousel-item .ci-price { color: var(--red); font-weight: 700; font-size: 1.1rem; }
.carousel-item .ci-price small { color: var(--ink-faint); font-weight: 400; font-size: 0.78rem; margin-left: 6px; }
.carousel-hint { text-align: center; margin-top: 12px; color: var(--ink-faint); font-size: 0.85rem; letter-spacing: 0.1em; }
.view-all { text-align: center; margin-top: 18px; }

/* ---------- 商品网格(图片+名称+价格) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all 0.35s var(--ease); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--red); }
.product-card .ph { position: relative; overflow: hidden; }
.product-card .ph img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.5s var(--ease); }
.product-card:hover .ph img { transform: scale(1.06); }
.product-card .ph .tag { position: absolute; top: 12px; left: 12px; background: var(--red); color: var(--paper-light); font-size: 0.72rem; padding: 3px 12px; border-radius: 999px; letter-spacing: 0.06em; }
.product-card .pb { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card .pname { font-family: var(--font-kai); font-size: 1.15rem; color: var(--ink); margin-bottom: 6px; }
.product-card .pdesc { color: var(--ink-faint); font-size: 0.88rem; margin-bottom: 14px; flex: 1; }
.product-card .prow { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 12px; }
.product-card .price { color: var(--red); font-size: 1.3rem; font-weight: 700; font-family: var(--font-kai); }
.product-card .price small { font-size: 0.8rem; }
.product-card .buy { font-size: 0.85rem; color: var(--red); border: 1px solid var(--red); padding: 5px 14px; border-radius: 999px; transition: all 0.25s var(--ease); }
.product-card .buy:hover { background: var(--red); color: var(--paper-light); }

/* ---------- 服务项目 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.service-card { background: rgba(255, 250, 240, 0.06); border: 1px solid rgba(251, 245, 232, 0.2); border-radius: var(--radius); padding: 30px 26px; transition: all 0.35s var(--ease); }
.service-card:hover { background: rgba(255, 250, 240, 0.12); transform: translateY(-5px); }
.service-card .ico { font-size: 2rem; color: var(--gold-light); margin-bottom: 14px; }
.service-card h3 { color: var(--paper-light); font-size: 1.25rem; margin-bottom: 10px; letter-spacing: 0.05em; }
.service-card p { color: rgba(251, 245, 232, 0.8); font-size: 0.93rem; margin: 0 0 14px; }
.service-card .fee { color: var(--gold-light); font-family: var(--font-kai); font-size: 1.05rem; }

/* ---------- 子页页头 ---------- */
.page-hero { background: linear-gradient(150deg, var(--red-deep), var(--red)); color: var(--paper-light); text-align: center; padding: 40px 24px; position: relative; overflow: hidden; }
.page-hero::after { content: "☯"; position: absolute; right: -30px; bottom: -60px; font-size: 220px; color: rgba(255,250,240,0.07); }
.page-hero .crumb { font-size: 0.82rem; letter-spacing: 0.2em; color: var(--gold-light); margin-bottom: 10px; }
.page-hero h1 { font-family: var(--font-shu); color: var(--paper-light); font-size: clamp(2rem, 5vw, 3rem); letter-spacing: 0.1em; }
.page-hero .desc { color: rgba(251,245,232,0.8); max-width: 62ch; margin: 14px auto 0; font-size: 0.98rem; }

/* ---------- 文章正文(子页) ---------- */
.article { max-width: 800px; margin: 0 auto; padding: 20px 24px 10px; }
.article-block { background: var(--paper-card); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 34px 36px; margin-bottom: 34px; box-shadow: var(--shadow); }
.article-block h2 { font-family: var(--font-kai); font-size: 1.6rem; color: var(--red-deep); margin-bottom: 6px; letter-spacing: 0.04em; }
.article-block .ameta { color: var(--ink-faint); font-size: 0.84rem; margin-bottom: 18px; display: flex; gap: 16px; flex-wrap: wrap; }
.article-block p { color: var(--ink-soft); margin: 0; text-align: justify; }
.article-block h3 { font-size: 1.2rem; color: var(--red); margin: 22px 0 10px; }
.article-block blockquote { margin: 20px 0; padding: 18px 24px; background: var(--red-tint); border-left: 4px solid var(--red); font-family: var(--font-kai); font-size: 1.15rem; color: var(--red-deep); border-radius: 0 var(--radius) var(--radius) 0; }
.article-block ul { padding-left: 22px; margin: 0; list-style: disc; color: var(--ink-soft); }
.article-block li { margin-bottom: 0; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.contact-item { text-align: center; padding: 30px 20px; background: var(--paper-card); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); transition: all 0.3s var(--ease); }
.contact-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.contact-item .ico { font-size: 1.9rem; color: var(--red); margin-bottom: 12px; }
.contact-item .k { font-size: 0.82rem; letter-spacing: 0.15em; color: var(--ink-faint); margin-bottom: 6px; }
.contact-item .v { font-family: var(--font-kai); font-size: 1.1rem; color: var(--ink); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--red-dark); color: rgba(251, 245, 232, 0.75); padding: 44px 0 30px; text-align: center; }
.site-footer .flogo { width: 68px; height: 68px; object-fit: contain; margin: 0 auto 12px; display: block; animation: logoSpin 16s linear infinite; }
.site-footer .fbrand { font-family: var(--font-shu); font-size: 1.6rem; color: var(--gold-light); letter-spacing: 0.12em; margin-bottom: 10px; }
.site-footer p { margin: 6px 0; font-size: 0.88rem; }
.site-footer a { color: rgba(251, 245, 232, 0.9); }
.site-footer .fnav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0; font-size: 0.9rem; }

/* ---------- 滚动揭示 ---------- */
.reveal.in { animation: fadeUp 0.7s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal.in { animation: none; } * { animation: none !important; } }

/* ---------- 文章列表(分类页) ---------- */
.list-wrap { max-width: 880px; margin: 0 auto; }
.list-item { display: block; background: var(--paper-card); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px; transition: all 0.3s var(--ease); position: relative; }
.list-item:hover { transform: translateX(6px); box-shadow: var(--shadow-lift); }
.list-item h3 { font-size: 1.3rem; color: var(--ink); margin-bottom: 8px; letter-spacing: 0.03em; }
.list-item:hover h3 { color: var(--red); }
.list-item .sum { color: var(--ink-faint); font-size: 0.95rem; margin: 0 0 12px; }
.list-item .lmeta { display: flex; gap: 16px; font-size: 0.8rem; color: var(--ink-faint); }
.list-item .lmeta .cat { color: var(--red); }
.list-item .arrow { position: absolute; right: 26px; top: 26px; color: var(--red); font-size: 1.1rem; }

/* ---------- 二维码 ---------- */
.qr-row { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; margin-top: 40px; }
.qr-card { text-align: center; }
.qr-card img { width: 150px; height: 150px; object-fit: contain; background: var(--paper-light); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); }
.qr-card .ql { margin-top: 12px; font-family: var(--font-kai); color: var(--ink); letter-spacing: 0.08em; }
.qr-card .qs { font-size: 0.78rem; color: var(--ink-faint); }

/* ---------- 商品详情 ---------- */
.pd-grid { display: grid; grid-template-columns: 460px 1fr; gap: 44px; align-items: start; max-width: 1000px; margin: 0 auto; }
.pd-img img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lift); }
.pd-info .pd-tag { display: inline-block; background: var(--red); color: var(--paper-light); font-size: 0.76rem; padding: 3px 14px; border-radius: 999px; margin-bottom: 14px; }
.pd-info h2 { font-family: var(--font-kai); font-size: 2rem; color: var(--ink); margin-bottom: 8px; }
.pd-price { font-family: var(--font-kai); font-size: 2.2rem; color: var(--red); margin: 10px 0 18px; }
.pd-price small { font-size: 1rem; }
.pd-desc { color: var(--ink-soft); margin-bottom: 20px; }
.pd-specs { border-top: 1px dashed var(--line); margin-bottom: 24px; }
.pd-specs div { display: flex; justify-content: space-between; padding: 10px 4px; border-bottom: 1px dashed var(--line); font-size: 0.92rem; }
.pd-specs .k { color: var(--ink-faint); }
.pd-specs .v { color: var(--ink); }
.pd-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.pd-body { max-width: 1000px; margin: 44px auto 0; }
.pd-body h3 { font-size: 1.25rem; color: var(--red-deep); margin: 26px 0 10px; }
.pd-body p { color: var(--ink-soft); margin: 0; text-align: justify; }
@media (max-width: 900px) {
  .pd-grid { grid-template-columns: 1fr; }
  /* 人才详情单列后照片只有 200px 宽, 文字整块居中成名片式才不显左坠 */
  .pd-talent .pd-info { text-align: center; }
  .pd-talent .pd-info h2 { font-size: 1.7rem; }
  .pd-talent .pd-tag { margin-bottom: 10px; }
  .pd-talent .pd-desc { margin-bottom: 14px; }
  .pd-talent .master-tags { justify-content: center; margin-top: 0; }
  .pd-talent .pd-actions { justify-content: center; }
}

/* ---------- 防复制 ---------- */
body { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }

/* ---------- 简介模块:左公告栏 + 右师傅简介 ---------- */
.intro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: stretch; min-height: 600px; }
.intro-grid > * { min-width: 0; }
.notice-board { position: relative; overflow: hidden; background: var(--paper-card); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); box-shadow: var(--shadow); }
/* 内容脱离文档流: 高度只听师傅简介栏的, 放不下的条目由 site.js 整条隐藏; 内边距必须放在这层, 绝对定位会吃掉父级 padding */
.notice-board .nb-inner { position: absolute; inset: 0; padding: 26px 28px; display: flex; flex-direction: column; }
.notice-board .nb-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); margin-bottom: 14px; }
.notice-board .nb-head .horn { color: var(--red); font-size: 1.3rem; }
.notice-board .nb-head h3 { font-size: 1.3rem; color: var(--red-deep); letter-spacing: 0.08em; }
.notice-board .nb-head .live { margin-left: auto; font-size: 0.72rem; color: var(--red); border: 1px solid var(--red); border-radius: 999px; padding: 2px 10px; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.notice-list { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.notice-list li { padding: 12px 4px; border-bottom: 1px dashed var(--line); display: flex; gap: 12px; align-items: baseline; }
.notice-list li:last-child { border-bottom: none; }
.notice-list .nd { flex: none; font-size: 0.78rem; color: var(--ink-faint); }
.notice-list .nt { color: var(--ink-soft); font-size: 0.95rem; transition: color 0.25s; }
.notice-list li:hover .nt { color: var(--red); }
.notice-list .tag-new { flex: none; background: var(--red); color: var(--paper-light); font-size: 0.66rem; border-radius: 3px; padding: 1px 6px; }

.master-card { background: var(--paper-card); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.master-card .mc-grid { display: grid; grid-template-columns: 210px 1fr; gap: 26px; align-items: start; }
.master-card .mc-photo { position: relative; overflow: hidden; border-radius: var(--radius); }
.master-card .mc-photo img { width: 100%; height: 260px; object-fit: cover; object-position: 50% 30%; }
.master-card .mc-photo .stamp { position: absolute; right: 8px; bottom: 8px; background: var(--red); color: var(--paper-light); font-family: var(--font-shu); font-size: 1rem; padding: 6px 8px; border-radius: 3px; writing-mode: vertical-rl; letter-spacing: 0.2em; }
.master-card .mc-body .name { font-family: var(--font-shu); font-size: 1.8rem; color: var(--red-deep); }
.master-card .mc-body .title-line { color: var(--gold); font-size: 0.9rem; letter-spacing: 0.1em; margin: 4px 0 12px; }
.master-card .mc-body p { color: var(--ink-soft); font-size: 0.94rem; margin: 0 0 12px; }
/* 主页简介只显示 6 行, 完整内容在师傅详情页 */
.master-card .mc-body .mc-sum { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.master-card .mc-body .quote { font-family: var(--font-kai); color: var(--red); border-left: 3px solid var(--gold); padding-left: 12px; margin: 12px 0; }
.master-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.master-tags span { border: 1px solid var(--red); color: var(--red); padding: 3px 12px; border-radius: 999px; font-size: 0.8rem; background: rgba(176,35,28,0.05); }

/* ---------- 证书轮播 ---------- */
.cert-item { width: 300px; flex: none; background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cert-item img { width: 100%; height: 210px; object-fit: cover; }

/* ---------- 活动画廊(ken-burns 动态图) ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 210px; object-fit: cover; animation: kenburns 16s ease-in-out infinite alternate; }
.gallery-item:nth-child(2n) img { animation-delay: -6s; }
.gallery-item:nth-child(3n) img { animation-delay: -11s; }
@keyframes kenburns { from { transform: scale(1) translate(0,0); } to { transform: scale(1.14) translate(2%, -2%); } }
.gallery-item .cap { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(40,10,8,0.8)); color: #fff; padding: 30px 16px 12px; font-family: var(--font-kai); letter-spacing: 0.06em; }

/* ---------- 预测师人才库 ---------- */
.talent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 20px; max-width: 1040px; margin: 0 auto; }
.talent-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; transition: all 0.35s var(--ease); }
.talent-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--red); }
/* 照片框用固定比例随卡片宽缩放, 避免大屏卡片被拉高 */
.talent-card .tp { overflow: hidden; aspect-ratio: 4 / 5; }
.talent-card .tp img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; transition: transform 0.5s var(--ease); }
.talent-card:hover .tp img { transform: scale(1.06); }
.talent-card .tb { padding: 14px 14px 16px; }
.talent-card .t-name { font-family: var(--font-kai); font-size: 1.08rem; color: var(--ink); }
.talent-card .t-title { color: var(--red); font-size: 0.78rem; letter-spacing: 0.06em; margin: 3px 0 6px; }
.talent-card .t-desc { color: var(--ink-faint); font-size: 0.8rem; line-height: 1.6; }

/* ---------- 两侧对联 ---------- */
.couplet { position: fixed; top: 50%; transform: translateY(-50%); z-index: 9999; display: none; }
.couplet.right { right: 16px; animation: cpInR 0.9s cubic-bezier(.2, .75, .25, 1) both; }
.couplet.left { left: 16px; animation: cpInL 0.9s cubic-bezier(.2, .75, .25, 1) both; }
@media (min-width: 1280px) { .couplet { display: block; } }
.cp-float { display: flex; animation: cpFloat 6s ease-in-out infinite; }
.couplet.left .cp-float { animation-delay: -3s; }
.cp-body {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px clamp(17px, 1.6vw, 26px); border-radius: 4px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 5px), linear-gradient(180deg, #5e0d09, #8f1a14 18%, #7a120d 82%, #4d0a07);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(224, 195, 131, 0.6), inset 0 0 22px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.couplet:hover .cp-body { transform: scale(1.045); box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(246, 226, 182, 0.9), inset 0 0 22px rgba(0, 0, 0, 0.35), 0 0 26px rgba(216, 178, 106, 0.4); }
.cp-body::before { content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(246, 226, 182, 0.35); border-radius: 3px; pointer-events: none; }
.cp-body::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(180deg, transparent 32%, rgba(255, 240, 210, 0.18) 50%, transparent 68%); background-size: 100% 260%; background-repeat: no-repeat; background-position: 0 -130%; animation: cpSheen 6s ease-in-out infinite; pointer-events: none; }
.cp-body i {
  font-style: normal; font-family: var(--font-shu); font-size: clamp(1.6rem, 1.25vw + 0.9rem, 1.85rem); line-height: 1;
  background: linear-gradient(180deg, #fff6dd, #f3ddb0 40%, #dcb26a 72%, #fff0c8); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: cpChar 0.5s calc(var(--i) * 0.06s + 0.2s) both cubic-bezier(.2, .75, .25, 1), cpGlow 4.5s calc(var(--i) * 0.28s + 1.2s) ease-in-out infinite;
}
/* 矮屏(如 1366x768)视口仅约 600px, 加宽后的 596px 总高会被上下裁切, 此档收回 487px */
@media (max-height: 760px) {
  .cp-body { padding: 18px clamp(15px, 1.4vw, 22px); gap: 8px; }
  .cp-body i { font-size: 1.55rem; }
}
/* 1280-1359 窄桌面: 正文文字距视口边缘仅约 79px, 面板收到 58px 宽并贴边 10px 才不压字 */
@media (min-width: 1280px) and (max-width: 1359px) {
  .couplet.left { left: 10px; }
  .couplet.right { right: 10px; }
  .cp-body { padding: 22px 16px; gap: 8px; }
  .cp-body i { font-size: 1.6rem; }
}
@keyframes cpInR { from { opacity: 0; transform: translate(30px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
@keyframes cpInL { from { opacity: 0; transform: translate(-30px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
@keyframes cpFloat { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }
@keyframes cpChar { from { opacity: 0; transform: translateY(-10px) scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes cpGlow { 0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 220, 150, 0.35)); } 50% { filter: drop-shadow(0 0 11px rgba(255, 236, 200, 0.85)); } }
@keyframes cpSheen { 0%, 55% { background-position: 0 -130%; } 85%, 100% { background-position: 0 230%; } }

/* ---------- 动态后天八卦 ---------- */
.bagua-stage { display: grid; place-items: center; padding: 20px 0; }
.bagua { position: relative; width: 340px; height: 340px; }
.bagua .ring, .bagua .ring2 { position: absolute; border-radius: 50%; }
.bagua .ring { inset: 0; border: 2px dashed rgba(176,35,28,0.5); animation: spin 46s linear infinite; }
.bagua .ring2 { inset: 34px; border: 1px solid rgba(201,162,74,0.6); animation: spinRev 30s linear infinite; }
.bagua .gua { position: absolute; left: 50%; top: 50%; font-size: 2.1rem; color: var(--red); line-height: 1; text-shadow: 0 0 14px rgba(176,35,28,0.35); transform: translate(-50%,-50%) rotate(var(--a)) translateY(-136px) rotate(calc(-1 * var(--a))); animation: guaPulse 3.2s ease-in-out infinite; animation-delay: var(--d); }
@keyframes guaPulse { 0%,100% { opacity: 0.75; } 50% { opacity: 1; text-shadow: 0 0 22px rgba(176,35,28,0.6); } }
.bagua .core { position: absolute; inset: 96px; animation: spin 24s linear infinite; filter: drop-shadow(0 0 18px rgba(176,35,28,0.35)); }
.bagua .core svg { width: 100%; height: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinRev { to { transform: rotate(-360deg); } }
.bagua-note { text-align: center; color: var(--ink-faint); font-size: 0.9rem; margin-top: 18px; letter-spacing: 0.08em; }

/* ---------- 联系模块(重排) ---------- */
.contact-panel { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; background: var(--paper-card); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-lift); }
.c-info h3 { font-size: 1.5rem; color: var(--red-deep); margin-bottom: 8px; letter-spacing: 0.06em; }
.c-info .c-sub { color: var(--ink-faint); font-size: 0.92rem; margin-bottom: 22px; }
.c-rows { list-style: none; margin: 0; padding: 0; }
.c-rows li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.c-rows li:last-child { border-bottom: none; }
.c-rows .ci { flex: none; width: 42px; height: 42px; display: grid; place-items: center; background: var(--red-tint); color: var(--red); border-radius: 50%; font-size: 1.15rem; }
.c-rows .ck { font-size: 0.8rem; color: var(--ink-faint); letter-spacing: 0.1em; }
.c-rows .cv { font-family: var(--font-kai); font-size: 1.08rem; color: var(--ink); }
.c-qr { display: flex; gap: 26px; justify-content: center; align-items: flex-start; align-self: center; }
.c-qr .qr-card img { width: 160px; height: 160px; }

/* ---------- 分页 ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pagination button { min-width: 40px; height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); background: var(--paper-card); color: var(--ink-soft); font-family: var(--font-kai); font-size: 0.95rem; border-radius: var(--radius); cursor: pointer; transition: all 0.25s var(--ease); }
.pagination button:hover { border-color: var(--red); color: var(--red); }
.pagination button.active { background: var(--red); border-color: var(--red); color: var(--paper-light); }
.pagination button[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ---------- 心法横幅(最新文章标题下: 无缝滚动 + 流光 + 转太极 + 掠光) ---------- */
.motto-banner { position: relative; overflow: hidden; margin: 20px auto 28px; max-width: 900px; padding: 14px 0; border-top: 1px solid rgba(176, 35, 28, .3); border-bottom: 1px solid rgba(176, 35, 28, .3); background: linear-gradient(90deg, rgba(176, 35, 28, 0) 0%, rgba(176, 35, 28, .1) 14%, rgba(140, 23, 18, .13) 50%, rgba(176, 35, 28, .1) 86%, rgba(176, 35, 28, 0) 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%); }
.motto-banner::before, .motto-banner::after { content: ""; position: absolute; left: 6%; right: 6%; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 160, 90, .55) 30%, rgba(201, 160, 90, .55) 70%, transparent); }
.motto-banner::before { top: 3px; }
.motto-banner::after { bottom: 3px; }
.motto-track { display: flex; width: max-content; animation: mottoScroll 34s linear infinite; }
.motto-banner:hover .motto-track { animation-play-state: paused; }
/* 渐变以深红为主体, 金色只留 10% 窄高光带: 原金红对半时约一半笔画落在浅底上看不清 */
.motto-track span { white-space: nowrap; padding-right: 64px; font-family: var(--font-shu); font-size: clamp(1.18rem, 1rem + 0.5vw, 1.4rem); letter-spacing: .14em; background: linear-gradient(100deg, #6e100c 0%, #8c1712 30%, #a51f18 45%, #e8c07a 50%, #a51f18 55%, #8c1712 70%, #6e100c 100%); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: mottoShine 7s linear infinite; }
.motto-track i { font-style: normal; display: inline-block; margin-left: 64px; color: var(--gold); text-shadow: 0 0 8px rgba(201, 160, 90, .5); animation: mottoSpin 9s linear infinite; }
.motto-glare { position: absolute; top: 0; bottom: 0; left: -180px; width: 130px; background: linear-gradient(100deg, transparent, rgba(255, 248, 235, .55), transparent); transform: skewX(-18deg); animation: mottoGlare 6s ease-in-out infinite; pointer-events: none; }
@keyframes mottoScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mottoShine { from { background-position: 0% 0; } to { background-position: 240% 0; } }
@keyframes mottoSpin { to { transform: rotate(360deg); } }
@keyframes mottoGlare { 0% { left: -180px; opacity: 0; } 10% { opacity: 1; } 42% { left: 104%; opacity: 0; } 100% { left: 104%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .motto-track, .motto-track span, .motto-track i, .motto-glare { animation: none; } }
.motto-banner.mini { margin: 0 0 16px; max-width: none; padding: 11px 0; }
.motto-banner.mini .motto-track span { font-size: 1.15rem; letter-spacing: .12em; padding-right: 48px; }
.motto-banner.mini .motto-track i { margin-left: 48px; font-size: 0.98rem; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .master-grid { grid-template-columns: 1fr; gap: 34px; }
  .master-photo { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-menu { position: absolute; top: 58px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--red-dark); max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); box-shadow: 0 12px 24px rgba(0,0,0,0.3); }
  .nav-menu.open { max-height: min(72vh, 620px); overflow-y: auto; }
  .nav-menu a { padding: 14px 24px; border-radius: 0; }
  .section { padding: 40px 0; }
  .article-block { padding: 26px 22px; }
  /* 文章详情页窄屏去掉外层 24px 内边距, 正文宽度对齐著作详情页 */
  .article.article-detail { padding-left: 0; padding-right: 0; }
}

/* ---------- 新增组件响应式 ---------- */
@media (max-width: 980px) {
  .intro-grid { grid-template-columns: 1fr; min-height: 0; }
  .notice-board { height: 620px; }
  .master-card .mc-grid { grid-template-columns: 1fr; }
  .master-card .mc-photo img { height: 300px; }
  .contact-panel { grid-template-columns: 1fr; padding: 30px 24px; }
  .c-qr { flex-wrap: wrap; }
  .bagua { width: 280px; height: 280px; }
  .bagua .gua { transform: translate(-50%,-50%) rotate(var(--a)) translateY(-110px) rotate(calc(-1 * var(--a))); }
  .bagua .core { inset: 78px; }
}

/* ---------- 人才轮播项 / 下载卡 ---------- */
.carousel-item.talent { width: 150px; }
/* 头像为 3:4 竖图, 120px 只露到下巴线以上; 170px 保证头肩完整不被切 */
.carousel-item.talent img { height: 170px; object-position: 50% 8%; }
.carousel-item.talent .ci-body { text-align: center; padding: 10px 8px 12px; }
.carousel-item.talent .ci-name { margin-bottom: 2px; }
.carousel-item.talent .ci-sub { color: var(--red); font-size: 0.8rem; letter-spacing: 0.06em; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.dl-card { background: var(--paper-card); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.dl-card h3 { font-size: 1.3rem; color: var(--ink); margin-bottom: 8px; }
.dl-card .dl-desc { color: var(--ink-faint); font-size: 0.92rem; flex: 1; margin-bottom: 14px; }
.dl-card .dl-meta { display: flex; gap: 16px; font-size: 0.8rem; color: var(--ink-faint); border-top: 1px dashed var(--line); padding-top: 12px; margin-bottom: 16px; }

/* ---------- 师傅卡可点击 ---------- */
.master-card a.mc-photo { display: block; }
.master-card .mc-body .name a { color: inherit; }
.master-card .mc-body .name a:hover { color: var(--red); }

/* ---------- logo 顺时针旋转 ---------- */
@keyframes logoSpin { to { transform: rotate(360deg); } }

/* ---------- 自适应优化 ---------- */
html, body { overflow-x: clip; }
@media (max-width: 1279px) {
  .navbar .logo { font-size: 1.3rem; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-menu { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--red-dark); max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); box-shadow: 0 12px 24px rgba(0,0,0,0.3); }
  .nav-menu.open { max-height: min(72vh, 620px); overflow-y: auto; }
  .nav-menu.open li { animation: navIn 0.32s var(--ease) both; }
  .nav-menu.open li:nth-child(2) { animation-delay: 0.04s; }
  .nav-menu.open li:nth-child(3) { animation-delay: 0.08s; }
  .nav-menu.open li:nth-child(4) { animation-delay: 0.12s; }
  .nav-menu.open li:nth-child(5) { animation-delay: 0.16s; }
  .nav-menu.open li:nth-child(6) { animation-delay: 0.2s; }
  .nav-menu.open li:nth-child(7) { animation-delay: 0.24s; }
  .nav-menu.open li:nth-child(8) { animation-delay: 0.28s; }
  .nav-menu.open li:nth-child(n+9) { animation-delay: 0.32s; }
  .nav-menu a { padding: 13px 24px; border-radius: 0; font-size: 1.08rem; }
  .nav-menu a::after { display: none; }
  .nav-menu a.active { box-shadow: inset 3px 0 0 var(--gold); background: rgba(224, 195, 131, .12); }
  .nav-menu .nav-break { display: none; }
}
@media (max-width: 600px) {
  .masthead h1 { gap: 0.08em; }
  /* 窄屏: 标语过长会折成多行, 滚动条也要留出可见字数, 字号各收一档 */
  .masthead .sub { font-size: 1.06rem; letter-spacing: 0.08em; line-height: 1.8; }
  .masthead .en { letter-spacing: 0.22em; }
  .motto-track span { font-size: 1.12rem; letter-spacing: .1em; padding-right: 44px; }
  .motto-track i { margin-left: 44px; }
  .contact-panel { padding: 24px 18px; }
  .c-qr { gap: 18px; }
  .c-qr .qr-card img { width: 130px; height: 130px; }
  .pd-grid { gap: 24px; }
  .article-block { padding: 22px 18px; }
  /* 人才库列表手机端两列名片式排布 */
  .talent-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .talent-card .tb { padding: 12px 10px 14px; }
  .talent-card .t-name { font-size: 1rem; }
  .talent-card .t-desc { display: none; }
}

/* ---------- 人才证件照尺寸 / 备案 ---------- */
.talent-photo img { width: 200px; height: 268px; object-fit: cover; object-position: top; margin: 0 auto; }
.site-footer .beian { font-size: 0.8rem; color: rgba(251,245,232,0.55); margin-top: 10px; }
.site-footer .beian a { color: inherit; text-decoration: underline; }
.site-footer .visit-total { font-size: 0.8rem; color: rgba(251,245,232,0.55); }
.site-footer .vt-num { color: var(--gold-light); font-weight: 600; letter-spacing: 0.05em; }

/* ---------- 企业活动轮播项 ---------- */
.carousel-item.act { width: 300px; position: relative; overflow: hidden; }
.carousel-item.act img { width: 100%; height: 200px; object-fit: cover; animation: kenburns 16s ease-in-out infinite alternate; }
.carousel-item.act .cap { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(40,10,8,0.8)); color: #fff; padding: 26px 14px 10px; font-family: var(--font-kai); letter-spacing: 0.06em; }

/* ---------- 背景音乐开关 ---------- */
.music-btn { position: fixed; right: 22px; bottom: 22px; z-index: 9998; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(224,195,131,0.5); background: linear-gradient(150deg, var(--red-deep), var(--red)); color: var(--gold-light); font-size: 1.35rem; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,0.3); display: grid; place-items: center; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.music-btn:hover { transform: scale(1.08); }
.music-btn .disc { position: absolute; inset: 5px; border-radius: 50%; border: 2px dashed rgba(224,195,131,0.55); }
.music-btn.playing .disc { animation: logoSpin 4s linear infinite; }
.music-btn .m-ico { position: relative; line-height: 1; }
.music-btn:not(.playing) { opacity: 0.82; }
.music-btn:not(.playing) .m-ico { opacity: 0.6; }

/* ---------- 收徒培训 ---------- */
.train-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.train-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }
.train-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--red); }
.train-card .tc-img { position: relative; overflow: hidden; }
.train-card .tc-img img { width: 100%; height: 190px; object-fit: cover; transition: transform 0.5s var(--ease); }
.train-card:hover .tc-img img { transform: scale(1.06); }
.train-card .tc-quota { position: absolute; top: 12px; right: 12px; background: rgba(110, 16, 12, 0.88); color: var(--gold-light); font-size: 0.76rem; padding: 4px 12px; border-radius: 999px; letter-spacing: 0.06em; }
.train-card .tc-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.train-card h3 { font-size: 1.28rem; margin-bottom: 10px; letter-spacing: 0.04em; }
.train-card .tc-cohort { color: var(--red); font-size: 0.9rem; margin-bottom: 12px; font-family: var(--font-kai); }
.train-card .tc-cohort::before { content: "◷ "; }
.train-card .tc-intro { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 16px; flex: 1; text-align: justify; }
.train-card .tc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.train-card .tc-tags span { font-size: 0.78rem; color: var(--red-deep); background: var(--red-tint); border: 1px solid rgba(176, 35, 28, 0.22); padding: 2px 10px; border-radius: 999px; }
.train-card .tc-foot { border-top: 1px dashed var(--line); padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
a.train-card { color: inherit; }
a.train-card:hover { color: inherit; }
.train-card .tc-go { color: var(--red); font-family: var(--font-kai); letter-spacing: 0.06em; }
a.train-card:hover .tc-go { color: var(--red-light); }
.train-card .tc-fee { font-family: var(--font-kai); color: var(--red); font-size: 1.1rem; }
.train-card .tc-fee small { font-size: 0.78rem; color: var(--ink-faint); font-family: var(--font-song); }

/* ---------- 专著 ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px 22px; }
.book-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.book-cover { position: relative; width: 176px; height: 246px; border-radius: 2px 6px 6px 2px; background: linear-gradient(150deg, #fffaf0, #f0e1c3); border: 1px solid var(--line-strong); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.book-card:hover .book-cover { transform: translateY(-8px) rotate(-1.2deg); box-shadow: var(--shadow-lift); }
.book-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: linear-gradient(90deg, var(--red-dark), var(--red)); }
.book-cover::after { content: ""; position: absolute; inset: 9px 9px 9px 19px; border: 1px solid rgba(176, 35, 28, 0.26); pointer-events: none; }
.book-cover .bc-main { position: absolute; inset: 22px 18px 56px 28px; display: flex; flex-direction: row-reverse; align-items: flex-start; justify-content: center; gap: 12px; }
.book-cover .bc-title { writing-mode: vertical-rl; font-family: var(--font-shu); font-size: 1.5rem; letter-spacing: 0.18em; color: var(--red-deep); line-height: 1.4; }
.book-cover .bc-author { writing-mode: vertical-rl; font-family: var(--font-kai); font-size: 0.84rem; letter-spacing: 0.12em; color: var(--ink-soft); }
.book-cover .bc-seal { position: absolute; right: 16px; bottom: 14px; width: 36px; height: 36px; border: 2px solid var(--red); color: var(--red); border-radius: 3px; display: grid; place-items: center; font-family: var(--font-shu); font-size: 0.78rem; line-height: 1.1; transform: rotate(-6deg); opacity: 0.82; }
.book-card .bk-body { margin-top: 16px; max-width: 250px; }
.book-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.book-card .bk-meta { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 8px; }
.book-card .bk-intro { font-size: 0.86rem; color: var(--ink-soft); text-align: justify; }

/* ---------- 收费明细(后台富文本表格直接渲染) ---------- */
.fee-rich { max-width: 960px; margin: 0 auto; background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 26px 30px; overflow-x: auto; }
.fee-rich table { width: 100%; border-collapse: collapse; min-width: 560px; table-layout: fixed; }
.fee-rich th, .fee-rich td { border: 1px solid var(--line-strong); padding: 10px 14px; font-size: 0.94rem; text-align: left; }
.fee-rich th { background: linear-gradient(180deg, var(--red), var(--red-deep)); color: var(--paper-light); font-family: var(--font-kai); letter-spacing: 0.08em; border-color: var(--red-deep); white-space: nowrap; }
.fee-rich tbody tr:nth-child(even) td { background: rgba(246, 236, 217, 0.5); }
.fee-rich td:first-child:not([colspan]) { font-family: var(--font-kai); color: var(--red-deep); white-space: nowrap; }
/* 备注列是长段落: 禁换行会把表格撑到数千像素宽, 只保留配色不锁行 */
.fee-rich td:last-child { color: var(--red); font-weight: 700; font-family: var(--font-kai); }
.fee-rich td { word-break: break-word; }
.fee-rich p { color: var(--ink-soft); margin: 0; }
.load-fail { padding: 40px 0; text-align: center; color: var(--red); font-size: 0.92rem; letter-spacing: 0.08em; }
@media (max-width: 760px) { #posts .post-grid .post-card:nth-child(n+7) { display: none; } }

/* ---------- 摘要定行截断(超出省略号, 保持模块高度一致) ---------- */
.cl2, .cl3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.cl2 { -webkit-line-clamp: 2; }
.cl3 { -webkit-line-clamp: 3; }

/* ---------- 咨询弹窗(微信二维码) ---------- */
.consult-modal { position: fixed; inset: 0; z-index: 9990; display: none; }
.consult-modal.open { display: block; }
.consult-modal .cm-mask { position: absolute; inset: 0; background: rgba(20, 8, 6, 0.62); }
.consult-modal .cm-box { position: relative; margin: 9vh auto 0; max-width: 560px; width: calc(100% - 40px); background: var(--paper-light); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: 30px 26px 26px; text-align: center; animation: cmIn 0.3s var(--ease); }
@keyframes cmIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.consult-modal .cm-close { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--ink-faint); cursor: pointer; padding: 4px; }
.consult-modal .cm-close:hover { color: var(--red); }
.consult-modal .cm-title { font-family: var(--font-kai); font-size: 1.3rem; color: var(--red-deep); letter-spacing: 0.08em; margin: 0 0 6px; }
.consult-modal .cm-sub { font-size: 0.85rem; color: var(--ink-faint); margin: 0 0 18px; }
.consult-modal .c-qr { margin-top: 0; gap: 26px; }

/* ---------- 整体视觉提亮(配色 / 交互统一) ---------- */
::selection { background: rgba(176, 35, 28, 0.88); color: #fbf5e8; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
body::-webkit-scrollbar { width: 10px; height: 10px; }
body::-webkit-scrollbar-track { background: #efe4cd; }
body::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--red-light), var(--red-deep)); border-radius: 8px; border: 2px solid #efe4cd; }
body::-webkit-scrollbar-thumb:hover { background: var(--red-deep); }
.section-alt { background: radial-gradient(60% 42% at 50% 0%, rgba(201, 162, 74, 0.07), transparent 70%), linear-gradient(180deg, transparent, rgba(255, 250, 240, 0.7), transparent); }
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 248, 235, 0.35), transparent); transform: skewX(-18deg); transition: left 0.55s var(--ease); pointer-events: none; }
.btn:hover::after { left: 125%; }
.btn:active { transform: translateY(0) scale(0.97); }
.dl-card { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }
.dl-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.site-footer { position: relative; background: linear-gradient(180deg, #7a120d, var(--red-dark) 40%, #560b08); }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-light) 30%, var(--gold-light) 70%, transparent); opacity: 0.8; }
.site-footer .fnav a { position: relative; }
.site-footer .fnav a:hover { color: var(--gold-light); }
.site-footer .fnav a::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -2px; height: 1px; background: var(--gold-light); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.site-footer .fnav a:hover::after { transform: scaleX(1); }
.article-block a { position: relative; }
.article-block a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.article-block a:hover::after { transform: scaleX(1); }

/* ---------- 轮播拖拽浏览(2026-10-01) ---------- */
.carousel { cursor: grab; touch-action: pan-y; }
.carousel.dragging { cursor: grabbing; }
.carousel.dragging .carousel-item { transition: none; }
.carousel img, .carousel .bc-mini { -webkit-user-drag: none; user-select: none; }

/* 著作轮播卡 */
.carousel-item.book, .carousel-item.baby { width: 190px; text-align: center; }
.carousel-item.book img { height: 240px; }
.carousel-item.book .bc-mini { position: relative; display: flex; flex-direction: row-reverse; align-items: flex-start; justify-content: center; gap: 8px; width: 100%; height: 240px; box-sizing: border-box; padding: 20px 14px 20px 22px; background: linear-gradient(150deg, #fffaf0, #f0e1c3); border-bottom: 1px solid var(--line-strong); }
.carousel-item.book .bc-mini::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(90deg, var(--red-dark), var(--red)); }
.carousel-item.book .bc-mini .bc-title { writing-mode: vertical-rl; font-family: var(--font-shu); font-size: 1.22rem; letter-spacing: 0.16em; color: var(--red-deep); line-height: 1.35; }
.carousel-item.book .bc-mini .bc-author { writing-mode: vertical-rl; font-family: var(--font-kai); font-size: 0.76rem; letter-spacing: 0.1em; color: var(--ink-soft); }

/* 宝宝起名案例轮播卡 */
.carousel-item.baby img { height: 190px; object-position: top; }
.carousel-item.baby .baby-ph { display: grid; place-items: center; width: 100%; height: 190px; font-family: var(--font-shu); font-size: 3.4rem; color: var(--red); background: radial-gradient(circle at 50% 34%, rgba(176,35,28,.12), rgba(176,35,28,.03) 62%), linear-gradient(150deg, #fffaf0, #f0e1c3); border-bottom: 1px solid var(--line-strong); }
.carousel-item.book .ci-name, .carousel-item.baby .ci-name { font-weight: 600; }
.carousel-item.baby .ci-sub { color: var(--ink-faint); font-size: 0.78rem; }

/* ---------- 专著列表卡片可点击 ---------- */
a.book-card { color: inherit; text-decoration: none; }
.book-card .bk-more { display: inline-block; margin-top: 10px; font-size: 0.84rem; color: var(--red); letter-spacing: 0.06em; opacity: 0; transform: translateY(4px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.book-card:hover .bk-more { opacity: 1; transform: none; }

/* ---------- 著作详情页(单栏, 无封面) ---------- */
.bd-single { max-width: 860px; margin: 0 auto; }
.bd-intro { margin-top: 16px; color: var(--ink-soft); line-height: 2; text-align: justify; }
.carousel-empty { width: 100%; padding: 34px 20px; text-align: center; color: var(--ink-faint); font-size: 0.92rem; letter-spacing: 0.04em; }

/* ---------- 富文本对齐修正:img 为块级,text-align 不生效,转 auto 外边距 ---------- */
[style*="text-align: center"] > img, [style*="text-align:center"] > img { margin-left: auto; margin-right: auto; }
[style*="text-align: right"] > img, [style*="text-align:right"] > img { margin-left: auto; margin-right: 0; }
[style*="text-align: left"] > img, [style*="text-align:left"] > img { margin-left: 0; margin-right: auto; }

/* ---------- 在线八字排盘 ---------- */
.bazi-panel { max-width: 760px; margin: 0 auto; background: var(--paper-card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(44, 35, 32, 0.08); padding: 30px 34px 26px; }
.bz-head { text-align: center; margin-bottom: 20px; }
.bz-head h2 { color: var(--red-deep); font-size: 1.4rem; letter-spacing: 0.08em; }
.bz-head p { color: var(--ink-faint); font-size: 0.88rem; margin-top: 6px; }
.bz-row { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.bz-label { flex: 0 0 76px; color: var(--ink-soft); font-size: 0.92rem; letter-spacing: 0.1em; }
.bz-input { flex: 1; min-width: 200px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 0.95rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.bz-input:focus { border-color: var(--red-light); box-shadow: 0 0 0 3px var(--red-tint); }
.bz-radios { display: flex; gap: 10px; flex-wrap: wrap; }
.bz-radio { position: relative; cursor: pointer; }
.bz-radio input { position: absolute; opacity: 0; pointer-events: none; }
.bz-radio span { display: inline-block; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft); font-size: 0.9rem; transition: all 0.2s; }
.bz-radio:hover span { border-color: var(--red-light); color: var(--red); }
.bz-radio.on span { background: linear-gradient(135deg, var(--red), var(--red-deep)); border-color: var(--red-deep); color: #fff7ec; box-shadow: 0 4px 10px rgba(140, 23, 18, 0.28); }
.bz-selects { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.bz-selects select { flex: 1; min-width: 84px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 0.92rem; outline: none; cursor: pointer; transition: border-color 0.2s; }
.bz-selects select:focus { border-color: var(--red-light); }
.bz-actions { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.bz-actions .btn { min-width: 160px; }
.bz-actions .btn:disabled { opacity: 0.6; cursor: wait; }
.bz-tip { color: var(--red); font-size: 0.86rem; }
.bz-result { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.bz-res-head h3 { text-align: center; color: var(--red-deep); font-size: 1.02rem; letter-spacing: 0.05em; }
.bz-raw { margin-top: 12px; background: var(--paper-light); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 0.8rem; line-height: 1.55; color: var(--ink-soft); white-space: pre-wrap; word-break: break-all; max-height: 480px; overflow: auto; }
@media (max-width: 640px) {
  .bazi-panel { padding: 22px 16px 18px; }
  .bz-label { flex-basis: 100%; padding-bottom: 2px; }
  .bz-selects select { min-width: calc(33% - 8px); }
}

/* ---------- 命盘版式(等宽文本框) ---------- */
.bz-chart { margin-top: 18px; background: var(--paper-light); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 12px; }
.bc-tools { text-align: right; margin: 0 0 8px; }
.bc-copy { background: none; border: 1px solid var(--red); color: var(--red); border-radius: 999px; padding: 4px 16px; font-size: 0.82rem; letter-spacing: 0.08em; cursor: pointer; transition: all 0.2s; }
.bc-copy:hover { background: var(--red); color: #fff7ec; }
.bc-copytip { color: var(--red); font-size: 0.82rem; margin-left: 8px; }
/* NSimSun: 汉字全角、ASCII 半角等宽, 保证命盘文本列对齐 */
.bc-text { display: block; width: 100%; box-sizing: border-box; background: #fffdf4; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-family: "NSimSun", "SimSun", "Courier New", monospace; font-size: 14px; line-height: 1.8; color: var(--ink-soft); white-space: pre; overflow-x: auto; resize: vertical; outline: none; user-select: text; -webkit-user-select: text; }
.bc-text:focus { border-color: var(--red-light); }
@media (max-width: 640px) {
  .bz-chart { padding: 10px 8px 8px; }
  .bc-text { font-size: 12px; padding: 8px 10px; }
}

/* ---------- 富文本(后台 wangEditor)前台还原 ----------
   编辑器内: 段落/列表 margin 0, 行高 1.5, 表格带框线, 图片为行内元素
   前台若给段落加间距或把图片改成块级, 逐行排版的命盘/对联就会散形 */
.article-block, .pd-body, .bd-intro, .fee-rich, .master-card .mc-body { white-space: pre-wrap; }
.article-block p, .pd-body p, .bd-intro p, .fee-rich p { margin: 0; }
.article-block ul, .article-block ol, .pd-body ul, .pd-body ol, .bd-intro ul, .bd-intro ol, .fee-rich ul, .fee-rich ol { margin: 0; padding-left: 22px; color: var(--ink-soft); }
.article-block ul, .pd-body ul, .bd-intro ul, .fee-rich ul { list-style: disc; }
.article-block ol, .pd-body ol, .bd-intro ol, .fee-rich ol { list-style: decimal; }
.article-block li, .pd-body li, .bd-intro li, .fee-rich li { margin: 0; }
.article-block li > ul, .article-block li > ol, .pd-body li > ul, .pd-body li > ol, .bd-intro li > ul, .bd-intro li > ol { margin: 4px 0; }
.article-block img, .pd-body img, .bd-intro img, .fee-rich img, .master-card .mc-body img { display: inline-block; max-width: 100%; height: auto !important; vertical-align: bottom; }
.article-block h1, .pd-body h1, .bd-intro h1 { font-size: 1.5rem; color: var(--red-deep); margin: 24px 0 10px; }
.article-block h2:not(:first-child), .pd-body h2:not(:first-child), .bd-intro h2:not(:first-child) { margin-top: 24px; }
.article-block h4, .pd-body h4, .bd-intro h4 { font-size: 1.08rem; color: var(--red); margin: 16px 0 8px; }
.article-block h5, .pd-body h5, .bd-intro h5 { font-size: 1rem; color: var(--ink); margin: 14px 0 6px; }
.article-block blockquote, .pd-body blockquote, .bd-intro blockquote { margin: 16px 0; padding: 14px 20px; background: var(--red-tint); border-left: 4px solid var(--red); font-family: var(--font-kai); font-size: 1.08rem; color: var(--red-deep); border-radius: 0 var(--radius) var(--radius) 0; }
.article-block table, .pd-body table, .bd-intro table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; margin: 8px 0; }
.article-block th, .article-block td, .pd-body th, .pd-body td, .bd-intro th, .bd-intro td { border: 1px solid var(--line-strong); padding: 6px 10px; line-height: 1.65; font-size: 0.95rem; text-align: left; vertical-align: top; }
.article-block th, .pd-body th, .bd-intro th { background: var(--red-tint); color: var(--red-deep); font-family: var(--font-kai); font-weight: 700; text-align: center; }
.article-block pre, .pd-body pre, .bd-intro pre, .fee-rich pre { background: var(--paper-light); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 8px 0; overflow-x: auto; font-family: Consolas, Monaco, "Courier New", monospace; font-size: 0.9rem; line-height: 1.6; white-space: pre; color: var(--ink-soft); }
.article-block code, .pd-body code, .bd-intro code, .fee-rich code { background: rgba(176, 35, 28, 0.07); border-radius: 3px; padding: 1px 4px; font-family: Consolas, Monaco, "Courier New", monospace; font-size: 0.92em; }
.article-block pre code, .pd-body pre code, .bd-intro pre code, .fee-rich pre code { background: none; padding: 0; font-size: inherit; }
.article-block hr, .pd-body hr, .bd-intro hr, .fee-rich hr { border: 0; height: 1px; background: var(--line); margin: 18px 0; }

