/* --------------------------------- 左侧面板 ------------------------------------- */

.teacher-panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px 0 0 16px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideInLeft 0.6s ease-out;
    overflow: hidden;
}

.feature-intro {
    width: 100%;
    background: linear-gradient(120deg, #e0e5e8 0%, #838d97 100%);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    overflow: visible;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.feature-intro::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 3s infinite;
}

.feature-intro .intro-icon {
    font-size: 20px;
    margin-bottom: 8px;
    display: block;
    animation: bounce 2s infinite;
}

.feature-intro .intro-text {
    color: #020306;
    font-size: 13px;
    line-height: 1.4;
    /* font-weight: 500; */
    /* text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); */
    position: relative;
    z-index: 1;
}
 .intro-text-bottom {
    color: gray;
    font-size: 14px;
    line-height: 1.4; 
    position: relative;
    margin-left: 0px;
    z-index: 1;
}
.feature-intro .intro-highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-intro .intro-highlight.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-intro .intro-highlight.clickable:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.user-info-placeholder {
    margin-top: 10px;
    width: 100%;
    min-height: 20px; /* 改为最小高度，允许内容自适应 */
}

/* 悬浮按钮样式 */
.floating-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    align-items: center;
}

.floating-btn {
    background: linear-gradient(135deg, #91d0d9 0%, #116fbdb5 100%);
    color: white;
    border: 3px solid #b0bec5;
    border-radius: 30px;
    padding: 5px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 8px 16px rgba(83, 152, 231, 0.506),
        0 4px 8px rgba(59, 107, 220, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    text-align: center;
    transform: translateY(-2px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.floating-btn:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 24px rgba(74, 144, 226, 0.5),
        0 6px 12px rgba(74, 144, 226, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #91d0d9 30%, #0e64abb5 100%);
}

.floating-btn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow:
        0 2px 4px rgba(74, 144, 226, 0.3),
        inset 0 2px 6px rgba(0, 0, 0, 0.2),
        inset 0 -1px 2px rgba(255, 255, 255, 0.1);
}

/* 新增交互效果样式 */
.interactive-btn {
    cursor: pointer !important;
    position: relative;
    animation: pulseGlow 2s infinite;
}

.interactive-btn:hover {
    cursor: pointer !important;
    animation: none;
}

.interactive-btn:active {
    animation: clickEffect 0.2s ease-out;
}

.btn-text {
    font-weight: 700;
}

/* 手指点击提示样式 */
.click-hint {
    font-size: 28px;
    animation: pointingFinger 1.5s infinite;
    display: inline-block;
}

/* 悬停时停止手指动画 */
.interactive-btn:hover .click-hint {
    animation: none;
    transform: translateY(-2px) rotate(-3deg);
    opacity: 1;
}

/* 按下后的切换状态 - 调整为柔和的橙色 */
.floating-btn.pressed {
    /* background: linear-gradient(135deg, lab(84.34% 5.13 19.02) 0%, #c19d76 50%, #bc9d88 100%); */
    background: linear-gradient(135deg, #d4b48c 0%, #c19d76 50%, #bc9d88 100%);
    border-color: #e8b882;
    transform: translateY(2px);
    box-shadow:
        0 2px 6px rgba(224, 169, 109, 0.4),
        0 1px 3px rgba(224, 169, 109, 0.3),
        inset 0 2px 6px rgba(0, 0, 0, 0.2),
        inset 0 -1px 2px rgba(255, 255, 255, 0.1);
}

.floating-btn.pressed:hover {
    transform: translateY(1px);
    /* background: linear-gradient(135deg, lab(84.34% 5.13 19.02) 0%, #c19d76 50%, #bc9d88 100%); */
    background: linear-gradient(135deg, #d4b48c 0%, #c19d76 50%, #bc9d88 100%);
    box-shadow:
        0 4px 8px rgba(224, 169, 109, 0.5),
        0 2px 4px rgba(224, 169, 109, 0.4),
        inset 0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 -1px 2px rgba(255, 255, 255, 0.2);
}

.floating-btn.processing {
    background: linear-gradient(135deg, #78909c 0%, #607d8b 50%, #546e7a 100%);
    cursor: not-allowed;
    animation: pulse-processing 1.5s infinite;
    transform: translateY(1px);
    box-shadow:
        0 2px 6px rgba(120, 144, 156, 0.3),
        0 1px 2px rgba(120, 144, 156, 0.2);
}

.floating-btn.hidden {
    display: none;
}

.floating-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s;
}

.floating-btn:hover::before {
    left: 100%;
}

/* 明学明事明德明志 艺术字样式 */
.mingxue-art {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    /*background-color: #00a6f3;*/
}

.mingxue-char {
    font-family:
        "STXingkai", "KaiTi", "FZShuTi", "FZYaoti", "华文行楷", cursive, serif;
    font-size: 4rem;
    color: #764ba2;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow:
        2px 2px 8px #e1e8ed,
        0 2px 0 #fff,
        0 0 8px #667eea44;
    transition: transform 0.2s;
}

.mingxue-char:hover {
    color: #1e3c72;
    transform: scale(1.08) rotate(-2deg);
}

.teacher-panel .info-pic {
    aspect-ratio: 512/341;
    width: 100%;
    background: url(pic/pic1.png);
    background-size: 100% 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0;
    border-radius: 8px;
}

.teacher-panel .info-pic .info-image {
    max-height: 150px;
    max-width: 40%;
    /* width: 90%; */
    height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 龙马智芯logo样式 */
.info-pic-longma {
    width: 100%;
    height: 100px;
    background: url(pic/longma-logo.png) no-repeat center;
    background-size: contain;
    margin: 1px auto;
    border-radius: 8px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}
