
/* 基础样式与全局设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #ffffff, #d9eefc);
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
h1, h2, h3 {
  font-weight: bold;
  color: #007acc;
}
p {
  font-size: 1rem;
  margin-bottom: 15px;
}
a {
  text-decoration: none;
  color: #007acc;
  transition: color 0.3s ease-in-out;
}
a:hover {
  color: #005f99;
}

/* 导航栏设计 */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 15px 0;
}
.menu li {
  margin: 0 15px;
}
.menu a {
  font-size: 1rem;
  padding: 10px 15px;
  border-radius: 5px;
}
.menu a:hover {
  background: #007acc;
  color: #fff;
}

/* 首页英雄图 */
.hero {
  grid-column: 1 / -1;
  height: 500px;
  background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center/cover;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}
.hero h1 {
  font-size: 2.5rem;
  z-index: 1;
}
.hero button {
  background: #007acc;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}
.hero button:hover {
  background: #005f99;
}

/* 模块化布局 */
.module {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}
.module:hover {
  transform: translateY(-5px);
}
.module img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* 动态效果 */
.fade-in {
  animation: fadeInEffect 2s ease-in-out;
}
@keyframes fadeInEffect {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .container {
    grid-template-columns: repeat(8, 1fr);
  }
  .hero h1 {
    font-size: 2rem;
  }
}
@media (max-width: 768px) {
  .container {
    grid-template-columns: repeat(4, 1fr);
  }
  nav {
    flex-direction: column;
  }
  .menu li {
    margin: 10px 0;
  }
}
@media (max-width: 480px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
    font-size: 1.5rem;
  }
}

