/* ===== 小怂狗软件店 · 高级可爱风（浅粉 + 奶油 + 流光动画） ===== */
:root {
  --pink: #ffd6e8;
  --pink-deep: #ff9ec4;
  --pink-hot: #ff5e9a;
  --cream: #fff8f0;
  --cream-deep: #fff0e0;
  --brown: #8a6d5b;
  --brown-soft: #b89b86;
  --text: #6b4f4f;
  --shadow: 0 10px 32px rgba(255, 118, 170, 0.18);
  --shadow-lg: 0 18px 48px rgba(255, 118, 170, 0.22);
  --radius: 24px;
  --ease-spring: cubic-bezier(.22, 1.2, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, #ffe9f2 0, transparent 38%),
    radial-gradient(circle at 88% 12%, #fff3da 0, transparent 40%),
    linear-gradient(160deg, #fff8f0 0%, #ffeef6 100%);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== 背景流光装饰 ===== */
.bg-decor { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  animation: orbDrift 18s ease-in-out infinite alternate;
}
.orb1 { width: 420px; height: 420px; left: -120px; top: -80px;
  background: radial-gradient(circle, #ffc2dd 0%, transparent 70%); }
.orb2 { width: 380px; height: 380px; right: -110px; top: 18%;
  background: radial-gradient(circle, #ffe3b8 0%, transparent 70%); animation-delay: -6s; }
.orb3 { width: 460px; height: 460px; left: 28%; bottom: -180px;
  background: radial-gradient(circle, #e3d5ff 0%, transparent 70%); animation-delay: -12s; opacity: .4; }
@keyframes orbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(36px, 26px) scale(1.08); }
  100% { transform: translate(-26px, 18px) scale(.94); }
}
.paw {
  position: fixed; bottom: -40px; z-index: 0; pointer-events: none;
  font-size: 18px; opacity: 0;
  animation: pawRise 7s linear forwards;
}
@keyframes pawRise {
  0%   { transform: translateY(0) rotate(0deg) scale(.6); opacity: 0; }
  12%  { opacity: .5; }
  80%  { opacity: .35; }
  100% { transform: translateY(-108vh) rotate(28deg) scale(1); opacity: 0; }
}

/* ===== 背景里跑动的小狗（原图不加处理，白底用 multiply 融掉） ===== */
.bg-dog-wrap {
  position: fixed; z-index: 0; pointer-events: none;
  animation: dogCross 14s linear forwards;
}
.bg-dog-wrap.rtl { animation-name: dogCrossRtl; }
@keyframes dogCross { from { left: -26vw; } to { left: 118vw; } }
@keyframes dogCrossRtl { from { left: 118vw; } to { left: -26vw; } }
.bg-dog {
  display: block; width: 88px; height: auto;
  mix-blend-mode: multiply;      /* 白底融进背景，图片文件原封不动 */
  opacity: .5;
  animation: dogBob .5s ease-in-out infinite;
}
.bg-dog.sit { animation-duration: 1.5s; opacity: .42; }
.bg-dog.sleep { animation-duration: 2.4s; opacity: .38; }
.bg-dog-wrap.rtl .bg-dog { scale: -1 1; }   /* 朝左跑时镜像，不与 bob 冲突 */
@keyframes dogBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.dog-zzz {
  position: absolute; left: 76%; top: 2px; font-size: 14px;
  animation: zzzFloat 2.6s ease-in-out infinite;
}
@keyframes zzzFloat {
  0% { opacity: 0; transform: translateY(0) scale(.7); }
  30% { opacity: .85; }
  100% { opacity: 0; transform: translateY(-20px) scale(1.05); }
}

.wrap { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 30px 18px 60px; }

/* ===== 顶部 ===== */
.header { position: relative; text-align: center; margin-bottom: 24px; animation: dropIn .7s var(--ease-spring) both; }
.mascot-wrap { position: relative; width: 150px; margin: 0 auto 6px; }
.mascot {
  width: 150px; height: auto; display: block; margin: 0 auto; cursor: pointer;
  filter: drop-shadow(0 10px 16px rgba(255, 118, 170, .3));
  animation: mascotFloat 3.6s ease-in-out infinite;
  transition: transform .2s var(--ease-spring);
}
.mascot:hover { transform: scale(1.05); }
@keyframes mascotFloat {
  0%, 100% { transform: translateY(0) scale(1) rotate(-1deg); }
  50% { transform: translateY(-8px) scale(1.03) rotate(1deg); }
}
/* 小狗说话气泡 */
.dog-say {
  position: absolute; top: 2px; left: 50%; z-index: 5;
  transform: translate(-50%, 8px) scale(.7); transform-origin: top center;
  background: #fff; color: #b06a84; font-size: 13px; font-weight: 800;
  white-space: nowrap; padding: 7px 15px; border-radius: 999px;
  border: 2px solid var(--pink-deep);
  box-shadow: 0 8px 18px rgba(255, 118, 170, .28);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .32s var(--ease-spring);
}
.dog-say::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--pink-deep);
}
.dog-say.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
/* 兴奋状态（JS 加 .excited）：整只狗蹦跶 */
#mascotSvg.excited { animation: excitedBounce .42s ease-in-out 3; }
@keyframes excitedBounce {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  30% { transform: translateY(-9px) rotate(-6deg) scale(1.05); }
  60% { transform: translateY(-3px) rotate(6deg) scale(1.05); }
}
/* ===== 宠物互动区（摸摸 / 喂骨头） ===== */
.dog-zone { display: flex; flex-direction: column; align-items: center; gap: 9px; margin: 2px 0 4px; }
.dog-tip {
  font-size: 12.5px; font-weight: 800; color: var(--brown-soft);
  text-align: center; max-width: 19em; line-height: 1.65; letter-spacing: .3px;
  background: #fff7fb; border: 1.5px dashed #ffc4dd; border-radius: 999px;
  padding: 6px 14px; box-shadow: 0 3px 10px rgba(255, 170, 200, .22);
  transition: opacity .2s;
}
.dog-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== 小怂狗院子：真跑动 + 扔盘子去捡 ===== */
.dog-yard { position: relative; width: 100%; height: 150px; margin: 0 auto 4px; }
.yard-ground {
  position: absolute; left: 3%; right: 3%; bottom: 2px; height: 20px;
  background: linear-gradient(180deg, #dcf4d2, #c6ecba);
  border-radius: 999px; opacity: .85;
}
.yard-ground::before, .yard-ground::after {
  content: '🌱'; position: absolute; bottom: 13px; font-size: 13px;
}
.yard-ground::before { left: 6%; }
.yard-ground::after { right: 5%; }
.dog-runner {
  position: absolute; bottom: 8px; left: 40%; width: 100px; margin-left: -50px;
  z-index: 2; cursor: pointer; will-change: left;
}
.dog-flip { transition: transform .16s ease; }
.dog-flip.face-right { transform: scaleX(-1); }
.dog-runner .mascot { width: 100px; }
.dog-runner.running .mascot {
  filter: drop-shadow(0 6px 8px rgba(255, 118, 170, .22));
}
.dog-runner.sleeping .mascot {
  width: 122px; margin-left: -11px;
  animation: none;
}
.frisbee {
  position: absolute; z-index: 3; font-size: 26px; line-height: 1;
  pointer-events: none; display: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .16));
}
.frisbee .fris-inner { display: block; animation: frisSpin .45s linear infinite; }
.frisbee.on-ground .fris-inner { animation: none; }
@keyframes frisSpin { to { transform: rotate(360deg); } }
.pet-btn.fris {
  color: #2e7d4f; background: linear-gradient(135deg, #e5f8e8, #cdeeda);
  border-color: #a9dcb8;
  box-shadow: 0 4px 11px rgba(120, 200, 140, .3), inset 0 1px 0 #ffffff90;
}
.pet-btn {
  border: 1.5px solid #ffc4dd; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 800; letter-spacing: .5px; color: #7a4a2b;
  padding: 9px 17px; border-radius: 999px;
  background: linear-gradient(135deg, #fff3e2, #ffe3ef);
  box-shadow: 0 4px 11px rgba(255, 170, 200, .32), inset 0 1px 0 #ffffff90;
  transition: transform .14s var(--ease-spring), box-shadow .14s, filter .14s;
}
.pet-btn.feed { color: #a0612b; background: linear-gradient(135deg, #fff2d8, #ffe6c2); border-color: #ffd29a; box-shadow: 0 4px 11px rgba(255, 190, 120, .32), inset 0 1px 0 #ffffff90; }
.pet-btn.praise { color: #9a6b00; background: linear-gradient(135deg, #fff7da, #ffe9a8); border-color: #ffd86b; box-shadow: 0 4px 11px rgba(255, 200, 80, .35), inset 0 1px 0 #ffffff90; }
.pet-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.pet-btn:active { transform: translateY(1px) scale(.96); }
.pet-btn:disabled { opacity: .55; cursor: default; transform: none; filter: none; }
/* 摸摸：眯眼享受，整只狗蹭蹭 */
#mascotSvg.petting { animation: petWiggle .5s ease-in-out 2; }
@keyframes petWiggle {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  25% { transform: translateY(-2px) rotate(-5deg) scale(1.03); }
  75% { transform: translateY(-2px) rotate(5deg) scale(1.03); }
}
/* 喂食：狗开心点头 */
#mascotSvg.eating { animation: eatNod .22s ease-in-out 5; }
@keyframes eatNod {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(4px) scaleY(.88) scaleX(1.04); }
}
/* 获好评：狗开心转圈 */
#mascotSvg.praising { animation: praiseSpin .6s ease-in-out 2; }
@keyframes praiseSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(1); }
}
/* 累计好评数 */
.praise-count {
  font-size: 12px; font-weight: 800; color: #c08a2b; letter-spacing: .3px;
  min-height: 16px; text-align: center;
}
/* 好评引导弹窗（去闲鱼夸店主） */
.praise-mask {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(60, 30, 50, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: pmFadeIn .22s ease both;
}
.praise-mask.hide { animation: pmFadeOut .22s ease both; pointer-events: none; }
@keyframes pmFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pmFadeOut { to { opacity: 0; } }
.praise-modal {
  width: min(86vw, 340px); background: #fffafc; border: 2px solid #ffd0e4; border-radius: 22px;
  box-shadow: 0 18px 50px rgba(255, 120, 170, .35); padding: 22px 20px 18px; text-align: center;
  animation: pmPop .3s var(--ease-spring) both;
}
@keyframes pmPop { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
.praise-modal .emoji { font-size: 40px; animation: bob 2.4s ease-in-out infinite; }
.praise-modal h3 { margin: 8px 0 6px; font-size: 18px; color: #c85a86; }
.praise-modal p { margin: 0 0 16px; font-size: 13.5px; color: var(--brown-soft); line-height: 1.75; }
.praise-modal .row-btns { display: flex; flex-direction: column; gap: 10px; }
.praise-modal .go-xianyu {
  border: none; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 800; color: #fff;
  padding: 12px; border-radius: 999px; letter-spacing: .5px;
  background: linear-gradient(135deg, #ff7eb3, #ff9a5a);
  box-shadow: 0 6px 16px rgba(255, 130, 170, .45);
}
.praise-modal .go-xianyu:active { transform: scale(.97); }
.praise-modal .shop-btn { font-size: 14px; line-height: 1.35; padding: 11px 14px; white-space: normal; }
.praise-modal .copy-shop {
  border: 1.5px solid #ffc4dd; background: #fff3f9; color: #b06a84; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 800; padding: 9px; border-radius: 999px;
}
.praise-modal .later {
  margin-top: 12px; background: none; border: none; color: #b9a6ad; font-size: 12.5px;
  cursor: pointer; text-decoration: underline; font-family: inherit;
}
/* 飘出的爱心 / 骨头 */
.float-emoji {
  position: fixed; z-index: 60; pointer-events: none; font-size: 21px;
  filter: drop-shadow(0 2px 4px rgba(255, 120, 170, .35));
  transition: transform 1s cubic-bezier(.22,.9,.36,1), opacity 1s ease-out;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-18px) scale(.96); } to { opacity: 1; transform: none; } }
.shop-title {
  font-size: 32px; font-weight: 900; margin: 4px 0 3px; letter-spacing: 2px;
  background: linear-gradient(110deg, #ff7eb3, #ffa26b, #c9a0ff, #ff7eb3);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradientFlow 7s linear infinite;
}
@keyframes gradientFlow { to { background-position: 220% center; } }
.subtitle { color: var(--brown-soft); font-size: 14px; letter-spacing: .5px; }

/* ===== 卡片（玻璃 + 渐变描边） ===== */
.card {
  position: relative;
  background: linear-gradient(#fffffff2, #fffaf3f2) padding-box,
              linear-gradient(135deg, #ffd6e8, #ffe9c9 55%, #e6d6ff) border-box;
  border: 2px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 26px;
  margin-bottom: 18px;
  backdrop-filter: blur(12px) saturate(1.25);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
}
.card.enter { animation: fadeUp .55s var(--ease-spring) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.card h2 {
  font-size: 19px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px;
  letter-spacing: .5px;
}
.card h2 .emoji { font-size: 22px; animation: bob 2.6s ease-in-out infinite; display: inline-block; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-6deg); } }

/* ===== 账号密码卡片（带小狗 + 背景氛围） ===== */
.card.acct-card { position: relative; overflow: hidden; }
.card.acct-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 18% 4%, #ffe6f1 0, transparent 58%),
    radial-gradient(circle at 88% 28%, #fff0d8 0, transparent 52%),
    radial-gradient(circle at 30% 96%, #ece0ff 0, transparent 55%);
  opacity: .8;
}
.card.acct-card > *:not(.acct-dog):not(.acct-paw):not(.acct-spark) {
  position: relative; z-index: 1;
}
.acct-dog {
  position: absolute; right: 4px; top: -10px; z-index: 0;
  width: 62px; height: auto; pointer-events: none;
  opacity: .95; transform: rotate(8deg);
  filter: drop-shadow(0 5px 10px rgba(255, 118, 170, .28));
  animation: mascotFloat 3.6s ease-in-out infinite;
}
.acct-paw {
  position: absolute; z-index: 0; pointer-events: none; color: #ff9ec4;
  animation: pawPulse 3.2s ease-in-out infinite;
}
.acct-paw.p1 { left: 12px; bottom: 10px; font-size: 24px; opacity: .16; transform: rotate(-18deg); }
.acct-paw.p2 { right: 16px; bottom: 18px; font-size: 17px; opacity: .13; transform: rotate(24deg); animation-delay: -1.4s; }
@keyframes pawPulse { 0%, 100% { scale: 1; } 50% { scale: 1.14; } }
@keyframes sparkle { 0%, 100% { opacity: .15; scale: .5; } 50% { opacity: .95; scale: 1; } }
.acct-spark {
  position: absolute; z-index: 0; pointer-events: none; font-size: 15px; color: #ffc46b;
  animation: sparkle 2.4s ease-in-out infinite;
}
.acct-spark.s1 { right: 74px; top: 16px; }
.acct-spark.s2 { left: 20px; top: 22px; animation-delay: -1.2s; font-size: 12px; }

/* ===== 账号行 ===== */
.row {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #fff8f0, #fff2f7);
  border: 1.5px dashed var(--pink-deep);
  border-radius: 18px; padding: 12px 14px; margin-bottom: 12px;
  transition: transform .15s var(--ease-spring), box-shadow .15s;
}
.row:hover { box-shadow: 0 6px 16px rgba(255, 118, 170, .15); }
.row .label { font-weight: 800; min-width: 76px; color: var(--brown); letter-spacing: 1px; }
.row .value {
  flex: 1; word-break: break-all; font-size: 16px; font-weight: 700; white-space: pre-wrap;
  transition: opacity .18s;
}
.row .value.revealing { animation: revealPop .3s var(--ease-spring); }
@keyframes revealPop { 0% { transform: scale(.92); filter: blur(2px); } 100% { transform: scale(1); filter: none; } }

/* ===== 按钮 ===== */
.btn {
  position: relative; overflow: hidden;
  border: none; cursor: pointer;
  border-radius: 999px; padding: 10px 18px;
  font-size: 14px; font-weight: 800; letter-spacing: .5px;
  color: #fff;
  background: linear-gradient(135deg, #ffb3d1, #ff8fb8);
  box-shadow: 0 5px 14px rgba(255, 143, 184, 0.45), inset 0 1px 0 #ffffff80;
  transition: transform .14s var(--ease-spring), box-shadow .14s, filter .14s;
  white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, #ffffff70, transparent);
  transform: skewX(-20deg); transition: left .5s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 143, 184, 0.5), inset 0 1px 0 #ffffff80; }
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(1px) scale(.97); }
.btn:disabled { filter: grayscale(.4) brightness(1.02); cursor: wait; transform: none; }
.btn.copy { background: linear-gradient(135deg, #ffd28a, #ffb55e); box-shadow: 0 5px 14px rgba(255, 181, 94, 0.45), inset 0 1px 0 #ffffff70; }
.btn.copy:hover { box-shadow: 0 8px 20px rgba(255, 181, 94, 0.5), inset 0 1px 0 #ffffff70; }
.btn.ghost { background: #fff; color: var(--brown); border: 2px solid var(--pink-deep); box-shadow: none; }
.btn.danger { background: linear-gradient(135deg, #ff9a9a, #ff6b6b); box-shadow: 0 5px 14px rgba(255, 107, 107, 0.4), inset 0 1px 0 #ffffff60; }
.btn.big { padding: 13px 24px; font-size: 16px; width: 100%; }
.btn.code-link {
  display: block; width: 100%; margin-top: 14px; text-align: center; text-decoration: none;
  background: linear-gradient(135deg, #c9b3ff, #a98bff);
  box-shadow: 0 5px 14px rgba(169, 139, 255, 0.45), inset 0 1px 0 #ffffff60;
  animation: softGlow 2.6s ease-in-out infinite;
}
@keyframes softGlow { 0%,100% { box-shadow: 0 5px 14px rgba(169,139,255,.45), inset 0 1px 0 #ffffff60; } 50% { box-shadow: 0 5px 22px rgba(169,139,255,.7), inset 0 1px 0 #ffffff60; } }

/* ===== 步骤 / 注意事项 ===== */
.note {
  background: linear-gradient(135deg, #fff3e6, #ffeef5);
  border-radius: 18px; padding: 14px 16px; margin-bottom: 14px;
  white-space: pre-wrap; font-size: 15px;
  border: 1.5px solid #ffe4d0;
}
.note .tag {
  display: inline-block; font-weight: 800; color: #fff; letter-spacing: 1px;
  background: linear-gradient(135deg, #ff9ec4, #ff7eb3);
  border-radius: 999px; padding: 3px 14px; font-size: 13px; margin-bottom: 8px;
  box-shadow: 0 3px 8px rgba(255, 118, 170, .35);
}
.note.warn { border-color: #ffe0b8; background: linear-gradient(135deg, #fff6e8, #fff0e0); }
.note.warn .tag { background: linear-gradient(135deg, #ffc46b, #ffa94d); box-shadow: 0 3px 8px rgba(255, 169, 77, .35); }

/* ===== 倒计时 ===== */
.timer {
  text-align: center; font-size: 15px; color: var(--brown);
  background: linear-gradient(135deg, #fff0f6, #fff8ee);
  border: 1.5px solid var(--pink);
  border-radius: 18px; padding: 12px; margin-bottom: 18px;
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(255, 118, 170, .12);
}
.timer b { color: var(--pink-hot); font-size: 18px; font-variant-numeric: tabular-nums; }
.timer.tick b { animation: tickPop .35s var(--ease-spring); display: inline-block; }
@keyframes tickPop { 0% { transform: scale(1.14); } 100% { transform: scale(1); } }
.timer.urgent { border-color: #ffb55e; background: linear-gradient(135deg, #fff6e8, #fff0e0); animation: heartbeat 1.1s ease-in-out infinite; }
.timer.urgent b { color: #ff8c1a; }
@keyframes heartbeat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.015); } }

/* ===== 状态提示 ===== */
.status { text-align: center; padding: 44px 20px; font-size: 17px; }
.status .big-emoji { font-size: 58px; display: block; margin-bottom: 12px; animation: bob 1.8s ease-in-out infinite; }
.status.error { color: #d36; }
.status .dots::after { content: "…"; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "·"; } 50% { content: "··"; } 75% { content: "···"; } }

/* ===== 卡密输入 ===== */
.cdk-card { text-align: center; }
.cdk-card .cdk-input {
  width: 100%; padding: 15px 16px; text-align: center;
  border: 2px solid var(--pink); border-radius: 16px;
  font-size: 19px; font-weight: 800; letter-spacing: 3px;
  font-family: inherit; color: var(--text); background: var(--cream);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.cdk-card .cdk-input:focus {
  outline: none; border-color: var(--pink-hot); background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 118, 170, .16);
}
.cdk-card .cdk-input::placeholder { letter-spacing: 1px; font-weight: 600; color: #d8a9c0; }
.cdk-card .cdk-btn { margin-top: 14px; }
.cdk-card .cdk-err { color: var(--pink-hot); font-size: 13px; font-weight: 700; margin-top: 10px; min-height: 18px; }

/* ===== 图文步骤 ===== */
.step-text {
  white-space: pre-wrap; word-break: break-word;
  font-size: 15px; font-weight: 700; color: #d63384;
  margin: 12px 0; line-height: 1.75;
}
.step-img { opacity: 0; transition: opacity .5s ease; }
.step-img.loaded { opacity: 1; }
.step-fig { margin: 12px 0; }
.step-fig img { box-shadow: 0 8px 22px rgba(255, 118, 170, .16); }
.step-cap { text-align: center; margin-bottom: 8px; color: #b06a84; font-weight: 700; white-space: pre-wrap; word-break: break-word; }

/* ===== 解锁成功特效用 ===== */
.unlock-flash { animation: unlockFlash .8s ease both; }
@keyframes unlockFlash { 0% { filter: brightness(1.35) saturate(1.3); } 100% { filter: none; } }

/* ===== 表单（后台） ===== */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; color: var(--brown); letter-spacing: .5px; }
.field input, .field textarea {
  width: 100%; border: 2px solid var(--pink); border-radius: 14px;
  padding: 11px 13px; font-size: 15px; font-family: inherit;
  color: var(--text); background: var(--cream); resize: vertical;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--pink-hot); background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 118, 170, .14);
}
.field textarea { min-height: 110px; line-height: 1.6; }

/* ===== 开关（后台） ===== */
.switch-line {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #fff8f0, #fff2f7);
  border: 1.5px solid var(--pink); border-radius: 18px;
  padding: 14px 16px; margin-bottom: 16px;
}
.switch-line .txt { font-weight: 800; }
.switch {
  position: relative; width: 60px; height: 32px; flex: none;
  background: #ffc4dc; border-radius: 999px; cursor: pointer; transition: background .25s;
}
.switch.on { background: linear-gradient(135deg, #7fe0a0, #6fd08c); }
.switch .dot {
  position: absolute; top: 3px; left: 3px; width: 26px; height: 26px;
  background: #fff; border-radius: 50%; transition: left .25s var(--ease-spring);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
}
.switch.on .dot { left: 31px; }

/* ===== 令牌列表（后台） ===== */
.token-item {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(135deg, #fff8f0, #fff2f7);
  border: 1.5px solid var(--pink); border-radius: 16px;
  padding: 10px 12px; margin-bottom: 10px; font-size: 14px;
}
.token-item .link { flex: 1; min-width: 200px; word-break: break-all; font-size: 13px; color: var(--brown); }
.token-item .mini { font-size: 12px; color: var(--brown-soft); }

/* ===== 管理员布局 ===== */
.admin-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(12px);
  background: linear-gradient(135deg, #a0866f, #8a6d5b); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(138, 109, 91, .35);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease-spring);
  font-size: 14px; font-weight: 700; z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--pink), transparent); margin: 22px 0; border: none; }
.account-group { border: 1.5px dashed #ffc6dd; border-radius: 18px; padding: 14px; margin-bottom: 14px; background: #fff7fb; }
.group-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.g-title { font-weight: 800; color: var(--brown); }
.foot { text-align: center; color: var(--brown-soft); font-size: 12px; margin-top: 26px; letter-spacing: .5px; }
.mini { font-size: 13px; color: var(--brown-soft); }

/* ===== 减弱动效偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===== 后台卡密列表 ===== */
.token-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1.5px solid #ffe0ec;border-radius:10px;margin-bottom:8px;background:#fffdf8;font-size:14px;flex-wrap:wrap;}
.token-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-weight:700;letter-spacing:1px;color:#8a5a3b;}
.token-info{flex:1;font-size:12px;color:#b08;}
.token-row .btn{padding:3px 10px;font-size:12px;}
.st-fresh .token-info{color:#3d9b6a;font-weight:600;}
.st-live .token-info{color:#c07ab8;font-weight:600;}
.st-dead{opacity:.5;}
.st-dead .token-info{color:#c05070;}
