/* 九九在线视频 */

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

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

:root {
  --ink: #0B0D10;
  --ink-2: #10151a;
  --ink-3: #161d24;
  --mut: #7C8BA1;
  --cy: #3BE0C0;
  --txt: #c6d1dc;
  --line: rgba(124, 139, 161, .22);
  --line-2: rgba(124, 139, 161, .42);
  --r: 28px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  max-width: 100%;
  background-color: var(--ink);
  background-image: radial-gradient(90% 46% at 50% 0, rgba(59, 224, 192, .08), transparent 70%);
  color: var(--txt);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.22; font-weight: 600; letter-spacing: -.012em; color: #eef4f8; }
button, input { font: inherit; max-width: 100%; }
::selection { background: rgba(59, 224, 192, .3); color: #f4fbfc; }

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

/* 顶部两行 */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 13, 16, .88);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brandrow,
.menurrow {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding-top: 9px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  min-width: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .05em;
  color: #f2f8fb;
}

.logo-t { overflow-wrap: anywhere; }

.logo .mark,
.foot-logo .mark {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  object-fit: cover;
}

.burger {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 46px;
  min-height: 46px;
  padding: 0 13px;
  color: var(--cy);
  background: none;
  border: 1px solid var(--line);
  border-radius: 15px;
  cursor: pointer;
}

.burger i {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
}

.burger:hover { border-color: var(--cy); background: rgba(59, 224, 192, .08); }

.menurrow {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding-top: 4px;
  padding-bottom: 9px;
}

.topnav {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}

.topnav::-webkit-scrollbar { display: none; }

.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  font-size: 16px;
  color: var(--mut);
  white-space: nowrap;
  border-radius: 12px;
}

.topnav a:hover { color: var(--cy); background: rgba(59, 224, 192, .09); }

.finder { position: relative; flex: 0 1 auto; min-width: 0; }

.finder input {
  width: 172px;
  max-width: 100%;
  min-height: 42px;
  padding: 0 15px;
  font-size: 16px;
  color: #e6eef4;
  background: rgba(124, 139, 161, .08);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.finder input::placeholder { color: var(--mut); }
.finder input:focus { border-color: var(--cy); outline: none; }

.finder-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 70;
  width: min(320px, 82vw);
  max-height: 62vh;
  overflow: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #0f1419;
  border: 1px solid var(--line-2);
  border-radius: 20px;
}

.finder-list[hidden] { display: none; }

.finder-list a {
  display: block;
  padding: 11px 13px;
  font-size: 16px;
  border-radius: 13px;
}

.finder-list a:hover { color: var(--cy); background: rgba(59, 224, 192, .12); }

/* 全屏遮罩菜单 */
.veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 14px 20px 48px;
  overflow: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(120% 90% at 82% 0, #12212b 0, #0B0D10 62%);
}

.veil[hidden] { display: none; }

.veil-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto 34px;
}

.veil-brand { font-size: 17px; font-weight: 600; letter-spacing: .05em; color: #eef4f8; }

.veil-close {
  min-height: 46px;
  padding: 0 20px;
  color: var(--cy);
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  cursor: pointer;
}

.veil-close:hover { background: rgba(59, 224, 192, .12); }

.veil-t {
  max-width: 1180px;
  margin: 0 auto 10px;
  font-size: 14px;
  letter-spacing: .26em;
  color: var(--mut);
}

.veil-t span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.veil-t span::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cy);
}

.veil-nav {
  display: grid;
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
}

.veil-nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 8px 2px;
  font-size: clamp(21px, 5vw, 36px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: #dde7ee;
  overflow-wrap: anywhere;
  border-bottom: 1px solid rgba(124, 139, 161, .14);
  transition: color .2s, padding-left .2s;
}

.veil-nav a:hover { color: var(--cy); padding-left: 12px; }

/* 主体 */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 64px;
  min-width: 0;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 45vh;
  max-width: 100%;
  margin: 0 -20px;
  padding: 48px 20px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  perspective: 1px;
}

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

.ghost {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  transform: translate(-50%, -56%);
  font-size: clamp(46px, 13vw, 148px);
  font-weight: 700;
  letter-spacing: -.035em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(124, 139, 161, .32);
  pointer-events: none;
  user-select: none;
}

.hero-h1 {
  position: relative;
  font-size: clamp(28px, 5.6vw, 54px);
  letter-spacing: -.025em;
  color: #f5fafd;
  overflow-wrap: anywhere;
}

.hero-h1::after {
  content: '';
  display: block;
  width: 56px;
  height: 2px;
  margin: 20px auto 0;
  background: var(--cy);
}

.hero-fig {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  overflow: hidden;
}

.hero-fig::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 16, .5), rgba(11, 13, 16, .93));
}

.hero-img {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  opacity: .5;
  will-change: transform;
}

.deck {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 46px;
  min-width: 0;
  padding-top: 54px;
}

/* 左侧栏 */
.rail {
  position: sticky;
  top: 122px;
  align-self: start;
  min-width: 0;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.rail-t {
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: .22em;
  color: var(--cy);
}

.rail-t span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rail-t span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cy);
}

.rail-list {
  counter-reset: rail;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-list li {
  counter-increment: rail;
  border-bottom: 1px solid rgba(124, 139, 161, .12);
}

.rail-list a {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-height: 40px;
  padding: 7px 0;
  font-size: 16px;
  color: var(--mut);
}

.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(59, 224, 192, .72);
}

.rail-list a:hover { color: var(--cy); }

/* 正文 */
.prose {
  min-width: 0;
  max-width: 70ch;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prose section {
  margin: 0 0 46px;
  padding: 0 0 44px;
  border-bottom: 1px solid rgba(124, 139, 161, .14);
  scroll-margin-top: 134px;
}

.prose section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.prose h2 {
  margin: 0 0 16px;
  font-size: clamp(23px, 3.2vw, 32px);
}

.prose h3 {
  margin: 28px 0 10px;
  font-size: 20px;
  color: #e4eef4;
}

.prose h2 > span,
.prose h3 > span {
  border-bottom: 2px solid rgba(59, 224, 192, .5);
  padding-bottom: 3px;
}

.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.25em; }
.prose li { margin: 0 0 8px; }
.prose a { color: var(--cy); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: #eef5f9; }

.prose img {
  height: auto;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.prose figure,
.prose aside {
  margin: 24px 0;
  padding: 18px 20px;
  max-width: 100%;
  font-size: 16px;
  color: var(--txt);
  background: rgba(124, 139, 161, .06);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.prose article {
  margin: 0 0 16px;
  padding: 20px 22px;
  max-width: 100%;
  background: rgba(124, 139, 161, .05);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.prose blockquote {
  margin: 22px 0;
  padding: 4px 0 4px 18px;
  max-width: 100%;
  color: #d9e3ea;
  border-left: 2px solid var(--cy);
}

.prose table {
  display: block;
  max-width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 16px;
}

.prose :where(pre, iframe, video, svg) {
  max-width: 100%;
}

.prose pre {
  margin: 22px 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 15px;
  line-height: 1.6;
  background: rgba(124, 139, 161, .08);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.prose code { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: no-preference) {
  .js .prose section {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22, .7, .3, 1);
  }
  .js .prose section:nth-child(2n) { transition-delay: .06s; }
  .js .prose section.in { opacity: 1; transform: none; }
}

/* 页脚 */
.site-foot {
  margin-top: 48px;
  padding: 46px 20px 26px;
  border-top: 1px solid var(--line);
  background-image: linear-gradient(180deg, rgba(22, 29, 36, .55), transparent 70%);
}

.foot-top {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  align-items: start;
  gap: 36px;
  min-width: 0;
  max-width: 1180px;
  margin: 0 auto;
}

.foot-id { min-width: 0; }

.foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  min-width: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .03em;
  color: #f2f8fb;
}

.foot-h {
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: .22em;
  color: var(--mut);
}

.foot-h span { color: var(--cy); }

.foot-nav { min-width: 0; }

.foot-dls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.foot-dls dl { margin: 0; min-width: 0; }
.foot-dls dt, .foot-dls dd { margin: 0; min-width: 0; }

.foot-dls a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 3px 0;
  font-size: 16px;
  overflow-wrap: anywhere;
  color: var(--txt);
}

.foot-dls dt a { color: #e7eff5; }
.foot-dls a:hover { color: var(--cy); text-decoration: underline; text-underline-offset: 3px; }

.foot-form {
  display: grid;
  gap: 12px;
  max-width: 1180px;
  margin: 34px auto 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.foot-form .fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.foot-form input {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 48px;
  padding: 0 17px;
  font-size: 16px;
  color: #e6eef4;
  background: rgba(124, 139, 161, .08);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.foot-form input::placeholder { color: var(--mut); }
.foot-form input:focus { border-color: var(--cy); outline: none; }

.foot-form button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 26px;
  color: var(--cy);
  background: rgba(59, 224, 192, .12);
  border: 1px solid rgba(59, 224, 192, .5);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.foot-form button:hover { color: #06231d; background: var(--cy); }

.note {
  min-height: 1.4em;
  margin: 0;
  font-size: 16px;
  color: var(--cy);
  overflow-wrap: anywhere;
}

.foot-bottom {
  max-width: 1180px;
  margin: 30px auto 0;
  padding-top: 18px;
  font-size: 16px;
  color: var(--mut);
  text-align: center;
  overflow-wrap: anywhere;
  border-top: 1px solid rgba(124, 139, 161, .14);
}

/* 断点 */
@media (max-width: 900px) {
  .deck {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .rail {
    position: static;
    padding: 0 0 16px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail-list {
    display: flex;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .rail-list::-webkit-scrollbar { display: none; }
  .rail-list li { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; }
  .rail-list a { padding: 0 15px; min-height: 42px; align-items: center; }
  .rail-list a::before { content: none; }
}

@media (max-width: 760px) {
  .menurrow { flex-wrap: wrap; gap: 8px; }
  .topnav { order: 2; flex: 1 1 100%; }
  .finder { order: 1; flex: 1 1 auto; }
  .finder input { width: 100%; }
  .hero { min-height: 45vh; padding: 40px 20px; }
  .prose section { scroll-margin-top: 178px; }
  .foot-top { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .foot-form { padding: 18px; }
}

@media (max-width: 420px) {
  .foot-dls { gap: 8px; }
  .foot-dls a { font-size: 15px; }
  .ghost { font-size: clamp(42px, 14vw, 70px); }
  .foot-form .fields { flex-direction: column; align-items: stretch; }
  .foot-form input { flex: 0 0 auto; width: 100%; }
  .foot-form button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .prose section { opacity: 1; transform: none; transition: none; }
  .veil-nav a { transition: none; }
}

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