/* ================================
   软件下载列表页面样式
   ================================ */

/* ==========================================
   软件网格布局 - 一行3个
   ========================================== */
.software-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    justify-content: start;
    margin-bottom: 2rem;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .software-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机端：<768px */
@media (max-width: 767px) {
    .software-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   栏目筛选导航样式
   ========================================== */
.category-group {
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.sub-category {
    margin-bottom: 0.8rem;
}

.sub-category-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-primary);
    position: relative;
    overflow: hidden;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.sub-category-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(77, 125, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.sub-category-link:hover {
    background: var(--primary-alpha-10);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.sub-category-link:hover::before {
    left: 100%;
}

.sub-category-link.active {
    background: var(--primary-color);
    color: var(--text-inverse);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-primary);
    font-weight: 600;
}

.sub-category-link.active::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.grandson-categories {
    margin-top: 0.8rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(77, 125, 255, 0.2);
    position: relative;
}

.grandson-categories::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    opacity: 0.6;
}

.grandson-category-link {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
    position: relative;
    overflow: hidden;
}

.grandson-category-link:hover {
    background: rgba(77, 125, 255, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(77, 125, 255, 0.15);
}

.grandson-category-link.active {
    background: var(--primary-color);
    color: var(--text-inverse);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(77, 125, 255, 0.3);
    font-weight: 500;
}

.grandson-category-link.active::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* 孙孙栏目容器 */
.great-grandson-categories {
    display: none;
}

.great-grandson-categories.active {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    animation: fadeInDown 0.3s ease-out;
}

/* 孙孙栏目链接 - 纯文字样式 */
.great-grandson-category-link {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    padding: 0.3rem 0.6rem;
    margin-right: 0.8rem;
    border-radius: 4px;
    transition: all 0.25s ease;
    position: relative;
}

.great-grandson-category-link:hover {
    color: var(--primary-color);
    background: var(--bg-tertiary);
}

/* 孙孙栏目活动状态 - 蓝色高亮 */
.great-grandson-category-link.active {
    background: var(--primary-color);
    color: var(--text-inverse);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(77, 125, 255, 0.25);
}


@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   页面专用样式覆盖
   ========================================== */

/* 移除软件卡片操作区域的背景和边框 */
.software-actions {
    background: none !important;
    border-top: none !important;
}

/* 移除教程区域的边框 */
.tutorial-section {
    border-top: none !important;
}

/* 响应式设计 - iPad端 (768px-1023px) */
@media (max-width: 1023px) {
    .category-nav {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .category-header {
        margin-bottom: 1rem;
        padding-bottom: 0.8rem;
    }
    
    .category-header h3 {
        font-size: 1.1rem;
    }
    
    .sub-category-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .grandson-categories {
        margin-left: 0.5rem;
        padding-left: 0.8rem;
    }
    
    .grandson-category-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        width: calc(50% - 0.2rem);
        text-align: center;
    }
    
    .great-grandson-categories {
        padding: 0.5rem 0 0.5rem 0.8rem;
        margin-top: 0.6rem;
    }
    
    .great-grandson-category-link {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        margin-right: 0.6rem;
        margin-bottom: 0.3rem;
    }
}

/* 手机端 (<768px) */
@media (max-width: 767px) {
    .hero-content h1 {
        margin-top: 0;
    }
    
    .hero-section .breadcrumb {
        margin-bottom: 0.2rem !important;
    }
    
    .hero-content p,
    .search-content p {
        margin-bottom: 0.2rem !important;
    }
    
    .grandson-category-link {
        width: 100%;
        margin-right: 0;
    }
    
    .great-grandson-category-link {
        width: calc(100% - 0.6rem);
        margin-right: 0;
        text-align: left;
    }
    
    .tab-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        min-height: 44px;
        margin-right: 0.375rem;
        border-radius: 6px;
    }
    
    .tab-categories .grandson-category-link {
        width: 100%;
        margin-bottom: 0.5rem;
        border-radius: 6px;
    }
    
    .tabs-content {
        padding: 1rem;
    }
}

/* 手机端：<768px - 额外优化 */
@media (max-width: 767px) {
    .category-nav {
        padding: 0.8rem;
    }
    
    .sub-category-link {
        font-size: 0.85rem;
        padding: 0.45rem 0.9rem;
    }
    
    .grandson-category-link {
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
    }
}

/* 筛选组件样式 */
.filter-section {
    margin-bottom: 30px;
}

.filter-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.filter-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-label {
    min-width: 100px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.filter-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    background: #e9ecef;
    color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

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

.filter-btn.active:hover::before {
    left: 100%;
}

.filter-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
}

.clear-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.clear-btn:hover {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* 原有的页面样式继续保留在这里 */

/* 英雄区域内容左对齐 */
.hero-section .hero-content {
    text-align: left;
}

/* ==========================================
   面包屑导航样式 (适用于蓝色背景)
   ========================================== */
.hero-section .breadcrumb {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    margin-bottom: 1rem;
}

.hero-section .breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 2px 4px;
}

.hero-section .breadcrumb a:hover {
    color: white;
    font-weight: 600;
}

.hero-section .breadcrumb p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
} 

/* ==========================================
   选项卡样式
   ========================================== */

.tabs-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-item {
    flex-shrink: 0;
}

.tab-item:last-child .tab-button {
    margin-right: 0;
}

.tab-button {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-small);
    margin-right: 0.5rem;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    opacity: 0;
    border-radius: 7px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.tab-button:hover {
    color: var(--primary-color);
    background: var(--bg-tertiary);
    border-color: var(--primary-alpha-30);
    box-shadow: var(--shadow-hover);
}

.tab-button:hover::before {
    opacity: 0.05;
}

.tab-button.active {
    color: var(--text-inverse);
    background: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.tab-button.active::before {
    opacity: 1;
}

.tab-button:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-alpha-20), var(--shadow-medium);
    z-index: 1;
}

.tab-button:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}

.tabs-content {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: 1rem;
}

.tabs-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 20%, rgba(0, 0, 0, 0.1) 80%, transparent 100%);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 选项卡内的分类样式 */
.tab-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    border: none;
}

.tab-categories .grandson-category-link {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-primary);
    position: relative;
    overflow: hidden;
    margin: 0;
}

.tab-categories .grandson-category-link:hover {
    background: var(--primary-alpha-10);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(77, 125, 255, 0.2);
}

.tab-categories .grandson-category-link.active {
    background: var(--primary-color);
    color: var(--text-inverse);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(77, 125, 255, 0.4);
    font-weight: 600;
}

/* 空状态样式 */
.tab-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.tab-empty p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-tertiary);
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-inverse);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(77, 125, 255, 0.3);
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 125, 255, 0.4);
}

.view-all-btn::after {
    content: '→';
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.view-all-btn:hover::after {
    transform: translateX(3px);
}

/* 响应式设计 - iPad端 (768px-1023px) */
@media (max-width: 1023px) {
    .tabs-header {
        padding: 0;
    }
    
    .tabs-nav {
        min-height: 50px;
    }
    
    .tab-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        min-height: 50px;
    }
    
    .tabs-content {
        padding: 2rem 1rem 1.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        margin-top: 0.8rem;
    }
    
    .tab-categories {
        gap: 0.5rem;
    }
    
    .tab-categories .grandson-category-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        width: calc(50% - 0.25rem);
        justify-content: center;
        text-align: center;
    }
    
    .tab-empty {
        padding: 2rem 1rem;
    }
}



/* 手机端：<768px - 标签按钮额外优化 */
@media (max-width: 767px) {
    .tab-button {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
        min-height: 40px;
        margin-right: 0.25rem;
    }
}

/* 滚动条样式 */
.tabs-header::-webkit-scrollbar {
    height: 4px;
}

.tabs-header::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.tabs-header::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

.tabs-header::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
} 