/* 德泽升辉制冷 - Web版全局样式 */

:root {
  --primary: #0A4D8C;
  --primary-light: #E8F1FA;
  --accent: #1A73C7;
  --text-main: #1A1A1A;
  --text-sub: #5A6577;
  --bg-page: #F5F7FA;
  --white: #FFFFFF;
  --radius: 8px;
  --shadow: 0 1px 6px rgba(10, 77, 140, 0.06);
}

/* rpx 转换 (750px = 100vw, 1px = 0.01333rem) */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.6;
  max-width: 750px;
  margin: 0 auto;
}

/* 工具类 */
.page { padding-bottom: 30px; }
.card {
  background: var(--white);
  border-radius: 10px;
  padding: 15px;
  margin: 10px;
  box-shadow: var(--shadow);
}
.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-title.inline { margin-top: 5px; }
.empty {
  text-align: center;
  padding: 30px;
  color: var(--text-sub);
  font-size: 14px;
}

/* 按钮 */
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 15px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.btn-primary:hover { background: var(--accent); }
.btn-outline {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 15px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.btn-outline:hover { background: var(--primary-light); }

/* 表单 */
.form-label {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}
.form-label.required::after {
  content: ' *';
  color: #E5484D;
}
.form-input, .form-textarea {
  width: 100%;
  background: var(--bg-page);
  border-radius: 6px;
  padding: 10px;
  font-size: 13.5px;
  border: none;
  margin-bottom: 12px;
}
.form-textarea {
  min-height: 70px;
  resize: vertical;
}

/* 选项 */
.option-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.option {
  padding: 6px 15px;
  border-radius: 15px;
  background: var(--bg-page);
  color: var(--text-sub);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.option-active {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary);
  font-weight: 600;
}

/* 导航栏 */
.nav-bar {
  background: var(--primary);
  color: var(--white);
  padding: 10px 15px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* 底部导航 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 750px;
  background: var(--white);
  display: flex;
  border-top: 1px solid #E0E0E0;
  z-index: 100;
}
.nav-item {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  color: #8A94A6;
  cursor: pointer;
  text-decoration: none;
}
.nav-item.active {
  color: var(--primary);
}
.nav-item .icon { font-size: 20px; }
.nav-item .label { font-size: 11px; margin-top: 2px; }

/* 轮播图 */
.banner {
  height: 180px;
  overflow: hidden;
}
.banner-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.banner-placeholder {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
}

/* 案例卡片 */
.case-card {
  width: calc(50% - 5px);
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  margin: 5px;
  box-shadow: var(--shadow);
}
.case-card .case-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}
.case-card .case-info {
  padding: 8px;
}
.case-card .case-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.case-card .case-scene {
  font-size: 11px;
  color: var(--text-sub);
}

/* 响应式 */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .card { margin: 15px; padding: 20px; }
}

/* 案例库场景筛选 */
.scene-bar {
  white-space: nowrap;
  padding: 10px 6px;
  background: var(--white);
  overflow-x: auto;
}
.scene-item {
  display: inline-block;
  padding: 6px 16px;
  margin: 0 4px;
  border-radius: 16px;
  font-size: 13px;
  color: var(--text-sub);
  background: var(--bg-page);
  cursor: pointer;
}
.scene-active {
  background: var(--primary);
  color: var(--white);
}

/* 常驻报价浮动按钮 */
.quote-float {
  position: fixed;
  right: 15px;
  bottom: 60px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(10, 77, 140, 0.35);
  z-index: 10;
  cursor: pointer;
}

/* 案例列表（两列） */
.case-list {
  display: flex;
  flex-wrap: wrap;
  padding: 5px;
}

/* 导航栏标题 */
.title { font-size: 17px; font-weight: 700; color: var(--primary); }
.scene-tag { color: var(--text-sub); margin-top: 4px; }
.desc { margin-top: 6px; line-height: 1.7; }
.render-note { font-size: 11px; color: var(--text-sub); margin-top: 6px; }
.rs-row { display: flex; justify-content: space-between; padding: 5px 0; font-weight: 600; }
.rs-desc { font-size: 12px; color: var(--text-sub); line-height: 1.6; }
.rs-eg { font-size: 11px; color: var(--text-sub); margin-top: 4px; }
.rs-btn { margin-top: 8px; }
.footer-bar { padding: 10px; }
.footer-btn { flex: 1; }

