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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #e6d5b8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    background-color: #0d1117;
}
/* 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;
    }
}





/* 塔罗牌*/

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





h1 {
    font-size: 3em;
    color: #ffd700;
    text-align: center;
    margin: 30px 0;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5),
                 0 0 40px rgba(138, 43, 226, 0.3);
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
}

.step {
    display: none;
    padding: 40px;
    border-radius: 15px;
    margin: 20px 0;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.6s ease-in;
}

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

.active {
    display: block;
}

h3 {
    font-size: 1.8em;
    color: #daa520;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 0 10px rgba(218, 165, 32, 0.5);
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    background: rgba(13, 0, 26, 0.6);
    border: 2px solid #6a1b9a;
    border-radius: 8px;
    color: #e6d5b8;
    font-size: 1.1em;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    background: rgba(13, 0, 26, 0.8);
}

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: 15px 40px;
    margin: 20px auto;
    display: block;
    background: linear-gradient(135deg, #6a1b9a 0%, #8a2be2 100%);
    border: 2px solid #ffd700;
    border-radius: 25px;
    color: #fff;
    font-size: 1.2em;
    font-family: 'Georgia', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    outline: none;
}

button:hover {
    background: linear-gradient(135deg, #8a2be2 0%, #9b30ff 100%);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6),
                0 5px 20px rgba(138, 43, 226, 0.6);
    transform: translateY(-2px);
    border-color: #fff;
}

button:active {
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

#result {
    background: rgba(13, 0, 26, 0.5);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

#result p {
    color: #ffd700;
    font-size: 1.2em;
    margin: 10px 0;
    text-align: center;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

#ai {
    background: rgba(13, 0, 26, 0.5);
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    line-height: 1.8;
    font-size: 1.1em;
    color: #e6d5b8;
}

#aiTip {
    text-align: center;
    color: #daa520;
    font-style: italic;
    font-size: 1.1em;
    margin: 15px 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    
    .step {
        padding: 25px;
    }
    
    h3 {
        font-size: 1.4em;
    }
    
    input[type="number"] {
        width: calc(33% - 6px);
        margin: 10px 3px;
        padding: 12px 5px;
    }
    
    button {
        padding: 12px 30px;
        font-size: 1em;
    }
}
a {
  position: relative;
}
a:hover {
  text-decoration: none;
}
a::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 2px;
  bottom: 5%;
  left: 0;
  background-color: #4d52bb;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
a:hover::before {
  transform: scaleX(1);
}
