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(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 15px auto;
    display: block;
    width: 85%;
    max-width: 320px;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover, button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.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: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    border: 2px solid #ffb7c5;
    box-shadow: 0 4px 15px rgba(255, 183, 197, 0.3);
}

#qrSection button {
    background: linear-gradient(135deg, #ff6b9d, #c44569) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.9);
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 69, 105, 0.5);
    margin: 20px auto 10px;
    display: block;
    width: 90%;
    max-width: 280px;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#qrSection button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
    background: linear-gradient(135deg, #c44569, #ff6b9d);
    border-color: rgba(255, 255, 255, 1);
}

#qrSection button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.4);
}

#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;
}

.netdisk-link-container {
    text-align: center;
    margin: 20px 0;
}

.netdisk-link-btn {
    display: inline-block;
    background: linear-gradient(45deg, #2196F3, #4CAF50);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}

.netdisk-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
    background: linear-gradient(45deg, #1976D2, #388E3C);
}

.netdisk-error {
    color: #ff4747;
    font-weight: bold;
    padding: 10px;
    background-color: rgba(255, 71, 71, 0.1);
    border-radius: 5px;
}