/**
 * 华谱统一人员信息表单样式 (person-form.css)
 */

/* ── 表单容器 ── */
.pf-form {
  max-width: 600px;
  margin: 0 auto;
}

/* ── 分区 ── */
.pf-section {
  margin-bottom: 18px;
  padding: 14px;
  background: rgba(212,175,55,0.03);
  border: 1px solid rgba(212,175,55,0.1);
  border-radius: 10px;
}

.pf-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #d4af37;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(212,175,55,0.1);
}

/* ── 行 ── */
.pf-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.pf-row:last-child { margin-bottom: 0; }

/* ── 表单组 ── */
.pf-group {
  flex: 1;
  min-width: 0;
}

.pf-label {
  display: block;
  font-size: 12px;
  color: #b39d7a;
  margin-bottom: 4px;
  white-space: nowrap;
}

.pf-required {
  color: #e74c3c;
}

.pf-hint {
  font-size: 10px;
  color: #8b7355;
  margin-left: 4px;
}

/* ── 输入框 ── */
.pf-input {
  width: 100%;
  padding: 8px 10px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 6px;
  color: #e8dcc8;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.pf-input:focus {
  border-color: rgba(212,175,55,0.4);
}
.pf-input::placeholder {
  color: rgba(200,180,150,0.3);
}

/* ── 下拉框 ── */
.pf-select {
  width: 100%;
  padding: 8px 10px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 6px;
  color: #e8dcc8;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
  appearance: auto;
}
.pf-select:focus {
  border-color: rgba(212,175,55,0.4);
}
.pf-select option {
  background: #1a0e02;
  color: #e8dcc8;
}

/* ── 文本域 ── */
.pf-textarea {
  width: 100%;
  padding: 8px 10px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 6px;
  color: #e8dcc8;
  font-size: 13px;
  outline: none;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
}
.pf-textarea:focus {
  border-color: rgba(212,175,55,0.4);
}

/* ── 日历切换 ── */
.pf-calendar-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 10px;
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 6px;
  overflow: hidden;
}

.pf-cal-tab {
  flex: 1;
  padding: 6px 0;
  text-align: center;
  font-size: 12px;
  color: #b39d7a;
  background: rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.pf-cal-tab.active {
  background: rgba(212,175,55,0.15);
  color: #d4af37;
  font-weight: 600;
}

/* ── 子区块（婚姻/子女） ── */
.pf-sub-block {
  margin-top: 10px;
  padding: 10px;
  background: rgba(212,175,55,0.05);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 8px;
}

.pf-sub-title {
  font-size: 12px;
  color: #d4af37;
  margin-bottom: 8px;
  font-weight: 500;
}

/* ── 曾用名标签 ── */
.pf-tag-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 8px;
  min-height: 36px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 6px;
  cursor: text;
  align-items: center;
}

.pf-tag-input {
  flex: 1;
  min-width: 80px;
  padding: 4px 0;
  border: none;
  background: transparent;
  color: #e8dcc8;
  font-size: 12px;
  outline: none;
}

.pf-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 4px;
  font-size: 12px;
  color: #d4af37;
}

.pf-tag-close {
  cursor: pointer;
  font-size: 14px;
  color: rgba(212,175,55,0.5);
  line-height: 1;
}
.pf-tag-close:hover {
  color: #e74c3c;
}

/* ── 头像区域 ── */
.pf-avatar-area {
  display: flex;
  gap: 14px;
  align-items: center;
}

.pf-avatar-preview {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  border: 2px solid rgba(212,175,55,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b7355;
  font-size: 24px;
  flex-shrink: 0;
  overflow: hidden;
}

.pf-avatar-right {
  flex: 1;
}

.pf-file-name {
  font-size: 11px;
  color: #8b7355;
  margin-top: 4px;
}

/* ── 按钮 ── */
.pf-btn {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.pf-btn-outline {
  background: transparent;
  border: 1px solid rgba(212,175,55,0.3);
  color: #d4af37;
}
.pf-btn-outline:hover {
  background: rgba(212,175,55,0.1);
}
