/* 基础样式 */
.page-container {
    background: var(--background-color);
    width: 100%;
    padding: 15px;
}

.content-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* 信息卡片样式 */
.info {
    background-color: var(--item_bg_color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 统计卡片样式 */
.content {
    background-color: var(--item_bg_color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* 应用列表样式 */
.index-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.box {
    flex: 0 0 calc(33.333% - 20px);
    background-color: var(--item_bg_color);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    isolation: isolate;
}

.box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.platform {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.platform-a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.platform-icon img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
}

.platform-title {
    flex: 1;
    min-width: 0;
}

.platform-title-text {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.platform-title-intro2 {
    font-size: 12px;
    color: var(--item_left_title_color);
    margin-bottom: 2px;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .index-list {
        gap: 15px;
    }
    
    .box {
        flex: 0 0 calc(50% - 8px); /* 平板显示2列 */
    }
    
}

@media screen and (max-width: 768px) {
			.index-list {
				display: flex;
				flex-direction: column;
				gap: 15px;
			}
			.box {
				width: 100% !important;
				margin: 0 !important;
			}
			.platform {
				width: 100% !important;
			}
			.platform-a {
				display: flex;
				align-items: center;
				width: 100%;
			}
			.platform-icon {
				width: 60px;
				height: 60px;
				min-width: 60px;
				margin-right: 15px;
			}
			.platform-title {
				flex: 1;
			}
		}
		

@media (max-width: 768px) {
    .page-container {
        padding: 10px;
    }
    
    .index-list {
        gap: 12px;
        display: flex;
        flex-direction: column;
    }
    
    .box {
        width: 100%;
        margin: 0;
        padding: 12px;
        isolation: isolate;
    }

    /* 简化内部结构样式 */
    .platform {
        display: flex;
        flex-direction: column;
    }

    .platform-a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 20px 0px
    }

    .platform-icon img {
        width: 60px;
        height: 60px;
    }

    .platform-title-text {
        font-size: 15px;
    }

    .platform-title-intro2 {
        font-size: 12px;
        margin-bottom: 1px;
    }

    /* 展开内容样式 */
    .app-keywords {
        display: none;
        padding: 12px 0 0;
        font-size: 13px;
        line-height: 1.5;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background-color: transparent;
    }

    /* 展开按钮样式 */
    .expand-button {
        width: 100%;
        padding: 8px 0;
        margin-top: 8px;
        font-size: 13px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: transparent;
    }

    /* 展开状态样式 */
    .box.expanded {
        background-color: var(--item_bg_color);
    }

    .box.expanded .platform-a {
        display: none;
    }

    .box.expanded .app-keywords {
        display: block;
    }
}

/* 添加加载更多按钮样式 */
.load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.load-more-button {
    background-color: var(--item_bg_color);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14px;
    color: var(--item_left_title_color);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.load-more-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.load-more-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 初始加载的内容动画 */
.box.initial {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.5s forwards;
}

/* 点击加载更多后新加载的内容动画 */
.box.new-loaded {
    opacity: 0;
    transform: translateX(100%);
    animation: slideInFromRight 0.5s ease forwards;
}

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

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 添加左右翻页按钮样式 */
.page-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 0 20px;
}

.page-button {
    background-color: var(--item_bg_color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    will-change: transform;
}

.page-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.page-button svg {
    width: 20px;
    height: 20px;
    fill: var(--fill);
}

/* 添加左右滑动动画 */
.box.new-loaded {
    opacity: 0;
    transform: translateX(100%);
    animation: slideInFromRight 0.5s ease forwards;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 优化滑动动画 */
@keyframes slideInRight {
    from {
        transform: translate3d(100%, 0, 0);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInLeft {
    from {
        transform: translate3d(-100%, 0, 0);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

.slide-right {
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-left {
    animation: slideInLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 添加 app-keywords 相关样式 */
.app-keywords {
    display: none;
    padding: 10px;
    background-color: var(--item_bg_color);
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 8px;
}

/* 展开状态的样式 */
.box.expanded {
    background-color: var(--item_bg_color);
}

.box.expanded .platform-a {
    display: none;
}

.box.expanded .app-keywords {
    display: block;
}

/* 添加展开按钮样式 */
.expand-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 5px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 12px;
    opacity: 0.7;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.expand-button:hover {
    opacity: 1;
}

.expand-button svg {
    width: 16px;
    height: 16px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.box.expanded .expand-button svg {
    transform: rotate(180deg);
}

/* 添加滑动相关样式 */
.content-wrap {
    position: relative;
    overflow: hidden;
}

.index-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 滑动动画类 */
.slide-left {
    animation: slideLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-right {
    animation: slideRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideLeft {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes slideRight {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}
