/* Mobile Specific Overrides */

/* Header - Ensure Quote Button Visibility */
.open-quote-btn {
    display: flex !important;
    /* Force visible on mobile */
    height: 36px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    font-size: 12px !important;
}

/* Bottom Bar Styles */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 9990;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

.mobile-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-decoration: none;
    color: #64748b;
    /* slate-500 */
    font-size: 10px;
    gap: 4px;
}

.mobile-bottom-item.active {
    color: #137fec;
    /* primary */
}

.mobile-bottom-item i {
    font-size: 20px;
}

/* Adjust padding for bottom bar */
body {
    padding-bottom: 65px;
    /* Height of bottom bar + extra space */
}

/* Hide original floating actions if still present specifically */
.action-group-fixed {
    display: none !important;
}

/* Visibility helpers */
.mobile-hidden {
    display: none !important;
}

/* Header Adjustments */
#mobile-menu-trigger .material-symbols-outlined {
    font-size: 28px !important;
}

/* 移动端分页容器 */
.pagination-mobile {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.pagination-mobile ul {
    display: flex;
    gap: 8px;
    /* 按钮之间的间距 */
    list-style: none;
    padding: 0;
    align-items: center;
}

.pagination-mobile li a,
.pagination-mobile li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    /* 移动端触控最小宽度 */
    height: 40px;
    border: 1px solid #e5e7eb;
    /* 浅灰色边框 */
    color: #111418;
    /* 深色文字 */
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    background: #fff;
}

/* 当前激活页：黑底白字或你喜欢的蓝色点缀 */
.pagination-mobile li.active a,
.pagination-mobile li.active span {
    background-color: #111418;
    /* 黑色背景 */
    color: #ffffff;
    /* 白色文字 */
    border-color: #111418;
}

/* 交互状态：点击时显示蓝色点缀 */
.pagination-mobile li a:active {
    background-color: #f0f7ff;
    /* 极浅蓝色背景 */
    color: #007aff;
    /* 蓝色点缀色 */
    border-color: #007aff;
}

/* 隐藏不必要的“首页”和“末页”以节省手机空间 */
.pagination-mobile li:first-child,
.pagination-mobile li:last-child {
    display: none;
}

/* 让“上一页”和“下一页”宽度自适应 */
.pagination-mobile li:nth-child(2) a,
.pagination-mobile li:nth-last-child(2) a {
    padding: 0 15px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}