/* longhub.css - LongHub 公共样式文件 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==================== 导航栏样式 ==================== */
.navbar {
  background-color: #2c3e50;
  color: white;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  flex-wrap: wrap;
}

.navbar h1 {
  margin: 0;
  font-size: 1.4rem;
  white-space: nowrap;
}

.navbar-links {
  display: flex;
  gap: 1.8rem;
}

.navbar-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: opacity 0.2s;
  padding: 0.2rem 0;
  cursor: pointer;
}

.navbar-links a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.navbar-links a.active {
  text-decoration: underline;
  font-weight: 600;
  background-color: rgba(255,255,255,0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 24px;
}

/* ==================== 主容器样式 ==================== */
.container {
  max-width: 1200px;
  margin: 2rem auto 2.5rem;
  padding: 0 1.5rem;
  flex: 1;
}

/* 安装首页专用容器（较窄） */
.container-narrow {
  max-width: 800px;
  margin: 1.5rem auto 2rem;
  padding: 0 1rem;
  flex: 1;
}

/* ==================== 描述区域 ==================== */
.description {
  background: white;
  padding: 0.5rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  line-height: 1.6;
  color: #444;
}

/* ==================== 安装页面 Tabs ==================== */
.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.tab-btn {
  flex: 1;
  padding: 0.7rem;
  background-color: #ecf0f1;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
  font-size: 0.95rem;
}

.tab-btn.active {
  background-color: #3498db;
  color: white;
}

.install-content {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: none;
  line-height: 1.6;
}

.install-content.active {
  display: block;
}

.install-content h2 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 1.2rem;
}

pre {
  background-color: #2d2d2d;
  color: #f8f8f2;
  padding: 0.9rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.92em;
  margin: 1rem 0;
}

code {
  word-break: break-all;
}

/* ==================== 产品介绍页面样式 ==================== */
.hero {
  background: linear-gradient(135deg, #1e2f3f 0%, #1b3a4b 100%);
  border-radius: 32px;
  padding: 2.2rem 2rem;
  color: white;
  margin-bottom: 2.5rem;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.hero h2 {
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.5;
  opacity: 0.92;
  max-width: 85%;
}

.hero-badge {
  display: inline-block;
  background-color: #3498db;
  padding: 0.2rem 0.8rem;
  border-radius: 60px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 1.2rem 0 1rem 0;
  color: #1e3a5f;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: #4b6f8c;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.advantages-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin-bottom: 3rem;
  justify-content: center;
}

.advantage-card {
  background: white;
  border-radius: 28px;
  padding: 1.6rem 1.4rem;
  flex: 1;
  min-width: 230px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.03);
  transition: all 0.25s ease;
  border: 1px solid #eef2f6;
  text-align: center;
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 28px -12px rgba(0,0,0,0.12);
  border-color: #cbdbe0;
}

.advantage-icon {
  font-size: 2.6rem;
  margin-bottom: 0.8rem;
}

.advantage-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.6rem;
}

.advantage-card p {
  color: #4a627a;
  line-height: 1.45;
  font-size: 0.92rem;
}

.value-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  border-radius: 32px;
  padding: 1.2rem;
  margin-bottom: 2.4rem;
  background: white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.value-item {
  flex: 1;
  min-width: 200px;
  background: #f8fafd;
  border-radius: 24px;
  padding: 1.4rem 1rem;
  text-align: center;
  transition: 0.2s;
  border-bottom: 3px solid transparent;
}

.value-item:hover {
  border-bottom-color: #3498db;
  background: #ffffff;
}

.value-number {
  font-size: 2rem;
  font-weight: 800;
  color: #2c6e9e;
  margin-bottom: 0.5rem;
}

.value-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1f3b4c;
}

.value-desc {
  font-size: 0.86rem;
  color: #5d6e85;
}

.platform-highlight {
  background: linear-gradient(120deg, #eef5fc, #ffffff);
  border-radius: 32px;
  padding: 1.8rem 2rem;
  margin: 1.8rem 0 2rem;
  border-left: 6px solid #3498db;
}

.platform-highlight h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #1f4662;
}

.platform-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1rem;
}

.platform-feature-list li {
  flex: 1;
  min-width: 180px;
  background: white;
  padding: 0.7rem 1rem;
  border-radius: 60px;
  list-style: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.install-quick {
  background: #2c3e50;
  border-radius: 28px;
  padding: 1.5rem;
  color: white;
  text-align: center;
  margin-top: 1rem;
}

.install-quick p {
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.code-snippet {
  background: #1a2630;
  padding: 0.6rem 1rem;
  border-radius: 48px;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  font-family: monospace;
  font-size: 0.85rem;
}

.copy-badge {
  background: #3498db;
  padding: 0.2rem 0.8rem;
  border-radius: 32px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: background 0.2s;
}

.copy-badge:hover {
  background: #2980b9;
}

/* ==================== 关于我们页面样式 ==================== */
.page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h2 {
  font-size: 2rem;
  color: #2c3e50;
  font-weight: 600;
  letter-spacing: -0.3px;
  border-bottom: 3px solid #3498db;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.page-header p {
  color: #5d6e7e;
  margin-top: 0.8rem;
  font-size: 1.05rem;
}

.founder-section {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  margin-bottom: 2.5rem;
  padding: 1.8rem 2rem;
}

.founder-title {
  font-size: 1.7rem;
  font-weight: 600;
  color: #2c3e50;
  border-left: 5px solid #3498db;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.profile {
  flex: 1;
  min-width: 260px;
  background: #fefefe;
  border-radius: 24px;
  padding: 1.2rem 1.4rem;
  transition: all 0.2s;
  border: 1px solid #eef2f5;
}

.profile h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e4663;
  margin-bottom: 0.3rem;
}

.profile .role {
  color: #3498db;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  border-bottom: 1px dashed #dce5ec;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.profile .intro {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.exp-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0.8rem;
}

.exp-list li {
  font-size: 0.85rem;
  padding: 0.4rem 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-bottom: 1px solid #f0f2f5;
}

.exp-list li strong {
  min-width: 70px;
  color: #2c3e50;
}

.badge {
  background: #eef2fc;
  color: #1f6392;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
}

.product-deep {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  padding: 1.8rem 2rem;
  margin-top: 1rem;
}

.product-deep h3 {
  font-size: 1.6rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin-top: 1.5rem;
}

.product-feature {
  flex: 1;
  background: #f8fafc;
  border-radius: 18px;
  padding: 1.2rem;
  transition: all 0.2s;
}

.product-feature h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e4663;
  margin-bottom: 0.7rem;
}

.product-feature p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #445566;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.tech-stack span {
  background: #e0e8f0;
  padding: 0.2rem 0.6rem;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 500;
}

/* ==================== 底部版权栏 ==================== */
.footer {
  background-color: #2c3e50;
  color: #bdc3c7;
  text-align: center;
  padding: 1rem;
  font-size: 0.88rem;
  margin-top: auto;
  line-height: 1.5;
}

 .controls {
   display: flex;
   gap: 12px;
   margin-bottom: 20px;
   flex-wrap: wrap;
 }
                
 .controls input {
   flex: 1;
   min-width: 200px;
   padding: 10px;
   font-size: 16px;
   border: 1px solid #ccc;
   border-radius: 4px;
 }
                
 .controls button {
   padding: 10px 16px;
   font-size: 14px;
   background: #007bff;
   color: white;
   border: none;
   border-radius: 4px;
   cursor: pointer;
 }
                
 .controls button:hover {
   background: #0056b3;
 }
                
 .item {
   background: white;
   border: 1px solid #ddd;
   border-radius: 8px;
   padding: 16px;
   margin-bottom: 12px;
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
 }
                
 .item-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 8px;
 }
                
 .item-name {
   font-size: 18px;
   font-weight: bold;
   color: #0066cc;
   text-decoration: none;
 }
                
 .item-name:hover {
   text-decoration: underline;
 }
                
 .metrics {
   font-size: 14px;
   color: #666;
 }
                
 .description {
   color: #444;
   line-height: 1.5;
   margin: 8px 0;
 }
                
 .links {
   margin-top: 8px;
 }
                
 .links a {
   margin-right: 12px;
   color: #007bff;
   text-decoration: none;
 }
                
 .links a:hover {
   text-decoration: underline;
 }
                
 #results {
   min-height: 100px;
 }
                
 .loading {
   text-align: center;
   color: #888;
   padding: 20px;
 }
/* ==================== 响应式布局 ==================== */
@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
  }
  
  .navbar-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .container, .container-narrow {
    padding: 0 1rem;
  }
  
  .hero p {
    max-width: 100%;
  }
  
  .value-grid,
  .advantages-grid,
  .team-profiles,
  .product-grid {
    flex-direction: column;
  }
  
  .founder-section,
  .product-deep {
    padding: 1.2rem;
  }
  
  .tabs {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .container-narrow {
    margin: 1rem auto;
  }
}