/**
 * 医院四个子页的样式：评价列表 / 案例列表 / 案例详情 / 全部项目。
 *
 * 全部照 uni-app 原站的 scoped SCSS 换算而来（375 视口下 1rpx = 0.5px）：
 *   subPackages_lightningRod/commentList/commentList.vue  → .comment-list-page
 *   subPackages_lightningRod/case/list.vue + components/waterfall.vue → .page-list
 *   subPackages_lightningRod/case/case.vue                → .case-page
 *   pages/project/project.vue                             → .allproject-page
 *
 * ⚠ 原站这些样式都是 scoped 的，类名（.body/.title/.list/.tag/.avatar/.star-rating/
 *   .case-bottom/.column/.image…）和详情页、列表页大面积重名。这里没有 scoped，
 *   所以**每一条都必须挂在页面级容器下**，否则会污染全站。
 *   页面级容器加在原有元素上（如 <div class="body case-page">），
 *   这样 .body 本身仍然存在，和老站的类名清单对得上。
 */

/* ══════════ ① 评价列表 /hospital/{slug}/commentlist ══════════ */
.comment-list-page {
  padding: round(down, calc(10 * var(--px)), 1px);
  background-color: #f5f5f5;
  min-height: 100vh;
}
.comment-list-page .tags {
  width: 100%;
  padding: round(down, calc(7 * var(--px)), 1px) 0;   /* 15rpx，老站实测渲染成 7 不是 7.5 */
  white-space: nowrap;
  box-sizing: border-box;
  margin-bottom: round(down, calc(5 * var(--px)), 1px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.comment-list-page .tags::-webkit-scrollbar { display: none; }
.comment-list-page .tags .tag {
  display: inline-block;
  border-radius: round(down, calc(5 * var(--px)), 1px);
  padding: round(down, calc(3 * var(--px)), 1px) round(down, calc(5 * var(--px)), 1px);
  font-size: round(down, calc(11 * var(--px)), 1px);
  margin-right: round(down, calc(10 * var(--px)), 1px);
  white-space: nowrap;
}
/* 原站给每个标签都加了 tag-active（v-for 里写死的），没有未选中态 */
.comment-list-page .tags .tag-active {
  border: 1px solid #8880fe;
  color: #8880fe;
  background: #e9e7ff;
}
.comment-list-page .tags .tag-block { width: round(down, calc(28 * var(--px)), 1px); display: inline-block; }

.comment-list-page .comment-list {
  background: #ffffff;
  border-radius: round(down, calc(10 * var(--px)), 1px);
  padding: round(down, calc(10 * var(--px)), 1px);
}
.comment-list-page .comment-item {
  border-bottom: 1px solid #f1f1f1;
  padding-bottom: round(down, calc(10 * var(--px)), 1px);
  margin-bottom: round(down, calc(10 * var(--px)), 1px);
}
.comment-list-page .comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: round(down, calc(5 * var(--px)), 1px);
}
/* 原站是 .comment-header > view，头像和昵称并排 */
.comment-list-page .comment-header > div { display: flex; flex-direction: row; }
.comment-list-page .comment-header .avatar {
  width: round(down, calc(20 * var(--px)), 1px); height: round(down, calc(20 * var(--px)), 1px);
  border-radius: 50%;
  margin-right: round(down, calc(10 * var(--px)), 1px);
  object-fit: cover;
  flex-shrink: 0;
}
.comment-list-page .comment-header .username {
  display: flex;
  align-items: center;
  font-size: round(down, calc(10 * var(--px)), 1px);
  color: #8c8c8c;
}
.comment-list-page .comment-header .google-icon {
  width: round(down, calc(12 * var(--px)), 1px); height: round(down, calc(12 * var(--px)), 1px);
  margin-left: round(down, calc(4 * var(--px)), 1px);
  object-fit: contain;
}
/* .ios-action 在 H5 上只剩 toggleLang 一个按钮，实测 41x28 —— 尺寸由
   .language-togle 决定（见 app.css），这里只管定位。 */
.comment-list-page .comment-header .ios-action {
  display: flex; align-items: center; flex-shrink: 0;
  font-size: round(down, calc(10 * var(--px)), 1px); color: #fd83ab;
}

.comment-list-page .star-rating { display: flex; align-items: center; margin-bottom: round(down, calc(5 * var(--px)), 1px); }
.comment-list-page .star-rating .stars { display: flex; align-items: center; }
.comment-list-page .star-rating .star { font-size: round(down, calc(12 * var(--px)), 1px); color: #ddd; margin-right: round(down, calc(2 * var(--px)), 1px); }
.comment-list-page .star-rating .star.active { color: #ffb800; }
.comment-list-page .star-rating .rating-num { font-size: round(down, calc(11 * var(--px)), 1px); color: #999; margin-left: round(down, calc(5 * var(--px)), 1px); }

.comment-list-page .comment-content { font-size: round(down, calc(12 * var(--px)), 1px); color: #333333; margin-bottom: round(down, calc(5 * var(--px)), 1px); }
.comment-list-page .comment-images { display: flex; flex-wrap: wrap; }
.comment-list-page .comment-images img,
.comment-list-page .comment-images video {
  width: round(down, calc(105 * var(--px)), 1px); height: round(down, calc(105 * var(--px)), 1px);
  border-radius: round(down, calc(5 * var(--px)), 1px);
  margin-right: round(down, calc(5 * var(--px)), 1px);
  margin-bottom: round(down, calc(5 * var(--px)), 1px);
  border: 1px solid #eaeaea;
  object-fit: cover;
}

/* ══════════ ② 案例列表 /hospital/{slug}/caselist（双列瀑布流） ══════════ */
.page-list {
  min-height: 100vh;
  background-color: #f5f5f5;
  box-sizing: border-box;
  padding: round(down, calc(8 * var(--px)), 1px) round(down, calc(12 * var(--px)), 1px);
}
.page-list .waterfall-container { display: flex; justify-content: space-between; }
.page-list .waterfall-container > .column:first-child { margin-right: round(down, calc(8 * var(--px)), 1px); }
.page-list .column { flex: 1; width: calc(50% - round(down, calc(8 * var(--px)), 1px)); min-width: 0; }
.page-list .column-box {
  border-radius: round(down, calc(10 * var(--px)), 1px);
  overflow: hidden;
  margin-bottom: round(down, calc(8 * var(--px)), 1px);
}
/* 两张图时并排，各占一半（原站 flex-row + image{width:100%} 收缩的结果） */
.page-list .img-box { display: flex; flex-direction: row; }
.page-list .image { width: 100%; }
.page-list .long { height: round(down, calc(210 * var(--px)), 1px); }
.page-list .short { height: round(down, calc(110 * var(--px)), 1px); }
.page-list .img-box img { width: 100%; height: 100%; object-fit: cover; min-width: 0; }
.page-list .case-bottom {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #fff;
  padding: round(down, calc(5 * var(--px)), 1px) round(down, calc(10 * var(--px)), 1px);
}
/* ⚠ 原站 SCSS 写的是 24rpx（=12px），但**实测渲染出来是 13px** ——
   里面是 <rich-text>，后端富文本自带字号。以实测为准。 */
.page-list .case-title {
  color: inherit;
  text-decoration: none;
  font-size: round(down, calc(13 * var(--px)), 1px);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: round(down, calc(11 * var(--px)), 1px);
}
.page-list .case-user { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; }
.page-list .case-user img {
  width: round(down, calc(20 * var(--px)), 1px); height: round(down, calc(20 * var(--px)), 1px);
  border-radius: 50%;
  border: 1px solid #ccc;
  margin-right: round(down, calc(7 * var(--px)), 1px);
  object-fit: cover;
  flex-shrink: 0;
}
.page-list .case-user span { font-size: round(down, calc(12 * var(--px)), 1px); color: #afafaf; }
.page-list .loading-more { text-align: center; font-size: round(down, calc(12 * var(--px)), 1px); color: #999; padding: round(down, calc(12 * var(--px)), 1px) 0; width: 100%; }

/* ══════════ ③ 案例详情 /hospital/{slug}/case/{id} ══════════ */
/* ⚠ hospital-detail.css 的 .body 留了 padding-bottom:95px 给底部固定按钮条，
   案例详情 / 全部项目这两页没有按钮条，要清掉。 */
.body.case-page { background-color: #fff; min-height: 100vh; padding-bottom: 0; }
/* 原站 H5 分支：height 0 + padding-bottom 100%，即 1:1 正方形 */
.case-page .swiper-body { position: relative; width: 100%; height: 0; padding-bottom: 100%; }
.case-page .swiper {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.case-page .swiper::-webkit-scrollbar { display: none; }
.case-page .swiper-item { width: 100%; height: 100%; position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.case-page .swiper-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-page .current {
  position: absolute;
  right: round(down, calc(10 * var(--px)), 1px); bottom: round(down, calc(24 * var(--px)), 1px);
  background: rgba(51, 51, 51, 0.5);
  border-radius: round(down, calc(10 * var(--px)), 1px);
  padding: round(down, calc(3 * var(--px)), 1px) round(down, calc(7 * var(--px)), 1px);
  font-size: round(down, calc(12 * var(--px)), 1px);
  color: #ffffff;
  display: flex;
  align-items: center;
  z-index: 2;
}
/* ⚠ hospital-detail.css 里有一条 `.title { padding:10px }`，会把这里的
   .title-name 从 355 压到 335。这一页的 .title 原站没有 padding。 */
.case-page .title { margin: round(down, calc(12 * var(--px)), 1px) round(down, calc(10 * var(--px)), 1px) 0; padding: 0; background: none; }
.case-page .title-name {
  font-size: round(down, calc(14 * var(--px)), 1px);
  font-weight: 400;   /* 实测 400；不写会被别处的 .title-name 加粗成 600 */
  color: #333333;
  background: #fff;
  padding: round(down, calc(10 * var(--px)), 1px);
  border-top: round(down, calc(2 * var(--px)), 1px) solid #afa7ef;
  border-left: round(down, calc(2 * var(--px)), 1px) solid #afa7ef;
  border-right: round(down, calc(2 * var(--px)), 1px) solid #afa7ef;
  border-top-left-radius: round(down, calc(10 * var(--px)), 1px);
  border-top-right-radius: round(down, calc(10 * var(--px)), 1px);
}
.case-page .title-detail {
  display: block;   /* <a> 默认 inline，会缩成内容宽（实测 112 vs 应有的 355） */
  text-decoration: none;
  font-size: round(down, calc(14 * var(--px)), 1px);
  background: #fff;
  color: #afa7ef;
  padding-left: round(down, calc(10 * var(--px)), 1px);
  padding-bottom: round(down, calc(10 * var(--px)), 1px);
  border-left: round(down, calc(2 * var(--px)), 1px) solid #afa7ef;
  border-right: round(down, calc(2 * var(--px)), 1px) solid #afa7ef;
}
.case-page .title-info {
  background: #afa7ef;
  font-size: round(down, calc(10 * var(--px)), 1px);
  color: #fff;
  padding: round(down, calc(7 * var(--px)), 1px) 0;
  text-align: center;
  margin: 0 round(down, calc(10 * var(--px)), 1px);
  border-bottom-left-radius: round(down, calc(10 * var(--px)), 1px);
  border-bottom-right-radius: round(down, calc(10 * var(--px)), 1px);
}
/* 富文本区。实测正文 13px —— 不设的话浏览器默认 16px，比老站大一号。 */
.case-page .case-detail { background: #ffffff; padding: round(down, calc(12 * var(--px)), 1px); margin-top: round(down, calc(12 * var(--px)), 1px); font-size: round(down, calc(13 * var(--px)), 1px); }
.case-page .case-detail img { max-width: 100%; height: auto; display: block; }

/* ══════════ ④ 全部项目 /hospital/{slug}/allproject ══════════ */
.body.allproject-page {
  min-height: 100vh;
  background-color: #f5f5f5;
  box-sizing: border-box;
  padding: round(down, calc(15 * var(--px)), 1px) 0 0;   /* 同上：清掉详情页那条 padding-bottom:95px */
}
.allproject-page .detail {
  width: 100%;
  min-height: calc(100vh - round(down, calc(15 * var(--px)), 1px));
  background: #ffffff;
  border-radius: round(down, calc(15 * var(--px)), 1px) round(down, calc(15 * var(--px)), 1px) 0 0;
  box-sizing: border-box;
  padding: round(down, calc(12 * var(--px)), 1px) round(down, calc(10 * var(--px)), 1px);
}
.allproject-page .detail-list { display: flex; justify-content: space-between; flex-wrap: wrap; }
/**
 * 原站 .list 是 348rpx 定宽 = 375 视口下 174px，两列之间余 7px。
 * 用 calc(50% - 3.5px)：375 下算出来正好 174px，桌面 750 容器下自动撑满，
 * 不会像定宽那样在中间留一大条空白。
 */
.allproject-page .list {
  margin-bottom: round(down, calc(15 * var(--px)), 1px);
  flex-shrink: 0;
  width: calc(50% - round(down, calc(3.5 * var(--px)), 1px));
  font-size: round(down, calc(12 * var(--px)), 1px);
  color: #333333;
}
.allproject-page .list a { color: inherit; display: block; }
.allproject-page .list img {
  width: 100%;
  aspect-ratio: 348 / 232;
  border-radius: round(down, calc(7 * var(--px)), 1px);
  margin-bottom: round(down, calc(7 * var(--px)), 1px);
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   .nologin —— 原站 waterfall / case 详情对**未登录用户**的案例图做高斯模糊
   （computed isLogin：uni.getStorageSync('user').phone 有值才算登录）。
   SSR 渲染时不知道登录态（也绝不能知道，渲染结果会进 swr 缓存发给所有人），
   所以这个类由客户端 hydration 后按 localStorage 挂上，见 plugins/nologin.client.ts。
   ========================================================================== */
.nologin { filter: blur(round(down, calc(10 * var(--px)), 1px)); }

/* ══════════ ⑤ 价格明细 /hospital/{slug}-price ══════════
   照 subPackages_lightningRod/hospitalPrice/hospitalPrice.vue 的 SCSS 换算。
   容器上限跟全站走（--page-max，实测老站就是 640）。 */
.PriceListItem {
  max-width: var(--page-max, round(down, calc(640 * var(--px)), 1px));
  margin: 0 auto;
  background-color: #f6f6f6;
  min-height: 100vh;
}
.PriceListItem-box {
  width: 100%;
  padding: round(down, calc(20 * var(--px)), 1px) round(down, calc(7 * var(--px)), 1px) round(down, calc(15 * var(--px)), 1px) round(down, calc(12 * var(--px)), 1px);
  background: #ffffff;
  border-radius: round(down, calc(10 * var(--px)), 1px);
  box-sizing: border-box;
}
.PriceListItem-box-item { display: flex; align-items: center; justify-content: space-between; }
.PriceListItem-box-item-name {
  display: flex; align-items: center;
  font-size: round(down, calc(18 * var(--px)), 1px); font-weight: 600; color: #1b1b1b;
}
.PriceListItem-box-item-name .same-price-tag {
  margin-left: round(down, calc(6 * var(--px)), 1px);
  padding: round(down, calc(2 * var(--px)), 1px) round(down, calc(6 * var(--px)), 1px);
  font-size: round(down, calc(10 * var(--px)), 1px); font-weight: 400;
  color: #ff9ac3;
  background: linear-gradient(135deg, #fff0f6 0%, #ffe5f0 100%);
  border: 1px solid #ff9ac3;
  border-radius: round(down, calc(4 * var(--px)), 1px);
  line-height: 1.4;
}
.PriceListItem-box-text {
  font-size: round(down, calc(12 * var(--px)), 1px); font-weight: 300; color: #aaaaaa;
  margin-top: round(down, calc(5 * var(--px)), 1px);
}

.download-btn-container {
  width: 100%;
  padding: round(down, calc(10 * var(--px)), 1px) round(down, calc(12 * var(--px)), 1px);
  background-color: #fff;
  display: flex; justify-content: center;
}
.download-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: round(down, calc(8 * var(--px)), 1px) round(down, calc(16 * var(--px)), 1px);
  background: #ff9ac3;
  border: 0; border-radius: round(down, calc(20 * var(--px)), 1px);
  box-shadow: 0 round(down, calc(3 * var(--px)), 1px) round(down, calc(5 * var(--px)), 1px) 1px #ffb1d1;
  cursor: pointer;
  font-family: inherit;
}
.download-btn .download-icon { font-size: round(down, calc(16 * var(--px)), 1px); color: #fff; margin-right: round(down, calc(4 * var(--px)), 1px); font-weight: bold; }
.download-btn .download-text { font-size: round(down, calc(14 * var(--px)), 1px); color: #fff; font-weight: 500; }

.PriceListItem .u-content {
  width: 100%;
  margin-top: round(down, calc(10 * var(--px)), 1px);
  padding-bottom: round(down, calc(100 * var(--px)), 1px);   /* 给底部固定按钮条让位 */
  box-sizing: border-box;
  position: relative;
  background: #fff;
}
.PriceListItem .u-content img { max-width: 100%; height: auto; display: block; }

.PriceListItem .bottomNav {
  position: fixed; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: var(--page-max, round(down, calc(640 * var(--px)), 1px));
  display: flex; align-items: center; justify-content: center;
  background-color: #fff;
  box-sizing: border-box;
  padding: 0 round(down, calc(10 * var(--px)), 1px);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -1px round(down, calc(4 * var(--px)), 1px) 1px rgba(0, 0, 0, 0.1);
  z-index: 55;
}
/* ⚠ 只有上边距（老站 margin-top:20rpx，没有 margin-bottom）——
   多一条下边距会让整条 bottomNav 从 54 涨到 64。 */
.PriceListItem .bottomNav-item {
  display: flex; width: 100%;
  margin-top: round(down, calc(10 * var(--px)), 1px);
  align-items: center; justify-content: space-around;
  gap: round(down, calc(10 * var(--px)), 1px);
}
.PriceListItem .bottomNav-item-left {
  width: round(down, calc(170 * var(--px)), 1px); height: round(down, calc(44 * var(--px)), 1px);
  background: #fff;
  border-radius: round(down, calc(30 * var(--px)), 1px);
  border: 1px solid #ff9ac3;
  font-size: round(down, calc(15 * var(--px)), 1px); font-weight: 400; color: #ff9ac3;
  text-align: center; line-height: round(down, calc(44 * var(--px)), 1px);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
}
.PriceListItem .bottomNav-item-consult {
  background: #00c853; border: none; color: #ffffff;
  box-shadow: 0 0 round(down, calc(10 * var(--px)), 1px) rgba(0, 200, 83, 0.6);
}
.PriceListItem .bottomNav-item-consult .custom-icon-kefu1 { margin-right: round(down, calc(5 * var(--px)), 1px); font-size: round(down, calc(16 * var(--px)), 1px); }
.PriceListItem .bottomNav-item-right {
  width: round(down, calc(170 * var(--px)), 1px); height: round(down, calc(44 * var(--px)), 1px);
  text-align: center; line-height: round(down, calc(44 * var(--px)), 1px);
  background: #ff9ac3;
  box-shadow: 0 round(down, calc(3 * var(--px)), 1px) round(down, calc(5 * var(--px)), 1px) 1px #ffb1d1;
  border-radius: round(down, calc(30 * var(--px)), 1px);
  font-size: round(down, calc(15 * var(--px)), 1px); font-weight: 400; color: #ffffff;
  position: relative; flex-shrink: 0;
  text-decoration: none;
}
.PriceListItem .bottomNav-item-right .orderpoint {
  position: absolute; top: -10px; left: 46%;
  transform: translateX(-50%);
  min-width: round(down, calc(90 * var(--px)), 1px); height: round(down, calc(20 * var(--px)), 1px); padding: 0 round(down, calc(6 * var(--px)), 1px);
  background: linear-gradient(270deg, #fd6a69 0%, #fe2c39 100%);
  border-radius: round(down, calc(10 * var(--px)), 1px) round(down, calc(10 * var(--px)), 1px) round(down, calc(10 * var(--px)), 1px) round(down, calc(3 * var(--px)), 1px);
  font-weight: 400; font-size: round(down, calc(10 * var(--px)), 1px); color: #ffffff;
  text-align: center; line-height: round(down, calc(20 * var(--px)), 1px); white-space: nowrap;
}

/* 没有价格表时的整屏引导 */
.PriceListItem .img {
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  margin-bottom: round(down, calc(25 * var(--px)), 1px);
  background: url('https://beautsgoimg.59w.net/20250630143329/68622fb9dfd98.png');
  background-size: cover; background-position: center;
  width: 100%; min-height: 100vh;
}
.PriceListItem .code-text { margin-top: -50px; }
.PriceListItem .code-text > div { font-size: round(down, calc(16 * var(--px)), 1px); color: #4b4b4b; text-align: center; }
.PriceListItem .code-text > div:first-child { font-size: round(down, calc(22 * var(--px)), 1px); margin-bottom: round(down, calc(10 * var(--px)), 1px); }
.PriceListItem .wx-code {
  margin-top: round(down, calc(20 * var(--px)), 1px); width: 100%;
  display: flex; justify-content: center; align-items: center;
}
.PriceListItem .wx-code img { width: round(down, calc(175 * var(--px)), 1px); height: round(down, calc(175 * var(--px)), 1px); display: block; }
.PriceListItem .wx-btn {
  margin-top: round(down, calc(20 * var(--px)), 1px); width: 80%;
  border-radius: round(down, calc(20 * var(--px)), 1px); height: round(down, calc(40 * var(--px)), 1px); line-height: round(down, calc(40 * var(--px)), 1px);
  color: #fff; font-size: round(down, calc(16 * var(--px)), 1px);
  background: linear-gradient(to right, #8e73f9, #e5a5f8);
  text-align: center;
}
