/**
 * 星盒AI商家端 - 样式表
 * 配色：蓝色主题 #3B82F6 → #1D4ED8
 */

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background: #F5F5F5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; font-size: 14px; }

/* ==================== 容器 ==================== */
.container {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: #F5F5F5;
  position: relative;
  padding-bottom: 80px;
}

.container.no-tabbar {
  padding-bottom: 0;
}

/* ==================== 页面头部 ==================== */
.header {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  color: white;
  padding: 48px 20px 20px;
  position: relative;
  border-radius: 0 0 24px 24px;
}

.header-simple {
  background: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #EFEFEF;
}

.header-simple .back-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  background: none;
  border: none;
}

.header-simple .title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

/* 首页头部 - 店铺信息 */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.header-shop {
  display: flex;
  align-items: center;
}

.header-shop .shop-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-shop .shop-icon svg {
  color: #3B82F6;
}

.header-shop .shop-info .welcome {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.header-shop .shop-info .name {
  font-size: 18px;
  font-weight: 600;
}

.header .message-btn {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: none;
}

.header .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: #EF4444;
  color: white;
  font-size: 11px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* 首页统计区域 */
.header-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.header-stats .stat-item {
  text-align: center;
}

.header-stats .stat-value {
  font-size: 28px;
  font-weight: 700;
}

.header-stats .stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  margin-top: 2px;
}

/* 季度进度条 */
.quarter-progress {
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 12px 16px;
}

.quarter-progress .progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}

.quarter-progress .progress-header .label {
  color: rgba(255,255,255,0.8);
}

.quarter-progress .progress-header .value {
  font-weight: 500;
}

.quarter-progress .progress-track {
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  overflow: hidden;
}

.quarter-progress .progress-fill {
  height: 100%;
  background: white;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.quarter-progress .progress-tip {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}

/* ==================== 底部导航 ==================== */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: white;
  border-top: 1px solid #EFEFEF;
  display: flex;
  padding: 8px 0;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 100;
}

.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0;
  color: #9CA3AF;
  background: none;
  border: none;
  position: relative;
}

.tabbar-item.active {
  color: #3B82F6;
}

.tabbar-item .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
  position: relative;
}

.tabbar-item .badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  background: #EF4444;
  color: white;
  font-size: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tabbar-item .label {
  font-size: 11px;
}

/* ==================== 卡片 ==================== */
.card {
  background: white;
  border-radius: 12px;
  margin: 12px 16px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
}

.card-title .bar {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  margin-right: 8px;
}

.card-title .bar.purple { background: #8B5CF6; }
.card-title .bar.green { background: #10B981; }
.card-title .bar.blue { background: #3B82F6; }

.card-more {
  font-size: 13px;
  color: #3B82F6;
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* 待办事项卡片 - 橙色警示样式 */
.card.todo-card {
  background: #FFF7ED;
  border: 1px solid #FDBA74;
}

.card.todo-card .card-title {
  color: #C2410C;
}

.card.todo-card .card-title .icon-wrap {
  width: 20px;
  height: 20px;
  background: #F97316;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.card.todo-card .card-title .count-badge {
  margin-left: 8px;
  padding: 2px 8px;
  background: #F97316;
  color: white;
  font-size: 12px;
  border-radius: 10px;
}

.todo-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: white;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid #FED7AA;
  cursor: pointer;
  transition: border-color 0.2s;
}

.todo-item:last-child {
  margin-bottom: 0;
}

.todo-item:hover {
  border-color: #FB923C;
}

.todo-item .icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.todo-item .icon-wrap.purple { background: #F3E8FF; }
.todo-item .icon-wrap.green { background: #D1FAE5; }

.todo-item .content {
  flex: 1;
  min-width: 0;
}

.todo-item .title {
  font-size: 14px;
  font-weight: 500;
  color: #1F2937;
}

.todo-item .desc {
  font-size: 12px;
  color: #6B7280;
  margin-top: 2px;
}

.todo-item .right {
  display: flex;
  align-items: center;
}

.todo-item .count-badge {
  width: 24px;
  height: 24px;
  background: #F97316;
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.todo-item .count-badge.green {
  background: #10B981;
}

/* ==================== 状态标签 ==================== */
.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}

.status-tag.pending_script { background: #DBEAFE; color: #1D4ED8; }
.status-tag.script_ready { background: #CFFAFE; color: #0891B2; }
.status-tag.pending_booking { background: #FEF3C7; color: #D97706; }
.status-tag.booked { background: #F3E8FF; color: #7C3AED; }
.status-tag.filming { background: #E0E7FF; color: #4338CA; }
.status-tag.reviewing { background: #FFEDD5; color: #EA580C; }
.status-tag.ready { background: #D1FAE5; color: #059669; }
.status-tag.published { background: #D1FAE5; color: #059669; }

/* ==================== 进度条 ==================== */
.progress-bar {
  display: flex;
  align-items: flex-start;
  padding: 8px 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E5E7EB;
  margin-bottom: 6px;
}

.progress-step.active .step-dot {
  background: #3B82F6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.progress-step.done .step-dot {
  background: #3B82F6;
}

.step-label {
  font-size: 11px;
  color: #9CA3AF;
}

.progress-step.active .step-label,
.progress-step.done .step-label {
  color: #3B82F6;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #E5E7EB;
  margin: 3px 4px 0;
  min-width: 20px;
}

.step-line.done {
  background: #3B82F6;
}

/* ==================== 待发布Tab - 左右布局 ==================== */
.topic-card.ready-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.topic-card.ready-card .card-top {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.topic-card.ready-card .episode-tag {
  padding: 4px 8px;
  background: #D1FAE5;
  color: #059669;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
}

.topic-card.ready-card .new-tag {
  margin-left: 8px;
  padding: 4px 8px;
  background: #EF4444;
  color: white;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
}

.topic-card.ready-card .topic-title {
  margin-left: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #1F2937;
}

.topic-card.ready-card .card-body {
  display: flex;
  gap: 16px;
}

.topic-card.ready-card .video-preview {
  width: 130px;
  aspect-ratio: 9/16;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s;
}

.topic-card.ready-card .video-preview:hover {
  transform: scale(1.02);
}

.topic-card.ready-card .video-preview .play-btn {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.topic-card.ready-card .video-preview .play-btn svg {
  color: #059669;
  margin-left: 2px;
}

.topic-card.ready-card .video-preview .text {
  color: white;
  font-size: 13px;
}

.topic-card.ready-card .video-preview .duration {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  margin-top: 4px;
}

.topic-card.ready-card .action-buttons {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.topic-card.ready-card .action-buttons .btn {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.topic-card.ready-card .action-buttons .btn-douyin {
  background: #FEE2E2;
  color: #DC2626;
}
.topic-card.ready-card .action-buttons .btn-douyin:hover { background: #FECACA; }

.topic-card.ready-card .action-buttons .btn-xiaohongshu {
  background: #FCE7F3;
  color: #DB2777;
}
.topic-card.ready-card .action-buttons .btn-xiaohongshu:hover { background: #FBCFE8; }

.topic-card.ready-card .action-buttons .btn-shipinhao {
  background: #D1FAE5;
  color: #059669;
}
.topic-card.ready-card .action-buttons .btn-shipinhao:hover { background: #A7F3D0; }

.topic-card.ready-card .action-buttons .btn-tags {
  background: #F3F4F6;
  color: #4B5563;
}
.topic-card.ready-card .action-buttons .btn-tags:hover { background: #E5E7EB; }

.topic-card.ready-card .action-buttons .btn-download {
  background: #3B82F6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topic-card.ready-card .action-buttons .btn-download:hover { background: #2563EB; }
.topic-card.ready-card .action-buttons .btn-download svg {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}

/* ==================== 进行中Tab - 一体化卡片 ==================== */
.ip-card {
  background: white;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
  cursor: pointer;
}

.ip-card-main {
  display: flex;
  padding: 16px;
}

.ep-cover {
  width: 80px;
  height: 112px;
  background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 12px;
}

.ep-num {
  font-size: 28px;
  font-weight: 700;
  color: #60A5FA;
}

.ep-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ep-top {
  margin-bottom: 4px;
}

.ep-title {
  font-size: 15px;
  font-weight: 600;
  color: #1F2937;
  margin-top: 4px;
  line-height: 1.4;
}

.ep-title .prefix {
  color: #3B82F6;
  margin-right: 4px;
}

.ep-bottom {
  margin-top: auto;
}

.ep-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 8px;
}

.date-item {
  display: flex;
  align-items: center;
}

.date-item svg {
  width: 12px;
  height: 12px;
  margin-right: 3px;
}

/* 查看脚本按钮（卡片内部） */
.script-view-btn {
  width: 100%;
  padding: 10px;
  background: #F9FAFB;
  color: #4B5563;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.script-view-btn:hover {
  background: #F3F4F6;
}

.script-view-btn svg {
  margin-right: 6px;
  color: #9CA3AF;
}

/* 约拍确认按钮（卡片内部） */
.booking-confirm-btn {
  width: 100%;
  padding: 10px;
  background: #3B82F6;
  color: white;
  font-size: 13px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.booking-confirm-btn svg {
  margin-right: 6px;
}

.booking-confirm-btn .booking-time {
  margin-left: 8px;
  padding: 2px 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  font-size: 12px;
}

/* ==================== 已发布Tab - 左右布局 ==================== */
.pub-card {
  background: white;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
  cursor: pointer;
}

.pub-card-main {
  display: flex;
  padding: 16px;
}

.pub-info {
  flex: 1;
  min-width: 0;
}

.pub-title {
  font-size: 15px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 8px;
  line-height: 1.4;
}

.pub-title .prefix {
  color: #3B82F6;
  margin-right: 4px;
}

.platform-titles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pt-row {
  display: flex;
  align-items: flex-start;
  font-size: 12px;
}

.pt-tag {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  margin-right: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.pt-tag.douyin { background: #FEE2E2; color: #DC2626; }
.pt-tag.xhs { background: #FCE7F3; color: #DB2777; }
.pt-tag.sph { background: #D1FAE5; color: #059669; }

.pt-text {
  color: #6B7280;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 16px;
}

.pub-date {
  font-size: 12px;
  color: #9CA3AF;
}

.pub-actions {
  display: flex;
  gap: 8px;
}

.pub-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  background: #F3F4F6;
  color: #4B5563;
}

.pub-btn.primary {
  background: #3B82F6;
  color: white;
}

.pub-btn svg {
  margin-right: 4px;
}

/* ==================== 排期列表 ==================== */
.schedule-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #F9FAFB;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}

.schedule-item:last-child { margin-bottom: 0; }

.schedule-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
}

.schedule-item .dot.shooting { background: #8B5CF6; }
.schedule-item .dot.publish { background: #10B981; }

.schedule-item .info { flex: 1; }

.schedule-item .date-time {
  font-size: 14px;
  font-weight: 500;
  color: #1F2937;
}

.schedule-item .topic-info {
  font-size: 12px;
  color: #6B7280;
  margin-top: 2px;
}

.schedule-item .type-tag {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.schedule-item .type-tag.shooting { background: #F3E8FF; color: #7C3AED; }
.schedule-item .type-tag.publish { background: #D1FAE5; color: #059669; }

/* 最近发布卡片 */
.recent-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #F9FAFB;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}

.recent-item:last-child { margin-bottom: 0; }

.recent-item .episode-cover {
  width: 48px;
  height: 64px;
  background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.recent-item .episode-cover .number {
  font-size: 18px;
  font-weight: 700;
  color: #059669;
}

.recent-item .info {
  flex: 1;
  min-width: 0;
}

.recent-item .title {
  font-size: 14px;
  font-weight: 500;
  color: #1F2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-item .date {
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 4px;
}

.recent-item .play-icon {
  display: flex;
  align-items: center;
  color: #9CA3AF;
}

/* ==================== 列表项 ==================== */
.list-item {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #F3F4F6;
  cursor: pointer;
}

.list-item:last-child { border-bottom: none; }

.list-item .icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.list-item .content {
  flex: 1;
  min-width: 0;
}

.list-item .title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
}

.list-item .desc {
  font-size: 12px;
  color: #9CA3AF;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-item .arrow {
  color: #D1D5DB;
  margin-left: 8px;
}

.list-item .unread-dot {
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
  margin-left: 8px;
}

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary { background: #3B82F6; color: white; }
.btn-primary:hover { background: #2563EB; }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary { background: #F3F4F6; color: #333; }
.btn-outline { background: white; border: 1px solid #E5E7EB; color: #333; }
.btn-success { background: #10B981; color: white; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ==================== 表单 ==================== */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus { border-color: #3B82F6; }
.form-input::placeholder { color: #9CA3AF; }
textarea.form-input { resize: vertical; min-height: 100px; }

/* ==================== Tabs ==================== */
.tabs {
  display: flex;
  background: white;
  padding: 0 16px;
  border-bottom: 1px solid #EFEFEF;
  position: sticky;
  top: 0;
  z-index: 10;
}

.tab-item {
  flex: 1;
  padding: 14px 0;
  text-align: center;
  font-size: 14px;
  color: #6B7280;
  background: none;
  border: none;
  position: relative;
  cursor: pointer;
}

.tab-item.active {
  color: #3B82F6;
  font-weight: 600;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: #3B82F6;
  border-radius: 2px;
}

/* ==================== 空状态 ==================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #9CA3AF;
}

.empty-state .icon { font-size: 48px; margin-bottom: 16px; }
.empty-state .text { font-size: 14px; }

/* ==================== Toast ==================== */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #1F2937;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: all 0.3s;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  width: 18px;
  height: 18px;
  background: #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

/* ==================== Loading ==================== */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #E5E7EB;
  border-top-color: #3B82F6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== 登录页 ==================== */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px 40px;
}

.login-logo {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.login-title { color: white; font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.login-subtitle { color: rgba(255,255,255,0.8); font-size: 14px; margin-bottom: 48px; }

.login-card {
  width: 100%;
  max-width: 340px;
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.login-card h2 {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
  color: #1F2937;
}

.login-card .form-input { background: #F9FAFB; border-color: #F3F4F6; }

.login-tip {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  width: 100%;
  max-width: 340px;
}

.login-tip .tip-title { font-size: 13px; font-weight: 500; color: white; margin-bottom: 8px; }
.login-tip .tip-content { font-size: 12px; color: rgba(255,255,255,0.8); }

/* ==================== 详情页 ==================== */
.detail-section {
  background: white;
  margin: 12px 16px;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.detail-section .section-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.detail-section .section-title .icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  color: #3B82F6;
}

/* 垂直时间线进度 */
.timeline-progress { padding: 8px 0; }

.timeline-step {
  display: flex;
  position: relative;
}

.timeline-step:not(:last-child) { padding-bottom: 24px; }

.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  width: 2px;
  height: calc(100% - 24px);
  background: #E5E7EB;
}

.timeline-step.done:not(:last-child)::before { background: #10B981; }

.timeline-step .step-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E5E7EB;
  color: #9CA3AF;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 12px;
  position: relative;
  z-index: 1;
}

.timeline-step.active .step-marker { background: #3B82F6; color: white; }
.timeline-step.done .step-marker { background: #10B981; color: white; }

.timeline-step .step-content .step-title { font-size: 14px; font-weight: 500; color: #9CA3AF; }
.timeline-step.active .step-content .step-title,
.timeline-step.done .step-content .step-title { color: #1F2937; }

.timeline-step .step-content .step-desc { font-size: 12px; color: #9CA3AF; margin-top: 2px; }
.timeline-step.active .step-content .step-desc,
.timeline-step.done .step-content .step-desc { color: #6B7280; }

.timeline-step.active .step-content .current-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  background: #DBEAFE;
  color: #1D4ED8;
  font-size: 11px;
  border-radius: 10px;
}

.script-block {
  background: #F9FAFB;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.script-block .label { font-size: 12px; color: #9CA3AF; margin-bottom: 4px; }
.script-block .content { font-size: 14px; color: #333; word-break: break-all; }

.copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: #F3F4F6;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  color: #6B7280;
  margin-top: 8px;
  cursor: pointer;
}

.copy-btn:hover { background: #E5E7EB; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

.tag-item {
  background: #EEF2FF;
  color: #3B82F6;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
}

.tag-item:hover { background: #DBEAFE; }

/* ==================== 底部操作栏 ==================== */
.bottom-action {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: white;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #EFEFEF;
  display: flex;
  gap: 12px;
}

.bottom-action .btn { flex: 1; }

/* ==================== 日历页 ==================== */
.calendar-header {
  background: white;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-month { font-size: 18px; font-weight: 600; }

.calendar-nav { display: flex; gap: 8px; }

.calendar-nav button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #F3F4F6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.calendar-grid { background: white; padding: 0 8px 16px; }

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  color: #9CA3AF;
  padding: 8px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  position: relative;
  cursor: pointer;
}

.calendar-day:hover { background: #F3F4F6; }
.calendar-day.other-month { color: #D1D5DB; }

.calendar-day.today .day-number {
  width: 28px;
  height: 28px;
  background: #3B82F6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day.selected { background: #EFF6FF; }

.calendar-day .event-dots {
  display: flex;
  gap: 2px;
  position: absolute;
  bottom: 4px;
}

.calendar-day .event-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.calendar-day .event-dot.shooting { background: #8B5CF6; }
.calendar-day .event-dot.published { background: #10B981; }
.calendar-day .event-dot.planned { background: #3B82F6; }

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 12px;
  border-top: 1px solid #F3F4F6;
  font-size: 12px;
  color: #6B7280;
}

.calendar-legend .item { display: flex; align-items: center; }
.calendar-legend .dot { width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; }

/* ==================== 个人中心 ==================== */
.profile-card {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  border-radius: 16px;
  padding: 20px;
  margin: 16px;
  color: white;
}

.profile-card .shop-row { display: flex; align-items: center; margin-bottom: 16px; }

.profile-card .shop-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
}

.profile-card .shop-info .name { font-size: 18px; font-weight: 600; }
.profile-card .shop-info .join-date { font-size: 13px; color: rgba(255,255,255,0.8); margin-top: 2px; }

.profile-card .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 13px;
}

.profile-card .contact-item { display: flex; align-items: center; color: rgba(255,255,255,0.9); }
.profile-card .contact-item.full { grid-column: span 2; }
.profile-card .contact-item svg { width: 16px; height: 16px; margin-right: 8px; color: rgba(255,255,255,0.6); }

.stats-card {
  background: white;
  border-radius: 12px;
  margin: 0 16px 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stats-card .title { font-size: 14px; font-weight: 600; margin-bottom: 12px; }

.stats-card .stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stats-card .stat-item {
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.stats-card .stat-item.blue { background: #EFF6FF; }
.stats-card .stat-item.blue:hover { background: #DBEAFE; }
.stats-card .stat-item.green { background: #ECFDF5; }
.stats-card .stat-item.green:hover { background: #D1FAE5; }

.stats-card .stat-item .value { font-size: 24px; font-weight: 700; }
.stats-card .stat-item.blue .value { color: #2563EB; }
.stats-card .stat-item.green .value { color: #059669; }

.stats-card .stat-item .label { font-size: 13px; color: #6B7280; margin-top: 4px; }

.menu-group {
  background: white;
  margin: 0 16px 12px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #F3F4F6;
  cursor: pointer;
}

.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: #F9FAFB; }

.menu-item .icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.menu-item .icon.blue { background: #DBEAFE; color: #2563EB; }
.menu-item .icon.teal { background: #CCFBF1; color: #0D9488; }
.menu-item .icon.purple { background: #F3E8FF; color: #7C3AED; }
.menu-item .icon.gray { background: #F3F4F6; color: #6B7280; }

.menu-item .text { flex: 1; font-size: 15px; color: #1F2937; }

.menu-item .badge {
  padding: 2px 8px;
  background: #EF4444;
  color: white;
  font-size: 12px;
  border-radius: 10px;
  margin-right: 8px;
}

.menu-item .arrow { color: #D1D5DB; }

.logout-btn { margin: 16px; }

/* ==================== 弹窗 ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}

.modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 360px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #F3F4F6;
}

.modal-header .title { font-size: 16px; font-weight: 600; }

.modal-header .close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: #9CA3AF;
  cursor: pointer;
}

.modal-body { flex: 1; overflow-y: auto; padding: 16px; }
.modal-footer { padding: 16px; border-top: 1px solid #F3F4F6; }

/* ==================== 响应式 ==================== */
@media (min-width: 430px) {
  .container {
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
  }
}
