@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Righteous&display=swap');

:root {
  --ink: #000000;
  --paper: #ffffff;
  --soft: #6a6a6a;
  --hair: #d8d8d8;
  --pad: clamp(18px, 4vw, 48px);
  --r: 28px;
}

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

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

body {
  margin: 0;
  padding-bottom: 104px;
  background: var(--paper);
  color: var(--ink);
  font-family: Poppins, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: Righteous, Poppins, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.12;
}

p { margin: 0 0 14px; }

/* ---------- 底部固定栏 ---------- */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px var(--pad);
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--ink);
}

.brand {
  flex: 0 0 auto;
  font-family: Righteous, Poppins, sans-serif;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 11px 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: opacity 0.18s ease;
}

.brand:hover { opacity: 0.6; }

.nav { flex: 1 1 auto; min-width: 0; }

.nav-line {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 2px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-line::-webkit-scrollbar { display: none; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--paper);
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.pill:hover,
.pill:focus-visible {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-2px);
}

.search { flex: 0 0 auto; display: none; }

.search-in {
  width: 168px;
  min-height: 40px;
  padding: 8px 16px;
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--paper);
  border-radius: 999px;
  outline: none;
}

.search-in::placeholder { color: var(--paper); opacity: 0.7; }
.search-in:focus { background: var(--paper); color: var(--ink); }
.search-in:focus::placeholder { color: var(--soft); opacity: 1; }

/* ---------- 首屏 ---------- */
.band {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  min-height: 45vh;
  padding: clamp(26px, 6vw, 64px) var(--pad) clamp(14px, 3vw, 28px);
  border-bottom: 6px solid var(--ink);
}

.band-copy { grid-column: 1 / span 7; }

h1 {
  font-size: clamp(30px, 5.6vw, 62px);
  margin-bottom: 14px;
}

.lead {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--soft);
}

.collage {
  grid-column: 8 / span 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

.ph {
  border: 2px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f2f2f2;
  transition: transform 0.32s ease;
}

.ph-b { transform: translateY(26px); }
.ph-a:hover { transform: translateY(-6px); }
.ph-b:hover { transform: translateY(18px); }

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

/* ---------- 主体网格 ---------- */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(20px, 3.4vw, 44px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 60px) var(--pad);
  align-items: start;
}

.rail {
  position: sticky;
  top: 24px;
  border-top: 3px solid var(--ink);
  padding-top: 12px;
}

.rail-h { font-size: 22px; }

.subtitle {
  margin: 4px 0 16px;
  font-size: 16px;
  color: var(--soft);
}

.rail-list,
.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail-list { border-top: 1px solid var(--hair); }
.rail-list li { border-bottom: 1px solid var(--hair); }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 0;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
}

.rail-list a:hover { text-decoration: underline; text-underline-offset: 5px; }

.prose { min-width: 0; }

.prose > section {
  margin: 0 0 22px;
  padding: clamp(18px, 3vw, 34px);
  border: 2px solid var(--ink);
  border-bottom-width: 7px;
  border-radius: var(--r);
  background: var(--paper);
  scroll-margin-top: 20px;
  transition: transform 0.28s ease;
}

.prose > section:hover { transform: translateY(-3px); }

.prose > section h2 {
  font-size: clamp(20px, 2.5vw, 30px);
  margin: 0 0 14px;
}

.prose > section h3 {
  font-size: clamp(18px, 2vw, 22px);
  margin: 22px 0 10px;
}

.prose p { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }

.prose ul,
.prose ol { margin: 0 0 16px; padding-left: 1.25em; }
.prose li { margin-bottom: 8px; }

.prose blockquote {
  margin: 18px 0;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--ink);
  font-size: 17px;
}

.prose img { border-radius: 18px; margin: 14px 0; }

.prose a { text-decoration-thickness: 2px; text-underline-offset: 3px; }

.is-hide { display: none !important; }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: clamp(30px, 5vw, 56px);
  padding: clamp(30px, 5vw, 60px) var(--pad) 130px;
  background: var(--ink);
  color: var(--paper);
  border-top: 6px solid var(--ink);
}

.foot-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--paper);
}

.cta-k {
  margin: 0;
  font-family: Righteous, Poppins, sans-serif;
  font-size: clamp(22px, 4vw, 40px);
  line-height: 1.1;
}

.cta-link {
  font-family: Righteous, Poppins, sans-serif;
  font-size: clamp(18px, 2.4vw, 24px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  border-bottom: 3px solid var(--paper);
}

.cta-link:hover { color: #bdbdbd; border-color: #bdbdbd; }

.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.addr {
  font-style: normal;
  font-family: Righteous, Poppins, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

.foot-col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  text-decoration: none;
}

.foot-col a:hover { text-decoration: underline; text-underline-offset: 5px; }

.keys li { font-size: 16px; line-height: 1.9; color: #cfcfcf; }

.foot-base {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #4a4a4a;
  text-align: center;
  font-size: 16px;
}

/* ---------- 断点 ---------- */
@media (min-width: 760px) {
  .search { display: block; }
}

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

  .rail {
    position: static;
    margin-bottom: 8px;
  }

  .rail-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
    border-top: 1px solid var(--hair);
  }

  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 719px) {
  .band {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 18px;
    padding-top: 26px;
  }

  .band-copy { grid-column: auto; }
  .collage { grid-column: auto; max-width: 340px; }
  .ph-b { transform: translateY(14px); }
  .ph-b:hover { transform: translateY(8px); }
  .lead { max-width: none; }
  .foot { padding-bottom: 120px; }
}

@media (max-width: 430px) {
  body { font-size: 16px; }
  .rail-list { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition: none !important; animation: none !important; }
  .prose > section:hover,
  .ph-a:hover,
  .ph-b:hover,
  .pill:hover { transform: none; }
}

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