/* ============================================================
   資源對接 — 頁面專屬樣式
   依賴 style.css（代幣）與 club.css（俱樂部子頁共用層）
   ============================================================ */

/* 頁首與分頁之間留白收緊：頁首底部與內容頂部原本各吃一個 --pad-lg */
.sub-head:has(+ .sub-body) { padding-bottom: clamp(28px, 3.4vw, 48px); }
.sub-head + .sub-body { padding-top: clamp(16px, 2vw, 28px); }

.rpanel[hidden] { display: none; }

.rbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.rbar__count { opacity: .5; }
.rbar__right { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

/* ============ 投資人名錄 ============ */
.invgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
}
@media (max-width: 1100px) { .invgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .invgrid { grid-template-columns: 1fr; } }

.invcard {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px 20px;
  border: 1px dashed var(--line-on-dark);
  background: var(--c-surface);
  transition: border-color .35s, transform .35s var(--ease-power4);
}
.invcard:hover { border-color: rgba(210, 160, 110, .5); transform: translateY(-4px); }
.invcard:hover .handle { transform: scale(1.35); }

.invcard__top { display: flex; align-items: flex-start; gap: 13px; }
.invcard__avatar {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-accent);
  border: 1px solid rgba(210, 160, 110, .6);
  background: linear-gradient(150deg, rgba(210, 160, 110, .22), rgba(210, 160, 110, .05));
  box-shadow: 0 0 0 4px rgba(210, 160, 110, .06);
}
.invcard__id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.invcard__name { font-size: 16px; font-weight: 500; line-height: 1.4; }
.invcard__kind {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
}
.invcard__kind--org { background: rgba(140, 169, 191, .16); color: #9DB8CB; }
.invcard__kind--person { background: rgba(210, 160, 110, .14); color: var(--c-accent); }

.invcard__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.invcard__facts { display: flex; flex-direction: column; }
.invcard__facts div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-on-dark);
  font-size: 12.5px;
}
.invcard__facts div:last-child { border-bottom: none; }
.invcard__facts dt { opacity: .5; }
.invcard__facts dd { font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em; text-align: right; }
.invcard__facts dd b { color: var(--c-accent); font-size: 13px; }

.invcard__foot { margin-top: auto; padding-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.actlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-accent);
  transition: gap .3s var(--ease-power4), color .25s;
}
.actlink:hover { gap: 14px; color: #E6BC8E; }
.invcard__last { font-family: var(--mono); font-size: 10px; opacity: .35; }

/* 名錄隱私開關 */
.privacy {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  padding: 16px 18px;
  margin-bottom: 20px;
  border: 1px dashed var(--line-on-dark);
  background: rgba(247, 247, 247, .02);
}
.privacy__text { font-size: 13px; opacity: .55; max-width: 560px; line-height: 1.7; }
.privacy__state { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; margin-left: auto; opacity: .5; }
.privacy__state.is-hidden { color: var(--c-accent); opacity: 1; }

/* ============ 產業資源庫 / 服務機構 ============ */
.resgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
}
@media (max-width: 860px) { .resgrid { grid-template-columns: 1fr; } }

.rescard {
  position: relative;
  display: flex; flex-direction: column; gap: 13px;
  padding: 24px 22px;
  border: 1px dashed var(--line-on-dark);
  background: var(--c-surface);
  transition: border-color .35s;
}
.rescard:hover { border-color: rgba(210, 160, 110, .5); }
.rescard:hover .handle { transform: scale(1.35); }
.rescard__top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.rescard__name { font-size: 17px; font-weight: 500; flex: 1; }
.rescard__desc { font-size: 13.5px; font-weight: 300; opacity: .66; line-height: 1.75; }
.rescard__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rescard__case {
  padding: 12px 14px;
  border-left: 1px dashed rgba(210, 160, 110, .5);
  background: rgba(210, 160, 110, .05);
  font-size: 13px;
  font-weight: 300;
  opacity: .72;
  line-height: 1.75;
}
.rescard__case b { color: var(--c-accent); font-weight: 500; }
.rescard__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line-on-dark);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.rescard__meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; opacity: .45; }
.rescard__meta b { color: var(--c-accent); font-weight: 700; }

/* ============ 我的對接 ============ */
.mcase { position: relative; }
.mcase + .mcase { margin-top: clamp(16px, 1.8vw, 22px); }
.mcase__head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--line-on-dark);
}
.mcase__id { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--c-accent); }
.mcase__target { font-size: 17px; font-weight: 500; }
.mcase__state {
  margin-left: auto;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}
.mcase__state--run { background: rgba(210, 160, 110, .16); color: var(--c-accent); }
.mcase__state--done { background: rgba(157, 185, 140, .14); color: #A9C497; }
.mcase__state--miss { background: rgba(247, 247, 247, .07); color: rgba(247, 247, 247, .5); }
.mcase__brief {
  margin-bottom: 20px;
  font-size: 13.5px;
  font-weight: 300;
  opacity: .62;
  line-height: 1.75;
}
.mcase__brief b { color: var(--c-text); font-weight: 500; opacity: .9; }
.mcase__foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-on-dark);
  display: flex; flex-wrap: wrap; gap: 14px 22px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  opacity: .45;
}

/* ============ 發起對接表單 ============ */
.mform__target {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 15px;
  border: 1px dashed rgba(210, 160, 110, .5);
  background: rgba(210, 160, 110, .07);
  font-size: 13.5px;
}
.mform__target b { color: var(--c-accent); font-weight: 500; }
.mform__target .linkbtn { margin-left: auto; }

.linkbtn {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(247, 247, 247, .55);
  transition: color .25s;
}
.linkbtn:hover { color: var(--c-accent); }

.mdone { display: flex; flex-direction: column; gap: 16px; }
.mdone__top { display: flex; align-items: center; gap: 14px; }
.mdone__check {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-accent);
  color: #16120F;
  flex: none;
}
.mdone__check svg { width: 18px; height: 18px; }
.mdone__title { font-size: 18px; font-weight: 500; }
.mdone__sub { font-size: 12.5px; opacity: .5; margin-top: 2px; }
.mdone__rows { display: flex; flex-direction: column; }
.mdone__rows div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-on-dark);
  font-size: 13.5px;
}
.mdone__rows div:last-child { border-bottom: none; }
.mdone__rows dt { opacity: .5; }
.mdone__rows dd { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-align: right; }
.mdone__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

@media (prefers-reduced-motion: reduce) {
  .invcard, .rescard { transition: none; }
}
