body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lantinghei SC', 'Microsoft YaHei', Arial, sans-serif;
    /*font-family: 'Microsoft YaHei Light', Arial, sans-serif; !* 使用微软雅黑细体 *!*/
}

header {
    background-color: #ffffff;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #e7e7e7;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0; /* 确保初始位置 */
    transition: left 0.3s;
}

.title_text {
    font-size: 30px;
    margin: 0;

}

.lang-toggle {
    position: absolute;
    right: 70px;
    text-decoration: none;
    color: #666;
    font-size: 13px;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 14px;
    transition: all 0.2s;
}

.lang-toggle:hover {
    color: #333;
    border-color: #bbb;
}

.account-entry {
    position: absolute;
    right: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    min-width: 34px;
    padding: 6px;
    border: 1px solid rgba(16, 16, 16, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.account-entry:hover {
    border-color: rgba(155, 123, 64, 0.45);
    box-shadow: 0 10px 22px rgba(29, 22, 15, 0.08);
    transform: translateY(-1px);
}

.account-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transform: translateX(8px);
    transition: max-width 0.24s ease, opacity 0.18s ease, transform 0.24s ease, margin-right 0.24s ease;
    margin-right: 0;
}

.account-entry:hover .account-copy,
.account-entry:focus-visible .account-copy,
.account-entry:focus-within .account-copy {
    max-width: 140px;
    opacity: 1;
    transform: translateX(0);
    margin-right: 12px;
}

.account-kicker {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #94826a;
}

.account-name {
    font-size: 13px;
    color: #111;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #13110e 0%, #3a3126 100%);
    color: #f4ebdb;
    box-shadow: inset 0 0 0 1px rgba(217, 190, 135, 0.4);
}

.avatar-monogram {
    font-size: 12px;
    letter-spacing: 0.12em;
    padding-left: 0.12em;
}

.menu-icon {
    cursor: pointer;
    width: 30px;
    height: 30px;
    background-image: url('../images/menu.png'); /* Replace with the actual menu icon URL */
    background-size: cover;
    background-position: center;
    position: absolute;
    left: 20px;
}

.sidebar {
    width: 200px;
    height: 100vh;
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: -220px; /* 默认不突出来 */
    transition: left 0.3s;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    padding-top: 100px;
    padding-left: 10px;
}

.sidebar.visible {
    left: 0;
}

.menu-list {
    margin-top: 20px;
    width: 100%; /* 调整为整个菜单宽度 */
    text-align: left;
}

.menu-item {
    margin-left: 10px;
    padding: 10px 0;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block; /* 调整为块级元素 */
}

.menu-item a {
    text-decoration: none; /* 移除默认下划线 */
    color: inherit; /* 继承父级颜色 */
    position: relative; /* 设置相对定位 */
}

.menu-item a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px; /* 距离文案的距离 */
    width: 140px; /* 下划线宽度为整个菜单宽度 */
    height: 1px;
    background-color: black; /* 下划线颜色 */
    transition: width 0.3s; /* 添加过渡效果 */
}

.menu-item:hover a::after {
    width: 165px; /* 鼠标悬停时，将下划线收缩为0 */
}

.menu-item.active {
    transform: translateX(2px);
}

.menu-item-placeholder {
    color: #8d8274;
    font-size: 13px;
    cursor: default;
}

.menu-item-placeholder a::after,
.menu-item-placeholder::after {
    display: none !important;
}

.content {
    position: relative;
    margin-left: 0;
    transform: translateX(0);
    transition: transform 0.3s;
    background-color: #f1f1f1;
    height: calc(100vh - 80px);
    overflow-y: auto;
    margin-top: 80px; /* Adjust for header height */
    will-change: transform;
}

.content.shifted {
    transform: translateX(210px);
}

.main {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.main_center {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* 添加相对定位 */
}

.main_center_left {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.main_right_up {
    width: 15%;
    height: 100%;
    padding-top: 20px;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 6; /* 确保在遮罩层之上 */
}
.main_preview_up{
    position: absolute; /* 绝对定位用于根据父容器设置宽高 */
    width: 100%;
    height: 90%;
    display: flex;
    justify-content: center;
    margin-bottom: 10%;
    align-items: end;

}
.preview-curtain-stage {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}
.img_model{
    border-radius: 10px;
    height: 20%; /* 图片高度100%，撑满父容器 */
    aspect-ratio: 3 / 4; /* 宽高比 3:4 */
    object-fit: inherit;
    margin-right: 40px;
    box-shadow: 2px 2px 6px 0 rgba(0, 0, 0, 0.5); /* 垂直右向下45度的2px阴影 */
    position: relative;
    z-index: 1;
}
.img_result{
    border-radius: 10px;
    aspect-ratio: 3 / 4.3; /* 宽高比 3:4 */
    height: 72%; /* 图片高度100%，撑满父容器 */
    width: auto;
    object-fit: cover;
    object-position: center;
    box-shadow: 4px 10px 15px 0 rgba(0, 0, 0, 0.5); /* 垂直右向下45度的2px阴影 */
    position: relative;
    z-index: 1;
}

.img_cloth{
    border-radius: 10px;
    object-fit: inherit;
    margin-left: 40px;
    aspect-ratio: 3 / 4; /* 宽高比 3:4 */
    height: 20%; /* 图片高度100%，撑满父容器 */
    box-shadow: 2px 2px 6px 0 rgba(0, 0, 0, 0.5); /* 垂直右向下45度的2px阴影 */
    position: relative;
    z-index: 1;
}

.main_preview_bottom{
    height: 18%;
    align-self: end;
    margin-bottom: 4%;
    aspect-ratio: 6 / 1; /* 宽高比 3:4 */
    box-shadow: 4px 8px 6px 3px rgba(0, 0, 0, 0.1); /* 垂直右向下45度的2px阴影 */
    border-radius: 50% / 50%; /* 创建椭圆形 */
}



.brand-text {
    margin-left: 10px;
    font-size: 16px;
    color: grey; /* 调整品牌颜色为灰色 */
}
.button {
    min-width: 60px;
    display: inline-block;
    padding: 8px 28px;
    font-size: 0.9em;
    color: white;
    background-color: black;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
}

.selection-helper {
    margin: -8px 10px 16px;
    font-size: 12px;
    line-height: 1.5;
    color: #7e7364;
}

.tryon-quota {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #6a6053;
}

.selection-group {
    margin-top: 4px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.selection-group img,
.selection-group .placeholder {
    width: 20%;
    aspect-ratio: 1/1.2;
    margin: 0 10px;
    border-radius: 6px;
    object-fit: inherit;
}

.selection-group .placeholder {
    border: 2px dashed #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #999;
}

.main_right_up_title{
    font-size: 14px;
    color: #333333;
}


.main_bottom {
    width: 100%;
    height: 18%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    position: relative;
    padding-bottom: 20px;
    overflow: hidden;
}

.scroll-content {
    display: flex;
    height: 100%;
    margin-top: 20px;
    padding-left: 80px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}
.scroll-content::-webkit-scrollbar {
    display: none;  /* Safari and Chrome */
}

.item {
    height: 80%;
    aspect-ratio: 1/1.2;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    font-size: 10px;
    font-family: 'Lantinghei SC', 'Microsoft YaHei', Arial, sans-serif;
    background-color: #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}


.item img {
    height: 86%;
    aspect-ratio: 1/1.2;
    border-radius: 6px;
}

.item a{
    color: black;
    margin-top: 6px;
    text-decoration: underline;
    text-underline-offset: 2px; /* 调整下划线距离文本的距离 */
    text-decoration-skip-ink: auto; /* 控制下划线跳过文本中的字符轮廓 */
}

.item-status {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6f675d;
    line-height: 1.5;
}

.item-inline-status {
    min-width: 110px;
    flex-shrink: 0;
}

.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1;
}

.scroll-button.left {
    left: 4px;
}

.scroll-button.right {
    right: 4px;
}

.scroll-button svg {
    width: 24px;
    height: 28px;
    fill: #333;
}

/* Modal container */
.modal {
    display: none; /* 隐藏默认 */
    position: fixed; /* 固定位置 */
    z-index: 10; /* 位于顶层 */
    left: 0;
    top: 0;
    padding-top: 20px;
    width: 100%; /* 全宽 */
    height: 100%; /* 全高 */
    overflow: auto; /* 如果需要，启用滚动 */
    background-color: rgba(0,0,0,0.8); /* 黑色背景，透明度 0.8 */
}

.modal-toolbar {
    position: absolute;
    top: 14px;
    right: 74px;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(16, 16, 16, 0.76);
    backdrop-filter: blur(10px);
}

.modal-toolbar.hidden {
    display: none;
}

.modal-tool-button {
    min-width: 32px;
    height: 32px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0 10px;
}

.modal-tool-button:hover {
    background: rgba(255, 255, 255, 0.24);
}

.modal-zoom-text {
    min-width: 42px;
    text-align: center;
    color: #ffffff;
    font-size: 12px;
}

.modal-stage {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}

/* Modal Content (image) */
.modal-content {
    display: block;
    max-width: 92vw;
    max-height: 85vh;
    width: auto; /* 宽度自动 */
    height: auto; /* 高度自动 */
    border-radius: 10px; /* 圆角 */
    transform-origin: center center;
    transition: transform 0.08s ease-out;
    user-select: none;
    -webkit-user-drag: none;
    cursor: default;
    will-change: transform;
}

.modal-content.zoomable {
    cursor: grab;
}

.modal-content.zoomable.is-dragging {
    cursor: grabbing;
}

/* Caption of Modal Image (Image Text) - Optional */
.modal-caption {
    margin: auto;
    display: block;
    width: 95%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, .modal-caption {
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    z-index: 13;
    color: #f1f1f1;
    font-size: 20px; /* 调整为30px */
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 添加鼠标悬停时的指针样式 */
.img_model, .img_result, .img_cloth {
    cursor: zoom-in; /* 鼠标悬停时显示可放大图标 */
}

/* Add this CSS at the end of the file */
.selected {
    border: 2px solid black;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
    z-index: 9998; /* 比弹窗 z-index 小一点，使其位于弹窗之下 */
}

.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 9996;
}

.auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 14, 10, 0.56);
    backdrop-filter: blur(8px);
}

.auth-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(460px, calc(100vw - 40px));
    transform: translate(-50%, -50%);
    padding: 34px 34px 30px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 250, 242, 0.98) 0%, rgba(247, 241, 232, 0.98) 100%);
    box-shadow: 0 30px 70px rgba(11, 9, 7, 0.22);
    border: 1px solid rgba(135, 108, 67, 0.16);
}

.auth-close {
    position: absolute;
    top: 18px;
    right: 18px;
    border: none;
    background: transparent;
    color: #5a5248;
    font-size: 22px;
    cursor: pointer;
}

.auth-brandline {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: #9a8566;
    margin-bottom: 10px;
}

.auth-heading {
    margin: 0;
    font-size: 30px;
    font-weight: 500;
    color: #15120d;
}

.auth-subtitle {
    margin: 10px 0 0;
    color: #675f53;
    font-size: 14px;
    line-height: 1.75;
}

.auth-tabs {
    display: inline-flex;
    margin-top: 24px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(18, 15, 11, 0.06);
}

.auth-tab {
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    background: transparent;
    color: #655b4d;
    cursor: pointer;
    font-size: 13px;
}

.auth-tab.active {
    background: #12100d;
    color: #f7f0e4;
}

.auth-panel {
    margin-top: 24px;
}

.auth-panel-hidden {
    display: none;
}

.auth-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #786d5c;
}

.auth-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(36, 31, 25, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    padding: 14px 16px;
    font-size: 15px;
    color: #1b1814;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
    border-color: rgba(141, 111, 70, 0.45);
    box-shadow: 0 0 0 4px rgba(194, 167, 121, 0.14);
}

.auth-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.auth-input-code {
    margin-bottom: 0;
}

.auth-primary-button,
.auth-secondary-button {
    border: none;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s, background 0.2s;
}

.auth-primary-button:hover,
.auth-secondary-button:hover {
    transform: translateY(-1px);
}

.auth-primary-button {
    width: 100%;
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #15110d 0%, #2f261d 100%);
    color: #f7efe2;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.auth-secondary-button {
    padding: 14px 16px;
    border-radius: 999px;
    background: rgba(22, 19, 15, 0.08);
    color: #2a241d;
    white-space: nowrap;
    font-size: 13px;
}

.auth-secondary-button-wide {
    width: 100%;
}

.button-ghost {
    margin-top: 12px;
    background: rgba(17, 16, 13, 0.12);
    color: #17120d;
}

.purchase-entry {
    width: 100%;
}

.quota-summary {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.quota-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(32, 27, 21, 0.08);
    color: #2b241d;
}

.quota-item-highlight {
    background: linear-gradient(135deg, rgba(25, 22, 17, 0.94) 0%, rgba(56, 44, 31, 0.94) 100%);
    color: #f6eddc;
}

.quota-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quota-value {
    font-size: 16px;
    font-weight: 600;
}

.payment-overlay {
    position: fixed;
    inset: 0;
    z-index: 9997;
}

.payment-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 12, 9, 0.6);
    backdrop-filter: blur(8px);
}

.payment-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(520px, calc(100vw - 32px));
    transform: translate(-50%, -50%);
    padding: 32px 30px 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 250, 242, 0.99) 0%, rgba(246, 240, 232, 0.99) 100%);
    border: 1px solid rgba(135, 108, 67, 0.16);
    box-shadow: 0 32px 80px rgba(11, 9, 7, 0.24);
}

.payment-close {
    position: absolute;
    top: 18px;
    right: 18px;
    border: none;
    background: transparent;
    color: #5a5248;
    font-size: 22px;
    cursor: pointer;
}

.payment-brandline {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: #9a8566;
    margin-bottom: 10px;
}

.payment-heading {
    margin: 0;
    font-size: 30px;
    font-weight: 500;
    color: #15120d;
}

.payment-subtitle {
    margin: 10px 0 0;
    color: #675f53;
    font-size: 14px;
    line-height: 1.75;
}

.payment-products {
    margin-top: 22px;
    display: grid;
    gap: 12px;
}

.payment-product-card {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(34, 28, 21, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    padding: 16px 18px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.payment-product-card:hover {
    border-color: rgba(130, 99, 59, 0.34);
    box-shadow: 0 10px 24px rgba(29, 22, 15, 0.08);
    transform: translateY(-1px);
}

.payment-product-card.is-active {
    border-color: rgba(133, 102, 58, 0.55);
    box-shadow: 0 0 0 4px rgba(194, 167, 121, 0.12);
}

.payment-product-title {
    font-size: 16px;
    color: #17120d;
}

.payment-product-meta {
    margin-top: 6px;
    font-size: 13px;
    color: #726755;
}

.payment-primary-button {
    width: 100%;
    margin-top: 18px;
    padding: 14px 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #15110d 0%, #2f261d 100%);
    color: #f7efe2;
    font-size: 14px;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.payment-primary-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border-radius: 4px;
}

.payment-primary-text {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.payment-primary-button:hover {
    transform: translateY(-1px);
}

.payment-primary-button:disabled {
    opacity: 0.86;
    cursor: not-allowed;
}

.payment-feedback {
    margin: 14px 2px 0;
    min-height: 18px;
    font-size: 12px;
    line-height: 1.6;
    color: #786b57;
}

.payment-feedback-hidden {
    opacity: 0;
    min-height: 0;
}

.payment-feedback-error {
    color: #935a4e;
}

.payment-feedback-success {
    color: #6f6248;
}

.payment-qr-panel {
    margin-top: 20px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(34, 28, 21, 0.08);
}

.payment-order-title {
    font-size: 16px;
    color: #17120d;
}

.payment-order-meta {
    margin-top: 6px;
    font-size: 13px;
    color: #7d725f;
}

.payment-qr-wrap {
    margin: 18px auto 0;
    width: 260px;
    max-width: 100%;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(35, 29, 22, 0.08);
}

.payment-qr-image {
    display: block;
    width: 100%;
    height: auto;
}

.payment-status,
.payment-countdown {
    margin-top: 14px;
    text-align: center;
    color: #6b604f;
    font-size: 13px;
}

.auth-note {
    margin: 14px 2px 0;
    font-size: 12px;
    line-height: 1.8;
    color: #877b6a;
}

.auth-feedback {
    margin: 10px 2px 0;
    min-height: 18px;
    font-size: 12px;
    line-height: 1.6;
    color: #786b57;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.auth-feedback-hidden {
    opacity: 0;
    transform: translateY(-2px);
    pointer-events: none;
}

.auth-feedback-error {
    color: #935a4e;
}

.auth-feedback-success {
    color: #6f6248;
}

.auth-input-error {
    border-color: rgba(158, 86, 69, 0.4) !important;
    box-shadow: 0 0 0 4px rgba(171, 96, 79, 0.1) !important;
}

.auth-button-busy {
    opacity: 0.92;
    cursor: not-allowed !important;
}

.auth-profile-card {
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(43, 35, 25, 0.08);
}

.auth-profile-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #18140f 0%, #433626 100%);
    color: #f8edd9;
    font-size: 18px;
    letter-spacing: 0.12em;
    padding-left: 0.12em;
}

.auth-profile-name {
    font-size: 18px;
    color: #18140f;
}

.auth-profile-email {
    margin-top: 4px;
    color: #7b705f;
    font-size: 13px;
}

.auth-profile-actions {
    margin-top: 18px;
}

.auth-password-setup {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(43, 35, 25, 0.08);
}

.auth-password-setup .auth-input {
    margin-bottom: 12px;
}

.auth-primary-button-compact {
    margin-top: 10px;
}

.auth-password-ready {
    margin: 14px 2px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(22, 19, 15, 0.06);
    color: #5f5443;
    font-size: 12px;
    line-height: 1.7;
}

.auth-note-profile {
    margin-top: 16px;
}
.alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 30px;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s;
    text-align: center;
}

.alert p {
    margin-bottom: 10px;
}

.alert button {
    padding: 4px 30px; /* 调整按钮的上下内边距 */
    background-color: #4caf50;
    color: #fff;
    border: none;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.alert button:hover {
    background-color: #45a049;
}

.blur {
    filter: blur(5px);
    transition: filter 0.3s ease; /* 添加过渡效果 */
}

/* 适配移动端 */
@media only screen and (max-width: 720px) and (max-height: 1280px){
    .header{
        height: 42px;
    }
    .img_result {
        aspect-ratio: 3 / 4.3; /* 宽高比 3:4 */
        height: auto; /* 图片高度100%，撑满父容器 */
        width: 35%; /* 图片宽度调整为100% */
        align-self: end;
        object-fit: cover; /* 确保图片保持其长宽比并覆盖容器 */
        object-position: center;
        margin-bottom: 16%;
    }
    .img_model, .img_cloth {
        height: auto;
        width: 14%;
        max-width: 100%;
        aspect-ratio: 3 / 4; /* 宽高比 3:4 */
        object-fit: cover;
        align-self: end;
        margin-bottom: 16%;
    }
    .main_preview_bottom{
        height: 18%;
        aspect-ratio: 3.8 / 1; /* 宽高比 3:4 */
        margin-bottom: 14%;
        align-self: end;
    }

    .main_preview_up {
        position: absolute;
        width: 100%;
        height: 95%;
        display: flex;
        justify-content: center;
        align-items: center;

    }
    .item {
        height: 80%;
        aspect-ratio: 1 / 1.4;
    }

    .modal-content {
        display: block;
        width: 90%;
        height: auto;
        max-width: 94vw;
        max-height: 76vh;
    }
    .modal-toolbar {
        top: 12px;
        right: 64px;
        gap: 5px;
        padding: 5px 7px;
    }
    .modal-tool-button {
        min-width: 30px;
        height: 30px;
    }
    .main_right_up {
        width: 65%;
        height:auto;
        padding-top: 20px;
        border-radius: 4px;
        top: 0;
        z-index: 1;
    }
    .selection-group img, .selection-group .placeholder {
        width: 14%;
        aspect-ratio: 1 / 1.2;
        margin: 0 10px;
        border-radius: 6px;
        object-fit: inherit;
    }
    .selection-group {
        margin-top: 4px;
        display: flex;
        align-items: center;
        align-self: center;
        margin-bottom: 20px;
    }
    .button {
        min-width: 15%;
        display: inline-block;
        padding: 8px 28px;
        font-size: 0.9em;
        color: white;
        background-color: black;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }
    header {
        background-color: #ffffff;
        height: 52px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-bottom: 1px solid #e7e7e7;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        transition: left 0.3s;
    }
    .title_text {
        font-size: 20px;
        margin: 0;
    }
    .lang-toggle {
        right: 56px;
        font-size: 12px;
        padding: 3px 8px;
    }
    .account-entry {
        right: 10px;
        min-width: 30px;
        padding: 5px;
    }
    .account-kicker {
        font-size: 9px;
        letter-spacing: 0.12em;
    }
    .account-name {
        font-size: 12px;
    }
    .avatar {
        width: 30px;
        height: 30px;
    }
    .content {
        position: relative;
        margin-left: 0;
        transition: margin-left 0.3s;
        background-color: #f1f1f1;
        height: calc(100vh - 80px);
        overflow-y: auto;
        margin-top: 52px;
    }
    .auth-dialog {
        width: min(420px, calc(100vw - 28px));
        padding: 28px 22px 24px;
        border-radius: 22px;
    }
    .auth-heading {
        font-size: 24px;
    }
    .auth-code-row {
        grid-template-columns: 1fr;
    }
    .auth-secondary-button {
        width: 100%;
    }
    .payment-dialog {
        width: min(460px, calc(100vw - 24px));
        padding: 28px 20px 22px;
    }
    .payment-heading {
        font-size: 24px;
    }
    .payment-qr-wrap {
        width: 220px;
        padding: 14px;
    }
}
