/* 仅错误代码速查表页面加载（templates/site/errcode_lookup.html），全部选择器限定在 .ect 内 */
.ect{max-width:1180px;margin:28px auto 40px;padding:0 24px}
.ect .ect-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap}
.ect .ect-head h2{margin:0;font-size:24px;color:#0f2a4a}.ect .ect-head p{margin:8px 0 0}
.ect .ect-switch{display:flex;border:1px solid #cfdcf0;border-radius:8px;overflow:hidden;flex:none}
.ect .ect-switch a{padding:8px 16px;color:#1565c0;background:#fff;font-size:14px;text-decoration:none}
.ect .ect-switch a+a{border-left:1px solid #cfdcf0}.ect .ect-switch a.on{background:#1565c0;color:#fff;font-weight:600}
.ect .ect-bar{position:sticky;top:72px;z-index:5;background:#f4f6fa;margin:18px -8px 0;padding:12px 8px 10px;border-bottom:1px solid #e3ebf5}
.ect .ect-search{display:flex;align-items:center;background:#fff;border:2px solid #1565c0;border-radius:10px;padding:0 10px;height:50px}
.ect .ect-ico{font-size:22px;color:#1565c0;margin-right:6px;line-height:1}
.ect .ect-search input{flex:1;border:0;outline:0;font-size:17px;height:100%;background:transparent;min-width:0;padding:0}
.ect .ect-clear{border:0;background:#e8eef7;color:#334;width:28px;height:28px;border-radius:50%;font-size:18px;line-height:28px;cursor:pointer;padding:0}
.ect .ect-cats{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.ect .ect-cats button{border:1px solid #cfdcf0;background:#fff;border-radius:18px;padding:5px 12px;font-size:13px;color:#24364f;cursor:pointer;display:inline-flex;gap:6px;align-items:baseline}
.ect .ect-cats button b{font-weight:600;color:#1565c0}.ect .ect-cats button.on{background:#1565c0;border-color:#1565c0;color:#fff}.ect .ect-cats button.on b{color:#fff}
.ect .ect-count{margin:12px 0 8px;color:#5b6b80;font-size:14px}
.ect .ect-list{border:1px solid #d5dde6;border-radius:8px;overflow:hidden;background:#fff}
.ect .ect-row{display:grid;grid-template-columns:84px 250px minmax(0,1fr) minmax(0,.9fr);border-top:1px solid #e6ecf3}
.ect .ect-row:first-child{border-top:0}
.ect .ect-row>div{padding:10px 12px;line-height:1.5;font-size:14px;white-space:pre-line;overflow-wrap:anywhere}
.ect .ect-row.ect-th{background:#eef4ff;font-weight:600;color:#0f2a4a}.ect .ect-row.ect-th>div{white-space:nowrap}
.ect .ect-code{font-weight:700;font-size:16px;color:#0f2a4a;font-variant-numeric:tabular-nums}
.ect .ect-code.none{color:#8a97a8;font-weight:400;font-size:13px}
.ect .ect-cat{white-space:normal}.ect .ect-cat b{color:#1565c0;font-weight:600}.ect .ect-cat small{display:block;color:#5b6b80}
.ect .ect-st{display:inline-block;margin-left:4px;padding:0 6px;border-radius:4px;font-size:12px;background:#eaf6ee;color:#1d7a3a}
.ect .ect-st.stop{background:#fdecec;color:#b3261e}
.ect .ect-grp{display:inline-block;margin-right:6px;padding:0 6px;border-radius:4px;font-size:12px;background:#eef4ff;color:#1565c0}
.ect .ect-fix:empty::before{content:'—';color:#b5bfcc}
.ect mark{background:#ffe58a;color:inherit;padding:0 1px;border-radius:2px}
.ect .ect-lbl{display:none}
.ect .ect-empty{padding:28px 16px;text-align:center;color:#5b6b80;background:#fff;border:1px dashed #cfdcf0;border-radius:8px}
.ect .ect-note{margin-top:18px;padding:14px 16px;background:#f7f9fc;border-left:3px solid #1565c0;border-radius:4px;font-size:13px;color:#43536a}
.ect .ect-note p{margin:4px 0}.ect .ect-note a{color:#1565c0;text-decoration:underline}
@media(max-width:800px){
 .ect{padding:0 12px;margin-top:18px}.ect .ect-head h2{font-size:19px}.ect .ect-switch{width:100%}.ect .ect-switch a{flex:1;text-align:center}
 .ect .ect-bar{top:60px;margin:12px -12px 0;padding:10px 12px}
 .ect .ect-cats{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px}.ect .ect-cats button{flex:none}
 .ect .ect-list{border:0;background:transparent;overflow:visible}
 .ect .ect-row.ect-th{display:none}
 .ect .ect-row{display:block;background:#fff;border:1px solid #d5dde6;border-radius:8px;margin-bottom:10px;padding:10px 12px}
 .ect .ect-row:first-child{border-top:1px solid #d5dde6}
 .ect .ect-row>div{padding:2px 0}
 .ect .ect-code{font-size:20px}.ect .ect-cat{font-size:13px}.ect .ect-cat small{display:inline;margin-left:4px}
 .ect .ect-lbl{display:inline;color:#8a97a8;font-size:12px;margin-right:4px}
 .ect .ect-fix:empty{display:none}
}
