* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f0f2f5;
    padding-bottom: 80px;
}

.container {
    max-width: 520px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6)), url('1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 32px 24px 28px;
    text-align: left;
    position: relative;
}

.hero-badge {
    background: rgba(255, 215, 0, 0.2);
    display: inline-block;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(2px);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
}

.hero p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 60px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.floating-counter {
    position: fixed;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.counter-card {
    background: linear-gradient(145deg, #1e2a2a, #0f1a1a);
    backdrop-filter: blur(8px);
    border-radius: 28px;
    padding: 12px 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(255, 215, 0, 0.3);
    pointer-events: auto;
    min-width: 110px;
    border: 1px solid rgba(255, 200, 50, 0.5);
    animation: counterGlow 0.8s ease-in-out infinite alternate;
}

@keyframes counterGlow {
    0% {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }

    100% {
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(255, 100, 0, 0.6);
        transform: scale(1.02);
    }
}

.counter-number {
    font-size: 28px;
    font-weight: 800;
    color: #FFC057;
    line-height: 1.2;
    letter-spacing: 1px;
}

.counter-label {
    font-size: 11px;
    color: #e0e0e0;
    font-weight: 500;
    margin-top: 4px;
}

.countdown-box {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 10px 12px;
    text-align: center;
    border-left: 3px solid #ff884d;
    border-right: 3px solid #ff884d;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

.countdown-title {
    font-size: 10px;
    font-weight: 600;
    color: #ffaa66;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.countdown-timer {
    font-size: 20px;
    font-weight: 800;
    font-family: monospace;
    color: #fff;
    background: #2c2c2c;
    padding: 4px 8px;
    border-radius: 40px;
    display: inline-block;
    letter-spacing: 2px;
}

.flash {
    animation: pulseRed 0.6s ease-out;
}

@keyframes pulseRed {
    0% {
        text-shadow: 0 0 0px #ffaa44;
        transform: scale(1);
    }

    50% {
        text-shadow: 0 0 12px #ff6600;
        transform: scale(1.08);
        color: #ffcc55;
    }

    100% {
        text-shadow: 0 0 0px #ffaa44;
        transform: scale(1);
    }
}

@media (max-width: 640px) {
    .floating-counter {
        right: 8px;
        top: auto;
        bottom: 100px;
        transform: none;
        flex-direction: row;
        gap: 8px;
    }

    .counter-card {
        min-width: 95px;
        padding: 8px 8px;
    }

    .counter-number {
        font-size: 22px;
    }

    .countdown-box {
        padding: 6px 10px;
    }

    .countdown-timer {
        font-size: 16px;
    }
}

.section {
    padding: 28px 20px;
    border-bottom: 1px solid #eee;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e2a32;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-list {
    background: #f8fafc;
    border-radius: 20px;
    padding: 16px;
    margin-top: 12px;
}

.check-item {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 500;
}

.check-icon {
    background: #FFC057;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.img-box {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    margin: 16px 0 8px;
    background: #eef2f6;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.img-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.btn {
    display: block;
    text-align: center;
    background: #FFC057;
    color: #1e3a2f;
    padding: 16px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    margin-top: 20px;
    transition: all 0.2s;
    border: none;
    width: 100%;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #FFC057;
    color: #1e3a2f;
    box-shadow: none;
}

.small-text {
    font-size: 12px;
    text-align: center;
    margin-top: 12px;
    color: #6b7280;
    line-height: 1.6;
}

.live-counter-inline {
    background: #fff2e8;
    padding: 8px 12px;
    border-radius: 30px;
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #c73c00;
    margin-top: 12px;
}

.comment-section {
    background: #fefefe;
    padding: 20px;
    border-top: 8px solid #f1f5f9;
}

.comment {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
    flex-shrink: 0;
}

.comment-body {
    background: #f1f5f9;
    padding: 12px 14px;
    border-radius: 20px;
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.comment-name {
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-time {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 6px;
}

.comment-like {
    font-size: 11px;
    color: #5b6e8c;
    margin-top: 5px;
}

.comment-input-box {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    background: white;
    padding: 6px 6px 6px 16px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
}

.comment-input-box input {
    flex: 1;
    border: none;
    padding: 12px 0;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.comment-input-box button {
    background: #FFC057;
    border: none;
    color: white;
    padding: 0 20px;
    border-radius: 40px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

.fixed-btn {
    position: fixed;
    bottom: -7px;
    left: 0;
    width: 100%;
    display: block;
    text-decoration: none;
    background: #FFC057;
    color: #1e3a2f;
    text-align: center;
    padding: 16px 16px 23px;
    font-weight: 800;
    font-size: 18px;
    z-index: 1000;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    border: none;
    animation: btnBob 1.1s ease-in-out infinite;
}

/* 底部「888」按鈕上下跳動 */
@keyframes btnBob {
    0% {
        transform: translateY(0);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    }

    50% {
        transform: translateY(-7px);
        box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.2);
    }

    100% {
        transform: translateY(0);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fixed-btn {
        animation: none;
    }
}

.popup-container {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1001;
    pointer-events: none;
}

.popup-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 10px 12px;
    border-radius: 28px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    font-size: 13px;
    gap: 10px;
    border-left: 4px solid #FFC057;
    pointer-events: auto;
    animation: fadeUp 0.25s ease;
}

/* 頭像外鏈載入失敗時的彩色底色 */
.popup-item:nth-child(1) .avatar {
    background-color: #9ec9b4;
}

.popup-item:nth-child(2) .avatar {
    background-color: #c9b79e;
}

.popup-item:nth-child(3) .avatar {
    background-color: #a8b9d4;
}

.popup-item:nth-child(4) .avatar {
    background-color: #d4a8b6;
}

.popup-item:nth-child(5) .avatar {
    background-color: #b6c79e;
}

.popup-item:nth-child(6) .avatar {
    background-color: #c9b0d4;
}

.popup-item:nth-child(7) .avatar {
    background-color: #9ec5c9;
}

.popup-item:nth-child(8) .avatar {
    background-color: #d4c19e;
}

.popup-item:nth-child(9) .avatar {
    background-color: #aeb0c9;
}

.popup-item:nth-child(10) .avatar {
    background-color: #c9a89e;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-12px);
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(3px);
}

.modal-box {
    background: white;
    width: 85%;
    max-width: 320px;
    padding: 28px 20px 32px;
    border-radius: 32px;
    text-align: center;
    animation: scaleIn 0.2s;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.badge-leader {
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 40px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 16px;
}

.trust-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.trust-item {
    flex: 1;
    background: #f9f9ff;
    border-radius: 20px;
    padding: 10px 6px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
}

.quote {
    background: #f0f7f2;
    padding: 14px;
    border-radius: 20px;
    font-style: italic;
    color: #1e4620;
}

/* ===== 步驟引導區 ===== */
.steps-section {
    background: #f8faff;
    padding: 28px 20px;
    border-bottom: 1px solid #eee;
}

.steps-section .section-title {
    justify-content: center;
    text-align: center;
}

.step-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    padding: 16px 14px 14px;
    flex: 1;
    min-width: 80px;
    max-width: 130px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f6;
    transition: transform 0.2s;
}

.step-item:hover {
    transform: translateY(-4px);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #06C755, #049a44);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.step-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.step-label {
    font-size: 13px;
    font-weight: 600;
    color: #1e2a32;
    text-align: center;
    line-height: 1.3;
}

.step-label small {
    display: block;
    font-weight: 400;
    font-size: 11px;
    color: #6c757d;
    margin-top: 2px;
}

.step-arrow {
    font-size: 22px;
    color: #06C755;
    font-weight: 300;
}

@media (max-width: 420px) {
    .step-item {
        min-width: 70px;
        padding: 12px 10px;
    }

    .step-number {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .step-icon {
        font-size: 22px;
    }

    .step-label {
        font-size: 12px;
    }

    .step-arrow {
        font-size: 16px;
    }
}

/* 手機版：彈窗上移，避免被右下角倒數卡片／底部按鈕蓋住 */
@media (max-width: 640px) {

    .popup-container {
        bottom: 170px;
        width: 92%;
    }
}