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

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-bottom: 64px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Josefin Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #000;
  background: #fff;
  min-height: 100vh;
  padding-bottom: 64px; /* bottom bar height */
}

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

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

ol, ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

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

/* ── Site Wrapper ── */
.site-wrapper { position: relative; }

/* ══════════════════════════════════
   FULLSCREEN MENU
══════════════════════════════════ */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: #000;
  color: #fff;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.fullscreen-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.menu-inner {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2rem;
  width: min(520px, 90vw);
  min-height: 60vh;
  padding: 3rem 0;
}

.menu-brand {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid #333;
  padding-bottom: 1.5rem;
}

.menu-nav ol {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.menu-nav ol > li > a.nav-link {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #fff;
  padding: 0.75rem 0;
  border-bottom: 1px solid #222;
  transition: color 220ms ease, padding-left 220ms ease;
  counter-increment: menu-item;
}

.menu-nav ol {
  counter-reset: menu-item;
}

.menu-nav ol > li > a.nav-link::before {
  content: counter(menu-item, decimal-leading-zero) ". ";
  font-size: 0.75em;
  opacity: 0.4;
  margin-right: 0.5rem;
}

.menu-nav ol > li > a.nav-link:hover {
  color: #ccc;
  padding-left: 0.75rem;
}

.menu-close-wrap {
  display: flex;
  justify-content: flex-end;
}

.menu-close {
  background: none;
  border: 1px solid #444;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color 200ms;
}

.menu-close:hover { border-color: #fff; }

.menu-close span {
  display: block;
  width: 20px;
  height: 1px;
  background: #fff;
}

.menu-close span:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}
.menu-close span:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: grid;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  position: relative;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem 8rem 4rem;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 1.5rem;
  border-left: 3px solid #000;
  padding-left: 0.75rem;
}

.hero-h1 {
  margin-bottom: 1.5rem;
  color: #000;
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  max-width: 420px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: #000;
  padding: 1rem 2rem;
  border: 2px solid #000;
  transition: background 220ms ease, color 220ms ease;
  align-self: flex-start;
  min-height: 48px;
}

.hero-cta:hover {
  background: #fff;
  color: #000;
}

.hero-media {
  position: relative;
  background: #000;
  overflow: hidden;
}

.hero-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-img-wrap .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(20%) contrast(1.1);
}

.hero-geo-block {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  height: 30%;
  background: rgba(0,0,0,0.6);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* 斜切色带 */
.hero-slash {
  position: absolute;
  left: -40px;
  top: 0;
  bottom: 0;
  width: 80px;
  background: #fff;
  clip-path: polygon(40px 0, 100% 0, 60px 100%, 0 100%);
  z-index: 3;
}

/* ══════════════════════════════════
   MAIN CONTENT
══════════════════════════════════ */
main {
  position: relative;
  background: #fff;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.content-section {
  padding: 5rem 0;
}

.content-article {
  width: 100%;
}

.content-with-aside {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
}

/* ── Aside ── */
.content-aside {
  position: sticky;
  top: 1rem;
  border-right: 1px solid #e0e0e0;
  padding-right: 2rem;
}

.aside-label {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1rem;
}

.aside-nav {
  counter-reset: aside-item;
}

.aside-nav > li {
  counter-increment: aside-item;
  border-bottom: 1px solid #f0f0f0;
}

.aside-nav > li > a {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #555;
  padding: 0.6rem 0;
  transition: color 200ms;
}

.aside-nav > li > a:hover {
  color: #000;
}

.aside-nav > li > a::before {
  content: counter(aside-item, decimal-leading-zero);
  display: inline-block;
  width: 1.8em;
  font-size: 0.75em;
  color: #bbb;
  margin-right: 0.4rem;
}

/* ── Content Body ── */
.content-body {
  min-width: 0;
}

/* page.content 内的节样式 */
.content-body section {
  padding: 4rem 0;
  border-bottom: 1px solid #e8e8e8;
  scroll-margin-bottom: 80px;
}

.content-body section:last-child {
  border-bottom: none;
}

.content-body h2 {
  margin-bottom: 1.5rem;
  position: relative;
}

.content-body small {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 0.5rem;
}

.content-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.content-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: #1a1a1a;
  margin-bottom: 1.25em;
}

.content-body ul,
.content-body ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25em;
}

.content-body ol { list-style: decimal; }

.content-body li {
  margin-bottom: 0.5em;
  line-height: 1.7;
  color: #1a1a1a;
}

.content-body a {
  border-bottom: 1px solid #000;
  transition: opacity 200ms;
}

.content-body a:hover { opacity: 0.6; }

.content-body blockquote {
  border-left: 4px solid #000;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #f8f8f8;
  font-style: italic;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.content-body th,
.content-body td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid #e0e0e0;
}

.content-body th {
  background: #000;
  color: #fff;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Section 区块分隔色带 */
.content-body section:nth-child(even) {
  position: relative;
}

.content-body section:nth-child(even)::before {
  content: '';
  display: block;
  height: 2px;
  background: #000;
  width: 48px;
  margin-bottom: 2rem;
}

/* Scroll-margin for sections with id */
section[id] {
  scroll-margin-top: 80px;
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.site-footer {
  background: #000;
  color: #fff;
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #222;
}

.footer-col {}

.footer-brand-name {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: #888;
  line-height: 1.7;
  margin: 0;
}

.footer-label {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 1rem;
}

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

.footer-address a,
.footer-address span {
  font-size: 0.875rem;
  color: #aaa;
}

.footer-address a:hover { color: #fff; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-links > li > a {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.875rem;
  color: #888;
  padding: 0.4rem 0;
  border-bottom: 1px solid #1a1a1a;
  transition: color 200ms;
}

.footer-links > li > a:hover { color: #fff; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copy,
.footer-note {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  color: #555;
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════
   BOTTOM BAR
══════════════════════════════════ */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #fff;
  border-top: 2px solid #000;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  z-index: 800;
}

.bottom-bar__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-text-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #000;
  color: #fff;
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.bottom-bar__search {
  flex: 1;
}

.search-form {
  display: flex;
  align-items: center;
  border: 1px solid #000;
  height: 40px;
  overflow: hidden;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 0.75rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.875rem;
  color: #000;
  background: #fff;
  height: 100%;
}

.search-input::placeholder { color: #aaa; }

.search-btn {
  width: 40px;
  height: 40px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 200ms;
}

.search-btn:hover { background: #333; }

.bottom-bar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  background: none;
  border: 1px solid #000;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 200ms;
  padding: 0;
}

.bottom-bar__hamburger:hover {
  background: #000;
}

.bottom-bar__hamburger:hover span {
  background: #fff;
}

.bottom-bar__hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #000;
  transition: background 200ms;
}

/* ══════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html { scroll-behavior: auto; }

  .fullscreen-menu { transition: none; }

  .menu-nav ol > li > a.nav-link { transition: none; }

  .hero-cta { transition: none; }
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .hero-text {
    padding: 5rem 2rem 3rem;
    order: 1;
  }

  .hero-media {
    min-height: 50vw;
    order: 2;
  }

  .hero-slash { display: none; }

  .content-with-aside {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .content-aside {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding-right: 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body { font-size: 16px; }

  .hero-text {
    padding: 4rem 1.25rem 2.5rem;
  }

  .hero-desc { max-width: 100%; }

  .wrap { padding: 0 1.25rem; }

  .content-section { padding: 3rem 0; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-inner {
    padding: 2rem 1.5rem;
  }

  .bottom-bar {
    padding: 0 1rem;
    gap: 0.75rem;
  }
}

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
