/* --- 最終修正版 CSS --- */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    width: 100%;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #DDE9ED;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.page-container {
    width: 100%;
    max-width: 500px;
    text-align: center;
    color: #333;
}

/* 首頁卡片式佈局 */
.page-container.card-layout {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.card-layout .content-padding {
    padding: 10px 30px 30px 30px;
}

.card-layout h1 { color: #0077be; }
.card-layout p { color: #555; }

.banner-image img, .footer-image img {
    width: 100%;
    display: block;
}

.remarks { text-align: left; background-color: #f0f8ff; border-left: 5px solid #0077be; padding: 15px; margin: 25px 0; border-radius: 5px; font-size: 0.9rem; color: #333; line-height: 1.6; }
.remarks p { margin: 0; padding: 0; color: #333; }

/* 通用樣式 */
h1 { font-size: 2rem; margin-top: 0; margin-bottom: 8px; color: #0077be; }
p { font-size: 1.1rem; margin-bottom: 25px; color: #555; }

.question { font-size: 1.5rem; font-weight: bold; line-height: 1.5; margin: 30px 0; color: #333; }

/* O/X 按鈕 */
.options { list-style: none; padding: 0; margin: 40px 0; display: flex; justify-content: center; gap: 30px; }
.options label { display: flex; justify-content: center; align-items: center; width: 100px; height: 100px; border-radius: 50%; cursor: pointer; font-size: 3.5rem; font-weight: bold; color: #0077be; background: #ffffff; border: 2px solid #ccc; box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); transition: all 0.2s ease-out; }
.options label:hover { transform: translateY(-3px); box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15); }
.options input[type="radio"] { display: none; }
.options input[type="radio"]:checked + label { color: white; background: linear-gradient(145deg, #00AFFF, #0077FF); border-color: #0077FF; transform: translateY(2px); box-shadow: 0 0 25px rgba(0, 150, 255, 0.7); }

#feedback { 
    margin-top: 15px; 
    margin-bottom: 25px;
    font-weight: bold; 
    font-size: 1.1rem;
    line-height: 1.6;
    min-height: 25px; /* 保留最小高度，避免沒文字時版面跳動 */
    padding: 0 10px; /* 增加左右內距 */
}

/* 按鈕樣式 */
.nav-button { display: inline-block; padding: 12px 40px; border-radius: 50px; text-decoration: none; font-size: 1.2rem; font-weight: bold; color: white; background: linear-gradient(145deg, #00AFFF, #0077FF); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); transition: all 0.2s ease-out; cursor: pointer; width: 100%; border: none; }
.nav-button:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25); }
/* 嚴格模式：禁用的按鈕完全不可點擊 */
.nav-button.disabled { 
    background: #ccc; 
    color: #888; 
    cursor: not-allowed; 
    box-shadow: none; 
    pointer-events: none; /* 讓按鈕無法被點擊 */
}

/* 表單樣式 */
.form-row { margin-bottom: 20px; text-align: left; }
.form-row label { display: block; margin-bottom: 5px; font-weight: bold; }
.card-layout .form-row input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; background-color: #f7f7f7; color: #333; font-size: 1rem; }
.card-layout .form-row input::placeholder { color: #999; }

/* 條款頁樣式 */
.privacy-policy-content { height: 300px; overflow-y: scroll; border: 1px solid #ddd; padding: 15px; background-color: rgba(255,255,255,0.7); margin-bottom: 20px; text-align: left; border-radius: 8px; }
.agree-container { display: flex; align-items: center; justify-content: center; margin-bottom: 25px; gap: 10px; }

/* 感謝頁 */
.thank-you-container .icon { font-size: 5rem; margin-bottom: 20px; animation: tada 1s ease; }
@keyframes tada { from { transform: scale3d(1, 1, 1); } 10%, 20% { transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg); } 30%, 50%, 70%, 90% { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); } 40%, 60%, 80% { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); } to { transform: scale3d(1, 1, 1); } }

.social-links { margin-top: 40px; }
.social-links p { font-size: 1rem; color: #555; }
.social-links .button-group { display: flex; flex-direction: column; gap: 15px; align-items: center; }
.social-button { display: inline-block; padding: 10px 30px; border-radius: 50px; text-decoration: none; font-weight: bold; color: white; transition: transform 0.2s; box-shadow: 0 4px 8px rgba(0,0,0,0.15);}
.social-button:hover { transform: scale(1.05); box-shadow: 0 6px 12px rgba(0,0,0,0.2); }
.fb-button { background-color: #1877F2; }
.ig-button { background: #d6249f; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.twd-button { 
    background-color: #02428b; 
    /* ▼▼▼ 新增：增加與上方按鈕的距離 ▼▼▼ */
    margin-top: 40px; /* 您可以調整這個數值，例如 15px 或 20px */
} 

/* 感謝頁下方 Logo 樣式 */
.final-logo {
    margin-top: 50px; 
}
.final-logo img {
    max-width: 180px; 
    height: auto;
    opacity: 0.7; 
}

