:root {
    --color-primary: #154B96;
    --color-primary-deep: #0d3d78;
    --color-accent: #F2AF1D;
    --color-bg-soft: #dde5ee;
    --color-white: #ffffff;
    --color-text: #263248;
    --shadow-soft: rgba(0, 0, 0, 0.05);
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&display=swap');

body {
    font-family: 'Noto Sans TC', sans-serif;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

/* 修正：解決 Tailwind Preflight 與 Bootstrap Navbar 衝突導致文字消失的問題 */
.navbar-custom {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-link-fix {
    color: #333333 !important; /* 強制給予深灰色，避免被 Tailwind 重置 */
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}
.nav-link-fix:hover, .nav-link-fix:focus, .nav-link-fix:active {
    color: #dc3545 !important; /* 懸停與點擊時維持可見的永豐紅 */
}

.navbar-brand img {
    display: block;
    vertical-align: middle;
    max-width: 100%;
    max-height: 40px;
}

/* 確保手機版 Menu 開啟時，背景與漢堡圖示正常顯示 */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
/* 關鍵修正：解決 Tailwind 與 Bootstrap 'collapse' 類別衝突導致桌面版選單隱形的問題 */
.collapse.navbar-collapse {
    visibility: visible !important;
}

/* Logo 區域樣式 */
.logo-icon {
    background-color: #e60012;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
}
.logo-text-main {
    color: #e60012;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
}
.logo-text-sub {
    color: #555555;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 主視覺背景：深藍色漸層、科技感光束 */
.hero-section {
    background-color: #0a2c6f;
    background-image: url('../assets/CME-Q4-iphone-2000x900.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    overflow: hidden;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 背景網格與光暈裝飾 */
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 140, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

/* 文字特效 */
.text-glow {
    text-shadow: 0 0 20px rgba(255,255,255,0.4), 0 0 40px rgba(0, 162, 255, 0.3);
}

.gold-tag {
    background: linear-gradient(90deg, #ffdb00 0%, #ff9500 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.3);
}

/* 按鈕樣式 */
.btn-open-account {
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
    color: #333 !important;
    border: none;
    box-shadow: 0 4px 15px rgba(255,255,255,0.2), inset 0 -3px 0 rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}
.hero-cta {
    position: absolute;
    left: 8%;
    bottom: 30%;
    z-index: 20;
}
.hero-cta .btn-open-account {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
.btn-open-account:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.4), inset 0 -3px 0 rgba(0,0,0,0.1);
    color: #000 !important;
}
.arrow-icon-circle {
    background: linear-gradient(135deg, #ffcc00, #ff9500);
    color: #000;
}
/* 右側 3D 折疊手機模擬 (不用圖檔也能呈現質感) */
.phone-showcase {
    position: relative;
    z-index: 5;
    perspective: 1000px;
}
.phone-fold {
    width: 300px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 auto;
}
.phone-showcase:hover .phone-fold {
    transform: rotateY(-5deg) rotateX(5deg) scale(1.05);
}
.screen-left, .screen-right {
    position: absolute;
    height: 100%;
    background: #000;
    border-radius: 16px;
    border: 4px solid #b2bec3;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.1);
    overflow: hidden;
}
.screen-left {
    width: 50%;
    left: 0;
    transform-origin: right center;
    transform: rotateY(15deg);
    border-right: 2px solid #636e72;
}
.screen-right {
    width: 50%;
    right: 0;
    transform-origin: left center;
    transform: rotateY(-15deg);
    border-left: 2px solid #636e72;
}
/* 螢幕內部畫面模擬 */
.screen-inner {
    width: 200%;
    height: 100%;
    background: linear-gradient(135deg, #001f3f 0%, #0074D9 50%, #7FDBFF 100%);
    position: absolute;
    top: 0;
}
.screen-left .screen-inner { left: 0; }
.screen-right .screen-inner { left: -100%; }

/* 螢幕光澤 */
.screen-glare {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 60%);
    transform: rotate(30deg);
    pointer-events: none;
}

/* 裝飾光軌 */
.light-trail {
    position: absolute;
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffcc00, #ff3300);
    border-radius: 4px;
    filter: blur(2px);
    z-index: 10;
    transform: rotate(-30deg);
    animation: shoot 3s infinite;
}
.activity-section {
    background: #dde5ee;
    padding: 1.5rem 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
}
.activity-shell {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding-top: 1rem;
}
.activity-topline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
    position: relative;
    z-index: 1;
}
.task-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #535353;
    border: 2px solid rgba(8, 64, 138, 0.2);
    color: #fff;
    font-size: 1.05rem;
    border-radius: 999px;
    padding: 0.55rem 1.3rem;
}
.task-date {
    display: inline-block;
    color: #535353;
    font-weight: 700;
    font-size: 1.2rem;
}
.activity-banner {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 2rem;
    background: linear-gradient(180deg, #0b3a7a, #143d75);
    color: #fff;
    font-size: clamp(1.4rem, 2vw, 2.2rem);
    font-weight: 900;
    border-radius: 22px;
    padding: 1.1rem 2.8rem;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 26px rgba(11, 58, 122, 0.18);
    position: relative;
}
.activity-banner::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%) rotate(45deg);
    width: 32px;
    height: 32px;
    background: #0b3a7a;
    border-radius: 6px;
    z-index: -1;
}
.activity-panel {
    background: rgba(255,255,255,0.92);
    border-radius: 18px;
    padding: 0 0 1.4rem;
    overflow: hidden;
    border: 2px solid #154B96;
    box-shadow: 6px 6px 0 #154B96;
    padding: 2%;
}
.activity-panel--table {
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 0;
    border: 2px solid rgba(19, 77, 151, 0.95);
    box-shadow: 0 0 0 2px rgba(19, 77, 151, 0.12), 6px 6px 0 #154B96;
}
.activity-panel-title {
    background: linear-gradient(180deg, #f7e5a3, #d7b863);
    margin: 0 auto 10px auto;
    text-align: center;
    line-height: 3vw;
    border-radius: 1.25vw;
    font-weight: 900;
    font-size: clamp(1.1rem, 1.8vw, 2rem);
    letter-spacing: 0.04em;
}
.activity-panel-body {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 1rem;
    background: #E8EDF5;
    border-radius: 12px;
}
.activity-prize-shell {
    position: relative;
    border: 1px dashed rgba(19, 77, 151, 0.9);
    border-radius: 0;
    overflow: hidden;
    background: rgba(255,255,255,0.7);
}
.activity-prize-shell::after {
    right: -14px;
}
.activity-prize-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: rgba(255,255,255,0.7);
}
.activity-prize-table thead th {
    background: linear-gradient(180deg, #0d3d7a, #123d74);
    color: #fff;
    font-weight: 900;
    font-size: clamp(1.05rem, 1.5vw, 1.6rem);
    text-align: center;
    padding: 1rem 0.8rem;
    border-right: 1px solid rgba(255,255,255,0.12);
}
.activity-prize-table thead th:last-child {
    border-right: none;
}
.activity-prize-table tbody td {
    padding: 10px;
    border-right: 1px solid rgba(17, 63, 118, 0.12);
    border-top: 1px solid rgba(17, 63, 118, 0.12);
}
.activity-prize-table tbody td:last-child {
    border-right: none;
}
.activity-prize-cell--label {
    background: linear-gradient(180deg, #FFD82A);
    font-weight: 900;
    text-align: center;
    padding-left: 1.2rem;
    font-size: 1rem;
}
.activity-prize-cell--content ul {
    margin: 0;
    padding-left: 1.25rem;
}
.activity-prize-cell--content li {
    list-style: disc;
    margin-bottom: 0.25rem;
}
.activity-prize-cell--content li:last-child {
    margin-bottom: 0;
}

.redpacket-illustration {
    position: relative;
    width: 220px;
    height: 160px;
    flex-shrink: 0;
}
.groupimg {
    width: 150px;
    max-width: 100%;
    margin: 0 auto;
}
.coin {
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffe8a8, #f4bd2b 60%, #d79d0d 100%);
    border: 2px solid rgba(168, 109, 0, 0.5);
    box-shadow: 0 4px 10px rgba(209, 126, 8, 0.2);
}
.coin-1 { top: 24px; left: 22px; }
.coin-2 { top: 12px; left: 55px; }
.coin-3 { top: 35px; left: 84px; }
.coin-4 { top: 18px; left: 118px; }
.redpacket {
    position: absolute;
    left: 30px;
    bottom: 0;
    width: 150px;
    height: 110px;
    background: linear-gradient(180deg, #f54c3d, #d51d1e);
    border-radius: 14px 14px 22px 22px;
    box-shadow: 0 12px 18px rgba(176, 13, 18, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff7d6;
    font-size: 2.3rem;
    font-weight: 900;
    border: 3px solid rgba(255,255,255,0.5);
    transform: rotate(-3deg);
}
.redpacket::before,
.redpacket::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    background: #f3d585;
    border-radius: 50%;
    top: 26px;
}
.redpacket::before { left: 18px; }
.redpacket::after { right: 18px; }
.redpacket span {
    position: relative;
    z-index: 1;
}
.activity-copy {
    flex: 1;
    color: #154B96;
    font-weight: 700;
    font-size: clamp(1rem, 1.4vw, 1.5rem);
    line-height: 1.7;
}
.activity-copy p {
    margin: 0;
}
.activity-terms {
    color: #425669;
    font-size: 1rem;
    line-height: 1.8;
}
.activity-terms p {
    margin: 0;
}
.feature-section {
    background: linear-gradient(180deg, #edf3fb 0%, #dfeaf5 100%);
    padding: 3rem 1.1rem 4rem;
    position: relative;
}
.feature-shell {
    max-width: 1280px;
    margin: 0 auto;
}
.feature-head {
    text-align: center;
    margin-bottom: 1.8rem;
}
.feature-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(180deg, #144a8a, #0d3d78);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0 1.2rem;
    margin-bottom: 0.9rem;
}
.feature-head h2 {
    margin: 0;
    font-weight: 900;
    color: #123d76;
    font-size: clamp(1.6rem, 2vw, 2.8rem);
    letter-spacing: 0.03em;
}
.feature-carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.92);
    border: 2px solid #154B96;
    border-radius: 18px;
    box-shadow: 6px 6px 0 #154B96;
    padding: 1rem;
    margin: 0 40px; 
}
.feature-slider-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 18px;
    /* border: 1px solid rgba(17, 63, 118, 0.12); */
    /* background: rgba(255,255,255,0.7);。 */
}
.feature-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.feature-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
    border-radius: 18px;
    margin: 0 auto;
}
.feature-track::-webkit-scrollbar {
    display: none;
}
.feature-card {
    position: relative;
    min-width: 300px;
    flex: 0 0 calc(33.333% - 0.75rem);
    background: rgba(255,255,255,0.9);
    border: 2px solid rgba(17, 63, 118, 0.12);
    border-radius: 22px;
    box-shadow: 0 18px 30px rgba(16, 55, 112, 0.08);
    padding: 1.25rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.feature-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}
.feature-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9f1ff;
    color: #123d76;
    border-radius: 999px;
    padding: 0.38rem 0.8rem;
    font-weight: 800;
    font-size: 0.8rem;
}
.feature-score {
    color: #f0ab2f;
    font-weight: 900;
    font-size: 0.8rem;
}
.feature-card h3 {
    font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    font-weight: 900;
    color: #0f2e57;
    margin: 0 0 0.85rem;
    line-height: 1.4;
}
.feature-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #38526d;
}
.feature-visual {
    margin-top: 1.1rem;
    border-radius: 16px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 1.1rem;
    box-shadow: inset 0 -8px 18px rgba(0,0,0,0.08);
}
.visual-blue { background: linear-gradient(135deg, #1f5db8, #133f7d); }
.visual-gold { background: linear-gradient(135deg, #e7b64a, #ba7b14); }
.visual-sky { background: linear-gradient(135deg, #3b99d9, #1756a7); }
.visual-navy { background: linear-gradient(135deg, #112d5f, #1b4c8e); }
.carousel-btn {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(17, 63, 118, 0.2);
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #123d76;
    font-size: 1.5rem;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(15, 46, 87, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.carousel-btn:hover {
    transform: translateY(-2px);
}
.strategy-section {
    background: #dde5ee;
    padding: 1.5rem 1rem 3rem;
}
.strategy-shell {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.strategy-banner {
    margin-bottom: 1.5rem;
}
.strategy-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.strategy-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
.strategy-cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}
.strategy-cta {
    display: inline-flex;
    align-items: center;
    font-weight: 900;
    font-size: 1.6rem;
    gap: 1rem;
    padding: 1.3rem 1.5rem;
    color: #263248;
    background: #fff;
    border: 4px solid #F2AF1D;
    border-radius: 30px;
    box-shadow: 6px 6px 0 #F2AF1D;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.strategy-cta:hover,
.strategy-cta:focus-visible {
    color: #263248;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 #F2AF1D;
}
.deal-section {
    position: relative;
    background: #e7edf4;
    padding: 1.5rem 1rem 0;
    overflow: hidden;
}
.deal-bg-map {
    position: absolute;
    inset: 0;
    background-image: url('../assets/bg-shake-hand.svg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.95;
}
.deal-shell {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    background: rgba(255,255,255,0.18);
    padding-bottom: 3rem;
}
.deal-bubble {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    min-width: 440px;
    min-height: 70px;
    padding: 0.9rem 2rem;
    background: linear-gradient(180deg, #0d3d78, #123e7a);
    color: #fff;
    border-radius: 24px;
    font-size: clamp(1.7rem, 2vw, 2.4rem);
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(17, 61, 118, 0.15);
}
.deal-title {
    text-align: center;
    margin: 0 auto 1.5rem;
    color: #0d2f57;
    font-size: clamp(1.6rem, 2.2vw, 2.8rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    max-width: 980px;
}
.deal-table-wrap {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    background: rgba(255,255,255,0.7);
    border-radius: 0 0 12px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: rgba(18, 61, 118, 0.45) transparent;
    box-shadow: 0 10px 24px rgba(18, 61, 118, 0.08);
    border: 1px solid rgba(17, 63, 118, 0.12);
}
.deal-table-wrap.dragging {
    cursor: grabbing;
    user-select: none;
}
.deal-table-wrap::-webkit-scrollbar {
    height: 8px;
}
.deal-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(18, 61, 118, 0.35);
    border-radius: 999px;
}
.deal-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 1rem;
    color: #123d76;
    table-layout: fixed;
}
.deal-table thead th {
    background: linear-gradient(180deg, #0e3f7f, #183f74);
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.02em;
    padding: 0.95rem 0.7rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.15);
    font-weight: 800;
}
.deal-table thead th:last-child,
.deal-table tbody td:last-child {
    border-right: none;
}
.deal-table tbody td {
    padding: 0.9rem 0.7rem;
    text-align: center;
    border-top: 1px solid rgba(17, 63, 118, 0.12);
    border-right: 1px solid rgba(17, 63, 118, 0.08);
    background: rgba(255,255,255,0.44);
    font-weight: 700;
}
.deal-table tbody tr:nth-child(odd) td {
    background: rgba(255,255,255,0.35);
}
.deal-table tbody tr:nth-child(even) td {
    background: rgba(255,255,255,0.52);
}
.deal-table tbody tr:nth-child(1) td,
.deal-table tbody tr:nth-child(2) td,
.deal-table tbody tr:nth-child(3) td,
.deal-table tbody tr:nth-child(4) td,
.deal-table tbody tr:nth-child(5) td,
.deal-table tbody tr:nth-child(6) td,
.deal-table tbody tr:nth-child(7) td,
.deal-table tbody tr:nth-child(8) td,
.deal-table tbody tr:nth-child(9) td {
    background: rgba(214, 226, 236, 0.25);
}
.deal-table tbody tr:nth-child(1) td:first-child,
.deal-table tbody tr:nth-child(2) td:first-child,
.deal-table tbody tr:nth-child(3) td:first-child,
.deal-table tbody tr:nth-child(4) td:first-child,
.deal-table tbody tr:nth-child(5) td:first-child,
.deal-table tbody tr:nth-child(6) td:first-child,
.deal-table tbody tr:nth-child(7) td:first-child,
.deal-table tbody tr:nth-child(8) td:first-child,
.deal-table tbody tr:nth-child(9) td:first-child {
    background: #FFD82A;
}
.deal-table tbody td:first-child {
    text-align: left;
    padding-left: 1.2rem;
}
.deal-shell::before,
.deal-shell::after {
    content: "";
    position: absolute;
    bottom: 10px;
    width: 300px;
    height: 120px;
    border-radius: 140px 140px 0 0;
    border: 18px solid rgba(255,255,255,0.11);
    border-bottom: none;
    z-index: 1;
}
.deal-shell::before {
    left: 17%;
    transform: rotate(-12deg);
    border-color: rgba(255,255,255,0.12);
}
.deal-shell::after {
    right: 17%;
    transform: rotate(12deg);
    border-color: rgba(255,255,255,0.12);
}
/* Responsive rules consolidated for easier maintenance */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #ffffff;
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        margin-top: 0.75rem;
    }
    .hero-section {
        background-image: url('../assets/CME-Q4-iphone-1280x850.png');
    }
    .hero-cta {
        left: 50%;
        bottom: 6%;
        transform: translateX(-50%);
    }
    .btn-open-account {
        font-size: 1.05rem !important;
        padding: 0.75rem 1.5rem !important;
    }
    .activity-panel-body {
        flex-direction: column;
        text-align: center;
    }
    .redpacket-illustration {
        margin: 0 auto;
    }
    .activity-copy {
        font-size: 1.1rem;
    }
    .feature-card {
        flex-basis: 46%;
    }
    .deal-bubble {
        min-width: 320px;
    }
    .deal-table {
        font-size: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .feature-card {
        min-width: 80%;
        flex-basis: 80%;
    }
    .feature-carousel-wrap {
        gap: 0.5rem;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .deal-section {
        padding-top: 1rem;
    }
    .deal-bubble {
        min-width: auto;
        width: 90%;
        border-radius: 18px;
        font-size: 1.5rem;
    }
    .deal-title {
        line-height: 1.4;
        font-size: 1.45rem;
    }
    .deal-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .deal-table {
        min-width: 680px;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        background-image: url('../assets/CME-Q4-iphone-1080x1080.png');
    }
    .hero-cta {
        bottom: 7%;
    }
    .btn-open-account {
        font-size: 0.95rem !important;
        padding: 0.7rem 1.2rem !important;
        gap: 0.5rem !important;
    }
    .arrow-icon-circle {
        width: 24px !important;
        height: 24px !important;
    }
    .activity-section {
        padding: 1.8rem 0.8rem 2.8rem;
    }
    .activity-topline {
        flex-direction: column;
        gap: 0.5rem;
    }
    .activity-banner {
        border-radius: 16px;
        padding: 0.9rem 1.2rem;
        font-size: 1.3rem;
    }
    .activity-panel-title {
        font-size: 1.1rem;
        letter-spacing: 0.02em;
    }
    .activity-panel-body {
        padding: 1.4rem 1rem 0.25rem;
    }
    .redpacket-illustration {
        transform: scale(0.8);
    }
    .activity-copy {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    .activity-terms {
        margin: 0 1rem;
        font-size: 0.82rem;
        line-height: 1.6;
    }
    .deal-table-wrap {
        overflow-x: auto;
    }
    .deal-table {
        min-width: 700px;
        font-size: 0.8rem;
    }
    .deal-bubble {
        font-size: 1.25rem;
        padding: 0.7rem 1rem;
    }
    .feature-carousel-wrap {
        margin: 0;
    }
}

.notice-section {
    background: #dfe8f1;
    padding: 1.2rem 1rem 2.4rem;
}
.notice-panel {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255,255,255,0.88);
    border: 2px solid #174b97;
    border-radius: 18px;
    box-shadow: 0 0 0 2px rgba(23, 75, 151, 0.06), 8px 8px 0 rgba(23, 75, 151, 0.1);
    overflow: hidden;
}
.notice-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    padding: 0.9rem 2rem;
    margin: 2rem auto 1.2rem;
    background: linear-gradient(180deg, #0d327a, #0b2d66);
    color: #fff;
    border-radius: 999px;
    font-size: clamp(1.5rem, 2vw, 2.1rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    display: block;
    text-align: center;
    width: fit-content;
}
.notice-list {
    margin: 0;
    padding: 1.2rem 2.5rem 2.2rem;
    color: #163a65;
    font-size: 1.05rem;
    list-style: decimal;
}
.notice-list li {
    margin-bottom: 0.8rem;
    padding-left: 0.35rem;
}
.notice-list li:last-child {
    margin-bottom: 0;
}
.site-footer {
    background: #154B96;
    color: #fff;
    text-align: center;
    font-size: 1rem;
}
.footer-top {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 1.5rem;
    padding: 1.1rem 1rem 0.7rem;
    line-height: 1.7;
}
.footer-top strong {
    font-size: 1.05rem;
}
.footer-bottom {
    padding: 0.8rem 1rem 1.3rem;
    background: #2E2E2E;
    line-height: 1.9;
    font-size: 0.98rem;
}
.footer-bottom p {
    margin: 0;
}

@keyframes shoot {
    0% { transform: rotate(-30deg) translateX(-200px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: rotate(-30deg) translateX(300px); opacity: 0; }
}