/*
Theme Name: MacAppOS
Theme URI: https://www.macappos.com/
Author: macAppOS
Description: macAppOS自研主题
Version: 1.0
*/

/* ========== 1. 全局基础样式 ========== */
body {
  padding-top: 0;
}

/* ========== 2. 动画相关 ========== */
@keyframes apps-right {
  0% { transform: translateX(-10%); }
  100% { transform: translateX(10%); }
}
@keyframes apps-left {
  0% { transform: translateX(10%); }
  100% { transform: translateX(-10%); }
}
/* 调慢首页主视觉区软件列表图动画速度 */
.animate-[apps-right_100s_linear_infinite_alternate] {
  animation: apps-right 100s linear infinite alternate !important;
}
.animate-[apps-left_100s_linear_infinite_alternate] {
  animation: apps-left 100s linear infinite alternate !important;
}
/* 弹窗动画样式 */
.qr-modal-enter {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1), transform 0.4s cubic-bezier(.34,1.56,.64,1);
}
.qr-modal-enter.qr-modal-enter-active {
  opacity: 1;
  transform: scale(1);
}
.qr-modal-leave {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.25s cubic-bezier(.4,0,.2,1), transform 0.25s cubic-bezier(.4,0,.2,1);
}
.qr-modal-leave.qr-modal-leave-active {
  opacity: 0;
  transform: scale(0.8);
} 

/* ========== 3. 导航栏相关 ========== */
.glass-navbar {
  width: 100vw;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.04);
  border: none;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-logo img {
  height: 36px;
  vertical-align: middle;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0 0 0 24px;
  padding: 0;
}
.nav-links li a {
  text-decoration: none;
  color: #222;
  font-size: 20px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links li a:hover {
  color: #007aff;
}
.nav-search {
  display: flex;
  align-items: center;
  margin-left: 24px;
}
.nav-search input {
  height: 32px;
  border: none;
  border-radius: 16px;
  padding: 0 16px;
  font-size: 16px;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.03);
  outline: none;
  transition: box-shadow 0.2s;
}
.nav-search input:focus {
  box-shadow: 0 4px 16px 0 rgba(0,122,255,0.08);
}

/* 导航链接下划线动画 */
.nav-link {
  position: relative;
  display: inline-block;
  color: #222;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 15px;
}
.nav-link:hover {
  color: #007aff;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: #007aff;
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  transform-origin: center;
}
.nav-link:hover::after {
  transform: scaleX(1);
}

/* 固定导航栏样式 */
nav.fixed {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  top: 0;
  transform: translateY(0px);
  border-bottom: 1px solid rgba(243,244,246,0.4);
  transition: background 0.3s, backdrop-filter 0.3s, border 0.3s, top 0.3s, transform 0.3s;
}
nav.fixed.navbar-glass {
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(217, 218, 220, 0.65);
  transform: translateY(0);
}

/* ========== 4. 下拉菜单/搜索框等局部样式 ========== */
/* 下拉菜单项浅色文字 */
.absolute.left-1\/2.top-full ul li a,
.absolute.left-1\/2.top-full ul li a:visited {
  color: #555;
}
/* 导航栏搜索框滚动后样式 */
#navbar-search-box {
  border: 1px solid rgba(156,163,175,0.15) !important;
}
#navbar-search-box.bg-navbar-glass {
  background: rgba(255,255,255,0.85) !important;
  border: 1px solid rgba(156,163,175,0.35) !important;
}

/* ========== 5. 内容区块样式 ========== */
/* 应用下载区块：按钮组自动换行时加间距 */
.download-action-row {
  margin-top: 0;
  align-self: flex-start;
}
.flex-wrap .download-action-row:not(:first-child) {
  margin-top: 1rem; /* 20px，等同于 mt-5 */
}

/* ========== 6. 分页器样式 ========== */
.macos-pagination {
  text-align: center;
  margin: 32px 0 24px 0;
}
.macos-pagination ul {
  display: inline-block;
  padding: 0;
  margin: 0;
  list-style: none;
}
.macos-pagination li {
  display: inline;
  margin: 0 4px;
}
.macos-pagination a,
.macos-pagination span {
  display: inline-block;
  min-width: 32px;
  padding: 6px 12px;
  color: #555;
  background: #f2f2f2;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
}
.macos-pagination .current,
.macos-pagination a:hover {
  background: #e0e0e0;
  color: #222;
}
.macos-pagination-ellipsis {
  display: inline-block;
  min-width: 24px;
  text-align: center;
  color: #bbb;
  background: transparent;
  font-size: 18px;
  letter-spacing: 2px;
  pointer-events: none;
  user-select: none;
}

/* ========== 7. 标签页美化 ========== */
.tag-list {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tag-link {
  display: inline-block;
  background: #f2f2f2;
  color: #007aff;
  border-radius: 16px;
  padding: 6px 16px;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
}
.tag-link:hover {
  background: #007aff;
  color: #fff;
}

/* ========== 8. Toast/提示样式 ========== */
#toast-msg-inner {
  background: rgba(34,197,94,0.98);
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.10);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s, transform 0.3s, filter 0.3s;
  transform: translateY(30px);
  filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
}
#toast-msg.show #toast-msg-inner {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
#toast-msg.hide #toast-msg-inner {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(6px);
}

/* ========== 9. 通用交互效果 ========== */
.hover-effect {
  transition: all 0.2s;
  cursor: pointer;
}
.hover-effect:hover {
  background-color: #bbf7d0;
  box-shadow: 0 2px 8px 0 rgba(16,185,129,0.12);
  transform: scale(1.05);
  border-color: #22c55e;
}