/* ========== NCB Demo Scene Styles ========== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== CSS变量定义 ========== */
:root {
    --primary: #4cc9f0;
    --secondary: #4361ee;
    --bg-dark: #0a1929;
    --text-light: #a8b2d1;
    --glow: 0 0 20px rgba(76, 201, 240, 0.3);
    --brand-1: #8AA381;
    --brand-2: #78A682;
    --brand-3: #498AC1;
    --brand-4: #3C7EB7;
    --bg: #F6FAFF;
    --text: #1E2B36;
    --text-dim: #5A6A79;
    --card: #FFFFFF;
    --border: #E6EEF5;
    --brand-grad: linear-gradient(135deg, var(--brand-2) 0%, var(--brand-1) 35%, var(--brand-3) 65%, var(--brand-4) 100%);
    --shadow-soft: 0 10px 24px rgba(60, 126, 183, 0.12);
    --scene-primary: #4A9DB5;
    --scene-secondary: #8AD4C3;
    --scene-text: #2c5f6f;
    --scene-glow: rgba(74, 157, 181, 0.3);
}

body {
    /* font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden; */
    background: linear-gradient(180deg, #F9FCFF 0%, var(--bg) 100%);
    color: var(--text);
}

/* 多场景演示页面的通用样式 */
/* ========== 场景容器基础样式 ========== */
.demo-screen {
    width: 100%;
    /* min-height: 100vh; */
    height: calc(100vh - 70px);
    padding: 0px !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ========== 场景切换容器 ========== */
.scene-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    /* z-index: 7; */
}

.scene-track {
    display: flex;
    width: 600%;
    /* 6个场景 */
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scene-slide {
    width: calc(100% / 6);
    height: 100%;
    /* height: 100vh; */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* 防止非当前场景的元素被点击 */
    pointer-events: none;
}

/* 只有当前可见的场景才能接收点击事件 */
.scene-slide:nth-child(1) {
    pointer-events: auto;
}

/* 通过JS控制当前场景的pointer-events */
.scene-slide.active-scene {
    pointer-events: auto;
}

/* 非活动场景禁用点击 */
.scene-slide:not(.active-scene) {
    pointer-events: none;
}

/* ========== 场景标题 ========== */
.scene-title {
    position: absolute;
    /* 180px -> 160px */
    top: 160px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    white-space: nowrap;
    animation: sceneTitleEnter 0.8s ease-out both;
}

@keyframes sceneTitleEnter {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ========== 场景背景渐变 ========== */
.scene-slide[data-scene="agriculture"] {
    background: linear-gradient(135deg, #4A9DB5 0%, #5FB5BE 30%, #7AC5C0 60%, #8AD4C3 100%);
}

.scene-slide[data-scene="industry"] {
    /* background: linear-gradient(135deg, #4A6FA5 0%, #5A8FC0 30%, #6AAFD5 60%, #7BCFEA 100%); */
    background: linear-gradient(230deg, #4A9DB5 0%, #5FB5BE 30%, #7AC5C0 60%, #8AD4C3 100%);
}

.scene-slide[data-scene="education"] {
    /* background: linear-gradient(135deg, #7B68EE 0%, #9370DB 30%, #BA55D3 60%, #DA70D6 100%); */
    background: linear-gradient(135deg, #4A9DB5 0%, #5FB5BE 30%, #7AC5C0 60%, #8AD4C3 100%);
}

.scene-slide[data-scene="research"] {
    /* background: linear-gradient(135deg, #2E8B57 0%, #3CB371 30%, #66CDAA 60%, #98FB98 100%); */
    background: linear-gradient(230deg, #4A9DB5 0%, #5FB5BE 30%, #7AC5C0 60%, #8AD4C3 100%);
}

.scene-slide[data-scene="aerospace"] {
    /* background: linear-gradient(135deg, #1E3A5F 0%, #2E5A8F 30%, #3E7ABF 60%, #4E9AEF 100%); */
    background: linear-gradient(135deg, #4A9DB5 0%, #5FB5BE 30%, #7AC5C0 60%, #8AD4C3 100%);
}

.scene-slide[data-scene="home"] {
    /* background: linear-gradient(90deg, #4A9DB5 0%, #5FB5BE 30%, #7AC5C0 60%, #8AD4C3 100%); */
    background: linear-gradient(230deg, #4A9DB5 0%, #5FB5BE 30%, #7AC5C0 60%, #8AD4C3 100%);
}

/* ========== 场景导航 ========== */
.scene-nav {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.scene-nav-item {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.scene-nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.scene-nav-item.active {
    color: var(--scene-text);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ========== 左右切换箭头 ========== */
.scene-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scene-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.1);
}

.scene-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.scene-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.scene-arrow-left {
    left: 30px;
}

.scene-arrow-right {
    right: 30px;
}

/* ========== 欢迎标题样式 ========== */
.welcome-title {
    position: absolute;
    /* 80px -> 50px */
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    z-index: 5;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: titleEnter 1s ease-out both;
}

.welcome-subtitle {
    position: absolute;
    /* 140px -> 120px */
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    text-align: center;
    z-index: 5;
    animation: subtitleEnter 1s ease-out 0.3s both;
}

@keyframes titleEnter {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px) scale(0.7);
        filter: blur(15px);
    }

    60% {
        transform: translateX(-50%) translateY(5px) scale(1.08);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes subtitleEnter {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        filter: blur(0);
    }
}

/* ========== 背景粒子效果 ========== */
.bg-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    animation: floatParticle 20s linear infinite;
    will-change: transform, opacity;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    z-index: 3;
}

@keyframes floatParticle {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        transform: translate3d(50px, -110vh, 0) rotate(360deg);
        opacity: 0;
    }
}

/* ========== 动态光环效果 ========== */
.glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 2px solid rgba(138, 212, 195, 0.4);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: glowRingExpand 4s ease-out infinite;
    will-change: transform, opacity;
    transform-origin: center center;
}

.ring-1 {
    width: 200px;
    height: 200px;
    animation-delay: 0s;
    z-index: 3;
}

.ring-2 {
    width: 200px;
    height: 200px;
    animation-delay: 1.3s;
    z-index: 3;
}

.ring-3 {
    width: 200px;
    height: 200px;
    animation-delay: 2.6s;
    z-index: 3;
}

@keyframes glowRingExpand {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
        border-width: 3px;
    }

    20% {
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, -50%) scale(5);
        opacity: 0;
        border-width: 1px;
    }
}

/* ========== 产品演示容器 ========== */
.introduce-container1 {
    position: relative;
    width: 90%;
    max-width: 1270px;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== 连接线样式 ========== */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.connection-line {
    stroke: #4A9FD8;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 8, 5;
    stroke-linecap: round;
    opacity: 0;
    filter: drop-shadow(0 0 8px rgba(74, 159, 216, 0.6));
    animation: lineAppear 0.6s ease-out forwards;
}

@keyframes lineAppear {
    0% {
        opacity: 0;
        stroke-dashoffset: 100;
    }

    100% {
        opacity: 1;
        stroke-dashoffset: 0;
    }
}

.connection-line.active {
    animation: linePulse 2s ease-in-out infinite;
}

@keyframes linePulse {

    0%,
    100% {
        stroke-width: 2;
        opacity: 0.8;
    }

    50% {
        stroke-width: 3;
        opacity: 1;
    }
}

@keyframes lineDisappear {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        stroke-dashoffset: -100;
    }
}

/* ========== 语音控制卡片样式 ========== */
.voice-control-cards {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 15;
    width: 500px;
}

.voice-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(74, 157, 181, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    animation: voiceCardEnter 0.8s ease-out both;
}

.voice-card:nth-child(1) {
    animation-delay: 0.3s;
}

.voice-card:nth-child(2) {
    animation-delay: 0.5s;
}

.voice-card:nth-child(3) {
    animation-delay: 0.7s;
}

@keyframes voiceCardEnter {
    0% {
        opacity: 0;
        transform: translateX(-50px) scale(0.9);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

.voice-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 32px rgba(74, 157, 181, 0.25), 0 0 40px rgba(138, 212, 195, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    border-color: rgba(138, 212, 195, 0.6);
}

.voice-card:active {
    transform: translateY(-2px) scale(1.01);
}

.voice-card-icon {
    font-size: 40px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

.voice-card-text {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: var(--scene-text);
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.voice-card-badge {
    padding: 6px 16px;
    background: rgba(138, 212, 195, 0.3);
    border: 1px solid rgba(138, 212, 195, 0.5);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--scene-text);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.voice-card:hover .voice-card-badge {
    background: rgba(138, 212, 195, 0.5);
    border-color: rgba(138, 212, 195, 0.7);
    transform: scale(1.05);
}

/* ========== AI对话框样式 ========== */
.introduce-container1_input {
    position: relative;
    z-index: 13;
    width: 520px;
    height: 420px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(74, 157, 181, 0.2), 0 20px 60px rgba(138, 212, 195, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: centerPanelEnter 1s ease-out 0.5s both;
    overflow: hidden;
    z-index: 13;
}

.introduce-container1_input::before {
    content: '🎮 NCB 控制台';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.introduce-container1_input:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(74, 157, 181, 0.25), 0 24px 70px rgba(138, 212, 195, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

@keyframes centerPanelEnter {
    0% {
        opacity: 0;
        transform: scale(0.5) rotateX(90deg);
        filter: blur(20px);
    }

    50% {
        transform: scale(1.05) rotateX(10deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotateX(0deg);
        filter: blur(0);
    }
}

/* ========== 提示区域 ========== */
.control-tips {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(138, 212, 195, 0.25) 0%, rgba(74, 157, 181, 0.25) 100%);
    border: 1px solid rgba(138, 212, 195, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    animation: tipFadeIn 1s ease-out 1.5s both;
}

.tip-icon {
    font-size: 24px;
    flex-shrink: 0;
    animation: tipPulse 2s ease-in-out infinite;
}

.tip-content {
    flex: 1;
    min-width: 0;
}

.tip-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--scene-text);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.tip-text {
    font-size: 12px;
    color: rgba(44, 95, 111, 0.85);
    line-height: 1.5;
    word-break: keep-all;
}

@keyframes tipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tipPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ========== AI对话容器 ========== */
.ai-chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* 移除 scroll-behavior: smooth 避免与 JS 滚动冲突 */
}

.ai-chat-container::-webkit-scrollbar {
    width: 8px;
}

.ai-chat-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.ai-chat-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(74, 159, 216, 0.6) 0%, rgba(123, 198, 168, 0.6) 100%);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.ai-chat-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(74, 159, 216, 0.9) 0%, rgba(123, 198, 168, 0.9) 100%);
}

.ai-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* 移除 min-height: 100% 避免高度抖动 */
}

/* ========== 消息气泡样式 ========== */
.user-message {
    align-self: flex-end;
    max-width: 80%;
    background: linear-gradient(135deg, #4A9FD8 0%, #7BC6A8 100%);
    color: #fff;
    padding: 12px 18px;
    border-radius: 18px 18px 4px 18px;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(74, 159, 216, 0.3);
    animation: messageFadeIn 0.4s ease-out both;
}

.ai-message {
    align-self: flex-start;
    max-width: 85%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--scene-text);
    padding: 12px 18px;
    border-radius: 18px 18px 18px 4px;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: messageFadeIn 0.4s ease-out 0.2s both;
}

.system-message {
    align-self: center;
    max-width: 90%;
    background: rgba(138, 212, 195, 0.2);
    color: var(--scene-text);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    border: 1px solid rgba(138, 212, 195, 0.3);
    animation: messageFadeIn 0.4s ease-out 0.3s both;
}

@keyframes messageFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 返回按钮 ========== */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    color: var(--scene-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(74, 157, 181, 0.2);
}

.back-button i {
    font-size: 14px;
}

/* ========== 设备容器样式 ========== */
.introduce-container1_devices {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.introduce-container1_device {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ========== 设备基础样式 ========== */
.introduce-container1_device>div {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s ease;
    pointer-events: all !important;
    box-shadow: none !important;
    z-index: 100;
    isolation: isolate;
}

.introduce-container1_device>div:hover {
    transform: scale(1.15);
    filter: brightness(1.2);
}

.introduce-container1_device>div:active {
    transform: scale(1.05);
    transition: transform 0.1s ease;
}

.introduce-container1_device>div::before {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* ========== 设备图标通用样式 ========== */
.introduce-container1_device .device-icon {
    width: 55px;
    height: 55px;
    position: absolute;
    top: 28%;
    left: 26%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    pointer-events: none;
    background: none !important;
    border-radius: 0 !important;
}

.introduce-container1_device .device-icon,
.introduce-container1_device .fan-wrapper {
    pointer-events: none;
    border: none !important;
    background: transparent !important;
    animation: deviceFadeIn 0.8s ease-out both;
}

@keyframes deviceFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
        filter: blur(10px);
    }

    60% {
        transform: scale(1.15) rotate(10deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0);
    }
}

/* ========== 设备状态指示器 ========== */
.device-status-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #666;
    border: 2px solid #fff;
    transition: all 0.3s ease;
    z-index: 10;
}

.introduce-container1_device>div.active .device-status-indicator {
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
}

/* ========== 各设备位置定义 ========== */
/* 电源灯 - 顶部左侧 */
.introduce-container1_device_power {
    /* 10% -> 5% */
    top: 5%;
    /* 20% -> 12% */
    left: 12%;
}

/* 状态灯 - 顶部右侧 */
.introduce-container1_device_status {
    /* 10% -> 5% */
    top: 5%;
    /* 20% -> 12% */
    right: 12%;
}

/* 风扇 - 左侧中间 */
.introduce-container1_device_fan {
    top: 35%;
    left: 4%;
    /* transform: translateY(-50%); */
}

/* 喇叭 - 右侧中间 */
.introduce-container1_device_speaker {
    top: 35%;
    right: 4%;
    /* transform: translateY(-50%); */
}

/* 按键 - 底部左侧 */
.introduce-container1_device_button {
    /* 10% -> 20% */
    bottom: 20%;
    /* 20% -> 12% */
    left: 12%;
}

/* 指示灯 - 底部右侧 */
.introduce-container1_device_indicator {
    /* 10% -> 20% */
    bottom: 20%;
    /* 20% -> 10% */
    right: 10%;
}

/* ========== 电源灯样式 ========== */
.introduce-container1_device_power .device-icon {
    fill: #666;
    filter: brightness(0.6);
    transition: all 0.5s ease;
}

.introduce-container1_device_power.active {
    background: transparent !important;
    box-shadow: none !important;
}

.introduce-container1_device_power.active .device-icon {
    fill: #fbbf24;
    filter: brightness(1.5) drop-shadow(0 0 10px #fbbf24) drop-shadow(0 0 20px #f59e0b) drop-shadow(0 0 30px #fb923c);
    transform: translate(-50%, -50%) scale(1.15);
}

/* ========== 状态灯样式 ========== */
.introduce-container1_device_status .status-outer {
    fill: #333;
    opacity: 0.8;
    transition: all 0.5s ease;
}

.introduce-container1_device_status .status-inner {
    fill: #555;
    opacity: 0.8;
    transition: all 0.5s ease;
}

.introduce-container1_device_status.active {
    background: transparent !important;
    box-shadow: none !important;
}

.introduce-container1_device_status.active .status-outer {
    fill: #8DCDFC;
    opacity: 1;
}

.introduce-container1_device_status.active .status-inner {
    fill: #1890FF;
    opacity: 1;
    filter: brightness(1.3) drop-shadow(0 0 10px #1890FF) drop-shadow(0 0 20px #1890FF);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ========== 风扇样式 ========== */
.introduce-container1_device_fan .fan-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.introduce-container1_device_fan .device-icon {
    fill: #333;
    opacity: 0.8;
    transition: fill 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
    width: 55px;
    height: 55px;
    flex-shrink: 0;
}

.introduce-container1_device_fan.active {
    background: transparent !important;
    box-shadow: none !important;
}

.introduce-container1_device_fan.active .device-icon {
    fill: #06b6d4;
    opacity: 1;
    filter: brightness(1.3) drop-shadow(0 0 10px #06b6d4);
    animation: fanRotate 2s linear infinite;
}

@keyframes fanRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ========== 喇叭样式 ========== */
.introduce-container1_device_speaker .speaker-body {
    fill: #333;
    opacity: 0.8;
    transition: all 0.5s ease;
}

.introduce-container1_device_speaker.active {
    background: transparent !important;
    box-shadow: none !important;
}

.introduce-container1_device_speaker.active .speaker-body {
    fill: #f97316;
    opacity: 1;
    filter: brightness(1.3) drop-shadow(0 0 10px #f97316);
}

.introduce-container1_device_speaker .sound-wave {
    stroke: #f97316;
    opacity: 0;
}

.introduce-container1_device_speaker.active .wave-1 {
    animation: soundWave 1.5s ease-out infinite;
}

.introduce-container1_device_speaker.active .wave-2 {
    animation: soundWave 1.5s ease-out 0.3s infinite;
}

.introduce-container1_device_speaker.active .wave-3 {
    animation: soundWave 1.5s ease-out 0.6s infinite;
}

@keyframes soundWave {
    0% {
        opacity: 0.8;
        transform: scale(0.8);
    }

    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* ========== 按键样式 ========== */
/* .introduce-container1_device_button::after {
    content: '🔘';
} */

.introduce-container1_device_button.active {
    background: transparent !important;
    box-shadow: none !important;
    transform: scale(1);
}

.button-content {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 100;
}

.introduce-container1_device_button.active .button-content {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.button-content::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(0, 0, 0, 0.9);
}

/* ========== 指示灯样式 ========== */
.introduce-container1_device_indicator .indicator-cover {
    fill: #CBCBCB;
    opacity: 0.6;
    transition: all 0.5s ease;
}

.introduce-container1_device_indicator .indicator-body {
    fill: #7D7D7D;
    opacity: 0.6;
    transition: all 0.5s ease;
}

.introduce-container1_device_indicator .indicator-rays {
    fill: #7D7D7D;
    opacity: 0.5;
    transition: all 0.5s ease;
}

.introduce-container1_device_indicator.active {
    background: transparent !important;
    box-shadow: none !important;
}

.introduce-container1_device_indicator.active .indicator-cover {
    fill: #fbbf24;
    opacity: 1;
    animation: indicatorBlink 1s ease-in-out infinite;
}

.introduce-container1_device_indicator.active .indicator-body {
    fill: #ec4899;
    opacity: 1;
    filter: brightness(1.3);
}

.introduce-container1_device_indicator.active .indicator-rays {
    fill: #fbbf24;
    opacity: 1;
    filter: drop-shadow(0 0 10px #fbbf24);
    animation: indicatorRaysBlink 1s ease-in-out infinite;
}

@keyframes indicatorBlink {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1.5) drop-shadow(0 0 15px #fbbf24);
    }

    50% {
        opacity: 0.3;
        filter: brightness(0.8);
    }
}

@keyframes indicatorRaysBlink {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

/* ========== 向下滚动提示 ========== */
.scroll-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    text-align: center;
    z-index: 10;
    animation: scrollHintBounce 2s ease-in-out infinite;
}

.scroll-hint i {
    display: block;
    font-size: 24px;
    margin-top: 8px;
}

@keyframes scrollHintBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ========== 响应式样式 - 方案C：保持圆形布局 + 缩小优化 ========== */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 26px;
        top: 25px;
        padding: 0 15px;
    }

    .welcome-subtitle {
        font-size: 13px;
        top: 60px;
        padding: 0 20px;
    }

    .scene-title {
        font-size: 20px;
        top: 100px;
    }

    /* 容器保持原有布局方式 */
    .introduce-container1 {
        width: 95%;
        max-width: 480px;
        height: 75vh;
        margin: 0 auto;
    }

    /* 语音卡片 - 进一步缩小 */
    .voice-control-cards {
        width: 75%;
        max-width: 300px;
        gap: 8px;
    }

    .voice-card {
        padding: 8px 12px;
        gap: 8px;
        border-radius: 12px;
    }

    .voice-card-icon {
        width: 30px;
        height: 30px;
    }

    .voice-card-icon img {
        width: 100%;
        height: 100%;
    }

    .voice-card-text {
        font-size: 11px;
        line-height: 1.3;
    }

    .voice-card-badge {
        font-size: 9px;
        padding: 3px 8px;
    }

    /* AI对话框 - 进一步缩小 */
    .introduce-container1_input {
        width: 75%;
        max-width: 300px;
        height: 280px;
        padding: 12px;
    }

    .introduce-container1_input::before {
        font-size: 15px;
        top: -26px;
    }

    .control-tips {
        padding: 7px 9px;
        gap: 7px;
    }

    .tip-icon {
        font-size: 15px;
    }

    .tip-title {
        font-size: 10px;
    }

    .tip-text {
        font-size: 9px;
    }

    .ai-chat-container {
        padding: 7px;
    }

    .user-message,
    .ai-message {
        font-size: 10px;
        padding: 6px 9px;
    }

    .system-message {
        font-size: 9px;
        padding: 5px 7px;
    }

    .back-button {
        font-size: 10px;
        padding: 5px 9px;
    }

    /* 设备图标 - 大幅缩小 + 重新定位（保持原有圆形布局） */
    .introduce-container1_device > div {
        width: 55px !important;
        height: 55px !important;
    }

    /* 设备图标内部 */
    .introduce-container1_device .device-icon {
        width: 32px !important;
        height: 32px !important;
    }

    /* 设备标题 - 缩小字号 */
    .introduce-container1_device > div::before {
        font-size: 9px;
        bottom: -22px;
    }

    /* 重新定位设备 - 调整布局避免被对话框遮挡 */
    .introduce-container1_device_power {
        top: 8% !important;
        left: 18% !important;
    }

    .introduce-container1_device_status {
        top: 8% !important;
        right: 18% !important;
    }

    /* 中部设备往外移 */
    .introduce-container1_device_fan {
        top: 38% !important;
        left: 2% !important;  /* 从6%改为2% */
    }

    .introduce-container1_device_speaker {
        top: 38% !important;
        right: 2% !important;  /* 从6%改为2% */
    }

    /* 底部设备往下移，避免被对话框遮挡 */
    .introduce-container1_device_button {
        bottom: 16% !important;  /* 从24%改为16%，数值越小越靠下 */
        left: 14% !important;
    }

    .introduce-container1_device_indicator {
        bottom: 16% !important;  /* 从24%改为16%，数值越小越靠下 */
        right: 14% !important;
    }

    /* 按钮内容提示 */
    .button-content {
        font-size: 11px;
        padding: 6px 12px;
        top: -48px;
    }

    /* 连接线缩小 */
    .connection-line {
        stroke-width: 1.5;
    }

    .scene-nav {
        flex-wrap: wrap;
        justify-content: center;
        padding: 6px 10px;
        gap: 6px;
        bottom: 50px;
        max-width: 90%;
    }

    .scene-nav-item {
        padding: 5px 10px;
        font-size: 11px;
    }

    .scene-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .scene-arrow-left {
        left: 10px;
    }

    .scene-arrow-right {
        right: 10px;
    }

    .scroll-hint {
        font-size: 11px;
        bottom: 5px;
    }

    .scroll-hint i {
        font-size: 18px;
        margin-top: 4px;
    }

    /* 性能优化 - 隐藏装饰性元素 */
    .glow-ring {
        display: none;
    }

    .bg-particle {
        display: none;
    }
}

/* ========== 第二屏（Intro区域）移动端优化 ========== */
@media (max-width: 768px) {
    .intro {
        min-height: auto;
        padding: 60px 0 !important;
    }

    .intro .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .intro .row {
        flex-direction: column;
        min-height: auto;
    }

    /* 修复移动端列宽问题 */
    .intro .col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 30px;
    }

    .intro-content {
        padding-right: 0;
        text-align: center;
    }

    .intro-content h1 {
        font-size: 32px !important;
        margin-bottom: 20px;
    }

    .intro-content p {
        font-size: 16px !important;
        line-height: 1.6;
        margin-bottom: 25px;
    }

    .intro-content .btn-default,
    .intro-content .btn-primary {
        font-size: 14px !important;
        padding: 12px 20px !important;
        margin: 5px !important;
        display: inline-block !important;
    }

    .intro .col-md-6 > div {
        padding: 10px 0;
    }

    .intro .col-md-6 img {
        max-width: 90%;
        margin: 0 auto;
        display: block;
    }
}

/* ========== 平板横屏优化 ========== */
@media (min-width: 769px) and (max-width: 1024px) {
    .introduce-container1 {
        max-width: 900px;
    }

    .voice-control-cards {
        width: 420px;
    }

    .introduce-container1_input {
        width: 420px;
        height: 360px;
    }

    .introduce-container1_device > div {
        width: 85px;
        height: 85px;
    }

    .introduce-container1_device .device-icon {
        width: 48px;
        height: 48px;
    }
}

/* ========== 超小屏幕优化 (手机竖屏) ========== */
@media (max-width: 480px) {
    .demo-screen {
        height: calc(100vh - 60px);
    }

    .welcome-title {
        font-size: 22px;
        top: 20px;
    }

    .welcome-subtitle {
        font-size: 12px;
        top: 52px;
    }

    .scene-title {
        font-size: 18px;
        top: 88px;
    }

    .introduce-container1 {
        width: 98%;
        max-width: 380px;
        height: 72vh;
    }

    .voice-control-cards {
        width: 80%;
        max-width: 270px;
        gap: 7px;
    }

    .voice-card {
        padding: 7px 10px;
        gap: 7px;
    }

    .voice-card-icon {
        width: 26px;
        height: 26px;
    }

    .voice-card-text {
        font-size: 10px;
    }

    .voice-card-badge {
        font-size: 8px;
        padding: 2px 7px;
    }

    .introduce-container1_input {
        width: 80%;
        max-width: 270px;
        height: 260px;
        padding: 10px;
    }

    .introduce-container1_input::before {
        font-size: 13px;
        top: -24px;
    }

    .control-tips {
        padding: 5px 7px;
    }

    .tip-icon {
        font-size: 14px;
    }

    .tip-title {
        font-size: 9px;
    }

    .tip-text {
        font-size: 8px;
    }

    .ai-chat-container {
        padding: 5px;
    }

    .user-message,
    .ai-message {
        font-size: 9px;
        padding: 5px 7px;
    }

    .system-message {
        font-size: 8px;
        padding: 4px 6px;
    }

    /* 设备进一步缩小 */
    .introduce-container1_device > div {
        width: 48px !important;
        height: 48px !important;
    }

    .introduce-container1_device .device-icon {
        width: 28px !important;
        height: 28px !important;
    }

    .introduce-container1_device > div::before {
        font-size: 8px;
        bottom: -20px;
    }

    /* 更紧凑的设备定位 - 避免被小对话框遮挡 */
    .introduce-container1_device_power {
        top: 10% !important;
        left: 20% !important;
    }

    .introduce-container1_device_status {
        top: 10% !important;
        right: 20% !important;
    }

    /* 中部设备往边缘移动 */
    .introduce-container1_device_fan {
        top: 40% !important;
        left: 3% !important;  /* 从8%改为3% */
    }

    .introduce-container1_device_speaker {
        top: 40% !important;
        right: 3% !important;  /* 从8%改为3% */
    }

    /* 底部设备往下移，避免被对话框遮挡 */
    .introduce-container1_device_button {
        bottom: 18% !important;  /* 从26%改为18%，往下移 */
        left: 16% !important;
    }

    .introduce-container1_device_indicator {
        bottom: 18% !important;  /* 从26%改为18%，往下移 */
        right: 16% !important;
    }

    .button-content {
        font-size: 10px;
        padding: 5px 10px;
        top: -42px;
    }

    .scene-nav {
        bottom: 40px;
        padding: 5px 8px;
        gap: 4px;
    }

    .scene-nav-item {
        padding: 4px 8px;
        font-size: 10px;
    }

    .scene-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .scene-arrow-left {
        left: 5px;
    }

    .scene-arrow-right {
        right: 5px;
    }

    .scroll-hint {
        font-size: 10px;
    }

    .scroll-hint i {
        font-size: 16px;
    }

    /* 第二屏优化 */
    .intro {
        padding: 40px 0 !important;
    }

    .intro-content h1 {
        font-size: 24px !important;
        margin-bottom: 16px;
    }

    .intro-content p {
        font-size: 14px !important;
        margin-bottom: 20px;
    }

    .intro-content .btn-default,
    .intro-content .btn-primary {
        font-size: 13px !important;
        padding: 10px 16px !important;
        width: 100%;
        max-width: 280px;
    }
}



/* ========== Intro区域样式 ========== */
.intro {
    padding: 0px !important;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    /* padding-top: 80px; */
    background: url('/home/images/bg112.jpg') center center / cover no-repeat;
    position: relative;
}

.intro .container-fluid {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 60px !important;
    padding-right: 60px !important;
    position: relative;
    z-index: 1;
}

.intro .row {
    display: flex;
    align-items: center;
    min-height: 650px;
}

.intro .col-md-6 {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
}

.intro-content {
    padding-right: 40px;
    width: 100%;
}

.intro .col-md-6>div {
    width: 100%;
    padding: 20px;
}

.intro .col-md-6 img {
    width: 100%;
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

.intro-content h1 {
    font-size: clamp(42px, 6vw, 72px);
    margin-bottom: 25px;
    color: #1a1a1a;
    font-weight: 700;

    letter-spacing: 0.5px;
}

.intro-content p {
    font-size: 22px;
    color: #1a1a1a;
    line-height: 1.8;
    margin-bottom: 35px;
    font-weight: 500;
    
    letter-spacing: 0.3px;
}

/* ========== 首屏按钮样式 ========== */
.intro-content .btn-default,
.intro-content .btn-primary {
    background-color: #01bf86 !important;
    color: #FFFFFF !important;
    border: none !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(1, 191, 134, 0.3);
    font-size: 16px;
    padding: 14px 24px;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.intro-content .btn-default:hover,
.intro-content .btn-primary:hover {
    background-color: #019e6f !important;
    box-shadow: 0 6px 16px rgba(1, 191, 134, 0.4);
    transform: translateY(-2px);
    color: #FFFFFF !important;
    text-decoration: none;
}

.intro-content .fa-caret-down {
    color: #FFFFFF;
    font-size: 32px;
    margin-top: 20px;
}