149 lines
7.9 KiB
CSS
149 lines
7.9 KiB
CSS
/* 欧霓博在线目录 - 简洁单页样式 */
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
body {
|
|
font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
|
|
display: flex; flex-direction: column; height: 100vh;
|
|
color: #222; background: #f5f6f8;
|
|
}
|
|
header {
|
|
display: flex; justify-content: space-between; align-items: center;
|
|
padding: 10px 16px; background: #1b4f8c; color: #fff;
|
|
}
|
|
.brand { font-size: 18px; font-weight: bold; display: flex; align-items: center; }
|
|
.brand .logo { height: 30px; margin-right: 10px; }
|
|
.brand-en { font-size: 13px; font-weight: normal; opacity: .85; }
|
|
.ver { font-size: 12px; opacity: .8; margin-left: 10px; }
|
|
.srv-status {
|
|
display: flex; align-items: center; gap: 6px;
|
|
font-size: 12px; color: #666; flex: none;
|
|
}
|
|
.srv-status .dot {
|
|
width: 10px; height: 10px; border-radius: 50%;
|
|
background: #9e9e9e; flex: none; transition: background .2s;
|
|
}
|
|
.srv-status .text { white-space: nowrap; }
|
|
.srv-status.ready .dot { background: #2e7d32; } /* 绿: 服务就绪 */
|
|
.srv-status.no-worker .dot { background: #ef6c00; } /* 橙: 等待 worker */
|
|
.srv-status.idle .dot { background: #2e7d32; } /* 绿: 空闲(服务正常) */
|
|
.srv-status.down .dot { background: #c62828; } /* 红: 服务不可达/NX 未就绪 */
|
|
.toolbar input {
|
|
width: 260px; padding: 6px 10px; border: none; border-radius: 4px 0 0 4px; font-size: 14px;
|
|
}
|
|
.toolbar button {
|
|
padding: 6px 14px; border: none; background: #4a90d9; color: #fff;
|
|
font-size: 14px; cursor: pointer;
|
|
}
|
|
#btnLang { border-radius: 0 4px 4px 0; margin-left: 2px; }
|
|
main { flex: 1; display: flex; min-height: 0; }
|
|
.split { width: 5px; cursor: col-resize; background: #e3e6e8; flex: none; }
|
|
.split:hover, .split.dragging { background: #4a90d9; }
|
|
.tree {
|
|
width: 240px; background: #fff; border-right: 1px solid #ddd;
|
|
padding: 8px; overflow-y: auto;
|
|
}
|
|
.tree .cat { font-weight: bold; margin: 8px 0 4px; color: #1b4f8c; }
|
|
.tree .series {
|
|
padding: 7px 10px; margin: 2px 0; border-radius: 4px; cursor: pointer; font-size: 14px;
|
|
}
|
|
.tree .series:hover { background: #e8f0fa; }
|
|
.tree .series.active { background: #4a90d9; color: #fff; }
|
|
.params {
|
|
width: 320px; background: #fff; border-right: 1px solid #ddd;
|
|
padding: 12px; overflow-y: auto;
|
|
}
|
|
.model-title { font-size: 16px; font-weight: bold; margin-bottom: 10px; }
|
|
.param-row { margin-bottom: 10px; }
|
|
.param-row label { display: block; font-size: 13px; color: #555; margin-bottom: 3px; }
|
|
.param-row select { width: 100%; padding: 6px; font-size: 14px; border: 1px solid #ccc; border-radius: 4px; }
|
|
#actions { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
|
|
.btn {
|
|
display: inline-block; padding: 9px 18px; border-radius: 4px; text-decoration: none;
|
|
font-size: 14px; background: #e9ecef; color: #333; border: 1px solid #ccc;
|
|
}
|
|
.btn.primary { background: #1b4f8c; color: #fff; border: none; }
|
|
.hidden { display: none !important; }
|
|
.content { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 10px; }
|
|
.tabs { display: flex; gap: 4px; margin-bottom: 8px; }
|
|
.tab {
|
|
padding: 7px 16px; border: 1px solid #ccc; border-radius: 4px 4px 0 0;
|
|
background: #e9ecef; cursor: pointer; font-size: 14px;
|
|
}
|
|
.tab.active { background: #fff; border-bottom-color: #fff; font-weight: bold; }
|
|
.tab-body { flex: 1; overflow: auto; background: #fff; border: 1px solid #ddd; border-radius: 0 4px 4px 4px; padding: 12px; }
|
|
.tab-body iframe { width: 100%; height: 100%; border: none; display: block; }
|
|
#viewer3d { display: block; }
|
|
#dimImage { max-width: 100%; max-height: 100%; }
|
|
/* 3D + 尺寸图同页布局 (左右分栏, 中间分隔条可拖拽) */
|
|
#tab-3d { display: flex; overflow: hidden; padding: 0; }
|
|
.hsplit { flex: 1; display: flex; min-width: 0; min-height: 0; }
|
|
.hsplit-left { width: 62%; flex: none; min-width: 0; position: relative; overflow: auto; padding: 12px; }
|
|
.hsplit-right { flex: 1; min-width: 0; overflow-y: auto; padding: 12px; border-left: none; }
|
|
.split.v { cursor: col-resize; }
|
|
/* 表格标签页: 筛选栏固定顶部, 表格独立滚动 (表头 sticky 不露缝) */
|
|
#tab-table, #tab-search, #tab-cross { display: flex; flex-direction: column; overflow: hidden; }
|
|
#tab-table .range-row, #tab-cross .range-row { flex: none; margin-bottom: 6px; }
|
|
.table-scroll { flex: 1; overflow: auto; min-height: 0; }
|
|
/* 参数表列筛选: 表头可点 + 取值下拉 */
|
|
th.col-filter { cursor: pointer; user-select: none; }
|
|
th.col-filter:hover { background: #dde6f0; }
|
|
.col-filter-pop {
|
|
position: absolute; background: #fff; border: 1px solid #ccc; border-radius: 4px;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,.15); z-index: 1000; max-height: 260px;
|
|
overflow-y: auto; min-width: 140px;
|
|
}
|
|
.col-filter-item { padding: 6px 12px; font-size: 13px; cursor: pointer; white-space: nowrap; }
|
|
.col-filter-item:hover { background: #e8f0fa; }
|
|
.col-filter-item.sel { background: #dbe9f8; font-weight: bold; }
|
|
.manual-cap { margin: 14px 0 4px; font-weight: bold; color: #555; }
|
|
.manual-img { max-width: 100%; border: 1px solid #ddd; }
|
|
.hint { color: #888; font-size: 14px; }
|
|
table { width: 100%; border-collapse: collapse; font-size: 13px; }
|
|
th, td { border: 1px solid #ddd; padding: 6px 8px; text-align: left; }
|
|
th { background: #f0f3f7; position: sticky; top: 0; }
|
|
tr:hover td { background: #f7fafd; cursor: pointer; }
|
|
.range-row { margin-bottom: 8px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 13px; }
|
|
.range-row input { width: 60px; padding: 4px; border: 1px solid #ccc; border-radius: 4px; }
|
|
footer { padding: 6px 16px; font-size: 13px; color: #666; background: #fff; border-top: 1px solid #ddd; display: flex; align-items: center; justify-content: space-between; }
|
|
footer #statusMsg { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
/* 购物车 (淘宝式清单, 2026-08-24) */
|
|
.cart-badge {
|
|
padding: 6px 12px; border: 1px solid #fff; background: transparent; color: #fff;
|
|
font-size: 13px; cursor: pointer; border-radius: 4px; margin-left: 8px;
|
|
}
|
|
.cart-badge:hover { background: rgba(255,255,255,.15); }
|
|
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 500; }
|
|
.cart-panel {
|
|
position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 92vw;
|
|
background: #fff; z-index: 501; display: flex; flex-direction: column;
|
|
box-shadow: -4px 0 16px rgba(0,0,0,.2);
|
|
}
|
|
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #ddd; font-size: 16px; font-weight: bold; }
|
|
.cart-close { border: none; background: transparent; font-size: 16px; cursor: pointer; color: #666; }
|
|
.cart-list { flex: 1; overflow-y: auto; padding: 10px 16px; }
|
|
.cart-item { border-bottom: 1px solid #eee; padding: 8px 0; font-size: 13px; }
|
|
.cart-item .ci-model { font-weight: bold; font-size: 14px; }
|
|
.cart-item .ci-sub { color: #888; margin-top: 2px; word-break: break-all; }
|
|
.cart-item .ci-ops { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
|
|
.cart-item .ci-ops input { width: 56px; padding: 3px 6px; border: 1px solid #ccc; border-radius: 4px; }
|
|
.cart-item .ci-del { border: 1px solid #ccc; background: #fff; color: #c0392b; border-radius: 4px; padding: 3px 10px; cursor: pointer; font-size: 12px; }
|
|
.cart-foot { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid #ddd; }
|
|
.cart-foot .btn { flex: 1; text-align: center; }
|
|
.add-cart-btn {
|
|
border: 1px solid #ccc; background: #fff; color: #1b4f8c; border-radius: 4px;
|
|
padding: 2px 8px; cursor: pointer; font-size: 13px; line-height: 1.4;
|
|
}
|
|
.add-cart-btn:hover { background: #e8f0fa; }
|
|
|
|
/* 参数化选型 (2026-08-25): range 输入框 + 非标档位徽标 + 下载置灰 */
|
|
.param-input {
|
|
width: 100%; padding: 6px; font-size: 14px;
|
|
border: 1px solid #ccc; border-radius: 4px;
|
|
}
|
|
.nonstd-badge {
|
|
display: inline-block; margin-left: 8px; padding: 2px 8px;
|
|
background: #fff3cd; color: #8a6d3b; border: 1px solid #e0c069;
|
|
border-radius: 3px; font-size: 12px; font-weight: normal; vertical-align: middle;
|
|
}
|
|
.btn[disabled] { opacity: .55; cursor: not-allowed; }
|