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

:root {
  --red: #ff0000;
  --vio: #8b00ff;
  --ink: #261717;
  --txt: #f4ebec;
  --mut: #c9b4b9;
  --line: rgba(255, 255, 255, .16);
  --glass: rgba(255, 255, 255, .085);
  --glass-2: rgba(255, 255, 255, .14);
  --shadow: 0 22px 50px -24px rgba(0, 0, 0, .85);
  --r: 18px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Poppins", "Open Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--txt);
  background:
    radial-gradient(70vw 60vw at 8% -12%, rgba(255, 0, 0, .34), transparent 62%),
    radial-gradient(62vw 58vw at 96% 4%, rgba(139, 0, 255, .38), transparent 64%),
    radial-gradient(84vw 70vw at 50% 112%, rgba(139, 0, 255, .22), transparent 68%),
    linear-gradient(180deg, #1c1113 0%, #140c0d 44%, #20131a 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40vw 34vw at 74% 16%, rgba(255, 255, 255, .1), transparent 70%),
    linear-gradient(118deg, rgba(255, 255, 255, .06), transparent 44%);
  mix-blend-mode: screen;
}

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

a { color: #ffb0b0; }

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

/* 顶栏 */
.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px 18px;
  background: rgba(32, 19, 22, .55);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 34px -26px rgba(0, 0, 0, .95);
}

.bar-nav ol {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.bar-nav--l { padding-left: 52px; }
.bar-nav--l ol { justify-content: flex-start; }
.bar-nav--r ol { justify-content: flex-end; }

.bar-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 11px;
  border-radius: 12px;
  color: var(--txt);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .22s ease, color .22s ease;
}

.bar-nav a:hover,
.bar-nav a:focus-visible {
  background: var(--glass-2);
  color: #fff;
}

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background .22s ease;
}

.brand:hover { background: rgba(255, 255, 255, .1); }

.brand-mark {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 10px rgba(255, 0, 0, .6));
}

.burger {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-content: center;
  gap: 5px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
  transition: background .22s ease;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.burger:hover { background: rgba(255, 255, 255, .2); }

/* 遮罩菜单 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 84px 20px;
  background: rgba(18, 10, 12, .74);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  backdrop-filter: blur(24px) saturate(130%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.drawer.is-open { opacity: 1; visibility: visible; }

.drawer-x {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
}

.drawer-x span {
  position: absolute;
  top: 23px;
  left: 14px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.drawer-x span:first-child { transform: rotate(45deg); }
.drawer-x span:last-child { transform: rotate(-45deg); }

.drawer-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.drawer-nav a {
  display: block;
  min-height: 52px;
  padding: 12px 30px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  font-size: 21px;
  font-weight: 600;
}

.drawer-nav a:hover {
  background: rgba(255, 255, 255, .12);
  border-color: var(--line);
}

body.lock { overflow: hidden; }

/* 首屏 */
main { position: relative; z-index: 1; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 45vh;
  display: flex;
  align-items: center;
  padding: 40px 20px 66px;
}

.hero-in {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  text-align: right;
}

.hero-txt { max-width: 640px; }

.eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .74);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--vio));
}

.hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.18;
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 0 18px 44px rgba(0, 0, 0, .62);
}

.hero .lead {
  margin: 0 0 0 auto;
  max-width: 44ch;
  font-size: 17px;
  color: var(--mut);
}

.hero-mark {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transform: rotate(-6deg);
}

.hero-mark svg {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 6px 18px rgba(255, 0, 0, .55));
}

.band {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -18px;
  height: 54px;
  background: linear-gradient(90deg, var(--red), var(--vio) 62%, #ff2d5e);
  transform: skewY(-2.2deg);
  opacity: .92;
  box-shadow: 0 0 60px rgba(139, 0, 255, .5);
}

/* 主体网格 */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 20px 0;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.side {
  position: sticky;
  top: 86px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.side-h {
  margin: 0;
  font-size: 17px;
  letter-spacing: .14em;
  color: #fff;
}

.side .subtitle {
  margin: 2px 0 12px;
  font-size: 16px;
  color: var(--mut);
}

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

.side-list a {
  display: block;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--txt);
  text-decoration: none;
  font-size: 16px;
  transition: background .2s ease, color .2s ease;
}

.side-list a:hover { background: rgba(255, 255, 255, .13); color: #fff; }

.top-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--mut);
  text-decoration: none;
  font-size: 16px;
}

.top-link:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.body { min-width: 0; }

/* 正文玻璃层 */
.doc {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.doc > section {
  position: relative;
  overflow: hidden;
  padding: 26px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(15px) saturate(130%);
  backdrop-filter: blur(15px) saturate(130%);
  box-shadow: var(--shadow);
  scroll-margin-top: 96px;
}

.doc > section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
}

.doc h2 {
  position: relative;
  margin: 0 0 12px;
  padding-left: 16px;
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.35;
  color: #fff;
}

.doc h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .28em;
  bottom: .28em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--red), var(--vio));
}

.doc h3 {
  margin: 22px 0 8px;
  font-size: 19px;
  color: #fff;
}

.doc p {
  margin: 0 0 14px;
  line-height: 1.85;
  color: rgba(244, 235, 236, .9);
}

.doc p:last-child { margin-bottom: 0; }

.doc p.subtitle,
.doc .subtitle {
  margin: -6px 0 16px;
  font-size: 16px;
  color: var(--mut);
}

.doc ul,
.doc ol {
  margin: 0 0 14px;
  padding-left: 1.3em;
  line-height: 1.85;
}

.doc li { margin: 0 0 6px; }

.doc strong { color: #fff; }

.doc a { color: #ffb0b0; text-underline-offset: 3px; }
.doc a:hover { color: #fff; }

.doc blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--vio);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, .07);
}

.doc img {
  display: block;
  width: 100%;
  margin: 8px 0 16px;
  border-radius: 14px;
  object-fit: cover;
}

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

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

.doc code { font-size: 16px; }

/* 滚动浮现 */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

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

/* 页脚 */
.foot {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: rgba(30, 17, 20, .6);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.foot-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 22px;
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr;
  gap: 26px;
  align-items: start;
}

.foot address {
  font-style: normal;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
}

.foot .subtitle {
  margin: 4px 0 0;
  font-size: 16px;
  color: var(--mut);
}

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

.sub input {
  flex: 1 1 150px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font: inherit;
  font-size: 16px;
}

.sub input::placeholder { color: rgba(255, 255, 255, .55); }

.sub input:focus {
  outline: 2px solid rgba(139, 0, 255, .85);
  outline-offset: 2px;
}

.sub button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--red), var(--vio));
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 26px -14px rgba(255, 0, 0, .9);
}

.sub button:hover { filter: brightness(1.12); }

.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
}

.foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 8px;
  border-radius: 10px;
  color: var(--mut);
  text-decoration: none;
  font-size: 16px;
}

.foot-list a:hover { color: #fff; background: rgba(255, 255, 255, .1); }

.foot-bottom {
  margin: 0;
  padding: 16px 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  text-align: center;
  font-size: 16px;
  color: rgba(244, 235, 236, .62);
}

@media (max-width: 1040px) {
  .bar-nav { display: none; }
  .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 34px; }
  .side { position: static; }
  .side-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .side-list a { background: rgba(255, 255, 255, .08); padding: 8px 12px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { min-height: 0; padding: 26px 18px 56px; }
  .hero-in { flex-direction: row-reverse; gap: 16px; }
  .hero-mark { width: 70px; height: 70px; border-radius: 20px; }
  .hero-mark svg { width: 38px; height: 38px; }
  .hero .lead { max-width: none; }
  .wrap { padding: 30px 16px 0; }
  .doc > section { padding: 20px 18px 24px; scroll-margin-top: 84px; }
  .foot-grid { grid-template-columns: 1fr; gap: 18px; }
  .foot-bottom { padding-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

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