* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.album-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('picture/张建强卧室.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'SimSun', 'Songti SC', serif;
    position: relative;
}

body.album-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

/* ========== 手机外壳 ========== */

.phone {
    width: 380px;
    height: 700px;
    background: #1a1a1a;
    border-radius: 42px;
    padding: 14px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

/* ========== 屏幕区域 ========== */

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

/* ========== 摄像头 ========== */

.phone-camera {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #000;
    border-radius: 50%;
    z-index: 3;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.2);
}

/* ========== 相册应用 ========== */

.album-app {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.album-header {
    position: relative;
    padding: 40px 20px 12px;
    text-align: center;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
}

.back-btn-home {
    position: absolute;
    left: 16px;
    bottom: 12px;
    font-size: 20px;
    color: #e6edf3;
    cursor: pointer;
    transition: color 0.3s;
}

.back-btn-home:hover {
    color: #fff;
}

.album-title {
    font-size: 18px;
    color: #e6edf3;
    letter-spacing: 4px;
}

/* ========== 相册网格 ========== */

.album-grid {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    align-content: start;
}

.album-grid::-webkit-scrollbar {
    display: none;
}

.album-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    background: #1a1a1a;
    cursor: pointer;
}

.album-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.album-item:hover .album-img {
    transform: scale(1.05);
}

/* ========== 图片放大层 ========== */

.photo-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.photo-viewer-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}