/* Subpages — About, Careers, News */
.page-main {
  padding-top: var(--header-h);
}

.page-hero {
  position: relative;
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 20%, transparent 85%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--blue-600);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-light);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue-950);
  margin-bottom: 12px;
}

.page-hero .lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

.page-section {
  padding: 72px 0;
}

.page-section.alt {
  background: var(--bg-subtle);
}

.page-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 24px;
}

/* About */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-intro p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.0625rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.about-stat {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.about-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-700);
  margin-bottom: 4px;
}

.about-stat span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.value-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
}

.value-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue-800);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.timeline {
  max-width: 720px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding-bottom: 32px;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 49px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--blue-200);
}

.timeline-year {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-600);
  text-align: right;
}

.timeline-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.team-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
}

.team-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 0.8125rem;
  color: var(--blue-600);
  margin-bottom: 8px;
}

.team-card p {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* List pages toolbar */
.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  align-items: center;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.2s;
}

.filter-tab:hover {
  border-color: var(--blue-300);
  color: var(--blue-700);
}

.filter-tab.active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
}

.list-search {
  margin-left: auto;
  position: relative;
  min-width: 220px;
}

.list-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.list-search input:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.list-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-light);
}

/* Careers page */
.page-hero-compact {
  padding: 48px 0 36px;
}

.page-hero-compact h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: 10px;
}

.page-hero-compact .lead {
  font-size: 1.0625rem;
  line-height: 1.65;
}

.careers-section {
  padding: 48px 0 72px;
}

.careers-container {
  width: min(1180px, calc(100% - 64px));
}

.careers-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

.careers-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.careers-sidebar-block {
  margin-bottom: 28px;
}

.careers-sidebar-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.careers-filter-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.careers-filter-tabs .filter-tab {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
}

.careers-search {
  margin-top: 16px;
  margin-left: 0;
  width: 100%;
  min-width: 0;
}

.careers-search input {
  padding: 10px 14px 10px 38px;
  font-size: 0.875rem;
}

.careers-perks .perk-card + .perk-card {
  margin-top: 10px;
}

.careers-main {
  min-width: 0;
}

.careers-result-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Job cards */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.careers-main .job-list {
  background: transparent;
  border: none;
}

.job-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 24px;
  align-items: center;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.job-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.job-card.hidden {
  display: none;
}

.job-card-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.job-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--blue-900);
  margin: 0;
}

.job-intro {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 8px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-light);
}

.job-meta-dot {
  color: var(--border);
  user-select: none;
}

.job-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  flex-shrink: 0;
}

.job-card .arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  border-radius: 10px;
  color: var(--blue-600);
  font-size: 0.9375rem;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.job-card:hover .arrow {
  background: var(--blue-600);
  color: #fff;
}

.perk-card {
  padding: 16px 18px;
  background: linear-gradient(160deg, var(--blue-50), #fff);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
}

.perk-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blue-800);
  margin-bottom: 4px;
}

.perk-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.pagination-btn:hover:not(:disabled) {
  color: var(--blue-600);
  border-color: var(--blue-300);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  gap: 4px;
}

.pagination-number {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.pagination-number:hover:not(.active) {
  color: var(--blue-600);
  border-color: var(--blue-300);
}

.pagination-number.active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
}

/* Job detail */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.detail-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.detail-content h2 {
  font-size: 1.25rem;
  margin-top: 32px;
  margin-bottom: 16px;
}

.detail-content h2:first-child {
  margin-top: 0;
}

.detail-content p,
.detail-content li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.detail-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.detail-content li {
  margin-bottom: 8px;
}

.detail-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.sidebar-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--blue-900);
}

.sidebar-meta {
  list-style: none;
  margin-bottom: 24px;
}

.sidebar-meta li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-meta li:last-child {
  border-bottom: none;
}

.sidebar-meta .label {
  color: var(--text-light);
}

.sidebar-meta .value {
  font-weight: 500;
  color: var(--text);
}

/* News — 一行三列 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.news-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.news-card.hidden {
  display: none;
}

.news-card.featured {
  grid-column: span 2;
  flex-direction: row;
}

.news-thumb {
  height: 180px;
  background: var(--blue-100);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.05);
}

.news-card.featured .news-thumb {
  width: 45%;
  height: auto;
  min-height: 220px;
}

.news-card.featured .news-thumb img {
  min-height: 220px;
}

.news-thumb .category {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
}

.news-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-body time {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.news-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-card.featured .news-body h3 {
  font-size: 1.375rem;
}

.news-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.6;
}

.read-more {
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-600);
}

/* News detail */
.article-header {
  max-width: 720px;
  margin-bottom: 40px;
}

.article-header .category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue-950);
  margin-bottom: 16px;
  line-height: 1.25;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-cover {
  height: 360px;
  background: var(--blue-100);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  overflow: hidden;
}

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

.article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-body h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--blue-900);
  margin: 40px 0 16px;
}

.article-body p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-body blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--blue-50);
  border-left: 4px solid var(--blue-500);
  border-radius: 0 12px 12px 0;
  font-size: 1.0625rem;
  color: var(--blue-800);
  font-style: italic;
}

.related-news {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.related-news h2 {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.related-card {
  padding: 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.related-card:hover {
  border-color: var(--blue-300);
  background: var(--blue-50);
}

.related-card time {
  font-size: 0.75rem;
  color: var(--text-light);
}

.related-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-900);
  margin-top: 6px;
}

.empty-state {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
  display: none;
}

.empty-state.show {
  display: block;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

a.page-btn,
.page-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.2s;
}

a.page-btn:hover,
.page-btn:hover:not(.disabled) {
  border-color: var(--blue-400);
  color: var(--blue-700);
  background: var(--blue-50);
}

.page-btn.disabled,
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.page-numbers {
  display: flex;
  gap: 6px;
}

a.page-num,
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.2s;
}

a.page-num:hover,
.page-num:hover:not(.active):not(.ellipsis) {
  border-color: var(--blue-300);
  color: var(--blue-700);
}

a.page-num.active,
.page-num.active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
}

.page-num.ellipsis {
  border: none;
  background: transparent;
  cursor: default;
  min-width: 28px;
}

.page-num.ellipsis:hover {
  color: var(--text-muted);
}

.page-info {
  width: 100%;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .about-intro,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .careers-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .careers-sidebar {
    position: static;
  }

  .careers-filter-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .careers-filter-tabs .filter-tab {
    width: auto;
  }

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

  .careers-perks .perk-card + .perk-card {
    margin-top: 0;
  }

  .values-grid,
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-card.featured {
    grid-column: span 2;
    flex-direction: column;
  }

  .news-card.featured .news-thumb {
    width: 100%;
    min-height: 180px;
  }

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .values-grid,
  .team-grid,
  .news-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .careers-container {
    width: min(1120px, calc(100% - 32px));
  }

  .careers-perks {
    grid-template-columns: 1fr;
  }

  .job-card {
    padding: 18px 20px;
  }

  .news-card.featured {
    grid-column: span 1;
  }

  .job-card {
    grid-template-columns: 1fr auto;
    padding: 12px 14px;
  }

  .job-intro {
    -webkit-line-clamp: 2;
  }

  .list-search {
    margin-left: 0;
    width: 100%;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-item::before {
    display: none;
  }

  .detail-content {
    padding: 24px;
  }
}
