/* ============================================================
   付费进群系统 v3.5 — 任务上传页
   ============================================================ */

:root {
  --primary: #4f6ef7;
  --primary-gradient: linear-gradient(135deg, #4f6ef7, #7c5cfc);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --body-bg: #f0f2f5;
  --card-bg: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 50px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  margin: 0 auto;
  padding: 0 0 80px;
  background: var(--body-bg);
  overflow-x: hidden;
  max-width: 600px;
  color: var(--text-primary);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
a:focus { outline: none; }

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: 48px;
  background: var(--card-bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.back-button {
  width: 20px; height: 20px;
  z-index: 99999;
  margin-left: 10px;
  position: fixed;
}
.left-arrow {
  display: inline-block;
  margin: 20px;
  border-left: 1.5px solid var(--text-primary);
  border-bottom: 1.5px solid var(--text-primary);
  width: 10px; height: 10px;
  transform: rotate(45deg);
  opacity: 0.7;
}
.title {
  margin: auto;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ---- Task Container Card ---- */
.task-container {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 16px 10px;
}
.task-header b {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-primary);
}
.task-idop {
  font-size: 13px;
  color: var(--text-muted);
}
.copsl-ndh {
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding-top: 8px;
}
.task-info {
  padding: 6px 0;
}
.task-info p {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.task-scjt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.biaoti {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ---- Buttons ---- */
button {
  padding: 10px 28px;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(79,110,247,0.25);
}
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(79,110,247,0.35);
}
button:active {
  transform: scale(0.97);
}

.example-btn {
  background: var(--warning);
  padding: 5px 16px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 13px;
  color: #fff;
  transition: opacity var(--transition);
  margin-left: 12px;
}
.example-btn:hover { opacity: 0.85; }
.example-btnlp {
  background: var(--primary);
  margin-left: 40px;
}
.example-apo {
  background: var(--primary);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: #fff;
  text-align: center;
  width: 200px;
  height: 45px;
  display: block;
  margin: 20px auto 40px;
  line-height: 21px;
}

/* ---- Image Upload Area ---- */
.task-tupian {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tupian img {
  width: 80px;
  height: 120px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 8px;
  margin-left: 0;
  border: 1px solid var(--border);
  object-fit: cover;
  transition: transform var(--transition);
}
.tupian img:hover { transform: scale(1.03); }

.tupianxz {
  cursor: pointer;
  font-size: 14px;
  color: var(--primary);
}
.selected-ts {
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 14px;
}

/* ---- Image Grid ---- */
.image-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0;
}
.image-item {
  position: relative;
  width: 80px;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.image-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.close-button {
  position: absolute;
  top: -6px;
  right: -6px;
  background: rgba(239,68,68,0.85);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  z-index: 999;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: background var(--transition), transform var(--transition);
}
.close-button:hover {
  background: var(--danger);
  transform: scale(1.1);
}

.select-button {
  position: relative;
  width: 80px;
  height: 120px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.select-button:hover {
  border-color: var(--primary);
  background: rgba(79,110,247,0.04);
}
.select-button span {
  font-size: 28px;
  color: var(--text-muted);
  line-height: 1;
}

/* ---- Upload Preview / Results ---- */
.upload-preview {
  width: 60px; height: 60px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.upload-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.upload-preview .delete-icon {
  position: absolute;
  top: 0; right: 0;
  cursor: pointer;
  color: var(--danger);
  font-size: 20px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  width: 20px; height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.upload-preview .status {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  background: rgba(100,116,139,0.6);
  border-radius: var(--radius-sm);
}
.upload-preview .status.approved {
  background: rgba(34,197,94,0.8);
  color: #dcfce7;
}

.upload-results {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.upload-result {
  flex: 0 0 calc(33.33% - 7px);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  aspect-ratio: 1 / 1.5;
  background: var(--body-bg);
}
.upload-result img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.upload-result .status {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: rgba(100,116,139,0.75);
  letter-spacing: 2px;
}
.upload-result .status.approved {
  background: rgba(34,197,94,0.6);
  color: #dcfce7;
}

.selected-files {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.selected-files1#upload-status {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 14px;
  padding: 16px 24px;
  border-radius: var(--radius);
  text-align: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
}

/* ---- Status & Review ---- */
.status-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 16px;
}
.status-icon {
  width: 80px; height: 80px;
  margin-bottom: 16px;
}
.status-text { text-align: center; }
.status-text h3 {
  font-size: 22px;
  color: var(--text-primary);
  margin: 8px 0;
}
.status-text p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 4px 0;
}

.submit-1 {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
}
.submit-1 button {
  padding: 12px 32px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--primary-gradient);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(79,110,247,0.3);
}

/* ---- Modal ---- */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: var(--card-bg);
  border: none;
  width: 220px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  padding: 24px 20px;
}
.modal .close {
  position: absolute;
  top: 6px; right: 12px;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.modal .close:hover { color: var(--text-primary); }
.buttonlk {
  background: var(--primary-gradient);
  border: none;
  color: #fff;
  padding: 10px 32px;
  text-align: center;
  display: inline-block;
  font-size: 15px;
  cursor: pointer;
  border-radius: var(--radius-pill);
  height: 42px;
  margin-top: 16px;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(79,110,247,0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}
.buttonlk:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(79,110,247,0.35);
}
.modal-message {
  margin-bottom: 16px;
  color: var(--text-primary);
  font-size: 16px;
}

/* ---- Popup (lightbox) ---- */
.mask {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}
.popup {
  background: var(--card-bg);
  width: 70%;
  max-width: 400px;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}
.close-btn {
  position: absolute;
  top: 8px; right: 8px;
  cursor: pointer;
  background: rgba(0,0,0,0.45);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  font-size: 20px;
  transition: background var(--transition), transform var(--transition);
  z-index: 10;
}
.close-btn:hover {
  background: rgba(0,0,0,0.65);
  transform: rotate(90deg);
}
.popup img {
  width: 100%;
  height: auto;
  display: block;
}
