/* ==========================================================================
   頁面專屬變數（基礎變數在 base.css）
   ========================================================================== */
:root {
    --bg-orange-light: #FFF5ED;
    --text-dark: #222222;
    --card-radius: 16px;
    --shadow: 0 6px 20px rgba(255, 111, 0, 0.06);
    --primary-orange: #FF6F00;
    --primary-dark: #E05B00;
    --text-muted: #666666;
    font-size: 14px;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: #F4F6F8;
}

#exam  .exam-wrapper {
    display: flex;
    justify-content: center;
}

#exam .phone-container {
    width: 100%;
    max-width: 450px;
    background: #FFFFFF;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding-bottom: 24px;
    position: relative;
}

/* ==========================================================================
   頂部 Banner 區
   ========================================================================== */
#exam .hero-banner {
    background: linear-gradient(180deg, #FFEBDC 0%, #FFF5ED 100%);
    padding: 36px 20px 50px 20px;
    position: relative;
}

#exam .banner-content {
    position: relative;
    z-index: 2;
}

#exam .main-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #111111;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

#exam .sub-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #555555;
}

#exam .city-silhouettes {
    position: absolute;
    bottom: 0;
    right: 10px;
    width: 180px;
    height: 70px;
    opacity: 0.15;
}

/* ==========================================================================
   專業提供大卡片
   ========================================================================== */
#exam .top-card {
    background: #ffffff;
    border-radius: var(--card-radius);
    padding: 20px 16px;
    box-shadow: var(--shadow);
    margin: -25px 16px 16px 16px;
    position: relative;
    z-index: 5;
    border: 1px solid rgba(255, 111, 0, 0.1);
}

#exam .top-layout {
    display: flex;
    align-items: center;
    gap: 16px;
}

#exam .main-icon-box {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: var(--bg-orange-light);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#exam .svg-icon.main-clipboard {
    width: 2em;
    height: 2em;
    fill: var(--primary-orange);
}

#exam .top-content h3 {
    font-size: 1.5rem;
    color: #111;
    font-weight: 700;
    margin-bottom: 6px;
}

#exam .provide-tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 8px;
}

#exam .provide-tags span {
    font-size: 1.1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

#exam .check-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-orange);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}
#exam .check-icon::after {
    content: '';
    position: absolute;
    left: 4px; top: 1px;
    width: 4px; height: 7px;
    border: solid var(--primary-orange);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#exam .sub-slogan {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 14px;
    border-top: 1px dashed #FFE0CC;
    padding-top: 12px;
}

/* ==========================================================================
   中間橘色區塊
   ========================================================================== */
#exam .orange-ribbon {
    background: var(--primary-orange);
    border-radius: var(--card-radius);
    padding: 16px;
    color: #ffffff;
    margin: 0 16px 20px 16px;
}

#exam .ribbon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 12px;
    margin-bottom: 12px;
}

#exam .ribbon-item {
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

#exam .orange-ribbon svg {
    width: 1.4em;
    height: 1.4em;
    fill: #ffffff;
    flex-shrink: 0;
}

#exam .ribbon-footer {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 10px;
}

/* ==========================================================================
   下方功能大卡片列表
   ========================================================================== */
#exam .features-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 16px;
    margin-bottom: 24px;
}

#exam .large-feature-card {
    background: #ffffff;
    border-radius: var(--card-radius);
    padding: 18px 16px;
    box-shadow: var(--shadow);
    border: 1px solid #F0F2F5;
    display: flex;
    align-items: center;
    gap: 16px;
}

#exam .card-left {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background-color: var(--bg-orange-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#exam .card-left .svg-icon {
    width: 26px;
    height: 26px;
    fill: var(--primary-orange);
}

#exam .card-right h4 {
    font-size: 1.2rem;
    color: #000000;
    font-weight: 700;
    margin-bottom: 4px;
}

#exam .card-right p {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.5;
}

/* ==========================================================================
   【新增】引導註冊按鈕樣式與佈局
   ========================================================================== */

/* 通用按鈕樣式 */
#exam .btn-register {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-orange);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.25);
    position: relative;
    overflow: hidden;
}

#exam .btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 40%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.15) 60%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: shine 3s ease-in-out infinite;
}

#exam .btn-register:active {
    background-color: var(--primary-dark);
    transform: scale(0.97);
}

@keyframes shine {
    0%   { left: -100%; }
    60%  { left: 150%; }
    100% { left: 150%; }
}

/* 1. 底部內容區塊的 CTA */
#exam .cta-block {
    margin: 16px;
    padding: 24px 16px;
    text-align: center;
}

#exam .cta-block h3 {
    font-size: 1.2rem;
    color: #111111;
    margin-bottom: 16px;
}

#exam .cta-block p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

#exam .inline-btn {
    width: 80%;
    padding: 12px 24px;
    font-size: 1.4rem;
}

/* 2. 手機端核心：固定懸浮底部導航列 */
#exam .sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px; /* 與手機容器同寬 */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* 磨砂玻璃效果提升質感 */
    border-top: 1px solid #EEEEEE;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
}

#exam .sticky-text {
    display: flex;
    flex-direction: column;
}

#exam .sticky-text strong {
    font-size: 1.1rem;
    color: #111111;
}

#exam .sticky-text span {
    font-size: 1.1rem;
    color: var(--text-muted);
}

#exam .sticky-btn {
    padding: 10px 22px;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(255, 111, 0, 0.3);
}

/* ==========================================================================
   桌面端 ≥ 1024px — PC 專用佈局
   ========================================================================== */
@media (min-width: 1024px) {

    #exam .exam-wrapper {
        padding: 0 2rem;
        margin-top: 112px; /* nav-bar 64px + nav-menu 48px */
    }

    /* 容器放寬 */
    #exam .phone-container {
        max-width: 960px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.06);
        padding-bottom: 40px;
        border-radius: 16px;
    }

    /* ---- Hero Banner ---- */
    #exam .hero-banner {
        padding: 48px 48px 60px 48px;
        border-radius: 16px 16px 0 0;
    }

    #exam .main-title {
        font-size: 2.8rem;
        letter-spacing: 3px;
        margin-bottom: 12px;
    }

    #exam .sub-title {
        font-size: 1.15rem;
    }

    #exam .city-silhouettes {
        width: 260px;
        height: 100px;
        right: 30px;
    }

    /* ---- 專業提供大卡片 ---- */
    #exam .top-card {
        padding: 28px 32px;
        margin: -30px 32px 24px 32px;
        border-radius: 20px;
    }

    #exam .top-layout {
        gap: 24px;
    }

    #exam .main-icon-box {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }

    #exam .svg-icon.main-clipboard {
        width: 2.2em;
        height: 2.2em;
    }

    #exam .top-content h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    #exam .provide-tags {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px 16px;
    }

    #exam .provide-tags span {
        font-size: 1rem;
    }

    #exam .sub-slogan {
        font-size: 1.15rem;
        margin-top: 18px;
        padding-top: 14px;
    }

    /* ---- 橘色區塊 ---- */
    #exam .orange-ribbon {
        padding: 28px 32px;
        margin: 0 32px 28px 32px;
        border-radius: 20px;
    }

    #exam .ribbon-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px 24px;
        margin-bottom: 18px;
    }

    #exam .ribbon-item {
        font-size: 0.95rem;
        gap: 8px;
    }

    #exam .orange-ribbon svg {
        width: 1.5em;
        height: 1.5em;
    }

    #exam .ribbon-footer {
        font-size: 1.1rem;
        padding-top: 14px;
    }

    /* ---- 功能卡片列表：2 列網格 ---- */
    #exam .features-list {
        flex-wrap: wrap;
        gap: 20px;
        padding: 0 32px;
        margin-bottom: 32px;
    }

    #exam .large-feature-card {
        flex: 0 0 calc(50% - 10px);
        padding: 24px 20px;
        border-radius: 20px;
        gap: 18px;
    }

    #exam .card-left {
        width: 56px;
        height: 56px;
    }

    #exam .card-left .svg-icon {
        width: 28px;
        height: 28px;
    }

    #exam .card-right h4 {
        font-size: 1.15rem;
        margin-bottom: 6px;
    }

    #exam .card-right p {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* ---- CTA 區域 ---- */
    #exam .cta-block {
        margin: 24px 32px;
        padding: 32px 24px;
    }

    #exam .cta-block h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    #exam .inline-btn {
        width: auto;
        min-width: 240px;
        padding: 14px 48px;
        font-size: 1.2rem;
    }

    /* 懸浮底欄桌面端隱藏或加寬 */
    #exam .sticky-bottom-bar {
        max-width: 960px;
        padding: 14px 32px;
        border-radius: 0 0 16px 16px;
    }

    #exam .sticky-btn {
        padding: 12px 28px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   大桌面 ≥ 1280px
   ========================================================================== */
@media (min-width: 1280px) {

    #exam .phone-container {
        max-width: 1100px;
    }

    #exam .hero-banner {
        padding: 56px 56px 72px 56px;
    }

    #exam .main-title {
        font-size: 3.2rem;
    }

    #exam .sub-title {
        font-size: 1.3rem;
    }

    #exam .top-card {
        padding: 32px 40px;
        margin: -35px 40px 28px 40px;
    }

    #exam .orange-ribbon {
        padding: 32px 40px;
        margin: 0 40px 32px 40px;
    }

    #exam .features-list {
        padding: 0 40px;
        gap: 24px;
    }

    #exam .large-feature-card {
        padding: 28px 24px;
    }

    #exam .cta-block {
        margin: 28px 40px;
        padding: 40px 32px;
    }

    #exam .sticky-bottom-bar {
        max-width: 1100px;
    }
}