/* 全局字体设置 */
/* 中文字体 */
.lang-zh-hans body {
    color: #000;
    font-family: 'Noto Sans SC',-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    padding-top: 110px; /* 为固定导航栏留出空间 */
}

/* 日语字体 */
.lang-ja body {
    font-family: "Noto Sans JP","游ゴシック",YuGothic,"游ゴシック体","ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Verdana,"メイリオ",Meiryo,Osaka,"ＭＳ Ｐゴシック","MS PGothic",sans-serif;
}

/* 英文 */
.lang-en body {
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

.lang-zh-hans #navbarNav > ul > li{
    width: 150px;
    text-align: center;
}

:root {
    /* 主色调：爱马仕橘 */
    --primary: #f87f3a;             /* 正常状态 */
    --primary-dark: #e76b2f;        /* 深橙色，用于悬停/强调 */
    --primary-light: #ff9b6a;       /* 浅橙色，用于背景或按钮渐变 */
    --primary-hover: #ff6a00;       /* 鼠标悬停或交互状态 */
    
    /* 第二色调：搭配的蓝色，用于对比和强调 */
    --secondary: #1976D2;           
    --secondary-light: #64B5F6;     
    
    /* 文本颜色 */
    --text-on-primary: #FFFFFF;     
    
    /* RGB值方便 JS 动态使用 */
    --primary-rgb: 248,127,58;     
    
    /* 渐变色（可以用于按钮或大块背景） */
    --gradient-primary: linear-gradient(135deg, #f87f3a 0%, #ff9b6a 100%);
    --gradient-primary-hover: linear-gradient(135deg, #e76b2f 0%, #ff6a00 100%);
    --gradient-secondary: linear-gradient(135deg, #1976D2 0%, #64B5F6 100%);
}



/* 标题字体 */

h1,
h2,
h3,
h4,
h5,
h6 {
    /* color: #2D3748; */
    font-weight: 700;
    line-height: 1.4;
}



h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}



/* 导航栏字体 */

.navbar {
    padding: 0;
    height: auto;
}

.navbar > .container {
    padding: 0.5rem 0;
}

.navbar-brand {
    padding: 0.5rem 0;
    margin-right: 2rem;
}

.navbar-brand img {
    height: 50px;
    transition: transform 0.3s ease;
}

.bottom-nav {
    padding: 0;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.bottom-nav > .container {
    padding: 0;
}

.bottom-nav .navbar-nav {
    padding: 0.5rem 0;
    margin-left: 0;
}

.bottom-nav .nav-link {
    padding: 0.5rem 1rem;
    color: #333 !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.bottom-nav .navbar-nav .nav-item:first-child .nav-link {
    padding-left: 0;
}

.bottom-nav .btn-primary {
    margin-left: 1rem;
}

/* 导航栏容器 */
.navbar > .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.container img:hover {
    transform: scale(1.1);
}
/* Logo样式 */
.navbar-brand {
    padding: 0.5rem 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

/* 导航链接 */
.navbar-nav {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: #fff !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* .nav-link:hover {
    color: var(--primary) !important;
} */

/* 下拉菜单容器 */
.dropdown {
    position: relative !important;
}

/* 下拉菜单样式 */
.dropdown-menu {
    position: absolute !important;
    right: 0;
    top: 100% !important;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
    z-index: 1050 !important;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

/* 下拉菜单项 */
.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: #2d3748;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(142, 67, 231, 0.1);
    color: var(--primary);
}



/* 调整body的padding以适应固定导航栏 */
body {
    padding-top: 110px; /* 60px + 50px */
}



/* 页面内容字体 */

.page-content {

    font-size: 1.1rem;

}



/* 按钮文字 */

.btn {

    font-weight: 500;

    font-size: 1.1rem;

}



/* 页脚字体 */

.footer {
    background: var(--gradient-primary);
    padding: 3rem 0;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 3rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links .nav-link:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.2);
}

.footer p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer h4 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 50px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.5);
}

.footer .lead {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}




/* 通用页首样式 */

.page-header {
    background-color: var(--gradient-primary);
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    color: var(--text-on-primary);
}



/* 内容区域调整 */

.page-content {

    padding-top: 20px;

    position: relative;

    z-index: 1;

}



/* 手风琴组件样式 */

.accordion-button {

    font-size: 1.1rem;

    font-weight: 500;

}

.accordion-body {

    font-size: 1.1rem;

    line-height: 1.8;

}

.accordion-button:not(.collapsed) {

    background-color: rgba(142, 67, 231, 0.1);

    color: var(--primary);

}

.accordion-button:focus {

    box-shadow: none;

    border-color: rgba(0, 0, 0, .125);

}

.accordion-item {

    border-radius: 8px;

    margin-bottom: 1rem;

    border: 1px solid rgba(0, 0, 0, .125);

}

.accordion-button {

    border-radius: 8px;

}



/* 导航栏固定和样式优化 */

.navbar-brand {

    font-size: 1.6rem;

    font-weight: 700;

    padding: 0 1.5rem;

    /* color: #1a365d !important; */

    letter-spacing: -0.5px;

    transition: color 0.3s ease;

}



.navbar-brand:hover {

    color: var(--primary-hover) !important;

}



.navbar-nav {

    margin-left: 2rem;

}



.navbar-nav .nav-link {

    padding: 0.8rem 1.2rem;

    margin: 0 0.2rem;

    position: relative;

    color: #4a5568 !important;

    font-weight: 500;

    font-size: 1rem;

    transition: all 0.3s ease;

    border-radius: 6px;

}

#navbarNav > ul > li > a{
    color: black !important;
}


.navbar-nav .nav-link:hover {


    color: var(--primary-hover) !important;

    background-color: rgba(43, 108, 176, 0.05);

}



.navbar-nav .nav-link.active {

    color: var(--primary) !important;

    font-weight: 600;

    background-color: rgba(142, 67, 231, 0.1);

}

.nav-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.bottom-nav {
    height: 50px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 5px 15px -5px rgba(0,0,0,.2) inset, 0 5px 8px 0 rgba(0,0,0,.2);
}

/* 用户下拉菜单样式 */

.dropdown {
    position: relative !important;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: #2d3748;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    color: #2b6cb0;
    background-color: #ebf8ff;
}



.dropdown-divider {

    margin: 0.5rem 0;

    border-color: #e2e8f0;

}



/* 移动端菜单按钮样式 */

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    margin-right: 1rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    position: relative;
    width: 40px;
    height: 40px;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* 隐藏默认的汉堡菜单图标 */
.navbar-toggler .navbar-toggler-icon {
    display: none;
}

/* 创建自定义三条线 */
.navbar-toggler span {
    display: block;
    position: absolute;
    height: 3px;
    width: 24px;
    background: var(--primary);
    border-radius: 3px;
    opacity: 1;
    left: 8px;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

/* 三条线的位置 - 初始状态（汉堡图标） */
.navbar-toggler span:nth-child(1) {
    top: 10px;
}

.navbar-toggler span:nth-child(2),
.navbar-toggler span:nth-child(3) {
    top: 18px;
}

.navbar-toggler span:nth-child(4) {
    top: 26px;
}

/* 展开状态 - 变成X形状 */
.navbar-toggler:not(.collapsed) span:nth-child(1) {
    top: 18px;
    width: 0%;
    left: 50%;
}

.navbar-toggler:not(.collapsed) span:nth-child(2) {
    transform: rotate(45deg);
}

.navbar-toggler:not(.collapsed) span:nth-child(3) {
    transform: rotate(-45deg);
}

.navbar-toggler:not(.collapsed) span:nth-child(4) {
    top: 18px;
    width: 0%;
    left: 50%;
}





/* 调整body的顶部内边距以适应新的导航栏高度 */

body {

    padding-top: 110px; /* 60px + 50px */

}



/* 调整page-header的top值以适应新的导航栏高度 */

.page-header {

    margin-top: 20px;

}



/* 页面内容区域调整 */

.main-content {

    min-height: calc(100vh - 120px);

    /* padding-top: 40px; */

    position: relative;

    z-index: 1;

}



/* 卡片样式优化 */

.card {

    border-radius: 10px;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

    transition: transform 0.2s ease-in-out;

}

.card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 24px rgba(142, 67, 231, 0.15);
}

.card-title {
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 700;
}

.card-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a5568;
}



/* 表单样式优化 */

.form-label {

    font-weight: 500;

    font-size: 1.1rem;

    color: #2d3748;

}

.form-control {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(142, 67, 231, 0.25);
}



/* 警告框样式 */

.alert {
    position: relative;
    border-radius: 8px;
    border-left: 4px solid;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    pointer-events: auto; /* 允许点击消息 */
    opacity: 1;  /* 默认可见 */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease;
    transform: translateY(0);
    max-width: 100%;
}

.alert.show {
    opacity: 1;
    transform: translateY(0);
}

.alert-success {
    border-left-color: #28a745;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(40, 167, 69, 0.2);
    border-right: 1px solid rgba(40, 167, 69, 0.2);
    border-bottom: 1px solid rgba(40, 167, 69, 0.2);
}

.alert-danger, .alert-error {
    border-left-color: #dc3545;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(220, 53, 69, 0.2);
    border-right: 1px solid rgba(220, 53, 69, 0.2);
    border-bottom: 1px solid rgba(220, 53, 69, 0.2);
}

.alert-warning {
    border-left-color: #ffc107;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(255, 193, 7, 0.2);
    border-right: 1px solid rgba(255, 193, 7, 0.2);
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

.alert-info {
    border-left-color: #17a2b8;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(23, 162, 184, 0.2);
    border-right: 1px solid rgba(23, 162, 184, 0.2);
    border-bottom: 1px solid rgba(23, 162, 184, 0.2);
}

.alert .bi-check-circle-fill {
    color: #28a745;
}

.alert .bi-exclamation-triangle-fill {
    color: #dc3545;
}

.alert .bi-exclamation-circle-fill {
    color: #ffc107;
}

.alert .bi-info-circle-fill {
    color: #17a2b8;
}



/* 语言选择器样式 */

.language-selector {

    display: flex;

    align-items: center;

    gap: 0.5rem;

    padding: 0.5rem 1rem;

    border-radius: 6px;

    transition: all 0.3s ease;

    color: #4a5568;

    text-decoration: none;

}



.language-selector:hover {

    background-color: rgba(43, 108, 176, 0.05);

    color: #2b6cb0;

}



.language-selector i {

    font-size: 1.2rem;

}



/* 社交媒体图标样式 */
.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #fff;
    transition: all 0.3s ease;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #fff;
    opacity: 0.9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.social-icon i {
    font-size: 16px;
}



.social-icon:hover img {
    transform: scale(1.1);
}

/* 各平台特定颜色 */
.social-icon.facebook { background-color: #3b5998; }
.social-icon.twitter, .social-icon.twitter-x { background-color: #000000; }
.social-icon.instagram { background-color: #e1306c; }
.social-icon.youtube { background-color: #ff0000; }
.social-icon.linkedin { background-color: #0077b5; }
.social-icon.pinterest { background-color: #bd081c; }
.social-icon.snapchat { background-color: #fffc00; }
.social-icon.tiktok { background-color: #000000; }
.social-icon.whatsapp { background-color: #25d366; }
.social-icon.telegram { background-color: #0088cc; }
.social-icon.line { background-color: #00c300; }
.social-icon.wechat { background-color: #7bb32e; }
.social-icon.weibo { background-color: #e6162d; }
.social-icon.xiaohongshu { background-color: #fe2c55; }
.social-icon.reddit { background-color: #ff4500; }
.social-icon.discord { background-color: #5865f2; }
.social-icon.twitch { background-color: #6441a5; }
.social-icon.github { background-color: #333333; }
.social-icon.custom { background-color: #555555; }



/* 固定悬浮工具栏样式 */
.float-toolbar:not(.d-md-none) {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* PC端在线客服按钮样式 */
.float-toolbar.d-none.d-md-block .float-btn.customer-service {
    width: auto;
    height: 50px;
    padding: 0 18px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    font-weight: 500;
    animation: pulse 2s infinite;
    position: relative;
    box-shadow: 0 5px 15px rgba(142, 67, 231, 0.5);
    transition: all 0.3s ease;
    font-size: 1rem;
    background: var(--gradient-primary);
    color: var(--text-on-primary);
    border: none;
    cursor: pointer;
}

.float-btn-wrapper {
    position: relative;
    display: inline-block;
}

.float-btn {
    border: none;
    cursor: pointer;
    padding: 0;
    position: right;
    transition: all 0.3s ease;
    background: var(--gradient-primary);
    color: var(--text-on-primary);
}

.float-btn.customer-service {
    width: auto;
    height: 50px;
    padding: 0 18px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    font-weight: 500;
    animation: pulse 2s infinite;
    position: relative;
    box-shadow: 0 5px 15px rgba(142, 67, 231, 0.5);
    transition: all 0.3s ease;
    font-size: 1rem;
}

/* 在线客服气泡效果 */
.float-btn.customer-service::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--gradient-primary);
    border-radius: 50px;
    z-index: -1;
    animation: pulse-ring 2s infinite;
    box-shadow: 0 0 0 rgba(142, 67, 231, 0.6);
}

/* 客服按钮额外特效 */
.float-btn.customer-service.animated {
    animation: wiggle 1s ease-in-out, pulse 2s infinite;
}

.float-btn.customer-service.hover-effect {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(142, 67, 231, 0.7);
}

.float-btn.customer-service.clicked {
    transform: scale(0.95);
    box-shadow: 0 4px 10px rgba(142, 67, 231, 0.4);
}

.float-btn.customer-service.attention {
    animation: attention 1s ease-in-out;
}

/* 波纹效果 */
.ripple-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: ripple 1s linear;
    z-index: 1;
}

/* 注意动画 */
@keyframes attention {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(142, 67, 231, 0.5);
    }
    10% {
        transform: scale(1.1);
        box-shadow: 0 10px 25px rgba(142, 67, 231, 0.8);
    }
    20% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(142, 67, 231, 0.5);
    }
    30% {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(142, 67, 231, 0.7);
    }
    40% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(142, 67, 231, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(142, 67, 231, 0.5);
    }
}

/* 波纹扩散动画 */
@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* 摇摆动画 */
@keyframes wiggle {
    0%, 100% {
        transform: rotate(0);
    }
    25% {
        transform: rotate(5deg);
    }
    50% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

/* 脉冲动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(142, 67, 231, 0.5);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 5px 20px rgba(142, 67, 231, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(142, 67, 231, 0.5);
    }
}

/* 气泡环形脉冲效果 */
@keyframes pulse-ring {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 0;
        transform: scale(1.15);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/* 发光动画效果 */
@keyframes glow {
    0% {
        box-shadow: 0 4px 15px rgba(142, 67, 231, 0.2);
    }
    50% {
        box-shadow: 0 4px 25px rgba(142, 67, 231, 0.4);
    }
    100% {
        box-shadow: 0 4px 15px rgba(142, 67, 231, 0.2);
    }
}

/* 光晕动画 */
@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

/* 客服按钮图标动画 */
.float-btn.customer-service i {
    position: relative;
    font-size: 1.3rem;
    animation: bounce 1s infinite alternate;
    margin-right: -2px;
    z-index: 2;
}

.float-btn.customer-service:hover i {
    animation: shake 0.8s ease-in-out;
}

.float-btn.customer-service.attention i {
    animation: pulse 0.5s infinite alternate;
}

@keyframes shake {
    0%, 100% {
        transform: rotate(0);
    }
    20% {
        transform: rotate(-15deg);
    }
    40% {
        transform: rotate(10deg);
    }
    60% {
        transform: rotate(-5deg);
    }
    80% {
        transform: rotate(5deg);
    }
}

@keyframes bounce {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.2);
    }
}

.float-btn.customer-service .btn-text {
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

/* 添加光影效果 */
.float-btn.customer-service::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.float-btn.customer-service:hover::after {
    animation: shine 0.8s ease-out;
    opacity: 1;
}

.float-btn.customer-service:hover {
    transform: translateY(-3px);
    background: var(--primary-dark);
    animation: none;
    box-shadow: 0 8px 25px rgba(142, 67, 231, 0.7);
}

.float-btn.customer-service:hover::before {
    animation: none;
}

/* 实现点击交互动效 */
.float-btn.customer-service:active {
    transform: scale(0.95);
    box-shadow: 0 3px 10px rgba(142, 67, 231, 0.4);
    transition: all 0.1s;
}

/* PC端返回顶部按钮样式 */
.float-toolbar.d-none.d-md-block .float-btn.back-to-top {
    position: fixed; /* 使用固定定位，独立于工具栏 */
    right: 25px; /* 更靠右侧 */
    bottom: 85px; /* 更靠上方 */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0; /* 默认隐藏 */
    transform: translateY(20px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: none;
    outline: none !important;
}

.float-toolbar.d-none.d-md-block .float-btn.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.float-toolbar.d-none.d-md-block .float-btn.back-to-top:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

/* 链接颜色 */
a {
    color: var(--primary);
}

/* a:hover {
    color: var(--primary-dark);
} */

/* 按钮文本颜色 */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--text-on-primary);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    /* background: var(--primary-dark); */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(142, 67, 231, 0.3);
}

/* 公司理念部分样式 */
.bg-light {
    background-color: #f8f9fa !important;
}

.company-philosophy {
    position: relative;
}

.company-philosophy h2 {
    color: #1a365d;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

.company-philosophy h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.company-philosophy .lead {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.company-philosophy p {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* 导航栏按钮样式 */
.bottom-nav .btn-primary {
    padding: 8px 24px;
    font-weight: 600;
    border-radius: 50px;
    background: var(--gradient-primary);
    border-color: var(--gradient-primary);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px -5px rgba(0,0,0,.2) inset, 0 5px 8px 0 rgba(0,0,0,.2);
    white-space: nowrap;  /* 文字不换行 */
    overflow: hidden;
    text-overflow: ellipsis; /* 超长文字显示省略号 */
}

.bottom-nav .btn-primary:hover {
    /* background: var(--primary-dark); */
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(142, 67, 231, 0.3);
}



/* 时间轴样式 */
.timeline-content:before {
    background: var(--primary);
}

.timeline-content {
    border-left: 2px solid var(--primary);
}

/* 轮播图样式调整 */
.carousel-caption {
    display: none;
}

/* 消息通知样式 */
.message-container {
    position: fixed;
    top: 130px; /* 调整位置，确保在导航栏下方显示 */
    left: 0;
    right: 0;
    z-index: 1030; /* 降低z-index，确保不会遮挡其他重要元素 */
    pointer-events: none; /* 允许点击穿透 */
    max-height: calc(100vh - 200px); /* 限制最大高度 */
    overflow-y: hidden;
    max-width: 600px; /* 减小宽度，让消息更加集中 */
    margin: 0 auto;
}

/* 警告框样式 - 保留一份alert样式定义 */
.alert {
    position: relative;
    border-radius: 8px;
    border-left: 4px solid;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    pointer-events: auto; /* 允许点击消息 */
    opacity: 1;  /* 默认可见 */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease;
    transform: translateY(0);
    max-width: 100%;
}

.alert.show {
    opacity: 1;
    transform: translateY(0);
}

.alert-success {
    border-left-color: #28a745;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(40, 167, 69, 0.2);
    border-right: 1px solid rgba(40, 167, 69, 0.2);
    border-bottom: 1px solid rgba(40, 167, 69, 0.2);
}

.alert-danger, .alert-error {
    border-left-color: #dc3545;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(220, 53, 69, 0.2);
    border-right: 1px solid rgba(220, 53, 69, 0.2);
    border-bottom: 1px solid rgba(220, 53, 69, 0.2);
}

.alert-warning {
    border-left-color: #ffc107;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(255, 193, 7, 0.2);
    border-right: 1px solid rgba(255, 193, 7, 0.2);
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

.alert-info {
    border-left-color: #17a2b8;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(23, 162, 184, 0.2);
    border-right: 1px solid rgba(23, 162, 184, 0.2);
    border-bottom: 1px solid rgba(23, 162, 184, 0.2);
}

.alert .bi-check-circle-fill {
    color: #28a745;
}

.alert .bi-exclamation-triangle-fill {
    color: #dc3545;
}

.alert .bi-exclamation-circle-fill {
    color: #ffc107;
}

.alert .bi-info-circle-fill {
    color: #17a2b8;
}



/* 表单错误提示特殊样式 */
.card .alert-danger {
    background-color: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.card .alert p {
    margin-bottom: 0.5rem;
}

.card .alert p:last-child {
    margin-bottom: 0;
}

/* 表单字段错误样式增强 */
.invalid-feedback {
    display: block;
    font-size: 0.85rem;
    color: #dc3545;
    margin-top: 0.25rem;
}