/* 智能导览系统专用样式 */
.guide-main {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}

/* 侧边栏样式 */
.guide-sidebar {
    width: 300px;
    background-color: white;
    border-right: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.guide-robot {
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
}

.robot-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    overflow: hidden;
}

.robot-avatar img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.robot-info {
    flex-grow: 1;
}

.robot-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.robot-status {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.guide-menu {
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
}

.menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.menu-item:hover {
    background-color: #f5f5f5;
}

.menu-item.active {
    background-color: rgba(30, 86, 49, 0.1);
    border-left: 4px solid var(--primary-color);
}

.menu-item i {
    margin-right: 15px;
    font-size: 18px;
    color: var(--primary-color);
}

.guide-destinations {
    padding: 15px 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.guide-destinations h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #666;
}

.destination-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.destination-item {
    padding: 10px;
    border-radius: 6px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.destination-item:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.destination-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.destination-info {
    flex-grow: 1;
}

.destination-name {
    font-weight: bold;
    margin-bottom: 2px;
}

.destination-distance {
    font-size: 12px;
    color: #666;
}

.destination-action {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

/* 内容区域样式 */
.guide-content {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

.view-container {
    display: none;
    height: 100%;
    flex-direction: column;
}

.view-container.active {
    display: flex;
}

.view-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-header h2 {
    margin: 0;
    font-size: 18px;
    color: var(--primary-color);
    border-bottom: none;
}

.view-tools {
    display: flex;
    gap: 10px;
}

.tool-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: white;
    border: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.tool-btn:hover {
    background-color: #f5f5f5;
}

/* 地图视图样式 */
.map-container {
    flex-grow: 1;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.map-area {
    width: 100%;
    height: 100%;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg width="800" height="600" viewBox="0 0 800 600" xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="800" height="600" fill="%23f9f9f9"/><path d="M200,300 L600,300" stroke="%23d4af37" stroke-width="10" stroke-linecap="round" stroke-opacity="0.3"/><rect x="180" y="150" width="120" height="80" stroke="%231e5631" stroke-width="2" fill="%231e563120"/><rect x="500" y="150" width="120" height="80" stroke="%231e5631" stroke-width="2" fill="%231e563120"/><rect x="350" y="400" width="100" height="100" stroke="%238b0000" stroke-width="2" fill="%238b000020"/><circle cx="250" cy="450" r="30" stroke="%231e5631" stroke-width="2" fill="%231e563120"/></svg>');
    background-size: cover;
    background-position: center;
}

.map-legend {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background-color: white;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 12px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 8px;
}

.legend-marker {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: red;
    margin-right: 8px;
    font-size: 14px;
}

.guide-info-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 320px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.info-header {
    padding: 12px 15px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-header h3 {
    margin: 0;
    font-size: 16px;
}

.close-info {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
}

.info-content {
    padding: 15px;
}

.info-image {
    height: 150px;
    margin-bottom: 15px;
    border-radius: 4px;
    background-image: url('data:image/svg+xml;utf8,<svg width="320" height="150" viewBox="0 0 320 150" xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="320" height="150" fill="%23f0f0f0"/><path d="M80,130 L160,50 L240,130" stroke="%231e5631" stroke-width="2" fill="none"/><circle cx="160" cy="50" r="20" fill="%23d4af37"/></svg>');
    background-size: cover;
    background-position: center;
}

.info-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.info-btn {
    flex: 1;
    background-color: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 0;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.info-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* AR视图样式 */
.ar-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ar-camera {
    flex-grow: 1;
    background-color: #333;
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg width="800" height="600" viewBox="0 0 800 600" xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="800" height="600" fill="%23333"/><path d="M200,300 L600,300" stroke="%23ffffff" stroke-width="1" stroke-linecap="round" stroke-opacity="0.2" stroke-dasharray="5,5"/><rect x="180" y="150" width="120" height="80" stroke="%23ffffff" stroke-width="1" fill="none" stroke-opacity="0.2"/><rect x="500" y="150" width="120" height="80" stroke="%23ffffff" stroke-width="1" fill="none" stroke-opacity="0.2"/><rect x="350" y="400" width="100" height="100" stroke="%23ffffff" stroke-width="1" fill="none" stroke-opacity="0.2"/><circle cx="250" cy="450" r="30" stroke="%23ffffff" stroke-width="1" fill="none" stroke-opacity="0.2"/></svg>');
    background-size: cover;
    background-position: center;
}

.ar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ar-marker {
    position: absolute;
    transform: translate(-50%, -50%);
}

.ar-marker-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.ar-marker-label {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    white-space: nowrap;
}

.ar-direction {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -100px);
}

.ar-direction .arrow {
    font-size: 30px;
    color: var(--accent-color);
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.ar-direction .distance {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-top: 5px;
}

.ar-controls {
    display: flex;
    padding: 10px;
    background-color: #222;
    border-top: 1px solid #444;
    justify-content: space-around;
}

.ar-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.ar-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 问答系统样式 */
.qa-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.qa-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qa-message {
    display: flex;
    max-width: 75%;
}

.qa-message.bot {
    align-self: flex-start;
}

.qa-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.message-avatar img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.qa-message.user .message-avatar {
    margin-right: 0;
    margin-left: 10px;
    background-color: var(--accent-color);
}

.message-content {
    background-color: white;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.qa-message.user .message-content {
    background-color: var(--primary-color);
    color: white;
}

.message-content p {
    margin: 0 0 8px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.qa-input {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 24px;
    padding: 8px 15px;
    margin: 15px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.input-tools {
    display: flex;
    gap: 5px;
    margin-right: 10px;
}

.qa-text-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 8px 0;
    font-family: inherit;
}

.qa-send {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.qa-send:hover {
    background-color: #174628;
}

.qa-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.suggestion-tag {
    background-color: white;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.suggestion-tag:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 设置页面样式 */
.settings-container {
    padding: 20px;
    overflow-y: auto;
    height: calc(100% - 57px);
}

.settings-group {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 20px;
}

.settings-group h3 {
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
    font-size: 16px;
    color: var(--primary-color);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-control {
    width: 180px;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.settings-btn {
    background-color: white;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.settings-btn:hover {
    background-color: #f5f5f5;
}

.settings-btn.primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.settings-btn.primary:hover {
    background-color: #174628;
}

/* 浮动控制按钮 */
.guide-floating-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.floating-btn i {
    font-size: 20px;
}

.floating-panel {
    width: 300px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-bottom: 10px;
}

.panel-header {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 15px;
    display: flex;
    align-items: center;
}

.robot-indicator {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    background-color: #4caf50;
    border-radius: 50%;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.panel-header h4 {
    margin: 0;
    flex-grow: 1;
}

.panel-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
}

.panel-body {
    padding: 15px;
}

.robot-speech {
    margin-top: 0;
    margin-bottom: 15px;
}

.robot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.robot-btn {
    background-color: #f0f0f0;
    border: none;
    padding: 8px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.robot-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 导航覆盖层 */
.navigation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.navigation-overlay.active {
    display: flex;
}

.navigation-content {
    width: 90%;
    max-width: 500px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-header h3 {
    margin: 0;
    font-size: 18px;
}

.nav-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
}

.nav-map {
    height: 200px;
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
    background-image: url('data:image/svg+xml;utf8,<svg width="500" height="200" viewBox="0 0 500 200" xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="500" height="200" fill="%23f5f5f5"/><path d="M100,150 L250,100 L400,50" stroke="%23d4af37" stroke-width="5" stroke-linecap="round" stroke-opacity="0.5"/></svg>');
    background-size: cover;
}

.nav-path-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="500" height="200" viewBox="0 0 500 200" xmlns="http://www.w3.org/2000/svg"><path d="M100,150 L250,100 L400,50" stroke="%23d4af37" stroke-width="5" stroke-linecap="round" stroke-dasharray="10,10" stroke-dashoffset="0"><animate attributeName="stroke-dashoffset" from="0" to="20" dur="1s" repeatCount="indefinite" /></path></svg>');
    background-size: cover;
}

.nav-user-point {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
    position: absolute;
    bottom: 50px;
    left: 100px;
    transform: translate(-50%, -50%);
}

.nav-dest-point {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--secondary-color);
    position: absolute;
    top: 50px;
    right: 100px;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

.nav-info {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #eaeaea;
}

.nav-distance, .nav-time {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-distance i, .nav-time i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 18px;
}

.nav-directions {
    padding: 15px;
}

.direction-step {
    display: flex;
    align-items: center;
    padding: 8px 0;
    opacity: 0.6;
}

.direction-step.current {
    opacity: 1;
}

.step-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.direction-step.current .step-icon {
    background-color: var(--primary-color);
    color: white;
}

.nav-actions {
    padding: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
    border-top: 1px solid #eaeaea;
}

.nav-btn {
    background-color: #f0f0f0;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background-color: #e0e0e0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .guide-main {
        flex-direction: column;
    }
    
    .guide-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eaeaea;
        height: auto;
        max-height: 200px;
    }
    
    .guide-robot {
        display: none;
    }
    
    .guide-menu {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 10px;
    }
    
    .menu-item {
        padding: 8px 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .menu-item i {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .guide-destinations {
        display: none;
    }
    
    .guide-info-panel {
        width: calc(100% - 40px);
    }
} 