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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --line: rgba(0, 0, 0, 0.14);
  --r: 18px;
  --sans: 'Raleway', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --serif: 'Lora', 'Songti SC', 'SimSun', Georgia, serif;
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.85;
  padding-bottom: 108px;
}

img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.bar :focus-visible, .foot :focus-visible { outline-color: #ffffff; }

/* ---------- 底部胶囊导航条 ---------- */
.bar {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  width: calc(100% - 28px);
  max-width: 1120px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.74);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.pills {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pills::-webkit-scrollbar { display: none; }
.pills p {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.pills a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}
.pills a:hover { transform: translateY(-2px); background: #e9e9e9; }

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.contact:hover { background: #ffffff; color: #000000; }

/* ---------- 主栅格 ---------- */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  column-gap: 52px;
}

.page > article { grid-column: 1; }
.page > .hero { grid-column: 1 / -1; }
.page > .side {
  grid-column: 2;
  grid-row: 2 / span 60;
  align-self: start;
  position: sticky;
  top: 32px;
  padding-top: clamp(48px, 8vw, 96px);
}

/* ---------- 首屏 ---------- */
.page > .hero {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 5vw, 56px);
  min-height: 100svh;
  padding: clamp(76px, 13vh, 150px) 0 clamp(36px, 7vh, 72px);
}

.hero-top { position: relative; }

.badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(20px, 4vw, 40px);
  padding: 8px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  animation: floaty 7s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-9px) rotate(-1.5deg); }
}

.hero h1 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 12rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  word-break: break-word;
}

.lead {
  max-width: 34ch;
  margin: clamp(20px, 4vw, 38px) 0 0;
  font-size: clamp(1rem, 1.55vw, 1.12rem);
  line-height: 1.8;
}

.hero-fig {
  margin: auto 0 0;
  background: #000000;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 52vh;
}
.hero-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 正文区 ---------- */
.page > article:not(.hero):not(.side) {
  padding: clamp(48px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-block-start: 24px;
}

.page > article h2 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: clamp(1.55rem, 3.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

h2 + hr {
  width: 72px;
  height: 6px;
  margin: 0 0 30px;
  border: 0;
  background: var(--ink);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}

.page p { max-width: 68ch; margin: 0 0 1.1em; }

.page h3 {
  margin: 2rem 0 0.6rem;
  font-family: var(--sans);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.page ul, .page ol { padding-left: 1.25rem; margin: 0 0 1.2em; }
.page li { margin: 0.35em 0; }

.page blockquote {
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.1rem;
  border-left: 4px solid var(--ink);
  font-style: italic;
}

.page strong { font-weight: 700; }

/* ---------- 右侧玻璃卡 ---------- */
.side-card {
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(0, 0, 0, 0.045);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.09);
}

.side-title {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.side-links { margin: 0; display: flex; flex-direction: column; }

.side-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.18s ease, color 0.18s ease;
}
.side-links a:last-child { border-bottom: 0; }
.side-links a:hover { background: #000000; color: #ffffff; }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: clamp(56px, 9vw, 120px);
  padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 48px);
  background: #000000;
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}

.foot-brand {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.foot-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin: 0;
  padding: 0;
}
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.foot-nav a:hover { border-bottom-color: #ffffff; }

.foot-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.foot-cta:hover { background: #ffffff; color: #000000; }

.foot-copy {
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0.01em;
}

/* ---------- 滚动入场 ---------- */
.rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.rv.in { opacity: 1; transform: none; }

/* ---------- 窄屏 ---------- */
@media (max-width: 980px) {
  .page { grid-template-columns: minmax(0, 1fr); }
  .page > .side {
    grid-column: 1;
    grid-row: auto;
    position: static;
    padding-top: 0;
  }
  .side-card { margin-top: 40px; }
  .side-links { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .side-links a { border-bottom: 0; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 118px; }
  .bar { gap: 6px; padding: 6px 8px; width: calc(100% - 18px); }
  .brand { font-size: 16px; padding: 0 8px; }
  .contact { padding: 0 12px; }
  .pills a { padding: 0 13px; }
  .hero h1 { letter-spacing: -0.045em; }
  .hero-fig { aspect-ratio: 4 / 3; max-height: 42vh; }
  .foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .badge { animation: none; }
  .pills a:hover { transform: none; }
}

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