/* 后台页面「秋冬赠送·三次承诺」。外观跟后台其他页面一致（.page-body / .card / .table / .status-badge / .btn 都是后台现成的），
   这里只补本页自己的排版，类名都以 prg- 开头，全部限定在 #pledgeRentGiftAdmin 里，不影响别的页面。 */
#pledgeRentGiftAdmin { color: #1f2937; font-size: 14px; line-height: 1.6; letter-spacing: 0; }
#pledgeRentGiftAdmin .prg-page { padding: 20px 24px 32px; min-height: calc(100vh - 80px); }

/* 页签：白底条，选中的是后台主色下划线 */
#pledgeRentGiftAdmin .prg-tabs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 0 12px; margin-bottom: 16px; }
#pledgeRentGiftAdmin .prg-tab { position: relative; border: 0; background: transparent; color: #6b7280; padding: 14px 14px 12px; font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 6px; }
#pledgeRentGiftAdmin .prg-tab:hover { color: #4f46e5; }
#pledgeRentGiftAdmin .prg-tab.active { color: #4f46e5; font-weight: 600; border-bottom-color: #4f46e5; }
#pledgeRentGiftAdmin .prg-tab-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 12px; line-height: 18px; text-align: center; font-weight: 600; }
#pledgeRentGiftAdmin .prg-tabs-gap { flex: 1; }
#pledgeRentGiftAdmin .prg-tabs .btn { margin: 8px 0; }
#pledgeRentGiftAdmin .prg-body[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* 按钮：后台的 .btn 没有悬停和禁用样式，这里补上 */
#pledgeRentGiftAdmin .btn { line-height: 1.4; white-space: nowrap; transition: filter .15s, background .15s; }
#pledgeRentGiftAdmin .btn:hover:not([disabled]) { filter: brightness(0.95); }
#pledgeRentGiftAdmin .btn-secondary { color: #374151; border: 1px solid #e5e7eb; }
#pledgeRentGiftAdmin .btn[disabled] { cursor: default; opacity: .65; }
#pledgeRentGiftAdmin .prg-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

/* 卡片 */
#pledgeRentGiftAdmin .prg-card { overflow: hidden; margin-bottom: 16px; }
#pledgeRentGiftAdmin .prg-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid #f0f0f0; }
#pledgeRentGiftAdmin .prg-card-title { font-size: 16px; font-weight: 600; color: #1f2937; }
#pledgeRentGiftAdmin .prg-card-sub { margin-top: 4px; font-size: 13px; color: #6b7280; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#pledgeRentGiftAdmin .prg-card-extra { display: flex; gap: 8px; flex-wrap: wrap; }
#pledgeRentGiftAdmin .prg-card-foot { padding: 12px 20px; border-top: 1px solid #f0f0f0; font-size: 13px; color: #6b7280; background: #fafafa; overflow-wrap: anywhere; }
#pledgeRentGiftAdmin .prg-card-foot-top { border-top: 0; border-bottom: 1px solid #f0f0f0; }
#pledgeRentGiftAdmin .prg-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#pledgeRentGiftAdmin .prg-grid-2 > .card { margin-bottom: 16px; }

/* 活动开关：三档并排，当前档用主色描边 */
#pledgeRentGiftAdmin .prg-mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#pledgeRentGiftAdmin .prg-mode-tile { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; }
#pledgeRentGiftAdmin .prg-mode-tile.is-current { border: 2px solid #4f46e5; background: #f5f3ff; padding: 15px; }
#pledgeRentGiftAdmin .prg-mode-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
#pledgeRentGiftAdmin .prg-mode-desc { flex: 1; color: #6b7280; font-size: 13px; }
#pledgeRentGiftAdmin .prg-mode-tile .btn { align-self: flex-start; }
#pledgeRentGiftAdmin .prg-mode-tile.is-current .btn[disabled] { opacity: 1; background: #eef2ff; color: #4f46e5; border-color: #c7d2fe; }

/* 数字卡片 */
#pledgeRentGiftAdmin .prg-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
#pledgeRentGiftAdmin .prg-stat { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 16px 18px; }
#pledgeRentGiftAdmin .prg-stat-label { font-size: 13px; color: #6b7280; }
#pledgeRentGiftAdmin .prg-stat-num { font-size: 26px; font-weight: 700; color: #1f2937; margin-top: 4px; font-variant-numeric: tabular-nums; }
#pledgeRentGiftAdmin .prg-stat.is-warn { box-shadow: inset 0 3px 0 #f59e0b, 0 1px 3px rgba(0,0,0,0.08); }
#pledgeRentGiftAdmin .prg-stat.is-warn .prg-stat-num { color: #d97706; }
#pledgeRentGiftAdmin .prg-stat.is-bad { box-shadow: inset 0 3px 0 #ef4444, 0 1px 3px rgba(0,0,0,0.08); }
#pledgeRentGiftAdmin .prg-stat.is-bad .prg-stat-num { color: #dc2626; }

/* 上线前检查 */
#pledgeRentGiftAdmin .prg-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#pledgeRentGiftAdmin .prg-check { display: flex; gap: 8px; align-items: flex-start; overflow-wrap: anywhere; }
#pledgeRentGiftAdmin .prg-ico { flex: 0 0 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-top: 1px; }
#pledgeRentGiftAdmin .prg-check.is-bad { color: #b91c1c; } #pledgeRentGiftAdmin .prg-check.is-bad .prg-ico { background: #fee2e2; }
#pledgeRentGiftAdmin .prg-check.is-warn { color: #b45309; } #pledgeRentGiftAdmin .prg-check.is-warn .prg-ico { background: #fef3c7; }
#pledgeRentGiftAdmin .prg-check.is-ok { color: #047857; } #pledgeRentGiftAdmin .prg-check.is-ok .prg-ico { background: #d1fae5; }

/* 键值列表 */
#pledgeRentGiftAdmin .prg-kv { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px 16px; margin: 0; }
#pledgeRentGiftAdmin .prg-kv dt { color: #6b7280; }
#pledgeRentGiftAdmin .prg-kv dd { margin: 0; overflow-wrap: anywhere; }

/* 表单：输入框和后台 .form-input 一个样子（紧凑版，同“网点库存”的筛选栏） */
#pledgeRentGiftAdmin input:not([type=checkbox]):not([type=radio]), #pledgeRentGiftAdmin select { box-sizing: border-box; height: 38px; padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; background: #fff; color: #1f2937; max-width: 100%; }
#pledgeRentGiftAdmin input:focus, #pledgeRentGiftAdmin select:focus { outline: none; border-color: #4f46e5; }
#pledgeRentGiftAdmin .prg-form { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
#pledgeRentGiftAdmin .prg-field { display: flex; flex-direction: column; min-width: 200px; }
#pledgeRentGiftAdmin .prg-field-wide { flex: 1; max-width: 420px; }
#pledgeRentGiftAdmin .prg-field-btn { min-width: 0; }
#pledgeRentGiftAdmin .prg-field input { width: 220px; }
#pledgeRentGiftAdmin .prg-field-wide input { width: 100%; }
#pledgeRentGiftAdmin .prg-unit { display: inline-flex; align-items: center; gap: 8px; }
#pledgeRentGiftAdmin .prg-unit input { width: 120px; }
#pledgeRentGiftAdmin .prg-unit em { font-style: normal; color: #6b7280; }
#pledgeRentGiftAdmin .prg-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
#pledgeRentGiftAdmin .prg-toolbar label { display: inline-flex; align-items: center; gap: 8px; color: #6b7280; white-space: nowrap; }
#pledgeRentGiftAdmin .prg-toolbar select { min-width: 200px; }
#pledgeRentGiftAdmin .prg-card > .card-body:only-child { padding: 14px 20px; }

/* 表格：用后台 .table，长文字列允许换行 */
#pledgeRentGiftAdmin .prg-table th, #pledgeRentGiftAdmin .prg-table td { padding: 12px 16px; vertical-align: top; }
#pledgeRentGiftAdmin .prg-table .prg-wide { min-width: 220px; max-width: 460px; }
#pledgeRentGiftAdmin .prg-table details { margin-top: 4px; }
#pledgeRentGiftAdmin .prg-table details summary { cursor: pointer; color: #4f46e5; font-size: 12px; }
#pledgeRentGiftAdmin .prg-script { margin-top: 4px; padding: 6px 8px; background: #f9fafb; border-radius: 6px; color: #4b5563; font-size: 13px; }
#pledgeRentGiftAdmin .prg-table audio { width: 220px; height: 34px; margin-top: 6px; display: block; }
#pledgeRentGiftAdmin .prg-table .status-badge { white-space: nowrap; }

/* 小字 */
#pledgeRentGiftAdmin .prg-muted { color: #9ca3af; font-size: 12px; }
#pledgeRentGiftAdmin .prg-code { color: #9ca3af; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; margin-top: 2px; }
#pledgeRentGiftAdmin .prg-hint { margin-top: 12px; color: #6b7280; font-size: 13px; }
#pledgeRentGiftAdmin .status-badge.prg-badge-bad { background: #fee2e2; color: #dc2626; }
#pledgeRentGiftAdmin .empty-state { padding: 40px 24px; }

/* 提示条和操作结果 */
#pledgeRentGiftAdmin .prg-notice { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; border: 1px solid; border-left-width: 4px; overflow-wrap: anywhere; background: #fff; }
#pledgeRentGiftAdmin .prg-notice.prg-ok { background: #ecfdf5; border-color: #a7f3d0; border-left-color: #10b981; color: #065f46; }
#pledgeRentGiftAdmin .prg-notice.prg-bad { background: #fef2f2; border-color: #fecaca; border-left-color: #ef4444; color: #991b1b; }
#pledgeRentGiftAdmin .prg-notice.prg-warn { background: #fffbeb; border-color: #fde68a; border-left-color: #f59e0b; color: #92400e; }
#pledgeRentGiftAdmin .prg-result { margin-top: 12px; padding: 10px 14px; border-radius: 8px; background: #f5f3ff; border: 1px solid #ddd6fe; overflow-wrap: anywhere; }

/* 窄屏 */
@media (max-width: 1280px) { #pledgeRentGiftAdmin .prg-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  #pledgeRentGiftAdmin .prg-grid-2, #pledgeRentGiftAdmin .prg-mode-grid { grid-template-columns: 1fr; }
  #pledgeRentGiftAdmin .prg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #pledgeRentGiftAdmin .prg-kv { grid-template-columns: 1fr; gap: 2px; }
  #pledgeRentGiftAdmin .prg-kv dd { margin-bottom: 8px; }
}
