@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Roboto+Mono:wght@400;500&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #121417;
  --bg-secondary: #1C1F24;
  --bg-tertiary: #272B33;
  --color-primary: #00A3FF; /* Arknights blueish */
  --color-primary-dim: rgba(0, 163, 255, 0.2);
  --color-text-main: #E0E4E8;
  --color-text-muted: #8A939E;
  --color-border: #313842;
  
  /* Typography */
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
  
  /* Utilities */
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--color-text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: radial-gradient(circle at 50% 0%, var(--color-primary-dim) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* UI Elements */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary);
}

.mono-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  background: rgba(18, 20, 23, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo span {
  color: var(--color-primary);
}

.logo::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8rem 4rem 4rem 4rem;
}

/* Endfield Industrial Elements */
.panel {
  background: var(--bg-secondary);
  border: 1px solid var(--color-border);
  padding: 2.5rem;
  position: relative;
  /* Chamfered corner top left */
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%, 0 20px);
}

.panel::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border: 1px solid var(--color-primary);
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%, 0 20px);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition);
}

.panel:hover::before {
  opacity: 0.5;
}

/* Decorator lines */
.decor-line {
  width: 40px;
  height: 4px;
  background: var(--color-primary);
  margin-bottom: 2rem;
}

/* Typography */
.display-title {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #FFF;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* Hero Section */
.hero {
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* UI Components */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--color-primary);
  color: var(--bg-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  position: relative;
  transition: all var(--transition);
}

.btn:hover {
  background: #0088D1;
  color: #FFF;
}

.visitor-info-list {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.visitor-info-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--color-border);
  padding: 0.75rem 0;
  flex-wrap: wrap; /* Auto wrap if width is insufficient */
  gap: 0.5rem;
}

.visitor-info-list li:last-child {
  border-bottom: none;
}

.visitor-info-label {
  color: var(--color-primary);
  white-space: nowrap;
}

.visitor-info-list span[id^="info-"] {
  text-align: right;
  white-space: nowrap;
  margin-left: auto; /* Always align to right when wrapped */
}

/* Modifier class applied dynamically in JS */
.visitor-info-list span.is-ipv6 {
  font-size: 0.8rem;
}

/* Grid Layout */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Page Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #FFF;
}

.about-content {
  margin-top: 3rem;
}

/* Basic Info List (About Page) */
.basic-info-list {
  list-style-type: none;
  margin-bottom: 1rem;
  overflow-x: auto; /* Allow horizontal scroll if content is too long */
}

.basic-info-list li {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
  gap: 0.25rem;
}

.basic-info-label {
  color: var(--color-primary);
  min-width: 120px;
  flex-shrink: 0;
  white-space: nowrap;
}

.basic-info-value {
  color: var(--color-text-main);
  white-space: nowrap; /* Force text to stay on one line as requested */
}

/* Footer Section */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 4rem;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.site-footer .footer-content {
  padding: 0 2rem;
  margin: 0 auto;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.beian-info a {
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.beian-info a:hover {
  color: var(--color-primary);
}

/* Media Queries */
@media (max-width: 1024px) {
  .display-title { font-size: 4rem; }
}

@media (max-width: 768px) {
  .site-header { padding: 1.5rem 2rem; }
  .container { padding: 8rem 2rem 2rem 2rem; }
  .display-title { font-size: 3rem; }
  .grid-2 { grid-template-columns: 1fr; }
}
