* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "黑体", sans-serif;
    background-color: white;
    color: black;
    line-height: 1.5;
}
/* 增加全局 A链接基础样式 去掉下划线和默认蓝色链接标识 */
a {
    color: inherit;
    text-decoration: none;
}
.container {
    max-width: 540px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

/* 顶部广告模块样式 */
.ad-banner {
    background: white;
    padding: 5px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

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

.ad-logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ad-logo {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 8px;
}

.ad-text {
    color: #5d43ae;
}

.ad-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 2px;
}

.ad-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.download-app-btn {
    width: 68px;
    height: 28px;
    background: #5d43ae;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ad-slots-container {
    display: flex;
    gap: 5px;
}

.ad-slot {
    flex: 1;
    padding: 5px 5px;
    border-radius: 3px;
    text-align: center;
    font-size: 12px;
    color: white;
}

.slot-0, .slot-2, .slot-4 {
    background: #5d43ae;
}

.slot-1, .slot-3 {
    background: #fbaf03;
}

.close-ad-btn-new {
    background: rgba(0,0,0,0.1);
    color: #666;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s;
}

.close-ad-btn-new:hover {
    background: rgba(0,0,0,0.2);
}

/* 导航菜单样式 */
.main-nav {
    background: rgb(19, 45, 65);
    padding: 10px 0 0 0; /* 调整底部padding为0，因为搜索块有自己的padding */
}

.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px 2px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-title {
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.nav-icons {
    display: flex;
    gap: 10px;
}

.nav-icon {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-icon:hover {
    background: rgba(255,255,255,0.1);
}

.nav-bottom {
    display: flex;
    align-items: center;
    padding: 0 5px;
}

.nav-arrow {
    background: transparent;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s;
}

.nav-categories {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1px 1px;
    gap: 4px;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.nav-categories::-webkit-scrollbar {
    display: none;
}

.category-item {
    white-space: nowrap;
    padding: 6px 6px;
    background: transparent;
    border-radius: 15px;
    text-decoration: none;
    color: rgb(171, 171, 171);
    font-size: 18px;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.category-item.active {
    color: white;
}

.category-item:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

/* 搜索块样式 */
.search-block {
    background: rgb(19, 45, 65);
    padding: 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.search-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 10px 15px 10px 40px; /* 左边增加内边距给图标留空间 */
    border: none;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 14px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-icon {
    position: absolute;
    left: 15px;
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    pointer-events: none; /* 防止图标干扰输入框点击 */
}

.search-btn {
    background: #5d43ae;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background: #4a3590;
}

/* ========== 空状态样式 ========== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.empty-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 50%;
    margin-bottom: 24px;
    animation: emptyIconFloat 3s ease-in-out infinite;
}

.empty-icon i {
    font-size: 60px;
    color: #8e9aaf;
}

@keyframes emptyIconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.empty-text {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.empty-hint {
    font-size: 14px;
    color: #999;
    margin-bottom: 28px;
    text-align: center;
    line-height: 1.6;
}

.empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.empty-btn:active {
    transform: translateY(0);
}

.empty-btn i {
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .search-block {
        padding: 12px 15px;
    }
    
    .search-input {
        padding: 8px 12px 8px 35px; /* 移动端调整内边距 */
        font-size: 13px;
    }
    
    .search-icon {
        left: 12px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    .empty-state {
        min-height: 320px;
        padding: 40px 20px;
        margin: 15px 0;
    }
    
    .empty-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }
    
    .empty-icon i {
        font-size: 50px;
    }
    
    .empty-text {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .empty-hint {
        font-size: 13px;
        margin-bottom: 24px;
    }
    
    .empty-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .empty-btn i {
        font-size: 16px;
    }
}

/* 主要内容区域 */
.content {
    padding: 20px 15px;
    background: white;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .ad-title {
        font-size: 14px;
    }
    
    .ad-subtitle {
        font-size: 11px;
    }
    
    .ad-slot {
        font-size: 11px;
        padding: 8px 3px;
    }
    
    .site-title {
        font-size: 16px;
    }
    
    .nav-icon {
        font-size: 14px;
        width: 28px;
        height: 28px;
    }
    
    .category-item {
        padding: 5px 12px;
        font-size: 13px;
    }
    
    .search-block {
        padding: 12px 15px;
    }
    
    .search-input {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .search-btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    .empty-state {
        min-height: 280px;
        padding: 30px 15px;
    }
    
    .empty-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 16px;
    }
    
    .empty-icon i {
        font-size: 40px;
    }
    
    .empty-text {
        font-size: 16px;
    }
    
    .empty-hint {
        font-size: 12px;
    }
}