/* ============================================================
   家具 HS 编码专题页专用样式
   经 header.php 的 $extraCss 机制按需加载。
   ============================================================ */

.fh-page { padding: 28px 0 72px; }

/* 面包屑 */
.fh-crumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--md-on-surface-muted); margin-bottom: 24px; flex-wrap: wrap; }
.fh-crumb a { color: var(--md-on-surface-variant); text-decoration: none; }
.fh-crumb a:hover { color: var(--md-primary); }

/* HERO */
.fh-hero { text-align: center; padding: 12px 0 32px; }
.fh-hero h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; color: var(--md-on-surface); margin: 0 0 10px; letter-spacing: -0.02em; }
.fh-hero-sub { font-size: 15px; color: var(--md-on-surface-variant); margin: 0 auto 24px; max-width: 680px; line-height: 1.6; }

.fh-search { display: flex; gap: 8px; max-width: 680px; margin: 0 auto 16px; }
.fh-search input {
    flex: 1; height: 52px; padding: 0 20px; font-size: 15px;
    border: 1px solid var(--md-outline-subtle); border-radius: var(--md-shape-full);
    background: var(--md-surface); color: var(--md-on-surface); outline: none;
    transition: border-color var(--md-duration-short), box-shadow var(--md-duration-short);
}
.fh-search input:focus { border-color: var(--md-primary); box-shadow: 0 0 0 3px rgba(13,59,102,.08); }
.fh-search button {
    height: 52px; padding: 0 28px; border: none; border-radius: var(--md-shape-full);
    font-size: 15px; font-weight: 600; color: #fff; background: var(--brand-gradient);
    cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
    transition: opacity var(--md-duration-short);
}
.fh-search button:hover { opacity: .9; }

.fh-hot { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--md-on-surface-muted); }
.fh-hot a { color: var(--md-primary); text-decoration: none; border: 1px solid var(--md-outline-subtle); padding: 4px 14px; border-radius: var(--md-shape-full); }
.fh-hot a:hover { background: var(--md-primary-container); }

.fh-quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 30px; }
.fh-quick-card {
    display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
    padding: 18px 16px; background: var(--md-surface); border: 1px solid var(--md-outline-subtle);
    border-radius: var(--md-shape-lg); text-decoration: none; color: var(--md-on-surface);
    box-shadow: var(--md-elevation-1); font-size: 14px; font-weight: 600;
    transition: transform var(--md-duration-medium), box-shadow var(--md-duration-medium), border-color var(--md-duration-medium);
}
.fh-quick-card:hover { transform: translateY(-3px); box-shadow: var(--md-elevation-4); border-color: rgba(13,59,102,.2); }
.fh-quick-no { font-size: 11px; font-weight: 700; color: var(--md-primary); opacity: .7; }
.fh-quick-card i { font-size: 11px; color: var(--md-on-surface-muted); margin-top: auto; }

/* 主体：筛选 + 结果 */
.fh-body { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: start; margin-top: 12px; }

.fh-filters { position: sticky; top: 20px; background: var(--md-surface); border: 1px solid var(--md-outline-subtle); border-radius: var(--md-shape-lg); padding: 18px; box-shadow: var(--md-elevation-1); }
.fh-filter-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--md-outline-subtle); }
.fh-filter-head a { font-size: 12px; color: var(--md-primary); text-decoration: none; }
.fh-filter-group { padding: 14px 0 4px; }
.fh-filter-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--md-on-surface-muted); margin-bottom: 8px; }
.fh-filter-opt { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 10px; border-radius: var(--md-shape-sm); font-size: 12.5px; color: var(--md-on-surface-variant); text-decoration: none; }
.fh-filter-opt b { font-size: 11px; color: var(--md-on-surface-muted); font-weight: 600; }
.fh-filter-opt:hover { background: var(--md-surface-container-low); }
.fh-filter-opt.active { background: var(--md-primary-container); color: var(--md-primary); font-weight: 600; }
.fh-filter-opt.active b { color: var(--md-primary); }

.fh-results-head { margin-bottom: 18px; }
.fh-results-head h2 { font-size: 20px; font-weight: 700; color: var(--md-on-surface); margin: 0 0 8px; }
.fh-count { font-size: 14px; font-weight: 500; color: var(--md-on-surface-muted); }
.fh-tip { font-size: 12.5px; color: var(--md-on-surface-variant); background: var(--md-surface-container-low); border-left: 3px solid var(--md-primary); padding: 10px 14px; border-radius: 0 var(--md-shape-sm) var(--md-shape-sm) 0; margin: 0; line-height: 1.6; }
.fh-tip i { color: var(--md-primary); margin-right: 6px; }

/* 候选编码卡片 */
.fh-card { background: var(--md-surface); border: 1px solid var(--md-outline-subtle); border-radius: var(--md-shape-lg); padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--md-elevation-1); scroll-margin-top: 20px; transition: box-shadow var(--md-duration-medium), border-color var(--md-duration-medium); }
.fh-card:hover { box-shadow: var(--md-elevation-3); border-color: rgba(13,59,102,.2); }
.fh-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.fh-code-wrap { display: flex; align-items: center; gap: 8px; }
.fh-code { font-size: 20px; font-weight: 800; color: var(--md-primary); text-decoration: none; letter-spacing: .5px; }
.fh-code:hover { text-decoration: underline; }
.fh-copy { border: 1px solid var(--md-outline-subtle); background: var(--md-surface-dim); color: var(--md-on-surface-variant); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.fh-copy:hover, .fh-copy.copied { color: var(--md-primary); border-color: var(--md-primary); }
.fh-material { font-size: 11px; font-weight: 600; color: var(--md-on-surface-variant); background: var(--md-surface-dim); border: 1px solid var(--md-outline-subtle); padding: 3px 12px; border-radius: var(--md-shape-full); }
.fh-card-title { font-size: 17px; font-weight: 700; color: var(--md-on-surface); margin: 0 0 14px; }

.fh-when, .fh-note { margin-bottom: 12px; }
.fh-label { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--md-primary); margin-bottom: 4px; }
.fh-when p, .fh-note p { font-size: 13px; color: var(--md-on-surface-variant); line-height: 1.65; margin: 0; }
.fh-note p { color: var(--md-on-surface-muted); }

.fh-tax { background: var(--md-surface-container-low); border: 1px solid var(--md-outline-subtle); border-radius: var(--md-shape-md); padding: 12px 14px; margin: 14px 0; }
.fh-tax-label { color: var(--md-primary); }
.fh-tax-grid { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.fh-tax-grid > div { display: flex; flex-direction: column; gap: 2px; }
.fh-tax-grid span { font-size: 11px; color: var(--md-on-surface-muted); }
.fh-tax-grid b { font-size: 15px; color: var(--md-on-surface); }
.fh-tax-wide { flex-basis: 100%; }

.fh-card-foot { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--md-outline-subtle); }
.fh-card-foot a { font-size: 12.5px; font-weight: 600; color: var(--md-primary); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.fh-card-foot a:hover { text-decoration: underline; }
.fh-card-foot .fh-lead-link { color: #fff; background: var(--brand-gradient); padding: 6px 16px; border-radius: var(--md-shape-full); }
.fh-card-foot .fh-lead-link:hover { opacity: .9; text-decoration: none; }

.fh-end { text-align: center; font-size: 12px; color: var(--md-on-surface-muted); padding: 16px 0; }

.fh-empty { text-align: center; padding: 60px 20px; color: var(--md-on-surface-muted); }
.fh-empty i { font-size: 44px; opacity: .4; display: block; margin-bottom: 14px; }
.fh-empty h3 { font-size: 18px; color: var(--md-on-surface); margin: 0 0 6px; }
.fh-empty p { font-size: 13px; margin: 0 0 18px; }
.fh-btn-ghost { display: inline-block; padding: 8px 20px; border: 1px solid var(--md-outline); border-radius: var(--md-shape-full); color: var(--md-primary); text-decoration: none; font-size: 13px; font-weight: 600; }

/* 通用 section */
.fh-section { margin-top: 48px; }
.fh-section h2 { font-size: 22px; font-weight: 700; color: var(--md-on-surface); margin: 0 0 8px; }
.fh-lead-p { font-size: 14px; color: var(--md-on-surface-variant); margin: 0 0 22px; }

.fh-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fh-step { background: var(--md-surface); border: 1px solid var(--md-outline-subtle); border-radius: var(--md-shape-lg); padding: 22px; box-shadow: var(--md-elevation-1); }
.fh-step > span { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--md-primary-container); color: var(--md-primary); font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.fh-step h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--md-on-surface); }
.fh-step p { font-size: 12.5px; color: var(--md-on-surface-variant); margin: 0; line-height: 1.6; }

.fh-table-wrap { overflow-x: auto; border: 1px solid var(--md-outline-subtle); border-radius: var(--md-shape-lg); }
.fh-table { width: 100%; border-collapse: collapse; background: var(--md-surface); font-size: 13px; }
.fh-table th, .fh-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--md-outline-subtle); vertical-align: top; line-height: 1.6; }
.fh-table th { background: var(--md-surface-container-low); font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--md-on-surface-muted); }
.fh-table tr:last-child td { border-bottom: none; }
.fh-table code { color: var(--md-primary); font-weight: 600; font-size: 12.5px; }

.fh-faq { display: grid; gap: 10px; }
.fh-faq-item { background: var(--md-surface); border: 1px solid var(--md-outline-subtle); border-radius: var(--md-shape-md); padding: 0 18px; }
.fh-faq-item summary { padding: 16px 0; font-size: 14px; font-weight: 600; color: var(--md-on-surface); cursor: pointer; list-style: none; }
.fh-faq-item summary::-webkit-details-marker { display: none; }
.fh-faq-item summary::after { content: '+'; float: right; color: var(--md-primary); font-size: 18px; line-height: 1; }
.fh-faq-item[open] summary::after { content: '\2212'; }
.fh-faq-item p { font-size: 13px; color: var(--md-on-surface-variant); line-height: 1.7; margin: 0 0 16px; }

.fh-method p { font-size: 13px; color: var(--md-on-surface-variant); line-height: 1.8; }
.fh-verified { color: var(--md-primary) !important; font-weight: 600; }

/* 询盘区 */
.fh-lead-section { margin-top: 56px; background: linear-gradient(135deg, var(--md-primary-container), var(--md-surface)); border: 1px solid var(--md-outline-subtle); border-radius: var(--md-shape-xl); padding: 32px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; }
.fh-lead-intro h2 { font-size: 22px; font-weight: 700; margin: 0 0 10px; color: var(--md-on-surface); }
.fh-lead-intro p { font-size: 14px; color: var(--md-on-surface-variant); margin: 0; line-height: 1.7; }
.fh-lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fh-lead-form input, .fh-lead-form select { height: 44px; padding: 0 14px; border: 1px solid var(--md-outline-subtle); border-radius: var(--md-shape-sm); background: var(--md-surface); color: var(--md-on-surface); font-size: 13px; outline: none; }
.fh-lead-form input:focus, .fh-lead-form select:focus { border-color: var(--md-primary); }
.fh-lead-form .fh-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fh-consent { grid-column: 1 / -1; font-size: 12px; color: var(--md-on-surface-variant); display: flex; align-items: center; gap: 6px; }
.fh-consent a { color: var(--md-primary); }
.fh-lead-form button { grid-column: 1 / -1; height: 46px; border: none; border-radius: var(--md-shape-full); background: var(--brand-gradient); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.fh-lead-form button:disabled { opacity: .6; cursor: wait; }
.fh-lead-msg { grid-column: 1 / -1; font-size: 12.5px; margin: 0; text-align: center; }
.fh-lead-msg.ok { color: var(--md-success); }
.fh-lead-msg.err { color: var(--md-error); }

/* 响应式 */
@media (max-width: 992px) {
    .fh-quick { grid-template-columns: repeat(3, 1fr); }
    .fh-body { grid-template-columns: 1fr; }
    .fh-filters { position: static; }
    .fh-lead-section { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .fh-hero h1 { font-size: 24px; }
    .fh-search { flex-direction: column; }
    .fh-search button { width: 100%; justify-content: center; }
    .fh-quick { grid-template-columns: repeat(2, 1fr); }
    .fh-steps { grid-template-columns: 1fr; }
    .fh-lead-form { grid-template-columns: 1fr; }
    .fh-card { padding: 18px; }
}
