* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7f8f8;
    color: #ffffff;
    line-height: 1.6;
}

/* ========== 進場動畫 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 首頁使用浮出效果 */
.hero .content {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

/* 其他頁面等滾動到時才滑入 */
.product-text-content, .architecture h2, .architecture img, .product-image img, .large-content, .tutorial-video, .tutorial-qr,.tutorial-container {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 當滾動到視窗範圍內時出現 */
.reveal {
    opacity: 1 !important;
    transform: translateX(0) !important;
}


/* ========== 每一頁的設計 ========== */
.page {
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 半透明遮罩層，讓背景圖片變淡 */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(25, 25, 25, 0.6);
}

/* 內容區塊 */
.content {
    position: relative;
    background: rgba(255, 255, 255, 0.7); /* 確保鵝黃色區塊完全不透明 */
    padding: 60px 100px;
    border-radius: 0px;
    box-shadow: 0 4px 6px rgba(25, 25, 25, 1);
    text-align: center;
    color:rgba(29, 15, 151, 0.769);
}

/* 文字大小設定 */
.content h1 {
    font-size: 5rem;
}

.content p {
    font-size: 2rem;
    margin-top: 20px;
    color:black
}

/* ========== 產品介紹 (左右佈局) ========== */
.product-container {
    position: relative;
    display: flex;
    width: 80%;
    align-items: center;
    gap: 100px;
}

/* 產品圖片區塊 */
.product-image {
    flex: 1;
    display: flex;
    justify-content: center;
    background: none !important;
}

.product-image img {
    width: 100%;
    height: auto;
}

/* 產品介紹文字區塊 */
.product-text {
    flex: 1;
    display: flex;
    justify-content: center;
    background: none !important;
}

/* 產品介紹內文字區塊 */
.product-text-content {
    background: rgba(255, 255, 255, 0.7); /* 確保鵝黃色背景完全不透明 */
    padding: 50px;
    border-radius: 0px;
    box-shadow: 0 6px 12px rgba(25, 25, 25, 1);
    text-align: left;
    max-width: 900px;
    color:#000000
}

/* 文字大小縮小 6 倍 */
.product-text-content h2 {
    font-size: 2.5rem; /* 原本 8rem，縮小 6 倍 */
    margin-bottom: 20px;
    color:rgba(29, 15, 151, 0.769)
}

.product-text-content ul {
    list-style-type: disc;
    padding-left: 40px;
    font-size: 1.5rem; /* 原本 7rem，縮小 6 倍 */
    background: none !important;
}

/* ========== 技術架構圖設計 ========== */
.large-content {
    position: relative;
    background: rgba(26, 76, 114, 0.8); /* 確保技術架構圖背景完全不透明 */
    padding: 50px 120px;
    border-radius: 0px;
    box-shadow: 0 8px 16px rgba(25, 25, 25, 1);
}

.architecture h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    top: -10px;
}

.architecture img {
    border: 3px solid #000000;
    width: 150%;
    max-width: 800px;
    height: auto;
}
/* ========== 第四頁：實際操作介紹與掃描體驗 ========== */
.tutorial-container {
    display: flex;
    width: 80%;
    align-items: center;
    gap: 40px;
}

/* 左側：影片介紹區塊 */
.tutorial-video {
    flex: 3;
    text-align: center;
    background: rgba(26, 76, 114, 0.8);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(25, 25, 25, 1);
}

.tutorial-video video {
    width: 100%;
    border-radius: 10px;
}

/* 右側：QR Code 區塊 */
.tutorial-qr {
    flex: 1;
    text-align: center;
    background: rgba(26, 76, 114, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(25, 25, 25, 1);
}

.tutorial-qr img {
    width: 100%;
    max-width: 200px;
    border-radius: 10px;
}
