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

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

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

body {
  font-family: 'Karla', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #000;
  background: #fff;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input {
  font-family: inherit;
}

/* ============================================================
   SCROLL MARGIN FOR ANCHORED SECTIONS
   ============================================================ */
div[id] {
  scroll-margin-top: 110px;
}

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

/* ============================================================
   OVERLAY MENU
   ============================================================ */
.overlay-menu {
  position: fixed;
  inset: 0;
  background: #000;
  color: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.overlay-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.overlay-close span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s;
}

.overlay-close span:first-child {
  transform: translateY(1px) rotate(45deg);
}

.overlay-close span:last-child {
  transform: translateY(-1px) rotate(-45deg);
}

.overlay-nav ul {
  text-align: center;
}

.overlay-nav li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease calc(var(--i) * 0.06s),
              transform 0.3s ease calc(var(--i) * 0.06s);
}

.overlay-menu.is-open .overlay-nav li {
  opacity: 1;
  transform: translateY(0);
}

.overlay-link {
  font-family: 'Playfair Display SC', serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #fff;
  padding: 0.5rem 1rem;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-link:hover {
  opacity: 0.6;
}

.overlay-brand {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Playfair Display SC', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-text-icon {
  width: 40px;
  height: 40px;
  background: #000;
  color: #fff;
  font-family: 'Playfair Display SC', serif;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.search-input {
  border: none;
  outline: none;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  height: 100%;
  width: 160px;
  background: transparent;
  color: #000;
}

.search-input::placeholder {
  color: rgba(0,0,0,0.4);
}

.search-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: background 0.2s;
  flex-shrink: 0;
}

.search-btn:hover {
  background: #000;
  color: #fff;
}

.hamburger {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #000;
  transition: background 0.2s;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #000;
  transition: background 0.2s;
}

.hamburger:hover {
  background: #000;
}

.hamburger:hover span {
  background: #fff;
}

/* ============================================================
   STICKY ANCHOR BAR (aside > nav > ul > li > a)
   ============================================================ */
.sticky-anchor {
  position: sticky;
  top: 60px;
  z-index: 400;
  background: #000;
  color: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sticky-anchor::-webkit-scrollbar {
  display: none;
}

.sticky-anchor nav ul {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  white-space: nowrap;
}

.sticky-anchor nav ul li {
  opacity: 0;
  transform: translateY(-4px);
  animation: anchorFadeIn 0.4s ease forwards;
  animation-delay: calc(var(--i) * 0.05s);
}

@keyframes anchorFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.sticky-anchor nav ul li a {
  display: flex;
  align-items: center;
  padding: 0 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  min-height: 44px;
  height: 44px;
}

.sticky-anchor nav ul li a:hover {
  color: #fff;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  padding-top: 104px;
}

.hero-media {
  position: relative;
  overflow: hidden;
  background: #111;
  min-height: 400px;
}

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

.hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
}

.hero-geo {
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255,255,255,0.15);
  transform: rotate(45deg);
  position: relative;
}

.hero-geo::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-badge {
  position: absolute;
  top: 2rem;
  left: 2rem;
  background: #fff;
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.4rem 0.8rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding: 4rem 3rem 4rem 2.5rem;
  background: #fff;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(0,0,0,0.4);
  margin-bottom: 1.5rem;
}

.hero-copy h1 {
  font-family: 'Playfair Display SC', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #000;
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(0,0,0,0.6);
  margin-bottom: 2.5rem;
  max-width: 400px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  padding: 0.9rem 2.5rem;
  min-height: 48px;
  transition: background 0.22s, color 0.22s;
  border: 2px solid #000;
}

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

/* ============================================================
   MAIN CONTENT (main > article > div + aside)
   ============================================================ */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
  width: 100%;
}

.content-article {
  min-width: 0;
}

/* ---- page.content 内部样式 ---- */
.page-content-body h2 {
  font-family: 'Playfair Display SC', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #000;
  margin: 3rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #000;
}

.page-content-body h3 {
  font-family: 'Playfair Display SC', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: #000;
  margin: 2rem 0 0.75rem;
  letter-spacing: 0.05em;
}

.page-content-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(0,0,0,0.8);
  margin-bottom: 1.2rem;
}

.page-content-body ul,
.page-content-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.page-content-body ul li {
  list-style: disc;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(0,0,0,0.8);
  margin-bottom: 0.4rem;
}

.page-content-body ol li {
  list-style: decimal;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(0,0,0,0.8);
  margin-bottom: 0.4rem;
}

.page-content-body a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.page-content-body a:hover {
  opacity: 0.5;
}

.page-content-body strong {
  font-weight: 700;
}

.page-content-body div {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

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

/* 玻璃拟态卡片 */
.page-content-body .card,
.glass-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.22s, transform 0.22s;
}

.page-content-body .card:hover,
.glass-card:hover {
  border-color: #000;
  transform: translateY(-2px);
}

/* ============================================================
   ASIDE (右侧边栏)
   ============================================================ */
.content-aside {
  position: sticky;
  top: 110px;
}

.aside-inner {
  border: 1px solid #000;
  padding: 1.5rem;
}

.aside-title {
  font-family: 'Playfair Display SC', serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #000;
  margin-bottom: 1rem;
}

.aside-title span {
  display: inline-block;
}

.content-aside nav ul li a {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(0,0,0,0.7);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  min-height: 44px;
  transition: color 0.2s, padding-left 0.2s;
}

.content-aside nav ul li a:hover {
  color: #000;
  padding-left: 0.4rem;
}

.aside-divider {
  height: 1px;
  background: #000;
  margin: 1.25rem 0;
}

.aside-meta {
  list-style: none;
  padding: 0;
}

.aside-meta li {
  font-size: 0.85rem;
  color: rgba(0,0,0,0.7);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  line-height: 1.5;
}

.aside-meta li:last-child {
  border-bottom: none;
}

.aside-meta strong {
  color: #000;
  font-weight: 700;
}

/* ============================================================
   FOOTER (footer > div×n)
   ============================================================ */
.site-footer {
  background: #000;
  color: #fff;
  margin-top: auto;
}

.footer-brand-section {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand-inner {
  padding: 3rem 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand-text {
  font-family: 'Playfair Display SC', serif;
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1;
  word-break: break-word;
}

.footer-cols-section {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.footer-col h4 {
  font-family: 'Playfair Display SC', serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
  font-weight: 400;
}

.footer-col h4 span {
  display: inline-block;
}

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

.footer-col ul li {
  margin-bottom: 0.25rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  min-height: 44px;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

/* ============================================================
   RESPONSIVE: TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-content {
    grid-template-columns: 1fr 240px;
    gap: 2rem;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }
}

/* ============================================================
   RESPONSIVE: MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 104px;
  }

  .hero-media {
    min-height: 300px;
    max-height: 50vh;
  }

  .hero-copy {
    align-items: flex-start;
    text-align: left;
    padding: 2.5rem 1.5rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .main-content {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.25rem;
    gap: 2rem;
  }

  .content-aside {
    position: static;
  }

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

  .footer-brand-text {
    font-size: clamp(2rem, 12vw, 3.5rem);
  }

  .search-input {
    width: 110px;
  }

  div[id] {
    scroll-margin-top: 110px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sticky-anchor nav ul li a {
    padding: 0 0.75rem;
    font-size: 0.75rem;
    min-height: 44px;
    height: 44px;
  }

  .hero-badge {
    top: 1rem;
    left: 1rem;
  }

  .search-input {
    width: 80px;
  }

  .header-search {
    height: 40px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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