/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  :root {
    --primary-color: #ff5000;
    --secondary-color: #ff9000;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --gray-color: #e0e0e0;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f5f5;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  
  /* 主内容区域 */
  main {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin: 30px 0;
  }
  
  .title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 1.8rem;
  }
  
  /* 计算器样式 */
  .calculator {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
  }
  
  .input-group {
    margin-bottom: 20px;
  }
  
  label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
  }
  
  input[type="number"],
  input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
  }
  
  input[type="number"]:focus,
  input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 80, 0, 0.1);
  }
  
  .checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
  }
  
  input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }
  
  .coin-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

.bl-jdtz-button {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
  width: 100%;
  margin-top: 20px;
}

  
  button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
  }
  
  button i {
    margin-right: 8px;
  }
  
  /* 结果区域 */
  .result {
    background-color: #e8f4f8;
    border-radius: 8px;
    padding: 25px;
    border-left: 4px solid var(--primary-color);
  }
  
  .result p {
    margin: 15px 0;
    font-size: 1.1rem;
  }
  
  .result span {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
  }
  
  /* 其他页面通用样式 */
  .page-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin: 30px 0;
  }
  
  .section-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-color);
  }
  
  /* FAQ 样式 */
  .faq-item {
    margin-bottom: 25px;
    border: 1px solid var(--gray-color);
    border-radius: 8px;
    overflow: hidden;
  }
  
  .faq-question {
    background-color: var(--light-color);
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .faq-answer {
    padding: 15px 20px;
    display: none;
  }
  
  .faq-answer.active {
    display: block;
  }
  
  /* 联系表单 */
  .contact-form {
    display: grid;
    gap: 20px;
  }
  
  textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--gray-color);
    border-radius: 6px;
    min-height: 150px;
    font-family: inherit;
    resize: vertical;
  }
  
  /* 页脚样式 */
  footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
  }
  
  .footer-section h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
  }
  
  .footer-section ul {
    list-style: none;
  }
  
  .footer-section ul li {
    margin-bottom: 10px;
  }
  
  .footer-section ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .footer-section ul li a:hover {
    color: white;
  }
  
  .footer-section p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #aaa;
  }
  
  /* 响应式设计 */
  @media (max-width: 768px) {
    .desktop-nav {
      display: none;
    }
    
    .mobile-menu-btn {
      display: block;
    }
    
    .coin-inputs {
      grid-template-columns: 1fr;
    }
    
    .footer-content {
      grid-template-columns: 1fr;
    }
    
    main, .page-content {
      padding: 20px 15px;
    }
    
    .calculator {
      padding: 20px 15px;
    }
    
    .title {
      font-size: 1.5rem;
    }
    
    button {
      padding: 15px;
    }
  }
  
  @media (max-width: 480px) {
    .logo {
      font-size: 1.2rem;
    }
    
    .title {
      font-size: 1.3rem;
    }
    
    .result p {
      font-size: 1rem;
    }
    
    .result span {
      font-size: 1.1rem;
    }
  }








/* ===悬浮窗口  Right Fixed Action Bar Styles === */
/* === Right Fixed Action Bar Styles (Updated) === */

/* -- Variables (Optional - if not defined globally) -- */
/* :root {
    --primary-color: #ff5000;
    --secondary-color: #ff9000;
    --success-color: #28a745;
} */

/* -- Main Container for the Action Bar -- */
.right-action-bar {
  position: fixed;
  right: 10%;
  bottom: 30%;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* -- Individual Action Item Styling -- */
.right-action-bar .action-item {
  background-color: rgba(0, 0, 0, 0.65);
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  -webkit-tap-highlight-color: transparent;
}

.right-action-bar .action-item:hover {
  background-color: rgba(0, 0, 0, 0.85);
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.right-action-bar .action-item:active {
  transform: scale(1.02);
}

/* -- Icon Styling within Action Item -- */
.right-action-bar .action-icon {
  font-size: 20px;
  margin-bottom: 4px;
  line-height: 1;
}

/* -- Text Styling within Action Item -- */
.right-action-bar .action-text {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 500;
}

/* -- Popup Styling for WeChat Contact -- */
.right-action-bar .action-popup {
  position: absolute;
  right: 100%;
  bottom: 0;
  /* For vertical centering: top: 50%; transform: translateY(-50%) translateX(-15px) scale(0.95); */
  transform: translateX(-15px) scale(0.95); /* Initial state slightly smaller and to the left */
  background-color: white;
  color: #333;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  width: 220px;
  text-align: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* Initially not interactive */
  transition: opacity 0.25s ease-in-out, visibility 0s linear 0.25s, transform 0.25s ease-in-out;
}

/* -- Show Popup when .active class is present (controlled by JS) -- */
.right-action-bar .action-item.wechat-contact.active .action-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* Make interactive when visible */
  transform: translateX(-15px) scale(1); /* Animate to full size */
  transition-delay: 0s, 0s, 0s; /* visibility transition delay reset for showing */
}

/* -- WeChat QR Code Image Styling -- */
.right-action-bar .wechat-qrcode {
  width: 160px;
  height: 160px;
  margin-bottom: 12px;
  border: 1px solid #f0f0f0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* -- WeChat ID Text Styling -- */
.right-action-bar .wechat-id-text {
  font-size: 14px;
  margin-bottom: 15px;
  color: #555;
  word-break: break-all;
}

/* -- Copy WeChat ID Button Styling -- */
.right-action-bar .btn-copy-wechat {
  background-color: var(--primary-color, #ff5000);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
  display: inline-block;
}
.right-action-bar .btn-copy-wechat:hover {
  background-color: var(--secondary-color, #e64a00);
}
.right-action-bar .btn-copy-wechat:active {
  transform: scale(0.98);
}
.right-action-bar .btn-copy-wechat:disabled {
  background-color: var(--success-color, #28a745);
  cursor: default;
  opacity: 0.8; /* Slightly dim when disabled */
}

/* -- "Go to Top" Button specific -- */
.right-action-bar .action-item.gotop {
  /* display: none;  JS will handle display via inline style */
}

/* -- Responsive Adjustments for Mobile -- */
@media (max-width: 768px) {
  .right-action-bar {
      right: 5%;
      bottom: 5%; /* 调整底部距离，给弹窗更多空间 */
      gap: 10px;
  }
  .right-action-bar .action-item {
      width: 50px;
      height: 50px;
  }
  .right-action-bar .action-icon {
      font-size: 18px;
  }
  .right-action-bar .action-text {
      font-size: 9px;
  }

  /* --- 移动端微信弹窗居中显示 --- */
  .right-action-bar .action-popup {
      /* 重置 PC 端的定位 */
      right: auto;
      bottom: auto; 
      left: 50%;   /* 定位到屏幕中心线 */
      top: 50%;    /* 定位到屏幕中心线 */
      transform: translate(-50%, -50%) scale(0.95); /* 通过 transform 实现精确居中并初始缩小 */
      
      width: 85vw; /* 弹窗宽度为视口宽度的85%，留出一些边距 */
      max-width: 300px; /* 最大宽度限制，防止在较宽的平板上也过大 */
      box-sizing: border-box; /*确保 padding 和 border 不会增加总宽度 */
  }

  /* 当弹窗激活时 (JS 添加 .active 类) */
  .right-action-bar .action-item.wechat-contact.active .action-popup {
      transform: translate(-105%, -105%) scale(1); /* 恢复正常大小并保持居中 */
  }

  .right-action-bar .wechat-qrcode {
      width: 130px; /* 可以根据弹窗宽度调整 */
      height: 130px;
      max-width: 70%; /* 确保二维码不会撑破小弹窗 */
  }
  .right-action-bar .btn-copy-wechat {
      padding: 10px 15px; /* 按钮在移动端也可以大一点 */
      font-size: 14px;
      width: 90%; /* 按钮宽度 */
      margin: 0 auto; /* 按钮居中 */
  }
}

/* Ensure .hidden class is defined if used elsewhere for initial hiding, though this component doesn't rely on it for the popup */
.hidden {
  display: none !important;
}