/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

/* 顶部导航栏 */
.top-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 10px 0;
}

.contact-info a {
  color: #666;
  text-decoration: none;
  margin-right: 20px;
  font-size: 14px;
}

.contact-info a:hover {
  color: #007bff;
}

.language-selector {
  text-align: right;
}

.language-selector a {
  color: #666;
  text-decoration: none;
  margin-left: 15px;
  font-size: 14px;
}

.language-selector a.active {
  color: #007bff;
  font-weight: bold;
}

/* 主导航栏 */
.main-nav {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
  max-height: 50px;
  margin-right: 10px;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: #007bff;
}

.navbar-nav .nav-link {
  font-size: 16px;
  margin-right: 15px;
  color: #333;
}

.navbar-nav .nav-link:hover {
  color: #007bff;
}

/* 首页轮播 */
.hero-carousel {
  position: relative;
}

.carousel-item img {
  height: 600px;
  object-fit: cover;
}

.carousel-caption {
  background: rgba(0,0,0,0.5);
  padding: 30px;
  border-radius: 10px;
  bottom: 100px;
}

.carousel-caption h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.carousel-caption p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* 核心品类 */
.categories {
  background-color: #fff;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: #007bff;
}

.category-card {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.category-card h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.category-card p {
  color: #666;
  margin-bottom: 20px;
}

/* 核心优势 */
.advantages {
  background-color: #f8f9fa;
}

.advantage-card {
  text-align: center;
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

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

.advantage-card .icon {
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 20px;
}

.advantage-card h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.advantage-card p {
  color: #666;
}

/* 热销产品 */
.hot-products {
  background-color: #fff;
}

.product-card {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

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

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.product-card h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.product-card p {
  color: #666;
  margin-bottom: 20px;
  height: 60px;
  overflow: hidden;
}

.product-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.product-info .price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #dc3545;
}

.product-info .moq {
  font-size: 14px;
  color: #666;
}

.product-actions {
  display: flex;
  justify-content: space-between;
}

/* 最新案例 */
.case-studies {
  background-color: #f8f9fa;
}

.case-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

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

.case-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.case-content {
  padding: 20px;
}

.case-content h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.case-content p {
  color: #666;
  margin-bottom: 20px;
}

/* 询盘入口 */
.inquiry-section {
  background-color: #007bff;
  color: #fff;
  padding: 50px 0;
}

.inquiry-card {
  background-color: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 30px;
}

.inquiry-card h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.inquiry-card p {
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* 联系信息 */
.contact-info-section {
  background-color: #f8f9fa;
}

.contact-card {
  text-align: center;
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

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

.contact-card .icon {
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 20px;
}

.contact-card h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.contact-card p {
  color: #666;
  margin-bottom: 5px;
}

/* 页脚 */
.footer {
  background-color: #333;
  color: #fff;
  padding: 50px 0 20px;
}

.footer h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #007bff;
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #007bff;
}

.footer p {
  color: #ccc;
  margin-bottom: 20px;
}

.footer ul {
  list-style: none;
  padding: 0;
}

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

.footer ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: #007bff;
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: #444;
  color: #fff;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: #007bff;
  transform: translateY(-3px);
}

.subscribe-form {
  margin-top: 20px;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  margin-top: 30px;
  text-align: center;
  color: #ccc;
}

/* 在线客服 */
.online-service {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 1000;
}

.service-btn {
  display: block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  background-color: #007bff;
  color: #fff;
  border-radius: 50%;
  font-size: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.service-btn:hover {
  background-color: #0056b3;
  transform: scale(1.1);
}

.service-panel {
  position: absolute;
  right: 70px;
  bottom: 0;
  width: 300px;
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  display: none;
}

.service-panel h4 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.service-panel p {
  color: #666;
  margin-bottom: 15px;
}

.service-contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.service-contact i {
  margin-right: 10px;
  color: #007bff;
}

.online-service:hover .service-panel {
  display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .carousel-item img {
    height: 400px;
  }
  
  .carousel-caption {
    bottom: 50px;
    padding: 20px;
  }
  
  .carousel-caption h1 {
    font-size: 1.8rem;
  }
  
  .carousel-caption p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .category-card img {
    height: 150px;
  }
  
  .product-card img {
    height: 200px;
  }
  
  .case-card img {
    height: 150px;
  }
  
  .inquiry-card {
    text-align: center;
  }
  
  .inquiry-card .btn {
    margin-top: 20px;
  }
  
  .service-panel {
    width: 250px;
    right: 60px;
  }
}

@media (max-width: 576px) {
  .carousel-item img {
    height: 300px;
  }
  
  .carousel-caption {
    bottom: 30px;
    padding: 15px;
  }
  
  .carousel-caption h1 {
    font-size: 1.5rem;
  }
  
  .carousel-caption p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  
  .contact-info a {
    display: block;
    margin-bottom: 5px;
  }
  
  .language-selector {
    text-align: left;
    margin-top: 10px;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .logo {
    max-height: 40px;
  }
  
  .advantage-card {
    padding: 20px;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .product-actions .btn {
    margin-bottom: 10px;
  }
  
  .service-panel {
    width: 200px;
    right: 50px;
  }
}

/* 工业蓝和环保绿主题色 */
:root {
  --industrial-blue: #007bff;
  --eco-green: #28a745;
  --dark-blue: #0056b3;
  --light-green: #20c997;
}

.btn-primary {
  background-color: var(--industrial-blue);
  border-color: var(--industrial-blue);
}

.btn-primary:hover {
  background-color: var(--dark-blue);
  border-color: var(--dark-blue);
}

.btn-secondary {
  background-color: var(--eco-green);
  border-color: var(--eco-green);
}

.btn-secondary:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

.text-primary {
  color: var(--industrial-blue) !important;
}

.text-secondary {
  color: var(--eco-green) !important;
}

.bg-primary {
  background-color: var(--industrial-blue) !important;
}

.bg-secondary {
  background-color: var(--eco-green) !important;
}

/* Country Selection Modal */
.country-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.country-modal-content {
  background-color: #fff;
  border-radius: 15px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.country-modal-header {
  margin-bottom: 30px;
}

.country-modal-header h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 10px;
}

.country-modal-header p {
  color: #666;
  font-size: 1rem;
}

.country-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.country-option {
  display: flex;
  align-items: center;
  padding: 20px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.country-option:hover {
  border-color: #007bff;
  background-color: #f8f9fa;
  transform: translateX(5px);
}

.country-option .country-flag {
  font-size: 2.5rem;
  margin-right: 20px;
}

.country-option .country-info {
  display: flex;
  flex-direction: column;
}

.country-option .country-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

.country-option .country-language {
  font-size: 0.9rem;
  color: #666;
}

/* Language Switcher in Header */
.language-switcher {
  display: flex;
  gap: 10px;
  align-items: center;
}

.language-switcher .lang-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-switcher .lang-btn:hover {
  border-color: #007bff;
  color: #007bff;
}

.language-switcher .lang-btn.active {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
}

.language-switcher .lang-btn .flag {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .country-modal-content {
    padding: 25px;
  }

  .country-modal-header h2 {
    font-size: 1.4rem;
  }

  .country-option {
    padding: 15px;
  }

  .country-option .country-flag {
    font-size: 2rem;
  }

  .language-switcher .lang-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}