:root {
    --primary-color: #4A90E2;
    --secondary-color: #F5A623;
    --accent-color: #7ED321;
    --bg-color: #FAFAFA;
    --text-color: #333;
    --card-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, "Microsoft JhengHei";
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0; padding: 0;
}

/* 導覽列保持簡約 */
nav {
    background: white;
    padding: 1rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
}

.logo { font-size: 1.6rem; font-weight: bold; color: var(--primary-color); display: flex; align-items: center; gap: 10px; }
.logo img{
    width:150px;
    content:url(../logos/logo_hori.png);
}
nav ul { list-style: none; display: flex; gap: 30px; margin: 0; }
nav a { text-decoration: none; color: var(--text-color); font-weight: 500; transition: color 0.3s; }
nav a:hover { color: var(--primary-color); }

/*.about h2{
    text-align: left;
}*/

/* 延續好看的 Hero Section */
.hero {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    padding: 100px 8%;
    text-align: center;
    margin-bottom: 20px;
}

.hero h1 { font-size: 2.8rem; color: #1a365d; margin-bottom: 25px; line-height: 1.3; }
.hero p { font-size: 1.25rem; max-width: 850px; margin: 0 auto 40px; color: #4a5568; }

.cta-group { display: flex; gap: 20px; justify-content: center; }
.cta-button { padding: 15px 40px; border-radius: 35px; text-decoration: none; font-weight: bold; transition: all 0.3s; }
.btn-primary { background: var(--secondary-color); color: white; box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4); }
.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); }
.cta-button:hover { transform: translateY(-3px); opacity: 0.9; }

/* 核心版塊設計 */
.section { padding: 80px 8%; max-width: 1300px; margin: 0 auto; }
h2 { text-align: center; font-size: 2.2rem; color: #2d3748; margin-bottom: 50px; position: relative; }
h2::after { content: ''; display: block; width: 60px; height: 5px; background: var(--accent-color); margin: 15px auto; border-radius: 5px; }

/* 分類卡片設計（針對未來擴展） */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 35px; }
.category-card { 
    background: white; padding: 45px 35px; border-radius: 20px; 
    box-shadow: var(--card-shadow); text-align: center; 
    transition: all 0.4s ease; border: 1px solid #f0f0f0;
    cursor: pointer;
}
.category-card:hover { transform: translateY(-12px); border-color: var(--primary-color); }
.icon-circle { 
    width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 25px; 
    display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
}

/* 頁尾 */
footer { background: #2d3748; color: white; padding: 60px 8%; text-align: center; }
.footer-logo { font-size: 1.8rem; font-weight: bold; margin-bottom: 20px; display: block; }
.footer-info { opacity: 0.7; font-size: 0.9rem; line-height: 1.8; }

.section .section-image-div{
    text-align: center;
    margin-bottom: 10px;
}

.iframe-manual{
    height: 500px;
}

.section iframe {
    zoom: 0.5;
}

.icon-circle {
    width: 250px; /* 稍微加大一點以適應圖片 */
    height: 250px;
    background-color: #eee;
    border-radius: 50%;
    margin-bottom: 15px;
    overflow: hidden; /* 確保圖片不超出圓圈 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 關鍵：裁切圖片以填滿圓圈而不變形 */
}

.shop {
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    padding: 5px 15px;
    color: #fff;
    background-color: var(--primary-color);
}
.shop:hover { color: #fff; }


.floating-btn {
    position: fixed;       /* 距離右側距離 */
    height: 56px;
    color: white;
    border: none;
    padding: 16px 28px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;       /* 完美的膠囊圓角 */
    cursor: pointer;
    z-index: 9999;             /* 確保永遠浮在最上層 */
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease; /* 讓所有動態都變柔和 */
}

.floating-shop{
    /*bottom: 110px; */             /* 距離底部距離 */
    bottom: calc(110px + (100vh - 100dvh));
    right: 30px;        
    background-color: var(--secondary-color); /* 使用主網站好看的橘黃色 */
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4); /* 帶有主色調的立體陰影 */
}

.floating-whatsapp{
    /*bottom: 30px; */             /* 距離底部距離 */
    bottom: calc(30px + (100vh - 100dvh));
    right: 30px;        
    background-color: #25d366;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); /* 帶有主色調的立體陰影 */
}

.floating-whatsapp img {
    width: 30px;
    height: 30px;
}

/* 滑鼠移上去時的微動態特效 */
.floating-shop:hover {
    transform: translateY(-5px); /* 輕微向上浮起 */
    box-shadow: 0 10px 25px rgba(245, 166, 35, 0.6); /* 陰影變深，視覺更立體 */
    opacity: 0.95;
}

/* 滑鼠移上去時的微動態特效 */
.floating-whatsapp:hover {
    transform: translateY(-5px); /* 輕微向上浮起 */
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6); /* 陰影變深，視覺更立體 */
    opacity: 0.95;
}

/* 點擊時的下壓反饋 */
.floating-btn:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .cta-group { flex-direction: column; }
    .section-image {max-width: auto;}
    .iframe-manual{
        height: 900px;
    }
    .section iframe {
         zoom: 1;
    }
    .section .section-image-div img{
        width: 100%;
        max-width: none;
    }

    .section h2{
        text-align: center;
    }

    .logo img{
        width: 50px;
        content:url(../logos/logo_only.jpg);
    }
}

@media screen and (max-device-width: 450px) {

    .iframe-manual{
        height: 1200px;
    }

    .section iframe {
        zoom: 1;
        /*-moz-transform:scale(1);
        -moz-transform-origin: 0 0;
        -o-transform: scale(1);
        -o-transform-origin: 0 0;
        -webkit-transform: scale(1);
        -webkit-transform-origin: 0 0;*/
    }

    .logo img{
        width: 50px;
        content:url(../logos/logo_only.jpg);
    }

    nav ul {
        margin-top: 20px;
        font-size: 12px;
        justify-content: flex-end;
    }
}

/*@media (max-width: 450px) {

    .logo img{
        width: 150px;
        content:url(../logos/logo_hori.png);
    }

    nav {
        display: block;
    }
    nav ul {
        margin-top: 20px;
        justify-content: flex-end;
    }

}
*/