
.calc-engine-container {
  max-width: 100%;
}

/* Dropdown 宽度样式 */
.uk-dropdown-width-large {
    width: 400px;
    max-width: 90vw;
}

/* 扭矩单位切换按钮样式 - 每行3个按钮，宽度相同 */
.unit-toggle-wrapper {
    width: 100%;
    box-sizing: border-box;
    padding: 0; /* 移除多余内边距 */
    margin: 0;
    border-style: dashed;
    border-color: #e5e7eb;
}

.unit-toggle-wrapper .unit-buttons-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px; /* 按钮之间的间距 */
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.unit-toggle-wrapper .unit-btn {
    width: 100%;
    min-width: auto; /* 移除最小宽度限制，避免超出 */
    max-width: none;
    box-sizing: border-box;
    padding: 0px 5px; /* 适当的内边距 */
    /*font-size: 12px; /* 缩小字体 */*/
    white-space: nowrap;
    /*overflow: hidden;*/
    text-overflow: ellipsis;
}

/* 响应式调整：小屏幕每行2个按钮 */
@media (max-width: 640px) {
    .unit-toggle-wrapper .unit-buttons-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 超小屏幕每行1个按钮 */
@media (max-width: 400px) {
    .unit-toggle-wrapper .unit-buttons-container {
        grid-template-columns: 1fr;
    }
}

/* 系列内容元素样式 */
#contact-dropdown {
    min-width: 320px;
}

.qr-item .qr-img {
    width: 70px;
    height: 70px;
}

.model-search-input {
    width: 160px;
}

.serial-table .serial-count {
    font-weight: 500;
}

.serial-table .serial-count span {
    color: #2563eb;
    font-weight: bold;
}

#serial-result.hidden {
    display: none;
}



.sku-option-btn {
	cursor: pointer;
}


/* 给用户图标加上和购物车/收藏一样的按钮样式 */
li.item-275 a.uk-preserve-width span {
    @extend .uk-icon-button;
}

/* 如果上面的继承不生效，直接写完整样式 */
li.item-275 a.uk-preserve-width span {
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    border-radius: 500px;
    background: #f4f5f7;
    color: #a0a0a0;
    vertical-align: middle;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: 0.1s ease-in-out;
    transition-property: color, background-color, background-size, border-color, box-shadow
}

li.item-275 a.uk-preserve-width span:hover {
    background-color: #fff;
    color: #292929;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}

/* 表格样式加边框 */
.serial-table,
.serial-table th,
.serial-table,
.uk-table-middle,
.uk-table-middle td,
.uk-table th,
.uk-table,
.uk-table-middle,
.uk-table-middle td {
    border: 1px solid #e9e9e9;
}



/* 性能曲线组件样式 */
.echarts-curve-wrapper {
    margin-bottom: 20px;
    /*border: 1px solid #e0e0e0;*/
    /*border-radius: 4px;*/
    overflow: hidden;
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.05);*/
}

.echarts-curve-container {
    position: relative;
    width: 100%;
    padding: 20px;
    background-color: #ffffff;
}



/* 测试条件样式 */
.test-condition {
    margin-top: 0;
    padding: 15px 20px;
    background-color: #f9f9f9;
    font-size: 12px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    line-height: 1.5;
}

.test-condition p {
    margin: 3px 0;
}

/* 错误提示样式 */
.uk-alert-danger {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* 提示文本样式 */
.uk-text-xsmall {
    font-size: 12px;
    color: #666;
    padding: 10px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

/* 图表标题样式 */
.chart-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

/* 图表容器响应式调整 */
@media (max-width: 768px) {
    .echarts-curve-container {
        padding: 10px;
    }

    .test-condition {
        padding: 10px;
    }

    .uk-text-xsmall {
        padding: 10px;
    }

    .curve-layout {
        flex-direction: column;
        align-items: flex-start;
    }

    .y-axis-unit {
        writing-mode: horizontal-tb;
        transform: none;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .legend-container {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
}

/* ECharts 自定义样式 */
.echarts-tooltip {
    font-size: 12px !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.echarts-legend-item {
    font-size: 12px !important;
}

.echarts-axis-label {
    font-size: 10px !important;
    color: #666 !important;
}

.echarts-title {
    font-size: 14px !important;
    font-weight: bold !important;
}

/* 对比线样式 */
.echarts-mark-line-line {
    stroke: #333333 !important;
    stroke-width: 2px !important;
    stroke-dasharray: 5, 5 !important;
}

/* 负载上限线样式 */
.echarts-mark-line-line.load-limit {
    stroke: #DD0000 !important;
    stroke-dasharray: 5, 5 !important;
    stroke-width: 1.5px !important;
}

/* 图例复选框样式 */
.echarts-legend-item-checkbox {
    margin-right: 5px !important;
}





/* 页脚菜单两栏布局 */
.footer-menu-two-columns .uk-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /*gap: 20px;*/
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 确保菜单项垂直排列 */
.footer-menu-two-columns .uk-nav>li {
    /*margin-bottom: 8px;*/
}

/* 保持 active 状态样式 */
.footer-menu-two-columns .uk-nav>li.uk-active>a {
    color: #ffffff;
    /* 根据您的主题颜色调整 */
    /*font-weight: bold;*/
}

/* 移动端恢复为单列 */
@media (max-width: 640px) {
    .footer-menu-two-columns .uk-nav {
        grid-template-columns: 1fr;
    }
}


.footer1 {
    font-size: 12px;
    color: #a0a0a0;
}

.uk-section-secondary {
    background: #37405e;
}



.site-footer {
    position: relative;
    z-index: 1000;
    /* 高于 uk-sticky 的 980 */
}
