/* Sun-Panel-Helper CSS */
/* 此文件由系统自动管理，请勿手动修改 */
/* 警告：手动修改可能导致样式冲突或程序异常 */
/* 上次更新：5/29/2026, 1:09:40 AM */

/* Sun-Panel-Helper CSS Start: card-hover */
.icon-info-box .rounded-2xl {
  --scale-size: 1.1;
  --shake-degree: 15deg;
  --shake-speed: 0.5s;
  --scale-delay: 0.3s;
}
/* 鼠标悬停动画 */
.icon-info-box .rounded-2xl {
  transform-origin: center center;
  transition: transform 0.3s ease;
}

.icon-info-box .rounded-2xl:hover {
  transform: scale(var(--scale-size, 1));
}

.icon-info-box .rounded-2xl:hover {
  animation: info-shake-bounce var(--shake-speed, 0.5s) var(--scale-delay, 0s) ease-in-out forwards;
}

@keyframes info-shake-bounce {
  0%, 100% {
    transform: scale(var(--scale-size, 1)) rotate(0);
  }
  25% {
    transform: scale(var(--scale-size, 1)) rotate(var(--shake-degree, 15deg));
  }
  50% {
    transform: scale(var(--scale-size, 1)) rotate(calc(var(--shake-degree, 15deg) * -1));
  }
  75% {
    transform: scale(var(--scale-size, 1)) rotate(calc(var(--shake-degree, 15deg) * 0.25));
  }
  85% {
    transform: scale(var(--scale-size, 1)) rotate(calc(var(--shake-degree, 15deg) * -0.25));
  }
}

/* 小图标的动画保持不变 */
.icon-small-box .rounded-2xl:hover {
  -webkit-animation: small-shake-bounce .5s alternate !important;
  -moz-animation: small-shake-bounce .5s alternate !important;
  -o-animation: small-shake-bounce .5s alternate !important;
  animation: small-shake-bounce .5s alternate !important;
}

@keyframes small-shake-bounce {
  0%, 100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(15deg);
  }
  50% {
    transform: rotate(-15deg);
  }
  75% {
    transform: rotate(5deg);
  }
  85% {
    transform: rotate(5deg);
  }
}
/* Sun-Panel-Helper CSS End: card-hover */

/* ============================================================
 * 自定义覆盖区（手工追加，Sun-panel-helper 重新部署会覆盖整份文件）
 * 备份：index.css.bak-20261129
 * 恢复：把 login-transparent.css 的内容再追加到本文件末尾即可
 * ============================================================ */
/* ===== CUSTOM-EXT CSS work-square.css END ===== */
/* ===== CUSTOM-EXT CSS search-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS local-cards.css END ===== */
/* ===== CUSTOM-EXT CSS work-square.css END ===== */
/* ===== CUSTOM-EXT CSS search-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS local-cards.css END ===== */
/* ===== CUSTOM-EXT CSS work-square.css END ===== */
/* ===== CUSTOM-EXT CSS search-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS local-cards.css END ===== */
/* ===== CUSTOM-EXT CSS work-square.css END ===== */
/* ===== CUSTOM-EXT CSS search-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS local-cards.css END ===== */
/* ===== CUSTOM-EXT CSS work-square.css END ===== */
/* ===== CUSTOM-EXT CSS search-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS local-cards.css END ===== */
/* ===== CUSTOM-EXT CSS work-square.css END ===== */
/* ===== CUSTOM-EXT CSS search-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS local-cards.css END ===== */
/* ===== CUSTOM-EXT CSS status-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS work-square.css END ===== */
/* ===== CUSTOM-EXT CSS search-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS local-cards.css END ===== */
/* ===== CUSTOM-EXT CSS status-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS work-square.css END ===== */
/* ===== CUSTOM-EXT CSS search-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS local-cards.css END ===== */
/* ===== CUSTOM-EXT CSS status-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS work-square.css END ===== */
/* ===== CUSTOM-EXT CSS search-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS local-cards.css END ===== */
/* ===== CUSTOM-EXT CSS status-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS work-square.css END ===== */
/* ===== CUSTOM-EXT CSS search-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS local-cards.css END ===== */
/* ===== CUSTOM-EXT CSS status-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS work-square.css END ===== */
/* ===== CUSTOM-EXT CSS search-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS local-cards.css END ===== */
/* ===== CUSTOM-EXT CSS status-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS work-square.css END ===== */
/* ===== CUSTOM-EXT CSS search-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS local-cards.css END ===== */
/* ===== CUSTOM-EXT CSS status-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS work-square.css END ===== */
/* ===== CUSTOM-EXT CSS search-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS local-cards.css END ===== */
/* ===== CUSTOM-EXT CSS status-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS work-square.css END ===== */
/* ===== CUSTOM-EXT CSS search-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS local-cards.css END ===== */
/* ===== CUSTOM-EXT CSS status-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS work-square.css END ===== */
/* ===== CUSTOM-EXT CSS search-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS local-cards.css END ===== */
/* ===== CUSTOM-EXT CSS status-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS work-square.css END ===== */
/* ===== CUSTOM-EXT CSS search-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS local-cards.css END ===== */
/* ===== CUSTOM-EXT CSS status-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS work-square.css END ===== */
/* ===== CUSTOM-EXT CSS search-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS local-cards.css END ===== */
/* ===== CUSTOM-EXT CSS status-transparent.css END ===== */

/* ===== CUSTOM-EXT CSS login-icp.css BEGIN（手工追加，可删除） ===== */
/* ============================================================
   Sun-panel 登录页底部备案信息（白色文字）
   由 apply-sunpanel-css.py 追加到 /custom/index.css 末尾
   配合 login-icp.js 注入的 .login-icp-footer 使用
   ============================================================ */

.login-icp-footer {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 12px !important;
  top: auto !important;
  z-index: 30 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 16px !important;
  text-align: center !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #ffffff !important;
  background: transparent !important;
  /* 白色文字在浅色壁纸上也需要压得住，给一层柔和暗影 */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 0 10px rgba(0, 0, 0, 0.35);
}

/* 覆盖 helper 原先的粉色配色 */
.login-icp-footer,
.login-icp-footer a,
.login-icp-footer a:link,
.login-icp-footer a:visited,
.login-icp-footer .separator {
  color: #ffffff !important;
}

.login-icp-footer a {
  margin: 0 4px !important;
  padding: 3px 6px !important;
  background-color: transparent !important;
  text-decoration: none !important;
  display: inline-block !important;
  border-radius: 4px !important;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.92;
}

.login-icp-footer a:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.18) !important;
  opacity: 1;
}

.login-icp-footer .separator {
  margin: 0 8px !important;
  opacity: 0.7 !important;
  font-weight: 300;
}

.login-icp-footer svg path {
  fill: #ffffff !important;
}

@media (max-width: 768px) {
  .login-icp-footer {
    font-size: 11px !important;
    bottom: 8px !important;
    padding: 0 10px !important;
  }
  .login-icp-footer a {
    margin: 0 2px !important;
    padding: 2px 4px !important;
  }
}
/* ===== CUSTOM-EXT CSS login-icp.css END ===== */

/* ===== CUSTOM-EXT CSS login-transparent.css BEGIN（手工追加，可删除） ===== */
/* ============================================================
   Sun-panel 登录窗透明化（只留线条 + 文字）
   适用于 Sun-panel v1.x 登录页（http://<host>:3000/login）
   设计要点：
     - 卡片/输入框/按钮背景全部透明，去掉毛玻璃
     - 边框用「白色亮线 + 深色细描边」双层，浅色和深色壁纸都看得见
     - 文字用双向微光（白晕 + 暗影），任意背景都能读
   注意：/custom/index.css 由 Sun-panel Helper 自动管理，
        重新部署模块会被覆盖，届时把本文件内容再追加一次即可。
   最后更新：2026-11-29
   ============================================================ */

/* ---------- 1. 登录卡片：纯透明、无外圈描边（只留内部内容） ---------- */
.login-card,
.login-card.n-card {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-radius: 20px !important;
  box-shadow: none !important;
}

/* Sun-Panel 内置 gradient-border 渐变描边圈：整体去掉 */
.gradient-border::before {
  content: none !important;
  display: none !important;
}
.gradient-border {
  border: none !important;
  box-shadow: none !important;
}

/* ---------- 2. 输入框：透明 + 白线 ---------- */
.login-card .n-input {
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 8px !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.30), 0 2px 10px rgba(0, 0, 0, 0.10) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* 聚焦时加亮，方便看清当前在哪个框 */
.login-card .n-input.n-input--focus {
  border-color: #ffffff !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.38),
    0 0 0 3px rgba(255, 255, 255, 0.28) !important;
}

/* 输入框内层（Naive UI 有时把底色加在 input 元素上） */
.login-card .n-input__border,
.login-card .n-input__state-border,
.login-card .n-input .n-input__input-el,
.login-card .n-input .n-input__textarea-el,
.login-card .n-input__placeholder {
  background-color: transparent !important;
  background: transparent !important;
}
.login-card .n-input__border,
.login-card .n-input__state-border {
  box-shadow: none !important;
}

/* ---------- 3. 登录按钮：透明 + 白线（文字强制白色，深色壁纸上可见） ---------- */
.login-card .login-button,
.login-card .n-button.login-button {
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 0, 0, 0.4) !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.30), 0 2px 10px rgba(0, 0, 0, 0.10) !important;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.login-card .login-button .n-button__content,
.login-card .n-button.login-button .n-button__content {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 0, 0, 0.4) !important;
}
.login-card .login-button:hover,
.login-card .n-button.login-button:hover {
  background-color: rgba(255, 255, 255, 0.16) !important;
  border-color: #ffffff !important;
}
.login-card .n-button.login-button .n-button__content {
  color: inherit !important;
}

/* ---------- 4. 右上角主题开关 / 语言下拉：透明 ---------- */
.login-card .n-switch__rail {
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.30), 0 2px 10px rgba(0, 0, 0, 0.10) !important;
}
.login-card .n-switch__button {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

.login-card .n-base-selection,
.login-card .n-base-selection-label,
.login-card .n-base-selection .n-base-selection__border,
.login-card .n-base-selection .n-base-selection__state-border {
  background-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}
.login-card .n-base-selection {
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 6px !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.30), 0 2px 10px rgba(0, 0, 0, 0.10) !important;
}

/* ---------- 5. 文字：白晕 + 暗影，任意壁纸都可读 ---------- */
.login-card,
.login-card .login-title,
.login-card .n-form-item-label,
.login-card .n-form-item-label__text,
.login-card .n-input__input-el,
.login-card .n-input__placeholder,
.login-card .n-base-selection-input,
.login-card .n-base-selection-input__content,
.login-card .copyright,
.login-card .copyright a {
  color: inherit !important;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.95),   /* 浅色壁纸：白晕把文字托起 */
    0 1px 2px rgba(0, 0, 0, 0.55),       /* 深色壁纸：暗影压边 */
    0 0 12px rgba(0, 0, 0, 0.35);
}

/* 深色模式下文字本身是浅色，白色光晕会糊，改成纯暗影 */
html.dark .login-card,
html.dark .login-card .login-title,
html.dark .login-card .n-form-item-label__text,
html.dark .login-card .n-input__input-el,
html.dark .login-card .n-input__placeholder,
html.dark .login-card .copyright,
html.dark .login-card .copyright a {
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.85),
    0 0 10px rgba(0, 0, 0, 0.6) !important;
}
/* ===== CUSTOM-EXT CSS login-transparent.css END ===== */

/* ===== CUSTOM-EXT CSS work-square.css BEGIN（手工追加，可删除） ===== */
/* ===== CUSTOM-EXT CSS work-square.css BEGIN（手工追加，可删除） ===== */
/* ============================================================
   Sun-panel 方形图标宫格（Work / Online 分组）
   配合 work-square.js（给无图标的条目生成首字方块）使用
   由 apply-sunpanel-css.py 追加到 /custom/index.css 末尾

   2026-11-30 改动：
   - 标题只藏文字（.group-title），不再藏整个头部 —— 之前把「+ 添加」
     按钮一起藏掉了，导致 Work 分组找不到添加入口
   - 添加按钮半透明常显，hover 变亮
   - Online 复用同一套宫格样式，但保留分组标题（.sq-titled）
   ============================================================ */

/* ---------- 标题隐藏（与系统状态一致），保留 group-buttons（+ 添加入口） ----------
   分组名靠左侧边栏导航识别；按钮半透明常显、hover 变亮 */
.sq-work .group-title {
  display: none !important;
}

/* 添加按钮：半透明常显，hover 变亮 */
.sq-work .group-buttons {
  opacity: 0.4 !important;
}
.sq-work .group-buttons:hover {
  opacity: 1 !important;
}

/* 头部收一下间距 */
.sq-work > div[class*="text-xl"] {
  margin-bottom: 12px !important;
}

/* ---------- 网格：改成固定方形格子 ---------- */
.sq-work .icon-info-box {
  grid-template-columns: repeat(auto-fill, 96px) !important;
  gap: 16px 18px !important;
  justify-content: flex-start !important;
  align-items: start !important;
}

/* ---------- 卡片：96×96 方形，透明底无描边（与 Local 风格一致） ---------- */
.sq-work .item-card-info {
  width: 96px !important;
  height: 96px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 8px 6px !important;
  box-sizing: border-box !important;
  border-radius: 20px !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.sq-work .item-card-info:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-2px);
}

/* ---------- 图标：统一 52×52，居中，不再有底色方块 ---------- */
.sq-work .item-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

/* 真图标（img / svg）铺满方块，尺寸统一。
   itemType=2 时前端结构是 .item-icon > div(内联 size 尺寸) > img，
   所以两层都要按住尺寸，不然 70px 的包裹层会被 overflow 裁掉。 */
.sq-work .item-icon > div {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  padding: 0 !important;
  background-color: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0 !important;
}

.sq-work .item-icon img,
.sq-work .item-icon > svg,
.sq-work .item-icon svg {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  min-width: 0 !important;
  object-fit: contain !important;
  border-radius: 14px !important;
  display: block !important;
}

/* 没有图标时的首字（兜底） */
.sq-work .sq-mono {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0;
  font-family: 'Noto Sans SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

/* 首字撞车时用两个字的版本，字号缩小免得挤出方块 */
.sq-work .sq-mono.sq-mono-2 {
  font-size: 17px;
  letter-spacing: -0.5px;
}

/* ---------- 标题：挪到方块下方，一行小字 ---------- */
.sq-work .app-icon-info-text-box {
  width: 100% !important;
}

/* 卡片标题文字：占满整行并居中。
   必须用 .item-card-info > .text-white 直选 —— 包裹层有内联
   max-width: calc(100% - 80px)，96px 方格里会塌成 4px 宽；
   不能写宽泛的 .sq-work .text-white，那会把分组标题挤到中间。 */
.sq-work .item-card-info > .text-white {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  justify-content: center !important;
  text-align: center;
}

.sq-work .app-icon-info-text-box-title {
  font-size: 11px !important;
  line-height: 1.25 !important;
  font-weight: 500 !important;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 描述不要，方形里放不下 */
.sq-work .app-icon-info-text-box-description {
  display: none !important;
}

/* ---------- 移动端更紧凑 ---------- */
@media (max-width: 768px) {
  .sq-work .icon-info-box {
    grid-template-columns: repeat(auto-fill, 78px) !important;
    gap: 12px 14px !important;
  }
  .sq-work .item-card-info {
    width: 78px !important;
    height: 78px !important;
    border-radius: 16px !important;
  }
  .sq-work .item-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
  }
  .sq-work .item-icon > div {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
  }
  .sq-work .item-icon img,
  .sq-work .item-icon > svg,
  .sq-work .item-icon svg {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    border-radius: 12px !important;
  }
  .sq-work .sq-mono {
    width: 42px;
    height: 42px;
    font-size: 19px;
  }
  .sq-work .sq-mono.sq-mono-2 {
    font-size: 14px;
  }
  .sq-work .app-icon-info-text-box-title {
    font-size: 10px !important;
  }
}
/* ===== CUSTOM-EXT CSS work-square.css END ===== */
/* ===== CUSTOM-EXT CSS work-square.css END ===== */

/* ===== CUSTOM-EXT CSS search-transparent.css BEGIN（手工追加，可删除） ===== */
/* ===== CUSTOM-EXT CSS search-transparent.css BEGIN（手工追加，可删除） ===== */
/* ============================================================
   Sun-panel 首页搜索框：透明底 + 细线条描边（对齐登录页风格）
   search-container 自带内联 background，所以这里必须 !important
   由 apply-sunpanel-css.py 追加到 /custom/index.css 末尾
   ============================================================ */

.search-box .search-container {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* 聚焦时边线变亮一点，其余保持全透明 */
.search-box .search-container:focus-within {
  border-color: rgba(255, 255, 255, 0.85) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

/* 占位文字「请输入搜索内容」：整体隐藏（透明），输入功能不受影响 */
.search-box .search-container input::placeholder {
  color: transparent !important;
}
.search-box .search-container input::-webkit-input-placeholder {
  color: transparent !important;
}
.search-box .search-container input::-moz-placeholder {
  color: transparent !important;
}
/* ---------- hero 区域间距微调：标题上移一点、搜索框下移一点 ---------- */
/* 标题行（Clion | 时间 | 日期）：transform 只动视觉，不影响布局流，图标位置不变 */
.scroll-container div[class*="mx-[auto] w-[80%]"] > div:first-child {
  transform: translateY(-8px) !important;
}

/* 搜索框容器：原 mt-[20px] 增大，整体下移 */
.scroll-container div[class*="mx-[auto] w-[80%]"] > div:nth-child(2) {
  margin-top: 34px !important;
}
/* ---------- 手机端：让日期（11-30 星期一）正常显示 ---------- */
/* 根因：日期块默认 hidden sm:hidden md:block（≥768px 才显示），
   且内层 .clock 带 w-full 会把 nowrap 标题行撑爆，日期被挤到视口外 */
@media (max-width: 767px) {
  /* 强制显示日期块 */
  .scroll-container .clock div[class*="md:block"] {
    display: block !important;
  }
  /* clock 不再用 w-full 撑爆 flex 行 */
  .scroll-container .clock[class*="w-full"] {
    width: auto !important;
    max-width: 100% !important;
  }
  /* 日期字号略缩，避免窄屏溢出 */
  .scroll-container .clock div[class*="md:block"],
  .scroll-container .clock span {
    font-size: 12px !important;
  }
}
/* ===== CUSTOM-EXT CSS search-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS search-transparent.css END ===== */

/* ===== CUSTOM-EXT CSS local-cards.css BEGIN（手工追加，可删除） ===== */
/* ===== CUSTOM-EXT CSS local-cards.css BEGIN（手工追加，可删除） ===== */
/* ============================================================
   Sun-panel「Local」分组：横排小图标 + 标题的白底卡片
   （参考截图风格：圆角卡片、小图标居左、粗体标题、部分品牌色底）
   配合 local-cards.js（挂类 + 品牌色 + 无图标首字兜底）使用
   由 apply-sunpanel-css.py 追加到 /custom/index.css 末尾
   ============================================================ */

/* ---------- 标题隐藏（与系统状态一致），保留 + 添加按钮 ---------- */
.lc-local .group-title {
  display: none !important;
}

.lc-local .group-buttons {
  opacity: 0.4 !important;
}
.lc-local .group-buttons:hover {
  opacity: 1 !important;
}

.lc-local > div[class*="text-xl"] {
  margin-bottom: 12px !important;
}

/* ---------- 网格：等宽横卡片，一行 5 个左右 ---------- */
.lc-local .icon-info-box {
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)) !important;
  gap: 14px 16px !important;
}

/* ---------- 卡片：透明底横排（无描边，hover 轻微变亮） ---------- */
.lc-local .item-card-info {
  height: 58px !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 14px !important;
  box-sizing: border-box !important;
  border-radius: 14px !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.lc-local .item-card-info:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.12);
}

/* ---------- 图标：小圆角方块 34×34，透明底 ---------- */
.lc-local .item-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.lc-local .item-icon > div {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  padding: 0 !important;
  background-color: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0 !important;
}

.lc-local .item-icon img,
.lc-local .item-icon > svg,
.lc-local .item-icon svg {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  min-width: 0 !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  display: block !important;
}

/* 没抓到图标时的首字兜底 */
.lc-local .sq-lcmono {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.08);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: inherit;
  font-family: 'Noto Sans SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

/* ---------- 文字：粗体标题，浅色（透明底上用白字） ---------- */
.lc-local .app-icon-info-text-box {
  flex: 1 !important;
  min-width: 0 !important;
}

.lc-local .app-icon-info-text-box-title {
  font-size: 14px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 描述跟截图风格保持一致：不显示 */
.lc-local .app-icon-info-text-box-description {
  display: none !important;
}

/* ---------- 访客模式：Local 卡片锁定提示（配合 guest-lock.js） ---------- */
/* 访客下卡片整体轻微变暗，不再逐卡加锁角标 */
body.guest-mode .lc-local .item-card-info {
  opacity: 0.8 !important;
}

body.guest-mode .lc-local .item-card-info:hover {
  opacity: 1 !important;
}

/* ---------- 访客模式：Local 分组左上角的小锁图标 ---------- */
/* 由 guest-lock.js 注入 <span class="sq-guest-lock">（内嵌 arcticons 线条锁 SVG） */
.lc-local {
  position: relative !important;
}

.sq-guest-lock {
  display: none;
}

body.guest-mode .sq-guest-lock {
  display: flex !important;
  position: absolute;
  top: -4px;
  left: 0;
  width: 20px;
  height: 20px;
  z-index: 5;
  pointer-events: none;
  opacity: 0.75;
  color: #ffffff;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

.sq-guest-lock svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
  .lc-local .icon-info-box {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 10px 12px !important;
  }
  .lc-local .item-card-info {
    height: 50px !important;
    padding: 6px 12px !important;
    border-radius: 12px !important;
  }
  .lc-local .item-icon,
  .lc-local .item-icon > div {
    width: 28px !important;
    height: 28px !important;
  }
  .lc-local .item-icon img,
  .lc-local .item-icon svg {
    width: 28px !important;
    height: 28px !important;
  }
  .lc-local .sq-lcmono {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .lc-local .app-icon-info-text-box-title {
    font-size: 12px !important;
  }
}
/* ===== CUSTOM-EXT CSS local-cards.css END ===== */
/* ===== CUSTOM-EXT CSS local-cards.css END ===== */

/* ===== CUSTOM-EXT CSS status-transparent.css BEGIN（手工追加，可删除） ===== */
/* ===== CUSTOM-EXT CSS status-transparent.css BEGIN（手工追加，可删除） ===== */
/* ============================================================
   Sun-Panel「系统状态」卡片（CPU / RAM / M.2 / HDD 等）：
   纯透明底、无边线、无阴影，只保留图标和文字
   由 apply-sunpanel-css.py 追加到 /custom/index.css 末尾
   ============================================================ */

.generic-monitor-card .item-card-info {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* hover 也不出现底色（Sun-Panel 默认 hover 会加背景） */
.generic-monitor-card .item-card-info:hover {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* ---------- 藏「系统状态」标题文字，保留 + 添加 / 拖拽按钮 ---------- */
.system-monitor-header > .text-shadow {
  display: none !important;
}

.system-monitor-header {
  margin-bottom: 10px !important;
}

/* 按钮：半透明常显（原来只在 hover 时出现），hover 变亮 */
.system-monitor-buttons {
  opacity: 0.4 !important;
}
.system-monitor-header:hover .system-monitor-buttons {
  opacity: 1 !important;
}

/* ---------- 卡片内容居中：网格改 flex 居中排布 ---------- */
.system-monitor .icon-info-box {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 18px !important;
}

.system-monitor .icon-info-box > * {
  width: 220px !important;
  flex: 0 0 auto !important;
}

@media (max-width: 768px) {
  .system-monitor .icon-info-box {
    gap: 10px !important;
  }
  .system-monitor .icon-info-box > * {
    width: calc(50% - 5px) !important;
  }
}
/* ===== CUSTOM-EXT CSS status-transparent.css END ===== */
/* ===== CUSTOM-EXT CSS status-transparent.css END ===== */
