@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
  --teal: #5cc6b0;
  --teal-deep: #2f8b78;
  --sand: #d4c4a8;
  --ink: #172623;
  --clay: #c67b5c;
  --olive: #6b7b3c;
  --paper: #f6f0e5;
  --card: #fbf6ec;
  --line: rgba(23, 38, 35, 0.18);
  --mute: #5e6d66;
  --r: 28px;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Libre Baskerville", Georgia, "Songti SC", "Noto Serif SC", serif;
  font-size: 16px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)' opacity='0.35'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; }

a { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", "Libre Baskerville", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  margin: 0;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: top 0.25s ease-out;
}
.skip:focus { top: 12px; }

/* ---------- 顶部两行 ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 240, 229, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.strip {
  margin: 0;
  padding: 8px 20px;
  font-size: 16px;
  line-height: 1.5;
  color: #33433d;
  border-bottom: 1px dashed rgba(23, 38, 35, 0.14);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brandrow {
  padding: 12px 20px 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  object-fit: cover;
}

.brand span {
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
}

.navrow {
  padding: 0 18px 12px;
}

.pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pill > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  cursor: pointer;
  user-select: none;
}

.pill > summary::-webkit-details-marker { display: none; }

.pill > summary::after {
  content: "▾";
  font-size: 12px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 0.25s ease-out;
}

.pill[open] > summary::after { transform: rotate(180deg) translateY(1px); }

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

.pill > menu > li { margin: 0; }

.pill > menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fffaef;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.2;
  color: #26382f;
  transition: background 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out;
}

.pill > menu a:hover,
.pill > menu a:focus-visible {
  background: var(--teal);
  border-color: var(--teal-deep);
  color: #0d1b17;
}

/* ---------- 首图 ---------- */

.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(155deg, var(--sand) 0%, var(--teal) 62%, var(--ink) 100%);
}

.hero.bare { background: linear-gradient(155deg, var(--sand) 0%, var(--teal) 58%, var(--ink) 100%); }

.hero-fig {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: -1;
}

.hero-fig::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(205deg, rgba(23, 38, 35, 0.12) 8%, rgba(23, 38, 35, 0.78) 82%);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 1.4s ease-out;
}

.hero:hover .hero-img { transform: scale(1.06); }

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  padding: 30px 22px 24px;
  text-align: right;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.95rem, 6.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fdf9f0;
  text-shadow: 0 2px 18px rgba(12, 24, 20, 0.55);
  border-right: 4px solid var(--teal);
  padding-right: 14px;
  animation: rise 0.8s ease-out both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 主体 ---------- */

main { display: block; }

.sheet {
  display: grid;
  grid-template-columns: minmax(0, 15.5rem) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: start;
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 68px) 20px 76px;
}

.rail {
  position: sticky;
  top: 172px;
  padding-left: 16px;
  border-left: 3px solid var(--teal);
}

.rail small {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--teal-deep);
  line-height: 1.5;
}

.rail h2 {
  font-size: 27px;
  margin: 2px 0 14px;
  color: var(--ink);
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail-list li {
  display: flex;
  gap: 9px;
  align-items: baseline;
  border-bottom: 1px solid rgba(23, 38, 35, 0.1);
}

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

.rail-list span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 15px;
  color: var(--clay);
  letter-spacing: 0.06em;
}

.rail-list a {
  display: inline-block;
  padding: 9px 0;
  min-height: 42px;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.5;
  color: #2b3b34;
  transition: color 0.2s ease-out, padding-left 0.2s ease-out;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: var(--teal-deep);
  padding-left: 4px;
}

.piece { min-width: 0; }

.piece > section {
  background: var(--card);
  border-radius: var(--r);
  border-bottom: 3px solid rgba(92, 198, 176, 0.6);
  box-shadow: 0 20px 34px -30px rgba(23, 38, 35, 0.85);
  padding: clamp(22px, 3.6vw, 38px);
  margin: 0 0 22px;
}

.piece section[id],
.piece [id] { scroll-margin-top: 210px; }

.piece > section:last-child { margin-bottom: 0; }

.piece h2 {
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  margin: 0 0 0.7em;
  color: #14211d;
}

.piece h3 {
  font-size: 1.2rem;
  margin: 1.5em 0 0.5em;
  color: #1c2c26;
}

.piece p { color: #26332d; }

.piece ul,
.piece ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
}

.piece li { margin-bottom: 0.45em; }

.piece a {
  color: var(--teal-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 139, 120, 0.45);
}

.piece a:hover { border-bottom-color: var(--teal-deep); }

.piece blockquote {
  margin: 1.2em 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--sand);
  color: #3b4a43;
  font-style: italic;
}

.piece figure { margin: 1.2em 0; }
.piece figure img { border-radius: 20px; display: block; }

.piece table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.piece th,
.piece td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.piece code {
  font-size: 15px;
  background: rgba(212, 196, 168, 0.4);
  padding: 1px 5px;
  border-radius: 6px;
}

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

.foot {
  background: var(--ink);
  color: #e6ded0;
  padding: clamp(34px, 6vw, 64px) 20px 26px;
}

.cta {
  max-width: 1140px;
  margin: 0 auto clamp(28px, 4vw, 46px);
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(212, 196, 168, 0.28);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.cta-brand {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: #f3ecdd;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--teal);
  color: #0e1c18;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.22s ease-out, transform 0.22s ease-out;
}

.cta-link:hover { background: #7ad9c5; transform: translateY(-2px); }

.fcols {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 26px 22px;
}

.fcol { min-width: 0; }

.addr {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #cfc7b8;
  font-size: 16px;
  line-height: 1.7;
}

.addr-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  color: #f3ecdd;
}

.fcol ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fcol ul li { margin: 0; }

.fcol ul a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #cfc7b8;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease-out, border-color 0.2s ease-out;
}

.fcol ul a:hover,
.fcol ul a:focus-visible {
  color: var(--teal);
  border-bottom-color: rgba(92, 198, 176, 0.6);
}

.copy {
  max-width: 1140px;
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 196, 168, 0.2);
  font-size: 16px;
  color: #a9a294;
  line-height: 1.6;
}

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

/* ---------- 动效 ---------- */

.js .piece > section,
.js .rail-list li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.62s ease-out, transform 0.62s ease-out;
}

.js .piece > section.in,
.js .rail-list li.in {
  opacity: 1;
  transform: none;
}

.js .piece > section:nth-child(2) { transition-delay: 0.05s; }
.js .piece > section:nth-child(3) { transition-delay: 0.1s; }
.js .piece > section:nth-child(4) { transition-delay: 0.15s; }
.js .piece > section:nth-child(5) { transition-delay: 0.2s; }
.js .piece > section:nth-child(6) { transition-delay: 0.25s; }
.js .piece > section:nth-child(7) { transition-delay: 0.3s; }

/* ---------- 断点 ---------- */

@media (max-width: 900px) {
  .sheet {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .rail {
    position: static;
    border-left: 0;
    border-top: 2px solid var(--teal);
    padding: 14px 0 0;
  }

  .rail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }

  .rail h2 { margin-bottom: 10px; }

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

  .addr { grid-column: 1 / -1; }

  .piece section[id],
  .piece [id] { scroll-margin-top: 260px; }
}

@media (max-width: 560px) {
  .brand { font-size: 23px; }
  .hero { min-height: 46vh; }
  .hero-copy { padding: 26px 18px 22px; max-width: 100%; }
  .hero h1 { border-right-width: 3px; padding-right: 11px; }
  .pill > menu a { padding: 0 13px; }
  .cta { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 { animation: none; }
  .hero-img { transition: none; }
  .js .piece > section,
  .js .rail-list li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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