
/* 全局样式设置 */
body {
  margin: 0;
  padding: 0;
  font-family: '微软雅黑', sans-serif;
  background: linear-gradient(135deg, #2E4053, #82E0AA);
  color: #333333;
  line-height: 1.6;
}

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

/* 标题样式 */
h1, h2, h3, h4 {
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h1 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
}

h2 {
  font-size: 2em;
  margin-bottom: 15px;
}

h3 {
  font-size: 1.75em;
  margin-bottom: 10px;
}

h4 {
  font-size: 1.5em;
  margin-bottom: 8px;
}

/* 段落样式 */
p {
  font-size: 16px;
  color: #F0F0F0;
  margin-bottom: 15px;
}

/* 图片样式 */
img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* 代码块样式 */
pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 14px;
  margin-bottom: 20px;
}

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

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

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

th {
  background-color: #3C91E6;
  color: white;
}

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

/* 按钮样式 */
.btn-accent {
  background-color: #FFA500;
  color: #2E4053;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-accent:hover {
  background-color: #e69500;
}

/* 固定导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(46, 64, 83, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .logo {
  font-size: 1.5em;
  color: #FFFFFF;
  text-decoration: none;
}

.navbar .menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar .menu li a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1em;
  transition: color 0.3s ease;
}

.navbar .menu li a:hover {
  color: #FFD700;
}

/* 踏足区域，避免导航栏遮挡内容 */
.body-content {
  padding-top: 80px;
}

/* 浮动按钮样式 */
.floating-button {
  position: fixed;
  right: 30px;
  bottom: 30px;
  background-color: #FFD700;
  color: #2E4053;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.floating-button:hover {
  transform: scale(1.1);
  background-color: #e6c200;
}

.floating-button::before {
  content: '💬';
  font-size: 1.5em;
}

/* 提示信息样式 */
.prominent-note {
  background-color: rgba(255, 215, 0, 0.8);
  color: #2E4053;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-size: 1.2em;
  margin-bottom: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .navbar .menu {
    flex-direction: column;
    width: 100%;
  }
  
  .navbar .menu li {
    width: 100%;
    text-align: left;
  }
  
  .floating-button {
    width: 50px;
    height: 50px;
  }
}

/* 代码块内的高亮样式 */
.language-css {
  color: #d4d4d4;
}

/* 折叠区域样式 */
.collapsible {
  background-color: #3C91E6;
  color: white;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1em;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.collapsible:hover {
  background-color: #337ab7;
}

.content {
  padding: 0 15px;
  display: none;
  overflow: hidden;
  background-color: #f1f1f1;
  border-radius: 4px;
  margin-bottom: 15px;
}

/* 过渡动画 */
@keyframes dropdown {
  from { max-height: 0; opacity: 0; }
  to { max-height: 500px; opacity: 1; }
}

/* 应用过渡动画到折叠内容 */
.content.show {
  display: block;
  animation: dropdown 0.5s ease forwards;
}

