/*首頁大圖*/
.hero {
    width: 100%;
    height: 100vh;
    background-image: url('../img/首頁大圖.JPG') ;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-end; /*讓文字區塊靠右 */
    padding: 0 10%; /* 讓內容與右側保持間距 */
    color: white;
}

/*文字內容區塊 */
.hero-content {
    max-width: 400px; /*限制寬度避免過寬*/
    text-align: left;
    letter-spacing: 2px;
    line-height:2;
}

/* 標題與段落 */
.hero-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* 按鈕樣式 */
.hero-button {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.8); /*黑色半透明背景*/
    color: white;
    text-decoration: none;
    font-size: 16px;
    border-radius: 30px; /*圓角*/
    
}

.hero-button:hover {
    background: rgba(21, 21, 21, 0.5); /* 變淺的黑色 */
}

/* 響應式手機版調整 */
@media (max-width: 768px) {
    .hero {
        justify-content: center; /*讓內容置中 */
        align-items: flex-end; /*讓內容靠圖片底部 */
        padding-bottom: 50px; /*增加底部間距，避免貼到底 */
        text-align: center;
    }

    .hero-content {
        max-width: 90%;
    }

    .hero-button {
        display: inline-block;
        padding: 12px 24px;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        text-decoration: none;
        font-size: 16px;
        border-radius: 30px;
    }
}


/*特色介紹*/
.features {
    display: flex;
    justify-content: center; /* 讓卡片置中 */
    gap: 20px; /* 卡片間距 */
    padding: 50px 10%;
    flex-wrap: wrap; /* 避免超出螢幕，讓內容換行 */
}

.feature-section {
    text-align: center;
    padding: 50px 10%;
}

/*標題樣式*/
.feature-h1 h1 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

/* 卡片樣式*/
.feature-card {
    background: white;
    padding: 60px;
    border-radius: 15px; /* 圓角 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 陰影 */
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* 滑鼠懸停時放大效果 */
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/*  標題樣式 */
.feature-card h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

/* 內容文字樣式 */
.feature-card p {
    font-size: 16px;
    color: #666;
}

/* 響應式手機版調整 */
@media (max-width: 768px) {
    .features {
        flex-direction: column; /* 改為單欄排列 */
        align-items: center;
    }
}
