@charset "UTF-8";

/*通用样式start*/
:root {
    --primary: #074ea3;
    --secondary: #3b82f6;
    --accent: #60a5fa;
    --neutral: #f3f4f6;
    --neutral-dark: #1a3a5f;
    --active-color: #dc3545;
    --primary-color:#437fc7;
      --teal: #1a9aa0;
      --teal-dark: #0d7e85;
      --teal-light: #e0f7fa;
}
body {
    font-family:'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: #333;
    padding-top: 68px;
    background: linear-gradient(to bottom, #f8f9fa, #e6f7ff);
}
/* 禁用底层页面滚动 */
 body.overlay-active {
    overflow: hidden;
}
/* 移除所有链接默认下划线,移除大黑框 */
 a {
    text-decoration: none!important;
    outline: 0 !important;
    box-shadow: none !important;
}
/* 移除大黑框 */
 button:focus:not(:focus-visible) {
    outline: 0 !important;
    box-shadow: none !important;
}
/* icon固定宽度 */
 i.fas {
    width:20px;
    max-width:20px;
    text-align:center;
}
/* icon颜色 */
 li i {
    color:#437fc7;
}
/* 推荐内容，个性化内容 */
 .recommend li {
    display: flex;
    align-items: start;
}
.recommend a, .personalized a {
    color: #FF7F50 !important;
}
.recommend i, .personalized i {
    transition: all 0.3s ease;
    color: #FF7F50;
}
.recommend a:hover i, .personalized a:hover i {
    transform: scale(1.25) translateX(2px);
}
/* 导航栏样式 */
 img.logo {
    width:195px;
    height:82px;
    position:absolute;
    margin-top:-42px;
    animation: fadeInOut 12s ease-in-out infinite;
}
img.logo2 {
    animation: fadeInOut2 12s ease-in-out infinite;
}

@keyframes fadeInOut {
    0% {
        opacity: 1;
    }
    16.67% {
        opacity: 1;
    }
    33.33% {
        opacity: 0;
    }
    66.67% {
        opacity: 0;
    }
    83.33% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}
@keyframes fadeInOut2 {
    0% {
        opacity: 0;
    }
    16.67% {
        opacity: 0;
    }
    33.33% {
        opacity: 1;
    }
    66.67% {
        opacity: 1;
    }
    83.33% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.1s;
    padding: 1rem 0;
}
.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
}
.nav-link {
    padding: 1rem 1rem;
    font-weight: 500;
    color: #444;
    transition: all 0.2s;
    /*border-radius: 5px;*/
    display: flex;
    align-items: center;
    border-bottom:4px solid transparent;
    transition: all 0.2s ease;
}
.nav-link i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}
.nav-link:hover, .nav-link.active {
    background-color: rgba(75, 108, 183, 0.1);
    color: var(--primary-color);
    border-bottom: 4px solid #4db932;
}
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 0.5rem;
}
.dropdown-item {
    padding: 0.6rem 0.3rem;
    border-radius: 5px;
    transition: all 0.2s;
}
.dropdown-item:hover {
    background-color: rgba(75, 108, 183, 0.1);
    color: var(--primary-color);
    padding-left: 0.5rem;
    transition: all 0.2s;
}

/* 页脚样式 */
 .footer {
    background: linear-gradient(135deg, #1a3a5f, #0d2438);
    color: #fff;
    padding: 3rem 0 1.5rem;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.footer-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6daffe;
    border-bottom: 1px solid rgba(163, 217, 255, 0.2);
    padding-bottom: 0.5rem;
}
.footer-title .toggle-icon {
    display: none;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}
.footer-title.expanded .toggle-icon {
    transform: rotate(180deg);
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.footer-links a {
    color: #e0f0ff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 300;
    padding: 0.2rem 0;
}
.footer-links a:hover{
    color: #4db8ff;
    padding-left: 5px;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #a0c4e0;
}
.company-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.company-links a {
    color: #e0f0ff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 300;
}
.company-links a:hover {
    color: #4db8ff;
}
.friend-link a {
    color: #fff;
}
.friend-link a:hover {
    color: #4db8ff;
}
/* 页脚 移动设备样式 */
 @media (max-width: 768px) {
    .footer-column:not(:first-child) .footer-title {
        cursor: pointer;
    }
    .footer-column:not(:first-child) .footer-title .toggle-icon {
        display: inline-block;
    }
    .footer-column:not(:first-child) .footer-links {
        display: none;
    }
    .footer-column:not(:first-child) .footer-links.expanded {
        display: flex;
        margin-top: 0.5rem;
        margin-bottom: 1.5rem;
    }
    .footer-column {
        margin-bottom: 0.5rem;
    }
}
/* 页脚 桌面设备样式 */
 @media (min-width: 768px) {
    .footer-links {
        display: flex !important;
    }
}
/* 返回顶部按钮 */
 #back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.4);
    border: none;
}
#back-to-top.show {
    opacity: 1;
    visibility: visible;
}
#back-to-top:hover {
    background: #0d2e8a;
    transform: translateY(-5px) scale(1.1);
}

/* 响应式调整 */
 @media (max-width: 480px) {
    .recommend {
        display:none;
    }
}

@media (max-width: 992px) {
    .personalized {
        display:none;
    }
    img.logo {
        width:156px;
        height:66px;
        position:absolute;
        margin-top:-34px;
    }
    .container {
        max-width:100vw!important;
    }
    
    .carousel-caption {
        bottom: 20%;
    }
    .carousel-item {
        height: 215px;
    }
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    .carousel-caption p {
        font-size: 1.1rem;
    }
    .navbar-brand {
        font-size: 1.5rem;
    }
    .navbar-collapse {
        background: white;
        padding: 0.5rem;
        border-radius: 10px;
        margin: 10px -10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        overflow-y: scroll;
        max-width: 100vw;
        width: 100vw;
        max-height: calc(100vh - 60px);
        height: calc(100vh - 60px);
        transition: all 0.1s linear;
    }
    .feature-img {
        height: 200px;
    }
    .intro-nav {
        /*试试static*/
        position: relative;
        top: 0;
        margin-top: 20px;
    }
}
/* 添加下拉菜单悬停效果的CSS */
 @media (min-width: 992px) {
    /* 额外的CSS */
    .w-20 {
        width:20%
    }
    .dropdown-mega-menu {
        width: 75vw;
        height: 476px;
        min-height: 476px;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 1.5rem;
        transition: all 0.3s ease;
        position: fixed !important;
        top: 74px !important;
    }
    /* 添加导航栏滚动样式 */
    .navbar.nav-scrolled {
        /*background-color: rgba(255, 255, 255, 0.95);*/
        /*box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);*/
        top: -92px;
    }
    .dropdown-menu.menu-scrolled {
        top: -10px !important;
        transition: all 0.3s ease;
    }
    .dropdown:hover .dropdown-menu {
        /*display: block;
        opacity: 1;
        visibility: visible;       这三行让菜单点击不会消失隐藏*/
        transform: translateY(0);
    }
    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        pointer-events: none;
    }
    .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    .dropdown.keep-open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    .carousel-item {
        height: 500px;
    }
}
/*移动端导航按钮样式*/
 .navbar-toggler .navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}
/* 默认三条线（汉堡） */
 .navbar-toggler.collapsed .navbar-toggler-icon::before, .navbar-toggler.collapsed .navbar-toggler-icon::after {
    content:'';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
    transition: all 0.3s ease;
}
.navbar-toggler.collapsed .navbar-toggler-icon::before {
    top: 6px;
}
.navbar-toggler.collapsed .navbar-toggler-icon::after {
    top: 18px;
}
/* 激活状态（×） */
 .navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    background: transparent;
}
.navbar-toggler:not(.collapsed) .navbar-toggler-icon::before, .navbar-toggler:not(.collapsed) .navbar-toggler-icon::after {
    content:'';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
    top: 50%;
    transform: rotate(45deg);
}
.navbar-toggler:not(.collapsed) .navbar-toggler-icon::after {
    transform: rotate(-45deg);
}
/*通用样式end*/

