/* style.css */

/* 重置一些瀏覽器預設邊距 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f9;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- 以下是首頁專用樣式 --- */
.home-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 20px;
    text-align: center;
}

.tool-list {
    list-style: none;
    margin-top: 2rem;
}

.tool-list li {
    margin-bottom: 1rem;
}

.tool-link {
    display: block;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-weight: bold;
    transition: transform 0.2s;
}

.tool-link:hover {
    transform: translateY(-3px);
    background-color: #eef;
}

.glass-card {
    /* 1. 半透明背景色 (必備) */
    background: rgba(255, 255, 255, 0.2); 
    
    /* 2. 毛玻璃模糊效果 (核心) */
    /* 數值越大越模糊，通常 10px - 20px 效果最好 */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* 為了兼容 Safari */

    /* 3. 邊框細節：增加玻璃的邊緣感 */
    border: 1px solid rgba(255, 255, 255, 0.3);

    /* 4. 圓角與陰影：增加立體感 */
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* 內容排版 */
    padding: 2rem;
    color: white;
}

.snap-card {
        /* 確保背景有豐富的漸層或底圖，毛玻璃才會好看 */
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .card-content {
        /* 套用毛玻璃配方 */
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 24px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        
        width: 85%; /* 在手機上留出一點邊距 */
        max-width: 400px;
        padding: 40px 20px;
        transition: transform 0.3s ease;
    }
    
    /* 互動小驚喜：點擊或觸碰時縮小一點點 */
    .card-content:active {
        transform: scale(0.98);
    }