/* SourcBuy Global Homepage Styles - Based on www.sourcbuy.com design */

:root {
  --primary-color: #1890ff;
  --primary-dark: #096dd9;
  --primary-light: #e6f7ff;
  --secondary-color: #722ed1;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --bg-light: #f5f5f5;
  --white: #ffffff;
  --border-color: #e8e8e8;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
    'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}

.navbar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.language-switch:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-login {
  padding: 10px 20px;
  border: 1px solid var(--primary-color);
  background-color: var(--white);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.btn-login:hover {
  background-color: var(--primary-light);
}

.btn-signup {
  padding: 10px 20px;
  border: none;
  background-color: var(--primary-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.btn-signup:hover {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 80px 20px;
  text-align: center;
  color: var(--white);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.95;
  font-weight: 400;
}

.search-box {
  display: flex;
  background-color: var(--white);
  border-radius: 50px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  margin: 0 auto 24px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 24px;
  font-size: 16px;
  border-radius: 50px 0 0 50px;
  color: var(--text-primary);
}

.search-input::placeholder {
  color: var(--text-light);
}

.search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-description {
  font-size: 15px;
  opacity: 0.9;
  margin-top: 16px;
}

/* Features Section */
.features {
  padding: 80px 20px;
  background-color: var(--bg-light);
}

.section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--white);
  padding: 32px 24px;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.feature-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
  padding: 80px 20px;
  background-color: var(--white);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.step-item {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--border-radius-lg);
  background-color: var(--bg-light);
  transition: all 0.3s ease;
}

.step-item:hover {
  background-color: var(--primary-light);
  transform: translateY(-4px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 24px;
  font-weight: bold;
  border-radius: 50%;
  margin-bottom: 20px;
}

.step-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.step-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Products Section */
.products {
  padding: 80px 20px;
  background-color: var(--bg-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background-color: var(--bg-light);
}

.product-title {
  padding: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  min-height: 64px;
}

.product-price {
  padding: 0 16px 16px;
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
}

/* CTA Section */
.cta {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  text-align: center;
  color: var(--white);
}

.cta-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 16px;
}

.cta-description {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  padding: 16px 48px;
  background-color: var(--white);
  color: var(--primary-color);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.btn-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  background-color: #1a1a1a;
  color: var(--white);
  padding: 60px 20px 20px;
}

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

.footer-section h4 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-section p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

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

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

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-content {
    flex-direction: column;
    gap: 16px;
  }

  .nav-menu {
    gap: 16px;
  }

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

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

  .search-box {
    flex-direction: column;
    border-radius: var(--border-radius-lg);
  }

  .search-input {
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  }

  .search-btn {
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 24px;
  }

  .features-grid,
  .steps-container,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .cta-title {
    font-size: 28px;
  }

  .cta-description {
    font-size: 16px;
  }
}
