/**
 * WYH Plugins - Frontend Styles
 */

.wyh-btn-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wyh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    background-color: #3498db;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: inherit;
    transition: all 0.3s ease;
}

.wyh-btn:hover {
    background-color: #2980b9;
    color: #ffffff;
}

.wyh-btn__text {
    display: inline-block;
    font-size: 1em;
}

/* Card - 自适应裁剪卡片 */
.wyh-card__wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0;
    background: #fff;
    border-radius: 0;
    box-sizing: border-box;
    margin: 0 auto;
    overflow: hidden;
    width: 100%;
}

.wyh-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
}

.wyh-card__image-box {
    width: 500px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.wyh-card__image {
    width: auto;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.wyh-card__btn-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    top: var(--btn-offset-y-scaled, var(--btn-offset-y, auto));
}

/* 等比例缩放 resize 期间临时禁用所有 transition */
body.wyh-resizing * {
    transition: none !important;
}
