/* 通用样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* 壁纸卡片样式 */
.wallpaper-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wallpaper-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.wallpaper-card:active img {
    transform: scale(1.05);
}

/* 分类项样式 */
.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

/* 顶部导航栏 */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), transparent);
    z-index: 10;
    display: flex;
    align-items: center;
}

.top-bar a, .top-bar h1 {
    color: white;
}

/* 壁纸详情页样式 */
.fullscreen-wallpaper {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
}

.info-overlay {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    z-index: 10;
    color: white;
}

.wallpaper-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.wallpaper-actions button {
    flex: 1;
    transition: all 0.2s;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: bold;
    border: none;
}

.btn-download {
    background-color: #3b82f6;
    color: white;
}

.btn-set {
    background-color: rgba(34, 197, 94, 0.7);
    color: white;
}

.wallpaper-actions button:active {
    transform: scale(0.95);
}

/* 分类瀑布流样式 */
.grid-container {
    padding: 1rem;
}

.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.wallpaper-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

/* 隐私设置页面样式 */
.setting-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 16px;
    overflow: hidden;
}

.setting-header {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.setting-content {
    padding: 16px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #22c55e;
}

input:checked + .slider:before {
    transform: translateX(26px);
}