:root {
  --co-purple: #251381;
  --co-brand-purple: #6246f0;
  --co-orange: #ff5b17;
  --co-muted: #625f8e;
  --co-line: #e9ecf5;
}

.co-creation-page {
  min-height: 100vh;
  padding-bottom: calc(74px + env(safe-area-inset-bottom));
  color: var(--co-purple);
  background: #fff;
}

.co-creation-brand {
  min-height: 64px;
  padding: max(6px, env(safe-area-inset-top)) 18px 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
}

.co-creation-brand > img { width: 104px; height: 52px; object-fit: contain; }
.co-creation-brand > p { margin: 0; color: #514b5e; font-size: 12px; font-weight: 400; line-height: 1.5; }
.co-creation-scroll { padding: 0 10px 20px; }
.co-creation-panel { margin-top: 10px; border: 1px solid var(--co-line); border-radius: 18px; background: #fff; }


.co-creation-hero > .co-creation-image-frame { position: absolute; inset: 0; }
.co-creation-hero .co-creation-image-frame img { width: 100%; height: 100%; object-fit: cover; }

.co-creation-section-heading { min-height: 54px; padding: 8px 14px; display: flex; align-items: center; gap: 9px; }
.co-creation-section-heading > i { width: 6px; height: 24px; flex: none; border-radius: 4px; background: var(--co-orange); }
.co-creation-section-heading > div { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: 1; }
.co-creation-section-heading h2 { margin: 0; color: var(--co-purple); font-size: 20px; line-height: 1.25; }
.co-creation-section-heading p { margin: 0; color: #817da6; font-size: 12px; line-height: 1.4; text-align: right; }

.co-creation-steps { margin: 0; padding: 0 8px 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; list-style: none; }
.co-creation-steps img { width: 100%; height: 100%; object-fit: cover; }

.co-creation-roles .co-creation-section-heading h2 { font-size: 16px; }
.co-creation-role-grid { padding: 0 8px 9px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.co-creation-role { position: relative; min-width: 0; min-height: 238px; padding-bottom: 50px; overflow: hidden; border-radius: 13px; background: #fff9ef; }
.co-creation-role--creator { background: #f8f5ff; }
.co-creation-role--referrer { background: #fff8f3; }
.co-creation-role > .co-creation-image-frame { display: block; height: 90px; overflow: hidden; }
.co-creation-role img { width: 100%; height: 100%; object-fit: cover; }
.co-creation-role-copy { padding: 8px 8px 0; }
.co-creation-role h3 { margin: 0 0 5px; color: var(--co-purple); font-size: 17px; line-height: 1.15; }
.co-creation-role p { margin: 0; color: var(--co-muted); font-size: 12px; line-height: 1.45; }
.co-creation-role button { position: absolute; right: 8px; bottom: 8px; left: 8px; min-height: 44px; padding: 0 8px; border: 1.5px solid var(--co-orange); border-radius: 23px; color: var(--co-orange); background: rgba(255,255,255,.9); font-size: 14px; font-weight: 700; }
.co-creation-role--creator button { color: var(--co-brand-purple); border-color: var(--co-brand-purple); }
.co-creation-role button span { margin-left: 3px; font-size: 21px; vertical-align: -1px; }

.co-creation-image-frame { position: relative; background: linear-gradient(135deg, #fff1e7, #f2eeff); }
.co-creation-image-frame > img { position: relative; z-index: 1; display: block; }
.co-creation-image-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #7a6aca; font-size: 12px; font-weight: 700; }
.co-creation-image-frame.is-unavailable > img { display: none; }

.co-group-topbar { min-height: 56px; padding: max(6px, env(safe-area-inset-top)) 12px 4px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; background: #fff; }
.co-group-topbar button { width: 44px; height: 44px; border: 0; color: #1026ac; background: transparent; font-size: 38px; line-height: 1; }
.co-group-topbar h1 { margin: 0; color: #0d1f9f; font-size: 24px; line-height: 1.2; text-align: center; }
.co-group-scroll { padding: 0 10px 20px; }
.co-group-hero { height: 207px; overflow: hidden; border-radius: 16px; background: #fff7ed; }
.co-group-hero .co-creation-image-frame,
.co-group-hero img { display: block; width: 100%; height: 100%; }
.co-group-hero img { object-fit: cover; }
.co-group-heading { min-height: 48px; padding: 6px 13px; display: flex; align-items: center; gap: 9px; }
.co-group-heading i { width: 6px; height: 24px; flex: none; border-radius: 4px; background: var(--co-orange); }
.co-group-heading h2 { margin: 0; color: #0d1f9f; font-size: 21px; line-height: 1.2; }
.co-group-activities { padding: 5px 7px 9px; }
.co-group-activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.co-group-activity-grid article { min-width: 0; min-height: 91px; padding: 7px; display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 9px; overflow: hidden; border: 1px solid var(--co-line); border-radius: 15px; }
.co-group-activity-grid .co-creation-image-frame { width: 76px; height: 77px; overflow: hidden; border-radius: 12px; }
.co-group-activity-grid img { width: 100%; height: 100%; object-fit: cover; }
.co-group-activity-grid h3 { margin: 0 0 5px; color: #1022a2; font-size: 16px; line-height: 1.1; white-space: nowrap; }
.co-group-activity-grid p { margin: 0; color: #5d5a94; font-size: 12px; line-height: 1.4; }
.co-group-scan { padding: 5px 11px 9px; }
.co-group-scan-card { min-height: 142px; padding: 8px 10px; display: grid; grid-template-columns: 126px 1fr; align-items: center; gap: 8px; border: 1px solid var(--co-line); border-radius: 16px; }
.co-group-qr-frame { position: relative; width: 112px; height: 112px; display: grid; place-items: center; overflow: hidden; color: #6f6991; background: #f8f5ff; font-size: 11px; line-height: 1.5; text-align: center; }
.co-group-qr-frame img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.co-group-qr-frame > span { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; }
.co-group-qr-frame.is-unavailable img { display: none; }
.co-group-scan-card h3 { margin: 0 0 6px; color: #1022a2; font-size: 16px; line-height: 1.25; }
.co-group-scan-card p { margin: 0 0 12px; color: #5d5a94; font-size: 12px; line-height: 1.4; }
.co-group-scan-card a { min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 24px; color: #fff; background: linear-gradient(90deg, #ff5b0d, #ff4813); font-size: 15px; font-weight: 700; text-decoration: none; }
.co-group-unavailable { min-height: 142px; padding: 24px; display: grid; place-items: center; align-content: center; border: 1px dashed #d9d4ed; border-radius: 16px; text-align: center; background: #faf8ff; }
.co-group-unavailable b { color: #1022a2; font-size: 18px; }
.co-group-unavailable p { margin: 8px 0 0; color: #69658e; font-size: 13px; line-height: 1.55; }
.co-group-tip { position: relative; min-height: 68px; margin-top: 9px; display: flex; align-items: center; overflow: hidden; border-radius: 14px; background: linear-gradient(90deg, #fff5e9, #fffaf4); }
.co-group-tip > .co-creation-image-frame:first-child { width: 56px; height: 58px; margin-left: 9px; flex: none; }
.co-group-tip > .co-creation-image-frame:last-child { position: absolute; right: 6px; bottom: 5px; width: 88px; height: 56px; }
.co-group-tip img { width: 100%; height: 100%; object-fit: cover; }
.co-group-tip > div { z-index: 1; margin-left: 4px; }
.co-group-tip h3 { margin: 0 0 2px; color: #1022a2; font-size: 16px; }
.co-group-tip p { max-width: 220px; margin: 0; color: #5d5a94; font-size: 12px; line-height: 1.35; }

@media (max-width: 389px) {
  .co-creation-brand { padding-inline: 14px; }
  .co-creation-scroll { padding-inline: 8px; }
  .co-creation-section-heading { padding-inline: 9px; }
  .co-creation-section-heading > div { display: block; }
  .co-creation-section-heading p { margin-top: 3px; text-align: left; }
  .co-creation-steps { gap: 5px; padding-inline: 5px; }
  .co-creation-role-grid { gap: 6px; padding-inline: 5px; }
  .co-creation-role { min-height: 252px; }
  .co-creation-role-copy { padding-inline: 6px; }
  .co-creation-role h3 { font-size: 16px; }
  .co-creation-role button { right: 6px; left: 6px; font-size: 12px; }
  .co-creation-role--family button { padding-inline: 3px; font-size: 11px; white-space: nowrap; }
  .co-creation-role--family button span { margin-left: 1px; font-size: 16px; }
  .co-group-scroll { padding-inline: 8px; }
  .co-group-hero { height: 184px; }
  .co-group-activity-grid article { grid-template-columns: 64px 1fr; gap: 6px; }
  .co-group-activity-grid .co-creation-image-frame { width: 64px; height: 68px; }
  .co-group-activity-grid h3 { font-size: 14px; }
  .co-group-activity-grid p { font-size: 11px; }
  .co-group-scan-card { grid-template-columns: 112px 1fr; padding-inline: 7px; }
  .co-group-qr-frame { width: 104px; height: 104px; }
  .co-group-tip p { max-width: 180px; }
}

/* 共创页第四版（Owner 10/19）：角色卡一个好处；拿什么去分享；本周好菜榜 */
.co-role-tag { display: inline-block; margin-top: 6px; padding: 2px 7px; border-radius: 6px; font-style: normal; font-size: 11px; font-weight: 800; color: #5b2fd6; background: #efe9fd; }
.co-role-tag--referrer { color: #c45a1c; background: #fff0e3; }
.co-share { padding-bottom: 12px; }
.co-story-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 10px 2px; scrollbar-width: none; }
.co-story { flex: none; width: 142px; text-align: left; border-radius: 13px; overflow: hidden; background: #fff; border: 1px solid #f0edf2; padding: 0; }
.co-story img, .co-story-blank { display: flex; width: 142px; height: 108px; object-fit: cover; background: linear-gradient(135deg, #fff1e7, #f2eeff); align-items: center; justify-content: center; color: #b08a6a; font-weight: 800; }
.co-story b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 6px 8px 0; font-size: 13px; line-height: 1.4; color: #251381; }
.co-story small { display: block; padding: 3px 8px 8px; font-size: 11px; color: #817da6; }
.co-board-entry { display: flex; align-items: center; gap: 9px; width: calc(100% - 20px); margin: 10px 10px 0; padding: 10px 11px; border: 0; border-radius: 13px; text-align: left; background: linear-gradient(135deg, #2b2140, #4a2f8a); color: #fff; }
.co-board-entry i { font-style: normal; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; }
.co-board-entry span { flex: 1; }
.co-board-entry b { display: block; font-size: 14px; }
.co-board-entry small { display: block; font-size: 11px; opacity: .8; }
.co-board-entry em { font-style: normal; font-size: 12px; font-weight: 800; color: #ffd38a; }
.co-board { border-radius: 16px; padding: 14px; background: linear-gradient(160deg, #2b2140, #4a2f8a); color: #fff; }
.co-board > small { font-size: 11px; opacity: .8; }
.co-board h3 { margin: 4px 0 6px; font-size: 17px; }
.co-board-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.12); background: none; color: #fff; text-align: left; }
.co-board-row img, .co-board-row i { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; background: rgba(255,255,255,.12); }
.co-board-row span { flex: 1; }
.co-board-row b { display: block; font-size: 13.5px; }
.co-board-row small { display: block; font-size: 11px; opacity: .75; }
.co-board-row em { font-style: normal; font-weight: 800; font-size: 13px; }
.co-board-cheap { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.12); font-size: 12.5px; }
.co-board-note { margin: 8px 0 0; font-size: 10.5px; opacity: .65; }
.rd3-story { margin: 10px 14px 0; padding: 11px 12px; border-radius: 14px; background: linear-gradient(135deg, #fff6ee, #f4f0ff); border: 1px solid #f1e3d4; }
.rd3-story > small { display: block; font-size: 11px; font-weight: 800; color: #d0601f; }
.rd3-story > b { display: block; margin-top: 3px; font-size: 16px; color: #251381; }
.rd3-story > div { display: flex; gap: 6px; margin-top: 7px; }
.rd3-story > div span { flex: 1; text-align: center; padding: 5px 3px; border-radius: 9px; background: rgba(255,255,255,.8); }
.rd3-story > div b { display: block; font-size: 15px; color: #e2521d; }
.rd3-story > div small { display: block; font-size: 10px; color: #9a5a33; }
.rd3-story > p { margin: 7px 0 0; font-size: 12px; color: #5f586b; line-height: 1.6; }

/* 10/23 22:34 Owner：头图和其它标签同一高度、同一样式（.wtb 在 co-tabs-web.css）；4 步：序号压在图上，下面一行名字 + 一行小字，不留空白 */
.co-creation-hero { position: relative; }
.co-creation-hero > .co-creation-image-frame { position: absolute; inset: 0; }
.co-creation-hero .co-creation-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.co-creation-hero.wtb { margin: 0; }
.co-creation-hero h1.wtb-title { margin: 4px 0 0; letter-spacing: -.5px; }
.co-creation-steps li { position: relative; min-width: 0; padding-bottom: 9px; border: 1px solid #f0edf2; border-radius: 13px; text-align: center; background: linear-gradient(180deg, #fff8ee, #fff 84%); }
.co-creation-steps li > .co-creation-image-frame { display: block; height: 118px; overflow: hidden; border-radius: 12px 12px 0 0; }
.co-step-no { position: absolute; z-index: 2; top: 6px; left: 6px; width: 21px; height: 21px; border-radius: 50%; color: #fff; background: var(--co-brand-purple); font-size: 12px; font-weight: 800; line-height: 21px; box-shadow: 0 2px 6px rgba(53, 31, 150, .25); }
.co-creation-steps b { display: block; margin-top: 8px; font-size: 13px; white-space: nowrap; }
.co-creation-steps p { margin: 3px 4px 0; color: var(--co-muted); font-size: 11px; line-height: 1.4; }
.co-creation-steps li:not(:last-child)::after { content: ""; position: absolute; z-index: 3; top: 54px; right: -6px; width: 9px; height: 9px; border-top: 2px solid var(--co-brand-purple); border-right: 2px solid var(--co-brand-purple); transform: rotate(45deg); background: #fff; }
/* 三种角色卡：按钮和标签一行放下（网页 390 宽时会折行） */
.co-creation-role button { padding: 0 4px; white-space: nowrap; font-size: 13px; }
.co-creation-role button span { margin-left: 2px; font-size: 17px; }
.co-role-tag { white-space: nowrap; }

/* 深紫渐变全平台只在「我的 › 看广告攒饭票」用（Owner 10/30 17:31）：这里改成浅色暖底（1416b） */
.co-board { color: #2b2140; background: #fff7ef; border: 1px solid #f6e3d2; }
.co-board-row { color: #2b2140; border-bottom-color: #f2e4d6; }
.co-board-row img, .co-board-row i, .co-board-cheap { background: #fff; }
.co-board-row em { color: #c4561a; }
