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

/* ===== 重置 & 基础 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-400: #999999;
  --gray-600: #555555;
  --gray-800: #222222;
  --accent: #1a1a1a;
  --glass-bg: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.18);
  --radius-card: 10px;
  --nav-h: 60px;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition-base: 0.3s cubic-bezier(0.4,0,0.2,1);
  scroll-behavior: smooth;
}

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  padding-bottom: var(--nav-h);
}

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

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

ul { list-style: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ===== 底部固定导航 ===== */
.site-header {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
}

.bottom-nav {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--black);
  color: var(--white);
  height: var(--nav-h);
  padding: 0 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.bottom-nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 0.75rem;
  min-height: 40px;
  min-width: 40px;
  justify-content: center;
}

.nav-logo__img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
}

.nav-logo__text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 6px;
  letter-spacing: -0.02em;
}

.bottom-nav__links {
  display: none;
  flex: 1;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  align-items: center;
  flex-wrap: nowrap;
}
.bottom-nav__links::-webkit-scrollbar { display: none; }

.bottom-nav__links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.5rem 0.6rem;
  border-radius: 4px;
  transition: color var(--transition-base), background var(--transition-base);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.bottom-nav__links a:hover,
.bottom-nav__links a:focus-visible {
  color: var(--white);
  background: rgba(255,255,255,0.1);
  outline: none;
}

.bottom-nav__burger {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 8px;
  flex-shrink: 0;
}

.bottom-nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.bottom-nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.bottom-nav__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.bottom-nav__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 桌面导航 */
@media (min-width: 768px) {
  .bottom-nav {
    padding: 0 2rem;
  }
  .bottom-nav__links {
    display: flex;
  }
  .bottom-nav__links a {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
}

/* ===== 全屏遮罩菜单 ===== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1);
}

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

.fullscreen-menu__close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 1.25rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base);
}
.fullscreen-menu__close:hover,
.fullscreen-menu__close:focus-visible {
  background: rgba(255,255,255,0.12);
  outline: none;
}

.fullscreen-menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  width: 100%;
  max-width: 600px;
}

.fullscreen-menu__brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
}

.fullscreen-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.fullscreen-menu__link {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 600;
  text-align: center;
  padding: 0.5rem 1rem;
  min-height: 44px;
  line-height: 1.3;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  transition: color var(--transition-base), letter-spacing var(--transition-base);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s, color 0.2s;
}

.fullscreen-menu.is-open .fullscreen-menu__link {
  transform: translateY(0);
  opacity: 1;
}

.fullscreen-menu.is-open .fullscreen-menu__link:nth-child(1) { transition-delay: 0.05s; }
.fullscreen-menu.is-open .fullscreen-menu__link:nth-child(2) { transition-delay: 0.1s; }
.fullscreen-menu.is-open .fullscreen-menu__link:nth-child(3) { transition-delay: 0.15s; }
.fullscreen-menu.is-open .fullscreen-menu__link:nth-child(4) { transition-delay: 0.2s; }
.fullscreen-menu.is-open .fullscreen-menu__link:nth-child(5) { transition-delay: 0.25s; }
.fullscreen-menu.is-open .fullscreen-menu__link:nth-child(6) { transition-delay: 0.3s; }
.fullscreen-menu.is-open .fullscreen-menu__link:nth-child(7) { transition-delay: 0.35s; }

.fullscreen-menu__link:hover,
.fullscreen-menu__link:focus-visible {
  color: var(--white);
  letter-spacing: 0.04em;
  outline: none;
}

.fullscreen-menu__search {
  width: 100%;
  max-width: 400px;
}

.fullscreen-menu__input {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 24px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 1rem;
  padding: 0.65rem 1.25rem;
  outline: none;
  transition: border-color var(--transition-base), background var(--transition-base);
}
.fullscreen-menu__input::placeholder {
  color: rgba(255,255,255,0.4);
}
.fullscreen-menu__input:focus {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.12);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}

.hero__media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero__media--placeholder {
  background: linear-gradient(135deg, #111 0%, #333 50%, #111 100%);
}

.hero__media .hero__img,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 3rem 1.5rem 5rem;
  text-align: right;
  color: var(--white);
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.75rem;
}

.hero__h1 {
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero__lead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin-left: auto;
  line-height: 1.6;
}

/* 斜切底边 */
.hero__diagonal {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 3;
  height: 80px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

@media (min-width: 768px) {
  .hero__content {
    padding: 4rem 3rem 6rem;
    max-width: 900px;
    margin-left: auto;
  }
  .hero__diagonal {
    height: 100px;
  }
}

/* ===== scroll-margin for sections ===== */
div[id] {
  scroll-margin-top: 24px;
}

/* ===== 主体内容 ===== */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}

.content-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .content-section {
    grid-template-columns: 1fr 280px;
    grid-template-areas:
      "deco   aside"
      "body   aside";
    gap: 3rem 2.5rem;
    align-items: start;
  }
  .content-section__deco { grid-area: deco; }
  .content-aside        { grid-area: aside; }
  .page-content         { grid-area: body; }
}

/* Pull Quote */
.pull-quote {
  border-left: 4px solid var(--black);
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: var(--gray-100);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

.pull-quote p {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--black);
}

/* Aside 侧边栏 */
.content-aside {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  position: sticky;
  top: 1.5rem;
}

.aside-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.content-aside .subtitle {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.content-aside p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== page.content 正文区 ===== */
.page-content {
  color: var(--gray-800);
  font-size: 1rem;
  line-height: 1.75;
}

.page-content h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--black);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--black);
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
  color: var(--black);
}

.page-content p {
  margin-bottom: 1rem;
}

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

.page-content li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
}

.page-content a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.page-content a:hover {
  opacity: 0.65;
}

.page-content blockquote {
  border-left: 3px solid var(--black);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--gray-100);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--gray-600);
}

.page-content strong { font-weight: 600; }
.page-content em { font-style: italic; }

/* Drop cap for first div */
.page-content div:first-of-type > p:first-of-type::first-letter {
  font-size: 3.5em;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  margin: 0.08em 0.1em 0 0;
  color: var(--black);
  letter-spacing: -0.02em;
}

/* Section dividers */
.page-content div {
  padding-top: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

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

/* h2 + subtitle pattern */
.page-content .subtitle,
.page-content p.subtitle,
.page-content p.subhead,
.page-content p.lead,
.page-content p.desc {
  font-size: 1.05rem;
  color: var(--gray-600);
  font-weight: 400;
  margin-top: -0.25rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* figure in content */
.page-content figure {
  margin: 1.5rem 0;
}
.page-content figcaption {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-top: 0.4rem;
  font-style: italic;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 3rem 1.25rem 2rem;
  margin-bottom: var(--nav-h);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

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

.site-footer__brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-footer__tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.site-footer__email {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer__email:hover { color: var(--white); }

.site-footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-footer__nav li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  display: inline-block;
  padding: 0.3rem 0;
  min-height: 40px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  transition: color var(--transition-base);
}
.site-footer__nav li a:hover { color: var(--white); }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.site-footer__copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ===== 玻璃拟态 卡片 ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

/* ===== 滚动动效 ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Parallax base */
.hero__media {
  will-change: transform;
}

/* ===== 移动端适配 ===== */
@media (max-width: 374px) {
  .hero__h1 { font-size: 2rem; }
  .bottom-nav { padding: 0 0.75rem; }
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .fullscreen-menu__link {
    transform: none;
    opacity: 1;
  }
  :root {
    scroll-behavior: auto;
  }
}

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