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

/* 设定基本字体和背景颜色 */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #F7F9FC;
  color: #1A345C;
  line-height: 1.6;
  overflow-x: hidden;
  padding: 20px;
}

/* 标题样式 */
h2, h3, h4 {
  color: #274472;
  margin-bottom: 15px;
}

h2 {
  font-size: 2em;
}

h3 {
  font-size: 1.75em;
}

h4 {
  font-size: 1.5em;
}

/* 段落样式 */
p {
  font-size: 16px;
  margin-bottom: 20px;
}

/* 代码块样式 */
pre {
  background-color: #2C3E50;
  color: #ECF0F1;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 20px;
  font-family: 'Courier New', Courier, monospace;
}

code {
  font-size: 14px;
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

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

th {
  background-color: #1A345C;
  color: #FFFFFF;
}

tbody tr:nth-child(even) {
  background-color: #F2F2F2;
}

/* 图片装饰样式 */
.decorative-image {
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 20px 0;
}

.decorative-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* 主要内容容器 */
.article-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 突出提示样式 */
.highlight-message {
  background: linear-gradient(135deg, #1A345C, #274472);
  color: #FFFFFF;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 40px;
  font-size: 1.5em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 响应式布局 */
@media (max-width: 1200px) {
  .article-container {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.75em;
  }

  h3 {
    font-size: 1.5em;
  }

  h4 {
    font-size: 1.25em;
  }

  p {
    font-size: 15px;
  }

  .highlight-message {
    font-size: 1.2em;
    padding: 15px;
  }
}

/* 表格在小屏幕下的样式调整 */
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  th {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  tr {
    margin-bottom: 20px;
  }

  td {
    border: none;
    position: relative;
    padding-left: 50%;
    text-align: right;
  }

  td:before {
    position: absolute;
    left: 10px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: bold;
    content: attr(data-label);
    text-align: left;
  }
}

/* 代码块内的注释样式 */
pre code::before {
  content: '/* ';
  color: #95A5A6;
}

pre code::after {
  content: ' */';
  color: #95A5A6;
}

/* 过渡动画 */
.fade-in {
  animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 按钮样式 */
.button {
  background-color: #FF9E27;
  color: #FFFFFF;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.button:hover {
  background-color: #e68a1a;
  transform: scale(1.05);
}

/* 网格布局 */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 40px 0;
}

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

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

/* 表单隐藏样式，确保无表单 */
form {
  display: none;
}


