* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}
html,
body {
  height: 100%;
}
#app {
  height: 100%;
  display: flex;
  flex-direction: column;
  /* background-color: #f8f9fa; */
}
.container {
  width: 1200px;
  margin: 0 auto;
}

/* 导航栏样式 */
.nav {
  background-color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-content {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-logo {
  display: flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
}

.nav-logo img {
  height: 32px;
  margin-right: 12px;
}

.nav-logo h1 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.nav-links {
  flex: 1;
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
  padding: 20px 0;
}

.nav-links a:hover {
  color: #374dde;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-user {
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  background-color: #313c76;
  transition: background-color 0.3s;
}
.nav-user:hover {
  color: #d6d4d4;
  background-color: #202a5c;
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

.nav-signup {
  background-color: #ff6b6b;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.nav-signup:hover {
  background-color: #fa4b4b;
}
.nav-register {
  background-color: #313c76;
}
.nav-register:hover {
  background-color: #202a5c;
}

.main-content {
  padding-top: 60px;
  background-color: #f0f0f5;
}

/* 主要内容样式 */
.hero {
  text-align: center;
}

.hero-main {
  padding: 30px 0;
}

.hero-tag {
  display: inline-block;
  background-color: #f0f0f5;
  color: #626681;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 20px;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-features {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.feature-item {
  display: flex;
  align-items: center;
  margin: 0 20px;
  font-size: 16px;
  color: #666;
}

.feature-item .feature-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  background-color: #e8f4ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #40a9ff;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-primary {
  background-color: #626681;
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #525570;
}

.btn-secondary {
  background-color: white;
  color: #626681;
  border: 1px solid #626681;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background-color: #626681;
  color: white;
}

.hero-image {
  margin-top: 60px;
  padding: 10px 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  max-width: 1000px;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .container {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-features {
    flex-direction: column;
    align-items: center;
  }

  .feature-item {
    margin: 10px 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 200px;
  }
}

/* API Hub 样式 */
.api-hub {
  padding-bottom: 30px;
  background-color: #fff;
}

.api-hub-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  padding: 20px 0;
  text-align: center;
}

.api-hub-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.api-hub-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.tab-item {
  padding: 8px 20px;
  border-radius: 20px;
  background-color: #f0f0f5;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid transparent;
  user-select: none;
}
.tab-item:hover {
  color: #5266e4;
  background-color: #e3e3eb;
}

.tab-item.active {
  background-color: #fff;
  color: #626681;
  border-color: #626681;
  font-weight: 500;
}

.api-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.api-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s;
  border: 1px solid #e0e0e0;
}

.api-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.api-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.api-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: #e8f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.api-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.api-card-meta {
  font-size: 12px;
  color: #999;
}

.api-card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.api-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.api-card-tag {
  padding: 2px 10px;
  border-radius: 10px;
  background-color: #f0f0f5;
  color: #999;
  font-size: 12px;
}

/* 特性展示样式 */
.features {
  padding: 30px 0;
  background-color: #f8f9fa;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.feature-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background-color: #f0f0f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.feature-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  text-align: left;
}

.feature-card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.feature-card-list {
  margin-top: 15px;
}

.feature-card-list li {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.6;
  position: relative;
  padding-left: 16px;
  outline: none;
  list-style-type: none;
}

.feature-card-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #626681;
}

/* 页脚样式 */
.footer {
  background-color: #1a1a2e;
  color: #fff;
  padding: 30px 0 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-col {
  min-width: 200px;
  margin-bottom: 10px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo svg {
  margin-right: 12px;
}

.footer-logo h2 {
  font-size: 20px;
  font-weight: 600;
}

.footer-desc {
  font-size: 14px;
  color: #b0b0b0;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: #fff;
  font-size: 18px;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #ff6b6b;
}

.footer-col-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.footer-link {
  display: block;
  font-size: 14px;
  color: #b0b0b0;
  margin-bottom: 12px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 14px;
  color: #999;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-link {
  font-size: 14px;
  color: #999;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom-link:hover {
  color: #fff;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .api-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .api-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-content {
    flex-direction: column;
  }

  .footer-col {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    margin-top: 15px;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .api-grid {
    grid-template-columns: 1fr;
  }
}
