/* ===== Language visibility (CSS controls) ===== */
html[data-ui-lang="zh"] [data-lang="en"] { display: none !important; }
html[data-ui-lang="en"] [data-lang="zh"] { display: none !important; }
:root{
  --bg:#fff;
  --text:#0f0f10;
  --muted:#6b6b6f;
  --hairline:rgba(15,15,16,.10);

  --max: 980px;
  --padX: 44px;
  --padY: 46px;

  --h1: 44px;
  --body: 15.5px;
  --lh: 1.72;
  --caps: 0.10em;
  --radius: 14px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", Arial;
  font-size:var(--body);
  line-height:var(--lh);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }
::selection{ background: rgba(15,15,16,.12); }

/* ---------- Single column shell ---------- */
.shell{
  min-height: 100%;
  padding: var(--padY) var(--padX);
  display:flex;
  justify-content:center;
}

.col{
  width: 100%;
  max-width: var(--max);
  padding-bottom: 78px; /* 给底部 tabs 留空间 */
}

/* ---------- Top ---------- */
.top{ padding-top: 2px; }
.topRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
}

.brand{
  font-size: 12px;
  letter-spacing: var(--caps);
  text-transform: uppercase;
  color: var(--muted);
}

.identity{ margin-top: 26px; }
.name{
  font-size: var(--h1);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.contact{
  color: var(--muted);
  display:flex;
  flex-direction:column;
  gap: 6px;
  font-size: 13px;
}

/* ---------- Language switch ---------- */
.langSwitch{ display:flex; gap:8px; }
.langBtn{
  border:1px solid rgba(15,15,16,.14);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  letter-spacing: var(--caps);
  text-transform: uppercase;
  cursor: pointer;
}
.langBtn:hover{
  color: var(--text);
  border-color: rgba(15,15,16,.28);
}
.langBtn.isActive{
  color: var(--text);
  border-color: rgba(15,15,16,.42);
  background: rgba(15,15,16,.04);
}

/* ---------- Panels ---------- */
.panelWrap{ margin-top: 30px; border-top: 1px solid var(--hairline); }
.panel{ display:none; padding-top: 28px; }
.panel.isActive{ display:block; }

.block{ padding: 18px 0 26px; border-bottom: 1px solid var(--hairline); }
.block:last-child{ border-bottom: 0; padding-bottom: 6px; }

.h2{
  font-size: 12px;
  letter-spacing: var(--caps);
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.p{ margin: 0 0 12px; max-width: 78ch; }
.muted{ color: var(--muted); }

/* ---------- Timeline ---------- */
.timeline{ display:flex; flex-direction:column; gap: 16px; }
.tRow{
  display:grid;
  grid-template-columns: 86px 1fr;
  column-gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15,15,16,.06);
}
.tRow:last-child{ border-bottom: 0; padding-bottom: 0; }
.tTime{
  font-size: 12px;
  letter-spacing: var(--caps);
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}
.tTitle{ font-weight: 650; margin-bottom: 4px; }
.tMeta{ color: var(--muted); font-size: 13px; }

/* ---------- Work grid ---------- */
.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card{
  border: 1px solid rgba(15,15,16,.10);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform .12s ease, border-color .12s ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(15,15,16,.22);
  text-decoration:none;
}

.thumb{
  width:100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: #f2f2f2;
  margin-bottom: 12px;
  overflow:hidden;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.cardTitle{
  font-weight: 650;
  margin-bottom: 6px;
  line-height: 1.35;
}
.cardMeta{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* ---------- Bottom tabs ---------- */
.tabs{
  position: fixed;
  left: 18px;
  bottom: 18px;
  display:flex;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(15,15,16,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tabBtn{
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: var(--caps);
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}
.tabBtn:hover{ color: var(--text); }
.tabBtn.isActive{
  color: var(--text);
  background: rgba(15,15,16,.06);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  :root{ --padX: 22px; --padY: 28px; --h1: 36px; }
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px){
  .grid{ grid-template-columns: 1fr; }
  .tRow{ grid-template-columns: 72px 1fr; }
  .tabs{ left: 12px; bottom: 12px; }
}
