@font-face {
    font-family: zitijiaaizaozichunfeng;
    src: url('/static/font/zitijiaaizaozichunfeng.ttf')
}
@font-face {
    font-family: hanyiyongzixiachan65j;
    src: url('/static/font/hanyiyongzixiachan65j.ttf')
}

body {
    background: #fff url('https://loveing.xiaofan.ink/static/img/rud.svg');
    margin: 0;
}

a {
    color: inherit; /* 继承父元素的颜色 */
    text-decoration: none; /* 去掉下划线 */
}

a:hover {
    /* 可以在这里定义悬停时的样式 */
    color: inherit; /* 继承父元素的颜色 */
    text-decoration: none; /* 去掉下划线 */
}

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

/* 当屏幕宽度大于等于 768px 时，应用电脑设备的样式 */
@media (min-width: 768px) {
    #container {
        width: 70%;
        margin: 0 auto; /* 水平居中 */
    }

    .timecard {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .banner {
        height: 20rem !important;
    }
}

/* 头部 logo */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: nowrap;
}

.header-wrap {
    height: 3rem;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #e5e5e5;
    z-index: 99;
}

.logo {
    color: #ff5500;
    transition: all 0.2s linear;
    text-shadow: 0 2px 2px rgb(0 0 0 / 25%);
}

/*  swiper  */
.swiper {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-slide {
    overflow: hidden;
}

/* 轮播框架 */
.banner {
    height: 15rem;
    background: #6e6b6b66;
    position: relative;
    margin: 1rem 0.5rem 0.5rem;
    border-radius: 1rem;
    box-shadow: 1px 1px 10px #6e6b6b66;
}

/* 悬浮头像 */
.us {
    position: absolute;
    top: 50%;
    z-index: 80;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none; /* 设置鼠标穿透 */
}

.us-info {
    display: flex;
    align-items: center;
    justify-content: space-around;

    padding: 0 10px;
}

.he-img img {
    width: 5rem;
    height: 5rem;
    border-radius: 10rem;
    border: 0.2rem solid #fff;
}

.he-img span {
    border-radius: 15px;
    background: #7d7d7dd6;
    border: 1px solid #ffffffd1;
    font-size: 13px;
    padding: 4px;
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #fff;
}

.she-img img {
    width: 5rem;
    height: 5rem;
    border-radius: 10rem;
    border: 0.2rem solid #fff;
}

.she-img span {
    border-radius: 15px;
    background: #7d7d7dd6;
    border: 1px solid #ffffffd1;
    font-size: 13px;
    padding: 4px;
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #fff;
}

.icon-love img {
    width: 3rem;
    height: 3rem;
    border: none;
    animation: img 2s linear infinite;
}

@keyframes img {
    0% {
        transform: scale(0.5, 0.5);
    }

    70% {
        transform: scale(0.8, 0.8);
    }

    100% {
        transform: scale(0.5, 0.5);
    }
}

/* 通知 */
.notice {
    margin: 0.5rem;
    padding: 1rem 0.5rem;
    background-color: #333333;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    border-radius: 0.7rem;
    box-sizing: border-box;
    letter-spacing: 1px;
}

/* tabs */

.tabs {
    background-image: linear-gradient(to right, #45a4ec 0%, #61bbff 51%);
    color: #fff;
    border-radius: 5px;
    padding: 15px;
    display: flex;
    align-items: center;
    margin: 1.5rem 0.5rem;
    box-shadow: 3px 3px 7px 0px #d3d3d3f7;
}

.tabs i {
    font-size: 20px;
    margin-right: 0.2rem;
}

.tabs span {
    font-weight: 700;
}

.tabs:hover {
    background-position: right center; /* change the direction of the change here */
}

/* 倒计时 */
.countdown {
    background-color: #fff;
    margin: 0.5rem 0.5rem 10px;
    padding: 15px;
    font-size: 13px;
    overflow: hidden;
    box-shadow: 1px 1px 20px 0px #e7e7e7;
    border-radius: 0.7rem;
    text-align: center;
}

.countdown p {
    font-size: 20px;
    color: #a25bf0;
    margin: 0;
    font-family: hanyiyongzixiachan65j;
}

.timecounter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    padding: 20px;
    font-family: hanyiyongzixiachan65j;
}

.timecounter span {
    animation: float 2s ease-in-out infinite, colorChange 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes colorChange {
    0%, 100% {
        color: #685fea;
    }
    50% {
        color: #ff6b6b;
    }
}

/* 可选：为每个时间单位添加不同的动画延迟，以增加层次感 */
#t_d {
    animation-delay: 0s;
}

#t_h {
    animation-delay: 0.2s;
}

#t_m {
    animation-delay: 0.4s;
}

#t_s {
    animation-delay: 0.6s;
}


/* 计时卡片 */
.timecard {
    margin: 0.5rem;
}

.timecard .card-list {
    color: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.timecard .card-list .info-r {
    display: flex;
    flex-direction: column;
    align-items: end;
}

.color1 {
    background-color: #55aaffe0; /* 使用背景色变量 */
    box-shadow: 3px 3px 5px 1px #55aaff50; /* 使用背景色变量生成阴影 */
}

.color2 {
    background-color: #fc5d79e0; /* 使用背景色变量 */
    box-shadow: 3px 3px 5px 1px #fc5d7950; /* 使用背景色变量生成阴影 */
}

.color3 {
    background-color: #55aa7fe0; /* 使用背景色变量 */
    box-shadow: 3px 3px 5px 1px #55aa7f50; /* 使用背景色变量生成阴影 */
}

.color4 {
    background-color: #ff9800; /* 橙色 */
    box-shadow: 3px 3px 5px 1px #ff980050; /* 橙色阴影 */
}

.color5 {
    background-color: #8e24aa; /* 深紫色 */
    box-shadow: 3px 3px 5px 1px #8e24aa50; /* 深紫色阴影 */
}


/* 最新留言 */
.ly-list {
    margin: 0.5rem;
    position: relative;
}

.ly-item {
    background-color: #fff;
    margin-bottom: 10px;
    padding: 15px;
    font-size: 14px;
    overflow: hidden;
    box-shadow: 0 0 15px #ebedf0f7;
    border-radius: 1rem;
    display: flex;
    align-items: center;
}

.ly-item .toux {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    border-radius: 0.2rem;
    background-size: cover;
    box-shadow: 0 3px 11px #a59c9c57;
}

.ly-item .info {
    font-size: 14px;
    display: block;
    margin-left: 1rem;
    width: 70%;
}

.ly-item .content {
    margin: 5px 0;
    color: #7f7f7f;
    padding: 0.5rem 1rem;
    border-radius: 0.6rem;
    background: #f5f5f5;
}

/* 最新动态 */
.dt-list {
    margin: 0.5rem;
    position: relative;
}

.dt-item {
    background-color: #fff;
    padding: 15px;
    font-size: 14px;
    overflow: hidden;
    box-shadow: 0 0 15px #ebedf0f7;
    border-radius: 1rem;
    margin-bottom: 10px;
}

.dt-item .userinfo {
    display: flex;
    align-items: center;
}

.dt-item .userinfo .toux {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    border-radius: 0.2rem;
    background-size: cover;
    box-shadow: 0 3px 11px #a59c9c57;
}

.dt-item .userinfo .name {
    font-size: 14px;
    display: block;
    color: #6b6b6b;
    margin-left: 1rem;
}

.dt-item .userinfo .btn {
    position: absolute;
    right: 1rem;
    background: #38acff;
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: 700;
}

.dt-item .title {
    margin: 1rem 0;
}

.dt-item .content {
    color: #7f7f7f;
    padding: 0.5rem 1rem;
    border-radius: 0.6rem;
    background: #f5f5f5;
    margin: 1rem 0;
}

/*  底部版权  */
.footer {
    text-align: center;
    color: #777;
    font-size: 12px;
    padding-bottom: 10rem;
}

.footer a {
    text-align: center;
    color: #777;
    text-decoration: none
}


/*  底部导航  */
.footer-nav {
    /*悬浮在屏幕最下方*/
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff;
    box-shadow: 1px 10px 50px rgba(0, 0, 0, 0.2);
}

.footer-nav .nav-tab {
    display: flex;
    padding: 0;
    justify-content: space-around;
    margin: 5px;
}

.footer-nav .nav-tab a {
    padding: 10px;
    display: grid;
    align-items: center;
    justify-content: space-evenly;
    font-size: 14px;
    width: 100px;
    color: rgba(0, 0, 0, 0.8);
    text-align: center;
    /* 去掉按下时的默认蓝色块块 */
    -webkit-tap-highlight-color: transparent; /* 针对 iOS 设备 */
    -webkit-user-select: none; /* 防止文本被选中 */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.footer-nav .nav-tab a.selected {
    -webkit-animation: slide-in 800ms forwards;
    animation: slide-in 800ms forwards;
    color: #38acff;
    padding: 0 10px;

}

.footer-nav .nav-tab a.selected i {
    font-size: 25px;
}

/*   相册列表   */
.xf-list {
    margin: 0.5rem;
    position: relative;
}

.xf-item {
    background-color: #fff;
    padding: 15px;
    font-size: 14px;
    overflow: hidden;
    box-shadow: 0 0 15px #ebedf0f7;
    border-radius: 1rem;
}

.xf-item .userinfo {
    display: flex;
    align-items: center;
}

.xf-item .userinfo .toux {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    border-radius: 0.2rem;
    background-size: cover;
    box-shadow: 0 3px 11px #a59c9c57;
}

.xf-item .userinfo .name {
    font-size: 14px;
    display: block;
    color: #6b6b6b;
    margin-left: 1rem;
}

.xf-item .title {
    color: #7f7f7f;
    padding: 0.5rem 1rem;
    border-radius: 0.6rem;
    background: #f5f5f5;
    margin: 1rem 0;
}

.xf-item .imgs {
    gap: 0.6rem;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.xf-item .imgs img {
    width: 100%;
    border-radius: 0.6rem;
    object-fit: cover;
    box-shadow: none;
    margin-bottom: 0.4rem;
    border: none;
    transition: all 0.1s;
    aspect-ratio: 1 / 1;
    grid-column: span 4;
}

/*  打卡列表    */
.xd-list {
    margin: 0.5rem;
}

.xd-item {
    background-color: #fff;
    margin-bottom: 10px;
    padding: 20px;
    font-size: 14px;
    overflow: hidden;
    box-shadow: 0 0 15px #ebedf0f7;
    border-radius: 1rem;
}

.xd-item .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.xd-item .img-list {
    margin-top: 0.5rem;
    border-top: 1px solid #aaaaaaaa;

    overflow: hidden; /* 确保内容不会溢出 */
    max-height: 100%;
    transition: max-height 1s ease-out; /* 设置过渡效果 */
}

.xd-item .img-list img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 2px 10px #bbbbbb61;
    border: 1px solid rgba(208, 206, 206, 0.4);
    margin-top: 0.7rem;
    aspect-ratio: 1/1;
}

/*   文章详情   */
.hj-info {
    margin: 0.5rem;
    background-color: #fff;
    padding: 15px;
    font-size: 14px;
    overflow: hidden;
    box-shadow: 0 0 15px #ebedf0f7;
    border-radius: 1rem;
}

.hj-info .userinfo {
    display: flex;
    align-items: center;
}

.hj-info .userinfo .toux {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    border-radius: 0.2rem;
    background-size: cover;
    box-shadow: 0 3px 11px #a59c9c57;
}

.hj-info .userinfo .name {
    font-size: 14px;
    display: block;
    color: #6b6b6b;
    margin-left: 1rem;
}

.hj-info .title {
    margin: 1rem 0;
    color: #ff8a70;
    text-shadow: 0 2px 2px #ff8a7063;
}

.hj-info .content {
    margin: 1rem 0;
    letter-spacing: 0.1rem;
    font-size: 15px;
}

.hj-info img {
    width: 100%;
    box-shadow: 2px 3px 12px 0 rgb(220 211 211 / 15%);
    border-radius: 12px;
    margin: 0.5rem 0;
}

/* 进度条 */
#progress {
    position: fixed;
    height: 2px;
    top: 0;
    background: #32BACA;
    transition: opacity 500ms linear
}

#progress.done {
    opacity: 0
}

#progress span {
    position: absolute;
    height: 2px;
    -webkit-box-shadow: #32BACA 1px 0 6px 1px;
    -webkit-border-radius: 100%;
    opacity: 1;
    width: 150px;
    right: -10px;
    -webkit-animation: pulse 2s ease-out 0s infinite;
}

@-webkit-keyframes pulse {
    30% {
        opacity: .6
    }
    60% {
        opacity: 0;
    }
    100% {
        opacity: .6
    }
}