/**
 * 银联医疗专业样式 - 统一优化版本
 * 医疗专业风格 + 现代交互效果
 */

/* ==================== 全局基础样式 ==================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  color: #111827;
  line-height: 1.5;
}

.phone {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  min-height: 100vh;
  background: transparent;
  padding-bottom: 24px;
}

/* ==================== 头部导航 ==================== */
.header {
  height: 48px;
  background: linear-gradient(135deg, #5a77bf 0%, #4861b0 100%);
  border-bottom: none;
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 2px 12px rgba(90, 119, 191, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-back {
  cursor: pointer;
  padding: 4px 8px;
  margin-right: 8px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.header-back:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ==================== 内容区域 ==================== */
.content {
  padding: clamp(20px, 3vw, 24px);
}

.section-title {
  font-weight: 700;
  font-size: 18px;
  background: linear-gradient(135deg, #5a77bf 0%, #4861b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  padding-left: 4px;
  position: relative;
}

.section-title::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, #5a77bf 0%, #4861b0 100%);
  border-radius: 2px;
}

/* ==================== 表单输入控件 ==================== */
.input,
.select,
.textarea {
  flex: 1;
  border: 1px solid #e8ecf1;
  background: linear-gradient(135deg, #f8f9fb 0%, #f5f7fa 100%);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13px;
  color: #1A1A1A;
  min-height: 32px;
  line-height: 32px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: #5a77bf;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(90, 119, 191, 0.1);
}

.textarea {
  min-height: 106px;
  resize: none;
  padding: 10px 14px;
  line-height: 1.6;
}

.readonly {
  width: 100%;
  border: 1px solid #e8ecf1;
  background: linear-gradient(135deg, #f8f9fb 0%, #f5f7fa 100%);
  border-radius: 8px;
  font-size: 13px;
  color: #1A1A1A;
  min-height: 32px;
  line-height: 32px;
  padding: 0 14px;
  margin: 6px 0;
  transition: all 0.3s ease;
}

.readonly:focus {
  border-color: #5a77bf;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(90, 119, 191, 0.1);
}

/* ==================== 按钮样式 ==================== */
.btn {
  border: none;
  background: linear-gradient(135deg, #5a77bf 0%, #4861b0 100%);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  height: 36px;
  padding: 0 20px;
  box-shadow: 0 2px 8px rgba(90, 119, 191, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(90, 119, 191, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn-light {
  background: linear-gradient(135deg, #f8f9fb 0%, #f5f7fa 100%);
  color: #5a77bf;
  border: 1px solid #5a77bf;
  box-shadow: 0 1px 4px rgba(90, 119, 191, 0.15);
}

.btn-light:hover {
  background: linear-gradient(135deg, #eef2f7 0%, #e8ecf1 100%);
  transform: translateY(-1px);
}

.btn-small {
  height: 28px;
  font-size: 12px;
  padding: 0 12px;
}

.btn-large {
  height: 44px;
  font-size: 16px;
  padding: 0 28px;
}

/* ==================== 卡片和字段 ==================== */
.field {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(90, 119, 191, 0.08);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.field:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.08);
  border-color: rgba(90, 119, 191, 0.15);
}

.field-label {
  font-size: 14px;
  color: #2d3748;
  margin-right: 8px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.field-label.with-star::before {
  content: "*";
  color: #ef4444;
  margin-right: 4px;
  font-weight: 600;
  font-size: 14px;
}

.field-tip {
  font-size: 12px;
  color: #718096;
  margin-top: 6px;
  line-height: 1.5;
}

.label-line {
  margin-bottom: 8px;
}

/* ==================== 布局工具 ==================== */
.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* ==================== 图标和箭头 ==================== */
.row-icon {
  width: 18px;
  height: 18px;
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transition: transform 0.3s ease;
  opacity: 0.6;
}

.field:hover .row-icon {
  opacity: 1;
  transform: translateY(-50%) rotate(-90deg) translateX(2px);
}

.line-icon {
  width: 44px;
  height: 24px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.line-icon:hover {
  transform: scale(1.05);
}

/* ==================== 选择控件 ==================== */
.choice-row {
  display: flex;
  gap: 20px;
}

.choice-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.choice-row label:hover {
  background: rgba(90, 119, 191, 0.05);
}

.choice-row label.disabled {
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.7;
}

.choice-row input[type="radio"],
.choice-row input[type="checkbox"] {
  accent-color: #5a77bf;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* ==================== 开关按钮 ==================== */
.switch {
  min-width: 56px;
  height: 32px;
  border-radius: 16px;
  border: 1px solid #d1d5db;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  cursor: pointer;
  color: #6b7280;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.switch:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.switch.on {
  background: linear-gradient(135deg, #5a77bf 0%, #4861b0 100%);
  border-color: #5a77bf;
  color: #fff;
  box-shadow: 0 2px 8px rgba(90, 119, 191, 0.3);
}

/* ==================== 弹窗和遮罩 ==================== */
.overlay {
  position: fixed;
  bottom: 0;
  top: 0;
  right: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  padding: 20px;
  display: flex;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.overlay-addr {
  align-items: end;
  padding: 0;
}

.dialog {
  width: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.overlay-addr .dialog {
  border-radius: 16px 16px 0 0;
}

.dialog-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 16px;
  color: #2d3748;
}

/* ==================== 时间网格 ==================== */
.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.time-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
}

.time-item:hover {
  border-color: #5a77bf;
  background: linear-gradient(135deg, #eef2f7 0%, #e8ecf1 100%);
  transform: translateY(-1px);
}

.time-item.active {
  border-color: #5a77bf;
  color: #fff;
  background: linear-gradient(135deg, #5a77bf 0%, #4861b0 100%);
  box-shadow: 0 2px 8px rgba(90, 119, 191, 0.3);
  transform: scale(1.02);
}

.time-item.disabled {
  background: linear-gradient(135deg, #f3f4f6 0%, #e8e9eb 100%);
  color: #9ca3af;
  cursor: not-allowed;
  border-color: #e5e7eb;
  opacity: 0.7;
}

/* ==================== 图片缩略图 ==================== */
.thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f8f9fb 0%, #f5f7fa 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(90, 119, 191, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(220, 38, 38, 0.9) 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  transition: all 0.3s ease;
  z-index: 10;
}

.thumb-remove:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(239, 68, 68, 1) 0%, rgba(220, 38, 38, 1) 100%);
}

.thumb-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px dashed #d1d5db;
  background: linear-gradient(135deg, #f8f9fb 0%, #f5f7fa 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumb-upload:hover {
  border-color: #5a77bf;
  background: linear-gradient(135deg, #eef2f7 0%, #e8ecf1 100%);
}

.thumb-upload img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.thumb-upload:hover img {
  opacity: 1;
}

/* ==================== 时间段表格 ==================== */
.slot-table {
  margin-top: 12px;
  background: linear-gradient(135deg, #f8f9fb 0%, #f5f7fa 100%);
  border-radius: 8px;
  padding: 8px;
  overflow: hidden;
}

.slot-head {
  display: grid;
  grid-template-columns: 40px repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 11px;
  color: #718096;
  margin-bottom: 6px;
  padding: 4px 0;
  font-weight: 600;
}

.slot-row {
  display: grid;
  grid-template-columns: 40px repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  margin-bottom: 4px;
}

.slot-row:last-child {
  margin-bottom: 0;
}

.slot-row > div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  font-size: 11px;
  color: #718096;
  font-weight: 500;
}

.slot-chip {
  display: inline-block;
  padding: 4px 6px;
  font-size: 11px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e7f0ff 0%, #d9e8ff 100%);
  color: #5a77bf;
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(90, 119, 191, 0.15);
  box-shadow: 0 1px 3px rgba(90, 119, 191, 0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.slot-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(90, 119, 191, 0.2);
}

.slot-chip.active {
  background: linear-gradient(135deg, #5a77bf 0%, #4861b0 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(90, 119, 191, 0.3);
}

.slot-chip.disabled {
  background: linear-gradient(135deg, #f3f4f6 0%, #e8e9eb 100%);
  color: #9ca3af;
  cursor: not-allowed;
  border-color: transparent;
  box-shadow: none;
}

/* ==================== 固定操作区 ==================== */
.fixed-actions {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
  padding: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ==================== 地区选择器 ==================== */
.region-dialog {
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}

.region-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(90, 119, 191, 0.1);
}

.region-title {
  font-weight: 600;
  font-size: 16px;
  color: #2d3748;
}

.region-picker {
  display: flex;
  gap: 10px;
  height: 240px;
}

.region-column {
  flex: 1;
  overflow-y: auto;
  border: 1px solid #e8ecf1;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px;
}

.region-column::-webkit-scrollbar {
  display: none;
}

.region-item {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  transition: all 0.2s ease;
  color: #4a5568;
}

.region-item:first-child {
  margin-top: 0;
}

.region-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.region-item:hover {
  background: linear-gradient(135deg, #eef2f7 0%, #e8ecf1 100%);
  color: #5a77bf;
}

.region-item.active {
  background: linear-gradient(135deg, #5a77bf 0%, #4861b0 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(90, 119, 191, 0.3);
}

/* ==================== 日期选择器 ==================== */
.date-picker-overlay {
  position: fixed;
  bottom: 0;
  top: 0;
  right: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.date-picker-container {
  width: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 20px 20px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 20px);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.date-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(90, 119, 191, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
}

.date-picker-title {
  font-size: 16px;
  font-weight: 700;
  color: #2d3748;
}

.date-picker-btn {
  font-size: 14px;
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.date-picker-cancel {
  color: #718096;
}

.date-picker-cancel:hover {
  background: rgba(113, 128, 150, 0.1);
}

.date-picker-confirm {
  color: #5a77bf;
  font-weight: 600;
}

.date-picker-confirm:hover {
  background: rgba(90, 119, 191, 0.1);
}

.date-picker-columns {
  display: flex;
  height: 240px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 50%, #ffffff 100%);
}

.date-picker-column {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 4px;
}

.date-picker-column::-webkit-scrollbar {
  display: none;
}

.date-picker-item {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #646566;
  scroll-snap-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin: 0 2px;
}

.date-picker-item:hover {
  background: rgba(90, 119, 191, 0.05);
}

.date-picker-item.selected {
  color: #5a77bf;
  font-weight: 600;
  background: rgba(90, 119, 191, 0.08);
}

.date-picker-mask {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.95) 0%,
    rgba(248,249,251,0.6) 40%,
    rgba(248,249,251,0) 50%,
    rgba(248,249,251,0.6) 60%,
    rgba(255,255,255,0.95) 100%
  );
}

.date-picker-indicator {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 44px;
  border-top: 1px solid rgba(90, 119, 191, 0.15);
  border-bottom: 1px solid rgba(90, 119, 191, 0.15);
  pointer-events: none;
  background: rgba(90, 119, 191, 0.02);
  border-radius: 8px;
}

/* ==================== 时间对话框 ==================== */
.time-dialog {
  max-height: 65vh;
  overflow-y: auto;
}

.time-period-title {
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  margin: 16px 0 10px 0;
  padding-left: 6px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(90, 119, 191, 0.1);
}

.time-period-title:first-child {
  margin-top: 0;
}

/* ==================== 列表样式 ==================== */
.list-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(90, 119, 191, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.list-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.08);
  border-color: rgba(90, 119, 191, 0.15);
  transform: translateY(-2px);
}

/* ==================== 空状态 ==================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}

.empty-state img {
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state p {
  font-size: 14px;
  margin: 0;
}

/* ==================== 加载状态 ==================== */
.loading {
  text-align: center;
  padding: 40px 20px;
  color: #718096;
  font-size: 14px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(90, 119, 191, 0.1);
  border-top-color: #5a77bf;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== 错误页面 ==================== */
.error-container {
  text-align: center;
  padding: 60px 20px;
}

.error-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.error-title {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
}

.error-message {
  font-size: 14px;
  color: #718096;
  margin-bottom: 24px;
}

/* ==================== 详情页面 ==================== */
.detail-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(90, 119, 191, 0.08);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 14px;
  color: #718096;
  font-weight: 500;
  min-width: 80px;
}

.detail-value {
  font-size: 14px;
  color: #2d3748;
  text-align: right;
  flex: 1;
}

/* ==================== 首页卡片 ==================== */
.home-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(90, 119, 191, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.home-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.08);
  border-color: rgba(90, 119, 191, 0.15);
  transform: translateY(-2px);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
}

.card-content {
  font-size: 14px;
  color: #718096;
  line-height: 1.6;
}

/* ==================== 标签 ==================== */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  background: linear-gradient(135deg, #e7f0ff 0%, #d9e8ff 100%);
  color: #5a77bf;
}

.tag-success {
  background: linear-gradient(135deg, #d1fae5 0%, #c3f0d8 100%);
  color: #059669;
}

.tag-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #d97706;
}

.tag-error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
}

.card {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(90, 119, 191, 0.08);
  background: #ffffff;
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
}
.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #5a77bf 0%, #4861b0 100%);
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 119, 191, 0.2);
  box-shadow: 0 4px 12px rgba(90, 119, 191, 0.1);
}
.card:nth-child(even)::before {
  background: linear-gradient(180deg, #7c8ece 0%, #5a77bf 100%);
}

/* ==================== Vue 指令 ==================== */
[v-cloak] {
  display: none;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 520px) {
  .section-title {
    font-size: 18px;
  }

  .btn {
    min-width: 72px;
  }

  .field {
    padding: 12px 14px;
  }

  .dialog {
    padding: 16px;
    border-radius: 12px;
  }

  .date-picker-container {
    border-radius: 16px 16px 0 0;
  }

  .home-card,
  .detail-section {
    padding: 14px 16px;
  }

  .region-picker {
    height: 200px;
  }
}

@media (max-width: 375px) {
  .content {
    padding: 16px;
  }

  .field {
    padding: 10px 12px;
  }

  .btn {
    height: 32px;
    font-size: 13px;
  }
}
