/* =============================================
   重庆烟草2026年招聘网站 — 全局样式
   ============================================= */

/* ─── 重置与基础 ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  font-size: 16px;
  color: #222;
  background: #f5f5f5;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── 页面渐入动画 ─── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── 顶部导航（白色毛玻璃） ─── */
header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(4, 155, 78, 0.15);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  animation: slideDown 0.5s ease-out;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 56px;
}

.logo-img {
  height: 38px;
  width: auto;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.06);
}

nav {
  margin-left: auto;
}

nav a {
  display: inline-block;
  color: #049b4e;
  text-decoration: none;
  padding: 0 18px;
  line-height: 56px;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease;
  position: relative;
}

/* 导航链接底部呼吸下划线 */
nav a::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: #049b4e;
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: center;
}

nav a:hover::after,
nav a.active::after {
  transform: scaleX(1);
}

nav a:hover {
  background: rgba(4, 155, 78, 0.07);
  color: #026b38;
}

nav a.active {
  background: rgba(4, 155, 78, 0.1);
  color: #049b4e;
  font-weight: bold;
}

/* ─── 导航占位 ─── */
.nav-placeholder {
  height: 56px;
}

/* ─── Banner ─── */
.banner {
  width: 100%;
  overflow: hidden;
}

.banner img {
  width: 100%;
  display: block;
  transition: transform 8s ease-out;
}

/* 轻微 Ken Burns 效果 */
.banner:hover img {
  transform: scale(1.03);
}

/* ─── 页面主体 ─── */
.page-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px 40px;
  flex: 1;
}

/* ─── 内容卡片 ─── */
.card {
  background: #fff;
  border: 1px solid #e8e8e8;
  padding: 28px 32px;
  margin-top: 24px;
  border-radius: 6px;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  animation: fadeInUp 0.6s ease-out both;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.15s; }
.card:nth-child(3) { animation-delay: 0.25s; }

.card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
  border-color: rgba(4, 155, 78, 0.25);
}

.card-title {
  font-size: 22px;
  font-weight: bold;
  color: #049b4e;
  border-left: 4px solid #049b4e;
  padding-left: 10px;
  margin-bottom: 18px;
  animation: none;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.card:hover .card-title {
  color: #026b38;
  border-color: #026b38;
}

.intro-text {
  font-size: 16px;
  line-height: 1.95;
  text-indent: 2em;
  color: #333;
  animation: none;
}

.intro-text + .intro-text {
  margin-top: 10px;
}

/* ─── Tab ─── */
.tabs {
  display: flex;
  border-bottom: 2px solid #049b4e;
  margin-bottom: 24px;
}

.tab-btn {
  padding: 10px 28px;
  font-size: 16px;
  cursor: pointer;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-bottom: none;
  margin-right: 4px;
  color: #555;
  transition: background 0.25s ease, color 0.25s ease,
              transform 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  border-radius: 4px 4px 0 0;
}

.tab-btn:hover {
  background: rgba(4, 155, 78, 0.1);
  color: #049b4e;
  transform: translateY(-2px);
  box-shadow: 0 -2px 8px rgba(4, 155, 78, 0.12);
}

.tab-btn.active {
  background: #049b4e;
  color: #fff;
  border-color: #049b4e;
  font-weight: bold;
  transform: translateY(-1px);
  box-shadow: 0 -3px 10px rgba(4, 155, 78, 0.2);
}

/* Tab 内容切换动画 */
.tab-content {
  display: none;
  animation: fadeIn 0.35s ease-out;
}

.tab-content.active {
  display: block;
}

/* ─── 招聘公告内容 ─── */
.notice-intro {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
  text-indent: 2em;
  margin-bottom: 18px;
}

.notice-h2 {
  font-size: 16px;
  font-weight: bold;
  margin: 18px 0 8px;
  color: #111;
}

.notice-h3 {
  font-size: 16px;
  font-weight: bold;
  margin: 12px 0 6px 1em;
  color: #333;
}

.notice-p {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
  margin-bottom: 6px;
  padding-left: 1em;
}

.notice-list {
  padding-left: 3em;
  line-height: 1.9;
  color: #333;
  margin-bottom: 6px;
  font-size: 16px;
}

.notice-list li {
  margin-bottom: 4px;
}

.notice-sub {
  padding-left: 2em;
  line-height: 1.9;
  color: #444;
  margin-bottom: 4px;
}

.notice-sub li {
  margin-bottom: 3px;
}

hr.divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 16px 0;
}

.attachments {
  margin-top: 20px;
  padding: 12px 16px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  font-size: 16px;
  border-radius: 4px;
  transition: border-color 0.25s ease;
}

.attachments:hover {
  border-color: rgba(4, 155, 78, 0.3);
}

.attachments strong {
  display: block;
  margin-bottom: 6px;
}

.attachments ol {
  padding-left: 2em;
  color: #555;
  line-height: 1.8;
}

.notice-date {
  text-align: right;
  color: #555;
  margin-top: 20px;
  font-size: 16px;
}

/* ─── 招聘岗位空页 ─── */
.empty-tip {
  text-align: center;
  padding: 60px 0;
  color: #999;
  font-size: 16px;
  animation: fadeIn 1s ease-out;
}

/* ─── 页脚 ─── */
footer {
  background: #049b4e;
  color: #fff;
  text-align: center;
  font-size: 16px;
  padding: 18px;
  margin-top: auto;
}

/* ─── 移动端适配 ─── */
@media (max-width: 600px) {
  .nav-inner {
    padding: 0 12px;
    height: 50px;
  }

  .logo-img {
    height: 30px;
  }

  nav a {
    padding: 0 10px;
    line-height: 50px;
    font-size: 14px;
  }

  nav a::after {
    bottom: 6px;
    left: 10px;
    right: 10px;
  }

  .nav-placeholder {
    height: 50px;
  }

  .card {
    padding: 18px 16px;
  }

  .card-title {
    font-size: 18px;
  }

  .intro-text {
    font-size: 15px;
  }

  .tabs {
    flex-wrap: nowrap;
  }

  .tab-btn {
    flex: 1;
    padding: 8px 4px;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tab-btn:hover {
    transform: none;
  }

  .notice-intro,
  .notice-h2,
  .notice-h3,
  .notice-p,
  .notice-list {
    font-size: 15px;
  }

  .attachments {
    font-size: 15px;
  }

  footer {
    font-size: 14px;
  }
}


    /* 岗位表格样式 */
    .position-group {
      margin-bottom: 24px;
      border: 1px solid #e0e0e0;
      border-radius: 4px;
      overflow: hidden;
    }

    .position-header {
      background: #e8f5e9;
      padding: 12px 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid #e0e0e0;
      cursor: pointer;
      transition: background 0.25s ease;
    }

    .position-header:hover {
      background: #d4edda;
    }

    .position-header .header-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .toggle-icon {
      display: inline-block;
      width: 20px;
      height: 20px;
      line-height: 18px;
      text-align: center;
      color: #049b4e;
      font-weight: bold;
      transition: transform 0.3s ease;
    }

    .position-group.collapsed .toggle-icon {
      transform: rotate(-90deg);
    }

    .position-title {
      font-size: 16px;
      font-weight: bold;
      color: #049b4e;
    }

    .position-category {
      font-size: 14px;
      color: #666;
      background: #fff;
      padding: 4px 12px;
      border-radius: 4px;
    }

    .expand-tip {
      font-size: 13px;
      color: #049b4e;
    }

    /* 分类 Tab 样式 */
    .category-tabs {
      display: flex;
      border-bottom: 2px solid #049b4e;
      margin-bottom: 24px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    .category-tab {
      padding: 12px 24px;
      font-size: 15px;
      cursor: pointer;
      background: #f0f0f0;
      border: 1px solid #ddd;
      border-bottom: none;
      margin-right: 4px;
      color: #555;
      transition: background 0.25s ease, color 0.25s ease,
                  transform 0.2s ease, box-shadow 0.2s ease;
      outline: none;
      border-radius: 4px 4px 0 0;
      white-space: nowrap;
    }

    .category-tab:hover {
      background: rgba(4, 155, 78, 0.1);
      color: #049b4e;
      transform: translateY(-2px);
      box-shadow: 0 -2px 8px rgba(4, 155, 78, 0.12);
    }

    .category-tab.active {
      background: #049b4e;
      color: #fff;
      border-color: #049b4e;
      font-weight: bold;
      transform: translateY(-1px);
      box-shadow: 0 -3px 10px rgba(4, 155, 78, 0.2);
    }

    .category-content {
      display: none;
    }

    .category-content.active {
      display: block;
    }

    .position-detail {
      display: block;
      transition: max-height 0.3s ease, opacity 0.3s ease;
      overflow: hidden;
    }

    .position-group.collapsed .position-detail {
      display: none;
    }

    .position-requirements {
      background: #fafafa;
      padding: 12px 16px;
      border-bottom: 1px solid #e0e0e0;
      font-size: 14px;
      color: #555;
    }

    .requirement-row {
      margin-bottom: 6px;
      line-height: 1.6;
    }

    .requirement-row:last-child {
      margin-bottom: 0;
    }

    .requirement-label {
      font-weight: bold;
      color: #333;
      margin-right: 8px;
    }

    .position-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 14px;
    }

    .position-table th {
      background: #f0f9f0;
      padding: 10px 12px;
      text-align: center;
      font-weight: bold;
      color: #333;
      border: 1px solid #e0e0e0;
    }

    .position-table td {
      padding: 10px 12px;
      text-align: center;
      border: 1px solid #e0e0e0;
      color: #444;
    }

    .position-table tr:nth-child(even) {
      background: #fafafa;
    }

    .position-table tr:hover {
      background: #f0f9f0;
    }

    .apply-btn {
      display: inline-block;
      padding: 6px 16px;
      background: #049b4e;
      color: #fff;
      text-decoration: none;
      border-radius: 4px;
      font-size: 13px;
      transition: background 0.25s ease, transform 0.2s ease;
      cursor: pointer;
      border: none;
    }

    .apply-btn:hover {
      background: #026b38;
      transform: translateY(-1px);
    }

    .recruiter-name {
      text-align: left !important;
    }

    /* 移动端适配 */
    @media (max-width: 600px) {
      .category-tabs {
        border-bottom-width: 1px;
      }

      .category-tab {
        padding: 10px 16px;
        font-size: 14px;
        margin-right: 2px;
      }

      .position-header {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
      }

      .position-header .header-left {
        flex: 1;
        min-width: 0;
      }

      .position-title {
        font-size: 15px;
      }

      .position-category {
        font-size: 12px;
        margin-left: auto;
      }

      .expand-tip {
        display: none;
      }

      .position-requirements {
        font-size: 13px;
        padding: 10px 12px;
      }

      .requirement-label {
        display: block;
        margin-bottom: 2px;
      }

      .requirement-row {
        margin-bottom: 8px;
      }

      .position-table {
        font-size: 13px;
      }

      .position-table th,
      .position-table td {
        padding: 8px 6px;
      }

      .position-table .recruiter-name {
        font-size: 12px;
        text-align: left !important;
      }

      .apply-btn {
        padding: 5px 12px;
        font-size: 12px;
      }

      .expand-tip {
        font-size: 12px;
      }
    }

    /* 投递简历确认弹窗 */
    .apply-confirm-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.5);
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      animation: fadeIn 0.2s ease-out;
    }

    .apply-confirm-box {
      background: #fff;
      border-radius: 8px;
      padding: 28px 32px;
      max-width: 360px;
      width: 90%;
      text-align: center;
      box-shadow: 0 8px 32px rgba(0,0,0,0.15);
      animation: fadeInUp 0.3s ease-out;
    }

    .apply-confirm-title {
      font-size: 18px;
      font-weight: bold;
      color: #333;
      margin-bottom: 24px;
    }

    .apply-confirm-buttons {
      display: flex;
      gap: 12px;
      justify-content: center;
    }

    .apply-confirm-btn {
      flex: 1;
      padding: 10px 0;
      text-decoration: none;
      border-radius: 4px;
      font-size: 15px;
      text-align: center;
      transition: background 0.25s ease;
    }

    .apply-confirm-btn-cancel {
      background: #f0f0f0;
      color: #555;
      border: 1px solid #ddd;
    }

    .apply-confirm-btn-cancel:hover {
      background: #e0e0e0;
      color: #333;
    }

    .apply-confirm-btn-ok {
      background: #049b4e;
      color: #fff;
      border: 1px solid #049b4e;
    }

    .apply-confirm-btn-ok:hover {
      background: #026b38;
      border-color: #026b38;
    }

