/* =========================================
   📘 机构查询应用 CSS 修改索引
   =========================================

🎯 页面基础
- 整体字体/颜色: body {...}
- 背景图: .bg-fixed {...}

🎯 页面头部
- 标题“机构查询”: .header h1 {...}
- 副标题说明: .header .sub {...}

🎯 面板容器（产品选择、省市选择、搜索框所在块）
- 面板背景颜色: .panel {...}
- 面板圆角/阴影: .panel {...}
- 面板标题“产品”: .panel-title {...}

🎯 下拉菜单与搜索框
- 下拉框样式: select {...}
- 搜索框样式: .input {...}
- 搜索框 placeholder: input::placeholder {...}
- 下拉框间距: .grid-2 {...}

🎯 产品勾选 chips
- chip 背景/边框/圆角: .chip {...}
- chip 文字样式: .chip .code {...}
- chip 复选框大小: .chip input {...}

🎯 机构卡片内容
- 卡片背景渐变/圆角/阴影: .card {...}
- 机构名称文字: .card .name {...}
- 机构信息文字: .card .meta {...}
- 信息图标样式: .card .icon {...}
- 顶部图片比例: .card .photo {...}

🎯 卡片按钮（拨打电话/开始导航）
- 按钮整体样式: .btn {...}
- 拨打电话按钮: .btn-primary {...}
- 开始导航按钮: .btn-outline {...}

🎯 底部返回按钮
- 按钮样式: .btn-text {...}
- 底部背景渐变: .bottom-bar {...}

🎯 提示区
- 统计文字“共X家机构”: #stat {...}
- 无结果提示: .empty {...}

========================================= */

/* ========== 页面基础 ========== */
* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;              /* 由内部 .scroll 滚动 */
}

body {
  color: #1f2937;
  font: 16px/1.5 -apple-system,BlinkMacSystemFont,system-ui,"PingFang SC","Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans SC",sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* 固定背景层：整屏固定，不随滚动移动 */
.bg-fixed{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: url("/assets/img/bg.png") center center / cover no-repeat;
  z-index: -1;
  pointer-events: none;
}

/* 内容滚动容器 */
.scroll{
  position: relative;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 页面容器 */
.page { min-height: 100%; padding-bottom: calc(env(safe-area-inset-bottom) + 72px); }

/* ========== 页面头部 ========== */
.header{ padding: 100px 16px 0; text-align: center;      /* 👈 居中对齐里面所有文字 */}

.header h1{
  margin: 0 0 0px;
  font-size: 22px;      /* 机构查询：字体大小 */
  color: #ffffff;       /* 机构查询：字体颜色 */
  font-weight: 400;
}

.header .sub{
  margin:0;
  font-size: 16px;
  color:#e5e7eb;
}

/* ========== 面板容器（产品选择、省市选择、搜索框） ========== */
.panel{
  margin: 8px 12px;   /* 上下 8px，左右 16px */
  padding: 10px;
  background: rgba(255, 255, 255, 0.05); /* 白色，透明度 5% */
  -webkit-backdrop-filter: saturate(160%) blur(4px);
  backdrop-filter: saturate(160%) blur(4px);
  border: 0px solid rgba(255,255,255,.1);
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.panel.muted{ 
  margin: 5px;
  padding: 10px;
  background: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
}

.panel.center{ text-align:center; }

/* 面板标题（勾选产品） */
.panel-title{
  font-size: 16px;      
  color: #ffffff;       
  font-weight: 500;
  margin-bottom: 8px;
  margin-left: 2px; 
}

/* ========== 下拉菜单与搜索框 ========== */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-top: 5px;  padding:0 4px 8px; }

select,input{
  width:100%; padding:11px 15px;
  border:0.5px solid #e5e7eb; border-radius:5px;
  background: transparent;  
  font-size:14px;
  color:#fff; 
}

.input{ width: calc(100% - 8px); color:#fff; margin: 0 4px 8px; }

/* 输入框提示文字样式 */
input::placeholder {
  color: #fff;        
  opacity: 0.8;       
}

/* ========== 产品勾选 chips ========== */
.chips{ display:flex; flex-wrap:wrap; gap:5px; margin-left: 4px; }

.chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 12px; border-radius:5px;
  border:0.5px solid #e5e7eb; 
  background: transparent;
  -webkit-backdrop-filter:saturate(160%) blur(10px);
  backdrop-filter:saturate(160%) blur(10px);
}

.chip input{ width:8px; height:8px; }

.chip .code{ font-weight:400;color:#ffffff;font-size:14px; }

/* ========== 机构卡片内容 ========== */
.results{ padding: 0px 8px 100px; }

.card{
  overflow:hidden;
  border-radius:5px;
  background: linear-gradient(
    180deg,
    rgba(186, 85, 211, 0.15) 0%,
    rgba(186, 85, 211, 0.05) 100%
  );
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
  margin: 14px 8px;
}

.card .photo{ 
  width: 100%;
  aspect-ratio: 2 / 1;     
  object-fit: cover;        
  border-bottom: 1px solid rgba(0,0,0,.05); 
  display: block; 
}

.card .body{ padding:12px 14px 0; }

.card .name{ margin:0 0 4px; font-size:17px;color: #ffffff;font-weight: 600; }

.card .meta{ font-size:14px; color: #ffffff; display:grid; gap:6px; }

.card .row{ display:flex; gap:8px; align-items:flex-start; }

.card .icon{ width:1.2em; text-align:center; opacity:.9; }

/* ========== 卡片按钮（拨打电话/开始导航） ========== */
.card .actions{
  display:flex; gap:10px; padding:12px 10px 14px;
  border-top:1px dashed rgba(0,0,0,.06); margin-top:10px; flex-wrap:wrap;
}

.btn{ 
  display: inline-block;
  padding: 6px 40px;      
  border-radius: 5px;
  text-decoration: none;
  font-weight: 400;
  font-size: 14px;        
  line-height: 1.2;       
}
  
.btn-primary{ background:#2563eb; color:#fff; }

.btn-outline{ background:#fff; color:#2563eb; border:1px solid #93c5fd; }

/* ========== 底部返回按钮 ========== */
.bottom-bar{
  position: fixed; left:0; right:0; bottom:0;
  display:flex; justify-content:center; gap:12px;
  padding: 10px calc(env(safe-area-inset-left) + 10px) calc(env(safe-area-inset-bottom) + 10px);
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.4) 40%, rgba(255,255,255,.50) 100%);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid rgba(255,255,255,.6);
}

.btn-text{ 
  color:#fff;
  padding:4px 8px;   
  font-weight:400;   
}

.bottom-bar { display: none; }

/* ========== 提示区 ========== */
.empty{ padding: 32px; text-align:center; color:#6b7280; }

#stat {
  font-size: 18px;     
  color: #ffffff;      
  font-weight: 400;    
  text-align: center;  
  margin: 0px 0;       
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.3); 
}

/* ========== 动效优化（低动效偏好用户） ========== */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior:auto !important; }
}