
/* =========================
   全局样式设置
   此部分定义了网页的基本样式，包括字体、背景色、边距等，以确保整个页面的统一性和一致性。
========================= */

/* 设置全局字体和背景色 */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #e0f7fa, #ffffff);
  color: #333;
}

/* 头部样式 */
.header {
  background: linear-gradient(90deg, #0d47a1, #42a5f5);
  padding: 20px;
  color: #fff;
  text-align: center;
  font-family: 'Helvetica Bold', sans-serif;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(13, 71, 161, 0.9);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  font-family: 'Helvetica Bold', sans-serif;
}

.nav-menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
  margin-left: 20px;
}

.nav-menu li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  transition: background 0.3s;
}

.nav-menu li a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* 下拉菜单样式 */
.dropdown {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-menu li:hover .dropdown {
  display: block;
}

.dropdown li {
  margin: 0;
}

.dropdown li a {
  color: #333;
  padding: 10px 20px;
  display: block;
}

.dropdown li a:hover {
  background: #f0f0f0;
}

/* 容器样式 */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 100px 40px 40px 40px; /* 上边距留出导航栏空间 */
}

.column {
  flex: 0 0 32%;
  background: #f5f5f5;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.3s, background 0.3s;
}

.column:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #42a5f5, #ab47bc);
  color: #fff;
}

/* 卡片式设计 */
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: background 0.3s, transform 0.3s;
}

.card:hover {
  background: linear-gradient(45deg, #42a5f5, #ab47bc);
  transform: translateY(-10px);
}

.card-title {
  font-family: 'Helvetica Bold', sans-serif;
  font-size: 1.5em;
  margin: 20px;
  color: #0d47a1;
}

.card-content {
  font-family: 'Roboto Regular', sans-serif;
  padding: 20px;
  color: #333;
}

/* 表格样式 */
.feature-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-family: 'Roboto Regular', sans-serif;
}

.feature-table th, .feature-table td {
  border: 1px solid #ddd;
  padding: 12px 15px;
  text-align: left;
}

.feature-table th {
  background-color: #0d47a1;
  color: #fff;
}

.feature-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.feature-table tr:hover {
  background-color: #f1f1f1;
}

/* 面包屑导航样式 */
.breadcrumb {
  margin: 80px 0 20px 0;
  font-family: 'Roboto Regular', sans-serif;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
}

.breadcrumb li + li:before {
  content: ">";
  padding: 0 10px;
  color: #0d47a1;
}

.breadcrumb a {
  color: #42a5f5;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #ab47bc;
}

/* 加载动画样式 */
.loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #0d47a1;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1.5s linear infinite;
  margin: 100px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 粒子动画样式 */
.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #42a5f5;
  border-radius: 50%;
  animation: move 5s linear infinite;
}

@keyframes move {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(500px) translateX(300px);
    opacity: 0;
  }
}

/* 按钮样式 */
.icon-button {
  display: flex;
  align-items: center;
  background: #42a5f5;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-family: 'Roboto Regular', sans-serif;
  cursor: pointer;
  transition: background 0.3s;
}

.icon-button .icon {
  margin-right: 8px;
  font-size: 1.2em;
}

.icon-button:hover {
  background: #ab47bc;
}

/* 响应式设计 */

/* 1200px以下的屏幕 */
@media (max-width: 1200px) {
  .column {
    flex: 0 0 48%;
  }
}

/* 768px以下的屏幕 */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-menu li {
    margin-left: 0;
    width: 100%;
  }
  
  .column {
    flex: 0 0 100%;
  }
  
  .feature-table {
    font-size: 0.9em;
  }
}

/* 480px以下的屏幕 */
@media (max-width: 480px) {
  .header, .footer {
    padding: 10px;
    text-align: center;
  }
  
  .breadcrumb ol {
    flex-direction: column;
    align-items: center;
  }
  
  .breadcrumb li + li:before {
    display: none;
  }
}

