* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}

:root {
  /* LOGO提取配色 */
  --mt4-primary: #689DC5;
  --mt4-primary-dark: #4A7BA7;
  --mt4-primary-light: #E8F2F8;
  /* 橙色系 */
  --mt4-orange: #FF885F;
  --mt4-orange-dark: #E8774F;
  --mt4-orange-light: #FFF0EA;
  /* 中性色 */
  --mt4-light: #F5F7FA;
  --mt4-gray: #666;
  --mt4-dark-text: #222;
  --white: #fff;
  /* 新增：绿色系（呼吸灯/状态） */
  --mt4-green: #4CAF50;
  --mt4-green-light: #E8F5E9;
  --mt4-green-dark: #388E3C;
  /* 评分星星颜色 */
  --mt4-yellow: #FFC107;
  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;
}

body {
  color: var(--mt4-dark-text);
  background: var(--white);
  line-height: 1.6;
  padding-bottom: 20px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--mt4-orange);
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255,136,95,0.3);
  z-index: 9999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--mt4-orange-dark);
  transform: translateY(-3px);
}

/* 导航 */
header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  /* LOGO自适应原尺寸 */
  width: auto;
  height: 60px; /* 适配LOGO高度 */
  border-radius: var(--radius-md);
  overflow: hidden;
}

.logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 完整显示图片 */
}

.nav-menu {
  display: flex;
  gap: 35px;
}

.nav-menu a {
  font-size: 15px;
  color: #333;
  padding: 8px 0;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--mt4-orange);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--mt4-primary);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-download a {
  background: var(--mt4-orange);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(255,136,95,0.2);
}

.nav-download a:hover {
  background: var(--mt4-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255,136,95,0.3);
}

/* Banner */
.banner {
  background: linear-gradient(135deg, var(--mt4-primary), var(--mt4-primary-dark));
  color: #fff;
  padding: 90px 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.banner-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
}

.banner-text {
  flex: 1 1 450px;
}

.banner-text h1 {
  font-size: 38px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.banner-text p {
  font-size: 17px;
  opacity: 0.95;
  margin-bottom: 35px;
  max-width: 500px;
}

.banner-btns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-orange {
  background: var(--mt4-orange);
  color: #fff;
  padding: 15px 30px;
  border-radius: var(--radius-full);
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(255,136,95,0.3);
}

.btn-orange:hover {
  background: var(--mt4-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,136,95,0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #fff;
  color: var(--mt4-primary);
  transform: translateY(-2px);
}

.banner-img {
  flex: 1 1 450px;
  text-align: center;
}

.mockup {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* 通用标题 */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 30px;
  color: var(--mt4-dark-text);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: var(--mt4-orange);
  border-radius: var(--radius-sm);
}

/* 功能区块 */
.features {
  padding: 90px 0;
  background: var(--mt4-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 35px;
}

.feature-card {
  background: #fff;
  padding: 35px;
  border-radius: var(--radius-md);
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--mt4-primary-light);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-color: var(--mt4-orange-light);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--mt4-orange-light);
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  color: var(--mt4-orange);
  font-size: 24px;
  margin-bottom: 25px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--mt4-dark-text);
}

.feature-card p {
  font-size: 15px;
  color: var(--mt4-gray);
  line-height: 1.7;
}

/* 交易商推荐 */
.brokers-section {
  padding: 90px 0;
}

.brokers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.brokers-header-text {
  flex: 1;
}

.brokers-header-text p {
  color: var(--mt4-gray);
  margin-top: 10px;
}

.brokers-header-download a {
  background: var(--mt4-orange);
  color: #fff;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(255,136,95,0.2);
}

.brokers-header-download a:hover {
  background: var(--mt4-orange-dark);
  transform: translateY(-2px);
}

.brokers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 35px;
}

.broker-card {
  border: 1px solid var(--mt4-primary-light);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: all 0.3s ease;
  background: var(--white);
}

.broker-card:hover {
  border-color: var(--mt4-orange);
  box-shadow: 0 8px 25px rgba(0,0,0,0.07);
  transform: translateY(-5px);
}

/* 交易商LOGO+名称布局（核心优化） */
.broker-header {
  display: flex;
  align-items: center;
  gap: 15px; /* LOGO与名称之间的间距 */
  margin-bottom: 15px;
}

/* 放大LOGO容器，保证清晰可见 */
.broker-logo {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md); /* 12px圆角，适配整体风格 */
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--mt4-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* 防止LOGO容器被压缩 */
}

.broker-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 完整显示LOGO，不拉伸 */
  padding: 8px; /* 内边距，避免LOGO贴边 */
}

/* 名称+标签区域（自适应剩余空间） */
.broker-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1; /* 占满剩余宽度 */
  gap: 10px;
}

.broker-name {
  font-size: 20px;
  font-weight: bold;
  color: var(--mt4-primary);
  line-height: 1.2;
}

.broker-tag {
  background: var(--mt4-orange-light);
  color: var(--mt4-orange);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap; /* 防止标签换行 */
}

/* 新增：交易商评分样式 */
.broker-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}

.rating-label {
  color: var(--mt4-gray);
}

.rating-stars {
  color: var(--mt4-yellow);
  font-size: 16px;
}

.rating-score {
  color: var(--mt4-dark-text);
  font-weight: 500;
}

/* 新增：呼吸灯状态样式 */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 14px;
}

.breathing-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--mt4-green);
  /* 呼吸灯动画 */
  animation: breathing 2s infinite ease-in-out;
}

/* 呼吸灯动画关键帧 */
@keyframes breathing {
  0% { 
    opacity: 0.4; 
    transform: scale(0.8); 
  }
  50% { 
    opacity: 1; 
    transform: scale(1.2); 
  }
  100% { 
    opacity: 0.4; 
    transform: scale(0.8); 
  }
}

.status-text {
  color: var(--mt4-green-dark);
  font-weight: 500;
}

.broker-reg {
  font-size: 14px;
  color: var(--mt4-gray);
  margin-bottom: 15px;
  padding-left: 2px;
}

.broker-desc {
  font-size: 15px;
  color: var(--mt4-dark-text);
  margin-bottom: 20px;
  line-height: 1.6;
}

.broker-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.broker-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--mt4-primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
}

.broker-btn:hover {
  background: var(--mt4-primary-dark);
}

.broker-btn-orange {
  background: var(--mt4-orange-light);
  color: var(--mt4-orange);
}

.broker-btn-orange:hover {
  background: var(--mt4-orange);
  color: #fff;
}

/* 用户评价 */
.reviews {
  padding: 90px 0;
  background: var(--mt4-light);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 35px;
}

.review-card {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-md);
  position: relative;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  border-left: 4px solid var(--mt4-orange);
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
}

.stars {
  color: var(--mt4-orange);
  font-size: 18px;
  margin-bottom: 15px;
}

.review-text {
  font-size: 15px;
  color: var(--mt4-gray);
  margin-bottom: 20px;
  font-style: italic;
  line-height: 1.7;
}

.review-user {
  font-size: 14px;
  color: var(--mt4-dark-text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-user::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--mt4-orange);
  border-radius: 50%;
}

/* FAQ */
.faq {
  padding: 90px 0;
}

.faq-item {
  max-width: 850px;
  margin: 0 auto 20px;
  border: 1px solid var(--mt4-primary-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--mt4-orange-light);
}

.faq-question {
  padding: 20px 25px;
  background: #fff;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  font-size: 16px;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--mt4-orange);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mt4-orange-light);
  display: grid;
  place-items: center;
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
  font-size: 15px;
  color: var(--mt4-gray);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding: 0 25px 25px;
  max-height: 250px;
}

.faq-item.active .faq-question::after {
  content: '-';
}

/* 下载区块（参考交易商风格） */
.download {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--mt4-primary-light), var(--mt4-orange-light));
  color: var(--mt4-dark-text);
  border-radius: var(--radius-lg);
  margin: 0 20px 90px;
}

.download-desc {
  text-align: center;
  font-size: 16px;
  color: var(--mt4-gray);
  margin-bottom: 40px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.download-card {
  background: white;
  padding: 35px;
  border-radius: var(--radius-md);
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.download-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.download-icon {
  font-size: 40px;
  color: var(--mt4-orange);
  margin-bottom: 20px;
}

.download-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--mt4-primary-dark);
}

.download-card p {
  font-size: 15px;
  color: var(--mt4-gray);
  margin-bottom: 25px;
  line-height: 1.7;
}

.download-btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--mt4-orange);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(255,136,95,0.2);
}

.download-btn:hover {
  background: var(--mt4-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255,136,95,0.3);
}

/* 底部 */
footer {
  background: #1D1F27;
  color: #ccc;
  padding: 70px 0 30px;
  font-size: 14px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: 20px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-col {
  flex: 1;
  min-width: 220px;
}

.footer-col h4 {
  color: var(--mt4-orange);
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a:hover {
  color: var(--mt4-orange);
  transform: translateX(3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333;
  color: #999;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .banner-text h1 {
    font-size: 30px;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .download {
    margin: 0 10px 60px;
    padding: 70px 0;
  }

  .download-btn {
    padding: 14px 28px;
    font-size: 15px;
  }

  .brokers-header {
    justify-content: center;
    text-align: center;
  }

  /* 响应式LOGO尺寸 */
  .broker-logo {
    width: 60px;
    height: 60px;
  }
  .broker-name {
    font-size: 18px;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    font-size: 18px;
    bottom: 20px;
    right: 20px;
  }

  /* 响应式：评分和呼吸灯适配 */
  .broker-rating, .status-indicator {
    font-size: 13px;
  }
  .rating-stars {
    font-size: 14px;
  }
  .breathing-light {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .banner {
    padding: 60px 0;
  }

  .features, .brokers-section, .reviews, .faq {
    padding: 60px 0;
  }

  .feature-card, .broker-card, .download-card {
    padding: 25px;
  }

  .logo-img {
    height: 50px;
  }

  /* 移动端LOGO布局调整 */
  .broker-header {
    flex-direction: column; /* 移动端LOGO在上，名称在下 */
    gap: 10px;
    align-items: flex-start;
  }
  .broker-logo {
    width: 55px;
    height: 55px;
  }
  .broker-top {
    width: 100%;
  }
}