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

:root {
  --ink: #1f1f1f;
  --paper: #ffffff;
  --mist: #f5f5f5;
  --line: rgba(31, 31, 31, 0.12);
  --glass: rgba(255, 255, 255, 0.66);
  --r: 18px;
  --rail: 268px;
  --e1: 0 1px 2px rgba(31, 31, 31, 0.07);
  --e2: 0 8px 20px -8px rgba(31, 31, 31, 0.18);
  --e3: 0 20px 44px -20px rgba(31, 31, 31, 0.3);
  --e4: 0 36px 80px -34px rgba(31, 31, 31, 0.38);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  font-family: 'Outfit', 'Work Sans', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background:
    radial-gradient(820px 560px at 92% -10%, #ffffff 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(680px 520px at -12% 44%, #ffffff 0%, rgba(255, 255, 255, 0) 58%),
    var(--mist);
  background-attachment: fixed;
}

a { color: inherit; }

.shell { display: block; }

/* ============ 左侧竖排导航栏 ============ */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 20px 24px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(245, 245, 245, 0.72) 100%);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  border-right: 1px solid var(--line);
  box-shadow: var(--e2);
}

.rail-brand {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.rail-brand a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--e2);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  font-weight: 600;
  box-shadow: var(--e2);
}

.rail-desc {
  margin: -4px 0 4px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(31, 31, 31, 0.62);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rail-nav { margin: 0; }

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  animation: railIn 0.5s both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

.rail-list a:hover,
.rail-list a:focus-visible {
  background: var(--paper);
  box-shadow: var(--e2);
  transform: translateX(3px);
  outline: none;
}

.group { position: relative; }

.group > a::after {
  content: '▾';
  margin-left: auto;
  font-size: 11px;
  opacity: 0.45;
}

.sub {
  list-style: none;
  margin: 3px 0 6px;
  padding: 0 0 0 10px;
  display: none;
  border-left: 1px dashed var(--line);
}

.group:hover .sub,
.group:focus-within .sub { display: block; }

.sub a {
  font-size: 15px;
  font-weight: 400;
  color: rgba(31, 31, 31, 0.76);
  min-height: 42px;
}

.rail-foot { margin-top: auto; padding-top: 12px; }

.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 15px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  box-shadow: var(--e3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact:hover,
.contact:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--e4);
  outline: none;
}

@keyframes railIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}

/* ============ 主舞台 ============ */
.stage {
  margin-left: var(--rail);
  padding: 26px 22px 30px;
}

main {
  max-width: 920px;
  margin: 0 auto;
}

div { display: block; }

/* ============ 首屏 ============ */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 45vh;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 22px;
  padding: 40px 36px;
  margin-bottom: 26px;
  border-radius: calc(var(--r) + 10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(140deg, #ffffff 0%, #efefef 100%);
  box-shadow: var(--e3);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(31, 31, 31, 0) 45.6%, rgba(31, 31, 31, 0.94) 46%);
}

.hero::after {
  content: '';
  position: absolute;
  right: 7%;
  top: 20%;
  width: 118px;
  height: 118px;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.22));
  box-shadow: var(--e4);
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.hero .lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.62;
  color: rgba(31, 31, 31, 0.68);
  max-width: 34em;
  margin-inline: auto;
}

.hero-figure {
  position: relative;
  z-index: 2;
  margin: 0;
  border-radius: var(--r);
  padding: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--e4);
  transform: translateZ(0);
  will-change: transform;
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--r) - 6px);
}

/* ============ 正文分区 ============ */
div > article[id] { scroll-margin-top: 96px; }

div > article:not(.hero) {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
  padding: 30px 32px;
  border-radius: calc(var(--r) + 6px);
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: var(--glass);
  backdrop-filter: blur(15px) saturate(1.15);
  -webkit-backdrop-filter: blur(15px) saturate(1.15);
  box-shadow: var(--e2);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

div > article:not(.hero):hover {
  box-shadow: var(--e3);
  transform: translateY(-2px);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(21px, 2.3vw, 27px);
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  margin: 22px 0 8px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}

p { margin: 0 0 14px; }

p.subtitle,
p.lead,
p.subhead {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(31, 31, 31, 0.66);
}

ul, ol {
  margin: 0 0 16px;
  padding-left: 1.24em;
}

li { margin: 0.36em 0; }

div a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(31, 31, 31, 0.32);
  text-underline-offset: 3px;
}

div a:hover { text-decoration-color: var(--ink); }

blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--ink);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--e1);
}

blockquote p:last-child { margin-bottom: 0; }

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

figure { margin: 18px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15.5px;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

/* ============ 页脚三栏 ============ */
.foot {
  max-width: 920px;
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 24px;
  padding: 30px 32px;
  border-radius: calc(var(--r) + 10px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--e4);
}

.foot article { min-width: 0; }

.foot p { margin: 0 0 8px; }

.foot-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--paper);
}

.foot-tag {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.58);
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.foot ul a {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 14.5px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}

.foot ul a:hover,
.foot ul a:focus-visible {
  color: var(--paper);
  outline: none;
}

.foot-copy {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.56);
}

.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14.5px;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--e2);
}

/* ============ 滚动出现 ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.3s ease;
}

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

/* ============ 中等屏幕 ============ */
@media (max-width: 1080px) {
  :root { --rail: 232px; }
  .stage { padding: 22px 16px 26px; }
  div > article:not(.hero) { padding: 26px 24px; }
  .hero { padding: 32px 26px; }
}

/* ============ 移动端 ============ */
@media (max-width: 900px) {
  body {
    font-size: 16.5px;
    background-attachment: scroll;
  }

  .rail {
    position: static;
    width: auto;
    padding: 16px 16px 12px;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--e2);
  }

  .rail-desc {
    -webkit-line-clamp: 2;
    font-size: 13px;
    margin: 0;
  }

  .rail-list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .rail-list::-webkit-scrollbar { display: none; }

  .rail-list > li { display: contents; }

  .rail-list a {
    min-height: 42px;
    padding: 8px 14px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--e1);
    border-radius: 13px;
    font-size: 15px;
  }

  .rail-list a:hover,
  .rail-list a:focus-visible { transform: none; }

  .group > a::after { display: none; }

  .sub {
    display: contents;
    border-left: 0;
    margin: 0;
    padding: 0;
  }

  .sub a {
    font-size: 15px;
    color: var(--ink);
    min-height: 42px;
  }

  .rail-foot { margin-top: 4px; padding-top: 0; }

  .contact { min-height: 44px; }

  .stage {
    margin-left: 0;
    padding: 16px 14px 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 26px 20px 30px;
    gap: 16px;
    margin-bottom: 18px;
  }

  .hero::before {
    background: linear-gradient(178deg, rgba(31, 31, 31, 0) 56%, rgba(31, 31, 31, 0.92) 56.4%);
  }

  .hero::after {
    right: 10%;
    top: 46%;
    width: 84px;
    height: 84px;
  }

  .hero h1 { font-size: clamp(24px, 7vw, 32px); }

  .hero .lead { font-size: 15.5px; }

  div > article[id] { scroll-margin-top: 20px; }

  div > article:not(.hero) {
    padding: 22px 18px;
    border-radius: calc(var(--r) + 2px);
    margin-bottom: 16px;
  }

  .foot {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 24px 20px;
    border-radius: calc(var(--r) + 2px);
  }

  .foot-brand { grid-column: 1 / -1; }
  .foot-meta { grid-column: 1 / -1; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rail-list a { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-figure { transform: none !important; }
  div > article:not(.hero):hover { transform: none; }
}

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