/* ============================================================
 * 星少SaaS · 粉色主题扩展样式
 * 覆盖层：粉色主题 / 后台背景图 / 登录页背景 / 樱花 / 音乐 / 授权
 * ============================================================ */

:root {
  --xs-pink: #ff5c9d;
  --xs-pink-2: #ff86b5;
  --xs-pink-3: #ffc3da;
  --xs-pink-soft: #fff0f6;
  --xs-pink-line: #ffd9e8;
  --xs-pink-deep: #d63f7c;

  --el-color-primary: #ff5c9d;
  --el-color-primary-rgb: 255, 92, 157;
  --el-color-primary-light-3: #ff8ab8;
  --el-color-primary-light-5: #ffabc9;
  --el-color-primary-light-7: #ffcadd;
  --el-color-primary-light-8: #ffdce9;
  --el-color-primary-light-9: #ffeff6;
  --el-color-primary-dark-2: #d63f7c;

  --el-color-success: #ff5c9d;
  --el-color-success-rgb: 255, 92, 157;
  --el-color-success-light-3: #ff8ab8;
  --el-color-success-light-5: #ffabc9;
  --el-color-success-light-7: #ffcadd;
  --el-color-success-light-8: #ffdce9;
  --el-color-success-light-9: #fff0f6;
  --el-color-success-dark-2: #d63f7c;
}

html.dark {
  --el-color-primary: #ff6fa3;
  --el-color-primary-rgb: 255, 111, 163;
  --el-color-primary-light-3: #c34a76;
  --el-color-primary-light-5: #8f3656;
  --el-color-primary-light-7: #6a2740;
  --el-color-primary-light-8: #572034;
  --el-color-primary-light-9: #461a2a;
  --el-color-primary-dark-2: #ffa3c4;

  --el-color-success: #ff6fa3;
  --el-color-success-light-3: #c34a76;
  --el-color-success-light-5: #8f3656;
  --el-color-success-light-7: #6a2740;
  --el-color-success-light-8: #572034;
  --el-color-success-light-9: #461a2a;
  --el-color-success-dark-2: #ffa3c4;
}

/* ---------- 品牌标记 / 侧栏 / 菜单 ---------- */
.logo-mark {
  background: linear-gradient(135deg, #ffd9e8, #fff3f8) !important;
  color: var(--xs-pink-deep) !important;
  box-shadow: 0 8px 18px rgba(255, 92, 157, .22) !important;
}

.logo-text strong { color: #3d2230 !important; }
html.dark .logo-text strong { color: #ffe4ef !important; }

.layout .el-menu-item.is-active,
.layout .el-menu .el-menu-item.is-active,
[data-v-bc823296] .el-menu-item.is-active,
[data-v-4719c877] .el-menu-item.is-active {
  color: var(--xs-pink-deep) !important;
  background: linear-gradient(90deg, #ffe8f2, #fff5f9) !important;
  font-weight: 600 !important;
}

.layout .el-menu-item:hover,
[data-v-4719c877] .el-menu-item:hover {
  background: #fff2f8 !important;
  color: var(--xs-pink-deep) !important;
}

html.dark .layout .el-menu-item.is-active {
  background: rgba(255, 92, 157, .18) !important;
  color: #ffb6d3 !important;
}
html.dark .layout .el-menu-item:hover { background: rgba(255, 92, 157, .12) !important; }

/* 首页横幅、统计卡 */
.eyebrow[data-v-d49fd791] { color: var(--xs-pink-deep) !important; }

.hero[data-v-d49fd791] {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .9), transparent 26%),
    linear-gradient(135deg, #ffe9f2 0%, #fff5fa 52%, #ffeef5 100%) !important;
  border: 1px solid #ffdcea !important;
  box-shadow: 0 16px 40px rgba(255, 92, 157, .16) !important;
}

.hero h1[data-v-d49fd791] { color: #4a1f33 !important; }
.hero-card[data-v-d49fd791] {
  background: rgba(255, 255, 255, .9) !important;
  border: 1px solid #ffe0ec !important;
}

.stat-card.blue[data-v-d49fd791]:after { background: #ff5c9d !important; }
.stat-card.green[data-v-d49fd791]:after { background: #ff9ec4 !important; }
.stat-card.orange[data-v-d49fd791]:after { background: #ffbe9e !important; }
.stat-card.purple[data-v-d49fd791]:after { background: #e6a6ff !important; }

.stat-card { border-color: #ffeaf3 !important; }

/* 代理商资料卡等绿色卡片统一粉化 */
.agent-profile-mark {
  background: linear-gradient(135deg, #ff86b5, #f0478a) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(240, 71, 138, .3) !important;
}
.agent-profile-billing span { color: #d63f7c !important; }

.agent-profile-card[data-v-4719c877] {
  border-color: #ffd2e5 !important;
  background: linear-gradient(135deg, #fff1f7, #ffe6f0) !important;
}

/* ---------- 后台背景图（管理员 + 代理商） ---------- */
.layout,
.app-layout {
  background: url('../assets/theme/bg-admin.jpg') center 30% / cover no-repeat fixed !important;
  background-color: #ffeaf3 !important;
}

.layout > .el-container,
.layout .el-container {
  background: transparent !important;
}

/* 侧边栏：磨砂粉 */
.layout .aside,
.layout .el-aside {
  background: linear-gradient(180deg, rgba(255, 246, 251, .86), rgba(255, 234, 244, .8)) !important;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-right: 1px solid rgba(255, 255, 255, .55) !important;
}

.layout .header,
.layout .el-header {
  background: #fffbfd !important;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, .6) !important;
}

/* 主内容区：淡粉半透明，露出背景图 */
.layout .el-main,
.layout .main {
  background: linear-gradient(180deg, rgba(255, 250, 253, .5), rgba(255, 236, 245, .56)) !important;
}

.layout .el-drawer,
.layout .mobile-drawer {
  background: linear-gradient(180deg, #fff4f9, #ffe9f3) !important;
}

html.dark .stat-card {
  background: rgba(52, 22, 36, .82) !important;
  border-color: rgba(255, 138, 184, .28) !important;
}
html.dark .stat-card,
html.dark .stat-card > div,
html.dark .stat-card > span,
html.dark .stat-card strong,
html.dark .stat-card p { color: #ffe6f0 !important; }

html.dark .hero-card {
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(255, 138, 184, .3) !important;
}

html.dark .quick-list a {
  background: rgba(255, 92, 157, .16) !important;
  border-color: rgba(255, 138, 184, .32) !important;
  color: #ffb6d3 !important;
}

html.dark .layout { filter: none; }
html.dark .layout .aside { background: linear-gradient(180deg, rgba(46, 20, 32, .9), rgba(34, 15, 24, .9)) !important; }
html.dark .layout .header { background: rgba(30, 18, 25, .78) !important; }
html.dark .layout .el-main { background: linear-gradient(180deg, rgba(30, 16, 24, .72), rgba(24, 13, 20, .78)) !important; }

/* ---------- 登录页（管理员 + 代理商） ---------- */
.login-page,
[data-v-6adaa892].login-page,
[data-v-b06c92a7].login-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 176, 205, .26)),
    url('../assets/theme/bg-login.jpg') center 30% / cover no-repeat !important;
  background-color: #ffeaf3 !important;
}

.login-card {
  background: rgba(255, 255, 255, .9) !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .9) !important;
  box-shadow: 0 26px 70px rgba(157, 40, 90, .28) !important;
}

.login-icon,
.login-icon[data-v-6adaa892],
.login-icon[data-v-b06c92a7] {
  background: linear-gradient(135deg, #ffd6e6, #fff0f7) !important;
  color: var(--xs-pink-deep) !important;
}

.login-card h1 { color: #40202e !important; }

.login-btn,
.login-btn[data-v-6adaa892],
.login-btn[data-v-b06c92a7] {
  background: linear-gradient(135deg, #ff86b5, #f0478a) !important;
  box-shadow: 0 14px 30px rgba(240, 71, 138, .34) !important;
  border: none !important;
  letter-spacing: 2px;
}

.login-btn:hover { filter: brightness(1.05); }

.login-footer { color: #9a7688 !important; }

.login-card .el-input__wrapper {
  box-shadow: 0 0 0 1px #ffdcea inset !important;
  background: rgba(255, 255, 255, .92) !important;
}
.login-card .el-input__wrapper.is-focus {
  box-shadow: 0 0 0 1px var(--xs-pink) inset !important;
}

/* 登录页运行时长 */
.xs-uptime {
  margin: 2px 0 16px;
  padding: 9px 14px;
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
  color: #a3507a;
  background: linear-gradient(135deg, #fff1f7, #ffe6f0);
  border: 1px solid #ffd7e7;
}
.xs-uptime b {
  color: var(--xs-pink-deep);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
}

/* 登录页 · 星少云网络科技 透明Logo */
.xs-login-logo {
  display: block;
  width: 78%;
  max-width: 300px;
  height: auto;
  margin: 2px auto 10px;
  opacity: .95;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(255, 92, 157, .10));
}
@media (max-width: 480px) {
  .xs-login-logo { width: 86%; }
}

/* ---------- 以煦天天开心 · 流星雨 ---------- */
.xs-meteor {
  position: fixed;
  inset: 0;
  z-index: 3200;
  overflow: hidden;
  background: #1a0f2b;
  animation: xsMeteorIn .35s ease-out both;
}
.xs-meteor-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: manipulation;
}
.xs-meteor-head {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.xs-meteor-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 92, 157, .9);
}
.xs-meteor-sub { font-size: 12.5px; color: rgba(255,255,255,.62); letter-spacing: 1px; }
.xs-meteor-count {
  margin-top: 6px;
  align-self: flex-start;
  font-size: 12px;
  color: #ffd9e7;
  background: rgba(255, 92, 157, .18);
  border: 1px solid rgba(255, 143, 187, .38);
  border-radius: 999px;
  padding: 4px 12px;
}
.xs-meteor-close {
  position: absolute;
  top: 20px; right: 22px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  pointer-events: auto;
  transition: all .2s;
}
.xs-meteor-close:hover { background: rgba(255, 92, 157, .45); transform: rotate(90deg); }
.xs-meteor-tip {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff6c9;
  white-space: nowrap;
  background: linear-gradient(135deg, rgba(255, 92, 157, .55), rgba(255, 190, 92, .45));
  border: 1px solid rgba(255, 236, 180, .75);
  box-shadow: 0 0 26px rgba(255, 150, 190, .75), 0 0 60px rgba(255, 200, 120, .35);
  pointer-events: none;
  animation: xsMeteorTip 1.9s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes xsMeteorTip {
  0% { opacity: 0; transform: translate(-50%,-40%) scale(.6); }
  18% { opacity: 1; transform: translate(-50%,-50%) scale(1.08); }
  30% { transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-160%) scale(1); }
}
@keyframes xsMeteorIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- 樱花飘落画布 ---------- */
#xs-sakura {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 900;
}

/* ---------- 侧栏自定义入口 ---------- */
.xs-menu-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 2px 6px !important;
  border-radius: 10px;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  color: #5b3446;
  padding: 0 14px !important;
  height: 46px;
  line-height: 46px;
  transition: background .18s ease, color .18s ease;
}
.xs-menu-item:hover { background: rgba(255, 92, 157, .1); color: var(--xs-pink-deep); }
.xs-menu-item .xs-mi-icon { font-size: 16px; width: 18px; text-align: center; }
.xs-menu-item .xs-mi-label { flex: 1; }
.xs-menu-item .xs-mi-badge {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 20px;
  background: #ffe1ee;
  color: #d63f7c;
  white-space: nowrap;
}
.xs-menu-item .xs-mi-badge.on { background: #ffe1ee; color: #d63f7c; }

/* ---------- 通用弹层 ---------- */
.xs-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(60, 20, 38, .42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.xs-modal-card {
  width: 560px;
  max-width: 100%;
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(120, 20, 60, .35);
  animation: xs-pop .22s ease;
  color: #3c2230;
}
@keyframes xs-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.xs-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.xs-modal-title { font-size: 19px; font-weight: 700; color: #40202e; margin: 0; }
.xs-modal-sub { margin: 8px 0 18px; font-size: 13px; line-height: 1.7; color: #8a6a79; }
.xs-modal-close {
  border: none; background: #fff0f6; color: #c04c80; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1; flex: none;
}
.xs-modal-close:hover { background: #ffe1ee; }

.xs-field { margin-bottom: 14px; }
.xs-field label { display: block; font-size: 13px; color: #6f4b5d; margin-bottom: 6px; font-weight: 600; }
.xs-field input[type=text],
.xs-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ffd7e7;
  background: #fff8fb;
  font-size: 13px;
  color: #40202e;
  outline: none;
  font-family: inherit;
}
.xs-field input[type=text]:focus,
.xs-field textarea:focus { border-color: var(--xs-pink); background: #fff; }
.xs-field textarea { min-height: 64px; resize: vertical; word-break: break-all; }
.xs-hint { font-size: 12px; color: #a98a99; margin-top: 6px; line-height: 1.6; }

.xs-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.xs-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  background: #fff0f6;
  color: #c04c80;
  transition: filter .15s ease;
}
.xs-btn:hover { filter: brightness(.96); }
.xs-btn.primary { background: linear-gradient(135deg, #ff86b5, #f0478a); color: #fff; box-shadow: 0 10px 22px rgba(240, 71, 138, .28); }
.xs-btn.ghost { background: #fff; border: 1px solid #ffd7e7; color: #b8547f; }
.xs-btn.danger { background: #fff2f3; color: #d9455c; }
.xs-btn[disabled] { opacity: .6; cursor: not-allowed; }

.xs-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px dashed #ffc3da;
  border-radius: 12px;
  background: #fff8fb;
}
.xs-file input[type=file] { font-size: 12px; color: #6f4b5d; max-width: 100%; }

.xs-list { margin-top: 4px; display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow: auto; }
.xs-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ffe4ee;
  background: #fffafd;
}
.xs-list-item.active { border-color: var(--xs-pink); background: linear-gradient(135deg, #fff0f6, #ffe7f1); }
.xs-list-item .xs-li-main { flex: 1; min-width: 0; }
.xs-list-item .xs-li-name { font-size: 13px; font-weight: 600; color: #40202e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xs-list-item .xs-li-meta { font-size: 11px; color: #a98a99; margin-top: 3px; }
.xs-list-item .xs-li-badge {
  font-size: 11px; padding: 2px 8px; border-radius: 20px;
  background: #ffe1ee; color: #d63f7c; white-space: nowrap;
}

.xs-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  background: #f7f4f6;
  color: #6f4b5d;
  word-break: break-all;
}
.xs-status.ok { background: #ecfdf3; color: #12764a; border: 1px solid #bbf0d3; }
.xs-status.bad { background: #fff1f2; color: #b3243a; border: 1px solid #ffd4d8; }

.xs-result-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #ffe0ec;
  background: #fffafd;
}
.xs-result-head { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.xs-result-head.ok { color: #12854f; }
.xs-result-head.bad { color: #c22c44; }
.xs-result-row { display: flex; font-size: 12px; margin-top: 8px; color: #6f4b5d; gap: 10px; }
.xs-result-row span:first-child { width: 76px; color: #a98a99; flex: none; }
.xs-result-row span:last-child { word-break: break-all; }

/* ---------- 全平台音乐播放器 ---------- */
.xs-mp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 40px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #ffd7e7;
  box-shadow: 0 14px 34px rgba(157, 40, 90, .22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 74vw;
  animation: xs-pop .3s ease;
}
.xs-mp-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #ff86b5, #f0478a);
  color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(240, 71, 138, .32);
}
.xs-mp-btn:hover { filter: brightness(1.06); }
.xs-mp-meta { min-width: 0; }
.xs-mp-title { font-size: 12px; color: #40202e; font-weight: 600; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xs-mp-sub { font-size: 10px; color: #b48ea1; margin-top: 2px; }
.xs-mp-eq { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.xs-mp-eq i { display: block; width: 2px; background: #ff5c9d; border-radius: 2px; animation: xs-eq 1s infinite ease-in-out; }
.xs-mp-eq i:nth-child(1) { height: 6px; animation-delay: 0s; }
.xs-mp-eq i:nth-child(2) { height: 12px; animation-delay: .18s; }
.xs-mp-eq i:nth-child(3) { height: 8px; animation-delay: .32s; }
.xs-mp.paused .xs-mp-eq i { animation-play-state: paused; opacity: .4; }
@keyframes xs-eq { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }

/* 小屏适配 */
@media (max-width: 640px) {
  .xs-mp { right: 12px; bottom: 12px; }
  .xs-modal-card { padding: 18px; border-radius: 16px; }
  .xs-modal-title { font-size: 17px; }
}

/* ---------- 订单页 / 其它页面残留蓝色 ---------- */
a { color: inherit; }
