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

:root {
  --mint: #b4fde1;
  --sky: #add8e6;
  --ink: #172620;
  --edge: #20362c;
  --paper: #f4fdf8;
  --r-lg: 28px;
  --r-md: 20px;
  --shadow: inset -3px -3px 9px rgba(23, 38, 32, 0.10), inset 3px 3px 10px rgba(255, 255, 255, 0.92), 6px 8px 0 rgba(23, 38, 32, 0.13), 0 16px 30px rgba(23, 38, 32, 0.10);
  --shadow-soft: inset -2px -2px 6px rgba(23, 38, 32, 0.08), inset 2px 2px 6px rgba(255, 255, 255, 0.85), 3px 5px 0 rgba(23, 38, 32, 0.12), 0 10px 20px rgba(23, 38, 32, 0.08);
}

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

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

body {
  margin: 0;
  font-family: 'EB Garamond', 'Crimson Text', 'Songti SC', 'Noto Serif SC', 'Source Han Serif SC', Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(1100px 480px at 8% -10%, #ddfff1 0%, rgba(221, 255, 241, 0) 62%),
    radial-gradient(880px 420px at 102% 2%, #dcf1f9 0%, rgba(220, 241, 249, 0) 58%),
    #f7fdfa;
}

::selection { background: var(--mint); color: var(--ink); }

:focus-visible {
  outline: 3px solid #0d5744;
  outline-offset: 3px;
}

menu { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { line-height: 1.28; letter-spacing: -0.01em; }

/* ---------- 顶栏 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px clamp(10px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(247, 253, 250, 0.97), rgba(247, 253, 250, 0.80));
  backdrop-filter: blur(9px);
  border-bottom: 3px solid var(--edge);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 4px 14px 4px 6px;
  border: 3px solid var(--edge);
  border-radius: 999px;
  background: linear-gradient(155deg, #ffffff, var(--mint));
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  flex: none;
}

.mark,
.mark-img {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  border: 2.5px solid var(--edge);
  background: radial-gradient(circle at 32% 28%, #ffffff, var(--sky));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  overflow: hidden;
  object-fit: cover;
}

.brand-name { font-size: 17px; letter-spacing: 0.01em; }

.dock { margin-left: auto; position: relative; }

.dock > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 16px;
  border: 3px solid var(--edge);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  font-size: 16px;
  user-select: none;
}

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

.dock[open] > summary { background: linear-gradient(160deg, #ffffff, var(--mint)); }

.ico {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 4px;
  border: 2px solid var(--edge);
  background: var(--sky);
}

.dock-list { display: flex; gap: 4px; align-items: center; }

.dock-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  border: 2px solid transparent;
  color: inherit;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s ease-out, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease-out;
}

.dock-link:hover {
  background: var(--mint);
  border-color: var(--edge);
  transform: translateY(-3px);
}

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 15px;
  border: 3px solid var(--edge);
  border-radius: 999px;
  background: linear-gradient(160deg, #ffffff, var(--sky));
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  flex: none;
}

/* ---------- 主体 ---------- */
main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px clamp(12px, 3vw, 30px) 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

section.prose { min-width: 0; }

section > article {
  background: linear-gradient(168deg, #ffffff, #eefcf5);
  border: 3px solid var(--edge);
  border-radius: var(--r-lg);
  padding: clamp(18px, 3vw, 34px);
  margin: 0 0 22px;
  box-shadow: var(--shadow);
  scroll-margin-top: 96px;
  animation: rise 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

section > article:nth-child(2) { animation-delay: 0.05s; }
section > article:nth-child(3) { animation-delay: 0.1s; }
section > article:nth-child(4) { animation-delay: 0.15s; }
section > article:nth-child(5) { animation-delay: 0.2s; }
section > article:nth-child(6) { animation-delay: 0.25s; }
section > article:nth-child(7) { animation-delay: 0.3s; }
section > article:nth-child(n + 8) { animation-delay: 0.34s; }

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

/* ---------- 头图 ---------- */
.hero {
  display: grid;
  gap: 18px;
  align-content: center;
  min-height: 45vh;
  overflow: hidden;
  position: relative;
  background: linear-gradient(150deg, #e7fff5 0%, #d9f2fb 100%);
}

.hero-copy { min-width: 0; }

.badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 15px;
  border: 3px solid var(--edge);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  font-size: 16px;
  font-weight: 700;
  transform: rotate(-2.5deg);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(29px, 5.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0;
  font-size: 17px;
  max-width: 44ch;
  color: #23473a;
}

.acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border: 3px solid var(--edge);
  border-radius: 999px;
  background: linear-gradient(160deg, #ffffff, var(--mint));
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease-out;
}

.btn-ghost { background: #ffffff; }

.btn:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.collage {
  position: relative;
  min-height: 218px;
  aspect-ratio: 4 / 3;
}

.collage .shot {
  position: absolute;
  max-width: none;
  object-fit: cover;
  border: 4px solid var(--edge);
  border-radius: var(--r-md);
  background: #e2f7ee;
  box-shadow: var(--shadow);
}

.shot-a {
  width: 64%;
  height: 74%;
  left: 0;
  top: 2%;
  transform: rotate(-3.5deg);
}

.shot-b {
  width: 55%;
  height: 64%;
  right: 0;
  bottom: 2%;
  transform: rotate(3.5deg);
}

.blob {
  position: absolute;
  border: 4px solid var(--edge);
  border-radius: 46% 54% 58% 42% / 52% 46% 54% 48%;
  box-shadow: var(--shadow);
}

.blob.b1 {
  width: 58%;
  height: 72%;
  left: 2%;
  top: 4%;
  background: linear-gradient(150deg, #ffffff, var(--mint));
  transform: rotate(-5deg);
}

.blob.b2 {
  width: 48%;
  height: 58%;
  right: 3%;
  bottom: 4%;
  background: linear-gradient(150deg, #ffffff, var(--sky));
  transform: rotate(6deg);
}

/* ---------- 正文排版 ---------- */
section h2 {
  font-size: clamp(22px, 3.1vw, 31px);
  margin: 0.15em 0 0.55em;
  font-weight: 700;
}

section h3 {
  font-size: clamp(19px, 2.2vw, 23px);
  margin: 1.3em 0 0.5em;
  font-weight: 700;
}

section small {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #3d7a63;
  margin-bottom: 2px;
}

section p { margin: 0 0 1em; max-width: 64ch; }

section a {
  color: #0d5744;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

section ul,
section ol { padding-left: 1.25em; margin: 0 0 1em; }

section li { margin-bottom: 0.4em; }

section img {
  max-width: 100%;
  height: auto;
  border: 3px solid var(--edge);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
}

section blockquote {
  margin: 0 0 1em;
  padding: 14px 18px;
  border: 3px solid var(--edge);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, #ffffff, #e7fbf2);
  box-shadow: inset 3px 3px 9px rgba(255, 255, 255, 0.9), inset -3px -3px 9px rgba(23, 38, 32, 0.08);
}

section blockquote p:last-child { margin-bottom: 0; }

section table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

section th,
section td {
  border: 2px solid #c8e7da;
  padding: 8px 12px;
  text-align: left;
}

section th { background: #e9fdf4; }

section hr {
  border: 0;
  border-top: 3px dashed #b6ddcd;
  margin: 1.4em 0;
}

/* ---------- 侧栏 ---------- */
.rail {
  background: linear-gradient(170deg, #ffffff, #e9f7fd);
  border: 3px solid var(--edge);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow);
  align-self: start;
}

.rail small {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #3d7a63;
}

.rail h2 { margin: 2px 0 12px; font-size: 21px; }

.rail-list { display: grid; gap: 5px; }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 2px solid transparent;
  border-radius: 13px;
  color: inherit;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s ease-out, transform 0.2s ease-out, border-color 0.2s ease-out;
}

.rail-list a:hover {
  background: var(--mint);
  border-color: var(--edge);
  transform: translateX(3px);
}

.totop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
  border: 3px solid var(--edge);
  border-radius: 999px;
  background: linear-gradient(160deg, #ffffff, var(--sky));
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

/* ---------- 页脚 ---------- */
footer {
  border-top: 3px solid var(--edge);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(180, 253, 225, 0.6));
  padding: 20px clamp(12px, 3vw, 30px) 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 2px solid transparent;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.foot-links a:hover { background: #ffffff; border-color: var(--edge); }

.foot-copy {
  flex-basis: 100%;
  font-size: 16px;
  color: #2c4a3c;
}

.foot-copy p { margin: 0; }

/* ---------- 断点 ---------- */
@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    min-height: 45vh;
  }
}

@media (min-width: 900px) {
  main {
    grid-template-columns: minmax(0, 1fr) 286px;
    align-items: start;
  }
  .rail { position: sticky; top: 88px; }
}

@media (max-width: 821px) {
  .dock-list {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(76vw, 264px);
    padding: 10px;
    border: 3px solid var(--edge);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }
  .dock[open] .dock-list { display: flex; }
  .dock-link { min-height: 44px; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 16px; }
  .hero { min-height: 45vh; }
  .collage { min-height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
}

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