/* 載入 Google Fonts 黑體 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #5A544B;    /* 主色：Soft Brown Grey */
    --accent-color: #8e8579;     /* 輔色：淺棕灰 */
    --bg-color: #fcfbf9;         /* 背景：微暖白，增加空間感 */
    --card-bg: #ffffff;
    --text-main: #4a453f;
    --shadow: 0 12px 40px rgba(90, 84, 75, 0.06); /* 輕盈陰影 */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Noto Sans TC', sans-serif;
    margin: 0;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

.container {
    padding: 30px 20px;
    max-width: 480px;
    margin: auto;
}

.wrap {
      max-width: 520px;
      margin: auto;
      padding: 20px;
    }

/* 標題 */
.hero-header {
    text-align: center;
    margin-bottom: 40px;
}

.hero-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

/* 卡片 */
.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(90, 84, 75, 0.05);
}

.card-label {
    font-size: 0.75rem;
    color: var(--accent-color);
    letter-spacing: 0.2em;
    margin-bottom: 15px;
    display: block;
}

/* 北極星進度條 */
.star-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 22px;
}

.star-dot {
    font-size: 1.25rem;
    color: #ddd4c7;
    line-height: 1;
}

.star-dot.active {
    color: #6a6156;
    text-shadow: 0 0 8px rgba(90, 84, 75, 0.25);
}

/* 播放器按鈕微調 */
audio {
    width: 100%;
    height: 40px;
    margin-top: 15px;
}

/* 按鈕 */
.btn-action {
    display: block;
    text-align: center;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 14px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    margin-top: 20px;
    transition: 0.3s;
}

/* 見證牆滑動樣式 */
.testimonial-slider {
    overflow: hidden; /* 隱藏超出部分 */
    width: 100%;
    position: relative;
}

.slider-container {
    display: flex;
    transition: transform 0.4s ease-out; /* 滑動動畫 */
    will-change: transform;
}

.slide {
    min-width: 100%; /* 每一份心得佔滿寬度 */
    box-sizing: border-box;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ddd;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--primary-color);
}

/* Tab 按鈕樣式 */
.tab-container {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-family: 'Noto Sans TC', sans-serif;
    cursor: pointer;
    padding: 5px 5px;
    font-size: 0.9rem;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: bold;
}

.member-info {
    font-size: 1rem;
    margin: 8px 0;
}

.member-value {
    font-weight: 700;
    color: var(--primary-color);
}

.btn-secondary {
    display: block;
    text-align: center;
    background-color: #d8cbb8;
    color: var(--primary-color);
    padding: 14px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    margin-top: 12px;
    border: none;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Noto Sans TC', sans-serif;
}

button.btn-action,
button.btn-secondary {
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: 'Noto Sans TC', sans-serif;
}

.copy-msg {
    margin-top: 12px;
    color: var(--accent-color);
    font-size: 0.9rem;
    text-align: center;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    margin: 8px 0 18px;
    border: 1px solid rgba(90, 84, 75, 0.18);
    border-radius: 14px;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: 'Noto Sans TC', sans-serif;
    background: #fff;
    color: var(--text-main);
}

.form-label {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 10px;
}

.message {
    margin-top: 16px;
    text-align: center;
    color: var(--accent-color);
}

.timer-number {
    font-size: 4rem;
    text-align: center;
    color: var(--primary-color);
    margin: 20px 0 8px;
    line-height: 1;
}

.breath-count {
    font-size: 2rem;
    text-align: center;
    margin: 20px 0;
}

.center-text {
    text-align: center;
}

.result-box {
    text-align: center;
    margin-top: 20px;
}

.link-card {
    display: block;
    text-align: center;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 14px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    margin-top: 12px;
}

.link-card.light {
    background-color: #d8cbb8;
    color: var(--primary-color);
}

.testimonial-item {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(90, 84, 75, 0.08);
}

.testimonial-item:last-child {
    border-bottom: none;
}

.audio-desc {
    color: var(--accent-color);
    margin-top: 22px;
    margin-bottom: 20px;
}

.audio-note {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(90, 84, 75, 0.08);
    color: var(--accent-color);
    font-size: 0.85rem;
    text-align: center;
}

.slide h3 {
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.slider-container {
    display: flex;
    transition: transform 0.4s ease-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.last-record {
    background: #f8f5ef;
    border-radius: 16px;
    padding: 14px;
    margin: 18px 0;
    color: var(--accent-color);
    text-align: center;
    font-size: 0.95rem;
}

.testimonial-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.slider-container {
    display: flex;
    transition: transform 0.4s ease-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ddd;
}

.dot.active {
    background-color: #6a6156;
}

.card p {
    color: var(--accent-color);
}

.breath-count {
    color: var(--primary-color);
}

.result-box h2 {
    color: var(--primary-color);
    margin-top: 28px;
}

.result-box p {
    color: var(--accent-color);
}

.last-record {
    background: #f8f5ef;
    border-radius: 16px;
    padding: 14px;
    margin: 18px 0 24px;
    color: var(--accent-color);
    text-align: center;
    font-size: 0.9rem;
}

.question-block {
    margin-bottom: 26px;
}

.choice-group {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.choice-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f5ef;
    border: 1px solid rgba(90, 84, 75, 0.08);
    border-radius: 16px;
    padding: 13px 14px;
    cursor: pointer;
    color: var(--primary-color);
    transition: 0.2s ease;
}

.choice-option input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary-color);
}

.choice-option:has(input:checked) {
    background: #efe7dc;
    border-color: rgba(90, 84, 75, 0.25);
    box-shadow: 0 6px 18px rgba(90, 84, 75, 0.06);
}

.choice-option span {
    line-height: 1.6;
}

#formDesc,
#typeSelect p,
#resultArea p {
    color: var(--accent-color);
}

.testimonial-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
    touch-action: pan-y;
}

.slider-container {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    user-select: none;
}

.course-location {
    margin-top: 16px;
    padding: 12px 14px;
    background: #f8f5ef;
    border-radius: 14px;
    color: var(--accent-color);
    font-size: 0.9rem;
    line-height: 1.7;
}

.course-link,
.text-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(90, 84, 75, 0.35);
    padding-bottom: 1px;
    transition: 0.2s ease;
}

.course-link:hover,
.text-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.course-link:visited,
.text-link:visited {
    color: var(--primary-color);
}

.course-location .course-link {
    display: inline;
}

/* =========================
   AIZen New Visual Theme
   Frame 3 / Frame 4
========================= */

:root {
    --aizen-blue: #0877E8;
    --aizen-navy: #073B69;
    --aizen-sky: #D8F2FF;
    --aizen-sky-soft: #EFF9FF;
    --aizen-card: #FFFFFF;
    --aizen-text: #111111;
    --aizen-subtext: #555555;
    --aizen-muted: #F3F3F3;
    --aizen-radius-card: 28px;
    --aizen-radius-button: 999px;
}

/* 全站字體：思源黑體 */
body,
button,
input,
select,
textarea,
a,
p,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Noto Sans TC', sans-serif !important;
}


/*body.theme-frame3 {*/
/*    margin: 0;*/
/*    min-height: 100vh;*/
/*    color: var(--aizen-text);*/
/*    background:*/
/*        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.75), transparent 28%),*/
/*        radial-gradient(circle at 85% 10%, rgba(255,255,255,0.55), transparent 22%),*/
/*        linear-gradient(180deg, #CDEEFF 0%, #EAF8FF 45%, #CBEFFF 100%);*/
/*}*/


/*body.theme-frame4 {*/
/*    margin: 0;*/
/*    min-height: 100vh;*/
/*    color: var(--aizen-text);*/
/*    background:*/
/*        linear-gradient(180deg, rgba(210,240,255,0.9) 0%, rgba(235,249,255,0.85) 52%, rgba(184,220,158,0.85) 100%),*/
/*        radial-gradient(circle at 20% 15%, rgba(255,255,255,0.8), transparent 28%);*/
/*}*/

/* Frame 3：呼吸 / 問卷 / 腦疲勞 */
body.theme-frame3 {
    margin: 0;
    min-height: 100vh;
    color: var(--aizen-text);
    background: url("images/frame3_bg.png") center top / cover no-repeat fixed;
}

/* Frame 4：首頁 / 探索頁 */
body.theme-frame4 {
    margin: 0;
    min-height: 100vh;
    color: var(--aizen-text);
    background: url("images/frame4_bg.png") center top / cover no-repeat fixed;
}

/* 共用容器 */
.container {
    max-width: 520px;
    margin: 0 auto;
    padding: 20px 20px 60px;
    box-sizing: border-box;
}

/* Frame 3 頁首 */
.theme-frame3 .hero-header {
    text-align: center;
    margin: 0 0 30px;
}

.theme-frame3 .hero-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0 0 5px;
    color: var(--aizen-text);
}

.theme-frame3 .hero-header div {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--aizen-text);
}

/* Frame 4 頁首 */
.theme-frame4 .hero-header {
    text-align: center;
    margin: 10px 0 34px;
}

.theme-frame4 .hero-header h1 {
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--aizen-text);
}

.theme-frame4 .hero-header div {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--aizen-text);
}

/* 卡片 */
.card,
.test-card {
    background: var(--aizen-card);
    border-radius: var(--aizen-radius-card);
    padding: 32px 28px;
    margin-bottom: 28px;
    box-shadow: none;
    border: none;
    box-sizing: border-box;
}

.card-label {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.22em;
    color: var(--aizen-subtext);
    margin-bottom: 24px;
    font-weight: 500;
}

.card h2,
.test-card h2 {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.45;
    margin: 0 0 24px;
    color: var(--aizen-text);
}

.card p,
.test-card p {
    color: var(--aizen-text);
    font-size: 1.05rem;
    line-height: 1.9;
}

/* 按鈕 */
.btn-action,
button.btn-action {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    background: var(--aizen-blue);
    color: #FFFFFF;
    padding: 15px 20px;
    border-radius: var(--aizen-radius-button);
    text-decoration: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 18px;
    cursor: pointer;
}

.btn-secondary,
button.btn-secondary {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    background: var(--aizen-navy);
    color: #FFFFFF;
    padding: 15px 20px;
    border-radius: var(--aizen-radius-button);
    text-decoration: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 18px;
    cursor: pointer;
}

/* 淺藍資訊提示 */
.last-record,
.info-pill {
    background: var(--aizen-sky);
    color: var(--aizen-text);
    border-radius: 999px;
    padding: 14px 18px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    margin: 22px 0 32px;
}

/* 呼吸頁數字 */
.timer-number {
    font-size: 4.6rem;
    line-height: 1;
    text-align: center;
    color: #000;
    margin: 30px 0 18px;
    font-weight: 400;
}

.breath-count {
    font-size: 1.35rem;
    text-align: center;
    color: #000;
    margin-bottom: 30px;
    font-weight: 500;
}

/* 問卷選項 */
.choice-group {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.choice-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F3F3F3;
    border: 2px solid transparent;
    border-radius: 18px;
    padding: 14px 16px;
    color: var(--aizen-text);
    cursor: pointer;
}

.choice-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--aizen-blue);
}

.choice-option:has(input:checked) {
    background: var(--aizen-sky);
    border-color: var(--aizen-blue);
}

/* 探索頁 */
.theme-frame4 .card {
    border-radius: 16px;
    padding: 24px 22px;
}

.theme-frame4 .card h2 {
    font-size: 1.35rem;
    margin-bottom: 22px;
}

.tab-container {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    border-bottom: 1px solid #E6E6E6;
    padding-bottom: 10px;
    margin-bottom: 18px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #777;
    font-size: 0.95rem;
    white-space: nowrap;
    padding: 4px 0 8px;
    cursor: pointer;
}

.tab-btn.active {
    color: #000;
    font-weight: 700;
    border-bottom: 3px solid var(--aizen-blue);
}

.audio-desc {
    color: var(--aizen-subtext);
    font-size: 0.95rem;
    line-height: 1.8;
}

.course-location {
    margin-top: 18px;
    padding: 14px 16px;
    background: #F7F2EA;
    border-radius: 14px;
    color: var(--aizen-subtext);
    font-size: 0.9rem;
    line-height: 1.8;
}

.audio-note {
    border-top: 1px solid #E8E8E8;
    margin-top: 22px;
    padding-top: 20px;
    text-align: center;
    color: var(--aizen-subtext);
    font-size: 0.9rem;
}

/* 文字連結 */
.course-link,
.text-link {
    color: var(--aizen-blue);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(8, 119, 232, 0.45);
    padding-bottom: 1px;
}

.course-link:visited,
.text-link:visited {
    color: var(--aizen-blue);
}

/* 更多連結：Frame 4 方塊按鈕 */
.more-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.more-tile {
    background: #F1F1F1;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    color: var(--aizen-blue);
    text-decoration: none;
    font-weight: 700;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* slider dot 放大 */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: #D8D8D8;
    border: none;
    padding: 0;
    cursor: pointer;
}

.dot.active {
    background-color: var(--aizen-blue);
}

.theme-frame3 .question-block {
    margin-bottom: 30px;
}

.theme-frame3 .form-label {
    color: #111;
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.theme-frame3 .choice-option {
    background: #F3F3F3;
    border-radius: 18px;
    padding: 15px 16px;
    font-size: 1rem;
    font-weight: 600;
}

.theme-frame3 .choice-option:has(input:checked) {
    background: #D8F4FF;
    border-color: #0877E8;
}

.theme-frame3 .message {
    color: #073B69;
    font-weight: 700;
    text-align: center;
    margin-top: 18px;
}

/* =========================
   Brain fatigue / Frame 3
========================= */

.theme-frame3 .progress-container {
    width: 100%;
    height: 8px;
    background-color: rgba(255,255,255,0.65);
    border-radius: 999px;
    margin: 0 0 26px;
    overflow: hidden;
}

.theme-frame3 .progress-bar {
    height: 100%;
    background-color: #0877E8;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.theme-frame3 .test-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 36px 30px 34px;
    margin-bottom: 28px;
    box-shadow: none;
    border: none;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.theme-frame3 .question-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.55;
    color: #111;
    margin: 0 0 22px;
}

.theme-frame3 .hint-text {
    color: #111;
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 34px;
}

.theme-frame3 .options {
    display: grid;
    gap: 16px;
}

.theme-frame3 .opt-btn {
    background: #0877E8;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 16px 20px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
}

.theme-frame3 .opt-btn:nth-child(2) {
    background: #073B69;
}

.theme-frame3 .footer-count {
    margin-top: 28px;
    text-align: center;
    color: #111;
    font-size: 1rem;
    font-weight: 700;
}

.theme-frame3 .result-score {
    font-size: 4rem;
    color: #0877E8;
    text-align: center;
    margin: 20px 0 12px;
    line-height: 1;
    font-weight: 800;
}

.theme-frame3 .result-title {
    text-align: center;
    color: #111;
    font-weight: 800;
    margin-bottom: 18px;
}

.theme-frame3 .result-desc {
    color: #111;
    line-height: 1.9;
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.theme-frame3 .source-note {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.7;
    margin-top: 22px;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 16px;
}

/* =========================
   Index / Frame 4
========================= */

.theme-frame4 .container {
    max-width: 520px;
    padding: 20px 20px 60px;
}

.theme-frame4 .frame4-header {
    text-align: center;
    margin: 0 0 30px;
}

.theme-frame4 .frame4-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #111;
}

.theme-frame4 .frame4-header div {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
}

.theme-frame4 .frame4-card {
    border-radius: 18px;
    padding: 26px 24px;
    background: #ffffff;
}

.theme-frame4 .member-info {
    font-size: 1rem;
    margin:0 0 4px;
    color: #111;
}

.theme-frame4 .member-value {
    font-weight: 800;
    color: #0877E8;
}

.home-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: #111;
    margin: 28px 0 14px;
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

.home-tile {
    background: #F3F3F3;
    border-radius: 16px;
    min-height: 108px;
    padding: 18px 14px;
    box-sizing: border-box;
    text-decoration: none;
    color: #0877E8;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;   /* 新增：水平置中 */
    text-align: center;    /* 新增：文字置中 */
    line-height: 1.5;
    gap: 2px;
}

.home-tile span {
    display: block;
    color: #555;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
}

.theme-frame4 .copy-msg {
    color: #073B69;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    margin-top: 14px;
}

.member-note {
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(216, 244, 255, 0.65);
    border-radius: 14px;
    color: #555;
    font-size: 0.86rem;
    line-height: 1.7;
}

.member-note a {
    color: #0877E8;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(8, 119, 232, 0.35);
}

/* =========================
   Explore / Frame 4
========================= */

.theme-frame4 .explore-header {
    margin-top: 12px;
    margin-bottom: 32px;
}

.aizen-logo-text {
    color: #0877E8;
    font-weight: 900;
    letter-spacing: 0.04em;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.theme-frame4 .explore-header h1 {
    font-size: 1.55rem;
    font-weight: 900;
    margin: 0 0 8px;
}

.theme-frame4 .explore-header div:last-child {
    font-size: 0.95rem;
    font-weight: 600;
}

.theme-frame4 .card-label {
    color: #555;
    font-size: 0.88rem;
    letter-spacing: 0.18em;
    margin-bottom: 18px;
}

.theme-frame4 .audio-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-top: 18px;
}

.theme-frame4 audio {
    width: 100%;
    margin-top: 18px;
}

.theme-frame4 .course-location {
    margin-top: 18px;
    padding: 14px 16px;
    background: #F7F2EA;
    border-radius: 14px;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.8;
}

.theme-frame4 .audio-note {
    border-top: 1px solid #E8E8E8;
    margin-top: 22px;
    padding-top: 20px;
    text-align: center;
    color: #555;
    font-size: 0.9rem;
}

.theme-frame4 .slide p {
    color: #111;
    font-size: 1rem;
    line-height: 1.9;
}

.theme-frame4 .slide h3 {
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.6;
    color: #111;
}

.theme-frame4 .message {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.8;
}

.more-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.more-tile {
    background: #F3F3F3;
    border-radius: 14px;
    min-height: 98px;
    padding: 18px 12px;
    box-sizing: border-box;
    text-align: center;
    color: #0877E8;
    text-decoration: none;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
}

.more-tile:active {
    transform: scale(0.98);
}

.more-tile {
    background: #F3F3F3;
    border-radius: 14px;
    min-height: 138px;
    padding: 18px 10px 16px;
    box-sizing: border-box;
    text-align: center;
    color: #0877E8;
    text-decoration: none;
    font-weight: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
}

.more-icon-circle {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(8, 119, 232, 0.06);
}

.more-icon-circle img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
}

.more-tile-text {
    color: #0877E8;
    font-size: 0.98rem;
    font-weight: 900;
}

.more-tile:active {
    transform: scale(0.98);
}

/* =========================
   Energy audition card
========================= */

.energy-card {
    position: relative;
}

.energy-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.energy-heading .card-label {
    margin-bottom: 18px;
}

.energy-heading h2 {
    margin-bottom: 0;
}

.energy-icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #F3F3F3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 72px;
}

.energy-icon img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    display: block;
}

.course-location {
    margin-top: 20px;
    padding: 16px 18px;
    background: rgba(216, 244, 255, 0.72);
    border: 1px solid rgba(8, 119, 232, 0.08);
    border-radius: 14px;
    color: #24506f;
    font-size: 0.95rem;
    line-height: 1.85;
}

.course-location-label {
    color: #24506f;
    font-weight: 800;
}

.course-link {
    color: #0877E8;
    font-weight: 900;
    text-decoration: none;
    border-bottom: 1px solid rgba(8, 119, 232, 0.45);
    padding-bottom: 1px;
}

.course-link:visited {
    color: #0877E8;
}

/* 強制覆蓋能量試聽室：課程位置底色 */
.theme-frame4 .course-location {
    margin-top: 20px;
    padding: 16px 18px;
    background: rgba(216, 244, 255, 0.72) !important;
    border: 1px solid rgba(8, 119, 232, 0.12) !important;
    border-radius: 14px;
    color: #24506f;
    font-size: 0.95rem;
    line-height: 1.85;
}

.theme-frame4 .course-location-label {
    color: #24506f;
    font-weight: 800;
}

.theme-frame4 .course-link {
    color: #0877E8;
    font-weight: 900;
    text-decoration: none;
    border-bottom: 1px solid rgba(8, 119, 232, 0.45);
    padding-bottom: 1px;
}

.theme-frame4 .course-link:visited {
    color: #0877E8;
}

/* 社群小 icon */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #F3F3F3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-icon i {
    font-size: 1.25rem;
    color: #0877E8;
    line-height: 1;
}

.social-icon:active {
    transform: scale(0.94);
    background: #D8F4FF;
}

.page-logo {
    display: block;
    width: 82px;
    height: auto;
    margin: 0 auto 8px;
}

.theme-frame4 .frame4-header .page-logo {
    margin-bottom: 8px;
}

/* questionnaire.php 說明文字顏色修正 */
.theme-frame3 #typeSelect p,
.theme-frame3 #formArea p,
.theme-frame3 #resultArea p {
    color: #111111 !important;
    font-weight: 500;
    line-height: 1.9;
}

/* Frame 3 卡片說明文字統一 */
.theme-frame3 .frame3-card p,
.theme-frame3 .card p,
.theme-frame3 .test-card p {
    color: #111111 !important;
    font-weight: 500;
    line-height: 1.9;
}

.visitor-actions {
    margin-top: 22px;
    margin-bottom: 28px;
}

.theme-frame4 #visitorCard p {
    color: #333333;
    font-size: 0.98rem;
    line-height: 1.85;
}

.expire-alert {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.expire-alert strong {
    font-weight: 900;
}

.expire-alert a {
    color: #0877E8;
    font-weight: 900;
    text-decoration: none;
    border-bottom: 1px solid rgba(8, 119, 232, 0.35);
}

.expire-alert.soon {
    background: rgba(216, 244, 255, 0.78);
    color: #24506f;
    border: 1px solid rgba(8, 119, 232, 0.12);
}

.expire-alert.expired {
    background: rgba(255, 235, 235, 0.9);
    color: #8a2f2f;
    border: 1px solid rgba(180, 60, 60, 0.12);
}

.expire-alert.expired a {
    color: #0877E8;
}

/* =========================
   Gift Status Page
========================= */

.gift-summary {
    background: rgba(216, 244, 255, 0.78);
    border: 1px solid rgba(8, 119, 232, 0.12);
    color: #24506f;
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    margin: 10px 0 22px;
}

.gift-summary span {
    color: #0877E8;
    font-size: 1.2rem;
    font-weight: 900;
}

.gift-person-card,
.social-giving-card {
    background: #F3F3F3;
    border-radius: 16px;
    padding: 18px 16px;
    margin-bottom: 14px;
    color: #111;
    position: relative;
}

.gift-person-card.active {
    background: rgba(216, 244, 255, 0.55);
}

.gift-person-card.pending {
    background: rgba(255, 245, 225, 0.9);
}

.gift-status-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.82rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.gift-status-badge.active {
    background: #0877E8;
    color: #fff;
}

.gift-status-badge.pending {
    background: #FFB84D;
    color: #3c2a00;
}

.gift-row {
    font-size: 0.96rem;
    line-height: 1.8;
    color: #333;
}

.gift-row strong {
    color: #111;
    font-weight: 900;
}

.gift-note {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.08);
    color: #666;
    font-size: 0.9rem;
    line-height: 1.7;
}

.gift-empty {
    background: #F3F3F3;
    border-radius: 14px;
    padding: 18px;
    color: #666;
    text-align: center;
}

.gift-desc {
    color: #333 !important;
    font-size: 0.96rem;
    line-height: 1.8;
    margin-bottom: 18px;
}

.gift-person-card.polaris {
    background: rgba(216, 244, 255, 0.55);
}

.gift-status-badge.polaris {
    background: #0877E8;
    color: #fff;
}

.member-link {
    text-decoration: none;
    border-bottom: 1px solid rgba(8, 119, 232, 0.35);
}

.member-link:visited {
    color: #0877E8;
}

.gift-count-line {
    margin-top: 8px;
}

/* bind.php */
.bind-desc {
    color: #333333 !important;
    font-size: 0.98rem;
    line-height: 1.85;
    margin-bottom: 24px;
}

.theme-frame4 .form-label {
    display: block;
    color: #111;
    font-weight: 800;
    margin: 16px 0 8px;
}

.theme-frame4 .form-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dddddd;
    border-radius: 14px;
    padding: 14px 15px;
    font-size: 1rem;
    background: #ffffff;
}

.theme-frame4 .form-input:focus {
    outline: none;
    border-color: #0877E8;
    box-shadow: 0 0 0 3px rgba(8, 119, 232, 0.12);
}

.theme-frame4 .message {
    margin-top: 16px;
    color: #073B69;
    font-weight: 800;
    text-align: center;
}

/* gift_status.php：多人名單卡片內捲動 */
.gift-scroll-list {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
    margin-top: 14px;
    scroll-behavior: smooth;
}

/* 手機上大約看到 3 則 */
@media (max-width: 640px) {
    .gift-scroll-list {
        max-height: 390px;
    }
}

/* 捲軸樣式：桌機比較好看，手機通常不明顯 */
.gift-scroll-list::-webkit-scrollbar {
    width: 6px;
}

.gift-scroll-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 999px;
}

.gift-scroll-list::-webkit-scrollbar-thumb {
    background: rgba(8, 119, 232, 0.35);
    border-radius: 999px;
}

.gift-scroll-list::-webkit-scrollbar-thumb:hover {
    background: rgba(8, 119, 232, 0.55);
}

.gift-scroll-list:has(.gift-empty) {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
}

/* =========================
   Privacy Page
========================= */

.privacy-card h3 {
    color: #111;
    font-size: 1.05rem;
    font-weight: 900;
    margin: 28px 0 10px;
}

.privacy-card p {
    color: #333333 !important;
    font-size: 0.96rem;
    line-height: 1.9;
    margin: 0 0 14px;
}

.privacy-note {
    margin-top: 28px;
    color: #666;
    font-size: 0.82rem;
    line-height: 1.7;
    text-align: center;
}

.privacy-note a {
    color: #0877E8;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(8, 119, 232, 0.35);
}

.referral-hint {
    margin-top: 10px;
    color: #666;
    font-size: 0.88rem;
    line-height: 1.6;
    text-align: center;
}

.theme-frame4 .referral-hint {
    color: #24506f;
}

.referral-hint strong {
    color: #0877E8;
    font-weight: 900;
}

