
/* 
整体页面样式设计
以下CSS样式采用现代化的Web技术，包括Flexbox和Grid布局，确保页面在各种设备上的响应式设计。通过使用线性渐变、阴影效果和关键帧动画，打造出未来感与高级质感并存的视觉效果。色彩搭配遵循黄金比例，70%主色70%的深蓝渐变作为整体基调，25%辅色灰色与白色用于辅助布局，5%橙色用于点缀和吸引注意力。所有图片采用圆角和阴影效果，增加立体感和视觉层次。

导航栏样式
导航栏固定在页面顶部，采用半透明深蓝背景，保证内容可见性的同时不影响整体美感。导航链接采用白色字体，并在悬停时显示下拉菜单，增强互动性。所有内部链接添加rel="nofollow"属性，保障SEO安全。

Hero区域样式
Hero区域占据全屏高度，使用线性渐变背景，配合中心对齐的标题和副标题。标题和副标题采用渐显动画，提升视觉冲击力。CTA按钮使用橙色渐变，悬停时颜色反转，吸引用户点击。

卡片式布局
内容模块化采用卡片式布局，使用CSS Grid实现三列布局，自适应调整至单列以适应移动设备。每个卡片都有阴影和圆角设计，悬停时轻微上浮，增加互动感。卡片内的图片使用圆角和阴影，增强视觉效果。

图像样式
所有装饰性图片统一采用圆角设计，并添加细微阴影，确保图片在不同背景下都能和谐融入。图片放置在内容块之间，增强页面的动态感和层次感。

文本样式
正文内容采用现代无衬线字体，字号适中（16px），行高保证良好的可读性。标题使用较大的字体尺寸，并通过颜色和加粗区分层级。代码块采用深色背景和等宽字体，配合顶部标签，确保与正文内容区分开。

响应式设计
利用媒体查询，实现从320px到1920px的全面适配。移动设备下，导航栏转为汉堡菜单，内容布局调整为单列，保证无水平滚动条，所有内容均可完整显示。使用Flexbox和Grid布局技术，确保在不同分辨率下的内容排列合理，视觉体验一致。

动画与过渡
页面元素采用平滑过渡和关键帧动画，提升用户体验。例如，按钮悬停时颜色渐变切换，卡片上浮效果，内容加载时的淡入效果。所有动画均保持流畅，不影响页面加载速度。

附加样式
折叠区域采用CSS隐藏与显示，用户点击后平滑展开，保持页面整洁。表格样式简洁，采用交替行颜色，提升可读性。代码块样式清晰，使用不同背景色和字体颜色区分代码与正文内容，确保技术文章的可读性。

总结
通过综合运用CSS3的高级特性和现代布局技术，页面设计在视觉美学与功能体验之间达到了平衡。色彩搭配和排版布局遵循专业设计原则，确保页面不仅美观大方，而且用户体验优异。所有设计元素共同营造出一个高端、沉浸且富有科技感的在线平台。
*/

/* 通用样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 体背景和字体 */
body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #0D47A1, #42A5F5);
  color: #ffffff;
  line-height: 1.6;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(13, 71, 161, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar .menu {
  display: flex;
  gap: 20px;
}

.navbar .menu a {
  color: #ffffff;
  text-decoration: none;
  position: relative;
  padding: 5px 0;
}

.navbar .menu a:hover .dropdown {
  display: block;
}

.navbar .menu .dropdown {
  display: none;
  position: absolute;
  top: 40px;
  background: #ffffff;
  color: #0D47A1;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 10px;
  min-width: 150px;
}

.navbar .menu .dropdown a {
  display: block;
  padding: 10px;
  color: #0D47A1;
}

.navbar .search {
  position: relative;
}

.navbar .search input {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
}

.navbar .search input:focus {
  outline: none;
  box-shadow: 0 0 5px #42A5F5;
}

/* Hero区域 */
.hero {
  height: 100vh;
  background: linear-gradient(to bottom right, #0D47A1, #42A5F5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 4rem;
  animation: fadeIn 2s ease-in-out;
}

.hero p {
  font-size: 1.5rem;
  margin-top: 20px;
  animation: fadeIn 2s ease-in-out 1s;
}

.hero .cta-button {
  margin-top: 40px;
  background: linear-gradient(45deg, #FF9800, #F44336);
  color: #ffffff;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.5s ease;
  font-size: 1rem;
}

.hero .cta-button:hover {
  background: linear-gradient(45deg, #F44336, #FF9800);
}

/* 关键帧动画 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* 卡片样式 */
.card {
  background: #ffffff;
  color: #0D47A1;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.2);
}

.card img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

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

/* 文章内容 */
article {
  max-width: 800px;
  margin: auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

article h2, article h3 {
  color: #FFD700;
}

article p {
  margin: 20px 0;
  font-size: 16px;
}

article pre {
  background: #333333;
  color: #ffffff;
  padding: 15px;
  border-radius: 8px;
  overflow: auto;
}

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

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

article table, article th, article td {
  border: 1px solid #ffffff;
}

article th, article td {
  padding: 10px;
  text-align: left;
}

article th {
  background: #0D47A1;
}

.article-note {
  text-align: center;
  font-size: 1.2rem;
  margin: 40px 0;
  color: #FF5722;
}

/* 图片样式 */
img.decorative {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

img.decorative:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px 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 a {
    padding: 10px 0;
  }

  .container {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* 折叠区域 */
.collapsible {
  background-color: #0D47A1;
  color: white;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.collapsible:hover {
  background-color: #1565C0;
}

.content {
  padding: 0 18px;
  display: none;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-bottom: 20px;
}

.collapsible.active, .collapsible:focus {
  background-color: #1565C0;
}

.collapsible.active + .content {
  display: block;
}

/* 点缀色 */
.cta-button-accent {
  background: #FF9800;
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.5s ease;
}

.cta-button-accent:hover {
  background: #F57C00;
}

