/* 相册卡片 */
.img_card {
    padding: 1.15rem 1.15rem 1.35rem;
    background: rgba(255, 255, 255, 0.94);
    box-sizing: border-box;
    border-radius: 1.5rem;
    border: 1px solid rgba(208, 206, 206, 0.4) !important;
    box-shadow: 0 8px 26px rgba(145, 129, 129, 0.18);
    transition: all 0.23s linear;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery {
    align-items: stretch;
}

.love_img {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.love_img a {
    display: block;
    overflow: hidden;
    border-radius: 1rem 1rem .8rem .8rem;
}

.love_img img {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: 1rem 1rem .8rem .8rem;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(133, 125, 125, 0.28);
    margin-bottom: 1rem;
    aspect-ratio: 1 / 1 !important;
    transition: all 0.23s linear;
}

.img_card:hover {
    cursor: pointer;
    cursor: url(../cur/hover.cur), pointer;
    background: #494949;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(59, 59, 59, 0.26);
}

.img_card:hover .love_img img {
    transform: scale(1.015);
    box-shadow: 0 2px 10px rgba(59, 59, 59, 0.68);
}

.img_card:active {
    background: #494949;
}

.img_card .words {
    text-align: left;
    margin-top: 0.85rem;
    padding: 0 0.15rem;
    position: relative;
    flex: 1;
}

.img_card i {
    display: block;
    font-style: normal;
    font-family: 'Noto Serif SC', serif;
    font-weight: 400;
    color: #999;
    padding-bottom: 0.55rem;
    letter-spacing: 0.08rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

.img_card span {
    font-family: 'Noto Serif SC', serif;
    font-weight: 400;
    font-size: 1.02rem;
    color: #454040;
    letter-spacing: 0.04rem;
    line-height: 1.75em;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    display: block;
}

.img_card:hover i {
    color: #cfcfcf;
}

.img_card:hover span {
    color: #f1eeee;
}

.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: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.23s linear,
                box-shadow 0.23s linear;
}

.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;
}

@media screen and (max-width: 768px) {
    .img_card {
        padding: 1rem 1rem 1.25rem;
    }

    .img_card span {
        font-size: 1.08rem !important;
        line-height: 1.85em;
        letter-spacing: 0.02rem;
    }
}
