﻿/* ===== Layout ===== */
.food-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;  /* make all flex children equal height */
  max-width: 1024px;
  margin: auto;
}

.food-content .left-column {
  flex: 1 1 48%;
  min-width: 300px;
  
  display: flex;          /* let children stretch inside */
  flex-direction: column; /* stack content vertically */
}

.food-content .right-column {
  flex: 1 1 48%;
  min-width: 300px;

  display: flex;          /* let children stretch inside */
  flex-direction: column; /* stack content vertically */
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
.food-content .main-content {
    flex-direction: column;
  }

.food-content .left-column,
.food-content .right-column {
    flex: 1 1 100%;
  }
}


/* ===== Food Content ===== */

  .food-guide {
    max-width: 700px;
    margin: auto;
    background: #fff;
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .food-guide h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 1em;
    font-size: 1.6em;
    color: #333;
  }
  .food-icon {
    font-size: 1.6em;
  }
  /* 圖例 */
  .legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.95em;
  }
  .legend span {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .legend .box {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    display: inline-block;
  }
  .ok-box { background: #d4f8d4; border: 1px solid #3ba55d; }
  .warn-box { background: #fff3b0; border: 1px solid #e0a800; }
  .avoid-box { background: #f8d4d4; border: 1px solid #c53030; }

  /* 分類清單 */
  .food-guide h3 {
    margin-top: 1.4em;
    font-size: 1.2em;
    color: #444;
    border-left: 6px solid #999;
    padding-left: 8px;
  }
  .food-guide ul {
    list-style: none;
    padding: 0;
    margin: 0.5em 0 0;
  }
  .food-guide li {
    padding: 10px 14px;
    margin: 6px 0;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.05em;
  }
  .food-guide li.ok {
    background: #d4f8d4;
    border-left: 6px solid #3ba55d;
    color: #2c662d;
  }
  .food-guide li.warn {
    background: #fff3b0;
    border-left: 6px solid #e0a800;
    color: #6c4a00;
  }
  .food-guide li.avoid {
    background: #f8d4d4;
    border-left: 6px solid #c53030;
    color: #721c24;
  }
  
  .note-box {
    margin-top: 12px;
    padding: 12px 16px;
    background: #e8f4fd;
    border-left: 6px solid #2980b9;
    border-radius: 10px;
    color: #1b4f72;
    font-size: 0.95em;
    line-height: 1.5;
  }
  
  .tips {
    margin-top: 18px;
    padding: 14px 18px;
    background: #f3f9e8;
    border-left: 6px solid #7cb518;
    border-radius: 10px;
    color: #344e41;
    font-size: 0.95em;
    line-height: 1.6;
  }  

  /* 簡單原則 */
  .principle {
    max-width: 700px;
    margin: 20px auto;
    padding: 16px 20px;
    background: #f0fff4;
    border-left: 6px solid #28a745;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  }
  .principle h3 {
    margin: 0 0 10px;
    font-size: 1.2em;
    color: #155724;
  }
  .principle ul {
    margin: 0;
    padding-left: 20px;
  }
