/* 我的家人（家庭群和家庭相册，ADR-0198）：照第一页 home.css 的颜色、圆角、卡片，暖一点、可爱一点 */

.fh-block .section {
  margin-top: 24px;
}

.fh-cards {
  display: grid;
  gap: 10px;
}

.fh-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(26, 24, 20, 0.04), 0 6px 18px rgba(26, 24, 20, 0.04);
}

.fh-card:active {
  transform: scale(0.985);
}

.fh-card-text {
  flex: 1;
  min-width: 0;
}

.fh-card-name {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}

.fh-card-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.fh-card-acts {
  display: flex;
  gap: 6px;
}

.fh-yes,
.fh-no {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.fh-yes {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* 封面：一个小图案放在暖色的圆角方块里 */
.fh-cover {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 18px;
  font-size: 30px;
  line-height: 1;
}

.fh-cover.big {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  font-size: 44px;
}

.fh-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.sheet-card .fh-cover {
  width: 100%;
  height: 58px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 16px;
}

.sheet-card .fh-cover.on {
  border-color: var(--ink);
}

.fh-primary,
.fh-secondary {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border: 1px solid var(--ink);
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}

.fh-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

#create {
  margin-top: 20px;
}

.fh-quiet {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.fh-quiet .icon {
  width: 18px;
  height: 18px;
}

.fh-quiet.small {
  height: 30px;
  font-size: 13px;
}

/* 家的抬头 */
.fh-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0 14px;
}

.fh-banner h1 {
  margin: 0;
  font-size: 26px;
}

.fh-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* 家里人：一排圆头像，下面是称呼和网名 */
.fh-people {
  display: flex;
  gap: 12px;
  margin: 0 -20px 16px;
  padding: 4px 20px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.fh-people::-webkit-scrollbar {
  display: none;
}

.fh-person {
  position: relative;
  display: grid;
  flex: none;
  justify-items: center;
  gap: 2px;
  width: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.fh-person.waiting {
  opacity: 0.55;
}

.fh-face {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--soft);
  box-shadow: 0 2px 8px rgba(26, 24, 20, 0.08);
  color: var(--muted);
  font-size: 22px;
  font-weight: 600;
}

.fh-face.small {
  width: 40px;
  height: 40px;
  font-size: 16px;
}

.fh-face .face-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fh-face.plus {
  border: 1.5px dashed #cfc5b3;
  background: transparent;
  box-shadow: none;
  font-weight: 400;
}

.fh-rel {
  font-size: 14px;
  font-weight: 600;
}

.fh-nick {
  max-width: 64px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.fh-crown {
  position: absolute;
  top: -4px;
  right: -2px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fdf0d5;
  color: #8a5a12;
  font-size: 10px;
}

.fh-actions {
  display: flex;
  gap: 10px;
}

.fh-actions [hidden] {
  display: none !important;
}

/* 动态 / 相册 */
.fh-tabs {
  display: flex;
  gap: 6px;
  margin: 20px 0 12px;
  padding: 4px;
  border-radius: 14px;
  background: var(--soft);
}

.fh-tabs button {
  flex: 1;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.fh-tabs button[aria-selected="true"] {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(26, 24, 20, 0.08);
}

.fh-feed {
  display: grid;
  gap: 14px;
}

.fh-post {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

.fh-post-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fh-post-top > div {
  flex: 1;
  min-width: 0;
}

.fh-post-who {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.fh-post-when {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.fh-post-note {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.fh-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #e8e1d5;
  aspect-ratio: 1;
  cursor: pointer;
  -webkit-touch-callout: none;
  user-select: none;
}

.fh-thumb.wide {
  margin-top: 10px;
  aspect-ratio: 4 / 3;
}

.fh-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.fh-play {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 1px 7px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
}

.fh-tick {
  position: absolute;
  top: 6px;
  right: 6px;
  display: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  line-height: 24px;
}

.fh-thumb.picked {
  outline: 3px solid var(--ink);
  outline-offset: -3px;
}

.fh-thumb.picked .fh-tick {
  display: block;
}

.fh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.sheet-card .fh-grid.pick {
  max-height: 46dvh;
  overflow-y: auto;
}

.sheet-card .fh-thumb {
  height: auto;
  border: 0;
  border-radius: 12px;
}

.fh-post-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.fh-like {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.fh-like .icon {
  width: 18px;
  height: 18px;
}

.fh-like.on {
  border-color: #f0c4c4;
  background: #fdeeee;
  color: #c0453a;
}

.fh-like.on .icon {
  fill: currentColor;
}

.fh-likers {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.fh-talk {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.fh-said {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.fh-said b {
  font-weight: 600;
}

.fh-x {
  margin-left: 6px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.fh-say {
  display: flex;
  gap: 6px;
}

.fh-say input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 15px;
}

.fh-say button {
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 14px;
}

/* 退出这个家：一看就是能点的按钮（原来是灰色带下划线的字，像说明不像按钮） */
.fh-leave {
  align-self: center;
  min-height: 44px;
  margin-top: 28px;
  padding: 0 22px;
  border: 1px solid #e7c3bb;
  border-radius: 999px;
  background: transparent;
  color: #b2452f;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  touch-action: manipulation;
}

/* 弹层里 */
.fh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sheet-card .fh-chip {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
}

.sheet-card .fh-chip.on {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.sheet-card .fh-go {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 17px;
}

.sheet-card .fh-danger {
  border-color: #e7c3bb;
  color: #b2452f;
}

.fh-muted,
.sheet-card .fh-muted {
  color: var(--muted);
  font-size: 14px;
}

.fh-pick-people {
  display: grid;
  gap: 6px;
  max-height: 34dvh;
  overflow-y: auto;
}

.sheet-card .fh-pick-person {
  display: flex;
  align-items: center;
  gap: 10px;
  height: auto;
  min-height: 52px;
  padding: 6px 10px;
  text-align: left;
}

.sheet-card .fh-pick-person.on {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.sheet-card .fh-pick-person:disabled {
  opacity: 0.5;
}

.fh-pick-text {
  display: grid;
  gap: 2px;
}

.fh-pick-text small {
  color: var(--muted);
  font-size: 12px;
}

.viewer-media img,
.viewer-media video {
  -webkit-touch-callout: none;
  user-select: none;
}

/* 「真的要…吗」小弹层：两个按钮各占一整行 */
.fh-ask .fh-danger,
.fh-ask .fh-quiet {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border-radius: 999px;
  font-size: 16px;
}

.fh-ask .fh-danger {
  border: 1px solid #e7c3bb;
  background: #fff;
}
