    h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
        opacity: 0.9;
    }

    .back-link {
        color: white;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        margin-top: 1rem;
    }

    .back-link svg {
        margin-right: 5px;
    }

    

    /* 分类按钮 */
    .category-tabs {
        display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 15px 0;
    margin-bottom: 15px;
    }
.category-tabs .active {
    background-color: #6e8efb;
    color: #ffffff;
    text-decoration: none;
}
.tab-btn {
    flex: 0 0 auto;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #222;
}
    .tab-btn:hover, .tab-btn.active {
        background: #6e8efb;
        color: white;
    }

    /* 网格列表 */
    .wallpapers-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
        margin-bottom: 3rem;
    }

    .wallpaper-card {
        background: white;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }

    .wallpaper-card:hover {
        transform: translateY(-5px);
    }

    .wallpaper-img {
        width: 100%;
        height: 190px;
        object-fit: cover;
        display: block;
    }

    .wallpaper-info {
        padding: 15px;
    }

    .wallpaper-title {
        font-weight: 600;
        margin-bottom: 5px;
        margin-top: 0;
        text-decoration: none;
        font-size: 1rem;
        color: #333;
    }

    .wallpaper-desc {
        color: #666;
        font-size: 0.9rem;
        margin-bottom: 10px;
        white-space: nowrap;         /* 不换行 */
        overflow: hidden;            /* 超出容器隐藏 */
        text-overflow: ellipsis;
    }

    .resolution-tag {
        display: inline-block;
        padding: 3px 8px;
        background: #eee;
        border-radius: 3px;
        font-size: 0.8rem;
        margin-right: 5px;
    }

    /* 下载按钮 */
    .download-btn {
        display: inline-block;
        padding: 12px 30px;
        background: #6e8efb;
        color: white;
        text-decoration: none;
        border-radius: 30px;
        font-size: 1.1rem;
        font-weight: 600;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
        margin-bottom: 10px;
    }

    .download-btn:hover {
        background: #5a7df4;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(106, 142, 251, 0.4);
    }

    /* 详情页内容布局 */
    .main-content {
        display: flex;
        gap: 30px;
        margin-bottom: 40px;
    }

    .wallpaper-image {
        flex: 1;
        background: #eee;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .wallpaper-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-height: 70vh;
        display: block;
    }

    .wallpaper-properties {
        flex: 0 0 350px;
        background: white;
        border-radius: 10px;
        padding: 30px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        align-self: flex-start;
    }

    .wallpaper-description {
        color: #666;
        margin-bottom: 25px;
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .meta-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }

    .meta-item {
        display: flex;
        justify-content: space-between;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }

    .meta-label {
        color: #888;
    }

    .meta-value {
        font-weight: 600;
    }

    .download-section {
        background: #f9f9f9;
        padding: 20px;
        border-radius: 10px;
        text-align: center;
    }

    .download-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .download-desc {
        color: #666;
        margin-bottom: 20px;
        font-size: 0.95rem;
    }

    /* 相关壁纸 */
    .related-wallpapers {
        margin-bottom: 50px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
        position: relative;
        padding-left: 15px;
    }

    .section-title::before {
        content: '';
        position: absolute;
        left: 0;
        top: 5px;
        bottom: 5px;
        width: 4px;
        background: #6e8efb;
        border-radius: 2px;
    }

    .related-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .related-card {
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }

    .related-card:hover {
        transform: translateY(-5px);
    }

    .related-img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }

    .related-info {
        padding: 15px;
    }

    .related-name {
        font-weight: 600;
        margin-bottom: 5px;
        font-size: 1rem;
    }

    .related-resolution {
        font-size: 0.85rem;
        color: #888;
    }

    /* 模态框 */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 1000;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        background: white;
        border-radius: 10px;
        padding: 30px;
        max-width: 500px;
        width: 90%;
        text-align: center;
        position: relative;
    }

    .close-modal {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 1.5rem;
        cursor: pointer;
        color: #888;
    }

    .modal-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .modal-desc {
        color: #666;
        margin-bottom: 20px;
    }

    .qrcode-img {
        width: 200px;
        height: 200px;
        margin: 0 auto 20px;
        border: 1px solid #eee;
        padding: 10px;
    }

    .password-form {
        margin-top: 30px;
    }

    .password-input {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .verify-btn {
        padding: 12px 25px;
        background: #6e8efb;
        color: white;
        border: none;
        border-radius: 5px;
        font-size: 1rem;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .verify-btn:hover {
        background: #5a7df4;
    }

    .error-message {
        color: #e74c3c;
        margin-top: 10px;
        display: none;
    }

    /* 弹窗遮罩层 */
    .wallpop-mask {
        display: none;
        position: fixed;
        z-index: 9999;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.6);
        align-items: center;
        justify-content: center;
    }

    .wallpop-content {
        width: 92%;
        max-width: 350px;
        margin: 100px auto;
        background: #fff;
        border-radius: 12px;
        padding: 24px 18px;
        position: relative;
        box-shadow: 0 6px 16px rgba(0,0,0,0.3);
        text-align: center;
    }

    .wallpop-close {
        position: absolute;
        top: 10px;
        right: 14px;
        font-size: 18px;
        color: #999;
        cursor: pointer;
    }

    .wallpop-title {
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 12px;
    }

    .wallpop-qrcode {
        width: 180px;
        max-width: 100%;
        margin: 10px auto;
        border-radius: 8px;
    }

    .wallpop-tip {
        margin-top: 16px;
        font-size: 14px;
        color: #333;
    }

    .wallpop-input {
        width: 80%;
        padding: 10px 12px;
        margin-top: 8px;
        font-size: 15px;
        border: 1px solid #ccc;
        border-radius: 8px;
        outline: none;
    }

    .wallpop-btn {
        margin-top: 14px;
        padding: 10px 20px;
        font-size: 15px;
        background-color: #007BFF;
        border: none;
        border-radius: 8px;
        color: #fff;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .wallpop-btn:hover {
        background-color: #0056b3;
    }

    .wallpop-result {
        margin-top: 10px;
        font-size: 14px;
        color: red;
    }

    .wallpop-download-btn {
        display: inline-block;
        padding: 10px 24px;
        font-size: 16px;
        font-weight: bold;
        color: #ffffff;
        background-color: #28a745;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.3s, box-shadow 0.3s;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

    .wallpop-download-btn:hover {
        background-color: #218838;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    /* 响应式设计 */
    @media (max-width: 992px) {
        .main-content {
            flex-direction: column;
        }

        .wallpaper-properties {
            flex: 1;
        }
    }

    @media (max-width: 768px) {
        .wallpapers-grid {
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 15px;
        }

        h1 {
            font-size: 2rem;
        }
    }

    @media (max-width: 576px) {
        .related-grid {
            grid-template-columns: 1fr 1fr;
        }

        .wallpaper-title {
            font-size: 1.5rem;
        }
    }