/* 基本樣式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding: 20px;
    /* 背景圖片設定 */
    background-image: url('your-background-image.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

/* 標題和介紹區域 */
#intro {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

#intro p {
    font-size: 1.2em;
    color: #444;
    font-weight: 500;
}

/* 主要內容區域 */
#info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 每個媒體項目的樣式 */
.media-item {
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 圖片樣式 */
.media-item img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 視頻樣式 */
.media-item video {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 說明文字樣式 */
.explanation {
    text-align: center;
    font-size: 1.05em;
    color: #444;
    line-height: 1.6;
    max-width: 800px;
    font-weight: 400;
    margin-bottom: 15px;
}

/* 下載按鈕樣式 */
.download-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.download-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.download-btn:active {
    transform: translateY(0);
}

/* 按鈕容器 */
.download-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

/* 純文本項目的特殊樣式 */
.media-item p.explanation:only-child {
    font-size: 1.1em;
    padding: 20px;
    background-color: rgba(248, 249, 250, 0.8);
    border-left: 4px solid #007bff;
    text-align: left;
    border-radius: 4px;
    width: 100%;
}

/* 響應式設計 */
@media (max-width: 768px) {
    body {
        padding: 15px;
        background-attachment: scroll;
    }
    
    #info {
        gap: 20px;
    }
    
    .media-item {
        padding: 20px;
    }
    
    .explanation {
        font-size: 1em;
    }
    
    #intro {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .download-btn {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .media-item {
        padding: 15px;
    }
    
    #intro {
        padding: 15px;
    }
    
    .download-btn {
        padding: 8px 14px;
        font-size: 0.85em;
    }
}