
/* random_password_generator/frontend/css/style.css */
:root {
    --sand: #f5deb3;
    --ocean: #1e90ff;
    --sky: #87ceeb;
    --sun: #ff8c00;
    --wave: #00bfff;
}

body {
    background: linear-gradient(to bottom, var(--sky) 0%, var(--ocean) 100%);
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    position: relative;
}

/* 沙滩 */
.beach {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    background-color: var(--sand);
    z-index: 1;
}

/* 海浪 */
.wave {
    position: absolute;
    bottom: 100px;
    width: 100%;
    height: 20px;
    background: repeating-linear-gradient(
        to right,
        var(--ocean),
        var(--ocean) 10px,
        var(--wave) 10px,
        var(--wave) 20px
    );
    z-index: 2;
}

/* 太阳 */
.sun {
    position: absolute;
    top: 50px;
    right: 50px;
    width: 80px;
    height: 80px;
    background-color: var(--sun);
    border-radius: 50%;
    box-shadow: 0 0 40px var(--sun);
    z-index: 0;
}

/* 流星动画 */
@keyframes shooting-star {
    0% {
        transform: translateX(-100px) translateY(-100px) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(calc(100vh + 100px)) rotate(45deg);
        opacity: 0;
    }
}

/* 海绵宝宝流星 */
.spongebob {
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url('https://i.imgur.com/3ZQ9Q9M.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
    animation: shooting-star 3s linear forwards;
}

/* 派大星流星 */
.patrick {
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url('https://i.imgur.com/5Q9Q9Q9.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
    animation: shooting-star 3s linear forwards;
}

/* 保留原有密码生成器样式 */
.password-card {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    margin: 50px auto;
    position: relative;
    z-index: 5;
}

/* 保留原有表单样式 */
input[type="range"] {
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
}

/* 保留密码项样式 */
.password-item {
    background: #ffffff;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
}

.password-text {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    word-break: break-all;
    color: #1e40af;
}

.copy-success {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: #10b981;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-success.show {
    opacity: 1;
}

@media (max-width: 640px) {
    .password-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
