/*
Theme Name: ShunAI Official
Theme URI: https://example.com/
Author: Beijing Shunai
Description: 北京舜爱教育科技有限公司单页官网主题（参考 Tailwind/DeepLearning.AI 美化）
Version: 1.0
*/

/* ========== 变量（参考 Tailwind / 品牌色） ========== */
:root {
  --bg-page: #f9f9fb;
  --bg-banner: #e3f2fd;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent: #f65b66;
  --accent-hover: #ee414d;
  --accent-soft: rgba(246, 91, 102, 0.12);
  --border: #e2e8f0;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --font-sans: Inter, ui-sans-serif, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-heading: Poppins, var(--font-sans);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== 基础 Reset（参考 Tailwind preflight） ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-width: 0;
  border-style: solid;
  border-color: var(--border);
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: inherit;
}

img {
  max-width: 100%;
  height: auto;
  /* display: block; */
}

button,
[type="button"],
[type="submit"] {
  cursor: pointer;
}

/* ========== 布局容器（参考 container--boxed） ========== */
.page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container--boxed {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ========== 顶部导航 ========== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  transition: box-shadow var(--transition);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-image {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.company-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.company-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background-color var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.nav-link-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.nav-link:focus-visible,
.nav-link-primary:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--bg-page), 0 0 0 4px var(--accent);
}

/* ========== Banner / Hero 满屏通栏（参考 DeepLearning.AI BWABanner） ========== */
.banner-section {
  width: 100%;
}

.banner-bg {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 600px;
  background: linear-gradient(135deg, rgb(26, 35, 90) 0%, rgb(30, 136, 212) 100%);
}

@media (min-width: 1024px) {
  .banner-bg {
    min-height: 70dvh;
  }
}

.banner-inner {
  position: relative;
  height: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .banner-inner {
    min-height: 70dvh;
  }
}

.banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 0 4rem;
  width: 100%;
}

.banner-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 90vw;
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .banner-title {
    font-size: clamp(2.75rem, 4vw, 3.5rem);
    max-width: 600px;
  }
}

@media (min-width: 1024px) {
  .banner-title {
    font-size: clamp(3rem, 4.5vw, 4.75rem);
    line-height: 0.95;
  }
}

.banner-title span {
  color: #fbbf24;
}

.banner-subtitle {
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.banner-subtitle span {
  color: #fff;
  font-weight: 500;
}

/* Hero 上的 badge：白边 + 半透明底（参考 Beginner Friendly） */
.badge--hero {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid #fff;
  color: #fff;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}

.badge--hero .badge-dot {
  background: #fff;
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* 按钮（参考 btn--primary / btn--hollow） */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3.5rem;
  padding: 0 1.25rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

/* Hero 上白底主按钮（参考 Enroll Now / btn--primary--white） */
.btn--white {
  background: #fff;
  color: #0f172a;
  border-color: #fff;
}

.btn--white:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #f8fafc;
}

/* Hero 上白边次要按钮 */
.btn--ghost-white {
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
}

.btn--ghost-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

.btn:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--bg-page), 0 0 0 4px var(--accent);
}

/* ========== 信任语（位于 Banner 内，紧贴 CTA 按钮下方） ========== */
.hero-trust {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  margin: 1.5rem auto 0;
  font-size: 1rem;
  max-width: 36rem;
  padding: 0;
}

/* ========== 核心服务卡片（参考 course-card + shadow） ========== */
.section-cards {
  padding: 4rem 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-header .section-title {
  margin: 0 0 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background-color var(--transition);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(246, 91, 102, 0.25);
}

.card:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--bg-page), 0 0 0 4px var(--accent);
}

.card-thumb {
  /* height: 140px; */
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-thumb-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.card-tag {
  font-size: 0.6875rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  flex: 1;
}

.card-link {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color var(--transition);
}

.card:hover .card-link {
  color: var(--accent-hover);
}

.card-link span {
  transition: transform var(--transition);
}

.card:hover .card-link span {
  transform: translateX(4px);
}

/* ========== Footer ========== */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.footer a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--accent);
}

.footer-copy {
  margin-top: 0.5rem;
  width: 100%;
  text-align: center;
}

.anchor-offset {
  scroll-margin-top: 5rem;
}

/* ========== 分类页 Hero（参考 DeepLearning.AI Courses） ========== */
.nav-home-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.hero-archive {
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}

.hero-archive-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  gap: 2rem;
}

.hero-archive-content {
  flex: 1;
  max-width: 36rem;
}

.hero-archive-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.hero-archive-subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-archive-image {
  display: none;
  flex-shrink: 0;
}

.hero-archive-image img {
  max-width: 374px;
  height: auto;
  object-fit: contain;
}

/* ========== 分类列表区（左右布局：侧栏 + 主内容） ========== */
.section-archive {
  background: #f1f5f9;
  padding: 2.5rem 0 4rem;
}

.archive-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  align-items: start;
}

.archive-sidebar {
  position: sticky;
  top: 5rem;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 1.25rem 1rem 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.sidebar-form {
  display: block;
}

.sidebar-inner {
  padding-right: 0.5rem;
}

/* 侧栏搜索框 */
.sidebar-search {
  margin-bottom: 1.5rem;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  display: block;
  width: 100%;
  height: 2.75rem;
  padding: 0 1rem 0 2.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:hover {
  background: #fff;
  border-color: #cbd5e1;
}

.search-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* 侧栏筛选区 */
.sidebar-filters {
  padding-left: 0.25rem;
  padding-right: 0.5rem;
  border-right: none;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.filters-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
}

.filters-clear {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

.filters-clear:hover {
  color: var(--accent-hover);
}

.filters-clear.is-disabled {
  color: var(--text-muted);
  cursor: default;
}

/* 筛选分组 */
.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

.filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.filter-item {
  display: block;
}

.filter-item-more {
  display: none;
}

.filter-label {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.5rem 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition);
  border-radius: var(--radius);
}

.filter-label:hover {
  color: var(--accent);
}

.filter-checkbox {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  margin-right: 0.625rem;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--accent);
}

input[type="checkbox"].filter-checkbox {
  border-radius: 0.25rem;
}

.filter-checkbox:hover {
  border-color: var(--accent);
}

.filter-checkbox:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.filter-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg-page), 0 0 0 4px var(--accent-soft);
}

.filter-label span {
  margin-left: 0;
}

.filter-show-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color var(--transition), background-color var(--transition);
}

.filter-show-more:hover {
  background: rgba(246, 91, 102, 0.2);
  color: var(--accent-hover);
}

.archive-main {
  min-width: 0;
  padding-left: 1.5rem;
}

.card-grid-archive {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.archive-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
}

.pagination {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination li a,
.pagination li span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

.pagination li a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.pagination .current span {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* ========== 参考 prose 的正文排版（可选） ========== */
.prose {
  color: var(--text-secondary);
  max-width: 65ch;
  font-size: 1rem;
  line-height: 1.75;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose a {
  color: var(--accent);
  font-weight: 500;
}

.prose a:hover {
  text-decoration: underline;
}

/* ========== 单篇文章详情页 ========== */
.single-main {
  flex: 1;
  padding-bottom: 4rem;
}

/* 面包屑 */
.single-breadcrumb {
  padding-top: 1.25rem;
  padding-bottom: 0.75rem;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  margin: 0 0.35rem;
  color: var(--text-muted);
  user-select: none;
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 500;
}

/* 文章头部 Hero */
.single-hero {
  background: var(--bg-card);
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.single-hero-inner {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.single-title {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 1rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.post-date {
  font-variant-numeric: tabular-nums;
}

.post-category {
  color: var(--accent);
  font-weight: 500;
  transition: color var(--transition);
}

.post-category:hover {
  color: var(--accent-hover);
}

.post-author::before {
  content: "·";
  margin-right: 0.5rem;
  color: var(--text-muted);
}

/* 特色图片 */
.single-featured {
  margin: 0;
  background: #f8fafc;
}

.single-featured-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.single-featured-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.single-featured-caption {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* 正文区域 */
.single-content {
  padding: 2.5rem 0 3rem;
}

.single-content-inner {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* 正文排版（大气易读） */
.prose-single {
  max-width: none;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.prose-single > *:first-child {
  margin-top: 0;
}

.prose-single > *:last-child {
  margin-bottom: 0;
}

.prose-single p {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

.prose-single h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: 2.25em;
  margin-bottom: 0.75em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--border);
}

.prose-single h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.75em;
  margin-bottom: 0.5em;
}

.prose-single h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5em;
  margin-bottom: 0.4em;
}

.prose-single a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.prose-single a:hover {
  text-decoration: underline;
}

.prose-single ul,
.prose-single ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

.prose-single li {
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}

.prose-single blockquote {
  margin: 1.75em 0;
  padding: 1rem 1.25rem 1rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
  font-style: normal;
}

.prose-single blockquote p:first-child {
  margin-top: 0;
}

.prose-single blockquote p:last-child {
  margin-bottom: 0;
}

/* 正文内图片 */
.prose-single img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-top: 1.75em;
  margin-bottom: 1.75em;
}

.prose-single figure {
  margin: 2em 0;
}

.prose-single figure img {
  margin-top: 0;
  margin-bottom: 0;
}

.prose-single figcaption {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.prose-single hr {
  margin: 2.25em 0;
  border: none;
  border-top: 1px solid var(--border);
}

.prose-single code {
  font-size: 0.9em;
  padding: 0.2em 0.4em;
  background: #f1f5f9;
  border-radius: var(--radius);
  color: var(--text-primary);
}

.prose-single pre {
  margin: 1.75em 0;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.prose-single pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: 1em;
}

.prose-single table {
  width: 100%;
  margin: 1.75em 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.prose-single th,
.prose-single td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}

.prose-single th {
  font-weight: 600;
  background: #f8fafc;
  color: var(--text-primary);
}

/* 分页链接（多页文章） */
.page-links {
  margin: 2rem 0 1rem;
}

.page-links-title {
  margin-right: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.page-links-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-links-list a,
.page-links-list span {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: color var(--transition), border-color var(--transition);
}

.page-links-list a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* 返回列表 */
.single-back {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.single-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  transition: color var(--transition);
}

.single-back-link:hover {
  color: var(--accent-hover);
}

.single-back-icon {
  font-size: 1.125rem;
}

/* ========== 响应式 ========== */
@media (min-width: 1024px) {
  .hero-archive-image {
    display: block;
  }

  .hero-archive-inner {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-archive-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .hero-archive-subtitle {
    font-size: 1.25rem;
  }
}

@media (max-width: 900px) {
  .archive-layout {
    grid-template-columns: 1fr;
  }

  .archive-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 1rem;
  }

  .archive-main {
    padding-left: 0;
  }

  .card-grid,
  .card-grid-archive {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .archive-sidebar {
    padding: 0.75rem 0;
  }
}

@media (max-width: 768px) {
  .single-title {
    font-size: 1.5rem;
  }

  .single-hero {
    padding: 1.5rem 0 2rem;
  }

  .single-featured-inner {
    padding: 1.25rem 1rem;
  }

  .single-content {
    padding: 1.75rem 0 2.5rem;
  }

  .prose-single {
    font-size: 1rem;
  }

  .prose-single h2 {
    font-size: 1.3125rem;
    margin-top: 1.75em;
  }

  .prose-single h3 {
    font-size: 1.125rem;
  }

  .nav {
    padding: 1rem 1rem;
  }

  .company-tagline {
    display: none;
  }

  .banner-bg,
  .banner-inner {
    min-height: 480px;
  }

  .banner-content {
    padding: 2.5rem 0 3rem;
  }

  .banner-title {
    font-size: 1.75rem;
  }

  .banner-subtitle {
    font-size: 1rem;
  }

  .section-cards {
    padding: 2.5rem 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-right {
    gap: 0.25rem;
  }

  .nav-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }

  .banner-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    height: 3rem;
  }

  .footer {
    padding: 1rem;
  }
}

/* ==========================================================================
   找工作详情页 (Page-24) 专属样式
   ========================================================================== */

/* 辅助类 */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 3rem; }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.align-end { align-items: flex-end; }
.justify-center { justify-content: center; }

/* --- 第一屏 Hero --- */
.job-hero {
  width: 100%;
}
.job-hero-bg {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 500px;
  /* 科技感深蓝渐变过渡到浅紫红 */
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #831843 100%);
  /* 建议在外部加上背景网格图片的 URL，例如： */
  /* background-image: url('images/hero-grid-bg.png'), linear-gradient(...) */
  background-size: cover;
  background-position: center;
}
.job-hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}
.job-hero-content {
  text-align: center;
  padding: 4rem 0;
  width: 100%;
}
.job-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1rem;
}
.job-hero-title-line {
  display: block;
  white-space: nowrap;
}
.job-hero-title span {
  color: #fbbf24; /* 金黄色高亮文字 */
}
.job-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}
/* 渐变按钮 */
.job-btn-gradient {
  background: linear-gradient(90deg, #6366f1 0%, #a855f7 100%);
  color: #fff;
  border: none;
  border-radius: 9999px; /* 胶囊形按钮 */
  padding: 0 2rem;
  height: 3.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  box-shadow: 0 4px 14px 0 rgba(168, 85, 247, 0.39);
  transition: transform 0.2s, box-shadow 0.2s;
}
.job-btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
  color: #fff;
}

/* --- 通用区块与栅格 --- */
.job-section {
  padding: 0.5rem 1.5rem;
  width: 100%;
}
.job-dark-bg {
  background-color: #0b1120; /* 极夜蓝 */
  color: #fff;
  /* 类似科技线条的背景可以加在这里 */
  background-image: radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.2) 0%, transparent 60%);
}
.job-grid {
  display: grid;
  /* 左窄右宽：右侧更有“通栏感” */
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 4rem;
  align-items: center;
}
.grid-align-center {
  align-items: center;
}
.job-content-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- 金句排版 --- */
.job-quote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.6;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2rem;
}
.job-quote span {
  color: #d97706; /* 突出显示的颜色 */
}
.quote-white {
  color: #fff;
  font-size: 1.35rem;
}

/* --- 二维码卡片 --- */
.job-qr-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #f1f5f9;
  max-width: 260px;
}
.job-dark-bg .job-qr-card {
  border: 1px solid rgba(255,255,255,0.1);
  background: #f8fafc; /* 在深色背景上用亮色卡片跳出来 */
}
.qr-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.qr-tags {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
.qr-tag {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  text-align: center;
}
.qr-desc {
  color: var(--text-primary);
  font-weight: 600;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.4;
  margin: 0;
}
.job-qr-small {
  max-width: 200px;
  padding: 1rem;
}
.job-qr-small .qr-image {
  width: 120px;
  height: 120px;
  margin-bottom: 0.5rem;
}

/* --- 照片墙 (Collage) --- */
.job-collage {
  position: relative;
  width: 100%;
  height: 400px;
}

.job-grid > .job-collage {
  justify-self: start;
}

.job-grid > .job-content-box {
  justify-self: stretch;
}

.job-collage--single {
  height: auto;
  display: flex;
  /* align-items: center; */
  justify-content: center;
}

.collage-img {
  position: absolute;
  border-radius: 12px;
  border: 4px solid #fff; /* 拍立得效果的白边 */
  object-fit: cover;
  transition: transform 0.3s;
}
.collage-img:hover {
  transform: scale(1.05);
  z-index: 10;
}
/* 左侧社群照片排布 */
.job-collage-left .img-1 { width: 55%; top: 0; left: 0; z-index: 1; }
.job-collage-left .img-2 { width: 60%; bottom: 0; left: 10%; z-index: 2; }
.job-collage-left .img-3 { width: 45%; top: 15%; right: 0; z-index: 3; border: 2px solid #000; border-radius: 20px; } /* 模拟手机边框 */

/* 右侧校企照片排布 */
.job-collage-right .img-4 { width: 100%; top: 0; right: 0; z-index: 1; border-color: #1e293b; }
.job-collage-right .img-5 { width: 50%; top: 30%; left: 0; z-index: 2; border-color: #1e293b; }
.job-collage-right .img-6 { width: 55%; bottom: 0; right: 10%; z-index: 3; border-color: #1e293b; }

.community-collage-img {
  position: relative;
  width: 100%;
  max-width: 540px;
  border-radius: 20px;
  border: 4px solid #fff;
  object-fit: cover;
}

/* --- 职业规划指导 (Map) --- */
.job-map-fullwidth {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  /* 这里不要再加左右 padding，否则会和 container--boxed 叠加导致不对齐 */
  padding: 0 0 2rem;
  box-sizing: border-box;
}

.job-map-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #fff;
}

.job-map-stage {
  max-width: none;
}

.job-map-canvas {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.job-map-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.job-map-qr--overlay {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 5;
}

.job-dark-bg .job-map-qr--overlay .job-qr-card {
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(255,255,255,0.12);
}

/* 叠加式二维码：大屏/平板保持贴图右下角；手机端再自动下移避免遮挡 */
.job-map-qr--overlay .job-qr-card {
  max-width: 200px;
  padding: 0.75rem 0.75rem 0.85rem;
  border-radius: 0.9rem;
}

.job-map-qr--overlay .qr-image {
  width: 104px;
  height: 104px;
  margin-bottom: 0.4rem;
}

.job-map-qr--overlay .qr-desc {
  font-size: 0.8125rem;
  line-height: 1.35;
  font-weight: 700;
}

@media (max-width: 768px) {
  .job-map-qr--overlay {
    position: static;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
  }
}

/* --- 校企合作 --- */
.partner-glass-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}
.partner-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.partner-features li {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.partner-features .highlight-text {
  color: #fbbf24;
  font-size: 2rem;
}
.job-partnership-bottom {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
      display:flex;
    items-align:center;
}

/* --- 底部 CTA --- */
.job-cta {
  background: linear-gradient(135deg, #1e1b4b 0%, #be185d 100%);
  padding: 4rem 1.5rem;
  color: #fff;
}
.job-cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}
.job-cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.btn-white-solid {
  background: #fff;
  color: #1e1b4b;
  border-radius: 9999px;
  font-weight: 600;
}
.btn-white-solid:hover {
  background: #f1f5f9;
  color: #1e1b4b;
}
.btn-transparent-border {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 9999px;
}
.btn-transparent-border:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* 覆盖 Footer 深色模式，适配在紫红底下的融合 */
.job-footer {
  background: #0f172a;
  color: #94a3b8;
  border-top: none;
}
.job-footer a {
  color: #cbd5e1;
}

/* ==========================================================================
   响应式调整 (Mobile)
   ========================================================================== */
/* 微信内置浏览器有时 viewport 偏宽：1200px 就切到“移动紧凑版” */
@media (max-width: 1200px) {
  .job-hero-bg,
  .job-hero-inner {
    min-height: 240px;
  }
  .job-hero-content {
    padding: 1.25rem 0;
  }
  .job-hero-title {
    font-size: 2rem;
    line-height: 1.15;
  }
  .job-hero-actions {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
  }

  .job-section {
    padding: 1rem 1rem;
  }

  /* 提前改单列 + 居中（解决微信不居中） */
  .job-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .job-collage {
    height: 240px;
    max-width: 420px;
    margin: 0 auto;
  }
  .job-content-box,
  .job-content-box.align-end {
    align-items: center;
    text-align: center;
  }

  /* 地图下方空间偏大：整体压缩 */
  .job-map-fullwidth {
    padding-bottom: 0.75rem;
  }

  .job-partnership-bottom {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }

  .job-cta {
    padding: 1.5rem 1rem;
  }
  .job-cta-title {
    margin-bottom: 0.75rem;
  }
 
}

@media (max-width: 900px) {
  .job-collage {
    height: 400px;
    max-width: 400px;
  }
  .job-qr-card {
    margin-top: 0.75rem;
  }
  .partner-glass-card {
    padding: 1.5rem;
  }
  .partner-features {
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .job-hero-bg,
  .job-hero-inner {
    min-height: 200px;
  }
  .job-hero-content {
    padding: 0.9rem 0;
  }
  .job-hero-title {
    font-size: 1.6rem;
  }
  .job-hero-subtitle {
    margin-bottom: 1rem;
  }
  .job-btn-gradient {
    height: 3rem;
    font-size: 1rem;
    padding: 0 1.25rem;
  }

  .job-section {
    padding: 0.875rem 1rem;
  }
  .job-grid {
    gap: 1rem;
  }
  .job-quote {
    margin-bottom: 0.9rem;
  }
  .job-quote,
  .quote-white {
    font-size: 1.125rem;
  }

  /* AI 人才成长地图：二维码下移后仍留白，继续压缩 */
  .job-map-title {
    margin-bottom: 0.75rem;
  }
  .job-map-qr--overlay {
    margin-top: 0.75rem;
  }

  /* 校企 & 训练营（合作企业区块）上下间距 */
  .job-partnership-bottom {
    margin-top: 1.1rem;
    padding-top: 1rem;
    display:flex;
    items-align:center;
  }


  .job-cta {
    padding: 1.25rem 1rem;
  }
  .job-cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    align-items: center;
  }
  .job-cta-actions .btn {
    width: 100%;
  }
   #binheight{
    height:160px;
  }
}

@media (max-width: 420px) {
  .job-hero-title {
    font-size: 1.45rem;
  }
  .job-hero-title-line-1 {
    letter-spacing: -0.02em;
  }
}