/* ===== 详情页布局 ===== */
.main-wrap {
  display: block;
  padding-top: 24px;
  padding-bottom: 40px;
}

.main-wrap .content {
  width: 100%;
  background: transparent;
  padding: 0;
}

/* ===== 详情页卡片 ===== */
.detail-card {
  background: #fff;
  border: none;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* ===== 顶部个人信息 ===== */
.profile-header {
  display: flex;
  gap: 32px;
  padding: 36px 48px;
  background: #F2F1EF;
}

.profile-photo {
  flex-shrink: 0;
  width: 281px;
}

.profile-img {
  width: 100%;
  height: 422px;
  object-fit: cover;
  object-position: center top;
  border: 3px solid #fff;
  display: block;
  background: #d5d5d5;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.name-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.profile-name {
  font-size: 28px;
  font-weight: 700;
  color: #000;
  letter-spacing: 1px;
  line-height: 1.3;
}

.profile-title {
  font-size: 14px;
  color: #999;
  font-weight: normal;
}

.share-btn {
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  color: #07C160;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.share-btn:hover {
  background: #f0faf4;
  border-color: #07C160;
  color: #06ad56;
}

.share-btn svg {
  width: 20px;
  height: 20px;
}

/* 微信分享弹层 */
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-modal[hidden] {
  display: none !important;
}

.share-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.share-modal-box {
  position: relative;
  width: 300px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.share-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.share-modal-close:hover {
  color: #666;
}

.share-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.share-modal-desc {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}

.share-qrcode {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  min-height: 40px;
}

.share-qrcode img {
  display: block;
  border: 1px solid #eee;
}

.share-copy-btn {
  width: 100%;
  height: 40px;
  background: #07C160;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.share-copy-btn:hover {
  background: #06ad56;
}

.share-tip {
  font-size: 12px;
  color: #999;
  margin-top: 12px;
  line-height: 1.6;
  min-height: 20px;
}

/* 标签 */
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  line-height: 36px;
  padding: 0 20px;
  height: 36px;
  background: #F8F8F8;
  color: #333;
  font-size: 14px;
  margin-bottom: 10px;
  margin-right: 10px;
}

/* 联系方式 */
.profile-contact {
  list-style: none;
}

.profile-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #333;
  padding: 12px 0 12px 0;
  border-bottom: 1px dashed #e0e0e0;
}

.profile-contact li:last-child {
  border-bottom: none;
}

.contact-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #B32D2E;
  display: flex;
  align-items: center;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-text {
  color: #333;
}

/* ===== 详情内容区 ===== */
.detail-body {
  padding: 8px 48px 48px;
  background: #fff;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  padding: 36px 0;
}

.detail-row--simple {
  padding: 30px 0;
}

/* 左侧标题 — 约 20% */
.detail-label {
  width: 200px;
  flex-shrink: 0;
}

.detail-label span {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
}

/* 右侧内容 — 约 80%，红色竖线分隔 */
.detail-value {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  color: #666;
  line-height: 2.2;
  padding-left: 36px;
  margin-left: 20px;
}

/* ===== 统一列表 — 红色方块 bullet ===== */
.detail-value ul {
  list-style: none;
  padding: 0;
  padding-left: 0;
}
.detail-value-after ul {
  margin: 0;
  position: relative;
  padding: 10px 0 10px 20px;
}
.detail-value-after ul::before {
  display: inline-block;
  content: '';
  width: 1px;
  height: 100%;
  position: absolute;
  left: 5px;
  top: 0;
  border-left: 1px solid #e6e6e6;
}
.detail-value li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 2px;
  color: #666;
  font-size: 17px;
  line-height: 2.2;
}
.detail-value li::after {
  width: 5px;
  height: 5px;
  background: #bbb;
  position: absolute;
  left: 0;
  top: 16px;
  border-radius: 3px;
  content: '';
}
.detail-value-after  li::after {
  width: 10px;
  height: 10px;
  background: rgb(215, 34, 41);
  position: absolute;
  left: -19px;
  top: 14px;
  border-radius: 50%;
  content: '';
  border: 3px solid #e6e6e6;
}

.detail-value li strong {
  color: #444;
  font-weight: 600;
}

/* 荣誉称号 */
.honor-year {
  color: #888;
  margin-right: 6px;
}

/* 工作经历 */
.tl-period {
  color: #888;
  margin-right: 10px;
}

.tl-org {
  color: #444;
  margin-right: 6px;
}

.tl-role {
  color: #666;
}

/* 教育背景 */
.edu-school {
  color: #444;
  margin-right: 10px;
}

.edu-degree {
  color: #888;
}

/* 学术成果 */
.book-title {
  color: #444;
}

.book-role {
  color: #999;
  font-size: 14px;
}

/* 单行简单值 */
.simple-value {
  font-size: 15px;
  color: #666;
}

/* ===== 面包屑 ===== */
.breadcrumb a {
  color: #1a6fb5;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ===== 打印模板 ===== */
@page {
  size: A4 portrait;
  margin: 15mm 18mm;
}

@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  html, body {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    background: #fff !important;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 10.5pt;
    color: #333;
    letter-spacing: 0.02em;
  }

  .site-header,
  .site-nav,
  .breadcrumb,
  .sidebar,
  .site-footer,
  .share-btn,
  .share-modal {
    display: none !important;
  }

  .container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .main-wrap,
  .main-wrap .content {
    padding: 0 !important;
    width: 100% !important;
  }

  .detail-card {
    box-shadow: none !important;
    border: none !important;
    overflow: visible;
  }

  /* 头部：姓名标签全宽，照片+联系方式并排 */
  .profile-header {
    display: grid !important;
    grid-template-columns: 118pt 1fr;
    column-gap: 18pt;
    row-gap: 10pt;
    padding: 0 0 14pt !important;
    margin-bottom: 6pt;
    background: #fff !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .profile-info {
    display: contents !important;
  }

  .profile-name-row {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 0 !important;
  }

  .profile-tags {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border: none !important;
  }

  .profile-photo {
    grid-column: 1;
    grid-row: 3;
    width: 118pt !important;
    align-self: start;
  }

  .profile-contact {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
  }

  .profile-img {
    width: 118pt !important;
    height: 158pt !important;
    border: none !important;
    object-fit: cover;
  }

  .profile-name {
    font-size: 20pt !important;
    font-weight: bold;
    color: #000 !important;
    letter-spacing: 0.06em;
  }

  .profile-title {
    font-size: 11pt !important;
    color: #666 !important;
    font-weight: normal;
  }

  .name-group {
    gap: 10pt;
  }

  .tag {
    display: inline-block !important;
    height: auto !important;
    line-height: 1.5 !important;
    padding: 4pt 10pt !important;
    margin: 0 5pt 5pt 0 !important;
    background: #f0f0f0 !important;
    border: none !important;
    border-radius: 3pt !important;
    font-size: 9pt !important;
    color: #444 !important;
  }

  .profile-contact li {
    display: block !important;
    padding: 8pt 0 !important;
    font-size: 10pt !important;
    color: #444 !important;
    border-bottom: 1pt solid #eee !important;
    line-height: 1.5;
  }

  .profile-contact li:last-child {
    border-bottom: none !important;
  }

  .contact-icon {
    display: none !important;
  }

  .contact-text {
    color: #444 !important;
  }

  /* 详情内容区 */
  .detail-body {
    padding: 0 !important;
    background: #fff !important;
  }

  .detail-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    padding: 16pt 0 !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .detail-row--simple {
    padding: 14pt 0 !important;
  }

  .detail-label {
    width: 68pt !important;
    flex-shrink: 0;
  }

  .detail-label span {
    font-size: 11pt !important;
    font-weight: bold;
    color: #000 !important;
    line-height: 1.5;
    border: none !important;
    padding: 0 !important;
  }

  .detail-value {
    flex: 1;
    margin-left: 0 !important;
    padding-left: 48pt !important;
    border-left: none !important;
    font-size: 10pt !important;
    line-height: 1.75 !important;
    color: #444 !important;
  }

  .detail-value ul {
    margin: 0;
    padding: 0;
  }

  .detail-value li {
    font-size: 10pt !important;
    line-height: 1.75 !important;
    color: #444 !important;
    margin-bottom: 2pt;
  }

  /* 空心圆点列表 */
  .detail-value-after ul {
    list-style-type: circle !important;
    padding-left: 14pt !important;
    margin: 0 !important;
  }

  .detail-value-after ul::before {
    display: none !important;
    content: none !important;
  }

  .detail-value-after li {
    display: list-item !important;
    padding-left: 0 !important;
    list-style-type: circle !important;
    list-style-position: outside;
  }

  .detail-value-after li::after,
  .detail-value li::after {
    display: none !important;
    content: none !important;
  }

  /* 无圆点列表 */
  .detail-value:not(.detail-value-after) ul {
    list-style: none !important;
    padding-left: 0 !important;
  }

  .detail-value:not(.detail-value-after) li {
    padding-left: 0 !important;
    display: block !important;
  }

  /* 荣誉称号浅灰 */
  /* .detail-row--honor .detail-value,
  .detail-row--honor .detail-value li,
  .detail-row--honor .honor-year,
  .detail-row--honor .honor-name {
    color: #aaa !important;
  }

  .detail-row--honor .detail-value-after li::marker {
    color: #bbb !important;
  } */

  .simple-value {
    font-size: 10pt !important;
    color: #444 !important;
  }

  .honor-year,
  .tl-period,
  .edu-degree,
  .book-role {
    color: inherit !important;
  }

  .tl-org,
  .edu-school,
  .book-title {
    color: #333 !important;
  }

  a {
    color: #333 !important;
    text-decoration: none !important;
  }
}

/* ===== H5 ===== */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    gap: 16px;
  }

  .profile-photo { width: 140px; }

  .profile-img {
    width: 140px;
    height: 186px;
  }

  .profile-info { width: 100%; }
  .profile-name { font-size: 24px; }

  .detail-body {
    padding: 4px 20px 32px;
  }

  .detail-row {
    flex-direction: column;
    padding: 24px 0;
    gap: 10px;
  }

  .detail-label { width: 100%; }

  .detail-label span {
    font-size: 16px;
  }

  .detail-value {
    margin-left: 0;
    padding-left: 0;
    /* border-left: 2px solid #B32D2E; */
  }
}

@media (max-width: 480px) {
  .profile-name { font-size: 22px; }
  .profile-header { padding: 20px 16px; }
  .detail-body { padding: 4px 16px 24px; }
}
