/* ============================================================================
   私域卡片（运营板块）· 评论区引流卡片 · 2026-09-17 重做版
   ----------------------------------------------------------------------------
   ⚠️ 四条约定（本项目踩过的事，别改）：
     1. **独立文件**，排在 style.css 之后加载 —— 改别人的样式不要去动 style.css；
     2. **品牌主色不动**（--primary #f95901）：要的是质感/层次/间距的精修，不是换皮；
     3. 注释里**禁止出现连续的星号加斜杠**（历史上把 CSS 注释写坏导致整段样式失效）；
     4. 🔴 `.pc-entry` 的 `position: relative` 不能删 —— 它是 `.pc-entry-glow`
        （absolute）的包含块；漏掉会让 glow 跑出视口、document 被撑宽，
        iOS 把整页缩成 77%（2026-09-16 出过这个事故）。
   ========================================================================== */

/* ==========================================================================
   ① 运营板块：第四张头牌卡
   ========================================================================== */
.pc-entry {
  position: relative;                 /* 🔴 见文件头第 4 条 */
  background: linear-gradient(128deg, #10202a 0%, #14323a 52%, #0f4a44 100%);
  overflow: hidden;
}
.pc-entry-glow {
  position: absolute; inset: auto -30% -60% auto; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(44, 203, 182, .48) 0%, rgba(44, 203, 182, 0) 68%);
  pointer-events: none;
}
.pc-entry-tag {
  display: inline-block; padding: 3px 9px; margin-bottom: 9px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .4px;
  color: #b8f3e8; background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
}
.pc-entry-name { font-size: 20px; font-weight: 800; letter-spacing: .3px; color: #fff; line-height: 1.28; }
.pc-entry-sub { margin-top: 6px; font-size: 12.5px; line-height: 1.62; color: rgba(255, 255, 255, .76); }
.pc-entry-sub b { color: #7de8d5; font-weight: 700; }
.pc-entry-flow { display: flex; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.pc-entry-flow span {
  padding: 3px 8px; font-size: 11px; font-weight: 700;
  color: rgba(255, 255, 255, .86); background: rgba(255, 255, 255, .10);
  border-radius: 8px;
}
.pc-entry-flow i { font-style: normal; font-size: 11px; color: rgba(255, 255, 255, .38); }
.pc-entry-ico {
  position: relative; width: 58px; height: 58px; flex: 0 0 58px;
  display: grid; place-items: center; font-size: 26px;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
}

/* 迷你卡片样张：让人一眼看懂"这功能做出来是啥"（纯 CSS，不用 canvas） */
.pc-entry-mini {
  position: relative; margin-top: 12px; width: 168px; max-width: 100%;
  height: 90px; border-radius: 11px; overflow: hidden;
  background: #FECC56; box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
}
.pc-entry-mini em {
  position: absolute; left: 12px; top: 16px; right: 12px;
  font-style: normal; font-size: 14px; font-weight: 900; letter-spacing: .5px;
  color: #17100A; line-height: 1.2;
}
.pc-entry-mini b {
  position: absolute; left: 12px; top: 44px; right: 12px;
  font-size: 13px; font-weight: 900; letter-spacing: 1.2px; color: #7A1208;
}
.pc-entry-mini::after {                 /* 干扰纹示意 */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(28deg, rgba(0, 0, 0, .16) 0 1px, rgba(0, 0, 0, 0) 1px 11px),
    repeating-linear-gradient(-46deg, rgba(0, 0, 0, .12) 0 1px, rgba(0, 0, 0, 0) 1px 14px);
}

/* ==========================================================================
   ② 子页骨架
   ========================================================================== */
#sub-privatecard { padding-bottom: 96px; }   /* 🔴 fixed TabBar 实测高 74px，少留会压住最后一块内容 */
@media (min-width: 1024px) { #sub-privatecard { padding-bottom: 40px; } }

.pc-intro {
  position: relative; margin: 4px 0 14px; padding: 16px 16px 15px;
  background: linear-gradient(158deg, #10202a 0%, #16343b 55%, #0e4640 100%);
  border-radius: 18px; overflow: hidden; color: #fff;
}
.pc-intro::before {
  content: ''; position: absolute; top: -60px; right: -40px; width: 190px; height: 190px;
  background: radial-gradient(circle, rgba(44, 203, 182, .42) 0%, rgba(44, 203, 182, 0) 70%);
  pointer-events: none;
}
.pc-intro-h { position: relative; font-size: 15px; font-weight: 800; letter-spacing: .2px; }
.pc-intro-tx { position: relative; margin-top: 7px; font-size: 12.5px; line-height: 1.68; color: rgba(255, 255, 255, .74); }
.pc-intro-tx b { color: #7de8d5; font-weight: 700; }
.pc-intro-flow { position: relative; display: flex; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.pc-intro-flow span {
  padding: 3px 8px; font-size: 10.5px; font-weight: 700;
  color: rgba(255, 255, 255, .84); background: rgba(255, 255, 255, .11); border-radius: 7px;
}
.pc-intro-flow i { font-style: normal; font-size: 10.5px; color: rgba(255, 255, 255, .34); }

.pc-block {
  background: #fff; border: 1px solid #f0ece7; border-radius: 16px;
  padding: 14px 14px 15px; margin-bottom: 12px;
}
.pc-head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px;
  font-size: 14px; font-weight: 800; color: var(--text, #23201d); margin-bottom: 12px;
}
.pc-head i {
  font-style: normal; font-size: 11px; font-weight: 500; color: #a89c92; line-height: 1.4;
}
.pc-label { font-size: 12px; font-weight: 700; color: #7d7268; margin: 2px 0 8px; }

/* ---- chips ---- */
.pc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; font-size: 12.5px; font-weight: 600; color: #574d45;
  background: #f7f4f0; border: 1.5px solid transparent; border-radius: 11px;
  cursor: pointer; transition: all .16s; user-select: none;
}
.pc-chip em { font-style: normal; font-size: 13px; }
.pc-chip:active { transform: scale(.97); }
.pc-chip.active {
  color: #b23f00; background: #fff2e8; border-color: #ffcfae;
  box-shadow: 0 2px 8px rgba(249, 89, 1, .12);
}

/* ---- 输入 ---- */
.pc-input {
  width: 100%; box-sizing: border-box; border: 1.5px solid #eee8e2; outline: none;
  background: #fbfaf8; border-radius: 12px; padding: 12px 13px;
  font-size: 15px; color: var(--text, #23201d); font-family: inherit;
  transition: border-color .16s, background .16s;
}
.pc-input:focus { border-color: #ffcfae; background: #fff; }
.pc-input::placeholder { color: #b9afa6; font-size: 13px; }
#pcNum { letter-spacing: 1.5px; font-weight: 700; }
.pc-hint { margin-top: 7px; font-size: 11px; color: #a89c92; line-height: 1.5; }

/* ---- AI 写钩子 ---- */
.pc-ai {
  width: 100%; margin-top: 12px; padding: 13px; border: none;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 14px; font-weight: 800; color: #fff; font-family: inherit;
  background: linear-gradient(120deg, #ffb066 0%, #ff7a2e 48%, #f95901 100%);
  border-radius: 13px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(249, 89, 1, .26);
  transition: transform .14s, opacity .14s;
}
.pc-ai:active { transform: scale(.985); }
.pc-ai:disabled { opacity: .62; box-shadow: none; cursor: default; }
.pc-ai .s { font-size: 15px; }
.pc-ai.busy .s { animation: pcSpin 1.1s linear infinite; display: inline-block; }
@keyframes pcSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.pc-hooks { margin-top: 12px; }
.pc-hk-hd { font-size: 11.5px; font-weight: 700; color: #7d7268; margin-bottom: 8px; }
.pc-hk-hd i { font-style: normal; font-weight: 500; color: #b3a89f; }
.pc-hk {
  display: block; width: 100%; box-sizing: border-box; position: relative;
  margin-bottom: 7px; padding: 11px 13px; text-align: left;
  font-size: 14px; font-weight: 700; color: #3a332d;
  background: #f7f4f0; border: 1.5px solid transparent; border-radius: 11px;
  cursor: pointer; transition: all .16s;
}
.pc-hk:active { transform: scale(.99); }
.pc-hk.active { color: #b23f00; background: #fff2e8; border-color: #ffcfae; }
.pc-hk.bad { color: #9c9c9c; background: #f4f4f4; text-decoration: line-through; cursor: not-allowed; }
.pc-hk.bad em {
  display: inline-block; margin-left: 6px; padding: 1px 6px; font-style: normal;
  font-size: 10px; font-weight: 700; color: #d33; background: #ffe9e9;
  border-radius: 5px; text-decoration: none;
}
#pcHook { margin-top: 10px; }

/* ---- 数字拆段开关 ---- */
.pc-switch {
  display: flex; align-items: center; gap: 9px; margin-top: 12px;
  font-size: 12.5px; font-weight: 600; color: #574d45; cursor: pointer;
}
.pc-switch input { width: 17px; height: 17px; accent-color: #f95901; flex: none; }
.pc-switch em { font-style: normal; font-weight: 500; color: #a89c92; font-size: 11px; }

/* ---- 主按钮 ---- */
.pc-why {
  margin: 2px 0 10px; font-size: 12px; line-height: 1.55; color: #a89c92;
}
.pc-why.warn { color: #d9534f; }
.pc-go {
  width: 100%; padding: 15px; border: none; border-radius: 14px;
  font-size: 15.5px; font-weight: 800; color: #fff; font-family: inherit;
  background: linear-gradient(120deg, #ffb066 0%, #ff7a2e 48%, #f95901 100%);
  cursor: pointer; box-shadow: 0 8px 20px rgba(249, 89, 1, .28);
  transition: transform .14s, filter .14s;
}
.pc-go:active { transform: scale(.985); }
.pc-go:disabled {
  background: #e8e2db; color: #b3a89f; box-shadow: none; cursor: default; transform: none;
}
.pc-err {
  margin-top: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.55;
  color: #c0392b; background: #fdf0ee; border-radius: 10px;
}

/* ---- 结果区 ---- */
.pc-result { margin: 16px 0 12px; }
.pc-result-hd {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 12px;
}
.pc-result-t { font-size: 14px; font-weight: 800; color: var(--text, #23201d); line-height: 1.5; }
.pc-result-t i { display: block; margin-top: 3px; font-style: normal; font-size: 11px; font-weight: 500; color: #a89c92; }
.pc-dlall {
  flex: none; padding: 8px 13px; font-size: 12.5px; font-weight: 700; font-family: inherit;
  color: #b23f00; background: #fff2e8; border: 1px solid #ffd9bd; border-radius: 10px; cursor: pointer;
}
.pc-dlall:active { transform: scale(.97); }

.pc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
@media (min-width: 768px) { .pc-grid { grid-template-columns: repeat(3, 1fr); } }

.pc-card {
  background: #fff; border: 1px solid #f0ece7; border-radius: 13px;
  padding: 9px; box-shadow: 0 2px 8px rgba(35, 32, 29, .04);
}
.pc-card-pic { position: relative; border-radius: 8px; overflow: hidden; line-height: 0; }
.pc-card-pic img { width: 100%; display: block; cursor: zoom-in; }
.pc-card-no {
  position: absolute; top: 5px; left: 5px;
  width: 18px; height: 18px; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800; color: #fff;
  background: rgba(0, 0, 0, .48); border-radius: 50%;
}
/* ⚠️ 序号只画在**我们的列表里**，不烙进导出的图 —— 用户的宣传素材上不该有我们的编号 */
.pc-card-clean {
  position: absolute; top: 5px; right: 5px; padding: 2px 6px;
  font-size: 9.5px; font-weight: 700; color: #0f4a44;
  background: rgba(255, 255, 255, .9); border-radius: 5px;
}
.pc-card-ft { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; }
.pc-card-meta { min-width: 0; }
.pc-card-meta b { display: block; font-size: 12px; font-weight: 800; color: #3a332d; }
.pc-card-meta i { display: block; margin-top: 1px; font-style: normal; font-size: 10px; color: #a89c92; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-dl {
  flex: none; padding: 6px 10px; font-size: 11.5px; font-weight: 700; font-family: inherit;
  color: #b23f00; background: #fff2e8; border: 1px solid #ffd9bd; border-radius: 8px; cursor: pointer;
}
.pc-dl:active { transform: scale(.96); }

/* ---- 用法建议 / 免责 ---- */
.pc-tips { background: #fff; }
.pc-tip-list { margin: 0; padding-left: 19px; }
.pc-tip-list li { font-size: 12.5px; line-height: 1.75; color: #574d45; margin-bottom: 7px; }
.pc-tip-list li:last-child { margin-bottom: 0; }
.pc-tip-list b { color: #23201d; font-weight: 800; }
.pc-note {
  margin: 2px 2px 8px; font-size: 11px; line-height: 1.7; color: #b3a89f;
}

/* ---- 放大预览 ---- */
.pc-mask {
  position: fixed; inset: 0; z-index: 60; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 26px; box-sizing: border-box; background: rgba(18, 16, 14, .9);
}
/* 🔴 必须写：`display:flex` 会把 `hidden` 盖掉，遮罩永远盖着、整页点不动（本轮踩过） */
.pc-mask[hidden] { display: none !important; }
.pc-mask img {
  max-width: 100%; max-height: 56vh; border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.pc-mask-btns { display: flex; gap: 10px; }
.pc-mask-btn {
  padding: 11px 22px; font-size: 13.5px; font-weight: 700; font-family: inherit;
  color: #fff; background: linear-gradient(120deg, #ffb066 0%, #ff7a2e 50%, #f95901 100%);
  border: none; border-radius: 11px; cursor: pointer;
}
.pc-mask-btn.ghost { background: rgba(255, 255, 255, .14); color: #fff; }
.pc-mask-hint { font-size: 11.5px; color: rgba(255, 255, 255, .55); }

/* ---- toast ---- */
.pc-toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 70;
  transform: translateX(-50%) translateY(8px);
  max-width: 84vw; padding: 10px 16px; box-sizing: border-box;
  font-size: 12.5px; font-weight: 600; color: #fff; text-align: center;
  background: rgba(28, 24, 21, .92); border-radius: 10px;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
}
.pc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.pc-toast[hidden] { display: none !important; }

/* 子页里其它可能被 display 盖掉 hidden 的地方，一并兜住 */
#pcHookList[hidden], #pcResult[hidden], #pcErr[hidden], #pcWhy[hidden] { display: none !important; }
