/*
  文件：style.css
  作用：页面整体样式（当前包含基础、布局、组件、弹窗、天气等样式）。
  提示：后续可拆分为 base.css / layout.css / components.css / modals.css / weather.css / overrides.css。
  注释语言：中文。本次仅添加注释，不更改任何选择器或声明。
*/

/* Background video layer */
.bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

.bg-video.hidden {
    display: none;
}

body {
    /* 随机从bg文件夹中选择背景图片 */
    background-image: var(--random-bg-image);
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 修改这里 */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* 搜索容器 */
.search-container {
    display: flex;
    flex-direction: column; /* 允许垂直排列 */
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
    padding-top: 20vh; /* 调整这里 */
}

#clock {
    margin-right: 5px;
    
}

/* 新增的毛玻璃时钟样式 */
.glass-clock {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px; /* 数字图片的高度 */
}

.glass-digit {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.glass-digit {
    width: 45px; /* 数字图片的宽度 */
    height: 100%;
    margin: 0 2px;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    position: relative;
}

.glass-digit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--stroke-image, none);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    filter: none;
    background-color: transparent;
}

.glass-colon {
    width: 30px; /* 冒号相对数字稍窄一些 */
    height: 100%;
    margin: 0 -10px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    transition: all 0.3s ease;
    /* 遮罩将通过JavaScript动态设置，与数字保持一致 */
}

.glass-colon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--stroke-image, url('img/0-9/冒号.png'));
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    filter: none;
    background-color: transparent;
}

#date-week {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
        /* 稍微透明的白色 */
    margin: 0px 0px 15px 0px;
}

/* 搜索框包装器 - 实现液态玻璃效果 */
.search-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-wrapper:hover {
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

/* 搜索引擎选择器 */
.engine-selector {
    position: relative;
    margin: 5px;
}

/* 圆形液态玻璃风格的按钮 */
.engine-toggle,
.search-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 5px;
    transition: 0.5s;
}

.engine-toggle:hover,
.search-btn:hover {
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
    transition: 0.5s;
}

.engine-toggle:active,
.search-btn:active {
    transform: scale(0.95);
}

.engine-toggle {
    z-index: 2; /* 保证在下拉菜单之上 */
}

/* 引擎图标包装器 */
.engine-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.engine-icon-wrapper i:first-child {
    font-size: 18px;
}

/* 引擎下拉菜单 - 横向排列 */
.engine-dropdown {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%) translateX(-10px);
    margin-left: 5px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.engine-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.engine-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
}

.engine-dropdown li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
        height: 30px;
        margin: 3px 0px;
    position: relative; /* 添加此行 */
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
    color: white;
}

.engine-dropdown li::before {
    content: attr(data-name);
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.engine-dropdown li:hover::before {
    opacity: 1;
    visibility: visible;
}

.engine-dropdown li:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* 搜索输入框 */
.search-wrapper input {
    flex: 1;
    height: 36px;
    border: none;
    background: transparent;
    padding: 0 15px;
    font-size: 14px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,.5);
    outline: none;
    width: 300px;
}

.search-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 2px rgba(0,0,0,.5);
}

.search-wrapper input.transparent-text::placeholder {
    color: transparent;
}

.search-wrapper input.transparent-text {
    color: transparent;
}




/* 响应式设计 */
@media (max-width: 768px) {
    .search-wrapper {
        width: 100%;
        max-width: 400px;
    }
    
    .search-wrapper input {
        height: 40px;
        padding: 0 12px;
    }
    
    .engine-toggle, .search-btn {
        width: 40px;
        height: 40px;
    }
    
    /* 在小屏幕上恢复为向下弹出 */
    .engine-dropdown {
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        margin-left: 0;
        margin-top: 8px;
    }
    
    .engine-dropdown.show {
        transform: translateX(-50%) translateY(0);
    }
    
    /* 小屏幕上的箭头方向 */
    .engine-dropdown::before {
        top: -6px;
        left: 50%;
        border-top: none;
        border-bottom: 8px solid rgba(255, 255, 255, 0.9);
        border-right: 8px solid transparent;
        border-left: 8px solid transparent;
    }
}



.left-section::after, .right-section::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.3);
}

.left-section::after {
    right: -20px; /* 调整位置 */
}

.right-section::before {
    left: -20px; /* 调整位置 */
}

.right-section {
    gap: 20px; /* Spacing between weather and user button */
}

/* 天气模块样式已迁移至 css/weather.css（保留占位） */
.main-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.custom-sites, .recent-sites {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-sites .icon{
    border-radius: 5px;
}

.separator {
    width: 1px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 20px;
}

/* 组件：通用底部按钮（将来迁移到 css/components.css） */
.bottom-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.bottom-btn:hover {
    color: #eee;
    transform: scale(1.1);
}

/* 组件：站点链接图标（将来迁移到 css/components.css） */
.site-icon {
    color: #333;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s;
}

.site-icon:hover {
    color: #000;
    transform: scale(1.1);
}

/* 组件：iOS 风格图标（将来迁移到 css/components.css） */
/* 网站图标样式 */
.ios-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ios-icon:hover {
    transform: scale(1.02) translateY(-2px);
    background-color: #e8e8e8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ios-icon:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Tooltip样式 */
.ios-icon {
    position: relative;
}

.ios-icon::after {
    content: attr(data-name);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    margin-bottom: 10px;
    z-index: 10;
}

.ios-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 弹窗（.popup）样式已迁移至 css/modals.css，保持加载顺序不变以确保视觉一致。 */

.icon {
    width: 1em; 
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}



.floating-module.wallpaper-module {
    padding: 0 10px; /* 统一与其他模块一致，去除额外右侧空间 */
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: left;
    position: relative;
    box-sizing: border-box;
}




.wallpaper-section{
    margin-bottom: 20px;
}

/* 网址库模块 */
.links-library {
  display: flex;
  align-items: center;
  gap: 3px; /* 调整整体间距 */
  width: 100%;
  height: 100%;
}
.links-library .separator{
    margin: 0 6px; /* 调整分隔符间距 */
}
.links-library .ios-icon{
    height: 60px;
    width: 60px;
}
.links-view {
  overflow-x: hidden; /* 水平方向裁切 */
  overflow-y: visible; /* 垂直方向允许显示悬浮放大与气泡 */
  flex: 1;
  padding: 2px 2px; /* 减小水平内边距 */
  display: flex;
  height: 100%;
}

.links-track {
  display: flex;
  align-items: center; /* 图标纵向居中，防止拉伸 */
  gap: 8px; /* 调整图标间距 */
  transition: transform 300ms ease;
}

/* 强制网址库中的图标为正方形且不被flex拉伸 */
.links-track .ios-icon {
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
}
.links-arrow {
  background: rgba(255, 255, 255, 0); /* 添加微妙背景 */
  border: none;
  color: #fff;
  font-size: 24px; /* 增大字体 */
  width: 10px; /* 增加宽度 */
  height: 32px; /* 增加高度 */
  border-radius: 8px; /* 调整圆角 */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.9;
  flex-shrink: 0; /* 防止被压缩 */
  margin: 0 -1px; /* 调整负边距 */
  transition: all 0.2s ease; /* 添加过渡效果 */
}

.links-arrow:hover { 
  opacity: 1; 
  background: rgba(255, 255, 255, 0.1); /* 增强悬停背景 */
  transform: translateY(-1px) scale(1.05); /* 添加缩放效果 */
}
.links-arrow:active { 
  transform: translateY(0) scale(0.95); /* 添加按下效果 */
  background: rgba(255, 255, 255, 0.15);
}
.links-arrow:disabled { 
  opacity: 0.35; 
  cursor: default; 
  transform: none; 
  background: rgba(255, 255, 255, 0.05); /* 禁用状态背景 */
}

.links-more-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
/* 第四个悬浮模块：信息切换组件 */
 .info-switch-module{ 
   display:flex; align-items:center; gap:10px; width:100%; height:100%;
 }

/* 电影推荐框架样式 */
.movie-hot {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 电影图标预加载：半透明占位背景 */
.movie-hot.preloading{
    background: rgba(255, 255, 255, 0.10);
    border: 1px dashed rgba(255, 255, 255, 0.22);
    background-image: none !important;
}

.movie-hot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.7));
    border-radius: inherit;
    z-index: 1;
}

.movie-hot .movie-label {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.movie-hot:hover {
    transform: scale(1.05) translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.movie-hot:hover .movie-label {
    background: rgba(255, 255, 255, 0.25);
}

/* 空白框架样式 */
.blank-frame {
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    cursor: default;
    pointer-events: none;
}

.blank-frame:hover {
    transform: none;
    box-shadow: none;
}

/* 电影详情弹窗样式 */
.movie-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-detail-modal.show {
    opacity: 1;
}

.movie-detail-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 20px;
    /* 背景色将由JavaScript从API动态设置 */
    background: linear-gradient(135deg, #ebebeb26 0%, #bfbfbf44 50%, #9b9b9b38 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -50%) scale(0.9);
    transition: transform 0.3s ease;
    padding: 25px;
}

/* 自定义滚动条样式 */
.movie-detail-content::-webkit-scrollbar {
    width: 6px;
}

.movie-detail-content::-webkit-scrollbar-track {
    background: transparent;
}

.movie-detail-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.movie-detail-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Firefox 滚动条样式 */
.movie-detail-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.movie-detail-modal.show .movie-detail-content {
    transform: translate(-50%, -50%) scale(1);
}

.movie-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.movie-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 主要内容区域 */
.movie-main-content {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

/* 左侧海报区域 */
.movie-poster-section {
    flex-shrink: 0;
    width: 180px;
    min-height: 200px;
}

.movie-poster {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}




/* 右侧信息区域 */
.movie-info-section {
    flex: 1;
    min-width: 0;
}

.movie-title {
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.movie-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.movie-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-bottom: 15px;
}

.movie-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}

.movie-meta-info span {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

/* 集成到右侧的评分信息 */
.movie-rating-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.movie-rating-info .rating-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.movie-rating-info .rating-score {
    font-size: 36px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rating-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rating-source {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.rating-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* 购票按钮样式 */
.buy-ticket-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    flex-shrink: 0;
}

.buy-ticket-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
}

.buy-ticket-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 14px;
}

.btn-text {
    white-space: nowrap;
}

/* 简介部分 */
.movie-description-section {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.description-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.description-title {
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.description-badge {
    background: rgba(76, 175, 80, 0.3);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.movie-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 14px;
    text-align: justify;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .movie-detail-content {
        width: 95%;
        max-height: 90vh;
        padding: 20px;
    }
    
    .movie-main-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .movie-poster-section {
        width: 100%;
        display: flex;
        gap: 15px;
        min-height: 100px;
    }
    
    .movie-poster {
        width: 120px;
        height: 160px;
        flex-shrink: 0;
    }
    
    
    .movie-title {
        font-size: 22px;
    }
    
    .movie-rating-info {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .movie-rating-info .rating-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .movie-rating-info .rating-score {
        font-size: 28px;
    }
    
    .buy-ticket-btn {
        align-self: flex-start;
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* 电影详情弹窗骨架屏样式 */
.movie-skeleton-loader {
    animation: fadeIn 0.3s ease;
}

.movie-actual-content {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 骨架屏基础样式 */
.skeleton-shimmer {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 骨架屏主要内容布局 */
.skeleton-main-content {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.skeleton-poster-section {
    flex-shrink: 0;
}

.skeleton-poster {
    width: 180px;
    height: 240px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.skeleton-poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 骨架屏文本元素 */
.skeleton-title {
    height: 32px;
    width: 70%;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.skeleton-subtitle {
    height: 20px;
    width: 50%;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.skeleton-tagline {
    height: 18px;
    width: 80%;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.skeleton-meta-info {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.skeleton-meta-item {
    height: 16px;
    width: 80px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* 骨架屏评分区域 */
.skeleton-rating-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.skeleton-rating-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.skeleton-rating-score {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.skeleton-rating-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.skeleton-rating-source {
    width: 80px;
    height: 14px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.skeleton-rating-count {
    width: 60px;
    height: 12px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.skeleton-buy-btn {
    width: 80px;
    height: 36px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* 骨架屏简介区域 */
.skeleton-description-section {
    margin-top: 25px;
}

.skeleton-description-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.skeleton-description-title {
    width: 40px;
    height: 20px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.skeleton-description-badge {
    width: 60px;
    height: 18px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.skeleton-description-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-description-line {
    height: 16px;
    width: 100%;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.skeleton-description-line.short {
    width: 60%;
}

/* 为所有骨架屏元素添加闪烁动画 */
.skeleton-poster::before,
.skeleton-title::before,
.skeleton-subtitle::before,
.skeleton-tagline::before,
.skeleton-meta-item::before,
.skeleton-rating-score::before,
.skeleton-rating-source::before,
.skeleton-rating-count::before,
.skeleton-buy-btn::before,
.skeleton-description-title::before,
.skeleton-description-badge::before,
.skeleton-description-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* 响应式骨架屏 */
@media (max-width: 768px) {
    .skeleton-main-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .skeleton-poster-section {
        width: 100%;
        display: flex;
        gap: 15px;
    }
    
    .skeleton-poster {
        width: 120px;
        height: 160px;
    }
    
    .skeleton-rating-info {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .skeleton-rating-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .skeleton-buy-btn {
        align-self: flex-start;
    }
}

.info-switch-module .separator{
     margin: 0 6px;
 }
.info-left{ 
  display:flex; flex-direction:column; justify-content:center; gap:5px; margin-left: 3px;
}
.info-right{ 
  position: relative;
  flex: 1 1 auto;
  height: 100%;
  overflow: hidden;
  padding-left: 2px; /* 让内容更贴近分割线 */
}
.info-item{ 
  appearance:none; border:none; background:transparent; color:#fff; 
  padding:0; border-radius:0; cursor:pointer; 
  transition: opacity .2s ease, transform .15s ease; 
  font-size:12px; line-height:1; white-space:nowrap;
}
/* 未选中：降低透明度 */
.info-item{ opacity:.5; }
.info-item:hover{ transform:translateY(-1px); opacity:.8; }
/* 选中态：加粗并适度放大 */
.info-item.active{
  font-weight:700;
  opacity:1;
  transform: scale(1.12);
  transform-origin:left center;
}

.info-pane{ 
  display:block; 
  position:absolute; 
  inset:0; /* top:0; right:0; bottom:0; left:0; */
  opacity:0; 
  transform:translateY(6px); 
  pointer-events:none;
  transition: opacity .25s ease, transform .25s ease; 
}
.info-pane.active{ opacity:1; transform:translateY(0); pointer-events:auto; display: grid;
    align-items: center;}

/* 无障碍状态 */
.info-item[aria-selected="true"]{ outline:none; }
.info-item:focus-visible{ box-shadow:0 0 0 2px rgba(112,182,246,.6); }

/* 弹窗遮罩/动画/性能优化样式已迁移至 css/modals.css（保留占位）。 */



/* 图片型图标在 ios-icon 中的统一尺寸 */
.ios-icon img{ width:100%; height:100%; border-radius:10px; object-fit:cover; display:block; }




@keyframes nudgeY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* 第二处 .all-sites-popup 样式已迁移至 css/modals.css（去重并保留文档结构）。 */

/* 音乐模块：文本省略与最小宽度处理 */
.song-info{ min-width: 0; }
.song-title, .song-artist{ overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; }



/* 右键菜单：右侧图标/数量区域 */
.context-menu__item{ justify-content: space-between; }
.context-menu__meta{ display:inline-flex; align-items:center; gap:6px; margin-left:12px; margin-right:2px; color:#fff; opacity:.9; font-size:12px; }
.context-menu__meta .iconfont{ font-size:14px; }
.context-menu__meta .fa, .context-menu__meta .fas{ font-size:14px; }
/* 与壁纸模块一致的图标色与数字对齐 */
.context-menu__meta .wallpaper-count{ font-weight:600; font-size:12px; }

/* 刷新按钮旋转动画 */
@keyframes spin{ to{ transform: rotate(360deg); } }
.quote-refresh.spin i{ animation: spin 0.8s linear infinite; }


/* 响应式设计 */
@media (max-width: 768px) {
    .search-wrapper {
        width: 100%;
        max-width: 400px;
    }
    
    .search-wrapper input {
        height: 40px;
        padding: 0 12px;
    }
    
    .engine-toggle, .search-btn {
        width: 40px;
        height: 40px;
    }
    
    /* 在小屏幕上恢复为向下弹出 */
    .engine-dropdown {
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        margin-left: 0;
        margin-top: 8px;
    }
    
    .engine-dropdown.show {
        transform: translateX(-50%) translateY(0);
    }
    
    /* 小屏幕上的箭头方向 */
    .engine-dropdown::before {
        top: -6px;
        left: 50%;
        border-top: none;
        border-bottom: 8px solid rgba(255, 255, 255, 0.9);
        border-right: 8px solid transparent;
        border-left: 8px solid transparent;
    }
}

.right-section {
    gap: 20px;
}

.left-section::after, .right-section::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.3);
}

.left-section::after {
    right: -20px; /* 调整位置 */
}

.right-section::before {
    left: -20px; /* 调整位置 */
}

.right-section {
    gap: 20px; /* Spacing between weather and user button */
}

/* 天气模块样式已迁移至 css/weather.css，这里移除重复定义（保留注释占位）。 */
.main-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.custom-sites, .recent-sites {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-sites .icon{
    border-radius: 5px;
}

.separator {
    width: 1px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 20px;
}

/* 重复的 .bottom-btn 样式已移除，使用第一处定义（第310行） */

/* 网站图标样式 */
.ios-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}



.ios-icon:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Tooltip样式 */
.ios-icon {
    position: relative;
}

.ios-icon::after {
    content: attr(data-name);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    margin-bottom: 10px;
    z-index: 10;
}

.ios-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 弹窗基础样式已迁移至 css/modals.css（保留占位） */

.icon {
    width: 1em; 
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}


.wallpaper-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    transition: transform 500ms ease, opacity 500ms ease; /* 优化动画性能 */
    box-shadow: none;
    overflow: hidden;
}
.wallpaper-slide img {
    width: auto;
    height: 100%;
    object-fit: cover;
}

/* 右侧横向文本：壁纸库 + 数量 + 图标 */
.wallpaper-label {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    transform-origin: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1;
    z-index: 10;
    opacity: 0.9;
    user-select: none;
    pointer-events: none; /* 不阻挡交互 */
}
.wallpaper-label .iconfont {
    font-size: 24px;
        opacity: 0.9;
        font-weight: bold;
}


/* 第四个悬浮模块：信息切换组件 */
.info-switch-module{ 
  display:flex; align-items:center; gap:10px; width:100%; height:100%;
}










/* 浮动图标动画 */
.floating-icon {
    position: absolute;
    font-size: 20px;
    pointer-events: none;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* ==================== 日历弹窗样式 ==================== */

/* 日历弹窗容器 */
.calendar-popup {
    width: 90%;
    max-width: 800px;
    padding: 0 !important;
    height: auto;
    max-height: 90vh;
    background: #ffffff1b;
    border: none !important;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}

.calendar-modal {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 日历头部导航 */
.calendar-header {
    background: linear-gradient(135deg, #FFFFFF61 0%, #FFFFFF70 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.year-month-selector {
    display: flex;
    gap: 12px;
    align-items: center;
}

.year-select, .month-select {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.year-select:hover, .month-select:hover {
    background: rgba(255, 255, 255, 0.25);
}

.year-select option, .month-select option {
    background: #4A90E2;
    color: white;
}

.today-btn {
    background: rgba(255, 255, 255, 0.6);
    color: #4A90E2;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.today-btn:hover {
    background: white;
    transform: translateY(-1px);
}

.calendar-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* 日历主体 */
.calendar-body {
    display: flex;
    flex: 1;
    min-height: 500px;
    max-height: calc(100vh - 120px);
    overflow: hidden;
}

/* 左侧日历区域 */
.calendar-left {
    flex: 1;
    padding: 24px;
    background: #fafafa5c;
    border-right: 1px solid #e0e0e07a;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 12px;
}

.weekday {
    text-align: center;
    padding: 12px 4px;
    font-size: 14px;
    font-weight: 600;
    color: #2f2f2f;
    background: #ffffff9c;
    border-radius: 5px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-date {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff2e;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0s ease;
    position: relative;
    border: 2px solid transparent;
    min-height: 60px;
}

.calendar-date:hover {
    background: #f8f8f845;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.calendar-date.today {
    background: linear-gradient(135deg, #4A90E22E 0%, #357ABD24 100%);
    color: white;
    font-weight: bold;
}

.calendar-date.selected {
    border-color: #FFFFFF30;
    background: #80cfff29;
    color: #1976d2;
    font-weight: bold;
}

.calendar-date.other-month {
    color: #ccc;
    background: #f8f8f80f;
}

.calendar-date.other-month:hover {
    background: #f8f8f837;
}

/* 左侧日历中的日期数字 */
.calendar-grid .date-number {
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    color: #fff;
}

.date-lunar {
    font-size: 9px;
    color: #ffffff;
    margin-top: 2px;
    line-height: 1;
}

.calendar-date.today .date-lunar {
    color: rgba(255, 255, 255, 0.8);
}

.calendar-date.selected .date-lunar {
    color: #ffffff;
}

/* 周末样式 */
.calendar-grid .calendar-date.weekend .date-number {
    color: #ff6e6e;
}

/* 节假日样式 */
.calendar-grid .calendar-date.holiday .date-number {
    color: #ff6e6e;
    font-weight: bold;
}

/* 节日标签 */
.date-holiday {
    font-size: 8px;
    color: #ff6e6e;
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-weight: 500;
    padding: 1px 3px;
    border-radius: 2px;
    line-height: 1;
}

.calendar-date.today .date-holiday {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.2);
}

/* 顶角休/班徽标 */
.date-badge{position: absolute;
    top: 3px;
    right: 3px;
    font-size: 10px;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 2px;
    backdrop-filter: saturate(120%) blur(6px);
    -webkit-backdrop-filter: saturate(120%) blur(6px);
    color: #fff;
}
.date-badge.rest{ background: rgba(46, 204, 113, 0.5); border-color: rgba(46, 204, 113, 0.6); }
.date-badge.work{ background: rgba(231, 76, 60, 0.5); border-color: rgba(231, 76, 60, 0.6); }

/* 滚动条样式优化 */
.calendar-right::-webkit-scrollbar {
    width: 6px;
}

.calendar-right::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.calendar-right::-webkit-scrollbar-thumb {
    background: rgba(74, 144, 226, 0.3);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.calendar-right::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 144, 226, 0.5);
}

/* 右侧详情区域 */
.calendar-right {
    width: 320px;
    padding: 24px;
    background: #fafafa5c;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 100%;
}

/* 日期信息卡片 */
.date-info-card {
    background: linear-gradient(135deg, #f8f9fa36 0%, #e9ecef70 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}


.selected-date{
    display: flex;
        flex-direction: row;
        margin-bottom: 8px;
}
.gregorian-date {
    display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        flex: auto;
}

/* 右侧详情区域的日期数字 */
.calendar-right .date-number {
    font-size: 32px;
    padding: 5px;
    font-weight: 700;
    color: #4A90E2;
        background: #ffffff77;
        border-radius: 8px;
        height: 42px;
        width: 42px;
        flex: 1;
}



.date-text {
    font-size: 16px;
    color: #fff;
}

.weekday-info {
    font-size: 14px;
    color: #fff;
}

.lunar-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #dee2e6;
}

.lunar-text {
    font-size: 14px;
    color: #f9f9f9;
    font-weight: 500;
}

.solar-term {
    font-size: 12px;
    background: #4A90E2ba;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* 黄历信息 */
.almanac-info {
    flex: 1;
}

.almanac-section {
    margin-bottom: 10px;
    display: flex;
}

.almanac-title {
    font-size: 16px;
        padding:0 5px;
        border-radius: 6px 0 0 6px;
        display: grid;
        place-items: center;
        writing-mode: vertical-rl;
}



.almanac-title.suitable {
    background: rgba(187, 223, 187, 0.4);
    color: rgb(68 177 73);
}

.almanac-title.avoid {
    background: rgba(255, 235, 238, 0.4);
    color: rgba(238, 76, 75, 0.9);
}

.almanac-content {
    background: #e9ecef70;
    padding: 12px;
    border-radius:0 6px 6px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #fff;
}

.almanac-details {
    background: #e9ecef70;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 14px;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.detail-value {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .calendar-popup {
        width: 95%;
        max-width: none;
        height: 90vh;
    }
    
    .calendar-body {
        flex-direction: column;
    }
    
    .calendar-left {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .calendar-right {
        width: 100%;
        max-height: 300px;
        overflow-y: auto;
    }

    
    .calendar-header {
        padding: 16px 20px;
    }
    
    .calendar-nav {
        gap: 12px;
    }
    
    .year-month-selector {
        gap: 8px;
    }
    
    .nav-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .calendar-date {
        min-height: 50px;
    }
    
    .calendar-right .date-number {
        font-size: 36px;
    }
    
    .date-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .calendar-popup {
        width: 98%;
        height: 95vh;
    }
    
    .calendar-header {
        padding: 12px 16px;
    }
    
    .calendar-left, .calendar-right {
        padding: 16px;
    }
    
    .calendar-date {
        min-height: 45px;
    }
    
    .calendar-grid .date-number {
        font-size: 14px;
    }
    
    .date-lunar {
        font-size: 9px;
    }
    
    .calendar-right .date-number {
        font-size: 32px;
    }
}info-switch-module .separator{
    margin: 0 6px;
}
.info-left{ 
  display:flex; flex-direction:column; justify-content:center; gap:5px; margin-left: 3px;
}
.info-right{ 
  position: relative;
  flex: 1 1 auto;
  height: 100%;
  overflow: hidden;
  padding-left: 2px; /* 让内容更贴近分割线 */
}
.info-item{ 
  appearance:none; border:none; background:transparent; color:#fff; 
  padding:0; border-radius:0; cursor:pointer; 
  transition: opacity .2s ease, transform .15s ease; 
  font-size:12px; line-height:1; white-space:nowrap;
}
/* 未选中：降低透明度 */
.info-item{ opacity:.5; }
.info-item:hover{ transform:translateY(-1px); opacity:.8; }
/* 选中态：加粗并适度放大 */
.info-item.active{
  font-weight:700;
  opacity:1;
  transform: scale(1.12);
  transform-origin:left center;
}

.info-pane{ 
  display:block; 
  position:absolute; 
  inset:0; /* top:0; right:0; bottom:0; left:0; */
  opacity:0; 
  transform:translateY(6px); 
  pointer-events:none;
  transition: opacity .25s ease, transform .25s ease; 
}
.info-pane.active{ opacity:1; transform:translateY(0); pointer-events:auto; display: grid;
    align-items: center;}

/* 无障碍状态 */
.info-item[aria-selected="true"]{ outline:none; }
.info-item:focus-visible{ box-shadow:0 0 0 2px rgba(112,182,246,.6); }

/* 弹窗遮罩/动画/性能优化样式已迁移至 css/modals.css（保留占位）。 */

/* 设置中心内容容器：覆盖默认 .modal-content 定位，填充整个弹窗内部 */
.settings-center-popup .modal-content{
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0; /* 由内部卡片控制内边距 */
  position: static;   /* 取消绝对定位，避免二次居中 */
  transform: none;    /* 取消位移 */
  width: 100%;
  max-width: none;
  height: 100%;
  overflow: hidden;   /* 由右侧内容区滚动 */
}

/* 左右两栏布局（模仿 macOS 设置） */
.settings-center{ display:flex; gap:16px; height:100%; }
.settings-sidebar{ width:200px; padding:8px; border-right:1px solid rgba(255,255,255,0.12); overflow:auto;padding-right: 20px; }
.settings-nav{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.settings-nav li{ 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  padding: 10px 12px; 
  color: #fff; 
  border-radius: 10px; 
  cursor: pointer; 
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08); 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.settings-nav li.active, .settings-nav li:hover{ 
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border-color: rgba(255,255,255,0.3); 
}
.settings-nav i{ width:18px; text-align:center; opacity:.9; }
.settings-nav span{ flex:1; }

.settings-content{ flex:1; overflow:auto; padding:8px; }
.settings-card{ 
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.20); 
  border-radius: 14px; 
  padding: 14px 16px; 
  color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.settings-card + .settings-card{ margin-top:16px; }
.settings-card h3{ 
  margin: 0 0 10px; 
  color: #fff; 
  font-size: 16px; 
  font-weight: 600; 
  text-shadow: 0 2px 4px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.3); 
}
.settings-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 0; }
.settings-row + .settings-row{ border-top:1px dashed rgba(255,255,255,0.1); }
.settings-row select, .settings-row input[type="range"], .settings-row input[type="checkbox"]{ accent-color:#8ab4f8; }

/* 提升设置中心文本可读性与标题样式 */
#settingsCenterTitle{ 
  color: #fff; 
  text-align: center; 
  margin: 0 0 12px; 
  text-shadow: 0 2px 4px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.3); 
}
.settings-nav li span, .settings-row span{ 
  text-shadow: 0 2px 4px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.3); 
}

/* 图片型图标在 ios-icon 中的统一尺寸 */
.ios-icon img{ width:100%; height:100%; border-radius:10px; object-fit:cover; display:block; }

/* 自定义右键菜单 */
.context-menu{
  position: fixed;
  min-width: 100px;
  max-width: 240px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 5px 12px rgba(0,0,0,0.05);
  padding: 6px;
  z-index: 1400; /* 高于其它 UI */
  display: none;
}
.context-menu__list{ list-style:none; margin:0; padding:0; }
.context-menu__item{ 
  width: 100%;
  text-align: left;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; 
  background: transparent; border:none; color:#fff; cursor:pointer; 
  border-radius: 8px; font-size:14px;
}
.context-menu__item:hover{ background: rgba(255,255,255,0.15); }
.context-menu__divider{ height:1px; margin:6px 4px; background: rgba(255,255,255,0.25); border:none; }

/* 今日新闻静态列表布局：竖向三行 + 左序号 + 右侧上下箭头（复用 .links-arrow） */
.info-right .info-pane[data-key="news"]{ display:flex; margin-left: -5px;align-items:center; gap:8px; padding: 8px 4px 8px 6px; background: transparent !important; /* 去除外层框架背景色，右侧更贴边 */ }
.news-list{ display:flex; flex-direction:column; gap:4px; flex:1 1 auto; min-width:0; }
.news-item{ display:flex; align-items:center; }
.news-index{ width:16px; height:16px; flex:0 0 16px; display:flex; align-items:center; justify-content:center; text-align:center; margin-right:3px; font-weight:700; color:#fdfdfd; background: rgba(255, 255, 255, 0.34); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 6px; opacity:1; font-size:11px; line-height:1; }
.news-title{ flex:1 1 auto; min-width:0; }
.news-title a{ color:#fff; opacity:.9; text-decoration:none; display:inline-block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; line-height:1.25; }
.news-title a:hover{ opacity:1; text-decoration:underline; }
.news-pagination{ position: static; display:flex; flex-direction: column; gap:6px; align-self:center; margin-left:0px; z-index:auto; }
/* 首页提示动画：下箭头轻微上下浮动 */
.news-pagination .links-next.nudge { animation: nudgeY 1.8s ease-in-out infinite; }
@keyframes nudgeY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* 全部应用弹窗样式定制 */
.all-sites-popup{
  position: fixed; /* 恢复为固定定位，使用 .popup 的 top/left/transform 居中效果 */
  color: #fff;
  display: flex; /* 改为弹性布局以支持内层区域伸缩 */
  flex-direction: column;
}
/* 覆盖 .popup.show 的 display:block */
.all-sites-popup.show{ display: flex !important; }

/* 标题：居中、白色 */
.all-sites-popup #allAppsTitle{
  margin: 0 40px 12px; /* 给右侧关闭按钮留出空间 */
  text-align: center;
  color: #fff;
  font-weight: 600;
}

/* 关闭按钮：右上角、圆形背景、白色图标 */
.modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.071);
  background: rgba(255, 255, 255, 0.133);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}
.modal-close:hover{ transform: scale(1.06); background: rgba(255,255,255,0.28); }
.modal-close:active{ transform: scale(0.94); }

/* 弹窗内容主体：可垂直滚动 */
.all-apps-body{
  flex: 1;
  min-height: 0; /* 允许子容器在flex中正确收缩 */
  overflow-y: auto;
  padding: 6px 8px 8px;
  /* Firefox滚动条样式 */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.5) transparent;
}

/* 右侧滚动条美化（WebKit） */
.all-apps-body::-webkit-scrollbar{ width: 8px; }
.all-apps-body::-webkit-scrollbar-track{ background: transparent; }
.all-apps-body::-webkit-scrollbar-thumb{
  background: linear-gradient(to bottom, rgba(255,255,255,0.55), rgba(255,255,255,0.28));
  border-radius: 6px;
  border: 2px solid transparent; /* 伪内边距，避免粘手感 */
  background-clip: padding-box;
}
.all-apps-body::-webkit-scrollbar-thumb:hover{ background: linear-gradient(to bottom, rgba(255,255,255,0.7), rgba(255,255,255,0.38)); }



/* 分类列布局：不同分类按列排布，响应式自适应 */
.apps-columns{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
}

.apps-col{
  /* 与毛玻璃风格协调的轻微分隔，不喧宾夺主 */
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* 分类名称在左侧 */
.apps-cat-title{
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  opacity: .95;
  margin-bottom: 10px;
}

/* 网站图标按行排列，超出自动换行 */
.apps-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 细化弹窗内图标的 hover 提示可见性（在浅背景上更清晰） */
.all-sites-popup .ios-icon::after{ z-index: 2; }

/* 音乐模块：文本省略与最小宽度处理 */
.song-info{ min-width: 0; }
.song-title, .song-artist{ overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; }

/* 覆盖之前的 360/280 容器规则：在 <=360px 默认保持横向（除非更窄到 <=275px）*/
@container (max-width: 360px) {
  .music-player{ display:flex; flex-direction: row; align-items: center; gap: 10px; }
  .album-art{ width: 60px; height: 60px; }
  .song-info{ text-align: left; }
  .controls{ gap: 5px; }
  .controls button{ font-size: 16px; }
  .controls button .iconfont{ font-size: 18px; }
}

/* 仅当模块最外层宽度 < 275px：保持左侧封面不动，右侧改为上下栈（信息在上，按钮在下） */
@container (max-width: 275px) {
  .music-player{
    display: grid;
    grid-template-columns: 50px 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: "art info" "art ctrls";
    column-gap: 8px;
    align-items: center;
  }
  .album-art{ grid-area: art; width: 50px; height: 50px; }
  .song-info{ grid-area: info; text-align: left; }
  .controls{ grid-area: ctrls; justify-content: flex-start; }
  .song-title{ font-size: 12px; }
  .song-artist{ font-size: 10px; }
  .controls button{ font-size: 14px; }
  .controls button .iconfont{ font-size: 16px; }
}

/* 右键菜单：右侧图标/数量区域 */
.context-menu__item{ justify-content: space-between; }
.context-menu__meta{ display:inline-flex; align-items:center; gap:6px; margin-left:12px; margin-right:2px; color:#fff; opacity:.9; font-size:12px; }
.context-menu__meta .iconfont{ font-size:14px; }
.context-menu__meta .fa, .context-menu__meta .fas{ font-size:14px; }
/* 与壁纸模块一致的图标色与数字对齐 */
.context-menu__meta .wallpaper-count{ font-weight:600; font-size:12px; }

/* 刷新按钮旋转动画 */
@keyframes spin{ to{ transform: rotate(360deg); } }
.quote-refresh.spin i{ animation: spin 0.8s linear infinite; }


/* 响应式设计 */
@media (max-width: 768px) {
    .search-wrapper {
        width: 100%;
        max-width: 400px;
    }
    
    .search-wrapper input {
        height: 40px;
        padding: 0 12px;
    }
    
    .engine-toggle, .search-btn {
        width: 40px;
        height: 40px;
    }
    
    /* 在小屏幕上恢复为向下弹出 */
    .engine-dropdown {
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        margin-left: 0;
        margin-top: 8px;
    }
    
    .engine-dropdown.show {
        transform: translateX(-50%) translateY(0);
    }
    
    /* 小屏幕上的箭头方向 */
    .engine-dropdown::before {
        top: -6px;
        left: 50%;
        border-top: none;
        border-bottom: 8px solid rgba(255, 255, 255, 0.9);
        border-right: 8px solid transparent;
        border-left: 8px solid transparent;
    }
}

/* 底部栏样式 */
.floating-modules-container {
    display: flex;
    justify-content: center; /* 容器内整体居中 */
    align-items: center; /* 与模块高度一致时居中对齐 */
    gap: 30px;
    position: fixed;
    bottom: 90px; /* 60px bottom bar + 20px margin */
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1512px;
}

.floating-module {
    flex: 1 1 0; /* 自动平均分配可用空间 */
    min-width: 0; /* 允许压缩 */
    height: 90px;

    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    padding: 0 10px;
    box-sizing: border-box; /* 保证内边距不影响高度 */
    overflow: hidden; /* 允许子元素悬浮时不被裁切 */
    position: relative; /* 形成新层叠上下文 */
}

/* 在线音乐模块专用毛玻璃效果 */
.floating-module {
    background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px) saturate(150%);
        -webkit-backdrop-filter: blur(10px) saturate(180%);

        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 悬浮效果增强 */
.floating-module:hover {
    background: rgba(255, 255, 255, 0.20);
        backdrop-filter: blur(20px) saturate(200%);
        -webkit-backdrop-filter: blur(25px) saturate(200%);
        border: 1px solid rgba(255, 255, 255, 0.3);
       
}

/* 快捷工具模块特殊样式 */
.floating-module.quick-tools-module {
    padding: 0 5px; /* 优化快捷工具模块的内边距 */
}

/* 日历图标样式 */
.calendar-icon {
    position: relative;
    overflow: hidden;
}

.calendar-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-card-header {
    background: #e74c3c; /* 红色背景 */
    height: 30%; /* 上方三分之一 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 400;
    font-size: 9px;
}

.calendar-card-body {
    background: #faf8f5; /* 米白色背景 */
    height: 70%; /* 下方三分之二 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #252525;
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 3px;
}
/* 响应式字体大小调整 */
@media (max-width: 768px) {
    .calendar-card-header {
        font-size: 8px;
    }
    
    .calendar-card-body {
        font-size: 20px;
    }
}

.music-player {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    width: 100%;
    height: 100%;
    align-content: center;
}

.album-art {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    transition: opacity .25s ease;
}

.song-info {
    grid-column: 2;
    grid-row: 1;
    flex-grow: 1;
    color: white;
}

.song-title {
    font-size: 13px;
    font-weight: bold;
}

.song-artist {
    font-size: 10px;
    color: #e8e8e8b8;
}

.controls {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    gap: 5px;
}

.controls button {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    padding: 6px;
    transition: background .2s ease, opacity .2s ease, filter .2s ease;
}

.controls button .iconfont{
    font-size: 18px;
    width: 18px; /* 固定图标宽度，避免切换时布局抖动 */
    display: inline-block;
    text-align: center;
}
/* 控制按钮状态效果 */
.controls button:hover{ background: rgba(255,255,255,0.12); }
.controls button:active{ background: rgba(255,255,255,0.18); }
.controls button:disabled{ opacity:.5; filter:grayscale(20%); pointer-events:none; }
.controls .btn-play.playing{ background: rgba(255,255,255,0.16); }

/* 音乐模块：包裹 music-main 与 music-progress 的容器 */
.music-content {
    grid-column: 2 / 4; /* 位于封面右侧 */
    grid-row: 1 / 3;   /* 占两行区域 */
    display: grid;
    grid-template-rows: auto auto;
    row-gap: 4px;      /* 让两者垂直方向更靠近 */
    align-items: center; /* 每行内容居中 */
    height: 70px;
}

/* 音乐主信息容器（封面右侧，包含标题与控制） */
.music-main {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 8px;
}
.music-main .song-info {
    grid-column: 1;
}
.music-main .controls {
    grid-column: 2;
}
.music-progress {
    display: flex;
        flex-direction: row;
        align-items: center;
        gap: 3px;
}
.music-progress .current-time,
.music-progress .duration-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.525);
}
.progress-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 3px;
}

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(5px) saturate(120%);
        -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.left-section, .right-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 60px;
    position: relative; /* 添加相对定位 */
}

.right-section {
    gap: 20px;
}

.left-section::after, .right-section::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.3);
}

.left-section::after {
    right: -20px; /* 调整位置 */
}

.right-section::before {
    left: -20px; /* 调整位置 */
}

.right-section {
    gap: 20px; /* Spacing between weather and user button */
}

/* 天气模块样式已迁移至 css/weather.css，这里移除重复定义（保留注释占位）。 */
.main-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.custom-sites, .recent-sites {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-sites .icon{
    border-radius: 5px;
}

.separator {
    width: 1px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 20px;
}

/* 重复的 .bottom-btn 样式已移除，使用第一处定义（第310行） */

/* 网站图标样式 */
.ios-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}



.ios-icon:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Tooltip样式 */
.ios-icon {
    position: relative;
}

.ios-icon::after {
    content: attr(data-name);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    margin-bottom: 10px;
    z-index: 10;
}

.ios-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 弹窗基础样式已迁移至 css/modals.css（保留占位） */

.icon {
    width: 1em; 
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}




.wallpaper-stack {
    position: relative;
 height: 70px;
    aspect-ratio: 16 / 9;
}

.wallpaper-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    transition: transform 500ms ease, opacity 500ms ease; /* 优化动画性能 */
    box-shadow: none;
    overflow: hidden;
}
.wallpaper-slide img {
    width: auto;
    height: 100%;
    object-fit: cover;
}

/* 右侧横向文本：壁纸库 + 数量 + 图标 */
.wallpaper-label {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    transform-origin: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1;
    z-index: 10;
    opacity: 0.9;
    user-select: none;
    pointer-events: none; /* 不阻挡交互 */
}
.wallpaper-label .iconfont {
    font-size: 24px;
        opacity: 0.9;
        font-weight: bold;
}


/* 第四个悬浮模块：信息切换组件 */
.info-switch-module{ 
  display:flex; align-items:center; gap:10px; width:100%; height:100%;
}