/* 丙洲陳氏族譜網 · 族人個人資料 (meInfo.aspx) */
body.info-page { margin: 0; padding: 14px 18px 30px; background-attachment: scroll; }
body.info-page form { max-width: 1100px; margin: 0 auto; }
.msg { display: block; margin: 10px 0; color: var(--cinnabar); }
.male { color: #23408e; }
.female { color: #b8261b; }

/* 上下工具列 */
.topbar, .bottombar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.topbar { margin-bottom: 14px; }
.bottombar { margin-top: 18px; }
.back {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  font-family: var(--font-kai);
  font-size: 17px;
  color: #fff3cf;
  background: var(--wood-2);
  border-radius: 19px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
}
.back:hover { background: var(--cinnabar); color: #fff; text-decoration: none; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.acts a {
  padding: 6px 14px;
  font-family: var(--font-kai);
  font-size: 15px;
  color: var(--wood-2);
  background: #fffaf0;
  border: 1px solid var(--paper-edge);
  border-radius: 17px;
}
.acts a:hover { color: #fff; background: var(--cinnabar); border-color: var(--cinnabar); text-decoration: none; }

/* 標頭：相片 + 姓名 */
.head {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 22px;
  background: #fffaf0;
  border: 1px solid var(--paper-edge);
  border-top: 4px solid var(--cinnabar);
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.avatar {
  flex-shrink: 0;
  display: block;
  width: 130px;
  height: 160px;
  padding: 6px;
  background: linear-gradient(135deg, #6b3f22, var(--wood) 50%, #7a4a2a);
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px var(--gold), 0 3px 8px rgba(0, 0, 0, .25);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--paper-2); }
.avatar.none {
  display: grid;
  place-items: center;
  font-family: var(--font-kai);
  font-size: 54px;
  color: rgba(243, 213, 142, .7);
}
.hd-text h1 { margin: 0 0 8px; font-family: var(--font-kai); font-weight: 400; font-size: 40px; letter-spacing: .15em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 2px 10px;
  font-size: 13px;
  color: var(--ink-soft);
  background: rgba(195, 154, 78, .12);
  border: 1px solid var(--paper-edge);
  border-radius: 12px;
}
.tag.gen { color: #fff; background: var(--cinnabar); border-color: var(--cinnabar); }
.tag.dead { color: #fff; background: #6d6158; border-color: #6d6158; }
.tag.id { color: #8a7663; }
.alias { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }

/* 兩欄 */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.ibox {
  padding: 14px 20px 18px;
  background: #fffaf0;
  border: 1px solid var(--paper-edge);
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(43, 29, 20, .08);
}
.ibox h2 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-family: var(--font-kai);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: .2em;
  color: var(--wood-2);
  border-bottom: 1px solid var(--paper-edge);
}
.ibox h2::before { content: "◆ "; color: var(--cinnabar); font-size: 13px; vertical-align: 3px; }
.ibox h3 {
  margin: 16px 0 8px;
  font-family: var(--font-kai);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: .15em;
  color: var(--cinnabar);
}
.ibox h3 small { font-family: var(--font-serif); font-size: 12px; color: #a8957d; letter-spacing: 0; }
.empty { color: #a8957d; font-size: 14px; }

dl.info { display: grid; grid-template-columns: 6em 1fr; gap: 8px 12px; margin: 0; font-size: 16px; line-height: 1.6; }
dl.info dt { color: var(--ink-soft); font-family: var(--font-kai); letter-spacing: .1em; }
dl.info dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
dl.info dd small { color: var(--ink-soft); font-size: 13px; }

/* 先祖世系：直線串連 */
ol.line { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--gold); }
ol.line li { position: relative; padding: 4px 0 4px 14px; }
ol.line li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  background: #fffaf0;
  border: 2px solid var(--gold);
  border-radius: 50%;
}
ol.line li.me::before { background: var(--cinnabar); border-color: var(--cinnabar); }
ol.line li.me .pl { font-weight: 700; }
ol.line em { margin-left: 8px; font-style: normal; font-size: 12px; color: #a8957d; }

.pl { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; }
a.pl:hover { text-decoration: none; }
a.pl:hover .pg { background: var(--cinnabar); color: #fff; }
.pg {
  display: inline-block;
  min-width: 40px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 19px;
  text-align: center;
  color: var(--wood-2);
  border: 1px solid var(--paper-edge);
  border-radius: 10px;
  background: #fff;
}
.people { display: flex; flex-wrap: wrap; gap: 6px 14px; }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.thumbs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--paper-edge); border-radius: 3px; display: block; }
.thumbs a:hover img { outline: 2px solid var(--cinnabar); }

@media (max-width: 760px) {
  body.info-page { padding: 10px; }
  .cols { grid-template-columns: 1fr; }
  .head { flex-direction: column; text-align: center; }
  .tags { justify-content: center; }
  .acts { margin-left: 0; }
  .hd-text h1 { font-size: 32px; }
}
