:root {
  --ink: #1f1f1f;
  --paper: #ffffff;
  --mist: #f5f5f7;
  --line: rgba(31, 31, 31, 0.09);
  --soft: rgba(31, 31, 31, 0.56);
  --glass: rgba(255, 255, 255, 0.72);
  --r: 28px;
  --gap: 16px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 22px 48px -30px rgba(0, 0, 0, 0.38);
}

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

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

body {
  margin: 0;
  font-family: 'Nunito Sans', 'Rubik', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--mist);
  background-image:
    radial-gradient(60% 45% at 88% 0%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
    radial-gradient(55% 40% at 0% 34%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 72%);
  background-attachment: fixed;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Rubik', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.28;
}

a {
  color: var(--ink);
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.ico {
  flex: 0 0 auto;
  display: block;
}

/* ---------- 顶栏 ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  gap: 10px;
  padding: 12px clamp(16px, 4vw, 40px) 12px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.top-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
}

.brand-glyph {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: block;
  background: linear-gradient(135deg, #1f1f1f, #6b6b6b);
}

.brand-glyph::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 4px;
  background: #fff;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.6);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.top-nav a:hover,
.top-nav a.on {
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- 主区 ---------- */

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: clamp(16px, 2.4vw, 26px);
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) clamp(16px, 4vw, 40px) 64px;
}

.stream {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  align-content: start;
}

.stream > section {
  grid-column: span 1;
  min-width: 0;
  scroll-margin-top: 150px;
}

.stream > section:nth-child(even) {
  grid-column: span 2;
}

/* ---------- Hero ---------- */

.hero {
  grid-column: span 2;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 70vh;
  padding: clamp(34px, 7vw, 84px) clamp(18px, 4vw, 52px);
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(110% 120% at 18% 8%, #ffffff, rgba(255, 255, 255, 0) 62%),
    linear-gradient(158deg, #ffffff, #ececef);
  box-shadow: var(--shadow);
}

.hero-word {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(64px, 15vw, 180px);
  letter-spacing: -0.05em;
  color: rgba(31, 31, 31, 0.07);
  white-space: nowrap;
  will-change: transform;
}

.shot {
  position: absolute;
  width: clamp(118px, 19vw, 214px);
  height: auto;
  border: 6px solid #fff;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.shot-a {
  left: clamp(10px, 3vw, 46px);
  top: 11%;
  transform: rotate(-6deg);
}

.shot-b {
  right: clamp(10px, 3vw, 46px);
  bottom: 11%;
  transform: rotate(5deg);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 46ch;
  text-align: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 4.6vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.hero-lead {
  margin: 0;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.8;
}

/* ---------- 正文卡片 ---------- */

.stream > section[id] {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.stream > section[id]:hover {
  transform: scale(1.012);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.05), 0 30px 60px -32px rgba(0, 0, 0, 0.45);
}

.stream section h2 {
  margin: 0 0 6px;
  font-size: 1.34rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.stream section h3 {
  margin: 22px 0 8px;
  font-size: 1.08rem;
  font-weight: 600;
}

.stream section p {
  margin: 0 0 14px;
}

.stream section p:last-child,
.stream section ul:last-child,
.stream section ol:last-child {
  margin-bottom: 0;
}

.stream section a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.stream section ul,
.stream section ol {
  margin: 0 0 16px;
  padding-left: 20px;
}

.stream section li {
  margin-bottom: 8px;
}

.stream section li::marker {
  color: var(--soft);
}

.stream section img {
  display: block;
  height: auto;
  margin: 16px 0;
  border-radius: 18px;
}

.stream section blockquote {
  margin: 0 0 16px;
  padding: 12px 18px;
  border-left: 3px solid var(--ink);
  border-radius: 0 16px 16px 0;
  background: rgba(31, 31, 31, 0.035);
  color: var(--ink);
}

.stream section strong {
  font-weight: 700;
}

.subtitle {
  margin: 0 0 14px;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--soft);
}

/* ---------- 右侧栏 ---------- */

.rail {
  position: sticky;
  top: 150px;
  padding: 22px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow);
}

.rail h2 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.rail a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  background: rgba(31, 31, 31, 0.035);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rail a:hover {
  background: rgba(31, 31, 31, 0.1);
  transform: translateX(2px);
}

.rail a .ico {
  color: var(--soft);
}

/* ---------- 页脚 ---------- */

.foot {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px) clamp(16px, 4vw, 40px) 40px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(18px, 3vw, 26px);
}

.foot-brand {
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 9vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--ink);
  text-decoration: none;
}

.foot-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.foot-nav dl {
  margin: 0;
  display: grid;
  align-content: start;
}

.foot-nav dt,
.foot-nav dd {
  margin: 0;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 2px 0;
  color: var(--soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.foot-nav dt a {
  color: var(--ink);
  font-weight: 600;
}

.foot-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--soft);
}

/* ---------- 回到顶部 ---------- */

.totop {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 40;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.totop.on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* ---------- 断点 ---------- */

@media (max-width: 1000px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    position: static;
    top: auto;
  }
}

@media (max-width: 700px) {
  .stream {
    grid-template-columns: minmax(0, 1fr);
  }

  .stream > section,
  .stream > section:nth-child(even),
  .hero {
    grid-column: span 1;
  }

  .stream > section {
    scroll-margin-top: 190px;
  }

  .hero {
    min-height: 62vh;
    padding: 96px 18px 96px;
  }

  .shot {
    width: 104px;
    border-width: 5px;
    border-radius: 18px;
  }

  .shot-a {
    top: 8px;
    left: 10px;
  }

  .shot-b {
    bottom: 8px;
    right: 10px;
  }

  .foot-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .top-nav a {
    padding: 0 11px;
    font-size: 0.9rem;
  }

  .foot-nav {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  .stream > section[id]:hover,
  .cta:hover,
  .top-nav a:hover,
  .rail a:hover {
    transform: none;
  }
}

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