:root {
  --paper: #fbf4e8;
  --paper-deep: #f3e4ce;
  --surface: rgba(255, 252, 245, 0.9);
  --surface-strong: #fffaf0;
  --ink: #241a14;
  --muted: #7d6b5d;
  --soft: #a89586;
  --line: rgba(129, 87, 61, 0.17);
  --accent: #ad5637;
  --accent-dark: #703923;
  --accent-teal: #5d958e;
  --gold: #c49a65;
  --shadow: 0 22px 50px rgba(87, 54, 34, 0.11);
  --shadow-soft: 0 12px 30px rgba(87, 54, 34, 0.08);
  --radius: 8px;
  --max: 1580px;
  --leaf-icon: url("/img/maple-pixel.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(112, 57, 35, 0.035) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 13% 20%, rgba(177, 86, 55, 0.09), transparent 260px),
    radial-gradient(circle at 92% 8%, rgba(196, 154, 101, 0.16), transparent 320px),
    linear-gradient(180deg, #fffaf1 0%, var(--paper) 52%, #f7ead8 100%);
  background-size: 74px 100%, auto, auto, auto;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  line-height: 1.72;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.38)),
    url("/img/maple-overlay.png") right top / min(58vw, 760px) auto no-repeat;
  opacity: 0.72;
}

body::after {
  content: "";
  position: fixed;
  right: 9vw;
  bottom: 14vh;
  z-index: -1;
  width: 42px;
  height: 42px;
  color: rgba(173, 86, 55, 0.36);
  background: var(--leaf-icon) center / contain no-repeat;
  image-rendering: pixelated;
  opacity: 0.62;
  transform: rotate(18deg);
}

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

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  padding: 0 max(26px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 249, 239, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(173, 86, 55, 0.22);
  border-radius: 999px;
  background: rgba(255, 247, 236, 0.78);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.42), var(--shadow-soft);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 19px;
  letter-spacing: 0;
}

.brand-copy small {
  color: var(--muted);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.5vw, 34px);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 78px;
  color: #271a13;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--accent-dark);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.search-mark {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1.8px solid var(--accent-dark);
  border-radius: 999px;
}

.search-mark::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 1.8px;
  border-radius: 999px;
  background: var(--accent-dark);
  transform: rotate(45deg);
}

.site-main {
  width: min(var(--max), calc(100% - 44px));
  margin: 38px auto 0;
}

.home-page {
  display: grid;
  gap: 30px;
}

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

.profile-card,
.home-panel,
.inner-title-block,
.full-post,
.post-item {
  position: relative;
  border: 1px solid rgba(129, 87, 61, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.64), rgba(255, 249, 238, 0.86)),
    var(--surface);
  box-shadow: var(--shadow);
}

.profile-card {
  min-height: 632px;
  padding: 54px 48px 40px;
  overflow: hidden;
}

.profile-card::before,
.profile-card::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--leaf-icon) center / contain no-repeat;
  image-rendering: pixelated;
  line-height: 1;
}

.profile-card::before {
  top: 84px;
  right: 42px;
}

.profile-card::after {
  right: 42px;
  bottom: 34px;
}

.profile-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 4px;
  background: rgba(93, 149, 142, 0.11);
  color: #4d8580;
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.profile-card h1 {
  margin: 54px 0 14px;
  color: #17120f;
  font-size: clamp(44px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0;
}

.profile-card h1::after {
  content: "印";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: 14px;
  border: 2px solid #d44b38;
  color: #d44b38;
  font-size: 12px;
  line-height: 1;
  vertical-align: middle;
}

.profile-role {
  margin: 0;
  color: var(--muted);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.profile-role::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin: 26px 0 24px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.profile-text {
  margin: 0;
  color: #5e5149;
  font-size: 16px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 52px;
}

.social-grid a,
.rss-button,
.panel-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(173, 86, 55, 0.22);
  border-radius: 7px;
  background: rgba(255, 246, 232, 0.78);
  color: var(--accent-dark);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 750;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.social-grid a:hover,
.rss-button:hover,
.panel-more:hover {
  border-color: rgba(173, 86, 55, 0.42);
  background: rgba(255, 238, 214, 0.9);
  transform: translateY(-1px);
}

.profile-location {
  position: absolute;
  bottom: 42px;
  left: 48px;
  margin: 0;
  color: var(--soft);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 14px;
}

.hero-stack {
  display: grid;
  gap: 22px;
}

.scene-card {
  position: relative;
  min-height: 306px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.scene-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.scene-card:hover img {
  transform: scale(1.035);
}

.scene-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 245, 230, 0.82) 0%, rgba(255, 245, 230, 0.46) 33%, rgba(79, 40, 25, 0.16) 100%);
}

.scene-articles .scene-shade {
  background: linear-gradient(90deg, rgba(40, 20, 12, 0.62) 0%, rgba(56, 28, 16, 0.34) 45%, rgba(255, 246, 232, 0.04) 100%);
}

.scene-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 80px 58px;
}

.scene-content strong {
  color: #19130f;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.scene-articles .scene-content strong,
.scene-articles .scene-content em,
.scene-articles .scene-content small {
  color: #fff6ec;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.22);
}

.scene-content em {
  color: #271a13;
  font-style: normal;
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 21px;
  font-weight: 700;
}

.scene-content small {
  color: #5f4c3d;
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.scene-content b {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: 7px;
  background: rgba(255, 250, 241, 0.84);
  color: var(--accent-dark);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  box-shadow: 0 10px 18px rgba(87, 54, 34, 0.09);
}

.section-heading {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding-top: 4px;
  text-align: center;
}

.section-heading h2 {
  position: relative;
  margin: 0;
  color: #17120f;
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.1;
}

.section-heading h2::before,
.section-heading h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 32px;
  height: 32px;
  background: var(--leaf-icon) center / contain no-repeat;
  image-rendering: pixelated;
  transform: translateY(-50%);
}

.section-heading h2::before {
  left: -70px;
}

.section-heading h2::after {
  right: -70px;
}

.section-heading p {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.section-heading p::before,
.section-heading p::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}

.section-heading p::before {
  right: calc(100% + 18px);
}

.section-heading p::after {
  left: calc(100% + 18px);
  transform: rotate(180deg);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.home-panel {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
  margin: 0;
  color: #281a12;
  font-size: 20px;
  line-height: 1.2;
}

.panel-heading a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(173, 86, 55, 0.24);
  border-radius: 999px;
  background: rgba(255, 247, 235, 0.76);
  color: var(--accent-dark);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.panel-heading a::after {
  content: "→";
  margin-left: 7px;
  font-size: 14px;
  line-height: 1;
}

.panel-heading a:hover {
  border-color: rgba(173, 86, 55, 0.38);
  background: rgba(255, 238, 214, 0.86);
  color: var(--accent);
}

.project-list,
.article-list {
  display: grid;
  gap: 0;
}

.project-list,
.article-list {
  margin-top: 22px;
}

.project-list,
.article-list {
  flex: 1;
  align-content: start;
}

.project-panel,
.article-panel {
  min-height: 100%;
}

.project-item {
  display: grid;
  grid-template-columns: minmax(188px, 28%) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  min-height: 0;
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(129, 87, 61, 0.12);
}

.project-item + .project-item {
  padding-top: 22px;
}

.project-item:last-child,
.article-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.project-thumb,
.article-thumb {
  display: block;
  align-self: start;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 7px;
  background: #e9d5bc;
}

.project-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-copy h3,
.article-copy h3 {
  margin: 0;
  color: #241713;
  font-size: 18px;
  line-height: 1.3;
}

.project-copy,
.article-copy {
  min-width: 0;
}

.project-copy h3,
.article-copy h3,
.project-copy p,
.article-copy p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.project-copy h3,
.article-copy h3 {
  -webkit-line-clamp: 2;
}

.project-copy p {
  -webkit-line-clamp: 3;
}

.article-copy p {
  -webkit-line-clamp: 2;
}

.project-copy h3 a:hover,
.article-copy h3 a:hover {
  color: var(--accent);
}

.project-copy p,
.article-copy p {
  margin: 12px 0 0;
  color: #62554c;
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.78;
}

.chip-row,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row {
  margin-top: 14px;
}

.chip-row span,
.tag-cloud a,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(196, 154, 101, 0.34);
  border-radius: 6px;
  background: rgba(255, 244, 226, 0.74);
  color: #78523a;
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.article-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(168px, 26%);
  align-items: start;
  gap: 20px;
  min-height: 0;
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(129, 87, 61, 0.12);
}

.article-item + .article-item {
  padding-top: 22px;
}

.article-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  color: var(--soft);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 12px;
}

.panel-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  border: 1px solid rgba(173, 86, 55, 0.18);
  border-radius: 7px;
  background: rgba(255, 247, 235, 0.68);
  color: var(--accent-dark);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.panel-more::after {
  content: "→";
  margin-left: 8px;
}

.panel-more:hover {
  border-color: rgba(173, 86, 55, 0.32);
  background: rgba(255, 238, 214, 0.82);
  color: var(--accent);
}

.project-panel .panel-more,
.article-panel .panel-more {
  padding-top: 24px;
}

.profile-tools {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(129, 87, 61, 0.13);
}

.profile-tools .panel-heading {
  padding-bottom: 14px;
}

.profile-tools .panel-heading h2 {
  font-size: 17px;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-top: 20px;
}

.tool-grid a {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding-left: 12px;
  border-left: 2px solid rgba(173, 86, 55, 0.28);
}

.tool-grid strong {
  color: #3a2a21;
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 13px;
}

.tool-grid span {
  color: var(--soft);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 12px;
}

.quote-strip {
  position: relative;
  min-height: 126px;
  overflow: hidden;
  border: 1px solid rgba(129, 87, 61, 0.13);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.quote-strip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 248, 237, 0.82), rgba(255, 248, 237, 0.18));
}

.quote-strip div {
  position: relative;
  z-index: 1;
  padding: 28px 60px;
}

.quote-strip h2 {
  margin: 0 0 6px;
  color: #6b3c2a;
  font-size: 25px;
}

.quote-strip p {
  margin: 0;
  color: #7b5e4c;
  font-size: 16px;
}

.travel-notes-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 0.42fr) minmax(720px, 0.58fr);
  gap: clamp(34px, 4.2vw, 72px);
  align-items: stretch;
  min-height: clamp(760px, 52vw, 860px);
  padding: clamp(34px, 4.4vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(129, 87, 61, 0.13);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 1% 99%, rgba(196, 154, 101, 0.1), transparent 210px),
    linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 237, 0.95)),
    var(--surface);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.travel-notes-section::before {
  content: "TRAVEL";
  position: absolute;
  left: -26px;
  bottom: -28px;
  z-index: 0;
  display: grid;
  place-items: center;
  width: 178px;
  height: 178px;
  border: 1px solid rgba(173, 86, 55, 0.18);
  border-radius: 50%;
  color: rgba(173, 86, 55, 0.15);
  background: var(--leaf-icon) center 58% / 52px auto no-repeat;
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.18em;
  transform: rotate(-14deg);
}

.travel-notes-section::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 54px;
  z-index: 0;
  width: 214px;
  height: 58px;
  background:
    radial-gradient(ellipse at 50% -18px, transparent 34px, rgba(196, 154, 101, 0.2) 35px, rgba(196, 154, 101, 0.2) 36px, transparent 37px) 0 8px / 44px 20px repeat-x,
    radial-gradient(ellipse at 50% -18px, transparent 34px, rgba(196, 154, 101, 0.16) 35px, rgba(196, 154, 101, 0.16) 36px, transparent 37px) 14px 28px / 44px 20px repeat-x;
  transform: rotate(-6deg);
}

.travel-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
  min-height: 100%;
  padding: clamp(18px, 2vw, 30px) 0 clamp(42px, 4vw, 72px) clamp(8px, 1.6vw, 28px);
}

.travel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 6px;
  background: rgba(173, 86, 55, 0.1);
  color: var(--accent-dark);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.travel-kicker::before {
  content: "";
  width: 15px;
  height: 15px;
  background: var(--leaf-icon) center / contain no-repeat;
  image-rendering: pixelated;
}

.travel-copy h2 {
  margin: 46px 0 0;
  color: #1d1713;
  font-size: clamp(46px, 4.45vw, 66px);
  font-weight: 800;
  line-height: 1.23;
  letter-spacing: 0;
}

.travel-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 390px);
  margin: 30px 0 24px;
}

.travel-divider::before,
.travel-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(173, 86, 55, 0.34));
}

.travel-divider::after {
  transform: rotate(180deg);
}

.travel-divider b {
  width: 18px;
  height: 18px;
  background: var(--leaf-icon) center / contain no-repeat;
  image-rendering: pixelated;
}

.travel-copy p {
  max-width: 420px;
  margin: 0;
  color: #5f5147;
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.95;
}

.travel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 38px;
  padding: 11px 28px;
  border: 1px solid rgba(112, 57, 35, 0.26);
  border-radius: 7px;
  background: linear-gradient(135deg, #b8794c, #8b5635);
  color: #fff7ec;
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(112, 57, 35, 0.18);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.travel-link::after {
  content: "→";
  margin-left: 14px;
  font-size: 18px;
  line-height: 1;
}

.travel-link:hover {
  border-color: rgba(112, 57, 35, 0.42);
  box-shadow: 0 20px 34px rgba(112, 57, 35, 0.24);
  transform: translateY(-2px);
}

.travel-map-board {
  position: relative;
  z-index: 2;
  min-height: clamp(680px, 46vw, 760px);
  overflow: hidden;
  border: 1px solid rgba(129, 87, 61, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 40%, rgba(255, 250, 241, 0.36), transparent 300px),
    linear-gradient(135deg, rgba(255, 252, 246, 0.86), rgba(246, 231, 210, 0.5)),
    #f8ecdc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58), 0 20px 44px rgba(87, 54, 34, 0.11);
}

.travel-map-board::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.02), rgba(255, 250, 241, 0.12)),
    radial-gradient(circle at 92% 4%, rgba(255, 255, 255, 0.28), transparent 220px),
    radial-gradient(circle at 50% 100%, rgba(129, 87, 61, 0.08), transparent 420px);
}

.travel-map-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.travel-map-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 15%, rgba(196, 154, 101, 0.13), transparent 90px),
    radial-gradient(circle at 88% 86%, rgba(173, 86, 55, 0.08), transparent 170px);
}

.travel-map-bg {
  position: absolute;
  inset: 18px 12px 12px;
  width: calc(100% - 24px);
  height: calc(100% - 30px);
  object-fit: contain;
  opacity: 0.86;
  filter: sepia(0.12) saturate(0.92) contrast(0.98);
  mix-blend-mode: multiply;
  transform: scale(1.08);
  transform-origin: center;
}

.travel-route {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.travel-route path {
  fill: none;
  stroke: rgba(139, 86, 53, 0.42);
  stroke-width: 2.4;
  stroke-dasharray: 8 12;
  stroke-linecap: round;
  animation: travel-route-flow 18s linear infinite;
}

.travel-photo-card {
  position: absolute;
  z-index: 4;
  width: clamp(96px, var(--photo-size), 148px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 5px solid rgba(255, 250, 241, 0.94);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 12px 22px rgba(73, 44, 27, 0.17);
  transform: translate3d(0, 0, 0) rotate(var(--tilt));
  animation: travel-photo-drift var(--float-duration, 9s) ease-in-out infinite alternate;
  animation-delay: var(--float-delay, 0s);
  transition:
    box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 240ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.travel-photo-card:hover {
  z-index: 8;
  animation-play-state: paused;
  box-shadow: 0 18px 30px rgba(73, 44, 27, 0.24);
  filter: saturate(1.08) contrast(1.03);
  transform: translate3d(var(--float-x, 0), var(--float-y, 0), 0) rotate(calc(var(--tilt) + var(--float-rotate, 0deg))) scale(1.045);
}

.travel-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  transform: scale(1);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.travel-photo-card:hover img {
  transform: scale(1.055);
}

.travel-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, transparent 44%, rgba(34, 22, 14, 0.42));
  pointer-events: none;
}

.travel-photo-jiujiang {
  top: 46%;
  left: 6%;
  --photo-size: 7vw;
  --tilt: -8deg;
  --float-x: 7px;
  --float-y: -8px;
  --float-rotate: 1.6deg;
  --float-duration: 8.5s;
}

.travel-photo-nanchang {
  top: 70%;
  left: 18%;
  --photo-size: 6.8vw;
  --tilt: 6deg;
  --float-x: 8px;
  --float-y: 7px;
  --float-rotate: -1.2deg;
  --float-duration: 9.5s;
  --float-delay: -2s;
}

.travel-photo-huangshan {
  top: 74%;
  left: 38%;
  --photo-size: 6.8vw;
  --tilt: -5deg;
  --float-x: -8px;
  --float-y: -6px;
  --float-rotate: 1.5deg;
  --float-duration: 10s;
  --float-delay: -3s;
}

.travel-photo-rizhao {
  top: 36%;
  left: 78%;
  --photo-size: 6.8vw;
  --tilt: 7deg;
  --float-x: -7px;
  --float-y: 7px;
  --float-rotate: -1.2deg;
  --float-duration: 9s;
  --float-delay: -4s;
}

.travel-photo-nanjing {
  top: 38%;
  left: 44%;
  --photo-size: 7.2vw;
  --tilt: -7deg;
  --float-x: 8px;
  --float-y: -8px;
  --float-rotate: 1.8deg;
  --float-duration: 8.5s;
}

.travel-photo-qingdao {
  top: 11%;
  left: 74%;
  --photo-size: 7vw;
  --tilt: 8deg;
  --float-x: -7px;
  --float-y: 8px;
  --float-rotate: -1.4deg;
  --float-duration: 10s;
  --float-delay: -2s;
}

.travel-photo-hefei {
  top: 48%;
  left: 38%;
  --photo-size: 6.8vw;
  --tilt: 9deg;
  --float-x: -7px;
  --float-y: 8px;
  --float-rotate: -1.4deg;
  --float-duration: 10s;
  --float-delay: -2s;
}

.travel-photo-suzhou {
  top: 58%;
  left: 67%;
  --photo-size: 6.8vw;
  --tilt: 5deg;
  --float-x: 8px;
  --float-y: 7px;
  --float-rotate: -1.6deg;
  --float-duration: 9.5s;
  --float-delay: -4s;
}

.travel-photo-hangzhou {
  top: 76%;
  left: 73%;
  --photo-size: 6.8vw;
  --tilt: -7deg;
  --float-x: -8px;
  --float-y: -7px;
  --float-rotate: 1.6deg;
  --float-duration: 11s;
  --float-delay: -1s;
}

.travel-photo-tianjin {
  top: 7%;
  left: 54%;
  --photo-size: 6.8vw;
  --tilt: -5deg;
  --float-x: 7px;
  --float-y: 8px;
  --float-rotate: 1.4deg;
  --float-duration: 9.5s;
  --float-delay: -3s;
}

.travel-photo-shanghai {
  top: 46%;
  left: 78%;
  --photo-size: 6.8vw;
  --tilt: 6deg;
  --float-x: -8px;
  --float-y: -7px;
  --float-rotate: -1.3deg;
  --float-duration: 10.5s;
  --float-delay: -5s;
}

.photo-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  max-width: calc(100% - 36px);
  padding: 4px 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 241, 0.62);
  border-radius: 999px;
  background: rgba(255, 247, 235, 0.88);
  color: #765038;
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-label::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 2px solid #b8794c;
  border-radius: 50%;
  box-shadow: 0 5px 0 -2px #b8794c;
}

.travel-lightbox {
  width: min(92vw, 1040px);
  max-width: 1040px;
  max-height: 88vh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #fff8ed;
  color: #2a1c14;
  box-shadow: 0 36px 80px rgba(34, 22, 14, 0.34);
}

.travel-lightbox::backdrop {
  background: rgba(36, 26, 20, 0.64);
  backdrop-filter: blur(5px);
}

.travel-lightbox img {
  display: block;
  width: 100%;
  max-height: min(76vh, 760px);
  object-fit: contain;
  background: #241a14;
}

.travel-lightbox p {
  margin: 0;
  padding: 12px 18px 14px;
  border-top: 1px solid rgba(129, 87, 61, 0.14);
  color: #5d4333;
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.travel-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 250, 241, 0.64);
  border-radius: 999px;
  background: rgba(36, 26, 20, 0.72);
  color: #fff8ed;
  cursor: pointer;
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 28px;
  line-height: 1;
  transition: background 180ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.travel-lightbox-close:hover,
.travel-lightbox-close:focus-visible {
  background: rgba(173, 86, 55, 0.9);
  outline: none;
  transform: scale(1.05);
}

.travel-music-player {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  grid-template-columns: 56px minmax(150px, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(92vw, 520px);
  min-height: 78px;
  padding: 11px 14px 11px 12px;
  border: 1px solid rgba(255, 250, 241, 0.56);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 252, 246, 0.72), rgba(255, 246, 232, 0.44)),
    rgba(255, 248, 237, 0.62);
  color: #2a1c14;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -16px 26px rgba(173, 86, 55, 0.08),
    0 22px 60px rgba(73, 44, 27, 0.24);
  backdrop-filter: blur(18px) saturate(1.35);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 22px) scale(0.98);
  transition:
    opacity 260ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.travel-music-player::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.86), transparent 28%),
    radial-gradient(circle at 78% 92%, rgba(173, 86, 55, 0.14), transparent 34%);
  mix-blend-mode: screen;
}

.travel-music-player.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.music-disc {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff8ed 0 9%, transparent 10%),
    radial-gradient(circle at center, #5d4034 0 16%, transparent 17%),
    conic-gradient(from 25deg, #241a14, #7b5e4c, #f1d8b9, #4a2f23, #241a14);
  box-shadow:
    inset 0 0 0 2px rgba(255, 250, 241, 0.38),
    0 10px 22px rgba(73, 44, 27, 0.22);
}

.music-disc span {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 250, 241, 0.78);
  border-radius: 50%;
  background: #ad5637;
}

.travel-music-player.is-playing .music-disc {
  animation: music-disc-spin 3.8s linear infinite;
}

.music-meta {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  gap: 1px;
}

.music-eyebrow,
.music-artist {
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
}

.music-eyebrow {
  color: rgba(173, 86, 55, 0.86);
  text-transform: uppercase;
}

.music-title {
  overflow: hidden;
  color: #2a1c14;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-artist {
  overflow: hidden;
  color: rgba(93, 67, 51, 0.72);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-controls {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.music-control {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(173, 86, 55, 0.18);
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.58);
  color: #7a4b33;
  cursor: pointer;
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.music-control:hover,
.music-control:focus-visible {
  border-color: rgba(173, 86, 55, 0.36);
  background: rgba(255, 241, 221, 0.78);
  color: #ad5637;
  outline: none;
  transform: translateY(-1px);
}

.music-toggle {
  width: 42px;
  height: 42px;
  background: #ad5637;
  color: #fff8ed;
  box-shadow: 0 10px 18px rgba(173, 86, 55, 0.22);
}

.music-play-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
}

.travel-music-player.is-playing .music-play-icon {
  width: 12px;
  height: 15px;
  margin-left: 0;
  border: 0;
  background:
    linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px);
}

@keyframes music-disc-spin {
  to {
    transform: rotate(360deg);
  }
}

.map-pin {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(116, 76, 51, 0.9);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 250, 241, 0.82);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.map-pin:not(.map-pin-home) {
  transform: translate(-6px, -50%);
}

.map-pin b {
  position: relative;
  width: 11px;
  height: 11px;
  border: 3px solid rgba(255, 250, 241, 0.88);
  border-radius: 50%;
  background: #a96843;
  box-shadow: 0 3px 7px rgba(73, 44, 27, 0.18);
}

.map-pin b::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(169, 104, 67, 0.26);
  border-radius: 50%;
}

.map-pin strong,
.map-pin em {
  font-style: normal;
}

.map-pin-home {
  top: 52%;
  left: 60%;
  z-index: 5;
  gap: 6px;
  padding: 7px 10px 7px 8px;
  border: 1px solid rgba(173, 86, 55, 0.2);
  border-radius: 999px;
  background: rgba(255, 247, 235, 0.9);
  box-shadow: 0 10px 22px rgba(73, 44, 27, 0.13);
}

.map-pin-home b {
  background: #ad5637;
}

.map-pin-home strong {
  color: #5b3827;
}

.map-pin-home em {
  color: rgba(116, 76, 51, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.map-pin-jiujiang {
  top: 59%;
  left: 61%;
}

.map-pin-nanchang {
  top: 69%;
  left: 61%;
}

.map-pin-huangshan {
  top: 65%;
  left: 66%;
}

.map-pin-rizhao {
  top: 54%;
  left: 73%;
}

.map-pin-nanjing {
  top: 57%;
  left: 66%;
}

.map-pin-qingdao {
  top: 47%;
  left: 74%;
}

.map-pin-hefei {
  top: 54%;
  left: 63%;
}

.map-pin-suzhou {
  top: 58%;
  left: 73%;
}

.map-pin-hangzhou {
  top: 61%;
  left: 69%;
}

.map-pin-tianjin {
  top: 43%;
  left: 67%;
}

.map-pin-shanghai {
  top: 60%;
  left: 78%;
}

@keyframes travel-photo-drift {
  from {
    transform: translate3d(0, 0, 0) rotate(var(--tilt));
  }

  to {
    transform: translate3d(var(--float-x, 0), var(--float-y, 0), 0) rotate(calc(var(--tilt) + var(--float-rotate, 0deg)));
  }
}

@keyframes travel-route-flow {
  to {
    stroke-dashoffset: -120;
  }
}

@media (prefers-reduced-motion: reduce) {
  .travel-photo-card,
  .travel-route path {
    animation: none;
  }

  .travel-photo-card,
  .travel-photo-card img,
  .travel-lightbox-close,
  .travel-music-player,
  .music-control {
    transition-duration: 0.01ms;
  }

  .travel-music-player.is-playing .music-disc {
    animation: none;
  }
}

.inner-page {
  display: grid;
  gap: 22px;
}

.inner-title-block {
  min-height: 170px;
  padding: 42px;
  overflow: hidden;
}

.inner-title-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/img/Projects/maple-project-hero.png") center / cover no-repeat;
  opacity: 0.18;
}

.inner-title-block span,
.inner-title-block h1 {
  position: relative;
  z-index: 1;
}

.inner-title-block span {
  color: var(--accent);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.inner-title-block h1 {
  margin: 10px 0 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
}

.full-post {
  padding: min(6vw, 48px);
}

.full-post .content {
  max-width: 860px;
  margin: 0 auto;
}

.travel-full-post .content {
  max-width: min(100%, 1240px);
}

.full-post h1,
.full-post h2,
.full-post h3,
.full-post h4 {
  color: #211610;
  line-height: 1.35;
  letter-spacing: 0;
}

.full-post h1 {
  margin: 0 0 22px;
  font-size: clamp(30px, 4vw, 44px);
}

.full-post h2 {
  margin: 34px 0 14px;
  font-size: 27px;
}

.full-post h3 {
  margin: 26px 0 10px;
  font-size: 21px;
}

.full-post p,
.full-post li {
  color: #3c342e;
}

.full-post a {
  color: var(--accent-dark);
  border-bottom: 1px solid rgba(173, 86, 55, 0.28);
}

.full-post blockquote {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 242, 222, 0.74);
}

.full-post blockquote p {
  margin: 0;
}

.full-post img {
  height: auto;
  border-radius: 8px;
}

.full-post table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.full-post th,
.full-post td {
  padding: 10px 12px;
  border: 1px solid var(--line);
}

.full-post .highlight {
  overflow-x: auto;
  border-radius: 8px;
  background: #f6f1e9;
  border: 1px solid var(--line);
}

.full-post .highlight .code,
.full-post .highlight code,
.full-post .highlight pre {
  color: #3a2f28;
}

/* 行号：浅化，不抢眼 */
.full-post .highlight .gutter {
  user-select: none;
}

.full-post .highlight .gutter,
.full-post .highlight .gutter pre {
  color: #b3a48f;
}

.full-post pre,
.full-post code {
  font-family: "Cascadia Code", Consolas, "SFMono-Regular", monospace;
}

.full-post pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
}

.full-post code {
  font-size: 0.92em;
}

.full-post :not(pre) > code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 242, 222, 0.86);
  color: var(--accent-dark);
}

.travel-page-hero {
  display: grid;
  gap: 12px;
  margin: 0 0 clamp(28px, 5vw, 56px);
}

.travel-page-hero span,
.travel-city-copy span,
.travel-home-note span {
  color: var(--accent);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.travel-page-hero h2 {
  max-width: 12em;
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
}

.travel-page-hero p {
  max-width: 62ch;
  margin: 0;
  color: #62554c;
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.9;
}

.travel-home-note {
  display: inline-grid;
  gap: 4px;
  margin: 0 0 32px;
  padding: 12px 16px;
  border: 1px solid rgba(173, 86, 55, 0.18);
  border-radius: 8px;
  background: rgba(255, 247, 235, 0.78);
}

.travel-home-note strong {
  color: #261812;
  font-size: 18px;
}

.travel-stack-gallery {
  display: grid;
  gap: clamp(30px, 5vw, 58px);
}

.travel-city-stack {
  display: grid;
  grid-template-columns: minmax(180px, 0.46fr) minmax(420px, 1.54fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: clamp(330px, 35vw, 460px);
  padding: clamp(18px, 3.2vw, 32px);
  border: 1px solid rgba(129, 87, 61, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 250, 241, 0.62), transparent 220px),
    linear-gradient(135deg, rgba(255, 252, 246, 0.74), rgba(246, 231, 210, 0.46));
}

.travel-city-stack.is-featured {
  grid-template-columns: minmax(190px, 0.42fr) minmax(480px, 1.58fr);
}

.travel-city-copy h3 {
  margin: 8px 0 0;
  color: #241713;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.travel-city-copy p {
  max-width: 30ch;
  margin: 12px 0 0;
  color: #62554c;
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.75;
}

.travel-stack {
  position: relative;
  min-height: clamp(310px, 32vw, 440px);
}

.travel-stack-card {
  position: absolute;
  width: min(70%, 470px);
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 9px solid rgba(255, 250, 241, 0.96);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 18px 32px rgba(73, 44, 27, 0.18);
  transform: rotate(var(--stack-tilt, -5deg));
  cursor: zoom-in;
  transition:
    box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 240ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.travel-stack-card:hover,
.travel-stack-card:focus-visible {
  z-index: 8;
  outline: none;
  box-shadow: 0 26px 46px rgba(73, 44, 27, 0.28);
  filter: saturate(1.08) contrast(1.03);
  transform: translateY(-8px) rotate(var(--stack-tilt, -5deg)) scale(1.035);
}

.travel-stack-card:focus-visible {
  outline: 3px solid rgba(173, 86, 55, 0.42);
  outline-offset: 5px;
}

.travel-stack-card:active {
  transform: translateY(-3px) rotate(var(--stack-tilt, -5deg)) scale(1.015);
}

.travel-stack-card:nth-child(1) {
  top: 4%;
  left: 0;
  z-index: 3;
}

.travel-stack-card:nth-child(2) {
  top: 18%;
  left: 27%;
  z-index: 2;
}

.travel-stack-card:nth-child(3) {
  top: 38%;
  left: 12%;
  z-index: 1;
}

.travel-stack-card:nth-child(4) {
  top: 0;
  left: 47%;
  z-index: 4;
}

.travel-stack-card:nth-child(5) {
  top: 48%;
  left: 42%;
  z-index: 2;
}

.travel-stack-card:nth-child(6) {
  top: 30%;
  left: 58%;
  z-index: 1;
}

.travel-stack-card.tilt-left {
  --stack-tilt: -6deg;
}

.travel-stack-card.tilt-right {
  --stack-tilt: 5deg;
}

.travel-stack-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.travel-stack-card:hover img,
.travel-stack-card:focus-visible img {
  transform: scale(1.055);
}

.travel-stack-wide {
  min-height: clamp(460px, 46vw, 620px);
}

.post-list,
.article-wrapper {
  display: grid;
  gap: 18px;
}

.posts-area,
.projects-area,
.articles-area {
  display: grid;
  gap: 18px;
}

.archive-groups {
  display: grid;
  gap: 28px;
}

.archive-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px 2px;
}

.archive-section-title span {
  display: block;
  color: var(--accent);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-section-title h2 {
  margin: 4px 0 0;
  color: #241713;
  font-size: 26px;
  line-height: 1.2;
}

.archive-section-title a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(173, 86, 55, 0.18);
  border-radius: 7px;
  background: rgba(255, 247, 235, 0.68);
  color: var(--accent-dark);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.archive-section-title a:hover {
  border-color: rgba(173, 86, 55, 0.32);
  background: rgba(255, 238, 214, 0.82);
  color: var(--accent);
}

.post-item {
  padding: 26px;
}

.post-item h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.28;
}

.post-item h2 a:hover {
  color: var(--accent);
}

.post-intro {
  display: grid;
  grid-template-columns: minmax(180px, 270px) minmax(0, 1fr);
  gap: 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.intro-img {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}

.intro-img img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.intro-text p,
.post-date {
  margin: 0;
  color: var(--muted);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 14px;
}

.post-date {
  margin-top: 16px;
}

.site-footer {
  width: min(var(--max), calc(100% - 44px));
  margin: 46px auto 0;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
}

.footer-brand strong {
  display: block;
  color: #241713;
  font-size: 22px;
}

.footer-brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 13px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 48px;
  margin-top: 28px;
}

.footer-links h2 {
  margin: 0 0 12px;
  color: #2a1c15;
  font-size: 16px;
}

.footer-links a {
  display: table;
  margin: 8px 0;
  color: #5f5147;
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 14px;
}

.footer-links p {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 14px;
}

.rss-button {
  display: inline-flex;
  width: auto;
  min-width: 150px;
}

.copyright {
  margin: 24px 0 0;
  color: var(--soft);
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 1080px) {
  .site-header {
    padding-right: 22px;
    padding-left: 22px;
  }

  .brand-copy small {
    display: none;
  }

  .hero-grid,
  .content-grid,
  .travel-notes-section {
    grid-template-columns: 1fr;
  }

  .profile-card {
    min-height: auto;
  }

  .hero-stack {
    grid-template-columns: 1fr 1fr;
  }

  .scene-card {
    min-height: 360px;
  }

  .travel-notes-section {
    min-height: auto;
  }

  .travel-copy {
    max-width: 620px;
  }

  .travel-map-board {
    min-height: 640px;
  }

  .travel-city-stack,
  .travel-city-stack.is-featured {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .travel-stack {
    min-height: clamp(280px, 46vw, 430px);
  }

}

@media (max-width: 800px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .site-nav a {
    min-height: 34px;
  }

  .site-nav a::after,
  .search-mark {
    display: none;
  }

  .site-main,
  .site-footer {
    width: min(100% - 24px, var(--max));
  }

  .hero-stack,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .profile-card,
  .home-panel,
  .inner-title-block,
  .full-post,
  .post-item {
    padding: 22px;
  }

  .profile-card h1 {
    margin-top: 34px;
  }

  .social-grid,
  .tool-grid {
    grid-template-columns: 1fr 1fr;
  }

  .profile-location {
    position: static;
    margin-top: 24px;
  }

  .scene-card {
    min-height: 300px;
  }

  .scene-content {
    padding: 46px 28px;
  }

  .section-heading h2::before,
  .section-heading h2::after,
  .section-heading p::before,
  .section-heading p::after {
    display: none;
  }

  .project-item,
  .article-item,
  .post-intro {
    grid-template-columns: 1fr;
  }

  .project-item,
  .article-item {
    min-height: 0;
  }

  .project-thumb img,
  .article-thumb img {
    height: 100%;
    aspect-ratio: 16 / 9;
  }

  .quote-strip div {
    padding: 24px;
  }

  .travel-notes-section {
    gap: 24px;
    padding: 22px;
  }

  .travel-copy h2 {
    margin-top: 30px;
    font-size: clamp(36px, 10vw, 48px);
  }

  .travel-divider {
    margin: 24px 0 20px;
  }

  .travel-link {
    min-height: 48px;
    margin-top: 26px;
    padding: 9px 22px;
  }

  .travel-map-board {
    min-height: 0;
    padding: 0;
  }

  .travel-map-canvas {
    position: relative;
    min-height: 430px;
    border-radius: 8px;
  }

  .travel-photo-card {
    width: 44%;
    border-width: 6px;
  }

  .photo-label {
    left: 12px;
    bottom: 12px;
    min-height: 24px;
    max-width: calc(100% - 24px);
    font-size: 12px;
  }

  .map-pin {
    font-size: 12px;
  }

  .travel-page-hero h2 {
    max-width: 100%;
  }

  .travel-city-stack {
    padding: 18px;
  }

  .travel-stack,
  .travel-stack-wide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    min-height: 0;
  }

  .travel-stack-card,
  .travel-stack-card:nth-child(n) {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .travel-music-player {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
    width: min(94vw, 520px);
    min-height: 68px;
    padding: 9px 10px;
  }

  .music-disc {
    width: 46px;
    height: 46px;
  }

  .music-eyebrow,
  .music-artist {
    font-size: 10px;
  }

  .music-title {
    font-size: 13px;
  }

  .music-controls {
    gap: 5px;
  }

  .music-control {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .music-toggle {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 520px) {
  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .site-nav {
    font-size: 13px;
  }

  .profile-card h1 {
    font-size: 42px;
  }

  .profile-card h1::after {
    display: none;
  }

  .social-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .scene-card {
    min-height: 260px;
  }

  .scene-content strong {
    font-size: 32px;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .travel-map-canvas {
    min-height: 380px;
  }

  .travel-photo-card {
    width: 47%;
  }

  .travel-stack,
  .travel-stack-wide {
    grid-template-columns: 1fr;
  }

  .travel-stack-card,
  .travel-stack-card:nth-child(n) {
    transform: rotate(0deg);
  }

  .travel-photo-nanjing,
  .travel-photo-suzhou {
    left: 2%;
  }

  .travel-photo-hefei,
  .travel-photo-hangzhou {
    right: 2%;
  }

}
