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

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: linear-gradient(135deg, #1a1a40, #1e1e1e);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Bold', Arial, sans-serif;
  margin-bottom: 1rem;
}

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

/* 标题区域设计 */
.header-section {
  text-align: center;
  background: linear-gradient(45deg, #1a1a40, #00d2ff);
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.header-section h1 {
  font-size: 3rem;
  color: #6fcaff;
  text-shadow: 2px 2px 10px rgba(111, 202, 255, 0.8);
}

.header-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(111, 202, 255, 0.1) 10px,
    rgba(111, 202, 255, 0.1) 20px
  );
  z-index: -1;
}

/* 图文混排区域 */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.grid-item {
  background: #1e1e1e;
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.grid-item img {
  width: 100%;
  border-radius: 8px;
}

/* 文章内容样式 */
.article-content {
  background: linear-gradient(135deg, #1e1e1e, #1a1a40);
  padding: 30px;
  border-radius: 15px;
  margin-top: 40px;
}

.article-content h2 {
  color: #00d2ff;
  border-bottom: 2px solid #6fcaff;
  padding-bottom: 10px;
}

.article-content p {
  color: #cfd8dc;
  margin: 15px 0;
}

.article-content code {
  background: #000000;
  color: #39ff14;
  padding: 10px;
  border-radius: 5px;
  display: block;
  white-space: pre-wrap;
  font-family: 'Courier New', Courier, monospace;
}

/* 响应式表格 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  border: 1px solid #505050;
  padding: 10px;
  text-align: center;
}

th {
  background-color: #6fcaff;
  color: #1e1e1e;
}

/* 动态分割线 */
.divider {
  height: 2px;
  background: linear-gradient(90deg, #6fcaff, #39ff14, #6fcaff);
  margin: 40px 0;
}

/* 提示信息 */
.notice {
  text-align: center;
  color: #ff5722;
  font-size: 1.2rem;
  margin: 20px 0;
}

/* 媒体查询 */
@media (max-width: 768px) {
  .header-section h1 {
    font-size: 2.5rem;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-section h1 {
    font-size: 2rem;
  }
  
  .article-content {
    padding: 20px;
  }
}

