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

body {
    background: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding-bottom: 70px;
}

.header {
    background: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eee;
}

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

.logo img {
    height: 32px;
    width: auto;
    border-radius: 8px;
}

.logo span {
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-box {
    background: #f0f0f0;
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 280px;
    margin-left: 16px;
    transition: all 0.3s ease;
}

.search-box.hide {
    display: none;
}

.search-box i {
    color: #999;
    font-size: 14px;
}

.search-box input {
    background: none;
    border: none;
    outline: none;
    font-size: 14px;
    width: 100%;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0 16px;
    border-top: 1px solid #eee;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #999;
    font-size: 12px;
    flex: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-item.active {
    color: #ff6b6b;
}

.nav-item i {
    font-size: 22px;
}

.category-wrapper {
    background: white;
    border-bottom: 1px solid #f0f0f0;
    overflow-x: auto;
    white-space: nowrap;
}

.category-wrapper::-webkit-scrollbar {
    display: none;
}

.category-wrapper.hide {
    display: none;
}

.category-list {
    display: inline-flex;
    padding: 12px 16px;
    gap: 16px;
}

.category-item {
    font-size: 14px;
    color: #666;
    padding-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}

.category-item.active {
    color: #ff6b6b;
    border-bottom: 2px solid #ff6b6b;
    font-weight: 500;
}

.category-item.featured {
    color: #ff6b6b;
    font-weight: 500;
}

.content {
    padding: 16px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.app-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-card:active {
    transform: scale(0.98);
}

.app-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.app-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.app-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 20px;
    pointer-events: none;
}

.app-info {
    padding: 12px;
}

.app-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-category {
    font-size: 10px;
    color: #ff6b6b;
    margin-bottom: 4px;
}

/* ========== 按钮组样式 ========== */
.button-group {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

/* 视频按钮样式 */
.video-btn {
    background: #4ecdc4;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    flex: 1;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.video-btn:hover {
    background: #3dbdb5;
    transform: scale(1.02);
}

.video-btn:active {
    transform: scale(0.98);
}

/* 视频按钮禁用样式 */
.video-btn.disabled,
.video-btn:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

.video-btn.disabled:hover,
.video-btn:disabled:hover {
    background: #ccc;
    transform: none;
}

/* 下载按钮样式 */
.download-btn-sm {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    flex: 1;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.download-btn-sm:hover {
    background: #ff5252;
    transform: scale(1.02);
}

.download-btn-sm:active {
    transform: scale(0.98);
}

/* ========== 个人中心样式 ========== */
.profile-content {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.profile-content .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.profile-content .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-content h3 {
    margin-bottom: 8px;
    color: #333;
}

.profile-content .email {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

.profile-content .login-btn {
    margin-top: 20px;
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.profile-content .login-btn:hover {
    background: #ff5252;
}

.profile-content .logout-btn {
    margin-top: 20px;
    background: #ccc;
    color: #666;
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.profile-content .logout-btn:hover {
    background: #bbb;
}

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

.empty-state i {
    font-size: 64px;
    color: #e0e0e0;
    margin-bottom: 16px;
}

.empty-state h4 {
    font-size: 18px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.empty-state p {
    font-size: 14px;
    color: #999;
}