:root {
    --theme-color: rgb(132, 199, 254);
    --theme-color-active: rgba(132, 217, 254, 0.637);
    --white-a-5: rgba(255, 255, 255, .05);
    --white-a-10: rgba(255, 255, 255, .1);
    --white-a-15: rgba(255, 255, 255, .15);
    --white-a-20: rgba(255, 255, 255, .2);
    --white-a-30: rgba(255, 255, 255, .3);
    --white-a-50: rgba(255, 255, 255, .5);
    --white-a-60: rgba(255, 255, 255, .6);
    --white-a-70: rgba(255, 255, 255, .7);
    --white-a-80: rgba(255, 255, 255, .8);
    --white-a-90: rgba(255, 255, 255, .9);
    --white-a-1: rgba(255, 255, 255, 1);
    --bg-white-p: white;
    --bg-white-s: rgb(245, 245, 245);
    --bg-white-pure: white;
    --bg-white-245: rgb(245, 245, 245);
    --txt-white-pure: white;
    --txt-b-pure: black;
    --txt-b-60: rgba(0, 0, 0, .6);
    --txt-b-tip: rgba(0, 0, 0, .8);
    --black-a-5: rgba(0, 0, 0, .05);
    --black-a-10: rgba(0, 0, 0, .1);
    --black-a-15: rgba(0, 0, 0, .15);
    --black-a-20: rgba(0, 0, 0, .2);
    --black-a-30: rgba(0, 0, 0, .3);
    --black-a-35: rgba(0, 0, 0, .35);
    --black-a-40: rgba(0, 0, 0, .4);
    --black-a-50: rgba(0, 0, 0, .5);
    --black-a-60: rgba(0, 0, 0, .6);
    --black-a-70: rgba(0, 0, 0, .7);
    --black-a-80: rgba(0, 0, 0, .8);
    --black-a-90: rgba(0, 0, 0, .9);
    --black-a-1: rgba(0, 0, 0, 1);
    --popup-main: rgba(255, 255, 255, .8);
    --box: rgba(255, 255, 255, .4);
    --box-overlay: rgba(0, 0, 0, .1);
    --nav-bar: rgba(255, 255, 255, .8);
    --container-1: rgba(255, 255, 255, .8);
    --container-2: rgba(245, 245, 245, .8);
    --image-overlay: rgba(0, 0, 0, 0);
}

.dark {
    --white-a-5: rgba(0, 0, 0, .05);
    --white-a-10: rgba(0, 0, 0, .1);
    --white-a-15: rgba(0, 0, 0, .15);
    --white-a-20: rgba(0, 0, 0, .2);
    --white-a-30: rgba(0, 0, 0, .3);
    --white-a-50: rgba(30, 30, 30, .5);
    --white-a-60: rgba(0, 0, 0, .6);
    --white-a-70: rgba(30, 30, 30, .7);
    --white-a-80: rgba(30, 30, 30, .8);
    --white-a-90: rgba(30, 30, 30, .9);
    --white-a-1: rgba(30, 30, 30, 1);
    --bg-white-p: rgb(40, 40, 40);
    --bg-white-s: rgb(30, 30, 30);
    --bg-white-pure: rgb(30, 30, 30);
    --bg-white-245: rgb(40, 40, 40);
    --txt-white-pure: black;
    --txt-b-pure: white;
    --txt-b-60: rgba(255, 255, 255, .8);
    --txt-b-tip: rgba(255, 255, 255, .5);
    --black-a-5: rgba(255, 255, 255, .05);
    --black-a-10: rgba(255, 255, 255, .1);
    --black-a-15: rgba(255, 255, 255, .15);
    --black-a-20: rgba(255, 255, 255, .2);
    --black-a-30: rgba(255, 255, 255, .3);
    --black-a-35: rgba(255, 255, 255, .35);
    --black-a-40: rgba(255, 255, 255, .4);
    --black-a-50: rgba(255, 255, 255, .5);
    --black-a-60: rgba(255, 255, 255, .6);
    --black-a-70: rgba(255, 255, 255, .7);
    --black-a-80: rgba(255, 255, 255, .8);
    --black-a-90: rgba(255, 255, 255, .9);
    --black-a-1: rgba(255, 255, 255, 1);
    --popup-main: rgba(0, 0, 0, .6);
    --box: rgba(30, 30, 30, .3);
    --box-overlay: rgba(0, 0, 0, .1);
    --nav-bar: rgba(30, 30, 30, .6);
    --container-1: rgba(30, 30, 30, .7);
    --container-2: rgba(30, 30, 30, .76);
    --image-overlay: rgba(0, 0, 0, .3);
    color-scheme: dark
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    height: 100%;
    width: 100%;
    margin: 0;
    overflow-x: hidden;
    background-color: var(--white-a-1);
    font-family: "PingFang SC", "Microsoft Yahei", "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
    cursor: default;
    transition: background-color .25s, color .25s;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: text;
    user-select: text
}

@font-face {
  font-family: "思源宋体 SemiBold";font-weight: 600;src: url("../font/YpxBMnfYWFZr.woff2") format("woff2"),
  url("../font/xz1StJUn0S3x.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: "阿里妈妈方圆体 VF Regular";src: url("../font/pMnyJNAcok8h.woff2") format("woff2"),
  url("../font/xHbbQIqTjLVu.woff") format("woff");
  font-display: swap;
}

.font-zdy-1 {
    font-family: "思源宋体 SemiBold"
}

.font-zdy-2 {
    font-family: "阿里妈妈方圆体 VF Regular"
}

/*@font-face {*/
    /*font-family: iconfont;*/
    /*src: url(https://at.alicdn.com/t/font_2846856_updxcm8q8gp.woff2?t=1633095104768) format('woff2'), url(https://at.alicdn.com/t/font_2846856_updxcm8q8gp.woff?t=1633095104768) format('woff'), url(https://at.alicdn.com/t/font_2846856_updxcm8q8gp.ttf?t=1633095104768) format('truetype')*/
/*}*/
/**/
/*i {*/
    /*font-family: iconfont !important;*/
    /*font-style: normal;*/
    /*-webkit-font-smoothing: antialiased;*/
    /*-webkit-text-stroke-width: 0;*/
    /*-moz-osx-font-smoothing: grayscale*/
/*}*/

.current-light::after {
    content: "☀️天亮了"
}

.current-dark::after {
    content: "🌕天黑了"
}

.current-light-b::after {
    content: "☀️"
}

.current-dark-b::after {
    content: "🌕"
}

/*基础元素*/

a {
    text-decoration: none;
    transition: .25s
}

a.link {
    color: var(--theme-color);
    border-bottom: 1px solid transparent;
    cursor: pointer;
    transition: .25s
}

a.link:hover {
    border-color: var(--theme-color);
    transition: .25s
}

a.link:active {
    border-color: var(--theme-color-active);
    color: var(--theme-color-active);
    transition: .25s
}

p {
    transition: color .25s
}

h1 {
    margin-bottom: 20px;
    font-weight: 400;
    font-size: 76px;
    color: var(--txt-b-pure);
}

h2 {
    margin-top: 25px;
    font-weight: 400;
    font-size: 15px;
    color: var(--txt-b-pure);
}

h2 span {
    color: rgba(255, 255, 255, .6);
}

h3 {
    margin-bottom: 20px;
    font-size: 30px;
    color: var(--txt-b-pure);
    transition: color .25s
}

h4 {
    margin: 0;
    color: var(--txt-b-pure);
    font-size: 28px
}

h5 {
    color: var(--txt-b-pure);
    font-size: 24px;
    text-align: center
}

.dividing-line {
    display: inline-block;
    width: calc(100% - 60px);
    height: 1px;
    margin: 15px 30px;
    background-color: var(--black-a-10)
}

/*导航栏*/
.btn-menu {
    position: absolute;
    top: 31.5px;
    right: 120px;
    width: 25px;
    height: 2px;
    padding: 6px 0;
    border-top: 2px solid;
    border-bottom: 2px solid;
    box-sizing: unset;
    background-clip: content-box;
    transition: .25s;
    cursor: pointer;
    display: none; /* 默认隐藏 */
}

@media screen and (max-width:760px) {
    /* 手机端显示菜单按钮 */
    .btn-menu {
        display: block;
    }
}
.nav-list a {
    color: white;
    position: relative;
    cursor: pointer;
    transition: .25s
}

#nav-bar {
    position: fixed;
    z-index: 997;
    top: 0;
    width: 100%;
    height: 90px;
    transition: .25s
}

.nav-bar-blur {
    height: 50px !important;
    backdrop-filter: blur(20px);
    background-color: var(--nav-bar);
    -webkit-box-shadow: rgba(0, 0, 0, .03) 0 5px 10px;
    -moz-box-shadow: rgba(0, 0, 0, .03) 0 5px 10px;
    box-shadow: rgba(0, 0, 0, .03) 0 5px 10px;
}

#nav-logo-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 30px;
    left: 200px;
    height: 26px;
    transition: .25s
}

#nav-link-container {
    position: absolute;
    right: 170px;
    top: 30px;
    white-space: nowrap;
    transition: .25s
}

.nav-link-all-blur {
    top: 14px !important;
}

.nav-link-logo-blur {
    top: 1.1px !important;
    height: 26px !important;
    margin-left: -10px;
}

.nav-link {
    position: relative;
    cursor: pointer;
    transition: .25s
}

.nav-link-blur {
    color: var(--txt-b-pure) !important;
}

.nav-link-logo {
    color: #fff !important;
    font-weight: bold;
    font-size: 20px !important;
    padding: 10px 10px !important;
    left: -20px;
}

.nav-link-logo-blur {
    color: var(--txt-b-pure) !important;
    font-weight: bold;
    font-size: 20px !important;
    padding: 10px 10px !important;
    left: -20px;
}

#nav-bar .nav-link {
    margin: 0 5px;
    padding: 10px 18px;
    border-radius: 5px;
    color: #fff;
    font-size: 15px
}

#nav-bar .nav-link:before {
    position: absolute;
    left: 20px;
    bottom: 3px;
    width: calc(100% - 40px);
    height: 3px;
    content: '';
    background: var(--theme-color);
    border-radius: 2px;
    transition: .25s;
    transform: scale(0);
    opacity: 0
}

#nav-bar .nav-link:hover {
    background-color: var(--black-a-5)
}

#nav-bar .nav-link:hover:before {
    transform: scale(1);
    opacity: 1
}

#nav-bar .nav-link:active,
#nav-bar .nav-link:active:before {
    opacity: .6
}

.btn-menu {
    position: absolute;
    top: 31.5px;
    right: 120px;
    width: 25px;
    height: 2px;
    padding: 6px 0;
    border-top: 2px solid;
    border-bottom: 2px solid;
    box-sizing: unset;
    background-clip: content-box;
    transition: .25s;
    cursor: pointer;
    display: none; /* 默认隐藏 */
}

/* 移动端适配 */
@media screen and (max-width:760px) {
    #nav-logo-container {
        left: 25px
    }

    #nav-link-container {
        display: none
    }

    .btn-menu {
        right: 25px;
        display: block; /* 仅在移动端显示 */
    }
}


.btn-menu-blur {
    top: 16.5px !important;
    border-color: var(--black-a-60) !important;
    background-color: var(--black-a-60) !important;
}

#nav-bar .btn-menu {
    border-color: rgba(255, 255, 255, .8);;
    background-color: rgba(255, 255, 255, .8);
}

#nav-bar .btn-menu:hover {
    border-color: rgba(255, 255, 255, .6);
    background-color: rgba(255, 255, 255, .6)
}

.btn-menu:active {
    opacity: .6
}

/*欢迎页*/

#welcome {
    position: fixed;
    top: 30%;
    width: 100%;
    text-align: center;
    font-size: 0;
    opacity: 1;
    visibility: visible;
    transition: opacity .25s ease, visibility 0s;
}

.welcome-hide {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity .25s ease, visibility 0s .25s !important;
}

/* 首屏的“现在”小条：日期、时间、建站天数 */
.welcome-now {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 92%;
    margin: 16px auto 0;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(0, 0, 0, .18);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: .3px;
    font-family: "PingFang SC", "Microsoft Yahei", "Segoe UI", Arial, sans-serif;
}

.welcome-now-dot {
    color: rgba(255, 255, 255, .32);
}

@media screen and (max-width: 600px) {
    .welcome-now {
        gap: 4px;
        padding: 6px 10px;
        font-size: 12px;
    }
}

.heading-underline {
    display: inline-block;
    width: 70px;
    height: 4px;
    border-radius: 2px;
    background-color: var(--theme-color)
}

.heading-underline-1 {
    display: inline-block;
    width: 50px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--theme-color)
}

.page-bg {
    opacity: 0; /* 初始透明 */
    transform: scale(1.15); /* 初始缩放 */
    transition: opacity 1s, transform 1.5s ease-out;
}

.page-bg-on {
    z-index: -100;
    position: fixed;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-image: url(../image/bg-1920.webp);
    opacity: 1; /* 初始透明 */
    transform: scale(1); /* 初始缩放 */
    transition: opacity 1s, transform 1.5s ease-out;
}

#bg-dark-overlay,
.overlay {
    z-index: -99;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transition: .25s;
    background-color: rgba(0, 0, 0, .2);
}

.dark #bg-dark-overlay {
    background-color: rgba(0, 0, 0, .4);
}

#scroll-down-wrapper {
    position: absolute;
    bottom: 50px;
    width: 100%
}

#scroll-down-icon {
    position: absolute;
    left: calc(50% - 10px);
    border-right: 3px solid;
    border-top: 3px solid;
    border-color: rgba(255, 255, 255, .5);
    border-radius: 2px;
    box-sizing: unset;
    height: 20px;
    width: 20px;
    transform: rotate(135deg);
    cursor: pointer;
    transition: .25s;
    animation: twinkle 2s 2s
}

#scroll-down-icon:hover {
    border-color: #fff
}

#scroll-down-icon:active {
    border-color: rgba(255, 255, 255, .35)
}

/*主要内容*/

#about,
#journey,
#work,
footer {
    position: relative;
    top: 100%;
    width: 100%;
    padding-top: 80px;
    padding-bottom: 100px;
    font-size: 0;
    text-align: center;
    transition: background-color .25s, color .25s
}

#about,
#journey {
    backdrop-filter: blur(30px);
    background-color: var(--container-1);
}

#work {
    backdrop-filter: blur(30px);
    background-color: var(--container-2);
}

.tags-container {
    margin-top: 25px;
    font-size: small
}

.tags-container span {
    display: inline-block;
    margin: 3px;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: var(--black-a-5);
    color: var(--black-a-60);
    transition: background-color .25s, color .25s
}

.tags-container span:hover {
    background-color: var(--black-a-10);
    color: var(--txt-b-pure);
    -webkit-box-shadow: rgba(0, 0, 0, .1) 0 5px 10px;
    -moz-box-shadow: rgba(0, 0, 0, .1) 0 5px 10px;
    box-shadow: rgba(0, 0, 0, .1) 0 5px 10px
}

.about-content {
    position: relative;
    margin-top: 25px;
    width: 100%;
    color: var(--black-a-80);
    font-size: 14px
}

/*导航菜单*/

.box-close-btn {
    position: absolute;
    width: 25px;
    height: 2px;
    padding: 6px 0;
    border-top: 2px solid;
    border-bottom: 2px solid;
    box-sizing: unset;
    background-clip: content-box;
    transition: .25s;
    cursor: pointer;
    border-color: var(--black-a-60);
    background-color: var(--black-a-60);
    margin: 0;
}

.box-close-btn:hover {
    border-color: var(--theme-color);
    background-color: var(--theme-color)
}

.box-close-btn:active {
    opacity: .6
}

.box-li {
    display: block;
    padding: 15px 30px;
    border-radius: 8px;
    color: var(--black-a-80);
    font-size: 16px;
    position: relative;
    cursor: pointer;
    transition: .25s
}

.box-li:hover {
    background-color: var(--black-a-5);
    color: var(--txt-b-pure);
    transition: .25s
}

.box-li:active {
    background-color: var(--black-a-10);
    transform: scale(.98);
    transition: .25s
}

.box-li span {
    float: right;
    color: var(--black-a-50);
    transition: .25s
}

.boxclose {
    right: 0;
    width: 35px;
    height: 35px;
    display: block;
    position: fixed;
    z-index: 2;
    top: 0;
    margin: 10px 10px 0 0
}

.boxclosee{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%
}

.box {
    width: 200px;
    max-width: 90%;
    height: auto;
    max-height: calc(100% - 80px);
    overflow-y: auto;
    right: 0;
    margin: 20px 20px 20px 20px;
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(20px);
    background: var(--box);
    border: 1px solid var(--black-a-15);
    border-radius: 10px;
    position: fixed;
    z-index: 999;
    top: 0;
    padding: 20px 10px 20px 10px;
    -webkit-box-shadow: rgba(0, 0, 0, .1) 0 0 30px;
    -moz-box-shadow: rgba(0, 0, 0, .1) 0 0 30px;
    box-shadow: rgba(0, 0, 0, .1) 0 0 30px;
    font-size: 0;
    opacity: 1;
    transition: transform .25s ease, opacity .25s ease;
}

.box-hide {
    transform: translateX(100%);
    opacity: 0;
    overflow: hidden;
    transition: transform .25s ease, opacity .25s ease;
}

.box-overlay {
    position: fixed;
    z-index: 998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--box-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility 0s .25s;
}

.box-overlay-hide {
    opacity: 1;
    visibility: visible;
    transition: opacity .25s ease, visibility 0s;
}

/*弹窗内样式*/

.popupage-top {
    position: fixed;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    z-index: 997;
    margin: 0;
}

.popupage-dark {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--black-a-5);
    cursor: pointer;
}

.popupage-content {
    position: relative;
    /*height: 100%;*/
    padding: 0 25px 0 25px;
    overflow-x: hidden
}

.tip-text {
    padding-top: 20px;
    color: var(--black-a-60);
    font-size: 0.9em;
    line-height: 1.8
}

/*卡片元素*/

.multicard {
    display: flex;
    position: relative;
    padding: 50px 6% 20px 6%;
    flex-wrap: wrap;
    justify-content: center
}

.multicard-popupage {
    display: flex;
    position: relative;
    padding: 50px 0px 20px 0px;
    flex-wrap: wrap;
    justify-content: center
}

.card {
    width: 300px;
    max-width: calc(100vw - 60px);
    height: 250px;
    margin: 0 15px 30px 15px;
    background-color: var(--white-a-30);
    border: 1px solid var(--black-a-5);
    border-radius: 10px;
    -webkit-box-shadow: rgba(0, 0, 0, .03) 0 5px 10px;
    -moz-box-shadow: rgba(0, 0, 0, .03) 0 5px 10px;
    box-shadow: rgba(0, 0, 0, .03) 0 5px 10px;
    text-align: left;
    overflow: hidden;
    transition: .25s;
    cursor: pointer;
}

.card-in-popuppage {
    background-color: var(--white-a-1);
}

.card:hover {
    -webkit-box-shadow: rgba(0, 0, 0, .2) 0 10px 30px;
    -moz-box-shadow: rgba(0, 0, 0, .2) 0 10px 30px;
    box-shadow: rgba(0, 0, 0, .2) 0 10px 30px
}

.card-image-div {
    height: 155px;
}

.card-image {
    position: relative;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: var(--black-a-10);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.card-image-overlay {
    position: relative;
    z-index: 996;
    left: 0;
    top: -100%;
    width: 100%;
    height: 100%;
    transition: .25s;
    background-color: var(--image-overlay);
}

.card-context {
    padding: 10px 20px
}

.card-title {
    margin: 5px 0 0;
    color: var(--txt-b-pure);
    font-size: 16px;
    font-weight: 700
}

.card-description {
    margin: 1px 0 0;
    color: var(--txt-b-pure);
    font-size: small;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.card-addendum {
    margin: 9px 0 0;
    font-size: 12px;
    color: var(--black-a-50)
}

.card-addendum span {
    float: right;
}

.card-tag-green {
    color: #639222;
    background-color: rgba(99, 146, 34, .1);
    padding: 0 5px;
    border-radius: 3px
}

.card-tag-yellow {
    color: #997c1e;
    background-color: rgba(153, 124, 30, .1);
    padding: 0 5px;
    border-radius: 3px
}

.card-tag-purple {
    color: #6c38c0;
    background-color: rgba(108, 56, 192, .1);
    padding: 0 5px;
    border-radius: 3px
}

/*屏幕尺寸优化*/

@media screen and (max-width:1300px) {
    #nav-logo-container {
        left: 100px
    }

    #nav-link-container {
        right: 145px
    }

    .btn-menu {
        right: 95px
    }
}

@media screen and (max-width:900px) {
    #nav-logo-container {
        left: 70px
    }

    #nav-link-container {
        right: 115px
    }

    .btn-menu {
        right: 65px
    }
}

@media screen and (max-width:760px) {
    #nav-logo-container {
        left: 25px
    }

    #nav-link-container {
        display: none
    }

    .btn-menu {
        right: 25px
    }
}

@media screen and (max-height:470px) {
    #welcome {
        top: 20%;
    }
}

@media screen and (max-height:400px) {
    #welcome {
        top: 15%;
    }
}

/* 弹窗样式 */
.card-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1002;
    justify-content: center;
    align-items: center;
  }
  
  .card-popup-content {
    position: relative;
    width: 80%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    background: var(--bg-white-pure);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 20px;
    animation: popupIn 0.3s ease;
    color: var(--txt-b-pure);
    border: 1px solid var(--black-a-15);
  }
  
  .card-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--txt-b-60);
    z-index: 1; /* 确保按钮在最上层 */
  }
  
  .card-popup-left {
    flex: 1;
    min-width: 200px;
  }
  
  .card-popup-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    background-color: var(--black-a-10); /* 图片加载前的背景 */
  }
  
  .card-popup-right {
    flex: 2;
    padding: 10px;
  }
  
  .card-popup-right h3 {
    margin: 0 0 15px 0;
    color: var(--txt-b-pure);
    font-size: 24px;
  }
  
  .card-popup-right p {
    margin: 0;
    color: var(--txt-b-60);
    line-height: 1.6;
    font-size: 16px;
  }
  
  @media (max-width: 480px) {
    .card-popup-content {
      width: 90%;
      padding: 15px;
    }
    
    .card-popup-img {
      height: 120px;
    }
    
    .card-popup-close {
      top: 8px;
      right: 8px;
      font-size: 24px;
    }
  }
    .card-popup-right h3 {
      font-size: 20px;
    }
    
    .card-popup-right p {
      font-size: 14px;
    }
  /* 弹窗背景为半透明白色 */
.card-popup-overlay {
    background: rgba(0, 0, 0, 0.5); /* 半透明黑色遮罩 */
  }
  
  .card-popup-content {
    background: rgba(255, 255, 255, 0.85); /* 半透明白色背景 */
    backdrop-filter: blur(20px); /* 毛玻璃效果 */
  }

  /* 新增动画关键帧 */
@keyframes popupIn {
    from {
      opacity: 0;
      transform: scale(0.9);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  @keyframes popupOut {
    from {
      opacity: 1;
      transform: scale(1);
    }
    to {
      opacity: 0;
      transform: scale(0.9);
    }
  }
  
  /* 应用动画 */
  .card-popup-content {
    animation: popupIn 0.3s ease;
  }
  
  .card-popup-content.hide {
    animation: popupOut 0.3s ease forwards;
  }

/* 半透明白色背景 */
.card-popup-overlay {
    background: rgba(0, 0, 0, 0.5) !important;
  }
  
  .card-popup-content {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) !important;
  }
  
  /* 动画效果 */
  @keyframes popupIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
  }
  
  @keyframes popupOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.9); }
  }
  
  .card-popup-content {
    animation: popupIn 0.3s ease !important;
  }
  
  .card-popup-content.hide {
    animation: popupOut 0.3s ease forwards !important;
  }
  
  /* 手机端优化 */
  @media (max-width: 480px) {
    .card-popup-content {
      width: 90% !important;
      padding: 15px !important;
    }
    .card-popup-img {
      height: 120px !important;
    }
    .card-popup-close {
      top: 8px !important;
      right: 8px !important;
      font-size: 24px !important;
    }
  }
  .progress-container {
    position: absolute;
    bottom: 80px;
    width: 200px;
    text-align: center;
}

.progress-border {
    position: relative;
    height: 24px;
    border: 2px solid #000;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--theme-color);
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #000;
    z-index: 1;
}

.loading-status {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* 暗黑模式适配 */
.dark .progress-border {
    border-color: #fff;
}
.dark .progress-text {
    color: #fff;
}
.dark .loading-status {
    color: rgba(255,255,255,0.8);
}

/* 手机端弹窗：由左右两栏改为上下排列，避免挤成一条 */
@media (max-width: 480px) {
    .card-popup-content {
        flex-direction: column;
        gap: 12px;
    }
    .card-popup-left {
        min-width: 0;
        width: 100%;
    }
    .card-popup-img {
        width: 100%;
        height: 160px !important;
    }
    .card-popup-right {
        width: 100%;
        padding: 0;
    }
    .card-popup-right h3 {
        margin-bottom: 8px;
    }
}

/* 复制群号后的小提示 */
.toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    z-index: 1006;
    max-width: 86vw;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .82);
    color: #fff;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity .25s, transform .25s;
}
.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* 切换主题的瞬间关掉过渡，避免毛玻璃和背景颜色产生拖影 */
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
    transition: none !important;
}

/* 唱片播放器：控制直接叠在唱片上（leleo 式） */
.record-player {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 996;
    width: 160px;
    height: 160px;
}

.record-hit {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.record-disc {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle at center, rgba(255, 255, 255, .045) 0 1px, transparent 1px 5px),
        radial-gradient(circle, #343434 0 20%, #131313 56%, #080808 100%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .42);
    animation: record-spin 7s linear infinite;
    animation-play-state: paused;
}

.record-player.is-playing .record-disc {
    animation-play-state: running;
}

.record-disc::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
    pointer-events: none;
}

.record-cover {
    width: 74px;
    height: 74px;
    border: 3px solid rgba(0, 0, 0, .55);
    border-radius: 50%;
    object-fit: cover;
}

.record-hole {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #0b0b0b;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .16);
}

.record-ui {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    background: rgba(6, 10, 18, .64);
    color: #fff;
    text-align: center;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, .25);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .24s, visibility 0s .24s;
}

.record-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    max-width: 132px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .5);
}

.record-meta strong {
    overflow: hidden;
    max-width: 128px;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.record-meta small {
    overflow: hidden;
    max-width: 128px;
    color: rgba(255, 255, 255, .7);
    font-size: 9px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.record-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: auto;
}

.player-skip,
.player-play {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.player-skip {
    width: 26px;
    height: 26px;
    opacity: .8;
    transition: opacity .2s, transform .2s;
}

.player-skip:hover {
    opacity: 1;
    transform: scale(1.08);
}

.player-skip svg {
    width: 17px;
    height: 17px;
}

.player-play {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--theme-color);
    color: #0b1b3a;
    transition: transform .2s;
}

.player-play:hover {
    transform: scale(1.06);
}

.player-play svg {
    width: 18px;
    height: 18px;
}

.icon-pause {
    display: none;
}

.record-player.is-playing .icon-play {
    display: none;
}

.record-player.is-playing .icon-pause {
    display: block;
}

@media (hover: hover) and (min-width: 601px) {
    .record-player:hover .record-ui {
        opacity: 1;
        visibility: visible;
        transition: opacity .24s, visibility 0s;
    }
}

.record-player.is-open .record-ui {
    opacity: 1;
    visibility: visible;
    transition: opacity .24s, visibility 0s;
}

.record-spacer {
    height: 190px;
}

@media screen and (max-width: 600px) {
    .record-player {
        right: 14px;
        bottom: 14px;
        width: 118px;
        height: 118px;
    }

    .record-disc {
        width: 118px;
        height: 118px;
    }

    .record-cover {
        width: 56px;
        height: 56px;
    }

    .record-ui {
        gap: 6px;
    }

    .record-meta {
        max-width: 100px;
    }

    .record-meta strong {
        max-width: 98px;
        font-size: 11px;
    }

    .record-meta small {
        max-width: 98px;
        font-size: 8px;
    }

    .record-controls {
        gap: 10px;
    }

    .player-skip {
        width: 22px;
        height: 22px;
    }

    .player-skip svg {
        width: 15px;
        height: 15px;
    }

    .player-play {
        width: 34px;
        height: 34px;
    }

    .player-play svg {
        width: 16px;
        height: 16px;
    }

    .record-spacer {
        height: 140px;
    }
}

@keyframes record-spin {
    to { transform: rotate(360deg); }
}