/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f7f9fa;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2.5rem;
    color: #2b3a4f;
    text-align: center;
    margin-bottom: 10px;
}

.header p {
    font-size: 1rem;
    color: #5e6e80;
    text-align: center;
    margin-bottom: 30px;
}

/* 输入框样式 */
.input-container {
    margin-bottom: 20px;
}

.input-container label {
    display: block;
    font-size: 1rem;
    color: #5e6e80;
    margin-bottom: 5px;
}

.input-container input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.1);
    outline: none;
    color: #333;
}

.input-container input:focus {
    border-color: #4caf50;
    box-shadow: inset 0px 0px 5px rgba(76, 175, 80, 0.5);
}

/* 按钮样式 */
.btn-get, .btn-qr {
    background-color: #4caf50;
    color: white;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.btn-get:hover, .btn-qr:hover {
    background-color: #388e3c;
}

.output {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #333;
}

.output p {
    margin: 10px 0;
}

/* 二维码显示 */
.qr-container {
    text-align: center;
    margin-top: 20px;
}

#qrcode {
    margin: 20px auto;
    width: 250px;
    height: 250px;
    display: block;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 100%;
}

.modal-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    color: #aaa;
    cursor: pointer;
}

.modal-content .close:hover {
    color: black;
}

/* 页脚样式 */
footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #5e6e80;
}

/* 通知容器 */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.notification {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s, transform 0.5s;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}
