
:root {
  --bg: #07111f;
  --bg-2: #0b1f35;
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.16);
  --text: #eef6ff;
  --muted: #a9bdd3;
  --accent: #43e6ff;
  --accent-2: #8b5cf6;
  --good: #72f2a6;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(67, 230, 255, 0.20), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(139, 92, 246, 0.22), transparent 34%),
    linear-gradient(135deg, var(--bg), var(--bg-2) 60%, #06101d);
}

.grid-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.site-logo {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 0 22px rgba(67, 230, 255, 0.28);
}

.nav-wrap,
nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.lang-switch button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.lang-switch button.active {
  color: #06101d;
  background: linear-gradient(135deg, var(--accent), #9bf7ff);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
  padding: 58px 0 38px;
}

.hero-main,
.hero-side,
.article-card,
.core-card,
.panel,
.article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-main {
  padding: 46px;
  position: relative;
  overflow: hidden;
}

.tagline {
  display: inline-flex;
  color: var(--good);
  background: rgba(114, 242, 166, 0.12);
  border: 1px solid rgba(114, 242, 166, 0.28);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.03;
  margin: 0 0 20px;
  letter-spacing: -2px;
}

.gradient-text {
  background: linear-gradient(90deg, #ffffff, var(--accent), #d8c6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p,
.summary {
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}

.hero p {
  margin: 0;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 20px;
  color: #06101d;
  background: linear-gradient(135deg, var(--accent), #9bf7ff);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(67, 230, 255, 0.22);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  box-shadow: none;
}

.hero-side {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
  min-height: 420px;
}

.hero-art {
  width: 100%;
  border-radius: 24px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 0 38px rgba(67,230,255,0.16);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 16px;
  padding: 14px;
}

.stat strong {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
}

.core-entries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 8px 0 42px;
}

.core-card {
  display: block;
  min-height: 190px;
  padding: 24px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.core-card:hover,
.article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(67,230,255,0.45);
  background: rgba(255,255,255,0.11);
}

.core-kicker {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #06101d;
  font-weight: 900;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), #9bf7ff);
}

.core-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.core-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 38px 0 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 30px;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.search-box {
  width: min(360px, 100%);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  padding: 13px 16px;
  border-radius: 999px;
  outline: none;
}

.articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 56px;
}

.article-card {
  padding: 22px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.category {
  color: var(--accent);
  background: rgba(67,230,255,0.10);
  border: 1px solid rgba(67,230,255,0.20);
  border-radius: 999px;
  padding: 5px 9px;
  white-space: nowrap;
}

.article-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.35;
}

.article-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--accent);
}

.article-card .summary {
  margin: 0 0 20px;
  flex: 1;
  font-size: 15px;
}

.read-more {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.empty {
  grid-column: 1 / -1;
  color: var(--muted);
  text-align: center;
  padding: 34px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.article {
  padding: clamp(24px, 5vw, 48px);
  margin: 30px 0 56px;
}

.article h1 {
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -1px;
}

.content {
  line-height: 1.9;
  font-size: 17px;
}

.content p,
.content li {
  color: #d9e8f8;
}

.content h2,
.content h3 {
  margin-top: 1.6em;
}

.content a {
  color: var(--accent);
}

.content code {
  background: rgba(255,255,255,0.10);
  padding: 2px 6px;
  border-radius: 7px;
  color: #9bf7ff;
}

.content pre {
  overflow: auto;
  background: rgba(0,0,0,0.26);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 16px;
}

.lang-links {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.lang-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}

footer {
  color: var(--muted);
  text-align: center;
  padding: 28px 0 42px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .articles {
    grid-template-columns: repeat(2, 1fr);
  }
  .core-entries {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  header,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .nav-wrap {
    justify-content: flex-start;
  }
  .hero-main,
  .hero-side {
    padding: 24px;
  }
  .articles {
    grid-template-columns: 1fr;
  }
  .stat-row {
    grid-template-columns: 1fr;
  }
}
