/**
 * DZ任务平台 - 全局设计系统 & 组件样式
 * 移动端优先 · 紫蓝科技风
 */

/* ==================== CSS 变量 (Design Tokens) ==================== */
:root {
  /* 品牌色系 */
  --primary-gradient: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  --primary-color: #8B5CF6;
  --secondary-color: #7C3AED;
  --accent-color: #FF6B35;

  /* 状态色系 */
  --status-success: #10B981;
  --status-warning: #F59E0B;
  --status-danger: #EF4444;

  /* 背景与中性色 */
  --bg-main: #F5F6FA;
  --bg-card: #FFFFFF;
  --text-main: #1A1A2E;
  --text-muted: #8E8E93;
  --border-color: #94A3B8;

  /* 边角与阴影 */
  --radius-card: 16px;
  --radius-button: 8px;
  --radius-pill: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(91, 108, 249, 0.08);
}

/* ==================== 基础重置 ==================== */
* {
  -webkit-tap-highlight-color: transparent;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== 滚动条 ==================== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* 隐藏滚动条 */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ==================== 文本省略 ==================== */
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* ==================== 玻璃效果 ==================== */
.glass {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ==================== 骨架屏 ==================== */
.skeleton {
  background: linear-gradient(90deg, #f4f4f5 25%, #e4e4e7 50%, #f4f4f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==================== 渐入动画 ==================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.animate-fade-up { animation: fadeUp .4s ease-out; }
.animate-fade-in { animation: fadeIn .3s ease-out; }
.animate-scale-in { animation: scaleIn .25s ease-out; }
.animate-slide-in { animation: slideInRight .3s ease-out; }
.animate-pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }

/* ==================== 价格标签 ==================== */
.price-tag {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ==================== 小标签 ==================== */
.tag-sm {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
}

/* ==================== Toast 通知 ==================== */
@keyframes toastIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.9); }
  60% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
@keyframes toastOut {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.9); }
}
.toast-center {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  max-width: 90vw;
  width: 380px;
  animation: toastIn .3s ease-out;
}
.toast-center.removing {
  animation: toastOut .25s ease-in forwards;
}

/* ==================== 导航栏 ==================== */
.navbar-main {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}
.nav-logo-text {
  font-size: 18px;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== Hero 区域 (旧) ==================== */
.hero-area {
  background: var(--primary-gradient);
  min-height: 120px;
  padding: 24px 16px;
}
.hero-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.hero-subtitle {
  font-size: 13px;
  color: #E0E7FF;
}

/* ==================== 渐变头部 (新设计) ==================== */
.hero-gradient {
  background: linear-gradient(135deg, #5B6CF9 0%, #7C3AED 100%);
  padding: 16px 16px 20px;
  margin: 0 -16px;
  border-radius: 0 0 20px 20px;
}
.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.hero-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: rgba(255,255,255,0.85);
  transition: all 0.2s;
  text-decoration: none;
}
.hero-action-btn:hover {
  background: rgba(255,255,255,0.15);
}
.hero-notify-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  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;
  border: 2px solid #5B6CF9;
}
.hero-avatar-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.hero-avatar-img {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.6);
  display: block;
}
.hero-avatar-fallback {
  display: none;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.6);
}

/* ==================== 搜索框 (新设计 - 在渐变头部内) ==================== */
.hero-search {
  position: relative;
}
.hero-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #9CA3AF;
  pointer-events: none;
  overflow: hidden;
}
.hero-search-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-search-input {
  width: 100%;
  height: 38px;
  background: #fff;
  border-radius: 19px;
  padding-left: 36px;
  padding-right: 14px;
  border: none;
  outline: none;
  font-size: 13px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s;
}
.hero-search-input::placeholder {
  color: #9CA3AF;
}
.hero-search-input:focus {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* ==================== 搜索框 (旧) ==================== */
.search-wrapper {
  margin-top: -20px;
  margin-left: 16px;
  margin-right: 16px;
  position: relative;
}
.search-input {
  width: 100%;
  height: 44px;
  background: #fff;
  border-radius: var(--radius-pill);
  padding-left: 40px;
  padding-right: 16px;
  border: none;
  outline: none;
  box-shadow: var(--shadow-md);
  font-size: 14px;
  transition: box-shadow 0.2s;
}
.search-input:focus {
  box-shadow: 0 4px 20px rgba(91, 108, 249, 0.15);
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #9CA3AF;
}

/* ==================== 分类标签栏 ==================== */
.cat-tabs {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  margin: 0 16px;
  padding: 12px 0;
  gap: 8px;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  background: #fff;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: all 0.2s;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
}
.cat-pill:active {
  transform: scale(0.96);
}
.cat-pill.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(91, 108, 249, 0.25);
}

/* ==================== 统计条 ==================== */
.stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 16px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ==================== 任务卡片 ==================== */
.task-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid #F2F2F2;
  -webkit-tap-highlight-color: transparent;
}
.task-card:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.task-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.task-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.task-title {
  font-size: 18px;
  font-weight: 700;
  color: #1A1A2E;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  display: block;
}
.task-action-label {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  background: #FAFAFA;
  color: #9CA3AF;
  border: 1px solid #E5E7EB;
  font-weight: 500;
  white-space: nowrap;
}
.task-action-label img {
  width: 14px !important;
  height: 14px !important;
  object-fit: contain !important;
  flex-shrink: 0;
}
.platform-label {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  background: #FFF1F2;
  color: #FF2442;
  border-color: #FFE4E6;
}
.platform-label.text-red-600 { background:#FEF2F2; color:#DC2626; border-color:#FECACA; }
.platform-label.text-cyan-600 { background:#ECFEFF; color:#0891B2; border-color:#CFFAFE; }
.platform-label.text-orange-600 { background:#FFF7ED; color:#EA580C; border-color:#FFEDD5; }
.platform-label.text-blue-600 { background:#EFF6FF; color:#2563EB; border-color:#BFDBFE; }
.platform-label.text-rose-600 { background:#FFF1F2; color:#E11D48; border-color:#FFE4E6; }
.platform-label.text-indigo-600 { background:#EEF2FF; color:#4F46E5; border-color:#C7D2FE; }
.platform-label.text-pink-600 { background:#FDF2F8; color:#DB2777; border-color:#FCE7F3; }

.price-tag {
  font-size: 18px;
  font-weight: 800;
  color: #FF2E55;
  letter-spacing: -0.5px;
}
.slots-text {
  font-size: 12px;
  color: #9CA3AF;
  font-weight: 500;
}
.task-progress-bar {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #F0F0F0;
  overflow: hidden;
}
.task-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
  background: linear-gradient(90deg, #FF6B8A, #FF2E55);
}
.task-accept-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.task-accept-btn:hover {
  background: linear-gradient(135deg, #6D28D9, #5B21B6);
}
.task-accept-btn:active {
  transform: scale(0.96);
}
.task-accepted-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  background: #F3F4F6;
  color: #9CA3AF;
  border: 1px solid #E5E7EB;
  white-space: nowrap;
}

/* ==================== 状态筛选标签 (下划线风格) ==================== */
.filter-tabs {
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}
.filter-tab {
  position: relative;
  padding: 10px 8px 12px;
  font-size: 14px;
  color: #9CA3AF;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.filter-tab.active {
  color: var(--primary-color);
  font-weight: 700;
}
.filter-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 0 0 4px 4px;
}
.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  padding: 0 5px;
  margin-left: 4px;
}
.filter-tab.active .filter-badge {
  background: var(--primary-color);
  color: #fff;
}
.filter-tab:not(.active) .filter-badge {
  background: #E5E7EB;
  color: #9CA3AF;
}

/* ==================== 我的任务 - 药丸标签栏 ==================== */
.my-task-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.my-task-tabs::-webkit-scrollbar { display: none; }
.my-task-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: #fff;
  color: #6B7280;
  border: 1px solid #E5E7EB;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
}
.my-task-tab:active {
  transform: scale(0.96);
}
.my-task-tab.active {
  background: linear-gradient(135deg, #5B6CF9 0%, #7C3AED 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(91, 108, 249, 0.25);
}
.my-task-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  padding: 0 5px;
  margin-left: 2px;
}
.my-task-tab.active .my-task-tab-count {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.my-task-tab:not(.active) .my-task-tab-count {
  background: #F3F4F6;
  color: #9CA3AF;
}

/* ==================== 任务详情页 ==================== */
.detail-info-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(229, 231, 235, 0.5);
}
.detail-publisher-card {
  background: #F9FAFB;
  border-radius: 12px;
  padding: 16px;
}
.detail-reward-card {
  text-align: center;
  padding: 20px 16px;
  background: #FFFBEB;
  border: 1px solid #FEF3C7;
}
.detail-reward-value {
  font-size: 28px;
  font-weight: 800;
  color: #F59E0B;
  text-align: center;
  letter-spacing: -0.02em;
}
.detail-reward-value .text-sm {
  font-size: 14px;
  font-weight: 500;
  color: #9CA3AF;
  margin-left: 2px;
}
.detail-slots-card {
  text-align: center;
  padding: 20px 16px;
}

/* 悬浮底部操作栏 */
.sticky-bottom-bar {
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  z-index: 90;
  background: #fff;
  padding: 12px 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.sticky-bottom-btn {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-button);
  background: var(--primary-gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 4px 16px rgba(91, 108, 249, 0.3);
}
.sticky-bottom-btn:active {
  transform: scale(0.98);
}

/* ==================== 任务详情页 (新设计) ==================== */
.detail-hero {
  background: linear-gradient(135deg, #5B6CF9 0%, #7C3AED 100%);
  padding: 12px 16px 20px;
  margin: 0 -16px 16px;
  border-radius: 0 0 20px 20px;
}
.detail-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
}
.detail-hero-back,
.detail-hero-share {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  border: none;
  cursor: pointer;
}
.detail-hero-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.detail-content {
  padding: 16px 0 90px;
}
.detail-alerts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.detail-alerts > div {
  margin-bottom: 0;
}
.detail-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  flex: 1;
}
.detail-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.detail-publisher {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  margin-bottom: 16px;
}
.detail-publisher-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.detail-publisher-avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  flex-shrink: 0;
}
.detail-publisher-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}
.detail-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(229, 231, 235, 0.5);
}
.detail-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}
.detail-card-body {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
}
.detail-require-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  margin: 0;
  background: rgba(91,108,249,0.04);
  border-radius: 8px;
}
.detail-require-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F3F4F6;
  color: #9CA3AF;
  flex-shrink: 0;
}
.detail-require-icon.required {
  background: #EEF0FF;
  color: #5B6CF9;
}
.detail-require-tag {
  margin-left: auto;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #F3F4F6;
  color: #9CA3AF;
  flex-shrink: 0;
}
.detail-require-tag.required {
  background: #EEF0FF;
  color: #5B6CF9;
}
.detail-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}
.detail-progress .task-progress-bar {
  flex: 1;
}
.detail-progress-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
}

/* ==================== 发布者申请页 ==================== */
.apply-banner {
  background: var(--primary-gradient);
  border-radius: 16px;
  padding: 32px 24px;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
}
.apply-banner h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.apply-banner p {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.5;
}
.stats-mini-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.stat-mini-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(229, 231, 235, 0.5);
}
.stat-mini-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
}
.stat-mini-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}
.form-label .required {
  color: var(--status-danger);
}
.form-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text-main);
}
.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(91, 108, 249, 0.1);
}
/* 全局输入框、选择框、文本域统一边框 */
input[type="text"]:not(.hero-search-input):not(.no-border),
input[type="email"]:not(.no-border),
input[type="password"]:not(.no-border),
input[type="number"]:not(.no-border),
input[type="tel"]:not(.no-border),
input[type="url"]:not(.no-border),
input[type="search"]:not(.no-border),
input[type="date"]:not(.no-border),
input[type="datetime-local"]:not(.no-border),
select:not(.no-border),
textarea:not(.no-border) {
  border: 1.5px solid #94A3B8 !important;
  background: #fff;
}
input[type="text"]:not(.hero-search-input):not(.no-border):focus,
input[type="email"]:not(.no-border):focus,
input[type="password"]:not(.no-border):focus,
input[type="number"]:not(.no-border):focus,
input[type="tel"]:not(.no-border):focus,
input[type="url"]:not(.no-border):focus,
input[type="search"]:not(.no-border):focus,
input[type="date"]:not(.no-border):focus,
input[type="datetime-local"]:not(.no-border):focus,
select:not(.no-border):focus,
textarea:not(.no-border):focus {
  border-color: #8B5CF6 !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
  outline: none;
}
.form-hint {
  font-size: 12px;
  color: #9CA3AF;
  text-align: center;
  margin-top: 16px;
}

/* ==================== 个人中心 ==================== */
/* 用户头部卡片 */
.user-header-card {
  background: var(--primary-gradient);
  padding: 24px 24px 40px;
  border-radius: 0 0 24px 24px;
  margin: -16px -16px 0;
}
.user-avatar-lg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.5);
  overflow: hidden;
  flex-shrink: 0;
}
.user-level-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  color: #FFD700;
  border: 1px solid rgba(255,255,255,0.3);
}

/* 数据看板网格 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: -30px 16px 0;
  position: relative;
  z-index: 10;
}
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(229, 231, 235, 0.5);
}
.stat-card .stat-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
}
.stat-card .stat-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==================== 底部 Tab 栏 ==================== */
.bottom-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 60px;
  background: #ffffff;
  border-top: 1px solid rgba(229, 231, 235, 0.6);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* 仅在明确支持 backdrop-filter 的浏览器上启用磨砂效果 */
@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .bottom-tab-bar {
    background: rgba(255,255,255,0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}
.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 4px 0;
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.tab-item.active {
  color: var(--primary-color);
}
.cat-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}
.tab-item svg,
.tab-item img {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
  object-fit: contain;
}
.tab-item span {
  font-size: 11px;
  font-weight: 500;
}
.tab-item-publisher {
  position: relative;
  top: -8px;
}
.tab-item-publisher .tab-pub-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(91, 108, 249, 0.35);
  margin-bottom: 2px;
}

/* ==================== 发布者信息行 ==================== */
.publisher-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.publisher-avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(229, 231, 235, 0.8);
  flex-shrink: 0;
}
.publisher-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #F0F0F0;
  flex-shrink: 0;
}
.publisher-name {
  font-size: 13px;
  font-weight: 700;
  color: #1A1A2E;
}
.publisher-stats {
  font-size: 11px;
  color: #9CA3AF;
  font-weight: 500;
  margin-top: 1px;
}

/* V 等级徽章 */
.v-level-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  height: 16px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.v-level-badge.v1 { background: linear-gradient(135deg, #8B5CF6, #7C3AED); color: #fff; border: none; box-shadow: 0 2px 6px rgba(124, 58, 237, 0.25); }
.v-level-badge.v2 { background: #DBEAFE; color: #2563EB; border: 1px solid #93C5FD; }
.v-level-badge.v3 { background: #EDE9FE; color: #7C3AED; border: 1px solid #C4B5FD; }
.v-level-badge.v4 { background: #FEF3C7; color: #D97706; border: 1px solid #FCD34D; }
.v-level-badge.v5 { background: #FEE2E2; color: #DC2626; border: 1px solid #FECACA; }

/* 任务卡片列表容器 */
.task-list {
  padding: 0 12px 80px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==================== 模态弹窗 ==================== */
.modal-overlay {
  background: rgba(24,24,27,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ==================== 发布者申请页 (新设计) ==================== */
.publisher-hero {
  background: linear-gradient(135deg, #5B6CF9 0%, #7C3AED 100%);
  padding: 16px 16px 60px;
  margin: 0 -16px;
  border-radius: 0 0 20px 20px;
}
.publisher-hero-back {
  margin-bottom: 20px;
}
.publisher-hero-back a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
}
.publisher-hero-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.publisher-hero-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
.publisher-content {
  margin-top: -40px;
  position: relative;
  z-index: 10;
  padding: 0 16px;
}
.publisher-alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 16px;
}
.publisher-alert.alert-error {
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  color: #E11D48;
}
.publisher-alert.alert-success {
  background: #ECFDF5;
  border: 1px solid #D1FAE5;
  color: #059669;
}
.inline-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.inline-alert.alert-success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #059669;
}
.inline-alert.alert-error {
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  color: #E11D48;
}
.publisher-status-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}
.publisher-status-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #1A1A2E;
}
.publisher-status-title-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #5B6CF9, #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.publisher-status-grid {
  display: flex;
  align-items: center;
  gap: 16px;
}
.publisher-status-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.publisher-status-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.publisher-status-divider {
  width: 1px;
  height: 40px;
  background: #E5E7EB;
  flex-shrink: 0;
}
.publisher-status-meta {
  flex: 1;
}
.publisher-status-label {
  font-size: 12px;
  color: #8E8E93;
  margin-bottom: 2px;
}
.publisher-status-value {
  font-size: 18px;
  font-weight: 700;
}
.publisher-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.publisher-form-group {
  margin-bottom: 16px;
}
.publisher-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1A1A2E;
  margin-bottom: 8px;
}
.publisher-required {
  color: #EF4444;
}
.publisher-form-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: #fff;
  border: 1.5px solid #94A3B8;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text-main);
}
.publisher-form-input:focus {
  border-color: #5B6CF9;
  box-shadow: 0 0 0 3px rgba(91, 108, 249, 0.1);
}
.publisher-form-hint {
  font-size: 12px;
  color: #9CA3AF;
  text-align: center;
  margin-bottom: 16px;
}
.publisher-submit-btn {
  display: flex;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5B6CF9, #7C3AED);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(91, 108, 249, 0.3);
  text-decoration: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.publisher-submit-btn:active {
  transform: scale(0.98);
}
.publisher-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #fff;
}
.publisher-success-title {
  font-size: 16px;
  font-weight: 700;
  color: #059669;
  margin-bottom: 8px;
}
.publisher-success-desc {
  font-size: 13px;
  color: #8E8E93;
  margin-bottom: 20px;
}
.publisher-waiting-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FEF3C7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #D97706;
}
.publisher-waiting-title {
  font-size: 16px;
  font-weight: 700;
  color: #D97706;
  margin-bottom: 8px;
}
.publisher-waiting-info {
  font-size: 13px;
  color: #8E8E93;
  margin-bottom: 4px;
}
.publisher-waiting-time {
  font-size: 12px;
  color: #9CA3AF;
}
.publisher-not-allowed {
  text-align: center;
  padding: 32px 0;
}
.publisher-not-allowed p:first-child {
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 4px;
}
.publisher-not-allowed p:last-child {
  font-size: 12px;
  color: #9CA3AF;
}

/* ==================== 个人中心 (新设计) ==================== */
.personal-hero {
  background: linear-gradient(135deg, #5B6CF9 0%, #7C3AED 100%);
  padding: 16px 16px 48px;
  margin: 0 -16px;
  border-radius: 0 0 20px 20px;
}
.personal-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  height: 36px;
}
.personal-hero-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  flex: 1;
}
.personal-hero-setting {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.personal-hero-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.personal-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.personal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.personal-avatar-fallback {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #818CF8, #5B6CF9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}
.personal-hero-meta {
  flex: 1;
}
.personal-username {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.personal-level-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  margin-bottom: 6px;
}
.personal-id-time {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
}
.personal-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: -24px 0 0;
  position: relative;
  z-index: 10;
}
.personal-stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px 4px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(229, 231, 235, 0.5);
}
.personal-stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
}
.personal-stat-label {
  font-size: 11px;
  color: #8E8E93;
  margin-bottom: 4px;
}
.personal-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #1A1A2E;
}
.personal-content {
  padding: 16px 0;
}
.personal-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(229, 231, 235, 0.5);
}
.personal-credit {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.personal-credit-left {
  flex: 1;
}
.personal-credit-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #1A1A2E;
  margin-bottom: 8px;
}
.personal-credit-title svg {
  color: #9CA3AF;
}
.personal-credit-score {
  font-size: 32px;
  font-weight: 800;
  color: #5B6CF9;
  line-height: 1;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.credit-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin-left: 2px;
}
.personal-credit-desc {
  font-size: 11px;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  gap: 4px;
}
.personal-credit-desc svg {
  color: #F59E0B;
}
.personal-credit-right {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.personal-credit-ring {
  width: 72px;
  height: 72px;
  transform: rotate(-90deg);
}
.personal-credit-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.personal-credit-ring-text span:first-child {
  font-size: 16px;
  font-weight: 700;
  color: #5B6CF9;
  line-height: 1;
}
.personal-credit-ring-text span:last-child {
  font-size: 10px;
  color: #9CA3AF;
}
.personal-level-title {
  font-size: 14px;
  font-weight: 600;
  color: #1A1A2E;
  margin-bottom: 16px;
}
.personal-levels {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.personal-level-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 4px;
  border-radius: 12px;
}
.personal-level-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: all 0.2s;
}
.personal-level-item.current .personal-level-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
}
.personal-level-item:not(.current) .personal-level-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F9FAFB;
  border: 2px solid #E5E7EB;
  color: #9CA3AF;
}
.personal-level-lv {
  font-size: 10px;
  font-weight: 600;
  color: #9CA3AF;
  margin-bottom: 2px;
}
.personal-level-name {
  font-size: 11px;
  font-weight: 500;
  color: #6B7280;
  margin-bottom: 2px;
}
.personal-level-limit {
  font-size: 9px;
  color: #9CA3AF;
}
.personal-limit-value {
  font-size: 9px;
  color: #9CA3AF;
}
.personal-level-divider {
  width: 16px;
  height: 1px;
  border-top: 1px dashed #E5E7EB;
  margin-top: 22px;
  flex-shrink: 0;
}
.profile-avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #EDE9FE;
  flex-shrink: 0;
}
.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #EDE9FE;
  color: #7C3AED;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.profile-avatar-upload-btn:hover {
  background: #DDD6FE;
}
/* 裁剪弹窗 */
.crop-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.crop-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.crop-modal-body {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 20px 20px 16px;
  width: 340px;
  max-width: 95vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.crop-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
}
.crop-container img {
  position: absolute;
  top: 0; left: 0;
  transform-origin: 0 0;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}
.crop-container img:active { cursor: grabbing; }
.crop-frame {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 200px;
  height: 200px;
  border: 2px dashed rgba(255,255,255,0.8);
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.5);
  border-radius: 6px;
  pointer-events: none;
  z-index: 2;
}
.crop-btns {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.crop-cancel-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 10px;
  background: #F3F4F6;
  color: #6B7280;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}
.crop-cancel-btn:hover { background: #E5E7EB; }
.crop-confirm-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 10px;
  background: #7C3AED;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.crop-confirm-btn:hover { background: #6D28D9; }
.crop-confirm-btn:disabled { opacity: 0.6; cursor: not-allowed; }
/* Toast */
.crop-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  background: #059669;
  color: #fff;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.crop-toast.show { opacity: 1; }
.crop-toast.error { background: #EF4444; }
.personal-list {
  display: flex;
  flex-direction: column;
}
.personal-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #F3F4F6;
}
.personal-list-item:last-child {
  border-bottom: none;
}
.personal-list-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.personal-list-label {
  font-size: 13px;
  color: #1A1A2E;
  flex: 1;
}
.personal-list-value {
  font-size: 12px;
  color: #6B7280;
  margin-right: 4px;
}

/* ==================== 我的任务 (新设计) ==================== */
.my-task-list {
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.my-task-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(229, 231, 235, 0.5);
  transition: all 0.2s;
}
.my-task-card:active {
  transform: scale(0.98);
}
.my-task-card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.my-task-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.my-task-card-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #1A1A2E;
  line-height: 1.4;
  padding-top: 2px;
}
.my-task-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}
.my-task-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}
.my-task-card-publisher {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.my-task-card-publisher img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.my-task-card-publisher span {
  font-size: 12px;
  color: #6B7280;
}
.my-task-card-cat {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
}
.my-task-card-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
  color: #9CA3AF;
}
.my-task-card-meta span {
  font-size: 11px;
}
.my-task-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #F3F4F6;
}
.my-task-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  background: #F9FAFB;
  color: #6B7280;
  border: 1px solid #E5E7EB;
  text-decoration: none;
}
.my-task-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  background: #F5F3FF;
  color: #5B6CF9;
  border: 1px solid #E0E4FF;
  text-decoration: none;
}
.my-task-card-reward {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #F3F4F6;
  font-size: 12px;
  color: #059669;
  font-weight: 500;
}
.my-task-card-notice {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
}
.my-task-card-appeal {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  color: #D97706;
  font-weight: 500;
  text-decoration: none;
}

/* ==================== 内联提交按钮 ==================== */
.submit-btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}
.submit-btn-inline:active {
  transform: scale(0.95);
  opacity: 0.9;
}

/* 内联取消按钮 */
.cancel-btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  background: #F3F4F6;
  color: #6B7280;
  border: 1px solid #E5E7EB;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.cancel-btn-inline:active {
  transform: scale(0.95);
  background: #E5E7EB;
}

/* 倒计时徽章 */
.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==================== 响应式修正 ==================== */
@media (min-width: 768px) {
  .bottom-tab-bar {
    display: none;
  }
  .sticky-bottom-bar {
    position: static;
    box-shadow: none;
    padding: 16px 0;
  }
}

/* ==================== 平台图标 (SVG Logo) ==================== */
.platform-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
/* 约束标签内的平台图标大小，避免不同浏览器渲染不一致 */
.task-cat-tag .platform-icon {
  width: 14px;
  height: 14px;
  max-width: 14px;
  max-height: 14px;
  flex-shrink: 0;
}

/* ==================== 自定义下拉选择器 (带平台logo) ==================== */
.custom-select {
  position: relative;
  width: 100%;
}
.custom-select-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  font-size: 14px;
}
.custom-select-trigger:hover {
  border-color: #c7d2fe;
  background: #f5f3ff;
}
.custom-select-trigger:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129,140,248,0.15);
}
.custom-select.open .custom-select-trigger {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129,140,248,0.15);
  background: #fff;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.custom-select-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
}
.custom-select-text {
  flex: 1;
  color: #334155;
  font-weight: 500;
}
.custom-select-arrow {
  flex-shrink: 0;
  color: #94a3b8;
  transition: transform 0.2s;
}
.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}
.custom-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border: 1px solid #818cf8;
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  max-height: 260px;
  overflow-y: auto;
  display: none;
}
.custom-select.open .custom-select-dropdown {
  display: block;
}
.custom-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 14px;
  color: #334155;
  font-weight: 500;
}
.custom-select-option:hover {
  background: #f5f3ff;
}
.custom-select-option.selected {
  background: #ede9fe;
  color: #5b21b6;
}
.custom-select-option-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
}

/* ==================== 参考图片画廊 & 视频教程 ==================== */
/* 上传区域通用 */
.upload-zone {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
  background: #f9fafb;
}
.upload-zone:hover {
  border-color: #8b5cf6;
  color: #8b5cf6;
  background: #f5f3ff;
}

/* 图片预览缩略图 */
.ref-image-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.ref-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ref-image-thumb .remove-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.ref-image-thumb:hover .remove-btn {
  opacity: 1;
}

/* 视频预览卡片 */
.video-preview-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
}
.video-preview-card .video-icon {
  width: 36px;
  height: 36px;
  background: #f97316;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.video-preview-card .video-name {
  flex: 1;
  font-size: 12px;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.video-preview-card .video-remove {
  flex-shrink: 0;
  color: #ef4444;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px;
}

/* 详情页：图片画廊横滚 */
.tutorial-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.tutorial-gallery::-webkit-scrollbar {
  display: none;
}
.tutorial-gallery .gallery-thumb {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  transition: transform 0.15s, box-shadow 0.15s;
}
.tutorial-gallery .gallery-thumb:active {
  transform: scale(0.96);
}
.tutorial-gallery .gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 详情页：视频播放器容器 */
.tutorial-video-wrapper {
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.tutorial-video-wrapper video {
  width: 100%;
  display: block;
  outline: none;
}
.tutorial-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 10px;
}

/* 上传区域虚线按钮 */
.upload-dashed-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  background: #f9fafb;
}
.upload-dashed-btn:hover {
  border-color: #8b5cf6;
  color: #8b5cf6;
  background: #f5f3ff;
}
