/* DeepSeek 招聘页内容区 1:1 还原 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ds-bg: #fff;
  --ds-text: #0f1115;
  --ds-text-secondary: #61666b;
  --ds-text-tertiary: #81858c;
  --ds-text-caption: #adb2b8;
  --ds-border: rgba(0, 0, 0, 0.1);
  --ds-border-light: #eee;
  --ds-hover: rgba(38, 49, 72, 0.06);
  --ds-selector: #f1f3f5;
  --ds-primary: #0f1115;
  --ds-primary-hover: #43454a;
  --ds-link: #3964fe;
  --ds-max-width: 1248px;
  --ds-sidebar: 280px;
  --ds-content: 800px;
  --ds-divider-gap: 48px;
  --ds-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ds-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ds-duration: 0.2s;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.page-careers {
  min-height: 100vh;
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: var(--ds-font);
  font-size: 14px;
  line-height: 22px;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

#root-careers {
  min-height: 100vh;
}

/* Header */
.ds-header {
  position: relative;
  width: 100%;
  height: 120px;
  background-color: #000;
  background-image: url("../image/careers-header-bg.jpg");
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: calc(50% - 155px);
  user-select: none;
}

.ds-header-logo {
  position: absolute;
  top: 50%;
  left: 40px;
  transform: translateY(-50%);
  line-height: 0;
}

.ds-header-logo img {
  width: 143px;
  height: 23px;
  display: block;
}

.ds-header-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* Layout */
.ds-layout {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: var(--ds-max-width);
  margin: 0 auto;
  padding: 60px 24px 0;
}

.ds-spacer {
  flex-shrink: 100000;
  width: 60px;
  min-width: 16px;
}

.ds-sidebar {
  flex: 0 0 var(--ds-sidebar);
  width: var(--ds-sidebar);
  padding-right: 8px;
}

.ds-divider {
  flex: 0 0 var(--ds-divider-gap);
  width: var(--ds-divider-gap);
  min-width: var(--ds-divider-gap);
  flex-shrink: 0;
  position: relative;
  align-self: stretch;
  background: transparent;
}

.ds-divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: var(--ds-border);
}

.ds-main {
  flex: 1 1 var(--ds-content);
  min-width: 0;
  max-width: var(--ds-content);
  display: flex;
  flex-direction: column;
  padding-left: 8px;
}

/* Sidebar blocks */
.sidebar-block + .sidebar-block {
  margin-top: 32px;
}

.sidebar-block-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--ds-text);
}

.sidebar-search-input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ds-border-light);
  border-radius: 999px;
  background: var(--ds-bg);
  color: var(--ds-text);
  font-size: 14px;
  line-height: 22px;
  outline: none;
  transition: border-color var(--ds-duration) var(--ds-ease), box-shadow var(--ds-duration) var(--ds-ease);
}

.sidebar-search-input::placeholder {
  color: var(--ds-text-caption);
}

.sidebar-search-input:focus {
  border-color: var(--ds-text-tertiary);
  box-shadow: 0 0 0 1px var(--ds-border-light);
}

.filter-options {
  margin: 0;
  padding: 0;
}

.filter-option {
  margin: 0;
}

.filter-option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 22px;
  color: var(--ds-text);
  user-select: none;
}

.filter-option-label:hover {
  color: var(--ds-text);
}

.filter-radio {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1.5px solid var(--ds-text-caption);
  border-radius: 50%;
  background: var(--ds-bg);
  transition: border-color var(--ds-duration) var(--ds-ease);
}

.filter-option-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.filter-option-label input:checked + .filter-radio {
  border-color: var(--ds-primary);
  border-width: 5px;
}

.filter-option-label input:focus-visible + .filter-radio {
  box-shadow: 0 0 0 2px var(--ds-primary);
}

.filter-group-parent .filter-option-label {
  justify-content: space-between;
}

.filter-group-arrow {
  width: 16px;
  height: 16px;
  color: var(--ds-text-tertiary);
  flex-shrink: 0;
  transition: transform 0.1s ease-out;
}

.filter-group-parent.open .filter-group-arrow {
  transform: rotate(90deg);
}

.filter-suboptions {
  display: none;
  margin: 0;
  padding: 0 0 4px 26px;
}

.filter-group-parent.open .filter-suboptions {
  display: block;
}

.filter-suboptions .filter-option-label {
  padding: 6px 0;
  font-weight: 400;
}

/* Content */
.ds-content-head {
  padding: 0 0 8px 16px;
  border-bottom: 1px solid var(--ds-border);
}

.ds-content-title {
  font-size: 28px;
  font-weight: 300;
  color: var(--ds-text);
}

.ds-job-list {
  margin: 0;
  padding: 0;
}

.ds-job-item {
  border-bottom: 1px solid var(--ds-border);
}

.ds-job-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  color: inherit;
  transition: background var(--ds-duration) var(--ds-ease);
}

.ds-job-row:hover {
  background: var(--ds-hover);
}

.ds-job-body {
  flex: 1;
  min-width: 0;
}

.ds-job-name {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: var(--ds-text);
}

.ds-job-row:hover .ds-job-name {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ds-job-meta {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--ds-text-tertiary);
}

.ds-job-meta-sep {
  margin: 0 6px;
  color: var(--ds-text-caption);
}

.ds-job-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ds-text);
}

.ds-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 200px;
  font-size: 12px;
  color: var(--ds-text-tertiary);
}

/* Buttons */
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 72px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
  outline: none;
  transition: background var(--ds-duration) var(--ds-ease);
}

.ds-btn-filled.ds-btn-primary {
  background: var(--ds-primary);
  color: #fff;
}

.ds-btn-filled.ds-btn-primary:hover {
  background: var(--ds-primary-hover);
}

.ds-btn-outlined {
  background: transparent;
  color: var(--ds-text);
  box-shadow: inset 0 0 0 1px var(--ds-border);
}

.ds-btn-outlined:hover {
  background: var(--ds-hover);
}

.ds-btn-block {
  display: flex;
  width: 100%;
}

/* Detail / Apply */
.ds-view-detail,
.ds-view-apply {
  padding: 0 16px 48px;
}

.ds-detail-back-bar {
  padding: 0 0 16px;
  margin-bottom: 0;
}

.ds-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ds-text-tertiary);
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--ds-duration) var(--ds-ease);
}

.ds-back:hover {
  color: var(--ds-text);
}

.ds-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--ds-border);
  margin-bottom: 32px;
}

.ds-detail-header-main {
  flex: 1;
  min-width: 0;
}

.ds-detail-title,
.ds-apply-title {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--ds-text);
}

.ds-detail-title {
  margin: 0 0 12px;
}

.ds-detail-meta {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--ds-text-tertiary);
}

.ds-detail-submeta {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--ds-text-caption);
}

.ds-detail-apply-top {
  flex-shrink: 0;
}

.ds-detail-summary {
  margin: 0 0 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ds-border);
  font-size: 16px;
  line-height: 28px;
  color: var(--ds-text-secondary);
}

.ds-detail-body {
  font-size: 16px;
  line-height: 28px;
}

.ds-detail-body h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 28px;
  margin: 28px 0 12px;
  color: var(--ds-text);
}

.ds-detail-body h3:first-child {
  margin-top: 0;
}

.ds-detail-body p {
  margin-bottom: 12px;
  color: var(--ds-text-secondary);
}

.ds-detail-body ul {
  margin: 0 0 16px 20px;
  list-style: disc;
}

.ds-detail-body li {
  margin-bottom: 8px;
  color: var(--ds-text-secondary);
}

.ds-detail-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--ds-border);
}

.ds-apply-title {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ds-border);
  margin-bottom: 32px;
}

.ds-apply-job {
  margin-bottom: 32px;
  padding: 16px;
  background: var(--ds-selector);
  border-radius: 10px;
}

.ds-apply-job-label {
  font-size: 12px;
  color: var(--ds-text-tertiary);
  margin-bottom: 4px;
}

.ds-apply-job-name {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  margin-bottom: 8px;
}

.ds-apply-job-meta {
  font-size: 14px;
  line-height: 22px;
  color: var(--ds-text-tertiary);
}

.ds-layout-detail .ds-main {
  max-width: none;
}

/* Apply page - Moka style */
.ds-apply-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.ds-view-apply .ds-apply-title {
  margin: 0 0 24px;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.3;
}

.ds-form-section-title {
  margin: 32px 0 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--ds-text);
}

.ds-form-section-title:first-of-type {
  margin-top: 0;
}

.ds-form-label .required {
  margin-left: 2px;
}

.ds-form-select.error {
  box-shadow: inset 0 0 0 1px #ec1313;
}

.ds-upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 160px;
  padding: 24px 16px;
  border: 1px dashed var(--ds-border);
  border-radius: 10px;
  background: var(--ds-bg);
  cursor: pointer;
  transition: border-color var(--ds-duration) var(--ds-ease), background var(--ds-duration) var(--ds-ease);
}

.ds-upload-zone:hover,
.ds-upload-zone.dragover {
  border-color: var(--ds-text-tertiary);
  background: var(--ds-selector);
}

.ds-upload-zone.has-file {
  border-style: solid;
  border-color: var(--ds-border);
  background: var(--ds-selector);
}

.ds-upload-zone .ds-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.ds-upload-icon {
  color: var(--ds-text-caption);
}

.ds-upload-text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: var(--ds-text);
}

.ds-upload-hint {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--ds-text-tertiary);
}

.ds-upload-name {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--ds-text-secondary);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-form-privacy {
  margin-top: 8px;
}

.ds-form-privacy .ds-checkbox span {
  color: var(--ds-text-secondary);
  line-height: 22px;
}

.ds-apply-submit-bar {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--ds-border);
}

.ds-apply-submit-bar .ds-btn {
  height: 44px;
  font-size: 16px;
}

.ds-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ds-form-item {
  margin-bottom: 20px;
}

.ds-form-label {
  display: flex;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--ds-text-secondary);
}

.ds-form-label .required {
  color: #ec1313;
}

.ds-form-input,
.ds-form-select,
.ds-form-textarea {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ds-selector);
  outline: none;
}

.ds-form-textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
  border-radius: 10px;
  resize: vertical;
}

.ds-form-input:focus,
.ds-form-select:focus,
.ds-form-textarea:focus {
  box-shadow: inset 0 0 0 1px var(--ds-primary);
}

.ds-form-input.error {
  box-shadow: inset 0 0 0 1px #ec1313;
}

.ds-form-feedback {
  min-height: 22px;
  padding: 2px;
  font-size: 12px;
  color: #ec1313;
}

.ds-form-hint {
  font-size: 12px;
  color: var(--ds-text-secondary);
}

.ds-file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ds-file-btn {
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ds-selector);
  cursor: pointer;
}

.ds-file-name {
  font-size: 14px;
  color: var(--ds-text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-file-input {
  display: none;
}

.ds-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

.ds-checkbox input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--ds-primary);
}

.ds-checkbox a {
  color: var(--ds-link);
}

.ds-form-actions {
  margin-top: 32px;
}

/* Footer */
.ds-footer {
  padding: 80px 16px 32px;
  text-align: center;
}

.ds-footer-copy {
  font-size: 12px;
  line-height: 18px;
  color: var(--ds-text-caption);
}

/* Mobile filter sheet */
.ds-sheet-portal[hidden] {
  display: none;
}

.ds-sheet-portal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.ds-sheet-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.ds-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: calc(100dvh - 169px);
  background: var(--ds-bg);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.04), 0 12px 36px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.ds-sheet-handle {
  width: 36px;
  height: 5px;
  margin: 6px auto 0;
  border-radius: 999px;
  background: #e1e5ee;
}

.ds-sheet-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
}

.ds-sheet-title {
  font-size: 17px;
  font-weight: 500;
}

.ds-sheet-close {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: var(--ds-hover);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ds-sheet-body {
  padding: 0 16px 16px;
  overflow-y: auto;
}

.ds-sheet-option {
  display: block;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--ds-border);
  background: transparent;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.ds-sheet-option.active {
  color: var(--ds-link);
}

.ds-sheet-safe {
  height: env(safe-area-inset-bottom);
}

/* Mobile toolbar */
.ds-mobile-toolbar {
  display: none;
  margin-bottom: 16px;
}

.ds-mobile-search {
  margin-bottom: 16px;
}

.ds-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ds-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ds-selector);
  cursor: pointer;
  font-size: 14px;
}

.ds-pill-label {
  color: var(--ds-text-tertiary);
}

.ds-pill-value {
  color: var(--ds-text);
}

.ds-pill-sep {
  width: 1px;
  height: 20px;
  background: var(--ds-border-light);
}

.ds-pill-arrow {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
}

/* Modal */
.ds-modal-overlay[hidden] {
  display: none;
}

.ds-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ds-modal {
  width: 100%;
  max-width: 400px;
  padding: 32px 24px;
  background: var(--ds-bg);
  border-radius: 16px;
  text-align: center;
}

.ds-modal-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e8f8ee;
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.ds-modal h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}

.ds-modal p {
  font-size: 14px;
  color: var(--ds-text-secondary);
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .ds-header {
    background-position: calc(50% - 24px);
  }
}

@media (min-width: 1024px) {
  .ds-header {
    background-position: calc(50% + 65px);
  }
}

@media (max-width: 767px) {
  #root-careers {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .ds-header-logo {
    top: 21px;
    left: 50%;
    transform: translateX(-50%);
  }

  .ds-header-title {
    top: 54px;
    width: 100%;
    text-align: center;
    transform: translateX(-50%);
    font-size: 28px;
  }

  .ds-layout {
    flex: 1;
    flex-direction: column;
    padding: 16px 16px 0;
  }

  .ds-spacer,
  .ds-divider,
  .ds-sidebar {
    display: none;
  }

  .ds-mobile-toolbar {
    display: block;
  }

  .ds-main {
    flex: 1;
    max-width: none;
  }

  .ds-content-head {
    padding: 16px 0;
  }

  .ds-content-title {
    font-size: 20px;
    font-weight: 500;
  }

  .ds-job-row {
    padding: 16px 0;
  }

  .ds-job-name {
    font-size: 16px;
    line-height: 24px;
  }

  .ds-footer {
    padding: 32px 16px 12px;
  }

  .ds-empty {
    margin: auto;
  }

  .ds-view-detail,
  .ds-view-apply {
    padding: 0 0 40px;
  }

  .ds-detail-header {
    flex-direction: column;
    gap: 16px;
    padding-top: 0;
  }

  .ds-detail-title {
    font-size: 22px;
  }

  .ds-detail-apply-top {
    width: 100%;
  }

  .ds-detail-footer .ds-btn {
    width: 100%;
  }

  .ds-apply-form-wrap {
    padding-bottom: 40px;
  }

  .ds-view-apply .ds-apply-title {
    font-size: 22px;
  }
}
