/* 重置样式 */
* {
    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 {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    
}

.btn-primary {
    background-color: #FFE035;
    color: #222222;
}

.btn-primary:hover {
    background-color: #E6C92F;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}



.btn-download {
    padding: 12px 24px;
    font-size: 16px;
}

/* 顶部导航栏 */
.top-header {
    background-color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
}
.top-header:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: 0 .27778vw .83333vw rgba(0, 0, 0, .05);
    z-index: 2;
    height: 1.11111vw;
}

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

.logo img {
    height: 30px;
}

.nav-menu ul {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

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

/* 导航样式 */
.nav-menu a:hover {
    background-color: transparent;
    border-bottom-color: #FFE035;
}

.nav-menu a.active {
    border-bottom-color: #FFE035;
}

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

.search-box {
    position: relative;
}

.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;
    width: 250px;
}

.download-buttons {
    display: flex;
    gap: 10px;
}


/* 主要内容区域 */
.main-content {
    padding: 20px 0;
    background-color: #fff;
}

.left-content {
    flex: 1;
}

.right-content {
    width: 350px;
}



/* 相关推荐 */
.related-apps {
    border-radius: 13px;
    padding: 16px;
    margin-top: 20px;
    background: rgba(0, 0, 0, .03);
}

.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-item:last-child {
    border-bottom: none;
    padding-bottom: 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-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.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;
}

.btn-related {
    background-color: transparent;
    color: #4E71FE;
    border: 1px solid #4E71FE;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    flex-shrink: 0;
}

.btn-related:hover {
    background-color: #4E71FE;
    color: #fff;
}

/* 底部 */
.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;
}

/* 页面标题和内容 */




/* 文章详情页样式 */

.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;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
}





.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;
}

.detail-section {
    margin-bottom: 20px;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-item {
    padding: 16px;
}

.detail-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.detail-value {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

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

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 18px;
    margin-bottom: 12px;
}

.download-icon {
    font-size: 20px;
}

.download-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 内容布局调整 */
.content-wrapper {
    display: flex;
    gap: 24px;
}

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

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

/* 列表页样式 */
.list-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.app-list {
    padding: 20px;
}

.app-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.app-item:last-child {
    border-bottom: none;
}

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

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

.app-details {
    flex: 1;
}

.app-name {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: #333;
}

.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;
}



.app-actions {
    display: flex;
    gap: 10px;
}

.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;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 16px;
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .right-content {
        width: 100%;
    }
    
    .nav-menu {
        display: none;
    }
    
    /* 移动端菜单显示样式 */
    .nav-menu.show-menu {
        display: block;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        border-top: 1px solid #e0e0e0;
        padding: 10px 0;
        z-index: 99;
    }
    
    .nav-menu.show-menu ul {
        flex-direction: column;
        gap: 10px;
        padding: 0 20px;
    }
    
    .nav-menu.show-menu li {
        margin: 0;
    }
    
    .nav-menu.show-menu a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu.show-menu li:last-child a {
        border-bottom: none;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .search-box input:focus {
        width: 180px;
    }
}

@media (max-width: 992px) {
    .app-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .app-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

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

/* 确保header-right在所有屏幕尺寸下都是flex容器 */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }
    
    .header-right {
        order: 0;
        width: auto;
        justify-content: flex-end;
        display: flex;
        align-items: center;
        gap: 16px;
    }
    
    /* 隐藏完整搜索框和下载按钮 */
    .search-box {
        display: none;
    }
    
    .download-buttons {
        display: none;
    }
    
    /* 显示移动端操作按钮 */
    .mobile-actions {
        display: flex !important;
        gap: 16px;
        align-items: center;
    }
    
    .mobile-search-btn, .mobile-menu-btn {
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        color: #333 !important;
        font-size: 18px !important;
        padding: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .mobile-search-btn svg, .mobile-menu-btn svg {
        width: 24px !important;
        height: 24px !important;
        display: block !important;
    }
    
    .app-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .app-actions .btn {
        width: 100%;
        text-align: center;
    }
}