
/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #00467F, #A5CC82, #FF7E5F, #FEA47F);
  background-size: 400% 400%;
  animation: gradientAnimation 15s ease infinite;
  color: #ffffff;
  overflow-x: hidden;
  padding: 20px;
}

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

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

/* 标题 */
h1, h2, h3 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

h1 {
  font-size: 48px;
  background: linear-gradient(90deg, #FF7E5F, #FEA47F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 28px;
  margin-top: 40px;
}

/* 导航栏 */
.navbar {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.navbar a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 15px;
  font-size: 18px;
  position: relative;
  transition: color 0.3s ease;
}

.navbar a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #FF7E5F, #FEA47F);
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 0;
}

.navbar a:hover::after {
  width: 100%;
}

.navbar a:hover {
  color: #FEA47F;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 20px 0;
  background: linear-gradient(90deg, #FF7E5F, #FEA47F);
  border: none;
  border-radius: 25px;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

.btn:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg, #FEA47F, #FF7E5F);
}

/* 卡片布局 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.card h4 {
  margin-bottom: 10px;
  font-size: 22px;
  background: linear-gradient(90deg, #A5CC82, #00467F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card p {
  font-size: 16px;
  color: #dddddd;
}

/* 示例展示 */
.example-article {
  background: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 15px;
  margin-top: 40px;
  overflow: hidden;
}

.example-article h2 {
  color: #FF7E5F;
}

.example-article pre {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.example-article code {
  color: #FEA47F;
  font-family: 'Courier New', Courier, monospace;
}

/* 响应式设计 */
@media (max-width: 1440px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 24px;
  }

  .navbar a {
    font-size: 16px;
    margin: 0 10px;
  }

  .btn {
    font-size: 16px;
    padding: 8px 16px;
  }
}

@media (max-width: 1200px) {
  .container {
    padding: 15px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 20px;
  }

  .navbar a {
    font-size: 14px;
    margin: 0 8px;
  }

  .btn {
    font-size: 16px;
    padding: 8px 16px;
  }
}

@media (max-width: 1024px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 18px;
  }

  .navbar a {
    font-size: 13px;
    margin: 0 6px;
  }

  .btn {
    font-size: 14px;
    padding: 7px 14px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 16px;
  }

  .navbar a {
    font-size: 12px;
    margin: 0 4px;
  }

  .btn {
    font-size: 13px;
    padding: 6px 12px;
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 18px;
  }

  h3 {
    font-size: 14px;
  }

  .navbar a {
    font-size: 11px;
    margin: 0 3px;
  }

  .btn {
    font-size: 12px;
    padding: 5px 10px;
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 320px) {
  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 16px;
  }

  h3 {
    font-size: 12px;
  }

  .navbar a {
    font-size: 10px;
    margin: 0 2px;
  }

  .btn {
    font-size: 11px;
    padding: 4px 8px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

/* 导航菜单动效 */
.navbar a {
  position: relative;
}

.navbar a::before {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(90deg, #FF7E5F, #FEA47F);
  transition: width 0.3s;
}

.navbar a:hover::before {
  width: 100%;
}

/* 图像样式 */
img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s;
}

img:hover {
  transform: scale(1.05);
}

/* 提示文本 */
.reference-note {
  text-align: center;
  margin-top: 40px;
  font-size: 16px;
  color: #ffffff;
  font-style: italic;
}

