* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-body);
  color: var(--text);
  overflow-x: hidden;
  transition: background .3s var(--ease), color .3s var(--ease);
  background: var(--bg0);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 600;
}

.container {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin: 0 auto;
}

main { padding-top: var(--nav-h); }

h1, h2, h3, .name, .theme-title, summary, .btn.primary b, strong {
  font-weight: var(--fw-title);
  letter-spacing: -0.01em;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.name {
  letter-spacing: 0.5px;
  line-height: 1.1;
  font-size: 18px;
  color: var(--text);
}

.tag {
  font-size: 11px;
  color: var(--cyan);
  margin-top: 2px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.navlinks a {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all .2s var(--ease);
}

.navlinks a:hover, .navlinks a.is-active {
  color: var(--cyan);
  background: rgba(0, 174, 239, 0.06);
}

.hero { padding: 48px 0 24px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.glass {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.headline { 
  padding: 32px; 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  background: #fff; 
  border: 1px solid var(--stroke); 
  border-radius: 12px; 
  box-shadow: var(--shadow2);
}

.h-top {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
}

h1 {
  margin: 16px 0 12px;
  position: relative;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 1.7;
  font-weight: 500;
  position: relative;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

.hero .headline .h-top,
.hero .headline h1,
.hero .headline .sub,
.hero .headline .hero-actions,
.hero .headline .ipbox {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.hero .headline.reveal.on .h-top { opacity: 1; transform: translateY(0); transition-delay: .05s; }
.hero .headline.reveal.on h1 { opacity: 1; transform: translateY(0); transition-delay: .10s; }
.hero .headline.reveal.on .sub { opacity: 1; transform: translateY(0); transition-delay: .15s; }
.hero .headline.reveal.on .hero-actions { opacity: 1; transform: translateY(0); transition-delay: .20s; }
.hero .headline.reveal.on .ipbox { opacity: 1; transform: translateY(0); transition-delay: .25s; }

.ipbox {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--stroke);
}

.ip {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: var(--panel2);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: min(460px, 100%);
  box-shadow: var(--shadow2);
  position: relative;
}

.kbd {
  font-size: 11px;
  color: #FFFFFF;
  background: var(--cyan);
  border-radius: 4px;
  padding: 4px 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.ip code {
  font-size: 14px;
  color: var(--text);
}

.toast {
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  background: #FFFFFF;
  border: 1px solid var(--cyan);
  padding: 8px 12px;
  border-radius: 6px;
  display: none;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.15);
}

.toast.show {
  display: inline-flex;
  animation: pop .3s var(--ease) both;
}

@keyframes pop {
  from { transform: translateY(6px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.hero-media {
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  position: relative;
}

.hero-media .img {
  height: 0;
  padding-top: 100%;
  background: url("http://nmg.cyucloud.cn/assets/slides/3.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border-radius: 8px;
}

section {
  padding: 40px 0;
  position: relative;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

h2::before {
  content: "///";
  color: var(--cyan);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 20px;
}

.desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 62ch;
  font-weight: 500;
}

footer {
  padding: 40px 0 48px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--stroke);
  padding-top: 24px;
}

.links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.links a {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--muted);
  font-weight: 600;
  transition: all .2s var(--ease);
}

.links a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 174, 239, 0.05);
}

.nav-toggle { display: none; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .brand .tag { display: none; }
  .brand { min-width: 0; flex: 1 1 auto; }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    padding: 0;
    gap: 5px;
    position: relative;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--panel);
    border: 1px solid var(--stroke);
    transition: all .2s var(--ease);
    z-index: 999;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .2s var(--ease), opacity .2s var(--ease);
  }

  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--cyan); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--cyan); }

  .navlinks {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 75vw);
    height: 100vh;
    padding: calc(var(--nav-h) + 40px) 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 3px solid var(--cyan);
    box-shadow: -10px 0 40px rgba(0, 174, 239, 0.1);
    z-index: 998;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .4s var(--ease), opacity .4s var(--ease);
    background-image: 
      linear-gradient(45deg, rgba(0, 174, 239, 0.03) 25%, transparent 25%, transparent 50%, rgba(0, 174, 239, 0.03) 50%, rgba(0, 174, 239, 0.03) 75%, transparent 75%, transparent);
    background-size: 32px 32px;
  }

  .navlinks::before {
    content: "/// NAVIGATION MENU";
    position: absolute;
    top: 25px;
    left: 20px;
    font-size: 11px;
    font-weight: 900;
    color: var(--cyan);
    letter-spacing: 1.5px;
    font-style: italic;
  }

  .navlinks.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .navlinks a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    text-align: left;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--stroke);
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    opacity: 0;
    transform: translateX(20px);
    transition: all .3s var(--ease);
  }

  .navlinks.is-open a { opacity: 1; transform: translateX(0); }
  .navlinks.is-open a:nth-child(1) { transition-delay: 0.1s; }
  .navlinks.is-open a:nth-child(2) { transition-delay: 0.15s; }
  .navlinks.is-open a:nth-child(3) { transition-delay: 0.2s; }
  .navlinks.is-open a:nth-child(4) { transition-delay: 0.25s; }
  .navlinks.is-open a:nth-child(5) { transition-delay: 0.3s; }
  .navlinks.is-open a:nth-child(6) { transition-delay: 0.35s; }
  .navlinks.is-open a:nth-child(7) { transition-delay: 0.4s; }

  .navlinks a:hover, .navlinks a.is-active {
    color: var(--cyan);
    background: #FFFFFF;
    border-color: var(--cyan);
    padding-left: 20px;
    box-shadow: var(--shadow2);
  }

  .navlinks a::after {
    content: ">>";
    font-size: 10px;
    opacity: 0.3;
    font-family: var(--font-mono);
  }
}

@media (max-width: 520px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .ipbox { flex-direction: column; align-items: stretch; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .links { width: 100%; justify-content: space-between; }
  .nav .name { font-size: 16px; }
}