:root {
  --btn-radius: 10px;
  --primary-color: #3B82F6;
  --primary-hover: #2563EB;
  --btn-padding-y: 8px;
  --btn-padding-x: 18px;
  --font-size: 14px;
  /* 文字灰度色阶 — Apple HIG */
  --text-primary: #111827;
  --text-body: #374151;
  --text-secondary: #86868B;
  --text-muted: #86868B;
  --text-placeholder: #C7C7CC;
  --border-color: rgba(0,0,0,0.06);
  --border-light: rgba(0,0,0,0.04);
  --bg-page: #F5F5F7;
  --bg-surface: #FFFFFF;
  --bg-subtle: #FAFAFA;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #111827;
  background: #F5F5F7;
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}

/* 全局焦点可见样式 */
a:focus-visible,
[tabindex]:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 1px;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; font-size: 13px; }
table { border-collapse: collapse; width: 100%; }

/* 图标统一样式 */
.icon { width: 1.1em; height: 1.1em; vertical-align: -0.18em; display: inline; flex-shrink: 0; }
.icon-md { width: 1.4em; height: 1.4em; vertical-align: -0.25em; }
.icon-lg { width: 2em; height: 2em; }
.icon-xl { width: 44px; height: 44px; }
.template-icon .icon { width: 28px; height: 28px; }
.p-icon .icon { width: 48px; height: 48px; }
.ai-emp-icon .icon { width: 32px; height: 32px; }
.breadcrumb .icon { opacity: 0.75; }
.icon-spin { animation: icon-spin 1.5s linear infinite; }
@keyframes icon-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.app-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  height: 54px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  color: #111827;
  padding: 0 22px;
  flex-shrink: 0;
  box-shadow: none;
  position: relative;
  z-index: 10;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
}

.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon {
  width: 32px; height: 32px; border-radius: 12px;
  background: #1C1C1E;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  color: #fff;
}
.logo-text { font-size: 15px; font-weight: 700; }
.logo-sub { font-size: 12px; opacity: 0.65; }

.spacer { flex: 1; }

.top-info { display: flex; align-items: center; gap: 10px; margin-right: 16px; }
.env-tag {
  background: rgba(0,0,0,0.04);
  padding: 3px 10px; border-radius: 8px;
  font-size: 12px;
  color: #86868B;
}
.date, .version { font-size: 12px; opacity: 0.65; color: #86868B; }

.top-actions { display: flex; align-items: center; gap: 14px; }

.bell-wrap {
  position: relative;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.bell-wrap:hover { background: rgba(0,0,0,0.04); }
.bell-wrap .badge {
  position: absolute;
  top: -2px; right: -2px;
  background: #EF4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.notif-dropdown {
  display: none;
  position: absolute;
  top: 40px; right: 0;
  width: 320px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 0.5px solid rgba(0,0,0,0.08);
  color: #111827;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
  z-index: 100;
  max-height: 400px;
  overflow-y: auto;
}
.notif-dropdown.show { display: block; }
.notif-item {
  padding: 12px 14px;
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
  cursor: pointer;
  display: flex;
  gap: 10px;
  transition: background 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.notif-item:hover { background: rgba(0,0,0,0.02); }
.notif-item:last-child { border-bottom: none; }
.notif-item .n-icon { font-size: 16px; flex-shrink: 0; }
.notif-item .n-text { font-size: 12px; flex: 1; line-height: 1.4; }
.notif-item .n-time { font-size: 11px; color: #86868B; margin-top: 3px; }
.notif-item.read { opacity: 0.5; }

.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.06);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
  color: #374151;
}

.main-body { display: flex; flex: 1; overflow: hidden; }

.sidebar {
  width: 220px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-right: 0.5px solid rgba(0,0,0,0.08);
  overflow-y: auto;
  flex-shrink: 0;
  box-shadow: none;
}

.sidebar-section { padding: 4px 0; }
.sidebar-section-title {
  padding: 14px 18px 8px;
  font-size: 11px;
  color: #86868B;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  margin: 1px 10px;
  cursor: pointer;
  color: #374151;
  font-size: 13px;
  border-radius: 8px;
  border-left: none;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.nav-item:hover {
  background: rgba(59,130,246,0.06);
  color: #3B82F6;
  transform: none;
}
.nav-item.active {
  background: rgba(59,130,246,0.1);
  color: #3B82F6;
  font-weight: 600;
  box-shadow: none;
  border-left: 3px solid #3B82F6;
  border-radius: 0 8px 8px 0;
}
.nav-item:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
}
.nav-item .icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; color: #86868B; transition: color 0.35s cubic-bezier(0.25, 0.1, 0.25, 1); }
.nav-item .icon svg { width: 17px; height: 17px; stroke-width: 2; }
.nav-item:hover .icon { color: #3B82F6; }
.nav-item.active .icon { color: #3B82F6; }
.nav-item .label { flex: 1; font-size: 13px; }
.nav-item .arrow { font-size: 10px; color: #86868B; transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1); }
.nav-item .arrow.open { transform: rotate(90deg); }

.nav-sub {
  display: none;
  background: transparent;
  padding: 2px 0;
}
.nav-sub.open { display: block; }
.nav-sub .nav-item { padding-left: 46px; font-size: 12.5px; margin-left: 12px; }

.bottom-tab-bar {
  display: none;
}

/* ===== 侧边栏折叠模式 ===== */
.sidebar.collapsed {
  width: 60px;
}

.sidebar.collapsed .sidebar-section-title,
.sidebar.collapsed .label,
.sidebar.collapsed .arrow,
.sidebar.collapsed .nav-sub {
  display: none;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 10px 0;
}

.sidebar.collapsed .nav-item .icon {
  font-size: 18px;
  width: 20px;
  height: 20px;
}
.sidebar.collapsed .nav-item .icon svg { width: 18px; height: 18px; }

.sidebar.collapsed .nav-sub .nav-item {
  padding-left: 0;
  justify-content: center;
}

/* 折叠按钮 */
.sidebar-toggle {
  position: fixed;
  left: 6px;
  top: 70px;
  z-index: 100;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: #86868B;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}

.sidebar-toggle:hover {
  background: rgba(0,0,0,0.04);
  color: #111827;
}

.divider {
  height: 0.5px;
  background: rgba(0,0,0,0.06);
  margin: 6px 12px;
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  background: #F5F5F7;
}

.breadcrumb {
  padding: 14px 24px 0;
  font-size: 13px;
  color: #86868B;
}
.breadcrumb .sep { margin: 0 6px; color: #C7C7CC; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px 16px;
}
.page-header h1 { font-size: 24px; font-weight: 600; color: #111827; }

.page-subtitle {
  padding: 12px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.page-panel {
  display: none;
}
.page-panel.active {
  display: block;
}

.btn-create {
  background: #3B82F6;
  color: #fff;
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: var(--btn-radius);
  font-size: var(--font-size);
  font-weight: 500;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-create:hover {
  background: #2563EB;
  box-shadow: 0 2px 8px rgba(59,130,246,0.2);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px 12px;
  flex-wrap: wrap;
}

.toolbar select, .toolbar input {
  border: 0.5px solid rgba(0,0,0,0.08);
  background: #FFFFFF;
  padding: 12px 14px;
  border-radius: 10px;
  outline: none;
  font-size: 13px;
}
.toolbar select:focus, .toolbar input:focus { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,0.08); }

.search-box {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 0 14px;
  min-width: 220px;
}
.search-box input {
  border: none;
  background: transparent;
  flex: 1;
  padding: 12px 0;
  outline: none;
  font-size: 13px;
}
.search-icon { color: #86868B; margin-right: 6px; font-size: 12px; }

.spacer-tool { flex: 1; }

.batch-info { font-size: 12px; color: #86868B; }

.btn-batch {
  background: rgba(0,0,0,0.04);
  border: 0.5px solid rgba(0,0,0,0.06);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  color: #374151;
  position: relative;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.btn-batch:hover { background: rgba(0,0,0,0.06); }

.batch-menu {
  display: none;
  position: absolute;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
  padding: 4px;
  z-index: 10;
  min-width: 120px;
}
.batch-menu.show { display: block; }
.batch-menu > div {
  padding: 8px 12px;
  font-size: 12.5px;
  cursor: pointer;
  border-radius: 8px;
  color: #374151;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.batch-menu > div:hover { background: rgba(0,0,0,0.04); }
.batch-menu > div.danger { color: #EF4444; }
.batch-menu > div.danger:hover { background: rgba(239,68,68,0.08); }

.table-wrap {
  padding: 0 24px 24px;
}
.table-scroll {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
  overflow-x: auto;
}

table th {
  background: #F5F5F7;
  font-size: 12px;
  font-weight: 600;
  color: #86868B;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
  white-space: nowrap;
}
table td {
  padding: 11px 14px;
  font-size: 13px;
  color: #374151;
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
}
table tbody tr:hover { background: #FAFAFA; }
table tbody tr:last-child td { border-bottom: none; }

.col-check { width: 36px; text-align: center; }
.col-check input { cursor: pointer; }
.col-actions { width: 180px; text-align: right; white-space: nowrap; }

#page-vc-task table {
  table-layout: fixed;
  min-width: 980px;
}

#page-vc-task table td {
  vertical-align: middle;
}

.task-cell-check {
  width: 40px;
}

.task-cell-thumb {
  width: 72px;
}

.task-cell-name {
  width: 40%;
  max-width: 520px;
}

.task-cell-name strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
}

.task-cell-type {
  width: 110px;
}

.task-cell-progress {
  width: 180px;
}

.task-cell-status {
  width: 90px;
}

.task-cell-actions {
  width: 260px;
}

.task-thumb {
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  overflow: hidden;
  border-radius: 8px;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 44px;
}

.task-thumb img,
.task-thumb video,
.task-thumb-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: cover;
  display: block;
}

.task-thumb-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  font-size: 16px;
}

.task-ratio {
  display: inline-block;
  margin-left: 4px;
  color: #6B7280;
  font-size: 12px;
}

.btn-action {
  padding: var(--btn-padding-y) 16px;
  border-radius: var(--btn-radius);
  font-size: var(--font-size);
  font-weight: 500;
  background: rgba(0,0,0,0.04);
  color: #374151;
  margin-left: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.btn-action:hover { background: rgba(0,0,0,0.06); transform: scale(1.01); }
.btn-action.edit { background: rgba(59,130,246,0.1); color: #3B82F6; }
.btn-action.edit:hover { background: rgba(59,130,246,0.15); }
.btn-action.del { background: rgba(239,68,68,0.1); color: #EF4444; }
.btn-action.del:hover { background: rgba(239,68,68,0.15); }
.btn-action.data { background: rgba(16,185,129,0.1); color: #10B981; }
.btn-action.data:hover { background: rgba(16,185,129,0.15); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 500;
}
.status-badge.on { background: rgba(16,185,129,0.1); color: #059669; }
.status-badge.off { background: rgba(239,68,68,0.1); color: #DC2626; }
.status-badge.pending { background: rgba(245,158,11,0.1); color: #B45309; }
.status-badge.linked { background: rgba(59,130,246,0.1); color: #3B82F6; }
.status-badge.active { background: rgba(16,185,129,0.1); color: #059669; }

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.on { background: #10B981; }
.status-dot.off { background: #EF4444; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px 0;
}
.pagination .info { font-size: 12px; color: #86868B; }
.pagination .controls { display: flex; gap: 4px; }
.page-btn {
  min-width: 30px; height: 30px;
  padding: 0 10px;
  background: #FFFFFF;
  border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  font-size: 12px;
  color: #374151;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.page-btn:hover:not(.disabled):not(.active) { background: #FAFAFA; }
.page-btn.active { background: #3B82F6; color: #fff; border-color: #3B82F6; }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; }
.page-size { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #86868B; }
.page-size select { border: 0.5px solid rgba(0,0,0,0.08); padding: 4px 8px; border-radius: 8px; background: #fff; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #86868B;
  font-size: 13px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 24px 16px;
}
.kpi-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
  border-left: 3px solid rgba(59,130,246,0.2);
  display: flex;
  align-items: center;
  gap: 14px;
}
.kpi-card.blue { border-left-color: rgba(59,130,246,0.3); }
.kpi-card.green { border-left-color: rgba(16,185,129,0.3); }
.kpi-card.purple { border-left-color: rgba(139,92,246,0.3); }
.kpi-card.red { border-left-color: rgba(239,68,68,0.3); }
.kpi-card.amber { border-left-color: rgba(245,158,11,0.3); }
.kpi-card.highlight { border-left-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.02); }
.kpi-label { font-size: 12px; color: #86868B; margin-bottom: 4px; }
.kpi-value { font-size: 24px; font-weight: 700; color: #111827; margin-bottom: 2px; line-height: 1.2; }
.kpi-change { font-size: 11.5px; color: #10B981; }
.kpi-tip { font-size: 11px; color: #86868B; }
.kpi-icon { font-size: 28px; flex-shrink: 0; opacity: 0.8; }
.kpi-content { flex: 1; min-width: 0; }

/* 数据大屏新布局 */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 24px 16px;
}
.dashboard-section {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
.section-icon { font-size: 18px; }
.section-title { font-size: 14px; font-weight: 600; color: #111827; }
.section-body { min-height: 120px; }
.section-footer { margin-top: 12px; padding-top: 10px; border-top: 0.5px solid rgba(0,0,0,0.04); }

.empty-state-mini {
  text-align: center;
  padding: 20px 10px;
  color: #86868B;
}
.empty-state-mini .empty-icon { font-size: 32px; margin-bottom: 8px; }
.empty-state-mini .empty-tip { font-size: 11px; margin-top: 4px; color: #C7C7CC; }

.account-status-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
}
.account-status-item:last-child { border-bottom: none; }
.account-status-item.expired { opacity: 0.6; }
.account-status-platform { font-size: 12px; color: #86868B; width: 80px; }
.account-status-name { font-size: 13px; color: #374151; flex: 1; }
.account-status-badge { font-size: 11px; padding: 2px 8px; border-radius: 8px; }
.account-status-badge.good { background: rgba(16,185,129,0.1); color: #059669; }
.account-status-badge.bad { background: rgba(239,68,68,0.1); color: #DC2626; }

.activity-item {
  padding: 10px 0;
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
}
.activity-item:last-child { border-bottom: none; }
.activity-name { font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 4px; }
.activity-date { font-size: 11px; color: #86868B; }
.activity-badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 8px; margin-top: 4px; }
.activity-badge.active { background: rgba(16,185,129,0.1); color: #059669; }
.activity-badge.pending { background: rgba(245,158,11,0.1); color: #B45309; }
.activity-badge.ended { background: rgba(0,0,0,0.04); color: #86868B; }

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 10px;
  background: rgba(0,0,0,0.02);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.quick-action-item:hover { background: rgba(0,0,0,0.04); transform: scale(1.01); }
.qa-icon { font-size: 24px; margin-bottom: 6px; }
.qa-text { font-size: 12px; color: #86868B; }

.vip-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  margin: 0 24px 24px;
  border-radius: 12px;
  background: rgba(0,0,0,0.02);
}
.vip-banner.vip { background: linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(245,158,11,0.05) 100%); }
.vip-banner.free { background: rgba(0,0,0,0.02); }
.vip-banner-left { display: flex; align-items: center; gap: 10px; }
.vip-icon { font-size: 20px; }
.vip-text { font-size: 14px; font-weight: 600; color: #111827; }
.vip-expire { font-size: 12px; color: #86868B; margin-left: 8px; }
.vip-banner-right { }

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.btn-sm.btn-primary {
  background: #3B82F6;
  color: #fff;
  border: none;
}
.btn-sm.btn-outline {
  background: transparent;
  color: #3B82F6;
  border: 0.5px solid #3B82F6;
}
.btn-sm:hover { opacity: 0.9; }

.stats-panel {
  padding: 0 24px 24px;
}

.placeholder {
  text-align: center;
  padding: 60px 24px;
  background: #FFFFFF;
  margin: 0 24px 24px;
  border-radius: 12px;
}
.p-icon { font-size: 48px; margin-bottom: 16px; }
.p-title { font-size: 16px; font-weight: 600; color: #111827; margin-bottom: 6px; }
.p-desc { font-size: 13px; color: #86868B; }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show { display: flex; }

.modal {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  width: 480px;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.08);
}
.modal.large { width: 600px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
.modal-header h2 { font-size: 15px; font-weight: 600; color: #111827; }
.modal-header .close {
  font-size: 16px;
  color: #86868B;
  padding: 4px 8px;
  border-radius: 8px;
}
.modal-header .close:hover { background: rgba(0,0,0,0.04); color: #111827; }

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 0.5px solid rgba(0,0,0,0.06);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn {
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: var(--btn-radius);
  font-size: var(--font-size);
  font-weight: 500;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: none;
}
.btn:hover { box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02); }
.btn:active { }
.btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
.btn-primary { background: #3B82F6; color: #fff; }
.btn-primary:hover { background: #2563EB; }
.btn-secondary { background: rgba(0,0,0,0.04); color: #374151; border: 0.5px solid rgba(0,0,0,0.06); }
.btn-secondary:hover { background: rgba(0,0,0,0.06); }
.btn-danger { background: #EF4444; color: #fff; }
.btn-danger:hover { background: #DC2626; }
.btn-sm { padding: 5px 14px; font-size: 12px; }
.btn-sm.btn-primary { background: #3B82F6; }
.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: var(--btn-radius); font-weight: 600; }
.btn-danger:hover { background: #DC2626; }

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #86868B;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 0.5px solid rgba(0,0,0,0.08);
  background: #FFFFFF;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,0.08); }
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 1px;
  border-color: var(--primary-color);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.toast {
  position: fixed;
  top: 70px;
  right: 24px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 0.5px solid rgba(0,0,0,0.08);
  color: #111827;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
  z-index: 2000;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: #10B981; color: #fff; border-color: rgba(16,185,129,0.3); }
.toast.error { background: #EF4444; color: #fff; border-color: rgba(239,68,68,0.3); }

.progress-bar {
  background: rgba(0,0,0,0.04);
  border-radius: 10px;
  height: 18px;
  overflow: hidden;
  position: relative;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3B82F6, #60A5FA);
  transition: width 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.progress-bar-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.inbox-list {
  padding: 0 24px 24px;
}
.inbox-item {
  background: #FFFFFF;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-left: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.inbox-item.unread { border-left: none; background: rgba(59,130,246,0.03); }
.inbox-platform {
  font-size: 11px;
  background: rgba(0,0,0,0.04);
  color: #86868B;
  padding: 3px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}
.inbox-content { flex: 1; }
.inbox-user { font-weight: 600; font-size: 13px; color: #111827; margin-bottom: 3px; }
.inbox-msg { font-size: 12.5px; color: #374151; line-height: 1.4; }
.inbox-time { font-size: 11px; color: #86868B; flex-shrink: 0; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

/* 账号绑定 - 简洁版 */
.account-plat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
  padding: 0 24px 32px;
}
.account-plat-card {
  background: #FFFFFF;
  border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.account-plat-card:hover {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.04);
}
.account-plat-card.no-cred {
  opacity: 0.55;
  background: #FAFAFA;
}
.account-plat-header {
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 12px;
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
}
.account-plat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.account-plat-info { flex: 1; min-width: 0; }
.account-plat-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}
.account-plat-count {
  font-size: 12px;
  color: #86868B;
  margin-top: 2px;
}
.account-plat-count strong {
  color: #3B82F6;
  font-weight: 600;
}
.account-plat-btn {
  padding: 8px 14px;
  background: #3B82F6;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.account-plat-btn:hover { background: #2563EB; }
.account-plat-btn:disabled {
  background: rgba(0,0,0,0.08);
  cursor: not-allowed;
  opacity: 0.6;
}

.account-plat-empty {
  padding: 20px 16px;
  text-align: center;
  color: #86868B;
  font-size: 13px;
  background: #FAFAFA;
}
.account-plat-empty-icon {
  font-size: 24px;
  margin-bottom: 6px;
  opacity: 0.5;
}

.account-plat-list {
  padding: 8px 0;
  max-height: 280px;
  overflow-y: auto;
}
.account-list-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
  transition: background 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.account-list-item:last-child { border-bottom: none; }
.account-list-item:hover { background: #FAFAFA; }
.account-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3B82F6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  margin-right: 10px;
}
.account-list-info { flex: 1; min-width: 0; }
.account-list-name {
  font-size: 13.5px;
  color: #111827;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-list-meta {
  font-size: 11.5px;
  color: #86868B;
  margin-top: 1px;
}
.account-list-status {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  margin-right: 4px;
}
.account-list-status.expired { background: #EF4444; }
.account-list-action {
  background: transparent;
  border: none;
  color: #86868B;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.account-list-action:hover {
  background: rgba(239,68,68,0.08);
  color: #EF4444;
}

/* 旧的样式保留但不再用 */
.account-grid { display: none; }
.platform-card {
  background: #FFFFFF;
  border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.platform-card:hover {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.04);
}
.platform-card.linked {
  border-color: rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.03);
}
.platform-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.platform-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.platform-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.platform-sub {
  font-size: 11.5px;
  color: #86868B;
  margin-top: 2px;
}
.platform-card-status {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  align-self: flex-start;
  margin-left: auto;
}
.platform-card-status.linked { background: rgba(16,185,129,0.1); color: #059669; }
.platform-card-status.unlinked { background: rgba(0,0,0,0.04); color: #86868B; }
.platform-card-status.no-cred { background: rgba(245,158,11,0.1); color: #B45309; }

.platform-card-info {
  font-size: 12px;
  color: #374151;
  line-height: 1.6;
  padding: 8px 10px;
  background: #FAFAFA;
  border-radius: 8px;
}
.platform-card-info .label { color: #86868B; margin-right: 6px; }

.platform-card-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
}
.platform-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.platform-btn-primary {
  background: #3B82F6;
  color: #fff;
}
.platform-btn-primary:hover { background: #2563EB; }
.platform-btn-secondary {
  background: #FFFFFF;
  color: #374151;
  border-color: rgba(0,0,0,0.06);
}
.platform-btn-secondary:hover { background: rgba(0,0,0,0.04); }
.platform-btn-danger {
  background: rgba(239,68,68,0.08);
  color: #DC2626;
}
.platform-btn-danger:hover { background: rgba(239,68,68,0.12); }
.platform-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* OAuth流程提示 */
.oauth-step {
  padding: 14px 16px;
  background: #FAFAFA;
  border-radius: 12px;
  margin-bottom: 12px;
  border-left: none;
  border-left: 3px solid #3B82F6;
}
.oauth-step-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}
.oauth-step-content {
  font-size: 12.5px;
  color: #374151;
  line-height: 1.7;
}
.oauth-url {
  background: #1C1C1E;
  color: #60A5FA;
  padding: 8px 10px;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 11.5px;
  word-break: break-all;
  margin: 6px 0;
  cursor: text;
  user-select: all;
}

.token-input {
  width: 100%;
  min-height: 80px;
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  resize: vertical;
  outline: none;
  background: #FFFFFF;
}
.token-input:focus { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,0.08); }

/* 模态框中的tab切换 */
.modal-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
.modal-tab {
  padding: 8px 14px;
  font-size: 12.5px;
  color: #86868B;
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-weight: 500;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.modal-tab.active {
  color: #3B82F6;
  border-bottom-color: #3B82F6;
}
.modal-tab-content { display: none; }
.modal-tab-content.active { display: block; }

/* 凭证配置表格 */
.cred-table {
  width: 100%;
  font-size: 12.5px;
}
.cred-table tr { border-bottom: 0.5px solid rgba(0,0,0,0.04); }
.cred-table td {
  padding: 10px 4px;
  vertical-align: middle;
}
.cred-table td:first-child {
  width: 120px;
  font-weight: 600;
  color: #374151;
}
.cred-table input {
  width: 100%;
  border: 0.5px solid rgba(0,0,0,0.08);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12px;
  outline: none;
  background: #FFFFFF;
}
.cred-table input:focus { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59,130,246,0.08); }

/* 账号绑定列表中的特殊字段 */
.token-warning {
  color: #EF4444;
  font-size: 11px;
  margin-top: 3px;
}

/* ===== 登录/注册页面 ===== */
.auth-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #F5F5F7, #E8E8ED);
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.auth-box {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 36px 32px;
  width: 380px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.08);
  text-align: center;
}
.auth-logo {
  margin-bottom: 28px;
}
.auth-logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 10px;
}
.auth-logo h1 {
  font-size: 22px;
  color: #111827;
  font-weight: 700;
  margin-bottom: 2px;
}
.auth-logo p {
  font-size: 13px;
  color: #86868B;
}
.auth-form h2 {
  font-size: 18px;
  color: #111827;
  margin-bottom: 20px;
  font-weight: 600;
}
.form-group {
  margin-bottom: 14px;
  text-align: left;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #86868B;
  margin-bottom: 5px;
}
.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-sizing: border-box;
  background: #FFFFFF;
}
.form-group input:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}
.form-error {
  color: #EF4444;
  font-size: 12.5px;
  margin-bottom: 12px;
  min-height: 18px;
  text-align: left;
}
.btn-auth {
  width: 100%;
  padding: 12px;
  background: #3B82F6;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  margin-bottom: 14px;
}
.btn-auth:hover { background: #2563EB; }
.btn-auth:active { opacity: 0.8; }
.auth-switch {
  font-size: 13px;
  color: #86868B;
}
.auth-switch a {
  color: #3B82F6;
  text-decoration: none;
  font-weight: 600;
}
.form-row-auth {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #86868B;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.switch-account-link {
  font-size: 13px;
  color: #3B82F6;
  text-decoration: none;
}
.switch-account-link:hover {
  text-decoration: underline;
}
.saved-accounts-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
}
.saved-account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
}
.saved-account-item:last-child {
  border-bottom: none;
}
.saved-account-item:hover {
  background: rgba(0,0,0,0.02);
}
.saved-account-name {
  font-size: 13px;
  color: #374151;
}
.saved-account-delete {
  font-size: 12px;
  color: #86868B;
  padding: 2px 6px;
  border-radius: 8px;
}
.saved-account-delete:hover {
  background: rgba(239,68,68,0.08);
  color: #EF4444;
}
.auth-tip {
  font-size: 11px;
  color: #86868B;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 0.5px solid rgba(0,0,0,0.04);
}
.auth-tip a {
  color: #3B82F6;
  text-decoration: none;
}

.auth-tabs {
  display: flex;
  margin-bottom: 20px;
  background: rgba(0,0,0,0.02);
  border-radius: 10px;
  padding: 3px;
}
.auth-tab {
  flex: 1;
  padding: 9px 12px;
  font-size: 13px;
  color: #86868B;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  text-align: center;
  font-weight: 500;
}
.auth-tab.active {
  background: #fff;
  color: #3B82F6;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.code-input-row {
  display: flex;
  gap: 10px;
}
.code-input-row input {
  flex: 1;
}
.btn-code {
  padding: 12px 18px;
  background: #F3F4F6;
  color: #374151;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  white-space: nowrap;
}
.btn-code:hover:not(:disabled) {
  background: #E5E7EB;
}
.btn-code:active:not(:disabled) {
  opacity: 0.8;
}
.btn-code:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.auth-divider {
  margin: 0 8px;
  color: rgba(0,0,0,0.15);
}
.auth-divider-line {
  display: flex;
  align-items: center;
  margin: 16px 0;
  gap: 12px;
}
.auth-divider-line::before,
.auth-divider-line::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: rgba(0,0,0,0.08);
}
.auth-divider-line span {
  font-size: 12px;
  color: #86868B;
}
.btn-wechat {
  background: #07C160 !important;
}
.btn-wechat:hover {
  background: #06AD56 !important;
}
.btn-wechat svg {
  margin-right: 8px;
  vertical-align: middle;
}

/* ===== 用户菜单 ===== */
.user-menu {
  position: relative;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
}
.user-menu:hover { background: rgba(0,0,0,0.04); }
.user-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #111827;
}
.user-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vip-badge {
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}
.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 20px rgba(0,0,0,0.06);
  min-width: 140px;
  padding: 6px 0;
  z-index: 100;
}
.user-dropdown.show { display: block; }
.user-dropdown-item {
  padding: 8px 14px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.user-dropdown-item:hover { background: rgba(0,0,0,0.04); }
.user-dropdown-item.logout { color: #EF4444; }
.user-dropdown-item.logout:hover { background: rgba(239,68,68,0.08); }
.user-dropdown-divider { height: 0.5px; background: rgba(0,0,0,0.06); margin: 4px 0; }

/* 隐藏app-wrapper直到登录 */
.app-wrapper.hidden { display: none; }

/* 登录页面加载动画 */
.auth-loading {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* API连接状态提示 */
.api-status {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 12.5px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.api-status.show { opacity: 1; }
.api-status.offline {
  background: rgba(239,68,68,0.08);
  color: #DC2626;
  border: 0.5px solid rgba(239,68,68,0.15);
}
.api-status.online {
  background: rgba(16,185,129,0.08);
  color: #059669;
  border: 0.5px solid rgba(16,185,129,0.15);
}

/* ===== 充值页面 ===== */
.recharge-page {
  padding: 28px;
  max-width: 900px;
}
.recharge-page h2 {
  font-size: 18px;
  color: #111827;
  margin-bottom: 6px;
}
.recharge-page .subtitle {
  color: #86868B;
  font-size: 13px;
  margin-bottom: 24px;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .plans-grid { grid-template-columns: 1fr; }
}
.plan-card-wrap {
  background: #FFFFFF;
  border: 2px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.plan-card-wrap:hover {
  border-color: #3B82F6;
  box-shadow: 0 1px 3px rgba(59,130,246,0.08), 0 4px 12px rgba(59,130,246,0.06);
}
.plan-card-wrap.selected {
  border-color: #3B82F6;
  background: rgba(59,130,246,0.03);
}
.plan-card-wrap.recommended::before {
  content: '';
}
.plan-card-wrap.highlight {
  border-color: rgba(245,158,11,0.3);
  background: linear-gradient(180deg, rgba(245,158,11,0.04) 0%, #FFFFFF 30%);
}
.plan-card-wrap.highlight:hover {
  border-color: #f59e0b;
  box-shadow: 0 1px 3px rgba(245,158,11,0.1), 0 4px 12px rgba(245,158,11,0.08);
}
.plan-card-wrap.highlight.selected {
  border-color: #f59e0b;
  background: rgba(245,158,11,0.03);
}
.plan-badge {
  display: inline-block;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #3B82F6;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
.plan-card-wrap .plan-name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}
.plan-card-wrap .plan-price {
  font-size: 28px;
  font-weight: 700;
  color: #3B82F6;
  margin-bottom: 4px;
}
.plan-card-wrap .plan-price span {
  font-size: 13px;
  font-weight: 400;
  color: #86868B;
}
.plan-card-wrap .plan-desc {
  font-size: 12px;
  color: #86868B;
  margin-bottom: 10px;
}
.plan-card-wrap .plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plan-card-wrap .plan-features li {
  font-size: 12px;
  color: #374151;
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}
.plan-card-wrap .plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  color: #10B981;
  font-weight: 700;
}
.plan-card-wrap .plan-vip {
  margin-top: 10px;
  font-size: 11px;
  color: #B45309;
  background: rgba(245,158,11,0.1);
  padding: 3px 8px;
  border-radius: 8px;
  display: inline-block;
}

/* 支付方式 */
.pay-section {
  background: #FFFFFF;
  border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.pay-section h3 {
  font-size: 14px;
  color: #111827;
  margin-bottom: 14px;
}
.pay-methods {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.pay-method {
  border: 2px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.pay-method:hover { border-color: #3B82F6; }
.pay-method.selected { border-color: #3B82F6; background: rgba(59,130,246,0.03); color: #3B82F6; }
.pay-method-icon {
  font-size: 20px;
}

/* 二维码区域 */
.qr-section {
  background: #FFFFFF;
  border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 30px;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.qr-box {
  text-align: center;
}
.qr-placeholder {
  width: 160px;
  height: 160px;
  background: #FAFAFA;
  border: 2px dashed rgba(0,0,0,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 40px;
  margin-bottom: 8px;
  color: #86868B;
}
.qr-amount {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}
.qr-tip {
  font-size: 12px;
  color: #86868B;
  margin-top: 4px;
}
.qr-info {
  flex: 1;
}
.qr-info h3 { font-size: 15px; color: #111827; margin-bottom: 10px; }
.qr-info p { font-size: 13px; color: #86868B; line-height: 1.7; margin-bottom: 8px; }
.qr-info .note {
  background: rgba(245,158,11,0.1);
  border: 0.5px solid rgba(245,158,11,0.2);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #B45309;
  line-height: 1.6;
}
.pay-btn {
  padding: 10px 24px;
  background: #3B82F6;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.pay-btn:hover { background: #2563EB; }
.pay-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* VIP状态提示 */
.vip-tip-bar {
  background: #3B82F6;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vip-tip-bar .vip-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vip-tip-bar .vip-days {
  font-size: 20px;
  font-weight: 700;
}
.vip-tip-bar .btn {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 0.5px solid rgba(255,255,255,0.3);
}

/* ===== 视频剪辑 ===== */
.editor-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  padding: 0 24px 24px;
}
.editor-panel {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.editor-section {
  margin-bottom: 20px;
}
.editor-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
.editor-section textarea {
  width: 100%;
  min-height: 200px;
  font-size: 14px;
  line-height: 1.8;
  resize: vertical;
  box-sizing: border-box;
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 12px 14px;
}
.material-selector {
  min-height: 80px;
  background: #FAFAFA;
  border: 2px dashed rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}
.material-tips {
  width: 100%;
  text-align: center;
  color: #86868B;
  font-size: 12px;
  padding: 20px 0;
}
.material-thumb {
  width: 60px;
  height: 60px;
  background: rgba(0,0,0,0.04);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: relative;
}
.material-thumb video,
.material-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.material-thumb .remove-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: #EF4444;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.template-card {
  background: #FAFAFA;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.template-card:hover {
  border-color: rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.02);
}
.template-card.active {
  border-color: #3B82F6;
  background: rgba(59,130,246,0.03);
}
.template-icon { font-size: 28px; margin-bottom: 6px; }
.template-name { font-size: 12px; color: #374151; font-weight: 500; }

.preview-panel {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.preview-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
}
.preview-box {
  aspect-ratio: 9/16;
  max-height: 400px;
  background: #1C1C1E;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.preview-placeholder {
  text-align: center;
  color: #9ca3af;
}
.preview-placeholder .p-icon { font-size: 48px; margin-bottom: 12px; }
.preview-placeholder .p-title { font-size: 14px; color: #fff; margin-bottom: 4px; }
.preview-placeholder .p-desc { font-size: 12px; color: #9ca3af; }
.preview-tips {
  margin-top: 16px;
  padding: 12px 16px;
  background: #FAFAFA;
  border-radius: 10px;
}
.tip-item {
  font-size: 12px;
  color: #86868B;
  line-height: 1.8;
}
.btn-lg {
  width: 100%; padding: 12px; font-size: 14px;
  background: #3B82F6;
  color: #fff; border: none; border-radius: 10px;
  font-weight: 600; cursor: pointer; transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.btn-lg:hover { box-shadow: 0 2px 8px rgba(59,130,246,0.2); }

/* 素材选择弹窗 */
.material-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding: 10px 0;
}
.material-picker-item {
  border: 2px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.material-picker-item:hover { border-color: #3B82F6; }
.material-picker-item.selected { border-color: #3B82F6; background: rgba(59,130,246,0.03); }
.material-picker-item .mp-icon {
  font-size: 32px;
  text-align: center;
  padding: 10px 0;
  background: #FAFAFA;
  border-radius: 8px;
  margin-bottom: 6px;
}
.material-picker-item .mp-name {
  font-size: 11px;
  color: #374151;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* AI仿写结果 */
.rewrite-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px;
}
.rewrite-item {
  background: #FAFAFA;
  border-radius: 12px;
  padding: 14px;
}
.rewrite-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.rewrite-num {
  width: 22px;
  height: 22px;
  background: #3B82F6;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rewrite-style {
  font-size: 11px;
  color: #3B82F6;
  padding: 2px 8px;
  background: rgba(59,130,246,0.1);
  border-radius: 8px;
}
.rewrite-content {
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 10px;
}
.rewrite-actions {
  display: flex;
  gap: 8px;
}
.range-value {
  font-size: 12px;
  color: #3B82F6;
  font-weight: 600;
  margin-left: 8px;
}

/* 平台发布网格 */
.platform-publish-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px;
}
.platform-publish-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #FAFAFA;
  border: 2px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.platform-publish-item:hover { border-color: #3B82F6; }
.platform-publish-item.selected { border-color: #3B82F6; background: rgba(59,130,246,0.03); }
.platform-publish-icon { font-size: 28px; }
.platform-publish-info { flex: 1; }
.platform-publish-name { font-size: 13px; font-weight: 500; color: #374151; }
.platform-publish-count { font-size: 11px; color: #86868B; }
.platform-publish-check { font-size: 18px; color: #3B82F6; }
.platform-publish-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.platform-publish-item.disabled:hover { border-color: rgba(0,0,0,0.06); }

/* 账号绑定 — 平台卡片网格 */
.accounts-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.accounts-platform-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px 16px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  position: relative;
}
.accounts-platform-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border-color: #3B82F6;
  transform: translateY(-2px);
}
.accounts-platform-card.bound {
  border-color: rgba(16,185,129,0.3);
}
.accounts-platform-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 22px;
}
.accounts-platform-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}
.accounts-platform-status {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
}
.accounts-platform-status.bound {
  background: rgba(16,185,129,0.1);
  color: #059669;
}
.accounts-platform-status.unbound {
  background: rgba(0,0,0,0.04);
  color: #86868B;
}

/* AI助手建议 */
.ai-suggestions .section-body {
  padding: 4px 0;
}
.ai-todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
  cursor: pointer;
  transition: background 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.ai-todo-item:last-child {
  border-bottom: none;
}
.ai-todo-item:hover {
  background: rgba(0,0,0,0.02);
  margin: 0 -12px;
  padding: 12px;
  border-radius: 8px;
}
.ai-todo-num {
  width: 24px;
  height: 24px;
  background: #3B82F6;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-todo-content {
  flex: 1;
}
.ai-todo-title {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 2px;
}
.ai-todo-reason {
  font-size: 11px;
  color: #86868B;
}
.ai-todo-action {
  flex-shrink: 0;
}

/* AI员工卡片 */
.ai-employee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 0 24px 24px;
}
.ai-employee-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.ai-emp-icon { font-size: 40px; margin-bottom: 12px; }
.ai-emp-name { font-size: 18px; font-weight: 600; color: #111827; margin-bottom: 8px; }
.ai-emp-desc { font-size: 13px; color: #86868B; line-height: 1.6; margin-bottom: 12px; }
.ai-emp-status {
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0,0,0,0.04);
  color: #86868B;
  margin-bottom: 12px;
}
.ai-emp-status.active {
  background: rgba(16,185,129,0.1);
  color: #059669;
}
.ai-emp-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}
.ai-stat { text-align: center; }
.stat-num { display: block; font-size: 24px; font-weight: 700; color: #111827; }
.stat-label { font-size: 11px; color: #86868B; }

/* 工作流自动化 */
.workflow-list {
  padding: 0 24px 24px;
}
.workflow-item {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.wf-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.wf-icon { font-size: 28px; }
.wf-info { flex: 1; }
.wf-name { font-size: 15px; font-weight: 600; color: #374151; margin-bottom: 4px; }
.wf-desc { font-size: 12px; color: #86868B; }
.wf-status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0,0,0,0.04);
  color: #86868B;
}
.wf-status.active {
  background: rgba(16,185,129,0.1);
  color: #059669;
}
.wf-trigger, .wf-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}
.wf-label {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(0,0,0,0.04);
  color: #86868B;
}
.wf-value { color: #374151; }

/* 私信聚合 */
.inbox-list {
  padding: 0 24px 24px;
}
.inbox-item {
  display: grid;
  grid-template-columns: 80px 120px 1fr 100px auto;
  gap: 12px;
  align-items: center;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.inbox-item.unread {
  border-left: 3px solid #3B82F6;
}
.inbox-platform {
  font-size: 12px;
  color: #3B82F6;
  font-weight: 500;
}
.inbox-user {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}
.inbox-message {
  font-size: 13px;
  color: #86868B;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inbox-time {
  font-size: 11px;
  color: #86868B;
}
.inbox-actions {
  display: flex;
  gap: 8px;
}

/* 标签样式 */
.tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(59,130,246,0.1);
  color: #3B82F6;
  border-radius: 8px;
  font-size: 11px;
}

/* 上传区域 */
.upload-area {
  border: 2px dashed rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.upload-area:hover {
  border-color: #3B82F6;
  background: rgba(59,130,246,0.03);
}

/* ===== 全局增强 ===== */

/* 统一卡片效果 */
.page-panel {
  animation: fadeSlideIn 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.breadcrumb { font-size: 12px; color: #86868B; margin-bottom: 6px; }
.breadcrumb .sep { margin: 0 6px; color: #C7C7CC; }
.page-header h1 { font-size: 24px; font-weight: 600; color: #111827; margin: 0; }

/* 表格优化 */
table { border-radius: 12px; overflow: hidden; }
thead th {
  background: #F5F5F7;
  font-size: 12px;
  font-weight: 600;
  color: #86868B;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
}
tbody td {
  padding: 12px 14px;
  border-bottom: 0.5px solid rgba(0,0,0,0.04);
  font-size: 13px;
}
tbody tr:hover { background: #FAFAFA; }
tbody tr:last-child td { border-bottom: none; }

/* 操作按钮增强 — 合并到上方 .btn-action */

/* 状态标签 */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}
.status-badge.on { background: rgba(16,185,129,0.1); color: #059669; }
.status-badge.pending { background: rgba(245,158,11,0.1); color: #B45309; }
.status-badge.off { background: rgba(0,0,0,0.04); color: #86868B; }

/* 进度条 */
.progress-bar {
  height: 20px; background: rgba(0,0,0,0.04); border-radius: 10px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; background: linear-gradient(90deg, #3B82F6, #60A5FA);
  border-radius: 10px; transition: width 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* 输入框增强 */
input[type="text"], input[type="password"], input[type="number"], textarea, select {
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  transition: border-color 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  outline: none;
  background: #FFFFFF;
}
input[type="text"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}

/* 表单组 */
.form-group { margin-bottom: 12px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 500; color: #86868B; }
.upload-icon { font-size: 32px; margin-bottom: 8px; }
.upload-text {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}
.upload-hint {
  font-size: 12px;
  color: #86868B;
}

/* ===== 预览面板动态内容 ===== */
.preview-info {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  gap: 10px;
  box-sizing: border-box;
}
.preview-info .pi-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-info .pi-thumb img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.15);
}
.preview-count-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: #3B82F6;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1C1C1E;
  padding: 0 5px;
}
.preview-thumb-strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  max-width: 100%;
  padding: 0 4px;
}
.preview-thumb-strip img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}
.preview-summary {
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  line-height: 1.6;
  max-width: 200px;
}
.preview-summary .ps-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.preview-summary .ps-meta {
  font-size: 11px;
  color: #9ca3af;
}
.preview-summary .ps-text {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  white-space: pre-line;
  margin-top: 4px;
  max-height: 80px;
  overflow: hidden;
}
.preview-icon-big {
  font-size: 56px;
  margin-bottom: 4px;
  opacity: 0.9;
}

/* ===== 弹窗内嵌视频播放器 ===== */
.modal-video-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.modal-video-wrap video {
  width: 100%;
  max-height: 55vh;
  border-radius: 12px;
  background: #000;
  outline: none;
}
.modal-video-title {
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

/* ============================================================
   响应式适配 — 手机端 & 平板竖屏 (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  /* ---- 顶栏 ---- */
  .topbar {
    height: 48px;
    padding: 0 12px;
  }
  .logo-text { font-size: 13px; }
  .logo-sub, .env-tag, .version { display: none; }

  /* ---- 手机导航：顶部二级菜单 + 底部一级 Tab ---- */
  .main-body { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    min-height: 48px;
    max-height: none;
    position: relative;
    top: auto;
    z-index: 40;
    overflow-x: auto;
    overflow-y: hidden;
    display: block;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-right: none;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    box-shadow: none;
    padding: 0 8px;
    flex-shrink: 0;
  }
  .sidebar-section {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    min-height: 48px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sidebar-section::-webkit-scrollbar {
    display: none;
  }
  .sidebar-section.active {
    display: flex;
  }
  .sidebar-section-title { display: none; }
  .nav-item {
    min-height: 40px;
    padding: 8px 12px;
    margin: 0;
    white-space: nowrap;
    font-size: 12px;
    gap: 6px;
    flex-shrink: 0;
    border-left: none;
    border-radius: 999px;
  }
  .nav-item.active {
    border-left: none;
    border-radius: 999px;
    background: rgba(59,130,246,0.12);
  }
  .nav-item .arrow { display: none; }
  .nav-sub { display: none !important; }
  .nav-item:hover { transform: none; }
  .bottom-tab-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    min-height: 62px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 0.5px solid rgba(0,0,0,0.08);
    box-shadow: 0 -4px 18px rgba(15,23,42,0.06);
  }
  .bottom-tab-item {
    min-width: 0;
    min-height: 50px;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #6B7280;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1), color 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  }
  .bottom-tab-item .icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .bottom-tab-item .icon svg {
    width: 20px;
    height: 20px;
  }
  .bottom-tab-item .label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .bottom-tab-item.active {
    color: #2563EB;
    background: rgba(59,130,246,0.1);
  }
  .content {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  /* ---- 内容区 ---- */
  .content-area { padding: 12px 8px; }

  /* ---- 编辑器双栏 → 单栏 ---- */
  .editor-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 8px 16px;
  }
  .editor-panel { order: 1; }
  .preview-panel { order: 2; }
  .preview-box {
    max-height: 280px;
    aspect-ratio: auto;
  }

  /* ---- 工具栏 ---- */
  .toolbar {
    padding: 0 8px 10px;
    gap: 6px;
  }
  .search-box {
    min-width: 0;
    flex: 1;
  }
  .toolbar input, .toolbar select { font-size: 14px; padding: 10px 12px; }

  /* ---- 弹窗 → 全屏 ---- */
  .modal-overlay { padding: 0; }
  .modal, .modal.large {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
    overflow-y: auto;
  }
  .modal-body { max-height: none; flex: 1; overflow-y: auto; }
  .modal-footer { position: sticky; bottom: 0; background: rgba(255,255,255,0.82); backdrop-filter: blur(40px); }

  /* ---- KPI 卡片 ---- */
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi-value { font-size: 20px; }

  /* ---- Dashboard ---- */
  .dashboard-grid { grid-template-columns: 1fr; gap: 12px; padding: 0 8px; }

  /* ---- 表格 → 横向滚动 ---- */
  .table-wrap, table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .col-check { width: 28px; }
  .col-actions { width: 120px; }

  /* ---- 通知下拉 ---- */
  .notif-dropdown { width: 100vw; right: -12px; }

  /* ---- Toast ---- */
  .toast {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    text-align: center;
  }

  /* ---- 表单 ---- */
  .form-row { grid-template-columns: 1fr; }
  textarea { font-size: 16px !important; } /* 防iOS缩放 */

  /* ---- 按钮 ---- */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; }

  /* ---- 页面面板 ---- */
  .page-panel { padding: 8px; }
  .page-header { padding: 12px 8px; }
  .page-header h1 { font-size: 18px; }

  /* ---- 管理后台双栏 ---- */
  .settings-layout, .two-col { grid-template-columns: 1fr; }
}

/* ---- 地图获客诊断卡片 ---- */
.map-diagnose-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.map-diag-card {
  background: var(--card-bg, #fff);
  border: 0.5px solid var(--border-color, rgba(0,0,0,0.06));
  border-radius: var(--btn-radius, 12px);
  overflow: hidden;
  transition: box-shadow 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}
.map-diag-card:hover { box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.04); }
.diag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-surface, #FAFAFA);
  border-bottom: 0.5px solid var(--border-color, rgba(0,0,0,0.06));
}
.diag-store-info { display: flex; align-items: center; gap: 10px; }
.diag-store-info strong { font-size: 15px; color: var(--text-primary, #111827); }
.diag-city { font-size: 12px; color: var(--text-muted, #86868B); background: var(--bg-surface, rgba(0,0,0,0.04)); padding: 2px 8px; border-radius: 10px; }
.diag-score { display: flex; align-items: baseline; gap: 2px; font-size: 28px; font-weight: 700; padding: 6px 14px; border-radius: 12px; }
.diag-score span { font-size: 14px; font-weight: 500; }
.score-high { color: #10B981; background: rgba(16,185,129,0.1); }
.score-mid { color: #FF9F0A; background: rgba(255,159,10,0.1); }
.score-low { color: #EF4444; background: rgba(239,68,68,0.08); }
.diag-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.diag-row { display: flex; align-items: center; gap: 12px; }
.diag-label { font-size: 12px; color: var(--text-muted, #86868B); min-width: 60px; }
.diag-value { font-size: 13px; color: var(--text-primary, #111827); font-weight: 500; }
.diag-value.platforms { display: flex; gap: 6px; flex-wrap: wrap; }
.map-platform-tag { font-size: 12px; background: var(--bg-surface, rgba(0,0,0,0.04)); padding: 3px 10px; border-radius: 12px; white-space: nowrap; }
.diag-summary { font-size: 13px; color: var(--text-primary, #374151); background: var(--bg-surface, rgba(59,130,246,0.03)); padding: 10px 14px; border-radius: 8px; line-height: 1.6; }
.diag-suggestions { font-size: 12px; color: var(--text-muted, #86868B); }
.diag-suggestions summary { cursor: pointer; font-weight: 600; color: var(--text-primary, #374151); padding: 4px 0; }
.diag-suggestions ul { margin: 8px 0 0 16px; display: flex; flex-direction: column; gap: 4px; }
.diag-suggestions li { line-height: 1.5; }
.diag-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-top: 0.5px solid var(--border-color, rgba(0,0,0,0.06)); background: var(--bg-surface, #FAFAFA); }
.diag-time { font-size: 12px; color: var(--text-muted, #9ca3af); }
.diag-actions { display: flex; gap: 8px; }
.diag-tips { font-size: 13px; color: var(--text-muted, #86868B); background: var(--bg-surface, rgba(0,0,0,0.02)); padding: 12px 16px; border-radius: 8px; margin-top: 8px; }
.diag-tips p { margin-bottom: 6px; font-weight: 600; color: var(--text-primary, #374151); }
.diag-tips ul { margin-left: 16px; display: flex; flex-direction: column; gap: 3px; }

/* ---- 竞品监控（直播获客） ---- */
.comp-list-wrap { margin-top: 20px; }
.comp-list { display: flex; flex-direction: column; gap: 12px; }
.comp-card { background: var(--card-bg, #fff); border: 0.5px solid var(--border-color, rgba(0,0,0,0.06)); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02); }
.comp-card.comp-live { border-color: #EF4444; box-shadow: 0 0 0 2px rgba(239,68,68,0.15); }
.comp-status-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; font-size: 13px; font-weight: 600; }
.comp-status-bar.live { background: rgba(239,68,68,0.08); color: #EF4444; }
.comp-status-bar.offline { background: rgba(0,0,0,0.02); color: #86868B; }
.comp-body { padding: 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.comp-info { flex: 1; min-width: 0; }
.comp-name { font-size: 15px; font-weight: 600; color: var(--text-primary, #111827); margin-bottom: 4px; }
.comp-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted, #86868B); }
.comp-notes { margin-top: 8px; font-size: 13px; color: var(--text-muted, #86868B); }
.comp-actions { display: flex; gap: 6px; flex-shrink: 0; }
.comp-analysis { margin: 0 16px 16px; padding: 14px; background: rgba(59,130,246,0.03); border-radius: 8px; font-size: 13px; }
.comp-analysis.comp-analysis-hint { background: rgba(245,158,11,0.08); color: #B45309; text-align: center; }
.ana-header { font-weight: 700; color: #3B82F6; margin-bottom: 8px; }
.ana-strategy { color: var(--text-primary, #111827); margin-bottom: 8px; line-height: 1.6; }
.ana-details { margin-top: 8px; }
.ana-details summary { cursor: pointer; font-weight: 600; color: var(--text-primary, #374151); }
.ana-details ul { margin: 8px 0 0 16px; display: flex; flex-direction: column; gap: 4px; }
.ana-details li { line-height: 1.6; }
.ana-templates { margin-top: 10px; padding: 10px; background: #fff; border-radius: 8px; }
.ana-templates strong { display: block; margin-bottom: 6px; font-size: 12px; color: #86868B; }
.talk-tpl { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed rgba(0,0,0,0.06); }
.talk-tpl:last-child { border-bottom: none; }
.ana-timing { margin-top: 8px; font-size: 13px; color: #10B981; font-weight: 500; }
.comp-search-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 0.5px solid var(--border-color, rgba(0,0,0,0.06)); }
.comp-search-item:last-child { border-bottom: none; }
.btn-danger-outline { background: #fff; color: #EF4444; border: 0.5px solid rgba(239,68,68,0.3); }
.btn-danger-outline:hover { background: rgba(239,68,68,0.08); }
.btn-xs { padding: 3px 8px; font-size: 11px; border-radius: 8px; }
.page-header-actions { display: flex; gap: 8px; align-items: center; }
.pulse-dot { animation: pulse 2s infinite; }

/* ---- 移动端 ---- */
@media (max-width: 640px) {
  .diag-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .diag-score { align-self: flex-end; }
  .diag-body { padding: 12px 14px; }
  .diag-footer { flex-direction: column; gap: 8px; align-items: flex-start; }
  .comp-body { flex-direction: column; }
  .comp-actions { width: 100%; justify-content: flex-end; }
  .page-header-actions { flex-wrap: wrap; }
}

/* ============================================================
   直播助手 — 页面样式
   ============================================================ */
.live-assistant-layout {
  display: flex;
  gap: 16px;
  height: calc(100vh - 180px);
  min-height: 500px;
}

/* ---- 左侧：直播间 ---- */
.la-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.la-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}

.la-url-input {
  flex: 1;
  padding: 12px 14px;
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  font-size: 13px;
  min-width: 0;
  outline: none;
  background: #FFFFFF;
}
.la-url-input:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}

.la-webview-wrap {
  flex: 1;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid rgba(0,0,0,0.06);
  position: relative;
  min-height: 300px;
}

.la-webview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #9ca3af;
  background: #1C1C1E;
  text-align: center;
  padding: 20px;
}

/* ---- 右侧：话术面板 ---- */
.la-right {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.la-section {
  background: #FFFFFF;
  border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.02);
}

.la-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 10px;
}

/* 话术分类Tab */
.la-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.la-tab {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 14px;
  cursor: pointer;
  background: rgba(0,0,0,0.04);
  color: #374151;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  user-select: none;
  white-space: nowrap;
}
.la-tab:hover { background: rgba(0,0,0,0.06); }
.la-tab.active {
  background: rgba(59,130,246,0.1);
  color: #3B82F6;
  font-weight: 600;
}
/* AI智能Tab特殊样式 */
.la-tab-ai {
  background: rgba(59,130,246,0.06);
  color: #3B82F6;
  border: 0.5px solid rgba(59,130,246,0.15);
}
.la-tab-ai:hover { background: rgba(59,130,246,0.1); }
.la-tab-ai.active {
  background: #3B82F6;
  color: #fff;
  border-color: transparent;
}

/* 话术卡片 */
.la-script-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.la-script-card {
  padding: 10px 12px;
  border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  background: #FAFAFA;
}
.la-script-card:hover {
  border-color: #3B82F6;
  background: rgba(59,130,246,0.03);
  box-shadow: 0 1px 3px rgba(59,130,246,0.08);
}
.la-script-card.copied {
  border-color: #10B981;
  background: rgba(16,185,129,0.03);
}

.la-script-text {
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 6px;
}

.la-script-copy {
  font-size: 11px;
  color: #86868B;
  text-align: right;
}
.la-script-card:hover .la-script-copy { color: #3B82F6; }
.la-script-card.copied .la-script-copy { color: #10B981; }

/* 快捷操作按钮 */
.la-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.la-quick-btn {
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(0,0,0,0.04);
  color: #374151;
  border: 0.5px solid rgba(0,0,0,0.06);
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  font-family: inherit;
  text-align: center;
}
.la-quick-btn:hover {
  background: rgba(59,130,246,0.06);
  border-color: #3B82F6;
  color: #3B82F6;
}
.la-quick-btn:active {
  transform: scale(0.97);
}

/* 本场记录统计 */
.la-stats {
  display: flex;
  gap: 10px;
}

.la-stat-item {
  flex: 1;
  text-align: center;
  background: rgba(0,0,0,0.02);
  border-radius: 10px;
  padding: 10px 8px;
}

.la-stat-num {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #3B82F6;
}

.la-stat-label {
  display: block;
  font-size: 11px;
  color: #86868B;
  margin-top: 2px;
}

/* ---- 响应式：窄屏时左右变上下 ---- */
@media (max-width: 900px) {
  .live-assistant-layout {
    flex-direction: column;
    height: auto;
  }
  .la-left {
    min-height: 350px;
  }
  .la-right {
    width: 100%;
  }
  .la-toolbar {
    flex-wrap: wrap;
  }
  .la-url-input {
    min-width: 150px;
  }
  .la-script-list {
    max-height: 200px;
  }
}

/* ===== AI内容工厂 ===== */
.ai-factory-shell {
  max-width: 920px;
  margin: 0 auto;
  padding-bottom: 32px;
}

.ai-factory-hero,
.ai-factory-form,
.ai-factory-summary,
.mkt-panel {
  background: var(--bg-surface, #FFFFFF);
  border: 0.5px solid var(--border-color, rgba(0,0,0,0.06));
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.04));
}

.ai-factory-hero {
  padding: 18px 20px;
  margin-bottom: 14px;
}

.ai-factory-eyebrow {
  color: var(--primary-color, #3B82F6);
  font-size: var(--font-size-sm, 12px);
  font-weight: 700;
  margin-bottom: 6px;
}

.ai-factory-hero h2 {
  color: var(--text-primary, #111827);
  font-size: var(--font-size-2xl, 18px);
  margin: 0 0 6px;
  letter-spacing: 0;
}

.ai-factory-hero p {
  color: var(--text-body, #374151);
  font-size: var(--font-size-md, 14px);
  line-height: 1.7;
  margin: 0;
}

.ai-factory-form {
  padding: 18px;
  margin-bottom: 14px;
}

.ai-factory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ai-factory-submit {
  width: 100%;
  margin-top: 12px;
}

.ai-factory-summary {
  padding: 16px 18px;
  margin-bottom: 10px;
}

.ai-factory-summary h3 {
  color: var(--text-primary, #111827);
  font-size: var(--font-size-xl, 16px);
  margin: 0 0 10px;
}

.ai-factory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-factory-tags span {
  background: rgba(59,130,246,0.08);
  color: var(--primary-color, #3B82F6);
  border-radius: var(--radius-full, 999px);
  font-size: var(--font-size-sm, 12px);
  font-weight: 600;
  padding: 4px 10px;
}

.ai-factory-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.mkt-tab {
  min-height: 40px;
  border: 0.5px solid var(--border-color, rgba(0,0,0,0.06));
  border-radius: var(--radius-sm, 8px);
  background: var(--bg-surface, #FFFFFF);
  color: var(--text-body, #374151);
  font-size: var(--font-size-md, 14px);
  font-weight: 600;
  cursor: pointer;
}

.mkt-tab.active {
  border-color: rgba(59,130,246,0.35);
  background: rgba(59,130,246,0.08);
  color: var(--primary-color, #3B82F6);
}

.mkt-panel {
  display: none;
  padding: 18px;
}

.mkt-panel.active {
  display: block;
}

.ai-factory-platform-title,
.ai-factory-section-title {
  color: var(--text-primary, #111827);
  font-size: var(--font-size-lg, 15px);
  font-weight: 700;
  margin-bottom: 8px;
}

.ai-factory-subtle {
  color: var(--text-secondary, #86868B);
  font-size: var(--font-size-sm, 12px);
  margin-bottom: 10px;
}

.ai-factory-copy,
.ai-factory-tip,
.ai-factory-empty {
  background: var(--bg-subtle, #FAFAFA);
  border-radius: var(--radius-sm, 8px);
  color: var(--text-body, #374151);
  font-size: var(--font-size-md, 14px);
  line-height: 1.75;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-factory-tip {
  margin-top: 10px;
}

.ai-factory-scene {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 54px;
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--border-light, rgba(0,0,0,0.04));
}

.ai-factory-scene strong {
  color: var(--primary-color, #3B82F6);
  font-size: var(--font-size-sm, 12px);
}

.ai-factory-scene span {
  color: var(--text-body, #374151);
  font-size: var(--font-size-sm, 12px);
  line-height: 1.6;
}

.ai-factory-scene em {
  color: var(--text-secondary, #86868B);
  font-size: var(--font-size-xs, 11px);
  font-style: normal;
  text-align: right;
}

.ai-factory-action {
  margin-top: 12px;
}

/* ===== 客户运营 ===== */
.customer-ops-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}

.customer-ops-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: var(--bg-surface, #FFFFFF);
  border: 0.5px solid var(--border-color, rgba(0,0,0,0.06));
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.04));
  padding: 14px 16px;
}

.customer-ops-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md, 10px);
  background: rgba(59,130,246,0.08);
  color: var(--primary-color, #3B82F6);
}

.customer-ops-icon .icon {
  width: 20px;
  height: 20px;
}

.customer-ops-copy {
  min-width: 0;
}

.customer-ops-copy h2 {
  color: var(--text-primary, #111827);
  font-size: var(--font-size-lg, 15px);
  margin: 0 0 4px;
  letter-spacing: 0;
}

.customer-ops-copy p {
  color: var(--text-body, #374151);
  font-size: var(--font-size-sm, 12px);
  line-height: 1.55;
  margin: 0;
}

.customer-ops-status {
  justify-self: end;
  border-radius: var(--radius-full, 999px);
  background: var(--bg-subtle, #FAFAFA);
  color: var(--text-secondary, #86868B);
  font-size: var(--font-size-xs, 11px);
  font-weight: 700;
  padding: 5px 9px;
  white-space: nowrap;
}

/* ===== NFC 标签管理 ===== */
.page-header-desc {
  color: var(--text-secondary, #86868B);
  font-size: var(--font-size-sm, 12px);
  line-height: 1.55;
  margin-top: 4px;
  max-width: 620px;
}

.nfc-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 24px 14px;
}

.nfc-guide-step {
  background: var(--bg-surface, #FFFFFF);
  border: 0.5px solid var(--border-color, rgba(0,0,0,0.06));
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.04));
  padding: 13px 14px;
}

.nfc-guide-step b {
  color: var(--text-primary, #111827);
  display: block;
  font-size: var(--font-size-md, 14px);
  margin-bottom: 5px;
}

.nfc-guide-step span {
  color: var(--text-body, #374151);
  display: block;
  font-size: var(--font-size-sm, 12px);
  line-height: 1.55;
}

.nfc-row-sub {
  color: var(--text-secondary, #86868B);
  font-size: var(--font-size-xs, 11px);
  margin-top: 3px;
  word-break: break-all;
}

.nfc-link-line {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.nfc-link-line span {
  background: var(--bg-subtle, #FAFAFA);
  border: 0.5px solid var(--border-light, rgba(0,0,0,0.04));
  border-radius: var(--radius-sm, 8px);
  color: var(--text-body, #374151);
  display: block;
  font-size: var(--font-size-xs, 11px);
  line-height: 1.45;
  overflow: hidden;
  padding: 7px 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nfc-empty {
  padding: 34px 20px;
}

.nfc-empty-title {
  color: var(--text-primary, #111827);
  font-size: var(--font-size-lg, 15px);
  font-weight: 700;
  margin-bottom: 6px;
}

.nfc-empty-desc {
  color: var(--text-body, #374151);
  font-size: var(--font-size-sm, 12px);
  line-height: 1.6;
  margin: 0 auto 14px;
  max-width: 360px;
}

.nfc-modal-note {
  background: rgba(59,130,246,0.07);
  border: 0.5px solid rgba(59,130,246,0.18);
  border-radius: var(--radius-md, 10px);
  color: var(--text-body, #374151);
  font-size: var(--font-size-sm, 12px);
  line-height: 1.65;
  margin-bottom: 14px;
  padding: 12px;
}

.form-hint {
  color: var(--text-secondary, #86868B);
  font-size: var(--font-size-xs, 11px);
  line-height: 1.5;
  margin-top: 5px;
}

.nfc-write-modal {
  text-align: left;
}

.nfc-write-store {
  color: var(--text-body, #374151);
  font-size: var(--font-size-sm, 12px);
  margin-bottom: 10px;
  text-align: center;
}

.nfc-qr-img {
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-md, 10px);
  display: block;
  height: 240px;
  margin: 0 auto 14px;
  width: 240px;
}

.nfc-write-modal label {
  color: var(--text-primary, #111827);
  display: block;
  font-size: var(--font-size-sm, 12px);
  font-weight: 700;
  margin-bottom: 6px;
}

.nfc-write-url {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.nfc-write-url input {
  border: 0.5px solid var(--border-color, rgba(0,0,0,0.06));
  border-radius: var(--radius-sm, 8px);
  color: var(--text-body, #374151);
  font-size: var(--font-size-sm, 12px);
  min-width: 0;
  padding: 10px 12px;
}

.nfc-write-tip {
  color: var(--text-secondary, #86868B);
  font-size: var(--font-size-xs, 11px);
  line-height: 1.55;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .ai-factory-shell {
    max-width: none;
    padding-bottom: 88px;
  }

  .ai-factory-hero,
  .ai-factory-form,
  .ai-factory-summary,
  .mkt-panel {
    border-radius: var(--radius-md, 10px);
  }

  .ai-factory-grid,
  .ai-factory-tabs {
    grid-template-columns: 1fr;
  }

  .ai-factory-scene {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .ai-factory-scene em {
    grid-column: 2;
    text-align: left;
  }

  .customer-ops-item {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    padding: 12px;
  }

  .customer-ops-icon {
    width: 40px;
    height: 40px;
  }

  .customer-ops-status {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }

  .nfc-guide {
    grid-template-columns: 1fr;
    padding: 0 12px 12px;
  }

  .nfc-link-line {
    min-width: 240px;
  }

  .nfc-write-url {
    grid-template-columns: 1fr;
  }

  .nfc-qr-img {
    height: 220px;
    width: 220px;
  }
}
