body, ul, li, div, span, button {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

#app {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.img-view {
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    height: auto;
}

.des {
    border-radius: 5px;
    padding: 10px 15px;
    margin-top: 5px;
    background-color: #60b41f;
    color: #fff;
}

.des ul {
    color: #fff;
    margin: 0;
    padding: 0;
    line-height: 25px;
    font-size: 15px;
    font-weight: bold;
    list-style-type: none;
}

.des li:before {
    content: "🔸";
    margin-right: 8px;
}

.install {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-bottom: 15px;
}

.button {
    padding: 12px;
    margin-top: 10px;
    border: none;
    width: 100%;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1rem;
    color: #fff;
    background-color: #60b41f;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

/* 美化弹窗样式 */
.swal2-popup {
    width: 90% !important;
    max-width: 350px !important;
    padding: 0 !important;
    border-radius: 16px !important;
    overflow: visible !important; /* 改为visible，防止出现滚动条 */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    max-height: none !important; /* 移除最大高度限制 */
}

/* 美化弹窗颜色 */
.swal2-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background-color: #60b41f !important;
    padding: 15px 20px !important;
    margin: 0 !important;
    border-radius: 16px 16px 0 0 !important;
}

.swal2-html-container {
    font-size: 14px !important;
    text-align: left;
    padding: 20px !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center; /* 改为center，使所有内容居中对齐 */
    max-height: none !important; /* 移除最大高度限制 */
    overflow: visible !important; /* 改为visible，防止出现滚动条 */
    justify-content: center; /* 添加垂直居中对齐 */
    min-height: 120px; /* 确保有足够的高度进行居中 */
}

.swal2-content {
    padding: 0 !important; 
    margin: 0 !important;
    overflow: visible !important; /* 改为visible，防止出现滚动条 */
}

.swal2-input {
    display: block;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    background-color: #f8f8f8 !important;
    margin: 0 auto 15px !important;
    font-size: 14px !important;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.swal2-input:focus {
    outline: none !important;
    border-color: #b00602 !important;
    box-shadow: 0 0 0 2px rgba(176, 6, 2, 0.1) !important;
}

/* 错误输入框样式 */
.swal2-input.error {
    border-color: #b00602 !important;
    background-color: #fff0f0 !important;
}

.swal2-actions {
    padding: 0 20px 20px !important;
    margin-top: 0 !important;
}

.swal2-confirm, .swal2-cancel {
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    margin: 0 5px !important;
}

.swal2-confirm {
    background-color: #1b853e !important;
    box-shadow: 0 4px 12px rgba(27, 133, 62, 0.2) !important;
}

.swal2-cancel {
    background-color: #f44336 !important;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.2) !important;
}

.swal-custom-btn {
    display: block;
    width: 100%;
    padding: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 12px;
    border: none;
    background-color: #fff;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.swal-custom-btn:hover:not(:disabled) {
    background-color: #f8f8f8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.swal-custom-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.swal-custom-btn i {
    font-size: 18px;
}

/* 自定义样式 */
.redemption-box {
    width: 100%;
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.redemption-label {
    font-weight: 600;
    color: #555;
    margin-right: 10px;
    flex-shrink: 0;
}

.redemption-code {
    font-weight: bold;
    font-size: 16px;
    color: #000;
    background-color: #f2f2f2;
    border-radius: 8px;
    padding: 8px 12px;
    flex-grow: 1;
    text-align: center;
    border: 1px dashed #ccc;
}

.redemption-code.error {
    color: #b00602;
    background-color: #fff0f0;
    border-color: #ffcdd2;
}

.info-message {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 6px;
    font-size: 12px;
    color: #666;
    margin-top: 12px;
    text-align: center;
}

.error-message {
    display: none;
    width: 100%; /* 使用与输入框相同的宽度 */
    max-width: 100%; /* 确保不会超出容器 */
    padding: 10px 15px;
    border-radius: 8px;
    background-color: #ffebee;
    color: #b00602;
    font-size: 13px;
    margin-bottom: 10px;
    text-align: center;
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box; /* 确保padding不会增加总宽度 */
}

.error-message i {
    color: #b00602;
    font-size: 16px;
}

/* 确保所有内容都在同一个宽度内 */
.form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 查询模式样式 */
.query-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
}

/* 查询结果样式 */
.query-result {
    width: 100%;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 10px;
    margin-top: 15px;
    box-sizing: border-box;
    border: 1px solid #e0e0e0;
}

.result-item {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-value {
    color: #1b853e;
    font-weight: bold;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 媒体查询 */
@media screen and (max-width: 480px) {
    .swal2-popup {
        max-width: 320px !important;
    }
    
    .swal2-title {
        font-size: 16px !important;
        padding: 12px 15px !important;
    }
    
    .swal2-html-container {
        padding: 15px !important;
    }
    
    .redemption-code {
        font-size: 15px;
        padding: 6px 10px;
    }
}