:root {
    --bs-primary: #56CCF2;
    --bs-body-bg: #F4F5F7;
    --primary-color: #56CCF2;
    --light-bg: #F4F5F7;
    --surface-color: #FFFFFF;
    --primary-text: #1F2937;
    --secondary-text: #6B7280;
    --border-color: #E5E7EB;
    --attention-color: #F3C845;
}

body {
    background-color: var(--light-bg);
    color: var(--primary-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

header {
    background-color: #D9EEF9;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

/* For policy pages that might want a white header */
.white-header {
    background-color: var(--surface-color);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand img {
    height: 40px;
}

.navbar-brand span {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-text);
}

.nav-link {
    color: var(--secondary-text) !important;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero {
    background-color: var(--surface-color);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: calc(100dvh - var(--header-height, 0px));
}

.hero-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: url('../assets/hero_bg_desktop.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-main-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 1rem;
}

.hero .tagline {
    font-size: 1.2rem;
    color: var(--secondary-text);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-download {
    padding: 0.75rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    color: white !important;
}

.btn-download.btn-apple {
    background-color: #000000;
}

.btn-download.btn-google {
    background-color: #000000;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white !important;
    opacity: 0.9;
}

.download-icon {
    height: 22px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Features Section */
.features {
    padding: 4rem 0;
}

.feature-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    height: 100%;
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(86, 204, 242, 0.15);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--secondary-text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-list li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* More Features */
.more-features {
    background-color: var(--surface-color);
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.more-features h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary-text);
}

.feature-mini {
    text-align: center;
    padding: 1.5rem;
}

.feature-mini-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-mini h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 0.5rem;
}

.feature-mini p {
    font-size: 0.95rem;
    color: var(--secondary-text);
    margin: 0;
}

.plus-badge {
    display: inline-block;
    background-color: var(--attention-color);
    color: #1F2937;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3ab8dd 100%);
    color: white;
    padding: 3rem 1.5rem;
    text-align: center;
    margin: 3rem 0;
    border-radius: 12px;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    padding: 0.75rem 2.5rem;
}

.cta-section .btn-primary:hover {
    background-color: #f0f0f0;
}

/* Articles Section */
.articles {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.articles h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary-text);
}

.article {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.article h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.article h4:first-of-type {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.article p {
    color: var(--secondary-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.article ul {
    color: var(--secondary-text);
    line-height: 1.8;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article ul li {
    margin-bottom: 0.75rem;
}

.article-highlight {
    background-color: #f0f9ff;
    border-left: 3px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 6px;
}

.article-highlight strong {
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--secondary-text);
    font-size: 0.95rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 1rem;
}

footer a:hover {
    text-decoration: underline;
}

/* Policy Page Specifics */
.page-header {
    background-color: var(--surface-color);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-text);
    margin: 0;
}

.content {
    padding: 3rem 0;
    background-color: var(--light-bg);
}

.content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-text);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.content h2:first-child {
    margin-top: 0;
}

.content p {
    color: var(--secondary-text);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.content ul {
    color: var(--secondary-text);
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content ul li {
    margin-bottom: 0.5rem;
}

.content-box {
    background-color: var(--surface-color);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 6px;
}

.last-updated {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero {
        min-height: 0;
    }

    .hero-dots {
        background-image: url('../assets/hero_bg_mobile.png');
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    .download-buttons {
        gap: 0.75rem;
    }

    .btn-download {
        width: 100%;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .article {
        padding: 1.5rem;
    }

    .article h3 {
        font-size: 1.4rem;
    }

    .articles h2 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .content h2 {
        font-size: 1.25rem;
    }
}

/* Extra Classes for modularity */
.usage-list {
    color: var(--secondary-text);
    line-height: 1.8;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.section-padding-bg {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.section-title-center {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary-text);
}

.feature-box-highlight {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 2.5rem;
    border-left: 4px solid var(--primary-color);
}

.check-list {
    list-style: none;
    padding: 0;
    color: var(--secondary-text);
    line-height: 1.9;
    margin: 0;
}

.check-item {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
}

.check-icon {
    color: var(--primary-color);
    font-weight: 700;
    flex-shrink: 0;
}

.advisors-section {
    padding: 4rem 0;
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.advisor-card {
    background-color: #F9FAFB;
    border-radius: 12px;
    padding: 2.5rem;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 2rem;
}

.advisor-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 0.5rem;
}

.advisor-info-list {
    list-style: none;
    padding: 0;
    color: var(--secondary-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.advisor-info-list li {
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background-color: #3ab8dd;
    color: white;
    transform: translateY(-2px);
}

.contact-section {
    background-color: #D9EEF9;
    padding: 3rem 0;
    margin: 3rem 0;
}

.contact-container {
    text-align: center;
}

.contact-title {
    color: var(--primary-text);
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-text {
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-email {
    color: var(--primary-text);
    font-size: 1.1rem;
    margin: 0;
}

/* ===== Page Quick Navigation Bar ===== */
/* 電腦版：右側固定面板 */
#page-quick-nav {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 900;
    width: 210px;
    /* 預設隱藏，hero 離開後才顯示 */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

#page-quick-nav.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* 電腦版 toggle 按鈕：作為面板標題列 */
#page-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 10px 0 0 0;
    padding: 0.75rem 1.1rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-text);
    box-shadow: -3px 0 16px rgba(86, 204, 242, 0.12);
    transition: background 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

#page-nav-toggle:hover {
    background: rgba(86, 204, 242, 0.1);
}

.page-nav-icon {
    font-size: 1.1rem;
    color: var(--primary-color);
    line-height: 1;
    transition: transform 0.25s ease;
}

/* 展開時箭頭旋轉 */
#page-nav-toggle[aria-expanded="true"] .page-nav-icon {
    transform: rotate(90deg);
}

.page-nav-label {
    flex: 1;
    color: var(--primary-text);
    font-size: 0.92rem;
    font-weight: 700;
}

/* 右側面板清單 */
#page-nav-list {
    list-style: none;
    padding: 0.6rem 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 10px;
    box-shadow: -4px 8px 28px rgba(0, 0, 0, 0.12);
    display: none;
}

#page-nav-list.is-open {
    display: block;
    animation: nav-panel-in 0.2s ease;
}

@keyframes nav-panel-in {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#page-nav-list li {
    margin: 0;
}

#page-nav-list a {
    display: block;
    padding: 0.75rem 1.1rem;
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.5;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    border-left: 4px solid transparent;
}

#page-nav-list a:hover {
    background: #e8f7fd;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 1.4rem;
}

#page-nav-list a.is-active {
    color: var(--primary-color);
    font-weight: 700;
    border-left-color: var(--primary-color);
    background: rgba(86, 204, 242, 0.13);
    padding-left: 1.4rem;
}

/* ── 手機版：右上角折疊按鈕 ── */
@media (max-width: 768px) {
    #page-quick-nav {
        top: auto;
        bottom: 1.5rem;
        right: 0;
        transform: none;
        width: auto;
        min-width: 120px;
        max-width: 200px;
    }

    #page-nav-toggle {
        border-radius: 10px 0 0 10px;
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
        box-shadow: -2px 2px 12px rgba(86, 204, 242, 0.18);
    }

    #page-nav-list {
        border-radius: 0 0 0 10px;
    }

    #page-nav-list a {
        font-size: 0.8rem;
        padding: 0.5rem 0.85rem;
    }
}

