/* 添加Silver字体定义 */
@font-face {
    font-family: 'Silver';
    src: url('Silver.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* 优化字体加载体验 */
}

/* 全局字体缩放设置 */
:root {
    --font-scale: 1.5; /* 字体统一增大1.5倍 */
}

/* Silver字体大小调整 */
* {
    letter-spacing: 0.02em; /* 轻微增加字母间距，提高可读性 */
}

/* 所有使用em单位的字体元素统一缩放 */
.ui-section-header,
.os-input,
.os-button-primary, .os-button-secondary, .os-button-cultivate, .os-button-danger,
.log-entry, .chat-message,
#loading-indicator,
#connect-wallet-button,
.os-button-function {
    font-size: calc(var(--font-original-size, 1em) * var(--font-scale)) !important;
}

/* 针对Silver字体的特定大小调整 */
.ui-section-header {
    --font-original-size: 1em;
}

/* 为NFT宇宙探索标题添加特殊规则，去除下边框 */
#search-section .ui-section-header {
    border-bottom: none;
    padding-bottom: 0.2rem;
    margin-bottom: 0.4rem;
}

body {
    margin: 0;
    overflow: hidden;
    font-family: "Silver", "Press Start 2P", "Courier New", monospace; /* 优先使用Silver字体 */
    background-color: #5c94fc; /* 马里奥蓝天背景色 */
    color: #ffffff; /* 基础文字颜色，白色 */
    image-rendering: pixelated; 
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: crisp-edges;
}
#scene-container { 
    width: 100%; 
    height: 100%; 
    cursor: grab; 
    image-rendering: pixelated; 
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: crisp-edges; 
}
#scene-container:active { cursor: grabbing; }

.ui-panel {
    background-color: #d04648; /* 马里奥红色系面板背景 */
    border-left: 4px solid #702a2b; /* 深红边框 */
    padding: 0.4rem; /* 从0.5rem减小到0.4rem */
    overflow-y: auto; /* 允许垂直滚动 */
}

/* 统一各个区域之间的间距 */
.ui-panel > .ui-section {
    margin-bottom: 0.6rem; /* 从1rem减小到0.6rem */
}

.ui-panel > .ui-section:last-child {
    margin-bottom: 0;
}

/* 统一调整所有区域之间的间隙 */
#search-section + .ui-section,
.ui-section + .ui-section {
    margin-top: 0.6rem; /* 从1rem减小到0.6rem */
}

.ui-section {
    background-color: #f8b838; /* 马里奥黄色系区块背景 */
    border-top: 4px solid #ffffff; /* 白色亮边 */
    border-left: 4px solid #ffffff; 
    border-right: 4px solid #a07010;  /* 黄色暗边 */
    border-bottom: 4px solid #a07010; 
    border-radius: 0; 
    box-shadow: 4px 4px 1px rgba(0,0,0,0.4); /* 调整阴影 */
    padding: 0.5rem; /* 从0.75rem减小到0.5rem */
}
.ui-section-header {
    color: #42210b; /* 深棕色标题文字 */
    border-bottom: 3px solid #a07010; /* 调整边框 */
    padding-bottom: 0.4rem; /* 从0.6rem减小到0.4rem */
    margin-bottom: 0.6rem; /* 从1rem减小到0.6rem */
    font-size: 0.8em; /* 缩小字体 */
    text-transform: uppercase; 
}
.chat-messages { 
    height: calc(100% - 5rem); /* 从6rem调整到5rem */
    min-height: 90px; /* 从100px调整到90px */
} 
.log-entries { 
    height: 100%; 
    min-height: 70px; /* 从80px调整到70px */
}

.os-input {
    --font-original-size: 1em;
    background-color: #784828; /* 马里奥棕色输入框背景 */
    border-top: 3px solid #503018; /* 调整边框 */
    border-left: 3px solid #503018; 
    border-right: 3px solid #a07038; 
    border-bottom: 3px solid #a07038; 
    color: #ffffff; /* 白色文字 */
    border-radius: 0; 
    padding: 0.6rem 0.8rem; /* 缩小内边距 */
    font-family: "Silver", "Press Start 2P", "Courier New", monospace;
    line-height: 1.3;
    resize: none; 
}
.os-input::placeholder {
    color: #f8d8a0; /* 浅黄色占位符 */
}
.os-input:focus {
    outline: none;
    border-color: #ffffff; 
    box-shadow: 0 0 0 3px #784828, 0 0 0 5px #ffffff; /* 调整阴影 */ 
}
.os-button-primary, .os-button-secondary, .os-button-cultivate, .os-button-danger {
    --font-original-size: 1em;
    color: #ffffff; 
    font-weight: normal; 
    padding: 0.5rem 0.9rem; /* 从0.7rem 1rem减小到0.5rem 0.9rem */
    border-radius: 0; 
    transition: background-color 0.05s ease, transform 0.08s ease, box-shadow 0.08s ease; 
    font-family: "Silver", "Press Start 2P", "Courier New", monospace;
    text-transform: uppercase; 
    border-style: solid;
    border-top-width: 3px; /* 调整边框 */
    border-left-width: 3px;
    border-bottom-width: 3px;
    border-right-width: 3px;
    box-shadow: 3px 3px 0px #000000; /* 调整阴影 */
    position: relative; 
    cursor: pointer;
    margin-bottom: 0.3rem; /* 从0.5rem减小到0.3rem */
}

/* Remove specific margin for search input from previous vertical layout */
/* #search-section .os-input {
    margin-bottom: 0.5rem; 
} */

/* Optimize search button for narrow horizontal layout */
#search-section .os-button-primary {
    --font-original-size: 0.9em;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
}

.os-button-primary:hover:not(:disabled), 
.os-button-secondary:hover:not(:disabled), 
.os-button-cultivate:hover:not(:disabled),
.os-button-danger:hover:not(:disabled) {
    transform: translate(-1px, -1px); /* 调整悬停效果 */
    box-shadow: 4px 4px 0px #000000;
}
.os-button-primary:active:not(:disabled), 
.os-button-secondary:active:not(:disabled), 
.os-button-cultivate:active:not(:disabled),
.os-button-danger:active:not(:disabled) {
    transform: translate(1px, 1px); /* 调整按下效果 */
    box-shadow: 2px 2px 0px #000000;
}

.os-button-primary { /* 马里奥红按钮 */
    background-color: #e02020; 
    border-top-color: #ff6060; 
    border-left-color: #ff6060; 
    border-bottom-color: #a01010; 
    border-right-color: #a01010; 
}
.os-button-primary:hover:not(:disabled) {
    background-color: #ff4040; 
}
.os-button-primary:active:not(:disabled) {
    background-color: #c00000; 
}
.os-button-primary:disabled {
    background-color: #801010; 
    opacity: 0.7;
    cursor: not-allowed;
    border-color: #600000;
    box-shadow: 3px 3px 0px #000000;
}
.os-button-secondary {  /* 马里奥绿按钮 */
    background-color: #20a020; 
    color: #ffffff; 
    border-top-color: #60ff60; 
    border-left-color: #60ff60; 
    border-bottom-color: #108010; 
    border-right-color: #108010; 
}
.os-button-secondary:hover:not(:disabled) {
    background-color: #40c040;
    color: #ffffff; 
}
.os-button-secondary:active:not(:disabled) {
    background-color: #107010;
}
.os-button-cultivate { /* 培育选项按钮 - 蓝色 */
    background-color: #0050ef;
    border-top-color: #4080ff;
    border-left-color: #4080ff;
    border-bottom-color: #0030b0;
    border-right-color: #0030b0;
}
.os-button-cultivate:hover:not(:disabled) {
    background-color: #2070ff;
}
 .os-button-cultivate:active:not(:disabled) {
    background-color: #0030b0;
}
.os-button-danger { /* 危险/移除按钮 - 深灰色/橙色边框 */
    background-color: #404040;
    border-top-color: #606060;
    border-left-color: #606060;
    border-bottom-color: #202020;
    border-right-color: #202020;
}
.os-button-danger:hover:not(:disabled) {
    background-color: #505050;
    border-top-color: #ffA500; /* 橙色高光 */
    border-left-color: #ffA500;
}
.os-button-danger:active:not(:disabled) {
    background-color: #202020;
}


.clickable-user { color: #ffdd00; text-decoration: none; cursor: pointer; } /* 金币黄色 */
.clickable-user:hover { color: #ffff80; text-decoration: underline; }

::-webkit-scrollbar { width: 12px; height: 12px; } /* 缩小滚动条 */
::-webkit-scrollbar-track { background: #784828; border: 3px solid #503018;} 
::-webkit-scrollbar-thumb { background: #f8b838; border-radius: 0; border: 3px solid #a07010;}
::-webkit-scrollbar-thumb:hover { background: #ffffff; } 

.log-entry, .chat-message {
    --font-original-size: 0.95em;
    border-bottom: 3px solid #a07010; /* 调整边框 */
    padding-bottom: 0.4rem; /* 从0.6rem减小到0.4rem */
    margin-bottom: 0.4rem; /* 从0.6rem减小到0.4rem */
    color: #42210b; /* 深棕色文字 */
    line-height: 1.4; /* 从1.5减小到1.4 */
}
.log-entry:last-child, .chat-message:last-child { border-bottom: none; }
.chat-message .font-semibold { color: #d04648; font-weight: normal; } /* 红色用户名 */

#loading-indicator {
    --font-original-size: 1.2em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    background-color: #e02020; /* 红色背景 */
    padding: 20px 25px; /* 缩小内边距 */
    border-radius: 0; 
    z-index: 1000;
    border-top: 4px solid #ff6060;
    border-left: 4px solid #ff6060;
    border-right: 4px solid #a01010;
    border-bottom: 4px solid #a01010;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.6); /* 调整阴影 */
    text-align: center;
}
.chat-input textarea.os-input {
    min-height: 2.25em; /* 减半：从4.5em到2.25em */
    height: 2.5em; /* 固定高度以保持一致性 */
}
/* 用于培育选项的容器 */
#cultivation-options-container {
    display: none; /* 默认隐藏 */
    flex-direction: column;
    margin-top: 0.3rem; /* 从0.5rem减小到0.3rem */
    gap: 0.25rem; /* 从0.3rem减小到0.25rem */
}

/* 底部星球操作面板 (当 #detail-actions-section 应用 .bottom-panel 类时) */
#detail-actions-section.bottom-panel {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto; /* 自动宽度，根据内容调整 */
    max-width: 90%; /* 防止过宽 */
    min-width: 320px;
    z-index: 20;
    margin: 0;
    border-radius: 0;
    box-shadow: 0px -4px 10px rgba(0,0,0,0.5); /* 向上阴影 */
    padding: 0.8rem 1rem;
    background-color: #f8b838; /* 马里奥黄色系区块背景 */
    border-top: 4px solid #ffffff; /* 白色亮边 */
    border-left: 4px solid #ffffff; 
    border-right: 4px solid #a07010;  /* 黄色暗边 */
    border-bottom: 4px solid #a07010; 
    display: flex; /* 使用flex布局实现横排 */
    flex-direction: row; /* 主轴方向为水平 */
    flex-wrap: nowrap; /* 防止按钮换行，如果按钮过多则需要调整 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    gap: 0.6rem; /* 按钮间距 */
}

/* 底部面板的按钮布局调整 */
#detail-actions-section.bottom-panel .os-button-primary,
#detail-actions-section.bottom-panel .os-button-secondary,
#detail-actions-section.bottom-panel .os-button-danger {
    margin: 0; /* 移除原有margin */
    min-width: auto; /* 允许按钮根据内容调整宽度 */
    padding: 0.6rem 0.9rem; /* 调整按钮内边距 */
    width: auto; /* 确保按钮宽度自适应内容 */
    flex-shrink: 0; /* 防止按钮在空间不足时被压缩 */
}

/* 培育生命按钮特别处理，因为它关联二级菜单 */
#detail-actions-section.bottom-panel #cultivate-life-button {
    position: relative; /* 为二级菜单定位提供基准 */
}

/* 底部面板标题隐藏 */
#detail-actions-section.bottom-panel .ui-section-header {
    display: none;
}

/* 底部面板中的培育选项容器 (当 #cultivation-options-container 在 .bottom-panel 内部时) */
#detail-actions-section.bottom-panel #cultivation-options-container {
    position: absolute;
    bottom: calc(100% + 8px); /* 定位在父容器(#cultivate-life-button)上方，并留出间隙 */
    left: 50%;
    transform: translateX(-50%); /* 水平居中于父按钮 */
    width: auto; /* 自动宽度 */
    min-width: max-content; /* 确保至少能容纳内容 */
    max-width: 400px; /* 限制最大宽度 */
    background-color: #f8b838; /* 马里奥黄色 */
    border-top: 4px solid #ffffff; /* 白色亮边 */
    border-left: 4px solid #ffffff; 
    border-right: 4px solid #a07010;  /* 黄色暗边 */
    border-bottom: 4px solid #a07010; 
    padding: 0.6rem;
    z-index: 25;
    box-shadow: 0px -3px 8px rgba(0,0,0,0.4); /* 向上阴影 */
    display: none; /* JS控制显示/隐藏 */
    flex-direction: row; /* 内部按钮横排 */
    flex-wrap: wrap; /* 允许换行 */
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0; /* 保持像素风格 */
}

/* 底部面板中的培育选项按钮 */
#detail-actions-section.bottom-panel #cultivation-options-container .os-button-cultivate {
    margin: 0; /* 移除原有margin */
    min-width: auto;
    padding: 0.5rem 0.8rem;
}

/* 钱包连接按钮样式 */
#connect-wallet-button {
    --font-original-size: 0.9em;
    padding: 0.5rem 0.8rem; /* 缩小内边距 */
    z-index: 100;
}

#connect-wallet-button::before {
    content: "👛"; /* 钱包表情符号 */
    display: inline-block;
    margin-right: 6px; /* 调整间距 */
    font-size: calc(1.1em * var(--font-scale)); /* 调整图标大小 */
}

#connect-wallet-button.os-button-secondary::before {
    content: "✅"; /* 已连接标志 */
}

.chat-input {
    display: flex;
    gap: 0.4rem; /* 从0.5rem减小到0.4rem */
    align-items: center;
    padding-top: 0.05rem; /* 从0.1rem减小到0.05rem */
}

/* 搜索区域的布局样式 */
#search-section {
    display: flex;
    flex-direction: column;
}

.search-input-container {
    display: flex;
    gap: 0.4rem; /* 从0.5rem减小到0.4rem */
    align-items: stretch;
}

/* 确保搜索输入框和聊天输入框宽度一致 */
#nft-search-input, #chat-input-text {
    flex: 1;
    min-width: 0;
}

/* 移除计算宽度，让flex布局处理 */
#nft-search-input {
    height: 36px; /* 从40px减小到36px */
    display: flex;
    align-items: center;
    width: calc(100% - 80px); /* 从85px调整到80px */
}

#chat-input-text {
    resize: none;
    padding-top: 0.3rem; /* 从0.4rem减小到0.3rem */
    padding-bottom: 0.3rem; /* 从0.4rem减小到0.3rem */
    line-height: 1.1;
    min-height: 2em; /* 从2.25em减小到2em */
    height: 2.2em; /* 从2.5em减小到2.2em */
}

/* 确保搜索按钮和发送按钮宽度一致 */
#search-nft-button, #send-chat-button {
    width: 65px; /* 从70px减小到65px */
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    text-align: center;
}

/* 搜索按钮高度与输入框一致 */
#search-nft-button {
    height: 36px; /* 从40px减小到36px */
    margin-left: auto;
}

/* 发送按钮高度与文本框一致，保持一半高度 */
#send-chat-button {
    height: 2.2em; /* 从2.5em减小到2.2em */
    align-self: center;
    padding-top: 0;
    padding-bottom: 0;
} 

/* 中央功能按钮容器样式 */
.function-buttons-container {
    display: flex;
    background-color: #0050ef; /* 改为马里奥蓝色 */
    border-radius: 0;
    padding: 6px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.7);
    border-top: 4px solid #4080ff; /* 亮蓝色亮边 */
    border-left: 4px solid #4080ff;
    border-bottom: 4px solid #0030b0; /* 暗蓝色暗边 */
    border-right: 4px solid #0030b0;
}

/* 中央功能按钮样式 */
.os-button-function {
    --font-original-size: 0.9em;
    background-color: #f8b838; /* 保持马里奥黄色 */
    color: #42210b; /* 深棕色文字 */
    font-weight: normal;
    padding: 0.6rem 0.9rem;
    border-radius: 0;
    transition: background-color 0.05s ease, transform 0.08s ease, box-shadow 0.08s ease;
    font-family: "Silver", "Press Start 2P", "Courier New", monospace;
    text-transform: uppercase;
    border-style: solid;
    border-width: 3px;
    border-top-color: #ffd878; /* 浅黄色亮边 */
    border-left-color: #ffd878;
    border-bottom-color: #a07010; /* 深黄色暗边 */
    border-right-color: #a07010;
    box-shadow: 2px 2px 0px #000000;
    position: relative;
    cursor: pointer;
    margin: 0 2px;
}

.os-button-function:first-child {
    margin-left: 0;
}

.os-button-function:last-child {
    margin-right: 0;
}

.os-button-function:hover:not(:disabled) {
    background-color: #ffc868; /* 浅橙色悬停 */
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #000000;
    z-index: 2;
}

.os-button-function:active:not(:disabled) {
    background-color: #e0a020; /* 深黄色按下 */
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #000000;
}

.os-button-function.active {
    background-color: #e02020; /* 选中状态为红色 */
    border-top-color: #ff6060; /* 亮红色边框 */
    border-left-color: #ff6060;
    border-bottom-color: #a01010; /* 暗红色边框 */
    border-right-color: #a01010;
    color: #ffffff; /* 白色文字 */
    transform: translate(0, 0);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3), 2px 2px 0px #000000;
    z-index: 1;
}

/* 按钮分隔线效果 */
.os-button-function:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background-color: #0030b0; /* 暗蓝色分隔线 */
    z-index: 2;
}

/* 适配移动设备的按钮样式 */
@media (max-width: 768px) {
    .function-buttons-container {
        flex-wrap: wrap;
        max-width: 320px;
        justify-content: center;
    }
    
    .os-button-function {
        --font-original-size: 0.8em;
        padding: 0.5rem 0.7rem;
        margin: 2px;
    }
}

/* 玄数印记解读系统样式 */
#mystic-analysis-container {
    background-color: rgba(248, 184, 56, 0.9);
    border: 3px solid #a07010;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border-radius: 0;
}

#mystic-analysis-container h3 {
    color: #42210b;
    border-bottom: 2px solid #a07010;
    padding-bottom: 0.4rem;
    margin-bottom: 0.8rem;
}

#mystic-analysis-container h4 {
    color: #42210b;
    margin-top: 0.6rem;
    margin-bottom: 0.4rem;
}

#mystic-analysis-container p {
    color: #42210b;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

#mystic-analysis-container span {
    color: #d04648;
    font-weight: bold;
}

#fortune-motto {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.6rem;
    border: 2px solid #a07010;
    margin-top: 0.8rem;
}

#fortune-motto p {
    font-style: italic;
    text-align: center;
    color: #42210b;
}

#fortune-motto span {
    color: #d04648;
    font-weight: bold;
    display: block;
    margin-top: 0.3rem;
}

/* 可折叠面板样式 */
.collapsible-section {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid #a07010;
    border-radius: 0;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem;
    cursor: pointer;
    background-color: rgba(248, 184, 56, 0.3);
    user-select: none;
}

.section-header h4 {
    margin: 0;
    color: #42210b;
    --font-original-size: 0.7em;
    font-size: calc(var(--font-original-size) * var(--font-scale)) !important;
}

.toggle-btn {
    background: none;
    border: none;
    color: #42210b;
    font-size: 0.8em;
    cursor: pointer;
    padding: 0.2rem;
    transition: transform 0.3s ease;
}

.toggle-btn:hover {
    color: #d04648;
}

.section-content {
    padding: 0.4rem;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.section-content.collapsed {
    max-height: 0;
    padding: 0;
}

/* 更新玄数印记解读面板样式 */
#mystic-analysis-panel {
    background-color: rgba(248, 184, 56, 0.95);
    border: 4px solid #ffffff;
    border-right: 4px solid #a07010;
    border-bottom: 4px solid #a07010;
    padding: 0.8rem;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    --font-original-size: 1em;
    font-size: calc(var(--font-original-size) * var(--font-scale)) !important;
}

#mystic-analysis-panel h3 {
    color: #42210b;
    border-bottom: 3px solid #a07010;
    padding-bottom: 0.3rem;
    margin-bottom: 0.6rem;
    --font-original-size: 0.8em;
    font-size: calc(var(--font-original-size) * var(--font-scale)) !important;
}

#mystic-analysis-panel h4 {
    color: #42210b;
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
    font-size: calc(var(--font-original-size) * 0.95); /* 与左侧面板副标题大小一致 */
}

#mystic-analysis-panel p {
    color: #42210b;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    --font-original-size: 0.65em;
    font-size: calc(var(--font-original-size) * var(--font-scale)) !important;
}

#mystic-analysis-panel span {
    color: #d04648;
    font-weight: bold;
    --font-original-size: 0.65em;
    font-size: calc(var(--font-original-size) * var(--font-scale)) !important;
}

#mystic-analysis-panel #fortune-motto {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.6rem;
    border: 2px solid #a07010;
    margin-top: 0.8rem;
}

#mystic-analysis-panel #fortune-motto p {
    font-style: italic;
    text-align: center;
    color: #42210b;
    margin-bottom: 0.2rem;
    font-size: calc(var(--font-original-size) * 0.9); /* 与左侧面板正文大小一致 */
}

#mystic-analysis-panel #fortune-motto span {
    color: #d04648;
    font-weight: bold;
    display: block;
    margin-top: 0.3rem;
    font-size: calc(var(--font-original-size) * 1.05); /* 与左侧面板强调文本大小一致 */
}

/* 滚动条样式 */
#mystic-analysis-panel::-webkit-scrollbar {
    width: 10px;
}

#mystic-analysis-panel::-webkit-scrollbar-track {
    background: #784828;
    border: 2px solid #503018;
}

#mystic-analysis-panel::-webkit-scrollbar-thumb {
    background: #f8b838;
    border: 2px solid #a07010;
}

#mystic-analysis-panel::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
}

/* 调整各个部分的间距 */
#mystic-analysis-panel #mystic-number-analysis,
#mystic-analysis-panel #fortune-analysis,
#mystic-analysis-panel #energy-guidance,
#mystic-analysis-panel #planting-suggestion {
    margin-bottom: 0.6rem;
}

#mystic-analysis-panel #mystic-number-analysis p,
#mystic-analysis-panel #fortune-analysis p,
#mystic-analysis-panel #energy-guidance p,
#mystic-analysis-panel #planting-suggestion p {
    margin-bottom: 0.2rem;
}

/* 培育选项容器样式 */
.cultivation-options {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.4rem;
    padding: 0.4rem;
    background-color: rgba(248, 184, 56, 0.3);
    border: 2px solid #a07010;
    border-radius: 0;
    max-height: 300px;
    overflow-y: auto;
}

.cultivation-options button {
    width: 100%;
    text-align: left;
    padding: 0.4rem 0.6rem;
    transition: all 0.2s ease;
    margin-bottom: 0.2rem;
}

.cultivation-options button:last-child {
    margin-bottom: 0;
}

.cultivation-options button:hover {
    transform: translateX(4px);
    background-color: rgba(255, 255, 255, 0.2);
}

.cultivation-options .category-button {
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid #a07010;
    margin-bottom: 0.4rem;
}

/* 植物生长动画 */
@keyframes grow {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.plant-growing {
    animation: grow 1s ease-out forwards;
}

/* 植物交互效果 */
.plant-interactive {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.plant-interactive:hover {
    transform: scale(1.05);
}

/* 植物状态指示器 */
.plant-status {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #4CAF50;
    border: 2px solid #ffffff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.plant-status.growing {
    background-color: #FFC107;
}

.plant-status.mature {
    background-color: #4CAF50;
}

.plant-status.wilting {
    background-color: #F44336;
}

/* 培育生命菜单样式 */
.cultivation-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.95);
  padding: 20px;
  border-radius: 12px;
  color: white;
  z-index: 1000;
  width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  font-family: "Microsoft YaHei", sans-serif;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.cultivation-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cultivation-menu-title {
  margin: 0;
  font-size: 1.2em;
  color: #fff;
}

.cultivation-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.cultivation-menu-close:hover {
  opacity: 1;
}

.cultivation-menu-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.cultivation-menu-tab {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.cultivation-menu-tab.active {
  background: rgba(255, 255, 255, 0.2);
}

.cultivation-menu-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 10px 0;
}

.cultivation-option-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cultivation-option-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.cultivation-option-name {
  font-weight: bold;
  font-size: 1.1em;
}

.cultivation-option-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9em;
  line-height: 1.4;
}

.cultivation-option-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.cultivation-effect-tag {
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8em;
}

/* 自定义滚动条样式 */
.cultivation-menu::-webkit-scrollbar {
  width: 6px;
}

.cultivation-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.cultivation-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.cultivation-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}