* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: url("https://txk.xyttkx.cn/background.webp") no-repeat center/cover;
    background-color: #f5f5f5;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 2rem 1rem;
}
.glass-album {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    border-radius: 1.5rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}
.album-img {
    transition: all 0.3s ease;
    border-radius: 0.8rem;
    aspect-ratio: 1/1;
    object-fit: cover;
    visibility: hidden;
    cursor: pointer;
    width: 100%;
}
.album-img.loaded { visibility: visible; }
.album-img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.album-desc {
    color: #2d3748;
    font-weight: 500;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    text-align: center;
    margin: 0rem;
}
.permission-tip { display: none !important; }
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; }
.modal-container {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-container { transform: translateY(0); }
.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.modal-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}
.modal-btn {
    padding: 10px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
}
.wechat-modal .modal-container,
.qq-modal .modal-container { padding: 28px 24px; }
.wechat-guide {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin: 12px 0 24px;
    text-align: left;
}
.wechat-guide p { margin: 6px 0; }
.wechat-confirm-btn {
    width: 100%;
    background: #4299e1;
    color: #fff;
}
.wechat-confirm-btn:hover { background: #3182ce; }
.wechat-modal-img {
    display: block;
    margin: 0 auto 1rem;
    width: 120px;
    height: auto;
    border-radius: 8px;
}
.browser-modal .modal-preview {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 2px solid #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.browser-modal .modal-btn-group {
    display: flex;
    gap: 12px;
}
.browser-modal .cancel-btn {
    flex: 1;
    background: #f5f5f5;
    color: #666;
}
.browser-modal .cancel-btn:hover { background: #eee; }
.browser-modal .confirm-btn {
    flex: 1;
    background: #4299e1;
    color: #fff;
}
.browser-modal .confirm-btn:hover { background: #3182ce; }
.bottom-btn-group {
    display: flex;
    justify-content: center;
    gap: 0.8rem; 
    flex-wrap: nowrap;
    margin-top: 1rem;
    padding: 0 0.5rem;
}
.bottom-btn {
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    font-size: 0.95rem; 
    font-weight: 500;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}
.bottom-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}
#saveImg { display: none; }
.grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}
.computer-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 1.5rem !important;
}
.submit-modal .wechat-guide {
    margin: 15px 0 20px;
}
@media (max-width: 320px) {
    .submit-modal .wechat-guide img {
        max-width: 90px !important;
    }
}
.page-footer {
    text-align: center;
    margin-top: 5px; 
    padding: 0px; 
    color: #808080; 
    font-size: 13px; 
}
