* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f8f8f8;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 68px;
    min-height: 100vh;
}

/* 容器 - PC端居中显示 */
.container {
    max-width: 550px;
    margin: 0 auto;
    background: #fff;
    min-height: calc(100vh - 48px);
}

/* 顶部导航栏 */
.header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5757 100%);
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 750px;
    width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo {
    display: flex;
    align-items: center;
}


.logo-text {
    color: white;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 轮播图区域 */
.banner {
    background: transparent;
    position: relative;
    padding: 16px 20px 0 20px;
}

.banner-content {
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-height: 150px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.banner-content:active {
    cursor: grabbing;
}

.banner-content img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
    cursor: pointer;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: #ff6b6b;
    width: 8px;
    border-radius: 50%;
}

/* 公告栏 */
.notice {
    background: #fff5f5;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ff6b6b;
    margin: 12px 16px 0 16px;
    border-radius: 8px;
}

.notice-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #ff6b6b;
}

.notice-text {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ff8585;
    font-weight: 400;
    text-align: center;
}

/* 标签页导航 */
.tabs {
    display: flex;
    padding: 16px;
    gap: 10px;
    background: transparent;
    justify-content: center;
    align-items: center;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-weight: 500;
    min-width: 90px;
    text-align: center;
}

.tab-btn.active {
    background: linear-gradient(90deg, #ff6b6b 0%, #ff5757 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.tab-btn:hover:not(.active) {
    background: #e8e8e8;
}

/* 主内容区域 */
.main-content {
    padding: 16px;
    background: white;
}

/* 应用网格 */
.app-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px 16px;
    margin-bottom: 24px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.app-item:hover {
    transform: translateY(-5px);
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 占位符图标 */
.app-icon.placeholder {
    background: #e8e8e8;
    position: relative;
}

.placeholder-icon {
    width: 32px;
    height: 32px;
    background: #d0d0d0;
    border-radius: 8px;
}

.app-name {
    font-size: 12px;
    color: #333;
    text-align: center;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
}

/* 横幅广告 */
.banner-ad {
    width: 100%;
    margin: 20px 0 0 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.banner-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.banner-ad img {
    width: 100%;
    height: auto;
    display: block;
}

/* 推荐区域 */
.recommend-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 8px solid #f8f8f8;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
}

.heart-icon {
    font-size: 18px;
}

.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommend-item {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.recommend-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.recommend-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: block;
    flex-shrink: 0;
    object-fit: cover;
}

.recommend-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.recommend-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.recommend-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.rating {
    color: #ffc107;
    font-size: 12px;
}

.download {
    color: #999;
    font-size: 11px;
}

.recommend-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Telegram联系方式 */
.contact-section {
    margin-top: 20px;
    padding-top: 0;
}

.contact-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    padding-left: 4px;
}

.title-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.contact-item {
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e8e8e8;
}

.contact-item:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background: #fafafa;
}

.contact-icon-img {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}

.contact-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.3;
}

/* 响应式设计 */

/* PC端 (>1200px) */
@media (min-width: 1201px) {
    .app-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px 16px;
    }
    
    .app-icon {
        width: 64px;
        height: 64px;
    }
    
    .banner {
        padding: 16px 20px 0 20px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .recommend-section,
    .contact-section {
        padding: 0 20px;
    }
}

/* 平板端 (768px - 1200px) */
@media (min-width: 769px) and (max-width: 1200px) {
    .container {
        max-width: 100%;
    }
    
    .app-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 18px 14px;
    }
    
    .banner {
        padding: 14px 18px 0 18px;
    }
}

/* 移动端 (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .app-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .banner {
        padding: 12px 16px 0 16px;
    }
}

/* 小屏移动端 (<=480px) */
@media (max-width: 480px) {
    body {
        padding-top: 48px;
    }

    .header {
        padding: 8px 0;
    }
    
    .header-inner {
        padding: 0 12px;
    }

    .banner {
        padding: 8px 12px 0 12px;
    }

    .tabs {
        padding: 10px 12px;
        gap: 6px;
    }
    
    .tab-btn {
        padding: 6px 16px;
        font-size: 13px;
        min-width: 70px;
    }

    .main-content {
        padding: 12px;
    }

    .app-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px 8px;
    }

    .app-icon {
        width: 65px;
        height: 65px;
    }

    .app-name {
        font-size: 13px;
    }

    .recommend-icon {
        width: 65px;
        height: 65px;
    }

    .recommend-item {
        padding: 10px;
    }

    .recommend-name {
        font-size: 16px;
    }
    
    .notice {
        margin: 8px 12px 0 12px;
        padding: 8px 12px;
    }
    
    .contact-section {
        padding: 0 12px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-item,
.recommend-item {
    animation: fadeIn 0.5s ease-out;
}

.app-item:nth-child(1) { animation-delay: 0.05s; }
.app-item:nth-child(2) { animation-delay: 0.1s; }
.app-item:nth-child(3) { animation-delay: 0.15s; }
.app-item:nth-child(4) { animation-delay: 0.2s; }
.app-item:nth-child(5) { animation-delay: 0.25s; }
.app-item:nth-child(6) { animation-delay: 0.3s; }
.app-item:nth-child(7) { animation-delay: 0.35s; }
.app-item:nth-child(8) { animation-delay: 0.4s; }
.app-item:nth-child(9) { animation-delay: 0.45s; }
.app-item:nth-child(10) { animation-delay: 0.5s; }
.app-item:nth-child(11) { animation-delay: 0.55s; }
