:root {
  --bg: #070d1f;
  --panel: rgba(10, 18, 38, 0.84);
  --line: rgba(114, 151, 255, 0.24);
  --text: #e9f0ff;
  --muted: #9fb0d4;
  --accent: #39d2ff;
  --accent2: #56f8b2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Han Sans SC", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 18% -12%, rgba(57, 210, 255, 0.2), transparent 35%),
    radial-gradient(circle at 95% 0, rgba(86, 248, 178, 0.16), transparent 32%),
    linear-gradient(180deg, #070d1f 0%, #090f20 55%, #050812 100%);
  line-height: 1.7;
}

.wrap {
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto;
  padding: 22px 0 44px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #7e80ff);
  color: #04101f;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
}

.brand strong {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.86rem;
  border: 1px solid rgba(159, 176, 212, 0.28);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn.primary {
  color: #04101f;
  border: 0;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card h2,
.article h1,
.article h2,
.article h3 {
  margin: 0 0 10px;
  font-family: "Orbitron", sans-serif;
  line-height: 1.2;
}

.card p,
.meta,
.desc {
  margin: 0;
  color: var(--muted);
}

.link-list,
.month-grid {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.link-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(159, 176, 212, 0.14);
}

.link-list li:last-child {
  border-bottom: 0;
}

a {
  color: #8fe7ff;
}

a:hover {
  color: #56f8b2;
}

.article img {
  max-width: 100%;
}

.article table {
  border-collapse: collapse;
  width: 100%;
  overflow: auto;
  display: block;
}

.article th,
.article td {
  border: 1px solid rgba(159, 176, 212, 0.22);
  padding: 8px;
}

.article code {
  background: rgba(57, 210, 255, 0.1);
  border: 1px solid rgba(57, 210, 255, 0.28);
  border-radius: 6px;
  padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.article pre code {
  display: block;
  padding: 12px;
  overflow: auto;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.month-grid a {
  display: block;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(159, 176, 212, 0.2);
  text-decoration: none;
}

.status {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .month-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
  }
}
