/* ============================================================
   诉言客服台 · UI 美化主题（登录页：星空银河 / 主页：蓝色动漫少女）
   纯样式覆盖，不改动任何功能逻辑
   ============================================================ */

/* ---------- 登录页 / 注册页（星空银河背景） ---------- */
.login-page,
.register-page {
  background:
    linear-gradient(180deg, rgba(2, 6, 18, 0.12) 0%, rgba(4, 10, 26, 0.26) 55%, rgba(2, 6, 18, 0.40) 100%),
    url('/assets/bg-login.jpg') center / cover no-repeat fixed !important;
  min-height: 100vh !important;
}

.login-container,
.register-container {
  background: linear-gradient(165deg, rgba(10, 16, 34, 0.62), rgba(6, 10, 24, 0.48)) !important;
  -webkit-backdrop-filter: blur(22px) saturate(150%) !important;
  backdrop-filter: blur(22px) saturate(150%) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 26px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  padding: 38px 26px 30px !important;
  max-width: 340px !important;
  margin: 0 auto !important;
}

.login-container .brand h1,
.register-container .brand h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 18px rgba(80, 130, 255, 0.35);
}

.login-container .brand p,
.register-container .brand p {
  color: rgba(210, 222, 245, 0.72) !important;
}

.login-page .input-group,
.register-page .input-group {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
  border-radius: 14px !important;
  transition: border-color .25s, background .25s;
}

.login-page .input-group:focus-within,
.register-page .input-group:focus-within {
  border-color: rgba(120, 165, 255, 0.75) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 0 0 3px rgba(90, 140, 255, 0.15);
}

.login-page .input-group input,
.register-page .input-group input {
  color: #f2f6ff !important;
  caret-color: #7fb0ff;
}

.login-page .input-group input::placeholder,
.register-page .input-group input::placeholder {
  color: rgba(200, 214, 240, 0.45) !important;
}

.login-page .input-icon,
.register-page .input-icon {
  color: rgba(190, 208, 240, 0.6) !important;
}

.login-page .toggle-pwd,
.register-page .toggle-pwd {
  color: rgba(190, 208, 240, 0.6) !important;
}

.login-btn,
.register-btn {
  background: linear-gradient(135deg, #3d7bff 0%, #6a5cff 55%, #8a5cff 100%) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 4px;
  box-shadow: 0 10px 26px rgba(70, 110, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

.login-btn:active,
.register-btn:active {
  transform: translateY(1px) scale(0.985);
  filter: brightness(1.05);
}

.login-page .footer p,
.register-page .footer p {
  color: rgba(205, 218, 242, 0.6) !important;
}

.login-page .footer a,
.register-page .footer a {
  color: #8ab6ff !important;
  font-weight: 600;
}

/* ---------- 主页 / 控制面板（蓝色动漫少女背景） ---------- */
.page-wrapper {
  background:
    linear-gradient(165deg, rgba(8, 14, 36, 0.10) 0%, rgba(10, 18, 44, 0.20) 55%, rgba(6, 10, 30, 0.30) 100%),
    url('/assets/bg-home.jpg') center / cover no-repeat fixed !important;
  min-height: 100vh !important;
}

/* 主内容玻璃容器：保留原字色对比，降低可读性风险 */
.main-content.c1s-style {
  background: linear-gradient(168deg, rgba(244, 247, 255, 0.74), rgba(236, 242, 255, 0.66)) !important;
  -webkit-backdrop-filter: blur(26px) saturate(160%) !important;
  backdrop-filter: blur(26px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 50px rgba(8, 16, 40, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

.main-content.chat-content {
  background: linear-gradient(168deg, rgba(250, 251, 255, 0.88), rgba(244, 247, 255, 0.82)) !important;
  -webkit-backdrop-filter: blur(26px) saturate(160%) !important;
  backdrop-filter: blur(26px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 50px rgba(8, 16, 40, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

/* 顶栏 */
.c1s-header h1 {
  background: linear-gradient(120deg, #23325e, #4f6ad1) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  letter-spacing: 2px;
}

.c1s-settings-btn {
  color: #45537e !important;
}

/* 余额卡片：深蓝玻璃 */
.hero-card {
  background: linear-gradient(150deg, rgba(20, 32, 74, 0.94), rgba(44, 58, 130, 0.88)) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(130, 160, 255, 0.35) !important;
  border-radius: 20px !important;
  box-shadow: 0 14px 34px rgba(20, 36, 90, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(120, 160, 255, 0.30), transparent 65%);
  pointer-events: none;
}

.hero-label {
  color: rgba(190, 208, 250, 0.85) !important;
}

.hero-balance {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero-meta .meta-key,
.hero-meta .meta-row,
.hero-meta {
  color: rgba(198, 212, 248, 0.88) !important;
}

/* 区块标题 */
.c1s-section-title {
  color: #2a3560 !important;
}

.c1s-admin-badge {
  background: linear-gradient(135deg, #4f7cff, #8a5cff) !important;
  box-shadow: 0 4px 12px rgba(90, 110, 255, 0.35);
}

/* 功能入口与管理员按钮：白玻璃 + 悬浮动效 */
.c1s-feature-btn,
.c1s-admin-btn {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(240, 244, 255, 0.82)) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 18px rgba(30, 48, 110, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  transition: transform .18s ease, box-shadow .18s ease !important;
}

.c1s-feature-btn:hover,
.c1s-admin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(30, 48, 110, 0.18) !important;
}

.c1s-feature-btn:active,
.c1s-admin-btn:active {
  transform: scale(0.96);
}

.c1s-feature-btn svg,
.c1s-admin-btn svg {
  filter: drop-shadow(0 2px 4px rgba(60, 90, 200, 0.18));
}

.c1s-label {
  color: #2c3866 !important;
}

/* 底部导航：白玻璃 */
.tabbar {
  background: rgba(252, 253, 255, 0.88) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 -8px 30px rgba(10, 20, 50, 0.10) !important;
}

.tabbar .tab .tab-tx {
  color: #7a86a8 !important;
}

.tabbar .tab.active .tab-tx {
  color: #3d63d6 !important;
}

.tabbar .tab svg {
  color: #8b96b6;
}

.tabbar .tab.active svg {
  color: #3d63d6;
  filter: drop-shadow(0 2px 6px rgba(60, 100, 220, 0.3));
}

/* ---------- 小屏适配 ---------- */
@media (max-width: 480px) {
  .login-container,
  .register-container {
    margin: 0 18px !important;
    padding: 32px 20px 26px !important;
  }
  .main-content.c1s-style,
  .main-content.chat-content {
    border-radius: 20px !important;
  }
}
