/* ==============================
   About Page
============================== */

.about-page {
  width: min(1400px, 90%);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 3rem;
}


/* ==============================
   Shared Section Heading
============================== */

.about-section-heading {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.about-section-heading span {
  color: #555;
  font-size: 0.65rem;
  line-height: 1;
  letter-spacing: 0.15em;
}

.about-section-heading p {
  margin: 0;
  color: #888;
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}


/* ==============================
   Hero
============================== */

.about-hero {
  position: relative;
  isolation: isolate;
  padding: 11rem 0 10rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.about-hero-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
}

.about-eyebrow,
.about-hero-index {
  margin: 0;
  color: #666;
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.about-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.about-hero h1 span {
  color: #707070;
}

.about-hero-bottom {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 430px);
  align-items: end;
  gap: 4rem;
  margin-top: 5rem;
}

.about-hero-role {
  margin: 0;
  color: #aaa;
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-hero-description {
  margin: 0;
  color: #888;
  font-size: 1rem;
  line-height: 1.8;
}

.about-background-text {
  position: absolute;
  z-index: -1;
  right: -0.04em;
  bottom: 1.5rem;
  color: transparent;
  font-size: clamp(10rem, 23vw, 25rem);
  font-weight: 600;
  line-height: 0.75;
  letter-spacing: -0.08em;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}


/* ==============================
   Profile
============================== */

.about-profile {
  padding: 10rem 0 12rem;
}

.about-profile-grid {
  display: grid;
  grid-template-columns:
    minmax(340px, 0.85fr)
    minmax(450px, 1.15fr);
  gap: clamp(5rem, 10vw, 11rem);
  align-items: stretch;
}


/* ==============================
   Profile Visual
============================== */

.about-visual {
  position: relative;
  align-self: start;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(
      145deg,
      #141414 0%,
      #0d0d0d 52%,
      #171717 100%
    );
}

.about-visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    );
  background-size: 54px 54px;
}

.about-visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.about-visual::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.about-visual-circle {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: flex;
  gap: 0.04em;
  font-size: clamp(5rem, 10vw, 10rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.12em;
  transform: translate(-50%, -50%);
}

.about-visual-circle span:last-child {
  color: #555;
}

.about-visual-caption {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #666;
  font-size: 0.62rem;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* ==============================
   Biography
============================== */

.about-biography {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.about-biography-lead {
  width: 100%;
  max-width: 860px;
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

/* 英文标题更长，单独调整字号 */
html:lang(en) .about-biography-lead {
  font-size: clamp(1.9rem, 2.5vw, 2.7rem);
}

.about-biography-lead span {
  display: block;
  white-space: nowrap;
}

.about-biography-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: clamp(3rem, 4vw, 4rem) 0 3rem;
}

.about-biography-text p {
  margin: 0;
  color: #888;
  font-size: 0.9rem;
  line-height: 2;
}


/* ==============================
   Personal Information
============================== */

.about-information {
  margin: auto 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.about-information > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.about-information dt {
  color: #666;
  font-size: 0.65rem;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-information dd {
  margin: 0;
  color: #bbb;
  font-size: 0.85rem;
  line-height: 1.5;
}

.about-language-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 2.5rem;
}

.about-language-summary > span {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.about-language-summary strong {
  color: #bbb;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.5;
}

.about-language-summary small {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: #777;
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.06em;
  white-space: nowrap;
}


/* ==============================
   Experience
============================== */

.about-experience {
  padding: 9rem 0 12rem;

  border-top:
    1px solid rgba(255, 255, 255, 0.12);
}


/* ==============================
   Timeline Layout
============================== */

.about-timeline {
  --timeline-date-column: 160px;
  --timeline-marker-column: 40px;
  --timeline-column-gap: 2rem;
  --timeline-row-padding: 2.5rem;
  --timeline-marker-offset: -12px;

  width: 100%;

  /* 时间轴区域顶部的完整分隔线 */
  border-top:
    1px solid rgba(255, 255, 255, 0.14);
}

.about-timeline-item {
  position: relative;

  display: grid;
  grid-template-columns:
    var(--timeline-date-column)
    var(--timeline-marker-column)
    minmax(0, 1fr);
  gap: var(--timeline-column-gap);

  min-height: 200px;
  padding: var(--timeline-row-padding) 0;

  /* 不再使用贯穿整行的 border-bottom */
}


/* 从右侧内容区域开始的短横线 */

.about-timeline-item::after {
  content: "";

  position: absolute;
  right: 0;
  bottom: 0;

  left: calc(
    var(--timeline-date-column)
    + var(--timeline-marker-column)
    + var(--timeline-column-gap)
    + var(--timeline-column-gap)
  );

  height: 1px;

  background: rgba(255, 255, 255, 0.1);
}

.about-timeline-item:last-child::after {
  left: 0;
}


/* ==============================
   Timeline Date
============================== */

.about-timeline-date {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;

  color: #777;

  font-size: 0.72rem;
  line-height: 1.3;
  letter-spacing: 0.1em;
}

.about-timeline-date span:last-child::before {
  content: "— ";
}


/* ==============================
   Timeline Line and Marker
============================== */

.about-timeline-marker {
  position: relative;

  display: flex;
  justify-content: center;

  transform: translateX(var(--timeline-marker-offset));
}


/* 圆点上方与下方的纵线 */

.about-timeline-marker::before,
.about-timeline-marker::after {
  content: "";

  position: absolute;
  left: 50%;

  width: 1px;

  background: rgba(255, 255, 255, 0.17);

  transform: translateX(-50%);
}


/* 从上一项连接到当前圆点 */

.about-timeline-marker::before {
  top: calc(var(--timeline-row-padding) * -1);

  height: calc(var(--timeline-row-padding) + 12px);
}


/* 从当前圆点连接到下一项 */

.about-timeline-marker::after {
  top: 12px;
  bottom: calc(var(--timeline-row-padding) * -1);
}


/* 第一项从第一个圆点开始 */

.about-timeline-item:first-child
.about-timeline-marker::before {
  display: none;
}


/* 最后一项在最后一个圆点结束 */

.about-timeline-item:last-child
.about-timeline-marker::after {
  bottom: 0;
}


/* 时间轴圆点 */

.about-timeline-marker span {
  position: relative;
  z-index: 2;

  width: 7px;
  height: 7px;
  margin-top: 4px;

  border-radius: 50%;

  background: #aaa;

  /* 遮住圆点背后的纵线 */
  box-shadow: 0 0 0 6px #0b0b0b;
}


/* ==============================
   Timeline Content
============================== */

.about-timeline-company {
  margin: 0 0 1rem;

  color: #777;

  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.about-timeline-content h2 {
  margin: 0;

  font-size: clamp(1.8rem, 3vw, 3.3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.about-timeline-content > p:last-child {
  max-width: none;
  margin: 1.5rem 0 0;

  color: #888;

  font-size: 0.85rem;
  line-height: 1.9;

  white-space: nowrap;
}


/* ==============================
   Education & Qualifications
============================== */

.about-background {
  padding: 9rem 0 12rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.about-background-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.12);
}

.about-background-column {
  padding: 3rem;
  background: #0b0b0b;
}

.about-background-column > h2 {
  margin: 0 0 4rem;
  color: #aaa;
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-background-list {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.about-background-item {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.about-background-item > span {
  color: #555;
  font-size: 0.65rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.about-background-item h3 {
  margin: 0;
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.6;
}

.about-background-item p {
  margin: 0.4rem 0 0;
  color: #666;
  font-size: 0.75rem;
  line-height: 1.7;
}


/* ==============================
   Capabilities
============================== */

.about-capabilities {
  padding: 9rem 0 12rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.about-capability-list {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.about-capability {
  display: grid;
  grid-template-columns:
    minmax(220px, 0.9fr)
    minmax(280px, 1fr)
    40px;
  align-items: center;
  gap: 2rem;
  padding: 2.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition:
    padding 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.45s ease;
}

.about-capability:hover {
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  background: rgba(255, 255, 255, 0.025);
}

.about-capability h2 {
  margin: 0 0 0 3rem;
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.about-capability p {
  max-width: 440px;
  margin: 0;
  color: #777;
  font-size: 0.85rem;
  line-height: 1.7;
}

.about-capability-arrow {
  color: #777;
  font-size: 1.2rem;
  transition:
    transform 0.4s ease,
    color 0.4s ease;
}

.about-capability:hover .about-capability-arrow {
  color: #fff;
  transform: translate(4px, -4px);
}


/* ==============================
   Tools
============================== */

.about-tools {
  padding: 9rem 0 12rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.about-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.12);
}

.about-tool-group {
  min-height: 320px;
  padding: 2.5rem;
  background: #0b0b0b;
}

.about-tool-label {
  display: block;
  margin-bottom: 3rem;
  color: #777;
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-tool-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-tool-group li {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #bbb;
  font-size: 1rem;
  line-height: 1.5;
}


/* ==============================
   Philosophy
============================== */

.about-philosophy {
  padding: 10rem 0 12rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.about-philosophy-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 5rem;
}

.about-philosophy-content > p {
  max-width: 1000px;
  margin: 0;
  color: #777;
  font-size: clamp(2.8rem, 6vw, 6.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.about-philosophy-content > p span {
  color: #fff;
}

.about-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  min-width: 230px;
  padding: 1.1rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  transition:
    background 0.35s ease,
    color 0.35s ease;
}

.about-contact-link:hover {
  background: #fff;
  color: #111;
}


/* About 页面返回顶部与 Footer 的距离 */
.about-page > .back-to-top {
  margin-bottom: var(--portfolio-page-bottom);
}






/* ==============================
   Tablet
============================== */

@media (max-width: 1000px) {
  .about-profile-grid {
    grid-template-columns:
      minmax(280px, 0.75fr)
      minmax(0, 1.25fr);
    gap: 4rem;
    align-items: start;
  }

  .about-biography {
    display: block;
  }

  .about-timeline-content > p:last-child {
    white-space: normal;
  }

  .about-biography-lead span {
    display: inline;
    white-space: normal;
  }

  .about-biography-text {
    grid-template-columns: 1fr;
    margin-top: 3.5rem;
    margin-bottom: 0;
  }

  .about-information {
    margin: 3.5rem 0 0;
  }

  .about-capability {
    grid-template-columns:
      minmax(180px, 0.8fr)
      minmax(220px, 1.2fr)
      30px;
  }

  .about-philosophy-content {
    grid-template-columns: 1fr;
  }

  .about-contact-link {
    width: fit-content;
  }
}


/* ==============================
   Mobile
============================== */

@media (max-width: 700px) {
  .about-page {
    width: var(--page-width-mobile);
  }

  .about-hero {
    padding-top: 9rem;
    padding-bottom: 7rem;
  }

  .about-hero-top {
    margin-bottom: 3rem;
  }

  .about-hero h1 {
    font-size: clamp(3.5rem, 17vw, 6rem);
  }

  .about-hero-bottom {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3.5rem;
  }

  .about-background-text {
    bottom: 1rem;
  }

  .about-profile {
    padding-top: 7rem;
    padding-bottom: 9rem;
  }

  .about-profile-grid {
    grid-template-columns: 1fr;
    gap: 5rem;
    align-items: start;
  }

  .about-visual {
    width: 100%;
    max-width: 520px;
  }

  .about-biography-text {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3.5rem;
    margin-bottom: 0;
  }

  .about-information {
    margin-top: 3.5rem;
  }

  .about-capabilities,
  .about-tools,
  .about-philosophy,
  .about-experience,
  .about-background {
    padding-top: 7rem;
    padding-bottom: 9rem;
  }

  .about-timeline {
    --timeline-date-column: 80px;
    --timeline-marker-column: 20px;
    --timeline-column-gap: 1rem;
    --timeline-row-padding: 2.5rem;
    --timeline-marker-offset: -6px;
  }
  
  .about-timeline-item {
    min-height: 200px;
  }

  .about-background-grid {
    grid-template-columns: 1fr;
  }

  .about-background-column {
    padding: 2rem;
  }

  .about-capability {
    grid-template-columns: minmax(0, 1fr) 25px;
    gap: 1rem;
    padding: 2rem 0;
  }

  .about-capability h2 {
    margin-left: 0;
  }

  .about-capability p {
    grid-column: 1 / 3;
    margin-top: 0.5rem;
  }

  .about-tools-grid {
    grid-template-columns: 1fr;
  }

  .about-tool-group {
    min-height: auto;
  }

  .about-philosophy-content {
    gap: 3rem;
  }


  .about-page > .back-to-top {
    margin-bottom: var(--portfolio-page-bottom-mobile);
  }
}


/* ==============================
   Small Mobile
============================== */

@media (max-width: 490px) {
  .about-section-heading {
    margin-bottom: 3rem;
  }

  .about-information > div {
    grid-template-columns: 90px 1fr;
    gap: 1rem;
  }

  .about-language-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .about-language-summary > span {
    width: 100%;
    justify-content: space-between;
  }

  .about-timeline {
    --timeline-date-column: 70px;
    --timeline-marker-column: 14px;
    --timeline-column-gap: 0.7rem;
    --timeline-marker-offset: -4px;
  }

  .about-timeline-date {
    font-size: 0.6rem;
  }

  .about-background-column {
    padding: 1.4rem;
  }

  .about-background-item {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .about-capability:hover {
    padding-right: 0;
    padding-left: 0;
  }

  .about-philosophy-content > p {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .about-contact-link {
    width: 100%;
  }

  
}
