/* 导航列表页面样式 */
:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --primary-rgb: 37, 99, 235;
    --background-color: #f8fafc;
    --card-background: rgba(255, 255, 255, 0.9);
    --border-color: rgba(255,255,255,0.2);
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 15px -3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --text-primary: var(--primary-color);
    --text-secondary: #64748b;
}

body {
    background: var(--background-color);
    background-image: 
        radial-gradient(at 40% 20%, rgba(37,99,235,0.1) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(96,165,250,0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(37,99,235,0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: #1e293b;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.advertisement-container {
    margin-bottom: 2rem;
}

.advertisement {
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    /* 移除固定高度，让它自适应内容 */
}

.advertisement:hover {
    transform: translateY(-5px);
}

.advertisement img {
    width: 100%;
    height: auto; /* PC端和移动端都使用自适应高度 */
    display: block;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 移动端广告样式调整 */
@media (max-width: 768px) {
    .advertisement {
        height: auto; /* 移动端自适应高度 */
        margin-bottom: 1.5rem;
    }
    
    .advertisement img {
        width: 100%;
        height: auto; /* 移动端自适应高度 */
        border-radius: 0.5rem;
    }
}

.website-card {
    background: var(--card-background);
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.website-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.website-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.website-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    background: white;
    padding: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.website-card:hover .website-logo {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.website-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.website-title a {
    color: inherit;
    text-decoration: none;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    background-size: 0 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
    padding-bottom: 2px;
}

.website-card:hover .website-title a {
    background-size: 100% 2px;
}

.website-brief {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.website-card:hover .website-brief {
    border-left-color: var(--primary-color);
    padding-left: 1.25rem;
}

.website-domain {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.website-domain a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.website-domain a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.website-domain i {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.website-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.website-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.website-stats i {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .website-card {
        margin-bottom: 1rem;
    }
    
    .website-stats {
        flex-wrap: wrap;
    }
}

/* 商品卡片样式 - 商城风格 */
.card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* 商品卡片样式 - 使用首页样式 */
.product-card {
    height: 440px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 商品图片容器 */
.product-image-container {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-image-placeholder {
    width: 100%;
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    position: relative;
}

.product-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-image-placeholder p {
    margin: 0;
    font-size: 0.9rem;
}

/* 商品标签/徽章 */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 2;
}

.product-badge.discount {
    background: #ff4757;
    font-weight: bold;
}

/* 商品悬停覆盖层 */
.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card:hover .product-overlay {
    transform: translateY(0);
}

.view-count {
    color: white;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* 品牌标签行中的查看数样式 */
.product-tags .view-count {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(107, 114, 128, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.product-tags .view-count i {
    font-size: 0.7rem;
    color: #9ca3af;
}

.product-rating {
    color: #ffd700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-rating span {
    color: white;
    margin-left: 0.25rem;
}

/* 商品信息区域 */
.product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: white;
}

/* 商品标签容器 */
.product-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    min-height: 24px; /* 确保有一致的高度 */
}

/* 商品标签样式 */
.product-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
}

/* 分类标签样式 */
.product-tag.category-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.product-tag.category-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.4);
}

/* 品牌标签样式 */
.product-tag.brand-tag {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    box-shadow: 0 2px 4px rgba(240, 147, 251, 0.3);
}

.product-tag.brand-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(240, 147, 251, 0.4);
}

/* 标签图标样式 */
.product-tag i {
    font-size: 0.65rem;
    opacity: 0.9;
}

.product-category {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制为两行 */
    -webkit-box-orient: vertical;
}

.product-title a {
    color: #333 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: var(--primary-color) !important;
}

/* 商品价格区域 */
.product-price {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff4757;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sale-price {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sale-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.sale-price:hover::before {
    left: 100%;
}

.sale-price:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.original-price {
    font-size: 0.9rem;
    color: #8b92a3;
    text-decoration: line-through;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    background: rgba(139, 146, 163, 0.1);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.original-price::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #8b92a3;
    transform: translateY(-50%);
    opacity: 0.6;
}

.original-price:hover {
    background: rgba(139, 146, 163, 0.2);
}

/* 免费价格样式 */
.sale-price.free-price {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: freePulse 2s infinite;
}

@keyframes freePulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
    }
}

/* 商品操作按钮 */
.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.product-btn {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-btn.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border: 2px solid transparent;
}

.product-btn.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.product-btn.btn-primary:hover::before {
    left: 100%;
}

.product-btn.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.product-btn.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 按钮图标动画 */
.product-btn i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.product-btn:hover i {
    transform: scale(1.1);
}

/* 自定义3列布局 */
.col-lg-4 {
    flex: 0 0 auto;
    width: 33.333333%;
}

/* 确保移动端2列布局 - 全局规则 */
@media (max-width: 767.98px) {
    .col-lg-4.col-md-6.col-6 {
        flex: 0 0 auto;
        width: 50% !important;
        max-width: 50% !important;
    }
}


/* 侧边栏卡片特殊样式 */
.col-lg-4 .card {
    height: auto;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 1rem 1.5rem;
}

.card-header h5 {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.list-group-item {
    border: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    background: transparent;
}

.list-group-item:last-child {
    margin-bottom: 0;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.list-group-item a {
    color: #2c3e50;
    transition: all 0.3s ease;
    text-decoration: none;
}

.list-group-item a:hover {
    color: var(--primary-color);
}

.list-group-item.fw-bold a {
    color: var(--primary-color);
}

.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
    background-color: var(--primary-color);
}

/* 随机推荐样式 */
.random-nav-link {
    color: #2c3e50;
    transition: all 0.3s ease;
    text-decoration: none;
}

.random-nav-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* 分页样式 */
.pagination {
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    color: #fff;
}

/* 面包屑导航样式 */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 1rem;
    }

    .list-group-item {
        padding: 0.8rem 1rem;
    }

    .card-title {
        font-size: 1rem;
    }

    /* 移动端商品卡片调整 */
    .product-card {
        height: 380px;
    }

    .product-image-container {
        height: 180px; /* 移动端减小图片高度 */
    }
    
    .product-image-placeholder {
        height: 180px; /* 移动端减小占位符高度 */
    }
    
    .product-image-placeholder i {
        font-size: 2rem !important;
    }

    .product-title {
        font-size: 0.9rem;
        margin-top: 0.5rem;
        margin-bottom: 0.2rem;
        height: 2.5rem; /* 移动端调整标题高度 */
    }

    .product-card .card-body {
        padding: 1rem;
    }

    .product-category {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }

    /* 移动端标签适配 */
    .product-tags {
        gap: 0.3rem;
        margin-bottom: 0.4rem;
    }

    .product-tag {
        padding: 0.2rem 0.5rem;
        font-size: 0.65rem;
    }

    .product-tag i {
        font-size: 0.6rem;
    }
    
    .product-price {
        font-size: 1rem; /* 移动端调整价格字体大小 */
    }
    
    .product-btn {
        padding: 0.5rem 0.8rem; /* 移动端调整按钮大小 */
        font-size: 0.8rem;
        border-radius: 20px;
    }

    .product-btn i {
        margin-right: 0.3rem;
        font-size: 0.75rem;
    }

    .product-overlay {
        padding: 1rem;
    }

    .view-btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.85rem;
    }

    .product-badge {
        top: 8px;
        right: 8px;
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }

    /* 移动端隐藏导航分类 */
    .nav-categories-card {
        display: none !important;
    }
}

/* 层次化下级分类样式 - 重要：高优先级覆盖Bootstrap */
.hierarchical-subcategories {
    padding: 0 !important;
}

/* 强制覆盖Bootstrap按钮样式 */
.hierarchical-subcategories .subcategory-item .btn.btn-outline-primary {
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
    color: inherit !important;
    text-decoration: none !important;
}

.hierarchical-subcategories .subcategory-item .btn.btn-outline-primary:hover {
    background-color: transparent !important;
    border-color: var(--primary-color) !important;
    text-decoration: none !important;
}

/* 重新设计 - 简洁美观的层次化分类样式 */
.hierarchical-subcategories {
    padding: 0 !important;
    background: transparent;
}

.hierarchical-subcategories .subcategory-item {
    margin-bottom: 0.3rem;
}

.hierarchical-subcategories .subcategory-item:last-child {
    margin-bottom: 0;
}

.hierarchical-subcategories .subcategory-item .btn {
    border: none !important;
    background: transparent !important;
    padding: 0.4rem 0.6rem !important;
    font-size: 0.85rem !important;
    text-align: left !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    color: #4a5568 !important;
}

.hierarchical-subcategories .subcategory-item .btn:hover {
    background: rgba(37, 99, 235, 0.08) !important;
    color: var(--primary-color) !important;
}

/* 主分类样式 - 简洁设计 */
.hierarchical-subcategories .subcategory-item .subcategory-parent {
    font-weight: 600 !important;
    color: var(--primary-color) !important;
    background: rgba(37, 99, 235, 0.06) !important;
}

.hierarchical-subcategories .subcategory-item .subcategory-parent:hover {
    background: rgba(37, 99, 235, 0.12) !important;
}

/* 子分类样式 - 简洁设计，右边对齐 */
.hierarchical-subcategories .subcategory-item .subcategory-child {
    font-weight: 500 !important;
    color: #6b7280 !important;
    margin-left: 0 !important;
    padding-left: 2.2rem !important;
    font-size: 0.8rem !important;
    position: relative;
}

.hierarchical-subcategories .subcategory-item .subcategory-child:hover {
    color: var(--primary-color) !important;
    background: rgba(37, 99, 235, 0.06) !important;
}

/* 子分类的左侧缩进指示器 */
.hierarchical-subcategories .subcategory-item .subcategory-child::before {
    content: '';
    position: absolute;
    left: 0.8rem;
    top: 50%;
    width: 0.6rem;
    height: 1px;
    background: #d1d5db;
    transform: translateY(-50%);
}

/* 主分类特殊样式 */
.hierarchical-subcategories .subcategory-item .subcategory-parent {
    position: relative;
    overflow: hidden;
}

.hierarchical-subcategories .subcategory-item .subcategory-parent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(96, 165, 250, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.hierarchical-subcategories .subcategory-item .subcategory-parent:hover::before {
    opacity: 1;
}

/* 旧的连接线样式已移除，使用新的缩进指示器 */

/* 分类名称样式 */
.hierarchical-subcategories .subcategory-name {
    flex: 1;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.hierarchical-subcategories .subcategory-item .subcategory-child .subcategory-name {
    font-size: 0.85rem;
}

/* 简化图标样式 */
.hierarchical-subcategories .subcategory-parent .subcategory-icon {
    color: var(--primary-color) !important;
    font-size: 0.75rem;
    margin-right: 0.5rem !important;
}

.hierarchical-subcategories .subcategory-child .subcategory-icon {
    color: #9ca3af !important;
    font-size: 0.65rem;
    margin-right: 0.5rem !important;
    position: absolute;
    left: 1.5rem;
}

/* 折叠功能样式 */
.hierarchical-subcategories .collapsible-parent {
    cursor: pointer !important;
    text-decoration: none !important;
}

.hierarchical-subcategories .collapsible-parent:hover {
    text-decoration: none !important;
}

/* 折叠图标动画 */
.hierarchical-subcategories .collapse-icon {
    transition: transform 0.2s ease !important;
}

.hierarchical-subcategories .collapsible-parent[aria-expanded="true"] .collapse-icon {
    transform: rotate(90deg) !important;
}

/* 子分类容器样式 */
.hierarchical-subcategories .subcategory-children {
    padding: 0.2rem 0 0 0;
}

.hierarchical-subcategories .subcategory-children .subcategory-item {
    margin-bottom: 0.2rem;
}

.hierarchical-subcategories .subcategory-children .subcategory-item:last-child {
    margin-bottom: 0;
}

/* 简化徽章样式 */
.hierarchical-subcategories .subcategory-badge {
    font-size: 0.7rem !important;
    padding: 0.15rem 0.4rem !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
    background: #e5e7eb !important;
    color: #6b7280 !important;
    border: none !important;
}

/* 移除复杂动画 - 保持简洁 */

/* 空状态样式美化 */
.hierarchical-subcategories + .text-center {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(248,250,252,0.8) 0%, rgba(241,245,249,0.8) 100%);
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.hierarchical-subcategories + .text-center i {
    color: rgba(37, 99, 235, 0.3);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hierarchical-subcategories .subcategory-item .btn {
        padding: 0.35rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    
    .hierarchical-subcategories .subcategory-item .subcategory-child {
        padding-left: 1.8rem !important;
        font-size: 0.75rem !important;
    }
    
    .hierarchical-subcategories .subcategory-child .subcategory-icon {
        left: 1.2rem !important;
        font-size: 0.6rem !important;
    }
    
    .hierarchical-subcategories .subcategory-item .subcategory-child::before {
        left: 0.6rem !important;
        width: 0.5rem !important;
    }
    
    .hierarchical-subcategories .subcategory-badge {
        font-size: 0.65rem !important;
        padding: 0.1rem 0.3rem !important;
    }
}

/* 排行榜徽章样式 */
.rank-badge {
    min-width: 24px;
}

/* 可折叠父级分类样式 */
.collapsible-parent {
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
}

/* 标签页面样式 */
.tag-badge {
    color: white;
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.tag-cloud-badge {
    color: white;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.nav-logo-small {
    width: 24px;
    height: 24px;
    object-fit: contain;
}