@import url('https://fonts.googleapis.com/css2?family=Karla:wght@300;400;500;600;700&family=Playfair+Display+SC:wght@400;700&display=swap');

:root {
  --ink: #1B1E2B;
  --amber: #E8B24A;
  --paper: #F4EFE6;
  --dim: rgba(244, 239, 230, 0.64);
  --soft: rgba(244, 239, 230, 0.86);
  --line: rgba(232, 178, 74, 0.22);
  --edge: rgba(244, 239, 230, 0.09);
  --glass: rgba(244, 239, 230, 0.05);
  --dock: 268px;
}

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

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

body {
  margin: 0;
  background-color: var(--ink);
  background-image: radial-gradient(rgba(244, 239, 230, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--paper);
  font-family: Karla, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

a {
  color: var(--amber);
  text-underline-offset: 3px;
}

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

hr {
  border: 0;
  height: 2px;
  width: 62px;
  margin: 0.55rem 0 1.1rem;
  background: linear-gradient(90deg, var(--amber), rgba(232, 178, 74, 0));
}

/* ---------- 左侧竖排导航 ---------- */

.docked {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--dock);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.6rem 1.2rem;
  background: linear-gradient(180deg, rgba(27, 30, 43, 0.96), rgba(27, 30, 43, 0.86));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 40;
  overflow-y: auto;
}

.mark {
  font-family: "Playfair Display SC", Georgia, "Songti SC", serif;
  font-size: 1.32rem;
  letter-spacing: 0.06em;
  line-height: 1.35;
  color: var(--paper);
  text-decoration: none;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}

.mark::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 0.55rem;
  background: var(--amber);
}

.menu-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.menu-wrap summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--paper);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.menu-wrap summary::-webkit-details-marker {
  display: none;
}

.menu-wrap summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.3s ease;
}

.menu-wrap[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.menu-wrap summary:hover {
  background: rgba(232, 178, 74, 0.14);
  border-color: rgba(232, 178, 74, 0.5);
}

.menu-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 0.85rem;
  flex: 1;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--dim);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
  transform: translateX(4px);
}

.find {
  margin-top: auto;
  display: flex;
  gap: 0.4rem;
}

.find input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--paper);
  font: inherit;
  font-size: 0.9rem;
}

.find input::placeholder {
  color: rgba(244, 239, 230, 0.45);
}

.find button {
  min-height: 44px;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--amber);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease;
}

.find button:hover {
  background: var(--amber);
  color: var(--ink);
}

/* ---------- 主区域 ---------- */

.flow {
  margin-left: var(--dock);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  border-bottom: 1px solid var(--line);
}

.hero-art {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background-color: rgba(0, 0, 0, 0.25);
  background-image:
    radial-gradient(rgba(232, 178, 74, 0.28) 1px, transparent 1px),
    radial-gradient(rgba(244, 239, 230, 0.08) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
  background-position: 0 0, 14px 14px;
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(27, 30, 43, 0.05), rgba(27, 30, 43, 0.62));
  pointer-events: none;
}

.hero-copy {
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: clamp(1.6rem, 5vw, 4rem);
}

.kinetic {
  margin: 0;
  color: var(--paper);
  font-family: "Playfair Display SC", Georgia, "Songti SC", "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1.14;
  letter-spacing: 0.01em;
  word-break: break-word;
  overflow-wrap: break-word;
  text-shadow: 0 0 42px rgba(232, 178, 74, 0.18);
}

.kinetic .ch {
  display: inline-block;
  background: linear-gradient(160deg, var(--paper) 30%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.55em) rotate(5deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.dash {
  display: block;
  width: 92px;
  height: 3px;
  margin: 1.5rem auto 0;
  background: linear-gradient(90deg, rgba(232, 178, 74, 0), var(--amber), rgba(232, 178, 74, 0));
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.1rem, 4vw, 3rem);
}

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 258px;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.prose {
  min-width: 0;
  font-size: 1.06rem;
  overflow-wrap: break-word;
}

.prose > div {
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: 4px;
  padding: clamp(1.3rem, 3.4vw, 2.2rem);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  scroll-margin-top: 96px;
}

.prose > div:target {
  border-color: rgba(232, 178, 74, 0.55);
  box-shadow: 0 0 0 1px rgba(232, 178, 74, 0.22);
}

.prose h2 {
  margin: 0;
  font-family: "Playfair Display SC", Georgia, "Songti SC", serif;
  font-weight: 700;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1.32;
  color: var(--amber);
}

.prose h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1.16rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--paper);
}

.prose h4 {
  margin: 1.2rem 0 0.3rem;
  font-size: 1.03rem;
  color: var(--paper);
}

.prose p {
  margin: 0.9rem 0;
  color: var(--soft);
}

.prose ul,
.prose ol {
  margin: 0.9rem 0;
  padding-left: 1.3rem;
  color: var(--soft);
}

.prose li {
  margin: 0.4rem 0;
}

.prose strong,
.prose b {
  color: var(--paper);
}

.prose blockquote {
  margin: 1.2rem 0;
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--amber);
  background: rgba(232, 178, 74, 0.08);
  color: var(--soft);
}

.prose blockquote p {
  margin: 0.3rem 0;
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  margin: 1rem 0;
}

.prose th,
.prose td {
  border: 1px solid var(--edge);
  padding: 0.5rem 0.6rem;
  text-align: left;
  color: var(--soft);
}

.prose th {
  background: rgba(232, 178, 74, 0.1);
  color: var(--paper);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ---------- 右侧栏 ---------- */

.rail {
  position: sticky;
  top: 1.5rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.1rem 1.15rem 1.3rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.rail h2 {
  margin: 0;
  font-family: "Playfair Display SC", Georgia, "Songti SC", serif;
  font-size: 1.06rem;
  letter-spacing: 0.08em;
  color: var(--paper);
}

.rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.rail a {
  display: flex;
  align-items: center;
  min-height: 42px;
  font-size: 0.95rem;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px dashed rgba(244, 239, 230, 0.13);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.rail li:last-child a {
  border-bottom: 0;
}

.rail a:hover {
  color: var(--amber);
  padding-left: 5px;
}

/* ---------- 页脚 ---------- */

.floor {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  padding: clamp(2rem, 5vw, 3.4rem) clamp(1.1rem, 4vw, 3rem) 1.6rem;
}

.floor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1080px;
}

.floor address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.floor-mark {
  font-family: "Playfair Display SC", Georgia, "Songti SC", serif;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  color: var(--amber);
}

.floor-host {
  font-size: 0.95rem;
  color: var(--dim);
  word-break: break-all;
}

.floor h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--paper);
}

.floor ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.floor ul a {
  display: flex;
  align-items: center;
  min-height: 42px;
  font-size: 0.95rem;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.floor ul a:hover {
  color: var(--amber);
}

.sub p {
  margin: 0;
  display: flex;
  gap: 0.4rem;
}

.sub input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--edge);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--paper);
  font: inherit;
  font-size: 0.92rem;
}

.sub input::placeholder {
  color: rgba(244, 239, 230, 0.45);
}

.sub button {
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--amber);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease;
}

.sub button:hover {
  background: var(--amber);
  color: var(--ink);
}

.copy {
  margin: 2.2rem 0 0;
  font-size: 0.86rem;
  color: rgba(244, 239, 230, 0.48);
}

/* ---------- 滚动显现 ---------- */

.js .prose > div.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .prose > div.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .kinetic .ch {
    animation: none;
  }
  .js .prose > div.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 窄屏 ---------- */

@media (max-width: 1279px) {
  .cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    position: static;
  }
}

@media (max-width: 1023px) {
  .docked {
    inset: 0 0 auto 0;
    width: auto;
    max-height: 100vh;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.9rem 0.7rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .mark {
    flex: 1 1 auto;
    border-bottom: 0;
    padding-bottom: 0;
    font-size: 1.05rem;
  }
  .mark::after {
    display: none;
  }
  .menu-wrap {
    flex: 0 0 auto;
  }
  .menu-wrap[open] {
    width: 100%;
  }
  .menu-wrap summary {
    letter-spacing: 0.08em;
  }
  .find {
    padding-bottom: 0.3rem;
  }
  .flow {
    margin-left: 0;
    padding-top: 66px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: calc(100vh - 66px);
  }
  .hero-art {
    height: 40vh;
    min-height: 216px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .hero-art img {
    min-height: 216px;
  }
  .hero-copy {
    padding: 2.2rem 1.1rem 2.8rem;
  }
  .floor-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }
  .prose > div {
    scroll-margin-top: 116px;
  }
}

@media (max-width: 480px) {
  .kinetic {
    font-size: clamp(1.85rem, 8.4vw, 2.5rem);
  }
  .wrap {
    padding: 1.8rem 1rem 2.4rem;
  }
  .floor {
    padding: 1.8rem 1rem 1.4rem;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
