/* 抖音 / 小红书投稿开放公告的版面（配 20261006-social.js）。品牌色：抖音黑底 + 青 #25F4EE /
   红 #FE2C55 的错位描边，小红书 #FF2442 红。只在 #announcementDialog.sn-dialog 里生效。 */
.sn { --sn-dy: #161823; --sn-cyan: #25f4ee; --sn-pink: #fe2c55; --sn-red: #ff2442; color: var(--text, #1d2a22); line-height: 1.7; }
.sn * { box-sizing: border-box; }
.sn p { margin: 10px 0; white-space: normal; }

/* ---- 顶部横幅 */
.sn-hero { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0; margin: 4px 0 14px; border-radius: 14px; overflow: hidden; }
.sn-dy, .sn-xhs { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 104px; padding: 14px 18px; color: #fff; }
.sn-dy { background: radial-gradient(circle at 18% 20%, #25f4ee33, transparent 40%), radial-gradient(circle at 88% 90%, #fe2c5540, transparent 45%), var(--sn-dy); }
.sn-xhs { align-items: flex-end; text-align: right; background: linear-gradient(135deg, #ff4a62, var(--sn-red)); }
.sn-dy small, .sn-xhs small { font-size: 12px; opacity: .85; }
.sn-note { position: absolute; top: 10px; right: 14px; font-size: 30px; font-weight: 900; line-height: 1; color: #fff;
  text-shadow: -2px -1px 0 var(--sn-cyan), 2px 1px 0 var(--sn-pink); }
.sn-glitch { position: relative; font-size: 30px; font-weight: 900; letter-spacing: .02em; line-height: 1.2; }
.sn-glitch::before, .sn-glitch::after { content: attr(data-text); position: absolute; inset: 0; }
.sn-glitch::before { color: var(--sn-cyan); transform: translate(-2px, -1px); mix-blend-mode: screen; }
.sn-glitch::after { color: var(--sn-pink); transform: translate(2px, 1px); mix-blend-mode: screen; }
.sn-xhs b { font-size: 30px; font-weight: 900; line-height: 1.2; letter-spacing: .04em; font-style: italic; }
.sn-x { display: grid; place-items: center; width: 34px; background: linear-gradient(90deg, var(--sn-dy) 50%, var(--sn-red) 50%); color: #fff; font-size: 20px; font-weight: 900; }

.sn-lead { font-size: 15px; }
.sn-lead b { color: var(--green, #2f7d4f); }
.sn-lead mark { white-space: nowrap; padding: 1px 7px; border-radius: 6px; background: var(--sn-pink); color: #fff; font-weight: 800; }

/* ---- 两张仿平台的奖励卡 */
.sn-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.sn-card { min-width: 0; border-radius: 14px; overflow: hidden; }
.sn-card-dy { background: var(--sn-dy); }
.sn-screen { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 168px; padding: 16px 64px 34px 16px; color: #fff;
  background: radial-gradient(circle at 30% 30%, #25f4ee26, transparent 55%), radial-gradient(circle at 70% 80%, #fe2c5530, transparent 55%); }
.sn-screen-tag { align-self: flex-start; padding: 1px 8px; border-radius: 4px; background: var(--sn-pink); font-size: 11px; font-weight: 700; }
.sn-screen strong { font: 900 40px/1.15 ui-monospace, "SF Mono", monospace; letter-spacing: -1px; text-shadow: -2px 0 var(--sn-cyan), 2px 0 var(--sn-pink); }
.sn-screen > small { font-size: 12px; opacity: .8; }
.sn-rail { position: absolute; top: 12px; right: 10px; display: grid; gap: 5px; }
.sn-rail-item { display: grid; justify-items: center; gap: 1px; }
.sn-rail-item i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #ffffff1f; font-style: normal; font-size: 16px; }
.sn-rail-item:first-child i { background: var(--sn-pink); }
.sn-rail-item em { font-size: 9.5px; line-height: 1.3; font-style: normal; opacity: .9; }
.sn-screen-user { position: absolute; left: 16px; bottom: 10px; right: 60px; font-size: 11px; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sn-card-xhs { display: flex; flex-direction: column; background: var(--panel, #fff); border: 1px solid var(--line, #e3e6e4); }
.sn-cover { display: grid; place-items: center; flex: 1; min-height: 112px; padding: 12px; background: linear-gradient(160deg, #fff1f3, #ffd6dc 55%, #ffc2cb); }
.sn-cover span { white-space: pre-line; text-align: center; color: #c4122f; font-size: 17px; font-weight: 900; line-height: 1.35; }
.sn-meta { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 8px; padding: 9px 11px 11px; }
.sn-meta b { grid-column: 1 / -1; font-size: 13px; line-height: 1.4; color: var(--text, #222); }
.sn-author { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted, #777); }
.sn-author::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--green, #2f7d4f), #8fd19e); }
.sn-like { justify-self: end; font-size: 11px; font-weight: 700; color: var(--sn-red); }

/* ---- 三步 */
.sn-steps { counter-reset: sn; display: grid; gap: 8px; margin: 14px 0; padding: 0; list-style: none; }
.sn-steps li { counter-increment: sn; display: grid; grid-template-columns: 26px 56px 1fr; align-items: baseline; gap: 6px; font-size: 13px; }
.sn-steps li::before { content: counter(sn); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800;
  background: linear-gradient(135deg, var(--sn-cyan) -20%, var(--sn-pink) 60%, var(--sn-red)); align-self: center; }
.sn-steps b { font-size: 13px; }
.sn-steps span { color: var(--muted, #5d6a62); }

/* ---- 推荐话题 */
.sn-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border: 1px dashed color-mix(in srgb, var(--sn-red) 45%, transparent);
  border-radius: 10px; background: color-mix(in srgb, var(--sn-red) 6%, var(--panel, #fff)); }
.sn-tags small { color: var(--muted, #66706a); font-size: 11px; }
.sn-tag-text { flex: 1; min-width: 0; color: #2f6fd6; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.sn-tags button { padding: 4px 10px; border: 1px solid var(--sn-red); border-radius: 999px; background: transparent; color: var(--sn-red); font: 600 12px/1.5 inherit; cursor: pointer; }
.sn-foot { font-size: 12px; color: var(--muted, #66706a); }

/* ---- 弹窗本身：顶边换成双色，「去投稿」按钮换成抖音红 */
#announcementDialog.sn-dialog > section { width: min(680px, 96vw); border-top: 0; border-image: none; position: relative; }
#announcementDialog.sn-dialog > section::before { content: ""; display: block; flex: none; height: 7px; background: linear-gradient(90deg, var(--sn-cyan, #25f4ee), #fe2c55 35%, #161823 50%, #ff2442 65%, #ff6b81); }
#announcementDialog.sn-dialog h2 { font-size: 22px; }
#announcementDialog.sn-dialog #announcementSummary { display: none; }
#announcementDialog.sn-dialog #announcementLink { border-color: #fe2c55; background: #fe2c55; color: #fff; font-weight: 700; }

[data-theme="dark"] .sn-cover { background: linear-gradient(160deg, #3a1d24, #5a1f2c 55%, #7a2233); }
[data-theme="dark"] .sn-cover span { color: #ffd2da; }
[data-theme="dark"] .sn-tag-text { color: #7fb0ff; }

@media (max-width: 600px) {
  .sn-hero { grid-template-columns: 1fr; }
  .sn-x { width: auto; height: 26px; background: linear-gradient(180deg, var(--sn-dy) 50%, var(--sn-red) 50%); }
  .sn-dy, .sn-xhs { min-height: 82px; padding: 12px 14px; }
  .sn-xhs { align-items: flex-start; text-align: left; }
  .sn-glitch, .sn-xhs b { font-size: 25px; }
  .sn-cards { grid-template-columns: 1fr; }
  .sn-screen { min-height: 150px; }
  .sn-steps li { grid-template-columns: 26px 1fr; }
  .sn-steps li span { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .sn * { transition: none !important; animation: none !important; } }
