/* ... 原有樣式 ... */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px 0; /* 增加上下邊距，避免內容貼邊 */
    -webkit-tap-highlight-color: transparent;
}
.container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 90%;
    transition: all 0.3s ease;
}

/* ★★★ 新增 Logo 樣式 ★★★ */
#logo {
    max-width: 200px; /* 控制 Logo 最大寬度 */
    margin-bottom: 20px; /* Logo 與下方標題的距離 */
}

h1 {
    color: #1c1e21;
    font-size: 2rem; /* 調整字體大小以適應新標題 */
}
h2 {
    color: #333;
    font-size: 1.6rem;
    margin-bottom: 20px;
}
p {
    color: #606770;
    font-size: 1.1rem;
    line-height: 1.6;
}
button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 8px;
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
    transition: background-color 0.3s ease, transform 0.1s ease;
}
button:hover {
    background-color: #0056b3;
}
button:active {
    transform: scale(0.98);
}
.result-container h2 {
    color: #28a745;
    font-size: 1.8rem;
}
.result-content h3 {
    font-size: 1.5rem;
    color: #1c1e21;
}
.result-content {
    text-align: left;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f8f9fa;
    margin-top: 20px;
}
.product-recommendations {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}
.product-recommendations h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}
.product-recommendations ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}
.product-recommendations li {
    margin-bottom: 10px;
}
/* ★★★ 更新產品連結樣式以支援圖文 ★★★ */
.product-recommendations a {
    display: flex; /* 使用 Flexbox 佈局 */
    align-items: center; /* 垂直置中 */
    padding: 10px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.product-recommendations a:hover {
    background-color: #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.product-recommendations img {
    width: 60px; /* 統一圖片寬度 */
    height: 60px; /* 統一圖片高度 */
    object-fit: contain; /* 確保圖片完整顯示不變形 */
    margin-right: 15px; /* 圖片與文字的間距 */
    border-radius: 4px;
    background-color: #fff; /* 如果圖片是透明背景，給一個白底 */
}
.product-recommendations .product-name {
    font-weight: bold;
    color: #0056b3;
    line-height: 1.4; /* 增加行高，避免文字擠在一起 */
}
.hidden {
    display: none;
}