:root {
    --deep-purple: #330033;
    --deep-blue: #000033;
    --light-blue: #99CCFF;
    --gold: #FFCC00;
    --silver: #CCCCCC;
    --light-green: #99FF99;
}

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

body {
    background: linear-gradient(135deg, var(--deep-purple), var(--deep-blue));
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 提示框样式 */
.prompt-box {
    position: relative;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(153, 204, 255, 0.3);
}

.prompt-box p {
    color: var(--light-blue);
    font-size: 1.5rem;
    text-align: center;
    padding: 20px;
}

.star-dust {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center, transparent 50%, rgba(153, 204, 255, 0.1) 100%);
    animation: starDust 10s linear infinite;
}

/* 搜索框样式 */
.search-box {
    position: absolute;
    width: 600px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(153, 204, 255, 0.2);
    transition: all 0.3s ease;
}

.search-box input {
    flex: 1;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--light-blue);
    font-size: 1.2rem;
    padding: 0 20px;
}

.search-box input::placeholder {
    color: rgba(153, 204, 255, 0.5);
}

#exploreBtn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--gold);
    transition: all 0.3s ease;
}

.hexagram-icon {
    width: 24px;
    height: 24px;
    fill: var(--gold);
}

/* 飞机动画样式 */
.plane-container {
    position: absolute;
    width: 100px;
    height: 100px;
    transition: all 0.3s ease;
}

.plane {
    width: 100%;
    height: 100%;
    background: var(--silver);
    clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%);
    position: relative;
}

.trail {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--light-blue));
    transform-origin: left center;
}

/* 书籍样式 */
.book-container {
    position: absolute;
    perspective: 1000px;
}

.book {
    width: 400px;
    height: 600px;
    transform-style: preserve-3d;
    position: relative;
}

.book-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #4a3525;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transform-origin: left;
    transition: transform 1s ease;
}

.runes {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('../images/runes.png') repeat;
    opacity: 0.3;
    mix-blend-mode: overlay;
}

.book-pages {
    position: absolute;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    margin: 20px;
    background: #f5e6d3;
    border-radius: 5px;
    padding: 20px;
    transform-origin: left;
    transition: transform 1s ease;
}

.answer-content {
    font-family: 'Palatino', serif;
    color: #2c1810;
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
    margin-top: 40px;
}

.action-buttons {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.share-btn,
.ask-again-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dove-icon,
.question-icon {
    width: 100%;
    height: 100%;
    fill: var(--deep-purple);
}

/* 工具类 */
.hidden {
    opacity: 0;
    pointer-events: none;
}

/* 动画关键帧 */
@keyframes starDust {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 5px var(--light-blue);
    }
    50% {
        text-shadow: 0 0 15px var(--light-blue);
    }
    100% {
        text-shadow: 0 0 5px var(--light-blue);
    }
}

@keyframes planeTrail {
    0% {
        opacity: 1;
        transform: scaleX(1);
    }
    100% {
        opacity: 0;
        transform: scaleX(0);
    }
}
