/*
Theme Name:     B2子主题
Theme URI:      http: //7b2.com/
Description:    Child theme for the B2 PRO
Author:         子主题模版
Author URI:     http: //7b2.com/
Template:       b2
Version:        0.1.5
*/

/*下面是您自己DIY的css样式代码*/

/* ============================================
   极主题搜索框美化样式 - 1:1复制
   ============================================ */

/* 搜索模块主容器 - 完全居中 */
.search-module {
    border-radius: 12px;
    padding: 60px 40px 50px 40px !important;
    margin: 0 auto;
    position: relative;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.search-module.has-bg {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 120px 0 80px 0 !important;
    border-radius: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.search-module.has-bg > div {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

.search-module.has-bg .search-module-title {
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45) !important;
}

.search-module.has-bg .search-module-desc {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.search-module.has-bg .search-module-form {
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(6px);
}

.search-module.has-bg .search-module-form:hover {
    border-color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3) !important;
}

.search-module.has-bg .search-module-input {
    color: #ffffff !important;
}

.search-module.has-bg .search-module-input::placeholder {
    color: rgba(255, 255, 255, 0.75) !important;
}

.search-module.has-bg .picked-category {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.search-module.has-bg .picked-category:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
}

.search-module.has-bg .search-module-form ul {
    background: rgba(17, 24, 39, 0.82);
    border: none;
    backdrop-filter: blur(6px);
}

.search-module.has-bg .search-module-form ul li {
    color: #ffffff;
}

.search-module.has-bg .search-module-form ul li:hover,
.search-module.has-bg .search-module-form ul li.picked {
    background: rgba(255, 255, 255, 0.14);
}

.search-module.has-bg .search-module-key ul li,
.search-module.has-bg .search-module-key ul li a {
    color: #ffffff !important;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4) !important;
}

.search-module.has-bg .search-module-key ul li.search-key::before {
    background: rgba(255, 255, 255, 0.9);
}

/* 搜索模块标题 - 红色调，大气美化 */
.search-module-title {
    font-size: 42px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b7a 50%, #ff8a95 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-align: center !important;
    margin: 0 auto 20px auto !important;
    width: 100%;
    max-width: 800px;
    line-height: 1.3;
    letter-spacing: -1px;
    display: block;
    text-shadow: none !important;
    position: relative;
}

/* 搜索模块描述 - 黑色中等文字 */
.search-module-desc {
    font-size: 16px !important;
    color: #666666 !important;
    text-align: center !important;
    margin: 0 auto 40px auto !important;
    max-width: 600px;
    width: 100%;
    line-height: 1.6;
    font-weight: 400;
    display: block;
}

/* 搜索框容器 - 确保居中 */
.search-module-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* 搜索表单 - 红色调，圆角设计 */
.search-module-form {
    background: #ffffff !important;
    border: 2px solid #ff4757 !important;
    border-radius: 50px !important;
    position: relative;
    width: 100% !important;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.15), 0 2px 8px rgba(255, 71, 87, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-module-form:hover {
    border-color: #ff6b7a !important;
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.25), 0 4px 12px rgba(255, 71, 87, 0.15) !important;
    transform: translateY(-1px);
}

.search-module-form:focus-within {
    border-color: #ff4757 !important;
    box-shadow: 0 8px 24px rgba(255, 71, 87, 0.3), 0 4px 16px rgba(255, 71, 87, 0.2) !important;
    transform: translateY(-2px);
}

/* 分类选择下拉菜单 */
.search-module-form ul {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 120px;
}

.search-module-form ul li {
    font-size: 14px;
    padding: 10px 16px;
    margin-bottom: 4px;
    cursor: pointer;
    border-radius: 6px;
    color: #121212;
    transition: all 0.2s ease;
}

.search-module-form ul li:hover {
    background: #f3f4f6;
}

.search-module-form ul li.picked {
    background: #f3f4f6;
    font-weight: 500;
}

/* 已选择的分类标签 */
.picked-category {
    display: flex;
    white-space: nowrap;
    align-items: center;
    font-size: 14px;
    padding: 0 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    margin-right: 8px;
    height: 44px;
    box-sizing: border-box;
    cursor: pointer;
    color: #121212;
    transition: all 0.2s ease;
}

.picked-category:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* 搜索输入框容器 */
.search-module-form > div {
    display: flex !important;
    flex: 1;
    align-items: center;
    width: 100%;
}

.search-module-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    color: #121212 !important;
    outline: none !important;
    height: 44px;
    line-height: 44px;
}

.search-module-input::placeholder {
    color: #9ca3af !important;
    font-size: 16px;
}

/* 搜索按钮 - 红色圆形按钮 */
.search-module-form .search-button-action {
    background: #ff4757 !important;
    border: none !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: #ffffff !important;
    flex-shrink: 0;
    margin-left: 4px;
    position: relative;
    top: 0 !important;
    right: 0 !important;
}

.search-module-form .search-button-action:hover {
    background: #ff6b7a !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.search-module-form .search-button-action:active {
    transform: scale(0.95);
}

.search-module-form .search-button-action i {
    font-size: 20px !important;
    color: #ffffff !important;
}

/* 热门搜索关键词区域 - 确保居中 */
.search-module-key {
    margin-top: 36px !important;
    width: 100% !important;
    max-width: 860px;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex;
    justify-content: center;
    position: relative;
}

.search-module-key::before {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
    filter: none;
    border-radius: 0;
    z-index: 0;
}

.search-module-key ul {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.search-module-key ul li {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937 !important;
    text-shadow: none !important;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
}

.search-module-key ul li:first-child {
    padding-right: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #ff4757 !important;
}

.search-module-key ul li:first-child::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff4757;
    margin-left: 10px;
}

.search-module-key ul li.search-key {
    border-radius: 999px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.18) 0%, rgba(255, 165, 175, 0.12) 100%);
    border: 1px solid rgba(255, 71, 87, 0.22);
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.18);
    cursor: pointer;
}

.search-module-key ul li.search-key::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff89a1;
    margin-right: 10px;
    transform: translateY(-1px);
}

.search-module-key ul li.search-key a {
    color: #2f3542 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.search-module-key ul li.search-key:hover {
    background: linear-gradient(135deg, #ff6b81 0%, #ff4757 100%);
    box-shadow: 0 18px 38px rgba(255, 71, 87, 0.25);
    transform: translateY(-2px);
}

.search-module-key ul li.search-key:hover::before {
    background: rgba(255, 255, 255, 0.75);
}

.search-module-key ul li.search-key:hover a {
    color: #ffffff !important;
}

.home_row.module-links .link-up,
.home_row.module-links .link-up *,
.home_row.module-links .link-tool-type,
.home_row.module-links .type-backend,
.home_row.module-links .type-tool,
.home_row.module-links .type-tutorial,
.home_row.module-links .type-frontend,
.home_row.module-links .type-ad {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-module {
        padding: 40px 20px 30px 20px !important;
    }
    
    .search-module-title {
        font-size: 28px !important;
    }
    
    .search-module-desc {
        font-size: 14px !important;
        margin-bottom: 30px !important;
    }
    
    .search-module-box {
        max-width: 100%;
    }
    
    .search-module-form {
        border-radius: 40px !important;
    }
    
    .search-module-input {
        font-size: 14px !important;
        padding: 10px 16px !important;
    }
    
    .picked-category {
        font-size: 12px;
        padding: 0 12px;
        height: 40px;
    }
    
    .search-module-form .search-button-action {
        width: 40px !important;
        height: 40px !important;
    }
    
    .search-module-key {
        margin-top: 24px !important;
    }
    
    .search-module-key ul li.search-key {
        font-size: 12px;
        padding: 5px 12px !important;
    }
}

/* 确保在有背景图片时，文字仍然清晰可见 */
.search-module[style*="background-image"] .search-module-title,
.search-module[style*="background-image"] .search-module-desc {
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

/* ============================================
   核心居中修复 - 覆盖B2主题的默认样式
   ============================================ */

/* 最外层容器 - 确保整个搜索模块区域居中 */
.home_row.module-search {
    background: transparent !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* wrapper容器 - 居中显示 */
.home_row.module-search > div.wrapper,
.home_row.module-search > div[class*="wrapper"],
.home_row.module-search > div[style*="width"] {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* content-area容器 - 居中显示 */
.home_row.module-search .home-row-left.content-area {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

/* 搜索模块主容器 - 居中并限制最大宽度 */
.home_row.module-search .search-module {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 60px 40px 50px 40px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.home_row.module-search .search-module.has-bg {
    max-width: 100% !important;
    padding: 120px 0 80px 0 !important;
    border-radius: 0 !important;
}

.home_row.module-search .search-module.has-bg > div {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* 覆盖父主题的60%宽度限制 - 搜索表单 */
.home_row.module-search .search-module-form {
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* 覆盖父主题的60%宽度限制 - 热门搜索关键词 */
.home_row.module-search .search-module-key {
    width: 100% !important;
    max-width: 800px !important;
    margin: 32px auto 0 auto !important;
    display: flex !important;
    justify-content: center !important;
}

/* 覆盖父主题的50%宽度限制 - 描述文字 */
.home_row.module-search .search-module-desc {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto 40px auto !important;
    text-align: center !important;
}

/* 搜索框容器 - 确保居中 */
.home_row.module-search .search-module-box {
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* 优化搜索框内部元素间距 */
.search-module-form .picked-category + .search-module-input {
    margin-left: 0;
}

/* 确保搜索按钮图标居中 */
.search-module-form .search-button-action i,
.search-module-form .search-button-action svg {
    display: block;
    margin: 0 auto;
}

/* 优化热门搜索关键词的显示 */
.search-module-key ul li.search-key a:hover {
    color: #121212 !important;
}

/* 确保搜索框在不同屏幕尺寸下都正常显示 */
@media (min-width: 1200px) {
    .search-module-box {
        max-width: 900px;
    }
    
    .search-module-form {
        max-width: 900px;
    }
}

/* 优化移动端显示 */
@media (max-width: 480px) {
    .search-module {
        padding: 30px 15px 25px 15px !important;
        border-radius: 8px;
    }
    
    .search-module-title {
        font-size: 24px !important;
    }
    
    .search-module-desc {
        font-size: 13px !important;
        margin-bottom: 25px !important;
    }
    
    .search-module-form {
        border-radius: 30px !important;
        padding: 3px;
    }
    
    .search-module-input {
        font-size: 14px !important;
        padding: 8px 12px !important;
        height: 38px;
        line-height: 38px;
    }
    
    .picked-category {
        font-size: 11px;
        padding: 0 10px;
        height: 38px;
        margin-right: 6px;
    }
    
    .search-module-form .search-button-action {
        width: 38px !important;
        height: 38px !important;
    }
    
    .search-module-key ul li.search-key {
        font-size: 11px;
        padding: 4px 10px !important;
    }
}

/* ============================================
   网址导航模块美化 - 参考DNY123网站布局
   ============================================ */

/* 导航模块整体优化 - 增加间距，避免拥挤 */
.link-box {
    padding: 32px 24px !important;
    margin-bottom: 32px !important;
}

/* ============================================
   现代科技感网址导航UI设计
   设计思路：
   1. 卡片式布局，增强视觉层次
   2. 渐变背景和阴影，提升科技感
   3. 图标更大更突出，提升辨识度
   4. 添加工具类型标签，优化信息层级
   5. 流畅的动画效果，提升交互体验
   ============================================ */

/* 链接列表容器 - 缩小间距 */
.link-list {
    margin: -10px !important; /* 缩小外边距 */
}

.link-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 !important;
}

/* 单个链接卡片 - 现代科技感设计（缩小版） */
.link-list li {
    padding: 10px !important; /* 缩小间距 */
    box-sizing: border-box;
}

.link-in {
    padding: 16px 14px !important; /* 缩小内边距 */
    margin: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 12px !important; /* 稍微缩小圆角 */
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    min-height: 140px !important; /* 缩小最小高度 */
    position: relative !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
    cursor: pointer !important;
}

/* 卡片背景装饰 - 科技感渐变 */
.link-in::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--b2color, #0073aa) 0%, 
        rgba(0, 115, 170, 0.6) 50%, 
        var(--b2color, #0073aa) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.link-in:hover::before {
    opacity: 1;
}

/* 悬停效果 - 增强视觉反馈 */
.link-in:hover {
    box-shadow: 0 12px 32px rgba(0, 115, 170, 0.15), 
                0 4px 16px rgba(0, 115, 170, 0.1) !important;
    transform: translateY(-6px) scale(1.02) !important;
    border-color: rgba(0, 115, 170, 0.2) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%) !important;
}

/* 点击效果 */
.link-in:active {
    transform: translateY(-2px) scale(0.98) !important;
}

/* 图标样式优化 - 首页图标放大，分类页面保持较小尺寸 */
/* 首页网址导航模块 - 图标放大 */
.home_row.module-links .link-img {
    width: 68px !important; /* 首页图标放大 */
    height: 68px !important;
    min-width: 68px !important;
    min-height: 68px !important;
    border-radius: 14px !important;
    margin: 0 auto 18px auto !important; /* 增加与文字的间距 */
    margin-left: auto !important;
    margin-right: auto !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    display: block !important;
    text-align: center !important;
    position: relative !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

/* 分类页面和归档页面 - 保持较小尺寸 */
.tax-link_cat .link-img,
.links-home .link-img {
    width: 56px !important; /* 分类页面图标较小 */
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    border-radius: 12px !important;
    margin: 0 auto 16px auto !important; /* 增加与文字的间距 */
    margin-left: auto !important;
    margin-right: auto !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 10px !important; /* 缩小内边距 */
    box-sizing: border-box !important;
    display: block !important;
    text-align: center !important;
    position: relative !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

/* 图标悬停效果 */
.link-in:hover .link-img {
    transform: scale(1.1) rotate(2deg) !important;
    box-shadow: 0 8px 20px rgba(0, 115, 170, 0.2) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%) !important;
}

/* 链接信息区域 - 垂直布局 */
.link-info {
    width: 100% !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

/* 标题样式优化 - 缩小字体，增加与图标的间距 */
.link-top {
    width: 100% !important;
    margin-bottom: 8px !important; /* 缩小底部间距 */
    margin-top: 4px !important; /* 增加与图标的间距 */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.link-top h2 {
    font-size: 15px !important; /* 稍微缩小字体 */
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
    letter-spacing: -0.3px !important;
    transition: color 0.3s ease !important;
}

.link-in:hover h2 {
    color: var(--b2color, #0073aa) !important;
}


/* 描述文字优化 - 缩小字体，增加与标题的间距 */
.link-desc {
    font-size: 12px !important; /* 缩小字体 */
    color: #666 !important;
    line-height: 1.6 !important;
    margin: 6px 0 12px 0 !important; /* 缩小间距 */
    padding: 0 !important;
    height: auto !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
    text-align: center !important;
    opacity: 0.85 !important;
    transition: opacity 0.3s ease !important;
}

.link-in:hover .link-desc {
    opacity: 1 !important;
    color: #555 !important;
}

/* 底部信息区域 - 显示简介，隐藏站长和点赞 */
.home_row.module-links .link-footer {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important; /* 居中显示简介 */
    align-items: center !important;
    margin-top: auto !important;
    padding-top: 12px !important;
    border-top: 1px solid #f0f0f0 !important;
    font-size: 12px !important;
}

/* 当footer为空或隐藏时，不显示边框和间距 */
.home_row.module-links .link-footer:empty,
.home_row.module-links .link-footer[style*="display: none"] {
    display: none !important;
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* 隐藏原来的站长和点赞 */
.home_row.module-links .link-author,
.home_row.module-links .link-up {
    display: none !important;
}

/* 在分类页面（tax-link_cat）和链接归档页面隐藏点赞功能 */
.tax-link_cat .link-up,
.tax-link_cat .link-up button,
.tax-link_cat button.link-up,
.tax-link_cat .link-footer .link-up,
.links-home .link-up,
.links-home .link-up button,
.links-home button.link-up,
.links-home .link-footer .link-up {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

/* 强制隐藏工具类型标签（如果JavaScript还在运行） */
.home_row.module-links .link-tool-type,
.home_row.module-links .type-backend,
.home_row.module-links .type-tool,
.home_row.module-links .type-tutorial,
.home_row.module-links .type-frontend,
.home_row.module-links .type-ad {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
}

/* 简介样式 */
.home_row.module-links .link-summary {
    color: #999 !important;
    font-weight: normal !important;
    font-size: 12px !important;
    text-align: center !important;
    line-height: 1.5 !important;
    display: block !important;
    width: 100% !important;
}

/* 链接块覆盖层 */
.link-block {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1 !important;
}

/* 标题区域优化 */
.link-title {
    padding: 0 0 24px 0 !important;
    margin-bottom: 0 !important;
}

.link-title h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    padding-left: 12px !important;
}

.link-title h2::before {
    width: 4px !important;
    height: 20px !important;
    top: 4px !important;
}

/* ============================================
   分类页面（tax-link_cat）和归档页面（links-home）样式优化
   解决图标和文字挨太近的问题
   ============================================ */

/* 分类页面和归档页面的图标间距优化 */
.tax-link_cat .link-img,
.links-home .link-img,
.tax-link_cat .home_row.module-links .link-img,
.links-home .home_row.module-links .link-img {
    margin-bottom: 18px !important; /* 增加图标与文字的间距 */
    margin-top: 4px !important;
}

/* 分类页面和归档页面的卡片优化 */
.tax-link_cat .link-in,
.links-home .link-in,
.tax-link_cat .home_row.module-links .link-in,
.links-home .home_row.module-links .link-in {
    padding: 18px 16px !important; /* 稍微增加内边距，让内容更舒适 */
    min-height: 150px !important;
}

/* 分类页面和归档页面的标题间距 */
.tax-link_cat .link-top,
.links-home .link-top,
.tax-link_cat .home_row.module-links .link-top,
.links-home .home_row.module-links .link-top {
    margin-top: 6px !important; /* 增加标题与图标的间距 */
    margin-bottom: 10px !important;
}

/* 分类页面和归档页面的描述间距 */
.tax-link_cat .link-desc,
.links-home .link-desc,
.tax-link_cat .home_row.module-links .link-desc,
.links-home .home_row.module-links .link-desc {
    margin-top: 8px !important; /* 增加描述与标题的间距 */
    margin-bottom: 14px !important;
}

/* 响应式优化 - 保持现代设计风格 */
@media (max-width: 1200px) {
    .link-list li {
        width: 20% !important; /* 每行5个 */
    }
}

@media (max-width: 992px) {
    .link-list li {
        width: 25% !important; /* 每行4个 */
    }
    
    .link-in {
        padding: 16px 14px !important;
        min-height: 130px !important;
        border-radius: 12px !important;
    }
    
    /* 首页图标 */
    .home_row.module-links .link-img {
        width: 64px !important;
        height: 64px !important;
        min-width: 64px !important;
        min-height: 64px !important;
        margin: 0 auto 16px auto !important;
    }
    
    /* 分类页面图标 */
    .tax-link_cat .link-img,
    .links-home .link-img {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
        margin: 0 auto 14px auto !important;
    }
    
    .link-top h2 {
        font-size: 14px !important;
    }
}

@media (max-width: 768px) {
    .link-list li {
        width: 33.333% !important; /* 每行3个 */
    }
    
    .link-in {
        padding: 14px 12px !important;
        min-height: 120px !important;
        border-radius: 10px !important;
    }
    
    /* 首页图标 */
    .home_row.module-links .link-img {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
        margin: 0 auto 14px auto !important;
    }
    
    /* 分类页面图标 */
    .tax-link_cat .link-img,
    .links-home .link-img {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        margin: 0 auto 12px auto !important;
    }
    
    .link-top h2 {
        font-size: 13px !important;
    }
    
    .link-desc {
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .link-list li {
        width: 50% !important; /* 每行2个 */
    }
    
    .link-in {
        padding: 12px 10px !important;
        min-height: 110px !important;
        border-radius: 10px !important;
    }
    
    /* 首页图标 */
    .home_row.module-links .link-img {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
        margin: 0 auto 12px auto !important;
    }
    
    /* 分类页面图标 */
    .tax-link_cat .link-img,
    .links-home .link-img {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        margin: 0 auto 10px auto !important;
    }
    
    .link-top h2 {
        font-size: 12px !important;
    }
    
    .link-desc {
        font-size: 10px !important;
    }
}