/* ===== 手游分发平台 - 响应式样式（手机优先） ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #6C5CE7;
  --primary-dark: #5a4bd1;
  --bg: #f4f5fb;
  --card: #ffffff;
  --text: #2d3436;
  --muted: #9298a6;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(80, 70, 180, .10);
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== 顶部导航 ===== */
.navbar {
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
  color: #fff;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  row-gap: 9px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(108, 92, 231, .35);
}
.navbar .logo { font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.navbar .nav-links { display: flex; gap: 18px; font-size: 14px; opacity: .95; }
.navbar .nav-links a:hover { opacity: .8; }

/* 手机端：第一排站点名称，第二排 首页/全部 + 登录/注册按钮 */
@media (max-width: 719px) {
  .navbar { display: block; }
  .navbar .logo { display: block; margin-bottom: 9px; }
  .navbar .nav-links { display: flex; }
  .navbar .nav-links .nav-auth { margin-left: auto; gap: 8px; }
  .navbar .nav-links .nav-user { margin-left: auto; }
}

/* ===== 搜索栏 ===== */
.search-wrap { padding: 16px; max-width: 720px; margin: 0 auto; }
.search-bar {
  display: flex;
  background: var(--card);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 18px;
  font-size: 15px;
  background: transparent;
}
.search-bar button {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 0 24px;
  font-size: 15px;
  cursor: pointer;
}

/* ===== 分类标签 ===== */
.cat-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 16px 12px;
  max-width: 720px;
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar a {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  box-shadow: var(--shadow);
  transition: .2s;
}
.cat-bar a.active, .cat-bar a:hover { background: var(--primary); color: #fff; }

/* ===== 游戏列表 ===== */
.container { max-width: 720px; margin: 0 auto; padding: 6px 16px 40px; }

.section-title {
  font-size: 17px;
  font-weight: 700;
  margin: 18px 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--primary);
}

.game-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .game-grid { grid-template-columns: 1fr 1fr; } }

.game-card {
  display: flex;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  transition: transform .15s;
}
.game-card:active { transform: scale(.98); }

.game-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8e9f5;
}
.game-icon.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
}

.game-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.game-info h3 {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-meta { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; }
.game-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-info .btn-dl {
  margin-top: auto;
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}
.game-info .btn-dl:hover { background: var(--primary-dark); }

/* 精品推荐横排 */
.featured-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.featured-scroll::-webkit-scrollbar { display: none; }
.featured-item {
  flex-shrink: 0;
  width: 100px;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 8px;
  box-shadow: var(--shadow);
}
.featured-item .game-icon { width: 64px; height: 64px; margin: 0 auto 8px; }
.featured-item .name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured-item .dl { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ===== 游戏详情页 ===== */
.detail-head {
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
  padding: 24px 16px 40px;
  color: #fff;
}
.detail-card {
  max-width: 720px;
  margin: -26px auto 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  gap: 14px;
}
.detail-card .game-icon { width: 84px; height: 84px; }
.detail-stats { font-size: 12px; color: var(--muted); margin-top: 5px; }
.dl-btn-big {
  display: block;
  max-width: 720px;
  margin: 16px auto;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(108, 92, 231, .4);
}
.dl-btn-big:active { transform: scale(.98); }
.dl-btn-big.disabled { background: #c3c6d4; box-shadow: none; pointer-events: none; }

.desc-box {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== 通用空状态 / 提示 ===== */
.empty { text-align: center; color: var(--muted); padding: 50px 0; font-size: 14px; }
.empty .icon { font-size: 44px; margin-bottom: 10px; }

/* ===== 后台 ===== */
.admin-body { background: #eef0f6; }
.admin-nav {
  background: #1e2235;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-nav .links { display: flex; gap: 16px; font-size: 14px; flex-wrap: wrap; }
.admin-nav .links a { opacity: .8; padding: 4px 10px; border-radius: 8px; }
.admin-nav .links a.active, .admin-nav .links a:hover { opacity: 1; background: rgba(255,255,255,.12); }

.admin-main { max-width: 1000px; margin: 20px auto; padding: 0 16px 50px; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.stat-card .num { font-size: 24px; font-weight: 700; color: var(--primary); }
.stat-card .label { font-size: 12px; color: var(--muted); margin-top: 4px; }

.panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-top: 16px;
}
.panel h2 { font-size: 16px; margin-bottom: 14px; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #eef0f6; }
th { color: var(--muted); font-weight: 500; white-space: nowrap; }
td img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.tag-on { color: #10b981; font-size: 12px; }
.tag-off { color: #ef4444; font-size: 12px; }

/* 表单 */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form-group input[type=text], .form-group input[type=password],
.form-group input[type=file], .form-group select, .form-group textarea {
  width: 100%;
  border: 1px solid #dfe2ee;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  background: #fafbfe;
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); }

.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 14px;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
}
.btn:hover { background: var(--primary-dark); }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 8px; }
.btn-danger { background: #ef4444; }
.btn-gray { background: #9298a6; }
.btn-green { background: #10b981; }

/* 登录页 */
.login-wrap {
  max-width: 360px;
  margin: 12vh auto;
  padding: 30px 24px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.login-wrap h1 { text-align: center; font-size: 20px; margin-bottom: 24px; color: var(--primary); }

.alert {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
}
.alert-ok { background: #e7f9f1; color: #0e9f6e; }
.alert-err { background: #fdeaea; color: #e02424; }

.checkbox-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

/* 页脚 */
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 0 34px; }

/* ===== 详情页（新版） ===== */
.detail-body { padding-bottom: 76px; }

.game-card { color: inherit; }
.game-card .card-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.game-card .dl-count { font-size: 11px; color: var(--muted); }
.game-card .btn-dl { font-size: 12px; color: var(--primary); font-weight: 600; }

.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
  color: #fff;
  padding: 14px 16px 26px;
}
.hero-blur {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(1.3);
  opacity: .35;
  transform: scale(1.15);
}
.hero-inner { position: relative; max-width: 720px; margin: 0 auto; }

.crumbs { font-size: 12px; opacity: .9; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.crumbs a { opacity: .95; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .cur { opacity: .8; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs .sep { opacity: .6; }

.hero-main { display: flex; gap: 14px; margin-top: 14px; align-items: center; }
.hero-icon {
  width: 84px; height: 84px;
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, .45);
  box-shadow: 0 8px 22px rgba(30, 20, 90, .35);
  background: rgba(255, 255, 255, .2);
}
.hero-icon.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; background: rgba(255, 255, 255, .22);
}
.hero-text { min-width: 0; flex: 1; }
.hero-text h1 {
  font-size: 20px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-sub { font-size: 12.5px; opacity: .88; margin-top: 4px; }
.hero-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.badge {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.badge-hot { background: #ff7675; }

.detail-wrap { max-width: 720px; margin: 0 auto; padding: 14px 16px 10px; }

.panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px;
}
.panel-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-left: 9px;
  border-left: 3px solid var(--primary);
  line-height: 1.1;
}

.dl-panel { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dl-panel .dl-title { font-size: 15px; font-weight: 700; }
.dl-panel .dl-note { font-size: 12px; color: var(--muted); margin-top: 4px; }

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(108, 92, 231, .35);
  transition: transform .15s;
}
.btn-primary:active { transform: scale(.97); }
.btn-primary.is-disabled { background: #c3c6d4; box-shadow: none; pointer-events: none; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.info-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.info-item .k { font-size: 11.5px; color: var(--muted); }
.info-item .v { font-size: 13.5px; font-weight: 600; word-break: break-word; }

.desc-content { font-size: 14px; line-height: 1.85; color: #3d4450; }
.desc-content p { margin-bottom: 9px; word-break: break-word; }
.desc-content p:last-child { margin-bottom: 0; }
.desc-content .muted { color: var(--muted); }

.steps { margin: 0 0 10px 18px; font-size: 13.5px; line-height: 1.9; color: #3d4450; }
.steps li { margin-bottom: 4px; }
.tip {
  font-size: 12px;
  color: #8a6d00;
  background: #fff8e1;
  border-radius: 10px;
  padding: 9px 12px;
  line-height: 1.6;
}

.sticky-dl {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  box-shadow: 0 -4px 18px rgba(80, 70, 180, .12);
}
.sticky-info { display: flex; flex-direction: column; min-width: 0; }
.sticky-info strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-info span { font-size: 11.5px; color: var(--muted); }

@media (min-width: 720px) {
  .detail-hero { padding: 20px 16px 34px; }
  .hero-icon { width: 104px; height: 104px; }
  .hero-text h1 { font-size: 24px; }
  .info-grid { grid-template-columns: repeat(4, 1fr); }
  .sticky-dl { display: none; }
  .detail-body { padding-bottom: 0; }
}

/* 列表卡片内的按钮：透明文字样式，避免套用旧紫色胶囊 */
.game-card .btn-dl {
  background: transparent;
  padding: 0;
  margin: 0;
  align-self: auto;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.game-card .btn-dl:hover { background: transparent; color: var(--primary-dark); }

/* 防止超长无空格文本撑爆网格（min-content 溢出） */
.game-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.game-desc, .game-info h3 { overflow-wrap: anywhere; word-break: break-word; }

/* ===== 详情页：视频 ===== */
.video-box { position: relative; background: #0b0b12; border-radius: 12px; overflow: hidden; }
.video-box video {
  display: block;
  width: 100%;
  max-height: 60vh;
  background: #0b0b12;
}
.panel-extra { font-size: 11.5px; font-weight: 400; color: var(--muted); margin-left: 6px; }

/* ===== 详情页：截图横滑 ===== */
.shot-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shot-scroll::-webkit-scrollbar { display: none; }
.shot-item {
  flex-shrink: 0;
  width: 210px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #eceef6;
  display: block;
}
.shot-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.shot-item:active img { transform: scale(1.03); }

/* ===== 大图查看 ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 8, 16, .94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.lb-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 56px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  letter-spacing: 1px;
}

/* ===== 后台：视频与截图管理 ===== */
.media-preview { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.media-preview video { max-width: 320px; width: 100%; border-radius: 12px; background: #000; }
.media-preview .del-line { font-size: 13px; color: #d33; }
.shot-manage {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.shot-item-admin, .shot-manage .shot-item {
  width: 108px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef0f6;
  box-shadow: 0 2px 8px rgba(80, 70, 180, .12);
}
.shot-manage .shot-item { width: 108px; aspect-ratio: auto; }
.shot-manage .shot-item img { height: 62px; object-fit: cover; }
.shot-manage .shot-item span {
  display: block;
  font-size: 11.5px;
  text-align: center;
  padding: 4px 0;
  background: #fff;
  color: #666;
}

/* ===== 详情页：双平台下载按钮 ===== */
.dl-panel { flex-wrap: wrap; }
.dl-btns { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 240px; justify-content: flex-end; }
.dl-btns .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1 1 132px;
  padding: 9px 16px;
  text-align: left;
}
.dl-btns .pf-re { font-size: 15px; line-height: 1; }
.pf-txt { display: flex; flex-direction: column; line-height: 1.28; }
.pf-txt small { font-size: 10.5px; font-weight: 400; opacity: .88; }
.btn-primary.btn-ios { background: #1d1d24; box-shadow: 0 5px 14px rgba(0, 0, 0, .28); }
.btn-primary.btn-ios:active { transform: scale(.97); }

.dl-alt-row { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 12px; }
.dl-alt {
  font-size: 12px;
  color: var(--primary);
  background: rgba(108, 92, 231, .09);
  border-radius: 999px;
  padding: 5px 12px;
}
.dl-alt:active { opacity: .75; }

/* 安装说明：分平台 */
.plat-tip + .plat-tip { margin-top: 10px; }
.pt-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 6px;
}
.pt-badge.pt-ios { background: #1d1d24; }

/* 吸底下载条：双按钮 */
.sticky-btns { display: flex; gap: 8px; flex-shrink: 0; }
.sticky-btns .btn-primary { padding: 10px 16px; font-size: 13.5px; }
.sticky-btns .btn-ios { background: #1d1d24; box-shadow: none; }

/* ===== 后台：平台分组上传区 ===== */
.platform-box {
  border: 1px solid #e8e6f5;
  border-radius: 12px;
  padding: 12px 14px 4px;
  margin-bottom: 14px;
  background: #fbfaff;
}
.pb-head {
  font-size: 13.5px;
  font-weight: 700;
  color: #2f3542;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pb-tag {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: 6px;
  padding: 2px 8px;
}
.pb-tag.tag-ios { background: #1d1d24; }
.platform-box .form-group > label { font-size: 12.5px; color: #4a5160; }
.platform-box input[type=url] { font-size: 13px; }
.file-tip { margin-top: 6px; font-size: 12px; color: #6b7280; line-height: 1.6; word-break: break-word; }
.del-line { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12.5px; color: #d33; }

/* ===== 礼包：列表行 ===== */
.gift-list { display: flex; flex-direction: column; gap: 8px; }
.gift-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9f8ff;
  border: 1px solid #ece9ff;
  border-radius: 12px;
  padding: 10px 12px;
}
.gift-row:active { background: #f0edff; }
.gr-icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff9a6c, #ff6b9d);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.gr-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.gr-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-btn {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  padding: 5px 12px;
}

/* 状态配色（徽章 / 按钮通用） */
.state-ok { background: rgba(0, 184, 148, .18); color: #00806a; }
.state-notstart { background: rgba(240, 165, 0, .18); color: #a06f00; }
.state-ended, .state-empty, .state-off { background: rgba(146, 152, 166, .22); color: #6b7280; }
.badge.state-ok, .badge.state-notstart, .badge.state-ended, .badge.state-empty, .badge.state-off { color: #fff; }
.badge.state-ok { background: #00b894; }
.badge.state-notstart { background: #f0a500; }
.badge.state-ended, .badge.state-empty, .badge.state-off { background: rgba(255, 255, 255, .28); }
.gr-btn.state-ok { background: var(--primary); color: #fff; }
.gr-btn.state-notstart { background: #f0a500; color: #fff; }
.gr-btn.state-ended, .gr-btn.state-empty, .gr-btn.state-off { background: #c3c6d4; color: #fff; }

/* ===== 礼包：领取卡片 ===== */
.claim-panel { text-align: center; }
.claim-form { display: flex; flex-direction: column; gap: 4px; }
.btn-claim { width: 100%; border: none; cursor: pointer; padding: 14px; font-size: 16px; font-family: inherit; }
.claim-note { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.6; }
.claim-done { font-size: 17px; font-weight: 700; color: #00b894; }
.code-box {
  background: #f5f3ff;
  border: 1px dashed #b9b0f3;
  border-radius: 12px;
  padding: 14px 12px;
}
.code-label { font-size: 11.5px; color: var(--muted); }
.code-value {
  font-family: ui-monospace, Menlo, Consolas, "Courier New", monospace;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary-dark);
  margin: 8px 0 12px;
  word-break: break-all;
  user-select: all;
  cursor: pointer;
  line-height: 1.4;
}
.btn-copy {
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  padding: 8px 22px;
  border-radius: 999px;
  cursor: pointer;
}
.btn-copy.ok { background: #00b894; }

/* 礼包内容与信息 */
.gift-items { list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; color: #3d4450; }
.gift-items li { display: flex; gap: 7px; align-items: flex-start; line-height: 1.6; word-break: break-word; }
.gi-dot { color: #ff9a6c; font-size: 10px; line-height: 1.95; flex-shrink: 0; }
.gift-meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0eefb;
}
.gift-meta-row .k { display: block; font-size: 11px; color: var(--muted); }
.gift-meta-row .v { font-size: 12.5px; font-weight: 600; word-break: break-word; }
.gift-kicker { font-size: 11px; letter-spacing: 1px; opacity: .9; margin-bottom: 3px; }
.gift-hero { background: linear-gradient(135deg, #6C5CE7, #ff7675); }

/* ===== 后台：礼包码池 ===== */
.pool-stat { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 84px;
  padding: 8px 14px;
  background: #f5f3ff;
  border: 1px solid #ece9ff;
  border-radius: 10px;
  font-size: 11.5px;
  color: #6b7280;
  line-height: 1.4;
}
.ps-item b { font-size: 18px; color: var(--primary-dark); line-height: 1.25; }
.pool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #2f3542;
}

/* ===== SEO：列表页分页 / 说明区 ===== */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.list-count { font-size: 12.5px; color: var(--muted); margin: -6px 0 12px; }
.list-count b { color: var(--primary-dark); }

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px 0 8px;
}
.pg-btn, .pg-num {
  min-width: 36px;
  padding: 8px 12px;
  font-size: 13px;
  text-align: center;
  color: #4a5160;
  background: #fff;
  border: 1px solid #e8e6f5;
  border-radius: 10px;
  line-height: 1.2;
}
.pg-num.is-active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 700;
}
.pg-btn.is-off { color: #c3c6d4; background: #fafafc; }
.pg-dots { color: #b6b9c6; padding: 0 2px; }
.pg-btn:active, .pg-num:active { opacity: .8; }

.seo-intro { margin: 26px 0 6px; padding: 14px 16px; background: #faf9ff; border: 1px solid #efeafd; border-radius: 14px; }
.seo-intro h2 { font-size: 15px; margin-bottom: 6px; color: #2f3542; }
.seo-intro p { font-size: 12.5px; line-height: 1.8; color: #6b7280; }
.foot-icp { margin-top: 6px; font-size: 11.5px; }
.foot-icp a { color: var(--muted); }

/* ===== 后台：SEO 设置页 ===== */
.seo-lead { font-size: 13px; line-height: 1.8; color: #5b6270; margin-bottom: 12px; }
.seo-lead code, .file-tip code { background: #f2f0fb; color: var(--primary-dark); border-radius: 5px; padding: 1px 5px; font-size: 12px; }
.seo-h2 {
  font-size: 15px !important;
  margin: 22px 0 12px !important;
  padding-top: 14px;
  border-top: 1px dashed #e8e6f5;
}
.form-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cnt { font-size: 11.5px; color: #9aa0ad; font-weight: 400; margin-left: 6px; }
.cnt.is-ok { color: #00a884; }
.cnt.is-over { color: #e05a5a; }

.seo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.seo-card {
  border: 1px solid #ece9ff;
  background: #fbfaff;
  border-radius: 12px;
  padding: 12px 14px;
}
.sc-title { font-size: 12px; color: #8a90a0; margin-bottom: 6px; }
.sc-val { font-size: 13.5px; font-weight: 600; color: #2f3542; word-break: break-all; line-height: 1.5; }
.sc-sub { font-size: 11.5px; color: #8a90a0; margin-top: 6px; line-height: 1.6; }

.code-snip {
  margin: 8px 0 0;
  padding: 10px 12px;
  background: #f6f5fc;
  border: 1px solid #eceaf8;
  border-radius: 8px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.7;
  color: #4a4f63;
  white-space: pre-wrap;
  word-break: break-all;
}
.seo-details { margin-top: 12px; }
.seo-details summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--primary-dark);
  padding: 6px 0;
}
.seo-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.seo-links a {
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f4f2ff;
  color: var(--primary-dark);
}
.issue-tag {
  display: inline-block;
  font-size: 11.5px;
  color: #b4690e;
  background: #fff6e6;
  border-radius: 6px;
  padding: 2px 8px;
  margin: 2px 4px 2px 0;
  line-height: 1.6;
}

/* 后台：游戏编辑页 SEO 区块 */
.seo-box {
  margin-top: 18px;
  padding: 14px 16px 6px;
  border: 1px solid #e2f0e8;
  background: #f7fdfa;
  border-radius: 12px;
}
.pb-tag.tag-seo { background: #00a884; }
.seo-preview {
  margin: 4px 0 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e8e6f5;
  border-radius: 10px;
}
.sp-label { font-size: 11px; color: #9aa0ad; margin-bottom: 8px; letter-spacing: .5px; }
.sp-url { font-size: 12px; color: #006621; margin-bottom: 3px; word-break: break-all; }
.sp-title { font-size: 16px; color: #1a0dab; line-height: 1.4; margin-bottom: 4px; word-break: break-word; }
.sp-desc { font-size: 12.5px; color: #545454; line-height: 1.7; word-break: break-word; }

/* ===== 会员：导航入口 ===== */
.nav-links { align-items: center; }
.nav-auth { display: inline-flex; align-items: center; gap: 6px; }
.nav-auth a { font-size: 12.5px; line-height: 1; padding: 6px 12px; border-radius: 999px; }
.nav-login { background: rgba(255, 255, 255, .22); color: #fff; }
.nav-reg { background: #fff; color: var(--primary-dark); font-weight: 600; }
.nav-user { display: inline-flex; align-items: center; gap: 6px; max-width: 130px; }
.nu-avatar {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.nu-name { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 84px; }

/* ===== 会员：登录 / 注册 ===== */
.auth-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 18px 16px 30px;
}
.auth-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(108, 92, 231, .12);
  padding: 22px 18px 18px;
}
.auth-title { font-size: 21px; font-weight: 700; color: #2f3542; }
.auth-sub { font-size: 12.5px; color: var(--muted); margin: 6px 0 16px; line-height: 1.6; }
.auth-alert {
  font-size: 12.5px;
  line-height: 1.6;
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 12px;
}
.auth-alert.alert-err { background: rgba(255, 107, 107, .12); color: #c0392b; }
.auth-alert.alert-ok { background: rgba(0, 184, 148, .13); color: #00806a; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label { font-size: 12.5px; color: #4a5160; font-weight: 600; }
.auth-field label i { color: #ff6b6b; font-style: normal; }
.auth-field label em { font-style: normal; font-weight: 400; color: #a0a6b5; font-size: 11.5px; margin-left: 4px; }
.auth-field input {
  width: 100%;
  border: 1px solid #e6e3f5;
  background: #fbfaff;
  border-radius: 11px;
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  color: #2f3542;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.auth-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108, 92, 231, .12); }
.auth-field input:disabled { background: #f4f3f9; color: #9aa0ad; }
.auth-check { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #5b6270; line-height: 1.6; }
.auth-check input { margin-top: 2px; accent-color: var(--primary); width: 15px; height: 15px; flex-shrink: 0; }
.auth-check a { color: var(--primary-dark); text-decoration: underline; }
.auth-submit { width: 100%; border: none; cursor: pointer; font-family: inherit; padding: 13px; font-size: 15px; margin-top: 4px; }
.auth-foot { margin-top: 16px; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.9; }
.auth-foot a { color: var(--primary-dark); font-weight: 600; }
.auth-dot { margin: 0 6px; color: #d6d3e6; }
.auth-off { color: #a0a6b5; }
.auth-terms {
  margin-top: 14px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(108, 92, 231, .08);
}
.auth-terms h2 { font-size: 14px; margin-bottom: 8px; color: #2f3542; }
.auth-terms p { font-size: 12px; line-height: 1.85; color: #6b7280; margin-bottom: 6px; }

/* ===== 会员：个人中心 ===== */
.acct-wrap { max-width: 720px; }
.acct-card {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
  color: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(108, 92, 231, .25);
  margin-bottom: 14px;
}
.acct-avatar {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--primary-dark);
  font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.acct-info { flex: 1 1 160px; min-width: 0; }
.acct-name { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-sub { font-size: 12px; opacity: .92; margin-top: 3px; word-break: break-all; }
.acct-sub .dot { margin: 0 5px; }
.acct-meta { font-size: 11px; opacity: .8; margin-top: 4px; }
.acct-stats { display: flex; gap: 8px; flex: 0 0 auto; }
.as-item {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255, 255, 255, .18);
  border-radius: 10px;
  padding: 6px 12px;
  min-width: 62px;
}
.as-item b { font-size: 16px; line-height: 1.3; }
.as-item span { font-size: 10.5px; opacity: .9; }

.acct-tabs {
  display: flex;
  gap: 6px;
  background: #fff;
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(108, 92, 231, .08);
}
.acct-tabs a {
  flex: 1;
  text-align: center;
  font-size: 13px;
  padding: 9px 6px;
  border-radius: 9px;
  color: #6b7280;
}
.acct-tabs a.active { background: rgba(108, 92, 231, .1); color: var(--primary-dark); font-weight: 700; }

.mygift-list { display: flex; flex-direction: column; gap: 10px; }
.mygift {
  border: 1px solid #ece9ff;
  background: #fbfaff;
  border-radius: 12px;
  padding: 11px 13px;
}
.mg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mg-title { font-size: 14px; font-weight: 600; color: #2f3542; word-break: break-word; }
.mg-time { font-size: 11px; color: #a0a6b5; flex-shrink: 0; }
.mg-game { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.mg-game img { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; }
.mg-code {
  display: flex; align-items: center; gap: 8px;
  margin-top: 9px;
  background: #fff;
  border: 1px dashed #b9b0f3;
  border-radius: 9px;
  padding: 8px 10px;
}
.mg-code code {
  flex: 1;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-dark);
  word-break: break-all;
}
.btn-copy.sm { font-size: 11.5px; padding: 5px 12px; flex-shrink: 0; }
.mg-note { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.6; }

.dl-list { display: flex; flex-direction: column; gap: 8px; }
.dl-row {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #eeeaf9;
  border-radius: 12px;
  padding: 9px 11px;
  background: #fbfaff;
}
.dl-row:active { background: #f3f0ff; }
.dl-icon { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.dl-icon.placeholder { display: flex; align-items: center; justify-content: center; background: #f1eefe; font-size: 18px; }
.dl-main { flex: 1; min-width: 0; }
.dl-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.dl-go { font-size: 11.5px; color: var(--primary-dark); flex-shrink: 0; }

.acct-more { text-align: center; margin-top: 14px; }
.acct-more.left { text-align: left; }
.acct-more .btn-primary { display: inline-block; padding: 10px 24px; border-radius: 999px; font-size: 13.5px; }
.btn-outline {
  display: inline-block;
  border: 1px solid #ffb3b3;
  color: #d64545;
  background: #fff;
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 13px;
}
.acct-logout-note { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.acct-hint {
  font-size: 12px;
  line-height: 1.7;
  color: #6b7280;
  background: #fff;
  border-radius: 12px;
  padding: 10px 13px;
  margin: -4px 0 12px;
  box-shadow: 0 4px 14px rgba(108, 92, 231, .07);
}
.acct-hint a { color: var(--primary-dark); font-weight: 600; }

/* 礼包行：已领取标记 */
.gr-btn.state-mine { background: #00b894; color: #fff; }

/* 后台：表格内联操作按钮 */
.op-cell { white-space: nowrap; }
.op-cell form { display: inline; margin: 0 6px 0 0; }
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--primary-dark);
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }
.link-btn.link-danger { color: #e02424; }

/* ===== 积分：礼包页 ===== */
.badge-pts { background: rgba(255, 183, 77, .22); color: #ffe0a3; font-weight: 700; }
.claim-pts {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  flex-wrap: wrap;
  background: #fff8ec;
  border: 1px solid #ffe0b3;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: #8a5b16;
  margin-bottom: 10px;
}
.claim-pts b { color: #e0812a; font-size: 15px; }
.pts-ok { color: #1a9c5b; }
.pts-ok b { color: #1a9c5b; }
.pts-low { color: #d9534f; }
.pts-tip { color: #b06a00; }
.pts-tip a { color: var(--primary-dark); font-weight: 600; }

/* 每日登录奖励浮层 */
.pts-toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%);
  z-index: 300;
  max-width: 88vw;
  background: rgba(45, 52, 84, .94);
  color: #fff;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(40, 30, 90, .3);
  animation: ptsIn .28s ease-out;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pts-toast b { color: #ffd479; }
.pts-toast.out { opacity: 0; transition: opacity .7s; }
@keyframes ptsIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ===== 分享组件 ===== */
.share-panel .panel-extra { font-weight: 400; font-size: 12px; }
.share-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  flex: 1 1 68px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  padding: 11px 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform .12s, filter .12s;
}
.share-btn:active { transform: scale(.97); }
.share-btn:hover { filter: brightness(1.06); }
.sb-wechat { background: #22b14c; }
.sb-qq { background: #12b7f5; }
.sb-weibo { background: #e6162d; }
.sb-copy { background: #6c5ce7; }
.share-msg {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  min-height: 18px;
  line-height: 1.6;
}
.share-msg b { color: #e0812a; font-size: 14px; }
.share-msg.ok { color: #1a9c5b; }
.share-msg.warn { color: #b06a00; }
.share-msg a { color: var(--primary-dark); font-weight: 600; }

/* ===== 个人中心：我的积分 ===== */
.pts-hero {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #fff8ec, #fff);
  border: 1px solid #ffe6c2;
  border-radius: 14px;
  padding: 14px;
}
.pts-num {
  display: flex; flex-direction: column; align-items: center;
  min-width: 108px;
  padding: 6px 10px;
}
.pts-num b { font-size: 32px; line-height: 1.1; color: #e0812a; font-weight: 800; }
.pts-num span { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.pts-ways { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; }
.pts-way {
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid #f0ecff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12.5px;
}
.pw-t { color: #4b5563; }
.pw-v { color: #e0812a; font-weight: 700; margin-left: auto; }
.pw-s { font-size: 11px; color: var(--muted); min-width: 86px; text-align: right; }
.pw-s.ok { color: #1a9c5b; }
.pw-s.todo { color: #d9534f; }

.pts-log { display: flex; flex-direction: column; }
.plr {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px dashed #eef0f6;
}
.plr:last-child { border-bottom: none; }
.plr-main { flex: 1; min-width: 0; }
.plr-t { font-size: 13px; font-weight: 600; color: #374151; }
.plr-n { font-size: 11.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plr-r { text-align: right; flex-shrink: 0; }
.plr-a { font-size: 15px; font-weight: 700; }
.plr-a.plus { color: #1a9c5b; }
.plr-a.minus { color: #d9534f; }
.plr-d { font-size: 10.5px; color: #9aa0ad; margin-top: 2px; }

@media (max-width: 560px) {
  .acct-stats { width: 100%; justify-content: space-between; }
  .acct-stats .as-item { flex: 1; min-width: 0; }
  .pts-num { min-width: 92px; }
  .pts-num b { font-size: 28px; }
}

/* ===== 分享：微信来源提示与回流数据 ===== */
.share-tip {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.share-flow { color: var(--muted); }
.share-flow b { color: #e0812a; }

/* 微信内"点右上角分享"引导层 */
.wx-guide { position: fixed; inset: 0; z-index: 400; background: rgba(18, 14, 38, .84); }
.wx-guide[hidden] { display: none; }
.wx-guide.show { display: block; animation: wxIn .18s ease-out; }
.wx-guide-box {
  position: absolute;
  top: 60px;
  right: 16px;
  max-width: 250px;
  color: #fff;
  text-align: right;
}
.wx-guide-arrow { font-size: 42px; line-height: 1; color: #ffd479; }
.wx-guide-box p { margin: 8px 0 14px; font-size: 14.5px; line-height: 1.75; }
.wx-guide-box b { color: #ffd479; letter-spacing: 3px; }
.wx-guide-ok {
  display: inline-block;
  font-size: 12.5px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  padding: 5px 16px;
}
@keyframes wxIn { from { opacity: 0; } to { opacity: 1; } }

/* 后台：分享渠道标签 / 单选行 */
.ch-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ch-tag {
  background: #f4f1ff;
  color: #5b4bd6;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
}
.ch-tag b { color: #3b2fa8; margin-left: 2px; }
.radio-line { display: flex; flex-direction: column; gap: 9px; margin: 4px 0 8px; }
.radio-line label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.6;
  color: #374151;
  cursor: pointer;
}
.radio-line input[type="radio"] { margin: 2px 0 0; width: 16px; height: 16px; flex-shrink: 0; }

/* 分享动作提示（奖励消息下方的小字说明） */
.share-ops {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.55;
}
.share-msg.ok .share-ops { color: #4b7d5f; }

/* ===== 后台：账号设置 ===== */
.acct-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.acct-grid .ag-item {
  flex: 1 1 150px;
  background: #fafbff;
  border: 1px solid #eef0f8;
  border-radius: 12px;
  padding: 12px 14px;
}
.acct-grid .ag-item span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.acct-grid .ag-item b { font-size: 15px; color: #2f3550; word-break: break-all; }

.pwd-meter { display: flex; align-items: center; gap: 5px; margin-top: 9px; }
.pwd-meter[hidden] { display: none; }
.pwd-meter i {
  width: 34px; height: 5px; border-radius: 99px;
  background: #e8eaf2;
  transition: background .15s;
}
.pwd-meter span { font-size: 11.5px; color: var(--muted); margin-left: 4px; }
.pwd-meter.lv1 i:nth-child(1) { background: #f26d6d; }
.pwd-meter.lv2 i:nth-child(1), .pwd-meter.lv2 i:nth-child(2) { background: #f0a83c; }
.pwd-meter.lv3 i { background: #27b06e; }

.tip-list { margin: 0; padding-left: 20px; font-size: 13px; color: #4b5563; line-height: 2; }
.tip-list code {
  background: #f3f4fa; color: #5b4bd6; border-radius: 5px;
  padding: 1px 6px; font-size: 12px;
}

/* 分享文案预览：让用户先看到复制出去的「介绍 + 链接」长什么样 */
.share-preview {
  margin-top: 10px;
  background: #f8f7ff;
  border: 1px dashed #ddd8ff;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #4b5563;
}
.scp-tag {
  display: inline-block;
  background: #6c5ce7;
  color: #fff;
  font-size: 10.5px;
  line-height: 1.6;
  border-radius: 5px;
  padding: 1px 6px;
  margin-right: 6px;
  vertical-align: 1px;
}
.scp-body { word-break: break-word; }
