/* ==================== 版权登记页面样式 ==================== */

.register-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

/* 表单卡片 */
.register-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-bottom: 32px;
}

@media (max-width: 640px) {
  .register-form-card {
    padding: 24px 18px;
  }
}

.form-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.form-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}

.form-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* 表单分区 */
.form-section {
  margin-bottom: 28px;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 16px;
}

/* 表单网格 */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* 表单组 */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-input,
.form-select {
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s ease, box-shadow .2s ease;
  outline: none;
  font-family: inherit;
  width: 100%;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
  background: var(--surface);
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* 单选按钮组 */
.form-radio-group {
  display: flex;
  gap: 20px;
  align-items: center;
  height: 42px;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.form-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.radio-label {
  font-size: 14px;
  color: var(--text);
}

/* 表单操作按钮 */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.form-submit-btn {
  padding: 0 32px;
  height: 44px;
  font-size: 15px;
}

@media (max-width: 480px) {
  .form-actions {
    flex-direction: column-reverse;
  }
  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* 已提交记录区 */
.register-history {
  margin-top: 8px;
}

.history-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}

/* 记录卡片 */
.history-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: all .2s ease;
}

.history-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-hover);
}

.history-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.history-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.history-card-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 16px;
}

@media (max-width: 640px) {
  .history-card-body {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .history-card-body {
    grid-template-columns: 1fr;
  }
}

.history-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.history-field-label {
  font-size: 11px;
  color: var(--text-light);
}

.history-field-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* 是否独家 标签 */
.history-field-value.exclusive-yes {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #B91C1C;
  background: #FEE2E2;
  border-radius: 999px;
}
.history-field-value.exclusive-no {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  background: #F1F5F9;
  border-radius: 999px;
}

/* 状态徽章 */
.status-pending {
  background: #FEF3C7;
  color: #92400E;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-approved {
  background: #D1FAE5;
  color: #065F46;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-rejected {
  background: #FEE2E2;
  color: #991B1B;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* 空状态 */
.history-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.history-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: .6;
}

.history-empty-title {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 6px;
}

.history-empty-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* 提交成功提示 */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #065F46;
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
}

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

/* 小说名称自动建议下拉框 */
.novel-suggest-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1.5px solid var(--primary-200);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 4px;
}

.novel-suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .15s ease;
  gap: 12px;
}

.novel-suggest-item:hover {
  background: var(--primary-50);
}

.novel-suggest-item + .novel-suggest-item {
  border-top: 1px solid var(--border);
}

.suggest-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.suggest-author {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* 查看凭证按钮 */
.btn-view-license {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  background: var(--primary-50);
  color: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
  margin-left: auto;
  border: 1px solid var(--primary-100);
}

.btn-view-license:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ==================== 登记人卡片 ==================== */
.registrant-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--primary-50) 0%, #F8FBFF 100%);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.registrant-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.18);
}

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

.registrant-avatar-fallback {
  line-height: 1;
}

.registrant-info {
  flex: 1;
  min-width: 0;
}

.registrant-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

@media (max-width: 540px) {
  .registrant-card {
    padding: 12px 14px;
    gap: 10px;
  }
  .registrant-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}