/* apply.html 专用样式 — 商务官方风 */

.page-apply .apply-main {
  flex: 1;
  width: min(100% - 2rem, 520px);
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
}

.page-apply .apply-head {
  text-align: center;
  margin-bottom: 1.25rem;
}

.page-apply .apply-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.page-apply .apply-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.page-apply .apply-form {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(46, 134, 222, 0.18);
  border-radius: 12px;
  padding: 1.25rem 1.15rem 1.5rem;
  box-shadow: 0 4px 24px rgba(30, 41, 59, 0.08);
}

.page-apply .form-section {
  border: none;
  margin: 0 0 1rem;
  padding: 0;
}

.page-apply .form-section legend {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue);
  padding: 0 0 0.65rem;
  width: 100%;
}

.page-apply .form-row {
  margin-bottom: 0.85rem;
}

.page-apply .form-row label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.page-apply .form-row label.label-required::after {
  content: " *";
  color: #dc2626;
  font-weight: 700;
}

.page-apply .form-row input,
.page-apply .form-row textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.page-apply .form-row input:focus,
.page-apply .form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 134, 222, 0.12);
}

.page-apply .form-row input.field-error,
.page-apply .form-row textarea.field-error {
  border-color: #ef4444;
}

.page-apply .form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.page-apply .agree-group {
  margin: 1rem 0 1.15rem;
  padding: 0.75rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.page-apply .agree-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
}

.page-apply .agree-row:last-child {
  margin-bottom: 0;
}

.page-apply .agree-row input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--blue);
}

.page-apply .apply-login-hint {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.page-apply .apply-login-hint a {
  margin-left: 0.25rem;
  font-weight: 600;
  color: var(--blue);
}

.page-apply .btn-submit {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #1a6bb5);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
  box-shadow: 0 6px 20px rgba(46, 134, 222, 0.25);
}

.page-apply .btn-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.page-apply .btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.page-apply .apply-footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.page-apply .btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(46, 134, 222, 0.35);
  border-radius: 10px;
  transition: background 0.2s;
}

.page-apply .btn-outline:hover {
  background: rgba(46, 134, 222, 0.06);
  text-decoration: none;
}

.page-apply .btn-text {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.5rem;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-soft);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

/* 成功弹窗 */
.page-apply .success-dialog {
  width: min(100% - 2rem, 440px);
  padding: 0;
  border: none;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.page-apply .success-dialog::backdrop {
  background: rgba(15, 23, 42, 0.5);
}

.page-apply .success-dialog-body {
  padding: 1.35rem 1.2rem;
  text-align: center;
}

.page-apply .success-dialog-body h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--blue);
}

.page-apply .success-lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.page-apply .cred-block {
  margin: 0 0 1rem;
  padding: 0.85rem;
  text-align: left;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
}

.page-apply .cred-line {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 0.25rem 0.5rem;
  margin-bottom: 0.5rem;
}

.page-apply .cred-line:last-child {
  margin-bottom: 0;
}

.page-apply .cred-line dt {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.page-apply .cred-line dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}

.page-apply .success-hint {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-soft);
  text-align: left;
}

.page-apply .success-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-apply .success-actions .btn-submit {
  text-decoration: none;
  text-align: center;
}

.page-apply .toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  max-width: calc(100% - 2rem);
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: #fff;
  background: #334155;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 50;
}

.page-apply .toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  .page-apply .form-row-grid {
    grid-template-columns: 1fr;
  }

  .page-apply .apply-footer-nav {
    grid-template-columns: 1fr;
  }

  .page-apply .cred-line {
    grid-template-columns: 1fr;
  }
}
