/* 联系页面正文按 Figma 的 1680px 内容区域排列。 */
.contact-page-content { position: relative; }

/* 投递说明左侧为说明文字，右侧为三类招聘联系方式。 */
.delivery-panel { position: relative; width: 1680px; height: 360px; margin-top: 0; background: #f7f7f7; }
.delivery-summary { position: absolute; top: 0; left: 0; width: 480px; height: 360px; padding: 54px 40px 0; }
.delivery-summary::after { position: absolute; top: 60px; right: 0; width: 1px; height: 240px; background: #dddddd; content: ""; }
.delivery-summary > img { position: absolute; top: 0; left: 0; width: 276px; height: 110px; }
.delivery-summary h2, .delivery-office > h2 { position: relative; margin: 0; font-size: 24px; font-weight: 400; line-height: 34px; }
.delivery-summary p { position: relative; width: 380px; margin: 50px 0 0; color: var(--muted); font-size: 16px; line-height: 30px; }
.delivery-office { position: absolute; top: 54px; left: 540px; width: 1080px; }
.delivery-contact-grid { display: grid; margin-top: 51px; grid-template-columns: repeat(3, 300px); column-gap: 90px; }
.delivery-contact-grid article h3 { margin: 0; padding-bottom: 20px; border-bottom: 4px solid var(--primary); font-size: 18px; font-weight: 400; line-height: 25px; white-space: nowrap; }
.delivery-contact-grid article > div { margin-top: 16px; }
.delivery-contact-grid article p { margin: 0; font-size: 16px; line-height: 30px; white-space: nowrap; }

/* 单位标题的细线和圆点使用 CSS 绘制，保持文字可直接用于模板。 */
.unit-heading { position: relative; display: flex; width: 480px; height: 80px; margin-top: 60px; padding-left: 40px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.75); background: var(--primary); color: #fff; }
.unit-heading::before { position: absolute; top: 0; bottom: 0; left: 20px; width: 1px; background: rgba(255,255,255,.5); content: ""; }
.unit-heading::after { position: absolute; bottom: -2px; left: 18px; width: 5px; height: 5px; border-radius: 50%; background: #dbe8f1; content: ""; }
.unit-heading h2 { margin: 0; font-size: 24px; font-weight: 400; line-height: 34px; }

/* 单位卡片按两列排列，默认使用普通底色，悬停或键盘聚焦时切换为激活底色。 */
.unit-grid { display: grid; width: 1680px; margin-top: 40px; grid-template-columns: repeat(2, 820px); gap: 40px; }
.unit-card { position: relative; width: 820px; height: 330px; }
.unit-card-base { position: absolute; top: 0; left: 40px; width: 780px; height: 150px; }
.unit-card-face { position: absolute; top: 0; left: 0; width: 820px; height: 330px; }
.unit-card-face-active { opacity: 0; }
.unit-card:hover .unit-card-face-active, .unit-card:focus-within .unit-card-face-active { opacity: 1; }
.unit-card-circle { position: absolute; top: 40px; left: 624px; width: 142px; height: 80px; }
.unit-card-small-circle { position: absolute; top: 80px; left: 724px; width: 66px; height: 38px; }
.unit-card > h3 { position: absolute; top: 40px; left: 40px; margin: 0; font-size: 18px; font-weight: 700; line-height: 25px; }
/* 专业方向固定显示两行，超出的文字由浏览器显示省略号。 */
.unit-direction { position: absolute; top: 95px; left: 40px; display: -webkit-box; width: 600px; height: 60px; margin: 0; overflow: hidden; color: var(--muted); font-size: 16px; line-height: 30px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.unit-rule { position: absolute; top: 185px; left: 0; width: 640px; height: 4px; background: var(--primary); }
.unit-contacts { position: absolute; top: 219px; left: 40px; display: grid; grid-template-columns: repeat(2, 238px); column-gap: 132px; }
.unit-contacts p { margin: 0; font-size: 16px; line-height: 30px; white-space: nowrap; }
/* 截图中的三联系人单位在同一行显示，字号只针对这两张卡片收紧。 */
.unit-card.has-three-contacts .unit-contacts { right: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; }
.unit-card.has-three-contacts .unit-contacts p { font-size: 13px; }
.unit-english { position: absolute; top: 340px; left: 40px; margin: 0; color: rgba(255,255,255,.2); font-size: 20px; font-weight: 600; line-height: 30px; white-space: nowrap; }
.unit-detail { position: absolute; top: 32px; right: 40px; display: flex; height: 30px; padding: 0; align-items: center; border: 0; gap: 10px; background: transparent; color: #fff; opacity: .5; cursor: pointer; font: inherit; font-size: 14px; line-height: 30px; white-space: nowrap; }
.unit-card:hover .unit-detail, .unit-card:focus-within .unit-detail { opacity: 1; }
.unit-detail img { width: 8px; height: 14px; }

/* 手机端将投递信息和单位卡片改为单列，避免固定坐标造成横向溢出。 */
.is-mobile .delivery-panel { width: 100%; height: auto; margin-top: 0; overflow: hidden; border: 1px solid rgba(0,0,0,.06); border-radius: 8px; background: #f7f7f7; }
.is-mobile .delivery-summary { position: relative; width: 100%; height: auto; padding: 24px 20px; }
.is-mobile .delivery-summary::after { display: none; }
.is-mobile .delivery-summary > img { width: 180px; height: auto; }
.is-mobile .delivery-summary h2, .is-mobile .delivery-office > h2 { font-size: 20px; line-height: 28px; }
.is-mobile .delivery-summary p { width: auto; margin-top: 24px; font-size: 14px; line-height: 1.9; }
.is-mobile .delivery-office { position: static; width: 100%; padding: 24px 20px; border-top: 1px solid #dddddd; }
.is-mobile .delivery-contact-grid { display: grid; margin-top: 20px; grid-template-columns: 1fr; gap: 12px; }
.is-mobile .delivery-contact-grid article { padding: 16px; border: 1px solid rgba(0,0,0,.06); border-radius: 8px; background: #fff; }
.is-mobile .delivery-contact-grid article h3 { padding-bottom: 12px; border-bottom-width: 3px; font-size: 16px; line-height: 24px; white-space: normal; }
.is-mobile .delivery-contact-grid article > div { margin-top: 10px; }
.is-mobile .delivery-contact-grid article p { font-size: 14px; line-height: 26px; white-space: normal; }
.is-mobile .unit-heading { width: 100%; height: 60px; margin-top: 32px; padding-left: 36px; }
.is-mobile .unit-heading h2 { font-size: 20px; line-height: 28px; }
.is-mobile .unit-grid { width: 100%; margin-top: 20px; grid-template-columns: 1fr; gap: 16px; }
.is-mobile .unit-card { width: 100%; height: auto; min-height: 0; padding: 20px; overflow: hidden; border: 1px solid rgba(0,0,0,.06); border-radius: 8px; background: #f7f7f7; }
.is-mobile .unit-card-base, .is-mobile .unit-card-face, .is-mobile .unit-card-circle, .is-mobile .unit-card-small-circle { display: none; }
.is-mobile .unit-card > h3 { position: static; padding-right: 92px; font-size: 16px; line-height: 24px; }
.is-mobile .unit-direction { position: static; width: auto; height: 50.4px; margin-top: 18px; font-size: 14px; line-height: 1.8; }
.is-mobile .unit-rule { position: static; display: block; width: 100%; height: 3px; margin-top: 18px; }
.is-mobile .unit-contacts { position: static; display: grid; margin-top: 16px; grid-template-columns: 1fr; gap: 12px; }
.is-mobile .unit-contacts p { font-size: 14px; line-height: 26px; white-space: normal; }
/* 手机端统一恢复纵向联系人列表，避免三个联系人横向挤压。 */
.is-mobile .unit-card.has-three-contacts .unit-contacts { right: auto; grid-template-columns: 1fr; gap: 12px; }
.is-mobile .unit-card.has-three-contacts .unit-contacts p { font-size: 14px; }
.is-mobile .unit-english { position: static; margin-top: 16px; color: rgba(22,92,145,.5); font-size: 14px; line-height: 22px; white-space: normal; }
.is-mobile .unit-detail { top: 17px; right: 20px; height: 24px; color: var(--primary); opacity: 1; line-height: 24px; }
.is-mobile .unit-detail img { display: none; }
/* 手机端弹窗接近全屏，联系方式改为纵向排列。 */
