/* 基础样式 */
* {
    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;
  }
  
  /* 头部样式 */
  /*header {*/
  /*  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));*/
  /*  color: white;*/
  /*  padding: 5px 0;*/
  /*  box-shadow: var(--box-shadow);*/
  /*  position: sticky;*/
  /*  top: 0;*/
  /*  z-index: 100;*/
  /*  width: 100%;*/
  /*}*/
  
  /*header .container {*/
  /*  display: flex;*/
  /*  justify-content: space-between;*/
  /*  align-items: center;*/
    
  /*}*/
  
  /*.logo {*/
  /*  font-size: 1.5rem;*/
  /*  font-weight: bold;*/
  /*  text-decoration: none;*/
  /*  color: white;*/
  /*  display: flex;*/
  /*  align-items: center;*/
  /*  gap: 10px;*/
  /*}*/
  
  /*.desktop-nav ul {*/
  /*  display: flex;*/
  /*  list-style: none;*/
  /*  gap: 25px;*/
  /*}*/
  
  /*.desktop-nav a {*/
  /*  color: white;*/
  /*  text-decoration: none;*/
  /*  font-weight: 500;*/
  /*  transition: opacity 0.3s;*/
  /*  display: flex;*/
  /*  align-items: center;*/
  /*  gap: 5px;*/
    
  /*}*/
  
  /*.desktop-nav a:hover {*/
  /*  opacity: 0.8;*/
  /*}*/
  
  /*.mobile-menu-btn {*/
  /*  display: none;*/
  /*  font-size: 1.5rem;*/
  /*  cursor: pointer;*/
  /*}*/
  
  /*.mobile-nav {*/
  /*  display: none;*/
  /*  background-color: white;*/
  /*  box-shadow: var(--box-shadow);*/
  /*  position: absolute;*/
  /*  width: 100%;*/
  /*  left: 0;*/
  /*  top: 100%;*/
  /*  z-index: 99;*/
  /*}*/
  
  /*.mobile-nav ul {*/
  /*  list-style: none;*/
  /*}*/
  
  /*.mobile-nav a {*/
  /*  display: block;*/
  /*  padding: 15px 20px;*/
  /*  text-decoration: none;*/
  /*  color: var(--dark-color);*/
  /*  border-bottom: 1px solid var(--gray-color);*/
  /*  display: flex;*/
  /*  align-items: center;*/
  /*  gap: 10px;*/
  /*}*/
  
  /*.mobile-nav a:hover {*/
  /*  background-color: var(--light-color);*/
  /*}*/
  
  /* 广告区域 */
  .ads {
    background-color: #fff9e6;
    border: 1px solid #ffe699;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
  }
  
  .ad-container p {
    margin: 5px 0;
  }
  
  /* 主内容区域 */
  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-jsq-button {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    width: 100%;
    margin-top: 20px;
  }
  
  .bl-jsq-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
  }
  
  .bl-jsq-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);
  }
  
  
  /* 响应式设计 */
  @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;
    }
  }
  /* 新增优惠券输入样式 */
.coupon-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 10px;
  align-items: center;
}

.coupon-inputs > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.coupon-result {
  text-align: center;
  padding: 5px;
  background: #f0f0f0;
  border-radius: 4px;
}

/* 预设选择器样式 */
.preset-selector {
  display: flex;
  gap: 10px;
}

.preset-selector select {
  flex: 1;
  padding: 12px 10px;
  border: 1px solid var(--gray-color);
  border-radius: 6px;
  background-color: white;
}

.custom-input {
  display: none;
  width: 100px;
}

/* 购物金输入优化 */
.coin-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  align-items: center;
}

.coin-inputs > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.coin-result {
  text-align: center;
  padding: 5px;
  background: #f0f0f0;
  border-radius: 4px;
}

/* 表单按钮样式 */
.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

/* 保存方案样式 */
.saved-schemes {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
  border-left: 3px solid var(--primary-color);
}

.saved-schemes h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.saved-schemes ul {
  list-style: none;
}

.saved-schemes li {
  padding: 12px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.saved-schemes li:last-child {
  border-bottom: none;
}

.btn-load, .btn-delete {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-load {
  background-color: var(--primary-color);
  color: white;
}

.btn-delete {
  background-color: var(--danger-color);
  color: white;
  margin-left: 5px;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .coupon-inputs,
  .coin-inputs {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .preset-selector {
    flex-direction: column;
    gap: 8px;
  }
  
  .form-actions {
    grid-template-columns: 1fr;
  }
  
  .custom-input {
    width: 100%;
  }
}
/* 新增优惠券输入样式 */
.coupon-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 10px;
  align-items: center;
}

.coupon-inputs > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.coupon-result {
  text-align: center;
  padding: 5px;
  background: #f0f0f0;
  border-radius: 4px;
}

/* 预设选择器样式 */
.preset-selector {
  display: flex;
  gap: 10px;
}

.preset-selector select {
  flex: 1;
  padding: 12px 10px;
  border: 1px solid var(--gray-color);
  border-radius: 6px;
  background-color: white;
}

.custom-input {
  display: none;
  width: 100px;
}

/* 购物金输入优化 */
.coin-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  align-items: center;
}

.coin-inputs > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.coin-result {
  text-align: center;
  padding: 5px;
  background: #f0f0f0;
  border-radius: 4px;
}

/* 表单按钮样式 */
.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

/* 保存方案样式 */
.saved-schemes {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
  border-left: 3px solid var(--primary-color);
}

.saved-schemes h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.saved-schemes ul {
  list-style: none;
}

.saved-schemes li {
  padding: 12px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.saved-schemes li:last-child {
  border-bottom: none;
}

.btn-load, .btn-delete {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-load {
  background-color: var(--primary-color);
  color: white;
}

.btn-delete {
  background-color: var(--danger-color);
  color: white;
  margin-left: 5px;
}

.scheme-actions {
  display: flex;
  gap: 5px;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .coupon-inputs,
  .coin-inputs {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .preset-selector {
    flex-direction: column;
    gap: 8px;
  }
  
  .form-actions {
    grid-template-columns: 1fr;
  }
  
  .custom-input {
    width: 100%;
  }
  
  .saved-schemes li {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .scheme-actions {
    margin-top: 10px;
    width: 100%;
    justify-content: flex-end;
  }
}
/* 输入框宽度优化 */
.price-input, .discount-input {
  width: 150px;
}

.small-input {
  width: 100px;
}

/* 折扣率显示 */
.discount-rate {
  margin-top: 5px;
  font-size: 0.9rem;
  color: #666;
}

/* 预设选择器样式 */
.preset-selector {
  display: flex;
  gap: 10px;
}

.preset-selector select {
  flex: 1;
  padding: 12px 10px;
  border: 1px solid var(--gray-color);
  border-radius: 6px;
  background-color: white;
}

.custom-input {
  display: none;
}

/* 购物金输入优化 */
.coin-inputs {
  display: flex;
  gap: 15px;
  align-items: center;
}

.coin-inputs > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.coin-result {
  padding: 5px;
  background: #f0f0f0;
  border-radius: 4px;
}

/* 表单按钮样式 */
.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

/* 保存方案样式 */
.saved-schemes {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
  border-left: 3px solid var(--primary-color);
}

.saved-schemes h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.saved-schemes ul {
  list-style: none;
}

.saved-schemes li {
  padding: 12px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.saved-schemes li:last-child {
  border-bottom: none;
}

.btn-load, .btn-delete {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-load {
  background-color: var(--primary-color);
  color: white;
}

.btn-delete {
  background-color: var(--danger-color);
  color: white;
  margin-left: 5px;
}

.scheme-actions {
  display: flex;
  gap: 5px;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .price-input, .discount-input, .small-input {
    width: 100%;
  }
  
  .preset-selector {
    flex-direction: column;
    gap: 8px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .coin-inputs {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .saved-schemes li {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .scheme-actions {
    margin-top: 10px;
    width: 100%;
    justify-content: flex-end;
  }
}
{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

header {
  text-align: center;
  padding: 10px 0;
  //margin-bottom: 30px;
}

h1 {
  font-size: 2.5rem;
  color: #ff4e00;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 30px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-title {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.card-title i {
  background: #ff6b00;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 18px;
}

.card-title h2 {
  font-size: 1.8rem;
  color: #333;
}

.input-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

textarea, input, select {
  width: 100%;
  padding: 14px;
  border: 2px solid #e1e5eb;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.3s;
}

textarea:focus, input:focus, select:focus {
  border-color: #ff6b00;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  background: linear-gradient(to right, #ff6b00, #ff4e00);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn i {
  margin-right: 8px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgba(255, 107, 0, 0.3);
}

.btn:disabled {
  background: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.properties-container {
  display: none;
  margin-top: 25px;
  border-top: 1px dashed #eee;
  padding-top: 25px;
}

.property-group {
  margin-bottom: 25px;
}

.property-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #ff6b00;
  display: flex;
  align-items: center;
}

.property-title i {
  margin-right: 10px;
  color: #ff6b00;
}

.property-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.property-option {
  background: #f8f9fa;
  border: 2px solid #e1e5eb;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 15px;
}

.property-option:hover {
  border-color: #ffb38a;
  background: #fff4ed;
}

.property-option.selected {
  background: #fff4ed;
  border-color: #ff6b00;
  color: #ff6b00;
  font-weight: 600;
}

.result-container {
  /* display: none; */ /* <--- 删除或注释掉这一行 */
  background: #f0faff;
  border-radius: 12px;
  padding: 20px;
  margin-top: 25px;
  border: 1px solid #c2e4ff;
}

.result-title {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #1e88e5;
}

.result-title i {
  margin-right: 10px;
  font-size: 20px;
}

.bp-link {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e1e5eb;
  margin-bottom: 20px;
  word-break: break-all;
  font-size: 16px;
  color: #1e88e5;
}

.action-buttons {
  display: flex;
  gap: 15px;
}

.btn-copy {
  background: linear-gradient(to right, #1e88e5, #0d47a1);
}

.btn-open {
  background: linear-gradient(to right, #4caf50, #2e7d32);
}

.info-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.info-box {
  flex: 1;
  min-width: 300px;
}

.info-box h3 {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #ff6b00;
}

.info-box h3 i {
  margin-right: 10px;
}

.info-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info-content p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.info-content ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.info-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.step-number {
  background: #ff6b00;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

.step-content h4 {
  margin-bottom: 5px;
  color: #333;
}

.step-content p {
  color: #666;
}

.example {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
  font-size: 14px;
  border-left: 3px solid #ff6b00;
}

footer {
  text-align: center;
  padding: 30px 0;
  color: #666;
  font-size: 14px;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .card {
      padding: 20px;
  }
  
  h1 {
      font-size: 2rem;
  }
  
  .action-buttons {
      flex-direction: column;
  }
  
  .btn {
      width: 100%;
  }
}





/* ===悬浮窗口  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: 50%;
  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;
}