        body {
            font-family: '微軟正黑體', 'Microsoft JhengHei', sans-serif; /* 更改字體 */
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background-color: #f6deb9;
            margin: 0;
            color: #333;
        }

        .container {
            background-color: #fff;
            padding: 50px;
            border-radius: 15px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); /* 更明顯的陰影 */
            text-align: center;
            width: 100%;
            max-width: 400px;
        }

        h1 {
            color: #4e167d;
            margin-bottom: 40px;
        }

        h2 {
            color: #000000;
            margin-bottom: 30px;
        }

label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
}

input[type="text"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

        button {
            padding: 12px 25px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1.1em;
            transition: background-color 0.3s ease;
        }

        button:hover {
            background-color: #0056b3;
        }

        #result {
            margin-top: 40px;
            padding: 20px;
            background-color: #e0f2f7;
            border: 1px solid #a7d9ee;
            border-radus: 8px;
            font-size: 1.3em;
            font-weight: bold;
            color: #0056b3;
            min-height: 50px;
            display: flex;
            justify-content: center;
            align-items: center;
            word-break: break-word;
            line-height: 1.6; /* 行高 */
        }

.error {
    color: #dc3545;
}
