
#site-header,
#site-footer,
.navbar-section,
.footer-subscribe-wrapper,
.copyright-section,
.go-top {
    font-size: 16px;
}

.navbar-section a,
.footer-subscribe-wrapper a,
.copyright-section a {
    text-decoration: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    padding: 12px 24px;
    background: #7b68ee;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    border-radius: 3px;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 16px;
}

.default-btn {
    border: none;
    position: relative;
    display: inline-block;
    text-align: center;
    overflow: hidden;
    z-index: 1;
    color: #ffffff;
    background-color: #7b68ee;
    transition: 0.4s;
    border-radius: 3px;
    font-weight: 600;
    font-size: 16px;
    padding-left: 35px;
    padding-right: 35px;
    padding-top: 14px;
    padding-bottom: 14px;
    box-shadow: 0 7px 25px rgba(123, 104, 238, 0.25);
}

.default-btn span {
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    background-color: #3e57d0;
    transition: width 0.5s ease-in-out, height 0.5s ease-in-out;
    transform: translate(-50%, -50%);
    z-index: -1;
    border-radius: 30px;
}

.default-btn:hover,
.default-btn:focus {
    color: #ffffff;
}

.default-btn:hover span,
.default-btn:focus span {
    width: 225%;
    height: 562.5px;
}

.navbar-section .container,
.footer-subscribe-wrapper .container,
.copyright-section .container {
    width: 100%;
    max-width: 1140px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.navbar-section .row,
.footer-subscribe-wrapper .row,
.copyright-section .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    box-sizing: border-box;
}

.navbar-section [class^="col-"],
.footer-subscribe-wrapper [class^="col-"],
.copyright-section [class^="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    width: 100%;
}

.navbar-section .align-items-center,
.footer-subscribe-wrapper .align-items-center,
.copyright-section .align-items-center {
    align-items: center;
}

@media (min-width: 768px) {

    .footer-subscribe-wrapper .col-md-6,
    .copyright-section .col-md-6 {
        width: 50%;
    }
}

@media (min-width: 992px) {
    .footer-subscribe-wrapper .col-lg-6 {
        width: 50%;
    }

    .footer-subscribe-wrapper .col-lg-4 {
        width: 33.333333%;
    }

    .footer-subscribe-wrapper .col-lg-2 {
        width: 16.666667%;
    }
}

.navbar-section .navbar {
    display: flex;
    align-items: center;
}

.navbar-section .navbar-brand {
    display: inline-flex;
    align-items: center;
    width: 167px;
    height: 35px;
}

.navbar-section .navbar-collapse {
    display: flex !important;
    flex: 1;
    align-items: center;
    flex-wrap: nowrap;
}

.navbar-section .navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar-section .nav-item {
    list-style: none;
}

.navbar-section .dropdown-menu {
    list-style: none;
    margin: 0;
}

.navbar-section .container {
    overflow: visible !important;
}

.techvia-responsive-nav {
    display: none;
}

.techvia-nav {
    background-color: transparent;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-right: 0;
    padding-left: 0;
}

.techvia-nav .navbar {
    padding-right: 0;
    padding-top: 0;
    padding-left: 0;
    padding-bottom: 0;
    margin-top: 16px;
}

.techvia-nav .navbar ul {
    padding-left: 0;
    list-style-type: none;
    margin-bottom: 0;
}

.techvia-nav .navbar .navbar-nav {
    margin-left: auto;
    margin-right: auto;
}

.techvia-nav .navbar .navbar-nav .nav-item {
    position: relative;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 0;
    padding-right: 0;
}

.techvia-nav .navbar .navbar-nav .nav-item a {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-transform: capitalize;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-left: 10px;
    margin-right: 10px;
}

.techvia-nav .navbar .navbar-nav .nav-item a i {
    font-size: 10px;
    position: relative;
    top: -1px;
    margin-left: 1px;
}

.techvia-nav .navbar .navbar-nav .nav-item:last-child a {
    margin-right: 0;
}

.techvia-nav .navbar .navbar-nav .nav-item:first-child a {
    margin-left: 0;
}

/* 首页 html font-size:100px 导致 Bootstrap 的 min-width:10rem 显示为 1000px，此处强制 230px */
.techvia-nav .navbar .navbar-nav .nav-item .dropdown-menu {
    position: absolute;
    border: none;
    top: 80px;
    left: 0;
    width: 230px !important;
    min-width: 230px !important;
    max-width: 230px !important;
    z-index: 99;
    display: block;
    opacity: 0;
    visibility: hidden;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    padding: 0;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
}

.techvia-nav .navbar .navbar-nav .nav-item .dropdown-menu li {
    padding: 0;
    border-bottom: 1px solid #f1f1f1;
}

.techvia-nav .navbar .navbar-nav .nav-item .dropdown-menu li:last-child {
    border-bottom: 0 solid transparent;
}

.techvia-nav .navbar .navbar-nav .nav-item .dropdown-menu li a {
    text-transform: capitalize;
    padding: 10px 15px;
    margin: 0;
    position: relative;
    color: #0b0b31;
    font-size: 15.5px;
    font-weight: 500;
    display: block;
}

.techvia-nav .navbar .navbar-nav .nav-item .dropdown-menu li a:hover,
.techvia-nav .navbar .navbar-nav .nav-item .dropdown-menu li a:focus,
.techvia-nav .navbar .navbar-nav .nav-item .dropdown-menu li a.active {
    color: #ffffff;
    background: #7b68ee;
}

.techvia-nav .navbar .other-option {
    margin-left: 0;
    margin-top: 5px;
    display: flex;
    align-items: center;
}

.techvia-nav .navbar .navbar-nav .nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: 100%;
    transition: 0.4s;
}

.techvia-nav .black-logo {
    display: none;
}

.navbar-section {
    background-color: transparent;
    transition: 0.4s;
    position: absolute;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
}

.navbar-section.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 28px 0 rgba(0, 0, 0, 0.06);
    background: #ffffff !important;
    transition: 0.4s;
}

.navbar-section.is-sticky .navbar-nav .nav-item a {
    color: #505050;
}

.navbar-section.is-sticky .navbar-nav .nav-item a:hover,
.navbar-section.is-sticky .navbar-nav .nav-item a:focus,
.navbar-section.is-sticky .navbar-nav .nav-item a.active {
    color: #7b68ee;
}

.navbar-section.is-sticky .techvia-nav .navbar-brand .white-logo {
    display: none;
}

.navbar-section.is-sticky .techvia-nav .navbar-brand .black-logo {
    display: block;
}

@media only screen and (max-width: 991px) {
    /* 移动端：导航与轮播上下分离，导航随页面滚动（不吸顶） */
    body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    #site-header {
        position: relative;
        z-index: 10001; /* 高于 banner，确保汉堡菜单可点击 */
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    /* 首页：彻底隐藏 techvia-responsive-nav，避免多出一块把 logo 顶下去 */
    #site-header .techvia-responsive-nav {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #site-header .navbar-section,
    #site-header .navbar-section.is-sticky {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100%;
        background: transparent;
        box-shadow: none;
    }
    #site-banner {
        margin-top: 0;
        min-height: 180px;
        display: block;
    }
    #site-banner .banner {
        min-height: 180px;
    }

    .navbar-section {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .navbar-section.is-sticky {
        border-bottom: none;
        box-shadow: 0 7px 13px 0 rgba(0, 0, 0, 0.1);
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .navbar-section.is-sticky .logo .white-logo {
        display: none;
    }

    .navbar-section.is-sticky .logo .black-logo {
        display: block;
    }

    /* 移动端：显示完整导航栏（logo + 汉堡菜单），隐藏仅含 logo 的块 */
    .techvia-responsive-nav {
        display: none !important;
    }

    .techvia-nav {
        display: block !important;
    }

    /* 移动端导航栏背景与 logo 可见，紧凑高度 */
    #site-header .navbar-section {
        background: #ffffff;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    #site-header .techvia-nav .container {
        padding-top: 5px;
        padding-bottom: 5px;
    }
    #site-header .techvia-nav .navbar-brand {
        padding-top: 0;
        padding-bottom: 0;
    }
    #site-header .techvia-nav .navbar-brand .white-logo {
        display: inline-block !important;
        height: 24px;
        margin-right: 8px;
    }
    #site-header .techvia-nav .navbar-brand .black-logo {
        display: none !important;
    }
    #site-header .techvia-nav .navbar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        width: 100%;
        height: 40px;
    }
    #site-header .techvia-nav .navbar .navbar-brand {
        order: 1;
        flex: 0 0 auto;
        margin-right: 0;
        display: flex;
        align-items: center;
        height: 100%;
    }
    #site-header .techvia-nav .navbar .navbar-brand span:first-child {
        font-size: 16px;
        font-weight: bold;
        color: #000;
    }
    #site-header .techvia-nav .navbar .navbar-brand span:last-child {
        font-size: 10px;
        color: #666;
    }
    #site-header .techvia-nav .navbar .hx-mobile-nav-toggle {
        order: 2;
        margin-left: auto;
        display: block !important;
        height: 100%;
        align-items: center;
        display: flex !important;
    }
    /* 移动端统一用备用汉堡，隐藏 meanmenu 自带的避免不显示或重复 */
    #site-header .techvia-nav .navbar .mean-container a.meanmenu-reveal {
        display: none !important;
    }
    /* 确保移动端汉堡菜单区域可见（不被 Bootstrap collapse 隐藏） */
    #site-header .techvia-nav .navbar .collapse.mean-menu,
    #site-header .techvia-nav .navbar .mean-container {
        display: block !important;
        visibility: visible !important;
    }
    #site-header .techvia-nav .navbar .mean-container .meanmenu-reveal,
    #site-header .techvia-nav .navbar .mean-container a.meanmenu-reveal {
        display: block !important;
    }

    .techvia-responsive-nav .techvia-responsive-menu {
        position: relative;
    }

    #site-header .techvia-nav .navbar .mean-container .mean-nav ul,
    .techvia-responsive-nav .techvia-responsive-menu.mean-container .mean-nav ul {
        font-size: 16px;
    }

    .techvia-responsive-nav .techvia-responsive-menu.mean-container .mean-nav ul li a,
    #site-header .techvia-nav .navbar .mean-container .mean-nav ul li a {
        font-size: 16px;
    }

    .techvia-responsive-nav .techvia-responsive-menu.mean-container .mean-nav ul li a.active,
    #site-header .techvia-nav .navbar .mean-container .mean-nav ul li a.active {
        color: #7b68ee;
    }

    .techvia-responsive-nav .techvia-responsive-menu.mean-container .mean-nav ul li li a,
    #site-header .techvia-nav .navbar .mean-container .mean-nav ul li li a {
        font-size: 16px;
    }

    .techvia-responsive-nav .techvia-responsive-menu.mean-container .navbar-nav,
    #site-header .techvia-nav .navbar .mean-container .mean-nav {
        overflow-y: scroll;
        max-height: 70vh;
        box-shadow: 0 7px 13px 0 rgba(0, 0, 0, 0.1);
    }

    .techvia-responsive-nav .techvia-responsive-menu.mean-container .others-options,
    #site-header .techvia-nav .navbar .mean-container .other-option {
        display: none;
    }

    /* 参照参考图：汉堡菜单为标准三横线、深色、右对齐 */
    #site-header .techvia-nav .navbar .mean-container .mean-bar {
        position: relative;
        float: none;
        width: auto;
        margin-left: auto;
    }
    /* 移动端只显示 hx-mobile-nav-toggle，隐藏 meanmenu 自带的避免两个汉堡 */
    .navbar-section .techvia-responsive-nav .mean-container a.meanmenu-reveal,
    #site-header .techvia-nav .navbar .mean-container a.meanmenu-reveal {
        display: none !important;
        width: 44px;
        height: 44px;
        padding: 12px 10px;
        position: relative;
        right: 0;
        left: auto;
        color: #0b0b31 !important;
        text-indent: -9999px;
        box-sizing: border-box;
    }
    .navbar-section .techvia-responsive-nav .mean-container a.meanmenu-reveal span,
    #site-header .techvia-nav .navbar .mean-container a.meanmenu-reveal span {
        display: block !important;
        width: 22px;
        height: 3px;
        margin-top: 4px;
        background: #0b0b31 !important;
        border-radius: 2px;
        position: relative;
        left: 0;
    }
    #site-header .techvia-nav .navbar .mean-container a.meanmenu-reveal span:first-child,
    .navbar-section .techvia-responsive-nav .mean-container a.meanmenu-reveal span:first-child {
        margin-top: 0;
    }
    /* 备用汉堡按钮：移动端始终显示，logo 左、汉堡右 */
    #site-header .techvia-nav .navbar .hx-mobile-nav-toggle {
        display: block !important;
        order: 2;
        margin-left: auto;
        flex-shrink: 0;
    }
    #site-header .techvia-nav .navbar .hx-mobile-nav-toggle span {
        display: block;
        width: 22px;
        height: 3px;
        margin-top: 4px;
        background: #0b0b31;
        border-radius: 2px;
    }
    #site-header .techvia-nav .navbar .hx-mobile-nav-toggle span:first-child {
        margin-top: 0;
    }
    #site-header .techvia-nav .navbar .mean-menu {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        box-shadow: 0 7px 13px rgba(0,0,0,0.1);
        z-index: 9999;
        max-height: 70vh;
        overflow-y: auto;
    }

    .techvia-responsive-nav .logo {
        position: relative;
        width: 50%;
        z-index: 999;
    }

    .techvia-responsive-nav .logo .white-logo {
        display: block;
    }

    .techvia-responsive-nav .logo .black-logo {
        display: none;
    }
}

.go-top {
    position: fixed;
    cursor: pointer;
    top: 0;
    right: 30px;
    color: #ffffff;
    background-color: #7b68ee;
    z-index: 10000;
    width: 45px;
    text-align: center;
    height: 45px;
    line-height: 45px;
    opacity: 0;
    visibility: hidden;
    transition: .9s;
    border-radius: 3px;
}

.go-top.active {
    top: 95%;
    transform: translateY(-98%);
    opacity: 1;
    visibility: visible;
}

.go-top i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    margin: 0 auto;
    transition: 0.4s;
}

.go-top i:last-child {
    opacity: 0;
    visibility: hidden;
    top: 60%;
}

.go-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #0b0b31;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
    border-radius: 3px;
}

.go-top:hover,
.go-top:focus {
    color: #ffffff;
}

.go-top:hover::before,
.go-top:focus::before {
    opacity: 1;
    visibility: visible;
}

.go-top:hover i:first-child,
.go-top:focus i:first-child {
    opacity: 0;
    top: 0;
    visibility: hidden;
}

.go-top:hover i:last-child,
.go-top:focus i:last-child {
    opacity: 1;
    visibility: visible;
    top: 50%;
}

.subscribe-section {
    position: relative;
    padding-top: 50px;
    padding-bottom: 50px;
    line-height: 1.5;
    border-bottom: 1px solid #777;
}

.subscribe-content {
    text-align: left;
}

.subscribe-content .sub-title {
    color: #fff;
    display: block;
    text-transform: capitalize;
    font-size: 16px;
    font-weight: 400;
}

.subscribe-content h2 {
    color: #fff;
    margin-bottom: 14px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
    font-size: 24px;
}

.newsletter-form {
    max-width: 580px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form .input-newsletter {
    display: block;
    width: 100%;
    background-color: #ffffff;
    border: none;
    height: 50px;
    padding-left: 25px;
    border-radius: 5px;
    outline: 0;
    color: #0b0b31;
    box-sizing: border-box;
}

.newsletter-form button {
    position: absolute;
    right: 0;
    top: 0;
    background-color: #7b68ee;
    color: #ffffff;
    border: none;
    height: 50px;
    padding: 0 30px;
    border-radius: 5px;
    transition: 0.4s;
    line-height: 50px;
    text-transform: capitalize;
    font-size: 16px;
    font-weight: 400;
}

.newsletter-form button:hover {
    background-color: #FF9800;
    color: #ffffff;
}

.newsletter-form #validator-newsletter {
    color: red;
    position: relative;
    top: 10px;
}

@media only screen and (max-width: 767px) {
    .newsletter-form .input-newsletter {
        font-size: 14px;
    }

    .newsletter-form {
        display: flex;
        flex-direction: column;
    }

    .newsletter-form .input-newsletter {
        width: 100%;
        margin-bottom: 12px;
    }

    .newsletter-form button {
        position: relative;
        width: 100%;
        margin-top: 0;
    }
}

.footer-subscribe-wrapper {
    position: relative;
    z-index: 1;
    background-color: #202438;
}

.ptb-100 {
    padding-top: 100px;
    padding-bottom: 100px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 25px;
    width: 200px;
}

.footer-heading {
    margin-bottom: 25px;
}

.footer-heading h3 {
    font-size: 20px;
    color: #ffffff;
    font-weight: 600;
    margin: 0;
    position: relative;
    border-bottom: 1px solid #777;
    padding-bottom: 10px;
}

.single-footer-widget .footer-social {
    padding-left: 0;
    margin-bottom: 0;
    margin-top: 20px;
}

.single-footer-widget .footer-social li {
    display: inline-block;
    margin-right: 10px;
}

.single-footer-widget .footer-social li:last-child {
    margin-right: 0;
}

.single-footer-widget .footer-social i {
    display: inline-block;
    height: 38px;
    width: 38px;
    line-height: 38px;
    background-color: #ffffff;
    border-radius: 50px;
    color: #7b68ee;
    transition: 0.4s;
    text-align: center;
}

.single-footer-widget .footer-social i::before {
    font-size: 17px;
}

.single-footer-widget .footer-social i:hover {
    color: #ffffff;
    background-color: #7b68ee;
}

.single-footer-widget p {
    font-size: 16px;
    color: #ececec;
    font-weight: 400;
    margin-top: 0;
}

.single-footer-widget .footer-quick-links {
    padding-left: 0;
    margin-bottom: 0;
}

.single-footer-widget .footer-quick-links li {
    list-style-type: none;
    padding-bottom: 18px;
}

.single-footer-widget .footer-quick-links li:last-child {
    padding-bottom: 0;
}

.single-footer-widget .footer-quick-links li a {
    display: inline-block;
    color: #ececec;
    font-size: 16px;
    font-weight: 400;
}

.single-footer-widget .footer-quick-links li a:hover {
    color: #7b68ee;
    text-decoration: underline !important;
    transition: 0.4s;
}

.single-footer-widget .footer-info-contact {
    position: relative;
    padding-left: 35px;
    margin-bottom: 16px;
}

.single-footer-widget .footer-info-contact:last-child {
    margin-bottom: 0;
}

.single-footer-widget .footer-info-contact i {
    color: #ffffff;
    position: absolute;
    left: 0;
    top: 0;
}

.single-footer-widget .footer-info-contact i::before {
    font-size: 20px;
}

.single-footer-widget .footer-info-contact h3 {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.single-footer-widget .footer-info-contact span {
    font-size: 16px;
    color: #ececec;
    font-weight: 400;
}

.copyright-section {
    padding: 35px 0;
    background-color: #1e2134;
}

.copyright-section p {
    color: #ececec;
    font-size: 16px;
    margin: 0;
}

.copyright-section ul {
    padding-left: 0;
    margin-bottom: 0;
    list-style-type: none;
    text-align: right;
}

.copyright-section ul li {
    display: inline-block;
    color: #ececec;
    font-size: 16px;
    position: relative;
    margin-left: 10px;
    margin-right: 10px;
}

.copyright-section ul li a {
    display: inline-block;
    color: #ececec;
}

.copyright-section ul li a:hover {
    color: #7b68ee;
}

.copyright-section ul li::before {
    content: '';
    position: absolute;
    top: 5px;
    right: -13px;
    width: 1px;
    height: 14px;
    background-color: #ffffff;
}

.copyright-section ul li:last-child {
    margin-right: 0;
}

.copyright-section ul li:last-child::before {
    display: none;
}

.copyright-section ul li:first-child {
    margin-left: 0;
}

#site-header .navbar-section .container {
    max-width: 100%;
}

@media (min-width: 576px) {
    #site-header .navbar-section .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    #site-header .navbar-section .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    #site-header .navbar-section .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    #site-header .navbar-section .container {
        max-width: 1140px;

    }
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1320px;
    }
}

@media (min-width: 1400px) {
    #site-header .navbar-section .container {
        max-width: 1320px;
    }
}
