
/* ==========================================================================
   封面式首屏（轮播 + 栏目格 + 精选区 + 页脚图片署名）
   横/竖按 orientation 切排版；矮横屏另有紧凑档。配色沿用全站令牌。
   ========================================================================== */
.cover-hero {
  position: relative;
  overflow: hidden;
  background: #0B1A29;
  height: calc(100dvh - 60px);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  color: #fff;
  transition: opacity .55s ease, transform .55s ease;
}
/* 竖屏遮罩态（类由封面脚本按 orientation + revealed 状态机维护）：
   竖屏封面 fixed 全屏盖住主页、页面锁滚动，点「进入译桥 / 先看短片」淡出上滑揭开；
   横屏不加这些类，封面仍是在流首屏、往下滑进主页。 */
html.cover-locked, body.cover-locked { overflow: hidden !important; }
@media (orientation: portrait) {
  .cover-hero.mask-on {
    position: fixed; inset: 0; z-index: 90;
    width: 100% !important; height: 100dvh !important; margin-left: 0 !important;
    touch-action: none;
  }
  .cover-hero.mask-leaving { opacity: 0; transform: translateY(-5%); pointer-events: none; }
  .cover-hero.mask-gone { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cover-hero { transition: none; }
}
.cover-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.15s ease; pointer-events: none; }
.cover-slide.on { opacity: 1; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #0B1A29; color: transparent; }
.cover-img-port { display: none; }
@media (orientation: portrait) {
  .cover-img-land { display: none; }
  .cover-img-port { display: block; }
}
.cover-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,15,26,.44) 0%, rgba(7,15,26,0) 26%, rgba(7,15,26,0) 42%, rgba(7,15,26,.52) 74%, rgba(7,15,26,.84) 100%);
}
@media (orientation: landscape) {
  .cover-scrim {
    background:
      linear-gradient(90deg, rgba(7,15,26,.68) 0%, rgba(7,15,26,.30) 46%, rgba(7,15,26,0) 74%),
      linear-gradient(180deg, rgba(7,15,26,.32) 0%, rgba(7,15,26,0) 30%, rgba(7,15,26,0) 60%, rgba(7,15,26,.48) 100%);
  }
}
.cover-meta { position: absolute; top: 18px; left: 20px; z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.cover-index {
  font-family: var(--font-sans); font-size: 12.5px; letter-spacing: .18em;
  background: rgba(7,15,26,.42); border: 1px solid rgba(255,255,255,.22);
  padding: 4px 11px; border-radius: var(--radius-pill); width: fit-content;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.cover-loc { display: flex; flex-direction: column; gap: 1px; transition: opacity .3s ease; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.cover-loc.fading { opacity: 0; }
.cover-loc-zh { font-size: 15px; font-weight: 500; letter-spacing: .05em; }
.cover-loc-es { font-family: var(--font-sans); font-style: normal; font-size: 12.5px; opacity: .92; }
.cover-copy { position: absolute; z-index: 3; left: 20px; right: 20px; bottom: 62px; }
.cover-title-es {
  margin: 0; font-family: var(--font-sans); font-style: normal; font-weight: 500;
  font-size: 15px; letter-spacing: .08em; color: rgba(255,255,255,.92);
  text-shadow: 0 1px 10px rgba(0,0,0,.45);
}
.cover-tagline { margin: 14px 0 0; font-family: var(--font-sans); font-size: clamp(15px, 4.2vw, 19px); font-weight: 500; letter-spacing: .03em; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.cover-tagline-es { display: block; font-family: var(--font-sans); font-style: normal; font-weight: 400; font-size: .74em; opacity: .88; margin-top: 5px; letter-spacing: .02em; }
/* 封面下方引入区：原封面简介挪到此处保留，各视口正常显示 */
.cover-intro-zone { padding: 20px 2px 4px; }
.cover-intro-text {
  margin: 0; font-family: var(--font-sans); font-size: 15px; line-height: 1.85;
  max-width: 62ch; color: #1A2438; font-weight: 400;
}
.cover-intro-text strong { color: var(--ink-primary); font-weight: 700; }
.cover-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.cover-btn-main {
  font: inherit; font-size: 16.5px; font-weight: 500; letter-spacing: .05em;
  color: #fff;
  /* 预览C：纯文字链＋一条细下划线，无按钮框、无底色 */
  background: none;
  border: 0;
  border-bottom: 1.5px solid rgba(255,255,255,.85);
  border-radius: 0;
  padding: 7px 2px; cursor: pointer;
  box-shadow: none;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
  transition: border-color .18s ease, transform .18s ease;
}
.cover-btn-main:hover { background: none; border-bottom-color: #fff; color: #fff; }
.cover-btn-main:active { background: none; transform: scale(.97); }
.cover-btn-arr { color: #E07B39; }
.cover-btn-link {
  font: inherit; font-size: 15px; font-weight: 500; color: #fff; background: none; border: 0;
  border-bottom: 1.5px solid rgba(255,255,255,.65); padding: 7px 2px; cursor: pointer;
}
.cover-btn-link:hover { border-bottom-color: #fff; }
.cover-dots { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 3; display: flex; justify-content: center; gap: 2px; }
.cover-dots button { width: 24px; height: 24px; border: 0; background: transparent; position: relative; cursor: pointer; padding: 0; }
.cover-dots button::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.5);
  transition: width .3s ease, background .3s ease;
}
.cover-dots button.on::after { width: 22px; background: #fff; }
@media (max-width: 767px) {
  /* 避开手机底部固定快捷栏（56px + 安全区） */
  .cover-copy { bottom: 122px; }
  .cover-dots { bottom: 86px; }
  .cover-meta { top: 14px; left: 16px; }
  .cover-copy { left: 18px; right: 18px; }
}
@media (orientation: landscape) {
  .cover-meta { left: clamp(24px, 5.5vw, 84px); top: 22px; }
  .cover-copy { left: clamp(24px, 5.5vw, 84px); right: auto; bottom: auto; top: 50%; transform: translateY(-50%); max-width: 600px; }
  .cover-dots { bottom: 16px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  /* 矮屏紧凑档（手机横屏）：收字号，首屏不滚动不裁切（简介已移至封面下方引入区） */
  .cover-title-es { font-size: 12.5px; }
  .cover-tagline { font-size: 13.5px; margin-top: 12px; }
  .cover-cta { margin-top: 15px; }
  .cover-btn-main { padding: 10px 21px; font-size: 14px; }
  .cover-btn-link { font-size: 13.5px; }
  .cover-index { font-size: 11px; }
  .cover-loc-zh { font-size: 13px; }
  .cover-loc-es { font-size: 11.5px; }
  .cover-dots { bottom: 6px; }
  .cover-meta { top: 12px; }
}
/* ---------- 栏目格 ---------- */
.cover-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 0 2px; }
.cover-nav-cell {
  display: flex; align-items: center; gap: 13px; padding: 16px 18px;
  /* 第一版雾色渐变玻璃：雾白 → 浅雾蓝灰的低对比柔和渐变，半透 + 轻模糊，
     细淡边；字与图标保持已加深的最深墨色 / 深蓝，不再改动。 */
  background: linear-gradient(135deg, rgba(253, 252, 249, .78) 0%, rgba(240, 244, 246, .72) 52%, rgba(222, 231, 238, .68) 100%);
  border: 1px solid rgba(120, 138, 158, .28); border-radius: var(--radius-md);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 8px 20px rgba(26, 36, 56, .08);
  font: inherit; color: var(--ink-primary); text-align: left; cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.cover-nav-cell:hover {
  border-color: rgba(26, 36, 56, .34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 26px rgba(26, 36, 56, .15);
  transform: translateY(-1px);
}
.cover-nav-cell:active { transform: scale(.98); }
.cover-nav-icon {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 10px; background: #D7DFF1; border: 1px solid rgba(30, 58, 138, .30); color: #1E3A8A;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.cover-nav-name { font-size: 20px; font-weight: 700; line-height: 1.3; color: #1A2438; }
.cover-nav-es { display: block; font-family: var(--font-sans); font-style: normal; font-weight: 700; font-size: 15px; letter-spacing: .01em; color: #1A2438; margin-top: 2px; }
@media (min-width: 900px) {
  .cover-nav { grid-template-columns: repeat(4, 1fr); gap: 14px; padding-top: 20px; }
}
/* ---------- 精选区 ---------- */
.featured-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.featured-all {
  font: inherit; font-size: 14.5px; font-weight: 700; color: var(--brand-primary);
  background: none; border: 0; border-bottom: 1.5px solid var(--spain-accent);
  padding: 5px 2px; margin-bottom: 5px; cursor: pointer; white-space: nowrap;
}
.featured-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.feat-card {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden;
  border: 1px solid var(--border-hairline); border-radius: var(--radius-lg);
  background: var(--bg-dark); color: #fff; font: inherit; text-align: left; cursor: pointer;
}
.feat-big { aspect-ratio: 16 / 10.5; }
.feat-big .feat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.feat-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,15,26,.06) 40%, rgba(7,15,26,.55) 72%, rgba(7,15,26,.86) 100%); }
.feat-play {
  position: absolute; top: 16px; right: 16px; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(10,22,38,.55); border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.feat-big-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.feat-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; color: var(--spain-accent-on-dark); }
.feat-title { font-family: var(--font-serif); font-size: clamp(20px, 2.4vw, 27px); font-weight: 700; line-height: 1.3; }
.feat-title-es { font-family: var(--font-serif-latin); font-style: italic; font-weight: 600; }
.feat-desc { font-size: 13.5px; line-height: 1.65; color: rgba(255,255,255,.88); max-width: 54ch; }
.feat-side { display: grid; grid-template-columns: 1fr; gap: 14px; }
.feat-small { display: grid; grid-template-columns: 128px minmax(0, 1fr); background: var(--bg-surface); color: var(--ink-primary); }
.feat-small .feat-img { width: 100%; height: 100%; min-height: 106px; object-fit: cover; display: block; }
.feat-small-body { padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.feat-small .feat-title { font-size: 16.5px; }
.feat-small .feat-desc { color: var(--ink-secondary); font-size: 13px; }
@media (min-width: 1024px) {
  .featured-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; }
  .feat-big { aspect-ratio: auto; height: 100%; min-height: 384px; }
  .feat-side { grid-template-rows: repeat(3, 1fr); gap: 16px; }
  .feat-small { grid-template-columns: 148px minmax(0, 1fr); }
  .feat-small .feat-img { min-height: 0; }
}
/* ---------- 页脚图片署名（折叠条：默认收起，点标题行展开，做法同主页目录区折叠开关） ---------- */
.footer-credits { border-top: 1px solid rgba(255,255,255,.14); margin-top: 30px; padding-top: 20px; }
.footer-credits-toggle {
  font: inherit; display: inline-flex; align-items: center; gap: 9px;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-on-dark);
}
.footer-credits-toggle:hover .footer-credits-head { text-decoration: underline; text-underline-offset: 3px; }
.footer-credits-head { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--ink-on-dark); }
.footer-credits-toggle-label { font-size: 12.5px; font-weight: 600; color: var(--ink-on-dark-muted); }
.footer-credits-arrow { transition: transform .4s ease; }
#footerCredits:not(.fold-closed) .footer-credits-arrow { transform: rotate(180deg); }
.footer-credits-fold {
  display: grid; grid-template-rows: 1fr; visibility: visible;
  transition: grid-template-rows .45s ease, opacity .35s ease, visibility 0s;
}
.footer-credits-fold > .footer-credits-fold-inner { overflow: hidden; min-height: 0; }
#footerCredits.fold-closed .footer-credits-fold {
  grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows .45s ease, opacity .35s ease, visibility 0s linear .45s;
}
@media (prefers-reduced-motion: reduce) {
  .footer-credits-fold, .footer-credits-arrow { transition: none; }
}
.footer-credits-note { margin: 6px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-on-dark-muted); }
.footer-credits-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 5px 28px; font-size: 12.5px; line-height: 1.6; color: var(--ink-on-dark-muted); }
@media (min-width: 760px) { .footer-credits-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-credits-list { grid-template-columns: 1fr 1fr 1fr; } }
/* ---------- 主页目录区折叠开关（默认展开；收起后仅余标题行，不留大片空白） ---------- */
.index-toggle {
  font: inherit; display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .04em; color: var(--brand-primary);
  background: rgba(255,255,255,.55); border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  padding: 7px 14px; cursor: pointer; margin-bottom: 5px;
  transition: background .18s ease, border-color .18s ease;
}
.index-toggle:hover { background: rgba(255,255,255,.85); border-color: var(--brand-primary); }
.index-toggle-arrow { transition: transform .4s ease; }
#homeIndex.fold-closed .index-toggle-arrow { transform: rotate(180deg); }
.index-fold {
  display: grid; grid-template-rows: 1fr; visibility: visible;
  transition: grid-template-rows .45s ease, opacity .35s ease, visibility 0s;
}
.index-fold > .submenu-grid { overflow: hidden; min-height: 0; }
#homeIndex.fold-closed .index-fold {
  grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows .45s ease, opacity .35s ease, visibility 0s linear .45s;
}
@media (prefers-reduced-motion: reduce) {
  .index-fold, .index-toggle-arrow { transition: none; }
}
