/* 钢管动力 · 标准查询（对齐分类信息 PC 版：site reset/style + 1190 容器 + 860/300 两栏） */

[hidden] { display: none !important; }

.std-page {
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1.7;
}
.std-page * { box-sizing: border-box; }
.std-page a { color: #1e74a7; text-decoration: none; }
.std-page a:hover { color: #2b95d3; }
.std-page img { max-width: 100%; }
.std-page h1, .std-page h2, .std-page h3, .std-page h4, .std-page p { margin: 0; }
.std-page h1, .std-page h2, .std-page h3, .std-page h4 { font-weight: 600; }
.std-page button, .std-page input, .std-page select { font-family: inherit; }
.std-page button { cursor: pointer; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; top: -60px; left: 20px; z-index: 999;
    background: #fff; color: #1e74a7; padding: 10px 16px;
    border-radius: 0 0 3px 3px; box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.skip-link:focus { top: 0; }

/* 页面标题 / 搜索条 */
.std-intro { padding: 2px 0 8px; }
.std-intro h1 { font-size: 20px; line-height: 30px; margin: 6px 0; color: #333; font-weight: 400; }
.std-intro p { font-size: 13px; color: #666; line-height: 1.8; margin: 4px 0 0; }

.std-search-bar {
    position: relative;
    border-top: 0;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    margin-bottom: 15px;
}
.std-search-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.std-search-label {
    flex: 0 0 60px; width: 60px; font-size: 14px; font-weight: 600;
    color: #414a5f; line-height: 24px;
}
#search-form {
    display: flex; align-items: stretch; flex: 0 1 560px; min-width: 320px;
    height: 36px; border: 1px solid #ddd; border-radius: 2px; background: #fff;
    overflow: hidden;
}
.search-field {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px;
    padding: 0 10px; background: #fff;
}
.icon-search { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: #999; stroke-width: 2; stroke-linecap: round; }
#q {
    width: 100%; height: 34px; border: 0; outline: none; background: transparent;
    font-size: 14px; color: #333; min-width: 0;
}
#q::placeholder { color: #aaa; }
#q::-webkit-search-cancel-button { display: none; }
.search-clear {
    flex: 0 0 20px; width: 20px; height: 20px; border: 0; border-radius: 50%;
    background: #eee; color: #666; font-size: 14px; line-height: 1;
}
.search-clear:hover { background: #ddd; }
.std-search-btn {
    flex: 0 0 84px; width: 84px; height: 34px; border: 0; border-radius: 0;
    background: #2b95d3; color: #fff; font-size: 14px; letter-spacing: 1px;
}
.std-search-btn:hover { background: #1e74a7; }

.std-suggest {
    position: absolute; left: 72px; top: 52px; z-index: 40;
    width: 560px; max-width: calc(100% - 90px);
    background: #fff; border: 1px solid #ddd; border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08); overflow: hidden;
}
.std-suggest[hidden] { display: none; }
.suggest-item {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 8px 12px; border: 0; background: #fff; text-align: left;
    border-bottom: 1px solid #f2f2f2;
}
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover, .suggest-item.on { background: #f5fafd; }
.suggest-no { flex: 0 0 140px; font-size: 12px; font-weight: 700; color: #2b95d3; }
.suggest-name { flex: 1; font-size: 12px; color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-status { flex: 0 0 auto; font-size: 11px; color: #999; }

.hot-row { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 260px; flex-wrap: wrap; }
.hot-label { font-size: 12px; color: #999; }
.hot-chip {
    border: 1px solid #e5e5e5; background: #f7f7f7; color: #666;
    font-size: 12px; height: 24px; line-height: 22px; padding: 0 7px; border-radius: 2px;
}
.hot-chip:hover { border-color: #2b95d3; color: #2b95d3; background: #fff; }
.std-search-note { margin-top: 7px; font-size: 12px; color: #999; }

/* 两栏：主内容 860 / 右侧栏 300 */
.std-layout { align-items: flex-start; padding-top: 0; padding-bottom: 10px; }
.std-main { order: 1; width: 860px; min-width: 860px; }
.std-side { order: 2; width: 300px; margin-left: 30px; position: static; }

/* 侧栏 */
.side-card {
    background: #fff; border: 0; border-bottom: 1px solid #eee; border-radius: 0;
    padding: 0 0 12px; margin-bottom: 16px; overflow: visible;
}
.side-card:last-child { border-bottom: 0; }
.side-title {
    position: relative; height: 40px; line-height: 40px; padding: 0;
    background: none; border-bottom: 1px solid #cae0f3;
    font-size: 18px; font-weight: 400; color: #2b95d3;
}
.side-title::before { display: none; }
.side-cats, .side-list { padding: 8px 0; }
.side-cat { display: block; padding: 8px 0; border-bottom: 1px solid #f1f1f1; }
.side-cat:last-child { border-bottom: 0; padding-bottom: 0; }
.side-cat-name { display: block; font-size: 13px; color: #333; }
.side-cat-desc { display: block; font-size: 11px; color: #999; margin-top: 2px; }
.side-cat:hover .side-cat-name, .side-cat.on .side-cat-name { color: #2b95d3; }
.side-cat.on .side-cat-name { font-weight: 600; }

.side-std { display: block; padding: 7px 0; border-bottom: 1px solid #f1f1f1; }
.side-std:last-child { border-bottom: 0; padding-bottom: 0; }
.side-std-no { display: block; font-size: 12px; font-weight: 700; color: #2b95d3; }
.side-std-name { display: block; font-size: 12px; color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-std:hover .side-std-name { color: #666; }
.side-industry p { padding: 10px 0 0; font-size: 12px; color: #666; line-height: 1.8; }
.side-link { display: inline-block; margin: 8px 0 4px; font-size: 12px; color: #2b95d3; }
.side-link:hover { text-decoration: underline; }
.side-tiny { display: block; margin: 0 0 4px; font-size: 10px; color: #999; }
.side-tip p { margin: 8px 0; font-size: 12px; color: #666; }
.side-tip strong { color: #333; font-weight: 600; }

/* 内容盒 / 标题 */
.section {
    background: #fff; border: 0; border-radius: 0;
    padding: 0; margin-bottom: 22px;
}
.section[hidden] { display: none; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; margin-bottom: 10px; border-bottom: 1px solid #cae0f3; }
.section-head h2 { font-size: 20px; line-height: 40px; color: #2b95d3; border-bottom: 3px solid #2b95d3; padding: 0 2px; margin-bottom: -1px; font-weight: 400; }
.section-head p { display: none; }
.section-more { font-size: 12px; color: #2b95d3; white-space: nowrap; padding-bottom: 8px; }
.section-more:hover { text-decoration: underline; }
.section-foot { margin-top: 12px; font-size: 11px; color: #999; }

/* 分类 tab */
.cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid #f1f1f1; }
.cat-tab {
    border: 1px solid #e5e5e5; background: #fff; color: #414a5f;
    height: 26px; line-height: 24px; padding: 0 10px; border-radius: 2px; font-size: 12px;
}
.cat-tab:hover { border-color: #9ed2ec; color: #2b95d3; }
.cat-tab.on { background: #2b95d3; border-color: #2b95d3; color: #fff; }

/* 标准卡片 */
.std-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.std-card {
    display: flex; flex-direction: column; min-height: 162px;
    border: 1px solid #eee; border-radius: 3px; padding: 12px; background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.std-card:hover { border-color: #b9d9ec; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.std-card[hidden] { display: none; }
.std-card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.std-no { font-size: 13px; font-weight: 700; color: #2b95d3; }
.std-name { font-size: 14px; line-height: 1.55; font-weight: 400; margin: 8px 0 6px; min-height: 42px; }
.std-name a { color: #333; }
.std-name a:hover { color: #2b95d3; }
.std-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; font-size: 11px; color: #999; }
.std-actions { display: flex; gap: 6px; margin-top: 10px; }

/* 状态标签 */
.badge {
    display: inline-flex; align-items: center; justify-content: center;
    height: 20px; padding: 0 6px; border-radius: 2px;
    font-size: 12px; font-weight: 400; white-space: nowrap;
}
.badge:empty { display: none; }
.badge.is-current { background: #e8f7ef; color: #17804a; }
.badge.is-soon { background: #fff6e5; color: #a86800; }
.badge.is-obsolete { background: #f2f2f2; color: #888; }
.badge.is-other { background: #f2f5f8; color: #667; }

/* 按钮 */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    height: 30px; padding: 0 10px; border-radius: 2px; border: 1px solid transparent;
    font-size: 12px; font-weight: 400; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.btn-sm { height: 26px; padding: 0 8px; font-size: 12px; }
.btn-lg { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-primary { background: #2b95d3; color: #fff; }
.btn-primary:hover { background: #1e74a7; color: #fff; }
.btn-download { background: #ff552e; color: #fff; }
.btn-download:hover { background: #f64; color: #fff; }
.btn-ghost { background: #fff; color: #666; border-color: #ddd; }
.btn-ghost:hover { border-color: #9ed2ec; color: #2b95d3; background: #fff; }
/* 站点 reset 的 a/a:link 优先级较高，这里显式压住按钮文字颜色 */
.std-page .btn-primary, .std-page .btn-primary:hover { color: #fff; }
.std-page .btn-download, .std-page .btn-download:hover { color: #fff; }
.std-page .btn-ghost, .std-page .btn-ghost:hover { color: #666; }
.std-page .page-btn, .std-page .page-num { color: #666; }
.std-page .page-num.on, .std-page .page-num.on:hover { color: #fff; }
.modal .btn-primary, .modal .btn-primary:hover { color: #fff; }
.modal .btn-download, .modal .btn-download:hover { color: #fff; }
.modal .btn-ghost, .modal .btn-ghost:hover { color: #666; }

/* 三步 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.step { border: 1px solid #f1f1f1; border-radius: 3px; padding: 12px; background: #fafafa; }
.step-num { font-size: 11px; color: #b9d9ec; letter-spacing: 2px; }
.step h3 { font-size: 14px; margin: 4px 0; }
.step p { font-size: 12px; color: #999; line-height: 1.8; }
.step strong { color: #666; }

/* 结果 */
.results-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 12px; }
.results-head h2 { display: inline-block; font-size: 20px; line-height: 40px; color: #2b95d3; border-bottom: 3px solid #2b95d3; padding: 0 2px; font-weight: 400; }
.results-summary { font-size: 12px; color: #999; margin-top: 4px; }
.dot-sep { margin: 0 5px; color: #ccc; }
.results-tools { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #666; flex: 0 0 auto; }
.check { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.check input { width: 13px; height: 13px; }
.select-label { display: inline-flex; align-items: center; gap: 5px; }
.select-label select { height: 26px; border: 1px solid #ddd; border-radius: 2px; background: #fff; color: #666; padding: 0 4px; font-size: 12px; }

.result-table { border: 0; border-top: 1px solid #eee; border-radius: 0; overflow: hidden; }
.result-head, .result-row {
    display: grid; grid-template-columns: 140px minmax(0, 1fr) 70px 90px 90px 120px;
    column-gap: 10px; align-items: center;
}
.result-head { background: #fafafa; color: #999; font-size: 12px; padding: 8px 0; border-bottom: 1px solid #eee; }
.result-row { padding: 10px 0; background: #fff; border-bottom: 1px solid #f1f1f1; }
.result-row:last-child { border-bottom: 0; }
.result-row:hover { background: #fafafa; }
.result-row[hidden] { display: none; }
.col-no { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.std-page .std-link { font-size: 13px; font-weight: 700; color: #2b95d3; }
.std-page .std-link:hover { color: #1e74a7; }
.col-name { min-width: 0; }
.col-name a { font-size: 13px; color: #333; line-height: 1.5; }
.col-name a:hover { color: #2b95d3; }
.col-date { font-size: 12px; color: #999; }
.col-actions { display: flex; gap: 5px; justify-content: flex-end; }
.ta-r { text-align: right; }
.mini-tag { display: inline-block; height: 16px; line-height: 16px; padding: 0 4px; border-radius: 2px; background: #f5f5f5; color: #999; font-size: 10px; vertical-align: 1px; }
.tag-cai { background: #fff3e0; color: #b26a00; }
.tag-lang { background: #eef2ff; color: #4a5bb5; }
.result-note { margin-top: 10px; font-size: 11px; color: #999; }
.filter-empty { color: #a86800; font-size: 12px; }

/* 行业标准表 */
.industry-table { margin-top: 14px; }
.std-expand {
    display: block; width: 100%; height: 36px; margin-top: 10px;
    border: 1px solid #e5e5e5; border-radius: 2px; background: #fafafa;
    color: #666; font-size: 13px;
}
.std-expand:hover { border-color: #9ed2ec; color: #2b95d3; background: #fff; }
.std-expand span { margin-left: 4px; }
.industry-table .result-head, .industry-table .result-row {
    grid-template-columns: 140px minmax(0, 1fr) 90px 60px 80px 80px 110px;
}
.col-industry { font-size: 12px; color: #666; }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.page-btn, .page-num {
    display: inline-flex; align-items: center; justify-content: center;
    height: 28px; min-width: 28px; padding: 0 8px; border-radius: 2px;
    border: 1px solid #e4e0e0; background: #fff; color: #666; font-size: 12px;
}
.page-num { padding: 0 7px; }
.page-btn:hover, .page-num:hover { border-color: #9ed2ec; color: #2b95d3; }
.page-num.on { background: #3491d6; border-color: #3491d6; color: #fff; }
.page-btn.disabled { color: #bbb; background: #fafafa; cursor: not-allowed; }
.page-ellipsis { color: #bbb; padding: 0 2px; }

/* 提示卡 */
.notice-card { display: flex; gap: 12px; padding: 15px; border: 1px solid #eee; border-radius: 3px; background: #fafafa; }
.notice-icon {
    flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #eaf5fc; color: #2b95d3; font-size: 18px; font-weight: 700;
}
.industry-card { background: #fffdf8; border-color: #f3e2c4; }
.industry-card .notice-icon { background: #fff1d9; color: #b26a00; }
.error-card { background: #fffafa; border-color: #f2d8d8; }
.error-card .notice-icon { background: #fdecec; color: #c33; font-size: 20px; }
.empty-card { background: #fafafa; }
.empty-card .notice-icon { background: #f2f2f2; color: #888; }
.notice-main h3 { font-size: 16px; margin-bottom: 6px; }
.notice-main p { font-size: 12px; color: #666; line-height: 1.85; margin-bottom: 4px; }
.notice-actions, .empty-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tiny { font-size: 11px !important; color: #999 !important; }

.industry-codes { margin-top: 14px; padding: 12px; border: 1px dashed #e5e5e5; border-radius: 3px; background: #fafafa; }
.industry-codes h4 { font-size: 12px; color: #666; margin-bottom: 8px; }
.code-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.code-grid span { font-size: 12px; color: #666; background: #fff; border: 1px solid #eee; border-radius: 2px; padding: 6px 8px; }
.code-grid b { color: #2b95d3; margin-right: 5px; }

/* SEO 内容 */
.seo-section { padding: 18px 0 0; border-top: 1px solid #eee; font-size: 13px; color: #555; line-height: 1.95; }
.seo-section h2 { font-size: 20px; line-height: 40px; color: #2b95d3; border-bottom: 3px solid #2b95d3; padding: 0 2px; margin-bottom: 10px; font-weight: 400; display: inline-block; }
.seo-section h3 { font-size: 15px; color: #333; margin: 18px 0 6px; }
.seo-section p { margin-bottom: 10px; }
.seo-section strong { color: #333; }
.faq { border-top: 1px solid #eee; margin-top: 8px; }
.faq details { border-bottom: 1px solid #eee; }
.faq summary { position: relative; cursor: pointer; list-style: none; padding: 11px 26px 11px 0; font-size: 13px; font-weight: 600; color: #444; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 3px; top: 50%; transform: translateY(-50%); font-size: 18px; font-weight: 400; color: #999; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 12px; font-size: 12px; color: #888; line-height: 1.9; }

/* 详情弹窗 */
.modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 24px; font-size: 14px; line-height: 1.7; color: #333; }
.modal[hidden] { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.modal-panel {
    position: relative; width: 760px; max-width: 100%; max-height: 88vh; overflow: auto;
    background: #fff; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.25);
    animation: modal-pop .16s ease-out;
}
@keyframes modal-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-close {
    position: absolute; top: 10px; right: 12px; z-index: 2;
    width: 30px; height: 30px; border: 0; border-radius: 50%;
    background: #f2f2f2; color: #666; font-size: 20px; line-height: 1;
}
.modal-close:hover { background: #e5e5e5; }
.modal-head { padding: 18px 22px 14px; background: #f5f5f5; border-bottom: 1px solid #eee; }
.modal-no-row { display: flex; align-items: center; gap: 8px; padding-right: 36px; flex-wrap: wrap; }
.modal-no { font-size: 16px; font-weight: 700; color: #2b95d3; }
.modal-head h2 { font-size: 20px; line-height: 1.5; margin-top: 6px; padding-right: 36px; }
.modal-en { font-size: 12px; color: #999; margin-top: 4px; }
.modal-body { padding: 16px 22px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.modal-item { display: grid; grid-template-columns: 100px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px dashed #f1f1f1; font-size: 13px; }
.modal-item .mi-label { color: #999; }
.modal-item .mi-value { color: #333; word-break: break-word; }
.modal-loading { display: flex; align-items: center; gap: 8px; padding: 20px 0; color: #999; font-size: 13px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #e5e5e5; border-top-color: #2b95d3; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 22px; border-top: 1px solid #eee; background: #fafafa; position: sticky; bottom: 0; }
.modal-actions[hidden] { display: none; }
.modal-hint { font-size: 12px; color: #999; }
.modal-foot { padding: 10px 22px 14px; font-size: 11px; color: #999; background: #fafafa; }
.modal-note { margin-top: 12px; padding: 9px 10px; border-radius: 2px; background: #fff8ec; color: #8a5a00; font-size: 12px; line-height: 1.7; }
.modal-note.is-error { background: #fdecec; color: #a22; }

/* 轻提示 */
.toast {
    position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 18px);
    z-index: 1300; background: rgba(0,0,0,.8); color: #fff;
    padding: 9px 16px; border-radius: 2px; font-size: 13px;
    opacity: 0; pointer-events: none; transition: .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 骨架 */
.skeleton-row { pointer-events: none; }
.skeleton {
    display: block; height: 12px; border-radius: 2px;
    background: linear-gradient(90deg, #f1f1f1 25%, #fafafa 37%, #f1f1f1 63%);
    background-size: 400% 100%; animation: shimmer 1.4s ease infinite;
}
.skeleton.w120 { width: 120px; }
.skeleton.w100 { width: 100px; }
.skeleton.w80 { width: 80px; }
.skeleton.w60 { width: 60px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* 响应式：站点本身是 PC 模板，窄屏只做基本堆叠 */
@media (max-width: 1220px) {
    .std-layout { flex-wrap: wrap; }
    .std-layout .container-lt,
    .std-layout .std-main { width: 100%; min-width: 0; }
    .std-layout .container-rt,
    .std-layout .std-side { width: 100%; margin-left: 0; margin-top: 15px; }
    .std-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .std-intro h1 { font-size: 20px; }
    #search-form { flex-basis: 100%; min-width: 0; }
    .std-search-label { flex-basis: 100%; width: auto; }
    .std-suggest { left: 0; width: 100%; max-width: 100%; }
    .std-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .result-table { overflow-x: auto; }
    .result-head, .result-row { min-width: 800px; }
    .industry-table .result-head, .industry-table .result-row { min-width: 900px; }
    .modal { padding: 10px; }
    .modal-head, .modal-body, .modal-actions, .modal-foot { padding-left: 16px; padding-right: 16px; }
    .modal-grid { grid-template-columns: 1fr; }
    .code-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}