* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-left .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-left .logo .material-icons {
    font-size: 32px;
    color: #667eea;
}

.header-left .logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.header-right {
    display: flex;
    gap: 16px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.header-btn:hover {
    background: #e0e0e0;
    transform: scale(1.02);
}

.header-btn .material-icons {
    font-size: 20px;
}

.main-content {
    flex: 1;
    display: flex;
    padding: 15px;
    gap: 15px;
    overflow: hidden;
}

.left-panel {
    width: 50%;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: white;
    border-radius: 20px 20px 0 0;
    height: 60px;
}

.panel-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header .logo .material-icons {
    color: #667eea;
    font-size: 24px;
}

.panel-header .logo-text {
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.panel-header .header-left {
    display: flex;
    align-items: center;
}

.panel-header .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header .header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.panel-header .header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.panel-header .header-btn .material-icons {
    font-size: 18px;
}

.panel-header .header-btn .btn-text {
    font-size: 14px;
    font-weight: 500;
}

.settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #333;
    border: 1px solid #555;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-btn:hover {
    background: #555;
}

.settings-btn .material-icons {
    font-size: 22px;
}

.digital-human-section {
    /* display: flex;
    gap: 20px; */
    padding: 10px;
    /* align-items: flex-start; */
}

.human-carousel {
    position: relative;
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    height: 17rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-radius: 25px;
    padding: 10px;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.digital-human {
    position: relative;
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.digital-human:hover {
    transform: translateY(10px) scale(1.05);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    padding-bottom: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    width: 30px;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 数字人名字显示 */
.human-name-display {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.human-name-text {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2px 10px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 2px solid #667eea;
    border-radius: 50%;
    background: white;
    color: #667eea;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    font-size: 24px;
}

.carousel-nav:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.left-nav {
    left: 12px;
}

.right-nav {
    right: 12px;
}

.human-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.head {
    position: relative;
    width: 220px;
    height: 220px;
}

.face {
    position: absolute;
    width: 220px;
    height: 220px;
    background: linear-gradient(145deg, #ffecd2, #fcb69f);
    border-radius: 50%;
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.1),
                0 5px 20px rgba(0,0,0,0.1);
}

.eyes {
    position: absolute;
    top: 77px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 44px;
}

.eye {
    width: 38px;
    height: 38px;
    background: #333;
    border-radius: 50%;
    position: relative;
    animation: blink 3s infinite;
}

.eye::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 9px;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
}

@keyframes blink {
    0%, 90%, 100% { height: 38px; }
    95% { height: 3px; }
}

.mouth {
    position: absolute;
    bottom: 66px;
    left: 50%;
    transform: translateX(-50%);
    width: 66px;
    height: 33px;
    background: #e85d75;
    border-radius: 0 0 33px 33px;
    animation: speak 2s infinite;
}

@keyframes speak {
    0%, 100% { height: 33px; }
    50% { height: 44px; }
}

.hair {
    position: absolute;
    top: -33px;
    left: 50%;
    transform: translateX(-50%);
    width: 242px;
    height: 77px;
    background: linear-gradient(145deg, #4a4a4a, #2a2a2a);
    border-radius: 110px 110px 0 0;
}

.hair.style-1 {
    background: linear-gradient(145deg, #4a4a4a, #2a2a2a);
}

.hair.style-2 {
    background: linear-gradient(145deg, #ff9a9e, #fecfef);
    border-radius: 50% 50% 30% 30%;
    height: 56px;
    width: 140px;
}

.hair.style-3 {
    background: linear-gradient(145deg, #ffecd2, #fcb69f);
    border-radius: 56px 56px 14px 14px;
    height: 42px;
    width: 147px;
}

.hair.style-4 {
    background: linear-gradient(145deg, #4a4a4a, #2a2a2a);
    border-radius: 50%;
    height: 63px;
    width: 70px;
    top: -28px;
}

.body {
    width: 176px;
    height: 220px;
    background: linear-gradient(145deg, #667eea, #764ba2);
    border-radius: 88px 88px 22px 22px;
    margin-top: -22px;
    position: relative;
}

.body.color-1 {
    background: linear-gradient(145deg, #667eea, #764ba2);
}

.body.color-2 {
    background: linear-gradient(145deg, #ffecd2, #fcb69f);
}

.body.color-3 {
    background: linear-gradient(145deg, #74b9ff, #0984e3);
}

.body.color-4 {
    background: linear-gradient(145deg, #00b894, #00cec9);
}

.face-2 {
    background: linear-gradient(145deg, #ffecd2, #fcb69f);
}

.face-3 {
    background: linear-gradient(145deg, #ffeaa7, #fdcb6e);
}

.face-4 {
    background: linear-gradient(145deg, #dfe6e9, #b2bec3);
}

.mouth-2 {
    background: #fd79a8;
    border-radius: 50%;
    height: 18px;
    width: 25px;
}

.mouth-3 {
    background: #fdcb6e;
    border-radius: 0 0 15px 15px;
    height: 15px;
    width: 30px;
}

.mouth-4 {
    background: #636e72;
    border-radius: 50%;
    height: 16px;
    width: 22px;
}

.arms {
    position: absolute;
    top: 44px;
    width: 264px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.arm {
    width: 44px;
    height: 132px;
    background: linear-gradient(145deg, #667eea, #764ba2);
    border-radius: 22px;
}

.arm.left {
    transform-origin: top center;
    animation: wave-left 2s infinite;
}

.arm.right {
    transform-origin: top center;
    animation: wave-right 2s infinite;
}

@keyframes wave-left {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(20deg); }
}

@keyframes wave-right {
    0%, 100% { transform: rotate(10deg); }
    50% { transform: rotate(-20deg); }
}

.floating-elements {
    position: absolute;
    top: -44px;
    left: 50%;
    transform: translateX(-50%);
    width: 330px;
}

.float-emoji {
    position: absolute;
    font-size: 55px;
    animation: float 3s infinite ease-in-out;
}

.float-emoji:nth-child(1) {
    left: 0;
    animation-delay: 0s;
}

.float-emoji:nth-child(2) {
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

.float-emoji:nth-child(3) {
    right: 0;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(-20px); opacity: 1; }
}

.welcome-section {
    text-align: left;
    margin-bottom: 4px;
    padding: 0 10px;
}

.welcome-section h2 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.welcome-section p {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.quick-questions {
    margin-bottom: 0;
    padding: 5px 0;
}

.question-bubble {
    width:19%;
    padding: 5px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.bubble-icon {
    text-align: center;
    font-size: 24px;
}

.bubble-text {
    font-size: 12px;
     text-align: center;
    font-weight: 500;
    color: #333;
}

.input-mode-section {
    margin-top: 5px;
    padding: 0 10px 10px;
}

.mode-title {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
    text-align: center;
}

.mode-buttons {
    display: flex;
    gap: 15px;
}

.mode-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn:hover {
    background: #e8e8e8;
    transform: scale(1.02);
}

.mode-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.mode-btn.active .mode-label {
    color: white;
}

.mode-btn.active .material-icons {
    color: white;
}

.mode-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mode-btn.active .mode-icon {
    background: rgba(255, 255, 255, 0.2);
}

.mode-icon .material-icons {
    font-size: 20px;
    color: #667eea;
}

.mode-label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.right-panel {
    width: 50%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #eee;
    border-radius: 20px 20px 0 0;
    height:60px;
}

.chat-title {
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.chat-header .header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-header .header-btn:hover {
    background: #e8e8e8;
}

.chat-header .header-btn .material-icons {
    font-size: 18px;
}

.chat-header .header-btn .btn-text {
    font-size: 14px;
    font-weight: 500;
}

.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.digital-human-container {
    padding: 20px;
    display: none;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.digital-human-container.show {
    display: flex;
}

.chat-digital-human {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chat-human-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chat-head {
    position: relative;
    width: 80px;
    height: 80px;
}

.chat-face {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #ffecd2, #fcb69f);
    border-radius: 50%;
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.1),
                0 5px 20px rgba(0,0,0,0.1);
}

.chat-eyes {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
}

.chat-eye {
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    position: relative;
    animation: blink 3s infinite;
}

.chat-eye::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 3px;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
}

.chat-mouth {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 12px;
    background: #e85d75;
    border-radius: 0 0 12px 12px;
    animation: speak 2s infinite;
}

.chat-hair {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 28px;
    background: linear-gradient(145deg, #4a4a4a, #2a2a2a);
    border-radius: 40px 40px 0 0;
}

.chat-body {
    width: 64px;
    height: 80px;
    background: linear-gradient(145deg, #667eea, #764ba2);
    border-radius: 32px 32px 8px 8px;
    margin-top: -8px;
    position: relative;
}

.chat-arms {
    position: absolute;
    top: 16px;
    width: 96px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.chat-arm {
    width: 16px;
    height: 48px;
    background: linear-gradient(145deg, #667eea, #764ba2);
    border-radius: 8px;
}

.chat-arm.left {
    transform-origin: top center;
    animation: wave-left 2s infinite;
}

.chat-arm.right {
    transform-origin: top center;
    animation: wave-right 2s infinite;
}

.chat-speech-bubble {
    position: absolute;
    right: -180px;
    top: 30px;
    background: white;
    padding: 16px 20px;
    border-radius: 16px;
    max-width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    color: #333;
}

.chat-speech-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid white;
}

.voice-input-trigger {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.voice-trigger-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.voice-trigger-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.voice-trigger-btn .material-icons {
    font-size: 28px;
}

.voice-recording-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    border-radius: 16px;
    animation: pulse 1s infinite;
}

.recording-wave {
    display: flex;
    align-items: center;
    gap: 4px;
}

.recording-wave span {
    width: 4px;
    height: 24px;
    background: white;
    border-radius: 2px;
    animation: wave 0.5s infinite ease-in-out;
}

.recording-wave span:nth-child(1) { animation-delay: 0s; }
.recording-wave span:nth-child(2) { animation-delay: 0.1s; }
.recording-wave span:nth-child(3) { animation-delay: 0.2s; }
.recording-wave span:nth-child(4) { animation-delay: 0.3s; }
.recording-wave span:nth-child(5) { animation-delay: 0.4s; }

.recording-text {
    color: white;
    font-weight: 500;
    font-size: 16px;
}

.recording-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recording-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.recording-btn .material-icons {
    color: white;
    font-size: 20px;
}

.recording-btn.stop-btn {
    background: #fff;
}

.recording-btn.stop-btn .material-icons {
    color: #ff6b6b;
}

.voice-transcript {
    margin-top: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
}

.transcript-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 500;
}

.transcript-content {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    min-height: 24px;
}

.text-input-area {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.chat-container {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.welcome-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #999;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 50%;
    margin-bottom: 20px;
}

.welcome-icon .material-icons {
    font-size: 40px;
    color: #667eea;
}

.welcome-message h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.welcome-message p {
    font-size: 14px;
    color: #666;
}

.message {
    display: flex;
    max-width: 95%;
}

.message.ai {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message .avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.message.ai .avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-right: 12px;
}

.message.user .avatar {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    margin-left: 12px;
}

.message .avatar .material-icons {
    font-size: 20px;
    color: white;
}

.message-content {
    display: flex;
    flex-direction: column;
}

.message.ai .message-content {
    align-items: flex-start;
}

.message.user .message-content {
    align-items: flex-end;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.message.ai .message-bubble {
    background: white;
    border-radius: 16px 16px 16px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ===== AI 等待动画（打字效果）===== */
.message.ai.waiting .message-bubble {
    min-width: 60px;
    min-height: 24px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}

.typing-indicator .typing-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-indicator .typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator .typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator .typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* 等待状态隐藏喇叭按钮 */
.message.ai.waiting .msg-play-btn {
    visibility: hidden;
}

.message.user .message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 4px 16px;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.message.ai .message-time {
    padding-left: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.msg-play-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.2s;
    line-height: 1;
    position: relative;
}
.msg-play-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}
.msg-play-btn .material-icons {
    font-size: 16px;
}
.msg-play-btn[data-playing="true"] {
    color: #667eea;
}

/* ===== 喇叭播放动画 ===== */
.msg-play-btn.playing {
    color: #667eea;
    background: rgba(102, 126, 234, 0.15);
    animation: speaker-glow 1.2s ease-in-out infinite;
}

/* 播放时的声波效果 - 三条动态声波 */
.msg-play-btn.playing::before,
.msg-play-btn.playing::after,
.msg-play-btn.playing .sound-wave {
    position: absolute;
    right: -3px;
    width: 4px;
    background: #667eea;
    border-radius: 2px;
}

.msg-play-btn.playing::before {
    content: '';
    height: 6px;
    top: 50%;
    transform: translateY(-50%);
    animation: wave-1 0.8s ease-in-out infinite;
}

.msg-play-btn.playing::after {
    content: '';
    height: 10px;
    top: 50%;
    transform: translateY(-50%);
    right: -8px;
    animation: wave-2 0.8s ease-in-out infinite 0.15s;
}

/* 第三条声波（通过 JS 动态添加） */
.msg-play-btn.playing .wave-3 {
    height: 14px;
    top: 50%;
    transform: translateY(-50%);
    right: -13px;
    animation: wave-3 0.8s ease-in-out infinite 0.3s;
}

/* 喇叭发光动画 */
@keyframes speaker-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 0 8px 2px rgba(102, 126, 234, 0.3);
    }
}

/* 声波动画 - 三条不同延迟 */
@keyframes wave-1 {
    0%, 100% { opacity: 0.3; height: 4px; }
    50% { opacity: 1; height: 8px; }
}

@keyframes wave-2 {
    0%, 100% { opacity: 0.3; height: 6px; }
    50% { opacity: 1; height: 12px; }
}

@keyframes wave-3 {
    0%, 100% { opacity: 0.3; height: 8px; }
    50% { opacity: 1; height: 16px; }
}

.message.user .message-time {
    padding-right: 4px;
}

.input-container {
    padding: 20px 24px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    background: white;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.input-wrapper input {
    flex: 1;
    padding: 16px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
}

.input-wrapper input::placeholder {
    color: #999;
}

.input-wrapper input:disabled {
    color: #ccc;
}

.action-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover:not(:disabled) {
    transform: scale(1.05);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-btn .material-icons {
    color: white;
    font-size: 20px;
}

.voice-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    border-radius: 12px;
    margin-top: 12px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4); }
    50% { box-shadow: 0 0 20px 10px rgba(255, 107, 107, 0.2); }
}

.voice-wave {
    display: flex;
    align-items: center;
    gap: 4px;
}

.voice-wave span {
    width: 4px;
    height: 20px;
    background: white;
    border-radius: 2px;
    animation: wave 0.5s infinite ease-in-out;
}

.voice-wave span:nth-child(1) { animation-delay: 0s; }
.voice-wave span:nth-child(2) { animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { animation-delay: 0.3s; }
.voice-wave span:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { height: 10px; }
    50% { height: 25px; }
}

.voice-text {
    color: white;
    font-weight: 500;
}

.cancel-btn {
    margin-left: auto;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.video-chat-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0a;
    display: none;
    flex-direction: column;
    z-index: 101;
    border-radius: 20px;
    overflow: hidden;
}

.video-chat-container.active {
    display: flex;
}

/* ========================================
   语音对话容器样式（嵌入式面板，无视频小窗）
   ======================================== */

.voice-chat-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0a;
    display: none;
    flex-direction: column;
    z-index: 101;
    border-radius: 20px;
    overflow: hidden;
}

.voice-chat-container.active {
    display: flex;
}

.voice-call-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.voice-call-header .caller-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.voice-call-header .caller-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.voice-call-header .call-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #aaa;
}

.voice-call-header .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: blink 2s infinite;
}

.voice-call-header .status-connecting .status-dot { background: #f59e0b; }
.voice-call-header .status-ready .status-dot { background: #10b981; }
.voice-call-header .status-listening .status-dot { background: #3b82f6; }
.voice-call-header .status-speaking .status-dot { background: #8b5cf6; }
.voice-call-header .status-error .status-dot { background: #ef4444; }

.voice-call-header .close-call-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.2);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.voice-call-header .close-call-btn:hover {
    background: rgba(239, 68, 68, 0.4);
}

.voice-call-header .close-call-btn .material-icons {
    color: #ef4444;
    font-size: 24px;
}

/* 语音对话主区域（无视频小窗，居中显示数字人） */
.voice-call-area {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

.voice-remote-area {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-remote-area .digital-human-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

/* 语音对话控制按钮 */
.voice-call-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.voice-call-controls .control-icon-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.voice-call-controls .control-icon-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.voice-call-controls .control-icon-btn .material-icons {
    color: #e2e8f0;
    font-size: 28px;
}

.voice-call-controls .control-icon-btn.active {
    background: rgba(102, 126, 234, 0.4);
}

.voice-call-controls .control-icon-btn.muted {
    background: rgba(239, 68, 68, 0.3);
}

.voice-call-controls .control-icon-btn.muted .material-icons {
    color: #ef4444;
}

.voice-call-controls .end-call-btn {
    background: rgba(239, 68, 68, 0.3);
}

.voice-call-controls .end-call-btn:hover {
    background: rgba(239, 68, 68, 0.5);
}

.voice-call-controls .end-call-btn .material-icons {
    color: #ef4444;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 90;
}

.overlay.visible {
    opacity: 1;
    visibility: visible;
}

.history-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.history-sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #eee;
}

.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.history-item {
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.history-item:hover {
    background: #f5f5f5;
}

.history-item.active {
    background: #e8eaf6;
}

.history-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-time {
    font-size: 12px;
    color: #999;
}

.sensitive-warning {
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.sensitive-words {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 5px;
    padding: 5px 10px;
    background: #fef5f5;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.sensitive-words::before {
    content: '⚠️ ';
    font-size: 12px;
}

.sensitive-warning-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border: 1px solid #ffcccc;
    border-radius: 12px;
    margin-bottom: 15px;
    animation: warning-pulse 3s infinite;
}

@keyframes warning-pulse {
    0%, 100% { border-color: #ffcccc; }
    50% { border-color: #ff9999; }
}

.sensitive-warning-bar .warning-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.sensitive-warning-bar .warning-text {
    font-size: 14px;
    color: #c0392b;
    font-weight: 500;
}

.video-call-area {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0a0a 100%);
}

.remote-video {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.digital-human-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.local-video-pip {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 140px;
    height: 190px;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.pip-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

.pip-placeholder .material-icons {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
}

.speech-bubble-large {
    background: rgba(255, 255, 255, 0.95);
    padding: 16px 24px;
    border-radius: 24px;
    max-width: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: absolute;
    bottom: 220px;
    right: 20px;
    display: none;
}

.speech-bubble-large::before {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 12px solid rgba(255, 255, 255, 0.95);
}

#ai-speech-text {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

.video-call-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.caller-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.caller-name {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.call-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4ade80;
    font-size: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.close-call-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
}

.close-call-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.close-call-btn .material-icons {
    font-size: 20px;
}

.call-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #4caf50;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.video-chat-main {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
}

.video-left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a2e 100%);
    position: relative;
}

.video-right-panel {
    width: 320px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-left: 1px solid #eee;
}

.local-video {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 120px;
    height: 160px;
    border-radius: 10px;
    background: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.local-video .video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
}

.local-video .video-placeholder .material-icons {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.3);
}

.digital-human-area {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 20px;
}

.big-human-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.big-head {
    position: relative;
    width: 150px;
    height: 150px;
}

.big-face {
    position: absolute;
    width: 150px;
    height: 150px;
    background: linear-gradient(145deg, #ffecd2, #fcb69f);
    border-radius: 50%;
    box-shadow: inset -8px -8px 25px rgba(0,0,0,0.1),
                0 8px 30px rgba(0,0,0,0.15);
}

.big-eyes {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
}

.big-eye {
    width: 24px;
    height: 24px;
    background: #333;
    border-radius: 50%;
    position: relative;
    animation: blink 3s infinite;
}

.big-eye::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 6px;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

.big-mouth {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 25px;
    background: #e85d75;
    border-radius: 0 0 25px 25px;
}

.big-mouth.speaking {
    animation: speak 0.5s infinite;
}

.big-hair {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 165px;
    height: 50px;
    background: linear-gradient(145deg, #4a4a4a, #2a2a2a);
    border-radius: 75px 75px 0 0;
}

.big-body {
    width: 120px;
    height: 150px;
    background: linear-gradient(145deg, #667eea, #764ba2);
    border-radius: 60px 60px 15px 15px;
    margin-top: -15px;
    position: relative;
}

.big-arms {
    position: absolute;
    top: 30px;
    width: 180px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.big-arm {
    width: 30px;
    height: 90px;
    background: linear-gradient(145deg, #667eea, #764ba2);
    border-radius: 15px;
}

.big-arm.left {
    transform-origin: top center;
    animation: wave-left 2s infinite;
}

.big-arm.right {
    transform-origin: top center;
    animation: wave-right 2s infinite;
}

.speech-bubble {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 20px 24px;
    border-radius: 20px;
    max-width: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: none;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 12px solid white;
}

.video-pip {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 180px;
    height: 240px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    display: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.video-pip.active {
    display: block;
}

.pip-placeholder {
    width: 100%;
    height: 100%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pip-placeholder .material-icons {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.5);
}

#local-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-messages {
    position: absolute;
    left: 20px;
    bottom: 180px;
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.message:last-child {
    margin-bottom: 0;
}

.video-chat-messages .mini-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-chat-messages .mini-avatar .material-icons {
    font-size: 20px;
    color: #e2e8f0;
}

.video-chat-messages .message-bubble {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 240px;
    color: #e2e8f0;
}

.video-chat-messages .user-message .message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.video-chat-input-area {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.video-chat-input-area input {
    flex: 1;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 15px;
    outline: none;
}

.video-chat-input-area input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.video-chat-input-area button {
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-chat-input-area button:hover {
    transform: scale(1.05);
}

.video-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.video-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.video-chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.video-chat-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.chat-tool-btn {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-tool-btn:hover {
    background: #e8e8e8;
    transform: scale(1.05);
}

.chat-tool-btn .material-icons {
    font-size: 24px;
    color: #667eea;
}

.video-chat-input input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 16px;
    background: #f5f5f5;
    font-size: 16px;
    outline: none;
}

.video-chat-input input::placeholder {
    color: #999;
}

.video-chat-input .send-btn {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-chat-input .send-btn:hover {
    transform: scale(1.05);
}

.video-chat-input .send-btn .material-icons {
    font-size: 24px;
    color: white;
}

.quick-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.7);
}

.action-item {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
}

.action-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.video-call-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.control-icon-btn {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
}

.control-icon-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.control-icon-btn .material-icons {
    font-size: 24px;
}

.control-icon-btn.active {
    background: #ef4444;
}

.control-icon-btn.active .material-icons {
    opacity: 0.7;
}

.control-icon-btn.end-call-btn {
    background: #ef4444;
}

.control-icon-btn.end-call-btn:hover {
    background: #dc2626;
}

.video-call-input {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.video-call-input input {
    flex: 1;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
}

.video-call-input input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.send-icon-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-icon-btn:hover {
    transform: scale(1.05);
}

.send-icon-btn .material-icons {
    font-size: 20px;
    color: white;
}

@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }
    
    .left-panel {
        width: 100%;
        max-width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: flex-start;
    }
    
    .digital-human-section {
        width: 100%;
        order: 1;
    }
    
    .welcome-section {
        width: 100%;
        order: 2;
    }
    
    .quick-questions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        order: 3;
    }
    
    .question-bubble {
        flex: 1;
        min-width: 200px;
    }
    
    .input-mode-section {
        width: 100%;
        order: 4;
    }
    
    .mode-buttons {
        justify-content: center;
    }
    
    .chat-messages {
        width: calc(100% - 40px);
        max-height: 200px;
    }
    
    .speech-bubble {
        right: 20px;
        left: 20px;
        top: 20px;
        transform: none;
        max-width: none;
    }
}

.settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.settings-modal.open {
    display: flex;
}

.settings-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.settings-header h2 {
    margin: 0;
    font-size: 20px;
}

.close-settings {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.close-settings:hover {
    background: rgba(255, 255, 255, 0.3);
}

.settings-body {
    padding: 20px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-item select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .header {
        padding: 12px 16px;
    }
    
    .header-left .logo-text {
        display: none;
    }
    
    .header-btn .btn-text {
        display: none;
    }
    
    .main-content {
        padding: 12px;
        gap: 12px;
    }
    
    .left-panel {
        padding: 16px;
    }
    
    .quick-questions {
        flex-direction: column;
    }
    
    .question-bubble {
        min-width: 100%;
    }
    
    .right-panel {
        padding: 16px;
    }
    
    .video-chat-controls {
        gap: 12px;
    }
    
    .control-item {
        padding: 12px 16px;
    }
    
    .control-item span:last-child {
        display: none;
    }
}

/* ========================================
   老师对话页面样式（与主页面数字人风格一致）
   ======================================== */

.teacher-chat-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: none;
    flex-direction: column;
    z-index: 1001;
}

.teacher-chat-page.active {
    display: flex;
}

/* Header */
.teacher-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.teacher-chat-header .back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    border: none;
    color: #667eea;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.teacher-chat-header .back-btn:hover {
    background: #667eea;
    color: white;
}

.teacher-chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.teacher-name-display {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* 状态指示器 */
.teacher-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transition: all 0.3s ease;
}

.teacher-status .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #667eea;
    animation: statusPulse 1.5s infinite;
}

.teacher-status .status-text {
    color: #667eea;
}

.teacher-status.status-connecting {
    background: rgba(255, 193, 7, 0.15);
    color: #f57c00;
}

.teacher-status.status-connecting .status-dot {
    background: #ff9800;
}

.teacher-status.status-ready {
    background: rgba(76, 175, 80, 0.15);
    color: #388e3c;
}

.teacher-status.status-ready .status-dot {
    background: #4caf50;
    animation: none;
}

.teacher-status.status-listening {
    background: rgba(33, 150, 243, 0.15);
    color: #1976d2;
}

.teacher-status.status-listening .status-dot {
    background: #2196f3;
}

.teacher-status.status-speaking {
    background: rgba(0, 150, 136, 0.15);
    color: #00897b;
}

.teacher-status.status-speaking .status-dot {
    background: #009688;
    animation: statusPulse 0.5s infinite;
}

.teacher-status.status-error {
    background: rgba(244, 67, 54, 0.15);
    color: #d32f2f;
}

.teacher-status.status-error .status-dot {
    background: #f44336;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* Main content */
.teacher-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 40px 24px 100px;
    overflow-y: auto;
}

/* 数字人容器 */
.teacher-human-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* 数字人本体（放大版，与主页一致） */
.teacher-digital-human {
    position: relative;
    transform: scale(1.5);
    transform-origin: center center;
}

.teacher-human-body {
    top: 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 头部 */
.teacher-head {
    position: relative;
    width: 220px;
    height: 220px;
}

.teacher-face {
    position: absolute;
    width: 220px;
    height: 220px;
    background: linear-gradient(145deg, #ffecd2, #fcb69f);
    border-radius: 50%;
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.1),
                0 5px 20px rgba(0,0,0,0.1);
}

/* 眼睛 */
.teacher-eyes {
    position: absolute;
    top: 77px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 44px;
}

.teacher-eye {
    width: 38px;
    height: 38px;
    background: #333;
    border-radius: 50%;
    position: relative;
    animation: blink 3s infinite;
}

.teacher-eye::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 9px;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
}

@keyframes blink {
    0%, 90%, 100% { height: 38px; }
    95% { height: 3px; }
}

/* 嘴巴 */
.teacher-mouth {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 25px;
    background: #e85d75;
    border-radius: 0 0 30px 30px;
    transition: all 0.15s ease;
}

.teacher-mouth.speaking {
    animation: speakAnimation 0.25s ease-in-out infinite;
}

@keyframes speakAnimation {
    0%, 100% {
        height: 15px;
        width: 40px;
        border-radius: 0 0 20px 20px;
    }
    50% {
        height: 35px;
        width: 55px;
        border-radius: 0 0 30px 30px;
    }
}

/* 头发 - 默认样式 */
.teacher-hair {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 230px;
    height: 70px;
    background: linear-gradient(145deg, #ff9a9e, #fecfef);
    border-radius: 115px 115px 0 0;
}

/* 身体 */
.teacher-body {
    width: 150px;
    height: 120px;
    background: linear-gradient(145deg, #667eea, #764ba2);
    border-radius: 75px 75px 20px 20px;
    margin-top: -15px;
    position: relative;
}

/* 手臂 */
.teacher-arms {
    position: absolute;
    top: 20px;
    width: 220px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.teacher-arm {
    width: 35px;
    height: 80px;
    background: linear-gradient(145deg, #667eea, #764ba2);
    border-radius: 20px;
}

.teacher-arm.left {
    transform: rotate(-15deg);
    transform-origin: top center;
}

.teacher-arm.right {
    transform: rotate(15deg);
    transform-origin: top center;
}

/* 漂浮元素 */
.teacher-floating-elements {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
}

.teacher-floating-elements .float-emoji {
    font-size: 24px;
    animation: floatEmoji 3s ease-in-out infinite;
}

.teacher-floating-elements .float-emoji:nth-child(1) {
    animation-delay: 0s;
}

.teacher-floating-elements .float-emoji:nth-child(2) {
    animation-delay: 1s;
}

.teacher-floating-elements .float-emoji:nth-child(3) {
    animation-delay: 2s;
}

@keyframes floatEmoji {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-15px) scale(1.2);
        opacity: 1;
    }
}

/* AI说话时的光环效果 */
.teacher-speaking-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border: 3px solid rgba(102, 126, 234, 0.5);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.teacher-speaking-ring.active {
    opacity: 1;
    animation: speakingRing 1.5s ease-in-out infinite;
}

@keyframes speakingRing {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        border-color: rgba(102, 126, 234, 0.5);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        border-color: rgba(102, 126, 234, 0.8);
    }
}

/* ===== 数字人样式变体（与主页面一致） ===== */

/* 数字人1: 天美 - 活泼女声（粉色系） */
.teacher-digital-human.human-0 .teacher-face {
    background: linear-gradient(145deg, #ffecd2, #fcb69f);
}
.teacher-digital-human.human-0 .teacher-hair {
    background: linear-gradient(145deg, #ff9a9e, #fecfef);
    border-radius: 115px 115px 20px 20px;
    height: 75px;
}
.teacher-digital-human.human-0 .teacher-body,
.teacher-digital-human.human-0 .teacher-arm {
    background: linear-gradient(145deg, #ff6b9d, #c44569);
}
.teacher-digital-human.human-0 .teacher-mouth {
    background: #ff6b9d;
}

/* 数字人2: 小荷 - 甜美女声（橙色系） */
.teacher-digital-human.human-1 .teacher-face {
    background: linear-gradient(145deg, #ffeaa7, #dfe6e9);
}
.teacher-digital-human.human-1 .teacher-hair {
    background: linear-gradient(145deg, #fdcb6e, #e17055);
    border-radius: 50% 50% 30% 30%;
    height: 80px;
}
.teacher-digital-human.human-1 .teacher-body,
.teacher-digital-human.human-1 .teacher-arm {
    background: linear-gradient(145deg, #f39c12, #e67e22);
}
.teacher-digital-human.human-1 .teacher-mouth {
    background: #e74c3c;
}

/* 数字人3: 云舟 - 沉稳男声（蓝色系） */
.teacher-digital-human.human-2 .teacher-face {
    background: linear-gradient(145deg, #dfe6e9, #b2bec3);
}
.teacher-digital-human.human-2 .teacher-hair {
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 115px 115px 0 0;
    height: 65px;
}
.teacher-digital-human.human-2 .teacher-body,
.teacher-digital-human.human-2 .teacher-arm {
    background: linear-gradient(145deg, #3498db, #2980b9);
}
.teacher-digital-human.human-2 .teacher-mouth {
    background: #2c3e50;
}

/* 数字人4: 小天 - 磁性男声（紫色系） */
.teacher-digital-human.human-3 .teacher-face {
    background: linear-gradient(145deg, #e8daef, #d2b4de);
}
.teacher-digital-human.human-3 .teacher-hair {
    background: linear-gradient(145deg, #6c3483, #8e44ad);
    border-radius: 50%;
    width: 100px;
    height: 90px;
    top: -25px;
}
.teacher-digital-human.human-3 .teacher-body,
.teacher-digital-human.human-3 .teacher-arm {
    background: linear-gradient(145deg, #9b59b6, #8e44ad);
}
.teacher-digital-human.human-3 .teacher-mouth {
    background: #6c3483;
}

/* 语音气泡 */
.teacher-speech-bubble {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    min-width: 200px;
    position: relative;
    backdrop-filter: blur(10px);
}

.teacher-speech-bubble::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid rgba(255, 255, 255, 0.95);
}

.teacher-speech-bubble .speech-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

#teacher-speech-text {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

/* ========================================
   实时语音控制样式
   ======================================== */

.teacher-voice-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* 音量指示器 */
.voice-level-indicator {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.voice-level-indicator.active {
    opacity: 1;
}

.voice-bar {
    width: 8px;
    height: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    transition: height 0.1s ease;
}

.voice-level-indicator.active .voice-bar {
    background: rgba(255, 255, 255, 0.9);
    animation: voiceWave 0.4s ease-in-out infinite;
}

.voice-level-indicator.active .voice-bar:nth-child(1) { animation-delay: 0s; }
.voice-level-indicator.active .voice-bar:nth-child(2) { animation-delay: 0.05s; }
.voice-level-indicator.active .voice-bar:nth-child(3) { animation-delay: 0.1s; }
.voice-level-indicator.active .voice-bar:nth-child(4) { animation-delay: 0.15s; }
.voice-level-indicator.active .voice-bar:nth-child(5) { animation-delay: 0.2s; }

@keyframes voiceWave {
    0%, 100% { height: 12px; }
    50% { height: 35px; }
}

/* 麦克风按钮 */
.teacher-mic-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: 4px solid rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
}

.teacher-mic-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.teacher-mic-btn:active {
    transform: scale(0.95);
}

.teacher-mic-btn .mic-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

.teacher-mic-btn .mic-icon {
    font-size: 28px;
    color: white;
}

.teacher-mic-btn .mic-status {
    font-size: 12px;
    margin-top: 6px;
    color: #667eea;
    font-weight: 500;
}

/* 麦克风按钮状态 */
.teacher-mic-btn.status-listening {
    border-color: #2196f3;
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.3);
}

.teacher-mic-btn.status-listening .mic-icon-wrapper {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    animation: pulseIcon 1.5s infinite;
}

.teacher-mic-btn.status-listening .mic-status {
    color: #1976d2;
}

.teacher-mic-btn.status-speaking {
    border-color: #009688;
    box-shadow: 0 8px 32px rgba(0, 150, 136, 0.3);
}

.teacher-mic-btn.status-speaking .mic-icon-wrapper {
    background: linear-gradient(135deg, #009688 0%, #00796b 100%);
}

.teacher-mic-btn.status-speaking .mic-status {
    color: #00897b;
}

.teacher-mic-btn.status-connecting {
    border-color: #ff9800;
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.3);
}

.teacher-mic-btn.status-connecting .mic-icon-wrapper {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    animation: pulseIcon 1s infinite;
}

.teacher-mic-btn.status-connecting .mic-status {
    color: #f57c00;
}

.teacher-mic-btn.status-paused {
    border-color: #9e9e9e;
}

.teacher-mic-btn.status-paused .mic-icon-wrapper {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
}

.teacher-mic-btn.status-paused .mic-status {
    color: #757575;
}

.teacher-mic-btn.status-error {
    border-color: #f44336;
    box-shadow: 0 8px 32px rgba(244, 67, 54, 0.3);
}

.teacher-mic-btn.status-error .mic-icon-wrapper {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.teacher-mic-btn.status-error .mic-status {
    color: #d32f2f;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ========================================
   视频对话新增样式
   ======================================== */

/* 视频对话状态显示 */
#video-chat-status-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

#video-chat-status-display .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9e9e9e;
    animation: statusBlink 1s infinite;
}

#video-chat-status-display.status-connecting .status-dot {
    background: #ff9800;
}

#video-chat-status-display.status-ready .status-dot {
    background: #4caf50;
    animation: none;
}

#video-chat-status-display.status-thinking .status-dot {
    background: #2196f3;
    animation: pulseDot 0.8s infinite;
}

#video-chat-status-display.status-vision .status-dot {
    background: #9c27b0;
}

#video-chat-status-display.status-error .status-dot {
    background: #f44336;
}

#video-chat-status-display.status-speaking .status-dot {
    background: #009688;
    animation: pulseDot 0.5s infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* 画面描述显示区域 */
.vision-context-display {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    z-index: 5;
}

.vision-context-display .material-icons {
    font-size: 16px;
    color: #9c27b0;
}

/* 本地视频 PIP */
#local-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transform: scaleX(-1);  /* 默认镜像翻转 */
}

#local-video.flipped {
    transform: scaleX(1);
}

/* AI 嘴巴说话动画 */
#ai-mouth.speaking {
    animation: aiSpeakAnimation 0.25s ease-in-out infinite;
}

@keyframes aiSpeakAnimation {
    0%, 100% {
        height: 12px;
        border-radius: 0 0 15px 15px;
    }
    50% {
        height: 28px;
        border-radius: 0 0 25px 25px;
    }
}

/* 打断按钮 */
#interrupt-btn {
    background: linear-gradient(145deg, #ff5722, #e64a19);
}

#interrupt-btn:hover {
    background: linear-gradient(145deg, #ff7043, #f4511e);
    transform: scale(1.1);
}

#interrupt-btn:active {
    transform: scale(0.95);
}

/* 控制按钮静音状态 */
.control-icon-btn.muted {
    background: #9e9e9e !important;
    opacity: 0.6;
}

.control-icon-btn.muted .material-icons {
    color: #757575;
}

/* 视频输入框 */
#video-chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease;
}

#video-chat-input:focus {
    outline: none;
    border-color: #667eea;
}

/* 思考状态气泡样式 */
#ai-speech-bubble.thinking {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 2px dashed #2196f3;
}

#ai-speech-bubble.thinking #ai-speech-text {
    color: #1976d2;
}