/* 发视频得会员 - 小清新浅色 */
:root {
  --bg: #f5f7fa;
  --surface: #fff;
  --surface2: #f0f4f8;
  --text: #2d3748;
  --text-muted: #718096;
  --accent: #38b2ac;
  --accent-hover: #319795;
  --accent-light: #e6fffa;
  --success: #48bb78;
  --warning: #ecc94b;
  --danger: #f56565;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --nav-h: 56px;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom));
}

.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 首页：三个入口 */
.header {
  background: linear-gradient(160deg, #e6fffa 0%, #fff 60%);
  padding: 28px 20px 24px;
  text-align: center;
  border-radius: 0 0 28px 28px;
  box-shadow: var(--shadow);
}

.header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.subtitle { font-size: 0.9rem; color: var(--text-muted); }

.main { flex: 1; padding: 24px 18px 32px; }

.entry-list { display: flex; flex-direction: column; gap: 16px; }

.entry-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.15s, box-shadow 0.15s;
}

.entry-card:active { transform: scale(0.98); }

.entry-card .entry-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.entry-card .entry-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.entry-card.material .entry-title { color: #2c7a7b; }
.entry-card.create .entry-title { color: #276749; }
.entry-card.claim .entry-title { color: #2b6cb0; }

.back-bar {
  padding: 12px 0 16px;
  font-size: 0.9rem;
}

.back-bar a {
  color: var(--accent);
  text-decoration: none;
}

.back-bar a::before { content: "← "; }

/* 通用 section */
.section { margin-bottom: 24px; }

.section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.hint { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; }

/* 视频列表 */
.video-list { display: flex; flex-direction: column; gap: 12px; }

.video-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
}

.video-card .title { font-weight: 600; margin-bottom: 4px; color: var(--text); }

.video-card .desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }

.video-card .btn-download {
  display: inline-block;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.video-card .btn-download:hover, .video-card .btn-download:focus { background: var(--accent-hover); }

/* 素材列表（图片/视频分类下的每一项） */
.material-list { display: flex; flex-direction: column; gap: 14px; }

.material-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
}

.material-title { font-weight: 600; margin-bottom: 6px; color: var(--text); }

.material-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }

.material-row {
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.material-label { color: var(--text-muted); flex-shrink: 0; }

.material-ref { flex: 1; word-break: break-all; color: var(--text); }

.btn-copy-ref {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.btn-copy-ref:active { opacity: 0.8; }

.material-card .btn-download { margin-top: 10px; }

/* 跳转按钮 */
.cta-box { margin-top: 20px; }

.cta-box .btn {
  display: block;
  text-align: center;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cta-box .btn:active { opacity: 0.9; }

/* 表单 */
.form-section .form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
}

.field { margin-bottom: 18px; }

.field:last-of-type { margin-bottom: 22px; }

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.required { color: var(--danger); }

.field input, .field select {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: var(--surface2);
  color: var(--text);
  transition: border-color 0.2s;
}

.field input::placeholder { color: var(--text-muted); }

.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
}

.radio-group { display: flex; flex-direction: column; gap: 10px; }

.radio-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.radio-wrap input { width: auto; margin-top: 3px; accent-color: var(--accent); }

.radio-wrap input:checked + span { color: var(--text); }

.btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: opacity 0.2s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }

.btn:hover, .btn:focus { opacity: 0.95; }

.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.rule-list { padding-left: 20px; font-size: 0.9rem; color: var(--text-muted); }

.rule-list li { margin-bottom: 8px; }

.footer {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 1000;
  max-width: 90%;
  color: var(--text);
}

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

.toast.success { border-left: 4px solid var(--success); }

.toast.error { border-left: 4px solid var(--danger); }

/* 底部导航 */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--nav-h) + var(--safe-bottom));
  background: var(--surface);
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  padding-bottom: var(--safe-bottom);
  z-index: 100;
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.bottom-nav a.active { color: var(--accent); font-weight: 600; }

.bottom-nav a:hover, .bottom-nav a:focus { color: var(--accent); }

/* 我的参与列表 */
.my-list { display: flex; flex-direction: column; gap: 12px; }

.my-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
}

.my-card .my-time { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }

.my-card .my-status { font-weight: 600; margin-bottom: 6px; }

.my-card .my-status.pending { color: var(--warning); }

.my-card .my-status.approved { color: var(--success); }

.my-card .my-status.rejected { color: var(--danger); }

.my-card .my-code {
  margin-top: 8px;
  padding: 10px;
  background: var(--surface2);
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.9rem;
  word-break: break-all;
}

.my-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 0.95rem; }
