/* ============================================
   2. 头部区域 (Header)
   ============================================ */

/**
 * Header - 页面顶部导航栏
 * 包含Logo、导航菜单、语言切换
 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-header);
    z-index: 1000;

}

.header-tmp {
    height: var(--header-height);
}

/* 头部容器 - 限制最大宽度并居中 */
.header__container {
    /* max-width: var(--container-max-width); */
    height: 100%;
    margin: 0 auto;
    /* padding: 0 var(--spacing-lg); */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   3. Logo区域
   ============================================ */

/**
 * Logo - 公司标识区域
 * 包含图标、中文名称、英文名称
 */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Logo图标 */
.logo__icon {
    width: 85px;
    height: 78px;
    /* background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%); */
    /* border-radius: 50%; */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo__xl {
    color: var(--color-text-white);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Logo文字区域 */
.logo__text {
    padding-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* 中文公司名称 */
.logo__name {
    font-size: 35px;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1;
    white-space: nowrap;
}

/* 英文公司名称 */
.logo__name-en {
    font-size: 15px;
    color: var(--color-text-primary);
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: 0.8px;
}

/* ============================================
   4. 导航区域 (Nav)
   ============================================ */

/**
 * Nav - 主导航区域
 * 包含导航菜单列表和语言切换
 */
.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    height: 100%;
}

/* 导航菜单列表 */
.nav__menu {
    display: flex;
    align-items: center;
    height: 100%;
}

/* 导航项 */
.nav__item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* 导航链接 */
.nav__link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    height: 100%;
    /* padding: 0 var(--spacing-md); */
    padding: 0 20px;
    color: var(--color-text-primary);
    font-size: 20px;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

@media screen and (max-width: 1590px) {
    .nav__link {
        padding: 0 10px;
    }
}

@media screen and (max-width: 1440px) {
    .nav__link {
        padding: 0 5px;
    }
}



.nav__link:hover {
    color: var(--color-primary);
}

/* 激活状态的导航链接 */
.nav__link--active {
    color: var(--color-primary);
}

/* 导航图标 */
.nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 导航箭头 */
.nav__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

/* 下拉菜单展开时箭头旋转 */
.nav__item--has-dropdown:hover .nav__arrow,
.nav__item--has-dropdown.is-open .nav__arrow {
    transform: rotate(180deg);
}

/* 搜索链接 */
.nav__link--search {
    padding: 0 var(--spacing-sm);
    color: var(--color-text-secondary);
}

.nav__link--search:hover {
    color: var(--color-primary);
}

/* ============================================
   5. 下拉菜单 (Dropdown)
   ============================================ */

/**
 * Dropdown - 二级下拉菜单
 * 白色背景，左侧蓝色指示器
 */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: var(--dropdown-width);
    background-color: var(--color-bg-white);
    border-radius: 4px;
    box-shadow: var(--shadow-dropdown);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    padding: var(--spacing-xs) 0;
    z-index: 1001;
}

/* 下拉菜单显示状态 */
.nav__item--has-dropdown:hover .dropdown,
.dropdown.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 下拉菜单项 */
.dropdown__item {
    position: relative;
}

/* 下拉菜单链接 */
.dropdown__link {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-text-primary);
    font-size: 20px;
    transition: background-color var(--transition-fast);
}

.dropdown__link:hover {
    background-color: var(--color-bg-gray);
}

/* 下拉菜单指示器 - 左侧蓝色竖线 */
.dropdown__indicator {
    width: 3px;
    height: 14px;
    background-color: var(--color-primary);
    margin-right: var(--spacing-sm);
    border-radius: 2px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.dropdown__link:hover .dropdown__indicator,
.dropdown__link--active .dropdown__indicator {
    opacity: 1;
}

/* ============================================
   6. 语言切换 (Language)
   ============================================ */

/**
 * Language - 语言切换组件
 * 蓝色背景按钮，带下拉选择
 */
.language {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* 语言切换按钮 */
.language__toggle {
    position: relative;
    /* top: -4px; */
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    height: 100%;
    padding: 0 30px;
    background-color: var(--color-primary);
    color: var(--color-text-white);
    font-size: 18px;
    /* border-radius: 4px; */
    transition: background-color var(--transition-fast);
}

@media screen and (max-width: 1440px) {
    .language__toggle {
        padding: 0 15px;
    }
}



.language__toggle:hover {
    background-color: var(--color-primary-dark);
}

/* 语言切换箭头 */
.language__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.language.is-open .language__arrow {
    transform: rotate(180deg);
}

/* 语言下拉菜单 */
.language__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 135px;
    background-color: var(--color-bg-white);
    border-radius: 4px;
    box-shadow: var(--shadow-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    padding: var(--spacing-xs) 0;
    z-index: 1001;
}

.language.is-open .language__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 语言选项 */
.language__item {
    position: relative;
}

/* 语言链接 */
.language__link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-text-primary);
    font-size: 20px;
    text-align: center;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.language__link:hover {
    background-color: var(--color-bg-gray);
    color: var(--color-primary);
}

/* 激活的语言选项 */
.language__link--active {
    color: var(--color-primary);
    font-weight: 500;
}

/* ============================================
   7. 移动端菜单按钮
   ============================================ */

/**
 * Mobile Toggle - 移动端汉堡菜单按钮
 */
.nav__mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav__mobile-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: all var(--transition-fast);
}

/* 菜单打开时的动画效果 */
.nav__mobile-toggle.is-open .nav__mobile-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__mobile-toggle.is-open .nav__mobile-bar:nth-child(2) {
    opacity: 0;
}

.nav__mobile-toggle.is-open .nav__mobile-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================
   9. 主内容区域
   ============================================ */

/**
 * Main - 页面主要内容区域
 */
.main {
    min-height: 500px;
    /* padding: var(--spacing-xl) 0; */
}

.main__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    /* padding: 0 var(--spacing-lg); */
}

/* ============================================
   10. 响应式适配
   ============================================ */

/**
 * 平板端适配 (max-width: 1024px)
 */
@media screen and (max-width: 1024px) {
    :root {
        --header-height: 65px;
    }

    .header__container {
        padding: 0 var(--spacing-md);
    }

    /* 缩小Logo文字 */
    .logo__name {
        font-size: 16px;
    }

    .logo__name-en {
        font-size: 9px;
    }

    /* 缩小导航间距 */
    .nav__link {
        padding: 0 var(--spacing-sm);
        font-size: 13px;
    }

    /* 缩小Banner高度 */
    .banner {
        height: 400px;
    }
}

/**
 * 移动端适配 (max-width: 768px)
 */
@media screen and (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    /* 隐藏英文名称 */
    .logo__name-en {
        display: none;
    }

    .logo__name {
        font-size: 15px;
    }

    /* 显示移动端菜单按钮 */
    .nav__mobile-toggle {
        display: flex;
    }

    /* 导航菜单改为侧边栏 */
    .nav__menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        background-color: var(--color-bg-white);
        padding: 0;
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        overflow-y: auto;
        box-shadow: var(--shadow-dropdown);
    }

    .nav__menu.is-open {
        transform: translateX(0);
    }

    /* 导航项改为垂直布局 */
    .nav__item {
        height: auto;
        flex-direction: column;
        border-bottom: 1px solid var(--color-border);
        width: 100%;
    }

    .nav__item--search {
        display: none;
        /* 移动端隐藏搜索 */
    }

    .nav__link {
        height: 54px;
        padding: 0 var(--spacing-lg);
        justify-content: flex-start;
        font-size: 16px;
        font-weight: 500;
        width: 100%;
        text-align: left;
    }

    /* 导航图标样式 */
    .nav__icon {
        margin-right: var(--spacing-sm);
        display: flex;
        align-items: center;
    }

    /* 导航箭头移到右侧 */
    .nav__arrow {
        margin-left: auto;
        transition: transform var(--transition-fast);
        display: flex;
        align-items: center;
    }

    /* 导航文字 */
    .nav__text {
        flex: 1;
        text-align: left;
    }

    /* 下拉菜单改为手风琴式 */
    .dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        padding: 0;
        background-color: #f0f4f8;
        width: 100%;
    }

    .nav__item.is-open .dropdown {
        max-height: 400px;
        overflow: visible;
        transform: none;
    }

    .dropdown__item {
        width: 100%;
        display: block;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav__item.is-open .dropdown__item {
        opacity: 1;
        transform: translateY(0);
    }

    .nav__item.is-open .dropdown__item:nth-child(1) {
        transition-delay: 0.05s;
    }

    .nav__item.is-open .dropdown__item:nth-child(2) {
        transition-delay: 0.1s;
    }

    .nav__item.is-open .dropdown__item:nth-child(3) {
        transition-delay: 0.15s;
    }

    .dropdown__link {
        padding: 14px var(--spacing-lg);
        font-size: 15px;
        color: var(--color-text-secondary);
        width: 100%;
        display: flex;
        align-items: center;
        min-height: 48px;
        border-left: 3px solid transparent;
        margin-left: 24px;
        width: calc(100% - 24px);
    }

    .dropdown__link:hover {
        background-color: rgba(30, 91, 181, 0.06);
        color: var(--color-primary);
        border-left-color: var(--color-primary);
    }

    /* 下拉菜单指示器 - 移动端隐藏 */
    .dropdown__indicator {
        display: none;
    }

    /* 下拉菜单文字 */
    .dropdown__text {
        flex: 1;
        text-align: left;
    }

    /* 语言切换 */
    .language__toggle {
        height: 36px;
        padding: 0 var(--spacing-sm);
        font-size: 13px;
    }

    /* 缩小Banner高度 */
    .banner {
        height: 300px;
    }
}

/**
 * 小屏移动端适配 (max-width: 480px)
 */
@media screen and (max-width: 480px) {
    .logo__icon {
        width: 40px;
        height: 40px;
    }

    .logo__xl {
        font-size: 14px;
    }

    .logo__name {
        font-size: 13px;
    }

    .header__container {
        padding: 0 var(--spacing-sm);
    }

    .banner {
        height: 250px;
    }
}

/* ============================================
   11. 辅助类
   ============================================ */

/* 隐藏元素 */
.is-hidden {
    display: none !important;
}

/* 可见性 */
.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 禁止滚动 - 用于移动端菜单打开时 */
body.is-menu-open {
    overflow: hidden;
}

/* ============================================
   12. 页脚区域 (Footer)
   ============================================ */

/**
 * Footer - 页面底部区域
 * 深色背景，包含Logo、导航、联系信息、留言表单等
 */
.footer {
    background-color: #1C242F;
    background-image: url('../images/index/a.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

/* 页脚容器 */
.footer__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    /* padding: 0 var(--spacing-lg); */
}

/* ============================================
   13. 页脚顶部区域
   ============================================ */
.footer__top {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__top .footer__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 页脚Logo区域 */
.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer__logo .logo__icon {
    width: 63px;
    height: 66px;
    /* background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%); */
    /* border-radius: 50%; */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer__logo .logo__xl {
    color: var(--color-text-white);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer__logo .logo__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer__logo .logo__name {
    font-size: var(--xl-font-size-36);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    white-space: nowrap;
}

.footer__logo .logo__name-en {
    font-size: 16px;
    color: rgba(255, 255, 255, 1);
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

/* 页脚标语 */
.footer__slogan {
    font-size: 34px;
    color: #1091FF;
    font-weight: 500;
}

/* ============================================
   14. 页脚导航区域
   ============================================ */
.footer__nav {
    margin-top: 45px;
    padding: 15px 0;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
}

.footer__nav .footer__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 页脚导航列表 */
.footer__nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 90px;
}

@media screen and (max-width: 1330px) {
    .footer__nav-list {
        gap: 30px;
    }
}

.footer__nav-link {
    color: rgba(255, 255, 255, 1);
    font-size: 18px;
    transition: color var(--transition-fast);
    position: relative;
}

.footer__nav-link:hover {
    color: #ffffff;
}

.footer__nav-link::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 30%;
    height: 2px;
    background-color: #00A2FF;
}


/* .footer__nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

.footer__nav-link:hover::after {
    transform: scaleX(1);
} */

/* 咨询服务热线 */
.footer__hotline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer__hotline-icon {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
}

.footer__hotline-text {
    color: rgba(255, 255, 255, 1);
    font-size: 22px;
    padding-top: 10px;
    margin-right: -10px;
}

.footer__hotline-number {
    color: #1091FF;
    font-size: 36px;
    font-weight: 700;
}

/* ============================================
   15. 页脚主体区域
   ============================================ */
.footer__main {
    padding: 20px 0 30px;
}

.footer__main .footer__container {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

/* 二维码区域 */
.footer__qr-section {
    display: flex;
    gap: 30px;
    flex-shrink: 0;
    padding-top: 35px;
}

.footer__qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer__qr-code {
    width: 120px;
    height: 120px;
    background-color: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer__qr-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* 联系信息区域 */
.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    padding-top: 35px;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer__contact-icon {
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__contact-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    flex-shrink: 0;
}

.footer__contact-value {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    text-align: left;
}

/* 留言表单区域 */
.footer__message {
    flex-shrink: 0;
    width: 400px;
}

.footer__message-title {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 500;
}

.footer__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__form-row {
    display: flex;
    gap: 10px;
}

.footer__form-row--textarea {
    align-items: stretch;
}

.footer__form-group {
    flex: 1;
}

.footer__form-group--textarea {
    flex: 1;
}

.footer__input,
.footer__textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: #ffffff;
    font-size: 13px;
    color: #333333;
    outline: none;
    transition: border-color var(--transition-fast);
}

.footer__input::placeholder,
.footer__textarea::placeholder {
    color: #999999;
}

.footer__input:focus,
.footer__textarea:focus {
    border-color: var(--color-primary);
}

.footer__textarea {
    height: 60px;
    resize: none;
    font-family: inherit;
}

.footer__submit {
    width: 60px;
    height: 60px;
    background-color: var(--xl-color-secondary);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    /* writing-mode: vertical-rl;
    text-orientation: upright; */
    letter-spacing: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__submit:hover {
    background-color: #e67a35;
}

/* ============================================
   16. 页脚底部区域
   ============================================ */
.footer__bottom {
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
}

.footer__bottom .footer__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__copyright {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
}

.footer__links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.footer__link {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: #ffffff;
}

.footer__divider {
    color: rgba(255, 255, 255, 0.3);
}



/* ============================================
   19. 页脚响应式适配
   ============================================ */

/* 平板端适配 (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .footer__main .footer__container {
        gap: 30px;
    }

    .footer__message {
        width: 280px;
    }

    .footer__nav-list {
        gap: 25px;
    }
}

/* 移动端适配 (max-width: 768px) */
@media screen and (max-width: 768px) {
    .footer__top .footer__container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer__slogan {
        font-size: 16px;
    }

    .footer__nav .footer__container {
        flex-direction: column;
        gap: 15px;
    }

    .footer__nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .footer__hotline {
        justify-content: center;
    }

    .footer__main .footer__container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .footer__qr-section {
        justify-content: center;
    }

    .footer__contact {
        align-items: flex-start;
        text-align: center;
    }

    .footer__message {
        width: 100%;
        max-width: 400px;
    }

    .footer__bottom .footer__container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer__copyright {
        justify-content: center;
    }
}

/* 小屏移动端适配 (max-width: 480px) */
@media screen and (max-width: 480px) {
    .footer__container {
        padding: 0 var(--spacing-md);
    }

    .footer__logo .logo__icon {
        width: 40px;
        height: 40px;
    }

    .footer__logo .logo__xl {
        font-size: 14px;
    }

    .footer__logo .logo__name {
        font-size: 14px;
    }

    .footer__logo .logo__name-en {
        font-size: 8px;
    }

    .footer__slogan {
        font-size: 14px;
    }

    .footer__nav-list {
        gap: 15px;
        display: none;
    }

    .footer__nav-link {
        font-size: 13px;
    }

    .footer__hotline-text {
        padding-top: 0px;
        font-size: 18px;
    }

    .footer__hotline-number {
        font-size: 25px;
    }

    .footer__qr-code {
        width: 80px;
        height: 80px;
    }

    .footer__qr-code img {
        width: 70px;
        height: 70px;
    }

    .footer__form-row {
        flex-direction: column;
    }

    .footer__form-row--textarea {
        flex-direction: row;
    }

    .footer__submit {
        width: 50px;
        height: 70px;
    }

    .footer__copyright {
        font-size: 11px;
    }

    .footer__links {
        font-size: 11px;
    }
}

/* ============================================
   15. 右侧浮动按钮
   ============================================ */

/**
 * 右侧浮动按钮区域 - 固定在页面右侧
 */
.area__right {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 9999;
}

/* 浮动按钮容器 */
.float-buttons {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* 浮动按钮基础样式 */
.float-btn {
    width: 56px;
    height: 56px;
    background-color: #ffffff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 电话按钮 */
.float-btn--phone {
    color: #194397;
}

.float-btn--phone:hover {
    background-color: #194397;
    color: #ffffff;
}

/* 留言按钮 */
.float-btn--message {
    color: #194397;
}

.float-btn--message:hover {
    background-color: #194397;
    color: #ffffff;
}

/* 按钮图标 */
.float-btn__icon {
    width: 28px;
    height: 28px;
}

/* 浮动面板基础样式 */
.float-panel {
    position: absolute;
    right: 70px;
    bottom: 0;
    width: 280px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.float-panel.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* 面板头部 */
.float-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: #194397;
    color: #ffffff;
}

.float-panel__title {
    font-size: 16px;
    font-weight: 500;
}

.float-panel__close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease;
}

.float-panel__close:hover {
    opacity: 0.8;
}

.float-panel__close svg {
    width: 18px;
    height: 18px;
}

/* 面板内容区域 */
.float-panel__content {
    padding: 20px;
}

/* 电话面板样式 */
.float-phone__item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.float-phone__item:last-child {
    border-bottom: none;
}

.float-phone__label {
    display: block;
    font-size: 13px;
    color: #999999;
    margin-bottom: 6px;
}

.float-phone__number {
    font-size: 18px;
    font-weight: 600;
    color: #194397;
    transition: color 0.2s ease;
}

.float-phone__number:hover {
    color: #1355b2;
}

/* 留言面板样式 */
.float-message__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-message__field {
    width: 100%;
}

.float-message__input,
.float-message__textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    color: #333333;
    background-color: #ffffff;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.float-message__input::placeholder,
.float-message__textarea::placeholder {
    color: #999999;
}

.float-message__input:focus,
.float-message__textarea:focus {
    outline: none;
    border-color: #194397;
}

.float-message__textarea {
    resize: vertical;
    min-height: 80px;
}

.float-message__submit {
    width: 100%;
    padding: 12px 20px;
    background-color: #194397;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.float-message__submit:hover {
    background-color: #1355b2;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .area__right {
        right: 10px;
        bottom: 80px;
    }

    .float-btn {
        width: 48px;
        height: 48px;
    }

    .float-btn__icon {
        width: 24px;
        height: 24px;
    }

    .float-panel {
        right: 60px;
        width: 260px;
    }
}

@media screen and (max-width: 480px) {
    .float-panel {
        right: 10px;
        bottom: 110px;
        width: calc(100vw - 20px);
        max-width: 300px;
    }
}


/* --------------------------------------------
   返回顶部按钮样式 - Back to Top (.to-top)
   与浮动按钮样式保持一致
   隐藏逻辑由 jquery.toTop.min.js 插件控制
   -------------------------------------------- */
.to-top {
    width: 56px;
    height: 56px;
    /* color: #194397;
    background-color: #ffffff; */
    background-color: #194397;
    color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.to-top svg {
    display: block;
    width: 28px;
    height: 28px;
}

/* 悬停效果 */
.to-top:hover {
    background-color: #194397;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .to-top {
        width: 48px;
        height: 48px;
    }

    .to-top svg {
        width: 24px;
        height: 24px;
    }
}