@charset "UTF-8";
/*!
 * 好剧创作 · 页头 / 页脚 / 移动端导航
 * 与 haoju.css 配套（必须在 haoju.css 之后加载）
 */

/* ========================= 页头 ========================= */

/* ⚠️ 官方 official.css（Tailwind v4产物）的 preflight 没能把 box-sizing 设成
   border-box —— 实测 .hj-container 是 content-box，于是
   width:374 + padding 0 36px = 410px > 390px 视口，移动端横向溢出 20~28px，
   且因为每个 .hj-container 都超，会把 scrollWidth 顶到 476。
   凡是带横向 padding 的容器都必须显式声明 border-box，不能指望 preflight。 */
.hj-container,
.hj-hero,
.hj-section,
.hj-header__inner,
.hj-footer__inner,
.hj-footer__barinner {
  box-sizing: border-box;
}

.hj-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 22, .9);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--hj-line-soft);
}
.hj-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.hj-header__inner {
  height: var(--hj-header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.hj-logo-link {
  display: inline-flex;
  flex: none;
  transition: transform .18s cubic-bezier(.2,.9,.3,1);
}
.hj-logo-link:hover { transform: scale(1.03); }

.hj-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.hj-navlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 13px;
  border-radius: var(--hj-r-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--hj-text-2);
  white-space: nowrap;
  transition: color .16s, background .16s;
}
.hj-navlink:hover { color: var(--hj-cream); background: rgba(255, 255, 255, .04); }
.hj-navlink.is-active { color: var(--hj-gold); font-weight: 700; }
.hj-navlink.is-active::after {
  content: '';
  position: absolute;
  left: 13px; right: 13px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--hj-gold);
}

.hj-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.hj-header__cta { min-height: 42px; padding: 0 20px; font-size: 14.5px; }

/* 汉堡按钮 */
.hj-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid var(--hj-line);
  border-radius: var(--hj-r-sm);
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.hj-burger span {
  position: absolute;
  left: 12px;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--hj-cream);
  transition: transform .22s, opacity .18s, top .22s;
}
.hj-burger span:nth-child(1) { top: 15px; }
.hj-burger span:nth-child(2) { top: 21px; }
.hj-burger span:nth-child(3) { top: 27px; }
.hj-burger[aria-expanded='true'] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hj-burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.hj-burger[aria-expanded='true'] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* 移动端抽屉 */
.hj-mobile {
  border-top: 1px solid var(--hj-line-soft);
  background: var(--hj-ink-850);
  max-height: calc(100dvh - var(--hj-header-h));
  overflow-y: auto;
}
.hj-mobile[hidden] { display: none; }
.hj-mnav { display: flex; flex-direction: column; gap: 2px; padding: 14px 24px 22px; }
.hj-mnav__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--hj-r-sm);
  font-size: 16px;
  font-weight: 500;
  color: var(--hj-text);
  transition: background .15s, color .15s;
}
.hj-mnav__item i { font-size: 11px; color: var(--hj-text-3); }
.hj-mnav__item:active { background: rgba(255, 255, 255, .05); }
.hj-mnav__item.is-active {
  background: rgba(224, 177, 85, .1);
  color: var(--hj-gold);
  font-weight: 700;
}

/* ========================= 页脚 ========================= */

.hj-footer {
  background: var(--hj-ink-900);
  color: var(--hj-text-2);
  border-top: 1px solid var(--hj-line-soft);
  margin-top: 96px;
}
.hj-footer .hj-perf { opacity: .8; }

.hj-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: 56px;
  padding-top: 64px;
  padding-bottom: 52px;
}

.hj-footer__slogan {
  margin: 20px 0 24px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--hj-text-3);
}

.hj-footer__qr { display: flex; gap: 12px; }
.hj-fqr {
  width: 46px; height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--hj-line);
  background: var(--hj-ink-800);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .18s, transform .18s, background .18s;
}
.hj-fqr img { width: 21px; height: 21px; object-fit: contain; opacity: .82; }
.hj-fqr:hover {
  border-color: var(--hj-gold-600);
  background: rgba(224, 177, 85, .08);
  transform: translateY(-3px);
}

.hj-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.hj-fcol__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--hj-cream);
  margin: 0 0 20px;
  text-transform: uppercase;
}
.hj-fcol ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.hj-fcol a {
  font-size: 14.5px;
  color: var(--hj-text-3);
  transition: color .16s, padding-left .16s;
}
.hj-fcol a:hover { color: var(--hj-gold); padding-left: 4px; }

.hj-footer__bar { border-top: 1px solid var(--hj-line-soft); }
.hj-footer__barinner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 13.5px;
  color: var(--hj-text-3);
}

/* ========================= 响应式 ========================= */

/* 平板：导航折叠 */
@media (max-width: 1080px) {
  .hj-nav { display: none; }
  .hj-burger { display: block; }
  .hj-header__inner { gap: 16px; }
  .hj-header__actions { margin-left: auto; }
  .hj-footer__inner { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 720px) {
  .hj-container { padding: 0 18px; }
  .hj-header__inner { height: 60px; }
  .hj-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .hj-footer__inner { padding-top: 44px; padding-bottom: 38px; }
  .hj-footer__barinner { flex-direction: column; align-items: flex-start; gap: 8px; }
  /* 小屏隐藏次要 CTA，保留登录入口。
   * ⚠️ 必须写 display:none —— .hj-btn 基础规则里是 display:inline-flex，
   * 同权重下后写的媒体查询本该覆盖，但 .hj-btn 是类选择器、
   * 而这条是 `.hj-header__cta`（单类），两者特异性相同靠顺序取胜；
   * pages.css 在 shell.css 之后加载会把 .hj-btn 重新提上来。
   * 用 !important 一劳永逸，别再靠顺序赌。 */
  .hj-header__cta { display: none !important; }
  .hj-header__login { min-height: 44px; padding: 0 12px; font-size: 14px; }
  .hj-footer { margin-top: 64px; }
}

@media (max-width: 420px) {
  .hj-footer__cols { grid-template-columns: 1fr; }
}

/* 未注入 shell 的页面（后台/用户中心等）不该出现胶片条 */
.hj-body-no-shell .hj-filmstrip { display: none; }