:root {
  --bg: #fcfcfc;
  --text: #1b1f23;
  --muted: #7c848d;
  --nav: #8f97a1;
  --nav-active: #1f252b;
  --underline: #1f252b;
  --max-width: 1180px;
  --content-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family:  "Helvetica Neue", Helvetica, Arial,  "Noto Serif SC", sans-serif, ;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.contact-form-block {
  margin-top: 32px;
  max-width: 460px;
}

.form-title {
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.message-trigger-row {
  align-items: baseline;
}

.message-trigger {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: #2a241e;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  cursor: pointer;
}

.message-trigger:hover {
  color: #4a5560;
}

.contact-form-block {
  margin-top: 24px;
  max-width: 460px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form span {
  font-size: 0.9rem;
  color: #75685b;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border: 1px solid #d8dce2;
  background: #fff;
  color: #2a241e;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  align-self: flex-start;
  margin-top: 4px;
  padding: 10px 16px;
  border: 1px solid #c8ced6;
  background: transparent;
  color: #2a241e;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif !important;
  cursor: pointer;
}

.form-submit:hover {
  background: #f4f6f8;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "PingFang SC", "Noto Sans SC", sans-serif;
  color: #9aa3ab;
}


.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  width: 100%;
  padding: 10px 32px 0;
  flex: 0 0 auto;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-nav {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Noto Sans SC", sans-serif;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 300;
  color: var(--nav);
}

.top-nav a,
.lang-switch {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  color: var(--nav);
  transition: color 0.2s ease;
}

.top-nav a:hover,
.lang-switch:hover {
  color: var(--nav-active);
}

.top-nav a.active {
  color: var(--nav-active);
}

.top-nav a.active::after {
  content: "";
  position: absolute;
  left: 0px;
  right: 2px;
  bottom: -2px;
  height: 1px;
  background: var(--underline);
}

.lang-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 18px;
  color: var(--nav);
}

.lang-switch {
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 300;
  cursor: pointer;
}

.lang-current {
  color: var(--nav-active);
}

.site-main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 32px 48px;
}

.page-wrap {
  width: min(var(--content-width), 100%);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(250px, 0.85fr);
  gap: 68px;
  align-items: center;
}

.image-wrap {
  width: 100%;
  aspect-ratio: 1.85 / 1;
  overflow: hidden;
  background: #eef1f4;
  border-radius: 2px;
}

.image-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.text-wrap {
  max-width: 360px;
  font-family: Georgia, "Noto Serif SC", "Times New Roman", serif;
}

.page-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #1f1b17;
}

.page-subtitle {
  margin: 0 0 22px;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: #75685b;
}

.page-body {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.9;
  font-weight: 400;
  color: #2a241e;
  font-family: Georgia, "Times New Roman", serif;
}

.simple-page {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
  font-family: "Noto Serif SC", Georgia, "Times New Roman", serif;

    display: flex;
  flex-direction: column;
  justify-content: center;
}

.simple-page .page-title {
  margin-bottom: 18px;
}

.simple-page .page-body + .page-body {
  margin-top: 16px;
}

.contact-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.8;
  color: #3c454d;
}

.contact-label {
  display: inline-block;
  min-width: 82px;

  /* 和导航栏统一 */
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 300;

  color: var(--nav);
}

@media (max-width: 900px) {
  .site-header {
    padding-top: 22px;
  }

  .site-main {
    padding-top: 32px;
    padding-bottom: 36px;
    align-items: flex-start;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .text-wrap {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-main {
    padding-left: 20px;
    padding-right: 20px;
  }



  .top-nav {
    gap: 12px;
    font-size: 8px;
    letter-spacing: 0.12em;
    flex-wrap: wrap;
    justify-content: center;
  }

  .lang-wrap {
    margin-left: 10px;
    gap: 8px;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 0.95rem;
  }

  .page-body {
    font-size: 1.05rem;
    line-height: 1.8;
  }

  .site-main {
    display: flex;
    align-items: center;     /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    min-height: calc(100vh - 80px); /* 减去导航高度 */
  }

  .simple-page {
    text-align: center;      /* 文字居中 */
    max-width: 420px;
  }

  .contact-list {
    display: flex;
    flex-direction: column;
    align-items: center;     /* 联系方式居中 */
  }

  .contact-label {
    min-width: auto;
  }

}

@media (max-width: 640px) {
  .message-trigger-row {
    align-items: center;
  }

  .message-trigger {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
  }

  .contact-form-block {
    margin-top: 18px;
    max-width: 100%;
  }

  .contact-form {
    width: 100%;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    font-size: 16px;
  }

  .form-submit {
    width: auto;
    min-width: 88px;
  }
}

@media (max-width: 640px) {
  .simple-page {
    text-align: left;
    padding-left: 4px;
    padding-right: 4px;
  }

  .contact-list {
    align-items: flex-start;
  }

  .contact-form-block {
    text-align: left;
  }
}

/* About 页：手机版固定画面高度，减少中英文切换跳动 */
/* style.css */

/* --- 最终强制修复：手机版 About 图片高度与跳动 --- */
@media (max-width: 640px) {
  /* 1. 强制 About 布局不再使用 Grid，改为 Flex 纵向排列 */
  .page-wrap .about-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    margin-top: 100px !important; 
  }

  /* 2. 核心：强制固定图片容器高度 */
  .about-layout .image-wrap {
    display: block !important;
    width: 100% !important;
    height: 220px !important; /* 强制锁定 220px，不再随图片比例缩放 */
    aspect-ratio: auto !important; /* 禁用掉电脑版的比例 */
    flex: 0 0 220px !important; /* 确保在 flex 布局下不缩减 */
    overflow: hidden !important;
  }

  /* 3. 确保图片填满这个固定高度的框 */
  .about-layout .image-wrap img {
    display: block !important;
    width: 100% !important;
    height: 220px !important; 
    object-fit: cover !important; /* 这样图片会填满 220px 的框而不会变形 */
  }

  /* 4. 解决中英文切换跳动：锁定文字区域最小高度 */
  .about-layout .text-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 320px !important; /* 请根据你英文简介的长度微调此数值 */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }
}

