/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body {
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
}

/* 霓虹故障风格变量 */
:root {
  --neon-pink: #ff00ff;
  --neon-blue: #00ffff;
  --neon-green: #00ff00;
  --glitch-shadow: 0 0 5px var(--neon-pink), 0 0 10px var(--neon-blue), 0 0 15px var(--neon-green);
}

/* 通用样式 */
a {
  text-decoration: none;
  color: var(--neon-blue);
  transition: color 0.3s;
}

a:hover {
  color: var(--neon-pink);
  text-shadow: var(--glitch-shadow);
}

ul, ol {
  list-style: none;
}

li {
  margin: 5px 0;
}

/* 响应式容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
  gap: 1.5rem;
}



.col-full {
  width: 100%;
}

.col-left {
  width: 67%;
}

.col-right {
  width: 30%;
}

/* 头部样式 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #111;
  border-bottom: 2px solid var(--neon-green);
}

.logo {
  padding-left: 20px; /* 避免顶在左边 */
}

.logo img {
  max-height: 50px;
}

nav ul {
  display: flex;
  gap: 20px;
}

nav ul li a {
  font-weight: bold;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* 底部样式 */
.footer {
  background-color: #111;
  padding: 20px;
  text-align: center;
  border-top: 2px solid var(--neon-pink);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-bottom ul {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* 首页特定样式 */
.main-row {
  margin: 20px 0;
}

.image-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.item {
  background-color: #222;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.thumbnail {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}

.title {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 多行截断 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-block, .headlines, .hot-main, .recommend-main {
  background-color: #222;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

.divider {
  padding: 8px 0;
  border-bottom: 1px solid #444;
}

.badge {
  color: var(--neon-green);
  margin-right: 5px;
}

.friends-links .links-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* 列表页和内容页通用 */
.breadcrumb {
  margin-bottom: 20px;
  padding: 10px;
  background-color: #222;
  border-radius: 5px;
}

.pagination ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
}

.pagination li {
  display: inline-block;
  padding: 5px 10px;
  background-color: #333;
  border-radius: 3px;
}

.pagination a {
  color: var(--neon-blue);
}

/* 内容页样式 */
.article-title {
  margin-bottom: 15px;
}

.article-info {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #222;
  border-radius: 5px;
}

.article-content {
  padding: 20px;
  background-color: #222;
  border-radius: 5px;
  margin-bottom: 20px;
}

.article-content h2, .article-content h3, .article-content h4, .article-content h5 {
  color: var(--neon-green);
  margin: 15px 0;
}

.article-content ul, .article-content ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.article-content ul li, .article-content ol li {
  list-style-type: disc;
  margin-left: 20px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.article-content th, .article-content td {
  border: 1px solid #444;
  padding: 8px;
  text-align: left;
}

.article-content tr:nth-child(even) {
  background-color: #333;
}

.context-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .col-left, .col-right {
    width: 100%;
  }
  .col-right {
    display: none; /* 小屏幕隐藏右列 */
  }
  nav ul {
    flex-direction: column;
    position: absolute;
    left: 0;
    width: 100%;
    background-color: #111;
    padding: 10px;
    display: none;
	text-align: center;
  }
  .active ul{
    display: block;
  }
  .menu-toggle {
    display: block;
  }
  .footer-top {
    flex-direction: column;
  }
  .footer-bottom ul {
    flex-direction: column;
    align-items: center;
  }
  .image-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

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

  .menu-toggle {
    align-self: flex-end;
  }
  .footer {
    padding: 15px 10px;
  }
}