/* ==========================================================================
   热门软件资源站 · 前台样式
   绿色首页 + 粉色任务页 · 移动优先 480px 窄列
   ========================================================================== */

:root {
  --primary: #2f9e6b;
  --primary-dark: #237c53;
  --accent: #7dcaa4;
  --deep: #0f2418;
  --green: #2fbf71;
  --bg: #f3faf6;
  --card: #ffffff;
  --text: #163226;
  --muted: #6a8f7a;
  --line: #d5eadc;
  --soft: #e8f6ee;
  --pink: #d4788f;
  --pink-light: #e88ca5;
  --pink-accent: #f0a0b8;
  --pink-soft: #fff7f8;
  --pink-line: #f0d3dd;
  --gold: #e8a90c;
  --danger: #c22633;
}

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

[hidden] {
  display: none !important;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(560px 300px at 8% -8%, rgba(125, 202, 164, 0.28), transparent 70%),
    radial-gradient(460px 260px at 102% 4%, rgba(240, 160, 184, 0.14), transparent 72%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--primary);
  text-decoration: none;
}

img {
  max-width: 100%;
}

button,
input,
textarea {
  font-family: inherit;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 14px 6px;
}

/* ---------- 公告与规则（页脚） ---------- */
.announce-bar {
  min-height: 38px;
  background: linear-gradient(135deg, #143627, var(--deep) 70%);
  border: 1px solid rgba(125, 202, 164, 0.18);
  color: #ddf7e9;
  border-radius: 999px;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 8px 22px rgba(15, 36, 24, 0.26);
  overflow: hidden;
}

.announce-track {
  width: 100%;
}

.announce-item {
  display: none;
}

.announce-item.active {
  display: block;
  animation: announce-in 0.55s ease both;
}

@keyframes announce-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 最近领取气泡 ---------- */
.claim-bubble {
  position: fixed;
  z-index: 70;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: min(452px, calc(100% - 28px));
  padding: 9px 16px;
  border: 1px solid rgba(125, 202, 164, 0.22);
  border-radius: 999px;
  background: rgba(15, 36, 24, 0.95);
  color: #eaf9f1;
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(6, 22, 13, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -18px);
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.claim-bubble::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #54d98c;
  box-shadow: 0 0 0 3px rgba(84, 217, 140, 0.15);
  animation: claim-pulse 2.2s ease-in-out infinite;
}

.claim-bubble.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.claim-bubble-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.claim-bubble b {
  color: #9fe3bd;
  font-weight: 800;
}

.claim-bubble-time {
  color: rgba(234, 249, 241, 0.62);
}

@keyframes claim-pulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(84, 217, 140, 0.15);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(84, 217, 140, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .claim-bubble {
    transition: none;
  }

  .claim-bubble::before {
    animation: none;
  }
}

/* ---------- 微信内浏览器打开引导 ---------- */
.wx-guide {
  position: fixed;
  z-index: 115;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: calc(44px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 12px 0;
  background: linear-gradient(135deg, rgba(20, 54, 39, 0.98), rgba(15, 36, 24, 0.98));
  border-bottom: 1px solid rgba(125, 202, 164, 0.2);
  color: #eaf9f1;
  box-shadow: 0 8px 22px rgba(6, 22, 13, 0.24);
}

.wx-guide-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}

.wx-guide-copy {
  flex: none;
  padding: 5px 10px;
  border: 1px solid rgba(125, 202, 164, 0.34);
  border-radius: 999px;
  background: rgba(125, 202, 164, 0.16);
  color: #d7f6e5;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.wx-guide-copy:active {
  transform: translateY(1px);
}

.wx-guide-close {
  flex: none;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(234, 249, 241, 0.64);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.wx-guide-copy:focus-visible,
.wx-guide-close:focus-visible {
  outline: 2px solid rgba(159, 227, 189, 0.6);
  outline-offset: 2px;
}

.wx-guide-spacer {
  height: calc(44px + env(safe-area-inset-top, 0px));
}

body.wx-guide-open .claim-bubble {
  top: calc(56px + env(safe-area-inset-top, 0px));
}

/* ---------- 首次访问公告 ---------- */
.notice-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.notice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 16, 0.56);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.notice-card {
  position: relative;
  width: min(356px, 100%);
  max-height: min(78vh, 620px);
  overflow-y: auto;
  padding: 24px 22px 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 26px 64px rgba(6, 22, 13, 0.38);
  animation: notice-in 0.28s ease both;
}

.notice-title {
  margin-bottom: 15px;
  color: var(--pink);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 1px;
  text-align: center;
}

.notice-body p {
  color: #3c4a42;
  font-size: 12.5px;
  line-height: 1.85;
}

.notice-body p + p {
  margin-top: 12px;
}

.notice-btn {
  width: 100%;
  margin-top: 20px;
  padding: 13px 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef90a9, #df6f8e);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  box-shadow: 0 8px 18px rgba(212, 120, 143, 0.28);
  cursor: pointer;
}

.notice-btn:active {
  transform: translateY(1px);
}

.notice-btn:focus-visible {
  outline: 2px solid rgba(212, 120, 143, 0.5);
  outline-offset: 3px;
}

body.notice-open {
  overflow: hidden;
}

@keyframes notice-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notice-card {
    animation: none;
  }
}

@media (max-width: 360px) {
  .notice-modal {
    padding: 16px;
  }

  .notice-card {
    padding: 20px 16px 16px;
    border-radius: 20px;
  }

  .notice-title {
    font-size: 19px;
  }

  .notice-body p {
    font-size: 12.5px;
    line-height: 1.8;
  }

  .notice-btn {
    padding: 12px;
    font-size: 14px;
  }
}

/* ---------- 平台规则与免责声明 ---------- */
.policy-notice {
  width: calc(100% - 28px);
  max-width: 452px;
  margin: 10px auto 0;
  padding: 11px 14px;
  background: #fffdf4;
  border: 1px solid #f0dfae;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(90, 66, 20, 0.07);
}

.policy-notice-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 4px;
}

.policy-notice-title {
  color: #8a5b12;
  font-size: 13px;
  font-weight: 800;
}

.policy-notice-tag {
  padding: 1px 8px;
  border-radius: 999px;
  background: #f8e9bf;
  color: #8a5b12;
  font-size: 11px;
  font-weight: 700;
}

.policy-notice p {
  color: #7a6337;
  font-size: 12px;
  line-height: 1.65;
}

.policy-notice a {
  color: #8a5b12;
  font-weight: 800;
  text-decoration: underline;
  word-break: break-all;
}

/* ---------- 页脚规则区 ---------- */
.foot-legal {
  max-width: 480px;
  margin: 26px auto 0;
  padding: 16px 14px 0;
  border-top: 1px dashed rgba(47, 158, 107, 0.18);
}

.foot-announce {
  min-height: 54px;
  padding: 9px 16px;
  font-size: 12px;
  box-shadow: 0 8px 20px rgba(15, 36, 24, 0.2);
}

.policy-notice.foot-policy {
  width: 100%;
  max-width: none;
  margin: 8px 0 0;
}

body.detail-page .foot-legal {
  border-top-color: rgba(212, 120, 143, 0.2);
}

/* ---------- 顶部返回 ---------- */
.page-topbar {
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 14px 0;
}

.has-claims .page-topbar {
  padding-top: 60px;
}

.page-back {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 17px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  box-shadow: 0 6px 16px rgba(24, 72, 48, 0.1);
}

body.detail-page .page-back {
  border-color: #ebc4d3;
  color: var(--pink);
  box-shadow: 0 6px 16px rgba(114, 40, 70, 0.12);
}

/* ---------- 页脚 ---------- */
.site-foot {
  max-width: 480px;
  margin: 0 auto 96px;
  padding: 14px 14px 0;
  text-align: center;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.2px;
}

body.detail-page .site-foot {
  color: #8a6575;
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  margin-top: 12px;
  padding: 22px 18px;
  border: 1px solid rgba(125, 202, 164, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(170px 170px at 88% 4%, rgba(125, 202, 164, 0.28), transparent 68%),
    radial-gradient(150px 150px at 6% 112%, rgba(240, 160, 184, 0.18), transparent 72%),
    linear-gradient(135deg, #0c2417, #123c28 58%, #1a5b3c);
  box-shadow: 0 18px 36px rgba(14, 48, 31, 0.24);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  top: -48px;
  right: -36px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-main {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid rgba(191, 240, 212, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #c9f7dd;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.hero-label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6fe3a2;
  box-shadow: 0 0 0 3px rgba(111, 227, 162, 0.16);
}

.hero-main h1 {
  margin: 11px 0 5px;
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.5px;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.hero-main p {
  color: rgba(230, 255, 242, 0.66);
  font-size: 12.5px;
  line-height: 1.6;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe4eb, #f3a8bd);
  color: #4a2130;
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn span {
  font-size: 15px;
  line-height: 1;
}

.hero-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 22px rgba(0, 0, 0, 0.26);
}

.hero-art {
  position: relative;
  z-index: 1;
  flex: none;
  width: 126px;
  height: 156px;
}

.hero-art-glow {
  position: absolute;
  top: 22px;
  left: 10px;
  width: 108px;
  height: 108px;
  border: 1px dashed rgba(191, 240, 212, 0.24);
  border-radius: 50%;
  background: rgba(125, 202, 164, 0.08);
}

.hero-art-chip {
  position: absolute;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 3px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  font-size: 24px;
  line-height: 1;
  overflow: hidden;
}

.hero-art-chip img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.hero-art-chip-1 {
  left: 0;
  bottom: 18px;
  transform: rotate(-8deg);
}

.hero-art-chip-2 {
  top: 8px;
  right: 2px;
  width: 62px;
  height: 62px;
  transform: rotate(6deg);
}

.hero-art-chip-3 {
  left: 46px;
  bottom: 0;
  width: 58px;
  height: 58px;
  transform: rotate(-2deg);
}

/* ---------- 搜索 ---------- */
.search-box {
  margin-top: 22px;
}

.search-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 5px 5px 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(23, 70, 47, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 158, 107, 0.1), 0 8px 22px rgba(23, 70, 47, 0.08);
}

.search-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.search-input-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 11px 0;
  font-size: 14px;
}

.search-input-wrap input::placeholder {
  color: #9bb3a5;
}

.search-clear {
  flex: none;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: #f1f8f4;
  color: var(--primary);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-form > button {
  flex: none;
  border: 0;
  background: linear-gradient(135deg, var(--green), var(--primary));
  color: #fff;
  border-radius: 999px;
  padding: 11px 19px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 5px 12px rgba(47, 158, 107, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.search-form > button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(47, 158, 107, 0.3);
}

/* ---------- 分类 ---------- */
.cat-row {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 18px 2px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cat-row::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  flex: none;
  white-space: nowrap;
  border: 1px solid #dcefe4;
  background: #fff;
  color: #4d705d;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(23, 70, 47, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cat-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--green));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px rgba(47, 158, 107, 0.28);
}

/* ---------- 资源列表 ---------- */
.list-title {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-left: 12px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin: 16px 0 12px;
}

.list-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.list-title small {
  color: #87a394;
  font-size: 12px;
  font-weight: 400;
}

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

.card {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--card);
  border: 1px solid rgba(47, 158, 107, 0.09);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 6px 20px rgba(23, 70, 47, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(23, 70, 47, 0.11);
}

.card:active {
  transform: scale(0.995);
}

.card-icon {
  width: 60px;
  height: 60px;
  flex: none;
  background: linear-gradient(145deg, #f0fbf5, #e1f4ea);
  border-radius: 17px;
  box-shadow: inset 0 0 0 1px rgba(47, 158, 107, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-icon-emoji {
  font-size: 34px;
  line-height: 1;
}

.card-icon-img {
  width: 100%;
  height: 100%;
  border-radius: 17px;
  object-fit: cover;
}

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

.card-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-tags {
  margin-top: 2px;
}

.tag {
  display: inline-block;
  background: #eff9f3;
  border: 1px solid rgba(47, 158, 107, 0.08);
  color: #3f7d5e;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin: 4px 4px 0 0;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.card-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #e0a400;
  letter-spacing: 0.2px;
}

.card-rating b {
  color: #b98900;
  font-size: 11.5px;
  font-weight: 800;
}

.card-sep {
  color: #c3d4ca;
}

.card-size {
  color: #8ba496;
  font-weight: 600;
}

.btn-get {
  flex: none;
  background: linear-gradient(135deg, var(--green), var(--primary));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(47, 191, 113, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-get:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 18px rgba(47, 191, 113, 0.34);
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 18px;
  font-size: 13px;
}

/* ---------- 通用按钮 ---------- */
.btn-main {
  display: inline-block;
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  margin: 6px 6px 6px 0;
  box-shadow: 0 4px 12px rgba(47, 158, 107, 0.32);
}

.btn-main[disabled] {
  background: #c6ddcf;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-gradient {
  display: block;
  width: 100%;
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--pink-light), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.4;
  padding: 15px 20px;
  border-radius: 999px;
  text-align: center;
  cursor: pointer;
  margin: 10px 0 4px;
  box-shadow: 0 8px 20px rgba(47, 158, 107, 0.3);
}

.btn-gradient[disabled] {
  background: #e8ccd4;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-ghost {
  display: inline-block;
  background: #fff;
  border: 1.5px solid var(--accent);
  color: var(--primary);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin: 6px 6px 6px 0;
  text-align: center;
}

.btn-ghost.btn-center {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 10px auto 0;
}

/* ---------- 任务详情 ---------- */
body.detail-page {
  background:
    radial-gradient(circle at 12% 6%, #f6c9dc 0, rgba(246, 201, 220, 0) 44%),
    radial-gradient(circle at 92% 32%, #f1c3d6 0, rgba(241, 195, 214, 0) 42%),
    linear-gradient(180deg, #f2d7e3 0%, #fae8f0 46%, #fdf3f6 100%);
  background-attachment: fixed;
}

.detail {
  background: var(--card);
  border-radius: 20px;
  padding: 18px 16px 20px;
  margin-top: 10px;
  box-shadow: 0 4px 18px rgba(47, 158, 107, 0.14);
}

body.detail-page .detail {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-top: 4px;
  box-shadow: none;
}

.detail-summary {
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(135deg, var(--primary), #f4b8cc, var(--accent), var(--primary)) border-box;
  border: 3px solid transparent;
  border-radius: 22px;
  padding: 18px 16px;
  box-shadow: 0 16px 36px rgba(114, 40, 70, 0.17), 0 4px 10px rgba(31, 13, 26, 0.05);
}

.detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-icon {
  width: 66px;
  height: 66px;
  flex: none;
  background: var(--soft);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-icon-emoji {
  font-size: 38px;
  line-height: 1;
}

.detail-icon-img {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  object-fit: cover;
}

.detail h1 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.35;
}

.detail-desc {
  color: #5c4350;
  font-size: 14px;
  line-height: 1.7;
  margin: 12px 0 2px;
}

.detail-sub {
  color: #8a6575;
  font-size: 13px;
  line-height: 1.6;
  margin: 6px 0 12px;
}

/* 三步说明 */
.notice-box {
  background:
    linear-gradient(var(--pink-soft), var(--pink-soft)) padding-box,
    linear-gradient(135deg, #e5484d, var(--pink-accent), #e5484d) border-box;
  border: 3px solid transparent;
  border-radius: 20px;
  padding: 16px;
  margin: 20px 0 0;
  text-align: center;
  box-shadow: 0 14px 32px rgba(114, 40, 70, 0.14), 0 4px 10px rgba(229, 72, 77, 0.1);
}

.notice-title {
  color: var(--danger);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
}

.notice-box p {
  color: #7a4a58;
  font-size: 12.5px;
  line-height: 1.7;
  margin-top: 5px;
}

.step {
  position: relative;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--primary), #f4b8cc, var(--accent), #e98da9, var(--primary)) border-box;
  border: 3px solid transparent;
  border-radius: 24px;
  padding: 23px 16px 20px;
  margin-top: 28px;
  box-shadow: 0 20px 42px rgba(114, 40, 70, 0.21), 0 5px 12px rgba(31, 13, 26, 0.06);
}

.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.step-no {
  flex: none;
  display: inline-block;
  color: var(--pink);
  background: var(--pink-soft);
  border: 1px solid #f4cdd9;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.step-head h2,
.step h2 {
  flex: 1;
  min-width: 0;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.45;
  text-wrap: balance;
}

.step p {
  color: #5c4350;
  font-size: 14px;
  line-height: 1.75;
}

.step-textbox {
  background: var(--pink-soft);
  border: 1.5px solid var(--pink-line);
  border-radius: 14px;
  padding: 10px 12px;
  margin-top: 10px;
}

.step.step-center > p {
  text-align: center;
}

.step-hint {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  text-align: center;
  margin-top: 10px;
}

.step p.step-flow {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--pink-soft);
  border: 1.5px solid var(--pink-line);
  border-radius: 14px;
  color: #5c4350;
  font-size: 13px;
  line-height: 1.75;
  text-align: center;
}

.step p.step-flow .step-flow-warn {
  color: var(--danger);
  font-weight: 700;
}

.platform-jump-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.platform-jump-hint span {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e8f6ed;
  color: var(--green-dark, #176e44);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.platform-row {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin: 10px 0 2px;
}

.platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.platform-btn:active {
  transform: scale(0.95);
}

.platform-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.platform-icon {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
}

/* 文案复制 */
.copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  margin-top: 14px;
}

.copy-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.copy-grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: stretch;
  gap: 10px;
}

.copy-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  background: #fffafc;
  border: 1.5px solid var(--pink-line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 5px 14px rgba(114, 40, 70, 0.07);
}

.copy-field-head {
  color: #8a6575;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.comment-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.comment-shuffle {
  flex: none;
  margin: 0;
  padding: 2px 7px;
  border: 1px solid #edd0da;
  border-radius: 999px;
  background: #fff;
  color: #b8566f;
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
}

.comment-shuffle:active {
  transform: scale(0.96);
}

.share-text {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid #e9dde1;
  border-radius: 14px;
  background: #f7f5f6;
  color: #4a3540;
  font-family: ui-monospace, SFMono-Regular, Menlo, "PingFang SC", monospace;
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
}

.copy-grid .share-text {
  width: 100%;
  min-height: 34px;
  height: auto;
  padding: 8px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.5;
  resize: none;
  overflow: hidden;
  word-break: break-word;
  flex: 0 0 auto;
}

.copy-pill {
  display: block;
  margin: 14px auto 0;
  background: #fff;
  border: 1.5px solid var(--pink-accent);
  color: var(--pink);
  border-radius: 999px;
  padding: 9px 26px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.copy-grid .copy-pill {
  width: 100%;
  margin: auto 0 0;
  padding: 7px 2px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.comment-actions .copy-pill {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 8px 4px;
}

.comment-actions .comment-image-open {
  background: linear-gradient(135deg, #fff8fb, #ffedf3);
  border-color: #e6a6b9;
  color: #b8566f;
}

.copy-card .copy-card-hint {
  margin-top: 0;
  color: #a27988;
  font-size: 10.5px;
  line-height: 1.5;
}

.comment-card {
  gap: 7px;
}

.comment-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--pink-line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 24% 16%, rgba(240, 160, 184, 0.28), transparent 58%),
    linear-gradient(155deg, #fdf2f6, #f6e5eb);
  cursor: zoom-in;
}

.comment-thumb:active {
  transform: scale(0.985);
}

.comment-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: #b98799;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.comment-thumb.is-ready .comment-thumb-placeholder {
  display: none;
}

.comment-card .comment-thumb-hint {
  margin-top: 0;
  color: #a27988;
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
}

.comment-card .comment-actions {
  margin-top: auto;
}

.comment-image-note {
  margin-top: 1px;
  color: #a27988;
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
}

.comment-image-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 7px;
  padding: 8px 12px;
  border: 1.5px solid #e6a6b9;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff8fb, #ffedf3);
  color: #b8566f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  cursor: pointer;
}

.comment-image-inline:active,
.comment-image-open:active {
  transform: scale(0.98);
}

/* 评论配图弹窗 */
.comment-image-modal {
  position: fixed;
  inset: 0;
  z-index: 78;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}

.comment-image-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 27, 18, 0.76);
}

.comment-image-card {
  position: relative;
  width: min(92vw, 414px);
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 18px 60px rgba(6, 22, 13, 0.45);
  animation: comment-image-in 0.24s ease both;
}

@keyframes comment-image-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.comment-image-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.comment-image-head h3 {
  font-size: 16px;
  color: var(--text);
}

.comment-image-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f1f7f3;
  color: #6a8f7a;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.comment-image-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  background: #10251b;
}

.comment-image-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 56vh;
  height: auto;
}

.comment-image-hint {
  margin: 10px 2px 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  text-align: center;
}

.comment-image-card .btn-gradient {
  margin: 0;
  padding: 12px 16px;
  font-size: 15px;
}

.example-fig {
  margin-top: 14px;
  text-align: center;
}

.example-fig img {
  width: min(100%, 300px);
  border: 1.5px solid var(--pink-line);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.example-fig figcaption {
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
}

/* ---------- 提交页 ---------- */
.submit-detail h1 {
  font-size: 24px;
  margin-bottom: 4px;
}

.submit-task-link {
  display: block;
  margin: 14px auto 0;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.submit-shot-tip {
  margin: 12px 0 0;
  padding: 9px 12px;
  border: 1px solid #d7ecdf;
  border-radius: 12px;
  background: #f2fbf6;
  color: #50705f;
  font-size: 12.5px;
  line-height: 1.7;
}

.submit-shot-tip b {
  color: var(--primary-dark);
}

.task-gate {
  margin-top: 14px;
  padding: 15px 14px;
  border: 1.5px solid #d7ecdf;
  border-radius: 18px;
  background: #fbfffc;
}

.task-gate-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.6;
}

.task-gate-head h2 {
  margin-top: 7px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.task-gate-steps {
  display: grid;
  gap: 13px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.task-gate-steps li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.task-gate-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.task-gate-body {
  flex: 1;
  min-width: 0;
}

.task-gate-body > b {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.task-gate-body > p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.task-copy-line {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 7px;
}

.task-copy-line .share-text {
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.65;
  resize: none;
  overflow: hidden;
}

.task-copy-line .copy-pill {
  flex: none;
  width: auto;
  margin: 0;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
}

.platform-row-compact {
  justify-content: flex-start;
  gap: 20px;
  margin: 11px 0 0;
}

.platform-row-compact .platform-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.platform-row-compact .platform-name {
  font-size: 11.5px;
}

.task-gate-link {
  display: block;
  margin-top: 13px;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}

.submit-form {
  margin-top: 14px;
}

.submit-form-head {
  margin-bottom: 12px;
}

.submit-form-head h2 {
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

.submit-form-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.rules-note {
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid #d7ecdf;
  border-radius: 14px;
  background: #f2fbf6;
  color: #50705f;
  font-size: 12.5px;
  line-height: 1.7;
}

.rules-note b {
  display: block;
  margin-bottom: 2px;
  color: var(--primary-dark);
  font-size: 13px;
}

.rules-note ul {
  margin: 0;
  padding-left: 18px;
}

.submit-ip-warning {
  margin: 12px 0 4px;
  padding: 10px 14px;
  border: 1px solid #f3d2d2;
  border-radius: 12px;
  background: #fff6f6;
  color: #a13c3c;
  font-size: 12.5px;
  line-height: 1.7;
  text-align: center;
}

.submit-ip-warning b {
  color: #b02a2a;
}

.upload-zone {
  display: block;
  background: #fffafc;
  border: 2.5px dashed var(--primary);
  border-radius: 18px;
  padding: 26px 12px;
  text-align: center;
  color: var(--primary-dark);
  font-size: 14px;
  line-height: 1.7;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(47, 158, 107, 0.06);
}

.upload-zone.is-dragover {
  background: var(--soft);
  border-color: var(--green);
}

.upload-icon {
  display: block;
  font-size: 34px;
  margin-bottom: 6px;
}

.upload-label {
  display: block;
}

.upload-file {
  display: block;
  max-width: 100%;
  margin: 12px auto 0;
  font-size: 13px;
  color: var(--muted);
}

.preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.preview-item {
  position: relative;
  width: 92px;
  height: 92px;
}

.preview-item img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border: 1.5px solid var(--pink-line);
  border-radius: 12px;
}

.preview-index {
  position: absolute;
  left: 5px;
  bottom: 5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(15, 36, 24, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 36, 24, 0.72);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-count {
  color: var(--primary-dark);
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  margin: 10px 0 2px;
}

.rules {
  list-style: none;
  background: var(--pink-soft);
  border: 1.5px solid #f5bcbc;
  border-radius: 14px;
  padding: 10px 14px;
  margin: 12px 0 4px;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.9;
}

.rules li::before {
  content: "·";
  margin-right: 5px;
  font-weight: 800;
}

.submit-form .btn-gradient[disabled] {
  background: #e8ccd4;
}

.privacy {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
}

.privacy-box {
  margin-top: 12px;
  padding: 11px 13px;
  background: #f2fbf6;
  border: 1px solid #d7ecdf;
  border-radius: 14px;
  color: #50705f;
  font-size: 12px;
  line-height: 1.7;
}

.privacy-box p + p {
  margin-top: 4px;
}

.privacy-box b {
  color: var(--primary-dark);
}

.form-error {
  background: #fdecec;
  border: 1.5px solid #f5bcbc;
  color: #b02a2a;
  border-radius: 14px;
  padding: 11px 14px;
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.6;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.auto-review {
  text-align: center;
  background: #fffafc;
  border: 1.5px solid var(--pink-line);
  border-radius: 16px;
  padding: 32px 16px 20px;
  margin: 12px 0;
}

.auto-review h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 8px 0 6px;
}

.auto-review p {
  color: #8a6575;
  font-size: 14px;
}

.spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border: 4px solid var(--pink-line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* 提交成功 */
.submit-success {
  text-align: center;
  padding: 6px 0 2px;
}

.success-mark {
  width: 64px;
  height: 64px;
  margin: 4px auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--primary));
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(47, 191, 113, 0.34);
}

.submit-success h2 {
  font-size: 20px;
  font-weight: 800;
}

.submit-success > p {
  color: #5c4350;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 6px;
}

.uuid-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: #f6fbf8;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  margin: 14px 0 8px;
  text-align: left;
  font-size: 13px;
}

.uuid-box > span {
  color: var(--muted);
  flex: none;
}

.uuid-box code {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  word-break: break-all;
}

.mini-copy {
  flex: none;
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--primary);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
}

.success-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
}

/* ---------- 状态查询 ---------- */
.status-page-card h1 {
  font-size: 22px;
}

.status-page-form {
  margin: 14px 0;
}

.status-query {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid #f3e2e9;
}

.status-page-form.status-query {
  padding: 0;
  border-bottom: 0;
}

.status-query input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #eccdd6;
  border-radius: 999px;
  font-size: 13px;
  outline: 0;
  color: var(--text);
}

.status-query input:focus {
  border-color: var(--pink-accent);
}

.status-query button {
  flex: none;
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.status-page-body {
  border-top: 1px solid #f3e2e9;
  padding-top: 4px;
}

.status-card {
  background: #fffafc;
  border: 1.5px solid var(--pink-line);
  border-left: 6px solid #d8b13a;
  border-radius: 14px;
  padding: 14px;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.85;
}

.status-card.st-approved {
  border-left-color: var(--green);
}

.status-card.st-rejected {
  border-left-color: #e5484d;
}

.status-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.status-card-head strong {
  min-width: 0;
}

.status-badge {
  flex: none;
  background: #fff3d6;
  color: #a97c0a;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
}

.status-card.st-approved .status-badge {
  background: var(--soft);
  color: var(--primary);
}

.status-card.st-rejected .status-badge {
  background: #fdecec;
  color: #b02a2a;
}

.status-card-meta {
  color: #8a6575;
  font-size: 12px;
  margin-top: 4px;
}

.status-card-note {
  color: var(--danger);
  font-size: 12.5px;
  margin-top: 4px;
}

.status-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.status-card-actions a {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
}

.status-card-actions a.secondary {
  background: #fff;
  border: 1.5px solid var(--pink);
  color: var(--pink);
}

.status-panel-body {
  background: #fdf7f9;
  padding: 10px 12px 14px;
  max-height: 52vh;
  overflow-y: auto;
}

.status-panel-body .status-card {
  margin: 8px 0;
}

/* ---------- 领取页 ---------- */
.claim-card {
  background: var(--card);
  border-radius: 20px;
  padding: 18px 16px 20px;
  margin-top: 10px;
  box-shadow: 0 4px 18px rgba(114, 40, 70, 0.14);
}

.claim-resource {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.claim-resource-icon {
  width: 52px;
  height: 52px;
  flex: none;
  background: var(--soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 30px;
}

.claim-resource-icon img {
  width: 52px;
  height: 52px;
  object-fit: cover;
}

.claim-resource > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mini-label {
  color: var(--muted);
  font-size: 11px;
}

.claim-resource strong {
  font-size: 16px;
  font-weight: 800;
}

.claim-size {
  color: var(--muted);
  font-size: 12px;
}

.claim-hero {
  text-align: center;
  padding: 18px 0 6px;
}

.claim-hero h1 {
  font-size: 22px;
  font-weight: 800;
  margin-top: 4px;
}

.claim-hero p {
  color: #5c4350;
  font-size: 13px;
  line-height: 1.7;
  margin-top: 6px;
}

.eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.claim-hero-pending .eyebrow {
  color: var(--muted);
}

.claim-status-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #fff3d6;
  color: #a97c0a;
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.claim-status-mark.approved {
  background: var(--soft);
  color: var(--primary);
}

.claim-status-mark.rejected {
  background: #fdecec;
  color: #b02a2a;
}

.claim-actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
}

.claim-actions .btn-gradient {
  margin-top: 0;
}

.claim-details {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.claim-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #edf6f1;
  font-size: 13px;
}

.claim-row > span {
  flex: none;
  color: var(--muted);
  min-width: 64px;
}

.claim-row strong,
.claim-row code {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  word-break: break-all;
}

.claim-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--primary);
}

.text-green {
  color: var(--primary) !important;
}

.claim-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 14px;
}

/* ---------- 错误页 ---------- */
.error-card {
  background: #fff;
  border-radius: 20px;
  margin-top: 10px;
  padding: 32px 18px 26px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(47, 158, 107, 0.14);
}

.error-code {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
  letter-spacing: -2px;
}

.error-card h1 {
  font-size: 19px;
  margin: 10px 0 6px;
}

.error-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.error-actions {
  margin-top: 18px;
}

/* ---------- 悬浮工具箱 ---------- */
body.modal-lock {
  overflow: hidden;
}

.tool-dock {
  position: fixed;
  right: 18px;
  bottom: 12px;
  width: 58px;
  height: 58px;
  z-index: 50;
}

.tool-fab {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b6a49, #0f3323);
  color: #fff;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 8px 22px rgba(15, 51, 35, 0.4);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}

.tool-dock.is-open .tool-fab {
  transform: scale(0.94) rotate(12deg);
  background: #0c2a1c;
}

.tool-close-icon {
  display: none;
}

.tool-dock.is-open .tool-fab > svg:first-child {
  display: none;
}

.tool-dock.is-open .tool-close-icon {
  display: block;
}

.tool-sat {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.35);
  z-index: 2;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.tool-sat-chat,
.tool-sat-status {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 18px rgba(47, 158, 107, 0.4);
}

.tool-dock.is-open .tool-sat {
  opacity: 1;
  pointer-events: auto;
}

.tool-dock.is-open .tool-sat-chat {
  transform: translate(-66px, -10px) scale(1);
}

.tool-dock.is-open .tool-sat-status {
  transform: translate(-16px, -70px) scale(1);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 36, 24, 0.42);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- 客服 / 状态弹窗 ---------- */
.chat-panel,
.status-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(92vw, 420px);
  max-height: 84vh;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.3);
  z-index: 60;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -42%) scale(0.86);
  transition: opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1), transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.chat-panel.is-open,
.status-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 13px 15px;
}

.chat-title {
  font-weight: 800;
}

.chat-sub {
  font-size: 11px;
  opacity: 0.88;
  margin-top: 2px;
}

.chat-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.chat-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 8px 12px;
  background: #f2fbf6;
  border-bottom: 1px solid #dcefe3;
  color: #5c7d6b;
  font-size: 11.5px;
}

.chat-contact a {
  color: var(--primary-dark);
  font-weight: 800;
  word-break: break-all;
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px;
  border-bottom: 1px solid #f3e2e9;
}

.chat-q {
  border: 1.5px solid var(--accent);
  background: #fff;
  color: var(--primary);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.chat-body {
  height: 300px;
  padding: 10px;
  overflow-y: auto;
  background: #fdf7f9;
}

.chat-msg {
  max-width: 85%;
  margin: 8px 0;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-msg.user {
  margin-left: auto;
  background: #dcebfd;
}

.chat-msg.bot {
  background: #fff;
  border: 1px solid var(--pink-line);
}

.chat-msg .auto-tag {
  display: block;
  color: #b58b9a;
  font-size: 10px;
  margin-bottom: 2px;
}

.chat-msg img {
  display: block;
  max-width: 160px;
  border-radius: 8px;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px;
  border-top: 1px solid #f3e2e9;
}

.chat-input input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #eccdd6;
  border-radius: 999px;
  font-size: 14px;
  outline: 0;
}

.chat-input button {
  border: 0;
  background: #3a7bd5;
  color: #fff;
  border-radius: 999px;
  padding: 10px 17px;
  font-weight: 700;
  cursor: pointer;
}

.chat-img-btn {
  flex: none;
  color: var(--primary);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.chat-note {
  color: #b58b9a;
  font-size: 11px;
  padding: 0 10px 9px;
}

.status-panel .status-query {
  padding: 10px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  z-index: 80;
  max-width: 86vw;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(15, 36, 24, 0.9);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.has-link {
  pointer-events: auto;
  border-radius: 16px;
}

.toast.has-link a {
  color: #bff0d4;
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- 入场动画 ---------- */
html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

html.has-js .card[data-reveal] {
  transition-delay: var(--delay, 0ms);
}

html.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 手机端任务文案 ---------- */
@media (max-width: 640px) {
  .task-copy-line {
    flex-direction: column;
  }

  .task-copy-line .share-text {
    flex: none;
    width: 100%;
  }

  .task-copy-line .copy-pill {
    padding: 8px 10px;
  }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 380px) {
  .hero {
    gap: 8px;
    padding: 18px 14px;
  }

  .hero-main h1 {
    font-size: 30px;
  }

  .hero-art {
    width: 108px;
    height: 140px;
  }

  .hero-art-glow {
    width: 92px;
    height: 92px;
  }

  .hero-art-chip {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .hero-art-chip-2 {
    width: 56px;
    height: 56px;
  }

  .hero-art-chip-3 {
    left: 40px;
    width: 52px;
    height: 52px;
  }

  .platform-row-compact {
    gap: 16px;
  }

  .btn-get {
    padding: 9px 15px;
  }

  .step {
    padding: 20px 12px 18px;
  }

  .step-head {
    gap: 8px;
  }

  .step-no {
    padding: 4px 9px;
    font-size: 12px;
  }

  .step-head h2 {
    font-size: 15px;
  }

  .copy-grid {
    gap: 6px;
  }

  .copy-grid.two {
    gap: 7px;
  }

  .copy-grid.two .copy-pill {
    font-size: 10.5px;
  }

  .copy-card .copy-card-hint,
  .comment-card .comment-thumb-hint {
    font-size: 9.5px;
  }

  .copy-card {
    padding: 6px;
  }

  .platform-row {
    gap: 18px;
  }

  .platform-icon {
    width: 58px;
    height: 58px;
  }

  .tool-dock {
    right: 14px;
    bottom: 20px;
  }
}

/* ---------- 超窄屏（320px） ---------- */
@media (max-width: 360px) {
  .card {
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }

  .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .card-icon-img {
    border-radius: 15px;
  }

  .card-name {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.3;
  }

  .tag {
    margin: 3px 3px 0 0;
    padding: 2px 6px;
    font-size: 10px;
  }

  .card-meta {
    font-size: 11px;
  }

  .btn-get {
    padding: 8px 13px;
    font-size: 13px;
  }

  .search-form {
    gap: 4px;
    padding-left: 12px;
  }

  .search-input-wrap input {
    font-size: 13px;
  }

  .search-form > button {
    padding: 10px 13px;
    font-size: 12.5px;
  }

  .claim-bubble {
    gap: 6px;
    padding: 8px 12px;
    font-size: 11.5px;
  }

  .claim-bubble-time {
    display: none;
  }

  .wx-guide {
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .wx-guide-text {
    font-size: 11px;
  }

  .wx-guide-copy {
    padding: 4px 8px;
    font-size: 11px;
  }

  .announce-item {
    font-size: 11.5px;
  }

  .step p.step-flow {
    padding: 9px 10px;
    font-size: 12px;
  }

  .copy-grid.two {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 6px;
  }

  .comment-card .comment-actions {
    flex-direction: column;
    gap: 5px;
  }

  .comment-card .comment-actions .copy-pill {
    padding: 6px 2px;
    font-size: 10.5px;
  }

  .comment-card .comment-thumb-hint {
    font-size: 9px;
  }
}

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html.has-js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .announce-item.active,
  .spinner,
  .comment-image-card {
    animation: none;
  }

  .tool-fab,
  .tool-sat,
  .chat-panel,
  .status-panel,
  .modal-overlay,
  .toast {
    transition: none;
  }

  .tool-dock.is-open .tool-fab {
    transform: none;
  }
}

/* ---------- 裂变增长：任务进度、平台素材、邀请与连领 ---------- */
.task-progress { display: flex; align-items: stretch; gap: 7px; margin: 14px 0; padding: 12px; border: 1px solid #e3eee7; border-radius: 18px; background: #fff; }
.task-progress > i { align-self: center; color: #a8b8ae; font-style: normal; }
.task-progress-item { flex: 1; min-width: 0; padding: 8px 6px; border-radius: 12px; color: #718078; text-align: center; text-decoration: none; }
.task-progress-item > span { display: grid; place-items: center; width: 25px; height: 25px; margin: 0 auto 5px; border-radius: 50%; background: #edf3ef; font-weight: 800; }
.task-progress-item b, .task-progress-item small { display: block; }
.task-progress-item b { color: #35483d; font-size: 12px; }
.task-progress-item small { margin-top: 3px; font-size: 9px; line-height: 1.35; }
.task-progress-item.is-current { background: #eaf8f0; }
.task-progress-item.is-current > span { background: #2f9e6b; color: #fff; }
.task-progress-item.is-current b { color: #208457; }
.comment-platform-tabs { display: flex; gap: 7px; margin: 0 0 12px; }
.comment-platform-tabs button { flex: 1; padding: 9px 6px; border: 1px solid #dce9e1; border-radius: 11px; background: #fff; color: #607068; font: inherit; font-size: 12px; cursor: pointer; }
.comment-platform-tabs button.is-active { border-color: #2f9e6b; background: #eaf8f0; color: #208457; font-weight: 700; }
.search-hints { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0 10px; }
.search-hints > span { width: 100%; color: #87968d; font-size: 10px; }
.search-hints button { padding: 4px 7px; border: 0; border-radius: 7px; background: #eef6f1; color: #397357; font: inherit; font-size: 10px; cursor: pointer; }
.referral-panel, .claim-referral, .referral-leaderboard, .claim-related { margin-top: 16px; padding: 18px; border: 1px solid #dfede4; border-radius: 18px; background: linear-gradient(145deg, #f4fbf7, #fff); }
.referral-panel-head, .claim-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.referral-panel-head h2, .claim-referral h2, .claim-section-title h2 { margin: 3px 0 0; font-size: 18px; }
.referral-panel-head > strong { color: #208457; font-size: 20px; white-space: nowrap; }
.referral-summary, .claim-referral > p { color: #63736a; font-size: 12px; line-height: 1.65; }
.referral-reward-list { display: grid; gap: 7px; margin: 12px 0; }
.referral-reward-list > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: 10px; background: #edf3ef; color: #66766d; font-size: 11px; }
.referral-reward-list > div b { white-space: nowrap; }
.referral-reward-list > div.is-reached { background: #dff5e8; color: #208457; }
.referral-link-label { display: block; margin: 12px 0 6px; color: #66766d; font-size: 11px; }
.referral-copy-row { display: flex; gap: 7px; }
.referral-copy-row input { min-width: 0; flex: 1; padding: 10px; border: 1px solid #dce9e1; border-radius: 10px; background: #fff; color: #52635a; font-size: 11px; }
.referral-copy-row .copy-pill { flex: none; }
.referral-panel > .btn-gradient { width: 100%; margin-top: 12px; }
.referral-note, .claim-referral > small { display: block; margin-top: 10px; color: #89978f; font-size: 10px; line-height: 1.55; }
.success-invite { margin-top: 15px; padding: 14px; border-radius: 14px; background: #eff9f3; text-align: left; }
.success-invite > strong { color: #208457; }
.success-invite > p { margin: 6px 0 10px; color: #66766d; font-size: 11px; line-height: 1.55; }
.success-invite textarea, .invite-share-text { width: 100%; box-sizing: border-box; resize: none; padding: 10px; border: 1px solid #d8e9de; border-radius: 10px; background: #fff; color: #415248; font: inherit; font-size: 12px; line-height: 1.55; }
.success-invite .btn-ghost { margin-top: 8px; }
.claim-referral { text-align: left; }
.claim-referral .btn-gradient { display: block; margin-top: 10px; text-align: center; }
.referral-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 13px 0; }
.referral-numbers > div { padding: 10px 5px; border-radius: 11px; background: #fff; text-align: center; }
.referral-numbers strong, .referral-numbers span { display: block; }
.referral-numbers strong { color: #208457; font-size: 20px; }
.referral-numbers span { margin-top: 3px; color: #7a8a81; font-size: 10px; }
.claim-section-title { margin-bottom: 12px; text-align: left; }
.claim-section-title > span { color: #89978f; font-size: 10px; text-align: right; }
.leaderboard-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #e7efe9; }
.leaderboard-row:last-child { border-bottom: 0; }
.leaderboard-row i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e6f4eb; color: #208457; font-size: 11px; font-style: normal; font-weight: 800; }
.leaderboard-row span { flex: 1; color: #4a5c51; font-size: 12px; text-align: left; }
.leaderboard-row strong { color: #208457; font-size: 12px; }
.claim-related-grid { display: grid; gap: 8px; }
.claim-related-grid > a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #fff; color: inherit; text-decoration: none; }
.claim-related-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; overflow: hidden; border-radius: 11px; background: #edf5f0; }
.claim-related-icon img { width: 100%; height: 100%; object-fit: cover; }
.claim-related-grid > a > span:nth-child(2) { flex: 1; min-width: 0; text-align: left; }
.claim-related-grid strong, .claim-related-grid small { display: block; }
.claim-related-grid strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.claim-related-grid small { margin-top: 3px; color: #89978f; font-size: 10px; }
.claim-related-grid > a > b { color: #208457; font-size: 11px; white-space: nowrap; }
.update-preview { margin: 14px 0; padding: 15px 17px; border: 1px solid #dcebe2; border-radius: 16px; background: linear-gradient(135deg, #eef9f2, #fff); }
.update-preview-head { display: flex; align-items: center; gap: 8px; }
.update-preview-head > span { padding: 3px 6px; border-radius: 6px; background: #2f9e6b; color: #fff; font-size: 9px; font-weight: 800; }
.update-preview-head h2 { flex: 1; margin: 0; font-size: 15px; }
.update-preview-head time { color: #208457; font-size: 11px; }
.update-preview p { margin: 8px 0 0; color: #62736a; font-size: 12px; line-height: 1.6; }
@media (max-width: 560px) {
  .task-progress { gap: 3px; padding: 8px 5px; }
  .task-progress > i { font-size: 10px; }
  .task-progress-item { padding: 7px 2px; }
  .task-progress-item b { font-size: 10.5px; }
  .task-progress-item small { font-size: 8px; }
  .referral-panel, .claim-referral, .referral-leaderboard, .claim-related { padding: 14px; }
  .claim-section-title { align-items: flex-start; }
  .claim-section-title > span { max-width: 45%; }
}

/* ---------- 2026-10 移动端层级、邀请分享与连续操作 ---------- */
.task-progress {
  position: sticky;
  top: calc(8px + env(safe-area-inset-top, 0px));
  z-index: 24;
  margin: 16px 0 0;
  box-shadow: 0 8px 24px rgba(56, 38, 45, 0.1);
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.94);
}
.has-claims .task-progress { top: calc(54px + env(safe-area-inset-top, 0px)); }
.wx-guide-open .task-progress { top: calc(98px + env(safe-area-inset-top, 0px)); }
.step { scroll-margin-top: 150px; }
.step-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid #cfe7d8;
  border-radius: 14px;
  background: #eff9f3;
  color: #50665a;
  text-decoration: none;
}
.step-next span { font-size: 11px; line-height: 1.45; }
.step-next b { color: #208457; font-size: 12px; text-align: right; }
.step-footer-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.step-footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: #65786d; font-size: 12px; }
.invite-entry {
  margin: 16px 0 0;
  padding: 15px;
  border: 1px solid #cee6d8;
  border-radius: 17px;
  background: linear-gradient(135deg, #f0faf4, #fff 70%);
  box-shadow: none;
}
.invite-entry .referral-panel-head { align-items: flex-start; }
.invite-entry .referral-panel-head h2 { font-size: 15px; line-height: 1.45; }
.invite-entry .referral-panel-head > strong { padding: 4px 8px; border-radius: 9px; background: #def3e6; font-size: 13px; }
.invite-entry .referral-summary { margin: 9px 0; }
.invite-progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 10px; margin: 10px 0; }
.invite-progress > div:not(.invite-progress-track) { display: contents; }
.invite-progress span { color: #61736a; font-size: 11px; }
.invite-progress b { color: #286c4c; font-size: 11px; }
.invite-progress-track { grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 99px; background: #dce9e1; }
.invite-progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: #39a874; transition: width 0.35s ease; }
.invite-progress-track.permanent i { background: #d69347; }
.invite-entry .referral-reward-list > div { align-items: center; line-height: 1.45; }
.invite-entry .btn-ghost { width: 100%; box-sizing: border-box; margin-top: 8px; }
.invite-share-open { min-height: 46px; }
.invite-modal[hidden] { display: none !important; }
.invite-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 20px; }
.invite-modal-backdrop { position: absolute; inset: 0; background: rgba(27, 22, 25, 0.52); backdrop-filter: blur(4px); }
.invite-modal-card { position: relative; width: min(100%, 440px); box-sizing: border-box; padding: 24px 20px 20px; border-radius: 22px; background: #fff; box-shadow: 0 24px 80px rgba(24, 17, 20, 0.25); }
.invite-modal-card h2 { margin: 4px 0 6px; font-size: 20px; }
.invite-modal-card > p { margin: 0 0 14px; color: #748078; font-size: 12px; line-height: 1.6; }
.invite-modal-card > label { display: block; margin-bottom: 6px; color: #52645a; font-size: 12px; font-weight: 700; }
.invite-modal-card textarea, .invite-modal-card input { width: 100%; box-sizing: border-box; border: 1px solid #d8e6dd; border-radius: 12px; background: #f8fbf9; color: #3e5146; font: inherit; font-size: 13px; line-height: 1.6; }
.invite-modal-card textarea { padding: 12px; resize: none; }
.invite-modal-card input { margin-top: 10px; padding: 9px 11px; font-size: 11px; }
.invite-modal-card > .btn-gradient { width: 100%; margin-top: 10px; }
.invite-modal-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.invite-modal-secondary .btn-ghost { width: 100%; margin: 0; box-sizing: border-box; }
.invite-modal-card > small { display: block; margin-top: 9px; color: #89978f; font-size: 10px; line-height: 1.5; }
.invite-modal-close { position: absolute; top: 8px; right: 9px; width: 44px; height: 44px; border: 0; background: transparent; color: #748078; font-size: 26px; cursor: pointer; }
.invite-modal-handle { display: none; }
.claim-invite-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.claim-invite-actions .btn-gradient, .claim-invite-actions .btn-ghost { width: 100%; margin: 0; box-sizing: border-box; }
.submit-submit-bar { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 20; margin-top: 14px; padding: 9px; border: 1px solid rgba(215, 228, 219, 0.9); border-radius: 17px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 8px 26px rgba(39, 62, 48, 0.14); backdrop-filter: blur(14px); }
.submit-submit-bar .btn-gradient { width: 100%; margin: 0; }
.submit-submit-bar > span { display: block; margin-top: 6px; color: #78887f; font-size: 10px; text-align: center; }
.status-page-form input, .status-page-form button { min-height: 46px; }
.status-card-actions a { display: inline-flex; align-items: center; min-height: 44px; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(47, 158, 107, 0.3); outline-offset: 2px; }
@media (max-width: 640px) {
  .copy-grid.two { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .copy-card { padding: 12px; gap: 8px; }
  .copy-grid .copy-pill, .comment-actions .copy-pill, .comment-platform-tabs button { min-height: 44px; padding: 10px 8px; font-size: 12px; }
  .comment-card .comment-actions { flex-direction: row; }
  .comment-shuffle { min-width: 58px; min-height: 36px; font-size: 11px; }
  .search-hints button { min-height: 36px; padding: 8px 10px; font-size: 11px; }
  .preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .preview-item, .preview-item img { width: 100%; height: auto; aspect-ratio: 1; }
  .preview-remove { width: 36px; height: 36px; top: 2px; right: 2px; }
  .invite-modal { align-items: flex-end; padding: 0; }
  .invite-modal-card { width: 100%; max-height: 88vh; overflow-y: auto; padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 0 0; }
  .invite-modal-handle { display: block; width: 40px; height: 4px; margin: 0 auto 8px; border-radius: 99px; background: #d8dfda; }
}
@media (max-width: 380px) {
  .copy-grid.two { gap: 12px; }
  .copy-grid.two .copy-pill { font-size: 12px; }
  .task-progress-item small { display: none; }
  .task-progress-item { min-height: 54px; }
  .step-next { align-items: flex-start; flex-direction: column; gap: 3px; }
  .step-next b { text-align: left; }
  .claim-invite-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .invite-progress-track i { transition: none; }
}
