@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400&family=Playfair+Display:ital@1&display=swap');

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #000000;
  overflow-x: hidden;
  max-width: 100vw;
}

/* scroll-margin for fixed header */
article[id] {
  scroll-margin-top: 96px;
}

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

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

ul, ol {
  list-style: none;
}

/* =============================================
   TYPOGRAPHY SCALE
   ============================================= */
h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.6rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.3rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p {
  font-size: 1rem;
  line-height: 1.75;
}

small {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

/* =============================================
   SITE WRAPPER
   ============================================= */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* =============================================
   HEADER — 双行
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  color: #fff;
  border-bottom: 1px solid #222;
  width: 100%;
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid #222;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo__text {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.brand-logo__img {
  height: 36px;
  width: auto;
}

.header-nav-row {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
  overflow: hidden;
}

.main-nav {
  display: flex;
  align-items: center;
  width: 100%;
}

.main-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: 100%;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ccc;
  border-right: 1px solid #222;
  transition: color 200ms ease, background 200ms ease;
  min-height: 40px;
  white-space: nowrap;
}

.nav__link:first-child {
  border-left: 1px solid #222;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: #fff;
  background: #111;
  outline: none;
}

/* =============================================
   CTA BUTTONS
   ============================================= */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 2px solid currentColor;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease;
  min-height: 40px;
  padding: 0.55rem 1.2rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.cta-btn--header {
  background: #fff;
  color: #000;
  border-color: #fff;
  font-size: 0.78rem;
  padding: 0.45rem 0.9rem;
  flex-shrink: 0;
}

.cta-btn--header:hover,
.cta-btn--header:focus-visible {
  background: transparent;
  color: #fff;
  outline: none;
}

.cta-btn--hero {
  background: #000;
  color: #fff;
  border-color: #fff;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  padding: 0.7rem 2rem;
  min-height: 48px;
  align-self: flex-start;
}

.cta-btn--hero:hover,
.cta-btn--hero:focus-visible {
  background: #fff;
  color: #000;
  outline: none;
}

.cta-btn--large {
  background: #fff;
  color: #000;
  border-color: #fff;
  font-size: 1rem;
  padding: 0.85rem 2.5rem;
  min-height: 52px;
  margin-top: 1.5rem;
}

.cta-btn--large:hover,
.cta-btn--large:focus-visible {
  background: transparent;
  color: #fff;
  outline: none;
}

/* =============================================
   HERO — 双图错位
   ============================================= */
.hero {
  background: #000;
  color: #fff;
  min-height: 45vh;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #000;
  overflow: hidden;
  width: 100%;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  min-height: 45vh;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem 3rem 2rem;
  text-align: left;
  min-width: 0;
}

.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #888;
  margin-bottom: 1rem;
}

.hero__h1 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  word-break: break-all;
}

.hero__sub {
  margin-top: 1rem;
  font-size: 1rem;
  color: #aaa;
  line-height: 1.7;
  max-width: 480px;
}

.hero__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  background: #111;
  min-height: 45vh;
  overflow: hidden;
}

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

.hero-img--a {
  grid-column: 1;
  grid-row: 1 / 3;
}

.hero-img--b {
  grid-column: 2;
  grid-row: 1;
}

/* =============================================
   MAIN / ARTICLE LAYOUT
   main > section > article 三层直接嵌套
   ============================================= */
.site-main {
  background: #fff;
  flex: 1;
  width: 100%;
  overflow: hidden;
}

.main-article {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.article-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  align-items: start;
  width: 100%;
}

/* =============================================
   ASIDE — 左侧
   ============================================= */
.article-aside {
  position: sticky;
  top: 96px;
  padding: 2.5rem 1.5rem 2.5rem 0;
  border-right: 1px solid #e0e0e0;
  min-width: 0;
}

.aside-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.aside-label {
  display: block;
  color: #888;
  margin-bottom: 0.5rem;
}

.aside-nav {
  display: flex;
  flex-direction: column;
}

.aside-nav__link {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #444;
  border-left: 2px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
  min-height: 40px;
  word-break: break-all;
}

.aside-nav__link:hover,
.aside-nav__link:focus-visible {
  color: #000;
  border-left-color: #000;
  outline: none;
}

/* =============================================
   ARTICLE BODY — section の直接子 article
   ============================================= */
.article-body {
  padding: 3rem 0 4rem 3rem;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 正文内容排版 */
.article-body h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #000;
}

.article-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-body h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.article-body p {
  margin-bottom: 1.2rem;
  color: #111;
}

.article-body ul,
.article-body ol {
  margin: 1rem 0 1.2rem 1.5rem;
  list-style: disc;
}

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

.article-body li {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  line-height: 1.75;
}

.article-body a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 200ms ease;
}

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

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-body th,
.article-body td {
  border: 1px solid #ddd;
  padding: 0.6rem 0.8rem;
  text-align: left;
  white-space: nowrap;
}

.article-body th {
  background: #000;
  color: #fff;
  font-weight: 700;
}

.article-body tr:nth-child(even) td {
  background: #f7f7f7;
}

.article-body blockquote {
  border-left: 4px solid #000;
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: #f5f5f5;
  font-style: italic;
  color: #333;
}

.article-body strong {
  font-weight: 700;
  color: #000;
}

.article-body em {
  font-style: italic;
}

.article-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  background: #f0f0f0;
  padding: 0.1em 0.4em;
  border-radius: 2px;
  word-break: break-all;
}

/* small 眉题 紧邻 h2/h3 */
.article-body small + h2,
.article-body small + h3 {
  margin-top: 0.25rem;
}

.article-body small:not(.aside-label):not(.footer-cta__eyebrow):not(.footer-section-label) {
  display: block;
  color: #888;
  margin-top: 2.5rem;
  margin-bottom: 0.25rem;
}

/* =============================================
   GLASS CARD
   ============================================= */
.article-body .card,
.glass-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid #e0e0e0;
  border-radius: 0;
  padding: 1.5rem;
  margin: 1.5rem 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #000;
  color: #fff;
  width: 100%;
  overflow: hidden;
}

.footer-cta {
  border-bottom: 1px solid #222;
  padding: 5rem 2rem;
  text-align: center;
}

.footer-cta__inner {
  max-width: 680px;
  margin: 0 auto;
}

.footer-cta__eyebrow {
  display: block;
  color: #666;
  margin-bottom: 0.75rem;
}

.footer-cta__title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
}

.footer-cta__desc {
  margin-top: 1rem;
  color: #aaa;
  font-size: 1rem;
  line-height: 1.7;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid #222;
  width: 100%;
}

.footer-col {
  padding: 3rem 2rem;
  border-right: 1px solid #222;
  min-width: 0;
}

.footer-col:last-child {
  border-right: none;
}

.footer-brand {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  color: #888;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-nav {
  padding-top: 0;
}

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

.footer-nav__dl dt {
  border-bottom: 1px solid #1a1a1a;
}

.footer-nav__dl dt a {
  display: flex;
  align-items: center;
  padding: 0.6rem 0;
  font-size: 0.85rem;
  color: #aaa;
  font-weight: 500;
  transition: color 200ms ease;
  min-height: 40px;
}

.footer-nav__dl dt a:hover,
.footer-nav__dl dt a:focus-visible {
  color: #fff;
  outline: none;
}

.footer-section-label {
  display: block;
  color: #555;
  margin-bottom: 1rem;
}

.footer-info-text {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.25rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  font-size: 0.78rem;
  color: #555;
  width: 100%;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* =============================================
   RESPONSIVE — TABLET 900px
   ============================================= */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__media {
    min-height: 200px;
    max-height: 240px;
  }

  .hero__copy {
    padding: 2.5rem 2rem;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

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

  .aside-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .aside-nav__link {
    border-left: none;
    border: 1px solid #ddd;
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    min-height: 40px;
    word-break: normal;
  }

  .aside-nav__link:hover {
    background: #000;
    color: #fff;
    border-color: #000;
  }

  .article-body {
    padding: 2rem 0 3rem 0;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .footer-col {
    border-right: none;
    border-bottom: 1px solid #1a1a1a;
    padding: 2rem;
  }

  .footer-col:last-child {
    border-bottom: none;
  }
}

/* =============================================
   RESPONSIVE — MOBILE 599px
   ============================================= */
@media (max-width: 599px) {
  .header-brand-row {
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }

  .brand-logo__text {
    font-size: 1.05rem;
  }

  .header-nav-row {
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .header-nav-row::-webkit-scrollbar {
    display: none;
  }

  .main-nav__links {
    flex-wrap: nowrap;
    width: max-content;
  }

  .nav__link {
    padding: 0.55rem 0.7rem;
    font-size: 0.72rem;
    min-height: 44px;
    letter-spacing: 0.02em;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    min-height: auto;
  }

  .hero__copy {
    padding: 2rem 1rem 1.5rem;
  }

  .hero__h1 {
    font-size: 1.5rem;
  }

  .hero__media {
    min-height: 160px;
    max-height: 200px;
  }

  .cta-btn--hero {
    min-height: 48px;
    width: 100%;
    justify-content: center;
    align-self: stretch;
  }

  .main-article {
    padding: 0 1rem;
  }

  .article-body {
    padding: 1.5rem 0 2.5rem 0;
  }

  .article-body table {
    font-size: 0.78rem;
  }

  .article-body th,
  .article-body td {
    padding: 0.45rem 0.5rem;
  }

  .footer-cta {
    padding: 3rem 1rem;
  }

  .footer-col {
    padding: 1.5rem 1rem;
  }

  .footer-bottom {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .cta-btn--large {
    width: 100%;
    justify-content: center;
  }

  .footer-nav__dl dt a {
    min-height: 44px;
  }

  article[id] {
    scroll-margin-top: 80px;
  }

  .cta-btn--header {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
    min-height: 40px;
  }
}
