/* 页面基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #1a1f36, #090c24);
    color: #ddd;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    flex-direction: column;
}

/* 背景银河 */
.galaxy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), transparent),
                linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 70%);
    animation: galaxyMove 60s infinite linear;
    opacity: 0.4;
    z-index: -3;
}

@keyframes galaxyMove {
    0% {
        transform: translate(-50px, -50px);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* 星星层 */
.star-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 流星样式 */
.shooting-star {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    border-radius: 50%;
    opacity: 0;
    transform-origin: center;
    z-index: -1;
}

/* 容器样式 */
.flex-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    position: relative;
    max-width: 800px;
    width: 100%;
    text-align: center;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px; /* Space between containers */
}

/* Secondary container styles */
.secondary-container {
    
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    color: #ddd;
    font-size: 1.1em;
}


/* 输入框样式 */
.input-box {
    width: 100%;
    max-width: 800px;
    padding: 10px;
    margin-top: 20px;
    font-size: 1em;
    color: #ddd;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #a8d0e6;
    border-radius: 5px;
    outline: none;
    text-align: center;
    box-sizing: border-box;
}

.input-box::placeholder {
    color: #aaa;
    font-style: italic;
}

.input-box:focus {
    border-color: #e67e22;
    background-color: rgba(0, 0, 0, 0.6);
}

/* 标题和文本样式 */
h1 {
    font-size: 2em;
    color: #a8d0e6;
    margin: 0;
}

p {
    font-size: 1.2em;
    color: #ccc;
    line-height: 1.6;
    margin-top: 10px;
}

/* 响应式布局调整 */
@media (max-width: 768px) {
    /* 针对平板和手机的样式 */
    body {
        padding: 20px;
    }

    .container {
        padding: 15px;
        max-width: 90%;
    }

    h1 {
        font-size: 1.8em;
    }

    p {
        font-size: 0.9em;
    }

    .input-box {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    /* 针对手机的样式 */
    h1 {
        font-size: 1.5em;
    }

    p {
        font-size: 0.8em;
    }

    .input-box {
        font-size: 0.8em;
        padding: 8px;
    }
}



/* 即将上线的提示 */
.coming-soon {
    font-size: 1.5em;
    color: #e67e22;
    margin-top: 20px;
}

/* 语言选择器样式 */
.language-selector {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    padding: 5px 10px !important;
    font-size: 1em !important;
    color: #a8d0e6 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid #a8d0e6 !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    outline: none !important;
    appearance: none !important;
}

.language-selector option {
    background-color: #1a1f36;
    color: #a8d0e6;
}

.language-selector:hover {
    background-color: #2c3e50;
}

/* Typing effect for answer text */
.answer-text {
    font-size: 1.2em;
    color: #ccc;
    line-height: 1.6;
    margin-top: 10px;
    white-space: pre-wrap; /* Preserves spaces and line breaks */
    overflow: hidden;
    text-align: left;
    font-size: 1em;
    
}


/* Footer 样式 */
footer {
    background: linear-gradient(135deg, #1a1f36, #090c24);
    color: #a8d0e6;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.3);
    width: 100%;
    position: relative;
    z-index: 1;
}

footer a {
    color: #a8d0e6;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
}

footer a:hover {
    color: #e67e22;
    text-decoration: underline;
}

footer p {
    margin: 5px 0;
    font-size: 1em;
    line-height: 1.5;
}
