/* --- canvas.css --- */

/* 1. 引导层容器 (保持不变) */
.stage-guide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: visible;
}

.stage-guide.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* 2. 内容卡片 (增加宽度，优化内边距) */
.guide-content {
    background: #ffffff;
    padding: 30px 25px;
    /* 左右内边距稍微调小一点 */
    border-radius: 16px;
    width: 380px;
    /* 【修改】加宽一点，让长文字显示更舒服 */
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.stage-guide.hidden .guide-content {
    transform: translateY(20px);
}

/* 3. 顶部大图标 */
.guide-icon {
    font-size: 48px;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
    display: inline-block;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.guide-content h3 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 22px;
    font-weight: 700;
}

/* 4. 列表样式 (核心修复) */
.guide-content ul {
    text-align: left;
    padding: 0 10px;
    margin-bottom: 30px;
    list-style: none;
}

.guide-content li {
    margin-bottom: 16px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;

    /* 【关键】Flex布局 */
    display: flex;
    align-items: flex-start;
    /* 顶部对齐 */
    gap: 12px;
    /* 图标和文字的间距 */
}

/* 列表左侧的小图标 Emoji */
.guide-content .g-icon {
    font-size: 18px;
    line-height: 1.6;
    flex-shrink: 0;
    /* 【关键】防止图标被挤扁 */
    width: 24px;
    /* 固定宽度，保证图标对齐 */
    text-align: center;
}

/* 列表右侧的文字 */
.guide-content .g-text {
    flex: 1;
    /* 【关键】让文字占满剩余宽度 */
    word-break: break-word;
    /* 防止长单词撑破布局 */
}

.guide-content li strong {
    color: #1890ff;
    font-weight: 700;
    margin: 0 2px;
    background: rgba(24, 144, 255, 0.1);
    /* 给关键词加个淡背景 */
    padding: 0 4px;
    border-radius: 4px;
}

/* 5. 按钮样式 */
#closeGuideBtn {
    background: #1890ff;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(24, 144, 255, 0.3);
    transition: all 0.2s;
    outline: none;
}

#closeGuideBtn:hover {
    background: #096dd9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 144, 255, 0.5);
}

#closeGuideBtn:active {
    transform: translateY(1px);
}


.elements-summary-box {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    max-height: 150px;
    overflow-y: auto;
    /* 内容多了可以滚动 */
    font-size: 13px;
    color: #333;
    line-height: 1.6;
}

.summary-item {
    border-bottom: 1px dashed #eee;
    padding-bottom: 4px;
    margin-bottom: 4px;
}

.summary-item:last-child {
    border-bottom: none;
}

/* 区分文字和图标的标签样式 */
.tag-line {
    color: #1890ff;
    font-weight: bold;
}

.tag-icon {
    color: #ff4d4f;
    font-weight: bold;
}

.info-text {
    color: #666;
}