/* ============================================================
   设计系统 —— 对标 ppor.work（首家同行）现行版
   主色青绿 #079f91 · Hero 渐变 #217c80→#75c1b9 · 圆角 14px
   ============================================================ */
:root {
  --primary: #079f91;
  --primary-dk: #217c80;
  --accent: #75c1b9;
  --deep: #172b2a;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #202b3a;
  --muted: #7f8b9c;
  --line: #e8ebef;
  --radius: 14px;
  --tag-bg: #e9faf7;
  --tag-fg: #069f8f;
  --star: #e19000;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

body {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 96px;
  position: relative;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--primary); text-decoration: none; }

/* ---------- 顶部导航（含返回首页） ---------- */
.nvbar {
  position: sticky;
  top: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 12px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.nv-back {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 12px 5px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.nv-back:active { background: var(--tag-bg); }
.nv-back .arw { font-size: 16px; line-height: 1; }
.nv-title {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nv-right { flex: none; width: 78px; }

/* ---------- header（首页顶栏） ---------- */
.hd {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(135deg, var(--primary-dk), var(--primary));
  color: #fff;
  padding: 13px 16px 12px;
  text-align: center;
}
.hd h1 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.hd p { margin: 2px 0 0; font-size: 11px; color: rgba(255, 255, 255, .82); }

/* ---------- hero（对标 ppor.work .store-hero）---------- */
.store-hero {
  position: relative;
  overflow: hidden;
  margin: 14px 14px 0;
  padding: 22px;
  height: 190px;                    /* 同行：固定高 190px */
  display: flex;
  align-items: flex-end;            /* 同行：内容贴底 */
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary-dk), var(--accent));
  color: #fff;
}
.store-hero.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.store-hero::before, .store-hero::after {
  content: "";
  position: absolute;
  right: -30px;
  width: 230px;
  height: 76px;
  border-radius: 28px;
  transform: rotate(-15deg);
  background: #ffffff1c;            /* 同行：两条白色斜条装饰 */
}
.store-hero::before { top: 24px; }
.store-hero::after { bottom: -12px; right: 35px; }
.store-hero-in { position: relative; z-index: 1; width: 100%; }
.store-label {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .22);
  font-size: 10px;
  font-weight: 700;
}
.store-hero h2 { margin: 7px 0 2px; font-size: 20px; font-weight: 800; }
.store-hero p { margin: 0 0 12px; font-size: 11px; color: #ffffffd0; }
.store-hero-btn {
  display: inline-block;
  padding: 8px 17px;
  border-radius: 8px;
  background: #fff;
  color: #07978a;
  font-size: 12px;
  font-weight: 800;
  border: none;
  cursor: pointer;
}

/* ---------- search ---------- */
.search {
  position: relative;
  margin: 18px 14px 12px;
  padding: 11px 12px 12px;
  border: 2px solid #08a89a;
  border-radius: 18px;
  background: linear-gradient(135deg, #eafffc, #f7fffe);
}
.search > .lab { display: block; margin: 0 0 8px 3px; color: #087e74; font-size: 14px; font-weight: 900; }
.search::before {
  content: "⌕";
  position: absolute;
  left: 24px;
  top: 53px;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 40px;
  border: 1px solid #9bded8;
  border-radius: 13px;
  background: #fff;
  color: #172b2a;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.search input::placeholder { color: #708886; }
.search input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(7, 159, 145, .15); }

/* ---------- tabs ---------- */
.tabs {
  display: flex;
  gap: 10px;
  padding: 6px 14px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none;
  padding: 7px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 9px;
  background: #fff;
  color: #777;
  font-size: 13px;
}
.tabs button.on { background: #222; color: #fff; border-color: #222; font-weight: 600; }

/* ---------- 区块标题 ---------- */
.sec-t { margin: 5px 16px 11px; font-size: 16px; font-weight: 800; }
.sec-t small { margin-left: 8px; color: #aaa; font-size: 10px; font-weight: 400; }

/* ---------- 资源列表：单行紧凑 ---------- */
.grid { display: grid; gap: 10px; padding: 0 14px 14px; }
.row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid #eee;
  border-radius: var(--radius);
}
.ri-thumb-wrap { position: relative; flex: 0 0 auto; }
.ri-thumb {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
  background: #f3f4f6;
  border: 1px dashed #d8dbe0;
}
.ri-hot {
  position: absolute;
  top: -6px;
  left: -4px;
  background: #ff5b54;
  color: #fff;
  font-size: 9px;
  line-height: 1.4;
  padding: 0 4px;
  border-radius: 4px;
}
.ri-mid { flex: 1; min-width: 0; }
.ri-nm {
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ri-meta {
  margin-top: 4px;
  font-size: 10px;
  color: #aaa;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  white-space: nowrap;
  overflow: hidden;
}
.ri-tag { padding: 1px 5px; border-radius: 3px; background: var(--tag-bg); color: var(--tag-fg); }
.ri-star { color: var(--star); }
.ri-go {
  flex: none;
  padding: 8px 17px;
  border: none;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
}
.empty { text-align: center; color: #aaa; padding: 40px 0; font-size: 14px; }

/* ---------- footer ---------- */
.ft { text-align: center; padding: 28px 14px 30px; color: #c7c7c7; font-size: 11px; }

/* ---------- rolling notice ---------- */
.rolling {
  position: fixed;
  left: 12px;
  bottom: 78px;
  z-index: 30;
  background: rgba(23, 43, 42, .82);
  color: #fff;
  font-size: 12px;
  padding: 6px 13px;
  border-radius: 999px;
  max-width: 70%;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s, transform .4s;
}
.rolling.show { opacity: 1; transform: translateY(0); }

/* ---------- chat ---------- */
.chat-btn {
  position: fixed;
  right: 14px;
  bottom: 22px;
  z-index: 50;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(7, 159, 145, .35);
}
.chat-panel {
  position: fixed;
  right: 12px;
  bottom: 86px;
  z-index: 51;
  width: min(320px, calc(100vw - 24px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: none;
}
.chat-panel.show { display: block; }
.chat-panel .ch-hd {
  background: linear-gradient(135deg, var(--primary-dk), var(--accent));
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-panel .ch-hd span { font-size: 11px; opacity: .85; font-weight: 400; }
.chat-panel .ch-bd { padding: 14px; font-size: 13px; color: var(--muted); }
.chat-panel .ch-bd .bubble {
  background: var(--tag-bg);
  color: #172b2a;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.chat-panel .ch-bd textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px;
  font-size: 13px;
  font-family: inherit;
  resize: none;
  outline: none;
}
.chat-panel .ch-bd button {
  width: 100%;
  margin-top: 8px;
  padding: 8px 0;
  border: none;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
}

/* ---------- modal ---------- */
.mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(23, 43, 42, .5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.mask.show { display: flex; }
.modal {
  background: var(--card);
  border-radius: 16px;
  width: 100%;
  max-width: 340px;
  overflow: hidden;
}
.modal h3 { margin: 0; padding: 16px 18px 0; font-size: 16px; }
.modal .m-bd { padding: 10px 18px 18px; font-size: 13px; color: var(--muted); white-space: pre-line; }
.modal .m-ft { padding: 0 18px 18px; }
.modal .m-ft button {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- task page ---------- */
.wrap { padding: 14px; }
.panel {
  background: var(--card);
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.panel h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.panel .sub { font-size: 12px; color: var(--muted); white-space: pre-line; }

.plat { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.plat button {
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #777;
  font-size: 13px;
}
.plat button.on { background: #222; border-color: #222; color: #fff; font-weight: 600; }

/* 平台跳转大按钮（对标 ppor.work：抖音→搜索 / 红书→搜索，并排橙红实底） */
.plat-jump { display: flex; gap: 10px; margin: 4px 0 10px; }
.jump-btn {
  flex: 1;
  display: block;
  text-align: center;
  padding: 11px 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff982d, #ff6816);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(255, 118, 30, .25);
}
.jump-btn:active { transform: scale(.97); }

.comment-box {
  background: var(--tag-bg);
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.75;
  min-height: 90px;
  word-break: break-all;
  white-space: pre-wrap;
  color: #172b2a;
}
.btn-main {
  width: 100%;
  padding: 11px 0;
  border: none;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-top: 10px;
}
.btn-sub {
  width: 100%;
  padding: 11px 0;
  border: 1px solid var(--primary);
  border-radius: 9px;
  background: var(--card);
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  margin-top: 10px;
}

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shot {
  position: relative;
  aspect-ratio: 9 / 16;
  border: 1px dashed #9bded8;
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  background: #f7fffe;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .del {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 0;
}

.steps { counter-reset: s; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 0 0 12px 28px; font-size: 13px; color: var(--muted); }
.steps li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 0;
  top: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  text-align: center;
  line-height: 19px;
}

.result-link {
  display: block;
  background: var(--tag-bg);
  border-radius: 11px;
  padding: 12px;
  font-size: 13px;
  word-break: break-all;
  margin-bottom: 8px;
}
.result-link b { color: var(--primary); }

.review { text-align: center; padding: 26px 0; font-size: 14px; color: var(--muted); }
.spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto 12px;
  border: 3px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.warn { background: #fff4f6; border: 1px solid #ffd0da; color: #b3455f; padding: 10px 12px; border-radius: 10px; font-size: 12px; margin-top: 10px; }

/* ---------- 获取方式弹窗：免费 / 尊享 / 取消（对标 ppor .claim-choice，居中）---------- */
.claim-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;              /* 同行：屏幕正中 */
  padding: 22px;
  background: rgba(13, 22, 28, .64);
  backdrop-filter: blur(7px);
}
.claim-mask.show { display: grid; }

.claim-pop {
  width: min(100%, 410px);          /* 同行：410px 白卡 */
  background: #fff;
  border-radius: 30px;
  padding: 30px 24px 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
  text-align: center;
  animation: cpin .18s ease-out;
}
@keyframes cpin {
  from { opacity: 0; transform: scale(.94) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.cp-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; text-align: left; }
.cp-thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
.cp-info { min-width: 0; }
.cp-nm {
  font-size: 22px;
  font-weight: 900;
  color: #10241f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-meta { font-size: 13px; color: #8b969b; margin-top: 4px; }

.cp-actions { display: grid; gap: 12px; }

.cp-btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
  cursor: pointer;
}
.cp-btn b { display: block; font-size: 19px; font-weight: 800; line-height: 1.25; }
.cp-btn small { display: block; font-size: 13px; opacity: .9; margin-top: 5px; font-weight: 500; }

/* 同行配色：免费=橙渐变，尊享=米金渐变 */
.cp-free {
  background: linear-gradient(135deg, #ff982d, #ff6816);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 105, 22, .25);
}
.cp-vip {
  background: linear-gradient(135deg, #fff4df, #ffe4b8);
  color: #9d551e;
  border: 1px solid #f2ce92;
}
.cp-cancel {
  background: transparent;
  color: #8b969b;
  font-size: 14px;
  padding: 6px;
  margin-top: 2px;
}
.cp-cancel:hover { color: #10241f; }

/* ---------- 尊享通道赞赏码 ---------- */
.vip-code {
  display: block;
  width: 190px;
  max-width: 70%;
  margin: 12px auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.sp { border: none; border-top: 1px dashed var(--line); margin: 18px 0 14px; }

/* ---------- 结果页资源链接 ---------- */
.res-link { background: var(--tag-bg); border-radius: 11px; padding: 12px; margin-bottom: 10px; }
.res-hd b { color: var(--primary); font-size: 13px; }
.res-url { font-size: 13px; word-break: break-all; margin: 6px 0 10px; }
.res-ops { display: flex; gap: 8px; }
.res-copy {
  flex: 1;
  border: none;
  border-radius: 9px;
  padding: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
}
.res-open {
  flex: none;
  border: 1px solid var(--primary);
  border-radius: 9px;
  padding: 9px 16px;
  color: var(--primary);
  font-size: 13px;
  background: #fff;
  text-decoration: none;
}
/* ---------- 三步流程卡片（对标 ppor 的任务步骤）---------- */
.notice-box {
  background: linear-gradient(135deg, #fff1f2, #ffe3e6);
  border: 1px solid #ffc9ce;
  color: #e0534f;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-line;
  margin-bottom: 14px;
}

/* 任务页主按钮统一橙色系（对标 ppor.work 免费流程按钮） */
.freePanel .btn-main,
.vipPanel .btn-main {
  background: linear-gradient(135deg, #ff982d, #ff6816);
  box-shadow: 0 3px 10px rgba(255, 118, 30, .25);
}

.step-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  background: var(--card);
}
.step-hd { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.step-hd b { font-size: 14px; font-weight: 700; color: var(--text); }
.step-no {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-line;
  margin: 10px 0 4px;
}

/* 示例图：有图显示图，无图显示虚线占位（提示后台上传） */
.step-img-box { margin-top: 10px; }
.step-img {
  display: block;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.step-img-ph {
  border: 1px dashed #c9d2d0;
  border-radius: 10px;
  padding: 22px 12px;
  text-align: center;
  color: #a4b0ae;
  font-size: 12px;
  background: #fafcfb;
}
