
:root {
  --primary: #1E1E1E;
  --secondary: #2C2C2C;
  --accent: #39FF14;
  --blue: #0074D9;
  --purple: #6F2DA8;
  --text: #FFFFFF;
  --text-secondary: #CCCCCC;
}

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

body {
  background: var(--primary);
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  padding: 0;
  margin: 0;
  min-height: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.header::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  margin: 1.5rem auto;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent);
}

h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.article-container {
  background: var(--secondary);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.article-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

.code-container {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.code-container::before {
  content: 'CSS';
  position: absolute;
  top: 0;
  right: 0;
  background: var(--blue);
  color: white;
  padding: 0.2rem 0.8rem;
  font-size: 0.8rem;
  border-bottom-left-radius: 8px;
}

pre {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #f8f8f2;
  overflow-x: auto;
}

code {
  font-family: 'Courier New', monospace;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--secondary);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #3d3d3d;
}

th {
  background: #2a2a2a;
  color: var(--accent);
  font-weight: 500;
}

tr:hover {
  background: #3a3a3a;
}

.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.img-card {
  background: var(--secondary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.img-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px 12px 0 0;
}

.img-caption {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
}

.notice {
  background: rgba(57, 255, 20, 0.1);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.notice p {
  color: var(--text);
  margin-bottom: 0;
}

.geometric-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  margin: 3rem 0;
  position: relative;
}

.geometric-line::before,
.geometric-line::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.geometric-line::before {
  left: 0;
}

.geometric-line::after {
  right: 0;
}

@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
  }
  
  .article-container {
    padding: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(57, 255, 20, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0);
  }
}

.highlight-box {
  background: linear-gradient(135deg, rgba(0, 116, 217, 0.1), rgba(111, 45, 168, 0.1));
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid rgba(0, 116, 217, 0.3);
  position: relative;
  overflow: hidden;
}

.highlight-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    transparent 45%,
    rgba(57, 255, 20, 0.05) 50%,
    transparent 55%
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  from {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  to {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

