/* 全局重置 - 00年代风格 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "宋体", "Arial", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

/* 容器样式 - 固定宽度+居中 */
.container {
  width: 960px;
  margin: 0 auto;
  background: #fff;
  border: 3px solid #0066cc;
  border-radius: 0;
  /* 00年代几乎没有圆角 */
  box-shadow: 5px 5px 0 #999;
}

/* 头部样式 */
header {
  background: linear-gradient(to right, #0066cc, #0099ff);
  padding: 15px;
  border-bottom: 2px solid #003366;
}

.site-title {
  font-size: 24px;
  color: #fff;
}

.site-subtitle {
  font-size: 16px;
  color: #ffff00;
  margin-top: 5px;
}

/* 导航样式 - 经典表格布局 */
nav {
  background: #0066cc;
  border-bottom: 1px solid #003366;
}

.nav-list {
  display: table;
  width: 100%;
  list-style: none;
}

.post-content ul,
.post-content ol {
  list-style-position: inside;
  padding-left: 1em;
}

.nav-item {
  display: table-cell;
  text-align: center;
  border-right: 1px solid #003366;
}

.nav-item:last-child {
  border-right: none;
}

.nav-link {
  display: block;
  padding: 8px 0;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.nav-link:hover {
  background: #0099ff;
  color: #ffff00;
  text-decoration: underline;
}

/* 主要内容区 - 两栏布局（00年代经典） */
.main {
  display: table;
  width: 100%;
  padding: 10px;
}

.content {
  display: table-cell;
  width: 70%;
  padding-right: 10px;
}

.sidebar {
  display: table-cell;
  width: 30%;
  vertical-align: top;
}

/* 文章列表样式 */
.post-list {
  list-style: none;
}

.post-item {
  margin-bottom: 20px;
  padding: 15px;
  border: 2px dashed #cccccc;
  background: #f9f9f9;
}

.post-title {
  font-size: 18px;
  color: #0066cc;
  margin-bottom: 5px;
}

.post-title a {
  color: #0066cc;
  text-decoration: none;
}

.post-title a:hover {
  color: #ff6600;
  text-decoration: underline;
}

.post-meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.post-excerpt{
  margin-bottom: 10px;
}

.read-more {
  color: #ff0000;
  font-weight: bold;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* 侧边栏样式 */
.sidebar-widget {
  margin-bottom: 15px;
  padding: 10px;
  border: 2px solid #cccccc;
  background: #f0f0f0;
}

.widget-title {
  font-size: 16px;
  color: #0066cc;
  margin-bottom: 10px;
  border-bottom: 1px solid #cccccc;
  padding-bottom: 5px;
}

.sidebar-list {
  list-style: none;
}

.sidebar-item {
  margin-bottom: 5px;
}

.sidebar-link {
  color: #333;
  text-decoration: none;
}

.sidebar-link:hover {
  color: #ff6600;
  text-decoration: underline;
}

/* 文章详情页 */
.post-content {
  line-height: 1.8;
}

.post-title,.post-meta{
  padding: 0px;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  color: #0066cc;
  margin: 15px 0 10px;
  border-bottom: 1px solid #cccccc;
  padding-bottom: 5px;
}

.post-content img,.post-content p img ,.post-excerpt img,.post-excerpt p img {
  border: 3px solid #cccccc;
  margin: 10px 0;
  max-width: 100%;
}

.post-content a {
  color: #0066cc;
  text-decoration: underline;
}

.post-content a:hover {
  color: #ff6600;
}

/* 归档页样式 */
.archive-title {
  font-size: 20px;
  color: #0066cc;
  margin: 10px 0;
  padding-bottom: 5px;
  border-bottom: 2px solid #cccccc;
}

.archive-list {
  list-style: none;
  padding-left: 10px;
}

.archive-item {
  margin: 8px 0;
}

/* 底部样式 */
footer {
  background: #0066cc;
  color: #fff;
  padding: 15px;
  text-align: center;
  font-size: 14px;
  border-top: 2px solid #003366;
  margin-top: 20px;
  gap: 5px;
  display: flex;
  flex-direction: column;
}

.visit-counter {
  color: #ffff00;
  font-weight: bold;
}

/* 复古动画效果 */
@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

.blink-text {
  animation: blink 1s infinite;
  color: #ff0000;
  font-weight: bold;
}

/* 像素边框效果 */
.pixel-border {
  border: 3px solid #000;
  box-shadow: 3px 3px 0 #ccc,
    6px 6px 0 #999;
  width: 100%;
  height: auto;
}

/* 响应式适配（基础）- 兼容旧浏览器 */
@media screen and (max-width: 960px) {
  .container {
    width: 100%;
    border: none;
  }

  .main {
    display: block;
  }

  .content,
  .sidebar {
    display: block;
    width: 100%;
    padding: 0;
  }

  .sidebar {
    margin-top: 20px;
  }
}

.color-trans {
  background: linear-gradient(90deg,
      #ff0000, #ff9900, #33ff00, #9900ff, #ff00cc, #ff0000);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: glow 8s linear infinite;
}

@keyframes glow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}