/* 便民电话号码大全 样式 */
.cp-page { max-width: 1200px; margin: 0 auto; display: flex; gap: 20px; align-items: flex-start; box-sizing: border-box; }
.cp-main { flex: 1; min-width: 0; }
.cp-sidebar { width: 280px; flex-shrink: 0; }

.calc-header { background: linear-gradient(135deg, #1890ff 0%, #0056b3 100%); color: #fff; padding: 30px 20px; border-radius: 12px 12px 0 0; text-align: center; margin-bottom: 16px; }
.calc-header h1 { font-size: 26px; font-weight: 600; margin-bottom: 8px; }
.calc-header p { font-size: 14px; opacity: 0.9; }

.card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.card-title { font-size: 18px; font-weight: 600; color: #333; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid #1890ff; }

.intro-box { color: #666; line-height: 1.9; font-size: 15px; }
.intro-box p { margin: 0; }
.notice-box { background: #fff7e6; border-radius: 8px; padding: 14px 16px; color: #666; font-size: 14px; line-height: 1.8; }
.notice-box p { margin: 0; }
.notice-box p + p { margin-top: 6px; }

.cp-region-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.cp-region-btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; background: #f0f7ff; color: #333; border-radius: 20px; text-decoration: none; font-size: 14px; line-height: 1.3; border: 1px solid #d9e8f7; transition: all 0.2s; white-space: nowrap; }
.cp-region-btn:hover { background: #1890ff; color: #fff; border-color: #1890ff; }

.cp-city-list { list-style: none; margin: 0; padding: 0; }
.cp-city-list > li { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.cp-city-list > li:last-child { border-bottom: none; }
.cp-city-name { font-size: 17px; font-weight: 600; color: #333; margin-bottom: 10px; }
.cp-county-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.cp-county-tag { display: inline-block; padding: 8px 16px; background: #f5f8ff; color: #444; border-radius: 20px; text-decoration: none; font-size: 14px; border: 1px solid #e3ecfb; }
.cp-county-tag:hover { background: #1890ff; color: #fff; }

.cp-dept-list { list-style: none; margin: 0; padding: 0; }
.cp-dept-list li { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.cp-dept-list li:last-child { border-bottom: none; }
.cp-dept-list a { color: #333; text-decoration: none; font-size: 15px; }
.cp-dept-list a:hover { color: #1890ff; }

.cp-common-group { margin-bottom: 18px; }
.cp-common-group h4 { font-size: 16px; color: #1890ff; margin-bottom: 10px; }
.cp-common-group .cp-unit-card { background: #f8fbff; }

.cp-type-section { margin-bottom: 20px; }
.cp-type-section h3 { font-size: 17px; color: #333; margin-bottom: 12px; padding-left: 12px; border-left: 4px solid #1890ff; }

.cp-unit-card { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 10px; }
.cp-unit-card a { text-decoration: none; display: flex; width: 100%; justify-content: space-between; align-items: center; }
.cp-unit-list { display: flex; flex-direction: column; gap: 10px; }
.cp-unit-card .u-name { font-size: 15px; color: #333; font-weight: 500; }
.cp-unit-card .u-phone { font-size: 15px; color: #1890ff; font-weight: 600; white-space: nowrap; }
.cp-unit-card .u-phone .remark { font-size: 12px; color: #999; font-weight: 400; margin-left: 4px; }

.cp-related-group { margin-bottom: 20px; }
.cp-related-group h4 { font-size: 16px; color: #1890ff; margin-bottom: 10px; }

.cp-info-item { display: flex; padding: 12px 0; border-bottom: 1px solid #f0f0f0; font-size: 15px; }
.cp-info-item:last-child { border-bottom: none; }
.cp-info-label { color: #666; width: 120px; flex-shrink: 0; }
.cp-info-value { color: #333; font-weight: 500; flex: 1; }
.cp-info-value a { color: #1890ff; text-decoration: none; }

.sidebar-card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.sidebar-card-title { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 12px; padding-left: 10px; border-left: 4px solid #1890ff; }
.sidebar-card img.qr { width: 100%; border-radius: 8px; }
/* 右侧其它工具（样式与居民养老 resident_pension_query 一致） */
.cp-tools { display: flex; flex-direction: column; gap: 8px; }
.cp-tool-item { display: flex; align-items: center; padding: 10px 12px; background: #f8f9fa; border-radius: 8px; text-decoration: none; transition: all 0.2s; }
.cp-tool-item:hover { background: #e8f4ff; }
.cp-tool-icon { width: 32px; height: 32px; margin-right: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.cp-tool-icon img { width: 100%; height: 100%; object-fit: contain; }
.cp-tool-name { color: #333; font-size: 14px; }
.cp-tool-item:hover .cp-tool-name { color: #1890ff; }
.sidebar-county-list { list-style: none; margin: 0; padding: 0; }
.sidebar-county-list li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.sidebar-county-list li:last-child { border-bottom: none; }
.sidebar-county-list a { color: #333; text-decoration: none; font-size: 14px; }
.sidebar-county-list a:hover { color: #1890ff; }

.cp-search-box { position: relative; }
.cp-search-box input { width: 100%; padding: 12px 14px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 15px; box-sizing: border-box; }
.cp-search-box input:focus { outline: none; border-color: #1890ff; box-shadow: 0 0 0 2px rgba(24,144,255,0.15); }
.cp-search-results { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; background: #fff; border: 1px solid #e8e8e8; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.12); z-index: 100; max-height: 320px; overflow-y: auto; display: none; }
.cp-search-results .sr-item { padding: 10px 14px; border-bottom: 1px solid #f5f5f5; cursor: pointer; font-size: 14px; color: #333; }
.cp-search-results .sr-item:last-child { border-bottom: none; }
.cp-search-results .sr-item:hover { background: #f0f7ff; }
.cp-search-results .sr-item .sr-type { font-size: 12px; color: #999; margin-left: 6px; }
.cp-search-results .sr-empty { padding: 10px 14px; font-size: 13px; color: #999; }

.cp-unit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cp-unit-block { border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #fff; }
.cp-unit-block .u-name { display: block; padding: 8px 10px; font-size: 14px; color: #333; font-weight: 500; text-decoration: none; border-bottom: 1px solid #f0f0f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.cp-unit-block .u-name:hover { background: #f8fbff; color: #1890ff; }
.cp-unit-block .u-phone { display: block; padding: 7px 10px; font-size: 15px; color: #1890ff; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.cp-unit-block .u-phone:hover { background: #e8f4ff; }
.cp-unit-block .u-phone .remark { font-size: 11px; color: #999; font-weight: 400; margin-left: 4px; }

.cp-back-btn { display: inline-block; padding: 9px 16px; background: #f0f7ff; color: #1890ff; border-radius: 6px; text-decoration: none; font-size: 14px; border: 1px solid #d9e8f7; }
.cp-back-btn:hover { background: #1890ff; color: #fff; }

@media (max-width: 768px) {
    .cp-unit-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .cp-page { display: block; padding: 0 15px; box-sizing: border-box; }
    .cp-main { width: 100%; }
    .cp-sidebar { display: block; width: 100%; margin-top: 16px; }
    .calc-header { padding: 20px 15px; }
    .calc-header h1 { font-size: 22px; }
    .card { padding: 16px; }
    .card-title { font-size: 16px; }
    .cp-region-btn { padding: 8px 16px; font-size: 13px; }
    .cp-unit-card { flex-direction: column; align-items: flex-start; gap: 6px; }
    /* 单位详情页基本信息：手机端改为上下堆叠，避免 label 挤压 value */
    .cp-info-item { flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 0; }
    .cp-info-label { width: auto; flex-shrink: 0; margin-bottom: 0; }
    .cp-info-value { width: 100%; word-break: break-all; }
}
