body,
html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #212830cd;  /* 主背景色 212830*/
    color: #D0D7E0;            /* 主文字颜色 */
}

.profile-page {
    text-align: center;
    min-height: auto;
    width: auto;
}


.page-header .a {
    transition: all 4s ease 0s;
}

.page-header .go {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 50%;
    width: 32px;
    height: 33px;
    margin-left: -16px;
    transition: transform 0.4s ease;
    animation: bounce 3s ease infinite;
    will-change: transform;
}

.page-header .j-icon:hover {
    transform: scale(1.20);
}

.page-header .bg-primary {
    background-color: rgba(24,54,68,0.5) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: 0.4s;
}

.navbar-toggler {
    z-index: 3;
}

.navbar-dark .navbar-nav .nav-link {
    color: #D0D7E0;
}


/* 导航栏 */
.page-header .navbar .navbar-collapse li {
    font-weight: 400;
    padding-left: 10px;
    padding-right: 10px;
    z-index: 2;
}

/* 导航栏的悬停颜色 */
.page-header .navbar .navbar-collapse li:hover {
    font-weight: 500; /* 悬停时加粗 */
    transition: font-weight 0.35s;
    z-index: 2;
}

/* 导航栏选中状态样式 */
.page-header .navbar .navbar-collapse li.active {
    font-weight: 600; /* 选中时加粗 */
}


.page-header .navbar {
    position: fixed;
    z-index: 10000 !important;
    width: 100%;
}

.profile-page .page-header {
    position: relative;
    min-height: 650px;
    max-height: 1024px;
    width: 100%;
    height: 100%;
    background-color: #153a49 !important;
    background-position: center center !important;
    background-size: cover !important;
}

.page-header-mask:after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #153a49;
    opacity: 0.8;
    z-index: 0;
}

.page-header-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.profile-page .page-header-content {
    position: relative;
    max-height: 600px;
    min-height: 350px;
}

.page-header .left-content {
    position: relative;
    min-height: 650px;
}

.personalImage {
    position: relative;
    width: auto;
    height: 250px;
    text-align: center;
    top: 60px;
}

.personalImage a {
    position: relative;
}

/* 个人照片边框颜色 */
.personalImage a:before {
    content: "";
    border: 15px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    height: 180px;
    width: 180px;
    position: absolute;
    left: 0;
    -webkit-animation: pulsate 3s ease-out;
    animation: pulsate 3s ease-out;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    opacity: 0.0;
    z-index: 99;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6),
                0 0 30px rgba(255, 255, 255, 0.4),
                0 0 45px rgba(255, 255, 255, 0.2);
}

.personalImage img {
    position: relative;
    border-radius: 50%;
    height: 180px;
    width: 180px;
    padding: 0;
    margin: 0;
    border: 15px solid transparent;
    z-index: 9999;
    -webkit-transition: all .3s ease-out;
    transition: all .3s ease-out;
    will-change: transform;
}

.personalImage a:hover img {
    -webkit-transform: scale(1.06, 1.06);
    transform: scale(1.06, 1.06);
}

.page-header .name {
    color: #D0D7E0;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.3),
        0 0 12px rgba(255, 255, 255, 0.2),
        0 0 16px rgba(255, 255, 255, 0.1);
}

.page-header .motto {
    color: #D0D7E0;
    font-size: 15px; /* 调整座右铭字号 */
}

.motto-container {
    margin: 30px 0; /* 调整座右铭上下间距30px，左右间距0 */
}

.page-header .motto::after {
    position: relative;
    top: 5px;
    display: inline-block;
    height: 20px;
    margin-left: 5px;
    content: " ";
    -webkit-animation: blink .5s step-end infinite alternate;
    animation: blink .5s step-end infinite alternate;
    border-right: 2px solid;
}

.page-header .self-intro {
    color: rgba(255, 255, 255, 0.6);
    font-size: smaller;
    font-family: serif, '宋体';
    display: none;
}

.section-title {
    margin-top: 60px !important; 
    margin-bottom: 25px !important; 
    font-weight: 500 !important;
}

.card-title-small {
    font-size: 1.2em;
    line-height: 1.45em;
    margin-top: 30px;
    margin-bottom: 20px !important; /* 使用!important确保优先级 */
    -webkit-margin-bottom: 20px; /* Safari/Webkit浏览器特定前缀 */
    -moz-margin-bottom: 20px; /* Firefox浏览器特定前缀 */
    padding-bottom: 10px; /* 添加内边距作为额外保障 */
}

.card {
    border: 0;
    display: inline-block;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-bottom: 20px;
    -webkit-box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
    background-color: #153a49;  /* 深一点的背景色 */
    -webkit-transition: all .3s ease-out;
    transition: all .3s ease-out;
    border-radius: 16px; /* 修改为Apple风格的大圆角 */
    text-align: left;
    will-change: transform;
}

.about-section .card:hover,
.skill-section .card:hover,
.experience-section .card:hover,
.portfolio-section .card:hover,
.contact-section .card:hover {
    transform: scale(1.02, 1.02) !important;
}

/* .about-section {
    padding-top: 0px !important;  /* 增加上边距 */


.h4 {
    font-size: 1.714em;
    line-height: 1.45em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.hvr-bounce-to-right {
    /* display: none; */
    vertical-align: middle;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    -webkit-transition-property: color;
    transition-property: color;
    -webkit-transition-duration: 0.5s;
    transition-duration: 0.5s;
    z-index: 1 !important;
    border-bottom: 1px solid #D0D7E0;
    border-radius: 12px;  /* 添加圆角 */
}

.hvr-bounce-to-right:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #4285F4;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: 0 50%;
    transform-origin: 0 50%;
    -webkit-transition-property: transform;
    transition-property: transform;
    -webkit-transition-duration: 0.5s;
    transition-duration: 0.5s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
    border-radius: 12px;  /* 添加圆角，与按钮主体保持一致 */
}

.hvr-bounce-to-right:hover,
.hvr-bounce-to-right:focus,
.hvr-bounce-to-right:active {
    color: white;
    text-decoration: none;
    border: 1px solid #4285F4;
    border-radius: 12px;  /* 悬停状态圆角 */
}

.hvr-bounce-to-right:hover:before,
.hvr-bounce-to-right:focus:before,
.hvr-bounce-to-right:active:before {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

[class^="hvr-"] {
    position: relative;
    bottom: 75px;
    top: 40px;
    display: none;
    vertical-align: middle;
    margin: .4em;
    padding: 9px 18px;
    cursor: pointer;
    border-radius: 0;
    background: transparent;
    text-decoration: none;
    color: #d0d7e06d;
    /* -webkit-tap-highlight-color: rgba(0,0,0,0); */
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
}


.htmleaf-container {
    margin: 0 auto;
}

.progress_bar .pro-bar {
    background: hsl(0, 0%, 97%);
    box-shadow: 0 1px 2px hsla(0, 0%, 0%, 0.1) inset;
    height: 4px;
    margin-bottom: 12px;
    margin-top: 50px;
    position: relative;
}

.progress_bar .progress_bar_title {
    color: hsl(218, 4%, 50%);
    color: #D5D6E2;
    font-size: 15px;
    font-weight: 300;
    position: relative;
    top: -28px !important;
    z-index: 1;
}

.progress_bar .progress_number {
    top: -28px !important;
    float: right !important;
}

.progress_bar .progress-bar-inner {
    background-color: hsl(0, 0%, 88%);
    display: block;
    width: 0;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: width 1s linear 0s;
}

.p-a {
    animation: animate-positive 2s;
}

.progress_bar .progress-bar-inner:before {
    content: "";
    background-color: hsl(0, 0%, 100%);
    border-radius: 50%;
    width: 4px;
    height: 4px;
    position: absolute;
    right: 1px;
    top: 0;
    z-index: 1;
}

.progress_bar .progress-bar-inner:after {
    content: "";
    width: 14px;
    height: 14px;
    background-color: inherit;
    border-radius: 50%;
    position: absolute;
    right: -4px;
    top: -5px;
}

.portfolio-section {
    margin-top: 30px;
    margin-bottom: -140px; /* 下边距 */
    padding-top: 0px;
    text-align: center !important;
    background-attachment: relative !important;
    background-position: center center !important;
    min-height: 800px;
    width: 100%;
    background-size: cover !important;
    position: relative !important;
}

@media (max-width: 768px) {
    .portfolio-section {
        margin-bottom: 70px !important; /* 移动端下边距恢复较大 */
    }
}

.portfolio-section .section-title {
    margin-top: -100px !important; /* 发明专利上边距 */
}

.portfolio-section .row {
    bottom: 20px;
    margin-bottom: 20px;
}


.gallery .portfolio-section-main {
    transition: 0.5s;
    will-change: transform;
}

.gallery .portfolio-section-main:hover {
    transform: scale(1.06);
    -webkit-transform: scale(1.06);
}

.gallery .portfolio-image figure {
    position: relative;
    text-align: center;
    overflow: hidden;  /* 确保这行存在 */
    border-radius: 16px;  /* 添加这行 */
}

.gallery .portfolio-image figure img {
    position: relative;
    display: block;
    min-width: 375px;
    width: 100%;
    height: 250px;
    opacity: 1;
    border-radius: 16px;  /* 添加圆角 */
    object-fit: cover;  /* 添加这行，确保图片填充且不变形 */
}

.gallery .portfolio-image figure figcaption {
    position: absolute;
    color: #D0D7E0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.gallery .portfolio-image figure figcaption,
.gallery .portfolio-image figure figcaption>a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gallery .portfolio-image figure figcaption>a {
    z-index: 1000;
    text-indent: 200%;
    white-space: nowrap;
    font-size: 0;
    opacity: 0;
}

.gallery .portfolio-image figure .h4,
.gallery .portfolio-image figure p {
    margin: 0;
}

.gallery figure.portfolio-section-main figcaption::before,
.gallery figure.portfolio-section-main figcaption::after {
    position: absolute;
    content: '';
    opacity: 0;
}

.gallery figure.portfolio-section-main figcaption::before {
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    -webkit-transform: scale(0, 0);
    transform: scale(0, 0);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
}

.gallery figure.portfolio-section-main figcaption::after {
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    -webkit-transform: scale(0, 0);
    transform: scale(0, 0);
    -webkit-transform-origin: 100% 0;
    transform-origin: 100% 0;
}

.gallery figure.portfolio-section-main .h4 {
    margin-top: 50px;
    -webkit-transition: -webkit-transform 0.35s;
    transition: -webkit-transform 0.35s;
    transition: transform 0.35s, -webkit-transform 0.35s;
    opacity: 0;
    font-size: 1.5rem; /* 修改专利Pc端字体大小 */
}

@media (max-width: 480px) {
    .gallery figure.portfolio-section-main .h4 {
        font-size: 20px;
    }
    .gallery figure.portfolio-section-main p {
        font-size: 14px;
    }
}

.gallery figcaption .container {
    position: absolute;
    width: 100%;
    bottom: 20px;
}

.gallery figure.portfolio-section-main p {
    padding: 0.5em 2em;
    text-transform: uppercase;
    letter-spacing: 1px;
    -webkit-transition: -webkit-transform 0.35s;
    transition: -webkit-transform 0.35s;
    transition: transform 0.35s;
    transition: transform 0.35s, -webkit-transform 0.35s;
    opacity: 0;
}

.gallery figure.portfolio-section-main img,
.gallery figure.portfolio-section-main .h4 {
    -webkit-transform: scale(1.06, 1.06);
    transform: scale(1.06, 1.06);
}

.gallery figure.portfolio-section-main img,
.gallery figure.portfolio-section-main figcaption::before,
.gallery figure.portfolio-section-main figcaption::after,
.gallery figure.portfolio-section-main p {
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
}

.gallery figure.portfolio-section-main:hover img {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.gallery figure.portfolio-section-main:hover figcaption::before,
.gallery figure.portfolio-section-main:hover figcaption::after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

.gallery figure.portfolio-section-main:hover figcaption:before {
    background: rgba(27, 23, 23, 0.5);
}

.gallery figure.portfolio-section-main:hover .h4,
.gallery figure.portfolio-section-main:hover p,
.gallery figure.portfolio-section-main:hover button {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    color: #fff;
}

.gallery figure.portfolio-section-main:hover figcaption::after,
.gallery figure.portfolio-section-main:hover .h4,
.gallery figure.portfolio-section-main:hover p,
.gallery figure.portfolio-section-main:hover img {
    -webkit-transition-delay: 0.15s;
    transition-delay: 0.15s;
}

.experience-section .card {
    background-color: #153a49;
    color: #D5D6E2;

}

.experience-section .col-md-3 .card-body {
    text-align: center;
    color: #D5D6E2;
}

@media (max-width: 768px) {
    .experience-section .card {
        text-align: center;
    }
}

/*工作*/
.experience-section .work {
    font-size: 20px;
    color: #D5D6E2;
    text-align: center;
    margin-top: 60px;  /* 添加上边距 */
}

.experience-section .bg-primary {
    background-color: #0F4258 !important;
}

/*时间轴*/
.others-section p {
    color: #D0D7E0;
}

.others-section .section-title {
    color: #D0D7E0;
}

.others-section {
    background-repeat: no-repeat !important;
    /* margin-top: -20px !important; */
    padding-top: 0px !important;
    margin-bottom: 20px !important;  /* 添加下边距 */
    padding-bottom: 10px !important;  /* 添加下内边距 */
    text-align: center !important;
    background-attachment: relative !important;
    background-position: center center !important;
    min-height: 800px !important;
    width: 100% !important;
    background-size: cover !important;
    position: relative !important;
}

.others-section::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    z-index: 0;
}

.others-section .section-title {
    margin-bottom: 60px;
}

.others-section li {
    color: #D0D7E0; /* 使用新的文字颜色 */
}

.others-section .container .content-timeline-border {
    border-radius: 12px;
    margin: 0 15px 0 15px;
    position: relative;
    overflow: hidden;
}

.others-section .container .timeline-left,
.container .timeline-right {
    float: left;
    overflow: hidden;
    width: 50%;
}

.others-section .container .timeul {
    list-style: none;
    padding: 0;
}

.others-section .container .content-timeline-border::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: #626262;
}

.others-section .container .timeul>li {
    width: 100%;
    margin-bottom: 200px;

}

.others-section .container .timeline-right li:last-child {
    margin-bottom: 0px;
}

.others-section .container .timeline-left {
    margin-top: 20px;
}

.others-section .container .timeline-right {
    margin-top: 210px;
}

.others-section .container .timeline-right>span,
.container .timeline-left>span {
    position: absolute;
    left: 50%;
    bottom: 0px;
    transform: translateX(-50%);
    width: 20px;
    border-radius: 50%;
    height: 20px;
    border: 3px solid #cd7070;
    background: #fff;
}

.others-section .container .timeline-left>span {
    top: 0px;
}

.others-section .container .timeul span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    border-radius: 50%;
    height: 20px;
    border: 3px solid #cd7070;
    background: #fff;
}

.others-section .container .content-timeline-border .time-content {
    border-top: 3px solid #cd7070;
    position: relative;
    border-radius: 16px;
    top: 8px;
    padding: 10px 20px;
}

.others-section .container .content-timeline-border .time-title {
    width: 50%;
    margin: 0 auto;
    border: 3px solid #cd7070;
    background: #cd7070;
    border-radius: 12px;
    color: #D0D7E0;
    line-height: 40px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

.others-section .container .content-timeline-border p {
    line-height: 23px;
    font-size: smaller;
}

.others-section .container .content-timeline-border h5 {
    text-align: center;
    color: #D0D7E0; /* 使用新的文字颜色 */
    padding: 0;
    margin: 9px 0;
}

@media screen and (max-width: 900px) {

    .others-section .container .timeline-left,
    .container .timeline-right {
        float: none;
        width: 100%;
    }

    .others-section .container .timeline-right {
        margin-top: 13px;
    }

    .others-section .container .content-timeline-border::before {
        content: '';
        position: absolute;
        left: 10px;
        transform: translateX(-50%);
        width: 3px;
        height: 100%;
        /* background: #434343; */
    }

    .others-section .container .timeline-right>span,
    .container .timeline-left>span {
        position: absolute;
        left: 10px;
        bottom: 0px;
        transform: translateX(-50%);
        width: 20px;
        border-radius: 50%;
        height: 20px;
        border: 3px solid #cda670;
        background: #fff;
    }

    .others-section .container .timeul span {
        position: absolute;
        left: 10px;
        transform: translateX(-50%);
        width: 20px;
        border-radius: 50%;
        height: 20px;
        border: 3px solid #cda670;
        background: #fff;
    }

    .others-section .container .content-timeline-border .time-content {
        border-top: 3px solid #cda670;
        position: relative;
        border-radius: 16px;
        top: 8px;
        left: 11px;
        width: 95%;
        padding: 10px 20px;
    }

    .others-section .container .timeul>li {
        width: 100%;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
}

.contact-section .card {
    background-color: #D0D7E0 !important;
}

.contact-section .card-body {
    color: #153a49 !important;
}
 
.contact-section .card-body strong {
    color: #153a49 !important;
}
 
.contact-section .wx,
.contact-section .phone,
.contact-section .email,
.contact-section .address {
    color: #153a49 !important;
}

.contact-section .msg {
    border: none;
    border-bottom: 1px solid #000;
    padding: 10px;
    width: 100%;
}

/* 邮件发送按钮 */
.send-btn {
    background-color: #153a49 !important;
    border-color: #153a49 !important;
    color: #D0D7E0 !important;
    border-radius: 10px;
}

.send-btn:hover {
    background-color: #4285F4 !important;
    border-color: #4285F4 !important;
    color: White !important;
}


.input-group-addon {
    padding: .5rem .75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.25;
    color: #495057;
    text-align: center;
    background-color: #D0D7E0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: .25rem;
}

/* 邮件标题和内容输入框背景色 */
.contact-section .form-control {
    background-color: #E0E4EA;
    border: 1px solid #dee2e6;
    border-radius: 12px;
}
 
/* 输入框前缀图标背景色 */
.contact-section .input-group-addon {
    background-color: #E0E4EA;
    border: 1px solid #dee2e6;
    border-radius: 12px;
}
 
/* 输入框获得焦点时的样式 */
.contact-section .form-control:focus {
    background-color: #E9ECEF;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.input-group-addon:not(:last-child) {
    border-right: 0px;
    border-radius: 12px 0 0 12px;
}


.form-control+.input-group-addon:not(:first-child) {
    border-left: 0px;
    border-radius: 0 12px 12px 0;
}

.btn-link {
    color: black !important;
}

.my-tooltip {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    margin-left: 10px;
    -webkit-transition: all .3s ease-out;
    transition: all .3s ease-out;
}

.my-tooltip .my-tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    margin-left: -60px;
}

.my-tooltip .my-tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

.my-tooltip:hover .my-tooltiptext {
    visibility: visible;
    opacity: 1;
}

.my-tooltip .my-tooltiptext {
    opacity: 0;
    transition: opacity 1s;
}


.footer {
    width: 100%;
    text-align: center;
    background-color: #153a49;
    margin-top: 5px;
    color: #f8f9fab0;
    top: 20px;
    position: relative;
    bottom: 0;
    margin-bottom: 0;
}


/* 优化在窄屏下导航菜单布局 */
@media (max-width: 992px) {
    .page-header .navbar .navbar-collapse li {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 14px;
    }
}
 
@media (max-width: 768px) {
    .page-header .navbar .navbar-collapse li {
        padding-left: 6px;
        padding-right: 6px;
        font-size: 13px;
    }
    
    /* 确保导航菜单在移动端正确收起 */
    .navbar-collapse {
        max-height: none;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        display: inline-block;
        float: none;
    }
}


/* 为所有section添加滚动边距 */
/* section[id] { */
    /* scroll-margin-top: 80px; 根据导航栏高度调整 */
    /* -webkit-scroll-margin-top: 80px; */
/* } */
 
/* 与上方相同，或者针对特定section */
#about, #skill, #project, #work, #others, #contact {
    scroll-margin-top: 80px !important;
    -webkit-scroll-margin-top: 80px !important;
}