/* ai-dream.css - “AI解梦”页面专属样式 */

.dream-body {
    background-color: var(--theme-bg);
}

.dream-main-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 1rem;
}

/* 2.1 IP引导区 */
.dream-master-intro {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.dream-master-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: breathe 5s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.speech-bubble {
    padding: 1rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    color: var(--theme-text);
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
}

/* 2.2 梦境输入区 */
.dream-input-card {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.dream-input-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--theme-text);
}

.dream-input-card .guide-text {
    color: var(--theme-secondary);
    margin-bottom: 2rem;
}

#dream-textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--theme-text);
    background-color: #FFFFFF;
    border: 1px solid #DCD1C6;
    border-radius: 8px;
    resize: vertical; /* 允许用户垂直拖拽调整大小 */
    margin-bottom: 1.5rem;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

#dream-textarea:focus {
    outline: none;
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 3px rgba(192, 160, 98, 0.2);
}

/* 2.3 解梦结果区 */
.dream-result-card {
    width: 100%;
    max-width: 800px;
}

/* 覆盖默认的兰花背景图 */
.dream-result-card::before {
    /* 请将这里的图片替换为您想要的“梦幻”背景图 */
    background-image: url('../images/misty-mountain-bg.png');
    opacity: 1; /* 可调整背景图的透明度 */
}

.result-content {
    position: relative; /* 确保文字内容在伪元素之上 */
    z-index: 1;
}

.result-content .ip-response {
    color: var(--theme-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.result-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.result-content h3.accent-title {
    color: var(--theme-accent);
}

.result-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--theme-text);
    opacity: 0.9;
}

.result-content .summary-text {
    font-size: 0.9rem;
    color: var(--theme-secondary);
    text-align: center;
    margin-top: 1.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.8rem;
    }
    .dream-master-intro {
        flex-direction: column;
        text-align: center;
    }
    .card-actions {
        flex-direction: column;
        gap: 1rem;
    }
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 【新增】确保头部品牌链接颜色不受访问状态影响 */
.home-header .brand-link,
.home-header .brand-link:link,
.home-header .brand-link:visited {
    color: var(--theme-text); /* 强制使用我们在style.css中定义的主文字色 */
    text-decoration: none; /* 同时确保没有下划线 */
}