/* ============================================================
   job-send.css  —  简历投递页样式
   ============================================================ */

   :root {
    --red:        #B50000;
    --red-hover:  #d00000;
    --red-light:  #fdf0f0;
    --red-border: #fcd9d9;
    --text-dark:  #222;
    --text-mid:   #555;
    --text-light: #888;
    --white:      #fff;
    --radius:     4px;
    --bg:         #f7f7f7;
    --border:     #e0e0e0;
  }
  
  
  .detail-illus {
      position: sticky;
      top: 40px;
    }
    
    .detail-illus-inner {
  background: var(--white);
  border-radius: 12px;
  /*padding: 40px 30px;*/
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  /*border: 1.5px solid #eee;*/
}

  /* ===== SECTION WRAPPER ===== */
  .apply-section {
    padding: 50px 0 80px;
    /*background: var(--bg);*/
  }
  
  /* ===== TWO-COLUMN LAYOUT ===== */
  .apply-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: center;  /* ✅ 垂直居中 */
}
  
  /* ===== LEFT ILLUSTRATION ===== */
  .apply-illus-inner {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    /*border: 1.5px solid #eee;
    position: sticky;*/
    top: 40px;
  }
  .apply-illus-inner svg {
    width: 100%;
    max-width: 320px;
  }
  
  /* ===== RIGHT SIDE ===== */
  .apply-job-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
  }
  .apply-job-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  /* ===== FORM CARD ===== */
  .form-card {
    background: var(--white);
    border-radius: 8px;
    padding: 32px 36px;
    border: 1px solid #eee;
  }
  .form-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .form-card-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--red);
    border-radius: 2px;
    flex-shrink: 0;
  }
  
  /* ===== FORM GRID ===== */
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 28px;
  }
  .form-col-full { grid-column: 1 / -1; }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  .form-label {
    font-size: 13px;
    color: var(--text-mid);
    font-weight: 500;
  }
  .form-label .req {
    color: var(--red);
    margin-left: 2px;
  }
  
  /* ===== INPUTS ===== */
  .form-control {
    height: 44px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0 14px;
    font-size: 14px;
    color: var(--text-dark);
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
  }
  .form-control:focus {
    border-color: var(--red);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(181, 0, 0, 0.07);
  }
  .form-control::placeholder {
    color: #bbb;
    font-size: 13px;
  }
  textarea.form-control {
    height: 90px;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.6;
  }
  .form-control:disabled {
    background: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
  }
  
  /* ===== DATE PICKER (年月) ===== */
  .date-picker-wrap {
    display: flex;
    gap: 10px;
  }
  .date-picker-wrap select {
    flex: 1;
    height: 44px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0 10px;
    font-size: 14px;
    color: var(--text-dark);
    background: #fafafa;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    /* custom arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
  }
  .date-picker-wrap select:focus {
    border-color: var(--red);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(181, 0, 0, 0.07);
  }
  .date-picker-wrap select.placeholder-shown {
    color: #bbb;
  }
  

  select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
  }

  select.form-control:focus {
    border-color: var(--red);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(181, 0, 0, 0.07);
  }
  select.form-control.placeholder-shown {
    color: #bbb;
  }

  /* ===== FILE UPLOAD ===== */
  .file-upload-area {
    border: 2px dashed var(--red-border);
    border-radius: var(--radius);
    background: var(--red-light);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
    min-height: 100px;
  }
  .file-upload-area:hover,
  .file-upload-area.drag-over {
    border-color: var(--red);
    background: #fce8e8;
  }
  .file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
  }
  .file-upload-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 8px;
    color: var(--red);
    opacity: 0.7;
    display: block;
  }
  .file-upload-text {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
  }
  .file-upload-text em {
    color: var(--red);
    font-style: normal;
    font-weight: 600;
  }
  /* Upload progress */
  .upload-status {
    margin-top: 10px;
    font-size: 13px;
    display: none;
    align-items: center;
    gap: 8px;
    justify-content: center;
  }
  .upload-status.visible { display: flex; }
  .upload-status.uploading { color: #888; }
  .upload-status.success   { color: #2e7d32; }
  .upload-status.error     { color: var(--red); }
  
  .upload-progress-bar-wrap {
    width: 100%;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
    display: none;
  }
  .upload-progress-bar-wrap.visible { display: block; }
  .upload-progress-bar {
    height: 100%;
    background: var(--red);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
  }
  
  /* Spinner */
  @keyframes spin { to { transform: rotate(360deg); } }
  .spinner {
    width: 14px; height: 14px;
    border: 2px solid #ddd;
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
  }
  
  /* ===== FORM ACTIONS ===== */
  .form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    align-items: center;
  }
  .btn-submit {
    height: 48px;
    padding: 0 48px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 4px 16px rgba(181, 0, 0, 0.22);
    font-family: inherit;
    position: relative;
  }
  .btn-submit:hover:not(:disabled) {
    background: var(--red-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(181, 0, 0, 0.3);
  }
  .btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
  }
  .btn-cancel {
    height: 48px;
    padding: 0 36px;
    background: var(--white);
    color: var(--red);
    border: 1.5px solid var(--red);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
  }
  .btn-cancel:hover { background: var(--red-light); }
  
  /* ===== TOAST ===== */
  .toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--white);
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 9999;
    white-space: nowrap;
  }
  .toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  .toast.toast-success {
    border: 1.5px solid #b7ddb7;
    color: #2e7d32;
  }
  .toast.toast-error {
    border: 1.5px solid var(--red-border);
    color: var(--red);
  }
  
  /* ===== FIELD ERROR STATE ===== */
  .form-control.is-error,
  .date-picker-wrap.is-error select {
    border-color: var(--red) !important;
    background: #fff8f8 !important;
  }
  .field-error-msg {
    font-size: 12px;
    color: var(--red);
    margin-top: 2px;
    display: none;
  }
  .field-error-msg.visible { display: block; }
  
  /* ===== RESPONSIVE ===== */
  @media screen and (max-width: 960px) {
    .apply-layout {
      grid-template-columns: 1fr;
      gap: 32px;
    }
    .apply-layout > div:first-child { display: none; }
  }
  @media screen and (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-col-full { grid-column: 1; }
    .form-card { padding: 24px 20px; }
    .form-actions { flex-direction: column; align-items: stretch; }
    .btn-submit, .btn-cancel { width: 100%; }
  }