/* 基本重置與字體設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    padding: 20px;


}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

h1 {
    color: #2c3e50;
    font-size: 2.5em;
}


/* 標語容器 */
.slogan-container {
    text-align: center;
}

h2 {
    font-size: 5em;
    font-weight: 900;
    letter-spacing: 5px;
}

/* 每個單字的初始狀態 */
.word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* 標語動畫效果 */
.word.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 特定單字的樣式與動畫 */
/* "cutexyz" - 顏色與動畫延遲 */
.word:nth-child(1) {
    color: #000000;
    animation-delay: 0.1s;
}

/* "study" - 顏色與動畫延遲 */
.word:nth-child(2) {
    color: #3498db;
    animation-delay: 0.3s;
}

/* "list" - 顏色與動畫延遲 */
.word:nth-child(3) {
    color: #2ecc71;
    animation-delay: 0.5s;
}

/* 添加 hover 效果 */
.word:hover {
    transform: scale(1.1) rotate(5deg);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 網站清單容器設定 */
.container {
    display: grid;
    /* 在大螢幕上顯示兩欄，每欄等寬 */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px; /* 項目之間的間距 */
    max-width: 1200px;
    margin: 0 auto;
}

/* 每個網站項目設定 */
.website-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* 防止圖片超出邊界 */
    transition: transform 0.3s ease;
}

.website-item:hover {
    transform: translateY(-5px);
}

.website-image {
    width: 100%;
    height: auto;
    overflow: hidden; /* 防止圖片變形 */
}

.website-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 確保圖片不變形並填滿容器 */
}

.website-content {
    padding: 20px;
}

.website-content h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #2980b9;
}

.website-content p {
    font-size: 1em;
    color: #555;
}

/* RWD 調整 */
@media (max-width: 768px) {
    /* 在小螢幕上，grid 會自動調整為單欄 */
    .container {
        grid-template-columns: 1fr;
    }
}