/* ============================================================
   立项指南搜索系统 - 样式表（极简风格）
   ============================================================ */

/* ---- CSS 变量 ---- */
:root {
    --primary: #4e6ef2;
    --primary-hover: #1a73e8;
    --bg: #ffffff;
    --bg-sub: #f7f8fa;
    --text: #202124;
    --text-2: #5f6368;
    --text-3: #70757a;
    --border: #ebebeb;
    --border-light: #f0f0f0;
    --hl-bg: #fef0b6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --radius: 4px;

    /* 来源色彩（低饱和度，更柔和） */
    --c-blue: #4285f4;
    --c-green: #34a853;
    --c-red: #ea4335;
}

/* ---- 基础 ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.58;
    min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- 导航栏 ---- */
.navbar {
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.navbar-inner {
    max-width: 1280px;
    width: 94%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 50px;
}
.logo {
    font-size: 16px;
    font-weight: 700;
    color: var(--text) !important;
    text-decoration: none !important;
    letter-spacing: -0.3px;
    white-space: nowrap;
}
.nav-link-admin {
    background: rgba(78,110,242,.08);
    font-weight: 500;
}
.nav-link-feedback {
    background: rgba(34,197,94,.08);
    color: #16a34a !important;
    font-weight: 500;
}
.nav-link-feedback:hover {
    background: rgba(34,197,94,.16);
}
.nav-link-reg {
    color: var(--primary) !important;
    font-weight: 500;
}
.nav-link-reg:hover {
    text-decoration: underline !important;
}

/* ---- 主容器 ---- */
.container {
    max-width: 1280px;
    width: 94%;
    margin: 0 auto;
    padding: 16px 20px 40px;
    flex: 1;
}

/* ==================== 首页 ==================== */

.search-home {
    width: 92%;
    max-width: 640px;
    margin: 8vh auto 30px;
    text-align: center;
}
.hero-title {
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 400;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
/* 搜索框 */
.search-box {
    display: flex;
    width: 100%;
    height: 40px;
}
.search-input {
    flex: 1;
    height: 40px;
    border: 1px solid #dfe1e5;
    border-right: none;
    border-radius: 20px 0 0 20px;
    padding: 0 18px;
    font-size: 14px;
    outline: none;
    color: var(--text);
    transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--primary); }
.search-input::placeholder { color: #bdc1c6; }
.search-btn {
    height: 40px;
    padding: 0 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}
.search-btn:hover { background: var(--primary-hover); }
.reset-btn {
    height: 40px;
    padding: 0 16px;
    background: #fff;
    color: var(--text-2);
    border: 1px solid #dfe1e5;
    border-left: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-size: 13px;
    margin-left: -1px;
    transition: all 0.2s;
    white-space: nowrap;
}
.reset-btn:hover { background: #f7f8fa; color: var(--text); }

/* 搜索范围选择 */
.source-checkboxes {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}
.checkbox-label {
    font-size: 12px;
    color: var(--text-3);
    cursor: pointer;
}
.checkbox-label input { margin-right: 4px; vertical-align: middle; }

/* 热门搜索 */
.hot-searches {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.hot-label { font-size: 12px; color: var(--text-3); }
.hot-tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--bg-sub);
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-2) !important;
    transition: all 0.12s;
}
.hot-tag:hover {
    background: #e8eaed;
    color: var(--text) !important;
    text-decoration: none;
}

/* 统计栏 */
.stats-bar {
    margin-top: 36px;
    padding: 14px 20px;
    background: var(--bg-sub);
    border-radius: var(--radius);
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-2);
}
.stats-bar strong { color: var(--primary); }

/* ==================== 结果页（对话式简洁风格）==================== */

/* 顶部搜索框 */
.top-search-bar {
    margin-bottom: 0;
    padding: 12px 0 14px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
}
.inline-search-form {
    display: flex;
    width: 100%;
}
.inline-search-input {
    flex: 1;
    height: 42px;
    border: 1.5px solid #dfe1e5;
    border-right: none;
    border-radius: 22px 0 0 22px;
    padding: 0 20px;
    font-size: 14px;
    outline: none;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafbfc;
}
.inline-search-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(78,110,242,.08);
}
.inline-search-input::placeholder { color: #bdc1c6; }
.inline-search-btn {
    height: 42px;
    padding: 0 22px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: background 0.2s;
}
.inline-search-btn:hover { background: var(--primary-hover); }
.inline-reset-btn {
    height: 42px;
    padding: 0 16px;
    background: #fff;
    color: var(--text-2);
    border: 1.5px solid #dfe1e5;
    border-left: none;
    border-radius: 0 22px 22px 0;
    cursor: pointer;
    font-size: 13px;
    margin-left: -1px;
    transition: all 0.2s;
    white-space: nowrap;
}
.inline-reset-btn:hover { background: #f7f8fa; color: var(--text); }

/* 来源筛选栏 */
.source-filter-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.source-filter-label {
    font-size: 12px;
    color: var(--text-3);
    white-space: nowrap;
    margin-right: 2px;
}
.source-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    color: var(--text-2);
    background: var(--bg-sub);
    border: 1px solid var(--border);
    cursor: pointer;
    user-select: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.source-chip input[type=checkbox] {
    display: none;
}
.source-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #eef2ff;
}
.source-chip.active {
    background: #e8f0fe;
    border-color: #adc5f7;
    color: var(--primary);
    font-weight: 500;
}

/* ---- 页面容器 ---- */
.chat-results-page { max-width: 1200px; width: 92%; margin: 0 auto; padding: 0 0 40px; }

/* ---- 回答卡片 ---- */
.answer-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* 回答引导文字 */
.answer-lead {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    margin-bottom: 18px;
}
.answer-lead strong { color: var(--primary); font-weight: 600; }
.q-text {
    color: var(--text);
    background: #e8f0fe;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* ---- 价格卡片列表（替代表格）---- */
.price-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}
.price-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fafbfc;
    border-radius: 10px;
    border-left: 3px solid var(--c-green);
    transition: background 0.12s;
}
.price-card:hover { background: #f0f4fa; }
.pc-left {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}
.pc-name {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pc-unit {
    font-size: 11.5px;
    color: var(--text-3);
    white-space: nowrap;
    flex-shrink: 0;
}
.pc-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    margin-left: 16px;
}
.pc-price {
    font-size: 17px;
    font-weight: 700;
    color: #c7340a;
    white-space: nowrap;
    letter-spacing: -0.3px;
}
.no-price {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-3);
    font-style: normal;
}
.pc-prov {
    font-size: 11px;
    color: #137333;
    background: #e6f4ea;
    padding: 1px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.more-hint {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-3);
    text-align: center;
}

/* ---- 参考条目（raw_data 指南）---- */
.ref-item {
    padding: 12px 0;
    border-top: 1px dashed var(--border-light);
}
.ref-item:first-of-type { border-top: none; padding-top: 4px; }
.ref-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}
.ref-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a0dab;
    cursor: pointer;
}
.ref-title:hover { text-decoration: underline; }
.ref-tag {
    font-size: 10px;
    padding: 1px 7px;
    background: #e8f0fe;
    color: #1967d2;
    border-radius: 3px;
    font-weight: 500;
    white-space: nowrap;
}
.ref-snippet {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ref-meta {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 4px;
}

/* ---- 无结果 ---- */
.no-result-answer p { margin-bottom: 6px; }
.no-result-hint {
    font-size: 13px !important;
    color: var(--text-2) !important;
    line-height: 1.6;
    margin-top: 6px !important;
}

/* ============================================================ */
/*  智能价格问答模式（各省价格总览）                                 */
/* ============================================================ */

/* 外层包裹 */
.smart-answer-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 项目标题区 */
.smart-project-header {
    padding: 20px 24px 16px;
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
    border: 1px solid #d8e1fa;
    border-radius: 14px;
    position: relative;
}
.smart-project-title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.smart-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1f3c;
    line-height: 1.3;
    letter-spacing: -0.3px;
    margin: 0;
}
.smart-category-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: rgba(78,110,242,.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 4px;
}
.smart-summary {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-2);
    margin: 0;
}
.smart-highlight { color: var(--primary); font-weight: 600; }
.smart-unit { color: var(--text-3); font-size: 13px; }

/* 空结果提示 */
.no-result-summary {
    color: var(--text-2);
}
.price-hi { color: #c7340a; font-weight: 600; }
.price-lo { color: #137333; font-weight: 600; }
.price-avg { color: #c7340a; font-weight: 700; }

/* 价格统计行 */
.stats-summary-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.stat-pill {
    flex: 1;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e8eaed;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: transform 0.1s;
}
.stat-pill:hover { transform: translateY(-1px); }
.stat-pill-label {
    font-size: 11px;
    color: var(--text-3);
    margin-bottom: 3px;
    letter-spacing: 0.3px;
}
.stat-pill-val {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.stat-pill-max .stat-pill-val { color: #c7340a; }
.stat-pill-avg .stat-pill-val { color: var(--primary); }
.stat-pill-min .stat-pill-val { color: #137333; }
.stat-pill-count .stat-pill-val { color: var(--text-2); font-size: 14px; }

/* 信息区块（通用：国家指南 / 映射关系）*/
.info-section {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.info-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f7f8fa;
    border-bottom: 1px solid #e8eaed;
}
.info-section-icon {
    font-size: 14px;
    flex-shrink: 0;
}
.info-section-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    flex: 1;
}
.mapping-stats-badge {
    font-size: 12px;
    color: #1967d2;
    background: #e8f0fe;
    padding: 2px 10px;
    border-radius: 12px;
    white-space: nowrap;
    font-weight: 500;
}

/* 国家立项指南字段 */
.guide-fields-grid {
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.guide-field-item {
    display: flex;
    align-items: flex-start;
    gap: 0;
}
.guide-field-full {
    /* 全宽字段 */
}
.gf-label {
    flex-shrink: 0;
    width: 68px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    padding-top: 1px;
}
.gf-label::after { content: '：'; }
.gf-value {
    font-size: 13px;
    color: #1e293b;
    line-height: 1.55;
    word-break: break-word;
}
.gf-value-tag {
    color: #7c3aed;
    background: #f5f0ff;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.gf-value-notes {
    color: #374151;
    font-size: 12.5px;
    line-height: 1.65;
    background: #fffbf0;
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 3px solid #f59e0b;
    margin-top: 2px;
}
/* 项目编码：chip 标签样式 */
.gf-value-code {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.gf-code-chip {
    display: inline-block;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    padding: 2px 8px;
    letter-spacing: 0.5px;
}

/* 映射关系省份标签 */
.mapping-province-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px 18px 8px;
}
.mapping-prov-chip {
    font-size: 11.5px;
    padding: 2px 9px;
    border-radius: 12px;
    background: #e8f0fe;
    color: #1967d2;
    white-space: nowrap;
    font-weight: 500;
}
.mapping-prov-more {
    background: #f0f0f0;
    color: var(--text-3);
}
.mapping-load-btn {
    margin: 0 18px 12px;
    padding: 7px 16px;
    background: none;
    border: 1px dashed #adc5f7;
    border-radius: 8px;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    display: block;
    width: calc(100% - 36px);
    text-align: center;
    transition: all 0.15s;
}
.mapping-load-btn:hover {
    background: #eef2ff;
    border-color: var(--primary);
}
.mapping-load-btn:disabled {
    color: var(--text-3);
    border-color: var(--border);
    cursor: not-allowed;
}

/* 数据表格区（用于价格或字段对比）*/
.data-table-section {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.data-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: #f7f8fa;
    border-bottom: 1px solid #e8eaed;
}
.data-table-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
}
.data-table-note {
    font-size: 11.5px;
    color: var(--text-3);
}

.smart-answer { padding: 24px 24px 20px; }

/* 各省价格表格容器 */
.province-price-table-wrap {
    overflow-x: auto;
}

.province-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    min-width: 400px;
}
.province-price-table thead {
    background: #f7f8fa;
}
.province-price-table th {
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 11.5px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1.5px solid #e8eaed;
}
.province-price-table tbody tr {
    transition: background 0.08s;
}
.province-price-table tbody tr:hover {
    background: #fafbff;
}
.province-price-table tbody tr.has-price:hover {
    background: #f0f7f0;
}
.province-price-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: middle;
}
.province-price-table .col-prov { min-width: 100px; max-width: 180px; }
.province-price-table .col-price { min-width: 90px; white-space: nowrap; }
.province-price-table .col-unit { min-width: 70px; white-space: nowrap; text-align: center; }
.province-price-table .col-detail { min-width: 140px; color: var(--text-3); font-size: 12px; }

/* ---- 表格列排序 ---- */
.province-price-table th.sortable-header {
    cursor: pointer;
    user-select: none;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.province-price-table th.sortable-header:hover {
    color: var(--primary);
    background: #eef1ff;
}
.province-price-table th.sortable-header .sort-label {
    vertical-align: middle;
}

/* 排序箭头：默认灰色双箭头，hover变蓝，激活后彩色单箭头 */
.province-price-table th.sortable-header .sort-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    position: relative;
}

/* 默认状态：灰色上下双箭头 */
.province-price-table th.sortable-header .sort-arrow::before,
.province-price-table th.sortable-header .sort-arrow::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    transition: border-color 0.15s;
}
/* 上箭头（默认灰色） */
.province-price-table th.sortable-header .sort-arrow::before {
    bottom: 1px;
    border-bottom: 4px solid #b0b8c4;
    border-top: none;
}
/* 下箭头（默认灰色） */
.province-price-table th.sortable-header .sort-arrow::after {
    top: 1px;
    border-top: 4px solid #b0b8c4;
    border-bottom: none;
}

/* hover：双箭头变蓝 */
.province-price-table th.sortable-header:hover .sort-arrow::before {
    border-bottom-color: var(--primary);
}
.province-price-table th.sortable-header:hover .sort-arrow::after {
    border-top-color: var(--primary);
}

/* 激活后隐藏双箭头 */
.province-price-table th.sortable-header.sort-asc .sort-arrow::before,
.province-price-table th.sortable-header.sort-asc .sort-arrow::after,
.province-price-table th.sortable-header.sort-desc .sort-arrow::before,
.province-price-table th.sortable-header.sort-desc .sort-arrow::after {
    display: none;
}

/* 升序：蓝色下箭头（单个） */
.province-price-table th.sortable-header.sort-asc .sort-arrow {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--primary);
    border-bottom: none;
}
/* 降序：蓝色上箭头（单个） */
.province-price-table th.sortable-header.sort-desc .sort-arrow {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 5px solid var(--primary);
    border-top: none;
}

/* ---- 项目变体选择器 ---- */
.variant-selector {
    margin: 12px 0 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.variant-label {
    font-size: 13px;
    color: var(--text-3);
    white-space: nowrap;
}
.variant-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.variant-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    text-decoration: none;
    color: var(--text-2);
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    transition: all 0.15s;
    white-space: nowrap;
}
.variant-tag:hover {
    background: #eef1ff;
    border-color: var(--primary);
    color: var(--primary);
}
.variant-tag-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 500;
}
.variant-tag-active:hover {
    background: #3b5bdb;
    color: #fff;
    border-color: #3b5bdb;
}

/* ---- 变体选择大卡片（当项目含多版本时优先展示）---- */
.variant-select-cards {
    margin: 20px 0 24px;
    text-align: center;
}
.variant-select-hint {
    font-size: 15px;
    color: var(--text-2);
    margin-bottom: 18px;
    line-height: 1.6;
}
.variant-cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 700px;
    margin: 0 auto;
}
.variant-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #fff;
    border: 2px solid #e0e3e8;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 280px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.variant-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(78,110,242,0.15);
    transform: translateY(-2px);
}
.variant-card-icon {
    font-size: 24px;
    flex-shrink: 0;
}
.variant-card-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    flex: 1;
    text-align: left;
}
.variant-card-arrow {
    font-size: 18px;
    color: #c0c4cc;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}
.variant-card:hover .variant-card-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* 计价说明对比表格 */
.notes-table .col-notes { width: auto; }
.pn-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
    word-break: break-word;
}

.prov-name {
    font-weight: 500;
    color: var(--text);
    font-size: 13.5px;
}
.prov-merged {
    font-weight: 600;
    color: var(--primary, #1a73e8);
}
.prov-count-badge {
    display: inline-block;
    font-size: 10.5px;
    color: #fff;
    background: var(--primary, #1a73e8);
    border-radius: 8px;
    padding: 1px 7px;
    margin-left: 6px;
    vertical-align: middle;
    font-weight: 500;
    white-space: nowrap;
}

/* 差异高亮 */
.diff-legend {
    font-size: 11px;
    color: var(--text-3, #888);
    font-weight: 400;
}
.diff-legend .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    vertical-align: middle;
    margin: 0 2px 0 8px;
}
.diff-legend .diff-added { background: #d4edda; border: 1px solid #28a745; }
.diff-legend .diff-removed { background: #f8d7da; border: 1px solid #dc3545; }
.diff-add {
    background-color: #d4edda;
    color: #155724;
    padding: 1px 3px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid #28a745;
}
.diff-del {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1px 3px;
    border-radius: 3px;
    text-decoration: line-through;
    opacity: 0.75;
}
.pp-amount {
    font-size: 15px;
    font-weight: 700;
    color: #c7340a;
    white-space: nowrap;
}
.pp-none {
    color: #ccc;
    font-size: 12.5px;
}
.pp-full {
    color: var(--text-3);
    font-size: 11.5px;
    display: block;
}
.pp-unit {
    color: var(--text-3);
    font-size: 11.5px;
}
.pp-unit-text {
    color: var(--text-2);
    font-size: 12.5px;
    white-space: nowrap;
    text-align: center;
    display: block;
}

.no-price-row { opacity: 0.55; }

.match-note {
    margin-top: 4px;
    padding: 8px 14px;
    background: #fffbeb;
    border-radius: 8px;
    font-size: 12.5px;
    color: #996500;
    border: 1px solid #fde68a;
}

/* ============================================================ */
/*  可折叠完整结果区                                               */
/* ============================================================ */
.sources-section {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.sources-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: var(--text-2);
    transition: background 0.12s;
}
.sources-toggle:hover { background: var(--bg-sub); }
.sources-toggle-icon {
    font-size: 9px;
    color: var(--text-3);
    width: 14px;
    transition: transform 0.2s;
}
.sources-list { display: none; }

.src-item {
    position: relative;
    padding: 13px 18px;
    border-top: 1px solid var(--border-light);
    border-left: 3px solid transparent;
    transition: background 0.08s;
}
.src-item:last-child { border-top: none; }
.src-item:hover { background: #fafbfc; }
.src-item[data-source="raw_data"] { border-left-color: var(--c-blue); }
.src-item[data-source="landing_prices"]  { border-left-color: var(--c-green); }

.src-link { display: block; text-decoration: none !important; }
.src-link:hover .src-title { text-decoration: underline; }
.src-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 3px;
}
.src-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a0dab;
    line-height: 1.35;
}
.src-price-badge {
    font-size: 12px;
    font-weight: 600;
    color: #c7340a;
    background: #fef0e6;
    padding: 1px 7px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}
.src-province-badge {
    font-size: 11px;
    color: #137333;
    background: #e6f4ea;
    padding: 1px 7px;
    border-radius: 8px;
    white-space: nowrap;
}
.src-snippet {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-2);
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.src-meta {
    font-size: 11px;
    color: var(--text-3);
    display: flex;
    gap: 10px;
}
.src-meta span::before { content: "·"; margin-right: 8px; color: #ddd; }
.src-meta span:first-child::before { content: ""; margin-right: 0; }
.src-price { color: #c7340a; font-weight: 500; }

/* 高亮 */
.highlight {
    background: var(--hl-bg);
    color: inherit;
    font-style: normal;
    padding: 0 1px;
    border-radius: 1px;
}

/* ---- 分页 ---- */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 6px 0 4px;
    padding: 4px 0 0;
}
.pg-btn, .pg-num {
    display: inline-block;
    min-width: 32px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--primary) !important;
    text-align: center;
    transition: all 0.12s;
    line-height: 1.4;
}
.pg-btn:hover, .pg-num:hover {
    background: var(--bg-sub);
    border-color: #ccc;
    text-decoration: none !important;
}
.pg-on {
    display: inline-block;
    min-width: 32px;
    padding: 6px 12px;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff !important;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}
.pg-dis {
    display: inline-block;
    min-width: 32px;
    padding: 6px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 13px;
    color: #ccc;
    text-align: center;
    line-height: 1.4;
}
.pg-dot { padding: 0 6px; color: var(--text-3); font-size: 13px; }

/* ==================== 详情页 ==================== */

.detail-page {
    max-width: 720px;
    margin: 0 auto;
}
.back-link { margin-bottom: 14px; }
.back-link a { font-size: 13px; color: var(--text-2) !important; }

.detail-source-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 11px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 500;
}
.detail-page .source-raw_data { background: var(--c-blue); }
.detail-page .source-landing-prices  { background: var(--c-green); }
.detail-page .source-docs     { background: var(--c-red); }

.detail-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text-2);
}

.detail-content {}
.detail-section { margin-bottom: 18px; }
.detail-section h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    padding-left: 10px;
    border-left: 3px solid var(--primary);
}
.detail-section p {
    font-size: 13px;
    line-height: 1.75;
    color: #4d5156;
}
.detail-section pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.75;
    background: var(--bg-sub);
    padding: 10px 14px;
    border-radius: var(--radius);
}

.doc-content { font-size: 13px; line-height: 1.8; }
.doc-content h1, .doc-content h2, .doc-content h3 {
    margin: 14px 0 6px;
    color: var(--text);
}
.doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}
.doc-content th, .doc-content td {
    border: 1px solid var(--border);
    padding: 7px 10px;
    font-size: 12px;
    text-align: left;
}
.doc-content th { background: var(--bg-sub); font-weight: 600; }

.no-detail {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-2);
}
.no-detail p:first-child { font-size: 16px; color: var(--text); }

/* ---- 页脚 ---- */
.footer {
    text-align: center;
    padding: 8px 16px;
    color: #bdc1c6;
    font-size: 11px;
    border-top: 1px solid var(--border-light);
    margin-top: 6px;
}
.footer-disclaimer {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.5;
}
.disclaimer-line {
    margin: 0 0 1px;
}

/* ---- Footer 移动端适配 ---- */
@media (max-width: 640px) {
    .footer { padding: 4px 10px; font-size: 10.5px; }
    .footer-disclaimer { max-width: 100%; line-height: 1.5; text-align: left; padding: 0 2px; }
    .disclaimer-line { margin-bottom: 2px; text-indent: 1.2em; }
}

/* ---- 响应式 ---- */
@media (max-width: 640px) {
    .search-home { margin: 36px auto 16px; }
    .hero-title { font-size: 21px; }
    .search-box { height: 42px; }
    .chat-results-page { padding: 4px 10px 8px; }
    .answer-card { padding: 18px 16px; border-radius: 10px; }
    .price-card { padding: 10px 12px; flex-direction: column; align-items: flex-start; gap: 4px; }
    .pc-right { margin-left: 0; flex-direction: row; align-items: center; gap: 8px; }
    .src-item { padding: 11px 13px; }
    .stats-bar { flex-direction: column; gap: 6px; align-items: center; }
    .container { padding: 12px 16px 12px; }

    /* 智能价格总览 - 移动端 */
    .smart-answer { padding: 18px 14px 16px; }
    .smart-title { font-size: 17px; }
    .smart-summary { font-size: 13.2px; }
    .stats-bar-inline { gap: 6px; padding: 10px 12px; }
    .stat-chip { min-width: 62px; padding: 5px 8px; }
    .stat-val { font-size: 14px; }
    .province-price-table { font-size: 12.5px; min-width: auto; }
    .province-price-table th, .province-price-table td { padding: 6px 8px; }
    .province-price-table .col-detail { display: none; }
    .province-price-table .col-prov { min-width: 60px; max-width: 90px; }
    .province-price-table .col-price { min-width: 55px; }
    .province-price-table .col-unit { min-width: 36px; }
    .province-price-table .col-mapping { min-width: 72px; }
    .data-table-note { display: none; }
    .data-table-title { font-size: 13px; }
    .pp-amount { font-size: 14px; }
}

/* ============================================================
   📋 国家立项指南信息卡片 (guide-info-card)
   ============================================================ */
.guide-info-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin: 16px 0;
    overflow: hidden;
}

.guide-info-title {
    margin: 0;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    background: linear-gradient(90deg, #e0e7ff 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    letter-spacing: 0.3px;
}

.guide-info-body {
    padding: 8px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 24px;
}

.guide-field {
    display: flex;
    align-items: flex-start;
    padding: 2px 0;
    min-height: 22px;
}

/* 全宽字段（服务产出、价格构成等长文本） */
.guide-field:has(.guide-value:only-child) {
    grid-column: 1 / -1;
}

.guide-label {
    flex-shrink: 0;
    width: 72px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;

    &::after {
        content: '：';
    }
}

.guide-value {
    font-size: 12.5px;
    color: #1e293b;
    line-height: 1.45;
    word-break: break-word;
}

.guide-source {
    padding: 4px 16px 6px;
    font-size: 11px;
    color: #94a3b8;
    text-align: right;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 640px) {
    .guide-info-body {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .guide-field {
        padding: 4px 0;
    }
    .guide-label {
        width: 64px;
        font-size: 12px;
    }
    .guide-value {
        font-size: 12.5px;
    }
}

/* ============================================================
   价格点击 → 原始数据 Modal
   ============================================================ */

/* 价格链接样式（继承 .pp-amount，加下划线点击提示）*/
a.price-detail-link.pp-amount {
    text-decoration: none;
    border-bottom: 1.5px dashed #c7340a;
    cursor: pointer;
    transition: opacity .15s;
}
a.price-detail-link.pp-amount:hover {
    opacity: .75;
}

/* 遮罩层 */
.raw-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(2px);
}

/* 内容盒子 */
.raw-modal-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: rawModalIn .18s ease;
}
@keyframes rawModalIn {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* 标题栏 */
.raw-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 12px;
    border-bottom: 1px solid #e8ecf2;
    flex-shrink: 0;
}
.raw-modal-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}
.raw-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
    transition: background .12s, color .12s;
}
.raw-modal-close:hover {
    background: #f1f5f9;
    color: #334155;
}

/* 内容区（可滚动）*/
.raw-modal-body {
    overflow-y: auto;
    padding: 14px 18px;
    flex: 1;
}

/* 加载中 */
.raw-loading {
    text-align: center;
    padding: 32px 0;
    color: #94a3b8;
    font-size: 14px;
}

/* 错误提示 */
.raw-error {
    color: #ef4444;
    font-size: 13px;
    text-align: center;
    padding: 24px 0;
}

/* 原始数据表格 */
.raw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.raw-table tr {
    border-bottom: 1px solid #f1f5f9;
}
.raw-table tr:last-child {
    border-bottom: none;
}
.raw-key {
    width: 105px;
    min-width: 90px;
    padding: 7px 10px 7px 0;
    font-weight: 600;
    color: #475569;
    vertical-align: top;
    white-space: nowrap;
}
.raw-val {
    padding: 7px 0;
    color: #1e293b;
    word-break: break-word;
    line-height: 1.5;
}
.raw-val-long {
    white-space: pre-wrap;
    font-size: 12px;
    color: #334155;
}

@media (max-width: 600px) {
    .raw-modal-box {
        max-height: 88vh;
        border-radius: 10px;
    }
    .raw-key {
        width: 80px;
        font-size: 12px;
    }
    .raw-val {
        font-size: 12.5px;
    }
    .raw-modal-foot {
        padding: 5px 12px;
    }
    .raw-modal-foot-text {
        font-size: 10px;
    }
}

/* ============================================================
   🔐 用户认证（登录/注册）
   ============================================================ */

/* ---- 导航栏用户区域 ---- */
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.nav-link {
    font-size: 13px;
    color: var(--primary) !important;
    padding: 4px 10px;
    border-radius: var(--radius);
    transition: background .12s, color .12s;
    text-decoration: none !important;
}
.nav-link:hover {
    background: rgba(78,110,242,.08);
    text-decoration: none !important;
}
.user-greeting {
    font-size: 13px;
    color: var(--text-2);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- 用户下拉菜单 ---- */
.user-dropdown {
    position: relative;
    display: inline-flex;
}
.user-greeting-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13px;
    color: var(--text-2);
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, border-color .15s, color .15s;
    outline: none;
    white-space: nowrap;
}
.user-greeting-btn:hover,
.user-greeting-btn:focus {
    background: #f5f6f8;
    border-color: var(--border);
    color: var(--text);
}
.user-greeting-btn.active {
    background: #f0f1f3;
    border-color: var(--border);
}
.user-dropdown-arrow {
    font-size: 9px;
    transition: transform .2s;
    color: var(--text-3);
}
.user-greeting-btn.active .user-dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 150px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .15s, transform .15s, visibility .15s;
    z-index: 200;
    padding: 4px;
}
.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text) !important;
    text-decoration: none !important;
    border-radius: 5px;
    white-space: nowrap;
    transition: background .12s;
}
.user-dropdown-item:hover {
    background: #f5f6f8;
}
.user-dropdown-item-danger {
    color: #c5221f !important;
}
.user-dropdown-item-danger:hover {
    background: #fef3f2;
}
.user-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 8px;
}

/* ---- 认证页面容器（登录/注册）---- */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 100px);
    padding: 20px 20px 40px;
}
.auth-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    padding: 36px 32px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.auth-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.auth-subtitle {
    font-size: 13px;
    color: var(--text-3);
    text-align: center;
    margin-bottom: 28px;
}

/* 表单组 */
.form-group {
    margin-bottom: 18px;
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}
.form-input {
    width: 100%;
    height: 42px;
    border: 1px solid #dfe1e5;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    font-family: inherit;
}
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(78,110,242,.12);
}
.form-input::placeholder {
    color: #bdc1c6;
}
.form-input.error {
    border-color: #ea4335;
    box-shadow: 0 0 0 3px rgba(234,67,53,.08);
}

/* 字段级内联错误提示 */
.field-error-msg {
    font-size: 12px;
    color: #ea4335;
    margin-top: 4px;
    display: none;
    align-items: center;
    gap: 4px;
}
.field-error-msg.show {
    display: flex;
}

/* 提示文字 */
.form-hint {
    font-size: 11.5px;
    color: var(--text-3);
    margin-top: 4px;
}

/* 错误提示 */
.auth-error {
    background: #fef3f2;
    border: 1px solid #fdd8d6;
    color: #c5221f;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* 信息风格错误（登录过期/未登录 - 温和提示） */
.auth-error-info {
    background: #f0f7ff;
    border: 1px solid #c7e0ff;
    color: #1a73e8;
}

/* 错误图标 */
.auth-error-icon {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1.4;
    margin-top: -1px;
}
.auth-error-text {
    flex: 1;
}

/* 登录后自动返回提示 */
.auth-redirect-hint {
    background: #f5f7fa;
    border: 1px solid #e4e7ed;
    color: #606266;
    font-size: 12.5px;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}
.auth-redirect-icon {
    font-size: 14px;
    flex-shrink: 0;
}

/* 欢迎提示（正常登录态无错误时） */
.auth-welcome {
    color: #909399;
    font-size: 13px;
    text-align: center;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* 成功提示 */
.auth-success {
    background: #f1f9f0;
    border: 1px solid #c4e6c1;
    color: #1e7e34;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* 提交按钮 */
.auth-btn {
    display: block;
    width: 100%;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
    margin-top: 6px;
    letter-spacing: 0.3px;
    font-family: inherit;
}
.auth-btn:hover { background: var(--primary-hover); }
.auth-btn:active { transform: scale(.99); }

/* 验证码输入行 */
.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.captcha-input {
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}
.captcha-img {
    flex-shrink: 0;
    width: 120px;
    height: 42px;
    border: 1px solid #dfe1e5;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s, opacity .2s;
    object-fit: cover;
}
.captcha-img:hover {
    border-color: var(--primary);
    opacity: 0.85;
}

/* 页面间链接 */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-3);
}
.auth-footer a {
    color: var(--primary) !important;
    font-weight: 500;
}

/* 移动端认证页 */
@media (max-width: 640px) {
    .auth-page {
        padding: 36px 16px 30px;
        min-height: auto;
    }
    .auth-card {
        padding: 28px 22px 24px;
        border-radius: 12px;
    }
    .auth-title {
        font-size: 20px;
    }
}

/* ============================================================
   🔐 未登录提示（首页 + 搜索结果页）
   ============================================================ */

/* ---- 首页登录提示横幅 ---- */
.login-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border: 1px solid #d2e3fc;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    text-align: left;
}
.login-notice-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}
.login-notice-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.login-notice-text strong {
    font-size: 14px;
    color: var(--text);
}
.login-notice-text span {
    font-size: 12.5px;
    color: var(--text-2);
}
.login-notice-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}
.btn-login {
    display: inline-block;
    padding: 7px 22px;
    background: var(--primary);
    color: #fff !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .15s;
}
.btn-login:hover {
    background: var(--primary-hover);
    text-decoration: none !important;
}
.btn-register {
    display: inline-block;
    padding: 7px 18px;
    background: transparent;
    color: var(--primary) !important;
    border: 1px solid var(--primary);
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all .15s;
}
.btn-register:hover {
    background: rgba(78,110,242,.06);
    text-decoration: none !important;
}

/* 高亮动画（点击搜索时闪烁提示） */
.login-notice.notice-highlight {
    animation: noticePulse .6s ease;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(78,110,242,.15);
}
@keyframes noticePulse {
    0%   { transform: scale(1);     box-shadow: 0 0 0 0 rgba(78,110,242,.2); }
    50%  { transform: scale(1.02); box-shadow: 0 0 0 6px rgba(78,110,242,.08); }
    100% { transform: scale(1);     box-shadow: 0 0 0 3px rgba(78,110,242,.15); }
}

/* ---- 搜索结果页"需要登录"提示 ---- */
.login-required-notice {
    text-align: center;
    padding: 36px 20px 32px;
}
.login-required-notice .login-required-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.login-required-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}
.login-required-desc {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 6px;
}
.login-required-hint {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.6;
    margin-bottom: 24px;
}
.search-keyword {
    color: var(--primary);
    font-weight: 500;
    background: #e8f0fe;
    padding: 1px 8px;
    border-radius: 4px;
}
.login-required-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* ===== 子变体行样式（省定价表格中的儿童加收、高龄加收等子行）===== */

/* 子变体数据行 */
.province-price-table tbody tr.sub-variant-row {
    background: #fafbfd;
    border-top: 1px solid #f0f0f5;
}
.province-price-table tbody tr.sub-variant-row:hover {
    background: #f3f4fa;
}

/* 子变体类型标签 */
.sub-variant-tag {
    display: inline-block;
    font-size: 12px;
    background: #eef1f8;
    color: #5b6abf;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 18px;
    white-space: nowrap;
}

/* 子变体价格 */
.sub-variant-price {
    font-size: 15px;
    color: #6366f1;
    font-weight: 600;
}
.btn-login-main {
    display: inline-block;
    padding: 10px 32px;
    background: var(--primary);
    color: #fff !important;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
    transition: background .15s;
}
.btn-login-main:hover {
    background: var(--primary-hover);
    text-decoration: none !important;
}
.btn-register-main {
    display: inline-block;
    padding: 10px 26px;
    background: transparent;
    color: var(--primary) !important;
    border: 1px solid #d2e3fc;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all .15s;
}
.btn-register-main:hover {
    background: rgba(78,110,242,.06);
    border-color: var(--primary);
    text-decoration: none !important;
}

/* 移动端登录提示 */
@media (max-width: 640px) {
    .login-notice {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 14px 16px;
    }
    .login-notice-actions {
        flex-direction: row;
        justify-content: center;
    }
    .login-required-notice {
        padding: 28px 16px 24px;
    }
    .login-required-actions {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================================ */
/*  搜索结果列表（项目卡片）                                       */
/* ============================================================ */

/* ============================================================
   搜索结果列表（传统模式）
   ============================================================ */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.results-count {
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 8px;
    padding: 0 2px;
}
.results-count strong { color: var(--primary); }
.result-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.result-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
    border-color: #d2e3fc;
}
.result-card[data-source="raw_data"] {
    border-left: 3px solid var(--c-blue);
}
.result-card[data-source="landing_prices"] {
    border-left: 3px solid var(--c-green);
}
.result-link {
    display: block;
    padding: 14px 18px 12px;
    text-decoration: none;
    color: inherit;
}
.result-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.result-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a0dab;
    line-height: 1.35;
    flex: 1 1 auto;
}
.result-link:hover .result-title {
    text-decoration: underline;
}
.result-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    margin-top: 2px;
}
.result-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
}
.result-badge-price {
    background: #fce8e6;
    color: #c5221f;
}
.result-badge-guide {
    background: #e8f0fe;
    color: #1967d2;
}
.result-badge-mapping {
    background: #e6f4ea;
    color: #137333;
    cursor: pointer;
    padding: 2px 9px;
    border-radius: 10px;
    transition: background 0.15s;
    border: 1px solid #ceead6;
}
.result-badge-mapping:hover {
    background: #ceead6;
}
.result-badge-mapping.active {
    background: #137333;
    color: #fff;
    border-color: #137333;
}
/* 覆盖省份数徽章 */
.result-badge-coverage {
    background: #e8f0fe;
    color: #1967d2;
}
/* 价格范围徽章 */
.result-badge-range {
    background: #fce8e6;
    color: #c5221f;
}
/* 列表页提示文字 */
.meta-hint {
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
    margin-left: auto;
}
.result-snippet {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 7px;
}
.result-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.meta-item {
    font-size: 11.5px;
    color: var(--text-3);
}
.meta-cat {
    background: #f0f4fa;
    color: #475569;
    padding: 1px 7px;
    border-radius: 4px;
}
.meta-prov {
    color: #137333;
}

/* ---- 映射关系展开区 ---- */
.mapping-expand {
    border-top: 1px dashed #e0e7ef;
    background: #f8faff;
    padding: 10px 18px 14px;
}
.mapping-expand-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.mapping-expand-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}
.mapping-expand-provinces {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.mapping-detail-content {
    font-size: 13px;
}
.mapping-loading,
.mapping-empty {
    font-size: 12px;
    color: var(--text-3);
    padding: 8px 0;
    text-align: center;
}
.mapping-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 4px;
    border-radius: 8px;
    overflow: hidden;
}
.mapping-detail-table th {
    background: #eef2ff;
    color: #3730a3;
    font-weight: 600;
    text-align: left;
    padding: 7px 10px;
    border-bottom: 1.5px solid #c7d2fe;
    white-space: nowrap;
    font-size: 11px;
    letter-spacing: 0.3px;
}
.mapping-detail-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text);
    vertical-align: top;
    line-height: 1.4;
}
.mapping-detail-table tr:last-child td {
    border-bottom: none;
}
.mapping-detail-table tr:hover td {
    background: #f5f8ff;
}
.mapping-detail-table code {
    font-size: 11px;
    background: #f0f0f0;
    padding: 1px 5px;
    border-radius: 3px;
    font-family: 'SF Mono', monospace;
}
.mapping-code-mi { color: #1967d2; }
.mapping-code-nhc { color: #7c3aed; }
.mapping-type-main {
    color: #059669;
    font-size: 11px;
    background: #d1fae5;
    padding: 1px 6px;
    border-radius: 4px;
}
.mapping-type-extra {
    color: #dc2626;
    font-size: 11px;
    font-weight: 500;
    background: #fee2e2;
    padding: 1px 6px;
    border-radius: 4px;
}
.mapping-more-hint {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 8px;
    text-align: center;
    padding: 4px;
    background: var(--bg-sub);
    border-radius: 4px;
}

/* ---- 分页 ---- */
.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 24px;
    padding: 10px 0;
}
.pg-btn, .pg-num, .pg-on, .pg-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
    border-radius: 8px;
    text-decoration: none;
}
.pg-btn, .pg-num {
    color: var(--primary);
    background: #fff;
    border: 1px solid #dadce0;
    transition: all 0.12s;
}
.pg-btn:hover, .pg-num:hover {
    background: #e8f0fe;
    border-color: #adc5f7;
    text-decoration: none !important;
}
.pg-on {
    color: #fff;
    background: var(--primary);
    font-weight: 600;
    border: 1px solid var(--primary);
}
.pg-dot {
    color: var(--text-3);
}

/* ============================================================
   映射关系列按钮 & 弹窗 Modal
   ============================================================ */

/* 表格"映射关系"列 */
.province-price-table .col-mapping {
    min-width: 90px;
    white-space: nowrap;
    text-align: center;
}

/* 行内映射查看按钮 */
.mapping-row-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #1967d2;
    background: #e8f0fe;
    border: 1px solid #adc5f7;
    border-radius: 20px;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    line-height: 1.4;
}
.mapping-row-btn:hover {
    background: #d2e3fc;
    border-color: #5a97f5;
    color: #1558c0;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(26,115,232,.15);
}
.mapping-row-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ====================================================
   映射弹出层 － 表格布局
   ==================================================== */

/* 弹层加宽以容纳更多列 */
.mapping-modal-box {
    max-width: 960px !important;
    width: 90vw !important;
}
/* 映射 Modal 内重设 body padding 和布局 */
.mapping-modal-box .raw-modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* ------ 顶部摘要栏 ------ */
.map-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px 8px;
    border-bottom: 1px solid #e8ecf2;
    flex-shrink: 0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
    border-radius: 12px 12px 0 0;
}
.map-summary-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.map-prov-tag {
    display: inline-block;
    padding: 2px 12px;
    background: linear-gradient(90deg, #e8f0fe, #f0e6ff);
    color: #1a0dab;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #c8d8f8;
}
.map-project-hint {
    font-size: 13px;
    color: #1e293b;
    font-weight: 500;
    white-space: nowrap;
}
.map-guideline-code {
    font-family: "SF Mono", "Consolas", "Courier New", monospace;
    font-size: 12px;
    background: #eef2f6;
    padding: 2px 8px;
    border-radius: 4px;
    color: #334155;
    white-space: nowrap;
}
.map-summary-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-2);
}
.map-count {
    font-size: 13px;
    color: var(--text-2);
}
.map-count strong {
    color: #1e293b;
}
.map-legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 3px;
    vertical-align: middle;
}
.map-dot-main   { background: #1967d2; }
.map-dot-extra  { background: #e65100; }

/* ------ 表格布局 ------ */
.map-table-wrap {
    overflow: auto;
    flex: 1;
    padding: 0;
}
.map-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: auto;
}
.map-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
}
.map-th {
    padding: 9px 10px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 11.5px;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
    white-space: nowrap;
}
.map-th-num   { width: 40px; text-align: center; }
.map-th-type  { width: 70px; text-align: center; }
.map-th-code  { width: 140px; }
.map-th-name  { width: auto; }
.map-th-mi    { width: 120px; }
.map-th-nhc   { width: 120px; }
.map-th-op    { width: 56px; text-align: center; }

.map-tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background .15s ease;
}
.map-tr:hover {
    background: #f8fafc;
}
/* 主项目/加收项行背景 */
.map-tr--main {
    background: #fff;
}
.map-tr--main:hover {
    background: #f0f5ff;
}
.map-tr--extra {
    background: #fffbeb;
}
.map-tr--extra:hover {
    background: #fef3c7;
}

/* 展开详情行 */
.map-tr-detail {
    background: #f8fafc;
}
.map-tr-detail td {
    padding: 0 10px 8px;
    border-bottom: 1px solid #f1f5f9;
}
.map-tr--main + .map-tr-detail td:first-child {
    border-left: 3px solid #1967d2;
}
.map-tr--extra + .map-tr-detail td:first-child {
    border-left: 3px solid #e65100;
}

.map-td {
    padding: 7px 8px;
    vertical-align: middle;
}
.map-td-num {
    text-align: center;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}
.map-td-type {
    text-align: center;
}
.map-td-name code,
.map-td-code code,
.map-td-mi code,
.map-td-nhc code {
    font-family: "SF Mono", "Consolas", "Courier New", monospace;
    font-size: 12px;
    background: #eef2f6;
    padding: 1px 6px;
    border-radius: 4px;
    color: #334155;
    white-space: nowrap;
}
.map-td-name .map-td-pname {
    font-size: 13px;
    color: #1e293b;
    font-weight: 500;
    word-break: break-word;
}
.map-td-code, .map-td-mi, .map-td-nhc {
    font-size: 12px;
    color: #334155;
}
.map-td-op {
    text-align: center;
}
.map-td-mi .map-empty,
.map-td-nhc .map-empty {
    color: #cbd5e1;
    font-size: 11.5px;
}
/* 省项目名称/医保局名称空值优化 */
.map-td-name:empty::after,
.map-td-mi-name:empty::after {
    content: '–';
    color: #cbd5e1;
}

/* 表格内多编码/多名称对应 */
.map-td-pair-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.map-td-pair-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.map-td-code {
    font-family: "SF Mono", "Consolas", "Courier New", monospace;
    font-size: 12px;
    background: #f1f5f9;
    padding: 5px 8px;
    border-radius: 4px;
    color: #334155;
    white-space: nowrap;
    text-align: left;
    line-height: 1.6;
}
/* 医保局编码副标题 */
.map-mi-code-sub {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    font-family: "SF Mono", Consolas, monospace;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}
/* 医保局名称副标题 */
.map-mi-name-sub {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
    font-style: italic;
}
.map-td-name {
    font-size: 13px;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word;
}

/* 类型标签（复用） */
.map-type-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.map-badge-main {
    background: #e8f0fe;
    color: #1967d2;
}
.map-badge-extra {
    background: #fef0e6;
    color: #c0500a;
}
.map-charge-item-mini {
    font-size: 10.5px;
    color: #e65100;
    margin-top: 2px;
}

/* 展开详情按钮 */
.map-expand-btn {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 10px;
    font-size: 11px;
    color: #1967d2;
    background: none;
    border: 1px solid #c8d8f8;
    border-radius: 10px;
    cursor: pointer;
    transition: background .12s;
}
.map-expand-btn:hover {
    background: #e8f0fe;
}

/* 展开详情区域 */
.map-card-detail {
    margin-top: 6px;
    padding: 6px 10px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e8ecf2;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.map-detail-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.map-detail-label {
    color: var(--text-3);
    min-width: 64px;
    flex-shrink: 0;
}
.map-detail-row code {
    font-family: "SF Mono", "Consolas", "Courier New", monospace;
    font-size: 11px;
    background: #f1f5f9;
    padding: 1px 5px;
    border-radius: 3px;
    color: #334155;
}
.map-detail-empty {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}

/* 空状态 */
.mapping-modal-empty {
    text-align: center;
    padding: 36px 20px;
    color: var(--text-2);
}
.mapping-modal-empty-icon {
    display: block;
    font-size: 36px;
    margin-bottom: 12px;
}
.mapping-modal-empty-hint {
    font-size: 12.5px;
    color: var(--text-3);
    margin-top: 4px;
}

/* ------ 分组标题行（主项目）------ */
.map-group-header { background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 100%); }
.map-group-header:hover { background: #f0f5ff; }
.map-group-title {
    padding: 9px 14px;
    font-size: 13px;
    color: #1e40af;
    vertical-align: middle;
    border-bottom: 2px solid #c7d7f8;
    border-top: none;
}
.map-group-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 8px;
    background: #1967d2;
    color: #fff;
    margin-right: 8px;
    vertical-align: middle;
    letter-spacing: 0.3px;
}
.map-group-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e3a8a;
    vertical-align: middle;
    letter-spacing: 0.2px;
}
.map-group-code {
    display: inline-block;
    margin-left: 8px;
    font-family: "SF Mono", "Consolas", monospace;
    font-size: 11px;
    background: #e8f0fe;
    color: #1967d2;
    padding: 1px 7px;
    border-radius: 4px;
    vertical-align: middle;
}

/* ------ 多值行标记 ------ */
.map-multi-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    padding: 0 5px;
    border-radius: 6px;
    background: #fef3c7;
    color: #92400e;
    margin-left: 4px;
    vertical-align: middle;
}

/* ------ 调整类型列颜色 ------ */
.map-tr--main .map-td-type {
    border-left: 3px solid #1967d2;
}
.map-tr--extra .map-td-type {
    border-left: 3px solid #e65100;
}

/* ------ rowspan 单元格垂直居中 ------ */
.map-td-type[rowspan],
.map-td-unit[rowspan],
.map-td-notes[rowspan] {
    vertical-align: middle;
    text-align: center;
}

/* ------ 移除已废弃的列 ------ */
.map-th-num   { display: none; }
.map-td-num   { display: none; }

/* ------ 调整表格列宽（4列精简布局）------ */
.map-th-code      { width: 140px; }
.map-th-name      { width: auto;  min-width: 200px; }
.map-th-unit      { width: 60px;  text-align: center; }
.map-th-charge    { width: auto;  min-width: 100px; }

/* ------ 弹出层底部分隔块 ------ */
.raw-modal-foot {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 6px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    user-select: none;
}
.raw-modal-foot-line {
    flex: 0 1 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d1d5db, transparent);
}
.raw-modal-foot-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
}
.raw-modal-foot-text {
    font-size: 9.5px;
    color: #94a3b8;
    letter-spacing: 2px;
    text-align: center;
    flex-shrink: 0;
    /* 雕刻效果：浅色高光 + 深色阴影模拟凹刻 */
    text-shadow:
        0 1px 0 rgba(255,255,255,0.55),
        0 -1px 0 rgba(0,0,0,0.08);
    font-weight: 500;
}

/* ------ 数据来源底部信息 ------ */
.map-source-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 9px 14px;
    font-size: 11.5px;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}
.map-source-label {
    color: #94a3b8;
}
.map-source-value {
    color: #475569;
    font-weight: 500;
}
.map-source-divider {
    color: #cbd5e1;
    margin: 0 2px;
}

/* ------ 响应式 ------ */
@media (max-width: 640px) {
    .mapping-modal-box { max-width: 100% !important; width: 96vw !important; }
    .map-summary-bar  { padding: 8px 12px 6px; flex-direction: column; gap: 4px; align-items: flex-start; }
    .map-table-wrap   { overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 11.5px; }
    .map-table        { min-width: 320px; }
    .map-th, .map-td  { padding: 5px 6px; }
    /* 手机端隐藏单位、加收列，保留：省项目编码(1)、省项目名称(2) */
    .map-table th:nth-child(3),
    .map-table td:nth-child(3) { display: none; }
    .map-table th:nth-child(4),
    .map-table td:nth-child(4) { display: none; }
    .map-th-code { width: 100px; }
    .map-th-name { min-width: 150px; width: auto; }
    /* 编码单元格允许折行 */
    .map-td-code {
        white-space: normal;
        word-break: break-all;
        font-size: 10.5px;
        padding: 3px 5px;
        background: transparent;
    }
    .map-td-name {
        font-size: 12.5px;
    }
    .map-mi-code-sub,
    .map-mi-name-sub {
        display: none;
    }
    .map-group-title  { font-size: 12px; padding: 7px 10px; }
    .map-group-code   { font-size: 10px; }
    .map-type-badge   { font-size: 10px; padding: 1px 6px; }
    .map-multi-badge  { font-size: 9px; padding: 0 3px; }
}

/* ---- 响应式：移动端 ---- */
@media (max-width: 640px) {
    .navbar { padding: 10px 0; }
    .navbar-inner { padding: 0 12px; gap: 8px; }
    .logo { font-size: 14px; white-space: nowrap; }
    .nav-user { gap: 6px; }
    .nav-link { font-size: 12px; padding: 4px 8px; }
    .user-greeting-btn { font-size: 12px; }
    .user-greeting-btn span:first-child { max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .search-home { margin: 24px auto 16px; }
    .hero-title { font-size: 20px; margin-bottom: 12px; }
    .chat-results-page { padding: 0 0 30px; }
    .smart-project-header { padding: 16px 16px 14px; border-radius: 12px; }
    .smart-title { font-size: 17px; }
    .stats-summary-row { gap: 6px; }
    .stat-pill { min-width: 70px; padding: 8px 8px; }
    .stat-pill-val { font-size: 14px; }
    .info-section-header { padding: 8px 14px; }
    .guide-fields-grid { padding: 10px 14px; }
    .mapping-province-chips { padding: 8px 14px 6px; }
    .mapping-load-btn { margin: 0 14px 10px; width: calc(100% - 28px); }
    .data-table-section { border-radius: 10px; }
    .data-table-header { padding: 10px 12px; }
    .data-table-title { font-size: 13px; }
    .data-table-note { display: none; }
    .province-price-table { font-size: 12.5px; min-width: auto; }
    .province-price-table th, .province-price-table td { padding: 6px 8px; }
    .province-price-table .col-detail { display: none; }
    .province-price-table .col-prov { min-width: 60px; max-width: 90px; }
    .province-price-table .col-price { min-width: 55px; }
    .province-price-table .col-unit { min-width: 36px; }
    .province-price-table .col-mapping { min-width: 72px; }
    .result-card { border-radius: 10px; }
    .result-link { padding: 12px 14px 10px; }
    .result-title { font-size: 14px; }
    .source-filter-bar { gap: 4px; }
    .source-chip { padding: 3px 10px; font-size: 11.5px; }
    .mapping-modal-box { max-width: 100% !important; }
    .mapping-row-btn { font-size: 11px; padding: 2px 8px; }
    /* ---------- 映射详情表 - 手机端优化 ---------- */
    .mapping-detail-table { font-size: 11px; }
    .mapping-detail-table th,
    .mapping-detail-table td { padding: 5px 6px; }
    /* 隐藏"类别"列（col 2）和"加收项"列（col 8）*/
    .mapping-detail-table th:nth-child(2),
    .mapping-detail-table td:nth-child(2) { display: none; }
    .mapping-detail-table th:nth-child(8),
    .mapping-detail-table td:nth-child(8) { display: none; }
    .mapping-detail-table code { font-size: 10px; padding: 1px 3px; }
    .mapping-type-main,
    .mapping-type-extra { font-size: 10px; padding: 1px 5px; }
    .mapping-empty { font-size: 11px; }
    .mapping-more-hint { font-size: 10px; }
    /* 映射弹层 body 允许横向滚动（兜底） */
    .mapping-modal-box .raw-modal-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ============================================================
   意见反馈页面（列表为主，弹窗提交）
   ============================================================ */

/* ── 页面头部 ── */
.fb-page-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.fb-page-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 0 8px;
}
.fb-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
}
.fb-page-subtitle {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* ── 「意见反馈」打开弹窗按钮 ── */
.fb-open-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #4e6ef2 0%, #3651d5 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(78,110,242,0.3);
    transition: all 0.2s;
    white-space: nowrap;
}
.fb-open-modal-btn:hover {
    background: linear-gradient(135deg, #5d7bf5 0%, #405cdd 100%);
    box-shadow: 0 6px 20px rgba(78,110,242,0.4);
    transform: translateY(-1px);
}

/* ── 弹窗遮罩 ── */
.fb-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.fb-modal-overlay.fb-modal-open {
    opacity: 1;
    pointer-events: auto;
}

/* ── 弹窗卡片 ── */
.fb-modal-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 32px 26px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.25s;
}
.fb-modal-overlay.fb-modal-open .fb-modal-card {
    transform: translateY(0);
}

/* ── 弹窗头部 ── */
.fb-modal-header {
    text-align: center;
    margin-bottom: 22px;
    position: relative;
}
.fb-modal-header-icon {
    font-size: 34px;
    margin-bottom: 6px;
    line-height: 1;
}
.fb-modal-header h3 {
    font-size: 21px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
    letter-spacing: -0.3px;
}
.fb-modal-header p {
    color: var(--text-3);
    font-size: 13px;
    margin: 0;
}
.fb-modal-close {
    position: absolute;
    top: -6px;
    right: -8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 16px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
}
.fb-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

/* 表单 */
.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: opacity 0.3s, transform 0.3s;
}
.fb-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.fb-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.fb-required {
    color: #ef4444;
    margin-left: 1px;
}
.fb-hint {
    font-weight: 400;
    color: var(--text-3);
    font-size: 12px;
    margin-left: 4px;
}

/* 类型卡片选择 */
.fb-type-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.fb-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 10px 6px 8px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid #eaecf0;
    background: #fafbfc;
    transition: all 0.2s ease;
    text-align: center;
    user-select: none;
}
.fb-type-card:hover {
    border-color: #bac8f5;
    background: #f5f7ff;
}
.fb-type-card.selected {
    border-color: var(--primary);
    background: #eef2ff;
    box-shadow: 0 0 0 3px rgba(78,110,242,0.1);
}
.fb-type-icon {
    font-size: 22px;
    line-height: 1.1;
}
.fb-type-name {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-top: 1px;
}
.fb-type-desc {
    font-size: 10px;
    color: var(--text-3);
}

/* 文本框 */
.fb-textarea-wrap {
    border: 2px solid #eaecf0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
    background: #fff;
}
.fb-textarea-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(78,110,242,0.08);
}
.fb-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: none;
    border-radius: 0;
    font-size: 13px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
    min-height: 100px;
    outline: none;
    background: transparent;
}
.fb-textarea::placeholder {
    color: #c0c4cc;
}
.fb-textarea-footer {
    display: flex;
    justify-content: flex-end;
    padding: 5px 12px;
    border-top: 1px solid #f0f2f5;
    background: #fafbfc;
}
.fb-counter {
    font-size: 12px;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

/* 输入框 */
.fb-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 2px solid #eaecf0;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafbfc;
}
.fb-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(78,110,242,0.08);
    background: #fff;
}
.fb-input::placeholder {
    color: #c0c4cc;
}

/* 按钮区 */
.fb-actions {
    display: flex;
    gap: 12px;
    padding-top: 8px;
}
.fb-btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    line-height: 1.4;
}
.fb-btn-cancel {
    background: #f3f4f6;
    color: #6b7280;
    flex-shrink: 0;
}
.fb-btn-cancel:hover {
    background: #e5e7eb;
    color: #374151;
}
.fb-btn-submit {
    flex: 1;
    background: linear-gradient(135deg, #4e6ef2 0%, #3651d5 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(78,110,242,0.35);
}
.fb-btn-submit:hover {
    background: linear-gradient(135deg, #5d7bf5 0%, #405cdd 100%);
    box-shadow: 0 6px 20px rgba(78,110,242,0.45);
    transform: translateY(-2px);
}
.fb-btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(78,110,242,0.25);
}
.fb-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.fb-submit-loading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.fb-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fb-spin 0.6s linear infinite;
}
@keyframes fb-spin {
    to { transform: rotate(360deg); }
}

/* 成功状态 */
.fb-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px 36px;
    text-align: center;
    animation: fb-fadeIn 0.5s ease;
}
@keyframes fb-fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fb-success-check {
    margin-bottom: 20px;
}
.fb-check-svg {
    width: 64px;
    height: 64px;
}
.fb-check-svg circle {
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    animation: fb-draw-circle 0.6s ease forwards;
}
.fb-check-svg path {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: fb-draw-check 0.4s 0.3s ease forwards;
}
@keyframes fb-draw-circle {
    to { stroke-dashoffset: 0; }
}
@keyframes fb-draw-check {
    to { stroke-dashoffset: 0; }
}
.fb-success-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}
.fb-success-msg {
    color: var(--text-3);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}
.fb-success-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.fb-success .fb-btn-submit {
    min-width: 140px;
}

/* 响应式 */
@media (max-width: 640px) {
    .fb-page-title-row {
        flex-direction: column;
        gap: 12px;
        padding: 20px 0 8px;
    }
    .fb-open-modal-btn {
        width: 100%;
        justify-content: center;
    }
    .fb-modal-card {
        padding: 24px 20px 22px;
        border-radius: 12px;
        max-width: 100%;
    }
    .fb-modal-header { margin-bottom: 24px; }
    .fb-modal-header-icon { font-size: 30px; }
    .fb-modal-header h3 { font-size: 19px; }
    .fb-type-group {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .fb-type-card { padding: 12px 8px 10px; }
    .fb-type-icon { font-size: 22px; }
    .fb-type-name { font-size: 13px; }
    .fb-type-desc { font-size: 10px; }
    .fb-textarea { min-height: 120px; font-size: 13px; }
    .fb-actions { flex-direction: column; }
    .fb-actions .fb-btn { width: 100%; justify-content: center; }
    .fb-actions .fb-btn-cancel { order: 2; }
    .fb-actions .fb-btn-submit { order: 1; }
}

/* ===== 用户行为分析页 - 时间范围选择器 ===== */
.stats-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 16px;
    background: #f8f9fc;
    border-radius: 8px;
}
.stats-toolbar-label {
    font-size: 14px;
    color: var(--text-2);
    font-weight: 500;
}
.stats-range-btn {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    color: var(--text-2);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    transition: all .15s;
}
.stats-range-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    text-decoration: none;
}
.stats-range-active {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

/* ===== 新增汇总卡片配色 ===== */
.ad-stat-card-cyan { background: linear-gradient(135deg, #e0f7fa, #b2ebf2); }
.ad-stat-card-cyan .ad-stat-num { color: #006064; }
.ad-stat-card-cyan .ad-stat-label { color: #00838f; }

.ad-stat-card-red { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }
.ad-stat-card-red .ad-stat-num { color: #c62828; }
.ad-stat-card-red .ad-stat-label { color: #e53935; }

/* ===== 匿名vs登录 摘要文字 ===== */
.stats-chart-summary {
    text-align: center;
    font-size: 13px;
    color: var(--text-3);
    padding: 4px 0 0;
}

/* ===== 24H×7D 热力图 ===== */
.heatmap-wrap {
    overflow-x: auto;
    padding: 8px 0;
}
.heatmap-table {
    border-collapse: collapse;
    font-size: 11px;
    width: 100%;
}
.heatmap-table th,
.heatmap-table td {
    padding: 3px 5px;
    text-align: center;
    min-width: 28px;
    height: 28px;
    border: 1px solid #f0f0f0;
}
.heatmap-table .hm-label {
    font-weight: 600;
    color: var(--text-2);
    min-width: 40px;
    white-space: nowrap;
}
.heatmap-table .hm-hour {
    font-size: 10px;
    color: var(--text-3);
}
.heatmap-table .hm-cell {
    border-radius: 3px;
    transition: opacity .15s;
    cursor: pointer;
}
.heatmap-table .hm-cell:hover {
    opacity: 0.7;
}
.heatmap-table .hm-tick {
    font-size: 10px;
    color: #9aa0a6;
    white-space: nowrap;
}
.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-3);
}
.heatmap-legend-bar {
    flex: 1;
    max-width: 200px;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, rgb(235,245,255), rgb(55,95,230));
}

/* ===== 我的反馈记录列表（合并到 /feedback 页面下半部分） ===== */
.fb-history-section {
    max-width: 800px;
    margin: 24px auto 0;
    padding: 0;
}
.fb-history-header {
    text-align: center;
    margin-bottom: 24px;
}
.fb-history-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}
.fb-history-subtitle {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* 分隔线 */
.fb-divider {
    border: none;
    border-top: 1px solid #eee;
    max-width: 800px;
    margin: 32px auto;
}

/* 列表 */
.fb-history-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* 反馈卡片 */
.fb-history-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.fb-history-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.fb-history-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}
.fb-history-card-id {
    font-size: 12px;
    color: #aaa;
    font-weight: 600;
}
.fb-history-card-type {
    font-size: 13px;
    color: #555;
}
.fb-history-card-status {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 500;
}
.fb-history-status-pending { background: #fff3cd; color: #856404; }
.fb-history-status-processing { background: #cce5ff; color: #004085; }
.fb-history-status-resolved { background: #d4edda; color: #155724; }
.fb-history-status-rejected { background: #e2e3e5; color: #6c757d; }
.fb-history-card-time {
    font-size: 12px;
    color: #aaa;
    margin-left: auto;
}
.fb-card-del-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    color: #ccc;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
    margin-left: 4px;
}
.fb-card-del-btn:hover {
    color: #f56c6c;
    background: #fef0f0;
}
@media (max-width: 640px) {
    .fb-card-del-btn {
        font-size: 14px;
        padding: 4px 8px;
    }
}

.fb-history-card-body {
    padding: 14px 18px;
}
.fb-history-content-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}
.fb-history-content-text {
    font-size: 14px;
    color: #333;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 管理员回复 */
.fb-history-reply {
    margin: 0 18px 18px;
    padding: 12px 16px;
    background: #f0f7ff;
    border-left: 3px solid #3498db;
    border-radius: 0 8px 8px 0;
}
.fb-history-reply-label {
    font-size: 12px;
    color: #3498db;
    margin-bottom: 6px;
    font-weight: 600;
}
.fb-history-reply-text {
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 分页 */
.fb-history-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}
.fb-history-pg-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: all 0.15s;
}
.fb-history-pg-btn:hover {
    border-color: #3498db;
    color: #3498db;
    text-decoration: none;
}
.fb-pg-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}
.fb-history-pg-info {
    font-size: 13px;
    color: #888;
}

/* 空状态 */
.fb-history-empty {
    text-align: center;
    padding: 40px 20px;
}
.fb-history-empty-icon {
    font-size: 42px;
    margin-bottom: 12px;
}
.fb-history-empty-title {
    font-size: 16px;
    color: #666;
    margin: 0 0 6px;
}
.fb-history-empty-hint {
    font-size: 13px;
    color: #999;
    margin: 0 0 20px;
}

/* 提交成功后自动滚动到历史记录 */
@media (max-width: 600px) {
    .fb-history-section {
        margin-top: 20px;
        padding: 0 12px;
    }
    .fb-history-card-top {
        padding: 10px 14px;
        gap: 8px;
    }
    .fb-history-card-body {
        padding: 12px 14px;
    }
    .fb-history-reply {
        margin: 0 14px 14px;
    }
}
