/* ==========================================================================
   SYHY GAMES · 世亚华游戏官方网站样式
   切图为 @2x 高清稿（物理 2880px，设计逻辑宽 1440px）
   故内容区锁定 1440px 居中，避免在宽屏上整体放大
   ========================================================================== */

:root {
  --page-w: 100%;
  --nav-h: 60px;
  --nav-bg: #000;
  --green: #38ffc0;
  --text: #e9ecef;
  --page-bg: #06070a;
  --c-art: #1cffb2;
  --c-plan: #ffbc1c;
  --c-program: #1ca7ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  background: var(--page-bg);
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  padding-top: var(--nav-h);
}

/* ---------- 固定顶部导航（与内容同宽居中） ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: var(--page-w);
  margin: 0 auto;
  height: var(--nav-h);
  background: var(--nav-bg) url('assets/ui_gw_panel_001.png') left center / auto 100% no-repeat;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 40px;
}

.nav {
  display: flex;
  gap: 40px;
}

.nav-link {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 6px 0;
  transition: color .2s;
}

.nav-link:hover {
  color: var(--green);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform .2s;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* ---------- 首屏 Hero 轮播 ---------- */
.hero {
  position: relative;
  max-width: var(--page-w);
  margin: 0 auto;
  aspect-ratio: 2880 / 1155;
  overflow: hidden;
  scroll-margin-top: var(--nav-h);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

/* ---------- 内容切图自上而下平铺（全宽设计稿） ---------- */
.bands {
  max-width: var(--page-w);
  margin: 0 auto;
  font-size: 0;
}

.band {
  display: block;
  width: 100%;
  height: auto;
  scroll-margin-top: var(--nav-h);
}

/* 「加入我们」区块（img_006）：在图内烧录的“查看热门岗位”按钮上叠加透明可点击热区。
   按钮在 2880×1155 原图实测位于 x[1359–1517] y[881–927]，用百分比定位随图缩放 */
.band-wrap {
  position: relative;
  font-size: 0;
  scroll-margin-top: calc(var(--nav-h) - 15vh);
}

.join-hotspot {
  position: absolute;
  left: 46%;
  top: 75%;
  width: 8%;
  height: 6.5%;
  cursor: pointer;
}

/* ---------- 招聘页（join.html） ---------- */
.nav-link.is-current {
  color: var(--green);
}

.nav-link.is-current::after {
  transform: scaleX(1);
}

.recruit {
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 0 40px 80px 40px;
}

.job-tabs {
  display: flex;
  gap: 40px;
  padding: 28px 0;
}

.job-tab {
  background: none;
  border: none;
  color: #cfd3d8;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  padding-bottom: 8px;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}

.job-tab:hover {
  color: #fff;
}

.job-tab[data-job="art"].is-active {
  color: var(--c-art);
  border-bottom-color: var(--c-art);
}

.job-tab[data-job="plan"].is-active {
  color: var(--c-plan);
  border-bottom-color: var(--c-plan);
}

.job-tab[data-job="program"].is-active {
  color: var(--c-program);
  border-bottom-color: var(--c-program);
}

/* --- 职位面板 --- */
.job-panel {
  display: none;
}

.job-panel.is-active {
  display: block;
}

/* 分类标题 + 投递邮箱 */
.job-panel__top {
  display: flex;
  align-items: center;
  gap: 96px;
  margin: 32px 0 16px;
}

/* 分类标题词标图 —— 等比例缩成正常大小，左对齐，不再整宽拉伸 */
.cat-hdr {
  display: block;
  height: 40px;
  width: auto;
}

.job-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: clamp(11px, 1.15vw, 18px);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
}

.job-mail__icon {
  flex: none;
  width: 26px;
  height: auto;
  display: block;
}

.job-mail__addr {
  white-space: nowrap;
}

/* 职位列表 */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 职位卡片 */
.job-card {
  border: 1px solid #232634;
  border-radius: 8px;
  overflow: hidden;
  background: #0e1015;
}

/* 卡片头部：小词标图 + 中文标题 + 地点 + 展开按钮（横向排列） */
.job-card__hd {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 0 18px;
  background: linear-gradient(90deg, #181b22, #101218);
  cursor: pointer;
  user-select: none;
  transition: background .2s;
}

.job-card:hover .job-card__hd {
  background: linear-gradient(90deg, #1e222b, #14171e);
}

/* 词标切图作为岗位标题：等比例放大，完整显示、不裁切、不变形 */
.job-card__bg {
  flex: none;
  height: 38px;
  width: auto;
  object-fit: contain;
}

/* 中文标题改为屏读隐藏：视觉上由词标图代替，但保留文本供 SEO / 无障碍读取 */
.job-card__cn {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 地点徽章靠右，与展开按钮成组 */
.job-card__loc {
  margin-left: auto;
  font-size: 12px;
  color: #b3b9c4;
  padding: 3px 12px;
  border: 1px solid #3a3f4d;
  border-radius: 4px;
  letter-spacing: 1px;
}

.job-card__tog {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #5a606e;
  background: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #b3b9c4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s;
}

.job-card.is-open .job-card__tog {
  border-color: var(--green);
  color: var(--green);
}

/* 手风琴展开体 */
.job-card__bd {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s ease;
}

.job-card.is-open .job-card__bd {
  max-height: 3600px;
}

.job-card__bd-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  padding: 26px 24px 30px;
}

.jd-section--wide {
  grid-column: 1 / -1;
}

.jd-section__h {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 2px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #232634;
}

.jd-section__list {
  padding-left: 20px;
  color: #ccd1da;
  font-size: 15px;
  line-height: 1.9;
}

.jd-section__list li + li {
  margin-top: 8px;
}

/* ========== 首页 · 图片文字覆盖层 ========== */

/* img_004 公司介绍 */
.about-overlay {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, 78%);
  text-align: center;
  pointer-events: none;
}

.about-tagline {
  color: #f0f2f5;
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 2;
  margin-bottom: 28px;
}

.about-body {
  color: #b0b6c3;
  font-size: clamp(12px, 1.05vw, 15px);
  line-height: 2.2;
  margin-bottom: 14px;
}

/* img_006 理念/招聘引导 */
.join-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  text-align: center;
}

.join-tagline {
  color: #fff;
  font-size: clamp(16px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: 6px;
}

.join-cta {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  display: inline-block;
  padding: 9px 28px;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  font-size: 12px;
  letter-spacing: 3px;
  text-decoration: none;
  background: rgba(0,0,0,.25);
  transition: border-color .2s, color .2s, background .2s;
}

.join-cta:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(56,255,192,.08);
}

/* img_007 办公环境标题 */
.office-overlay {
  position: absolute;
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.office-title {
  color: #f0f2f5;
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 2;
}

/* ---------- 页脚（透明底切图，按 @2x 真实尺寸居中） ---------- */
/* img_008 为 1922×108 透明底切图：按 @2x 折半得逻辑宽 961px，
   居中铺在深色页面背景上，与其余切图同一缩放比例，避免被拉伸放大 */
.site-footer {
  max-width: var(--page-w);
  margin: 0 auto;
  padding-bottom: 40px; /* Added padding to prevent content from touching the very bottom */
  font-size: 0;
}

.site-footer__img {
  display: block;
  width: 961px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ---------- 无障碍 / SEO：视觉隐藏但保留文本 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
