/* ============================================================
   郭泽涛 · 个人主页
   极简干净：暖白纸面 + 墨色文字 + 单一墨绿强调色
   ============================================================ */

:root {
  --paper:        #FBFAF7;
  --paper-raised: #F5F3EE;
  --ink:          #14130F;
  --ink-soft:     #4B4841;
  --muted:        #8C877D;
  --line:         #E6E2DA;
  --line-strong:  #D6D1C6;
  --accent:       #2E5D4E;
  --accent-soft:  #EDF2EF;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei",
          "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
          "Liberation Mono", "Courier New", monospace;

  --pad: clamp(20px, 5vw, 64px);
  --maxw: 1120px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- 通用小字 ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   导航
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, .82);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
}
.brand .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 32px);
}
.nav-links a {
  position: relative;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ============================================================
   首屏
   ============================================================ */
.hero {
  padding: clamp(72px, 13vh, 168px) 0 clamp(72px, 10vh, 128px);
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(46px, 8.6vw, 104px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
}
.br-mobile { display: none; }

.tagline {
  margin-top: 30px;
  max-width: 30em;
  font-size: clamp(16.5px, 1.9vw, 21px);
  line-height: 1.78;
  color: var(--ink-soft);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 40px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--paper-raised);
}
.pulse {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: .55;
  animation: ring 2.4s var(--ease) infinite;
}
@keyframes ring {
  0%   { transform: scale(.7); opacity: .6; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(56px, 9vh, 96px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.scroll-cue svg { transition: transform .35s var(--ease); }
.scroll-cue:hover { color: var(--ink); }
.scroll-cue:hover svg { transform: translateY(3px); }

/* ============================================================
   区块标题
   ============================================================ */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.005em;
}

/* ============================================================
   作品列表
   ============================================================ */
.work {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 112px);
}

.list { border-top: 1px solid var(--line); }

.item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 232px;
  gap: 8px 28px;
  align-items: start;
  padding: clamp(26px, 3.4vw, 36px) 8px clamp(26px, 3.4vw, 36px) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .4s var(--ease), padding-left .4s var(--ease);
}
.item:hover {
  background: linear-gradient(90deg, var(--accent-soft), rgba(237, 242, 239, 0) 72%);
  padding-left: 14px;
}

.idx {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  padding-top: 7px;
  letter-spacing: .06em;
}

.item-title {
  font-size: clamp(18px, 2.1vw, 22px);
  font-weight: 600;
  line-height: 1.45;
  transition: color .3s var(--ease);
}
.item:hover .item-title { color: var(--accent); }

.item-desc {
  margin-top: 9px;
  max-width: 40em;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.item-side {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  padding-top: 5px;
}
.tag {
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.item:hover .tag { border-color: #C3CFC9; color: var(--ink-soft); }

.arrow {
  display: none;
}

/* ============================================================
   联系方式
   ============================================================ */
.contact {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 112px);
  background:
    radial-gradient(120% 100% at 100% 0%, var(--accent-soft) 0%, rgba(237, 242, 239, 0) 55%);
}

.contact-note {
  max-width: 32em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.email-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.email {
  position: relative;
  font-family: var(--mono);
  font-size: clamp(17px, 2.6vw, 26px);
  letter-spacing: -.01em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color .3s var(--ease), color .3s var(--ease);
  word-break: break-all;
}
.email:hover { color: var(--accent); border-bottom-color: var(--accent); }

.copy {
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
  transition: all .28s var(--ease);
}
.copy:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(22px, 3vw, 34px);
  margin-top: clamp(40px, 6vw, 64px);
}
.socials a,
.link-btn {
  position: relative;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 2px 0;
  transition: color .25s var(--ease);
}
.socials a::after,
.link-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--line-strong);
  transition: background-color .25s var(--ease);
}
.socials a:hover,
.link-btn:hover { color: var(--accent); }
.socials a:hover::after,
.link-btn:hover::after { background: var(--accent); }

/* ============================================================
   页脚
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  background: var(--paper-raised);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  height: 68px;
  font-size: 12px;
  color: var(--muted);
}
.mono { font-family: var(--mono); letter-spacing: .06em; }

/* ============================================================
   提示浮层
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   入场动效
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 860px) {
  .item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 6px 16px;
  }
  .item-side {
    grid-column: 2;
    justify-content: flex-start;
    margin-top: 10px;
    padding-top: 0;
  }
}

@media (max-width: 600px) {
  .br-mobile { display: inline; }
  .hero h1 { font-size: clamp(40px, 12vw, 60px); line-height: 1.15; }
  .tagline { margin-top: 22px; }
  .status { margin-top: 30px; font-size: 12px; }
  .scroll-cue { margin-top: 48px; }
  .nav-links { gap: 18px; }
  .email-row { gap: 12px; }
  .footer-inner { height: auto; padding: 20px var(--pad); }
}

/* ============================================================
   无障碍 / 动效偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse::after { animation: none; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
