/* ========================================
   牛仔很忙导航站 · 美化 V3 - Sun-Panel 风格 1:1
   ======================================== */

/* ---------- 1. 背景：极光渐变 + 弥散光斑（参考站配色）---------- */
body {
  background: linear-gradient(135deg, #0c0a1f 0%, #1e1b4b 30%, #312e81 55%, #4c1d95 75%, #0f172a 100%) !important;
  background-attachment: fixed !important;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  background:
    /* 左上靛蓝光斑 */
    radial-gradient(ellipse 700px 600px at 5% 0%, rgba(59, 130, 246, 0.3), transparent 60%),
    /* 中上紫色光斑 */
    radial-gradient(ellipse 900px 700px at 35% 15%, rgba(139, 92, 246, 0.25), transparent 65%),
    /* 右侧粉紫光斑 */
    radial-gradient(ellipse 800px 650px at 80% 25%, rgba(217, 70, 239, 0.2), transparent 60%),
    /* 右下粉橙光斑 */
    radial-gradient(ellipse 700px 550px at 95% 80%, rgba(236, 72, 153, 0.18), transparent 60%),
    /* 左下青绿光斑 */
    radial-gradient(ellipse 600px 500px at 0% 90%, rgba(34, 197, 94, 0.12), transparent 60%),
    /* 中央底部淡光斑 */
    radial-gradient(ellipse 800px 500px at 50% 100%, rgba(56, 189, 248, 0.1), transparent 70%);
  animation: sunGlowFloat 30s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 1000px 800px at 60% 40%, rgba(244, 114, 182, 0.08), transparent 70%);
  animation: sunGlowFloat2 25s ease-in-out infinite alternate-reverse;
}

@keyframes sunGlowFloat {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.9; }
  50%  { transform: translate(40px, -30px) scale(1.1); opacity: 1; }
  100% { transform: translate(-30px, 20px) scale(0.95); opacity: 0.85; }
}

@keyframes sunGlowFloat2 {
  0%   { transform: translate(0, 0); opacity: 0.6; }
  100% { transform: translate(-50px, 30px); opacity: 1; }
}

/* 内容层在光斑之上 */
.sunPanelCloneApp,
#app, main, .layout, .top,
.hero, .search, .groupNav,
.stats, .homeDockerPanel,
.favoriteItemsSection {
  position: relative;
  z-index: 1;
}

/* ---------- 2. 顶部栏 ---------- */
.top {
  background: rgba(15, 23, 42, 0.25) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* 顶部网络胶囊 */
.topCenterNetwork,
.sun-network-capsule {
  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}

/* ---------- 3. 搜索框 ---------- */
.search {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 9999px !important; /* 胶囊形 */
  height: 46px !important;
  max-width: 680px !important;
  margin: 0 auto !important;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.search:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(167, 139, 250, 0.25) !important;
}

.search:focus-within {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(167, 139, 250, 0.45) !important;
  box-shadow: 
    0 0 40px rgba(139, 92, 246, 0.2),
    0 12px 40px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-1px) !important;
}

/* ---------- 4. 分组/分类导航（胶囊形）---------- */
.groupNav {
  background: transparent !important;
  border: none !important;
  gap: 6px !important;
  padding: 0 !important;
  margin-bottom: 24px !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}

.groupNav button,
.groupNav [class*="tab"],
.sunPanelIconTab {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 9999px !important; /* 胶囊 */
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 13px !important;
  padding: 6px 16px !important;
  height: auto !important;
  line-height: 1.4 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.groupNav button:hover,
.groupNav [class*="tab"]:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-1px) !important;
}

.groupNav button.active,
.groupNav [class*="tab"].active,
.sunPanelIconTab.active {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* ---------- 5. 站点卡片（深紫灰半透明玻璃）---------- */
[class*="sunHomeItem"],
[class*="sunPanelPreviewCard"],
[class*="homeItem"],
.sunHomeItemContextItem,
div[class*="card"][class*="item"] {
  background: rgba(255, 255, 255, 0.035) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  overflow: hidden !important;
}

[class*="sunHomeItem"]:hover,
[class*="sunPanelPreviewCard"]:hover,
[class*="homeItem"]:hover,
.sunHomeItemContextItem:hover {
  background: rgba(49, 46, 129, 0.55) !important;
  border-color: rgba(167, 139, 250, 0.3) !important;
  transform: translateY(-3px) !important;
  box-shadow: 
    0 16px 48px rgba(139, 92, 246, 0.15),
    0 12px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* 卡片图标 */
[class*="sunHomeItem"] img,
[class*="item-icon"] img,
[class*="card"] img[src*="icon"],
[class*="card"] img[src*="favicon"] {
  border-radius: 8px !important;
}

/* ---------- 6. 分组标题 ---------- */
[class*="group-title"],
[class*="section-title"],
.favoriteItemsSection > strong,
.homeDockerHeader {
  color: #f1f5f9 !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  letter-spacing: 0.3px !important;
  margin-bottom: 14px !important;
  margin-top: 28px !important;
  position: relative;
  padding-left: 0 !important;
}

[class*="group-title"]::before,
[class*="section-title"]::before,
.favoriteItemsSection > strong::before,
.homeDockerHeader::before {
  display: none !important; /* 去掉左侧竖条，参考站没有这个 */
}

/* ---------- 7. 登录页（深色玻璃卡片，与首页暗色背景协调）---------- */
.sunAuthGate {
  background: transparent !important;
}

/* 登录页背景：与首页同一套暗紫基调，光斑收敛不抢戏 */
body:has(.sunAuthGate)::before {
  background:
    radial-gradient(ellipse 800px 600px at 20% 25%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(ellipse 700px 500px at 80% 20%, rgba(56, 189, 248, 0.10), transparent 60%),
    radial-gradient(ellipse 600px 500px at 70% 80%, rgba(236, 72, 153, 0.08), transparent 60%);
}

.sunAuthCard {
  background: linear-gradient(160deg, rgba(30, 27, 75, 0.55), rgba(15, 23, 42, 0.65)) !important;
  backdrop-filter: blur(24px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 22px !important;
  width: 400px !important;
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(139, 92, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

/* 登录标题 */
.sunAuthTitle {
  color: #f1f5f9 !important;
  font-weight: 700 !important;
  font-size: 24px !important;
}

.sunAuthSub {
  color: #94a3b8 !important;
  font-size: 13px !important;
}

/* 登录 Tab */
.sunAuthTabs {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  padding: 4px !important;
}

.sunAuthTab {
  color: #94a3b8 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

.sunAuthTab.active {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #f1f5f9 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* 登录输入框 - 深色玻璃质感 */

/* 外层容器：纯布局，无边框无背景 */
.sunAuthField {
  background: transparent !important;
  border: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
}

/* 密码框的 wrap 层：也纯布局，无边框无背景 */
.sunAuthInputWrap {
  background: transparent !important;
  border: none !important;
  position: relative !important;
  height: auto !important;
}

/* 标签：正常文字，在输入框上方 */
.sunAuthField label {
  display: block !important;
  color: #cbd5e1 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  position: static !important;
  transform: none !important;
}

/* 输入框：深色玻璃质感 */
.sunAuthInput,
.sunAuthField input,
.sunAuthInputWrap input {
  width: 100% !important;
  height: 46px !important;
  padding: 0 16px !important;
  margin: 0 !important;
  background: rgba(2, 6, 23, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  color: #f1f5f9 !important;
  font-size: 14px !important;
  line-height: 46px !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* 聚焦状态 */
.sunAuthInput:focus,
.sunAuthField input:focus,
.sunAuthInputWrap input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15) !important;
  background: rgba(2, 6, 23, 0.65) !important;
  outline: none !important;
}

/* 占位符 */
.sunAuthInput::placeholder,
.sunAuthField input::placeholder,
.sunAuthInputWrap input::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
}

/* 密码框眼睛按钮 */
.sunAuthEye {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  font-size: 18px !important;
  padding: 4px !important;
}

/* 品牌图标：去 emoji，用品牌字 + 青绿渐变方块（与侧栏 logo 一致） */
.sunAuthIcon {
  font-size: 0 !important; /* 隐藏 🤖 emoji */
  position: relative !important;
  background: linear-gradient(135deg, #38bdf8, #22c55e) !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.35) !important;
}
.sunAuthIcon::after {
  content: "牛";
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #02121f !important;
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
}

/* 登录按钮：青色渐变，与后台一致（高特异性压住后方的旧紫按钮规则） */
.sunAuthGate .sunAuthBtn,
.sunAuthGate button[type="submit"].btn.primary,
.sunAuthGate .btn.primary,
button.sunAuthBtn {
  background: linear-gradient(135deg, #0ea5e9, #22d3ee) !important;
  color: #02121f !important;
  font-weight: 600 !important;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.sunAuthGate .sunAuthBtn:hover,
.sunAuthGate .btn.primary:hover,
button.sunAuthBtn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* 登录按钮 */
.sunAuthBtn,
button[type="submit"].btn.primary,
.btn.primary {
  background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
  border: none !important;
  border-radius: 10px !important;
  color: white !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  height: 40px !important;
  box-shadow: 
    0 4px 14px rgba(139, 92, 246, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transition: all 0.25s ease !important;
}

.sunAuthBtn:hover,
.btn.primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 
    0 6px 20px rgba(139, 92, 246, 0.45),
    0 4px 12px rgba(236, 72, 153, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.sunAuthBtn:active,
.btn.primary:active {
  transform: translateY(0) !important;
}

/* 记住密码文字 */
.sunAuthRemember {
  color: #64748b !important;
  font-size: 12px !important;
}

/* 底部版权 */
.sunAuthFooter,
.sunPanelPowered {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 12px !important;
}

/* ---------- 8. 系统监控卡片 ---------- */
.sunSystemStatusWidget,
.homeDockerPanel,
.stats .stat,
.sunSystemGaugeCard {
  background: rgba(30, 27, 75, 0.45) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

/* ---------- 9. 按钮通用 ---------- */
.btn {
  border-radius: 8px !important;
  font-size: 13px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn:hover {
  transform: translateY(-1px) !important;
}

.btn:active {
  transform: translateY(0) !important;
}

/* ---------- 10. 滚动条 ---------- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(167, 139, 250, 0.4) !important;
}

/* ---------- 11. 弹窗/模态框 ---------- */
[class*="modal"],
[class*="Modal"],
[class*="dialog"],
[class*="Dialog"],
.contextMenu {
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35) !important;
}

/* ---------- 12. 文字颜色 ---------- */
body, p, span, div, li, label {
  color: #e2e8f0;
}

.muted,
.text-muted,
[class*="muted"] {
  color: #94a3b8 !important;
}

.sunPanelPreviewDesc,
[class*="desc"] {
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 12px !important;
}

/* ---------- 13. 分割线 ---------- */
hr,
[class*="divider"],
[class*="separator"] {
  border-color: rgba(255, 255, 255, 0.06) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

/* ---------- 14. 页面主容器宽度 ---------- */
.layout,
main,
.home-container,
.page-container {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

/* ---------- 15. Hero 区域 ---------- */
.hero,
header.hero,
.page-header {
  text-align: center !important;
  padding: 40px 0 24px !important;
}

.hero h1,
.hero .title,
.sunAuthBrand {
  font-size: 32px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 8px !important;
}

.hero .subtitle,
.hero p {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 14px !important;
  margin-bottom: 20px !important;
}

/* 收藏星标按钮 hover 放大 */
.homeFavoriteBtn {
  transition: all 0.2s ease !important;
}

.homeFavoriteBtn:hover {
  transform: scale(1.15) !important;
}


/* ---------- V3 精修补充 ---------- */

/* 顶部功能按钮统一风格 */
.top .btn,
.top button,
.top [class*="btn"] {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 12px !important;
  padding: 6px 12px !important;
  height: auto !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

.top .btn:hover,
.top button:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-1px) !important;
}

/* 顶部的"刷新状态"之类的绿色/蓝色按钮也统一 */
.top .btn.green,
.top .btn.primary,
.top .btn.ok {
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

.top .btn.green:hover,
.top .btn.primary:hover,
.top .btn.ok:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

/* 分组间距优化 */
.favoriteItemsSection,
.items-section,
[class*="items-section"],
[class*="group-section"] {
  margin-bottom: 32px !important;
}

.favoriteItemsSection + [class*="section"],
[class*="group-section"] + [class*="group-section"] {
  margin-top: 32px !important;
}

/* 分组标题优化 */
[class*="group-title"],
[class*="section-title"],
.favoriteItemsSection > strong,
.homeDockerHeader {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  padding-left: 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* 卡片间距优化 */
[class*="items-grid"],
[class*="card-grid"],
[class*="grid"] {
  gap: 14px !important;
}

/* 站点卡片文字优化 */
[class*="item-title"],
[class*="card-title"],
[class*="item-name"] {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #f1f5f9 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

[class*="item-desc"],
[class*="card-desc"],
[class*="item-subtitle"] {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.35) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 卡片图标更大一点 */
[class*="item-icon"],
[class*="card-icon"],
[class*="icon-wrap"] {
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  flex-shrink: 0 !important;
}

[class*="item-icon"] img,
[class*="card-icon"] img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 8px !important;
}

/* 底部版权位置调整 */
.sunPanelPowered {
  text-align: center !important;
  padding: 24px 0 16px !important;
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.3) !important;
}

/* 批量操作按钮风格统一 */
.bottom-action,
.batch-btn,
[class*="batch"],
[class*="bottom-action"] {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 12px !important;
  box-shadow: none !important;
}

/* 搜索框高度和字号 */
.search input {
  font-size: 15px !important;
  height: 100% !important;
}

.search input::placeholder {
  color: rgba(255, 255, 255, 0.35) !important;
  font-size: 14px !important;
}

/* 页面整体 padding */
body {
  padding: 0 !important;
}

main {
  padding-bottom: 40px !important;
}


/* ---------- Material Symbols 图标字体 ---------- */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* 分类标签里的图标 */
.groupNav .material-symbols-outlined,
.sunPanelIconTab .material-symbols-outlined {
  font-size: 18px !important;
  margin-right: 6px !important;
  vertical-align: middle !important;
}


/* ========================================
   V4 深度精修：玻璃质感 + 精致度升级
   ======================================== */

/* 背景增加噪点纹理和更多光斑层次 */
body::after {
  background: 
    radial-gradient(ellipse 1000px 800px at 60% 40%, rgba(244, 114, 182, 0.08), transparent 70%),
    /* 额外微光斑增加层次 */
    radial-gradient(ellipse 400px 300px at 25% 60%, rgba(56, 189, 248, 0.08), transparent 70%),
    radial-gradient(ellipse 350px 300px at 75% 50%, rgba(167, 139, 250, 0.1), transparent 70%) !important;
}

/* 顶部栏：更高的模糊度 + 更低的透明度 + 顶部渐变高光 */
.top {
  background: rgba(15, 23, 42, 0.15) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  pointer-events: none;
}

/* 搜索框：更强的玻璃感 + 双层光影 */
.search {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 
    0 2px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05) !important;
}

.search:focus-within {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(167, 139, 250, 0.3) !important;
  box-shadow: 
    0 0 30px rgba(139, 92, 246, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* 分类标签：玻璃分层 + 选中态更强 */
.groupNav button,
.groupNav [class*="tab"],
.sunPanelIconTab {
  background: rgba(255, 255, 255, 0.025) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.groupNav button:hover,
.groupNav [class*="tab"]:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.groupNav button.active,
.groupNav [class*="tab"].active,
.sunPanelIconTab.active {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  font-weight: 500 !important;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* 站点卡片：深度玻璃质感升级 */
[class*="sunHomeItem"],
[class*="sunPanelPreviewCard"],
[class*="homeItem"],
.sunHomeItemContextItem,
div[class*="card"][class*="item"] {
  background: rgba(255, 255, 255, 0.025) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

[class*="sunHomeItem"]:hover,
[class*="sunPanelPreviewCard"]:hover,
[class*="homeItem"]:hover,
.sunHomeItemContextItem:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(167, 139, 250, 0.25) !important;
  transform: translateY(-4px) !important;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.25),
    0 8px 24px rgba(139, 92, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* 卡片标题加粗，副标题更淡 */
[class*="item-title"],
[class*="card-title"],
[class*="item-name"] {
  font-weight: 600 !important;
  color: #f8fafc !important;
  font-size: 13px !important;
}

/* 系统监控卡片玻璃分层 */
.sunSystemStatusWidget,
.homeDockerPanel,
.stats .stat,
.sunSystemGaugeCard {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 
    0 2px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

/* 分组标题更精致 */
[class*="group-title"],
[class*="section-title"],
.favoriteItemsSection > strong,
.homeDockerHeader {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.8) !important;
  letter-spacing: 0.5px !important;
}

/* 顶部按钮更精致 */
.top .btn,
.top button {
  font-size: 11px !important;
  padding: 5px 10px !important;
}

/* 页面纵向间距更疏朗 */
.hero, header.hero, .page-header {
  padding: 50px 0 28px !important;
}

/* 搜索框和分组的间距 */
.search + * {
  margin-top: 20px !important;
}

/* 卡片网格间距 */
[class*="items-grid"], [class*="card-grid"], [class*="grid"] {
  gap: 12px !important;
}

/* 分组间距 */
.favoriteItemsSection,
.items-section,
[class*="items-section"],
[class*="group-section"] {
  margin-bottom: 36px !important;
}



/* ========================================
   📱 移动端响应式优化
   ======================================== */

/* ---------- 平板/大屏手机 (≤ 720px) ---------- */
@media (max-width: 720px) {
  /* 主标题缩小 */
  .hero h1,
  .hero .title,
  .sunAuthBrand {
    font-size: 28px !important;
  }
  
  .hero .subtitle {
    font-size: 13px !important;
  }
  
  /* 搜索框变小 */
  .search input {
    height: 44px !important;
    font-size: 14px !important;
  }
  
  /* 分组标签可横向滚动 */
  .groupNav {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 4px !important;
    scrollbar-width: none !important;
  }
  .groupNav::-webkit-scrollbar {
    display: none !important;
  }
  
  .groupNav button {
    flex-shrink: 0 !important;
  }
}

/* ---------- 手机 (≤ 560px) ---------- */
@media (max-width: 560px) {
  
  /* ===== 顶部栏专项优化 ===== */
  
  /* 顶部容器 */
  .top {
    padding: 8px 12px !important;
    gap: 8px !important;
    min-height: 44px !important;
    flex-wrap: wrap !important;
  }
  
  /* 品牌区 */
  .brand {
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  
  .brand .logo {
    font-size: 18px !important;
    width: 28px !important;
    height: 28px !important;
  }
  
  .brand .title {
    font-size: 14px !important;
    font-weight: 600 !important;
    max-width: 80px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  
  .brand .subtitle {
    display: none !important;
  }
  
  /* 操作按钮组 */
  .actions {
    gap: 4px !important;
    margin-left: auto !important;
  }
  
  .actions .btn {
    padding: 5px 10px !important;
    font-size: 11px !important;
    height: 28px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }
  
  /* IP/网络信息条 - 手机上占满整行 */
  .topCenterNetwork,
  .network {
    order: 99 !important;
    width: 100% !important;
    margin-top: 6px !important;
    padding: 6px 10px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    justify-content: flex-start !important;
    gap: 12px !important;
  }
  
  .topCenterNetwork::-webkit-scrollbar,
  .network::-webkit-scrollbar {
    display: none !important;
  }
  
  .network .item {
    flex-shrink: 0 !important;
    font-size: 10px !important;
    gap: 4px !important;
  }
  
  .network .item .value {
    font-size: 11px !important;
  }
  
  .network .item .label {
    display: none !important;
  }

  /* 背景光斑缩小，避免溢出 */
  body::before,
  body::after {
    width: 300px !important;
    height: 300px !important;
  }
  
  /* 顶部栏 */
  .top {
    padding: 10px 14px !important;
    gap: 8px !important;
  }
  
  .brand {
    gap: 6px !important;
  }
  
  .brand .logo {
    font-size: 20px !important;
  }
  
  .brand .title {
    font-size: 15px !important;
  }
  
  .actions .btn {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }
  
  /* 主标题 */
  .hero {
    padding: 20px 0 10px !important;
  }
  
  .hero h1,
  .hero .title,
  .sunAuthBrand {
    font-size: 24px !important;
    margin-bottom: 4px !important;
  }
  
  .hero .subtitle {
    font-size: 12px !important;
  }
  
  /* 搜索框 */
  .search {
    max-width: 100% !important;
    padding: 0 10px !important;
  }
  
  .search input {
    height: 42px !important;
    font-size: 14px !important;
    padding: 0 16px !important;
    border-radius: 21px !important;
  }
  
  /* 分组标题 */
  .groupTitle {
    font-size: 14px !important;
    padding: 0 4px !important;
    margin: 20px 0 8px !important;
  }
  
  /* 卡片网格 - 3列 */
  .sunHomeAppGrid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  
  .sunHomeAppGrid .card {
    padding: 10px 6px !important;
    border-radius: 10px !important;
    gap: 4px !important;
  }
  
  .sunHomeAppGrid .card .ico {
    width: 32px !important;
    height: 32px !important;
    font-size: 18px !important;
    border-radius: 8px !important;
  }
  
  .sunHomeAppGrid .card .name {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }
  
  .sunHomeAppGrid .card .desc {
    display: none !important;
  }
  
  /* 收藏区域 */
  .favoriteSection {
    margin: 16px 0 8px !important;
  }
  
  .favoriteTitle {
    font-size: 13px !important;
    margin-bottom: 8px !important;
  }
  
  /* 分组导航按钮缩小 */
  .groupNav button {
    padding: 6px 12px !important;
    font-size: 12px !important;
    border-radius: 16px !important;
  }
  
  /* 系统监控条 */
  .network {
    padding: 8px 10px !important;
    gap: 12px !important;
  }
  
  .network .item {
    font-size: 10px !important;
  }
  
  .network .item .value {
    font-size: 12px !important;
  }
  
  /* 登录卡片 */
  .sunAuthCard {
    width: calc(100vw - 28px) !important;
    padding: 20px 18px 16px !important;
    border-radius: 16px !important;
    margin: 0 !important;
  }
  
  .sunAuthTitle {
    font-size: 18px !important;
  }
  
  .sunAuthSub {
    font-size: 12px !important;
  }
  
  .sunAuthInput {
    height: 42px !important;
    font-size: 13px !important;
  }
  
  .sunAuthBtn {
    height: 42px !important;
    font-size: 14px !important;
  }
  
  /* 底部版权 */
  .sunAuthFooter,
  .sunPanelPowered {
    font-size: 10px !important;
  }
}

/* ---------- 小屏手机 (≤ 420px) ---------- */
@media (max-width: 420px) {
  
  /* ===== 顶部栏小屏极致优化 ===== */
  
  .top {
    padding: 6px 10px !important;
    gap: 6px !important;
  }
  
  .brand .title {
    display: none !important;
  }
  
  .brand .logo {
    font-size: 16px !important;
    width: 24px !important;
    height: 24px !important;
  }
  
  .actions .btn {
    padding: 4px 8px !important;
    font-size: 10px !important;
    height: 26px !important;
  }
  
  .topCenterNetwork,
  .network {
    padding: 5px 8px !important;
    gap: 10px !important;
  }
  
  .network .item {
    font-size: 9px !important;
  }
  
  .network .item .value {
    font-size: 10px !important;
  }

  /* 卡片网格 - 2列更舒适 */
  .sunHomeAppGrid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }
  
  .sunHomeAppGrid .card {
    padding: 8px 4px !important;
    border-radius: 8px !important;
  }
  
  .sunHomeAppGrid .card .ico {
    width: 28px !important;
    height: 28px !important;
    font-size: 16px !important;
    border-radius: 6px !important;
  }
  
  .sunHomeAppGrid .card .name {
    font-size: 10px !important;
  }
  
  /* 标题更小 */
  .hero h1,
  .hero .title,
  .sunAuthBrand {
    font-size: 20px !important;
  }
  
  /* 顶部操作按钮文字隐藏，只留图标 */
  .actions .btn {
    padding: 6px 8px !important;
    font-size: 0 !important;
  }
  
  .actions .btn::before {
    font-size: 14px !important;
  }
  
  /* 登录卡片 */
  .sunAuthCard {
    padding: 18px 14px 14px !important;
    border-radius: 14px !important;
  }
}

/* ---------- 超小屏 (≤ 360px) ---------- */
@media (max-width: 360px) {
  .sunHomeAppGrid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
  }
  
  .sunHomeAppGrid .card .name {
    font-size: 9px !important;
  }
  
  .hero h1,
  .hero .title {
    font-size: 18px !important;
  }
  
  .search input {
    height: 40px !important;
    font-size: 13px !important;
  }
}

/* ========== 分组标题栏：添加 + 排序 图标 磨砂玻璃 v4 ========== */
/* 强制按钮并排不换行 */
.sunHomeGroupActions {
  flex-wrap: nowrap !important;
  overflow: visible !important;
}
/* 磨砂玻璃胶囊按钮：半透明毛玻璃 + 白图标 + 悬浮投影 */
.sunHomeGroupActions .sunHomeIconBtn.sunAddIconV3,
.sunHomeGroupActions .sunHomeIconBtn.sunSortIconV2 {
  width: 28px !important;
  height: 28px !important;
  margin: 0 2px !important;
  flex-shrink: 0 !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.10) !important;
  backdrop-filter: blur(12px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(150%) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.15) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  transition: all .18s ease !important;
}
.sunHomeGroupActions .sunHomeIconBtn.sunAddIconV3:hover,
.sunHomeGroupActions .sunHomeIconBtn.sunSortIconV2:hover {
  background: rgba(255,255,255,.18) !important;
  border-color: rgba(255,255,255,.34) !important;
  box-shadow: 0 6px 22px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.24) !important;
  transform: translateY(-1px) !important;
}
/* 白色图标 */
.sunHomeGroupActions .sunHomeIconBtn.sunAddIconV3 svg,
.sunHomeGroupActions .sunHomeIconBtn.sunSortIconV2 svg {
  width: 16px !important;
  height: 16px !important;
  display: block !important;
  stroke: #fff !important;
}
/* 排序激活态：图标金 + 圆底微金 */
.sunHomeGroupActions .sunHomeIconBtn.sunSortIconV2.sortActive {
  background: rgba(236,201,77,.16) !important;
  border-color: rgba(236,201,77,.45) !important;
}
.sunHomeGroupActions .sunHomeIconBtn.sunSortIconV2.sortActive svg {
  stroke: #ecc94d !important;
}
/* 覆盖 app.css 里 .sunGroupSegmentActionsV1 ... .sunAddIconV3{width:44px!important} 的高特异性规则，
   保持添加按钮与排序按钮等大（32px） */
.sunGroupSegmentActionsV1 .sunHomeGroupActions .sunHomeIconBtn.sunAddIconV3,
.sunGroupSegmentActionsV1 .sunHomeGroupActions .sunHomeIconBtn.sunSortIconV2 {
  width: 28px !important;
  height: 28px !important;
}


/* ========== 移动端优化 (≤768px) 更紧凑好看 ========== */
@media (max-width: 768px) {
  /* 图标尺寸变量：移动端缩小（覆盖 JS 写入 :root 的 50px） */
  :root { --home-icon-size: 40px !important; }
  /* 分组标题栏：更紧凑 */
  .sunHomeGroupHeader { padding: 6px 4px !important; }
  .sunHomeGroupTitle { font-size: 14px !important; }
  /* 添加/排序图标按钮：移动端稍小 */
  .sunHomeGroupActions .sunHomeIconBtn.sunAddIconV3,
  .sunHomeGroupActions .sunHomeIconBtn.sunSortIconV2,
  .sunGroupSegmentActionsV1 .sunHomeGroupActions .sunHomeIconBtn.sunAddIconV3,
  .sunGroupSegmentActionsV1 .sunHomeGroupActions .sunHomeIconBtn.sunSortIconV2 {
    width: 26px !important;
    height: 26px !important;
    flex: 0 0 26px !important;
  }
  .sunHomeGroupActions .sunHomeIconBtn.sunAddIconV3 svg,
  .sunHomeGroupActions .sunHomeIconBtn.sunSortIconV2 svg {
    width: 15px !important;
    height: 15px !important;
  }
  /* 卡片网格：更紧凑 */
  .sunHomeAppGrid { gap: 5px !important; }
  /* 卡片：图标更小、内边距收紧 */
  .sunHomeAppGrid .card { padding: 5px 2px !important; border-radius: 10px !important; }
  html body .sunHomeAppGrid .card .ico { width: 40px !important; height: 40px !important; }
  .sunHomeAppGrid .card h3 { font-size: 11px !important; }
  .sunHomeAppGrid .card .card-desc { font-size: 8.5px !important; }
  /* 分组间距 */
  .sunHomeGroup { margin: 8px 0 !important; }
  /* 覆盖 app.css 的 body .sunHomeAppGrid .card .ico{width:50px!important}，图标压到 40px（置于段尾保证后加载优先） */
  html body .sunHomeAppGrid .card .ico,
  html body .sunHomeAppGrid.sorting .card .ico {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    flex-basis: 40px !important;
    transition: none !important;
  }
}



/* ===== 分类头部操作按钮：更小、更低调、悬浮显示 ===== */
.sunHomeGroupHeader .sunHomeGroupActions{gap:4px!important}
.sunHomeGroupHeader .sunHomeGroupActions .sunHomeIconBtn.sunAddIconV3,
.sunHomeGroupHeader .sunHomeGroupActions .sunHomeIconBtn.sunSortIconV2,
.sunHomeGroupHeader .sunHomeGroupActions .sunHomeIconBtn[title="删除分类"]{width:21px!important;height:21px!important;min-width:21px!important;max-width:21px!important;flex:0 0 21px!important;border-radius:6px!important;font-size:13px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:transparent!important;border:1px solid transparent!important;box-shadow:none!important;color:#cbd5e1!important;opacity:.92!important;margin:0!important;padding:0!important;background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.12)!important;color:#e2e8f0!important;transition:opacity .15s ease,background .15s ease,border-color .15s ease!important}
.sunHomeGroupHeader .sunHomeGroupActions .sunHomeIconBtn.sunAddIconV3:hover,
.sunHomeGroupHeader .sunHomeGroupActions .sunHomeIconBtn.sunSortIconV2:hover,
.sunHomeGroupHeader .sunHomeGroupActions .sunHomeIconBtn[title="删除分类"]:hover{opacity:1!important;background:rgba(255,255,255,.16)!important;border-color:rgba(255,255,255,.22)!important}
.sunHomeGroupHeader .sunHomeGroupActions .sunHomeIconBtn.sunAddIconV3 svg,
.sunHomeGroupHeader .sunHomeGroupActions .sunHomeIconBtn.sunSortIconV2 svg,
.sunHomeGroupHeader .sunHomeGroupActions .sunHomeIconBtn[title="删除分类"] svg{width:12px!important;height:12px!important;stroke-width:2!important}
.sunHomeGroupHeader .sunHomeGroupActions .sunHomeIconBtn[title="删除分类"] svg{stroke:#fca5a5!important}

/* 收藏星标：已收藏黄色，未收藏灰白 */
.homeFavoriteBtn .homeFavoriteStar{color:rgba(255,255,255,.5);font-size:11px;line-height:1;}
.homeFavoriteBtn.active .homeFavoriteStar{color:#fbbf24 !important;text-shadow:0 0 7px rgba(251,191,36,.55);}
