/* ============================================
   全局基础样式 - 继承原模板的 RTL 与渐变主题
   ============================================ */
/* 语言切换按钮样式 */
.lang-switch-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #E2E8F0;
  background: white;
  color: #4F46E5;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.lang-switch-btn:hover {
  background: #EEF2FF;
  border-color: #4F46E5;
}

* {
  font-family: inherit;
}

body {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  min-height: 100vh;
}

/* 页面容器：默认隐藏，激活时显示 */
.page {
  display: none;
  animation: slideUp 0.4s ease-out;
}

.page.active {
  display: block;
}

/* ============================================
   模态框样式 - 用于职位详情、编辑资料等
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-overlay.active { display: block; }

.modal-container {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-container.active { display: flex; }

.modal-content {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.4s ease-out;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

/* ============================================
   顶部导航栏与底部标签栏
   ============================================ */
.nav-bar {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.tab-bar {
  position: fixed;
  width: 100%;
  bottom: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.tab-btn {
  transition: all 0.2s ease;
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
}

.tab-btn.active { color: #4F46E5; }

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: 50%;
  transform: translateX(50%);
  width: 5px;
  height: 5px;
  background-color: #4F46E5;
  border-radius: 50%;
}

/* ============================================
   通用组件样式
   ============================================ */
.gradient-bg {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
}

.section-title {
  position: relative;
  padding-right: 15px;
}

.section-title::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  background: linear-gradient(to bottom, #4F46E5, #7C3AED);
  border-radius: 5px;
}

.search-bar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.7);
  transition: all 0.3s ease;
}

.search-bar:focus-within {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
  border-color: #4F46E5;
}

.feature-btn {
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.feature-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.job-card {
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  cursor: pointer;
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* ============================================
   首页信息流模块样式
   ============================================ */
.feed-module {
  /* 每个模块独立容器，便于日后整体隐藏/删除 */
}

.feed-module-title {
  font-size: 1.0625rem;
  font-weight: 700;
}

.feed-card-title {
  font-size: 0.9375rem;
  line-height: 1.4;
}

.feed-card-sub {
  font-size: 0.8125rem;
}

.feed-card-summary {
  font-size: 0.75rem;
  line-height: 1.5;
}

.feed-card-thumb {
  border: 1px solid #E2E8F0;
}

.feed-loading {
  font-size: 0.875rem;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.carousel-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top;
  border-radius: 16px;
  transition: opacity 0.5s ease;
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot.active {
  background: white;
  width: 20px;
  border-radius: 4px;
}

/* 职位模态框内部样式（渐变标题区） */
.job-header {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  color: white;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}

.apply-btn {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  color: white;
  padding: 15px 40px;
  border-radius: 12px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

.apply-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.benefit-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.benefit-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
}

/* ============================================
   详情页（职位模态框）专用样式
   ============================================ */

/* 模态框内容区：改为可纵向滚动，避免底部联系电话等内容被遮挡 */
.modal-content.job-detail-modal {
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 90vh;
  -webkit-overflow-scrolling: touch; /* iOS 惯性滚动 */
  overscroll-behavior: contain;
}

/* 详情页关闭按钮：sticky 定位，滚动时始终可见 */
.job-detail-modal .close-btn {
  position: sticky;
  top: 16px;
  left: 16px;
  margin: 16px 0 -40px 16px; /* 负边距使按钮浮于轮播图之上 */
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  z-index: 30;
}

/* 详情页顶部图片轮播 - 宽度 100% 自适应 */
.detail-carousel {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #E2E8F0;
  direction: ltr; /* 轮播滑动不受 RTL 影响，保持从左向右切换 */
}

.detail-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.detail-carousel-slide {
  min-width: 100%;
  height: 100%;
}

.detail-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 轮播渐变遮罩，与标题区自然过渡 */
.detail-carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 50%);
  pointer-events: none;
}

.detail-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.detail-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
}

.detail-carousel-dot.active {
  background: #fff;
  width: 18px;
  border-radius: 4px;
}

/* 详情页字号体系 - 保证阅读舒适 */
/* 详情正文区：底部留出安全间距，确保联系电话模块可完整滚动查看 */
.job-detail-body {
  padding: 20px 20px max(32px, env(safe-area-inset-bottom, 24px));
}

.job-header {
  padding: 20px 20px 22px;
  border-radius: 0;
}

.job-detail-title {
  font-size: 1.375rem;   /* 22px 主标题 */
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.job-detail-subtitle {
  font-size: 0.9375rem;  /* 15px 公司/地点 */
  opacity: 0.92;
  line-height: 1.5;
}

.job-detail-section-title {
  font-size: 1.0625rem;  /* 17px 区块标题 */
  font-weight: 700;
  margin-bottom: 12px;
  color: #1E293B;
}

.job-detail-text {
  font-size: 0.9375rem;  /* 15px 正文 */
  line-height: 1.75;
  color: #475569;
}

.job-detail-meta-label {
  font-size: 0.8125rem;  /* 13px 信息标签 */
  color: #64748B;
  margin-bottom: 4px;
}

.job-detail-meta-value {
  font-size: 1.0625rem;  /* 17px 信息数值 */
  font-weight: 700;
  color: #1E293B;
  line-height: 1.4;
}

.job-detail-meta-value.primary {
  color: #4F46E5;
}

.job-detail-tag {
  font-size: 0.75rem;    /* 12px 标签 */
  padding: 4px 10px;
}

.job-detail-list-item {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #475569;
}

.job-detail-footer {
  font-size: 0.8125rem;
  color: #94A3B8;
  text-align: center;
  margin-top: 16px;
}

/* 详情页打开时隐藏底部标签栏（避免「创作」等 Tab 遮挡详情底部内容） */
.tab-bar.tab-bar-hidden {
  display: none;
}

/* 维吾尔语模式下联系电话模块：统一维语字体、字号与对比度 */
html[lang="ug"] .contact-phone-header {
  font-family: 'ALKATIP Tor Tom', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #4338CA;
}

html[lang="ug"] .contact-phone-mask p,
html[lang="ug"] .contact-phone-hint {
  font-family: 'ALKATIP Tor Tom', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: #475569;
}

html[lang="ug"] .contact-unlock-btn,
html[lang="ug"] .contact-call-btn {
  font-family: 'ALKATIP Tor Tom', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
}

html[lang="ug"] .contact-phone-number {
  font-family: 'ALKATIP Tor Tom', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

/* Font Awesome 图标保持专用字体，避免被维语全局字体覆盖 */
.contact-phone-module .fa,
.contact-phone-module .fas,
.contact-phone-module .far {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900;
}

/* 中文模式下联系电话模块使用系统无衬线字体，保证清晰 */
html[lang="zh-CN"] .contact-phone-header,
html[lang="zh-CN"] .contact-phone-mask p,
html[lang="zh-CN"] .contact-unlock-btn,
html[lang="zh-CN"] .contact-call-btn,
html[lang="zh-CN"] .contact-phone-hint {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 底部联系电话模块 */
.contact-phone-module {
  margin-top: 8px;
  margin-bottom: 20px;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  background: #F8FAFC;
}

.contact-phone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 100%);
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #4F46E5;
}

.contact-phone-header i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(79,70,229,0.12);
}

.contact-phone-body {
  padding: 16px;
}

/* 号码隐藏状态 */
.contact-phone-mask {
  text-align: center;
  padding: 8px 4px 4px;
}

.contact-phone-mask i.fa-lock {
  font-size: 1.5rem;
  color: #94A3B8;
  margin-bottom: 8px;
}

.contact-phone-mask p {
  font-size: 0.9375rem;
  color: #64748B;
  margin-bottom: 14px;
}

.contact-unlock-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 24px;
  border: none;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(79,70,229,0.25);
}

.contact-unlock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(79,70,229,0.35);
}

/* 号码已解锁状态 */
.contact-phone-revealed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-phone-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1E293B;
  letter-spacing: 0.5px;
}

.contact-phone-hint {
  font-size: 0.8125rem;
  color: #10B981;
  margin-top: 4px;
}

.contact-call-btn {
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 12px;
  background: #10B981;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.contact-call-btn:hover {
  background: #059669;
}

.create-template {
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.create-template:hover,
.create-template.selected {
  border-color: #4F46E5;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
}

.editor-area {
  min-height: 200px;
  border: 2px dashed #CBD5E1;
  border-radius: 16px;
  transition: border-color 0.3s;
}

.editor-area:focus-within {
  border-color: #4F46E5;
}

/* contenteditable 占位文字（双语切换时由 data-placeholder 更新） */
#editorContent:empty::before {
  content: attr(data-placeholder);
  color: #94A3B8;
  pointer-events: none;
}

.tool-btn {
  transition: all 0.2s;
  cursor: pointer;
}

.tool-btn:hover,
.tool-btn.active {
  background: #EEF2FF;
  color: #4F46E5;
}

/* ============================================
   添加页样式
   ============================================ */
.upload-zone {
  border: 2px dashed #CBD5E1;
  border-radius: 16px;
  transition: all 0.3s;
  cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: #4F46E5;
  background: #EEF2FF;
}

.upload-preview {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  outline: none;
  transition: all 0.3s;
}

.form-input:focus {
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}

.category-chip {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.category-chip.selected {
  background: #4F46E5;
  color: white;
  border-color: #4F46E5;
}

/* ============================================
   消息页样式
   ============================================ */
.msg-tab {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: #F1F5F9;
  color: #64748B;
}

.msg-tab.active {
  background: #4F46E5;
  color: white;
}

.message-item {
  transition: all 0.2s;
  cursor: pointer;
}

.message-item:hover {
  background: #F8FAFC;
}

.message-item.unread {
  background: #EEF2FF;
}

.message-item.unread::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: #4F46E5;
  border-radius: 4px;
}

/* ============================================
   我的页面样式
   ============================================ */
.profile-header {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  border-radius: 0 0 24px 24px;
  /* 顶部留白：避开固定导航栏，确保头像与用户信息完整显示 */
  padding: 88px 20px 24px;
  color: white;
}

.profile-user-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.35);
  object-fit: cover;
  flex-shrink: 0;
}

.profile-user-info {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
  word-break: break-word;
}

.profile-phone {
  font-size: 0.875rem;
  opacity: 0.92;
  margin-bottom: 6px;
  direction: ltr;
  text-align: start;
  unicode-bidi: plaintext;
}

.profile-bio {
  font-size: 0.8125rem;
  opacity: 0.85;
  line-height: 1.55;
  word-break: break-word;
}

.profile-edit-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.profile-edit-btn:hover {
  background: rgba(255, 255, 255, 0.32);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.menu-item {
  transition: all 0.2s;
  cursor: pointer;
}

.menu-item:hover {
  background: #F8FAFC;
}

.stat-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

/* ============================================
   我的页面 - 子页面（发布/收藏/历史/帮助）
   ============================================ */
.profile-sub-page {
  background: #F1F5F9;
  min-height: 100vh;
}

.sub-page-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 72px 16px 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.sub-page-back {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: #F1F5F9;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sub-page-title {
  flex: 1;
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1E293B;
}

.sub-page-nav-spacer {
  width: 40px;
  flex-shrink: 0;
}

.sub-page-content {
  padding: 16px 20px 24px;
}

.sub-page-summary {
  font-size: 0.8125rem;
  color: #64748B;
  margin-bottom: 14px;
  text-align: start;
}

.profile-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-list-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: start;
}

.profile-list-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
}

.profile-list-card img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-list-card-body {
  flex: 1;
  min-width: 0;
}

.profile-list-card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.profile-list-card-tag.tag-job { background: #DBEAFE; color: #1D4ED8; }
.profile-list-card-tag.tag-house { background: #FEF3C7; color: #B45309; }
.profile-list-card-tag.tag-shop { background: #D1FAE5; color: #047857; }
.profile-list-card-tag.tag-car { background: #EDE9FE; color: #6D28D9; }

.profile-list-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 4px;
  line-height: 1.4;
  word-break: break-word;
}

.profile-list-card-summary {
  font-size: 0.8125rem;
  color: #64748B;
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-list-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  color: #94A3B8;
}

.profile-list-card-status {
  font-weight: 600;
  color: #10B981;
}

.profile-list-card-status.pending {
  color: #F59E0B;
}

.profile-empty {
  text-align: center;
  padding: 48px 24px;
  color: #94A3B8;
}

.profile-empty i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.profile-empty p {
  font-size: 0.9375rem;
}

/* 帮助中心 */
.help-section {
  margin-bottom: 20px;
}

.help-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 12px;
  text-align: start;
}

.help-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}

.help-guide-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  text-align: start;
}

.help-guide-card i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #EEF2FF;
  color: #4F46E5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 1rem;
}

.help-guide-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 6px;
}

.help-guide-card p {
  font-size: 0.75rem;
  color: #64748B;
  line-height: 1.5;
}

.help-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-faq-item {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.help-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  background: #fff;
  cursor: pointer;
  text-align: start;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}

.help-faq-question i {
  color: #94A3B8;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.help-faq-item.open .help-faq-question i {
  transform: rotate(180deg);
}

.help-faq-answer {
  display: none;
  padding: 0 16px 14px;
  font-size: 0.8125rem;
  color: #64748B;
  line-height: 1.6;
  text-align: start;
}

.help-faq-item.open .help-faq-answer {
  display: block;
}

html[dir="rtl"] .sub-page-back .fa-arrow-left {
  transform: scaleX(-1);
}

/* Toast 提示 */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #1E293B;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.space-rtl > * + * {
  margin-right: 0.5rem;
  margin-left: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============================================
   排版方向：中文 LTR / 维吾尔语 RTL
   ============================================ */

/* 中文模式：系统无衬线字体，从左到右 */
html[dir="ltr"] body,
html[dir="ltr"] body *:not(.fa):not(.fas):not(.far):not(.fab) {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html[dir="ltr"] .section-title,
html[dir="ltr"] .form-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 维语模式：专用字体栈 + RTL，图标字体除外 */
html[dir="rtl"] body,
html.lang-ug body {
  font-family: 'ALKATIP Tor Tom', 'ALKATIP Basma Tom', 'ALKATIP Esliye Tom',
    'UKIJ Tuz Tom', 'UKIJ Esliye Tom', 'UKIJ Tuz', 'UKIJ Esliye',
    'Microsoft Uighur', 'Segoe UI', sans-serif;
  font-feature-settings: 'liga' 1;
}

html[dir="rtl"] body *:not(.fa):not(.fas):not(.far):not(.fab):not(.fab),
html.lang-ug body *:not(.fa):not(.fas):not(.far):not(.fab) {
  font-family: inherit;
}

html[dir="rtl"] .section-title,
html[dir="rtl"] .form-label,
html[dir="rtl"] .job-publish-header-title,
html[dir="rtl"] .feed-module-title,
html.lang-ug .section-title,
html.lang-ug .form-label {
  font-family: 'ALKATIP Tor Tom', 'UKIJ Tuz Tom', 'UKIJ Esliye Tom',
    'Microsoft Uighur', sans-serif;
}

/* RTL 下箭头/返回图标镜像 */
html[dir="rtl"] .subcat-option-arrow,
html[dir="rtl"] .publish-subtype-arrow,
html[dir="rtl"] .menu-item .fa-chevron-left,
html[dir="rtl"] .feed-card .fa-chevron-left {
  transform: scaleX(-1);
}

html[dir="ltr"] .subcat-option-arrow,
html[dir="ltr"] .publish-subtype-arrow,
html[dir="ltr"] .menu-item .fa-chevron-left,
html[dir="ltr"] .feed-card .fa-chevron-left {
  transform: scaleX(-1);
}

html[dir="ltr"] .back-icon {
  transform: rotate(180deg);
}

html[dir="rtl"] .back-icon {
  transform: none;
}

.add-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748B;
  font-size: 0.875rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}

.add-back-btn:hover {
  color: #4F46E5;
}

.btn-icon-inline {
  margin-inline-end: 8px;
}

/* ============================================
   二级分类选择弹窗（首页）
   ============================================ */

.subcat-modal-container {
  align-items: flex-end;
  padding: 0;
}

.subcat-modal-panel {
  width: 100%;
  max-width: 480px;
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 32px;
  animation: slideUp 0.35s ease-out;
  position: relative;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
}

.subcat-modal-close {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 2;
}

.subcat-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-top: 8px;
}

.subcat-modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.subcat-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1E293B;
}

.subcat-modal-subtitle {
  font-size: 0.8125rem;
  color: #64748B;
  margin-top: 2px;
}

.subcat-modal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subcat-option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: start;
}

.subcat-option-card:hover {
  border-color: #4F46E5;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.12);
  transform: translateY(-2px);
}

.subcat-option-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.subcat-option-text {
  flex: 1;
  min-width: 0;
}

.subcat-option-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #1E293B;
}

.subcat-option-desc {
  display: block;
  font-size: 0.8125rem;
  color: #94A3B8;
  margin-top: 2px;
}

.subcat-option-arrow {
  color: #CBD5E1;
  font-size: 0.875rem;
}

/* ============================================
   发布页多步骤 UI
   ============================================ */

.publish-industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  border-radius: 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.publish-industry-card:hover {
  border-color: #4F46E5;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.15);
  transform: translateY(-3px);
}

.publish-industry-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.publish-industry-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1E293B;
}

.publish-subtype-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: start;
}

.publish-subtype-card:hover {
  border-color: #4F46E5;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.1);
}

.publish-subtype-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.publish-subtype-text {
  flex: 1;
}

.publish-subtype-title {
  display: block;
  font-weight: 600;
  color: #1E293B;
}

.publish-subtype-desc {
  display: block;
  font-size: 0.8125rem;
  color: #94A3B8;
  margin-top: 2px;
}

.publish-subtype-arrow {
  color: #CBD5E1;
}
