﻿:root {
  --bg: #f6f2ea;
  --bg-soft: #fbf8f1;
  --ink: #171512;
  --muted: #6f665b;
  --line: rgba(23, 21, 18, 0.14);
  --line-strong: rgba(23, 21, 18, 0.32);
  --paper: rgba(255, 252, 245, 0.78);
  --paper-solid: #fffaf1;
  --accent: #ff6b35;
  --accent-soft: rgba(255, 107, 53, 0.12);
  --shadow: 0 24px 70px rgba(35, 28, 17, 0.11);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: min(1120px, calc(100vw - 36px));
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 8%, rgba(255, 107, 53, 0.18), transparent 25rem),
    radial-gradient(circle at 90% 0%, rgba(23, 21, 18, 0.08), transparent 32rem),
    linear-gradient(120deg, #f8f2e8 0%, #f4efe7 42%, #faf7f0 100%);
  font-family: var(--sans);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 21, 18, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 18, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 72%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(23, 21, 18, 0.07) 0 1px, transparent 1px),
    radial-gradient(circle at 87% 44%, rgba(23, 21, 18, 0.06) 0 1px, transparent 1px);
  background-size: 18px 18px, 23px 23px;
  mix-blend-mode: multiply;
}

::selection {
  color: var(--bg-soft);
  background: var(--ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: 3px;
  background: transparent;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ink);
  transform-origin: 0 50%;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: var(--container);
  margin: 14px auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 241, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(35, 28, 17, 0.06);
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.brand-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(43, 33, 24, 0.14);
  background: #fbf7ef;
  box-shadow: 0 10px 30px rgba(43, 33, 24, 0.08);
}

.brand-text {
  overflow: hidden;
  max-width: 180px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(23, 21, 18, 0.045);
}

@media (max-width: 980px) {
  .nav {
    display: none;
    width: 100%;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-start;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    border-radius: 16px;
  }
  .nav.is-open {
    display: flex;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}

.nav-toggle:hover {
  background: rgba(255, 250, 241, 0.5);
  border-color: var(--line-strong);
}

.nav-toggle svg {
  stroke: var(--muted);
}


.nav-open-icon { display: block; }
.nav-close-icon { display: none; }
.nav-toggle.is-open .nav-open-icon { display: none; }
.nav-toggle.is-open .nav-close-icon { display: block; }

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
  background: rgba(255, 250, 241, 0.9);
}

main {
  width: var(--container);
  margin: 0 auto;
}

.section {
  scroll-margin-top: 110px;
  padding: clamp(72px, 10vw, 132px) 0;
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding-top: clamp(64px, 9vw, 112px);
}

.eyebrow,
.tiny-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-title {
  font-family:
    "Noto Serif SC",
    "Source Han Serif SC",
    "Songti SC",
    Georgia,
    serif;
  font-size: clamp(3.6rem, 8.5vw, 7.6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #2a2118;
}

.hero-title span {
  display: block;
  transform-origin: left bottom;
  margin-bottom: 0.08em;
  animation: titleIn 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-title span:nth-child(2) {
  animation-delay: 110ms;
}

.hero-subtitle {
  max-width: 720px;
  margin: 30px 0 0;
  color: #3f3931;
  font-size: clamp(1.08rem, 1.6vw, 1.34rem);
  line-height: 1.9;
  letter-spacing: -0.01em;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 0;
  background: rgba(255, 255, 255, 0.12);
  transition: height 220ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover::after {
  height: 100%;
}

.btn-primary {
  color: var(--paper-solid);
  background: var(--ink);
}

.btn-ghost {
  background: rgba(255, 250, 241, 0.5);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 250, 241, 0.48);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.signal-card {
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 250, 241, 0.9), rgba(255, 250, 241, 0.58)),
    radial-gradient(circle at 50% 0%, var(--accent-soft), transparent 26rem);
  box-shadow: var(--shadow);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 180ms ease, box-shadow 200ms ease;
}

.signal-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(23, 21, 18, 0.12);
  border-radius: 24px;
  pointer-events: none;
}

.signal-card::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -95px;
  top: 72px;
  border-radius: 50%;
  border: 1px solid rgba(23, 21, 18, 0.12);
  background: repeating-radial-gradient(circle, rgba(23, 21, 18, 0.12) 0 1px, transparent 1px 16px);
  opacity: 0.55;
}

.signal-card__top,
.signal-card__body,
.signal-meter,
.mini-index {
  position: relative;
  z-index: 1;
}

.signal-card__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 250, 241, 0.72);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.13);
  animation: pulse 1.8s ease-in-out infinite;
}

.signal-card__body {
  margin-top: auto;
}

.signal-card__body p:last-child {
  margin: 0;
  max-width: 300px;
  font-size: 1.45rem;
  line-height: 1.45;
  letter-spacing: -0.055em;
}

.signal-meter {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 34px;
}

.signal-meter span {
  display: block;
  height: calc(34px + var(--i) * 9px);
  align-self: end;
  border: 1px solid rgba(23, 21, 18, 0.14);
  border-radius: 999px 999px 9px 9px;
  background: rgba(23, 21, 18, calc(0.055 + var(--i) * 0.018));
  transform-origin: bottom;
  animation: growBar 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 100ms);
}

.mini-index {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.mini-index a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(23, 21, 18, 0.1);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.mini-index a span:last-child {
  color: var(--ink);
}

.section-shell {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.5fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.section-heading {
  position: sticky;
  top: 118px;
}

.section-heading h2,
.wide-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.8vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.section-heading p:not(.eyebrow),
.wide-heading p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.85;
}

.focus-grid,
.method-list,
.note-grid,
.thought-grid,
.project-list {
  display: grid;
  gap: 16px;
}

.focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 241, 0.62);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.focus-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: rgba(255, 250, 241, 0.9);
}

.focus-number {
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 800;
}

.focus-card h3,
.method-card h3,
.note-card h3,
.thought-card h3 {
  margin: auto 0 12px;
  font-size: 1.35rem;
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.focus-card p,
.method-card li,
.note-card p,
.thought-card p,
.project-section p,
.project-card__summary,
.contact p {
  color: var(--muted);
  line-height: 1.8;
}

.method-card {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 241, 0.56);
}

.method-label,
.project-meta,
.note-meta,
.thought-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.method-card h3 {
  margin-top: 0;
}

.method-card ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 1.2em;
}

.wide-heading {
  max-width: 880px;
  margin-bottom: 36px;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 0.56fr) minmax(0, 1.44fr);
  gap: 34px;
  min-height: 420px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.86), rgba(255, 250, 241, 0.6)),
    radial-gradient(circle at 90% 8%, rgba(255, 107, 53, 0.11), transparent 28rem);
  box-shadow: 0 16px 45px rgba(35, 28, 17, 0.055);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 200ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.project-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.project-card::after {
  content: attr(data-index);
  position: absolute;
  right: 26px;
  bottom: -10px;
  color: rgba(23, 21, 18, 0.05);
  font-family: var(--mono);
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 900;
  line-height: 0.8;
  pointer-events: none;
}

.project-card__rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.project-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 250, 241, 0.64);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-index {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.06rem;
  font-weight: 900;
}

.project-card__main {
  position: relative;
  z-index: 1;
}

.project-card h3 {
  margin: 8px 0 18px;
  max-width: 760px;
  font-size: clamp(2rem, 4.4vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.project-card__summary {
  max-width: 740px;
  margin: 0 0 30px;
  font-size: 1.05rem;
}

.project-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.project-section {
  padding: 18px;
  border: 1px solid rgba(23, 21, 18, 0.11);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.54);
}

.project-section h4 {
  margin: 0 0 10px;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.project-section p {
  margin: 0;
  font-size: 0.94rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--ink);
  font-weight: 780;
}

.text-link::after {
  content: "鈫?;
  font-family: var(--mono);
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translate(3px, -3px);
}

.note-grid,
.thought-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.note-card,
.thought-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 241, 0.58);
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}

.note-card:hover,
.thought-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: rgba(255, 250, 241, 0.86);
}

.note-card h3,
.thought-card h3 {
  margin-top: auto;
}

.note-card p,
.thought-card p {
  margin-bottom: 0;
}

.contact {
  padding-bottom: 92px;
}

.contact-card {
  padding: clamp(30px, 7vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(23, 21, 18, 0.94), rgba(23, 21, 18, 0.86)),
    radial-gradient(circle at 8% 0%, rgba(255, 107, 53, 0.28), transparent 26rem);
  color: var(--paper-solid);
  box-shadow: var(--shadow);
}

.contact-card .eyebrow,
.contact-card p {
  color: rgba(255, 250, 241, 0.72);
}

.contact-card h2 {
  max-width: 940px;
}

.contact-card p {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: 1.08rem;
}

.contact-card .btn {
  border-color: rgba(255, 250, 241, 0.36);
}

.contact-card .btn-primary {
  color: var(--ink);
  background: var(--paper-solid);
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.contact-card .btn-primary:hover {
  transform: translateY(-2px);
  background: var(--bg-soft);
}

.contact-card .btn-ghost {
  color: var(--paper-solid);
  background: rgba(255, 250, 241, 0.12);
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.contact-card .btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 250, 241, 0.22);
}

.footer {
  width: var(--container);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 26px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes titleIn {
  from {
    opacity: 0;
    transform: translateY(18px) rotateX(12deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.72);
  }
}

@keyframes growBar {
  from {
    transform: scaleY(0.2);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* 绉诲姩绔鑸粯璁ら殣钘?*/
@media (max-width: 980px) {
  .topbar {
    align-items: stretch;
    border-radius: 28px;
    padding: 10px 14px;
  }

  .brand-text {
    max-width: 140px;
  }

  /* 瀵艰埅榛樿鏀惰捣锛屼粎閫氳繃姹夊牎鎸夐挳灞曞紑 */
  .nav {
    display: none;
    width: 100%;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-start;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  /* 鏄剧ず姹夊牎鎸夐挳 */
  .nav-toggle {
    display: inline-flex;
  }

  /* 鏆楄壊妯″紡鎸夐挳浜や簰 */
  [data-theme="dark"] .theme-toggle:hover,
  [data-theme="dark"] .nav-toggle:hover {
    background: rgba(246, 239, 227, 0.12);
    border-color: var(--line-strong);
  }

  [data-theme="dark"] .nav-toggle.is-open {
    background: rgba(246, 239, 227, 0.1);
    border-color: var(--line-strong);
  }

  .hero,
  .section-shell {
    grid-template-columns: 1fr;
  }

  .section-heading {
    position: static;
  }

  .focus-grid,
  .project-sections,
  .note-grid,
  .thought-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .signal-card {
    min-height: 380px;
  }
}

/* 妗岄潰绔?topbar 姘村钩甯冨眬 */
@media (min-width: 981px) {
  .topbar {
    flex-direction: row;
    align-items: center;
    border-radius: 999px;
    padding: 12px;
  }

  .topbar-row {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(23, 21, 18, 0.045);
    margin-top: 0;
    padding-top: 4px;
    border-top: none;
    max-height: none;
    opacity: 1;
    width: auto;
  }

  /* 妗岄潰绔殣钘忔眽鍫℃寜閽?*/
  .nav-toggle {
    display: none !important;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 22px, 1120px);
  }

  .topbar {
    top: 8px;
    margin-top: 8px;
    padding: 10px;
  }

  .brand-text {
    max-width: 126px;
  }

  .nav-link {
    padding: 0 12px;
  }

  .section {
    padding: 64px 0;
  }

  .hero-title {
    letter-spacing: -0.075em;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .method-card {
    grid-template-columns: 1fr;
  }

  .project-card,
  .contact-card {
    padding: 22px;
    border-radius: 24px;
  }

  .project-card h3 {
    font-size: 2.2rem;
  }

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* 鏇存柊鎻愮ず Toast */
.update-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #171512;
  color: #fffaf0;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(23, 21, 18, 0.2);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: transform 300ms ease, opacity 300ms ease;
}

.update-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.update-btn {
  padding: 6px 16px;
  background: #ff6b35;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease;
}

.update-btn:hover {
  transform: scale(1.05);
}

.dismiss-btn {
  padding: 4px 8px;
  background: transparent;
  color: #fffaf0;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 180ms ease;
}

.dismiss-btn:hover {
  opacity: 1;
}

/* 涓婚鍒囨崲鎸夐挳 */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}

.theme-toggle:hover {
  background: rgba(255, 250, 241, 0.5);
  border-color: var(--line-strong);
}

[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .nav-toggle:hover {
  background: rgba(246, 239, 227, 0.12);
  border-color: var(--line-strong);
}

.theme-toggle svg {
  stroke: var(--muted);
}

.sun-icon { display: block; }
.moon-icon { display: none; }

[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }

/* 鏆楄壊妯″紡 */
[data-theme="dark"] {
  --bg: #1a1816;
  --bg-soft: #242220;
  --ink: #f6efe3;
  --muted: #a39b91;
  --line: rgba(246, 239, 227, 0.14);
  --line-strong: rgba(246, 239, 227, 0.32);
  --paper: rgba(26, 24, 22, 0.78);
  --paper-solid: #2a2725;
  --accent: #ff6b35;
  --accent-soft: rgba(255, 107, 53, 0.18);
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 9% 8%, rgba(255, 107, 53, 0.12), transparent 25rem),
    radial-gradient(circle at 90% 0%, rgba(246, 239, 227, 0.05), transparent 32rem),
    linear-gradient(120deg, #1e1c1a 0%, #242220 42%, #1a1816 100%);
}

[data-theme="dark"] .grain {
  opacity: 0.28;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(246, 239, 227, 0.06) 0 1px, transparent 1px),
    radial-gradient(circle at 87% 44%, rgba(246, 239, 227, 0.05) 0 1px, transparent 1px);
}

[data-theme="dark"] .topbar {
  background: rgba(26, 24, 22, 0.72);
  border-color: var(--line);
}

[data-theme="dark"] .nav {
  background: rgba(246, 239, 227, 0.045);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.is-active {
  background: rgba(26, 24, 22, 0.9);
}

[data-theme="dark"] .hero-title,
[data-theme="dark"] .section-heading h2,
[data-theme="dark"] .wide-heading h2,
[data-theme="dark"] .project-card h3,
[data-theme="dark"] .focus-card h3,
[data-theme="dark"] .method-card h3,
[data-theme="dark"] .note-card h3,
[data-theme="dark"] .thought-card h3 {
  color: #faf7f0;
}

[data-theme="dark"] .signal-card {
  background:
    linear-gradient(145deg, rgba(26, 24, 22, 0.9), rgba(26, 24, 22, 0.58)),
    radial-gradient(circle at 50% 0%, var(--accent-soft), transparent 26rem);
  border-color: var(--line);
}

[data-theme="dark"] .signal-card::before {
  border-color: rgba(246, 239, 227, 0.12);
}

[data-theme="dark"] .signal-card::after {
  border-color: rgba(246, 239, 227, 0.12);
  background: repeating-radial-gradient(circle, rgba(246, 239, 227, 0.12) 0 1px, transparent 1px 16px);
}

[data-theme="dark"] .signal-card__top,
[data-theme="dark"] .project-badge {
  background: rgba(26, 24, 22, 0.72);
  border-color: var(--line);
}

[data-theme="dark"] .focus-card,
[data-theme="dark"] .method-card,
[data-theme="dark"] .note-card,
[data-theme="dark"] .thought-card {
  background: rgba(26, 24, 22, 0.62);
  border-color: var(--line);
}

[data-theme="dark"] .focus-card:hover,
[data-theme="dark"] .note-card:hover,
[data-theme="dark"] .thought-card:hover {
  background: rgba(26, 24, 22, 0.9);
}

[data-theme="dark"] .project-card {
  background:
    linear-gradient(135deg, rgba(26, 24, 22, 0.86), rgba(26, 24, 22, 0.6)),
    radial-gradient(circle at 90% 8%, rgba(255, 107, 53, 0.11), transparent 28rem);
  border-color: var(--line);
}

[data-theme="dark"] .project-section {
  background: rgba(26, 24, 22, 0.54);
  border-color: rgba(246, 239, 227, 0.11);
}

[data-theme="dark"] .tag-list li {
  background: rgba(26, 24, 22, 0.48);
  border-color: var(--line);
}

[data-theme="dark"] .contact-card {
  background:
    linear-gradient(135deg, rgba(246, 239, 227, 0.94), rgba(246, 239, 227, 0.86)),
    radial-gradient(circle at 8% 0%, rgba(255, 107, 53, 0.28), transparent 26rem);
  color: var(--ink);
}

[data-theme="dark"] .contact-card .eyebrow,
[data-theme="dark"] .contact-card p {
  color: rgba(26, 24, 22, 0.72);
}

[data-theme="dark"] .contact-card h2 {
  color: #1a1816;
}

[data-theme="dark"] .contact-card .btn-primary {
  color: #fffaf0;
  background: #ff6b35;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.35);
}

[data-theme="dark"] .contact-card .btn-primary:hover {
  transform: translateY(-2px);
  background: #ff854a;
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.45);
}

[data-theme="dark"] .contact-card .btn-ghost {
  color: #f6efe3;
  background: rgba(246, 239, 227, 0.1);
  border-color: rgba(246, 239, 227, 0.3);
}

[data-theme="dark"] .contact-card .btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(246, 239, 227, 0.18);
}

[data-theme="dark"] .footer {
  border-color: var(--line);
}
/* Claude-like typography refinement */
.hero-title,
.section-heading h2,
.wide-heading h2,
.contact h2,
.project-card h3,
.focus-card h3,
.method-card h3,
.note-card h3,
.thought-card h3 {
  font-family:
    "Noto Serif SC",
    "Source Han Serif SC",
    "Songti SC",
    "STSong",
    Georgia,
    serif;
  font-weight: 600;
  color: #2b2118;
  text-wrap: balance;
}

.hero-title {
  font-size: clamp(3.4rem, 8.2vw, 7.4rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-heading h2,
.wide-heading h2,
.contact h2 {
  font-size: clamp(2rem, 4.2vw, 4.1rem);
  line-height: 1.12;
  letter-spacing: -0.032em;
}

.contact h2 {
  color: #fffaf0;
}

.project-card h3 {
  font-size: clamp(1.9rem, 3.8vw, 3.55rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.focus-card h3,
.method-card h3,
.note-card h3,
.thought-card h3 {
  font-size: 1.28rem;
  line-height: 1.35;
  letter-spacing: -0.018em;
}

.signal-card__body p:last-child {
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.62;
  letter-spacing: -0.018em;
}

.project-card::after {
  right: 30px;
  bottom: 4px;
  color: rgba(43, 33, 24, 0.045);
  font-family: Georgia, serif;
  font-size: clamp(4rem, 11vw, 8.5rem);
  font-weight: 500;
  line-height: 1;
}

@media (max-width: 720px) {
  .hero-title {
    font-size: clamp(3rem, 14vw, 5.2rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
  }

  .section-heading h2,
  .wide-heading h2,
  .contact h2 {
    font-size: clamp(2rem, 9vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
  }

  .project-card h3 {
    font-size: clamp(1.85rem, 8vw, 2.7rem);
    line-height: 1.16;
    letter-spacing: -0.025em;
  }
}
.hero-avatar-wrap {
  width: fit-content;
  margin-bottom: 1.4rem;
  padding: 0.35rem;
  border: 1px solid rgba(43, 33, 24, 0.14);
  border-radius: 2rem;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: 0 18px 50px rgba(43, 33, 24, 0.1);
}

.hero-avatar {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 1.6rem;
}
