/* 返利系统样式设置 */
.rebate-system {
    padding: 18px 24px;
    width: 100%;
    margin: 0 auto 24px auto;
    background: #f6f8fb;
    border: 1px solid #e0e5ea;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(100, 150, 220, 0.06);
    /* 给子元素提供定位参考 */
    position: relative;
    z-index: 5;
}

.rebate-system h2 {
    color: #2c3e50; 
    margin-bottom: 15px; 
    padding-bottom: 10px; 
    border-bottom: 2px solid #3498db; 
}

.rebate-title {
  color: #2c3e50;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
  display: flex;
  align-items: baseline; /* 让链接与文字底线对齐 */
  gap: 10px; /* 控制标题与链接之间的间距 */
  flex-wrap: nowrap; /* 防止换行 */
}

.rebate-title a {
  font-size: 14px;
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rebate-title a:hover {
  color: #1d6fa5;
  text-decoration: underline;
}

.rebate-system .rebate-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    padding: 8px 0;
    min-height: 42px;
}

.rebate-system .channel-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
}

.rebate-group .channel-label {
    color: #4b7bf5;
    font-weight: bold;
    min-width: 60px;
    /* 不允许缩小，保持原始宽度 */
    flex-shrink: 0;
}

.rebate-group .channel-list {
    /* 占据父容器剩余空间 */
    flex: 1;
}

.rebate-system .channel-item {
    border-left: 4px solid #4b7bf5;
    transition: transform 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 10px 14px;
}

.rebate-system .channel-item:hover {
    transform: translateX(5px);
}

.channel-item .channel-name {
    color: #34495e;
    font-weight: 500;
}

.channel-item .channel-discount {
    font-weight: 600;
}
