/* 页面基础设置：让名片在电脑和手机上都居中显示 */
* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #e9edf2;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  color: #123c70;
}

/* 名片采用 632:1059 的竖版比例，与参考图接近 */
.business-card {
  position: relative;
  width: min(100%, 632px);
  aspect-ratio: 632 / 1059;
  overflow: hidden;
  background: #eef1f5;
  border: 3px solid #153f78;
  box-shadow: 0 18px 48px rgba(18, 60, 112, 0.18);
}

/* 顶部 Logo 区域 */
.brand-area {
  position: absolute;
  z-index: 5;
  top: 2.2%;
  left: 5.8%;
  width: 22%;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

/* 人物和姓名占据名片上方约四分之三空间 */
.profile-area {
  position: absolute;
  inset: 0 0 29% 0;
  overflow: hidden;
}

.identity-text {
  position: absolute;
  z-index: 4;
  top: 22%;
  left: 6.5%;
  width: 39%;
}

.identity-text p {
  margin: 0;
  letter-spacing: 0;
}

.name {
  font-size: clamp(28px, 6.1vw, 43px);
  line-height: 1.2;
  font-weight: 800;
  color: #123c70;
}

.position {
  margin-top: 1.5% !important;
  font-size: clamp(24px, 5.5vw, 38px);
  line-height: 1.25;
  font-weight: 800;
  color: #f59b23;
}

.english-name {
  margin-top: 8% !important;
  font-size: clamp(16px, 3.5vw, 24px);
  line-height: 1.25;
  font-weight: 700;
  color: #aeb7c6;
}

.english-position {
  font-size: clamp(14px, 3.1vw, 21px);
  line-height: 1.3;
  font-weight: 700;
  color: #aeb7c6;
}

.small-decoration {
  display: flex;
  gap: 8px;
  margin-top: 9%;
}

.small-decoration span {
  display: block;
  width: 34px;
  height: 8px;
  transform: skewX(-34deg);
  background: #153f78;
}

.small-decoration span:last-child {
  background: #f6a01f;
}

/* 人物照片从右侧铺开，object-position 的作用类似移动相框里的照片 */
.portrait {
  position: absolute;
  z-index: 3;
  right: -1%;
  bottom: -1%;
  width: 76%;
  height: 78%;
  /* 使用透明人物图层，人物可以直接叠在浅灰背景和橙色图形上 */
  background-image: url("assets/portrait-cutout.png");
  background-repeat: no-repeat;
  background-position: 61% 49%;
  background-size: 132% auto;
  filter: contrast(1.03) saturate(0.92);
}

/* 橙色闪电放在人物后面，避免遮住脸部 */
.lightning-shape {
  position: absolute;
  z-index: 1;
  top: -6%;
  right: -8%;
  width: 45%;
  height: 75%;
  background: #f6a01f;
  clip-path: polygon(53% 0, 100% 0, 72% 45%, 100% 45%, 28% 100%, 48% 58%, 10% 58%);
  opacity: 0.96;
}

/* 底部信息区域 */
.contact-area {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 0;
  left: 0;
  height: 29.4%;
  padding: 7.4% 5.4% 4.5%;
  color: #ffffff;
  background: #163d78;
}

/* 顶部橙色折线，延续参考图的视觉语言 */
.orange-border {
  position: absolute;
  top: -20%;
  left: 0;
  width: 70%;
  height: 24%;
  background: #f6a01f;
  clip-path: polygon(0 0, 78% 0, 100% 100%, 92% 100%, 75% 22%, 0 22%);
}

.contact-list {
  position: relative;
  z-index: 2;
  width: 72%;
  padding-top: 34px;
}

.contact-list p {
  margin: 0 0 3.4%;
  font-size: clamp(12px, 2.45vw, 17px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-list a,
.company-text a {
  color: inherit;
  text-decoration: none;
}

.company-text {
  position: absolute;
  right: 5.4%;
  bottom: 22%;
  text-align: right;
  color: #69d791;
}

.company-text p {
  margin: 0;
  font-size: clamp(20px, 4.3vw, 30px);
  line-height: 1.1;
  font-weight: 900;
}

.company-text a {
  display: block;
  margin-top: 4px;
  max-width: 190px;
  font-size: clamp(10px, 2.1vw, 14px);
  font-weight: 700;
}

/* 三个功能按钮：放在底部右侧，使用半透明白色，和深蓝背景形成对比 */
.action-buttons {
  position: absolute;
  z-index: 3;
  top: 4%;
  left: 5.4%;
  display: flex;
  gap: 6px;
  align-items: center;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 5px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: clamp(9px, 1.8vw, 12px);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.action-button:hover {
  background: rgba(255, 255, 255, 0.28);
}

.button-icon {
  margin-right: 3px;
  font-size: 14px;
  line-height: 1;
}

/* 手机屏幕较窄时减小页面外边距，让名片尽量铺满 */
@media (max-width: 680px) {
  body {
    align-items: flex-start;
    padding: 0;
    background: #eef1f5;
  }

  .business-card {
    width: 100%;
    border-width: 0;
    box-shadow: none;
  }
}
