/* ==========================================================================
   頁面專屬變數（基礎變數在 base.css）
   ========================================================================== */
:root {
    --text-dark: #1A1A1A;
    --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Noto Sans TC', -apple-system, sans-serif;
    background-color: #F5F7FA;
}

.news-wrapper {
    display: flex;
    justify-content: center;
    padding-bottom: 100px;
}

/* 封裝成標準手持裝置容器，保證不擁擠且兩側對齊 */
.phone-container {
    width: 100%;
    max-width: 450px;
    background-color: #FFFFFF;
    min-height: 100vh;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
    position: relative;
}

/* ==========================================================================
   主視覺標題區 Banner (高樓剪影還原)
   ========================================================================== */
.banner-section {
    padding: 24px 20px 40px 20px;
    position: relative;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFF5ED 100%);
    overflow: hidden;
}

.page-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.page-title .typewriter-cursor,
.page-subtitle .typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--primary-orange);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: cursorBlink 0.6s step-end infinite;
}

.page-subtitle .typewriter-cursor {
    height: 0.9em;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.page-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: #555555;
    position: relative;
    z-index: 5;
}

/* ==========================================================================
   資訊活動列表排版優化 (寬鬆、大字體、極度清晰)
   ========================================================================== */
.info-list {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: infoListSlideIn 0.5s ease 0.2s forwards;
    opacity: 0;
    transform: translateX(-30px);
}

@keyframes infoListSlideIn {
    to { opacity: 1; transform: translateX(0); }
}

.info-card {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 18px;
    padding: 1rem;
    text-decoration: none; /* 使整張卡片可點擊 */
    box-shadow: var(--card-shadow);
    border: 1px solid #F1F4F8;
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:active {
    transform: scale(0.98);
    background-color: #FAFAFA;
}

/* 左側圖片/圖標容器：採用原圖中非常柔和的漸層微發光圓角底座 */
.card-left-img {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: 16px;
    margin-right: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 根據原圖的不同底座色調進行配色 */
.bg-gift { background: linear-gradient(135deg, #FFF9F5, #FFEFE3); }
.bg-redpacket { background: linear-gradient(135deg, #FFF5F5, #FFEBEC); }
.bg-calendar { background: linear-gradient(135deg, #FFF7F4, #FFEFEA); }
.bg-battery { background: linear-gradient(135deg, #F3FBF4, #E8F7EA); }
.bg-exam { background: linear-gradient(135deg, #FFF9F4, #FFF0E2); }
.bg-station { background: linear-gradient(135deg, #E8F7F0, #D0F0E0); }
.bg-return { background: linear-gradient(135deg, #F5F0FF, #EDE3FF); }
.bg-bonus { background: linear-gradient(135deg, #FFF8E1, #FFECB3); }

.card-left-img svg {
    width: 100%;
    height: 100%;
}

/* 右側內文樣式：字體放大，層次分明 */
.card-right-text {
    flex-grow: 1;
}

.card-right-text h4 {
    font-size: 1.5rem; /* 更大更清晰的項目標題 */
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 5px;
}

.card-right-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* 特殊價格與數字高亮設計 */
.highlight-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: #FF5200;
    margin-top: 2px;
}

.highlight-price span {
    font-size: 1.5rem;
}

.orange-bold {
    color: var(--primary-orange);
    font-weight: 700;
}

/* ==========================================================================
   底部引導註冊按鈕 (Sticky Action Bar)
   ========================================================================== */
.fixed-action-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(8px);
    padding: 14px 16px;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.04);
    z-index: 999;
    border-top: 1px solid #EEEEEE;
}

.full-width-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    background-color: var(--primary-orange);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(255, 111, 0, 0.3);
    transition: background-color 0.15s, transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.full-width-btn svg {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
}

.full-width-btn::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;
}

@keyframes shine {
    0%   { left: -100%; }
    60%  { left: 150%; }
    100% { left: 150%; }
}

.full-width-btn:active {
    background-color: #E05B00;
}

/* ==========================================================================
   PC 桌面端響應式佈局 (≥1024px)
   ========================================================================== */
@media (min-width: 1024px) {
    body { background: #f5f5f5; }

    .news-wrapper {
        padding-bottom: 0;
        width: 100%;
    }

    /* ---- 白色內容容器 ---- */
    .phone-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0;
        min-height: auto;
        background-color: transparent;
        box-shadow: none;
    }

    /* ---- Hero 鋪滿全寬（突破容器） ---- */
    .banner-section {
        padding: 100px 80px 80px;
        min-height: 400px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100vw;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }

    .page-title {
        font-size: 4.2rem;
        text-align: center;
    }

    .page-subtitle {
        font-size: 1.6rem;
    }

    /* ---- 內容區限制寬度 ---- */
    .info-list {
        padding: 3rem 0;
        max-width: 1100px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        padding-left: 40px;
        padding-right: 40px;
        animation: none;
        opacity: 1;
        transform: none;
    }

    /* ---- 卡片改為垂直排列 ---- */
    .info-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        border-radius: 24px;
        box-shadow: 0 12px 32px rgba(0,0,0,0.06);
        transition: transform .35s cubic-bezier(.25,.46,.45,.94),
                    box-shadow .35s cubic-bezier(.25,.46,.45,.94);
    }

    .card-left-img {
        width: 100px;
        height: 100px;
        border-radius: 22px;
        margin-right: 0;
        margin-bottom: 1.2rem;
    }

    .card-right-text h4 {
        font-size: 1.45rem;
        margin-bottom: 6px;
    }

    .card-right-text p {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .highlight-price {
        font-size: 1.5rem;
        margin-top: 6px;
    }

    .highlight-price span {
        font-size: 1.5rem;
    }

    /* ---- 卡片 Hover 效果 ---- */
    .info-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 48px rgba(32,168,121,.12);
    }

    .info-card:hover .card-left-img svg {
        transform: scale(1.08);
        transition: transform .35s cubic-bezier(.25,.46,.45,.94);
    }

    .card-left-img svg {
        transition: transform .35s cubic-bezier(.25,.46,.45,.94);
    }

    /* ---- 底部 CTA ---- */
    .fixed-action-bar {
        max-width: 1100px;
        margin: 0 auto;
        padding: 32px 40px 48px;
        position: relative;
        left: auto;
        transform: none;
        box-shadow: none;
        border-top: none;
        background: transparent;
        backdrop-filter: none;
    }

    .full-width-btn {
        font-size: 1.15rem;
        padding: 20px;
        max-width: 500px;
        margin: 0 auto;
        border-radius: 50px;
    }

    .full-width-btn:hover {
        background-color: #E05B00;
        box-shadow: 0 8px 24px rgba(255, 111, 0, 0.4);
        transform: translateY(-2px);
    }

    .site-footer { margin-top: 0; }
}

/* ---- 大屏 ≥1200px 同步 ---- */
@media (min-width: 1200px) {
    .phone-container {
        max-width: 1200px;
    }

    .banner-section {
        min-height: 420px;
        padding: 110px 80px 90px;
        width: 100vw;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }

    .info-list {
        gap: 2.2rem;
    }
}