/*
 * 官网样式（深色抖音风）。取值沿用 docs/界面稿/03-首页整页结构.html 的内联样式。
 *
 * --text-dim 用 #a9a9b0（比 brief 的 #8f8f97 亮一档）—— 这是深色底上正文的可读性下限，
 * 在手机端户外光下差距很明显。这是刻意保留自 Task 6 的设计令牌，不要按 brief 里的旧值改回去。
 *
 * 令牌不留"看起来在用、其实没人用"的：定义在 :root 里的每一个都必须至少被 var() 引用一次
 * （设计稿里根本没有品牌青 #25F4EE，曾经定义的 --tiktok-cyan 与 --brand-navy 都已删除）。
 */
:root {
    --brand-teal: #00BFC4;
    --tiktok-pink: #FE2C55;
    --bg: #0b0b0d;
    --bg-alt: #101014;
    --line: #232326;
    --text: #e8e8ea;
    --text-dim: #a9a9b0;
    --radius: 12px;
    --maxw: 1180px;
    --gap: 20px;
}
* { box-sizing: border-box; }
body.site {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.5;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- 顶部导航 ---------- */
.nav { display: flex; align-items: center; gap: 22px;
    padding: 14px max(20px, calc((100% - var(--maxw)) / 2));
    border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
    background: rgba(11, 11, 13, .92); backdrop-filter: blur(8px); }
.nav__brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .06em; }
.nav__logo { height: 26px; width: auto; }
.nav__links { display: flex; gap: 18px; margin-left: 12px; color: var(--text-dim); font-size: 14px; }
.nav__link { padding: 0; }
.nav__link.is-primary { background: var(--tiktok-pink); color: #fff; border-radius: 999px; padding: 6px 14px; }
.nav__link.is-accent { background: var(--brand-teal); color: #04252a; border-radius: 999px;
    padding: 6px 14px; font-weight: 700; }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav__lang { display: flex; gap: 6px; font-size: 12px; }
.nav__lang a { border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; color: var(--text-dim); }
.nav__lang a.is-on { border-color: var(--brand-teal); color: var(--brand-teal); }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__burger i { display: block; width: 18px; height: 2px; background: var(--text); margin: 3px 0;
    transform-origin: center; transition: transform .2s ease, opacity .2s ease; }
/* 展开时三条杠收成 X：上下两条各转 45°，中间一条淡出 */
.nav__burger.is-active i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__burger.is-active i:nth-child(2) { opacity: 0; }
.nav__burger.is-active i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 首页顶部轮播广告（PC 与手机同一套滑动机制） ---------- */
.banner { max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 10px; }
.banner__viewport { display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    border-radius: 18px; scrollbar-width: none; -ms-overflow-style: none; }
.banner__viewport::-webkit-scrollbar { display: none; }
.banner__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; display: block;
    aspect-ratio: 16 / 7; max-height: 460px; overflow: hidden; border-radius: 18px; background: #131317; }
.banner__slide img, .banner__slide video { width: 100%; height: 100%; object-fit: cover; }
/* 视频在竖屏/宽屏都会被裁切，留一个深色底，加载首帧前不是一块白 */
.banner__slide video { background: #000; }
/* 有文字时才铺遮罩，纯图广告不被压暗 */
.banner__shade { position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.74) 0%, rgba(0,0,0,.35) 52%, rgba(0,0,0,.05) 100%); }
.banner__copy { position: absolute; left: clamp(20px, 4vw, 54px); right: 34%;
    bottom: clamp(20px, 4vw, 46px); display: flex; flex-direction: column; gap: 10px; }
.banner__title { font-size: clamp(22px, 3.3vw, 40px); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; }
.banner__sub { color: rgba(255,255,255,.82); font-size: clamp(13px, 1.2vw, 16px); max-width: 32em; }
.banner__cta { align-self: flex-start; margin-top: 4px; background: var(--tiktok-pink); color: #fff;
    border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 700; }
.banner__dots { display: flex; justify-content: center; gap: 8px; padding-top: 12px; }
.banner__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
    background: #3a3a42; cursor: pointer; transition: width .2s ease, background .2s ease; }
.banner__dot.is-on { width: 22px; background: var(--brand-teal); }

/* 只给屏幕阅读器与搜索引擎的标题（轮播取代主视觉时，页面仍需一个 h1） */
.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; }

/* ---------- 主视觉：桌面左右分栏，手机媒体带在上 ---------- */
.hero { display: flex; gap: var(--gap); align-items: stretch;
    max-width: var(--maxw); margin: 0 auto; padding: 40px 20px; min-height: 460px; }
.hero__left { flex: 1.05; display: flex; flex-direction: column; justify-content: center; }
.hero__title { font-size: clamp(34px, 5vw, 58px); font-weight: 800; line-height: 1.04;
    letter-spacing: -.02em; margin: 14px 0 0; }
.hero__sub { color: var(--text-dim); margin: 14px 0 0; max-width: 34em; }
.hero__cta { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero__points { display: flex; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none;
    color: var(--text-dim); font-size: 13px; flex-wrap: wrap; }
.btn { border-radius: 999px; padding: 11px 20px; font-size: 14px; font-weight: 600; display: inline-block; }
.btn--primary { background: var(--tiktok-pink); color: #fff; }
.btn--ghost { border: 1px solid #4a4a50; }
.hero__media { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.hero__video { grid-row: span 2; position: relative; border-radius: var(--radius); overflow: hidden; }
.hero__video video, .hero__video img { width: 100%; height: 100%; object-fit: cover; }
.hero__tile { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; }
.hero__live { position: absolute; left: 10px; top: 10px; background: rgba(254, 44, 85, .94);
    color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; }
.hero__mark { position: absolute; right: 12px; bottom: -6px; font-size: 76px; font-weight: 900;
    line-height: .78; color: transparent; -webkit-text-stroke: 1.5px rgba(254, 44, 85, .7); }

/* ---------- 数据条 ---------- */
.strip { display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
    padding: 16px max(20px, calc((100% - var(--maxw)) / 2));
    background: #08080a; border-block: 1px solid var(--line); font-size: 13px; color: var(--text-dim); }
.strip__item b { color: #fff; font-size: 20px; font-weight: 800; display: block; }

/* ---------- 内容段 ---------- */
.sec { max-width: var(--maxw); margin: 0 auto; padding: 56px 20px; }
.sec--alt { background: var(--bg-alt); max-width: none; padding-inline: 0; }
.sec--alt > * { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
/* ⚠️ 这里只能用 margin-top，不能写成 margin 简写：
   `.sec--alt > *` 靠 `margin-inline: auto` 把内容居中，而简写会把左右外边距**重置为 0**。
   两者特异性相同（0,1,0），谁写在后面谁赢 —— 曾经的 `margin: 10px 0 0` 就写在后面，
   于是宽屏上所有带 `sec--alt` 的段落（文化 / 招聘 / 薪酬）标题钉在屏幕最左边、
   与同段的卡片（居中的）对不齐，而窄屏上这个偏差小到看不出来。 */
.sec__title { font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin-top: 10px; }
.sec__body { color: var(--text-dim); margin-top: 14px; max-width: 46em; }
.sec__cta { margin-top: 18px; }
.sec__image { border-radius: var(--radius); margin-top: 20px; }
.tag { display: inline-block; border: 1px solid var(--brand-teal); color: var(--brand-teal);
    border-radius: 999px; padding: 3px 11px; font-size: 12px; letter-spacing: .04em; }
/* 小标签是 inline-block，auto 外边距对它无效 —— 在整段居中的 sec--alt 里要显式让盒子收缩并居中，
   否则它会单独贴在屏幕最左边（与上面那条是同一类"只有一个元素不对齐"的毛病）*/
.sec--alt > .tag { display: table; margin-inline: auto; }

/* ---------- 首页入口卡片（岗位 / 培养 / 薪酬 / 合作） ---------- */
/* 客户端 2026-10：这四段首页只留入口。它们不再是整段大留白，而是页面末尾的一组入口卡片：
   手机单列、桌面两列，图标 + 标题 + 右侧去向，整张卡可点。 */
.sec--entries { max-width: var(--maxw); margin: 0 auto; padding: 8px 20px 24px; }
.entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.entry-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center; gap: 14px; padding: 16px 20px;
    background: #131317; border: 1px solid var(--line); border-radius: 16px;
    transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.entry-card:hover { border-color: var(--brand-teal); background: #16161b; transform: translateY(-1px); }
.entry-card__icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
    border-radius: 13px; background: rgba(0, 191, 196, .12); font-size: 22px; }
.entry-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.entry-card__title { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.25; }
.entry-card__desc { color: var(--text-dim); font-size: 13px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; overflow-wrap: break-word; }
.entry-card__action { color: var(--tiktok-pink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.entry-card__arrow { color: var(--text-dim); font-size: 18px; line-height: 1; }
.entry-card:hover .entry-card__action, .entry-card:hover .entry-card__arrow { color: var(--brand-teal); }

/* ---------- 卡片组：桌面 3 列，平板/手机 2 列 ---------- */
/* 用 minmax(0, 1fr) 而不是 1fr：`1fr` 的最小值是 auto，卡片里一个长词/长数字就能把
   整条轨道顶宽，整页被撑出横向滚动条（窄屏规则本来就是 minmax(0,1fr)，这里补齐一致） */
.cards3, .jobs, .mods, .parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px; margin-top: 20px; }
.card, .job, .mod, .part { background: #131317; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 16px;
    /* 窄屏上卡片只有约 150px 宽，哈萨克语/俄语的长词（如 көрермендермен）会撑破卡片、把整页顶出横向滚动条。
       break-word 只在"这个词这一行放不下"时才断词，正常文本不受影响。 */
    overflow-wrap: break-word; }
.job { display: flex; flex-direction: column; gap: 6px; }
.job em, .part em { font-style: normal; color: var(--brand-teal); font-weight: 600; }
.part em { color: var(--text-dim); font-weight: 400; }
.timeline { display: flex; gap: 0; margin-top: 22px; flex-wrap: wrap; }
.timeline__item { flex: 1 1 140px; border-left: 2px solid var(--brand-teal); padding-left: 10px; }
.timeline__item b { display: block; color: var(--brand-teal); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chips span { border: 1px solid #2e2e34; border-radius: 999px; padding: 4px 12px; font-size: 13px; }
/* 分类筛选用链接（无 JS 也能用、可被收录），故 a 与 span 同一套外观 */
.chips a { border: 1px solid #2e2e34; border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--text-dim); }
.chips a.is-on { border-color: var(--brand-teal); color: var(--brand-teal); }

/* ---------- 薪资表 ---------- */
.pay { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14px; }
.pay th { text-align: left; color: var(--text-dim); font-weight: 500;
    padding: 8px; border-bottom: 1px solid var(--line); }
.pay td { padding: 10px 8px; border-bottom: 1px solid #1a1a1e; }
.pay__range { color: var(--brand-teal); font-weight: 600; }

/* ---------- 页脚 ---------- */
.ft { background: #08080a; border-top: 1px solid var(--line); }
.ft__inner { max-width: var(--maxw); margin: 0 auto; padding: 32px 20px;
    display: flex; gap: 24px; flex-wrap: wrap; }
.ft__map { flex: 0 0 320px; height: 200px; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); position: relative; }
.ft__map iframe, .ft__map img { width: 100%; height: 100%; object-fit: cover; border: 0; }
.ft__map-link { display: block; width: 100%; height: 100%; }
/* 「在 2GIS 打开」压在真地图右下角；Yandex 地图也能一键跳去客户习惯的 2GIS */
.ft__map-open { position: absolute; right: 10px; bottom: 10px; z-index: 2;
    background: rgba(10, 42, 74, .92); color: #fff; border: 1px solid rgba(0, 191, 196, .55);
    border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700; }
.ft__map-open:hover { background: var(--brand-teal); color: #04252a; }
.ft__info { flex: 1 1 260px; font-size: 13px; color: var(--text-dim); }
.ft__brand { color: #fff; font-weight: 700; margin-bottom: 10px; }
.ft__contacts { list-style: none; padding: 0; margin: 0 0 12px; }
/* 图标 + 标签 + 值同行：地址/电话/邮箱三行要能一眼分辨，而不是三个长得一样的裸值 */
.ft__contacts li { display: flex; align-items: baseline; gap: 6px; }
.ft__contacts i { font-style: normal; }
.ft__contacts b { color: #fff; font-weight: 600; }
.ft__contacts a { color: var(--brand-teal); }
.ft__social { display: flex; gap: 12px; margin-bottom: 12px; }
.ft__social a { color: var(--brand-teal); }
.ft__langs { display: flex; gap: 6px; }
.ft__langs a { border: 1px solid #2e2e34; border-radius: 5px; padding: 3px 9px; }
.ft__langs a.is-on { border-color: var(--brand-teal); color: var(--brand-teal); }

/* 员工入口：只出现在页脚底部（客户端 2026-10 不再放在顶部菜单） */
.ft__employee { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; margin-top: 16px; padding: 0 18px;
    border: 1px solid rgba(0, 191, 196, .45); border-radius: 999px;
    color: var(--brand-teal); font-size: 13px; font-weight: 700; }
.ft__employee:hover { border-color: var(--brand-teal); background: rgba(0, 191, 196, .1); }

.ft__legal { margin-top: 12px; font-size: 12px; color: #6f6f77; }

/* ---------- 员工入口页（一期占位，完整登录在二期） ---------- */
.login { max-width: var(--maxw); margin: 0 auto; padding: 72px 20px;
    display: flex; justify-content: center; }
.login__card { background: #131317; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 40px 32px; max-width: 460px; text-align: center; }
.login__title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin: 0 0 12px; }
.login__note { color: var(--text-dim); margin: 0 0 24px; }

/* ---------- 手机端常驻投递按钮（仅手机显示） ---------- */
.sticky-cta { display: none; }
.sticky-cta a { display: block; text-align: center; background: var(--tiktok-pink);
    color: #fff; border-radius: 999px; padding: 12px; font-weight: 700; }

/* ---------- 内页页头（培养计划 / 薪酬待遇 / 伙伴合作） ---------- */
.page-head { max-width: var(--maxw); margin: 0 auto; padding: 48px 20px 8px; }
.page-head .sec__title { margin-top: 10px; }
.page-head .sec__body { margin-top: 12px; }

/* ---------- 岗位详情页 ---------- */
.crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--text-dim); }
.crumb a { color: var(--text-dim); }
.crumb b { color: var(--text); font-weight: 600; }
.vac-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.vac-head__meta { margin: 6px 0 0; font-size: 13px; color: var(--text-dim); }
.vac-head__pay { margin-left: auto; text-align: right; }
.vac-head__pay .pay__range { font-size: 18px; }
.vac-apply { margin-top: 16px; }
.vac-seg { margin-top: 24px; }
.vac-seg .sec__title { font-size: 20px; margin: 0; }

/* ---------- 投递表单 ---------- */
.apply-form { margin-top: 20px; max-width: 720px; }
.apply-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.apply-form label { font-size: 13px; color: var(--text-dim); }
.apply-form input[type="text"], .apply-form input[type="tel"], .apply-form input[type="email"],
.apply-form input[type="file"], .apply-form textarea, .apply-form select {
    width: 100%; background: #0b0b0d; border: 1px solid var(--line); border-radius: 8px;
    padding: 10px 12px; color: var(--text); font: inherit; font-size: 14px; }
.apply-form input[type="file"] { padding: 8px; }
.apply-form textarea { resize: vertical; }
.apply-form button { align-self: flex-start; border: 0; cursor: pointer; }
/* 语言能力三行：语言名固定宽度，下拉跟在后面，窄屏上也不至于挤成一团 */
.lang-grid { display: flex; flex-direction: column; gap: 8px; }
.lang-row { display: flex; align-items: center; gap: 10px; }
.lang-row > span { flex: 0 0 110px; font-size: 14px; color: var(--text); }
.lang-row select { max-width: 220px; }
.apply-error { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; font-size: 14px;
    background: rgba(254, 44, 85, .12); border: 1px solid var(--tiktok-pink); color: #ffd7e0; }

/* ---------- 平板 ---------- */
@media (max-width: 1024px) {
    /* minmax(0, 1fr) 而不是 1fr：1fr 的最小值是内容的 min-content（最长不可断词的宽度），
       窄屏上岗位卡片里的「260 000 – 500 000 ₸」这类内容会把整条轨道顶宽，
       于是整页横向溢出（375px 上实测 40px，首页同此）。minmax(0, …) 允许轨道被压缩到视口内。 */
    .cards3, .jobs, .mods, .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { min-height: 380px; }
}

/* ---------- 平板竖屏（768–900px）：导航挤一挤，别让它顶宽整页 ---------- */
/*
 * 汉堡菜单的断点是 ≤767px，而完整导航（品牌 + 九项链接 + 四语切换）在俄语下要约 860px 宽 ——
 * 于是 768–859px 这一段既没有汉堡、又装不下完整导航：整页可以左右拖（768px 实测溢出 91px，
 * 溢出的正是右侧的四语切换）。这里把间距与字号收一档让它装下，而不是把汉堡断点提到 900 ——
 * 那会让 iPad 竖屏（768）丢掉完整导航，是另一种倒退。
 */
@media (min-width: 768px) and (max-width: 900px) {
    .nav { gap: 12px; }
    .nav__links { gap: 10px; margin-left: 6px; font-size: 13px; }
    .nav__right { gap: 8px; }
    .nav__lang { gap: 4px; font-size: 11px; }
    .nav__lang a { padding: 3px 7px; }
    .nav__link.is-primary, .nav__link.is-accent { padding: 5px 10px; }
}

/* ---------- 手机：单列，媒体带移到最上方 ---------- */
@media (max-width: 767px) {
    .nav__links { display: none; position: absolute; left: 0; right: 0; top: 100%;
        z-index: 30; flex-direction: column; background: #0d0d10;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
        max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain;
        padding: 12px 20px; gap: 4px; }
    .nav__links.is-open { display: flex; animation: nav-drop .18s ease-out; }
    .nav__links a { min-height: 44px; display: flex; align-items: center; padding: 0 4px; }
    @keyframes nav-drop {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: none; }
    }
    @media (prefers-reduced-motion: reduce) {
        .nav__links.is-open { animation: none; }
        .nav__burger i { transition: none; }
    }
    .nav__burger { display: block; }

    .hero { flex-direction: column; padding: 0 0 28px; min-height: 0; }
    /* 媒体带在上：用 order 把右侧媒体提到文字之前 */
    .hero__media { order: -1; height: 220px; position: relative;
        grid-template-columns: 1fr; grid-template-rows: 1fr; }
    .hero__tile, .hero__mark { display: none; }
    .hero__left { padding: 20px 20px 0; }

    /* 轮播广告在手机上铺满宽度，比例换成 4:3，文字压在左下角 */
    .banner { padding: 14px 12px 6px; }
    .banner__slide { aspect-ratio: 4 / 3; max-height: 380px; border-radius: 14px; }
    .banner__copy { left: 18px; right: 18px; bottom: 18px; }
    .banner__title { font-size: 24px; }
    .banner__sub { font-size: 13px; }
    .banner__cta { padding: 8px 15px; font-size: 13px; }

    /* 与上面平板档同一条：minmax(0, 1fr) 防止长内容把轨道顶宽、整页横向溢出 */
    .cards3, .jobs, .mods, .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sec { padding: 36px 20px; }

    /* 入口卡片在手机上改为单列，收窄内边距与字号，右侧箭头让位给去向文字 */
    .sec--entries { padding: 6px 14px 20px; }
    .entries { grid-template-columns: 1fr; gap: 12px; }
    .entry-card { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px;
        padding: 14px 15px; border-radius: 14px; }
    .entry-card__icon { width: 40px; height: 40px; font-size: 20px; border-radius: 11px; }
    .entry-card__title { font-size: 16px; }
    .entry-card__action { font-size: 12px; }
    .entry-card__arrow { display: none; }

    .strip { gap: 18px; }

    /* 员工入口在手机上占满整行，滚到页脚底部时好点 */
    .ft__employee { display: flex; width: 100%; }

    /* 薪资表在手机上收成两列可横向滚动 */
    .pay { display: block; overflow-x: auto; white-space: nowrap; }

    .sticky-cta { display: block; position: sticky; bottom: 0; z-index: 20;
        padding: 10px 16px; background: var(--bg); border-top: 1px solid var(--line); }
}
