
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #2c5aa0;
  transition: color 0.3s;
}

a:hover {
  color: #1a3d6f;
}

header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #2c5aa0;
  padding: 16px 0;
  display: inline-block;
}

nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #e8e8e8;
}

nav a {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 8px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  color: #333;
}

nav a:hover {
  color: #2c5aa0;
  background: #f0f7ff;
}

main {
  min-height: 60vh;
  padding: 24px 0;
}

footer {
  background: #333;
  color: #ccc;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 14px;
}

@media (max-width: 768px) {
  nav {
    padding: 8px 0;
  }

  nav a {
    font-size: 13px;
    padding: 6px 2px;
  }

  .logo {
    font-size: 20px;
    padding: 12px 0;
  }

  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  nav a {
    font-size: 12px;
    padding: 6px 1px;
  }
}
