/*!
 * 珍妮樂齡 (Jennie 樂齡) — 樂齡 AI 陪伴夥伴
 * Copyright © 2026 宥爵智能科技有限公司 (YouJue Intelligent Technology Co., Ltd.)
 * 獨立專案 — 架構承襲珍妮樂齡，視覺為樂齡專屬（溫暖親和・大字・高對比・語音優先）
 */

/* ============================================
   設計理念（樂齡 UX 規範・見 ACTIVE-AGING-SPEC §7）
   - 溫暖淺色背景，暖色珊瑚主色，保留珍妮品牌血脈（紫）
   - 大字級（base 18px，可一鍵放大）、高對比
   - 大按鈕、大圓角、大留白、語音優先
   ============================================ */

/* === CSS 變數 === */
:root {
    --coral:        #F2784B;
    --coral-dark:   #E0633A;
    --coral-soft:   #FFE6DA;
    --teal:         #3FA796;
    --rose:         #E8857B;
    --amber:        #E8A23D;
    --green:        #5BA37A;
    --purple:       #8B7DD8;   /* 承襲珍妮品牌 */
    --line-green:   #06C755;

    --bg:           #FFF9F3;
    --bg-warm:      #FFF1E8;
    --bg-white:     #FFFFFF;
    --bg-dark:      #3D2F2A;   /* 家屬/footer 深色暖棕 */

    --text:         #3A352F;
    --text-muted:   #6E665C;
    --text-light:   #FFFFFF;

    --border:       #F0E2D6;
    --shadow:       0 10px 30px rgba(180, 120, 80, 0.12);
    --shadow-lg:    0 18px 50px rgba(180, 120, 80, 0.18);
    --radius:       18px;
    --radius-lg:    26px;
    --transition:   all 0.25s ease;
    --font-main:    'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* === Reset === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }   /* 樂齡 base，JS 可放大到 22px */

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    font-size: 1rem;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
strong { color: var(--coral-dark); }

/* ============================================
   導航列
   ============================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 14px 0;
    background: rgba(255, 249, 243, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow); }
.nav-container {
    max-width: 1180px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.45rem; color: var(--coral-dark); }
.logo-mark {
    width: 42px; height: 42px; border-radius: 14px;
    display: grid; place-items: center; font-size: 1.9rem; line-height: 1;
}
.nav-links { display: flex; gap: 28px; }
.nav-link { font-weight: 500; font-size: 1.05rem; color: var(--text); transition: var(--transition); }
.nav-link:hover { color: var(--coral); }
.nav-right { display: flex; align-items: center; gap: 16px; }

.font-size-control { display: flex; gap: 6px; }
.font-size-control button {
    width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--border);
    background: #fff; color: var(--text); cursor: pointer; font-weight: 700;
    transition: var(--transition);
}
.font-size-control button:hover { border-color: var(--coral); color: var(--coral); }

.btn-nav-cta {
    background: var(--coral); color: #fff; font-weight: 700; font-size: 1.05rem;
    padding: 12px 24px; border-radius: 14px; transition: var(--transition);
    box-shadow: 0 6px 16px rgba(242, 120, 75, 0.35);
}
.btn-nav-cta:hover { background: var(--coral-dark); transform: translateY(-2px); }
.btn-nav-login { font-weight: 700; font-size: 1.05rem; color: var(--coral-dark); padding: 12px 14px; transition: var(--transition); }
.btn-nav-login:hover { color: var(--coral); }
.nav-mobile-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--text); cursor: pointer; }

/* ============================================
   Hero
   ============================================ */
.hero {
    padding: 140px 24px 80px;
    background: radial-gradient(1200px 500px at 80% -10%, var(--coral-soft), transparent),
                linear-gradient(180deg, var(--bg), var(--bg));
}
.hero-container {
    max-width: 1180px; margin: 0 auto;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: var(--coral-dark); font-weight: 700; font-size: 1rem;
    padding: 10px 18px; border-radius: 999px; border: 2px solid var(--coral-soft);
    box-shadow: var(--shadow); margin-bottom: 22px;
}
.hero-title {
    font-size: 3.2rem; font-weight: 900; line-height: 1.3; margin-bottom: 22px; letter-spacing: 0.5px;
}
.hero-title .highlight {
    background: linear-gradient(120deg, var(--coral), var(--rose));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-description { font-size: 1.35rem; color: var(--text-muted); margin-bottom: 30px; }

/* 語音優先 */
.voice-cta { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.mic-button {
    width: 84px; height: 84px; border-radius: 50%; border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--coral), var(--coral-dark));
    color: #fff; font-size: 2rem; flex-shrink: 0;
    box-shadow: 0 10px 28px rgba(242, 120, 75, 0.5);
    animation: micPulse 2.4s ease-in-out infinite;
    transition: var(--transition);
}
.mic-button:hover { transform: scale(1.06); }
.mic-button.listening { animation: none; background: linear-gradient(135deg, var(--teal), #2E8576); }
@keyframes micPulse {
    0%, 100% { box-shadow: 0 10px 28px rgba(242, 120, 75, 0.5); }
    50% { box-shadow: 0 10px 28px rgba(242, 120, 75, 0.5), 0 0 0 16px rgba(242, 120, 75, 0.08); }
}
.voice-hint { font-size: 1.2rem; font-weight: 500; color: var(--text); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.btn-primary-lg, .btn-line-lg, .btn-outline-lg {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 1.2rem; font-weight: 700; padding: 18px 30px; border-radius: 16px;
    transition: var(--transition); cursor: pointer;
}
.btn-primary-lg { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(242, 120, 75, 0.4); }
.btn-primary-lg:hover { background: var(--coral-dark); transform: translateY(-3px); }
.btn-line-lg { background: var(--line-green); color: #fff; box-shadow: 0 8px 20px rgba(6, 199, 85, 0.35); }
.btn-line-lg:hover { filter: brightness(0.95); transform: translateY(-3px); }
.btn-outline-lg { background: #fff; color: var(--text); border: 2px solid var(--border); }

.hero-trust { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.hero-trust li { font-size: 1.05rem; color: var(--text-muted); font-weight: 500; }
.hero-trust i { color: var(--green); margin-right: 6px; }

/* Hero 視覺 */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.avatar-ring {
    width: 360px; max-width: 100%; aspect-ratio: 1; border-radius: 50%;
    background: linear-gradient(135deg, var(--coral-soft), #fff);
    border: 10px solid #fff; box-shadow: var(--shadow-lg);
    display: grid; place-items: center; position: relative;
}
.avatar-photo { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.avatar-emoji { font-size: 9rem; line-height: 1; }
.avatar-bubble {
    position: absolute; top: 16%; right: -6%;
    background: #fff; color: var(--text); font-size: 1.05rem; font-weight: 500;
    padding: 12px 18px; border-radius: 18px 18px 18px 4px; box-shadow: var(--shadow);
    max-width: 220px;
}
.avatar-bubble i { color: var(--rose); }
.visual-caption {
    text-align: center; font-size: 1.1rem; color: var(--text-muted); line-height: 1.9;
    background: #fff; padding: 16px 22px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 380px;
}

/* ============================================
   通用 Section
   ============================================ */
.section { max-width: 1180px; margin: 0 auto; padding: 88px 24px; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-title { font-size: 2.5rem; font-weight: 900; line-height: 1.35; }
.section-title.light { color: var(--text-light); }
.section-subtitle { font-size: 1.3rem; color: var(--text-muted); margin-top: 14px; }

/* 功能卡 */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 36px 30px; box-shadow: var(--shadow); transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-icon {
    width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center;
    font-size: 1.9rem; color: #fff; margin-bottom: 20px;
}
.icon-coral { background: linear-gradient(135deg, var(--coral), var(--coral-dark)); }
.icon-teal { background: linear-gradient(135deg, var(--teal), #2E8576); }
.icon-rose { background: linear-gradient(135deg, var(--rose), #D96A5F); }
.icon-green { background: linear-gradient(135deg, var(--green), #468560); }
.icon-amber { background: linear-gradient(135deg, var(--amber), #CE8A28); }
.icon-purple { background: linear-gradient(135deg, var(--purple), #6F61C0); }
.feature-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.feature-card p { font-size: 1.12rem; color: var(--text-muted); }

/* ============================================
   給子女的安心
   ============================================ */
.family { background: var(--bg-dark); }
.family-container {
    max-width: 1180px; margin: 0 auto; padding: 88px 24px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.badge-dark { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.2); }
.family-desc { font-size: 1.3rem; color: rgba(255,255,255,0.85); margin: 22px 0 26px; }
.family-list { margin-bottom: 32px; }
.family-list li { font-size: 1.2rem; color: #fff; padding: 12px 0; display: flex; align-items: center; gap: 14px; }
.family-list i { color: var(--coral); background: rgba(242,120,75,0.18); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }

.family-visual { display: grid; place-items: center; }
.phone-mock {
    width: 340px; max-width: 100%; background: #fff; border-radius: 28px;
    padding: 26px 24px; box-shadow: var(--shadow-lg);
}
.phone-top { font-size: 1.25rem; font-weight: 900; color: var(--text); text-align: center; margin-bottom: 20px; }
.phone-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 18px; border-radius: 14px; margin-bottom: 12px; font-size: 1.1rem; font-weight: 500;
}
.phone-row span:first-child { display: flex; align-items: center; gap: 10px; }
.phone-row.ok { background: #EAF7F0; color: #2E8576; }
.phone-row.warn { background: #FDEEDD; color: #C77E1E; }
.phone-note { margin-top: 16px; font-size: 1.05rem; color: var(--text-muted); background: var(--bg-warm); padding: 14px 18px; border-radius: 14px; line-height: 1.7; }

/* ============================================
   為什麼長輩會喜歡
   ============================================ */
.why { text-align: center; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 22px; box-shadow: var(--shadow); }
.why-item i { font-size: 2.4rem; color: var(--coral); margin-bottom: 16px; }
.why-item h4 { font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; }
.why-item p { font-size: 1.08rem; color: var(--text-muted); }

/* ============================================
   方案
   ============================================ */
.pricing { background: var(--bg-warm); border-radius: 40px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card {
    background: #fff; border: 2px solid var(--border); border-radius: var(--radius-lg);
    padding: 38px 30px; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--coral); transform: scale(1.04); box-shadow: var(--shadow-lg); }
.price-tag {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    background: var(--coral); color: #fff; font-weight: 700; font-size: 0.95rem;
    padding: 7px 20px; border-radius: 999px; white-space: nowrap;
}
.price-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 14px; }
.price-amount { font-size: 2.6rem; font-weight: 900; color: var(--coral-dark); }
.price-amount .tbd { color: var(--text-muted); }
.price-unit { font-size: 1.1rem; font-weight: 500; color: var(--text-muted); }
.price-period { font-size: 1.05rem; color: var(--text-muted); margin: 6px 0 22px; }
.price-features { margin-bottom: 28px; flex-grow: 1; }
.price-features li { font-size: 1.12rem; padding: 9px 0; display: flex; align-items: center; gap: 10px; }
.price-features i { color: var(--green); }
.btn-primary-block, .btn-outline-block {
    display: block; text-align: center; font-size: 1.15rem; font-weight: 700;
    padding: 16px; border-radius: 14px; transition: var(--transition);
}
.btn-primary-block { background: var(--coral); color: #fff; box-shadow: 0 8px 18px rgba(242,120,75,0.35); }
.btn-primary-block:hover { background: var(--coral-dark); }
.btn-outline-block { background: #fff; color: var(--text); border: 2px solid var(--border); }
.btn-outline-block:hover { border-color: var(--coral); color: var(--coral); }

/* ============================================
   FAQ
   ============================================ */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 8px 26px; box-shadow: var(--shadow);
}
.faq-item summary {
    font-size: 1.25rem; font-weight: 700; padding: 18px 0; cursor: pointer;
    list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '＋'; color: var(--coral); font-weight: 900; }
.faq-item[open] summary::after { content: '－'; }
.faq-item p { font-size: 1.12rem; color: var(--text-muted); padding: 0 0 20px; }

/* ============================================
   最終 CTA
   ============================================ */
.cta-section { padding-top: 0; }
.cta-box {
    background: linear-gradient(135deg, var(--coral), var(--rose));
    border-radius: 40px; padding: 70px 30px; text-align: center; color: #fff;
    box-shadow: var(--shadow-lg);
}
.cta-box h2 { font-size: 2.6rem; font-weight: 900; margin-bottom: 12px; }
.cta-box p { font-size: 1.35rem; opacity: 0.95; margin-bottom: 32px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.cta-box .btn-primary-lg { background: #fff; color: var(--coral-dark); }
.cta-box .btn-primary-lg:hover { background: #fff; }
.cta-login-hint { color: #fff; font-size: 1.1rem; margin-top: 18px; opacity: 0.95; }
.cta-login-hint a { color: #fff; text-decoration: underline; font-weight: 700; }

/* ============================================
   Footer
   ============================================ */
.footer { background: var(--bg-dark); color: #fff; padding: 56px 24px 28px; }
.footer-container { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-brand { max-width: 380px; }
.footer-brand .nav-logo, .footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer-brand .logo-text { font-size: 1.4rem; font-weight: 900; color: #fff; }
.footer-brand p { flex-basis: 100%; font-size: 1.05rem; color: rgba(255,255,255,0.7); margin-top: 10px; line-height: 1.8; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 1.05rem; color: rgba(255,255,255,0.8); }
.footer-links a:hover { color: var(--coral); }
.footer-bottom {
    max-width: 1180px; margin: 36px auto 0; padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-size: 0.98rem; color: rgba(255,255,255,0.6);
}
.footer-partner i { color: var(--coral); margin-right: 6px; }

/* ============================================
   響應式（手機）
   ============================================ */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-right .font-size-control { display: none; }   /* 行動版省空間，保留登入/註冊鈕 */
    .btn-nav-login { padding: 8px 8px; font-size: 0.95rem; }
    .btn-nav-cta { padding: 9px 14px; font-size: 0.95rem; }
    .nav-mobile-toggle { display: block; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
        background: #fff; padding: 18px 24px; gap: 18px; box-shadow: var(--shadow); border-top: 1px solid var(--border);
    }
    .hero-container, .family-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { order: -1; }
    .hero-title { font-size: 2.4rem; }
    .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .price-card.featured { transform: none; }
    .section-title { font-size: 2rem; }
    .footer-container { flex-direction: column; }
}
@media (max-width: 480px) {
    html { font-size: 17px; }
    .hero { padding-top: 110px; }
    .avatar-ring { width: 280px; }
    .avatar-emoji { font-size: 7rem; }
    .why-grid { grid-template-columns: 1fr; }
}
