/* 热门软件资源站 - 移动端优先样式（主题色 #d4788f） */
:root {
  --theme: #d4788f;
  --theme-deep: #b95d76;
  --theme-light: #fdf0f4;
  --text: #333;
  --muted: #999;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: #f4f6f7;
  color: var(--text);
  min-height: 100vh;
}
body.task-body { background: #251019; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== 首页（数值取自参考站实际样式，移动优先） ===== */
.home-body { background: #f7f8fa; color: #171717; }
.topbar { display: flex; align-items: center; justify-content: center; height: 40px; font-size: 15px; font-weight: 800; color: #171717; }
.home { max-width: 1040px; margin: 0 auto; padding: 0 10px 36px; }

.hero {
  position: relative;
  display: flex; align-items: stretch; gap: 8px;
  aspect-ratio: 16/9;
  color: #fff;
  background: url("../assets/hero.svg") center / cover no-repeat, linear-gradient(135deg, #217c80, #75c1b9);
  border-radius: 15px;
  padding: 9px;
  overflow: hidden;
}
.hero-left {
  position: relative; z-index: 1;
  flex: 0 0 59%; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-left: 4.5%;
}
.hero-left .badge {
  display: inline-block;
  width: fit-content;
  background: rgba(255, 255, 255, .19);
  color: #fff;
  font-size: 7px;
  padding: 2px 5px;
  border-radius: 3px;
}
.hero-left h1 {
  margin: 6px 0 3px;
  font-size: clamp(20px, 5.4vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  overflow-wrap: anywhere;
}
.hero-left .sub {
  margin: 0 0 8px;
  font-size: clamp(11px, 2.7vw, 28px);
  font-weight: 400;
  color: rgba(255, 255, 255, .82);
  overflow-wrap: anywhere;
}
.btn-detail {
  border: none;
  width: fit-content;
  background: #fff;
  color: #07978a;
  font-size: clamp(12px, 2.5vw, 26px);
  font-weight: 800;
  padding: 6px 11px;
  border-radius: 5px;
  cursor: pointer;
}
.btn-detail:active { transform: scale(.97); }

.hot-panel {
  position: relative; z-index: 1;
  flex: 0 0 41%; max-width: 41%; align-self: stretch;
  display: flex; flex-direction: column; justify-content: center;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  background: linear-gradient(145deg, #03151ae6, #0f1215d1);
  border: 1px solid #ff504ab8;
  border-radius: 7px;
  padding: 7px;
  box-shadow: inset 0 0 10px #00aeae0f, 0 4px 10px #00000024;
}
.hot-panel::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -6px;
  width: 1px; border-radius: 2px; opacity: .9;
  background: linear-gradient(#0000, #03d6ce 12% 88%, #0000);
}
.hot-panel h3 { margin: 0 0 5px; color: #fff; font-size: 13px; line-height: 1.2; font-weight: 700; text-shadow: 0 2px 10px #0000006b; }
.hot-item {
  display: flex; align-items: center; gap: 5px;
  height: 40px; padding: 3px 5px; margin-bottom: 5px;
  background: linear-gradient(100deg, #0e1b1de0, #2f1918b8);
  border: 1px solid #ff6f4e3d;
  border-radius: 6px;
  box-shadow: inset 0 1px #ffffff08, 0 2px 6px #00000024;
}
.hot-item:last-child { margin-bottom: 0; }
.hot-item:active { background: linear-gradient(100deg, #0e2325f0, #3c1c19d1); }
.hot-item .hicon {
  width: 32px; height: 32px; flex: none;
  border-radius: 6px; background: #14343a; border: 1px solid #ffffff6b;
  box-shadow: 0 0 5px #ff5e4f3d;
  display: grid; place-items: center;
  font-size: 16px; overflow: hidden;
}
.hot-item .hicon img { width: 100%; height: 100%; object-fit: cover; }
.hot-item .hname {
  flex: 1; min-width: 0; color: #fff; font-size: 8px; font-weight: 800; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis; overflow-wrap: anywhere; word-break: break-all;
  text-shadow: 0 1px 5px #00000073;
}
.hot-item .htag {
  flex: none;
  background: #69221dad; color: #ff6558;
  font-size: 6px; font-weight: 800;
  padding: 3px 4px;
  border: 1px solid #ff655433;
  border-radius: 999px;
}
.hot-empty { color: rgba(255,255,255,.6); font-size: 13px; text-align: center; margin: 0 0 10px; }

.search-card {
  display: block; position: relative;
  margin: 18px 0 12px;
  padding: 11px 12px 12px;
  background: linear-gradient(135deg, #eafffc, #f7fffe);
  border: 2px solid #08a89a;
  border-radius: 18px;
  box-shadow: 0 8px 22px #08a89a2e;
}
.search-card label { display: block; margin: 0 0 8px 3px; font-size: 14px; font-weight: 900; color: #087e74; }
.search-box { position: relative; }
.search-box .sicon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); display: flex; color: #079f91; }
.search-box .sicon svg { display: block; }
.search-box input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 1px solid #9bded8;
  border-radius: 13px;
  font-size: 14px;
  color: #172b2a;
  background: #fff;
  outline: none;
  box-shadow: inset 0 1px 2px #195a540d;
}
.search-box input::placeholder { color: #708886; }
.search-box input:focus { border-color: #079f91; box-shadow: 0 0 0 4px #079f9126; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 17px 0 8px; }
.tab {
  flex: none;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #777;
  font-size: 15px;
  padding: 7px 14px;
  border-radius: 9px;
  cursor: pointer;
}
.tab.active { background: #222; border-color: #222; color: #fff; font-weight: 700; }

.list-title { display: flex; align-items: baseline; margin: 5px 3px 11px; }
.list-title h2 { margin: 0; font-size: 16px; font-weight: 800; color: #171717; }
.list-title span { font-size: 10px; color: #aaa; margin-left: 8px; font-weight: 400; }

#resList { display: grid; gap: 10px; }
.res-row {
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  height: 96px;
  padding: 12px;
  overflow: hidden;
}
.res-row .ricon {
  width: 52px; height: 52px; flex: none;
  border-radius: 11px; background: #f3f4f6; border: 1px dashed #d8dbe0;
  display: grid; place-items: center;
  font-size: 24px; overflow: hidden;
}
.res-row .ricon img { width: 100%; height: 100%; object-fit: cover; }
.res-row .meta { flex: 1; min-width: 0; overflow: hidden; }
.res-row .rname {
  font-size: 14px; font-weight: 750; color: #171717; line-height: 1.35; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere; word-break: break-all;
}
.res-row .rmeta { display: flex; align-items: center; flex-wrap: wrap; margin-top: 4px; font-size: 10px; color: #aaa; line-height: 1.5; }
.res-row .rtag { color: #069f8f; background: #e9faf7; border-radius: 3px; padding: 1px 5px; margin-right: 5px; }
.res-row .stars { color: #e19000; }
.res-row .score { color: #e19000; font-weight: 700; }
.btn-get {
  flex: none;
  background: #079f91;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  border: none;
  border-radius: 9px;
  padding: 8px 17px;
  cursor: pointer;
  text-align: center;
}
.btn-get:active { transform: scale(.96); }
.empty { text-align: center; color: #999; font-size: 13px; padding: 26px 0; }
.foot { text-align: center; color: #c7c7c7; font-size: 11px; padding: 28px 0; }

.contact-fab {
  position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 132px; min-height: 48px;
  padding: 11px 17px;
  background: linear-gradient(135deg, #5572f2, #315ee8);
  color: #fff;
  border: none;
  font-size: 16px; font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 10px 28px #315ee859;
  z-index: 99;
  cursor: pointer;
}
.contact-fab:active { transform: scale(.96); }

/* ===== 在线客服聊天窗 ===== */
.chat-mask {
  position: fixed; inset: 0;
  background: rgba(20, 30, 40, .45);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.chat-mask[hidden] { display: none; }
.chat-box {
  width: 100%; max-width: 460px; max-height: 80vh;
  background: #fff; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
}
.chat-head {
  background: #3d6df6; color: #fff;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  flex: none;
}
.chat-title { font-size: 16px; font-weight: 800; }
.chat-sub { font-size: 11.5px; opacity: .92; margin-top: 4px; }
.chat-close {
  width: 28px; height: 28px; flex: none;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .22); color: #fff;
  font-size: 13px; cursor: pointer;
}
.chat-body {
  flex: 1; overflow-y: auto;
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  background: #fff;
}
.msg { display: flex; gap: 8px; max-width: 90%; }
.msg.bot { align-self: flex-start; }
.msg.me { align-self: flex-end; }
.msg .avatar {
  width: 36px; height: 36px; flex: none;
  border-radius: 50%;
  background: #eef2ff; border: 2px solid #3d6df6;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.msg .bot-col { min-width: 0; }
.msg .bubble {
  background: #f4f6fa;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.75;
  word-break: break-all;
}
.msg.me .bubble { background: #3d6df6; color: #fff; }
.msg .bubble a { color: #3d6df6; text-decoration: underline; word-break: break-all; }
.msg .time { font-size: 10.5px; color: #aab3bd; margin-top: 3px; text-align: right; }
.msg .autotag { font-size: 11px; color: #3d6df6; font-weight: 700; margin-bottom: 4px; }
.msg a { color: #3d6df6; }
.quick { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.quick button {
  text-align: left;
  background: #fff;
  border: 1px solid #e6e9f0;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
}
.quick button:active { background: #f4f6fa; }
.chat-foot {
  flex: none;
  display: flex; gap: 10px; align-items: center;
  padding: 12px;
  border-top: 1px solid #eef1f4;
}
.chat-plus {
  width: 40px; height: 40px; flex: none;
  border: none; border-radius: 50%;
  background: #3d6df6; color: #fff;
  font-size: 18px; cursor: pointer;
}
.chat-foot input {
  flex: 1; min-width: 0;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 13.5px;
  outline: none;
}
.chat-foot input:focus { border-color: #3d6df6; }
.chat-send {
  flex: none;
  border: none; border-radius: 10px;
  background: #3d6df6; color: #fff;
  font-size: 14px; font-weight: 700;
  padding: 11px 18px;
  cursor: pointer;
}

/* 桌面端放大版式（≥701px） */
@media (min-width: 701px) {
  .home { padding: 0 16px 60px; }
  .topbar { height: 52px; font-size: 17px; }
  .hero { aspect-ratio: 1031/392; gap: 40px; padding: 24px; }
  .hero-left { flex: 1 1 0; min-width: 0; padding-left: 0; }
  .hero-left .badge { font-size: 12px; padding: 4px 10px; border-radius: 6px; }
  .hero-left h1 { font-size: 44px; }
  .hero-left .sub { font-size: 18px; }
  .btn-detail { font-size: 16px; padding: 10px 20px; border-radius: 8px; }
  .hot-panel { flex: 0 0 34%; max-width: none; padding: 16px 18px; border-radius: 14px; border-color: #ff5b54; }
  .hot-panel::before { left: -18px; width: 2px; }
  .hot-panel h3 { font-size: 24px; margin-bottom: 12px; }
  .hot-item { height: auto; min-height: 74px; padding: 8px 12px; gap: 12px; margin-bottom: 10px; border-radius: 12px; }
  .hot-item .hicon { width: 54px; height: 54px; border-radius: 11px; }
  .hot-item .hname { font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hot-item .htag { font-size: 12px; padding: 6px 10px; background: #742b25; border: none; color: #ff6a5c; white-space: nowrap; }
  .res-row { height: auto; min-height: 96px; padding: 14px 16px; }
}

/* ===== 活动页（深色背景 + 米色容器） ===== */
.page { max-width: 760px; margin: 0 auto; padding: 18px 12px 46px; }
.back {
  display: block;
  margin: 0 auto 14px;
  padding: 6px 14px;
  border: none;
  background: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.task-wrap { background: #f5eee2; border-radius: 22px; padding: 16px 14px; }
.notice {
  background: #fdecec;
  border-left: 6px solid #e23c3c;
  border-radius: 10px;
  padding: 16px 14px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.9;
  color: #e23c3c;
  text-align: center;
  margin-bottom: 16px;
}
.step {
  background: #fff;
  border-radius: 16px;
  padding: 16px 14px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}
.step h2 { margin: 0 0 14px; font-size: 16.5px; color: #111; }
.step1-box { border: 1px solid #f0e6da; border-radius: 12px; padding: 16px 12px; text-align: center; }
.step1-name { font-size: 15px; font-weight: 800; color: #111; margin-bottom: 14px; }
.pf-grid { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
button.pf-tile {
  border: none; background: none; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
}
button.pf-tile:active { transform: scale(.93); }
.pf-ico {
  width: 52px; height: 52px; border-radius: 14px;
  background: #222; color: #fff; font-size: 26px; line-height: 52px; text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
}
.pf-ico[data-key="xhs"] { background: #ff2442; }
.pf-ico[data-key="dy"] { background: #161823; }
.pf-ico[data-key="bili"] { background: #fb7299; }
.pf-ico[data-key="ks"] { background: #ff7f2a; }
img.pf-ico { background: none; object-fit: cover; }
.pf-name { font-size: 12px; color: #333; margin-top: 7px; }
.step p.hint-red {
  color: #e23c3c; font-weight: 800; font-size: 14px;
  line-height: 1.75; text-align: center; margin: 16px 0 0;
}
.step p.hint-gray { color: #333; font-size: 12.5px; line-height: 1.7; text-align: center; margin: 10px 0 0; }
.comment-box {
  background: #fff; border: 1px solid #ddd; border-radius: 10px;
  padding: 13px 14px; font-size: 14.5px; line-height: 1.7;
  word-break: break-all; color: #111;
}
.copy-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
button.copy-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: none; cursor: pointer; padding: 9px 18px; border-radius: 22px;
  color: #fff; font-size: 14px; font-weight: 800;
  background: linear-gradient(180deg, #ff9a2e, #ff6a00);
  box-shadow: 0 4px 10px rgba(255, 122, 24, .35);
}
button.copy-btn:active { transform: scale(.95); }
.copy-btn .cico {
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  color: #333; font-size: 13px; line-height: 22px; text-align: center; flex: none;
}
.copy-btn .cico[data-key="xhs"] { color: #ff2442; }
.copy-btn .cico[data-key="bili"] { color: #fb7299; }
.copy-btn .cico[data-key="ks"] { color: #ff7f2a; }
.copy-btn img.cico { background: none; border-radius: 7px; }
.step p { font-size: 13.5px; line-height: 1.7; margin: 0 0 10px; }
button.submit {
  width: 100%;
  padding: 13px 0;
  border: none;
  border-radius: 26px;
  background: linear-gradient(135deg, #ff9a2e, #ff6a00);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(255, 122, 24, .35);
  cursor: pointer;
}
button.submit:disabled { opacity: .55; box-shadow: none; cursor: not-allowed; }
.muted { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px !important; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.gallery img { border-radius: 10px; aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.task-foot { text-align: center; font-size: 11.5px; color: #a2938a; margin-top: 18px; }

/* 右侧竖排联系客服按钮 */
.service-tab {
  position: fixed; right: 0; top: 42%; z-index: 60;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border: none; cursor: pointer; color: #fff;
  background: #3d6df6; border-radius: 12px 0 0 12px;
  padding: 14px 9px; box-shadow: 0 4px 14px rgba(61, 109, 246, .45);
}
.service-tab .v-txt { writing-mode: vertical-rl; letter-spacing: 6px; font-size: 15px; font-weight: 700; }
.service-tab .v-ico { font-size: 16px; }

/* ===== 提交截图页 ===== */
.upload-page {
  background: #fff;
  border-radius: 18px;
  padding: 26px 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  text-align: center;
}
.upload-page .spark { font-size: 40px; }
.upload-page h1 { font-size: 20px; margin: 8px 0 6px; }
.upload-intro { font-size: 13px; color: #666; line-height: 1.7; margin: 0 0 16px; }
.upload-zone {
  display: block;
  border: 2px dashed var(--theme);
  border-radius: 14px;
  background: var(--theme-light);
  padding: 26px 12px;
  cursor: pointer;
  margin-bottom: 12px;
}
.upload-zone .plus { display: block; font-size: 30px; color: var(--theme); line-height: 1; }
.upload-zone span.txt { display: block; font-size: 14px; font-weight: 700; color: var(--theme-deep); margin-top: 6px; }
.upload-zone small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.upload-zone input { display: none; }
.counter { font-size: 13px; color: var(--theme-deep); font-weight: 600; margin-bottom: 10px; }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.preview-item { position: relative; }
.preview-item img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.preview-item button {
  position: absolute; top: -6px; right: -6px;
  width: 22px; height: 22px;
  border: none; border-radius: 50%;
  background: #333; color: #fff;
  font-size: 13px; line-height: 1;
  cursor: pointer;
}
.upload-rules {
  text-align: left;
  font-size: 12px;
  color: #7a5a63;
  background: #faf3f5;
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.8;
  margin-bottom: 14px;
  white-space: pre-line;
}
button.upload-submit {
  width: 100%;
  padding: 13px 0;
  border: none;
  border-radius: 26px;
  background: linear-gradient(135deg, #ff9a2e, #ff6a00);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
button.upload-submit:disabled { opacity: .5; cursor: not-allowed; }
.privacy { font-size: 11.5px; color: var(--muted); margin: 12px 0 0; }

/* ===== 领取成功页 ===== */
.success-page { text-align: center; }
.result { background: #fff; border-radius: 18px; padding: 30px 16px; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.claim-success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--theme), #e291a6);
  color: #fff;
  font-size: 34px; line-height: 64px;
}
.result h1 { font-size: 21px; margin: 0 0 6px; }
.claim-success-main { font-size: 14px; color: #555; margin: 0 0 2px; }
.claim-success-sub { font-size: 12.5px; color: var(--muted); margin: 0 0 18px; }
.claim-main-grid { display: grid; gap: 12px; margin-bottom: 16px; }
.claim-resource-card {
  display: block;
  border-radius: 14px;
  padding: 15px 16px;
  text-align: left;
  background: var(--theme-light);
  border: 1px solid #f3d3dc;
}
.claim-resource-card .eyebrow {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--theme-deep); font-weight: 700;
  margin-bottom: 6px;
}
.claim-resource-card .eyebrow b { font-size: 11px; color: #c0392b; }
.claim-resource-card .rname { display: block; font-size: 16px; font-weight: 800; }
.claim-resource-card .ract { display: block; margin-top: 8px; font-size: 12.5px; color: var(--theme-deep); }
.claim-resource-card.claim-primary {
  background: linear-gradient(135deg, var(--theme), #e291a6);
  border: none; color: #fff;
  box-shadow: 0 6px 16px rgba(212,120,143,.35);
}
.claim-resource-card.claim-primary .eyebrow, .claim-resource-card.claim-primary .ract { color: #fff; }
.claim-resource-card.claim-primary .eyebrow b { color: #ffe28a; }
.success-page h2 { font-size: 15px; color: var(--theme-deep); text-align: left; margin: 18px 0 10px; }
.claim-like-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.claim-resource-card.claim-compact .rname { font-size: 14px; }
.claim-more-list { display: grid; gap: 8px; }
.claim-resource-card.claim-more {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; font-size: 14px; font-weight: 600;
}
.claim-resource-card.claim-more .ract { margin: 0; }

/* ===== 后台 ===== */
.admin-wrap { max-width: 760px; margin: 0 auto; padding: 20px 16px 60px; }
.admin-wrap h1 { font-size: 20px; color: var(--theme-deep); }
.admin-card { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 14px; box-shadow: 0 3px 12px rgba(0,0,0,.05); }
.admin-card h3 { margin: 0 0 12px; font-size: 15px; }
.admin-card label { display: block; font-size: 13px; color: #555; margin: 10px 0 4px; font-weight: 600; }
.admin-card input, .admin-card textarea, .admin-card select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #e3cdd5;
  border-radius: 9px;
  font-size: 13.5px;
  font-family: inherit;
  background: #fdfbfc;
}
.admin-card textarea { min-height: 110px; resize: vertical; }
.admin-card textarea.mono { font-family: Menlo, Consolas, monospace; min-height: 260px; font-size: 12.5px; }
.pf-emo-row { display: flex; gap: 12px; flex-wrap: wrap; }
.pf-emo-row > span { flex: 1; min-width: 180px; }
.quick-item { border: 1px solid #eed7de; border-radius: 10px; padding: 10px; margin: 8px 0; background: #fdfbfc; }
.quick-head { display: flex; gap: 8px; align-items: center; }
.quick-head input { flex: 1; min-width: 0; margin-bottom: 6px; }
.quick-ops { display: flex; gap: 4px; flex: none; }
.quick-ops button { border: 1px solid #ddd; background: #fff; border-radius: 7px; padding: 4px 9px; font-size: 12px; cursor: pointer; }
.quick-ops button:hover { border-color: var(--theme); color: var(--theme-deep); }
.quick-btns { display: flex; gap: 10px; margin-top: 8px; }

/* ===== 顶部领取氛围弹窗（刚刚 XX用户 已免费领取） ===== */
.pop-notice {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translate(-50%, -90px);
  background: #333f56;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 11px 26px;
  border-radius: 24px;
  box-shadow: 0 6px 18px rgba(20, 30, 50, 0.28);
  opacity: 0;
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  z-index: 999;
  transition: transform 0.45s ease, opacity 0.45s ease;
}
.pop-notice.show { transform: translate(-50%, 0); opacity: 1; }
.quick-btns button { border: 1px solid var(--theme); background: #fff; color: var(--theme-deep); border-radius: 8px; padding: 6px 14px; font-size: 13px; cursor: pointer; }
.quick-btns button.ghost { border-color: #ddd; color: #777; }
.admin-card details { margin-top: 10px; }
.admin-card summary { font-size: 12.5px; color: var(--theme-deep); cursor: pointer; }
.admin-save {
  width: 100%;
  padding: 13px 0;
  border: none;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--theme), #e291a6);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.admin-tip { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.7; }
.login-box { max-width: 340px; margin: 15vh auto; }

/* ===== 后台资源管理 ===== */
.item-row {
  display: flex; align-items: center; gap: 10px;
  background: #faf7f2; border: 1px solid #eee;
  border-radius: 10px; padding: 8px 10px; margin-bottom: 8px;
}
.item-row .ir-ico {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: #fff; border: 1px solid #eee; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.item-row .ir-ico img, .modal .ir-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-row .ir-name { flex: 1; font-weight: 700; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-row .ir-meta { font-weight: 400; font-size: 11px; color: #999; margin-left: 6px; }
.badge-hot { background: #e23c3c; color: #fff; border-radius: 8px; font-size: 11px; padding: 2px 7px; flex: none; }
.badge-off { background: #bbb; color: #fff; border-radius: 8px; font-size: 11px; padding: 2px 7px; flex: none; }
.item-row button {
  border: 1px solid #ddd; background: #fff; border-radius: 8px;
  padding: 4px 9px; font-size: 12px; cursor: pointer; flex: none;
}
.item-row button:hover { border-color: var(--theme); color: var(--theme-deep); }
button.ghost {
  border: 1px solid #ddd; background: #fff; color: #333;
  border-radius: 9px; padding: 9px 14px; cursor: pointer; font-size: 13px;
}
button.ghost:hover { border-color: var(--theme); color: var(--theme-deep); }
.modal-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 100;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 26px 12px; overflow: auto;
}
.modal-mask[hidden] { display: none; }
.modal {
  background: #fff; border-radius: 14px; max-width: 640px; width: 100%;
  padding: 18px 18px 14px;
}
.modal h3 { margin: 0 0 6px; font-size: 16px; }
.modal label { display: block; font-size: 13px; color: #555; margin: 10px 0 4px; font-weight: 600; }
.modal input, .modal textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #e3cdd5; border-radius: 9px;
  font-size: 13.5px; font-family: inherit; background: #fdfbfc;
}
.modal textarea { resize: vertical; }
.modal .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .modal .two-col { grid-template-columns: 1fr; } }
.modal details { margin-top: 12px; border: 1px dashed #e3cdd5; border-radius: 10px; padding: 6px 12px 12px; }
.modal summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--theme-deep); padding: 6px 0; }
.modal .ir-ico {
  width: 38px; height: 38px; border-radius: 9px; flex: none;
  background: #faf7f2; border: 1px solid #eee; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.modal-actions .admin-save { width: auto; padding: 10px 24px; font-size: 14px; }

/* ===== 复制提示 ===== */
.copy-toast {
  position: fixed;
  left: 50%; bottom: 12%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .8);
  color: #fff;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  max-width: 86%;
  text-align: center;
}
.copy-toast.show { opacity: 1; }
#__manualCopyWrap {
  position: fixed; left: 8%; right: 8%; top: 30%;
  z-index: 99999;
  background: #fff;
  border: 2px dashed var(--theme);
  border-radius: 14px;
  padding: 14px 14px 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
  text-align: center;
}
#__manualCopyWrap p { margin: 0 0 8px; font-size: 13px; color: var(--theme-deep); font-weight: 600; }
#__manualCopyWrap textarea {
  width: 100%; height: 96px;
  font-size: 14px; padding: 8px;
  border: 1px solid #ddd; border-radius: 8px;
  resize: none; background: var(--theme-light); color: #333;
}
#__manualCopyWrap button {
  margin-top: 10px; padding: 7px 20px;
  border: none; border-radius: 8px;
  background: var(--theme); color: #fff; font-size: 13px;
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
