/* ============================================================
   Chengfa · 问卷大厅
   卡片网格：价格是主角，评级（印章）与星级（星号）分开表达
   ============================================================ */

/* ---------- 区块 ---------- */

.hl-sect { margin-top: clamp(28px, 3.4vw, 44px); }

/* 站长推荐紧接下面的全部问卷，不用再加一个大间隔 */
.hl-sect--feat + .hl-sect { margin-top: clamp(16px, 2vw, 24px); }

.hl-sect__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.hl-sect__k {
  font-family: var(--num);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--red);
}

.hl-sect__t {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: .01em;
}

.hl-sect__d {
  font-size: 12px;
  color: var(--gray);
}

/* ---------- 网格 ---------- */

.sv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

/* 推荐位通常只有两三张，拉伸铺满一行比留白好看 */
.hl-sect--feat .sv-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ---------- 卡片 ---------- */

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: 18px 18px 16px;
  border: 2px solid var(--ink);
  background: var(--paper);
  transition: box-shadow .14s ease, transform .14s ease;
}

.svc:hover {
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-1px, -1px);
}

/* 价格：视觉上的绝对主角 */
.svc__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.svc__pay {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.svc__pay b {
  font-family: var(--num);
  font-size: 56px;
  line-height: .84;
  color: var(--red);
  letter-spacing: .01em;
}

.svc__pay i {
  font-style: normal;
  font-family: var(--num);
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--ink);
}

/* 评级 + 星级：两个不同的东西，视觉上也要分开 */
.svc__rate {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  flex: none;
}

.svc__grade {
  font-family: var(--num);
  font-size: 17px;
  letter-spacing: .04em;
  min-width: 30px;
  padding: 4px 7px;
  border: 2px solid var(--ink);
  color: var(--ink);
  line-height: 1;
  text-align: center;
}

.svc__grade[data-grade="S"] {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
}

.svc__grade[data-grade="A"] {
  background: var(--ink);
  color: var(--paper);
}

.svc__stars {
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--red);
  white-space: nowrap;
}

.svc__stars .off { color: #C9C2B2; }

/* 标题与主题同一行：主题只是一个短标签，没必要单独占一整行 */
.svc__head {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 9px;
  margin-top: 13px;
}

.svc__t {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: .01em;
}

/* 问卷商：图标 + 名字，耗时靠右 */
.svc__prov {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--paper-2);
}

.svc__prov-ico {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.svc__prov-name {
  min-width: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.svc__prov-time {
  flex: none;
  margin-left: auto;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--gray);
}

.svc__done {
  flex: none;
  padding: 1px 7px;
  border: 1px solid var(--paper-2);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--gray);
}

/* 主题：短标签，与标题同行 */
.svc__topic {
  flex: none;
  margin-top: 1px;
  padding: 2px 8px;
  border: 1px solid var(--ink);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink);
  line-height: 1.5;
}

/* 要求：没有就整行不渲染 */
.svc__req {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 11px 0 0;
  padding-left: 9px;
  border-left: 3px solid var(--red);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink);
}

.svc__req em {
  font-style: normal;
  color: var(--gray);
  margin-right: 5px;
}

/* 入口：卡片内次要元素，不做成大红块；底栏吃掉剩余空间，按钮永远贴底 */
.svc__foot {
  margin-top: auto;
  padding-top: 16px;
}

.svc__go {
  padding-top: 13px;
  border-top: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink);
  transition: color .14s ease;
}

.svc__go-arrow {
  font-size: 15px;
  line-height: 1;
  color: var(--red);
  transition: transform .16s ease;
}

.svc__go:hover { color: var(--red); }
.svc__go:hover .svc__go-arrow { transform: translateX(4px); }

.svc__go.is-dead {
  border-top-color: var(--paper-2);
  color: var(--gray);
  cursor: not-allowed;
  pointer-events: none;
}

/* 网络受限：照样能点（点了会说清原因并报给服务端），只是先降调 */
.svc__go.is-net {
  border-top-color: var(--paper-2);
  color: var(--gray);
}

.svc__go.is-net:hover { color: var(--ink); }

/* 推荐位 */
.svc--feat {
  padding-top: 34px;
  border-color: var(--red);
  box-shadow: 6px 6px 0 rgba(var(--red-rgb), .16);
}

.svc--feat:hover { box-shadow: 8px 8px 0 rgba(var(--red-rgb), .3); }

.svc__flag {
  position: absolute;
  top: -2px;
  right: -2px;
  padding: 4px 9px;
  background: var(--red);
  color: var(--paper);
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: .14em;
  line-height: 1;
}

/* ---------- 窄屏 ---------- */

@media (max-width: 480px) {
  .sv-grid { grid-template-columns: 1fr; gap: 14px; }
  .svc { min-height: 188px; padding: 16px 15px 14px; }
  .svc__pay b { font-size: 46px; }
  .svc__grade { font-size: 15px; min-width: 26px; }
  .svc__t { font-size: 15px; }
}

/* ---------- 双栏：左边问卷列表，右边平台入口 ---------- */

/* 右栏不参与文档流：它一参与，网格就会把它那 396px 的高度摊到标题和筛选行上，
   左列被撑出一大片空白。改成绝对定位，左列只让出宽度，行高照旧由内容决定。 */
.hl-lay {
  --aside-w: clamp(268px, 23vw, 320px);
  --aside-gap: clamp(20px, 2.6vw, 36px);
  position: relative;
}

@media (min-width: 941px) {
  .hl-lay { padding-right: calc(var(--aside-w) + var(--aside-gap)); }

  .hl-lay > .hl-aside {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--aside-w);
  }
}

.hl-aside__k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--gray);
}

.hl-aside__t {
  margin: 7px 0 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.3;
}

.hl-aside__d {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--gray);
}

/* ---------- 平台卡片：横向长方形，宽大于高 ---------- */

.plat {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  padding: 13px 14px 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  transition: box-shadow .14s ease, transform .14s ease;
}

.plat:hover {
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.plat__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plat__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--num);
  font-size: 14px;
  letter-spacing: .06em;
  line-height: 1;
}

.plat__tag {
  padding: 3px 7px;
  border: 2px solid var(--ink);
  font-family: var(--num);
  font-size: 10px;
  letter-spacing: .1em;
  line-height: 1;
  white-space: nowrap;
}

.plat__t {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.2;
}

.plat__d {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--gray);
}

/* 报酬与耗时并成一行，卡片才能压矮 */
.plat__meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 7px;
  margin: 9px 0 0;
  padding-top: 9px;
  border-top: 1px solid var(--paper-2);
}

.plat__meta b {
  font-family: var(--num);
  font-size: 13px;
  letter-spacing: .03em;
  color: var(--ink);
  white-space: nowrap;
}

.plat__meta i {
  font-style: normal;
  font-size: 11px;
  color: var(--gray);
}

.plat__go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding-top: 10px;
  border-top: 2px solid var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: color .14s ease;
}

.plat__arrow {
  font-size: 15px;
  line-height: 1;
  color: var(--red);
  transition: transform .16s ease;
}

.plat:hover .plat__go { color: var(--red); }
.plat:hover .plat__arrow { transform: translateX(4px); }


/* ---------- 左列问卷排三列 ---------- */

/* 大厅这里要的是「一眼看到货架」，所以桌面上钉死三列，而不是让 auto-fill 自己数 */
.hl-main .sv-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 右栏还在、左列只剩 660 出头时，三列每列 210，价格那行会挤，退回两列 */
@media (min-width: 941px) and (max-width: 1100px) {
  .hl-main .sv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 手机一列，卡片才有地方把价格和标题摆开 */
@media (max-width: 560px) {
  .hl-main .sv-grid { grid-template-columns: 1fr; }
}

/* ---------- 窄屏：右栏折回文档流，卡片限宽 ---------- */

@media (max-width: 940px) {
  .hl-aside { margin-top: clamp(22px, 3vw, 30px); }
  .plat { max-width: 400px; }
  .hl-aside__d { max-width: 420px; }
}

@media (max-width: 640px) {
  .plat { padding: 13px 14px 11px; }
  .plat__mark { width: 34px; height: 34px; font-size: 13px; }
  .plat__t { margin-top: 10px; font-size: 16px; }
}

/* 推荐位通常只有两三张：让它按内容数自动铺满，别在第三格留个空洞 */
.hl-main .hl-sect--feat .sv-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
