:root {
  --green: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --deep: #0b1410;
  --line: rgba(105, 255, 105, 0.26);
  --line2: rgba(0, 255, 255, 0.3);
  --txt: #dcefdf;
  --chrome: linear-gradient(135deg, #f4fff4 0%, #a9c0b2 16%, #ffffff 32%, #69ff69 50%, #00ffff 68%, #9de6c8 84%, #f4fff4 100%);
}

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

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

body {
  margin: 0;
  padding-top: 34px;
  font-family: "DM Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--txt);
  background-color: var(--deep);
  background-image:
    radial-gradient(58vw 58vw at 108% -12%, rgba(0, 255, 255, 0.16), transparent 62%),
    radial-gradient(48vw 48vw at -12% 34%, rgba(105, 255, 105, 0.13), transparent 60%),
    linear-gradient(180deg, #0b1410 0%, #101d14 42%, #0b1410 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

a { color: var(--cyan); text-underline-offset: 3px; }

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

/* ---------- 顶部细条 ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  background: linear-gradient(90deg, #0b1410 0%, #172617 45%, #0b1410 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.topbar .tick {
  font-size: 13px;
  letter-spacing: 0.36em;
  color: #b9f5c6;
  text-shadow: 0 0 12px rgba(105, 255, 105, 0.6);
  white-space: nowrap;
}

.spark {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan), 0 0 22px rgba(0, 255, 255, 0.7);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.55); opacity: 0.55; }
}

/* ---------- 左侧竖排导航 ---------- */
.rail {
  position: fixed;
  top: 34px;
  left: 0;
  bottom: 0;
  z-index: 50;
  width: 212px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 16px 28px;
  background: linear-gradient(180deg, rgba(23, 38, 23, 0.94) 0%, rgba(11, 20, 16, 0.97) 100%);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overflow-x: hidden;
}

.brand {
  align-self: flex-start;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--chrome);
  color: #08130c;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 20px rgba(0, 255, 255, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.brand img { width: 46px; height: 46px; object-fit: cover; }

.brand:hover {
  transform: rotate(-8deg) scale(1.07);
  box-shadow: 0 0 0 1px #fff, 0 0 26px rgba(105, 255, 105, 0.8);
}

.nav p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 8px 9px 22px;
  font-size: 16px;
  line-height: 1.35;
  color: #c6e6cc;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, background 0.25s ease, border-color 0.2s ease, padding-left 0.25s ease;
  animation: rise 0.5s ease both;
}

.nav a::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: rgba(0, 255, 255, 0.5);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav a:nth-child(1) { animation-delay: 0.02s; }
.nav a:nth-child(2) { animation-delay: 0.06s; }
.nav a:nth-child(3) { animation-delay: 0.1s; }
.nav a:nth-child(4) { animation-delay: 0.14s; }
.nav a:nth-child(5) { animation-delay: 0.18s; }
.nav a:nth-child(6) { animation-delay: 0.22s; }
.nav a:nth-child(7) { animation-delay: 0.26s; }

.nav a:hover,
.nav a:focus-visible,
.nav a.on {
  color: #07130b;
  background: linear-gradient(90deg, var(--green) 0%, var(--cyan) 100%);
  border-left-color: #ffffff;
  padding-left: 26px;
}

.nav a:hover::before,
.nav a.on::before {
  background: #07130b;
  box-shadow: none;
  transform: scale(1.5);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 主体骨架 ---------- */
main {
  margin-left: 212px;
  padding: 26px 30px 64px;
  max-width: 1440px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 252px;
  gap: 34px;
  align-items: start;
}

div { min-width: 0; }

/* ---------- 头图 ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 70vh;
  margin: 0 0 36px;
  padding: 56px 42px 82px;
  text-align: right;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0 0 50% 50% / 0 0 66px 66px;
  background:
    linear-gradient(145deg, #1b3320 0%, #0b1410 58%, #0d2b26 100%);
  animation: fadeup 0.7s ease both;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: saturate(1.12) contrast(1.05);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(270deg, rgba(11, 20, 16, 0.93) 0%, rgba(11, 20, 16, 0.45) 58%, rgba(11, 20, 16, 0.74) 100%);
}

.hero-in {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

h1 {
  margin: 0;
  font-size: clamp(31px, 4.7vw, 58px);
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: #f2fff5;
  text-shadow:
    0 0 16px rgba(105, 255, 105, 0.55),
    0 0 44px rgba(0, 255, 255, 0.35);
}

@keyframes fadeup {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 正文章节块 ---------- */
div > section:not(.hero) {
  position: relative;
  margin: 0 0 26px;
  padding: 26px 26px 30px;
  scroll-margin-top: 62px;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--green);
  border-radius: 0;
  background: linear-gradient(160deg, rgba(23, 38, 23, 0.86) 0%, rgba(11, 20, 16, 0.92) 100%);
  transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

div > section:not(.hero):hover {
  border-color: rgba(0, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 255, 255, 0.22), 0 16px 44px -22px rgba(0, 255, 255, 0.6);
  transform: translateY(-2px);
}

div > section:not(.hero):last-child { margin-bottom: 0; }

div > section:not(.hero) > :first-child { margin-top: 0; }
div > section:not(.hero) > :last-child { margin-bottom: 0; }

div h2 {
  margin: 0 0 14px;
  font-size: clamp(21px, 2.7vw, 29px);
  line-height: 1.34;
  color: #eefff2;
  text-shadow: 0 0 14px rgba(105, 255, 105, 0.32);
}

div h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 13px;
  background: var(--chrome);
}

h3 {
  margin: 1.5em 0 0.6em;
  font-size: 19px;
  line-height: 1.4;
  color: #d9ffdf;
}

div p { margin: 0 0 1.1em; }
div strong { color: var(--green); }
div ul,
div ol { padding-left: 1.25em; margin: 0 0 1.1em; }
div li { margin: 0.42em 0; }

div blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-left: 3px solid var(--green);
  background: rgba(105, 255, 105, 0.07);
  color: #e8fbea;
}

div a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
}

div a:hover { color: var(--green); }

/* ---------- 右栏 ---------- */
aside {
  position: sticky;
  top: 52px;
  padding: 20px 18px 22px;
  border: 1px solid var(--line2);
  border-bottom: 3px solid var(--cyan);
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.1) 0%, rgba(23, 38, 23, 0.92) 60%);
}

aside h2 {
  margin: 0 0 6px;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: #eafff3;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.45);
}

.subtitle {
  margin: 0 0 16px;
  font-size: 15px;
  letter-spacing: 0.32em;
  color: var(--cyan);
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
}

.side-list li { animation: rise 0.5s ease both; }
.side-list li:nth-child(1) { animation-delay: 0.05s; }
.side-list li:nth-child(2) { animation-delay: 0.09s; }
.side-list li:nth-child(3) { animation-delay: 0.13s; }
.side-list li:nth-child(4) { animation-delay: 0.17s; }
.side-list li:nth-child(5) { animation-delay: 0.21s; }
.side-list li:nth-child(6) { animation-delay: 0.25s; }
.side-list li:nth-child(7) { animation-delay: 0.29s; }

.side-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 4px;
  font-size: 16px;
  line-height: 1.35;
  color: #cbeacf;
  text-decoration: none;
  border-bottom: 1px dashed rgba(105, 255, 105, 0.2);
  transition: color 0.2s ease, padding-left 0.22s ease, border-color 0.2s ease;
}

.side-list a:hover {
  color: var(--cyan);
  padding-left: 8px;
  border-bottom-color: var(--cyan);
}

/* ---------- 页脚 ---------- */
footer {
  margin-left: 212px;
  padding: 46px 30px 28px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #0d1712 0%, #070e0a 100%);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 26px;
  max-width: 1200px;
}

.bigmark {
  margin: 0 0 14px;
  font-size: clamp(27px, 3.6vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 16px;
  font-size: 16px;
  color: #08130c;
  text-decoration: none;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 18px rgba(0, 255, 255, 0.35);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.totop:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px #fff, 0 8px 24px -10px rgba(105, 255, 105, 0.9);
}

address {
  font-style: normal;
  font-size: 16px;
  color: #b6d7bd;
  line-height: 1.7;
}

.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-col a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  font-size: 16px;
  color: #c2e2c8;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.foot-col a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

.foot-bottom {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px dashed rgba(105, 255, 105, 0.22);
  text-align: center;
}

.foot-bottom p {
  margin: 0;
  font-size: 16px;
  color: #9ec0a6;
  letter-spacing: 0.08em;
}

/* ---------- 平板 ---------- */
@media (max-width: 1080px) {
  main { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 22px 20px 52px; }
  aside { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 手机 ---------- */
@media (max-width: 760px) {
  body { padding-top: 0; }

  .topbar {
    position: static;
    height: auto;
    padding: 9px 14px;
  }

  .rail {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }

  .brand { width: 42px; height: 42px; font-size: 18px; }
  .brand img { width: 42px; height: 42px; }

  .nav {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .nav p {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4px;
    width: max-content;
  }

  .nav a {
    padding: 9px 12px 9px 22px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }

  .nav a::before { left: 8px; }

  .nav a:hover,
  .nav a:focus-visible,
  .nav a.on {
    padding-left: 22px;
    border-left-color: transparent;
    border-bottom-color: #07130b;
  }

  main {
    margin-left: 0;
    padding: 16px 14px 44px;
  }

  .hero {
    min-height: 62vh;
    padding: 34px 18px 56px;
    margin-bottom: 26px;
    border-radius: 0 0 50% 50% / 0 0 38px 38px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(11, 20, 16, 0.78) 0%, rgba(11, 20, 16, 0.5) 45%, rgba(11, 20, 16, 0.92) 100%);
  }

  div > section:not(.hero) { padding: 20px 16px 24px; }

  footer {
    margin-left: 0;
    padding: 34px 16px 22px;
  }

  .foot-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-contact { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .hero { min-height: 56vh; }
}

/* ---------- 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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