/* style.css */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 500px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

header {
    margin-bottom: 20px;
}

header h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

header p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.qr-code {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px auto;
    display: block;
}

.actions .action-card {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.action-card h2 {
    margin-top: 0;
    font-size: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-secondary {
    background-color: #28a745;
    color: #fff;
}

.find-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.find-form input[type="text"] {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

.create-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 10px;
}

.code-display {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
}

#copy-btn {
    margin-bottom: 20px;
}

.content-card {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    white-space: pre-wrap; /* a尊重换行和空格 */
    word-wrap: break-word;
}

.text-center {
    text-align: center;
}

.back-link {
    margin-top: 20px;
}

.back-link a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}
