@charset "UTF-8";

/* 田元个人简历站 - 宝塔传统项目版 */
:root {
  --ink: #080a0a;
  --ink-soft: #111414;
  --paper: #e9e9e2;
  --muted: #9b9e97;
  --acid: #d8ff3f;
  --cyan: #38e8ff;
  --violet: #8f67ff;
  --line: rgba(233, 233, 226, 0.18);
  --display: "Arial Black", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--acid); color: var(--ink); }

.nav-shell {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 10, 0.76);
  backdrop-filter: blur(18px);
}
.wordmark { justify-self: start; font: 900 23px/1 var(--display); letter-spacing: -.08em; }
.wordmark span { color: var(--acid); }
.nav-links { display: flex; gap: 28px; color: #b9bbb5; font: 700 11px/1 var(--mono); letter-spacing: .12em; }
.nav-links a, .nav-cta { transition: color .25s ease; }
.nav-links a:hover, .nav-cta:hover { color: var(--acid); }
.nav-cta { justify-self: end; font: 700 11px/1 var(--mono); letter-spacing: .12em; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 28vw);
  align-items: end;
  gap: clamp(30px, 6vw, 90px);
  padding: 155px clamp(20px, 4vw, 64px) 42px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero-beam {
  position: absolute;
  z-index: -2;
  width: 66vw;
  aspect-ratio: 1;
  right: -16vw;
  top: -8vw;
  border: 1px solid rgba(216, 255, 63, .48);
  border-radius: 50%;
  box-shadow: 0 0 140px rgba(216, 255, 63, .08), inset 0 0 130px rgba(216, 255, 63, .05);
}
.hero-beam::before, .hero-beam::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid var(--line);
  border-radius: inherit;
}
.hero-beam::after { inset: 36%; background: radial-gradient(circle, rgba(56,232,255,.2), transparent 68%); }
.hero-content { min-width: 0; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: #c4c5bf;
  font: 700 11px/1.4 var(--mono);
  letter-spacing: .16em;
}
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 16px var(--acid); }
.hero h1 { margin: 0; font: 900 clamp(92px, 17vw, 250px)/.7 var(--display); letter-spacing: -.105em; }
.hero h1 > span {
  display: block;
  margin-top: .3em;
  padding-left: .06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--paper);
  font-size: .36em;
  letter-spacing: -.045em;
}
.hero-bottom { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 36px; margin-top: 60px; }
.hero-intro { margin: 0; font-size: clamp(24px, 3vw, 45px); line-height: 1.12; font-weight: 800; letter-spacing: -.045em; }
.hero-note { margin: 0; color: var(--muted); font: 500 12px/1.8 var(--mono); }
.portrait-card { align-self: center; width: min(100%, 330px); justify-self: end; transform: rotate(2deg); }
.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: .82;
  background: var(--paper);
  border: 1px solid rgba(216,255,63,.7);
  box-shadow: 24px 24px 0 rgba(216,255,63,.1);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.72) contrast(1.08); }
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(8,10,10,.13) 4px);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.portrait-scan { position: absolute; z-index: 2; inset: 0 0 auto; height: 2px; background: var(--acid); box-shadow: 0 0 18px var(--acid); }
.portrait-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; color: var(--muted); font: 700 10px/1 var(--mono); letter-spacing: .12em; }
.scroll-cue {
  position: absolute;
  left: clamp(20px, 4vw, 64px);
  bottom: 44px;
  transform: translateY(calc(100% + 16px));
  display: none;
}

.proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--acid); color: var(--ink); }
.proof-strip div { min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; padding: 27px clamp(20px, 3vw, 48px); border-right: 1px solid rgba(8,10,10,.28); }
.proof-strip div:last-child { border: 0; }
.proof-strip strong { font: 900 clamp(42px, 5.6vw, 86px)/.85 var(--display); letter-spacing: -.08em; }
.proof-strip span { font: 700 12px/1.2 var(--mono); }

.section-shell { padding: 120px clamp(20px, 5vw, 80px); }
.section-head { display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; align-items: end; gap: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.section-head p, .project-index, .item-number, .item-period { margin: 0; color: var(--muted); font: 700 10px/1.4 var(--mono); letter-spacing: .13em; }
.section-head h2 { margin: 0; font: 900 clamp(54px, 8vw, 118px)/.75 var(--display); letter-spacing: -.075em; }

.about { background: var(--paper); color: var(--ink); }
.about .section-head { border-color: rgba(8,10,10,.22); }
.about .section-head p { color: #555852; }
.about-grid { display: grid; grid-template-columns: 2.2fr 1fr; gap: clamp(50px, 9vw, 150px); align-items: end; padding-top: 70px; }
.about-lead { margin: 0; font-size: clamp(33px, 5.2vw, 78px); line-height: 1.08; font-weight: 800; letter-spacing: -.055em; }
.about-lead span { text-decoration: underline; text-decoration-color: var(--acid); text-decoration-thickness: .18em; text-underline-offset: .05em; }
.about-side > p { margin: 0 0 40px; color: #454843; font-size: 15px; line-height: 1.85; }
.contact-mini { display: grid; gap: 12px; font: 700 11px/1.4 var(--mono); }
.contact-mini a { padding-bottom: 10px; border-bottom: 1px solid rgba(8,10,10,.2); }

.experience { background: var(--ink); }
.timeline { counter-reset: roles; }
.timeline-item {
  display: grid;
  grid-template-columns: 70px minmax(170px, .8fr) 3fr;
  gap: 30px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, padding .3s ease;
}
.timeline-item:hover { background: rgba(216,255,63,.035); padding-left: 18px; padding-right: 18px; }
.item-number { color: var(--acid); }
.item-period { color: #c5c7c0; }
.item-role { margin: 0 0 12px; color: var(--acid); font: 700 11px/1.4 var(--mono); letter-spacing: .08em; }
.item-main h3 { margin: 0; font-size: clamp(27px, 3vw, 46px); line-height: 1.05; letter-spacing: -.05em; }
.item-copy { max-width: 760px; margin: 20px 0; color: #b9bbb4; font-size: 16px; line-height: 1.7; }
.item-main ul { max-width: 850px; display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; line-height: 1.65; }
.item-main li { position: relative; padding-left: 18px; }
.item-main li::before { content: "↳"; position: absolute; left: 0; color: var(--acid); }

.education { background: #101313; }
.education-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 55px; background: var(--line); border: 1px solid var(--line); }
.education-card { min-height: 315px; display: flex; flex-direction: column; padding: 32px; background: var(--ink-soft); }
.education-card p { margin: 0 0 auto; color: var(--acid); font: 700 11px/1 var(--mono); }
.education-card h3 { margin: 55px 0 10px; font-size: clamp(27px, 3vw, 42px); letter-spacing: -.05em; }
.education-card strong { font-size: 16px; }
.education-card span { margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.course-line { overflow: hidden; margin: 55px 0 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--cyan); font: 800 clamp(13px, 1.4vw, 20px)/1 var(--mono); letter-spacing: .05em; white-space: nowrap; }

.skills { background: var(--paper); color: var(--ink); }
.skills .section-head { border-color: rgba(8,10,10,.22); }
.skills .section-head p { color: #555852; }
.skills-list { margin-top: 55px; border-top: 1px solid rgba(8,10,10,.22); }
.skill-row { display: grid; grid-template-columns: minmax(150px, .8fr) 3fr; gap: 30px; padding: 34px 0; border-bottom: 1px solid rgba(8,10,10,.22); }
.skill-row p { margin: 5px 0 0; font: 800 11px/1 var(--mono); letter-spacing: .12em; }
.skill-row h3 { margin: 0; font-size: clamp(22px, 3vw, 43px); line-height: 1.15; letter-spacing: -.045em; }
.language-note { display: flex; justify-content: space-between; gap: 25px; margin-top: 55px; padding: 24px; background: var(--acid); font-family: var(--mono); }
.language-note span { font-size: 10px; letter-spacing: .13em; }
.language-note strong { font-size: 13px; }

.projects { background: var(--ink); }
.projects-intro { padding-bottom: 70px; }
.projects-intro > p { max-width: 570px; margin: 45px 0 0 auto; color: var(--muted); font-size: 14px; line-height: 1.75; }
.project-stack { display: grid; }
.project-card { border-top: 1px solid var(--line); }
.project-visual { position: relative; isolation: isolate; overflow: hidden; min-height: min(72vw, 820px); }
.visual-label { position: absolute; z-index: 6; left: clamp(20px, 4vw, 64px); bottom: 28px; margin: 0; color: rgba(255,255,255,.75); font: 700 10px/1 var(--mono); letter-spacing: .14em; }
.visual-noise { position: absolute; inset: 0; z-index: 5; opacity: .12; background-image: repeating-linear-gradient(0deg, transparent 0 3px, #fff 4px); mix-blend-mode: soft-light; pointer-events: none; }
.project-info { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; padding: 42px clamp(20px, 5vw, 80px) 100px; }
.project-info > div { max-width: 970px; }
.project-info h3 { margin: 0; font: 900 clamp(38px, 5vw, 74px)/.95 var(--display); letter-spacing: -.065em; }
.project-info > div > p { max-width: 760px; margin: 25px 0; color: #b7bab3; font-size: 15px; line-height: 1.8; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #c8cac3; font: 700 10px/1 var(--mono); }

.visual-ai { background: radial-gradient(circle at 50% 48%, rgba(56,232,255,.22), transparent 24%), radial-gradient(circle at 70% 30%, rgba(143,103,255,.2), transparent 30%), #05080a; }
.visual-ai::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(56,232,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(56,232,255,.11) 1px, transparent 1px); background-size: 44px 44px; perspective: 300px; transform: scale(1.15) rotate(6deg); }
.attention-ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(56,232,255,.65); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 50px rgba(56,232,255,.14); }
.ring-one { width: min(52vw, 680px); aspect-ratio: 1; }
.ring-two { width: min(34vw, 450px); aspect-ratio: 1; border-color: rgba(216,255,63,.8); }
.ring-one::before, .ring-one::after, .ring-two::before, .ring-two::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 20px var(--cyan); }
.ring-one::before { top: 10%; left: 19%; } .ring-one::after { right: 2%; top: 53%; }
.ring-two::before { left: -4px; top: 48%; background: var(--acid); box-shadow: 0 0 20px var(--acid); } .ring-two::after { right: 14%; bottom: 8%; background: var(--violet); box-shadow: 0 0 20px var(--violet); }
.attention-core { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 110px; aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px solid var(--acid); border-radius: 50%; background: rgba(8,10,10,.86); color: var(--acid); font: 900 16px/1 var(--mono); box-shadow: 0 0 60px rgba(216,255,63,.25); }
.token-stream { position: absolute; left: 7%; right: 7%; top: 12%; display: flex; justify-content: space-between; color: rgba(56,232,255,.62); font: 700 clamp(9px, 1vw, 13px)/1 var(--mono); letter-spacing: .12em; }

.visual-community-image {
  min-height: 0;
  aspect-ratio: 2532 / 1312;
  background: #03090d;
}
.visual-community-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 52%, rgba(2, 7, 10, .9));
  pointer-events: none;
}
.community-badge {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 6vw, 100px);
  bottom: clamp(24px, 4vw, 58px);
  display: grid;
  gap: 16px;
  text-align: right;
}
.community-badge strong { font: 900 clamp(64px, 10vw, 152px)/.74 var(--display); letter-spacing: -.08em; color: var(--paper); text-shadow: 0 10px 35px #000; }
.community-badge span { color: #75caff; font: 800 11px/1 var(--mono); letter-spacing: .18em; text-shadow: 0 2px 8px #000; }

.visual-trading-image {
  min-height: 0;
  aspect-ratio: 1904 / 936;
  background: #111517;
}
.visual-trading-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 8, 9, .86));
  pointer-events: none;
}
.trading-badge {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 5vw, 80px);
  bottom: clamp(22px, 4vw, 60px);
  display: grid;
  gap: 12px;
  text-align: right;
}
.trading-badge strong {
  color: var(--paper);
  font: 900 clamp(52px, 8vw, 126px)/.78 var(--display);
  letter-spacing: -.08em;
  text-shadow: 0 4px 35px rgba(0, 0, 0, .82);
}
.trading-badge span {
  color: var(--acid);
  font: 800 10px/1 var(--mono);
  letter-spacing: .16em;
}

.visual-visionflow {
  min-height: 0;
  aspect-ratio: 2560 / 1317;
  background: #091120;
}
.project-screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.visual-visionflow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 58%, rgba(4, 9, 18, .88));
  pointer-events: none;
}
.visionflow-badge {
  position: absolute;
  z-index: 3;
  left: clamp(20px, 5vw, 80px);
  bottom: clamp(22px, 4vw, 60px);
  display: grid;
  gap: 10px;
}
.visionflow-badge strong {
  font: 900 clamp(36px, 6vw, 92px)/.82 var(--display);
  letter-spacing: -.07em;
  text-shadow: 0 4px 35px rgba(0, 0, 0, .75);
}
.visionflow-badge span {
  color: #8bb4ff;
  font: 800 10px/1 var(--mono);
  letter-spacing: .16em;
}

footer { min-height: 72svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 100px clamp(20px, 5vw, 80px) 35px; background: var(--acid); color: var(--ink); }
.footer-kicker { margin: 0 0 28px; font: 800 11px/1 var(--mono); letter-spacing: .15em; }
footer > a { max-width: 1100px; font: 900 clamp(53px, 8.5vw, 130px)/.88 var(--display); letter-spacing: -.08em; text-decoration: underline; text-decoration-thickness: .05em; text-underline-offset: .08em; }
footer > div { display: flex; justify-content: space-between; gap: 24px; margin-top: 100px; padding-top: 20px; border-top: 1px solid rgba(8,10,10,.35); font: 800 10px/1 var(--mono); letter-spacing: .12em; }

a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }

@media (max-width: 900px) {
  .nav-shell { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr 210px; }
  .hero h1 { font-size: clamp(86px, 18vw, 150px); }
  .hero-bottom { grid-template-columns: 1fr; }
  .portrait-card { align-self: end; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-strip div:nth-child(2) { border-right: 0; }
  .proof-strip div:nth-child(-n + 2) { border-bottom: 1px solid rgba(8,10,10,.28); }
  .about-grid { grid-template-columns: 1fr; }
  .about-side { max-width: 600px; margin-left: auto; }
  .timeline-item { grid-template-columns: 50px 150px 1fr; }
  .education-grid { grid-template-columns: 1fr; }
  .education-card { min-height: 240px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 70px; }
  .nav-shell { padding: 18px 20px; }
  .hero { grid-template-columns: 1fr; align-content: end; padding: 130px 20px 38px; }
  .hero h1 { font-size: 29vw; }
  .hero h1 > span { font-size: .33em; }
  .hero-beam { width: 110vw; right: -55vw; top: 6vh; }
  .hero-bottom { margin-top: 45px; }
  .portrait-card { position: absolute; right: 20px; top: 110px; width: 112px; opacity: .82; transform: rotate(3deg); }
  .portrait-caption { display: none; }
  .proof-strip div { min-height: 135px; padding: 22px 20px; }
  .proof-strip strong { font-size: 38px; }
  .section-shell { padding: 85px 20px; }
  .section-head { grid-template-columns: 1fr; gap: 32px; }
  .section-head h2 { font-size: 72px; }
  .about-grid { padding-top: 45px; }
  .about-lead { font-size: 36px; }
  .timeline-item { grid-template-columns: 40px 1fr; gap: 16px; }
  .item-period { grid-column: 2; grid-row: 1; }
  .item-main { grid-column: 2; }
  .timeline-item:hover { padding-left: 0; padding-right: 0; }
  .education-card { padding: 25px; }
  .skill-row { grid-template-columns: 1fr; gap: 16px; }
  .language-note { display: grid; }
  .project-visual { min-height: 76svh; }
  .project-info { grid-template-columns: 1fr; padding: 30px 20px 75px; }
  .project-info h3 { font-size: 43px; }
  .token-stream { top: 17%; flex-wrap: wrap; gap: 18px; }
  .ring-one { width: 85vw; } .ring-two { width: 58vw; }
  .visual-community-image { aspect-ratio: auto; min-height: 58vw; }
  .community-badge { right: 20px; }
  .visual-trading-image { aspect-ratio: auto; min-height: 58vw; }
  .visual-visionflow { aspect-ratio: auto; min-height: 58vw; }
  footer { min-height: 70svh; padding: 80px 20px 26px; }
  footer > a { font-size: 16vw; }
  footer > div { flex-direction: column; margin-top: 70px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-beam { animation: orbit 12s ease-in-out infinite alternate; }
  .portrait-scan { animation: scan 3.2s linear infinite; }
  .ring-one { animation: spin 18s linear infinite; }
  .ring-two { animation: spin-reverse 13s linear infinite; }
  @keyframes orbit { to { transform: rotate(8deg) scale(1.04); } }
  @keyframes scan { from { top: 0; } to { top: 100%; } }
  @keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
  @keyframes spin-reverse { to { transform: translate(-50%, -50%) rotate(-360deg); } }
}
