/* ============================================================
   career.css — 加入我们页专属样式（v3.0 首页完整签名风）
   完整套用首页 home63.css 卡片语言：155° 对角渐变 + 四角角标 + 双层阴影 + 圆形内发光图标。
   依赖：base.css、layout.css、dark-base.css。
   ============================================================ */

/* ========== 为什么加入（福利） ========== */
.perk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.perk-card {
  position: relative; padding: 36px 28px; border-radius: 14px;
  border: 1px solid rgba(12, 161, 184, 0.18);
  background: linear-gradient(155deg, rgba(12, 161, 184, 0.07) 0%, rgba(10, 22, 40, 0.5) 60%, rgba(5, 13, 26, 0.55) 100%);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(93, 194, 210, 0.08);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  text-align: center;
}
.perk-card::before,
.perk-card::after {
  content: ''; position: absolute; width: 12px; height: 12px;
  border-color: rgba(93, 194, 210, 0.45); border-style: solid;
  transition: border-color 0.4s var(--ease); z-index: 1;
}
.perk-card::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.perk-card::after { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }
.perk-card:hover {
  transform: translateY(-5px);
  border-color: rgba(93, 194, 210, 0.45);
  box-shadow: 0 18px 44px rgba(12, 161, 184, 0.2), inset 0 2px 0 rgba(93, 194, 210, 0.32);
}
.perk-card:hover::before,
.perk-card:hover::after { border-color: var(--lake-light); }
.perk-card:hover .perk-icon {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 22px rgba(12, 161, 184, 0.35), inset 0 0 14px rgba(12, 161, 184, 0.18);
}
/* 图标：圆形 + 内发光 */
.perk-icon {
  width: 48px; height: 48px; margin: 0 auto 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--lake-light);
  background: rgba(12, 161, 184, 0.12);
  border: 1px solid rgba(12, 161, 184, 0.22);
  box-shadow: inset 0 0 14px rgba(12, 161, 184, 0.14);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.perk-icon svg { width: 24px; height: 24px; }
.perk-title {
  font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.perk-desc { font-size: 13px; color: rgba(255, 255, 255, 0.68); line-height: 1.8; }

/* ========== 招聘职位 ========== */
.job-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.job-tab {
  padding: 9px 26px; font-size: 14px; font-family: inherit;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(12, 161, 184, 0.06);
  border: 1px solid rgba(12, 161, 184, 0.2);
  border-radius: 24px; cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease);
}
.job-tab:hover { border-color: var(--lake); color: var(--lake-light); box-shadow: 0 0 14px rgba(12, 161, 184, 0.25); }
.job-tab.active {
  background: linear-gradient(135deg, var(--lake), var(--lake-dark));
  color: var(--white); border-color: transparent;
  box-shadow: 0 6px 18px rgba(12, 161, 184, 0.35);
}
.job-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.job-card {
  position: relative; padding: 28px 30px; border-radius: 14px;
  border: 1px solid rgba(12, 161, 184, 0.18);
  background: linear-gradient(155deg, rgba(12, 161, 184, 0.07) 0%, rgba(10, 22, 40, 0.5) 60%, rgba(5, 13, 26, 0.55) 100%);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(93, 194, 210, 0.08);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.job-card::before,
.job-card::after {
  content: ''; position: absolute; width: 12px; height: 12px;
  border-color: rgba(93, 194, 210, 0.45); border-style: solid;
  transition: border-color 0.4s var(--ease); z-index: 1;
}
.job-card::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.job-card::after { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }
.job-card:hover {
  transform: translateY(-4px);
  border-color: rgba(93, 194, 210, 0.45);
  box-shadow: 0 18px 44px rgba(12, 161, 184, 0.2), inset 0 2px 0 rgba(93, 194, 210, 0.32);
}
.job-card:hover::before,
.job-card:hover::after { border-color: var(--lake-light); }
.job-card:hover .job-apply { color: var(--lake-light); gap: 8px; }
.job-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.job-title {
  font-size: 18px; font-weight: 700; color: var(--white);
  text-shadow: 0 0 10px rgba(93, 194, 210, 0.25);
}
.job-dept-tag {
  flex-shrink: 0; font-size: 11px; color: var(--lake-light);
  background: rgba(12, 161, 184, 0.12);
  border: 1px solid rgba(12, 161, 184, 0.28);
  padding: 4px 12px; border-radius: 3px;
}
.job-tags { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.job-tags span { display: inline-flex; align-items: center; gap: 5px; }
.job-tags svg { width: 14px; height: 14px; color: var(--lake); }
.job-desc { font-size: 13.5px; color: rgba(255, 255, 255, 0.68); line-height: 1.8; margin-bottom: 16px; }
.job-apply {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-en); font-size: 13px; font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s var(--ease);
}
.job-apply::after { content: '→'; }
.job-empty { grid-column: 1 / -1; text-align: center; padding: 50px 20px; color: rgba(255, 255, 255, 0.4); display: none; }

/* ========== 职位卡片：可展开详情 + 热门标 + 底部操作条 ========== */
.job-hot { color: #ff7a7a !important; font-weight: 700; }
.job-tags .job-hot-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: #ff7a7a;
  background: rgba(255, 122, 122, 0.1);
  border: 1px solid rgba(255, 122, 122, 0.35);
  padding: 2px 8px; border-radius: 3px;
}
.job-detail {
  max-height: 0; overflow: hidden; margin-bottom: 0;
  transition: max-height 0.45s var(--ease), margin-bottom 0.45s var(--ease);
}
.job-card.open .job-detail { margin-bottom: 18px; }
.job-detail-block { padding: 14px 0; border-top: 1px solid rgba(12, 161, 184, 0.15); }
.job-detail-label {
  font-size: 12px; color: var(--lake-light); margin-bottom: 8px;
  letter-spacing: 1px; text-transform: uppercase;
}
.job-detail-content {
  font-size: 13px; color: rgba(255, 255, 255, 0.72); line-height: 1.85;
}
.job-detail-content :is(p, ul, ol) { margin: 0 0 6px; }
.job-detail-content :last-child { margin-bottom: 0; }
.job-detail-content img { max-width: 100%; border-radius: 6px; }
.job-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 6px; border-top: 1px solid rgba(12, 161, 184, 0.12);
}
.job-toggle {
  font-family: var(--font-en); font-size: 13px; font-weight: 600;
  color: rgba(255, 255, 255, 0.6); cursor: pointer;
  transition: color 0.3s var(--ease);
}
.job-toggle:hover { color: var(--lake-light); }
.job-toggle::after { content: '▾'; margin-left: 5px; display: inline-block; transition: transform 0.35s var(--ease); }
.job-card.open .job-toggle::after { transform: rotate(180deg); }

/* ========== 投递方式 ========== */
.apply-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.apply-info h2 { margin-bottom: 20px; }
.apply-info p { font-size: 15px; color: rgba(255, 255, 255, 0.68); line-height: 1.9; margin-bottom: 24px; }
.apply-email-box {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  background: linear-gradient(135deg, var(--deep-mid), var(--deep));
  border: 1px solid rgba(12, 161, 184, 0.25);
  border-radius: 12px; color: var(--white);
}
.apply-email-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  background: rgba(12, 161, 184, 0.18);
  border: 1px solid rgba(12, 161, 184, 0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--lake-light);
  box-shadow: inset 0 0 12px rgba(12, 161, 184, 0.16);
}
.apply-email-label { font-size: 12px; color: rgba(255, 255, 255, 0.5); letter-spacing: 1px; }
.apply-email-val { font-family: var(--font-en); font-size: 16px; color: var(--white); }
.apply-note { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, 0.5); line-height: 1.8; }
.apply-form {
  position: relative; padding: 36px; border-radius: 14px;
  border: 1px solid rgba(12, 161, 184, 0.18);
  background: linear-gradient(155deg, rgba(12, 161, 184, 0.07) 0%, rgba(10, 22, 40, 0.5) 60%, rgba(5, 13, 26, 0.55) 100%);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(93, 194, 210, 0.08);
}

/* ========== 下拉框(select)深色主题适配（防 option 白底白字 + 自定义白色箭头） ========== */
.apply-form select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: rgba(12, 161, 184, 0.08);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 38px;
  color: var(--white);
}
.apply-form select.form-control option {
  background-color: #0a1628;
  color: #ffffff;
}
/* 必填星号(置于 label 内前部，醒目红色) */
.apply-form .req { color: #ff5a5a; margin-right: 4px; font-weight: 700; }

/* ========== RESPONSIVE (career) ========== */
@media (max-width: 1024px) {
  .perk-grid { grid-template-columns: repeat(2, 1fr); }
  .apply-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .perk-grid { grid-template-columns: 1fr; }
  .job-grid { grid-template-columns: 1fr; }
  .apply-form { padding: 28px 24px; }
}
