/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.nowrap {
  white-space: nowrap;
}

html {
  scroll-behavior: smooth;
}

section[id],
#resources {
  scroll-margin-top: 88px;
}

/* 布局样式 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏样式 */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
}

.nav-links {
  display: flex;
  align-items: center; /* 确保所有子元素垂直居中 */
  gap: 20px; /* 统一间距 */
}

.nav-links a {
  padding: 8px 0; /* 增加垂直内边距 */
}

.cta-button {
  margin: 0; /* 移除可能存在的特殊外边距 */
}

.nav-links a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #3498db;
}

/* 主视觉区域 */
.hero {
  padding: 150px 0 100px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  text-align: center;
}

.hero-kicker,
.section-kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3498db;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #2c3e50;
}

.hero p {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #7f8c8d;
}

.hero-actions,
.cta-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.cta-wrap {
  margin-top: 40px;
}

/* 试用按钮样式 */
.cta-button {
  display: inline-block;
  background-color: #3498db;
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.cta-button:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(52, 152, 219, 0.5);
}

.cta-button-secondary {
  background-color: transparent;
  color: #2c3e50;
  box-shadow: none;
  border: 2px solid #2c3e50;
}

.cta-button-secondary:hover {
  background-color: #2c3e50;
  color: white;
  box-shadow: 0 7px 20px rgba(44, 62, 80, 0.25);
}

/* 产品总览 */
.products {
  padding: 100px 0 40px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: white;
  padding: 36px 32px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-top: 4px solid #3498db;
}

.product-card > .cta-button {
  margin-top: auto;
}

.product-card-oss {
  border-top-color: #27ae60;
  background: linear-gradient(180deg, #f7fbf8 0%, #ffffff 48%);
}

.product-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3498db;
  background: #eaf4fb;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.product-tag-oss {
  color: #1e8449;
  background: #e8f8f0;
}

.product-card h3 {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 12px;
}

.product-lead {
  color: #5d6d7e;
  margin-bottom: 18px;
}

.product-points {
  list-style: none;
  margin-bottom: 28px;
}

.product-points li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: #2c3e50;
}

.product-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3498db;
}

.product-card-oss .product-points li::before {
  background: #27ae60;
}

.product-card-private {
  border-top-color: #16756e;
  background: linear-gradient(180deg, #edf7f5 0%, #ffffff 48%);
}

.product-tag-private {
  color: #16756e;
  background: #e1f1ed;
}

.product-card-private .product-points li::before {
  background: #16756e;
}

.product-card .cta-button {
  font-size: 16px;
  padding: 12px 24px;
}

.cta-button-private {
  background-color: #16756e;
  color: white;
  box-shadow: 0 4px 15px rgba(22, 117, 110, 0.2);
}

.cta-button-private:hover {
  background-color: #115f59;
  box-shadow: 0 7px 20px rgba(22, 117, 110, 0.3);
}

/* design-doc */
.designdoc {
  padding: 100px 0 40px;
  background: #f5f7fa;
}

.oss-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  background: #1e8449;
  color: white;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: 0 10px 24px rgba(30, 132, 73, 0.25);
}

.oss-banner > div {
  flex: 1 1 280px;
}

.oss-banner-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 8px;
}

.oss-banner h3 {
  font-size: 24px;
  margin-bottom: 8px;
  text-wrap: balance;
}

.oss-banner p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.92);
}

.oss-banner .cta-button {
  background-color: white;
  color: #1e8449;
  box-shadow: none;
  flex-shrink: 0;
}

.oss-banner .cta-button:hover {
  background-color: #e8f8f0;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.12);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.pain-card {
  background: white;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.pain-card h3 {
  font-size: 20px;
  color: #c0392b;
  margin-bottom: 16px;
}

.pain-card-after h3 {
  color: #1e8449;
}

.pain-card ul {
  list-style: none;
}

.pain-card li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 10px;
  color: #2c3e50;
}

.pain-card li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #c0392b;
  font-weight: bold;
}

.pain-card-after li::before {
  content: "+";
  color: #1e8449;
}

.try-oss {
  background: linear-gradient(135deg, #e8f8f0 0%, #f5f7fa 100%);
  padding: 80px 0;
}

.try {
  padding: 80px 0;
}

.mcpbot {
  padding: 100px 0 80px;
  background: #f0f7f5;
}

.mcpbot .section-kicker,
.mcpbot-business .section-kicker {
  color: #16756e;
}

.mcpbot-business .oss-banner {
  background-color: #16756e;
  box-shadow: 0 10px 24px rgba(22, 117, 110, 0.2);
}

.mcpbot-business .oss-banner > div {
  flex-basis: auto;
}

.mcpbot .section-title h2 {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.mcpbot-flow {
  margin-top: 48px;
  text-align: center;
}

.mcpbot-flow h3 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 24px;
}

.mcpbot-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  text-align: left;
}

.mcpbot-route li {
  padding: 24px;
  border-top: 3px solid #16756e;
  background: white;
  border-radius: 8px;
}

.mcpbot-route strong {
  display: block;
  font-size: 20px;
  color: #16756e;
  margin-bottom: 8px;
}

.mcpbot-route p,
.mcpbot-flow-note {
  color: #5d6d7e;
}

.mcpbot-flow-note {
  max-width: 800px;
  margin: 24px auto 0;
}

.mcpbot-status {
  margin-top: 48px;
}

.mcpbot-status h3 {
  color: #2c3e50;
}

.mcpbot-status li::before {
  color: #16756e;
}

.mcpbot-boundary {
  margin-top: 32px;
  padding: 28px;
  background: #f5f7fa;
  border-left: 4px solid #16756e;
  border-radius: 8px;
}

.mcpbot-boundary h3 {
  color: #2c3e50;
  margin-bottom: 12px;
}

.mcpbot-boundary p + p {
  margin-top: 12px;
}

.try-private {
  background: linear-gradient(135deg, #e1f1ed 0%, #f5f7fa 100%);
}

/* 产品功能区域 */
.features {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  color: #2c3e50;
  margin-bottom: 15px;
}

.section-title p {
  color: #7f8c8d;
  max-width: 700px;
  margin: 0 auto;
}

.section-title .section-kicker {
  margin-bottom: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
  font-size: 40px;
  color: #3498db;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #2c3e50;
}

/* 分析流程样式 */
.process {
    padding: 80px 0;
    background-color: #f5f7fa;
}
.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 40px 0;
}
.process-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}
.step-number {
    width: 50px;
    height: 50px;
    background-color: #2B579A;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    font-weight: bold;
}
.process-visual {
    text-align: center;
    margin: 40px 0;
}
.process-visual {
    margin: 40px auto;
    max-width: 800px;
}
.flow-chart {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.flow-step {
    display: flex;
    align-items: center;
    margin: 0 10px 20px;
}
.flow-node {
    width: 50px;
    height: 50px;
    background-color: #2B579A;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}
.flow-label {
    margin: 0 10px;
    font-weight: bold;
    color: #333;
}
.flow-arrow {
    font-size: 24px;
    color: #2B579A;
    margin: 0 10px;
}

@media (max-width: 768px) {
    .flow-chart {
        flex-direction: column;
        align-items: flex-start;
    }
    .flow-step {
        margin-bottom: 15px;
    }
    .flow-arrow {
        transform: rotate(90deg);
        margin: 5px 0;
    }
}

/* 案例中心样式 */
.cases {
    padding: 80px 0;
    background-color: white;
}
.case-card {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.case-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}
.case-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #F25022;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}
.case-link:hover {
    background-color: #d84315;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(242, 80, 34, 0.4);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
    }
    .process-step {
        margin-bottom: 30px;
    }
}

/* 页脚样式 */
footer {
  background-color: #2c3e50;
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #bdc3c7;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 0;
  }

  .logo {
    white-space: nowrap;
    font-size: 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    gap: 4px 12px;
  }

  .hero {
    padding: 170px 0 72px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .product-grid,
  .feature-grid,
  .pain-grid,
  .mcpbot-route {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-title h2 {
    font-size: 28px;
  }

  .hero p {
    font-size: 17px;
  }

  .oss-banner {
    flex-direction: column;
    text-align: center;
  }

  .oss-banner p {
    margin: 0 auto;
  }

  section[id],
  #resources {
    scroll-margin-top: 120px;
  }
}