@import url("https://fonts.googleapis.com/css?family=Playfair+Display:700|IBM+Plex+Sans:500&display=swap");
*{margin:0;padding:0;list-style-type:none;}
:root {
    --color-primary: #6B7A8F;
    --color-secondary: #101118;
    --color-accent: #1D1F2F;
    --color-focus: #6D64F7;
    --base-duration: 600ms;
    --base-ease: cubic-bezier(0.25, 0.46, 0.45, 0.84);
}

*, *:before, *:after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    font-family: 'IBM Plex Sans', sans-serif;
    background-color:#2a5377;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

.visuallyhidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.icon {
    fill: var(--color-primary);
    width: 100%;
}

.btn {
    background-color: #8644edc7;
    border: none;
    border-radius: 0.125rem;
    color: white;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 1rem 5.5rem 1.125rem;
}
.btn:focus {
    /* outline-color: var(--color-focus);
    outline-offset: 2px;
    outline-style: solid;
    outline-width: 3px; */
}
.btn:active {
    -webkit-transform: translateY(1px);
    transform: translateY(1px);
}

.slider__controls {
    display: flex;
    justify-content: center;
    position: absolute;
    top: calc(100% + 1rem);
    width: 100%;
    display: none;
}
.slider__controls .btn {
    --size: 3rem;
    align-items: center;
    background-color: transparent;
    border: 3px solid transparent;
    border-radius: 100%;
    display: flex;
    height: var(--size);
    padding: 0;
    width: var(--size);
}
.slider__controls .btn:focus {
    border-color: var(--color-focus);
    outline: none;
}
.slider__controls .btn--previous > * {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

.slider {
    --slide-size: 70vmin;
    --slide-margin: 4vmin;
    height: var(--slide-size);
    margin: 0 auto;
    position: relative;
    width: var(--slide-size);
}

.slider__wrapper {
    display: flex;
    margin: 0 calc(var(--slide-margin) * -1);
    position: absolute;
    transition: -webkit-transform var(--base-duration) cubic-bezier(0.25, 1, 0.35, 1);
    transition: transform var(--base-duration) cubic-bezier(0.25, 1, 0.35, 1);
    transition: transform var(--base-duration) cubic-bezier(0.25, 1, 0.35, 1), -webkit-transform var(--base-duration) cubic-bezier(0.25, 1, 0.35, 1);
}

.slide {
    align-items: center;
    color: white;
    display: flex;
    flex: 1;
    flex-direction: column;
    height: var(--slide-size);
    justify-content: center;
    margin: 0 var(--slide-margin);
    opacity: 0.25;
    position: relative;
    text-align: center;
    transition: opacity calc(var(--base-duration) / 2) var(--base-ease), -webkit-transform calc(var(--base-duration) / 2) var(--base-ease);
    transition: opacity calc(var(--base-duration) / 2) var(--base-ease), transform calc(var(--base-duration) / 2) var(--base-ease);
    transition: opacity calc(var(--base-duration) / 2) var(--base-ease), transform calc(var(--base-duration) / 2) var(--base-ease), -webkit-transform calc(var(--base-duration) / 2) var(--base-ease);
    width: var(--slide-size);
    z-index: 1;
}
.slide--previous:hover, .slide--next:hover {
    opacity: 0.5;
}
.slide--previous {
    cursor: w-resize;
}
.slide--previous:hover {
    -webkit-transform: translateX(2%);
    transform: translateX(2%);
}
.slide--next {
    cursor: e-resize;
}
.slide--next:hover {
    -webkit-transform: translateX(-2%);
    transform: translateX(-2%);
}

.slide--current {
    --x: 0;
    --y: 0;
    opacity: 1;
    pointer-events: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}
@media (hover: hover) {
    .slide--current:hover .slide__image-wrapper {
        -webkit-transform: scale(1.025) translate(calc(var(--x) / 50 * 1px), calc(var(--y) / 50 * 1px));
        transform: scale(1.025) translate(calc(var(--x) / 50 * 1px), calc(var(--y) / 50 * 1px));
    }
}

.slide--current .slide__image-wrapper{
    box-shadow: 1px 1px 25px 0 #fff;
}

.slide__image-wrapper {
    background-color: var(--color-accent);
    border-radius: 1%;
    height: 100%;
    left: 0%;
    overflow: hidden;
    position: absolute;
    top: 0%;
    transition: -webkit-transform calc(var(--base-duration) / 4) var(--base-ease);
    transition: transform calc(var(--base-duration) / 4) var(--base-ease);
    transition: transform calc(var(--base-duration) / 4) var(--base-ease), -webkit-transform calc(var(--base-duration) / 4) var(--base-ease);
    width: 100%;
}

.slide__image {
    height: 110%;
    left: -5%;
    -o-object-fit: cover;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: -5%;
    transition: opacity var(--base-duration) var(--base-ease), -webkit-transform var(--base-duration) var(--base-ease);
    transition: opacity var(--base-duration) var(--base-ease), transform var(--base-duration) var(--base-ease);
    transition: opacity var(--base-duration) var(--base-ease), transform var(--base-duration) var(--base-ease), -webkit-transform var(--base-duration) var(--base-ease);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 110%;
}
@media (hover: hover) {
    .slide--current .slide__image {
        -webkit-transform: translate(calc(var(--x) / 20 * 1px), calc(var(--y) / 20 * 1px));
        transform: translate(calc(var(--x) / 20 * 1px), calc(var(--y) / 20 * 1px));
    }
}

.slide__headline {
    font-size: 8vmin;
    font-weight: 600;
    position: relative;
    color: #9356f2c9;
}

.slide__content {
    opacity: 0;
    padding: 4vmin;
    position: relative;
    transition: -webkit-transform var(--base-duration) var(--base-ease);
    transition: transform var(--base-duration) var(--base-ease);
    transition: transform var(--base-duration) var(--base-ease), -webkit-transform var(--base-duration) var(--base-ease);
    visibility: hidden;
}
.slide--current .slide__content {
    -webkit-animation: fade-in calc(var(--base-duration) / 2) var(--base-ease) forwards;
    animation: fade-in calc(var(--base-duration) / 2) var(--base-ease) forwards;
    visibility: visible;
}
@media (hover: hover) {
    .slide--current .slide__content {
        -webkit-transform: translate(calc(var(--x) / 60 * -1px), calc(var(--y) / 60 * -1px));
        transform: translate(calc(var(--x) / 60 * -1px), calc(var(--y) / 60 * -1px));
    }
}
.slide__content > * + * {
    margin-top: 2rem;
}

@-webkit-keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    cursor: pointer;
    touch-action: none; /* 防止默认触摸行为 */
}


.image-modal-content {
    width: 80vw;  /* 设置宽度为视窗宽度的80% */
    height: 80vh; /* 设置高度为视窗高度的80% */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s ease-out;
    transform-origin: center center;
}

.middle {
    width: 100%;
    margin-top: 30px;
}

.data-form{
    width: 100%;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-item{
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
}
.form-item:last-child {
    margin-bottom: 0;
}
.tong-submit-btn{
    margin: 0 auto;
    padding: 6px 35px;
    background: #ea4c89;
    color: #fff;
    border: none;
}
.ml-10{
    margin-left: 10px;
}

.age-input{
    padding: 6px;
}

.menu {
    width: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.item {
    overflow: hidden;
}

.login-history {
    position: relative;
    display: block;
    padding: 16px 20px;
    color: #fff;
    text-align: center;
}

.login-history::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    left: 20px;
    bottom: -7px;
    transform: rotate(45deg);
}

.login-history i {
    margin-right: 10px;
}

.smenu {
    background: #333;
    overflow: hidden;
    transition: max-height .3s;
    max-height: 0;
}

.smenu a {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px;
    color: #fff;
    font-size: 14px;
    margin: 4px 0;
    position: relative;
}
.smenu a:hover {
    background-color: rgba(255,192,203,0.8);
}


.smenu a:hover::before {
    opacity: 1;
}

.smenu a .avatar {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
}

.smenu a .name {
    flex: 1;
    margin-left: 10px;
    text-align: left;
}

.smenu a .user-id {
    width: 80px;
    text-align: right;
}



.item:target .smenu {
    max-height: 14em;
}

/* 添加二维码图片特定样式 */
.image-modal-content.qrcode {
    width: 300px;
    height: 300px;
}

.image-modal-close {
    position: absolute;
    top: 35px;
    right: 65px;
    color: white;
    font-size: 60px;
    cursor: pointer;
    z-index: 9999999;
    width: 65px;
    height: 65px;
    text-align: center;
    line-height: 65px;
}

.modal-wrapper{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.data-box{
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
}


/* 添加触摸提示 */
/* .image-modal-content::after {
  content: '点击右上角关闭';
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
  pointer-events: none;
  animation: fadeOut 2s forwards;
} */

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}
