/* [替換檔案內容] /super-module-assets/css/frontend-feedback.css */
.hd-feedback-wrapper { 
    border: 1px solid #e0e0e0; 
    padding: 20px; 
    margin: 2em 0; 
    border-radius: 8px; 
    background: #f9f9f9; 
}
.widget .hd-feedback-wrapper { 
    margin: 0; 
}
.hd-feedback-question { 
    margin-bottom: 20px; 
    padding-bottom: 20px; 
    border-bottom: 1px dashed #ddd; 
}
.hd-feedback-question:last-of-type { 
    margin-bottom: 0; 
    padding-bottom: 0; 
    border-bottom: none; 
}
.hd-feedback-question .question-text { 
    margin: 0 0 15px 0; 
    font-weight: bold; 
    font-size: 1.1em;
}

/* 按鈕容器 */
.hd-feedback-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 是/否 按鈕樣式 */
.hd-feedback-btn-yesno {
    text-decoration: none !important; 
    border: 1px solid #ccc; 
    padding: 5px 15px; 
    border-radius: 20px; 
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    color: #333;
    font-weight: 500;
}
.hd-feedback-btn-yesno:hover { 
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.hd-feedback-btn-yesno[data-vote='yes']:hover { 
    border-color: #4CAF50; 
    background-color: #e8f5e9; 
    color: #2e7d32;
}
.hd-feedback-btn-yesno[data-vote='no']:hover { 
    border-color: #F44336; 
    background-color: #ffebee; 
    color: #c62828;
}

/* 單選/複選 樣式 */
.hd-feedback-option-label {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}
.hd-feedback-option-label:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
}
.hd-feedback-option-label input {
    margin-right: 8px;
}

/* 提交按鈕 */
.hd-feedback-submit-btn {
    margin-top: 15px;
    padding: 8px 20px;
    border: none;
    background-color: #0073aa;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.hd-feedback-submit-btn:hover {
    background-color: #005a87;
}

/* --- 固定內容樣式 --- */
.hd-feedback-fixed-content {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95em;
    color: #555;
}
.hd-feedback-fixed-content p:last-child {
    margin-bottom: 0;
}

/* --- 投票結果樣式 --- */
.hd-poll-results-list {
    margin-top: 15px;
}
.poll-result-item {
    margin-bottom: 12px;
}
.poll-option-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: 500;
}
.poll-bar-container {
    width: 100%;
    background-color: #eee;
    border-radius: 4px;
    height: 12px;
    overflow: hidden;
}
.poll-bar {
    height: 100%;
    background-color: #0073aa;
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
}
.poll-total-votes, .poll-status-ended {
    margin-top: 15px;
    font-size: 0.9em;
    color: #666;
    text-align: right;
}
.poll-status-ended {
    font-weight: bold;
    color: #c00;
}

/*
==============================================
[純HTML範本庫] 整合樣式庫 v2.1 (新聞稿樣式分離)
==============================================
*/

/* --- 模式一：預設的藍色資訊框樣式 (適用於一般內容) --- */
.hd-pure-html-wrapper { margin: 2em 0; padding: 20px 25px; border-radius: 8px; background-color: #f0f6fc; border: 1px solid #d1e4f6; border-left: 5px solid #72aee6; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.widget .hd-pure-html-wrapper { margin: 0; }
.hd-pure-html-wrapper h1, .hd-pure-html-wrapper h2, .hd-pure-html-wrapper h3, .hd-pure-html-wrapper h4 { color: #1d5b94; margin-top: 0; padding-bottom: 0; border-bottom: none; }
.hd-pure-html-wrapper p { color: #333; line-height: 1.7; }
.hd-pure-html-wrapper > *:last-child { margin-bottom: 0; }
.hd-pure-html-wrapper a { color: #005a87; font-weight: bold; text-decoration: underline; transition: color 0.2s; }
.hd-pure-html-wrapper a:hover { color: #c00; }
.hd-pure-html-wrapper ul, .hd-pure-html-wrapper ol { padding-left: 25px; }

/* --- 核心整合邏輯 --- */
.hd-pure-html-wrapper:has(> .announcement-card),
.hd-pure-html-wrapper:has(> .sponsor-card),
.hd-pure-html-wrapper:has(> .news-release-card) { padding: 0; background: transparent; border: none; box-shadow: none; }

/* --- 模式二：卡片範本樣式 --- */

/* --- 2a. 新聞稿卡片 (News Release Card) - 藍色底座樣式 --- */
.news-release-card { margin: 0; padding: 20px 25px; border-radius: 8px; background-color: #f0f6fc; border: 1px solid #d1e4f6; border-left: 5px solid #72aee6; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.news-release-card .news-title { color: #1d5b94; font-size: 1.25em; font-weight: bold; margin-top: 0; margin-bottom: 12px; }
.news-release-card .news-description { color: #333; line-height: 1.7; margin-bottom: 20px; }
.news-release-card .news-link { display: inline-block; padding: 8px 18px; background-color: #005a87; color: #fff !important; font-weight: bold; text-decoration: none; border-radius: 6px; transition: opacity 0.2s; }
.news-release-card .news-link:hover { opacity: 0.85; }

/* --- 2b. 通知卡片 (Announcement Card) - 白色底座樣式 --- */
.announcement-card { padding: 20px 25px; border-radius: 8px; background-color: #fff; border: 1px solid #e5e7eb; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); margin: 0; position: relative; overflow: hidden; }
.announcement-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.announcement-card .announcement-title { font-size: 1.25em; font-weight: bold; color: #111827; margin-top: 0; margin-bottom: 12px; display: flex; align-items: center; }
.announcement-card .announcement-title i { margin-right: 10px; font-size: 1.1em; width: 20px; text-align: center; }
.announcement-card .announcement-description, .announcement-card .announcement-description p { font-size: 1em; color: #4b5563; line-height: 1.7; margin-top: 0; margin-bottom: 20px; }
.announcement-card .announcement-link { display: inline-block; padding: 10px 20px; color: #fff !important; font-weight: bold; text-decoration: none; border-radius: 6px; transition: opacity 0.2s ease-in-out; border: none; }
.announcement-card .announcement-link:hover { opacity: 0.85; }
.announcement-card.info::before, .announcement-card.info .announcement-link { background-color: #3b82f6; }
.announcement-card.info .announcement-title i { color: #3b82f6; }
.announcement-card.success::before, .announcement-card.success .announcement-link { background-color: #22c55e; }
.announcement-card.success .announcement-title i { color: #22c55e; }
.announcement-card.warning::before, .announcement-card.warning .announcement-link { background-color: #f59e0b; }
.announcement-card.warning .announcement-title i { color: #f59e0b; }
.announcement-card.danger::before, .announcement-card.danger .announcement-link { background-color: #ef4444; }
.announcement-card.danger .announcement-title i { color: #ef4444; }

/* --- 2c. 贊助卡片 (Sponsor Card) --- */
.sponsor-card { background: #ffffff; border-radius: 12px; padding: 25px 30px; border: 1px solid #e5e7eb; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); text-align: center; margin: 0; }
.sponsor-card .sponsor-card-title { font-size: 1.5em; font-weight: bold; color: #111827; margin-top: 0; margin-bottom: 8px; }
.sponsor-card .sponsor-card-description { font-size: 1em; color: #4b5563; margin-bottom: 25px; max-width: 600px; margin-left: auto; margin-right: auto; }
.sponsor-card .sponsor-links-container { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
.sponsor-card .sponsor-link { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 8px; text-decoration: none !important; font-weight: bold; color: #fff !important; transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; border: none; cursor: pointer; min-width: 140px; }
.sponsor-card .sponsor-link:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); }
.sponsor-card .sponsor-link i { margin-right: 8px; font-size: 1.2em; }
.sponsor-card .sponsor-link.jko { background-color: #DE4B2B; }
.sponsor-card .sponsor-link.linepay { background-color: #00B900; }
.sponsor-card .sponsor-link.bank { background-color: #2F60A3; }
.sponsor-card .sponsor-link.paypal { background-color: #0070BA; }