.img_card {
    padding: 1.2rem;
    background: #fafafa;
    box-sizing: border-box;
    border-radius: 1.5rem;
    border: 1px solid rgba(208, 206, 206, 0.4) !important;
    box-shadow: 0 5px 12px #cfd4da85;
    transition: all 0.23s linear;
}

.love_img img {
    width: 100%;
    border-radius: 1rem 1rem .6rem .6rem;
    object-fit: cover;
    box-shadow: 0 0px 30px #857d7d78;
    aspect-ratio: 1 / 1 !important;
}

.img_card:hover {
    cursor: pointer;
    cursor: url(../cur/hover.cur), pointer;
}

.love_img img {
    transition: all 0.23s linear;
}

.img_card:hover .love_img img {
    transform: translateY(-5px);
}

.img_card:hover img {
    box-shadow: 0 2px 10px #3b3b3bad;
}

.img_card span {
    font-family: 'Noto Serif SC', serif;
    font-weight: 400;
    font-size: 1.05rem;
    color: #454040;
    letter-spacing: 1px;
    line-height: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.img_card i {
    display: block;
    font-style: normal;
    font-family: 'Noto Serif SC', serif;
    font-weight: 400;
    color: #999;
    padding-bottom: 0.3rem;
    letter-spacing: 2px;
}

.img_card .words {
    text-align: center;
    margin-top: 0.6rem;
    position: relative;
}

.spl-button,
.spl-description,
.spl-title {
    margin-bottom: 20px;
    font-family: 'Noto Serif SC', serif;
    font-weight: 400;
}

.photo-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.photo-item.show {
    opacity: 1;
    transform: translateY(0);
}

.load-more {
    text-align: center;
    margin-top: 60px;
}

/* 加载动画 */
.loading {
    text-align: center;
    color: #7f8c8d;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Noto Serif SC', serif;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ecf0f1;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 页面渐入效果 */
.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.lg-btn-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #ffffff;
    background-color: #000000;
    border-style: solid;
    border-width: 1px;
    border-color: rgb(255 255 255);
    border-radius: 40px;
    padding: .6rem 2rem;
    transform: translate(0, 0) rotate(0deg);
    transition: 0.2s;
    cursor: pointer;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    font-family: 'Noto Serif SC', serif;
    font-weight: bold;
}

.lg-btn-alt:hover {
    color: #516d91;
    background-color: #E5EDF5;
    box-shadow: -2px -1px 8px 0px #ffffff,
                2px 1px 8px 0px rgb(95 157 231 / 48%);
}

.lg-btn-alt:active {
    box-shadow: none;
}

.lg-btn-alt:disabled,
.lg-btn-alt.disabled {
    color: #3f3f3f;
    background-color: #e0e0e0;
    border-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.8;
    pointer-events: none;
}

.lg-btn-alt .icon {
    width: 16px;
    height: 16px;
}

/* ===== 私密照片锁屏 — iOS 毛玻璃风格 ===== */
.private-photo-lock {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 1rem 1rem .6rem .6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e8dde0 0%, #ddd1d5 40%, #d4c5ca 100%);
    box-shadow: 0 0px 30px #857d7d78;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.private-photo-lock::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.6) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255,182,193,0.15) 0%, transparent 50%);
    pointer-events: none;
    animation: lockShimmer 8s ease-in-out infinite;
}

@keyframes lockShimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10%, -5%); }
}

.img_card:hover .private-photo-lock {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(133, 125, 125, 0.5);
}

.lock-initial-view {
    text-align: center;
    z-index: 2;
    transition: opacity 0.25s ease, transform 0.25s ease;
    user-select: none;
    -webkit-user-select: none;
    animation: lockViewFadeIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.lock-password-view {
    text-align: center;
    z-index: 2;
    width: 82%;
    max-width: 250px;
    user-select: none;
    -webkit-user-select: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    animation: lockViewFadeIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes lockViewFadeIn {
    from { opacity: 0; transform: scale(0.92) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.lock-view-fade-out {
    opacity: 0 !important;
    transform: scale(0.92) translateY(8px) !important;
    pointer-events: none;
}

.lock-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff 0%, #f5edef 100%);
    box-shadow: 0 4px 16px rgba(180, 140, 145, 0.25),
                inset 0 1px 2px rgba(255,255,255,0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lock-icon-circle svg {
    color: #c4a0a6;
    transition: all 0.3s ease;
}

.lock-initial-view:hover .lock-icon-circle {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 24px rgba(180, 140, 145, 0.35),
                inset 0 1px 2px rgba(255,255,255,0.8);
}

.lock-initial-view:hover .lock-icon-circle svg {
    color: #a87f86;
}

.lock-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0 0 0.3rem 0;
    letter-spacing: 3px;
    color: #7a6a6e;
}

.lock-hint {
    font-family: 'Noto Serif SC', serif;
    font-size: 0.78rem;
    color: #a8989c;
    margin: 0;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* 密码输入视图 */
.lock-pwd-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff 0%, #f5edef 100%);
    box-shadow: 0 3px 12px rgba(180, 140, 145, 0.2);
}

.lock-pwd-icon svg {
    color: #c4a0a6;
}

.lock-pwd-input {
    width: 100%;
    padding: 0.65rem 1.2rem;
    border: 1px solid rgba(196, 160, 166, 0.3);
    border-radius: 2rem;
    font-size: 0.9rem;
    font-family: 'Noto Serif SC', serif;
    text-align: center;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #555;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.lock-pwd-input:focus {
    border-color: #c4a0a6;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(196, 160, 166, 0.12);
}

.lock-pwd-input::placeholder {
    color: #bfa6ab;
}

.lock-unlock-btn {
    margin-top: 0.7rem;
    padding: 0.5rem 2rem;
    border: none;
    border-radius: 2rem;
    background: linear-gradient(135deg, #c4a0a6, #b88a91);
    color: #fff;
    font-size: 0.85rem;
    font-family: 'Noto Serif SC', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    box-shadow: 0 3px 12px rgba(180, 140, 145, 0.3);
}

.lock-unlock-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #b88a91, #a87f86);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180, 140, 145, 0.4);
}

.lock-unlock-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(180, 140, 145, 0.3);
}

.lock-unlock-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.lock-error {
    color: #ff6b6b;
    font-size: 0.78rem;
    font-family: 'Noto Serif SC', serif;
    margin: 0.6rem 0 0 0;
    display: none;
    letter-spacing: 1px;
}

/* 移动端优化：防止双击缩放，统一触摸体验 */
.private-photo-lock,
.private-photo-lock * {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* 小屏手机适配 */
@media (max-width: 480px) {
    .lock-icon-circle {
        width: 52px;
        height: 52px;
    }
    .lock-title {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }
    .lock-hint {
        font-size: 0.72rem;
    }
    .lock-password-view {
        width: 88%;
    }
    .lock-pwd-input {
        padding: 0.55rem 1rem;
        font-size: 0.85rem;
    }
    .lock-unlock-btn {
        padding: 0.45rem 1.6rem;
        font-size: 0.8rem;
    }
}
