/* GitHub注册页同款星空背景 */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.signup-space {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.signup-stars {
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    background-image:
        radial-gradient(2px 2px at 50px 200px, #eee, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(3px 4px at 120px 40px, #ddd, rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 250px 250px;
    opacity: 0;
    animation: zoom 10s infinite;
}

.signup-stars:nth-child(1) {
    background-position: 10% 90%;
    animation-delay: 0s;
}

.signup-stars:nth-child(2) {
    background-position: 20% 50%;
    background-size: 270px 500px;
    animation-delay: 0.3s;
}

.signup-stars:nth-child(3) {
    background-position: 40% -80%;
    animation-delay: 1.2s;
}

.signup-stars:nth-child(4) {
    background-position: -20% -30%;
    transform: rotate(60deg);
    animation-delay: 2.5s;
}

.signup-stars:nth-child(5) {
    background-image:
        radial-gradient(2px 2px at 10px 100px, #eee, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 20px 10px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(3px 4px at 150px 40px, #ddd, rgba(0, 0, 0, 0));
    background-position: 80% 30%;
    animation-delay: 4s;
}

.signup-stars:nth-child(6) {
    background-position: 50% 20%;
    animation-delay: 6s;
}

@keyframes zoom {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(5deg);
        animation-timing-function: ease-in;
    }

    85% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
        transform: scale(2.2);
    }
}

.star-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

@media (prefers-reduced-motion) {
    .signup-stars {
        animation: none;
    }
}

/* ============ 主体塔罗样式 ============ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Georgia", "Songti SC", "SimSun", serif;
    background: #050718;
    line-height: 1.8;
    color: #d0d8f8;
    overflow-x: hidden;
}

.main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 2;
    padding: 40px 20px;
}

h1 {
    font-size: 32px;
    color: #e6d8ff;
    text-align: center;
    margin: 30px 0;
    text-shadow: 0 0 10px #9c7cff;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
}


.step {
    display: none;
    padding: 32px 30px;
    border-radius: 12px;
    margin: 20px 0;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.6s ease-in;
    background: linear-gradient(145deg, #0b0c22, #110f24);
    border: 1px solid rgba(156, 124, 255, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 700px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.active {
    display: block;
}

h3 {
    font-size: 22px;
    color: #c9b4ff;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 1.5px;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    margin: 10px 0;
    background: rgba(8, 8, 22, 0.9);
    border: 1px solid rgba(156, 124, 255, 0.5);
    border-radius: 8px;
    color: #e6d8ff;
    font-size: 1.1em;
    font-family: inherit;
    transition: all 0.25s ease;
}

input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #b99cff;
    box-shadow: 0 0 12px rgba(156, 124, 255, 0.35);
    background: rgba(15, 15, 32, 0.95);
}

input[type="number"] {
    width: calc(33.33% - 10px);
    margin: 10px 5px;
    text-align: center;
    display: inline-block;
}

.step input[type="number"]:first-of-type {
    margin-left: 0;
}

.step input[type="number"]:last-of-type {
    margin-right: 0;
}

button {
    padding: 12px 35px;
    margin: 20px auto;
    display: block;
    background: #0f0e1f;
    border: 1px solid #c9a227;
    border-radius: 30px;
    color: #f5e6b8;
    font-size: 1.1em;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
    outline: none;
}

button:hover {
    background: #1a1730;
    border-color: #f5e6b8;
    color: #fffbe6;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 12px rgba(201, 162, 39, 0.5);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

#result {
    background: rgba(10, 10, 24, 0.92);
    border: 1px solid rgba(156, 124, 255, 0.4);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6);
}

#result p {
    color: #e6d8ff;
    font-size: 1.15em;
    margin: 10px 0;
    text-align: center;
    line-height: 1.7;
}


#ai {
    background: rgba(10, 10, 24, 0.92);
    border: 1px solid rgba(156, 124, 255, 0.4);
    padding: 22px 24px;
    border-radius: 10px;
    margin: 20px 0;
    line-height: 1.8;
    font-size: 1.05em;
    color: #d0d8f8;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6);
}

#aiTip {
    text-align: center;
    color: #c9b4ff;
    font-style: italic;
    font-size: 1.05em;
    margin: 15px 0;
    /* 去掉脉冲动画，改为静态文字 + 微弱阴影 */
    animation: none;
    text-shadow: 0 0 8px rgba(156, 124, 255, 0.4);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .step {
        padding: 22px 18px;
    }

    h3 {
        font-size: 1.4em;
    }

    input[type="number"] {
        width: calc(33% - 6px);
        margin: 10px 3px;
        padding: 12px 5px;
    }

    button {
        padding: 12px 28px;
        font-size: 1em;
    }
}


a {
    position: relative;
    color: #99a3d8;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: #e6d8ff;
}

a::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    bottom: 5%;
    left: 0;
    background-color: #9c7cff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

a:hover::before {
    transform: scaleX(1);
}