/* style.css 内容与之前提供的完全相同，无需修改 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 90%;
    transform: translateY(0);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2em;
    font-weight: 600;
}

h2 {
    color: #2c3e50;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.6em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

h3 {
    color: #34495e;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.description {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.05em;
}

.info-bar {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; /* 允许换行 */
    background-color: #e9ecef;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.info-item {
    font-size: 0.95em;
    color: #555;
    font-weight: 500;
    margin: 5px 10px; /* 增加间距 */
}

.info-item span {
    font-weight: bold;
    color: #007bff;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    outline: none;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
    margin: 10px 5px;
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

button:active {
    background-color: #004085;
    transform: translateY(0);
}

.key-display-area {
    margin-top: 35px;
    text-align: left;
    position: relative;
}

.key-display-area label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

#apiKeyOutput {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Consolas', 'Monaco', monospace;
    background-color: #f8f9fa;
    color: #495057;
    resize: vertical;
    min-height: 50px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.copy-button {
    background-color: #28a745;
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 0.95em;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.2);
}

.copy-button:hover {
    background-color: #218838;
}

.copy-message {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #5cb85c;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.copy-message.show {
    opacity: 1;
    visibility: visible;
}

.footer-note {
    margin-top: 20px; /* 调整间距 */
    font-size: 0.9em;
    color: #888;
}

/* Admin Area Styles */
.admin-area {
    margin-top: 50px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px dashed #ced4da;
}

.admin-area input[type="text"],
.admin-area input[type="password"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1em;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.admin-button {
    background-color: #ffc107;
    color: #333;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.2);
}

.admin-button:hover {
    background-color: #e0a800;
}

.admin-button.logout-button {
    background-color: #dc3545;
    color: white;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.2);
}
.admin-button.logout-button:hover {
    background-color: #c82333;
}


.admin-message {
    margin-top: 15px;
    font-size: 0.9em;
    color: #dc3545;
    min-height: 1.2em;
}

.admin-message.success {
    color: #28a745;
}

.hidden {
    display: none;
}

.admin-info-bar {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background-color: #e2f0cb;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
