:root {
  --primary: #0a0e27;
  --accent: #1a1f4e;
  --glow: #00d4ff;
  --glow2: #7b2ff7;
  --neon: #00f5d4;
  --text: #e0e6ff;
  --text-muted: #8892b0;
  --bg-card: rgba(255,255,255,.04);
  --border-glow: rgba(0,212,255,.15);
  --max-width: 1100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #c8d0e0;
  background: var(--primary);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(0,212,255,.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(123,47,247,.05) 0%, transparent 60%);
  min-height: 100vh;
}

a {
  color: var(--glow);
  text-decoration: none;
  transition: all .25s;
}
a:hover {
  color: var(--neon);
  text-shadow: 0 0 12px rgba(0,240,212,.3);
}

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

/* Header */
header {
  background: linear-gradient(135deg, rgba(10,14,39,.95), rgba(26,31,78,.95));
  border-bottom: 1px solid var(--border-glow);
  backdrop-filter: blur(12px);
  position: relative;
}
header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow), transparent);
  opacity: .5;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 20px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.site-name {
  font-size: 30px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--glow), var(--neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 3px;
}
.site-sub {
  font-size: 14px;
  color: var(--text-muted);
  padding-bottom: 3px;
  letter-spacing: 1px;
}

/* Nav */
nav {
  background: linear-gradient(135deg, rgba(10,14,39,.9), rgba(26,31,78,.9));
  border-bottom: 1px solid var(--border-glow);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
}
nav a {
  display: block;
  padding: 11px 24px;
  color: rgba(255,255,255,.6);
  font-size: 14px;
  letter-spacing: .5px;
  transition: all .25s;
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--glow);
  transition: width .25s;
  box-shadow: 0 0 8px rgba(0,212,255,.4);
}
nav a:hover {
  color: #fff;
}
nav a:hover::after {
  width: 60%;
}
nav a.active {
  color: var(--glow);
}
nav a.active::after {
  width: 60%;
}

/* Banner */
.banner {
  position: relative;
}
.banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--primary));
  pointer-events: none;
}
.banner img {
  display: block;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Sections */
section {
  padding: 32px 0;
}

.section-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--glow);
  padding-bottom: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-glow);
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(0,212,255,.15);
}

/* Two-column */
.two-col {
  display: flex;
  gap: 36px;
}
.col-main {
  flex: 1;
  min-width: 0;
}
.col-side {
  width: 280px;
  flex-shrink: 0;
}

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}
.card-img {
  float: left;
  margin: 4px 20px 12px 0;
  border-radius: 6px;
  max-width: 280px;
  opacity: .9;
}
.card p {
  margin-bottom: 10px;
}

/* Side list */
.side-list {
  list-style: none;
}
.side-list li {
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.side-list a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-muted);
  transition: all .25s;
  border-left: 2px solid transparent;
}
.side-list a:hover {
  color: var(--glow);
  border-left-color: var(--glow);
  background: rgba(0,212,255,.03);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.grid-item {
  text-align: center;
}
.grid-item img {
  border-radius: 8px;
  display: block;
  width: 100%;
  border: 1px solid var(--border-glow);
  transition: all .3s;
}
.grid-item img:hover {
  border-color: var(--glow);
  box-shadow: 0 0 20px rgba(0,212,255,.15);
  transform: translateY(-2px);
}
.grid-item .label {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: .5px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-glow);
  text-align: center;
  padding: 22px 20px;
  margin-top: 40px;
  font-size: 12px;
  color: var(--text-muted);
}
footer a {
  color: var(--text-muted);
}
footer a:hover {
  color: var(--glow);
}
footer .beian {
  display: inline-block;
  margin: 3px 8px;
}

/* Spacer */
.spacer {
  height: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .two-col {
    flex-direction: column;
  }
  .col-side {
    width: 100%;
  }
  .nav-inner {
    flex-wrap: wrap;
  }
  nav a {
    padding: 10px 16px;
    font-size: 13px;
  }
  .site-name {
    font-size: 22px;
  }
  .card-img {
    float: none;
    display: block;
    margin: 0 0 12px;
    max-width: 100%;
  }
}