﻿/* ========================================
   DAC.css - 手機選單樣式（高齡友善版）
   適用年齡：40-70歲
   ======================================== */

/* ========================================
   1. 重置與基礎
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    background: #f0f2f5;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

.app-container {
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    min-height: 100vh;
    padding: 0px 0px 0px;
}

/* 圖片*/
.auto-style1 {
    width: 400px;
}

/* ========================================
   2. 頂部導航列
   ======================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0 12px 0;
    border-bottom: 1px solid #eef2f6;
    margin-bottom: 18px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-title {
    font-size: 22px;
    font-weight: 600;
    color: #0b0d12;
}

    .app-title small {
        font-size: 14px;
        font-weight: 400;
        color: #8b95a9;
    }

/* ========================================
   3. 左上方漢堡按鈕
   ======================================== */
.menu-icon-btn {
    background: transparent;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    transition: background 0.15s;
    z-index: 1001;
    margin-left: -6px;
}

    .menu-icon-btn:hover {
        background: #f0f2f5;
    }

    .menu-icon-btn .bar {
        display: block;
        width: 26px;
        height: 3px;
        background: #1a1f2b;
        border-radius: 4px;
        transition: all 0.25s ease;
        transform-origin: center;
    }

    .menu-icon-btn.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-icon-btn.open .bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .menu-icon-btn.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

/* ========================================
   4. 右上方「⋮」按鈕
   ======================================== */
.more-btn-wrapper {
    position: relative;
}

.more-btn {
    background: transparent;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 28px;
    font-weight: 900;
    color: #1a1f2b;
    padding: 10px;
    transition: background 0.15s;
    margin-right: -6px;
}

    .more-btn:hover {
        background: #f0f2f5;
    }

/* ========================================
   5. 右上角彈出選單
   ======================================== */
.popup-menu {
    position: absolute;
    top: 56px;
    right: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 8px 0;
    visibility: hidden;
    opacity: 0;
    transform: scale(0.95) translateY(-8px);
    transition: all 0.2s ease;
    z-index: 2000;
    border: 1px solid #eef2f6;
}

    .popup-menu.open {
        visibility: visible;
        opacity: 1;
        transform: scale(1) translateY(0);
    }

.popup-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: #1a1f2b;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: background 0.1s;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

    .popup-menu-item:hover {
        background: #f5f8ff;
    }

    .popup-menu-item .icon {
        font-size: 20px;
        width: 28px;
        text-align: center;
    }

.popup-menu-divider {
    height: 1px;
    background: #eef2f6;
    margin: 4px 12px;
}

/* ========================================
   6. 內容區
   ======================================== */
.content-card {
    background: #f8faff;
    border-radius: 24px;
    padding: 8px 20px;
    border: 1px solid #eef2f8;
    font-size: 18px;
}

    .content-card h3 {
        font-size: 24px;
        font-weight: 600;
        color: #0e121c;
        margin-bottom: 12px;
    }

    .content-card p {
        font-size: 19px;
        line-height: 1.9;
        color: #1a1f2b;
    }

        .content-card p strong {
            font-size: 20px;
            color: #2563eb;
        }

.tag-group {
    display: flex;
    gap: 0px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.tag-group-sub {
    padding-top: 12px;
    padding-left: 0px;
    padding-bottom: 12px;
}

.tag-group-sub2 {
    padding-top: 12px;
    padding-left: 8px;
    padding-bottom: 12px;
}

.tag-group-sub3 {
    padding-top: 12px;
    padding-left: 12px;
    padding-bottom: 12px;
}

.tag-group span {
    background: #eef2f8;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 16px;
    color: #1f2937;
}

.badge {
    background: #dbeafe;
    color: #2563eb;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
}

.mt-12 {
    margin-top: 12px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/*image*/
.img-group-image {
    padding-top: 12px;
    padding-left: 0px;
    padding-bottom: 12px;
    margin-left:-18px;
}


/* 提示框 */
.info-box {
    font-size: 17px;
    line-height: 1.9;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #eef1f4;
}

/* ========================================
   7. 側邊選單
   ======================================== */
.side-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(2px);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    z-index: 999;
}

    .side-overlay.open {
        visibility: visible;
        opacity: 1;
        transition: opacity 0.3s ease, visibility 0s 0s;
    }

.side-menu {
    position: fixed;
    top: 0;
    left: -420px;
    width: 100%;
    max-width: 80%;
    height: 100%;
    background: #ffffff;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.10);
    padding: 24px 20px 30px;
    transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.side-overlay.open .side-menu {
    left: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf2f8;
    margin-bottom: 14px;
}

    .menu-header span {
        font-size: 20px;
        font-weight: 600;
        color: #0b0d12;
    }

.close-btn {
    background: #f0f4fa;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 40px;
    font-size: 18px;
    color: #2d3748;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

    .close-btn:active {
        background: #dce2ec;
    }

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.menu-item {
    border-bottom: 1px solid #f0f4fa;
}

    .menu-item:last-child {
        border-bottom: none;
    }

.menu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 56px;
}

.menu-link {
    color: #1a1f2b;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 16px 10px 16px 0;
    display: inline-block;
}

.expand-area {
    flex: 1;
    min-height: 56px;
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 4px 16px 12px;
    user-select: none;
}

    .expand-area:active {
        background: #f2f6fe;
    }

    .expand-area .arrow {
        font-size: 15px;
        color: #8b94a5;
        transition: transform 0.25s ease;
    }

.menu-item.open .expand-area .arrow {
    transform: rotate(180deg);
}

.sub-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 0 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafcff;
    border-radius: 10px;
}

.menu-item.open .sub-menu {
    max-height: 260px;
    padding: 4px 0 10px;
}

.sub-menu li {
    padding: 0;
    border-bottom: 1px solid #eef3f9;
}

    .sub-menu li:last-child {
        border-bottom: none;
    }

.sub-link {
    display: block;
    padding: 12px 12px 12px 28px;
    font-size: 17px;
    color: #2d3342;
    text-decoration: none;
}

    .sub-link::before {
        content: "•";
        color: #3b82f6;
        font-weight: 700;
        font-size: 20px;
        margin-right: 10px;
    }

.menu-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #edf2f8;
    font-size: 14px;
    color: #8b95a9;
    text-align: center;
}

/* ========================================
   8. 底部
   ======================================== */
.footer-note {
    margin-top: 18px;
    font-size: 15px;
    color: #6b7a8f;
    text-align: center;
    border-top: 1px solid #eef2f8;
    padding-top: 14px;
}

/* ========================================
   9. 圖片
   ======================================== */
.auto-style1 {
    max-width: 500px;
    height: 220px;
    margin: 8px 0 12px 0;
}

/* ========================================
   10. 全部展開選單（新增）
   ======================================== */
.full-menu-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eef1f4;
}

.full-menu-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1f2b;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #eef1f4;
}

.full-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.full-menu-item {
    border-bottom: 1px solid #f0f2f5;
    padding: 0;
}

    .full-menu-item:last-child {
        border-bottom: none;
    }

.full-menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 10px;
    color: #1a1f2b;
    text-decoration: none;
    font-size: 24px;
    font-weight: 500;
    transition: color 0.15s, background 0.15s;
    border-radius: 6px;
}

    .full-menu-link:hover {
        color: #3b6ea0;
        background: #f0f4f9;
    }

.full-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 18px;
    color: #3b6ea0;
    background: #f0f4f9;
    border-radius: 8px;
    flex-shrink: 0;
}

.full-sub-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 4px 48px;
    background: #fafbfc;
    border-radius: 8px;
    overflow: hidden;
}

.full-sub-item {
    border-bottom: 1px solid #f0f2f5;
}

    .full-sub-item:last-child {
        border-bottom: none;
    }

.full-sub-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #4a5268;
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    transition: color 0.15s, background 0.15s;
    border-radius: 4px;
}

    .full-sub-link:hover {
        color: #3b6ea0;
        background: #f0f4f9;
    }

.full-sub-icon {
    font-size: 15px;
    width: 24px;
    text-align: center;
    color: #6b7a8f;
    flex-shrink: 0;
}


/* ========================================
           GoTop 回到頂端按鈕樣式
           ======================================== */
.go-top-btn {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #3b6ea0;
    color: #ffffff;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(59, 110, 160, 0.35);
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

    .go-top-btn.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .go-top-btn:hover {
        background: #2a5a8a;
        transform: translateY(-3px);
        box-shadow: 0 6px 24px rgba(59, 110, 160, 0.45);
    }

    .go-top-btn:active {
        transform: scale(0.92);
    }

    /* 按鈕內的箭頭圖示 */
    .go-top-btn .arrow-up {
        display: inline-block;
        font-size: 45px;
        line-height: 1;
        font-weight: 300;
    }
