/* 下载狗领会员 - 小清新浅色 */
: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;
  --footer-contact-h: 48px;
}

* { 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) + var(--footer-contact-h));
}

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

/* 顶部标题区 */
.header {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 72%);
  padding: 20px 20px 22px;
  text-align: center;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.header-login-link {
  position: absolute;
  right: 12px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  z-index: 10;
  cursor: pointer;
}

.header-login-link:hover, .header-login-link:active { text-decoration: underline; }

.header-title-block {
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.02em;
  text-align: center;
}

.header-tagline-outer {
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  text-align: center;
  scrollbar-width: none;
}

.header-tagline-outer::-webkit-scrollbar {
  display: none;
}

.header-tagline {
  margin: 0;
  display: inline-block;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-align: center;
}

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

.main--home { padding: 20px 18px 36px; }

.home-lead {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 18px;
  line-height: 1.5;
}

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

.entry-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 16px 18px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}

.entry-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.06);
  white-space: nowrap;
}

.entry-card:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
  border-color: rgba(15, 23, 42, 0.1);
}
.entry-card:active { transform: scale(0.995); }

/* 素材页等：分类卡片仅标题+说明，纵向排列 */
.main:not(.main--home) .entry-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* 首页三种方式：方式与标题同一行；说明单独一行，与方式列左对齐 */
.main--home .entry-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 10px;
  align-items: center;
}

.main--home .entry-card .entry-num {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.main--home .entry-card .entry-title {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin-bottom: 0;
}

.main--home .entry-card .entry-desc {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
}

.entry-num {
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: none;
  border: none;
  line-height: 1.2;
}

/* 仅标题避让右上角徽章，描述可延伸到卡片右侧，便于单行展示 */
.entry-card:has(.entry-badge) .entry-title {
  padding-right: 5.5rem;
}

.entry-card .entry-title {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.entry-card .entry-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.main--home .entry-card .entry-desc {
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  line-height: 1.45;
}

.main--home .entry-card .entry-desc::-webkit-scrollbar {
  display: none;
}

/* 首页操作区 */
.home-actions {
  margin-top: 22px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.home-btn-row {
  display: flex;
  gap: 12px;
}

.home-btn {
  flex: 1;
  display: block;
  text-align: center;
  padding: 14px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

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

.home-btn-primary {
  background: #47b0aa;
  color: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.home-btn-primary:hover,
.home-btn-primary:focus {
  background: #3fa39e;
}

.home-btn-secondary {
  background: #f4fbfb;
  color: #2d7d78;
  border: 1.5px solid rgba(71, 176, 170, 0.35);
}

.home-btn-secondary:hover, .home-btn-secondary:focus {
  background: #eaf8f7;
  border-color: rgba(71, 176, 170, 0.45);
  color: #256f6a;
}

.home-activity-row { margin-top: 12px; }
.home-btn-activity,
.home-btn-activity-secondary {
  display: block;
  width: 100%;
  padding: 11px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #475569;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.home-btn-activity:hover,
.home-btn-activity-secondary:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.14);
  color: var(--text);
}
.home-btn-activity:active,
.home-btn-activity-secondary:active { opacity: 0.92; }
.home-activity-btns {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.home-btn-activity-secondary {
  flex: 1;
}

.activity-modal-mask {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.activity-modal-mask.show { display: flex; }
.activity-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
  position: relative;
}
.activity-modal img { max-width: 280px; width: 100%; height: auto; display: block; vertical-align: top; }
.activity-modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}
.activity-modal-close:active { opacity: 0.8; }

.requirements-modal-content { padding: 44px 24px 24px; min-width: 280px; }
.requirements-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; color: var(--text); }
.requirements-list { margin: 0; padding-left: 20px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.requirements-list li { margin-bottom: 10px; }

.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: 8px; }

.material-order-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--accent-light);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  border-left: 3px solid var(--accent);
}

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

.material-title { font-weight: 600; margin-bottom: 3px; font-size: 0.9rem; color: var(--text); }

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

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

.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: 4px 10px;
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

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

/* 图1/图2/图3 等操作区：横向排列、可换行，更紧凑 */
.material-actions-wrap {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.material-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.material-card .btn-download,
.material-card .btn-preview {
  display: inline-block;
  text-align: center;
  padding: 5px 10px;
  font-size: 0.78rem;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.material-card .btn-download { background: var(--accent); color: #fff; }
.material-card .btn-preview { background: var(--surface2); color: var(--text); border: 1px solid #e2e8f0; }
.material-card .btn-download:active, .material-card .btn-preview:active { opacity: 0.9; }
.material-card .btn-download.btn-downloading { opacity: 0.8; cursor: wait; pointer-events: none; }
.material-card .url-label { font-size: 0.78rem; color: var(--text-muted); }
.material-card .no-url { font-size: 0.8rem; color: var(--text-muted); }

/* 跳转按钮 */
.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); }
.optional { color: var(--text-muted); font-weight: normal; }

.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; }

.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover, .btn-ghost:focus { opacity: 0.9; background: var(--surface); }

.claim-confirm-mask {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.claim-confirm-mask.show { display: flex; }
.claim-confirm-dialog {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 100%;
  width: 320px;
}
.moments-submit-success-hint {
  font-size: 0.88rem;
  color: var(--success);
  font-weight: 600;
  margin: 0 0 10px;
  padding: 10px 12px;
  background: rgba(72, 187, 120, 0.1);
  border-radius: 10px;
  line-height: 1.45;
}
.claim-confirm-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 16px; color: var(--text); }
.claim-confirm-list {
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.claim-confirm-list li { margin-bottom: 8px; }
.claim-confirm-list .claim-confirm-highlight {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 0 10px -4px;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(56, 178, 172, 0.12);
  color: #176b68;
}
.claim-confirm-highlight strong { font-size: 0.94rem; font-weight: 700; }
.claim-confirm-highlight span { color: #467a78; font-size: 0.82rem; }
.claim-confirm-list.moments-confirm-list { padding-left: 20px; }
.claim-confirm-footer { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 20px; line-height: 1.5; }
.claim-confirm-list.moments-confirm-list li { margin-bottom: 10px; }
.claim-confirm-list .moments-wechat-highlight {
  font-weight: 600;
  color: var(--accent);
  background: rgba(56, 178, 172, 0.12);
  margin: 0 -10px 10px;
  padding: 10px 10px;
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}
.screenshot-upload { position: relative; }
.screenshot-upload input[type="file"] {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; font-size: 0;
}
.screenshot-preview {
  min-height: 140px; border: 2px dashed rgba(56,178,172,0.4);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  background: var(--surface2); overflow: hidden;
}
.screenshot-preview.has-img { padding: 0; }
.screenshot-preview.uploading { position: relative; }
.screenshot-preview.uploading::after {
  content: '上传中…';
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; color: var(--accent);
}
.screenshot-placeholder { color: var(--text-muted); font-size: 0.9rem; }
.screenshot-preview img {
  max-width: 100%; max-height: 200px; object-fit: contain; display: block;
}
.claim-confirm-btns {
  display: flex;
  gap: 12px;
}
.claim-confirm-btns .btn { flex: 1; width: auto; }

.claim-mylink-box {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 36px);
  max-width: 400px;
  padding: 20px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 1001;
}
.claim-mylink-title { font-size: 1rem; font-weight: 600; margin: 0 0 8px; color: var(--text); }
.claim-mylink-desc { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 14px; line-height: 1.45; }
.claim-mylink-row { display: flex; gap: 8px; align-items: center; }
.claim-mylink-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font-size: 0.8rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text);
}
.claim-mylink-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}
.btn-small { padding: 8px 14px; font-size: 0.85rem; }

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

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

.rule-list .rule-highlight {
  font-weight: 600;
  color: var(--accent);
}

/* 自己创作页 - 参考视频（最多两行，多则横向滑动） */
.reference-videos-wrap { margin-bottom: 24px; }
.reference-videos-wrap .reference-videos-title {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--text);
}
.reference-videos-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 0 -18px;
  padding: 0 18px 8px;
}
.reference-videos-list {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: max-content;
}
.ref-video-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 160px;
  flex-shrink: 0;
}
.ref-video-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.15s, box-shadow 0.15s;
}
.ref-video-card:active { transform: scale(0.98); }
.ref-video-cover {
  width: 100%;
  padding-top: 56.25%;
  background: var(--surface2) center/cover no-repeat;
}
.ref-video-card-no-cover .ref-video-cover {
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  height: 96px;
}
.ref-video-card-no-cover .ref-video-cover::before { content: "▶"; font-size: 1.8rem; color: var(--text-muted); }
.ref-video-title { font-size: 0.9rem; padding: 10px 8px 6px; text-align: center; line-height: 1.35; width: 100%; box-sizing: border-box; }
.ref-video-play { font-size: 0.75rem; color: var(--accent); padding-bottom: 8px; }

/* 自己创作页 - 上下紧凑 */
.main--create { padding: 16px 18px 24px; }
.main--create .back-bar { padding: 8px 0 10px; }
.main--create .reference-videos-wrap { margin-bottom: 14px; }
.main--create .reference-videos-wrap .reference-videos-title { margin-bottom: 8px; }
.main--create .section { margin-bottom: 14px; }
.main--create .section h2 { margin-bottom: 8px; }
.main--create .rule-list li { margin-bottom: 6px; }
.main--create .cta-box { margin-top: 12px; }

.footer {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  bottom: calc(var(--nav-h) + var(--safe-bottom));
  text-align: center;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface);
  border-top: 1px solid #e2e8f0;
  z-index: 998;
}
.footer-contact {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.footer-contact:hover, .footer-contact:focus { color: var(--accent); }
.footer-contact:active { opacity: 0.8; }

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateY(20px);
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 0.9rem;
  background: var(--surface);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
  z-index: 2000;
  max-width: 88%;
  color: var(--text);
}

.toast.show { transform: translate(-50%, -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: 1rem;
  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-hints {
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  border-left: 4px solid var(--accent);
}
.my-review-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 10px 0;
  line-height: 1.5;
}
.my-review-hint { margin: 0; }
.my-review-hint-link {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}
.my-review-hint-link:hover, .my-review-hint-link:focus { color: var(--accent-hover); }

.my-list { display: flex; flex-direction: column; gap: 14px; }

.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-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.my-card .my-time { font-size: 0.85rem; color: var(--text-muted); }
.my-card .my-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--surface2);
  padding: 4px 10px;
  border-radius: 20px;
}

.my-status-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.my-status-tag.pending { background: #fef3c7; color: #b45309; }
.my-status-tag.approved { background: #d1fae5; color: #047857; }
.my-status-tag.rejected { background: #fee2e2; color: #b91c1c; }

.my-card .my-moments-wechat-hint {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}
.my-card .my-moments-wechat-hint:hover { text-decoration: underline; }

.my-card .my-reject {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #fef2f2;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--danger);
  word-break: break-word;
  border-left: 3px solid var(--danger);
}

.my-code-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.my-code-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.my-card .my-code-value {
  padding: 10px 12px;
  background: var(--surface2);
  border-radius: 8px;
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
  word-break: break-all;
  margin-bottom: 10px;
}
.my-code-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.my-card .btn-copy-code {
  flex: 1;
  padding: 10px 16px;
  font-size: 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
}
.my-card .btn-copy-code:active { opacity: 0.8; }

.my-card .btn-claim-vip {
  flex: 1;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
}
.my-card .btn-claim-vip:active { opacity: 0.9; }

.my-empty {
  text-align: center;
  padding: 48px 24px;
}
.my-empty-text {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 8px;
}
.my-empty-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.my-empty-btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
}
.my-empty-btn:active { opacity: 0.9; }

.my-access-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface2);
  color: var(--text-muted);
  font-size: 0.8rem;
}
.my-access-bar button {
  flex: 0 0 auto;
  border: 0;
  padding: 7px 9px;
  border-radius: 7px;
  background: var(--surface);
  color: var(--accent);
  font: inherit;
  cursor: pointer;
}

/* 首页：下载狗创作激励计划 */
.home-page {
  --ink: #121b35;
  --ink-soft: #516078;
  --blue: #3158ed;
  --blue-deep: #1739b7;
  --paper: #f6f7fb;
  background: var(--paper);
  color: var(--ink);
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 28px);
}

.home-page .page { max-width: 560px; overflow: hidden; }

.campaign-hero {
  position: relative;
  overflow: hidden;
  padding: 18px 20px 0;
  color: #fff;
  background: #101936;
}

.campaign-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -130px;
  top: 38px;
  border-radius: 50%;
  background: #3158ed;
  opacity: .72;
  filter: blur(2px);
}

.campaign-brand,
.campaign-hero-copy,
.campaign-pass,
.campaign-rewards { position: relative; z-index: 1; }

.campaign-brand {
  display: flex;
  align-items: center;
  font-size: .8rem;
  font-weight: 760;
  letter-spacing: .02em;
}

.campaign-mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: #f0ff61;
  color: #101936;
  font-family: Arial, sans-serif;
  font-size: .92rem;
  font-weight: 900;
}

.campaign-brand em {
  margin-left: auto;
  color: #c2ccf8;
  font-size: .72rem;
  font-style: normal;
  font-weight: 600;
}

.material-publish-hint {
  margin: 0 0 18px;
  overflow-x: auto;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: .83rem;
  line-height: 1.45;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.material-publish-hint::-webkit-scrollbar { display: none; }

.campaign-hero-copy { padding: 36px 0 24px; max-width: 340px; }
.campaign-kicker { color: #f0ff61; font-size: .79rem; font-weight: 750; letter-spacing: .08em; }
.campaign-hero h1 {
  margin: 9px 0 12px;
  color: #fff;
  font-size: clamp(2.3rem, 10vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 850;
  text-wrap: balance;
}
.campaign-hero h1 span { color: #b9c8ff; }
.campaign-summary { max-width: 270px; color: #c2ccf8; font-size: .9rem; line-height: 1.7; }

.campaign-pass {
  padding: 15px 16px 12px;
  border-radius: 14px 14px 0 0;
  background: #24386f;
}
.campaign-pass-top, .campaign-pass-bottom { display: flex; justify-content: space-between; align-items: center; }
.campaign-pass-top { color: #c9d3fc; font-size: .64rem; font-weight: 800; letter-spacing: .08em; }
.campaign-pass-top strong { color: #f0ff61; font-size: .65rem; letter-spacing: .02em; }
.campaign-pass-main { display: flex; align-items: center; gap: 10px; padding: 20px 0 17px; }
.campaign-pass-orb { width: 31px; height: 31px; flex: 0 0 31px; border-radius: 50%; background: #f0ff61; box-shadow: 0 0 0 7px rgba(240, 255, 97, .13); }
.campaign-pass-main div { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.campaign-pass-main b { color: #fff; font-size: 1rem; letter-spacing: -.015em; }
.campaign-pass-main small { color: #b9c7f4; font-size: .72rem; }
.campaign-pass-arrow { color: #f0ff61; font-size: 1.25rem; }
.campaign-pass-bottom { padding-top: 10px; border-top: 1px solid rgba(199, 212, 255, .22); color: #aebde9; font-size: .65rem; letter-spacing: .04em; }

.campaign-rewards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 -20px;
  padding: 15px 20px 17px;
  background: #17234b;
}
.campaign-rewards div { display: flex; flex-direction: column; gap: 2px; padding-left: 13px; border-left: 1px solid rgba(194, 204, 248, .26); }
.campaign-rewards div:first-child { padding-left: 0; border-left: 0; }
.campaign-rewards strong { color: #fff; font-size: 1.02rem; letter-spacing: -.02em; }
.campaign-rewards span { color: #aebbe8; font-size: .7rem; }

.home-page .main--home { padding: 27px 18px 22px; }
.campaign-section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 14px; }
.campaign-section-heading p { margin-bottom: 4px; color: #687793; font-size: .74rem; font-weight: 700; }
.campaign-section-heading h2 { color: var(--ink); font-size: 1.34rem; letter-spacing: -.025em; text-wrap: balance; }
.campaign-section-heading > span { margin-bottom: 2px; color: #6b7891; font-size: .75rem; }

.home-page .entry-list { gap: 10px; }
.home-page .main--home .entry-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 112px;
  padding: 15px 14px;
  border: 0;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 8px rgba(26, 41, 80, .07);
  color: var(--ink);
}
.home-page .entry-card:hover { transform: translateY(-2px); box-shadow: 0 7px 12px rgba(26, 41, 80, .1); }
.home-page .entry-card:active { transform: scale(.987); }
.home-page .entry-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #1739b7;
  background: #dfe7ff;
  font-size: 1rem;
  font-weight: 800;
}
.home-page .entry-card.material .entry-icon { color: #a14117; background: #ffdfcc; }
.home-page .entry-card.moments .entry-icon { color: #167058; background: #d2f3e7; }
.home-page .entry-content { flex: 1; min-width: 0; padding-right: 1px; }
.home-page .main--home .entry-card .entry-num {
  display: block;
  margin-bottom: 5px;
  color: #71809a;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .045em;
}
.home-page .entry-card .entry-title { margin: 0 0 4px; padding: 0; color: var(--ink); font-size: .98rem; font-weight: 780; letter-spacing: -.015em; }
.home-page .main--home .entry-card .entry-desc { white-space: normal; overflow: visible; margin: 0; color: #63718a; font-size: .76rem; line-height: 1.5; }
.home-page .entry-badge {
  position: static;
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  color: #2443b9;
  background: #edf1ff;
  font-size: .61rem;
  font-weight: 750;
}
.home-page .entry-card.material .entry-badge { color: #9e3b15; background: #fff0e7; }
.home-page .entry-card.moments .entry-badge { color: #12634d; background: #e5f8f0; }
.home-page .entry-arrow { position: absolute; right: 14px; bottom: 12px; color: #8290a9; font-size: .95rem; }

.home-page .home-actions { margin-top: 24px; padding-top: 0; border-top: 0; }
.home-page .home-btn-row { display: flex; flex-direction: column; gap: 10px; }
.home-page .home-btn { padding: 15px 16px; border-radius: 12px; font-size: .92rem; }
.home-page .home-btn-primary { background: var(--blue); box-shadow: 0 6px 10px rgba(49, 88, 237, .23); }
.home-page .home-btn-primary:hover, .home-page .home-btn-primary:focus { background: var(--blue-deep); }
.home-page .home-btn-primary span { margin-left: 7px; font-size: 1.05rem; }
.home-page .home-btn-secondary { border: 0; background: #e9edf6; color: #33415d; }
.home-page .home-btn-secondary:hover, .home-page .home-btn-secondary:focus { background: #dfe5f1; color: #202c45; }
.home-page .home-activity-row { margin-top: 14px; }
.home-page .home-btn-activity { display: flex; align-items: center; justify-content: space-between; padding: 12px 13px; border: 0; border-radius: 10px; background: transparent; color: #3f4f6c; font-size: .79rem; text-align: left; }
.home-page .home-btn-activity span { color: #78859d; font-size: .71rem; }
.home-page .home-btn-activity-secondary { border: 0; border-radius: 8px; background: transparent; color: #71809a; font-size: .77rem; }
.home-page .home-btn-activity:hover, .home-page .home-btn-activity-secondary:hover { background: #edf0f6; color: #34425e; }
.home-page .footer { margin-top: 0; }
.home-page .bottom-nav { border-top: 1px solid #e2e6f0; background: rgba(255,255,255,.96); }
.home-page .bottom-nav a.active { color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 360px) {
  .campaign-hero { padding-left: 16px; padding-right: 16px; }
  .campaign-rewards { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .home-page .main--home { padding-left: 14px; padding-right: 14px; }
  .home-page .entry-card .entry-desc { font-size: .72rem; }
  .home-page .entry-badge { display: none; }
}

/* 首页信息收敛：首屏只保留标题与参与路径 */
.home-page { padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px); }
.home-page .footer { display: none; }
.campaign-hero { padding: 17px 20px 21px; }
.campaign-hero::after { display: none; }
.campaign-hero-copy { max-width: none; padding: 28px 0 0; }
.campaign-kicker { display: none; }
.campaign-hero h1 { margin: 0 0 6px; font-size: clamp(2rem, 8vw, 2.55rem); line-height: 1.12; letter-spacing: -.03em; }
.campaign-hero h1 span { color: inherit; }
.campaign-summary { max-width: none; color: #b9c7f4; font-size: .84rem; line-height: 1.5; }
.campaign-pass, .campaign-rewards { display: none; }
.home-page .main--home { padding-top: 22px; }
.campaign-section-heading { margin-bottom: 12px; align-items: center; }
.campaign-section-heading p { display: none; }
.campaign-section-heading h2 { font-size: 1.14rem; }
.home-page .main--home .entry-card { min-height: 82px; padding: 12px 14px; border-radius: 13px; }
.home-page .entry-icon { flex-basis: 38px; width: 38px; height: 38px; border-radius: 10px; font-size: .9rem; }
.home-page .entry-icon svg { width: 21px; height: 21px; }
.home-page .main--home .entry-card .entry-num { display: none; }
.home-page .entry-card .entry-title { margin-bottom: 2px; font-size: .94rem; }
.home-page .main--home .entry-card .entry-desc { font-size: .73rem; line-height: 1.35; }
.home-page .entry-arrow { right: 14px; bottom: 10px; }
.home-page .home-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
  margin-top: 16px;
}
.home-page .home-quick-btn {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.home-page .home-quick-btn-secondary {
  border: 1px solid #d8deeb;
  background: #fff;
  color: #41516e;
}
.home-page .home-quick-btn-primary {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 5px 9px rgba(49, 88, 237, .2);
}
.home-page .home-quick-btn:active { transform: scale(.98); }
.home-page .home-actions { margin-top: 16px; }
.home-page .home-btn { padding: 13px 15px; }
.home-page .home-activity-row { margin-top: 8px; }
.home-page .home-btn-activity { padding: 9px 4px; }
