
/* --- 基礎變數與排版 --- */
:root { 
    --v-primary: #ff5722; 
    --v-text-dark: #222; 
}

.entry-page-wrapper { width: 95%; max-width: 1070px; margin: 0 auto; padding-bottom: 5rem; }
.v-header h1 { font-size: 5rem; text-align: center; font-weight: 800; margin: 3rem 0; color: #333; }
.section-title { font-size: 4.5rem; font-weight: bold; margin-bottom: 2rem; display: flex; align-items: center; }
.section-title::before { content: ""; width: 0.8rem; height: 4.5rem; background: var(--v-primary); margin-right: 1.5rem; }

/* 跑馬燈容器 */
.marquee-viewport { 
    position: relative; width: 100%; overflow-x: auto; overflow-y: hidden; margin-bottom: 4rem; 
    padding: 1.5rem 0.5rem; -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
}

.entries-flex-container { display: flex; gap: 1.5rem; width: max-content; align-items: stretch; }
.flex-entry-item { flex: 0 0 45vw; max-width: 45vw; aspect-ratio: 1 / 1.3; cursor: pointer; }

.entry-card { 
    background: #fff; border-radius: 1.5rem; overflow: hidden; height: 100%; 
    border: 0.2rem solid #eee; box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
    display: flex; flex-direction: column; transition: transform 0.2s;
}

.entry-cover-wrapper { flex: 1; width: 100%; position: relative; overflow: hidden; background: #f0f0f0; }
.entry-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

.entry-bg-text { 
    flex: 1; background: #333; display: flex; align-items: center; 
    justify-content: center; padding: 2.5rem; text-align: center;
    color: #fff; line-height: 1.5; overflow: hidden; font-weight: 600; font-size: 3.2rem;
}

.entry-info { padding: 2.2rem; background: #fff; border-top: 1px solid #eee; }
.entry-title { font-size: 3.8rem; font-weight: bold; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry-stats { font-size: 3.4rem; color: var(--v-primary); font-weight: 900; margin-top: 0.5rem; }

.btn-entry-cancel,
.btn-entry-edit,
.more-entry-edit {
    font-size: 4rem; 
}

/* 新式分頁導覽元件 */
.v-pagination-wrapper { 
    text-align: center; margin-top: -2rem; margin-bottom: 4rem; padding: 0 1rem; 
    display: flex; justify-content: center; align-items: center; gap: 1.5rem; 
}

.v-nav-btn {
    width: 6rem; height: 6rem; background: #fff; border: 2px solid #ddd; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 3rem;
    color: var(--v-primary); cursor: pointer; transition: all 0.2s; user-select: none;
}
.v-nav-btn:active { transform: scale(0.9); background: #f0f0f0; }

.v-page-select {
    height: 6.5rem; padding: 0 2rem; font-size: 2.8rem; border: 2px solid #ddd;
    border-radius: 1rem; background: #fff; color: #444; font-weight: bold;
}

/* 表單樣式 */
.v-form-container { margin-top: 3rem; padding: 2rem; border: 0.3rem solid var(--v-primary); border-radius: 2.5rem; }
.v-form-container label { font-size: 4rem !important; font-weight: 900; color: #222; margin-bottom: 1.5rem; display: block; }

.v-form-container .form-control, .v-form-container select { 
    width: 100% !important; height: auto !important; padding: 2rem !important; 
    font-size: 3.5rem !important; border: 0.3rem solid #ccc !important; 
    border-radius: 1.5rem !important; background: #fafafa !important; margin-bottom: 2rem; display: block;
}

.dynamic-field-group { position: relative; margin-bottom: 2rem; }
.btn-remove-field {
    position: absolute; right: -1rem; top: -1rem; background: #ff5252; color: white; border: none;
    width: 5rem; height: 5rem; border-radius: 50%; font-size: 3.5rem; line-height: 1; z-index: 5;
    cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-add-more {
    background: #f8f9fa; border: 0.3rem dashed #ccc; color: #666; width: 100%; padding: 2rem;
    font-size: 3.5rem; border-radius: 1.5rem; margin-bottom: 3rem; cursor: pointer;
    font-weight: bold; transition: all 0.3s;
}

.btn-submit { 
    width: 100%; padding: 2.5rem; background: var(--v-primary); color: #fff; 
    border-radius: 10rem; border: none; font-size: 4.5rem; font-weight: 900; cursor: pointer; margin-top: 2rem;
}

/* 彈窗樣式 */
.v-modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(255,255,255,0.98); z-index: 99999; display: none; flex-direction: column; overflow-y: auto;
}

.v-modal-close {
    position: fixed; top: 2rem; right: 2rem; width: 12rem; height: 12rem;
    background: rgba(0,0,0,0.5); color: #fff; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    font-size: 6rem; z-index: 100001; line-height: 1;
}
.v-modal-content { padding: 12rem 4rem 6rem; width: 100%; max-width: 800px; margin: 0 auto; }
.m-media-item { width: 100%; border-radius: 1.5rem; margin-bottom: 2rem; box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1); }

.btn-invite-share {
    display: inline-block;
    width: 100%;
    max-width: 800px;
    background: #4a4a4a;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 3.8rem;
    font-weight: 800;
    padding: 1.8rem;
    border-radius: 100px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: 0.3s;
    border: none;
    cursor: pointer;
    margin-top: 2rem; 
}

.btn-invite-share:hover {
    background: #333333;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/* 投票規則區塊樣式 */
.v-vote-rules-box {
    background: #fffaf0; /* 溫慢的淺米色背景 */
    border: 1px dashed #e7e0da;
    border-radius: 15px;
    padding: 2.5rem;
    margin: 2rem 0 4rem 0;
    text-align: left;
}

.v-vote-rules-box .rules-header {
    font-size: 3.8rem;
    font-weight: 900;
    color: #8d6e63;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.v-vote-rules-box .rules-icon {
    font-size: 3.2rem;
}

.v-vote-rules-box .rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.v-vote-rules-box .rules-list li {
    font-size: 3.5rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.v-vote-rules-box .rules-list li .dot {
    color: #ffca28;
    margin-right: 1.5rem;
    font-size: 2rem;
}

.v-vote-rules-box .highlight {
    color: #ff5722;
    font-weight: bold;
    padding: 0 0.5rem;
}

/* 通用樣式容器 */
.info-board-container {
    margin-bottom: 2rem;
}

/* 🎯 獎勵通知區塊（優化為高誘因米黃高亮背景，並加強下邊距） */
.award-notice {
    margin-bottom: 2rem;
    border-left: 0.8rem solid #ff9800;
    background: #fffde7;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.award-notice .award-label {
    font-weight: bold;
    color: #e65100;
    font-size: 3.5rem; /* 手機版預設大字 */
}

.award-notice .award-content {
    color: #333;
    font-size: 3.5rem;
    line-height: 1.3;
}

.award-notice .award-prize {
    color: #d32f2f;
    font-size: 3.5rem;
    margin-top: 0.5rem;
}

.award-notice .btn-claim-link {
    background: #ff9800;
    color: white;
    padding: 1.5rem;
    border-radius: 5rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 3.5rem;
    width: 100%;
    text-align: center;
}

/* 💡 常駐攻略說明內部元件 (精準對齊手機版 3.5rem 語系) */
.award-notice .award-content-empty {
    color: #5d4037;
    font-size: 3.5rem;
    line-height: 1.4;
}

.award-notice .award-divider {
    border: 0;
    border-top: 0.3rem dashed #ffe082;
    margin: 2rem 0;
    width: 100%;
}

.award-notice .rules-title {
    font-size: 3.8rem;
    font-weight: bold;
    color: #5d4037;
    margin-bottom: 1.5rem;
}

.award-notice .rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.award-notice .rules-list li {
    font-size: 3.5rem; /* 放大手機版攻略清單字體，告別螞蟻字 */
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.award-notice .rules-footer {
    font-size: 3.2rem; /* 控制頁尾字級，避免過度膨脹 */
    color: #78909c;
    line-height: 1.6;
    margin-top: 2rem;
}

/* 投稿規定區塊 */
.entry-rules {
    background: #f9f9f9;
    border: 2px solid #ddd;
    padding: 2.5rem;
    border-radius: 1.5rem;
}

.entry-rules .rules-title {
    font-weight: 800;
    color: #333;
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #ccc;
    padding-bottom: 1rem;
}

.entry-rules ul {
    margin: 0;
    padding-left: 3.5rem;
    color: #555;
    line-height: 1.8;
    font-size: 3.5rem;
}

/* 社群卡片整體骨架 */
.v-social-link-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    padding: 1.8rem 2.5rem;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

/* 左側圓形圖示 */
.v-social-icon {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    margin-right: 2rem;
    flex-shrink: 0;
}

/* 針對不同平台的品牌色調 */
.fb-card .v-social-icon {
    background: #e7f3ff;
    color: #1877f2;
}
.tiktok-card .v-social-icon {
    background: #f0f0f0;
    color: #010101;
}

/* 右側文字排版 */
.v-social-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* 標籤文字 (手機版尺寸) */
.v-social-tag {
    font-size: 4.2rem;
    font-weight: bold;
    color: #5d4037; 
    margin-bottom: 0.4rem;
}

/* 提示動作文字 (手機版尺寸) */
.v-social-action {
    font-size: 3.6rem;
    color: #888888;
}

/* 滑過動態特效 */
.v-social-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(93, 64, 55, 0.1);
    border-color: #ffca28; 
}

/* 提示外框 */
.video-rule-notice {
    background-color: #fdfbf7; 
    border: 1px solid #f1ebd9;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 3.5rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.01);
}

/* 提示小標題 */
.notice-title {
    font-size: 3.8rem;
    font-weight: bold;
    color: #5d4037; 
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

/* 規範清單 */
.notice-list {
    margin: 0;
    padding-left: 2rem;
    list-style-type: disc;
}

.notice-list li {
    font-size: 3.5rem;
    line-height: 1.7;
    color: #666666;
    margin-bottom: 0.8rem;
}

.notice-list li:last-child {
    margin-bottom: 0;
}

/* 迷你標籤樣式：區分播放模式 */
.tag-live, .tag-link {
    display: inline-block;
    padding: 0.1rem 0.6rem;
    border-radius: 4px;
    font-size: 3.2rem;
    font-weight: bold;
    margin-right: 0.3rem;
    vertical-align: middle;
}
.tag-live {
    background-color: #e8f5e9;
    color: #2e7d32;
}
.tag-link {
    background-color: #fff3e0;
    color: #ef6c00;
}

.entry-words {
    font-size: 4rem;
}

.m-title-h2 {
    font-size:3.5rem; 
    font-weight:900; 
    color:#222; 
    margin-bottom:3rem; 
    padding-left:2rem;
}

.m-stats {
    font-size: 4.5rem; 
    color: var(--v-primary); 
    font-weight: bold; 
    text-align: center; 
    padding: 3rem 0; 
    border-top: 1px solid #eee;
}

/* ==========================================
🎯 燈箱遮罩核心樣式（手機版預設：字級 4rem）
========================================== */
.emailMask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 2rem;
}

/* 白色提示方塊本體與防呆機制 */
.emailMask-content {
    background: #ffffff;
    color: #333333;
    padding: 4rem 3rem;
    border-radius: 1.5rem;
    max-width: 700px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    position: relative;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto; /* 防止手機高度不夠時內容被切掉 */
}

/* 遮罩內的文字（手機預設 4rem） */
.emailMask-content p {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1.5;
    margin: 0 0 2.5rem 0;
}

/* 最後一段說明文字微調（避免過粗，維持手機 3.5rem 好閱讀） */
.emailMask-content p.emailMask-desc {
    font-size: 3.5rem;
    color: #666666;
    font-weight: normal;
    text-align: left;
    margin-bottom: 0;
}

/* 右上角關閉 X 按鈕 */
.emailMask-close {
    position: absolute;
    top: 1rem;
    right: 2.5rem;
    font-size: 6rem;
    cursor: pointer;
    color: #aaaaaa;
    line-height: 1;
}

/* 桌機版優化（大於 751px） */
@media (min-width: 751px) {
    .flex-entry-item { flex: 0 0 230px !important; max-width: 230px !important; }
    .entry-info { padding: 1.2rem; }
    .entry-title { font-size: 18px !important; }
    .entry-stats { font-size: 16px !important; }
    .btn-entry-cancel,
    .btn-entry-edit,
    .more-entry-edit {
        font-size: 1.5rem; 
    }
    .entry-bg-text { font-size: 14px !important; padding: 15px; }
    .v-form-container label { font-size: 2rem !important; }
    .v-form-container .form-control, .v-form-container select { font-size: 1.8rem !important; padding: 1rem !important; }
    .btn-add-more { font-size: 1.8rem; padding: 1rem; }
    .btn-remove-field { width: 2.5rem; height: 2.5rem; font-size: 1.8rem; right: -0.8rem; top: -0.8rem; }
    .btn-submit { font-size: 3.2rem !important; padding: 1.5rem !important; }
    .v-modal-close { font-size: 4rem; top: 1rem; right: 2rem; width: 6rem; height: 6rem; }
    .v-modal-content { padding-top: 6rem; }
    
    .v-nav-btn { width: 40px; height: 40px; font-size: 20px; }
    .v-page-select { height: 40px; font-size: 16px; padding: 0 10px; }
    .v-pagination-wrapper { gap: 10px; }

    /* 🎯 領獎區塊桌機版優化：轉為橫向 flex，左右兩側完美對齊，避免過度拉伸 */
    .award-notice {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 2rem 2.5rem !important;
    }
    .award-notice .award-label { font-size: 2rem !important; }
    .award-notice .award-content { font-size: 1.8rem !important; }
    .award-notice .award-prize { font-size: 1.6rem !important; }
    .award-notice .btn-claim-link { font-size: 1.8rem !important; width: auto !important; padding: 1rem 3rem !important; }

    /* 💡 常駐說明區塊桌機版覆寫：強制維持縱向排列，並精準限縮各元件字級 */
    .award-notice.award-info-placeholder {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }
    .award-notice .award-content-empty { font-size: 1.8rem !important; margin-bottom: 1rem !important; }
    .award-notice .award-divider { border-top-width: 1px !important; margin: 1.5rem 0 !important; }
    .award-notice .rules-title { font-size: 2rem !important; margin-bottom: 1rem !important; }
    .award-notice .rules-list li { font-size: 1.7rem !important; margin-bottom: 0.8rem !important; }
    .award-notice .rules-footer { font-size: 1.5rem !important; margin-top: 1rem !important; }

    .entry-rules ul {
        line-height: 1.8;
        font-size: 1.8rem;
    }

    .btn-invite-share {
        font-size: 2.5rem;
        padding: 1.5rem;
    }

    .v-vote-rules-box {
        padding: 2rem;
        margin: 2rem 0 3rem 0;
    }
    .v-vote-rules-box .rules-header {
        font-size: 3.2rem;
    }
    .v-vote-rules-box .rules-list li {
        font-size: 1.8rem;
    }

    .v-social-link-card {
        max-width: 500px; 
        margin-left: auto;
        margin-right: auto;
        padding: 2rem 3rem;
    }
    
    .v-social-tag {
        font-size: 2.6rem;
    }
    
    .v-social-action {
        font-size: 1.8rem;
    }

    .video-rule-notice {
        padding: 2rem 2.5rem; 
    }

    .notice-title {
        font-size: 2.2rem; 
    }

    .notice-list li {
        font-size: 1.7rem; 
        line-height: 1.8;
    }
    
    .tag-live, .tag-link {
        font-size: 1.4rem; 
        padding: 0.2rem 0.8rem;
    }
    
    .entry-words {
        font-size:1.8rem;
    }

    .m-title-h2 {
        font-size: 2.5rem; 
    }

    .m-stats {
        font-size: 2.5rem; 
    }

    .emailMask-content {
        padding: 3rem;
        border-radius: 8px;
        max-width: 600px;
    }

    /* 桌機版字級精準切換回 1.8rem */
    .emailMask-content p {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .emailMask-content p.emailMask-desc {
        font-size: 1.5rem;
    }

    .emailMask-close {
        top: 1rem;
        right: 2rem;
        font-size: 3rem;
    }
}

/* ==========================================
📱 手機版預設（小於等於 750px）
固定在螢幕最下方，洗鍊不擋中央視線
========================================== */
.countdown-card {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    z-index: 9999;
    background: rgba(20, 20, 20, 0.95); /* 深色洗鍊背景 */
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(212, 175, 55, 0.4); /* 上方淡淡金色邊框 */
    padding: 10px 16px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.countdown-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* 純 CSS 精緻時鐘 Icon 容器 */
.clock-icon-wrapper {
    position: relative;
    width: 30px;
    height: 30px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.css-clock-icon {
    width: 16px;
    height: 16px;
    border: 2px solid #d4af37; /* 金色 */
    border-radius: 50%;
    position: relative;
}

.css-clock-icon::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 5px;
    background: #d4af37;
    top: 2px;
    left: 5px;
    transform-origin: bottom center;
    animation: clockSpin 6s linear infinite;
}

/* 文字區域 */
.countdown-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-left: 6px;
}

.notice-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.notice-date {
    color: #b0b0b0;
    font-size: 11px;
    margin-top: 1px;
}

.highlight-date {
    color: #d4af37;
    font-weight: bold;
}

/* 倒數天數標籤 */
.countdown-badge {
    background: #d4af37;
    color: #1e1e1e;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 動態特效 */
@keyframes clockSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes floatingNotice {
    0% { transform: translateY(0); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
    50% { transform: translateY(-6px); border-color: rgba(212, 175, 55, 0.6); box-shadow: 0 10px 25px rgba(212,175,55,0.15); }
    100% { transform: translateY(0); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
}

/* ==========================================
💻 桌機版優化（大於 751px）
轉為右下角優雅浮動小卡，並加入微呼吸特效
========================================== */
@media (min-width: 751px) {
    .countdown-card {
        bottom: 24px;
        right: 24px;
        left: auto;
        width: auto;
        max-width: 350px;
        border: 1px solid rgba(212, 175, 55, 0.3);
        border-radius: 12px;
        padding: 12px 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        animation: floatingNotice 3s ease-in-out infinite; /* 桌機版才啟動浮動特效 */
    }
    
    .countdown-content {
        justify-content: flex-start;
        gap: 14px;
    }
    
    .clock-icon-wrapper {
        width: 32px;
        height: 32px;
    }
    
    .css-clock-icon {
        width: 18px;
        height: 18px;
    }
    
    .css-clock-icon::after {
        height: 6px;
        left: 6px;
    }
    
    .countdown-text {
        margin-left: 0;
    }
    
    .notice-title {
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .notice-date {
        font-size: 12px;
        margin-top: 2px;
    }
    
    .countdown-badge {
        font-size: 12px;
    }
}

body.noscroll { overflow: hidden !important; height: 100%; }