/* ==========================================================================
   💎 导航定制多功能广告弹窗核心样式
   ========================================================================== */
.nav-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65); /* 暗黑半透明遮罩 */
    backdrop-filter: blur(5px);      /* 高级毛玻璃滤镜 */
    z-index: 100000 !important;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}

/* 弹窗显示控制 */
.nav-modal-overlay.modal-show {
    opacity: 1;
    pointer-events: auto;
}

/* 弹窗主盒子 */
.nav-modal-box {
    background: #1e1e24; /* 契合暗黑奢华主题底色 */
    width: 90%; max-width: 480px;
    border-radius: 12px;
    border: 1px solid #32323d;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* 弹窗头部 */
.nav-modal-header {
    background: #141418;
    padding: 14px 20px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #282833;
}
.nav-modal-title {
    color: #ff4d4f; font-weight: bold; font-size: 16px;
}
.nav-modal-close {
    color: #aaa; font-size: 24px; cursor: pointer; transition: color 0.2s;
}
.nav-modal-close:hover { color: #fff; }

/* 弹窗主体 */
.nav-modal-body {
    padding: 20px; text-align: center;
}
.modal-main-tips { color: #8e8e93; font-size: 13px; margin: 0; }
.modal-target-site {
    color: #ffffff; font-size: 22px; font-weight: bold; margin: 10px 0 5px 0;
    text-shadow: 0 0 10px rgba(255,255,255,0.1);
}
.modal-sub-tips {
    color: #555562; font-size: 12px; margin-bottom: 20px; word-break: break-all;
}

/* 👑 ==================== 超强曝光广告专属设计 ==================== */
.modal-ads-wrapper {
    background: #141418;
    border: 1px dashed #ff990040;
    border-radius: 8px;
    padding: 12px; margin-bottom: 5px;
    text-align: left;
}
.modal-ads-wrapper .ads-title {
    font-size: 13px; color: #ff9900; font-weight: bold; margin-bottom: 10px;
}
.ads-buttons-grid {
    display: flex; flex-direction: column; gap: 8px; /* 纵向广告按钮排列 */
}
/* 广告按钮基础样式 */
.modal-ad-btn {
    display: block; width: 100%; padding: 10px 15px;
    border-radius: 6px; font-size: 13px; font-weight: bold; text-align: center;
    text-decoration: none !important; color: #fff !important;
    transition: all 0.2s ease;
}

/* 💥 特效一：土豪金发光广告按钮 */
.ad-glow-gold {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.4);
}
.ad-glow-gold:hover { transform: scale(1.02); box-shadow: 0 0 15px rgba(243, 156, 18, 0.7); }

/* 💥 特效二：炫酷紫发光广告按钮 */
.ad-glow-purple {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    box-shadow: 0 0 10px rgba(142, 68, 173, 0.4);
}
.ad-glow-purple:hover { transform: scale(1.02); box-shadow: 0 0 15px rgba(142, 68, 173, 0.7); }

/* 💥 特效三：科技蓝发光广告按钮 */
.ad-glow-blue {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    box-shadow: 0 0 10px rgba(0, 114, 255, 0.4);
}
.ad-glow-blue:hover { transform: scale(1.02); box-shadow: 0 0 15px rgba(0, 114, 255, 0.7); }

/* 底部操作区按钮 */
.nav-modal-footer {
    background: #141418; padding: 12px 20px;
    display: flex; justify-content: flex-end; gap: 12px;
    border-top: 1px solid #282833;
}
.modal-btn {
    padding: 8px 18px; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; font-weight: 500;
}
.modal-btn-cancel {
    background: #282833; color: #aaa; transition: background 0.2s;
}
.modal-btn-cancel:hover { background: #3c3c4d; color: #fff; }
.modal-btn-confirm {
    background: #ff4d4f; color: #fff; font-weight: bold; transition: background 0.2s;
}
.modal-btn-confirm:hover { background: #ff7875; }

/* 💫 经典的 Layer 卡片弹窗入场 bounce 动画 */
@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.85); }
    70% { transform: scale(1.03); }
    100% { opacity: 1; transform: scale(1); }
}
.animate-bounce-in {
    animation: bounceIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
/* 👑 广告按钮容器：设置为一排 3 等分 */
.ads-buttons-grid {
    display: grid;
    /* 核心：在宽度足够时，一排等分成 3 列，间距为 8px */
    grid-template-columns: repeat(3, 1fr); 
    gap: 8px; 
    width: 100%;
}

/* 广告按钮基础样式（保持高度和间距一致） */
.modal-ad-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px; /* 图标和文字的间距 */
    width: 100%; 
    padding: 10px 8px; /* 稍微缩减左右内边距，防止字数多时换行 */
    border-radius: 6px; 
    font-size: 12px; /* 稍微调小字号，确保一排 3 个时文字能完美放下 */
    font-weight: bold; 
    text-align: center;
    text-decoration: none !important; 
    color: #fff !important;
    transition: all 0.2s ease;
    white-space: nowrap; /* 强制文字不换行 */
    overflow: hidden;
    text-overflow: ellipsis; /* 文字如果过长显示省略号，不撑坏排版 */
}

/* 📱 响应式手机端移动端优化：如果手机屏幕太窄，一排 3 个字会挤满，自动切换为一排 1 个 */
@media screen and (max-width: 480px) {
.ads-buttons-grid {
    display: grid;
    /* 核心：在宽度足够时，一排等分成 3 列，间距为 8px */
    grid-template-columns: repeat(3, 1fr); 
    gap: 8px; 
    width: 100%;
}
}

/* ==========================================================================
   🎨 网站文字颜色拓展系统（契合暗黑高质感主题）
   ========================================================================== */

/* 1. 璀璨金橙色（热情、吸睛，适合主打或顶级推荐） */
.text-gold, .text-orange {
    color: #ff9300 !important;
    text-shadow: 0 0 8px rgba(255, 147, 0, 0.2) !important; /* 微弱发光质感 */
}

/* 2. 奢华魅紫色（神秘、高贵，适合精品或老牌分类） */
.text-purple {
    color: #b8860b !important; /* 如果想要纯紫，可以用下面这行 */
    color: #a855f7 !important;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.2) !important;
}

/* 3. 极客荧光绿（亮眼、安全、在线状态，适合实时更新或最新分类） */
.text-green {
    color: #2ecc71 !important;
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.2) !important;
}

/* 4. 炽热玫瑰红（火爆、性感、警告，适合热门或独家爆款） */
.text-red {
    color: #ef4444 !important;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.2) !important;
}

/* 5. 纯净冰蓝色（冷静、科技感、VIP解析感） */
.text-blue {
    color: #38bdf8 !important;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.2) !important;
}

/* 6. 梦幻樱花粉（适合偏女性化、高颜值或特定分类标签） */
.text-pink {
    color: #f43f5e !important;
    text-shadow: 0 0 8px rgba(244, 63, 94, 0.2) !important;
}

/* 7. 低调高级灰（适合次要文字、未激活或普通状态） */
.text-muted {
    color: #8e8e93 !important;
}
/* ==========================================================================
   🔥 导航卡片精致左上角标系统
   ========================================================================== */

/* 1. 核心基础：必须让外层链接卡片具备相对定位，防止角标飞出盒子 */
.site-item.borders {
    position: relative !important;
    overflow: hidden !important; /* 确保超出的三角形部分被干净裁切 */
}

/* 2. 精美 HOT 角标样式 */
.badge-hot {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #8e3797, #ff7875); /* 火热玫瑰红渐变 */
    color: #ffffff !important;
    font-size: 10px !important;       /* 极其精细的小字号 */
    font-weight: bold !important;
    line-height: 1 !important;
    padding: 2px 2px 2px 2px;       /* 精准内边距 */
    border-radius: 0 0 6px 0;       /* 仅右下角圆角，形成完美贴合 */
    box-shadow: 2px 2px 6px rgba(239, 68, 68, 0.4); /* 酷炫红光微弱霓虹发光 */
    z-index: 5 !important;
    text-transform: uppercase;      /* 强制大写 */
    pointer-events: none;           /* 穿透点击，不干扰卡片原本的鼠标事件 */
}

/* 3. 可选：角标呼吸微弱闪烁动画，显得极其尊贵和动态化 */
@keyframes hot-pulse {
    0% { opacity: 0.9; box-shadow: 2px 2px 4px rgba(239, 68, 68, 0.4); }
    50% { opacity: 1; box-shadow: 2px 2px 10px rgba(239, 68, 68, 0.7); }
    100% { opacity: 0.9; box-shadow: 2px 2px 4px rgba(239, 68, 68, 0.4); }
}
.badge-hot {
    animation: hot-pulse 2s infinite ease-in-out;
}
/* ==========================================================================
   🖼️ 导航站置顶卡片图片广告网格系统
   ========================================================================== */

/* 确保外部容器清除浮动，间距干净 */
.top-ads-wrapper {
    display: block !important;
    width: 100% !important;
    padding: 5px 0;
}

/* 主容器：使用强大的 Grid 网格实现精准对齐 */
.photo-ads-container {
    display: grid !important;
    /* 默认电脑端：一行均分 4 列，间距为 10px */
    grid-template-columns: repeat(10, 1fr); 
    gap: 10px;                  
    width: 100%;
    margin-top: 5px;
}

/* 每一个广告子项卡片 */
.photo-ad-item {
    display: flex !important;
    flex-direction: column !important; /* 纵向：图片在上，文字在下 */
    align-items: center !important;
    background: #383a3900;        /* 暗黑奢华底色 */
    border: 1px solid #383a3900;  /* 边缘高质感切线 */
    border-radius: 6px;         /* 微微微圆角 */
    padding: 2px;
    text-decoration: none !important;
    transition: all 0.25s ease-in-out;
    overflow: hidden;
}

/* 悬停动效：卡片轻微平滑上浮、带发光 */
.photo-ad-item:hover {
    transform: translateY(-2px);
    border-color: #ff4d4f;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.25);
}

/* 限制图片高度：防止动图被拉伸变形 */
.photo-ad-img {
    width: 55px !important;
    height: 55px !important;    /* 限制图片固定高度 */
    object-fit: cover !important; /* 核心：裁切多余部分，保持原始比例不扁塌 */
    border-radius: 10px;
}

/* 广告下方文字标签样式 */
.photo-ad-title {
    font-size: 11px !important;
    font-weight: bold;
    color: #a562fa !important;
    margin-top: 6px;
    text-align: center;
    width: 100%;
    white-space: nowrap;        /* 强制文字不换行 */
    overflow: hidden;
    text-overflow: ellipsis;    /* 过长自动变省略号 */
}

.photo-ad-item:hover .photo-ad-title {
    color: #ff4d4f !important;  /* 悬停时文字变为火热红 */
}

/* ==========================================================================
   📱 移动端自适应优化（防止小屏幕挤压）
   ========================================================================== */
@media screen and (max-width: 768px) {
    .photo-ads-container {
        grid-template-columns: repeat(5, 1fr) !important; /* 手机端自动一排 2 个 */
        gap: 6px;
    }
    .photo-ad-img {
        width: 50px !important;
        height: 50px !important; /* 移动端缩减高度适配屏幕 */
    }
}
.borders {
    border: 1.3px solid #eee !important; 
    white-space: nowrap !important; 
    overflow: hidden !important; 
}
.site-item {
    width: 12.5%;
    color: rgb(102, 102, 102);
    font-size: 14px;
    float: left;
    text-overflow: ellipsis;
    text-align: center;
    padding: 8px 0px;
    border-radius: 6px;
    transition: 0.3s;
}