* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
}

.container {
    max-width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.qr-box {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 360px;
    overflow: hidden;
}

.qr-header {
    background-color: #07C160;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.qr-header h2 {
    font-size: 20px;
    margin-bottom: 5px;
    font-weight: 500;
}

.qr-header p {
    font-size: 14px;
    opacity: 0.9;
}

.qr-content {
    padding: 30px 20px;
    text-align: center;
}

.qr-image {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.qr-image img {
    max-width: 200px;
    width: 100%;
    height: auto;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.qr-tips {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.limit-tip {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 10px;
}

.qr-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* 加载状态 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #07C160;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 错误信息 */
.error-message {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 360px;
    width: 100%;
}

.error-message p {
    color: #ff4d4f;
    font-size: 16px;
    margin-bottom: 20px;
}

.retry-btn {
    background-color: #07C160;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 24px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s;
}

.retry-btn:hover {
    background-color: #06AE56;
}

.retry-btn:active {
    background-color: #059E4F;
} 