/* ============================================
   小红书风格全局样式 - 100% 还原小红书APP
   精确匹配：间距、字体、圆角、阴影、颜色
   ============================================ */

/* === 全局重置 === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #F8F8F8;
  color: #333;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  line-height: 1.5;
}

/* === 滚动条 - 小红书风格 === */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-thumb { background: #DCDCDC; border-radius: 2px; }
::-webkit-scrollbar-track { background: transparent; }

/* === 顶部导航栏 - 精确还原小红书 === */
.topbar {
  background: #FF2442;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #FF2442;
}

.topbar-title {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.topbar-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  letter-spacing: 0.5px;
  margin-top: 1px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-user span {
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 500;
}

.topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #FF2442;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* === 标签导航 - 小红书风格 === */
.nav-tabs {
  display: flex;
  gap: 0;
  padding: 0 16px;
  background: #fff;
  border-bottom: 0.5px solid #EBEBEB;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab {
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 400;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-tab:hover {
  color: #FF2442;
}

.nav-tab.active {
  color: #FF2442;
  font-weight: 600;
  border-bottom-color: #FF2442;
}

/* === 筛选栏 === */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  flex-wrap: wrap;
  background: #fff;
  border-bottom: 0.5px solid #F0F0F0;
}

.filter-label {
  font-size: 13px;
  font-weight: 500;
  color: #666;
  margin-right: 4px;
}

.brand-chip {
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  border: 0.5px solid #E0E0E0;
  background: #fff;
  color: #666;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.brand-chip:hover {
  border-color: #FF2442;
  color: #FF2442;
}

.brand-chip.active {
  border-color: #FF2442;
  color: #fff;
  background: #FF2442;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* === 统计卡片 === */
.stats-bar {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  flex-wrap: wrap;
  background: #fff;
  border-bottom: 0.5px solid #F0F0F0;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 0.5px solid #EBEBEB;
  transition: all 0.2s;
  flex: 1;
  min-width: 110px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.stat-card:hover {
  border-color: #FF2442;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 36, 66, 0.12);
}

.stat-card.active {
  border-color: #FF2442;
  background: #FFF5F7;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, #FF2442 0%, #FF6B81 100%);
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.stat-sublabel {
  font-size: 11px;
  color: #999;
  margin-top: 1px;
}

/* === 网格布局 === */
.grid-header {
  padding: 10px 16px;
  font-size: 12px;
  color: #999;
  background: #F8F8F8;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  padding: 10px 16px 20px;
  background: #F8F8F8;
}

/* === 卡片 - 100% 小红书风格 === */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF2442 0%, #FF6B81 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}

.influencer-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.influencer-handle {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.card-tags-row {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.card-brand-tag {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.campaign-tag {
  background: #F5F5F5;
  border-radius: 10px;
  padding: 3px 8px;
  font-size: 11px;
  color: #666;
}

.campaign-name {
  font-weight: 500;
}

.card-text {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-images {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.img-thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: #F5F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  color: #999;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}

.img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
  font-size: 11px;
  font-weight: 500;
  color: #999;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.2s;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 0.5px solid #F0F0F0;
}

.card-metrics {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cm-item {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: #999;
  font-weight: 400;
}

.cm-link {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: #FF2442;
  text-decoration: none;
  font-weight: 500;
}

.cm-link:hover {
  text-decoration: underline;
}

.cm-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0.5px solid #E0E0E0;
  background: #fff;
  cursor: pointer;
  color: #999;
  padding: 0;
  transition: all 0.2s;
}

.cm-refresh:hover {
  color: #FF2442;
  border-color: #FF2442;
  background: #FFF5F7;
}

.cm-sep {
  width: 0.5px;
  height: 10px;
  background: #E0E0E0;
  margin: 0 3px;
}

.card-date {
  font-size: 11px;
  color: #BBB;
}

.reviewer-stack {
  display: flex;
  align-items: center;
  gap: 3px;
}

.reviewer-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FF2442;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  margin-left: -6px;
}

.reviewer-dot:first-child {
  margin-left: 0;
}

.review-count {
  font-size: 11px;
  color: #999;
  margin-left: 3px;
}

/* === 状态徽章 - 小红书配色 === */
.badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge.abnormal  { background: #FFF3E0; color: #F57C00; }
.badge.pending   { background: #FFF9E6; color: #FFA726; }
.badge.revision  { background: #FFEBEE; color: #E53935; }
.badge.approved  { background: #E8F5E9; color: #43A047; }
.badge.published { background: #E3F2FD; color: #1E88E5; }

/* === 空状态 === */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: #BBB;
  font-size: 14px;
}

.empty .icon {
  margin-bottom: 12px;
  color: #DDD;
}

.empty .icon svg {
  width: 48px;
  height: 48px;
}

/* === 侧边面板 === */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
}

.overlay.hidden {
  display: none;
}

.overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.panel {
  position: relative;
  margin-left: auto;
  width: 480px;
  max-width: 100%;
  background: #fff;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
}

.panel-header {
  padding: 16px 20px;
  border-bottom: 0.5px solid #EBEBEB;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.panel-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.panel-header small {
  font-size: 10px;
  color: #999;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
  display: block;
}

.panel-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F8F8F8;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  line-height: 1;
}

.panel-close:hover {
  background: #FF2442;
  color: #fff;
  transform: scale(1.05);
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.panel-influencer {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 0.5px solid #F5F5F5;
  background: #FAFAFA;
}

.panel-influencer .name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.panel-influencer .meta {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.panel-campaign {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 0.5px solid #F5F5F5;
  background: #fff;
}

.panel-campaign .tag {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.panel-campaign .cname {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.panel-campaign .deadline {
  font-size: 11px;
  color: #999;
  margin-left: auto;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 20px 8px;
  background: #fff;
}

.content-box {
  padding: 0 20px 16px;
  background: #fff;
}

.content-box p {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  margin: 0;
  word-break: break-word;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 20px 16px;
  background: #fff;
}

.img-preview {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  background: #F5F5F5;
}

.img-preview:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.trail {
  padding: 16px 20px;
  background: #FAFAFA;
  border-top: 0.5px solid #EBEBEB;
}

.trail-item {
  display: flex;
  gap: 12px;
  position: relative;
  padding-bottom: 16px;
}

.trail-item:last-child {
  padding-bottom: 0;
}

.trail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.trail-dot.approved {
  background: #10B981;
}

.trail-dot.revision {
  background: #EF4444;
}

.trail-dot.abnormal {
  background: #F57C00;
}

.trail-dot.pending {
  background: #FFA726;
}

.trail-dot.published {
  background: #1E88E5;
}

.trail-line {
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: #E0E0E0;
}

.trail-reviewer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.trail-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6366F1;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trail-name {
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

.trail-time {
  font-size: 10px;
  color: #999;
}

.trail-action {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  margin-left: auto;
}

.trail-action.approved {
  background: #D1FAE5;
  color: #059669;
}

.trail-action.revision {
  background: #FEE2E2;
  color: #DC2626;
}

.trail-comment {
  font-size: 12px;
  line-height: 1.6;
  color: #666;
  background: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #F0F0F0;
}

.panel-footer {
  padding: 16px 20px;
  border-top: 0.5px solid #EBEBEB;
  background: #fff;
  flex-shrink: 0;
}

.panel-footer textarea {
  width: 100%;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 72px;
  outline: none;
  transition: all 0.2s;
  background: #FAFAFA;
  line-height: 1.6;
}

.panel-footer textarea:focus {
  border-color: #FF2442;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.08);
}

.panel-footer textarea::placeholder {
  color: #BDBDBD;
}

.panel-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.panel-actions button {
  flex: 1;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.panel-actions button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* === 发布区域样式 === */
.publish-section {
  padding: 16px 20px;
  background: #FFF9F0;
  border: 1px solid #FFE4CC;
  border-radius: 12px;
  margin: 16px 20px;
}

.publish-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.publish-link-row {
  display: flex;
  gap: 8px;
}

.publish-link-row input {
  flex: 1;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  background: #fff;
  color: #333;
  outline: none;
  transition: all 0.2s;
}

.publish-link-row input::placeholder {
  color: #BDBDBD;
}

.publish-link-row input:focus {
  border-color: #FF2442;
  box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.08);
}

.publish-done-link {
  background: #fff;
  border: 1px solid #F0F0F0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.publish-done-link a {
  color: #1D4ED8;
  font-size: 12px;
  text-decoration: none;
  word-break: break-all;
}

.publish-done-link a:hover {
  text-decoration: underline;
}

.metrics-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.metric-chip {
  background: #fff;
  border: 1px solid #F0F0F0;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mc-icon {
  display: flex;
  align-items: center;
  color: #999;
}

.mc-label {
  font-size: 10px;
  color: #999;
  margin-left: 2px;
}

/* === 小红书预览模式 === */
.panel.xhs-preview {
  width: 400px;
  background: #F8F8F8;
}

.panel.xhs-preview .panel-header {
  background: #fff;
  border-bottom: 0.5px solid #EBEBEB;
}

.xhs-preview-container {
  max-width: 375px;
  margin: 0 auto;
  background: #fff;
  min-height: 100%;
  border-radius: 0;
  position: relative;
}

.xhs-preview-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 0.5px solid #EBEBEB;
  background: #fff;
  position: relative;
}

.xhs-preview-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FF2442;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

.xhs-preview-user {
  flex: 1;
  min-width: 0;
}

.xhs-preview-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.xhs-preview-handle {
  font-size: 12px;
  color: #999;
  margin-top: 1px;
  line-height: 1.3;
}

.xhs-preview-follow {
  padding: 5px 14px;
  border-radius: 16px;
  background: #FF2442;
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.xhs-preview-follow:hover {
  background: #E61E3A;
}

.xhs-preview-images {
  background: #000;
  position: relative;
}

.xhs-preview-image {
  width: 100%;
  display: block;
}

.xhs-preview-content {
  padding: 12px 16px;
  background: #fff;
}

.xhs-preview-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  margin-bottom: 6px;
}

.xhs-preview-body {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.xhs-preview-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 16px;
  border-top: 0.5px solid #EBEBEB;
  border-bottom: 0.5px solid #EBEBEB;
  background: #fff;
}

.xhs-preview-action {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}

.xhs-preview-action:hover {
  color: #FF2442;
}

.xhs-preview-action svg {
  width: 18px;
  height: 18px;
}

.xhs-preview-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  z-index: 10;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.xhs-preview-more-images {
  padding: 16px;
  background: #fff;
}

.xhs-preview-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.xhs-preview-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.xhs-preview-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #F5F5F5;
  cursor: pointer;
}

.xhs-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xhs-preview-info {
  padding: 16px;
  border-top: 8px solid #F8F8F8;
  background: #fff;
}

.xhs-preview-info-item {
  display: flex;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.xhs-preview-info-item:last-child {
  margin-bottom: 0;
}

.xhs-preview-info-label {
  color: #999;
  min-width: 70px;
  flex-shrink: 0;
}

.xhs-preview-info-value {
  color: #333;
  flex: 1;
}

/* === 按钮样式 - 小红书风格 === */
.btn-approve, .btn-revision, .btn-primary, .btn-xhs, .btn-edit, .btn-publish {
  padding: 8px 16px;
  border-radius: 16px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-approve, .btn-primary, .btn-xhs, .btn-publish {
  background: #FF2442;
  color: #fff;
}

.btn-approve:hover, .btn-primary:hover, .btn-xhs:hover, .btn-publish:hover {
  background: #E61E3A;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(255, 36, 66, 0.25);
}

.btn-edit {
  background: #F5F5F5;
  color: #666;
}

.btn-edit:hover {
  background: #EBEBEB;
}

.btn-revision {
  background: #FFF3E0;
  color: #F57C00;
}

.btn-revision:hover {
  background: #FFE0B2;
}

.btn-submit-status {
  padding: 8px 16px;
  border-radius: 16px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #6366F1;
  color: #fff;
}

.btn-submit-status:hover {
  background: #4F46E5;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.3);
}

.btn-submit-status:disabled {
  background: #C7D2FE;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* === 底部导航栏 - 100% 小红书风格 === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 54px;
  background: #fff;
  border-top: 0.5px solid #EBEBEB;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  z-index: 99;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.03);
}

.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: #999;
  text-decoration: none;
  font-size: 9px;
  transition: all 0.2s;
  padding: 4px 2px;
  border-radius: 6px;
  font-weight: 400;
  flex: 1;
  max-width: 70px;
}

.bn-item:hover {
  color: #FF2442;
}

.bn-item.active {
  color: #FF2442;
  font-weight: 500;
}

.bn-item svg, .bn-item i {
  width: 20px;
  height: 20px;
}

/* === 内容区域 === */
.content-box {
  background: #F8F8F8;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.content-box.editable {
  border: 1px dashed #E0E0E0;
  cursor: text;
  transition: all 0.2s;
}

.content-box.editable:hover {
  border-color: #FF2442;
  background: #FFF5F7;
}

/* === 响应式 === */
@media (max-width: 768px) {
  .topbar {
    padding: 0 12px;
    height: 48px;
  }

  .grid {
    grid-template-columns: 1fr;
    padding: 8px 12px 70px;
    gap: 8px;
  }

  .panel {
    width: 100%;
  }

  .nav-tabs {
    padding: 0 12px;
  }

  .filter-bar, .stats-bar {
    padding: 8px 12px;
  }

  .card {
    border-radius: 10px;
    padding: 10px;
  }
}

/* === 表单元素 === */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  font-family: inherit;
  font-size: 14px;
}

/* === 动画 === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  animation: fadeIn 0.3s ease-out;
}

/* === Dashboard页面样式 === */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.brand-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  cursor: pointer;
}

.brand-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.brand-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.brand-logo-lg {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.brand-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.brand-card-sub {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.brand-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.brand-stat-box {
  text-align: center;
}

.brand-stat-num {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.brand-stat-label {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: #F0F0F0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}

.brand-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #999;
}

.summary-table {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.summary-table table {
  width: 100%;
  border-collapse: collapse;
}

.summary-table thead {
  background: #FAFAFA;
}

.summary-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  border-bottom: 0.5px solid #EBEBEB;
}

.summary-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: #333;
  border-bottom: 0.5px solid #F0F0F0;
}

.summary-table tbody tr:last-child td {
  border-bottom: none;
}

.summary-table tbody tr:hover {
  background: #FFF5F7;
}

.table-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.table-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.published-links-table {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-top: 16px;
}

.published-links-table table {
  width: 100%;
  border-collapse: collapse;
}

.published-links-table thead {
  background: #FAFAFA;
}

.published-links-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  border-bottom: 0.5px solid #EBEBEB;
}

.published-links-table td {
  padding: 10px 14px;
  font-size: 13px;
  color: #333;
  border-bottom: 0.5px solid #F0F0F0;
}

.published-links-table tbody tr:last-child td {
  border-bottom: none;
}

.published-links-table tbody tr:hover {
  background: #FFF5F7;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.ranking-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.ranking-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.ranking-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F5F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #999;
  flex-shrink: 0;
}

.ranking-num.top1 {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #fff;
}

.ranking-num.top2 {
  background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
  color: #fff;
}

.ranking-num.top3 {
  background: linear-gradient(135deg, #CD7F32, #B8860B);
  color: #fff;
}

.ranking-info {
  flex: 1;
}

.ranking-brand {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}

.ranking-metric {
  font-size: 12px;
  color: #999;
}

/* === Lightbox样式 === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s;
}

.lightbox.hidden {
  opacity: 0;
  pointer-events: none;
}

.lb-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lb-counter {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.lb-img {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img img,
.lb-img video {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lb-label {
  color: #fff;
  font-size: 14px;
  margin-top: 16px;
  text-align: center;
  max-width: 600px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.lb-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

.lb-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.lb-nav.prev {
  left: 20px;
}

.lb-nav.next {
  right: 20px;
}

/* === Toast通知样式 === */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #333;
  padding: 12px 20px;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  font-size: 14px;
  font-weight: 500;
  opacity: 1;
  transition: all 0.3s;
  max-width: 90%;
  text-align: center;
}

.toast.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-20px);
}

.toast.success {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #81C784;
}

.toast.error {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF5350;
}

.toast.warning {
  background: #FFF3E0;
  color: #E65100;
  border: 1px solid #FFB74D;
}

.toast.info {
  background: #E3F2FD;
  color: #1565C0;
  border: 1px solid #64B5F6;
}

/* === Hidden工具类 === */
.hidden {
  display: none !important;
}

/* ============================================
   补充缺失的通用样式类
   ============================================ */

/* === Form Classes === */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
}

.form-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* === Alert Classes === */
.alert-success {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 16px;
}

.alert-error {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #FFCDD2;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* === Button Classes === */
.btn-primary {
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  background: #FF2442;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #E61E3A;
  transform: translateY(-1px);
}

.btn-secondary {
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid #E0E0E0;
  background: #fff;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #F5F5F5;
  border-color: #BDBDBD;
}

.btn-success {
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  background: #10B981;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-success:hover {
  background: #059669;
}

.btn-danger {
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  background: #EF4444;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-danger:hover {
  background: #DC2626;
}

.btn-cancel {
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid #E0E0E0;
  background: #fff;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-cancel:hover {
  background: #F5F5F5;
}

.btn-submit {
  padding: 10px 24px;
  border-radius: 20px;
  border: none;
  background: #FF2442;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-submit:hover {
  background: #E61E3A;
}

.btn-save {
  padding: 10px 24px;
  border-radius: 20px;
  border: none;
  background: #10B981;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-save:hover {
  background: #059669;
}

.btn-filter {
  padding: 8px 16px;
  border-radius: 16px;
  border: 1px solid #E0E0E0;
  background: #fff;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-filter:hover {
  background: #F5F5F5;
  border-color: #BDBDBD;
}

.btn-filter.active {
  background: #FF2442;
  color: #fff;
  border-color: #FF2442;
}

.btn-export {
  padding: 8px 16px;
  border-radius: 16px;
  border: none;
  background: #10B981;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-export:hover {
  background: #059669;
}

.btn-login {
  width: 100%;
  padding: 14px;
  border-radius: 24px;
  border: none;
  background: #FF2442;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-login:hover {
  background: #E61E3A;
}

.btn-sm {
  padding: 6px 12px;
  border-radius: 12px;
  border: none;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-sm-edit {
  background: #F5F5F5;
  color: #666;
}

.btn-sm-edit:hover {
  background: #EBEBEB;
}

.btn-sm-del {
  background: #FFEBEE;
  color: #E53935;
}

.btn-sm-del:hover {
  background: #FFCDD2;
}

/* === Table Classes === */
.table-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

/* === Label Classes === */
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
}

/* === XHS Carousel Styles === */
.xhs-preview-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.xhs-carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.xhs-carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xhs-carousel-item.active {
  opacity: 1;
  z-index: 1;
}

.xhs-carousel-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.xhs-carousel-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.xhs-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.xhs-indicator.active {
  width: 16px;
  border-radius: 3px;
  background: #fff;
}

.xhs-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
}

.xhs-carousel-btn:hover {
  background: rgba(0,0,0,0.7);
}

.xhs-carousel-btn.prev {
  left: 12px;
}

.xhs-carousel-btn.next {
  right: 12px;
}

.xhs-carousel-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
}
