/* 主容器 */
.main-container {
    display: flex;
    max-width: 1000px;
    margin: 20px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 左侧侧边栏 */
.sidebar {
    width: 80px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sidebar-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: white;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 右侧内容区域 */
.content-area {
    flex: 1;
    padding: 20px;
    background: white;
    overflow: hidden;
}

/* 滚动容器 */
.scrolling-container {
    overflow: hidden;
    width: 100%;
}

/* 应用网格布局 */
.apps-grid {
    display: flex;
    gap: 20px;
    animation: scrollHorizontal 20s linear infinite;
    width: max-content;
}

/* 水平滚动动画 */
@keyframes scrollHorizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 应用项目 */
.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    width: 100px;
}

.app-item:hover {
    transform: translateY(-2px);
}

/* 悬停暂停滚动 */
.scrolling-container:hover .apps-grid {
    animation-play-state: paused;
}

/* 应用图标 */
.app-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 8px;
    background: transparent;
    overflow: hidden;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.app-icon a {
    display: block;
    width: 100%;
    height: 100%;
}

/* 图标悬停效果 */
.app-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.icon-content {
    text-align: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 应用标签 */
.app-label {
    font-size: 12px;
    color: #333;
    font-weight: 500;
    text-align: center;
    margin-top: 4px;
}

/* 各个应用图标的样式 */


.banner.top-left {
    top: 4px;
    left: 4px;
}

.banner.bottom-right {
    bottom: 4px;
    right: 4px;
}

.kaiyuan {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.ky-logo {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #3498db;
}

.ds-gaming {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}

.crown {
    font-size: 20px;
    margin-bottom: 4px;
}

.ds-text {
    font-size: 14px;
    font-weight: bold;
}

.advertisement {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

.ad-text {
    font-size: 12px;
    font-weight: bold;
}

.star {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
}

.star-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        margin: 10px;
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: 60px;
    }
    
    .sidebar-text {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    .content-area {
        padding: 15px;
    }
    
    .apps-grid {
        gap: 15px;
    }
    
    .app-item {
        width: 80px;
    }
    
    .app-icon {
        width: 70px;
        height: 70px;
    }
    
    .app-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .apps-grid {
        gap: 12px;
    }
    
    .app-item {
        width: 70px;
    }
    
    .app-icon {
        width: 60px;
        height: 60px;
    }
    
    .icon-content {
        font-size: 10px;
    }
}