/*!
 * leo_wzdh nav.css
 * 网址导航插件样式
 */

/* ==================== 容器 ==================== */
.leo-wzdh-container { padding-bottom: 3rem; }

/* ==================== Hero 搜索区 ==================== */
.leo-wzdh-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 0 2rem;
    color: #fff;
    text-align: center;
}
.leo-wzdh-hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}
.leo-wzdh-hero-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* 搜索引擎切换 */
.leo-wzdh-search-engines {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}
.leo-wzdh-engine-tab {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    user-select: none;
}
.leo-wzdh-engine-tab:hover { background: rgba(255, 255, 255, 0.25); }
.leo-wzdh-engine-tab.active {
    background: #fff;
    color: #667eea;
    font-weight: 600;
}

/* 搜索框 */
.leo-wzdh-search-form { max-width: 600px; margin: 0 auto; }
.leo-wzdh-search-types {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}
.leo-wzdh-search-types label {
    font-size: 0.85rem;
    opacity: 0.9;
    cursor: pointer;
}
.leo-wzdh-search-types input { margin-right: 0.25rem; }
.leo-wzdh-search-input-wrap {
    display: flex;
    gap: 0.5rem;
}
.leo-wzdh-search-input {
    flex: 1;
    border-radius: 8px;
    border: none;
    padding: 0.75rem 1rem;
}
.leo-wzdh-search-btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

/* 热门搜索 */
.leo-wzdh-hot-search {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.85;
}
.leo-wzdh-hot-search a {
    color: #fff;
    margin: 0 0.3rem;
    text-decoration: none;
}
.leo-wzdh-hot-search a:hover { text-decoration: underline; }

/* ==================== 分类导航 ==================== */
.leo-wzdh-cate-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
}
.leo-wzdh-cate-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.leo-wzdh-cate-nav-item:hover, .leo-wzdh-cate-nav-item.active {
    background: #667eea;
    color: #fff;
}
.leo-wzdh-cate-count {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* 下拉菜单 */
.leo-wzdh-cate-nav-dropdown { position: relative; }
.leo-wzdh-cate-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 1000;
    flex-direction: column;
}
.leo-wzdh-cate-nav-dropdown:hover .leo-wzdh-cate-nav-menu { display: flex; }
.leo-wzdh-cate-nav-menu a {
    display: block;
    padding: 0.4rem 1rem;
    color: #495057;
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
}
.leo-wzdh-cate-nav-menu a:hover { background: #f8f9fa; }
.leo-wzdh-cate-sub-count { font-size: 0.7rem; color: #adb5bd; }

/* ==================== 区块 ==================== */
.leo-wzdh-section { margin-bottom: 2.5rem; }
.leo-wzdh-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}
.leo-wzdh-section-count {
    font-size: 0.85rem;
    color: #adb5bd;
    font-weight: normal;
}
.leo-wzdh-view-more {
    margin-left: auto;
    font-size: 0.85rem;
    color: #667eea;
    text-decoration: none;
    font-weight: normal;
}
.leo-wzdh-view-more:hover { color: #764ba2; }

/* ==================== 网站卡片 ==================== */
.leo-wzdh-site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}
.leo-wzdh-site-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.leo-wzdh-site-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.leo-wzdh-site-card-body {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
}
.leo-wzdh-site-logo-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.leo-wzdh-site-logo { width: 32px; height: 32px; object-fit: contain; }
.leo-wzdh-site-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}
.leo-wzdh-site-info { flex: 1; min-width: 0; }
.leo-wzdh-site-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
.leo-wzdh-site-name a {
    color: #212529;
    text-decoration: none;
}
.leo-wzdh-site-name a:hover { color: #667eea; }
.leo-wzdh-site-badges { margin-bottom: 0.25rem; }
.leo-wzdh-site-badges .badge { font-size: 0.7rem; margin-right: 0.25rem; }
.leo-wzdh-site-url {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.leo-wzdh-site-desc {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.leo-wzdh-site-tags { margin-bottom: 0.5rem; }
.leo-wzdh-site-tags .leo-wzdh-tag { margin-right: 0.25rem; margin-bottom: 0.25rem; }
.leo-wzdh-site-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #adb5bd;
}
.leo-wzdh-site-stats .leo-wzdh-go-btn {
    margin-left: auto;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: #667eea;
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    transition: background 0.2s;
}
.leo-wzdh-site-stats .leo-wzdh-go-btn:hover { background: #764ba2; }

/* ==================== 标签 ==================== */
.leo-wzdh-tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: #e9ecef;
    color: #495057;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s;
}
.leo-wzdh-tag:hover { background: #667eea; color: #fff; }
.leo-wzdh-tag-count { font-size: 0.7rem; color: #adb5bd; margin-left: 0.15rem; }
.leo-wzdh-tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.leo-wzdh-tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ==================== 提交区 ==================== */
.leo-wzdh-submit-section { margin-top: 3rem; }
.leo-wzdh-submit-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: #fff;
}
.leo-wzdh-submit-box h3 { color: #fff; margin-bottom: 0.5rem; }
.leo-wzdh-submit-box p { opacity: 0.9; margin-bottom: 1rem; }

/* ==================== 提交表单 ==================== */
.leo-wzdh-submit-form-wrap { max-width: 700px; margin: 0 auto; }
.leo-wzdh-submit-card { padding: 2rem; }
.leo-wzdh-form-title { margin-bottom: 1.5rem; }
.leo-wzdh-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

/* ==================== 面包屑 ==================== */
.leo-wzdh-breadcrumb { margin: 1rem 0; }

/* ==================== 页面标题 ==================== */
.leo-wzdh-page-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.leo-wzdh-cate-count-badge {
    font-size: 0.85rem;
    color: #adb5bd;
    font-weight: normal;
}

/* ==================== 子分类筛选 ==================== */
.leo-wzdh-sub-cates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}
.leo-wzdh-sub-cate-item {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.leo-wzdh-sub-cate-item:hover { background: #e9ecef; }
.leo-wzdh-sub-cate-item.active {
    background: #667eea;
    color: #fff;
}
.leo-wzdh-sub-cate-item span { font-size: 0.7rem; opacity: 0.7; margin-left: 0.2rem; }

/* ==================== 网站详情 ==================== */
.leo-wzdh-site-detail { padding: 2rem; margin-bottom: 2rem; }
.leo-wzdh-site-detail-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}
.leo-wzdh-site-detail-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.leo-wzdh-site-detail-logo img { width: 56px; height: 56px; object-fit: contain; }
.leo-wzdh-site-logo-text-lg { font-size: 2.5rem; font-weight: 700; color: #667eea; }
.leo-wzdh-site-detail-info { flex: 1; }
.leo-wzdh-site-detail-info h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.leo-wzdh-site-detail-badges { margin-bottom: 0.5rem; }
.leo-wzdh-site-detail-badges .badge { margin-right: 0.25rem; }
.leo-wzdh-site-detail-url {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}
.leo-wzdh-site-detail-url a { color: #667eea; }
.leo-wzdh-site-detail-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}
.leo-wzdh-site-detail-action { flex-shrink: 0; }
.leo-wzdh-site-detail-desc { margin-bottom: 1.5rem; }
.leo-wzdh-site-detail-desc h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.leo-wzdh-site-detail-desc p { color: #495057; line-height: 1.6; }
.leo-wzdh-site-detail-tags h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

/* ==================== 搜索结果 ==================== */
.leo-wzdh-search-result-header { margin: 1rem 0 2rem; }
.leo-wzdh-search-result-form { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.leo-wzdh-search-result-info { color: #6c757d; font-size: 0.9rem; }

/* ==================== 分页 ==================== */
.leo-wzdh-pagination { margin-top: 2rem; text-align: center; }

/* ==================== 空状态 ==================== */
.leo-wzdh-empty {
    text-align: center;
    padding: 3rem 0;
    color: #adb5bd;
}
.leo-wzdh-empty i { font-size: 3rem; margin-bottom: 1rem; display: block; }

/* ==================== 后台 ==================== */
.leo-wzdh-admin-actions { display: flex; justify-content: space-between; gap: 0.5rem; }

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .leo-wzdh-hero { padding: 2rem 0 1.5rem; }
    .leo-wzdh-hero-title { font-size: 1.5rem; }
    .leo-wzdh-search-types { gap: 0.75rem; }
    .leo-wzdh-site-grid { grid-template-columns: 1fr; }
    .leo-wzdh-site-detail-header { flex-direction: column; align-items: flex-start; }
    .leo-wzdh-site-detail-action { width: 100%; }
    .leo-wzdh-site-detail-action .btn { width: 100%; }
    .leo-wzdh-cate-nav-menu { position: static; box-shadow: none; border: none; }
}

/* 暗色模式 */
[data-bs-theme="dark"] .leo-wzdh-hero { background: linear-gradient(135deg, #2d3548 0%, #3a2d4e 100%); }
[data-bs-theme="dark"] .leo-wzdh-site-logo-wrap { background: #343a40; }
[data-bs-theme="dark"] .leo-wzdh-site-detail-logo { background: #343a40; }
[data-bs-theme="dark"] .leo-wzdh-sub-cate-item { background: #343a40; color: #dee2e6; }
[data-bs-theme="dark"] .leo-wzdh-sub-cate-item:hover { background: #495057; }
[data-bs-theme="dark"] .leo-wzdh-cate-nav-item { color: #dee2e6; }
[data-bs-theme="dark"] .leo-wzdh-cate-nav-item:hover, [data-bs-theme="dark"] .leo-wzdh-cate-nav-item.active { background: #667eea; color: #fff; }
[data-bs-theme="dark"] .leo-wzdh-cate-nav-menu { background: #343a40; border-color: #495057; }
[data-bs-theme="dark"] .leo-wzdh-cate-nav-menu a { color: #dee2e6; }
[data-bs-theme="dark"] .leo-wzdh-tag { background: #343a40; color: #dee2e6; }
