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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, -apple-system,
    "SF Pro Text", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  color: #1b1b1f;
  background: #f5f2ec;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.3);
  filter: blur(30px);
  pointer-events: none;
  z-index: -1;
  transition: transform 0.1s ease-out;
  animation: rainbow 3s linear infinite;
}

@keyframes rainbow {
  0% { background: rgba(255, 0, 0, 0.3); }
  16.67% { background: rgba(255, 127, 0, 0.3); }
  33.33% { background: rgba(255, 255, 0, 0.3); }
  50% { background: rgba(0, 255, 0, 0.3); }
  66.67% { background: rgba(0, 0, 255, 0.3); }
  83.33% { background: rgba(75, 0, 130, 0.3); }
  100% { background: rgba(238, 130, 238, 0.3); }
}

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

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

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(245, 242, 236, 0.88);
  border-bottom: 1px solid rgba(27, 27, 31, 0.06);
}

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

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-main {
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 14px;
}

.logo-sub {
  font-size: 11px;
  opacity: 0.6;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
  font-size: 15px;
}

.nav-list a {
  position: relative;
  padding-bottom: 2px;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #111;
  transition: width 0.18s ease-out;
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(27, 27, 31, 0.16);
  background: transparent;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  flex: 1;
  height: 1px;
  background: #1b1b1f;
}

.hero {
  padding: 80px 0 40px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-kicker {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 40px);
  margin: 0 0 16px;
  letter-spacing: 0.06em;
}

.hero-intro {
  font-size: 17px;
  line-height: 1.7;
  max-width: 40rem;
  margin: 0;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.hero-meta h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 8px;
}

.hero-meta p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.section {
  padding: 56px 0;
  border-top: 1px solid rgba(27, 27, 31, 0.06);
}

.section-alt {
  background: #f0ece4;
}

.split {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
}

.section-title-block h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.section-kicker {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.section-lead {
  margin: 0;
  font-size: 15px;
  max-width: 26rem;
  line-height: 1.7;
}

.section-body {
  font-size: 15px;
  line-height: 1.8;
}

.about-columns {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-columns h3 {
  margin-top: 0;
  font-size: 17px;
}

.about-columns p {
  margin-top: 0;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.meta-list li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.meta-list .label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.6;
}

.meta-list .hidden-label {
  visibility: hidden;
}

.meta-list.compact li {
  grid-template-columns: 68px minmax(0, 1fr);
}

.work-list {
  display: grid;
  gap: 28px;
}

.work-item {
  padding: 20px 0 24px;
  border-top: 1px solid rgba(27, 27, 31, 0.06);
}

.work-item:first-of-type {
  border-top: none;
}

.work-visual-link {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 14px;
}

.work-visual {
  width: 100%;
  display: block;
}

.work-item header {
  margin-bottom: 8px;
}

.work-item h3 {
  margin: 4px 0 8px;
  font-size: 19px;
}

.work-meta {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.6;
  margin: 0;
}

.work-summary {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.8;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list li {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(27, 27, 31, 0.12);
  background: rgba(255, 255, 255, 0.6);
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.explore-item {
  padding: 18px 0 20px;
  border-top: 1px solid rgba(27, 27, 31, 0.08);
}

.explore-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.explore-item p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.8;
}

.notes-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.notes-column h3 {
  margin-top: 0;
  font-size: 17px;
}

.notes-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 10px;
}

.note-meta {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.6;
  margin-bottom: 2px;
}

.note-title {
  font-size: 15px;
}

.notes-footnote {
  font-size: 13px;
  opacity: 0.7;
  margin: 0;
}

/* Project detail pages */

.project-main {
  padding: 72px 0 56px;
}

/* 移除项目内容的flex布局，因为已经不再需要图片 */

.project-layout {
  width: 100%;
}

.project-body {
  max-width: none;
}

.breadcrumbs {
  padding: 72px 0 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.breadcrumbs a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.project-header {
  padding: 0 0 32px;
  border-bottom: 1px solid rgba(27, 27, 31, 0.08);
}

.project-kicker {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 8px;
}

.project-title {
  margin: 0 0 8px;
  font-size: 28px;
}

.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 14px;
  opacity: 0.8;
}

.project-meta-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-right: 6px;
}

.project-layout {
  padding-top: 32px;
}

.project-side {
  font-size: 14px;
  line-height: 1.7;
}

.project-side h3 {
  margin-top: 0;
  font-size: 15px;
}

.project-body {
  font-size: 15px;
  line-height: 1.8;
  display: grid;
  gap: 20px;
}

.project-body h3 {
  font-size: 16px;
  margin: 12px 0 4px;
}

.project-body p {
  margin: 0;
}

.project-body ul {
  margin: 4px 0 0 1.2em;
  padding: 0;
}

.project-body li {
  margin-bottom: 2px;
}

.project-note {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(27, 27, 31, 0.8);
  font-style: italic;
}

.work-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.work-detail-link span {
  font-size: 13px;
}

.work-detail-link::after {
  content: "↗";
  font-size: 12px;
}

.site-footer {
  border-top: 1px solid rgba(27, 27, 31, 0.08);
  padding: 18px 0 26px;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  opacity: 0.7;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.contact-item:hover {
  opacity: 0.8;
}

.contact-icon {
  font-size: 14px;
}

.footer-note {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* Email Modal */
.email-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.email-modal.active {
  display: flex;
}

.email-modal-content {
  background: #f5f2ec;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
}

.email-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.email-modal-close:hover {
  opacity: 1;
}

.email-modal-content h3 {
  margin: 0 0 24px;
  font-size: 18px;
}

.email-display {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(27, 27, 31, 0.1);
}

#emailAddress {
  font-size: 16px;
  font-family: monospace;
  word-break: break-all;
}

.copy-btn {
  padding: 8px 16px;
  background: #1b1b1f;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.copy-btn:hover {
  background: #333;
}

.copy-btn.copied {
  background: #22c55e;
}

@media (max-width: 720px) {
  .header-inner {
    height: 56px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: fixed;
    inset: 56px 0 auto;
    background: rgba(245, 242, 236, 0.98);
    border-bottom: 1px solid rgba(27, 27, 31, 0.06);
    padding: 10px 20px 14px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 18px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease-out, transform 0.16s ease-out;
  }

  .nav-list.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding-top: 56px;
  }

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

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .email-modal-content {
    padding: 24px;
  }
  
  .email-display {
    flex-direction: column;
    gap: 12px;
  }
}

