* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #f5f7fa;
  color: #333;
  min-height: 100vh;
}

/* ===== 布局 ===== */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ===== 左侧边栏 ===== */
.sidebar {
  width: 220px;
  min-width: 220px;
  background: linear-gradient(180deg, #1a1f36, #252b48);
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
  position: relative;
  z-index: 10;
}

.sidebar.collapsed {
  width: 64px;
  min-width: 64px;
}

.sidebar-header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.logo-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
}

.collapse-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.collapse-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.sidebar.collapsed .collapse-btn { transform: rotate(180deg); }
.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-text { display: none; }

/* 导航菜单 */
.nav-menu {
  flex: 1;
  padding: 8px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 2px;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255,255,255,0.65);
  transition: all 0.2s;
  font-size: 14px;
}

.nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.nav-item.active {
  background: rgba(59,130,246,0.2);
  color: #60a5fa;
  font-weight: 500;
}

.nav-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.nav-text {
  white-space: nowrap;
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.version-text {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

/* ===== 右侧内容区 ===== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.top-bar {
  height: 52px;
  background: #fff;
  border-bottom: 1px solid #e5e9f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}

.breadcrumb {
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.content-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

/* ===== 页面区块 ===== */
.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 3px solid #3b82f6;
}

/* ===== 概览页 ===== */
.info-grid {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.info-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f2f5;
}

.info-row:last-child { border-bottom: none; }

.info-row label {
  width: 120px;
  font-size: 13px;
  color: #666;
  flex-shrink: 0;
}

.info-row input[type="text"] {
  flex: 1;
  max-width: 360px;
  padding: 6px 12px;
  border: 1px solid #e0e4ea;
  border-radius: 6px;
  font-size: 13px;
  background: #fafbfc;
  color: #555;
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: #3b82f6;
}

.status-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.success {
  background: #dcfce7;
  color: #16a34a;
}

.status-badge.error {
  background: #fee2e2;
  color: #dc2626;
}

.quick-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.quick-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.2s;
  display: block;
}

.quick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59,130,246,0.15);
}

.quick-icon { font-size: 28px; margin-bottom: 8px; }
.quick-label { font-size: 14px; font-weight: 600; color: #333; }
.quick-desc { font-size: 12px; color: #999; margin-top: 4px; }

/* ===== 活动管理页 ===== */
.section-toolbar {
  background: #fff;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.toolbar-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.toolbar-left input {
  width: 240px;
  padding: 8px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
}

.toolbar-left input:focus { border-color: #3b82f6; }

.btn-primary {
  padding: 8px 18px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover { background: #2563eb; }

.btn-danger {
  padding: 8px 18px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-danger:hover { background: #dc2626; }

/* 表格 */
.event-table-wrap {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}

.event-table {
  width: 100%;
  border-collapse: collapse;
}

.event-table th {
  background: #f8fafc;
  padding: 11px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #e5e9f2;
}

.event-table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid #f1f3f5;
  vertical-align: middle;
}

.event-table tr:hover td { background: #fafbfd; }

.empty-row {
  text-align: center;
  color: #bbb;
  padding: 40px !important;
  font-size: 13px;
}

.table-event-name {
  font-weight: 500;
  color: #1e293b;
}

.table-count {
  display: inline-block;
  background: #eff6ff;
  color: #3b82f6;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.table-time {
  color: #94a3b8;
  font-size: 12px;
}

.table-actions {
  display: flex;
  gap: 6px;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sm:hover { border-color: #3b82f6; color: #3b82f6; }
.btn-sm.danger:hover { border-color: #ef4444; color: #ef4444; }

/* 详情面板 */
.detail-panel {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.1);
  margin-top: 20px;
  border: 2px solid #bfdbfe;
  position: relative;
  z-index: 5;
}

.detail-header {
  padding-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 24px;
}

.detail-name-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.detail-name-row input {
  flex: 1;
  max-width: 320px;
  padding: 10px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s;
}

.detail-name-row input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.detail-header .btn-primary {
  padding: 10px 20px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.detail-header .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.detail-header .btn-danger {
  padding: 10px 20px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.detail-header .btn-danger:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.endpoint-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.endpoint-card {
  background: #f8fafc;
  border: 1px solid #e5e9f2;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}

.endpoint-label {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 10px;
}

.endpoint-url {
  font-size: 11px;
  color: #64748b;
  word-break: break-all;
  margin-bottom: 10px;
  line-height: 1.4;
}

.endpoint-qr {
  max-width: 160px;
  border-radius: 6px;
  background: #fff;
  padding: 6px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 10px 24px;
  background: #1e293b;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  transition: transform 0.3s;
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== 创建弹窗 ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal-box {
  background: #fff;
  border-radius: 12px;
  width: 480px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e9f2;
}

.modal-header h3 { font-size: 16px; color: #1e293b; margin: 0; }

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.modal-close:hover { color: #ef4444; }

.modal-form { padding: 20px; }

.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  margin-bottom: 6px;
}

.required { color: #ef4444; }

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus { border-color: #3b82f6; }

.form-group textarea { resize: vertical; min-height: 50px; }

.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #f1f3f5;
}

.btn-secondary {
  padding: 8px 18px;
  background: #fff;
  color: #64748b;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.btn-secondary:hover { background: #f8fafc; }

.config-upload-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== 详情信息编辑 ===== */
.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 10px;
  border: 2px solid #e2e8f0;
}

.detail-info-grid .info-item { margin-bottom: 0; }

.detail-info-grid .info-item label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.detail-info-grid .info-item input,
.detail-info-grid .info-item textarea {
  width: 100%;
  padding: 9px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 7px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  background: #fff;
}

.detail-info-grid .info-item input:focus,
.detail-info-grid .info-item textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.detail-info-grid .full-width { grid-column: 1 / -1; }

.detail-info-grid .btn-primary[id="saveEventInfoBtn"] {
  grid-column: 1 / -1;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.detail-info-grid .btn-primary[id="saveEventInfoBtn"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

/* 活动列表布局（长条形） */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.empty-list-item {
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 16px;
  border: 3px dashed #cbd5e1;
  transition: all 0.3s;
}

.empty-list-item:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.empty-list-item .empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
}

.empty-list-item .empty-text {
  font-size: 18px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}

.empty-list-item .empty-hint {
  font-size: 14px;
  color: #94a3b8;
}

.list-item {
  display: flex;
  align-items: stretch;
  background: linear-gradient(to bottom right, #ffffff, #fafbfc);
  border-radius: 14px;
  border: 2px solid #e5e9f2;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #3b82f6, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s;
}

.list-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
  transform: translateY(-3px) scale(1.01);
}

.list-item:hover::before {
  opacity: 1;
}

.list-item.active-list-item {
  border-color: #60a5fa;
  border-left-width: 5px;
  background: linear-gradient(to right, #eff6ff, #ffffff);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.list-item.active-list-item::before {
  opacity: 1;
}

.item-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px;
  min-width: 0;
}

.item-info {
  flex: 1;
  min-width: 220px;
}

.item-name {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  color: #475569;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.meta-tag:hover {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #bfdbfe;
  transform: translateY(-1px);
}

.meta-tag.badge {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  font-weight: 700;
  border-color: #fcd34d;
}

.item-qr-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.mini-qr {
  text-align: center;
  transition: all 0.3s;
}

.mini-qr:hover {
  transform: translateY(-4px) scale(1.08);
}

.mini-qr-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mini-qr-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  background: #fff;
  padding: 5px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.mini-qr-img:hover {
  transform: scale(1.18) translateY(-4px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
  border-color: #60a5fa;
  z-index: 10;
  position: relative;
}

.item-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  padding: 24px 20px;
  border-left: 2px solid #f1f5f9;
  background: linear-gradient(to bottom right, #fafbfc, #f8fafc);
  min-width: 160px;
}

.btn-sm,
a.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  padding: 11px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  color: #475569;
  position: relative;
  overflow: hidden;
}

.btn-sm::before,
a.btn-sm::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.btn-sm:hover::before,
a.btn-sm:hover::before {
  width: 200%;
  height: 200%;
}

.btn-sm:hover,
a.btn-sm:hover {
  border-color: #3b82f6;
  color: #2563eb;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  transform: translateY(-2px) translateX(3px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-sm:active,
a.btn-sm:active {
  transform: translateY(0) translateX(0);
}

/* 返回列表栏 */
.back-to-list-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-radius: 14px;
  border: 2px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s;
}

.back-to-list-bar:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 9px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1);
  border: 2px solid transparent;
}

.back-link:hover {
  color: #2563eb;
  background: #eff6ff;
  transform: translateX(-3px);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15);
}

.current-event-name {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}


/* ========== 基本信息页面样式 ========== */
  margin-top: 32px;
  padding-top: 28px;
  border-top: 3px solid #e2e8f0;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.btn-secondary {
  padding: 12px 24px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  color: #475569;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.btn-secondary:hover::before {
  width: 200%;
  height: 200%;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-color: #94a3b8;
  color: #334155;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.25);
}

/* 页面设置按钮样式 */
a.config-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  padding: 11px 20px;
  border: 2px solid #fde68a;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #b45309;
  position: relative;
  overflow: hidden;
}

a.config-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

a.config-btn:hover::before {
  width: 200%;
  height: 200%;
}

a.config-btn:hover {
  border-color: #fbbf24;
  color: #92400e;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  transform: translateY(-2px) translateX(3px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

a.config-btn:active {
  transform: translateY(0) translateX(0);
}

/* ========== 基本信息页面样式 ========== */
.info-page-container {
  max-width: 960px;
  margin: 0 auto;
}

/* Tab导航栏 */
.info-tabs-nav {
  display: flex;
  gap: 8px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  padding: 10px;
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.info-tab-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.info-tab-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.info-tab-btn:hover {
  color: #334155;
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.info-tab-btn.active {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  font-weight: 700;
}

.info-tab-btn.active::before {
  width: 60%;
}

/* Tab内容区 */
.info-tab-content {
  display: none;
  animation: tabFadeIn 0.4s ease-out;
}

.info-tab-content.active {
  display: block;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-header-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  border: 2px solid #e5e9f2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.qr-hint-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 2px solid #bfdbfe;
  border-radius: 14px;
  padding: 20px 28px;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

.qr-hint-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
  border-color: #93c5fd;
}

.export-action-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px solid #86efac;
  border-radius: 14px;
  padding: 20px 28px;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
  transition: all 0.3s ease;
}

.export-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.15);
  border-color: #4ade80;
}

.export-hint-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.export-hint-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.export-hint-text strong {
  font-size: 15px;
  color: #166534;
  font-weight: 700;
}

.export-hint-text span {
  font-size: 13px;
  color: #22c55e;
}

.danger-action-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 2px solid #fca5a5;
  border-radius: 14px;
  padding: 20px 28px;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
  transition: all 0.3s ease;
}

.danger-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.15);
  border-color: #f87171;
}

.danger-hint-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.danger-hint-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.danger-hint-text strong {
  font-size: 15px;
  color: #991b1b;
  font-weight: 700;
}

.danger-hint-text span {
  font-size: 13px;
  color: #ef4444;
}

.qr-hint-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.qr-hint-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qr-hint-text strong {
  font-size: 15px;
  color: #1e40af;
  font-weight: 700;
}

.qr-hint-text span {
  font-size: 13px;
  color: #3b82f6;
}

.info-page-title {
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.info-name-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.info-name-row input[type="text"] {
  flex: 1;
  min-width: 280px;
  padding: 14px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 11px;
  font-size: 17px;
  font-weight: 600;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #ffffff, #fafbff);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.info-name-row input[type="text"]:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15), inset 0 1px 3px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.info-form-card {
  background: linear-gradient(to bottom right, #ffffff, #fafbff);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  border: 2px solid #e5e9f2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.info-form-title {
  font-size: 19px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 3px solid #f1f5f9;
}

.info-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #ffffff, #fafbff);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.form-input:focus,
.form-textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15), inset 0 1px 3px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-actions-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 2px solid #f1f5f9;
}

/* 二维码使用指南 */
.qr-usage-guide {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #fcd34d;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}

.guide-title {
  font-size: 18px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.6);
  padding: 14px 18px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.guide-step:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.step-number {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}

.step-text strong {
  display: block;
  font-size: 15px;
  color: #78350f;
  margin-bottom: 4px;
  font-weight: 700;
}

.step-text p {
  font-size: 13px;
  color: #92400e;
  margin: 0;
  line-height: 1.5;
}

.guide-warning {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border: 2px solid #fca5a5;
  border-radius: 10px;
  padding: 16px 20px;
  color: #991b1b;
  font-size: 13px;
  line-height: 1.6;
}

.guide-warning strong {
  color: #7f1d1d;
}

.guide-warning ul {
  margin: 8px 0 0 20px;
  padding: 0;
}

.guide-warning li {
  margin: 4px 0;
}

.qr-page-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 16px;
  padding: 28px 32px;
  border: 2px solid #e5e9f2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.qr-page-title {
  font-size: 19px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 24px;
  text-align: center;
}

.qr-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.qr-page-item {
  text-align: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.qr-page-item:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: #93c5fd;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.2);
}

.qr-page-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  background: #fff;
  padding: 14px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  margin-bottom: 14px;
  transition: all 0.3s ease;
  min-height: 220px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.qr-page-img[alt="正在生成..."],
.qr-page-img[alt="加载失败"] {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #64748b;
  position: relative;
}

.qr-page-img[alt="正在生成..."]::before {
  content: '⏳';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  animation: qrLoadingSpin 1s linear infinite;
}

@keyframes qrLoadingSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.qr-page-item:hover .qr-page-img {
  border-color: #bfdbfe;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.qr-page-label {
  font-size: 15px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.qr-page-url {
  font-size: 12px;
  color: #94a3b8;
  word-break: break-all;
  line-height: 1.4;
}

.qr-open-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.qr-open-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}

.qr-open-btn:active {
  transform: translateY(0);
}

/* 花篮名单列表 */
.basket-list-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.basket-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.basket-add-row,
.basket-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.basket-input {
  height: 34px;
  min-width: 220px;
  padding: 0 12px;
  font-size: 13px;
  color: #1e293b;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease;
}

.basket-input:focus {
  border-color: #3b82f6;
}

.basket-count-bar {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 10px;
}

.basket-count-bar strong {
  color: #2563eb;
}

.basket-table-wrap {
  border: 1px solid #e5e9f2;
  border-radius: 8px;
  overflow: auto;
  max-height: 520px;
}

.basket-table {
  width: 100%;
  border-collapse: collapse;
}

.basket-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  padding: 11px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #e5e9f2;
  white-space: nowrap;
}

.basket-table td {
  padding: 11px 14px;
  font-size: 13px;
  color: #1e293b;
  border-bottom: 1px solid #f1f3f5;
  vertical-align: middle;
}

.basket-table tr:hover td {
  background: #fafbfd;
}

.basket-col-seq {
  width: 70px;
}

.basket-col-unit {
  min-width: 220px;
  word-break: break-all;
}

.basket-col-time {
  width: 160px;
  color: #94a3b8;
  font-size: 12px;
  white-space: nowrap;
}

.basket-col-status {
  width: 130px;
}

.basket-col-action {
  width: 150px;
}

.basket-action-group {
  display: flex;
  gap: 6px;
}

.basket-status-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  background: #eff6ff;
  color: #3b82f6;
}

.basket-status-tag[data-basket-status="scrolling"] {
  background: #f0fdf4;
  color: #16a34a;
}

.basket-empty-tip {
  padding: 40px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

@media (max-width: 768px) {
  .basket-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .basket-input {
    min-width: 0;
    width: 100%;
  }
}

/* 返回栏链接样式增强 */
.config-link {
  background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
  border-color: #fde68a !important;
  color: #b45309 !important;
  margin-left: auto;
}

.config-link:hover {
  transform: translateY(-2px) translateX(-3px) !important;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3) !important;
}

.info-link {
  background: linear-gradient(135deg, #eff6ff, #dbeafe) !important;
  border-color: #bfdbfe !important;
  color: #2563eb !important;
  margin-left: auto;
}

.info-link:hover {
  transform: translateY(-2px) translateX(-3px) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25) !important;
}

/* ========== 页面设置样式 ========== */
.config-page-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* 配置Tab导航栏 */
.config-tabs-nav {
  display: flex;
  gap: 8px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  padding: 10px;
  border-radius: 14px;
  margin-bottom: 28px;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
  border: 2px solid #fcd34d;
}

.config-tab-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  background: transparent;
  color: #92400e;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.config-tab-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.config-tab-btn:hover {
  color: #78350f;
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.config-tab-btn.active {
  background: linear-gradient(135deg, #ffffff, #fffbeb);
  color: #92400e;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  font-weight: 700;
  border: 2px solid #fbbf24;
}

.config-tab-btn.active::before {
  width: 60%;
}

/* 配置Tab内容区 */
.config-tab-content {
  display: none;
  animation: configTabFadeIn 0.4s ease-out;
}

.config-tab-content.active {
  display: block;
}

@keyframes configTabFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.config-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid #f59e0b;
  line-height: 1.4;
}

.config-animation-preview,
.config-appearance-tips {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 2px solid #fcd34d;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.preview-title,
.tips-title {
  font-size: 16px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-list,
.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.preview-list li,
.tips-list li {
  padding: 8px 0;
  font-size: 14px;
  color: #78350f;
  line-height: 1.6;
  border-bottom: 1px dashed #fcd34d;
}

.preview-list li:last-child,
.tips-list li:last-child {
  border-bottom: none;
}

.preview-list strong {
  color: #92400e;
  font-weight: 700;
}

.config-group-card {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.config-group-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.config-group-title {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 14px;
  border-bottom: 2px solid #e2e8f0;
}

.config-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.config-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.config-input,
.config-color {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #ffffff, #fafbff);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.config-input:focus,
.config-color:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15), inset 0 1px 3px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.config-color {
  height: 48px;
  padding: 5px;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
}

.config-range {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  outline: none;
  -webkit-appearance: none;
  background: linear-gradient(90deg, #e2e8f0, #cbd5e1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 8px;
}

.config-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.4), 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
  border: 3px solid #fff;
}

.config-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.5), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.config-field.full-width {
  grid-column: 1 / -1;
}

.config-effect-mode {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.config-effect-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.config-preview-area {
  margin-top: 20px;
  padding: 24px;
  min-height: 160px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border: 3px dashed #cbd5e1;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s;
}

.preview-placeholder {
  color: #94a3b8;
  font-size: 16px;
  font-weight: 600;
  z-index: 1;
  opacity: 0.6;
}

.preview-image {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.config-actions-area {
  display: flex;
  gap: 18px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 3px solid #e2e8f0;
  flex-wrap: wrap;
}

.btn-xl {
  padding: 16px 40px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* 响应式 */
@media (max-width: 900px) {
  .info-tabs-nav {
    flex-direction: column;
    gap: 6px;
    padding: 8px;
  }

  .info-tab-btn {
    padding: 12px 16px;
    font-size: 14px;
  }

  .info-tab-btn::before {
    display: none;
  }

  .qr-hint-card {
    flex-direction: column;
    text-align: center;
    padding: 18px 20px;
  }

  .qr-hint-text {
    align-items: center;
  }

  .qr-usage-guide {
    padding: 18px 20px;
  }

  .guide-step {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .guide-warning {
    font-size: 12px;
    padding: 14px 16px;
  }

  .config-tabs-nav {
    flex-direction: column;
    gap: 6px;
    padding: 8px;
  }

  .config-tab-btn {
    padding: 12px 16px;
    font-size: 14px;
  }

  .config-tab-btn::before {
    display: none;
  }

  .list-item {
    flex-direction: column;
    border-radius: 12px;
  }

  .list-item::before {
    width: 5px;
    height: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
  }

  .item-main {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 20px;
  }

  .item-info {
    min-width: unset;
  }

  .item-name {
    font-size: 18px;
  }

  .item-meta {
    justify-content: flex-start;
  }

  .item-qr-row {
    width: 100%;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 2px solid #f1f5f9;
    border-bottom: 2px solid #f1f5f9;
  }

  .mini-qr-img {
    width: 60px;
    height: 60px;
  }

  .item-actions {
    width: 100%;
    border-left: none;
    border-top: 2px solid #e2e8f0;
    padding: 18px 20px;
    background: linear-gradient(to bottom right, #fafbfc, #f8fafc);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .btn-sm,
  a.btn-sm,
  a.config-btn {
    text-align: center;
    font-size: 13px;
  }

  /* 基本信息/设置页面响应式 */
  .info-form-grid,
  .config-fields-grid {
    grid-template-columns: 1fr;
  }

  .qr-page-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .qr-page-img {
    width: 180px;
    height: 180px;
  }

  .config-actions-area {
    flex-direction: column;
    gap: 12px;
  }

  .info-name-row {
    flex-direction: column;
  }

  .info-name-row input[type="text"] {
    width: 100%;
    min-width: unset;
  }

  .single-detail-panel {
    max-width: 100%;
  }

  .back-to-list-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .config-link,
  .info-link {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .item-name {
    font-size: 16px;
  }

  .meta-tag {
    font-size: 11px;
    padding: 4px 8px;
  }

  .item-qr-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .mini-qr-img {
    width: 54px;
    height: 54px;
  }

  .item-actions {
    grid-template-columns: 1fr;
  }

  .config-group-card,
  .info-header-card,
  .info-form-card,
  .qr-page-card {
    padding: 20px;
    border-radius: 12px;
  }

  .back-link {
    width: 100%;
    justify-content: center;
  }

  .config-page-main-title {
    font-size: 22px;
  }

  .info-page-title,
  .info-form-title,
  .qr-page-title {
    font-size: 17px;
  }
}

/* 整体页面优化 */
.page-section {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 12px;
  border: 2px solid #e5e9f2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-primary {
  padding: 12px 24px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.btn-primary:hover::before {
  width: 200%;
  height: 200%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-danger {
  padding: 11px 22px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* 详情面板整体优化 */
.detail-panel {
  margin-top: 28px;
  padding: 32px;
  background: linear-gradient(to bottom right, #ffffff, #fafbff);
  border-radius: 16px;
  border: 2px solid #e5e9f2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
}

.detail-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 3px solid #f1f5f9;
}

.detail-name-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.detail-name-row input[type="text"] {
  flex: 1;
  min-width: 250px;
  padding: 13px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 11px;
  font-size: 17px;
  font-weight: 600;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.detail-name-row input[type="text"]:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15), inset 0 1px 3px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

/* 二维码区域优化 */
.qr-section {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 3px solid #f1f5f9;
}

.qr-title {
  font-size: 19px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 24px;
  text-align: center;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.qr-card {
  text-align: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.qr-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: #93c5fd;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.2);
}

.qr-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  margin-bottom: 14px;
  transition: all 0.3s;
}

.qr-card:hover .qr-img {
  border-color: #bfdbfe;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.qr-label {
  font-size: 15px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.qr-url {
  font-size: 12px;
  color: #94a3b8;
  word-break: break-all;
  line-height: 1.4;
}

@media (max-width: 800px) {
  .sidebar { width: 60px; min-width: 60px; }
  .sidebar .nav-text, .sidebar .logo-text { display: none; }

  .qr-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .qr-img {
    width: 150px;
    height: 150px;
  }

  .detail-name-row {
    flex-direction: column;
  }

  .detail-name-row input[type="text"] {
    width: 100%;
    min-width: unset;
  }

  .section-toolbar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
  .sidebar .collapse-btn { display: none; }
  .endpoint-cards { grid-template-columns: 1fr; }

  .item-name {
    font-size: 16px;
  }

  .mini-qr-img {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 600px) {
  .item-meta {
    gap: 6px;
  }

  .meta-tag {
    font-size: 12px;
    padding: 3px 8px;
  }

  .mini-qr-img {
    width: 48px;
    height: 48px;
  }
}