* {
    padding: 0;
    margin: 0;
    transition-timing-function: cubic-bezier(.19, 1, .22, 1);
}

body {
    font-family: Helvetica, Tahoma, Arial, "Microsoft YaHei", "微软雅黑", SimSun, "宋体", Heiti, "黑体", sans-serif;
    ;
    -webkit-font-smoothing: antialiased;
    color: #fff;
    line-height: 2;
    padding: 0 5%;
    background-color: #212121;
    font-size: 17px;
    overflow-x: hidden;
}

::selection {
    background: rgba(255, 255, 255, .08);
}

.intro {
    position: relative;
}

.clear:after {
    content: "";
    display: block;
    height: 0;
    visibility: hidden;
    clear: both;
}

.chatbox>.line {
    display: none;
}

#startrack {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: .5;
    object-fit: cover;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 120vh;
}

.background .cover {
    position: absolute;
    bottom: 00%;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to top, rgba(32, 32, 32, 1) 30%, rgba(32, 32, 32, 0) 100%);
}

@keyframes bg {
    0% {
        transform: rotate(0deg);
        border-radius: 0;
    }
    50% {
        transform: rotate(180deg);
        border-radius: 0;
    }
    100% {
        transform: rotate(360deg);
        border-radius: 0;
    }
}

@-webkit-keyframes bg {
    0% {
        transform: rotate(0deg);
        border-radius: 0;
    }
    50% {
        transform: rotate(180deg);
        border-radius: 0;
    }
    100% {
        transform: rotate(360deg);
        border-radius: 0;
    }
}

@-ms-keyframes bg {
    0% {
        transform: rotate(0deg);
        border-radius: 0;
    }
    50% {
        transform: rotate(180deg);
        border-radius: 0;
    }
    100% {
        transform: rotate(360deg);
        border-radius: 0;
    }
}

@-moz-keyframes bg {
    0% {
        transform: rotate(0deg);
        border-radius: 0;
    }
    50% {
        transform: rotate(180deg);
        border-radius: 0;
    }
    100% {
        transform: rotate(360deg);
        border-radius: 0;
    }
}

.ch {
    width: 100%;
    padding-bottom: 60px;
    animation: fadedown 1s cubic-bezier(.19, 1, .22, 1);
    -webkit-animation: fadedown 1s cubic-bezier(.19, 1, .22, 1);
    -ms-animation: fadedown 1s cubic-bezier(.19, 1, .22, 1);
    -moz-animation: fadedown 1s cubic-bezier(.19, 1, .22, 1);
}

.ch h2.chtitle {
    padding-bottom: 30px;
    font-size: 26px;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .5);
}

.ch h2.chtitle span {
    color: #fff;
}

.ch h2.chtitle:after {
    content: '';
    display: block;
    width: 10%;
    height: 5px;
    background-color: rgba(255, 255, 255, .5);
    margin-top: 30px;
}

@keyframes fadedown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@-webkit-keyframes fadedown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@-ms-keyframes fadedown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@-moz-keyframes fadedown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    position: relative;
    margin: 0 auto;
    height: 100%;
    max-width: 1800px;
}

.intro {
    color: #fff;
}

.intro .container {
    animation: fadedown 3.5s cubic-bezier(.19, 1, .22, 1);
    -webkit-animation: fadedown 3.5s cubic-bezier(.19, 1, .22, 1);
    -ms-animation: fadedown 3.5s cubic-bezier(.19, 1, .22, 1);
    -moz-animation: fadedown 3.5s cubic-bezier(.19, 1, .22, 1);
}

.hello {
    padding: 5% 0;
}

.hello h1 {
    font-size: 78px;
    letter-spacing: .2em;
    font-weight: 1000;
    line-height: 1.35em;
}

.hello .avatar {
    height: 150px;
    width: 150px;
    border-radius: 100%;
    float: left;
    margin-right: 50px;
}

.hello .circle {
    display: inline-flex;
    margin-right: 12px;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}

.hello .circle span {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50%;
    margin: 0 2px !important;
    display: inline-block;
    animation: circle-pulse 1.5s infinite ease-in-out;
}

.hello .circle span:nth-child(1) {
    background: #5D8BF4 !important;
    animation-delay: 0s;
}

.hello .circle span:nth-child(2) {
    background: #90B8F8 !important;
    animation-delay: 0.2s;
}

.hello .circle span:nth-child(3) {
    background: #AB4ADB !important;
    animation-delay: 0.4s;
}

/* 鼠标悬停时暂停动画 */
.hello .circle:hover span {
    animation-play-state: paused;
}

.readme {
    font-size: 18px;
    letter-spacing: .2em;
}

.readme sup {
    font-size: .76em;
}

.readme p {
    margin-bottom: 1.8em;
}

.readme a {
    position: relative;
    color: #fff;
    margin: 0 5px;
    text-decoration: none;
    transition: .3s all;
}

.readme a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 95%;
    height: 3px;
    background-color: rgba(255, 255, 255, .6);
    transition: .1s all;
}

.readme a:hover::after {
    background-color: rgba(255, 255, 255, 1);
    height: 5px;
}

.readme .b {
    font-weight: bold;
}

ul.skill li .progress div {
    animation: progressin 7s;
    -webkit-animation: progressin 7s;
    -ms-animation: progressin 7s;
    -moz-animation: progressin 7s;
}

@keyframes progressin {
    from {
        width: 0;
    }
}

@-webkit-keyframes progressin {
    from {
        width: 0;
    }
}

@-ms-keyframes progressin {
    from {
        width: 0;
    }
}

@-moz-keyframes progressin {
    from {
        width: 0;
    }
}

.links a {
    color: #fff;
    text-decoration: none;
}

.gate-friends {
    display: none;
}

.gate .container {
    background-color: #333;
    border-radius: 10px;
}

.ch-content {
    padding: 0 2%;
}

.gate .links .item {
    margin: 5px 0;
    padding: 15px 1.5%;
    float: left;
    width: 22%;
    height: 60px;
    transition: .2s all;
    opacity: .85;
}

.gate .links .item.akarin {
    opacity: .58;
}

.gate .links .item:hover {
    opacity: 1;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, .25);
    transform: translateY(-5px);
    box-shadow: 0 3px 20px rgba(0, 0, 0, .28);
    animation: index-link-active 1s cubic-bezier(0.315, 0.605, 0.375, 0.925) forwards;
}

.gate .links .item .avatar {
    float: left;
    height: 60px;
    line-height: 60px;
    width: 60px;
    border-radius: 100%;
    text-align: center;
    margin-right: 15px;
    background-color: #353535;
    overflow: hidden;
}

.gate .links .item .avatar i {
    font-size: 24px;
}

.gate .links .item .avatar img {
    height: 60px;
    max-width: 60px;
    border-radius: 100%;
}

.gate .links .item .inner h5 {
    font-weight: normal;
    font-size: 17px;
}

.gate .links .item .inner p {
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
}

.gate .links .item .inner h5,
.gate .links .item .inner p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer {
    letter-spacing: .3em;
}

.footer a {
    color: inherit;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer h3 {
    font-weight: normal;
    font-size: 20px;
    margin: 6px 0;
}

.footer p {
    font-size: 12px;
    opacity: .3;
}

.footer p.c {
    margin-top: 20px;
    letter-spacing: .1em;
}

.find-me a {
    text-decoration: none;
    color: #fff;
}

.find-me .item {
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    position: relative;
    text-align: center;
    transition: .2s all;
    position: relative;
    margin: 10px 20px 10px 0;
}

.find-me .item i {
    position: relative;
    display: inline-block;
    font-size: 26px;
    z-index: 2;
    transition: .3s all;
}

.find-me .item span {
    font-size: 12px;
    display: block;
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 80px;
    height: auto;
    line-height: 1;
    z-index: 2;
    opacity: 0;
    transition: .3s all;
}

.find-me .item:hover span {
    opacity: .6;
    bottom: 16px;
}

.find-me .item:hover i {
    transform: translateY(-10px);
}

.find-me .item::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: #333;
    transition: .2s all;
    border-radius: 2px;
    z-index: 0;
}

.find-me .item:nth-child(1)::after {
    background-color: #66ccff;
}

.find-me .item:nth-child(2)::after {
    background-color: #0088cc;
}

.find-me .item:nth-child(3)::after {
    background-color: #F58930;
}

.find-me .item:nth-child(4)::after {
    background-color: #28a9e0;
}

.find-me .item:nth-child(5)::after {
    background-color: #f09199;
}

.find-me .item:nth-child(6)::after {
    background-color: #f12d35;
}

.find-me .item:nth-child(7)::after {
    background-color: #555;
}

.find-me .item:nth-child(8)::after {
    background-color: #b600ff;
}

.find-me .item:hover {
    transform: translateY(-3px);
}

.find-me .item:hover::after {
    height: 100%;
    border-radius: 10px;
}

.roll-tag {
    display: none;
    transition: .1s all;
    width: 100%;
    position: relative;
    height: 80px;
    margin-bottom: 10px;
}

.roll-tag.active {
    display: inline-block;
}

.roll-tag span {
    position: absolute;
    animation: tag-entering 0.1s ease-in-out;
    box-shadow: 0 0 20px rgba(0, 0, 0, .28);
    background-color: #333;
    border-radius: 10px;
    padding: 10px 20px;
    display: inline-block;
    white-space: nowrap;
    transform-origin: center left;
}

.roll-tag span::before {
    content: '#';
    margin-right: 5px;
    display: inline;
}

.roll-tag span.removing {
    animation: tag-removing 0.1s ease-in-out;
}

.enter-list {
    margin-left: -2%;
    margin-right: -2%;
}

.enter-list .item {
    position: relative;
    float: left;
    margin: 0 2%;
    width: 29.33%;
    display: block;
    color: #fff;
    text-decoration: none;
    height: 160px;
    background-color: #333;
    border-radius: 10px;
    transition: .2s all;
}

.enter-list .item:hover {
    background-color: #383838;
    transform: translateY(-5px);
    animation: index-link-active 1s cubic-bezier(0.315, 0.605, 0.375, 0.925) forwards;
}

.enter-list .item .text {
    position: absolute;
    bottom: 10%;
    left: 8%;
}

.enter-list .item .bg {
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.enter-list .item .bg div {
    height: 100%;
    width: 100%;
}

.enter-list .item .bg svg {
    position: absolute;
    right: -20px;
    top: -20px;
    height: 160px;
    width: 160px;
    opacity: .05;
}

.enter-list .item .bg .triangle svg {
    height: 180px;
    width: 180px;
}

.enter-list .item .bg .square svg {
    animation: spin-icon 15s linear infinite;
}

.enter-list .item .bg .triangle svg {
    animation: spin-icon 30s linear infinite;
}

.enter-list .item .bg .rounded svg {
    animation: spin-icon 20s linear infinite;
}

@keyframes spin-icon {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes tag-entering {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes tag-removing {
    0% {
        transform: translateY(0px);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes loading-point {
    0% {
        opacity: .8;
    }
    50% {
        opacity: .25;
    }
    100% {
        opacity: 8;
    }
}

@keyframes error {
    0% {
        transform: translateX(0)
    }
    25% {
        transform: translateX(-2px)
    }
    50% {
        transform: translateX(0)
    }
    75% {
        transform: translateX(2px)
    }
    100% {
        transform: translateX(0)
    }
}

@keyframes index-link-active {
    0% {
        transform: perspective(1600px) rotateX(0) rotateY(0) translateZ(0);
    }
    16% {
        transform: perspective(1600px) rotateX(10deg) rotateY(5deg) translateZ(32px);
    }
    100% {
        transform: perspective(1600px) rotateX(0) rotateY(0) translateZ(65px);
    }
}

.gate .links .item {
    width: 30.333%;
}

@media screen and (min-width: 1400px) {
    .container {
        width: 80%;
    }
    .gate .links .item {
        width: 22%;
    }
}

@media screen and (max-width: 700px) {
    body,
    html {
        min-width: 0;
        font-size: 15px;
    }
    .container {
        width: auto;
        margin: 0;
    }
    div.el span {
        display: block;
        width: 60%;
        left: 0;
        top: 75px;
        margin-left: 0;
        margin: 0 auto;
        margin-top: -40%;
    }
    .ch {
        padding: 20px 0;
    }
    .hello h1 {
        font-size: 40px;
    }
    .readme {
        font-size: 15px;
    }
    .roll-tag {
        height: 60px;
    }
    .roll-tag span {
        white-space: normal;
        display: block;
    }
    .enter-list .item {
        float: none;
        width: auto;
        margin-bottom: 20px;
        height: 100px;
    }
    .gate .links .item {
        width: 47%;
        margin: 0;
        padding: 15px 1.5%;
        height: auto;
    }
    .gate .links .item .avatar {
        height: 40px;
        line-height: 40px;
        width: 40px;
        margin-right: 10px;
    }
    .gate .links .item .avatar img {
        height: 40px;
        max-width: 40px;
    }
    .gate .links .item .inner {
        line-height: 1.5;
        padding: 0;
    }
    .gate .links .item .inner h5 {
        font-size: 15px;
    }
    .footer {
        padding-bottom: 100px;
    }
    .footer h3 {
        letter-spacing: .1em;
    }
    .footer p {
        letter-spacing: .2em;
    }
    .footer p.c {
        margin-top: 20px;
        letter-spacing: .1em
    }
}

/* 添加圆点循环动画效果 */
@keyframes circle-pulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* 添加滚动动画效果 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(.19,1,.22,1), transform 0.8s cubic-bezier(.19,1,.22,1);
    will-change: opacity, transform;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
/* 聊天框加载动画 */
.chatbox {
    margin-top: 15px;
}
.chatbox .line {
    position: relative;
}
.chatbox .loading span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    margin: 0 3px;
    animation: loading-point 1.4s infinite ease-in-out;
}
.chatbox .loading span:nth-child(1) { animation-delay: 0s; }
.chatbox .loading span:nth-child(2) { animation-delay: 0.2s; }
.chatbox .loading span:nth-child(3) { animation-delay: 0.4s; }
@keyframes loading-point {
    0%, 100% { transform: scale(0.8); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}
/* 个人介绍样式 */
.about .chtitle {
    font-size: 26px;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}
.about .chtitle span { color: #fff; }
.about .chtitle:after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #5D8BF4, #AB4ADB);
    margin-top: 15px;
    border-radius: 2px;
}
.about .introduct {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}
.about .introduct img.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #5D8BF4;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    transition: all 0.4s ease;
    animation: avatar-pulse 2s infinite alternate;
}
.about .introduct img.avatar:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 8px 25px rgba(93, 139, 244, 0.6);
    border-color: #AB4ADB;
}
.about .introduct p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    max-width: 700px;
}
.about .introduct sup {
    font-family: 'Pacifico', 'Caveat', 'Noto Sans', 'Arial', cursive, sans-serif;
    font-size: 0.7em;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #AB4ADB;
    vertical-align: super;
    padding-left: 1px;
    padding-right: 0;
}
@keyframes avatar-pulse {
    0% { box-shadow: 0 4px 20px rgba(93, 139, 244, 0.2); }
    100% { box-shadow: 0 4px 30px rgba(93, 139, 244, 0.5); }
}
/* 居中 footer 内容 */
.footer .container { text-align: center; }
/* 页脚链接蓝色 */

.footer .c a {
    color: #5D8BF4;
    font-weight: bold;
    background: linear-gradient(90deg, #5D8BF4, #AB4ADB 60%, #00ffea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: color 0.2s;
}
.footer .c a:hover {
    color: #007bff;
    -webkit-text-fill-color: #007bff;

}

/* 头像漂浮动画，兼容About-me现代风格 */
.about .introduct img.avatar {
  animation: float 6s ease-in-out infinite;
}

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

/* slogan 渐变色 */
#slogan {
  background: linear-gradient(90deg, #5D8BF4, #AB4ADB 60%, #00ffea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.5rem !important;
}

.hello h2 {
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin: 0;
  letter-spacing: 0.02em;
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

.about-paragraphs p {
  font-size: 1.15rem;
  color: #e6e6e6;
  line-height: 2;
  margin: 0 0 1.2em 0;
  text-align: center;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.about-paragraphs p:first-child {
  font-weight: bold;
  font-size: 1.22rem;
  color: #8faaff;
  margin-bottom: 1.5em;
  letter-spacing: 0.04em;
}

.about-paragraphs p sup {
  font-size: 0.95em;
  color: #AB4ADB;
  font-weight: 600;
  margin-left: 2px;
}

.about-paragraphs p:last-child {
  color: #5D8BF4;
  font-weight: 600;
  font-size: 1.18rem;
  margin-top: 1.5em;
  letter-spacing: 0.04em;
}

/* Slogan 顶部动画，立即出现 */
.slogan-animate {
    opacity: 0;
    transform: translateY(-30px) scale(0.98);
    animation: sloganFadeIn 1.2s cubic-bezier(.19,1,.22,1) forwards;
}
@keyframes sloganFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1px;
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
    line-height: 1.2;
    letter-spacing: 0.02em;
}
.footer-meta a {
    color: #aaa;
    text-decoration: none;
    margin: 0 1px;
}
.footer-meta a:hover {
    text-decoration: underline;
    color: #aaa;
}
.footer-meta .meta-sep {
    color: #666;
    margin: 0 1px;
}
.footer-meta img {
    height: 12px;
    width: 12px;
    margin: 0 2px 0 1px;
    vertical-align: text-bottom;
    border-radius: 2px;
    filter: grayscale(30%) brightness(0.95);
    box-shadow: none;
    background: none;
}
@media (max-width: 600px) {
    .footer-meta {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        font-size: 11px;
        text-align: center;
    }
    .footer-meta > span {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        align-items: center;
        margin: 0;
    }
    .footer-meta .meta-sep {
        display: none;
    }
    .footer-meta img {
        margin: 0 2px;
    }
}

.footer-miloce {
    font-size: 10px;
    font-family: 'Noto Sans', 'Arial', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    vertical-align: baseline;
    opacity: 0.85;
}
