/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #fff;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: #333;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    padding: 0 16px;
    margin: 0 auto;
}

/* 按钮样式 */
.btn {
    flex: 0 0 auto;
    background: #ffe038;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f0f0f;
    cursor: pointer;
    position: relative;
    border: none;
    height: 50px;
    border-radius: 50px;
    font-size: 20px;
    /*line-height: 6.66667vw;*/
    width: 100%;
}


/* 顶部导航栏 */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
}

.top-header {
    background-color: #fff;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 30px;
}

/* PC端导航 */
.nav-desktop ul {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-desktop li {
    margin: 0;
    padding: 0;
}

.nav-desktop a {
    color: #333;
    font-size: 14px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
    border-bottom: 2px solid transparent;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    background-color: transparent;
    border-bottom-color: #FFE035;
}

/* 移动端横向滑动导航 */
.nav-mobile {
    display: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-box input {
    width: 200px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.search-box input:focus {
    border-color: #FFE035;
}

/* 移除PC端搜索按钮 */
.search-box button {
    display: none;
}

/* 内容布局 */
.content-wrapper {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

.left-content {
    flex: 1;
    max-width: 850px;
}

.right-content {
    width: 344px;
    flex-shrink: 0;
}

/* 侧边栏样式 */
.sidebar-box {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #333;
}

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

.sidebar-list li {
    margin-bottom: 8px;
}

.sidebar-list a {
    color: #666;
    text-decoration: none;
    display: block;
    padding: 4px 0;
}

.sidebar-list a:hover {
    color: #4E71FE;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f0f0f0;
    border-radius: 16px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
}

.tag:hover {
    background-color: #e8ebff;
    color: #4E71FE;
}

/* 文章详情页样式 */
.article-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.article-icon img {
    width: 80px;
    height: 80px;
    border-radius: 24%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.article-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
    align-items: center;
}

.downloads {
    font-size: 12px;
    color: #666;
    background-color: #f5f5f5;
    padding: 4px 10px;
    border-radius: 12px;
}

.intro-section {
    margin-bottom: 30px;
}

.intro-section h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #333;
}

.intro-content {
    line-height: 1.8;
    color: #666;
}



.download-section {
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

/* 相关推荐 */


.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.related-header h3 {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.more-link {
    color: #4E71FE;
    font-size: 12px;
    text-decoration: none;
}

.more-link:hover {
    text-decoration: none;
    color: #3B5AE8;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 5px 0;
}

.related-icon {
    flex-shrink: 0;
}

.related-icon img {
    width: 56px;
    height: 56px;
    border-radius: 24%;
    object-fit: cover;
}

.related-info {
    flex: 1;
    min-width: 0;
}

.related-icon-link {
    display: block;
    text-decoration: none;
}

.related-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-name a {
    color: #333;
    text-decoration: none;
}

.related-name a:hover {
    color: #4E71FE;
}

.related-desc {
    font-size: 12px;
    color: #999;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-rating {
    font-size: 12px;
    color: #FFB800;
    font-weight: 500;
}

.related-rating::before {
    content: '★';
    margin-right: 2px;
    color: #FFB800;
}



/* 列表页样式 */
.list-title {
    display: flex;
    align-items: center;
    font-size: 12px;
    line-height: 16px;

}

.app-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}



.app-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

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

.app-details {
    flex: 1;
    min-width: 0;
}

.app-icon-link {
    display: block;
    text-decoration: none;
}

.app-name {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-name a {
    color: #333;
    text-decoration: none;
}

.app-name a:hover {
    color: #FFE035;
}

.app-category {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.category-tag {
    font-size: 12px;
    color: #666;
    background-color: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
}

/* 分页 */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}

.pagination a:hover, 
.pagination a.active {
    color: #222222;
    background-color: #FFE035;
    border-color: #FFE035;
}

/* 无数据提示 */
.no-data {
    text-align: center;
    padding: 40px 0;
    color: #666;
    font-size: 16px;
    margin-top: 20px;
}

/* 底部 */
.footer {
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 20px 0;
    margin-top: 20px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    color: #999;
}

.footer-content a {
    color: #999;
}

.footer-content a:hover {
    color: #FFE035;
}

/* 移动端操作按钮 */
.mobile-actions {
    display: none;
}

/* 响应式设计 */
@media (max-width: 850px) {
    .app-item {
    margin-bottom: 4.44444vw;
    }
    /* 1. 内容布局适配 */
    .content-wrapper {
        flex-direction: column;
    }
    .right-content {
        width: 100%;
    }

    /* 2. 导航 - 隐藏PC导航，显示横向滑动导航 */
    .nav-desktop {
        display: none;
    }
    .nav-mobile {
        display: block;
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
    }
    .nav-scroll {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px 0;
    }
    .nav-scroll::-webkit-scrollbar {
        display: none;
    }
    .nav-scroll a {
        flex-shrink: 0;
        display: inline-block;
        padding: 8px 14px;
        font-size: 14px;
        color: #333;
        text-decoration: none;
        white-space: nowrap;
        position: relative;
    }
    .nav-scroll a:first-child {
        padding-left: 16px;
    }
    .nav-scroll a:last-child {
        padding-right: 16px;
    }
    .nav-scroll a:hover,
    .nav-scroll a.active {
        color: #4E71FE;
    }
    .nav-scroll a.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 14px;
        right: 14px;
        height: 2px;
        background: #FFE035;
        border-radius: 1px;
    }

    /* 3. 应用图标/标题 - 移动端适配 */
    .app-icon img {
        width: 15.55556vw;
        height: 15.55556vw;
    }
    .app-name {
        font-size: 3.88889vw;
        font-weight: normal;
    }

    /* 4. 头部布局 + 搜索/菜单按钮 */
    .header-content {
        position: relative;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }
    .header-right {
        position: static;
        display: flex;
        width: auto;
        justify-content: flex-end;
        gap: 16px;
    }

    /* 5. 搜索框 - 默认隐藏/展开全屏 */
    .search-box {
        display: none;
    }
    .search-box.show-search {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 10px 20px;
        background-color: #fff;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
        z-index: 101;
    }
    .search-box.show-search input {
        width: 100%;
    }

    /* 6. 移动端操作按钮（搜索） */
    .mobile-actions {
        display: flex !important;
        gap: 16px;
        align-items: center;
    }
    .mobile-search-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: none !important;
        border: none !important;
        padding: 8px !important;
        font-size: 18px !important;
        color: #333 !important;
        cursor: pointer !important;
    }
    .mobile-search-btn svg {
        display: block !important;
        width: 24px !important;
        height: 24px !important;
    }

    /* 7. 隐藏列表标题 */
    .list-title {
        display: none;
    }
}