/* ============================================================
   飞羽互娱演示系统 · 陪玩中心 视觉改版 v2
   对齐管理端配色：白瓷底 + 墨绿 + 金箔点缀 + 浅灰绿分隔
   桌面浅色工作台侧栏 + 白色悬浮顶栏；仅被 player/index.html 引用
   ============================================================ */
:root {
  --brand-950: #0c3571;
  --brand-900: #103e83;
  --brand-800: #134997;
  --brand-700: #1855ad;
  --brand-600: #2869c9;
  --brand-500: #4a85de;
  --brand-400: #80adf6;
  --brand-300: #b7d1ff;
  --brand-200: #d5e4ff;
  --brand-100: #e8f0ff;
  --brand-50:  #ecf3ff;
  --fy-gold: #c5a55e;
  --fy-gold-2: #bcd4ff;
  --fy-rose: #c9857f;
  --fy-ink: #0d3776;
  --fy-ink-2: #144c9d;
  --fy-muted: #3776d4;
  --fy-line: rgba(12,53,113, 0.10);
  --fy-text: #144c9d;
}

/* ---------------- 画布：白瓷底 + 极浅绿金雾 ---------------- */
html, body {
  background: #f1f6ff !important;
  color: var(--fy-ink);
}
.player-layout {
  background:
    radial-gradient(1100px 720px at 8% -12%, rgba(213,228,255, 0.75), transparent 62%),
    radial-gradient(900px 620px at 104% -6%, rgba(188,212,255, 0.42), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #f1f6ff 46%, #ecf3ff 100%) !important;
  position: relative;
  isolation: isolate;
}
.player-layout::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(rgba(12,53,113, 0.028) 1px, transparent 1px),
    linear-gradient(120deg, rgba(255,255,255, 0.6), transparent 40%);
  background-size: 24px 24px, 100% 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 60%);
}
.player-layout-body {
  background: transparent !important;
  position: relative;
  z-index: 1;
  padding-bottom: 24px;
}

/* ---------------- 侧边栏：白底浅色工作台（同管理端） ---------------- */
@media (min-width: 1024px) {
  .app-sider {
    width: 252px !important;
    padding: 0 !important;
    background: #ffffff !important;
    border-right: 1px solid var(--brand-200) !important;
    box-shadow: 2px 0 10px rgba(12,53,113, 0.06) !important;
    position: relative;
    z-index: 5;
  }
  .app-sider::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(420px 240px at 20% 0%, rgba(213,228,255, 0.55), transparent 62%),
      radial-gradient(320px 220px at 100% 100%, rgba(188,212,255, 0.28), transparent 62%);
  }
  .app-sider-header {
    height: auto !important;
    padding: 24px 20px 18px !important;
    border-bottom: 0 !important;
    gap: 12px;
    position: relative;
    z-index: 2;
  }
  .app-sider-header::after {
    content: "";
    position: absolute;
    left: 20px; right: 20px; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(74,133,222, 0.45), rgba(213,228,255, 0.9));
  }
  .app-sider-logo {
    width: 42px !important;
    height: 42px !important;
    border-radius: 13px !important;
    padding: 3px;
    background: #ffffff;
    box-shadow: 0 0 0 1px var(--brand-200), 0 6px 16px rgba(12,53,113, 0.10);
  }
  .app-sider-brand {
    color: var(--brand-950) !important;
    font-size: 19px !important;
    letter-spacing: 1px;
    font-weight: 700;
    line-height: 1.15;
  }
  .app-sider-brand::after {
    content: "PLAYER  CENTER";
    display: block;
    margin-top: 4px;
    font-size: 9px;
    letter-spacing: 2.4px;
    font-weight: 500;
    color: var(--brand-500);
  }

  .app-sider-menu { padding: 14px 12px 10px !important; }
  .app-sider-group { margin-bottom: 4px; }
  .app-sider-group-title {
    padding: 14px 10px 8px !important;
    font-size: 10.5px !important;
    letter-spacing: 2.4px;
    font-weight: 600 !important;
    color: var(--fy-muted) !important;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .app-sider-group-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--brand-200), transparent);
  }
  .app-sider-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 10px !important;
    margin: 2px 0;
    border-radius: 10px !important;
    color: var(--fy-ink-2) !important;
    font-size: 13.5px !important;
    letter-spacing: 0.3px;
    transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
  }
  .app-sider-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px; bottom: 12px;
    width: 2px;
    border-radius: 2px;
    background: transparent;
    transition: background .2s ease;
  }
  .app-sider-item:hover {
    background: var(--brand-100) !important;
    color: var(--brand-900) !important;
    transform: translateX(2px);
  }
  .app-sider-item.active {
    background: linear-gradient(135deg, var(--brand-700), var(--brand-600)) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 6px 16px rgba(12,53,113, 0.22);
  }

  /* 图标容器：浅绿方块，选中时反白 */
  .app-sider-dot {
    width: 30px !important;
    height: 30px !important;
    border-radius: 9px !important;
    background: var(--brand-100) !important;
    box-shadow: inset 0 0 0 1px var(--brand-200);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: none !important;
  }
  .app-sider-dot::before { display: none !important; }
  .app-sider-dot svg { width: 15px; height: 15px; display: block; color: var(--brand-700); }
  .app-sider-item.active .app-sider-dot {
    background: rgba(255,255,255, 0.18) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255, 0.28);
  }
  .app-sider-item.active .app-sider-dot svg { color: #ffffff; }

  .app-sider-footer {
    padding: 16px 16px 20px !important;
    border-top: 1px solid var(--brand-200) !important;
    position: relative;
    z-index: 2;
  }
  .app-sider-logout {
    width: 100%;
    padding: 10px 12px !important;
    border: 1px solid rgba(201, 133, 127, 0.45) !important;
    background: #ffffff !important;
    color: var(--fy-rose) !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    letter-spacing: 1px;
    box-shadow: none !important;
  }
  .app-sider-logout:hover {
    background: rgba(201, 133, 127, 0.12) !important;
    border-color: var(--fy-rose) !important;
    color: var(--fy-rose) !important;
  }
}

/* ---------------- 桌面顶栏：白色玻璃（由 skin.js 注入） ---------------- */
.fy-topbar {
  position: sticky;
  top: 14px;
  z-index: 60;
  margin: 14px 24px 0;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 14px 0 18px;
  border-radius: 16px;
  background: rgba(255,255,255, 0.95);
  border: 1px solid var(--brand-200);
  box-shadow: 0 2px 12px rgba(12,53,113, 0.08);
  backdrop-filter: blur(16px) saturate(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
  font-family: inherit;
}
.fy-topbar-logo {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--brand-200);
  overflow: hidden; flex: none;
}
.fy-topbar-logo img { width: 100%; height: 100%; object-fit: contain; }
.fy-topbar-title { display: flex; flex-direction: column; line-height: 1.2; margin-right: 4px; }
.fy-topbar-title b { color: var(--brand-950); font-size: 15px; letter-spacing: 0.8px; }
.fy-topbar-title small { color: var(--brand-500); font-size: 9px; letter-spacing: 2px; margin-top: 3px; }
.fy-topbar-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.fy-topbar-nav a {
  text-decoration: none;
  color: var(--fy-muted);
  font-size: 13px;
  padding: 8px 13px;
  border-radius: 10px;
  transition: background .18s ease, color .18s ease;
  white-space: nowrap;
}
.fy-topbar-nav a:hover { background: var(--brand-100); color: var(--brand-800); }
.fy-topbar-nav a.active {
  background: var(--brand-100);
  color: var(--brand-800);
  box-shadow: inset 0 0 0 1px var(--brand-300);
  font-weight: 600;
}
.fy-topbar-user {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 12px 5px 6px;
  border-radius: 12px;
  background: var(--brand-50);
  box-shadow: inset 0 0 0 1px var(--brand-200);
  margin-left: 10px;
  flex: none;
}
.fy-topbar-avatar {
  width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--brand-700), var(--brand-800));
  color: var(--fy-gold-2); font-size: 13px; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255, 0.22);
}
.fy-topbar-user b { display: block; color: var(--fy-ink); font-size: 13px; line-height: 1.1; font-weight: 600; }
.fy-topbar-user small { display: block; color: var(--fy-muted); font-size: 9.5px; letter-spacing: 1.4px; margin-top: 2px; }
@media (max-width: 1279px) { .fy-topbar-nav a { padding: 7px 9px; } }

/* ---------------- 子页顶栏：白色 ---------------- */
.nav-header {
  background: rgba(255,255,255, 0.96) !important;
  border-bottom: 1px solid var(--brand-200) !important;
  box-shadow: 0 1px 8px rgba(12,53,113, 0.06) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-bar { height: 64px !important; }
.nav-title {
  color: var(--brand-950) !important;
  font-size: 16px !important;
  letter-spacing: 1.2px;
  font-weight: 700;
}
.nav-title::after {
  content: "";
  display: block;
  width: 26px; height: 2px;
  margin: 6px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-600), transparent);
}
.nav-back {
  background: var(--brand-100) !important;
  border: 1px solid var(--brand-300) !important;
  color: var(--brand-800) !important;
  border-radius: 10px !important;
  width: 34px !important; height: 34px !important;
}
.nav-back:active { transform: scale(0.94); background: var(--brand-200) !important; }
.nav-right { color: var(--brand-800) !important; }

/* ---------------- 移动端底部导航：白底 ---------------- */
.player-navbar {
  background: rgba(255,255,255, 0.97) !important;
  border: 1px solid var(--brand-200) !important;
  box-shadow: 0 10px 26px rgba(12,53,113, 0.10) !important;
  height: 64px !important;
  padding: 6px !important;
  gap: 6px;
}
.player-navbar-item {
  border-radius: 14px;
  color: var(--fy-muted) !important;
  font-size: 11.5px !important;
  letter-spacing: 0.5px;
}
.player-navbar-item .anticon { color: var(--brand-500) !important; }
.player-navbar-item span { color: inherit !important; }
.player-navbar-item.active {
  background: var(--brand-100) !important;
  box-shadow: inset 0 0 0 1px var(--brand-300);
  color: var(--brand-800) !important;
  font-weight: 600;
}
.player-navbar-item.active .anticon { color: var(--brand-700) !important; }

/* ---------------- 内容：白卡 + 浅绿描边 ---------------- */
@media (min-width: 1024px) {
  .home-page { padding-top: 26px !important; }
  .logo-area { filter: drop-shadow(0 12px 24px rgba(12,53,113, 0.10)); }
  .section-title {
    font-size: 15px !important;
    letter-spacing: 1px;
    color: var(--brand-950) !important;
  }
  .section-title::before {
    width: 3px !important;
    height: 16px !important;
    border-radius: 3px !important;
    background: linear-gradient(180deg, var(--brand-600), var(--fy-gold)) !important;
  }
  .quick-item, .home-quick-item {
    background: var(--brand-50) !important;
    border: 1px solid var(--brand-200) !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 14px rgba(12,53,113, 0.06) !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
  }
  .quick-item:hover, .home-quick-item:hover {
    transform: translateY(-3px);
    border-color: var(--brand-400) !important;
    box-shadow: 0 12px 26px rgba(12,53,113, 0.10) !important;
  }
  .quick-icon, .home-quick-icon {
    background: var(--brand-100) !important;
    border: 1px solid var(--brand-300) !important;
    color: var(--brand-800) !important;
    border-radius: 12px !important;
  }
}

/* 移动端画布：白到浅绿 ---------------- */
@media (max-width: 1023px) {
  .player-layout {
    background:
      radial-gradient(600px 420px at 80% -8%, rgba(188,212,255, 0.34), transparent 62%),
      radial-gradient(520px 400px at 0% 8%, rgba(213,228,255, 0.6), transparent 60%),
      linear-gradient(180deg, #ffffff, #f1f6ff 60%, #ecf3ff 100%) !important;
  }
  .player-layout-body { padding-top: 8px; }
}

/* 内容区不再铺白，让淡底纹透出来 */
.home-merged,
.home-page,
.order-page,
.me-page,
.bill-page,
.record-page,
.take-page,
.settings-page,
.profile-page,
.price-container,
.timer-page,
.vt-page,
.ranking-container {
  background: transparent !important;
}
@media (min-width: 1024px) {
  .home-page { max-width: 1160px !important; padding-left: 40px !important; padding-right: 40px !important; }
  .me-page .club-header { max-width: 1000px; }
}

/* ---------------- 手机端：白色品牌条 + 白底导航 ---------------- */
.fy-mobilehead { display: none; }
@media (max-width: 1023px) {
  .fy-mobilehead {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 54px;
    margin: 10px 12px 2px;
    padding: 0 12px;
    border-radius: 14px;
    background: rgba(255,255,255, 0.97);
    border: 1px solid var(--brand-200);
    box-shadow: 0 6px 18px rgba(12,53,113, 0.08);
  }
  .fy-mobilehead .fy-topbar-logo { width: 30px; height: 30px; border-radius: 9px; }
  .fy-mobilehead .fy-topbar-title b { font-size: 13.5px; color: var(--brand-950); }
  .fy-mobilehead .fy-topbar-title small { font-size: 8px; letter-spacing: 1.8px; margin-top: 2px; color: var(--brand-500); }
  .fy-mobilehead .fy-topbar-user { margin-left: auto; }

  .player-navbar {
    height: 62px !important;
    padding: 8px 10px !important;
    max-width: calc(100% - 24px) !important;
    border-radius: 18px !important;
  }
  .player-navbar-item {
    position: relative;
    border-radius: 12px;
    font-size: 11px !important;
  }
  .player-navbar-item.active {
    background: transparent !important;
    box-shadow: none !important;
    color: var(--brand-800) !important;
  }
  .player-navbar-item.active::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-600), transparent);
  }
  .player-navbar-item.active .anticon { color: var(--brand-700) !important; }
}

/* ---------------- 工具组：保底计算置顶 / 外链小标 ---------------- */
a.app-sider-item { text-decoration: none; }
.fy-tool-name { white-space: nowrap; }
.fy-pin {
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 1px;
  border-radius: 6px;
  color: #3a2c08;
  background: linear-gradient(135deg, var(--fy-gold-2), var(--fy-gold));
  box-shadow: 0 2px 6px rgba(197, 165, 94, 0.28);
  flex: none;
}
.fy-ext {
  margin-left: auto;
  font-size: 10px;
  color: rgba(24,85,173, 0.55);
  opacity: 0.9;
  flex: none;
}
.app-sider-item:hover .fy-ext { color: var(--brand-700); }
.app-sider-item.active .fy-ext { color: rgba(255,255,255, 0.75); }
