/* 全局樣式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* 頁面標頭 */
.header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #ffffff;
}

.logo {
    height: 50px;
}

/* 主標題置中並加強效果 */
.main-title {
    text-align: center;
    font-size: 34px;
    margin: 10px 0; /* 調整標題位置，使其靠上 */
    color: #2c3e50;
    font-weight: bold;
}

/* 主內容區域（增加卡片效果） */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

/* 優化下拉式選單與輸入框統一寬度 */
select, textarea, input {
    width: calc(100% - 20px); /* 確保寬度統一 */
    margin-bottom: 15px;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background: #fafafa;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    resize: none; /* 禁止手動調整大小 */
    color: blue; /* 讓輸入框的文字顯示為藍色 */
}

select:focus, textarea:focus, input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
    background: #fff;
}

select:hover, textarea:hover, input:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

button {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 18px;
    background: linear-gradient(90deg, #28a745, #218838);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

button:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, #218838, #1e7e34);
}

button:active {
    transform: scale(0.98);
}

/* 表單顯示預設為可見 */
#generate-form, #convert-form {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* 頁腳美化 */
.footer {
    text-align: center;
    margin-top: 30px;
    padding: 10px;
    font-size: 12px;
    color: #aaa;
    background: #ffffff;
}

.footer a {
    color: #aaa;
    text-decoration: none;
}
