/* 移动端页面样式 */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #FF5F6D, #FFC371);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

.container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    margin: 20px;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #333;
}

h2 {
    font-size: 20px;
    color: #333;
    margin: 15px 0;
}

p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.btn, button {
    background: linear-gradient(45deg, #2196F3, #4CAF50);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    margin: 10px auto;
    display: block;
    width: 80%;
    max-width: 300px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn:hover, button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
    background: linear-gradient(45deg, #1976D2, #388E3C);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 按钮点击波纹效果 */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(100, 100);
        opacity: 0;
    }
}

/* 复制成功提示 */
.copy-success {
    background: linear-gradient(45deg, #4CAF50, #8BC34A) !important;
}

.error {
    color: #ff4747;
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
    padding: 10px;
    background-color: rgba(255, 71, 71, 0.1);
    border-radius: 5px;
    display: none;
}

#qrSection {
    margin-top: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
}

#qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
}

#qrcode img {
    max-width: 200px;
    height: auto;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .container {
        padding: 20px;
        margin: 10px;
    }

    h1 {
        font-size: 20px;
    }

    .btn, button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 设备提示样式 */
#deviceMessage {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    font-weight: bold;
} 