:root{
  --bg:#ffffff;
  --ink:#111827;
  --muted:#6b7280;
  --blue:#2563eb;
  --orange:#ff8a3d;
  --green:#9be15d;
  --soft:#f6f8fb;
  --line:#e5e7eb;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Inter,Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  background:var(--bg);
  color:var(--ink);
}

body:before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(circle at 10% 10%,#dbeafe 0,transparent 28%),
    radial-gradient(circle at 90% 20%,#ffedd5 0,transparent 26%),
    radial-gradient(circle at 75% 85%,#ecfccb 0,transparent 28%);
  opacity:.75;
}

a{text-decoration:none;color:inherit}

.wrap{
  max-width:1120px;
  margin:auto;
  padding:24px;
}

nav{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.brand{
  font-weight:900;
  letter-spacing:-.04em;
}

.links{
  display:flex;
  gap:18px;
  color:var(--muted);
  font-size:14px;
}

button{
  border:0;
  border-radius:999px;
  padding:10px 16px;
  background:var(--ink);
  color:white;
  cursor:pointer;
}

.hero{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:44px;
  min-height:82vh;
  align-items:center;
}

.kicker{
  color:var(--blue);
  font-weight:800;
}

.hero h1{
  font-size:clamp(56px,9vw,118px);
  line-height:.88;
  letter-spacing:-.08em;
  margin:18px 0;
}

.hero p{
  max-width:680px;
  color:#374151;
  font-size:21px;
  line-height:1.7;
}

.pillrow,.tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}

.pill,.tag{
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:999px;
  padding:10px 14px;
  font-size:14px;
}

.visual{
  aspect-ratio:1;
  border-radius:28px;
  overflow:hidden;
  background:var(--soft);
  box-shadow:0 20px 60px rgba(17,24,39,.12);
}

.visual img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

section{
  padding:68px 0;
  border-top:1px solid var(--line);
}

h2{
  font-size:clamp(36px,5vw,64px);
  letter-spacing:-.06em;
  margin:0 0 24px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.card{
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:28px;
  padding:24px;
  transition:.25s ease;
  box-shadow:0 10px 30px rgba(17,24,39,.06);
}

.card:hover{
  transform:translateY(-5px);
  box-shadow:0 20px 50px rgba(17,24,39,.1);
}

.card h3{
  margin:0 0 10px;
}

.muted{
  color:var(--muted);
  line-height:1.75;
}

.project-list{
  display:grid;
  gap:14px;
}

.project-row{
  background:white;
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(17,24,39,.05);
}

.project-head{
  width:100%;
  background:white;
  color:var(--ink);
  padding:22px 24px;
  border-radius:0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  text-align:left;
  cursor:pointer;
}

.project-title{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.project-title strong{
  font-size:22px;
}

.project-title span{
  color:var(--muted);
  font-size:14px;
}

.plus{
  width:34px;
  height:34px;
  border-radius:50%;
  background:var(--soft);
  display:grid;
  place-items:center;
  font-size:22px;
  transition:.25s;
}

.project-row.open .plus{
  transform:rotate(45deg);
  background:var(--blue);
  color:white;
}

.project-body{
  max-height:0;
  overflow:hidden;
  transition:max-height .35s ease;
}

.project-row.open .project-body{
  max-height:560px;
}

.project-inner{
  padding:22px 24px 24px;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:20px;
  border-top:1px solid var(--line);
}

.project-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-content:flex-start;
}

.badge{
  background:#eff6ff;
  color:#1d4ed8;
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}

.section-head{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-end;
  margin-bottom:24px;
}

.light-btn{
  background:var(--soft);
  color:var(--ink);
  border:1px solid var(--line);
}

.photo-feature{
  overflow:hidden;
  border-radius:30px;
}

.photo-track{
  display:flex;
  gap:18px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding:8px 0 22px;
}

.photo-track::-webkit-scrollbar{
  height:8px;
}

.photo-track::-webkit-scrollbar-thumb{
  background:#d1d5db;
  border-radius:999px;
}

.photo-track img{
  flex:0 0 clamp(260px,32vw,420px);
  height:280px;
  object-fit:cover;
  border-radius:28px;
  scroll-snap-align:start;
  cursor:pointer;
  background:var(--soft);
  transition:.3s;
}

.photo-track img:hover{
  transform:translateY(-6px) scale(1.015);
  box-shadow:0 22px 60px rgba(17,24,39,.16);
}

.gallery-modal,
.lightbox{
  position:fixed;
  inset:0;
  z-index:100;
  display:none;
  background:rgba(17,24,39,.62);
  backdrop-filter:blur(10px);
}

.gallery-modal.open,
.lightbox.open{
  display:block;
}

.gallery-panel{
  width:min(1080px,calc(100% - 32px));
  max-height:86vh;
  overflow:auto;
  margin:7vh auto;
  background:white;
  border-radius:28px;
  padding:22px;
}

.gallery-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px;
}

.close-btn{
  width:38px;
  height:38px;
  border-radius:50%;
  padding:0;
  font-size:24px;
  line-height:1;
  background:var(--ink);
  color:white;
}

.filter-bar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:20px;
}

.filter-btn{
  background:var(--soft);
  color:var(--ink);
  border:1px solid var(--line);
}

.filter-btn.active{
  background:var(--ink);
  color:white;
}

.masonry-gallery{
  columns:3 240px;
  column-gap:14px;
}

.masonry-gallery img{
  width:100%;
  margin:0 0 14px;
  border-radius:20px;
  break-inside:avoid;
  cursor:pointer;
  background:var(--soft);
  transition:.25s;
}

.masonry-gallery img:hover{
  transform:scale(.985);
  opacity:.88;
}

.masonry-gallery img.hidden{
  display:none;
}

.lightbox{
  place-items:center;
}

.lightbox.open{
  display:grid;
}

.lightbox img{
  max-width:92vw;
  max-height:86vh;
  object-fit:contain;
  border-radius:18px;
  box-shadow:0 30px 80px rgba(0,0,0,.3);
}

.lightbox-close{
  position:fixed;
  right:24px;
  top:24px;
  z-index:130;
}

.lightbox-nav{
  position:fixed;
  top:50%;
  transform:translateY(-50%);
  width:52px;
  height:52px;
  border-radius:50%;
  padding:0;
  font-size:42px;
  line-height:1;
  background:rgba(255,255,255,.92);
  color:var(--ink);
  z-index:120;
}

.lightbox-nav.prev{
  left:28px;
}

.lightbox-nav.next{
  right:28px;
}

.contact{
  font-size:28px;
  font-weight:900;
  letter-spacing:-.04em;
}

.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:.65s;
}

.reveal.show{
  opacity:1;
  transform:none;
}

.cn .enText{display:none}
.en .cnText{display:none}

@media(max-width:850px){
  .hero,
  .grid,
  .project-inner{
    grid-template-columns:1fr;
  }

  .links{
    display:none;
  }

  .item{
    grid-template-columns:1fr;
  }

  .visual{
    max-width:420px;
  }

  .section-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .photo-track img{
    height:210px;
  }

  .lightbox-nav{
    width:44px;
    height:44px;
    font-size:34px;
  }

  .lightbox-nav.prev{
    left:12px;
  }

  .lightbox-nav.next{
    right:12px;
  }
}

.icp{
  margin-top:40px;
  text-align:center;
  font-size:12px;
  color:#9ca3af;
}

.icp a{
  color:inherit;
  text-decoration:none;
}

.icp a:hover{
  text-decoration:underline;
}

/* Experience 手风琴 + Timeline 动画 */

.experience-list{
  display:grid;
  gap:14px;
}

.exp-row{
  position:relative;
  background:white;
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(17,24,39,.05);
  transition:.25s ease;
}

.exp-row.open::before,
.exp-row:hover::before{
  border-color:var(--blue);
  box-shadow:0 0 0 8px rgba(37,99,235,.12);
  background:var(--blue);
}

.exp-row:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 46px rgba(17,24,39,.09);
}

.exp-head{
  width:100%;
  background:white;
  color:var(--ink);
  padding:22px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  cursor:pointer;
  border:0;
  border-radius:0;
  text-align:left;
}

.exp-head strong{
  display:block;
  font-size:19px;
  color:var(--ink);
  letter-spacing:-.02em;
}

.exp-head .muted{
  margin-top:6px;
  font-size:14px;
  color:var(--muted);
}

.exp-body{
  max-height:0;
  overflow:hidden;
  background:white;
  transition:max-height .35s ease;
}

.exp-row.open .exp-body{
  max-height:560px;
}

.exp-inner{
  padding:22px 24px 24px;
  border-top:1px solid var(--line);
  color:var(--ink);
}

.exp-inner p{
  margin-top:0;
  color:var(--muted);
  line-height:1.75;
}

.exp-row .plus{
  flex:0 0 34px;
}

.exp-row.open .plus{
  transform:rotate(45deg);
  background:var(--blue);
  color:white;
}