/* StradePay\css\style.css */
:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --text-color: #333333;
  --background-color: #ffffff;
  --card-bg-color: #f8f9fa;
}

body {
  background-image: url("../images/background.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.navbar {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 14px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
  padding: 0.5rem 1rem;
}

.navbar.scrolled {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  height: 80px;
  width: auto;
}

.nav-link {
  color: var(--text-color) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary-color) !important;
}

.hero-section {
  background-image: url("../images/hero.png");
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-title,
.hero-subtitle {
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-hero {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    var(--primary-color)
  );
  opacity: 0;
  transition: all 0.3s ease;
  z-index: -1;
}

.btn-hero:hover {
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-hero:hover:before {
  opacity: 1;
}

.calculator-section {
  position: relative;
  padding: 5rem 0;
}

.calculator-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(248, 249, 250, 0.5);
  z-index: -1;
}

.calculator-row {
  display: flex;
  align-items: center;
}

.calculator-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.crypto-calculator-svg {
  width: 100%;
  height: auto;
  max-height: 400px;
}

.calculator-form {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.binance-widget-marquee {
  margin-bottom: 1rem;
}

#calculatorForm {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

#result {
  font-size: 1.2rem;
  font-weight: bold;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-color);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 10px auto 0;
}

.about-section,
.vision-section,
.strengths-section,
.services-section,
.contact-section {
  padding-top: 150px; /* 调整这个值，使其略大于导航栏的高度 */
  padding-bottom: 5rem;
}

.about-section::before,
.vision-section::before,
.strengths-section::before,
.services-section::before,
.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: -1;
}

.about-content,
.vision-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.about-image,
.vision-image {
  flex: 1;
}

.about-image img,
.vision-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text,
.vision-text {
  flex: 1;
}

.strengths-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.strength-item,
.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background-color: var(--card-bg-color);
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 320px;
}

.strength-item:hover,
.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.strength-item i,
.service-item i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.strength-item h3,
.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  min-height: 3.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.strength-item p,
.service-item p {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form {
  background-color: var(--card-bg-color);
  padding: 2rem;
  border-radius: 10px;
}

.contact-info {
  background-color: var(--card-bg-color);
  padding: 2rem;
  border-radius: 10px;
}

.contact-info i {
  color: var(--primary-color);
  margin-right: 10px;
}

.footer {
  background-color: #f8f9fa;
  padding: 3rem 0;
  color: var(--text-color);
}

.footer h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer ul {
  padding-left: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.footer p {
  font-size: 1rem;
}

.footer a:hover {
  color: var(--primary-color);
}

.footer-icon {
  font-size: 24px;
  margin-right: 10px;
}

.payment-icon {
  font-size: 1.2em; /* 调整大小以适应您的设计 */
  margin-right: 8px;
}

.custom-select {
  position: relative;
  font-family: Arial, sans-serif;
  width: 100%;
  margin-bottom: 1rem;
}

.select-selected {
  background-color: white;
  border: 1px solid #ccc;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.select-selected:after {
  content: "\25BC";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.select-items {
  position: absolute;
  background-color: white;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  border: 1px solid #ccc;
  border-top: none;
}

.select-items div {
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.select-items div:hover {
  background-color: #f1f1f1;
}

.currency-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.select-hide {
  display: none;
}


.faq-section {
  padding-top: 150px;
  padding-bottom: 5rem;
  background-color: rgba(255, 255, 255, 0.8);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.faq-toggle {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  background-color: #3498db; /* 蓝色背景 */
  color: white;
  border-radius: 50%;
  margin-right: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question.active .faq-toggle {
  background-color: #e74c3c;
}

.faq-question {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: #f8f9fa;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #e9ecef;
}

.faq-answer {
  padding: 15px;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  display: none;
}

.faq-answer.show {
  display: block;
}

@media (max-width: 991px) {
  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-item {
    padding: 0.5rem 0;
  }

  .navbar-brand img {
    height: 60px;
  }

  .hero-section .row {
    flex-direction: column-reverse;
  }

  .hero-image {
    margin-bottom: 2rem;
  }

  .about-content,
  .vision-content {
    flex-direction: column;
  }

  .about-image,
  .vision-image,
  .about-text,
  .vision-text {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .calculator-row {
    flex-direction: column;
  }

  .calculator-image {
    order: -1;
    margin-bottom: 2rem;
  }

  .strengths-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .strength-item,
  .service-item {
    height: auto;
    min-height: 300px;
  }
}
