.title{
    font-size: 2rem;
    font-weight: bold;
}


/* 轮播图样式 */
.carousel {
    position: relative;
    width: 100%;
    height: 50vh; /* 设置为视窗高度的二分之一 */
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-item.is-active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    top: 55%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 2;
}

.carousel-content .title.is-1 {
    font-size: 2.5rem;
}

.carousel-content .subtitle.is-3 {
    font-size: 1.5rem;
}

.carousel-content .button {
    margin-top: 1rem;
    padding: 0.75em 1.5em;
}

/* 渐变遮罩 */
.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
}

/* 导航按钮 */
.carousel-nav {
    position: absolute;
    width: 100%;
    top: 45%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

.carousel-nav a {
    color: white;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.carousel-nav a:hover {
    opacity: 1;
}

/* 指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 1rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.is-active {
    background-color: white;
    transform: scale(1.2);
}

/* 导航栏样式 */
.navbar-menu {
    display: flex;
    align-items: center;  /* 垂直居中对齐 */
}

.navbar-item {
    display: flex;
    align-items: center;  /* 垂直居中对齐 */
}

.navbar-item .button {
    display: flex;
    align-items: center;  /* 垂直居中对齐 */
    height: 100%;  /* 确保按钮高度与导航栏一致 */
}

.navbar-item .button.is-info {
    margin-left: 1rem;  /* 添加左边距以分隔按钮 */
}

.navbar-item.has-dropdown {
    margin-left: 1rem;  /* 添加左边距以分隔移动端按钮 */
}

/* Logo和标题样式 */
.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand .title {
    margin-bottom: 0;  /* 清除标题默认下边距 */
    margin-left: 0.5rem;  /* 添加一点间距 */
    font-size: 1.5rem;  /* 调整标题大小 */
}

.navbar-brand .navbar-item {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    max-height: 40px;  /* 控制logo大小 */
}

/* 悬浮菜单样式 */
.floating-menu {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 100;
   
}

.floating-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    color: white;
}

.floating-button .icon {
    color: white;  /* 确保图标为白色 */
}

.floating-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(229, 0, 0, 0.2);  /* 添加红色阴影效果 */
}

.floating-button.is-active {
    transform: scale(1.1);
}

.menu-items {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    padding: 0.5rem;
    min-width: 150px;
}

.menu-items.is-active {
    display: flex;
}

.side-menu-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px;
    color: #666;
    transition: all 0.3s ease;
    gap: 0.5rem;
    text-decoration: none;
    width: 100%;
    cursor: pointer;  /* 添加鼠标手型指针 */
}

.side-menu-item:hover {
    color: #f14668;
    background: #f5f5f5;
    border-radius: 4px;
}

.side-menu-item span:not(.icon) {
    font-size: 12px;
    white-space: nowrap;
    display: flex;  /* 添加flex布局 */
    align-items: center;  /* 垂直居中 */
}

/* 修复菜单项链接样式 */
.side-menu-item a {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;  /* 改为行内块元素 */
}

.side-menu-item:hover a {
    color: inherit;
}

/* 反馈表单样式 */
.box {
    margin-top: 2rem;
    padding: 2rem;
    background-color:white;
}

.file-name {
    max-width: none;
}

.textarea {
    min-height: 150px;
}

/* 必填项标记 */
.label .has-text-danger {
    font-size: 0.8em;
    vertical-align: super;
}

/* 文件上传按钮样式 */
.file-cta {
    background-color: #f5f5f5;
}

.file-label:hover .file-cta {
    background-color: #eee;
}

/* 联系咨询区域样式 */
.contact-section {
    margin-top: -3rem;  /* 向上移动以减少间距 */
    background-color: white;
    padding: 4rem 0;
    position: relative;
    z-index: 1;  /* 确保内容在其他元素之上 */
}

.contact-section .consultant-image {
    width: 100%;
    height: auto;
    border-radius: 8px;  /* 可选：添加圆角使图片更美观 */
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);  可选：添加阴影提升层次感 */
}

.contact-section .title {
    margin-bottom: 1.5rem;
}

.contact-section .subtitle {
    color: #666;
    line-height: 1.6;
}

.contact-section .button.is-danger {
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-section .button.is-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 0, 0, 0.2);
}

/* 联系信息栏样式 */
.contact-bar {
    background-color: #333;
    color: white;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.contact-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6rem;  /* 增加项目之间的间距 */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;  /* 增加图标和文字之间的间距 */
    white-space: nowrap;
    padding: 0.5rem 1rem;  /* 增加内边距 */
    border-radius: 4px;
    transition: all 0.3s ease;
}

.contact-item .icon {
    color: #fff;
    font-size: 1.1rem;  /* 增大图标尺寸 */
}

.contact-item span:not(.icon) {
    font-size: 1rem;  /* 增大文字尺寸 */
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .contact-items {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;  /* 增加移动端间距 */
        padding: 0 1rem;
    }
    
    .contact-bar {
        padding: 2rem 0;  /* 增加移动端上下间距 */
    }
}

/* 版权信息样式 */
.footer {
    background-color: #333;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: white;
    margin-top: 0;
    position: relative;  /* 为伪元素定位做准备 */
}

/* 添加分割线 */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);  /* 半透明白色，显得更暗淡 */
}

.footer p {
    margin: 0;
    font-size: 1rem;
}

/* 产品分类样式 */
.product-section {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.product-tabs {
    margin-bottom: 3rem !important;
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    background-color: #f8f9fa;
}

.product-tabs ul {
    border-bottom: none;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;  /* 增加标签之间的间距 */
}

/* 添加全宽底线 */
.product-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 1px;
    background-color: #e0e0e0;
    width: 100%;
    left: 0;
}

.product-tabs li {
    margin-bottom: -2px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.product-tabs li a {
    padding: 1rem 2.5rem;
    color: #666;
    position: relative;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 添加图标 */
.product-tabs li a::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.1rem;
    opacity: 0.7;
}

.product-tabs li a[data-tab="router"]::before {
    content: "\f233";  /* 路由器图标 */
}

.product-tabs li a[data-tab="switch"]::before {
    content: "\f6ff";  /* 交换机图标 */
}

.product-tabs li a[data-tab="firewall"]::before {
    content: "\f023";  /* 防火墙图标 */
}

.product-tabs li a[data-tab="ac"]::before {
    content: "\f1eb";  /* AC图标 */
}

.product-tabs li.is-active a {
    color: #f14668;
}

.product-tabs li:hover a {
    color: #f14668;
    transform: translateY(-2px);
}

/* 添加激活状态的底线 */
.product-tabs li.is-active a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f14668;
    box-shadow: 0 1px 3px rgba(241, 70, 104, 0.3);
}

/* 添加动画效果 */
.product-tabs li a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #f14668;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.product-tabs li:hover a::after {
    width: 100%;
}

.tab-content .tab-pane {
    display: none;  /* 初始状态隐藏所有面板 */
}

.tab-content .tab-pane.is-active {
    display: block !important;  /* 确保活动面板显示 */
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content .columns {
    justify-content: center;
    margin: -0.75rem;  /* 抵消 Bulma 的默认间距 */
}

.tab-content .column {
    padding: 0.75rem;
    display: flex;
    justify-content: center;
}

.product-card {
    width: 100%;
    max-width: 320px;  /* 限制最大宽度 */
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card .card-content {
    padding: 1.5rem;
    text-align: center;  /* 卡片内容居中 */
}

.product-card .content ul {
    margin-top: 1rem;
    color: #666;
    text-align: left;  /* 保持列表左对齐 */
    padding-left: 1.5rem;  /* 调整列表缩进 */
}

/* 移动端下拉菜单样式 */
.qrcode-dropdown {
    padding: 0;  /* 移除内边距 */
    min-width: 200px;  /* 保持最小宽度 */
    border-radius: 0;  /* 移除圆角 */
    box-shadow: none;  /* 移除阴影 */
    background-color: none;  /* 确保没有背景颜色 */
}

.qrcode-dropdown .dropdown-content {
    background: none;  /* 保持背景透明 */
    border: none;  /* 移除边框 */
    box-shadow: none;  /* 移除阴影 */
    padding: 0;  /* 移除内边距 */
}

.qrcode-dropdown .dropdown-item {
    padding: 0.5rem;
    text-align: center;
    color: #00C5D9;  /* 修改为登录按钮的背景色 */
}

.qrcode-dropdown .dropdown-item:hover {
    color: #f14668;  /* 悬停时颜色变化 */
}

.qrcode-dropdown figure {
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.qrcode-dropdown figure:hover {
    transform: scale(1.05);
}

.qrcode-dropdown p {
    color: #666;
    font-size: 0.9rem;
}

/* 移动端按钮样式 */
.navbar-item .button.is-light {
    transition: all 0.3s ease;
}

.navbar-item .button.is-light:hover {
    background-color: #f5f5f5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nobottom  { 
    padding-bottom: 0!important;
    margin-bottom: 0!important;
}
 