/* Market Detail Page Styles */
.market-detail-page * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.market-detail-page {
  font-family: 'Arial', sans-serif;
  background: #f7f9fb;
  color: #333;
  line-height: 1.5;
}

/* 容器设置 */
.market-detail-page .container {
  max-width: 1650px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 页头区域 - 修复居中问题 */
.market-detail-page .hero {
  background: #004a99;
  color: white;
  text-align: center;
  padding: 15px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.market-detail-page .hero h1 {
  margin: 0 0 15px 0;
  font-size: 2rem;
  text-align: center;
  width: 100%;
}

.market-detail-page .hero p {
  margin: 0 auto 20px;
  max-width: 900px;
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.6;
  text-align: center;
}

.market-detail-page .hero .btn {
  display: inline-block;
  padding: 10px 25px;
  background: white;
  color: #004a99;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.market-detail-page .hero .btn:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

/* 面包屑导航 */
.market-detail-page .breadcrumb {
  background: white;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.85rem;
  width: 100%;
}

.market-detail-page .breadcrumb-content {
  max-width: 1650px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  color: #666;
  flex-wrap: wrap;
}

.market-detail-page .breadcrumb-content a {
  color: #004a99;
  text-decoration: none;
  transition: color 0.2s ease;
}

.market-detail-page .breadcrumb-content a:hover {
  text-decoration: underline;
  color: #003366;
}

.market-detail-page .breadcrumb-content span {
  margin: 0 6px;
  color: #999;
}

/* 主内容区域 */
.market-detail-page .main-content {
  display: flex;
  gap: 25px;
  margin: 25px 0;
}

/* 侧边栏 */
.market-detail-page .sidebar {
  width: 240px;
  flex-shrink: 0;
}

.market-detail-page .nav-card {
  background: white;
  border-radius: 6px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
  overflow: hidden;
}

.market-detail-page .nav-header {
  background: #004a99;
  color: white;
  padding: 12px 15px;
  font-weight: bold;
  font-size: 0.95rem;
  text-align: center;
}

.market-detail-page .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.market-detail-page .nav-item {
  border-bottom: 1px solid #eee;
}

.market-detail-page .nav-item:last-child {
  border-bottom: none;
}

.market-detail-page .nav-link {
  display: block;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  background: transparent;
}

.market-detail-page .nav-link:hover {
  background: #f0f7ff;
  color: #004a99;
}

.market-detail-page .nav-link.active {
  background: #f0f7ff;
  color: #004a99;
  font-weight: 600;
  position: relative;
}

.market-detail-page .nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #004a99;
}

/* 内容区域 */
.market-detail-page .content-area {
  flex: 1;
  min-width: 0;
}

/* 服务网格布局 */
.market-detail-page .services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(350px, 1fr));
  gap: 25px;
  width: 100%;
}

/* 服务卡片 - 修复布局和背景问题 */
.market-detail-page .service-card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e8f1ff;
  transition: all 0.3s ease;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.market-detail-page .service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.market-detail-page .service-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f7ff;
  background: transparent;
}

.market-detail-page .country-flag {
  width: 50px;
  height: 35px;
  margin-right: 15px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  object-fit: cover;
  border: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.market-detail-page .service-title h3 {
  margin: 0 0 8px 0;
  color: #004a99;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  min-height: 1.5em; /* 添加这行 */
  display: flex; /* 添加这行 */
  align-items: flex-end; /* 添加这行 */
}

.market-detail-page .agency-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.market-detail-page .agency-icon {
  font-size: 16px;
  color: #004a99;
  flex-shrink: 0;
}

.market-detail-page .agency-link {
  color: #666;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.3;
}

.market-detail-page .agency-link:hover {
  color: #004a99;
  text-decoration: underline;
}

/* 服务内容区域 */
.market-detail-page .service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.market-detail-page .service-content p {
  font-size: 0.9rem;
  margin: 0 0 18px 0;
  color: #555;
  line-height: 1.5;
  text-align: left;
}

.market-detail-page .service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  flex: 1;
  background: transparent;
}

.market-detail-page .service-features li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  color: #555;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: left;
  background: transparent;
}

.market-detail-page .service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
  font-size: 0.9rem;
  top: 6px;
}

.market-detail-page .service-card .btn {
  display: inline-block;
  background: #004a99;
  color: white;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: auto;
  align-self: flex-start;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.market-detail-page .service-card .btn:hover {
  background: #003366;
  transform: translateY(-1px);
}

.market-detail-page .page-footer {
  background: #eee;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.85rem;
  color: #666;
  width: 100%;
  border-top: 1px solid #ddd;
}

/* 强制移除所有不必要的蓝色背景 */
.market-detail-page .service-header,
.market-detail-page .service-title,
.market-detail-page .service-content,
.market-detail-page .service-features,
.market-detail-page .service-features li {
  background: transparent !important;
}

/* 确保文字颜色和排版正确 */
.market-detail-page .service-card {
  color: #333;
}

.market-detail-page .service-card h3 {
  color: #004a99;
}

.market-detail-page .service-card p {
  color: #555;
}

/* 响应式设计 */
@media (max-width: 1400px) {
  .market-detail-page .container {
    max-width: 100%;
    padding: 0 20px;
  }
  
  .market-detail-page .breadcrumb-content {
    padding: 0 20px;
  }
  
  .market-detail-page .services-grid {
    grid-template-columns: repeat(3, minmax(320px, 1fr));
  }
}

@media (max-width: 1200px) {
  .market-detail-page .services-grid {
    grid-template-columns: repeat(2, minmax(350px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .market-detail-page .services-grid {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 20px;
  }
  
  .market-detail-page .sidebar {
    width: 220px;
  }
  
  .market-detail-page .service-card {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .market-detail-page .container {
    padding: 0 15px;
  }
  
  .market-detail-page .main-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .market-detail-page .sidebar {
    width: 100%;
  }
  
  .market-detail-page .services-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .market-detail-page .hero {
    padding: 30px 15px;
  }
  
  .market-detail-page .hero h1 {
    font-size: 1.7rem;
  }
  
  .market-detail-page .hero p {
    font-size: 1rem;
  }
  
  .market-detail-page .breadcrumb-content {
    padding: 0 15px;
  }
  
  .market-detail-page .service-card {
    padding: 20px;
    min-height: auto;
  }
  
  .market-detail-page .country-flag {
    width: 45px;
    height: 30px;
  }
  
  .market-detail-page .service-header {
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .market-detail-page .container {
    padding: 0 12px;
  }
  
  .market-detail-page .hero {
    padding: 25px 12px;
  }
  
  .market-detail-page .hero h1 {
    font-size: 1.5rem;
  }
  
  .market-detail-page .service-card {
    padding: 18px;
  }
  
  .market-detail-page .breadcrumb-content {
    padding: 0 12px;
    font-size: 0.8rem;
  }
  
  .market-detail-page .country-flag {
    width: 40px;
    height: 28px;
    margin-right: 12px;
  }
  
  .market-detail-page .service-title h3 {
    font-size: 1.1rem;
  }
  
  .market-detail-page .service-content p {
    font-size: 0.85rem;
  }
  
  .market-detail-page .service-features li {
    font-size: 0.8rem;
  }
}