html {
    /* 导航栏高 */
    --header_height: 60px;
    /* 移动端按钮主颜色 */
    --color_0052d9: #0052d9;
    /* 选中背景 */
    --color_0052d901: rgb(0, 82, 217, 0.1);
    /* 打印文字的大小 */
    --print_text_size: 16px;
    /* 打印文字的文字颜色 */
    --print_text_color: #6b6b6b;
    /* 打印文字的背景 */
    --print_text_bg: linear-gradient(130deg,
            rgba(255, 182, 193, 0.4),
            rgba(173, 216, 230, 0.4));


    --card_color: #ebf6ff;
    --card_overlay: rgba(255, 255, 255, 0.8);
    --color0: #fff;
    --color1: #000000;
    --border: #e3e8f7de;

    --overlay_brightness:1;

    --header_bg:rgba(255, 255, 255, 0.6);


}

html.Dark {
    /* 导航栏高 */
    --header_height: 60px;
    /* 移动端按钮主颜色 */
    --color_0052d9: #5588d9;
    /* 选中背景 */
    --color_0052d901: rgba(93, 144, 225, 0.131);
    /* 打印文字的大小 */
    --print_text_size: 16px;
    /* 打印文字的文字颜色 */
    --print_text_color: #e0e0e0;
    /* 打印文字的背景 */
    --print_text_bg: linear-gradient(130deg,
            rgba(140, 140, 140, 0.4),
            rgba(151, 151, 151, 0.4));


    --card_color: #282e33;
    --card_overlay: rgba(38, 38, 38, 0.8);
    --color0: #000000;
    --color1: #fff;
    --border: #2a2d35de;
    --overlay_brightness:0.5;

    --header_bg:rgba(57, 57, 57, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-image: var(--pc_bg);
    color: var(--color1);
}
@media (max-width: 800px) {
    body{
        background-image: var(--mob_bg);
    }
}

/* 统一间距 */
.center {
    max-width: 94%;
    height: 100%;
    margin: 0 auto;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

/* 导航栏 */
.header {
    width: 100%;
    height: var(--header_height);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;

    z-index: 100;
}

.header.active {
    background: var(--header_bg);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header .header_box {
    width: 94%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* logo样式优化 */
.header .logo {
    height: 100%;
    width: 100px;
    display: flex;
    align-items: center;
}

.header .logo>img {
    width: 120px;
    height: 75%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.header .logo>img:hover {
    transform: scale(1.05);
}

/* 导航菜单样式 */
.header .bar {
    display: flex;
    align-items: center;
}

.header .bar .bar_btn {
    display: flex;
    gap: 8px;
    padding: 0 10px;
}

/* 导航项样式 */
.header .bar .bar_btn .nav-item {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
 .header.active .bar .bar_btn .nav-item{
    color: #333;
}
.Dark  .header.active .bar .bar_btn .nav-item{
    color: #ffffff;
}


/* 导航项图标 */
.header .bar .bar_btn .nav-item .menu-icon {
    font-size: 16px;
    margin-right: 6px;
    transition: transform 0.3s ease;
}

/* 选中状态 */
.header .bar .bar_btn .nav-item.active {
    color: var(--color_0052d9);
    background: linear-gradient(45deg,
            rgba(55, 123, 232, 0.1),
            rgba(104, 161, 253, 0.05));
}

.header .bar .bar_btn .nav-item.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color_0052d9);
    transform: scaleX(1);
}

/* 悬停效果 */
.header .bar .bar_btn .nav-item:hover {
    color: var(--color_0052d9);
    background: rgba(102, 148, 222, 0.19);
    transform: translateY(-1px);
}

.header .bar .bar_btn .nav-item:hover .menu-icon {
    transform: scale(1.1) rotate(5deg);
}

/* 添加点击涟漪效果 */
.header .bar .bar_btn .nav-item::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.5s, opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}

.header .bar .bar_btn .nav-item:active::after {
    transform: scale(2);
    opacity: 0;
    transition: 0s;
}

/* 导航项进入动画 */
@keyframes navItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header .bar .bar_btn .nav-item {
    animation: navItemFadeIn 0.5s ease forwards;
}

.header .bar .bar_btn .nav-item:nth-child(1) {
    animation-delay: 0.1s;
}

.header .bar .bar_btn .nav-item:nth-child(2) {
    animation-delay: 0.2s;
}

.header .bar .bar_btn .nav-item:nth-child(3) {
    animation-delay: 0.3s;
}



/* 下拉菜单容器 */
.dropdown {
    position: relative;
    display: inline-block;
}

/* 下拉菜单 */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: menuFade 0.3s ease;
    z-index: 1000;
}

/* 深色模式适配 */
.Dark .dropdown-menu {
    background: rgba(30, 30, 30, 0.95);
}

/* 显示下拉菜单 */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

/* 下拉菜单项 */
.dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.Dark .dropdown-item {
    color: #fff;
}

/* 下拉菜单箭头 */
.arrow {
    margin-left: 4px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

/* 下拉菜单动画 */
@keyframes menuFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 调整原有导航项悬停效果 */
.dropdown:hover .nav-item {
    color: var(--color_0052d9);
    background: rgba(102, 148, 222, 0.729);
    transform: translateY(-1px);
}

/* 防止下拉菜单遮挡 */
.bar_btn {
    position: relative;
    z-index: 1;
}
/* 中间内容 */
.main_center {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.main_center .main_cn {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.main_center .main_cn .avatar {
    max-width: 140px;
    max-height: 140px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.8);
    object-fit: cover;
    transition: all 0.3s ease;
}

.main_center .main_cn .avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 192, 203, 0.8);
}

.main_center .main_cn .site-title {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3),
        -2px -2px 4px rgba(255, 255, 255, 0.3);
    padding: 15px 0;
    position: relative;
    display: inline-block;
}

.main_center .main_cn .site-title::after {
    content: '♡';
    position: absolute;
    right: -25px;
    opacity: 0;
    animation: heartBeat 6s infinite;
}

@keyframes heartBeat {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

.main_center .main_cn .motto {
    color: #ffffff;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 1.5rem;
    font-weight: 700;
    /* 文字过渡效果 */
    transition: color 4s ease-in-out;
}

.main_center .main_cn .line {
    width: 50%;
    margin: 20px auto;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.main_center .main_cn .dynamics_text {
    font-size: var(--print_text_size);
    color: var(--print_text_color);
    text-shadow: 0 0 8px #fff;
    text-align: center;
    backdrop-filter: blur(1px);
    border-radius: 10px;
    padding: 10px 6px;
    margin: 0 10px;
    margin: 10px 0px 20px 0px;
    background: var(--print_text_bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main_center .main_cn .contact_me {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main_center .main_cn .contact_me .image_box {
    display: flex;
    padding: 6px;
    margin: 0 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.5s ease;
}

.main_center .main_cn .contact_me .image_box:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.main_center .main_cn .contact_me .image_box:hover>img {
    transform: scale(1.15) rotateY(180deg);
}

.main_center .main_cn .contact_me .image_box>img {
    display: flex;
    width: 22px;
    height: 22px;
    transition: all 0.5s ease;
}




/* 侧边栏菜单样式 */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    /* 稍微加宽一点 */
    width: 280px;
    height: 100%;
    background-color: var(--color0);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}


/* 个人信息区域 */
.sidebar-profile {
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg,
            rgba(255, 182, 193, 0.3),
            rgba(173, 216, 230, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 15px;
    border-radius: 12px;
}

.sidebar-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.sidebar-info h3 {
    color: var(--color1);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.sidebar-info p {
    color: #666;
    font-size: 0.9rem;
}

/* 菜单项样式改进 */
.sidebar .menu-item {
    display: flex;
    padding: 15px 25px;
    color: #666;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.Dark .sidebar .menu-item {
    border-bottom: 1px solid rgba(160, 160, 160, 0.05);
}

.menu-icon {
    font-size: 1.2rem;
    margin-right: 12px;
    opacity: 0.8;
}

.sidebar .menu-item {
    text-decoration: none;
    font-size: 1rem;
}


/* 选中状态样式 */
.sidebar .menu-item.active {
   
    color: var(--color_0052d9);
}

.sidebar .menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--color_0052d9), #6e9fff);
}

/* 悬停效果 */
.sidebar .menu-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
    transform: translateX(5px);
}

/* 二次元装饰元素 */
.sidebar-decoration {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    position: relative;
}

.kawaii-text {
    color: #ff69b4;
    font-size: 1rem;
    margin-top: 10px;
    animation: bounce 2s infinite;
}


/* 新增CSS样式 */
.has-submenu {
    position: relative;
    flex-direction: column;
    padding: 0 !important;
}

.submenu-header {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.arrow {
    margin-left: auto;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 20px;
}

.has-submenu.active .submenu {
    max-height: 300px; /* 根据实际内容调整 */
}

.has-submenu.active .arrow {
    transform: rotate(90deg);
}

.submenu-item {
    padding: 12px 35px;
    font-size: 0.95em;
    color: #666;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.submenu-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
    transform: translateX(8px);
}

/* 可爱的动画效果 */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.sidebar-decoration::before,
.sidebar-decoration::after {
    content: '✿';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ff69b4;
    animation: floatAnimation 2s infinite alternate;
}

.sidebar-decoration::before {
    left: 20px;
}

.sidebar-decoration::after {
    right: 20px;
}

@keyframes floatAnimation {
    from {
        transform: translateY(-50%) translateX(0);
    }

    to {
        transform: translateY(-50%) translateX(5px);
    }
}

/* 滚动条美化 */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .sidebar {
        left: -300px;
    }

    .sidebar.active {
        left: 0;
    }
}

.sidebar_toggle {
    display: none;
}


/* 页脚 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    position: relative;
    border-radius: 20px 20px 0 0;
    backdrop-filter: b;
    padding: 50px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.footer .box {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.footer .box .text {
    text-align: center;
    padding: 3px 0;
}


/* 媒体查询：当屏幕宽度小于等于 768px 时应用以下样式 */
@media screen and (max-width: 768px) {

    /* 隐藏导航栏 */
    .center .header {
        display: none;
    }

    /* 显示侧边栏按钮 */
    .sidebar_toggle {
        display: block;
        /* 在移动端显示 */
        position: absolute;
        top: 20px;
        left: 20px;
        cursor: pointer;
        color: white;
        background-color: var(--color_0052d9);
        padding: 5px 10px;
        border-radius: 10px;
        font-size: 18px;
        /* 增大侧边栏按钮的字体 */
    }

    .sidebar_toggle:hover {
        transform: scale(1.1);
        transition: all 0.3s;
    }


    .main_center .main_cn .avatar {
        width: 110px;
        height: 110px;
    }
}





#bannerWave1 {
    height: 84px;
    background: url(../img/bannerWave1.png) repeat-x;
    width: 200%;
    z-index: 10
}

#bannerWave1,
#bannerWave2 {
    opacity: 0.6;
    position: absolute;
    bottom: 0;
    left: 0;
    -webkit-animation: gradientBG 120s linear infinite;
    animation: gradientBG 120s linear infinite
}

#bannerWave2 {
    height: 100px;
    background: url(../img/bannerWave2.png) repeat-x;
    width: 400%;
    z-index: 5
}

@keyframes gradientBG {
    0% {
        background-position: 0 50%
    }

    50% {
        background-position: 100% 50%
    }

    to {
        background-position: 0 50%
    }
}

.overlay-blur {
    width: 100vw;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    backdrop-filter: blur(0px) brightness(var(--overlay_brightness));
    z-index: -1;
    will-change: backdrop-filter;
    transition: all 0.2s;
}


.daohang {

    overflow: hidden;
    padding: 25px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    font-size: 20px;
}

.mian h2 {
    margin-top: 10px;
    font-size: 30px;
}

* {
    min-width: 0;
    min-height: 0;
}


.main a {
    text-decoration: none;
    color: inherit;

}

.card1 {
    background-color: var(--card_color);
    border-radius: 30px;
    gap: 40px;
    height: 330px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 50px;

}

.card1 img {
    width: 100%;
    object-fit: cover;
}

.card1 svg {
    width: 100px;
    height: 100px;
    fill: currentColor;
}

.card2 {
    border-radius: 12px;

    gap: 40px;
    height: 330px;

}

.card3 {
    border-radius: 12px;

    gap: 40px;
    height: 330px;
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 20px;
}

.card3>div {
    background-color: var(--card_color);
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 30px;
    text-align: center;
    position: relative;
}

.clock-container {
    position: relative;
    width: 200px;
    height: 200px;
}

/* 表盘SVG */
.clock-container svg {
    width: 100%;
    height: 100%;
    fill: #b4c5ff;
}

/* 旋转容器 */
.hands-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 指针通用样式 */
.hand {
    position: absolute;

    transform-origin: bottom center;
    /* 旋转中心在底部 */
    transition: transform 0.5s ease-in-out;
    /* 平滑动画 */
}

/* 时针 */
.hour-hand {
    width: 12px;
    height: 50px;
    top: calc(50% - 50px);
    left: calc(50% - 12px);
    border-radius: 100px;
    background-color: #595e72;
}

/* 分针 */
.minute-hand {
    width: 12px;
    height: 70px;
    top: calc(50% - 70px);
    left: calc(50% - 12px);

    border-radius: 100px;
    background-color: #3e5aa9;
}

/* 秒针 */
.second-hand {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 50%;

    top: 0;
    left: 0;
    transform-origin: initial
}

.second-hand div {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #3e5aa9;
    position: absolute;
    top: 20px;
    transform: translateX(-50%);
    left: 50%;
}

.card3 .clock .time {
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.card3 .clock .date {
    font-size: 1.5rem;
    margin-top: 10px;
    opacity: 0.8;
}



.card3 .yiyan .circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgb(255, 255, 255);
    position: absolute;
    right: 30px;
    bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.card3 .yiyan .circle svg {
    width: 20px;
    height: 20px;
}

.card2 {
    display: grid;
    grid-template-rows: 1fr 1fr;

    gap: 20px;

}

.card2 .mail {
    width: 100%;
    border-radius: 30px;
    background-color: var(--card_color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    justify-items: center;
}

.card2 svg {
    width: 90px;
    height: 90px;


}

.card2 .h2 {
    font-size: 35px;
}

.card2 .qq-wechat {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card2 .qq,
.card2 .wechat {
    height: 100%;
    background-color: var(--card_color);
    border-radius: 30px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    justify-items: center;
}


.card1 .des {
    text-align: start;
    font-size: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
}



.card1 img {
    height: 100%;
    border-radius: 30px;
}

.music-player {
    background-color: var(--card_color);
    border-radius: 30px;

    gap: 40px;
    position: relative;
    height: 330px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.music-player .cover {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.music-player .cover img {
    height: 150px;
    object-fit: cover;
    border-radius: 25px;
    /* 保持正方形 */
}

.music-player p {
    font-size: 30px;
    text-align: end;
}

.music-player .controls {
    position: absolute;
    bottom: 40px;
    right: 40px;
}

.music-player .play-pause-btn {
    background-color: #007bff;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.music-player .play-pause-btn:hover {
    background-color: #0056b3;
}

.music-player .pause-icon {
    display: none;
}

/* 播放状态切换 */
.music-player .play-pause-btn.playing .play-icon {
    display: none;
}

.music-player .play-pause-btn.playing .pause-icon {
    display: inline;
}

.randomimg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 1200px) {
    .clock-container {
        position: relative;
        width: 100px;
        height: 100px;
    }

    .hour-hand {
        width: 7px;
        height: 25px;
        top: calc(50% - 25px);
        left: calc(50% - 7px);
        border-radius: 100px;
        background-color: #595e72;
    }

    /* 分针 */
    .minute-hand {
        width: 7px;
        height: 30px;
        top: calc(50% - 30px);
        left: calc(50% - 7px);

        border-radius: 100px;
        background-color: #3e5aa9;
    }

    .second-hand div {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #3e5aa9;
        position: absolute;
        top: 10px;
        transform: translateX(-50%);
        left: 50%;
    }

    .main h2 {
        margin-top: 10px;
        font-size: 20px;
    }

    .card2 h2 {
        margin-top: 0;
    }

    .main {
        font-size: 18px;
    }

    .main {
        grid-template-columns: 1fr;
    }

    .card3 .clock .time {
        font-size: 1rem;

    }

    .card3 .clock .date {
        font-size: 1rem;
        margin-top: 10px;
        opacity: 0.8;
    }



    .card1,

    .card3,
    .music-player {
        height: 180px;
    }


    .card2 {
        height: 250px;
        grid-template-rows: 2fr 5fr;
    }

    .card2 .qq,
    .card2 .wechat {

        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        justify-items: start;
        padding: 30px;

    }

    .card1,
    .music-player {
        padding: 20px;
    }

    .music-player .cover img {
        height: 90px;
        object-fit: cover;
        border-radius: 25px;
    }

    .card1 svg {
        width: 50px;
        height: 50px;
        fill: currentColor;
    }

    .card2 svg {
        width: 28px;
        height: 28px;
    }



    .card3 .yiyan .circle {
        width: 30px;
        height: 30px;
        right: 20px;
        bottom: 20px;

    }

    .card3 .yiyan h2 {
        font-size: 16px;
    }

    .card3 .yiyan {

        justify-content: flex-start;

    }

    .card3 .yiyan .circle svg {
        width: 15px;
        height: 15px;

    }

    .main {
        font-size: 15px;
        text-align: center;
    }

    .card1 .des {
        font-size: 15px;
    }


    .music-player p {
        font-size: 25px;
        text-align: end;
    }

    .music-player .controls {
        position: absolute;
        bottom: 30px;
        right: 30px;
    }


}

.api-list {
    width: 100%;
    max-width: 1200px;

    margin: 50px auto;
    box-sizing: border-box;
    text-align: center;
}

.api-list h2 {
    font-size: 35px;
    color: #333;
    margin: 48px 0;
    display: inline-flex;
    align-items: center;
    position: relative;
    justify-content: center;
}

.api-list h2::before,
.api-list h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 180px;
    height: 1px;
    background-color: #333;
}

.api-list h2::before {
    right: 100%;
    margin-right: 15px;
}

.api-list h2::after {
    left: 100%;
    margin-left: 15px;
}

.api-list h2 svg {
    width: 28px;
    height: 28px;
}

.api-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.api-card {
    flex: 0 1 32%;
    height: 260px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.api-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.api-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: var(--card_overlay);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    /*  align-items: center;*/
    padding: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.api-card .overlay h3 {
    margin: 0;
    font-size: 23px;
    color: var(--color1);
}

.api-card .overlay p {
    margin: 5px 0 0;
    font-size: 18px;
    color: var(--color1);
}

.api-card .overlay p:last-child {

    text-align: end;
}

.api-card:hover .overlay {
    height: 60%;
}

.api-card:hover img {
    transform: scale(1.1);
}

@media (max-width: 1200px) {
    .stats {
        width: 100%;
    }

    .stat {
        flex: 1 1 100%;
    }

    .api-card {
        flex: 1 1 100%;
        max-width: 100%;
        aspect-ratio: 1 / 1.2;
    }
}







/*友情链接
*/


.friendlinks-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.friendlinks-title {
    text-align: center;
    color: var(--color1);
    margin-bottom: 40px;
    font-size: 2.5em;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}


.friend-link {
    flex: 1 1 30%;
    min-width: 300px;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
}
.Dark .friend-link{
    background-color: #2c2c2c;
}
.friend-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.link-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.link-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-info h3 {
    margin: 0 0 10px;
    color: #2c3e50;
    font-size: 1.2em;
}

.link-info p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9em;
    line-height: 1.4;
}

.header-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.apply-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(76, 175, 80, 0.2);
}

.apply-button:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(76, 175, 80, 0.3);
}


.application-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #333;
}


.application-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.cancel-btn,
.submit-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: #f0f0f0;
    color: #666;
}

.cancel-btn:hover {
    background: #e0e0e0;
}

.submit-btn {
    background: #4CAF50;
    color: white;
    position: relative;
}

.submit-btn:hover {
    background: #45a049;
}


.loading-dots {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-dots::after {
    content: '...';
    animation: dots 1s infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}


@media (max-width: 768px) {
    .friend-link {
        flex-basis: 100%;
        max-width: 100%;
    }

    .friendlinks-title {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .friend-link {
        flex-direction: column;
        text-align: center;
    }

    .link-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .modal-content {
        width: 95%;
    }

    .form-actions {
        flex-direction: column;
    }

    .cancel-btn,
    .submit-btn {
        width: 100%;
    }
}

.alert-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 2000;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        top: -50px;
    }

    to {
        top: 20px;
    }
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}




















.float_button {
    position: fixed;
    right: 60px;
    bottom: 60px;
    z-index: 9999999;
}

.float_button .upward,
.float_button .day_night {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color0);
    border: 1px solid var(--border);
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.float_button div svg {
    width: 25px;
    height: 25px;
    fill: var(--color1);
}

.float_button .upward {
    display: none;
}

@media (max-width: 1200px) {
    .float_button {
        bottom: 20px;
        right: 20px;
    }
}