/* 簡單的重置樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 設置頁面的背景顏色和字體 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #e0eafc, #cfdef3);
    color: #333;
    padding: 50px;
    overflow-x: hidden; /* 防止水平滾動條 */
}

/* 標題樣式 */
h1 {
    color: #0056b3;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.8rem;
    font-weight: 700;
    animation: fadeIn 1s ease-out;
}

h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 500;
    animation: fadeIn 1.5s ease-out;
}

h3, h4 {
    color: #555;
    text-align: center;
    font-weight: 400;
    animation: fadeIn 2s ease-out;
}

/* 表單樣式 */
form {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    animation: slideIn 0.5s ease-out;
}

/* 標籤和文本區域樣式 */
label {
    display: block;
    font-weight: 600;
    margin-bottom: 14px;
    color: #333;
    font-size: 1.1rem;
}

textarea {
    width: 100%;
    height: 200px;
    padding: 16px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 20px;
    resize: vertical; /* 允許垂直調整大小 */
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
    background: #f9f9f9;
}

textarea:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 12px rgba(0, 86, 179, 0.4);
    background: #fff;
}

/* 按鈕樣式 */
button {
    background-color: #0056b3;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

button:hover {
    background-color: #004494;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

button:active {
    background-color: #003378;
    transform: translateY(1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 下載鏈接樣式 */
#downloadLink {
    display: block;
    margin-top: 20px;
    text-align: center;
    color: #0056b3;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s, transform 0.2s;
}

#downloadLink:hover {
    color: #003378;
    text-decoration: underline;
    transform: scale(1.05);
}

/* 動畫效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
