/* Restored from the original Chinese homepage; locale adjustments live in overseas.css. */

  /* —— 轮播图区域 —— */
  /* --u：岩石框素材中 100px 对应的显示尺寸，随页面宽度等比缩放，边框四角不变形 */
  .banner { position: relative; margin-top: 20px; --u: clamp(18px, 3.4vw, 46px); }
  /* 页头下方约 75px 是透明投影，桌面端把轮播上移贴近岩石带，减少顶部留白 */
  html:not(.nav-collapsed) .banner { margin-top: -18px; }
  .banner-stage { position: relative; }
  .banner-stage::after {
    content: ""; position: absolute; z-index: 10; pointer-events: none;
    inset: calc(var(--u) * -.72);
    border-style: solid; border-color: transparent;
    border-width: calc(var(--u) * 3.6) calc(var(--u) * 3.85) calc(var(--u) * 3.8) calc(var(--u) * 4.1);
    border-image-source: url('../../images/index/transparent-layer.webp');
    border-image-slice: 360 385 380 410;
    border-image-repeat: stretch;
  }
  .banner-main-container { position: relative; width: 100%; overflow: hidden; border-radius: 8px; background: #111; }
  .banner-main-scroll { display: flex; transition: transform .5s ease; }
  .banner-main-img {
    /* 21:9：与现有轮播图（1328×569）一致不裁切；16:9 视频上下各裁约 12% */
    min-width: 100%; aspect-ratio: 21 / 9; overflow: hidden; position: relative;
    display: flex; align-items: center; justify-content: center;
    background: url('../../images/index/zhuangtai.png');
  }
  .banner-main-img img, .banner-main-img video { width: 100%; height: 100%; display: block; object-fit: cover; }
  /* 视频：大图中央的播放按钮；B 站视频点击后才加载播放器（不拖慢首屏，也不占用服务器带宽） */
  .banner-play {
    position: absolute; left: 50%; top: 50%; z-index: 3;
    width: 76px; height: 76px; padding: 0; border-radius: 50%; cursor: pointer;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(43, 248, 209, .85);
    background: rgba(4, 12, 12, .55);
    box-shadow: 0 0 0 6px rgba(43, 248, 209, .14), 0 0 24px rgba(43, 248, 209, .45);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
  }
  .banner-play::before {
    content: ""; position: absolute; left: 50%; top: 50%;
    border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff;
    transform: translate(-36%, -50%);
  }
  .banner-play:hover, .banner-play:focus-visible {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(43, 248, 209, .25);
    box-shadow: 0 0 0 8px rgba(43, 248, 209, .18), 0 0 32px rgba(43, 248, 209, .6);
  }
  .banner-play .label {
    position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%);
    white-space: nowrap; font-size: 13px; color: #e6f3f1; text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
  }
  .banner-embed { position: absolute; inset: 0; z-index: 4; background: #000; }
  .banner-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
  .banner-main-img.is-playing .banner-play { display: none; }
  .banner-main-img a { display: block; width: 100%; height: 100%; }
  .carousel-container { position: relative; margin: calc(var(--u) * .72 + 6px) auto 0; max-width: 1600px; }
  .carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 30px; height: 60px; padding: 0; border: none; cursor: pointer;
    background-color: transparent; background-size: 100% 100%; background-repeat: no-repeat;
  }
  .carousel-prev { left: -40px; background-image: url('../../images/index/left-arrow.png'); }
  .carousel-next { right: -40px; background-image: url('../../images/index/right-arrow.png'); }
  .carousel-arrow:hover { opacity: .8; }
  .banner-nav { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
  .banner-nav::-webkit-scrollbar { display: none; }
  .banner-nav-item {
    position: relative; flex-shrink: 0; width: 180px; height: 120px; padding: 0;
    overflow: hidden; border: 2px solid transparent; border-radius: 4px; background: #333; cursor: pointer;
    transition: transform .3s ease, border-color .3s ease;
  }
  .banner-nav-item img { width: 100%; height: 100%; object-fit: cover; transition: filter .3s ease; }
  .banner-nav-item:hover { transform: scale(1.05); }
  .banner-nav-item:hover img { filter: brightness(.7); }
  .banner-nav-item.active { border-color: #05e1b5; }
  .play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 5;
    width: 30px; height: 30px; opacity: .8;
    background: url('../../images/index/play-btn.png') no-repeat center / 100% 100%;
  }

  /* —— 最新资讯 —— */
  .latest-news { margin-top: 50px; }
  .section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
  .news-pic { display: flex; align-items: center; gap: 10px; }
  .news-pic img.title-img { width: 130px; height: auto; }
  .news-pic img.zui { width: 15px; height: 30px; }
  .section-head .dashed-line { flex: 1; }
  .section-more { flex-shrink: 0; font-size: 14px; color: var(--brand); }
  .section-more:hover { text-decoration: underline; }

  /* 资讯：左侧头条大图，右侧按分类切换的标题列表（有图无图统一，不重复、不跳动） */
  .news-board { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: stretch; }

  .news-lead {
    position: relative; display: block; min-width: 0; min-height: 380px; overflow: hidden;
    border: 1px solid rgba(43, 248, 209, .28); border-radius: 4px; background: #0a1213; color: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
  }
  .news-lead__media { position: absolute; inset: 0; overflow: hidden; background: #0a1213; }
  .news-lead__img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
  /* 竖图/方图：完整显示，两侧用同一张图的模糊放大版填充，不生硬裁切 */
  .news-lead__media--portrait .news-lead__img, .news-lead__media--square .news-lead__img { object-fit: contain; }
  .news-lead__backdrop {
    position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover;
    filter: blur(24px) brightness(.45) saturate(1.1);
  }
  .news-lead:hover .news-lead__img { transform: scale(1.04); }
  .news-lead__caption {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 70px 26px 22px;
    background: linear-gradient(180deg, rgba(3, 8, 9, 0) 0%, rgba(3, 8, 9, .78) 45%, rgba(3, 8, 9, .95) 100%);
  }
  .news-lead__title {
    margin: 10px 0 0; font-size: 24px; line-height: 1.4; font-weight: bold; color: #fff;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
  }
  .news-lead:hover .news-lead__title { color: var(--brand); }
  .news-lead__excerpt {
    margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: #c3cfcd;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .news-lead__date { display: block; margin-top: 10px; font-size: 13px; color: #8a9896; }
  /* 无图头条：主题面板 + 大字标题 */
  .news-lead--text { background:
      radial-gradient(120% 90% at 0% 0%, rgba(43, 248, 209, .16), transparent 55%),
      linear-gradient(150deg, rgba(18, 44, 41, .96), rgba(4, 10, 10, .97)); }
  .news-lead--text::before {
    content: "MONSTER\A LAIR"; white-space: pre; position: absolute; left: 26px; top: 22px;
    font: italic 900 72px/0.95 Arial, sans-serif; color: rgba(255, 255, 255, .05); letter-spacing: 4px;
  }
  .news-lead--text .news-lead__caption { background: none; padding-top: 0; }
  .news-lead--text .news-lead__title { font-size: 28px; -webkit-line-clamp: 3; }
  .news-lead--text .news-lead__excerpt { -webkit-line-clamp: 3; }

  .news-tag {
    display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin-right: 6px;
    border: 1px solid rgba(43, 248, 209, .5); border-radius: 2px; background: rgba(43, 248, 209, .08);
    font-size: 12px; line-height: 1; color: #7ff3dd; white-space: nowrap; vertical-align: middle;
  }
  .news-tag--top { border-color: rgba(240, 193, 8, .7); background: rgba(240, 193, 8, .12); color: #f5cf47; }

  .news-panel {
    position: relative; display: flex; flex-direction: column; min-width: 0;
    padding: 6px 22px 16px;
    border: 1px solid rgba(43, 248, 209, .28); border-radius: 4px;
    background: linear-gradient(180deg, rgba(14, 30, 32, .9), rgba(6, 12, 13, .94));
    box-shadow: inset 0 0 30px rgba(43, 248, 209, .05), 0 10px 28px rgba(0, 0, 0, .45);
  }
  .news-tabs { display: flex; gap: 22px; border-bottom: 1px solid rgba(255, 255, 255, .08); overflow-x: auto; scrollbar-width: none; }
  .news-tabs::-webkit-scrollbar { display: none; }
  .news-tab {
    position: relative; flex-shrink: 0; padding: 14px 0 12px; border: 0; background: none; cursor: pointer;
    font-size: 16px; font-weight: normal; color: #7f8d8b; transition: color .2s ease;
  }
  .news-tab:hover { color: #d5dddb; }
  .news-tab[aria-selected="true"] { color: #fff; font-weight: bold; }
  .news-tab[aria-selected="true"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px;
    background: var(--brand); box-shadow: 0 0 8px rgba(43, 248, 209, .8);
  }
  .news-tabpanel { flex: 1; }
  .news-tabpanel:not([hidden]) { display: flex; flex-direction: column; }
  .news-list { margin: 0; padding: 0; list-style: none; }
  .news-list li + li { border-top: 1px dashed rgba(255, 255, 255, .08); }
  .news-list a {
    display: flex; align-items: center; gap: 4px; height: 52px; margin: 0 -10px; padding: 0 10px;
    color: #dfe6e4; transition: background-color .2s ease, color .2s ease;
  }
  .news-list a:hover { background: rgba(43, 248, 209, .06); color: var(--brand); }
  .news-list .t { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .news-list time { flex-shrink: 0; margin-left: 10px; font-size: 13px; color: #7d8b89; font-variant-numeric: tabular-nums; }
  .news-empty {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    min-height: 200px; padding: 24px 0; text-align: center; color: #7d8b89; font-size: 14px;
  }
  .news-empty strong { font-size: 16px; font-weight: normal; color: #c9d3d1; letter-spacing: 1px; }
  .news-panel__more { align-self: flex-end; margin-top: 8px; font-size: 13px; color: var(--brand); }
  .news-panel__more[hidden] { display: none; }
  .news-panel__more:hover { text-decoration: underline; }

  /* —— 怪兽图鉴（与“怪兽图鉴”页同一数据源） —— */
  .monster-section { margin-top: 70px; }
  .section-head .title-text {
    font-family: var(--font-display); font-size: 36px; line-height: 1.15; letter-spacing: 2px; color: #e9ecec;
  }
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .section-head .title-text {
      background: linear-gradient(180deg, #ffffff 0%, #dfe3e2 44%, #9ea6a4 56%, #eef1f0 100%);
      -webkit-background-clip: text; background-clip: text; color: transparent;
      filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6));
    }
  }
  /* 右侧缩略图列与左侧大图等高：上下箭头在列内，中间列表滚动 */
  .monster-show { display: grid; grid-template-columns: minmax(0, 1fr) 172px; gap: 28px; align-items: stretch; }
  .monster-show > * { min-width: 0; }
  .monster-big-img {
    position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
    width: 100%; aspect-ratio: 1000 / 580; border-radius: 4px;
    background: url('../../images/index/xiangqing.webp') no-repeat center / 100% 100%;
  }
  .monster-big-img img {
    width: 45%; max-width: 450px; aspect-ratio: 1; object-fit: contain;
    transform: translateX(-45%); transition: transform .5s ease, opacity .3s ease;
  }
  .monster-big-img:hover img { transform: translateX(-45%) scale(1.06); }
  .monster-big-content { position: absolute; right: 8%; top: 50%; transform: translateY(-50%); width: 32%; z-index: 10; }
  .monster-big-content h3 { font-family: var(--font-display); font-size: 32px; text-align: right; margin-bottom: 14px; }
  .monster-big-content .type { display: block; text-align: right; color: var(--brand); font-size: 14px; margin-bottom: 10px; }
  .monster-big-content p { font-size: 14px; line-height: 30px; color: #b1b1b1; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
  .monster-big-content .btn {
    display: block; margin: 24px 0 0 auto; width: 168px; height: 50px; line-height: 50px; text-align: center;
    color: #fff; font-weight: bold; background: url('../../images/index/mores.webp') no-repeat center / 100% 100%;
  }
  .monster-vertical-container { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 0; }
  .vertical-arrow {
    flex-shrink: 0; position: relative; z-index: 2;
    width: 60px; height: 30px; padding: 0; border: none; cursor: pointer; background-color: transparent; background-repeat: no-repeat; background-size: 100% 100%;
    transition: opacity .2s ease, transform .2s ease;
  }
  .vertical-arrow:hover { transform: scale(1.08); }
  .vertical-arrow:disabled { opacity: .3; cursor: default; transform: none; }
  .vertical-up { background-image: url('../../images/index/up.png'); }
  .vertical-down { background-image: url('../../images/index/do.png'); }
  .monster-small-list {
    flex: 1 1 0; min-height: 0; width: 100%;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    overflow-y: auto; scrollbar-width: none; padding: 6px 0; scroll-behavior: smooth;
  }
  .monster-small-list::-webkit-scrollbar { display: none; }
  .monster-small {
    flex-shrink: 0; width: 150px; height: 150px; padding: 10px; border: none; border-radius: 4px; cursor: pointer;
    background: url('../../images/index/monster-normal-bg.png') no-repeat center / 100% 100%;
    transition: transform .3s ease;
  }
  .monster-small img { width: 100%; height: 100%; object-fit: contain; }
  .monster-small:hover { transform: scale(1.06); }
  .monster-small:hover, .monster-small.active { background-image: url('../../images/index/monster-hover-bg.webp'); }

  /* 两侧留白不够放箭头时，箭头收进缩略图条两端 */
  @media (max-width: 960px) {
    .carousel-container { padding: 0 40px; }
    .carousel-prev { left: 0; }
    .carousel-next { right: 0; }
  }
  @media (max-width: 992px) {
    .news-board { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .news-lead { min-height: 0; aspect-ratio: 16 / 9; }
    .monster-show { grid-template-columns: minmax(0, 1fr); }
    .monster-vertical-container { padding: 20px 0 0; }
    .monster-small-list { flex: none; flex-direction: row; width: 100%; height: auto; overflow-x: auto; overflow-y: hidden; padding: 4px; }
    .monster-small { width: 110px; height: 110px; }
    .vertical-arrow { display: none; }
  }
  @media (max-width: 640px) {
    .banner-main-img { aspect-ratio: 16 / 9; }
    .banner-play { width: 56px; height: 56px; }
    .banner-play::before { border-width: 10px 0 10px 16px; }
    .banner-play .label { display: none; }
    .banner-nav-item { width: 120px; height: 80px; }
    .carousel-container { padding: 0 28px; }
    .carousel-arrow { width: 22px; height: 44px; }
    .news-lead { aspect-ratio: 4 / 3; }
    .news-lead__caption { padding: 50px 16px 14px; }
    .news-lead__title, .news-lead--text .news-lead__title { font-size: 19px; }
    .news-lead__excerpt { display: none; }
    .news-lead--text .news-lead__excerpt { display: -webkit-box; }
    .news-lead--text::before { font-size: 48px; left: 16px; }
    .news-panel { padding: 4px 14px 12px; }
    .news-tabs { gap: 18px; }
    .news-list a { height: 48px; }
    .news-list .t { font-size: 14px; }
    .monster-big-img { aspect-ratio: auto; flex-direction: column; padding: 30px 20px; background-size: cover; }
    .monster-big-img img { width: 70%; transform: none; }
    .monster-big-img:hover img { transform: scale(1.04); }
    .monster-big-content { position: static; transform: none; width: 100%; margin-top: 16px; }
    .monster-big-content h3, .monster-big-content .type { text-align: center; }
    .monster-big-content .btn { margin: 20px auto 0; }
    .section-head .dashed-line { display: none; }
  }
  @media (max-width: 360px) {
    .news-tabs { gap: 14px; }
  }
