﻿.hero {
    background: url(../images/banner.png) no-repeat center center;
    background-size: cover;
    color: #fff;
    position: relative;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    padding: 50px 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero .cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #ff6347;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}


h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.view-more {
    display: block;
    font-size: 1.2rem;
    color: #ff6347;
    margin-top: 30px;
    text-decoration: none;
    text-align: right;
    margin-left: auto;
}

.gallery {
    background: #f4f4f4;
}

.wallpaper-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


.wallpaper-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(../images/bg.jpeg);
    background-size: cover; /* 背景图片覆盖整个div */
    background-repeat: no-repeat; /* 背景图片不重复 */
    padding-top: 15px;
}

/* 手机框样式 */
.phone-frame {
    width: 90%;
    max-width: 300px;
    height: 530px;
    background-color: #fff;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wallpaper-gallery-pc {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.wallpaper-item-pc {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(./images/pcbg.jpg);
    background-repeat: no-repeat; /* 背景图片不重复 */
    padding-top: 15px;
}

/* 手机框样式 */
.pc-frame {
    width: 90%;
    max-width: 400px;
    height: 430px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* 顶部状态栏 */
    .status-bar {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    font-size: 14px;
    color: #fff;
    z-index: 10;
}

    .status-bar .carrier {
        font-weight: bold;
        white-space: nowrap;
    }

    .status-bar .status-icons {
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .status-bar .status-icons span {
            font-size: 16px;
            line-height: 1;
        }

/* 时间显示 */
.time-display {
    position: absolute;
    top: 30%;
    left: 30%;
    transform: translate(-20%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
}

    .time-display .date {
        font-size: 16px;
        margin: 0;
        font-weight: 300;
    }

    .time-display .time {
        font-size: 48px;
        margin: 5px 0 0;
        font-weight: bold;
    }

/* 壁纸内容 */
.phone-frame img,
.phone-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}


/* 壁纸内容 */
.pc-frame img,
.pc-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* Container for all computer frames */
.pc-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PC端每行2列 */
    gap: 20px;
    padding: 20px;
}

/* Computer Frame */
.computer-frame {
    position: relative;
    width: 580px; /* 调整为适合的宽度 */
    aspect-ratio: 16 / 9; /* 保持宽高比 */
    
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
    border: 10px solid #000;
    border-radius: 10px;
}

.computer-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保图片完整覆盖 */
}


/* 响应式样式 */
@media (max-width: 1024px) {
    .wallpaper-gallery {
        grid-template-columns: repeat(3, 1fr); /* 中屏改为3列 */
        gap: 15px;
    }

    .phone-frame {
        max-width: 250px; /* 中屏调整手机框大小 */
        height: 450px;
    }

    .pc-container {
        grid-template-columns: 1fr; /* PC容器中屏单列布局 */
    }

    .computer-frame {
        width: 100%; /* 自适应宽度 */
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .wallpaper-gallery {
        grid-template-columns: repeat(2, 1fr); /* 小屏改为2列 */
        gap: 10px;
    }

    .wallpaper-item {
        padding-top: 10px;
    }

    .phone-frame {
        max-width: 200px; /* 小屏进一步缩小手机框 */
        height: 400px;
    }

    .pc-container {
        grid-template-columns: 1fr; /* 小屏PC容器保持单列 */
    }

    .computer-frame {
        width: 90%; /* 缩小适配屏幕宽度 */
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .wallpaper-gallery {
        grid-template-columns: 1fr; /* 超小屏单列布局 */
        gap: 10px;
    }

    .phone-frame {
        max-width: 180px; /* 超小屏调整手机框大小 */
        height: 360px;
    }
}