/* App展示区域样式 */
.apps-section {
    padding: 40px 0;
    background: transparent;
    position: relative;
}

/* 移除背景相关样式 */
.hero-background {
    position: relative;
}

/* 调整容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 分类标题区域 */
.section-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
}

.section-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    background: white;
    border-radius: 100px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #007AFF;
    color: white;
}

.filter-btn:hover:not(.active) {
    background: #f5f7fa;
}

/* App卡片网格 */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.apps-grid.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

.apps-grid.fade-in {
    opacity: 1;
    transform: translateY(0);
    animation: slideUp 0.4s ease-out;
}

/* App卡片样式 */
.app-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.app-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 图标区域 */
.app-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.app-icon img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* 信息区域 */
.app-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-name {
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #86868b;
}

.app-bundle {
    font-size: 12px;
    color: #86868b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 操作按钮 */
.app-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.action-btn {
    font-size: 11px;
    padding: 6px 10px;
    border: 1px solid #e5e5ea;
    border-radius: 6px;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.action-btn:hover {
    background: #f5f5f7;
    border-color: #d1d1d6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 标签容器样式 */
.app-tags {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

/* 通用标签样式 */
.app-tag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

/* 区域标签样式 */
.app-tag.region {
    color: #007AFF;
    background: rgba(0, 122, 255, 0.08);
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.app-tag.region::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #007AFF;
    border-radius: 50%;
    opacity: 0.8;
}

/* 价格标签样式 */
.app-tag.free {
    color: #34c759;
    background: rgba(52, 199, 89, 0.08);
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.app-tag.free::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #34c759;
    border-radius: 50%;
    opacity: 0.8;
}

.app-tag.paid {
    color: #ff9500;
    background: rgba(255, 149, 0, 0.08);
    border: 1px solid rgba(255, 149, 0, 0.2);
}

.app-tag.paid::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ff9500;
    border-radius: 50%;
    opacity: 0.8;
}

/* 详细信息 */
.app-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.app-update {
    font-size: 13px;
    color: #86868b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.app-update i {
    font-size: 12px;
    color: #86868b;
    opacity: 0.8;
}

.app-size, .app-version {
    display: flex;
    align-items: center;
    gap: 4px;
}

.app-size i, .app-version i {
    font-size: 12px;
    color: #86868b;
}

/* 优化描述提示框样式 */
.description-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 15px);
    right: -10px;
    width: 320px;
    max-height: 200px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    text-align: left;
    overflow-y: auto;
    z-index: 100;
    animation: tooltipFadeIn 0.2s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.description-tooltip::before {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 添加无感提示样式 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.toast {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateX(100%);
    animation: toastSlideIn 0.3s ease forwards;
}

.toast.success {
    background: rgba(52, 199, 89, 0.9);
}

.toast i {
    font-size: 16px;
}

@keyframes toastSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* 加载更多按钮 */
.load-more {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    padding: 12px 24px;
    background: white;
    border: 1px solid #e5e5ea;
    border-radius: 100px;
    font-size: 14px;
    color: #007AFF;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn:hover:not(:disabled) {
    background: #f5f7fa;
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.load-more-btn i {
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .apps-section {
        padding: 30px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .apps-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 12px;
    }

    .description-tooltip {
        width: 250px;
        max-height: 150px;
        font-size: 12px;
    }

    .app-card {
        padding: 12px;
    }
    
    .app-icon {
        width: 48px;
        height: 48px;
    }
    
    .app-actions {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }

    .app-card {
        padding: 12px;
    }

    .app-icon {
        width: 70px;
        height: 70px;
    }

    .app-name {
        font-size: 14px;
    }

    .app-bundle {
        font-size: 12px;
    }

    .app-meta {
        font-size: 12px;
        gap: 12px;
    }

    .download-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .app-tag {
        font-size: 10px;
        padding: 2px 8px;
    }

    .app-tag.region::before {
        width: 4px;
        height: 4px;
    }

    .app-header {
        gap: 8px;
    }

    .app-title-area {
        gap: 2px;
    }

    .app-name {
        font-size: 14px;
    }

    .app-meta {
        gap: 8px;
        font-size: 11px;
    }

    .description-tooltip {
        width: 200px;
        right: -100px;
    }
    
    .description-tooltip::before {
        right: 104px;
    }

    .app-update {
        font-size: 12px;
    }

    .app-actions {
        flex-direction: row;
        justify-content: flex-start;
    }

    .action-btn {
        flex: 0 0 auto;
        padding: 5px 8px;
        font-size: 10px;
    }
}

/* 添加加载状态的骨架屏样式 */
.app-skeleton {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-icon {
    width: 90px;
    height: 90px;
    background: #f0f0f0;
    border-radius: 18px;
    flex-shrink: 0;
}

.skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-title {
    height: 24px;
    background: #f0f0f0;
    border-radius: 6px;
    width: 70%;
}

.skeleton-meta {
    height: 16px;
    background: #f0f0f0;
    border-radius: 4px;
    width: 40%;
}

.skeleton-tags {
    display: flex;
    gap: 8px;
}

.skeleton-tag {
    height: 20px;
    width: 60px;
    background: #f0f0f0;
    border-radius: 100px;
}

.skeleton-actions {
    height: 36px;
    background: #f0f0f0;
    border-radius: 8px;
    width: 120px;
    margin-top: auto;
}

@keyframes skeletonPulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 1;
    }
}

/* 添加淡入效果 */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 添加搜索结果动画 */
.apps-grid {
    transition: all 0.3s ease-out;
}

.apps-grid.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

.apps-grid.fade-in {
    opacity: 1;
    transform: translateY(0);
    animation: slideUp 0.4s ease-out;
}

/* 添加卡片动画 */
.app-card {
    animation: cardFadeIn 0.5s ease-out backwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 骨架屏动画优化 */
.app-skeleton {
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

@keyframes skeletonPulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 添加复制提示动画 */
.app-name:active,
.app-bundle:active,
.app-icon:active {
    transform: scale(0.98);
}

.toast.loading {
    background: rgba(0, 122, 255, 0.9);
}

.toast.loading i {
    margin-right: 8px;
}

/* 优化 toast 容器的层级 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;  
}

/* 价格标签样式 */
.price-badge {
    position: absolute;
    top: -19px;
    right: -20px;
    width: 80px;
    height: 80px;
    overflow: hidden;
    pointer-events: none;
    transform: rotate(45deg);
}

.price-tag {
    position: absolute;
    display: block;
    width: 100%;
    padding: 5px 0;
    background-color: #34C759;
    color: white;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    transform: translateY(20px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.price-tag.free {
    background-color: #34C759;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
}

.price-tag.paid {
    background-color: #FF9500;
    box-shadow: 0 2px 8px rgba(255, 149, 0, 0.3);
}

/* 友情链接区域样式 */
.links-section {
    padding: 20px 0;
}

.links-title {
    font-size: 18px;
    color: #1d1d1f;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.links-title i {
    color: #007AFF;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.link-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.link-item i {
    font-size: 12px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 6px;
}

.link-name {
    font-size: 14px;
    opacity: 1;
}

.link-item:hover {
    background: #f5f7fa;
    color: #007AFF;
    border-color: rgba(0, 122, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;  /* 在hover时显示指针 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .links-section {
        padding: 15px 0;
    }

    .links-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .link-item {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .links-grid {
        gap: 8px;
    }

    .link-item {
        padding: 5px 10px;
        font-size: 12px;
    }
} 