body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

h1, h2 {
    text-align: center;
    color: #333;
}

textarea, input[type="password"], input[type="text"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

#generated-link-container p {
    margin-top: 0;
    margin-bottom: 5px;
    font-weight: bold;
}

#generated-link {
    margin-bottom: 5px;
}

#message-display p:first-child {
    font-weight: bold;
    margin-bottom: 5px;
}

pre {
    background-color: #eee;
    padding: 15px;
    border-radius: 4px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 15px;
}

.warning {
    color: #d9534f;
    font-style: italic;
    text-align: center;
    margin-top: 15px;
}

#message-status {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }

    textarea, input[type="password"], input[type="text"], button {
        font-size: 15px;
    }
}