/* tzyi.pw 功能增强样式（桌面 + 移动共用，仅在新增元素上生效） */

/* ---------- 实时时钟 ---------- */
.v2-clock {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 0 16px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .4));
  border: 1px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  backdrop-filter: blur(22px) saturate(190%);
  box-shadow: 0 16px 34px -30px rgba(52, 64, 120, .6), inset 0 1px 0 rgba(255, 255, 255, .9);
  white-space: nowrap;
}

.v2-clock-date { font-size: 11.5px; color: #7b8194; line-height: 1.1; }
.v2-clock-time {
  font-size: 17px;
  font-weight: 800;
  color: #262b3b;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

/* ---------- 顶部快捷入口 ---------- */
.v2-quick { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }

.v2-quick-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, .8);
  background: linear-gradient(160deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .44));
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  backdrop-filter: blur(22px) saturate(190%);
  box-shadow: 0 14px 30px -26px rgba(52, 64, 120, .6), inset 0 1px 0 rgba(255, 255, 255, .9);
  color: #5b52c9;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.3, 1.3, .5, 1), box-shadow .22s;
  -webkit-tap-highlight-color: transparent;
}
.v2-quick-btn:hover { transform: translateY(-1px) scale(1.03); }
.v2-quick-btn:active { transform: scale(.95); }
.v2-quick-btn svg { width: 21px; height: 21px; }
.v2-quick-btn#top-admin-open { color: #8b5cf6; }

/* ---------- 滚动分类导航 ---------- */
.cat-bar {
  position: sticky;
  top: 78px;
  z-index: 55;
  margin: 0 0 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .36));
  border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  backdrop-filter: blur(24px) saturate(190%);
  box-shadow: 0 16px 34px -32px rgba(52, 64, 120, .6), inset 0 1px 0 rgba(255, 255, 255, .85);
  padding: 6px;
  overflow: hidden;
}

.cat-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.cat-track::-webkit-scrollbar { display: none; }

.cat-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: #5c6376;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s, color .2s;
}
.cat-chip svg { width: 15px; height: 15px; fill: currentColor; opacity: .75; }
.cat-chip:hover { background: rgba(255, 255, 255, .6); }

.cat-chip.is-on {
  background: linear-gradient(100deg, rgba(139, 131, 246, .26), rgba(180, 92, 240, .14));
  color: #4f46b8;
  border-color: rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.cat-chip.is-on svg { opacity: 1; }

/* ---------- 软件资源两个子区域 ---------- */
.sub-sec + .sub-sec { margin-top: 18px; }

.sub-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding-left: 2px;
}
.sub-head i {
  width: 3px;
  height: 15px;
  border-radius: 3px;
  background: linear-gradient(180deg, #8b83f6, #b45cf0);
}
.sub-head b { font-size: 14px; color: #3d4356; }
.sub-head span { font-size: 11.5px; color: #9aa0b2; }

/* ---------- 打开按钮文字居中修复 ---------- */
.v2-open {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-align: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  vertical-align: middle;
}

/* ---------- 深色模式 ---------- */
[data-theme="dark"] .v2-clock,
[data-theme="dark"] .v2-quick-btn,
[data-theme="dark"] .cat-bar {
  background: linear-gradient(160deg, rgba(60, 66, 92, .6), rgba(34, 40, 56, .5));
  border-color: rgba(255, 255, 255, .12);
}
[data-theme="dark"] .v2-clock-time { color: #eef1f8; }
[data-theme="dark"] .sub-head b { color: #dfe4f2; }
[data-theme="dark"] .cat-chip { color: #b9c0d4; }

/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
  .v2-clock {
    flex: 1 1 100%;
    height: 44px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-radius: 14px;
    order: 3;
  }
  .v2-clock-date { font-size: 11px; }
  .v2-clock-time { font-size: 15px; }

  .v2-quick { order: 2; margin-left: auto; }
  .v2-quick-btn { width: 40px; height: 40px; border-radius: 12px; }
  .v2-quick-btn svg { width: 18px; height: 18px; }

  .cat-bar { top: 0; margin: 0 0 10px; border-radius: 14px; padding: 5px; }
  .cat-chip { height: 32px; padding: 0 11px; font-size: 12.5px; }

  .sub-sec + .sub-sec { margin-top: 14px; }
  .sub-head b { font-size: 13px; }
}


/* 顶部信息条：时钟 + 快捷入口（独立一行，不挤压搜索框） */
.v2-headbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .v2-headbar { margin-bottom: 8px; gap: 8px; }
}


/* 信息条内的时钟 */
.v2-headbar .v2-clock { height: 52px; padding: 0 14px; border-radius: 16px; }
.v2-headbar .v2-clock-time { font-size: 16px; }
.v2-headbar .v2-clock-date { font-size: 11px; }

@media (max-width: 768px) {
  .v2-headbar { flex-wrap: nowrap; }
  .v2-headbar .v2-clock { flex: 1 1 auto; height: 44px; flex-direction: row; align-items: center; justify-content: space-between; }
}


/* 分类导航：提高不透明度，避免卡片从下面透出 */
.cat-bar {
  background: linear-gradient(160deg, rgba(255,255,255,.92), rgba(255,255,255,.82)) !important;
  border: 1px solid rgba(255,255,255,.95) !important;
  backdrop-filter: blur(26px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(180%) !important;
  box-shadow: 0 18px 32px -28px rgba(52,64,120,.7), inset 0 1px 0 #fff !important;
}
[data-theme=dark] .cat-bar {
  background: linear-gradient(160deg, rgba(40,46,64,.94), rgba(28,33,47,.9)) !important;
  border-color: rgba(255,255,255,.14) !important;
}


/* ==========================================================================
   v106：电脑端——顶部悬浮条只保留时钟 + 快捷按钮，时间居中拉长
   ========================================================================== */

/* 搜索/统计行不再吸顶（随页面滚走） */
.v2-top { position: static !important; }

/* 悬浮条：时钟占满、文字居中 */
.v2-headbar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 10px;
  padding: 6px 0;
}

.v2-headbar .v2-clock {
  flex: 1 1 auto;
  max-width: none;
  width: auto;
  height: 54px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px;
  border-radius: 16px;
}

.v2-headbar .v2-clock-date { font-size: 13px; }
.v2-headbar .v2-clock-time { font-size: 19px; letter-spacing: .04em; }

.v2-headbar .v2-quick { flex: 0 0 auto; }

/* 分类导航跟随悬浮条高度 */
.cat-bar { top: 62px; }

/* 分类导航：多行排列，不用横向滑动 */
.cat-track {
  flex-wrap: wrap;
  overflow: visible !important;
  gap: 6px;
  justify-content: flex-start;
}

/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
  .v2-headbar { position: sticky; top: 0; padding: 4px 0; gap: 8px; }
  .v2-headbar .v2-clock {
    height: 42px;
    gap: 8px;
    padding: 0 12px;
    border-radius: 13px;
  }
  .v2-headbar .v2-clock-date { font-size: 10.5px; }
  .v2-headbar .v2-clock-time { font-size: 14px; }
  .v2-headbar .v2-quick-btn { width: 38px; height: 38px; }

  .cat-bar { top: 50px; margin: 0 0 10px; padding: 6px; border-radius: 14px; }
  .cat-chip { height: 30px; padding: 0 10px; font-size: 12px; gap: 4px; }
  .cat-chip svg { width: 13px; height: 13px; }
}


/* 时钟文字相对内容区真正居中（右侧给快捷按钮留位） */
.v2-headbar .v2-clock { padding: 0 108px 0 24px !important; }
@media (max-width: 768px) {
  .v2-headbar .v2-clock { padding: 0 10px !important; }
}


/* 时钟：整条铺满、文字居中；快捷按钮浮在右端，不挤压时间 */
.v2-headbar { position: sticky; }
.v2-headbar .v2-clock {
  padding: 0 24px !important;
  justify-content: center !important;
}
.v2-headbar .v2-quick {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
}

@media (max-width: 768px) {
  .v2-headbar .v2-clock { padding: 0 96px 0 12px !important; justify-content: flex-start !important; }
  .v2-headbar .v2-quick { position: static; transform: none; margin-left: auto; }
}
