/* result.css：結果區、補給建議、實戰攻略、schedule、購買連結 */

#result {
    margin-top: 25px;
    padding: 25px;
    background: #fffaf8;
    border-radius: 15px;
    display: none;
    border: 1px solid #ffe0d0;
  }
  
  .coach-advice {
    line-height: 1.6;
    color: #333;
    font-size: 15px;
    margin-bottom: 10px;
  }
  
  .carb-target-card {
    background: #eef7ff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #cce5ff;
  }
  
  .carb-value {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    display: block;
  }
  
  /* 產品名＋前往購買 */
  .product-highlight {
    color: #ff4500;
    font-size: 1.4em;
    font-weight: bold;
    margin: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
  }
  
  .service-box {
    background: #fff;
    border: 1px dashed #ff4500;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
  }
  
  .preview-btn {
    background: #000080;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: 0.2s;
    font-weight: bold;
    margin-top: 5px;
  }
  
  /* schedule */
  .vertical-schedule-container {
    position: relative;
    padding-left: 35px;
    margin-top: 30px;
  }
  
  .vertical-schedule-container::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background: #f0f0f0;
    border-radius: 2px;
    z-index: 0;
  }
  
  .schedule-item {
    position: relative;
    display: flex;
    margin-bottom: 22px;
    align-items: flex-start;
    z-index: 1;
  }
  
  .schedule-node {
    position: absolute;
    left: -35px;
    width: 25px;
    height: 25px;
    background: #ff4500;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .schedule-content {
    background: white;
    padding: 12px 18px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
    flex-grow: 1;
    border: 1px solid #f0f0f0;
    transition: 0.3s;
  }
  
  .schedule-item.late-stage-line .schedule-content {
    background: #fff5f0;
    border-color: #ffe0d0;
  }
  
  .schedule-item.late-stage-line .schedule-node { background: #ff8c00; }
  
  .schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
  }
  
  .schedule-time {
    font-size: 16px;
    font-weight: bold;
    color: #333;
  }
  
  .km-tag {
    background: #333;
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
  }
  
  .schedule-action {
    color: #ff4500;
    font-size: 14.5px;
    font-weight: bold;
    margin: 4px 0;
  }
  
  .schedule-info {
    font-size: 11px;
    color: #888;
    font-style: italic;
  }
  
  /* 原本 buy_link 樣式（如果未來又放回去底部也還能用） */
  #buy_link {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: #ff4500;
    font-weight: bold;
    text-decoration: none;
    padding: 12px;
    border: 2px solid #ff4500;
    border-radius: 12px;
    transition: 0.3s;
  }
  
  #buy_link:hover {
    background: #ff4500;
    color: white;
  }
  
  /* ✅ 覆蓋：當 buy_link 被放在產品名旁邊時，改成小按鈕，避免 margin-top 造成跑位 */
  .product-highlight #buy_link{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;              /* 關鍵：覆蓋掉原本 margin-top:25px */
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
  }