/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1a2744;
  --navy2:  #243255;
  --gold:   #c9a96e;
  --gold2:  #e2c89a;
  --cream:  #faf9f5;
  --white:  #ffffff;
  --ink:    #2c2c2c;
  --muted:  #666666;
  --light:  #f0ede6;
  --border: #e8e3d9;
  --shadow: 0 4px 24px rgba(26,39,68,.08);
  --shadow2: 0 8px 40px rgba(26,39,68,.14);
  --radius: 12px;
  --transit: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--gold2); border-radius: 3px; }

/* ===================== NAVIGATION ===================== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26,39,68,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,169,110,.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 62px;
}

.nav-logo {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: .04em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .88rem;
  padding: 6px 14px;
  border-radius: 6px;
  transition: var(--transit);
  letter-spacing: .03em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(201,169,110,.12);
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(201,169,110,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.lang-link {
  min-width: 44px;
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .08em;
  transition: var(--transit);
}

.lang-link:hover {
  color: var(--gold2);
}

.lang-link.active {
  background: linear-gradient(135deg, rgba(201,169,110,.94), rgba(226,200,154,.9));
  color: var(--navy);
  box-shadow: 0 8px 18px rgba(201,169,110,.24);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transit);
}

/* ===================== MOBILE MENU ===================== */
#mobile-menu {
  display: none;
  position: fixed;
  top: 62px; left: 0; right: 0;
  background: rgba(26,39,68,.98);
  z-index: 999;
  padding: 16px 24px 24px;
  border-bottom: 1px solid rgba(201,169,110,.2);
}
#mobile-menu.open { display: block; }
#mobile-menu a {
  display: block;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: .95rem;
  transition: color var(--transit);
}
#mobile-menu a:hover { color: var(--gold); }

.mobile-lang-switch {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-lang-switch .lang-link {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}

/* ===================== SECTIONS ===================== */
.section {
  display: none;
  min-height: 100vh;
  padding-top: 62px;
  animation: fadeSection .4s ease;
}
.section.active { display: block; }

@keyframes fadeSection {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================== HERO ===================== */
#sec-home {
  display: none;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 55%, #2e4070 100%);
  min-height: 100vh;
  padding-top: 62px;
  position: relative;
  overflow: hidden;
}
#sec-home.active { display: block; }

#sec-home::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}
#sec-home::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,.08) 0%, transparent 70%);
  bottom: 50px; left: -80px;
  pointer-events: none;
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 40px 60px;
  display: flex;
  align-items: center;
  gap: 64px;
  animation: heroIn .7s ease both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-photo {
  flex-shrink: 0;
  width: min(240px, 32vw);
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid rgba(201,169,110,.5);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 8px rgba(201,169,110,.1), var(--shadow2);
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-text h1 {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: 2.8rem;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 8px;
}
.hero-text .subtitle {
  font-size: .98rem;
  color: var(--gold2);
  letter-spacing: .06em;
  margin-bottom: 24px;
  opacity: .9;
}
.hero-text .bio {
  font-size: .95rem;
  color: rgba(255,255,255,.8);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.hero-tag {
  padding: 4px 14px;
  background: rgba(201,169,110,.15);
  border: 1px solid rgba(201,169,110,.3);
  border-radius: 20px;
  font-size: .82rem;
  color: var(--gold2);
  letter-spacing: .03em;
}

.hero-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
}
.hero-contact-item a { color: var(--gold2); text-decoration: none; }
.hero-contact-item a:hover { text-decoration: underline; }
.email-obfuscated {
  color: var(--gold2);
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}
.contact-icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { fill: var(--gold); }

/* Stats strip */
.hero-stats {
  display: flex;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px 60px;
}
.stat-link {
  flex: 1;
  text-decoration: none;
  color: inherit;
  display: block;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid rgba(201,169,110,.15);
  transition: background var(--transit), transform var(--transit);
}
.stat-item:last-child { border-right: none; }
.stat-link:hover .stat-item {
  background: rgba(255,255,255,.04);
  transform: translateY(-2px);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--gold);
  display: block;
}
.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .05em;
  margin-top: 4px;
}

/* ===================== PAGE HEADER ===================== */
.page-header {
  background: var(--navy);
  padding: 50px 40px 42px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-header h2 {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 8px;
}
.page-header .sub {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ===================== CONTENT WRAPPER ===================== */
.content-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

/* ===================== CV SECTION ===================== */
.cv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.cv-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--gold);
  animation: cardIn .5s ease both;
}
.cv-card:nth-child(2) { animation-delay: .07s; }
.cv-card:nth-child(3) { animation-delay: .14s; }
.cv-card:nth-child(4) { animation-delay: .21s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cv-card-full {
  grid-column: 1 / -1;
}

.cv-card h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cv-card h3::before {
  content: '';
  display: block;
  width: 4px; height: 16px;
  background: var(--gold);
  border-radius: 2px;
}

.cv-card ul {
  list-style: none;
  padding: 0;
}
.cv-card ul li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.cv-card ul li:last-child { border-bottom: none; }
.cv-card ul li::before {
  content: '·';
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.cv-card ol {
  padding-left: 20px;
}
.cv-card ol li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
}
.cv-card ol li:last-child { border-bottom: none; }

/* Award tags */
.award-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.award-item:last-child { border-bottom: none; }
.award-year {
  font-size: .76rem;
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
  background: rgba(201,169,110,.1);
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 2px;
}
.award-text {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ===================== WORKS SECTION ===================== */
.works-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.work-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  transition: transform var(--transit), box-shadow var(--transit);
  text-decoration: none;
  color: inherit;
  animation: cardIn .5s ease both;
}
.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow2);
}

.work-img {
  width: 280px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--light);
}
.work-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.work-card:hover .work-img img {
  transform: scale(1.04);
}

.work-body {
  padding: 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.work-num {
  font-size: .75rem;
  color: var(--gold);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.work-body h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.4;
}
.work-body p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: .85rem;
  color: var(--gold);
  font-weight: 500;
  transition: gap var(--transit);
}
.work-card:hover .work-link { gap: 10px; }

/* ===================== POEMS SECTION ===================== */
#sec-poems {
  background: var(--cream);
}
.poems-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.8;
}

.poems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.poems-archive {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.poem-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.98) 100%);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201,169,110,.16);
  position: relative;
  overflow: hidden;
}

.poem-panel::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(201,169,110,.85), rgba(226,200,154,.2), transparent);
}

.poem-panel-long {
  grid-column: 1 / -1;
}

.poem-panel-dark {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy2) 100%);
  color: rgba(255,255,255,.84);
  border-color: rgba(201,169,110,.2);
}

.poem-panel-dark::before {
  background: linear-gradient(90deg, rgba(226,200,154,.95), rgba(226,200,154,.28), transparent);
}

.poem-panel-dark .poem-title,
.poem-panel-dark .poem-subhead,
.poem-panel-dark .poem-series-item .poem-source {
  color: var(--gold2);
}

.poem-panel-dark .poem-body,
.poem-panel-dark .poem-preface,
.poem-panel-dark .poem-note,
.poem-panel-dark .poem-sequence-item {
  color: rgba(255,255,255,.82);
}

.poem-panel-dark .poem-series-item {
  border-color: rgba(255,255,255,.08);
}

.poem-panel-dark .poem-sequence-item {
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
}

.poem-intro {
  grid-column: 1 / -1;
  padding: 28px 30px;
  background: linear-gradient(135deg, rgba(26,39,68,.98), rgba(36,50,85,.96));
  color: rgba(255,255,255,.82);
  border-radius: 22px;
  box-shadow: var(--shadow2);
  position: relative;
  overflow: hidden;
}

.poem-intro::after {
  content: '詩';
  position: absolute;
  right: 22px;
  top: -18px;
  font-family: 'Noto Serif SC', serif;
  font-size: 7rem;
  color: rgba(226,200,154,.08);
  line-height: 1;
}

.poem-intro h3 {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  color: var(--gold2);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.poem-intro p {
  max-width: 60ch;
  line-height: 1.9;
  font-size: .92rem;
}

.poem-subhead {
  font-family: 'Noto Serif SC', serif;
  font-size: .98rem;
  color: var(--navy);
  margin: 18px 0 10px;
}

.poem-subhead:first-child {
  margin-top: 0;
}

.poem-source {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.poem-preface {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.9;
  white-space: pre-line;
  margin-bottom: 16px;
}

.poem-series {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.poem-series-item {
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(250,249,245,.72);
}

.poem-series-item .poem-source {
  margin-bottom: 8px;
}

.poem-sequence {
  display: grid;
  gap: 12px;
}

.poem-sequence-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(240,237,230,.7);
  border: 1px solid rgba(201,169,110,.16);
  font-family: 'Noto Serif SC', serif;
  font-size: .9rem;
  line-height: 2;
  color: #444;
}

.poem-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform var(--transit), box-shadow var(--transit);
  animation: cardIn .5s ease both;
}
.poem-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow2);
}
.poem-card::before {
  content: '詩';
  position: absolute;
  top: -12px; right: 12px;
  font-family: 'Noto Serif SC', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: .06;
  line-height: 1;
  user-select: none;
}

.poem-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.poem-body {
  font-family: 'Noto Serif SC', 'SimSun', '宋体', serif;
  font-size: .92rem;
  color: #444;
  line-height: 2.0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.poem-note {
  margin-top: 14px;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.6;
  font-style: italic;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
  overflow-wrap: anywhere;
}
.poem-author {
  font-size: .78rem;
  color: var(--gold);
  margin-bottom: 10px;
}

/* 九九消寒 special */
.poem-card.xiaohan {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
}
.xiaohan-header {
  grid-column: 1 / -1;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.xiaohan-item {
  padding: 12px 16px;
  border-right: 1px dashed var(--border);
}
.xiaohan-item:last-child { border-right: none; }
.xiaohan-char {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.8rem;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.xiaohan-name {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.xiaohan-body {
  font-family: 'Noto Serif SC', serif;
  font-size: .82rem;
  color: #555;
  line-height: 1.9;
  white-space: pre-line;
}

/* ===================== ACTIVITIES SECTION ===================== */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.activity-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transit), box-shadow var(--transit);
  animation: cardIn .5s ease both;
}
.activity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow2);
}
.activity-card:nth-child(2) { animation-delay: .06s; }
.activity-card:nth-child(3) { animation-delay: .12s; }
.activity-card:nth-child(4) { animation-delay: .18s; }
.activity-card:nth-child(5) { animation-delay: .24s; }

.activity-img {
  width: 220px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--light);
}
.activity-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  min-height: 140px;
  transition: transform .5s ease;
}
.activity-card:hover .activity-img img { transform: scale(1.05); }

.activity-body {
  padding: 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.activity-body h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.5;
}
.activity-body p {
  font-size: .87rem;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.activity-meta {
  font-size: .78rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
}
.activity-meta::before {
  content: '';
  display: block;
  width: 12px; height: 1px;
  background: var(--gold);
}

/* ===================== PUBLICATIONS SECTION ===================== */
.pub-year-group {
  margin-bottom: 40px;
}
.pub-year-group h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.pub-year-group h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: .4;
}

.pub-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  animation: cardIn .4s ease both;
}
.pub-item:last-child { border-bottom: none; }
.pub-num {
  font-size: .8rem;
  color: var(--gold);
  font-weight: 600;
  min-width: 28px;
  padding-top: 2px;
  flex-shrink: 0;
}
.pub-text {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.pub-text strong {
  color: var(--ink);
}
.pub-tag {
  display: inline-block;
  font-size: .72rem;
  padding: 1px 8px;
  border-radius: 10px;
  background: rgba(201,169,110,.12);
  color: var(--gold);
  border: 1px solid rgba(201,169,110,.3);
  margin-left: 6px;
  vertical-align: middle;
}

/* ===================== PROJECT DETAIL ===================== */
.project-page {
  background:
    radial-gradient(circle at top right, rgba(201,169,110,.12), transparent 28%),
    linear-gradient(180deg, #f7f4ee 0%, var(--cream) 36%, #fdfcf8 100%);
}

.project-shell {
  padding-top: 62px;
}

.project-hero-section {
  padding: 56px 40px 32px;
}

.project-hero-wrap,
.project-detail-wrap,
.project-pager {
  max-width: 1080px;
  margin: 0 auto;
}

.project-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .04em;
}

.project-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.project-breadcrumb a:hover {
  color: var(--gold);
}

.project-breadcrumb span {
  color: rgba(44,44,44,.32);
}

.project-hero-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 30px;
  align-items: stretch;
}

.project-copy-card,
.project-image-card,
.project-summary-card {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(201,169,110,.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.project-copy-card {
  border-radius: 24px;
  padding: 34px 34px 30px;
  position: relative;
  overflow: hidden;
}

.project-copy-card::after {
  content: '';
  position: absolute;
  inset: auto -40px -40px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,.12) 0%, transparent 72%);
  pointer-events: none;
}

.project-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(201,169,110,.12);
  border: 1px solid rgba(201,169,110,.22);
  color: var(--gold);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.project-title {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: 2.4rem;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 12px;
}

.project-subtitle {
  font-size: .96rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.project-summary {
  font-size: .98rem;
  color: var(--muted);
  line-height: 1.9;
  max-width: 56ch;
  overflow-wrap: anywhere;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.project-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform var(--transit), box-shadow var(--transit), background var(--transit), color var(--transit);
}

.project-button.primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(26,39,68,.18);
}

.project-button.primary:hover {
  transform: translateY(-2px);
  background: var(--navy2);
}

.project-button.secondary {
  color: var(--navy);
  border: 1px solid rgba(26,39,68,.18);
  background: rgba(255,255,255,.7);
}

.project-button.secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(201,169,110,.4);
  color: var(--gold);
}

.project-image-card {
  border-radius: 24px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image-frame {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #efe9dc 0%, #e7ded0 100%);
}

.project-image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.project-detail-section {
  padding: 0 40px 48px;
}

.project-detail-wrap {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

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

.project-summary-card h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 18px;
}

.project-summary-card ul {
  list-style: none;
}

.project-summary-card li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.project-summary-card li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-meta-label {
  display: block;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}

.project-meta-value {
  display: block;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.project-plate-card {
  background: var(--white);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.project-plate-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.project-plate-head h2 {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
  font-size: 1.5rem;
  color: var(--navy);
}

.project-plate-head p {
  font-size: .84rem;
  color: var(--muted);
  max-width: 360px;
  text-align: right;
}

.project-plate {
  border-radius: 18px;
  overflow: hidden;
  background: var(--light);
  box-shadow: inset 0 0 0 1px rgba(26,39,68,.06);
}

.project-plate img {
  display: block;
  width: 100%;
  height: auto;
}

.project-pager {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 40px 80px;
}

.project-pager-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(201,169,110,.18);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  min-height: 112px;
  transition: transform var(--transit), box-shadow var(--transit);
}

.project-pager-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
}

.project-pager-card.muted {
  opacity: .55;
}

.project-pager-card.center {
  justify-content: center;
  text-align: center;
}

.project-pager-label {
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

.project-pager-card strong {
  font-family: 'Noto Serif SC', serif;
  font-size: .96rem;
  color: var(--navy);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--navy);
  text-align: center;
  padding: 32px 20px;
  color: rgba(255,255,255,.35);
  font-size: .8rem;
}
.site-footer a {
  color: rgba(201,169,110,.6);
  text-decoration: none;
}
.site-footer a:hover { color: var(--gold); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  #nav { padding: 0 20px; }
  .nav-logo { font-size: 1rem; max-width: calc(100vw - 168px); overflow: hidden; text-overflow: ellipsis; }
  .nav-links { display: none; }
  .nav-actions { gap: 10px; }
  .hamburger { display: flex; }

  .hero-inner { flex-direction: column; gap: 32px; padding: 48px 24px 36px; }
  .hero-photo { width: min(180px, 56vw); }
  .hero-text h1 { font-size: 2rem; }
  .hero-text { width: 100%; }
  .hero-text .bio { max-width: none; }
  .hero-contact-item { font-size: .86rem; line-height: 1.7; }
  .hero-stats { padding: 0 20px 40px; gap: 0; }
  .stat-num { font-size: 1.6rem; }
  .stat-item { padding: 20px 12px; }
  .stat-label { font-size: .76rem; }

  .content-wrap { padding: 32px 20px 60px; }
  .page-header { padding: 36px 20px 30px; }
  .page-header h2 { font-size: 1.65rem; }
  .page-header .sub { font-size: .76rem; letter-spacing: .08em; }

  .cv-grid { grid-template-columns: 1fr; }
  .cv-card-full { grid-column: 1; }
  .cv-card { padding: 22px 20px 18px; }
  .cv-card ul li,
  .cv-card ol li,
  .award-text,
  .pub-text { font-size: .85rem; line-height: 1.7; }
  .award-year { font-size: .72rem; }

  .work-card { flex-direction: column; }
  .work-img { width: 100%; height: 200px; }
  .work-body { padding: 22px 20px; }
  .work-body h3 { font-size: 1.16rem; }
  .work-body p { font-size: .86rem; }

  .activity-card { flex-direction: column; }
  .activity-img { width: 100%; height: 180px; }
  .activity-body { padding: 20px; }
  .activity-body h3 { font-size: .98rem; }
  .activity-body p { font-size: .84rem; }

  .poems-grid,
  .poems-archive,
  .poem-series { grid-template-columns: 1fr; }
  .poem-card.xiaohan { grid-column: 1; grid-template-columns: 1fr 1fr; }
  .poem-panel,
  .poem-card { padding: 24px 20px; }
  .poem-intro { padding: 22px 20px; border-radius: 18px; }
  .poem-intro::after { font-size: 5rem; right: 14px; top: -10px; }
  .poem-title { font-size: 1rem; margin-bottom: 14px; padding-bottom: 10px; }
  .poem-subhead { font-size: .92rem; }
  .poem-body { font-size: .88rem; line-height: 1.95; }
  .poem-note,
  .poem-preface,
  .poem-sequence-item { font-size: .82rem; }
  .poem-series-item { padding: 16px 14px; }

  .project-hero-section,
  .project-detail-section,
  .project-pager {
    padding-left: 20px;
    padding-right: 20px;
  }

  .project-hero-wrap,
  .project-detail-wrap,
  .project-pager {
    grid-template-columns: 1fr;
  }

  .project-title { font-size: 1.9rem; }
  .project-copy-card { padding: 26px 24px 24px; }
  .project-plate-card { padding: 20px; }
  .project-plate-head { flex-direction: column; align-items: start; }
  .project-plate-head p { text-align: left; }
  .project-summary-card { padding: 20px; }
  .project-summary { font-size: .92rem; line-height: 1.8; }
  .project-button { min-height: 42px; padding: 0 16px; font-size: .86rem; }
  .project-pager-card { min-height: 96px; padding: 16px 18px; }

}

@media (max-width: 480px) {
  #nav { padding: 0 14px; }
  .nav-logo { font-size: .92rem; max-width: calc(100vw - 132px); }
  .lang-switch { padding: 3px; }
  .lang-link { min-width: 38px; padding: 6px 9px; font-size: .72rem; }
  #mobile-menu { padding: 14px 16px 18px; }
  #mobile-menu a { font-size: .9rem; padding: 11px 0; }

  .hero-inner { padding: 38px 16px 28px; gap: 24px; }
  .hero-photo { width: min(172px, 62vw); border-width: 3px; border-radius: 16px; }
  .hero-text h1 { font-size: 1.75rem; }
  .hero-text .subtitle { font-size: .84rem; margin-bottom: 18px; }
  .hero-text .bio { font-size: .87rem; line-height: 1.82; margin-bottom: 24px; }
  .hero-tags { gap: 6px; margin-bottom: 24px; }
  .hero-tag { font-size: .76rem; padding: 4px 10px; }
  .hero-contact-item { gap: 8px; font-size: .82rem; }

  .hero-stats { flex-wrap: wrap; }
  .stat-link { flex: 0 0 50%; }
  .stat-item { flex: 0 0 100%; }
  .stat-item { padding: 16px 10px; }
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: .72rem; letter-spacing: .03em; }

  .content-wrap { padding: 24px 14px 48px; }
  .page-header { padding: 28px 14px 24px; }
  .page-header h2 { font-size: 1.46rem; }
  .page-header .sub { font-size: .72rem; }

  .cv-card { padding: 18px 16px 16px; border-radius: 10px; }
  .cv-card h3 { font-size: .94rem; margin-bottom: 12px; }
  .cv-card ul li,
  .cv-card ol li,
  .award-text,
  .pub-text { font-size: .82rem; line-height: 1.72; }
  .award-item { gap: 8px; }
  .award-year { padding: 1px 6px; }

  .work-img { height: 168px; }
  .work-body { padding: 18px 16px; }
  .work-num { font-size: .68rem; margin-bottom: 8px; }
  .work-body h3 { font-size: 1.04rem; margin-bottom: 10px; }
  .work-body p { font-size: .83rem; }
  .work-link { margin-top: 14px; font-size: .8rem; }

  .activity-img { height: 156px; }
  .activity-body { padding: 16px; gap: 6px; }
  .activity-body h3 { font-size: .92rem; }
  .activity-body p { font-size: .82rem; line-height: 1.68; }
  .activity-meta { font-size: .72rem; }

  .poem-panel,
  .poem-card { padding: 18px 16px; border-radius: 14px; }
  .poem-intro { padding: 18px 16px; border-radius: 16px; }
  .poem-intro::after { font-size: 3.8rem; right: 10px; top: -6px; }
  .poem-intro h3 { font-size: 1.28rem; margin-bottom: 4px; }
  .poem-title { font-size: .96rem; }
  .poem-subhead { font-size: .88rem; margin: 14px 0 8px; }
  .poem-source { font-size: .72rem; margin-bottom: 6px; }
  .poem-body { font-size: .84rem; line-height: 1.88; }
  .poem-note,
  .poem-preface,
  .poem-sequence-item { font-size: .78rem; line-height: 1.82; }
  .poem-series { gap: 12px; }
  .poem-series-item { padding: 14px 12px; border-radius: 12px; }
  .poem-card.xiaohan { grid-template-columns: 1fr; }
  .xiaohan-item { border-right: none; border-bottom: 1px dashed var(--border); }

  .project-hero-section,
  .project-detail-section,
  .project-pager { padding-left: 14px; padding-right: 14px; }
  .project-copy-card,
  .project-image-card,
  .project-summary-card,
  .project-plate-card,
  .project-pager-card { border-radius: 16px; }
  .project-copy-card { padding: 20px 16px 18px; }
  .project-breadcrumb { gap: 6px; margin-bottom: 18px; font-size: .74rem; }
  .project-kicker { margin-bottom: 14px; font-size: .7rem; padding: 6px 10px; }
  .project-title { font-size: 1.5rem; }
  .project-subtitle { font-size: .8rem; letter-spacing: .05em; margin-bottom: 14px; }
  .project-summary { font-size: .86rem; line-height: 1.76; }
  .project-actions { gap: 10px; margin-top: 20px; }
  .project-button { width: 100%; }
  .project-image-card { padding: 10px; }
  .project-summary-card { padding: 16px; }
  .project-summary-card h2,
  .project-plate-head h2 { font-size: 1.08rem; }
  .project-meta-label { font-size: .68rem; }
  .project-meta-value { font-size: .84rem; }
  .project-plate-card { padding: 16px; }
  .project-plate-head { gap: 10px; margin-bottom: 14px; }
  .project-plate-head p { font-size: .78rem; }
  .project-pager { gap: 12px; padding-bottom: 48px; }
  .project-pager-card { min-height: auto; padding: 14px 14px; }
  .project-pager-label { font-size: .68rem; }
  .project-pager-card strong { font-size: .88rem; }
}
