/* 底部 */
footer {
    text-align: center;
    padding: 10px;
    background: #F4A261;
    color: white;
    border-radius: 20px 20px 0 0;
}

/* 🔥 問題與建議按鈕 */
#feedback-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #E76F51;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

#feedback-btn:hover {
    background: #D64545;
}

/* 🔹 手機版只顯示圖示 */
.mobile-icon {
    display: none;
}

@media (max-width: 768px) {
    .desktop-text {
        display: none;
    }

    .mobile-icon {
        display: inline;
        font-size: 22px;
    }

    #feedback-btn {
        width: 50px;
        height: 50px;
        min-width: auto;
        padding: 0;
        border-radius: 50%;
        font-size: 22px;
    }

    #feedback-text {
        font-size: 14px;
        /* 減小字體大小，適應小螢幕 */
        padding: 8px;
    }

    .modal-content {
        width: 95%;
        /* 確保彈窗在手機不會超過螢幕 */
    }
}

/* Modal 設定 */
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

/* 🎨 Modal (彈出視窗) 設定 */
.modal-content {
    width: 90%;
    max-width: 400px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

#feedback-text {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
}

/* 🎨 讓回饋區塊與熱門文章一致 */
#feedback-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

/* 📝 單個回饋項目 */
.feedback-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    color: #333;
}

/* ⏰ 回饋時間（縮小 & 靠右對齊） */
.feedback-time {
    font-size: 12px;
    color: #777;
    text-align: right;
    display: block;
    margin-top: 3px;
}

/* 🚀 最後一個回饋無底線 */
.feedback-item:last-child {
    border-bottom: none;
}

/* 🙌 無回饋時的樣式 */
.no-feedback {
    text-align: center;
    color: #888;
    font-size: 14px;
    padding: 10px 0;
}

#submit-feedback,
#close-feedback {
    display: inline-block;
    background: #2A9D8F;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    margin-top: 15px;
    transition: 0.3s;
}

#submit-feedback:hover,
#close-feedback:hover {
    background: #1E706D;
}