/* 肌膚檢測：登入卡、加 LINE 好友卡、檢測步驟一到三、諮詢頁、我的頁面，換成跟新首頁同一套視覺（2026-09-28）
   只改外觀，不動功能。檢測結果（步驟四）這次沒有改。 */

/* ---------- 登入卡：疊在新首頁上面，背景看得到 Banner（登入規則不變，還是要先登入） ---------- */
#moresieLoginOverlay.sk-login {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    padding: 20px;
    background: rgba(18, 36, 28, .42);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", sans-serif;
}
.sk-card {
    background: #fdfcf9; color: #1e3a2f;
    border-radius: 24px; padding: 36px 28px 28px;
    width: 100%; max-width: 380px; text-align: center;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6);
    border: 1px solid rgba(200, 169, 110, .45);
}
.sk-card .k { font-family: "Fraunces", Georgia, serif; font-size: 11.5px; font-weight: 600; letter-spacing: .28em; color: #a8874a; margin-bottom: 10px; }
.sk-card h2, .sk-card h3 { font-family: "Noto Serif TC", "Songti TC", serif; font-weight: 900; font-size: 24px; line-height: 1.35; color: #1e3a2f; margin: 0 0 8px; text-align: center; }
.sk-card p { font-size: 14px; line-height: 1.7; color: #3a5a4c; margin: 0 0 22px; }
.sk-card .sk-btn { display: block; width: 100%; box-sizing: border-box; padding: 15px; border-radius: 100px; border: 0; font-size: 16px; font-weight: 800; text-decoration: none; text-align: center; cursor: pointer; font-family: inherit; }
.sk-card .sk-btn--line { background: #06c755; color: #fff; }
.sk-card .sk-btn--google { background: #fff; color: #1e3a2f; border: 1.5px solid #1e3a2f; }
.sk-card .sk-btn--soft { background: #f5f0e8; color: #3a5a4c; font-size: 14px; font-weight: 700; padding: 13px; margin-top: 10px; }
.sk-card .or { font-size: 12px; color: #a8a294; margin: 10px 0; }
.sk-card .perks { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #e4ddce; font-size: 12.5px; line-height: 1.9; color: #3a5a4c; }
#_fg { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); display: flex; padding: 20px; }

/* ---------- 檢測步驟一到三 ---------- */
#page-quiz { background: #fdfcf9; }
#page-quiz .container { max-width: 560px; }
#page-quiz .back-to-home { color: #3a5a4c; font-weight: 600; }
#page-quiz .progress-bar::before { background: #e4ddce; height: 2px; top: 19px; }
#page-quiz .step-number { background: #f5f0e8; color: #a8a294; border: 1px solid #e4ddce; font-family: "Fraunces", Georgia, serif; font-weight: 900; font-size: 15px; width: 38px; height: 38px; box-sizing: border-box; }
#page-quiz .progress-step.active .step-number,
#page-quiz .progress-step.completed .step-number { background: #1e3a2f; border-color: #1e3a2f; color: #c8a96e; box-shadow: 0 8px 18px -8px rgba(30, 58, 47, .6); }
#page-quiz .step-label { color: #a8a294; font-size: 11.5px; }
#page-quiz .progress-step.active .step-label { color: #1e3a2f; font-weight: 700; }
#page-quiz .progress-step.completed .step-label { color: #3a5a4c; }

#step1, #step2, #step3 { border: 1px solid #e4ddce; border-radius: 22px; box-shadow: 0 20px 50px -34px rgba(30, 58, 47, .45); padding: 30px 24px; }
#step1 > h2, #step2 > h2, #step3 > h2 { font-family: "Noto Serif TC", "Songti TC", serif; font-weight: 900; font-size: 23px; color: #1e3a2f; margin-bottom: 8px; }
#step1 > h2::after, #step2 > h2::after, #step3 > h2::after { content: ""; display: block; width: 40px; height: 3px; border-radius: 3px; background: #c8a96e; margin: 12px auto 22px; }
#step1 .question-group label, #step2 .question-group label { color: #1e3a2f; font-weight: 700; }
#step1 .hint, #step2 .hint, #step3 .hint { color: #3a5a4c; }
#step1 input[type="number"], #step1 input[type="text"] { border-color: #e4ddce; border-radius: 14px; }
#step1 input[type="number"]:focus, #step1 input[type="text"]:focus { border-color: #1e3a2f; outline: none; box-shadow: 0 0 0 3px rgba(200, 169, 110, .3); }
#step1 .option-btn, #step2 .option-btn { background: #fff; border: 1.5px solid #e4ddce; border-radius: 14px; color: #1e3a2f; font-weight: 600; padding: 15px 16px; }
#step1 .option-btn:hover, #step2 .option-btn:hover { border-color: #c8a96e; background: #fdfaf3; }
#step1 .option-btn.selected, #step2 .option-btn.selected { background: #1e3a2f; border-color: #1e3a2f; color: #f3ecdf; font-weight: 700; }
#step1 .next-btn, #step2 .next-btn, #step3 .next-btn,
#step3 #analyzeBtn { background: linear-gradient(135deg, #d4b87e 0%, #c8a96e 100%); color: #1e3a2f; font-weight: 900; border-radius: 100px; padding: 15px 40px; letter-spacing: .04em; }
#step1 .next-btn:hover:not(:disabled), #step2 .next-btn:hover:not(:disabled), #step3 .next-btn:hover:not(:disabled) { box-shadow: 0 14px 30px -14px rgba(200, 169, 110, .9); }
#step1 .back-btn, #step2 .back-btn, #step3 .back-btn { background: transparent; border: 1.5px solid #1e3a2f; color: #1e3a2f; border-radius: 100px; padding: 13.5px 30px; }
#step1 .back-btn:hover, #step2 .back-btn:hover, #step3 .back-btn:hover { background: #f5f0e8; }
#step3 .upload-tips { background: #f5f0e8; border: 1px solid #e4ddce; border-radius: 16px; }
#step3 .upload-tips h3 { color: #1e3a2f; font-family: "Noto Serif TC", "Songti TC", serif; font-size: 15px; }
#step3 .upload-tips ul { color: #3a5a4c; font-size: 13px; }
#step3 .upload-tips li::before { color: #a8874a; }
#step3 .upload-option-btn { border: 1.5px solid #e4ddce; border-radius: 18px; }
#step3 .upload-option-btn:hover { border-color: #c8a96e; background: #fdfaf3; box-shadow: 0 12px 30px -18px rgba(30, 58, 47, .45); }
#step3 .upload-option-btn .option-text { color: #1e3a2f; }
#step3 .upload-area { border-color: #d9d0bb; background: #fdfcf9; }
#step3 .upload-area.has-image { border-color: #1e3a2f; }
#step3 .change-photo-btn { color: #a8874a; font-weight: 700; }
#step3 #trainingConsentCheckbox { accent-color: #1e3a2f; }
#page-quiz .loading-spinner { border-color: #e4ddce; border-top-color: #1e3a2f; }

/* ---------- 諮詢頁 ---------- */
#page-consult .consult-page { background: #fdfcf9; padding: 0 0 40px; }
#page-consult .consult-icon { display: none; }
#page-consult .consult-title,
#page-consult .consult-subtitle { margin: 0; }
#page-consult .consult-title { background: #1e3a2f; }
#page-consult .consult-subtitle { background: linear-gradient(180deg, #1e3a2f 0%, #14281e 100%); }
#page-consult .consult-title { font-family: "Noto Serif TC", "Songti TC", serif; font-weight: 900; font-size: 30px; letter-spacing: .04em; color: #c8a96e; padding: 44px 20px 10px; }
#page-consult .consult-subtitle { color: rgba(243, 236, 223, .86); font-size: 14.5px; line-height: 1.8; padding: 0 20px 40px; margin-bottom: 30px; }
#page-consult .line-btn { border-radius: 100px; box-shadow: 0 14px 30px -14px rgba(6, 199, 85, .7); background: #06c755; font-weight: 800; }
#page-consult .faq-section { max-width: 820px; margin: 44px auto 0; padding: 0 20px; }
#page-consult .faq-section h2 { font-family: "Noto Serif TC", "Songti TC", serif; font-weight: 900; font-size: 23px; color: #1e3a2f; text-align: left; margin-bottom: 0; }
#page-consult .faq-section h2::after { content: ""; display: block; width: 40px; height: 3px; border-radius: 3px; background: #c8a96e; margin: 12px 0 22px; }
#page-consult .faq-item { border: 1px solid #e4ddce; border-radius: 14px; box-shadow: none; padding: 18px 20px; }
#page-consult .faq-question { font-size: 15.5px; font-weight: 700; color: #1e3a2f; }
#page-consult .faq-question::before { background: #1e3a2f; color: #c8a96e; border-radius: 50%; width: 22px; height: 22px; font-family: "Fraunces", Georgia, serif; }
#page-consult .faq-answer { font-size: 14px; line-height: 1.8; color: #3a5a4c; padding-left: 30px; }

/* ---------- 我的頁面 ---------- */
#page-profile .profile-page { background: #fdfcf9; }
#page-profile .profile-header { background: radial-gradient(900px 420px at 85% -10%, rgba(200, 169, 110, .22), transparent 60%), linear-gradient(160deg, #1e3a2f 0%, #12241c 100%); padding: 44px 20px 36px; }
#page-profile .profile-avatar { background: rgba(200, 169, 110, .16); border: 1px solid rgba(200, 169, 110, .5); }
#page-profile .profile-avatar svg { fill: #c8a96e; }
#page-profile .profile-name { font-family: "Noto Serif TC", "Songti TC", serif; font-weight: 900; font-size: 22px; color: #c8a96e; letter-spacing: .04em; }
#page-profile .profile-status { color: rgba(243, 236, 223, .86); }
#page-profile .login-prompt-btn { background: linear-gradient(135deg, #d4b87e 0%, #c8a96e 100%); color: #1e3a2f; border-radius: 100px; font-weight: 900; }
#page-profile .profile-menu { max-width: 820px; margin: 0 auto; padding: 24px 20px 8px; }
#page-profile .menu-section { border: 1px solid #e4ddce; border-radius: 18px; box-shadow: none; }
#page-profile .menu-item { border-bottom-color: #f0ebe0; padding: 18px; }
#page-profile .menu-item:hover { background: #fdfaf3; }
#page-profile .menu-icon, #page-profile .menu-icon.pink { background: #f5f0e8; border-radius: 50%; width: 40px; height: 40px; }
#page-profile .menu-icon svg, #page-profile .menu-icon.pink svg { fill: #1e3a2f; }
#page-profile .menu-title { font-size: 15px; font-weight: 700; color: #1e3a2f; }
#page-profile .menu-subtitle { color: #3a5a4c; font-size: 12.5px; }
#page-profile .menu-arrow { color: #a8874a; }
#page-profile .history-section { max-width: 820px; margin: 0 auto; padding: 16px 20px 40px; }
#page-profile .history-section h2 { font-family: "Noto Serif TC", "Songti TC", serif; font-weight: 900; font-size: 23px; color: #1e3a2f; text-align: left; margin-bottom: 0; }
#page-profile .history-section h2::after { content: ""; display: block; width: 40px; height: 3px; border-radius: 3px; background: #c8a96e; margin: 12px 0 20px; }
#page-profile .history-empty { border: 1px solid #e4ddce; border-radius: 18px; color: #3a5a4c; }
#page-profile .history-empty svg { fill: #d9d0bb; }
#page-profile .history-card { border: 1px solid #e4ddce; border-radius: 16px; box-shadow: none; }
#page-profile .history-card:hover { border-color: #c8a96e; box-shadow: 0 12px 40px -18px rgba(30, 58, 47, .35); }
#page-profile .history-score { background: #1e3a2f; color: #c8a96e; font-family: "Fraunces", Georgia, serif; }
#page-profile .history-date { color: #1e3a2f; }
#page-profile .history-concern-tag { background: #f5f0e8; color: #3a5a4c; }

/* ---------- 底部選單、分享鈕 ---------- */
.bottom-nav { border-top: 1px solid #e4ddce; box-shadow: none; }
.bottom-nav .nav-item { color: #a8a294; }
.bottom-nav .nav-item:hover, .bottom-nav .nav-item.active { color: #1e3a2f; }
/* 分享鈕原本貼在右下角，會蓋住底部選單的「我的」：在這一頁往上移到選單上方，縮小一點 */
#shareFab.share-fab { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); right: 14px; width: 44px; height: 44px; background: #1e3a2f; }
#shareFab.share-fab svg { width: 19px; height: 19px; stroke: #c8a96e; }
#shareToast.share-toast { bottom: calc(136px + env(safe-area-inset-bottom, 0px)); right: 14px; background: #1e3a2f; }
/* 檢測進行中不放分享鈕：底部選單這時是收起來的，分享鈕會蓋到選項 */
body:has(#page-quiz.active) #shareFab.share-fab { display: none; }

/* ---------- 檢測完成：結果已傳給藥師（js/review-notice.js） ---------- */
.rv-popup { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(18, 36, 28, .6); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.rv-popup .sk-card p { margin-bottom: 16px; }
.rv-list { list-style: none; margin: 0 0 22px; padding: 14px 16px; background: #f5f0e8; border-radius: 14px; text-align: left; font-size: 13.5px; line-height: 1.7; color: #3a5a4c; }
.rv-list li { position: relative; padding-left: 18px; }
.rv-list li + li { margin-top: 6px; }
.rv-list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: #c8a96e; }
.rv-popup .rv-ok { background: linear-gradient(135deg, #d4b87e 0%, #c8a96e 100%); color: #1e3a2f; font-weight: 900; }
.rv-banner { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 28px; position: relative; z-index: 2; padding: 16px 18px; background: #1e3a2f; color: #f3ecdf; border-radius: 16px; text-align: left; }
.rv-banner b { display: block; font-family: "Noto Serif TC", "Songti TC", serif; font-weight: 900; font-size: 16px; color: #c8a96e; margin-bottom: 4px; }
.rv-banner p { margin: 0; font-size: 13px; line-height: 1.7; color: rgba(243, 236, 223, .88); }
.rv-dot { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: #c8a96e; box-shadow: 0 0 0 4px rgba(200, 169, 110, .25); }
