/* 家族站 · 专业壳 v3 · 不抢 body::before（头条茶宣纸纹还在） */
:root {
  --jyb-ink: #0a1210;
  --jyb-pine: #1a3028;
  --jyb-brass: #c4a35a;
  --jyb-brass-hot: #dcb86a;
  --jyb-mist: #e8f0ea;
  --jyb-dock-h: 40px;
}
html.jyb-family { scroll-behavior: smooth; }
html.jyb-family body { -webkit-font-smoothing: antialiased; }

/* —— 家族坞 —— */
.jyb-dock {
  position: sticky;
  top: 0;
  z-index: 2147482990;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.35rem;
  flex-wrap: wrap;
  min-height: var(--jyb-dock-h);
  padding: 0 0.75rem;
  background: rgba(10, 18, 16, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 163, 90, 0.32);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.jyb-dock a {
  color: rgba(232, 240, 234, 0.72);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.55rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.jyb-dock a.is-here {
  color: #0a1210;
  background: #c4a35a;
  font-weight: 650;
}
@media (hover: hover) and (pointer: fine) {
  .jyb-dock a:hover { color: #dcb86a; }
  .jyb-dock a.is-here:hover { color: #0a1210; }
}

/* —— 影院图解 —— */
.jyb-cinema {
  margin: 0;
  padding: 1.15rem 1.1rem 1.25rem;
  background:
    radial-gradient(900px 280px at 12% 0%, rgba(196, 163, 90, 0.14), transparent 55%),
    #0a1210;
  color: #e8f0ea;
  border-top: 1px solid rgba(196, 163, 90, 0.22);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.jyb-cinema__row {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.9rem;
  align-items: center;
}
.jyb-cinema__loop {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid rgba(196, 163, 90, 0.35);
  background: #070c0a;
}
.jyb-cinema h2 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 650;
  color: #f3efe4;
  letter-spacing: 0.06em;
  grid-column: 1 / -1;
}
.jyb-cinema ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}
.jyb-cinema li {
  padding: 0.5rem 0.55rem;
  border: 1px solid rgba(196, 163, 90, 0.2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(232, 240, 234, 0.7);
  transition: border-color 0.35s, background 0.35s;
}
.jyb-cinema li.is-on {
  border-color: #c4a35a;
  background: rgba(196, 163, 90, 0.14);
  color: #f3efe4;
}
.jyb-cinema li b {
  display: block;
  color: #c4a35a;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.12rem;
}
.jyb-cinema .jyb-film-bar {
  max-width: 920px;
  margin: 0.7rem auto 0;
  height: 2px;
  background: rgba(232, 240, 234, 0.12);
}
.jyb-cinema .jyb-film-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: #c4a35a;
  animation: jybFilmBar 8s linear infinite;
}
@keyframes jybFilmBar {
  from { width: 0; }
  to { width: 100%; }
}
@media (max-width: 720px) {
  .jyb-cinema__row { grid-template-columns: 1fr; }
  .jyb-cinema__loop { display: none; }
  .jyb-cinema ol { grid-template-columns: 1fr 1fr; }
}

/* 页脚互链收成一条专业条 */
.jyb-netlinks {
  max-width: 920px;
  margin: 0 auto !important;
  padding: 1rem 1.1rem 1.4rem !important;
  font-size: 0.82rem !important;
  line-height: 1.7 !important;
  color: #5a6b62;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.jyb-netlinks a { color: #6f5b2e !important; }

/* 按钮铜光 · 卡片微抬 */
html.jyb-family .btn-primary,
html.jyb-family .btn-gold,
html.jyb-family a.btn-primary,
html.jyb-family .btn.btn-primary {
  position: relative;
  overflow: hidden;
}
html.jyb-family .btn-primary::after,
html.jyb-family .btn-gold::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 230, 0.4), transparent);
  transform: skewX(-18deg);
  animation: jybShine 3.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}
@keyframes jybShine {
  0% { left: -40%; }
  55%, 100% { left: 120%; }
}
@media (hover: hover) and (pointer: fine) {
  html.jyb-family .card:hover,
  html.jyb-family .panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(10, 18, 16, 0.1);
  }
}

/* 头条茶：坞把固定导航顶下去，宣纸纹不动 */
html[data-jyb-brand="toutiaotea"] .nav {
  top: var(--jyb-dock-h) !important;
}
html[data-jyb-brand="toutiaotea"] .nav-menu.open {
  inset: calc(78px + var(--jyb-dock-h)) 0 auto 0 !important;
}

/* 蜀商：导航贴坞 */
html[data-jyb-brand="shushang"] .navbar.sticky-top {
  top: var(--jyb-dock-h);
}
html[data-jyb-brand="shushang"] .btn-primary {
  background: #c4a35a !important;
  border-color: #c4a35a !important;
  color: #1a1408 !important;
}

/* 麟选：坞 + 着陆页英雄更电影 */
html[data-jyb-brand="linpick"] .qilin-topnav {
  top: var(--jyb-dock-h);
}
html[data-jyb-brand="linpick"] .landing-hero-v3 {
  box-shadow: inset 0 -40px 80px rgba(0, 0, 0, 0.35);
}

/* 沈馆长：去 emoji 感、改成墨松铜顶栏 */
html[data-jyb-brand="shenguanzhang"] .logo-icon,
html[data-jyb-brand="shenguanzhang"] .search-btn {
  font-size: 0 !important;
}
html[data-jyb-brand="shenguanzhang"] .site-header {
  background: #0a1210 !important;
  border-bottom: 1px solid rgba(196, 163, 90, 0.28);
  color: #e8f0ea;
}
html[data-jyb-brand="shenguanzhang"] .site-header a,
html[data-jyb-brand="shenguanzhang"] .main-nav a,
html[data-jyb-brand="shenguanzhang"] .logo-text,
html[data-jyb-brand="shenguanzhang"] .brand-name {
  color: #e8f0ea !important;
}
html[data-jyb-brand="shenguanzhang"] .brand-mark {
  background: #c4a35a !important;
  color: #0a1210 !important;
  border-color: #c4a35a !important;
}
html[data-jyb-brand="shenguanzhang"] .main-nav a[href="/admin/dashboard"] {
  color: #c4a35a !important;
}

.jyb-steam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
}

@media (prefers-reduced-motion: reduce) {
  .jyb-cinema .jyb-film-bar > i,
  .jyb-cinema__loop,
  html.jyb-family .btn-primary::after,
  html.jyb-family .btn-gold::after { animation: none !important; display: none; }
}
