/* AI应用页面样式 */

/* 全局背景色设置 */
html, body {
    background-color: #f9f9f9;
}

/* 确保页面容器也有统一的背景色 */
.page-container {
    background-color: #f9f9f9;
}

/* 确保页面主体也有统一的背景色 */
.page-body {
    background-color: #f9f9f9;
}

/* 强制隐藏所有其他导航栏，只显示我们的AI应用导航栏 */
/* 使用最高优先级覆盖所有其他样式 */
html body .page-container .sidebar-menu:not(.ai-applications-sidebar),
html body .sidebar-menu:not(.ai-applications-sidebar),
body .sidebar-menu:not(.ai-applications-sidebar),
.page-container .sidebar-menu:not(.ai-applications-sidebar),
.sidebar-menu:not(.ai-applications-sidebar) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* 左侧导航栏样式 - 与原有导航栏保持一致 */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: #f9f9f9;
    z-index: 1000;
    overflow-y: auto;
}

/* 确保左侧导航栏底部也是统一背景色 */
.sidebar-menu::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background-color: #f9f9f9;
    z-index: -1;
}

.sidebar-menu-inner {
    padding: 0;
    min-height: 100vh; /* 确保内容区域覆盖整个视口高度 */
    background-color: #f9f9f9; /* 确保背景色一致 */
}

.logo-env {
    padding: 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.logo-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.logo-icon-small {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.logo-icon-small svg {
    width: 20px;
    height: 20px;
    color: white;
}

.mobile-menu-toggle {
    display: none;
}

/* 移动端Logo样式 */
@media (max-width: 768px) {
    .logo-env {
        padding: 15px;
    }
    
    .logo-container {
        gap: 10px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        border-radius: 6px;
    }
    
    .logo-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .logo-icon-small {
        width: 28px;
        height: 28px;
        border-radius: 5px;
    }
    
    .logo-icon-small svg {
        width: 16px;
        height: 16px;
    }
}

.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li {
    border-bottom: none;
}

.main-menu li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.main-menu li a:hover,
.main-menu li a.active {
    background: #f8f9fa;
    color: #667eea;
    border-left-color: #667eea;
}

.main-menu li a i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

.main-menu li a .title {
    font-weight: 500;
}

/* 确保使用正确的布局结构 */
.ai-applications-container {
    display: block;
    min-height: 100vh;
    background-color: #f9f9f9;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 主内容区域 */
.ai-applications-main {
    width: 100%;
    padding: 0;
    background-color: #f9f9f9;
    margin: 0;
    box-sizing: border-box;
    min-height: 100vh; /* 确保最小高度覆盖整个视口 */
}

/* Hero Section 在分类页面的特殊样式 */
.category-search-section {
    background: transparent;
    margin: 0;
    padding: 0;
}

.category-search-section .hero-section {
    background: linear-gradient(180deg, #F8FAFF 0%, #f9f9f9 100%);
    padding: 40px 0 60px;
    margin: 0;
}

.category-search-section .hero-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 应用列表区域 */
.applications-section {
    padding: 40px;
    background-color: #f9f9f9;
    width: 100%;
    box-sizing: border-box;
    min-height: calc(100vh - 200px); /* 确保最小高度覆盖剩余空间 */
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.section-title i {
    color: #667eea;
    font-size: 32px;
}

.view-all-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.section-description {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* 应用网格 */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.app-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.app-card:hover::before {
    transform: scaleX(1);
}

.app-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.app-icon i {
    font-size: 28px;
    color: white;
}

.app-info {
    margin-bottom: 20px;
}

.app-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.app-description {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.app-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6c757d;
}

.stat-item i {
    font-size: 14px;
    color: #667eea;
}

.stat-item span {
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .applications-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .sidebar-menu {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar-menu.show {
        transform: translateX(0);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .ai-applications-main {
        margin-left: 0;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .applications-section {
        padding: 20px;
    }
    
    .section-title-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}



@media (max-width: 480px) {
    .section-title {
        font-size: 22px;
    }
    
    .section-title i {
        font-size: 26px;
    }
    
    .app-card {
        padding: 20px;
    }
    
    .app-icon {
        width: 50px;
        height: 50px;
    }
    
    .app-icon i {
        font-size: 24px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-card {
    animation: fadeInUp 0.6s ease forwards;
}

.app-card:nth-child(1) { animation-delay: 0.1s; }
.app-card:nth-child(2) { animation-delay: 0.2s; }
.app-card:nth-child(3) { animation-delay: 0.3s; }
.app-card:nth-child(4) { animation-delay: 0.4s; }
.app-card:nth-child(5) { animation-delay: 0.5s; }
.app-card:nth-child(6) { animation-delay: 0.6s; }
.app-card:nth-child(7) { animation-delay: 0.7s; }
.app-card:nth-child(8) { animation-delay: 0.8s; }
.app-card:nth-child(9) { animation-delay: 0.9s; }
.app-card:nth-child(10) { animation-delay: 1.0s; }
.app-card:nth-child(11) { animation-delay: 1.1s; }
.app-card:nth-child(12) { animation-delay: 1.2s; }
.app-card:nth-child(13) { animation-delay: 1.3s; }
.app-card:nth-child(14) { animation-delay: 1.4s; }
.app-card:nth-child(15) { animation-delay: 1.5s; }
.app-card:nth-child(16) { animation-delay: 1.6s; }
.app-card:nth-child(17) { animation-delay: 1.7s; }
.app-card:nth-child(18) { animation-delay: 1.8s; }
.app-card:nth-child(19) { animation-delay: 1.9s; }
.app-card:nth-child(20) { animation-delay: 2.0s; }

/* 返回导航样式 */
.back-navigation {
    text-align: center;
    padding: 40px 20px;
}

.back-navigation .btn {
    display: inline-block;
    margin: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.back-navigation .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.back-navigation .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.back-navigation .btn-secondary {
    background: #6c757d;
    color: white;
}

.back-navigation .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* 暂无数据提示样式 */
.no-data-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 20px;
}

.no-data-message i {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 20px;
    display: block;
}

.no-data-message h3 {
    font-size: 24px;
    font-weight: 600;
    color: #495057;
    margin: 0 0 15px 0;
}

.no-data-message p {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

/* 页面加载动画 */
.page-loaded .ai-applications-container {
    animation: fadeIn 0.8s ease;
}

/* 确保页面底部也是统一背景色 */
.ai-applications-container::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background-color: #f9f9f9;
    z-index: -1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 滚动到顶部按钮样式 */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.scroll-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
} 