/* 场景页面通用样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
}

.phone-container {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    min-height: 100vh;
    background: linear-gradient(180deg, #d6e6f2 0%, #e8f1f8 20%, #f8fbfd 50%, #ffffff 100%);
    position: relative;
}

/* 状态栏 */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 8px;
    font-size: 15px;
    font-weight: 600;
}

.status-bar .icons {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

/* 头部 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px;
}

.back-btn {
    font-size: 18px;
    color: #333;
    padding: 8px;
    text-decoration: none;
}

.header-center .team-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #4da6ff;
    color: white;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
}

/* 统一主题色 - 紫色渐变 */
.team-tag.hotel,
.team-tag.restaurant,
.team-tag.medical,
.team-tag.property { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right .dots {
    font-size: 16px;
    color: #333;
}

.header-right .circle-btn {
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.header-right .circle-btn i {
    font-size: 14px;
    color: #666;
}

/* 定位信息 */
.location-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    color: #667eea;
}

.location-bar i {
    font-size: 14px;
}

.location-bar span {
    font-weight: 500;
}

/* 主内容 */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

/* 欢迎区域 */
.welcome-area {
    text-align: center;
    padding: 0 20px 20px;
}

.mascot {
    width: 110px;
    height: 110px;
    margin: 0 auto 16px;
}

.mascot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.welcome-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 14px;
}

.welcome-box {
    background: linear-gradient(135deg, #e3f0fa 0%, #cde4f6 100%);
    border-radius: 10px;
    padding: 12px 14px;
    text-align: left;
}

.welcome-box p {
    color: #2980b9;
    font-size: 14px;
    line-height: 1.5;
}

.welcome-box p::before {
    content: "✦ ";
    color: #3498db;
}

/* 统一欢迎框颜色 - 淡紫色 */
.welcome-box.restaurant,
.welcome-box.medical,
.welcome-box.property {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}
.welcome-box.restaurant p,
.welcome-box.medical p,
.welcome-box.property p { color: #6d28d9; }
.welcome-box.restaurant p::before,
.welcome-box.medical p::before,
.welcome-box.property p::before { color: #8b5cf6; }

/* 信息行 */
.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #fff;
    margin: 0 16px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.info-row .label {
    font-size: 14px;
    color: #333;
}

.info-row .action {
    font-size: 13px;
    color: #4da6ff;
    display: flex;
    align-items: center;
    gap: 4px;
}

.info-row .action i {
    font-size: 10px;
}

/* 数字人卡片 */
.agents-area {
    padding: 20px 0 10px;
}

.agents-scroll {
    display: flex;
    gap: 8px;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.agents-scroll::-webkit-scrollbar {
    display: none;
}

.agent-card {
    flex-shrink: 0;
    width: 76px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.agent-card:hover {
    transform: translateY(-2px);
}

.agent-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 6px;
    position: relative;
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8f4fc;
    background: #f0f7fc;
}

.agent-avatar .badge {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: #4da6ff;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    white-space: nowrap;
}

/* 统一徽章颜色 - 紫色渐变 */
.agent-avatar .badge.restaurant,
.agent-avatar .badge.medical,
.agent-avatar .badge.property { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

.agent-card .name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.agent-card .desc {
    font-size: 11px;
    color: #999;
    line-height: 1.3;
}

/* 快捷功能 */
.quick-list {
    padding: 10px 20px;
}

.quick-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

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

.quick-item i {
    color: #4da6ff;
    font-size: 14px;
    width: 18px;
}

/* 标签区 */
.tags-row {
    display: flex;
    align-items: center;
    padding: 10px 20px 16px;
    gap: 10px;
}

.tag-btn {
    padding: 8px 14px;
    background: #f5f5f5;
    border: none;
    border-radius: 16px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.tag-btn.outline {
    background: #fff;
    border: 1px solid #e0e0e0;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag-btn.outline i {
    color: #4da6ff;
    font-size: 14px;
}

/* 输入区域 - 固定底部 */
.input-area {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 390px;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 16px));
    border-top: 1px solid #e5e7eb;
    background: white;
    z-index: 100;
}

.input-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.input-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.input-btn.add {
    background: #f3f4f6;
    color: #4b5563;
}

.input-btn.send {
    background: linear-gradient(to right, #9333ea, #4f46e5);
    color: white;
}

/* 统一发送按钮颜色 - 紫色渐变 */
.input-btn.send.hotel,
.input-btn.send.restaurant,
.input-btn.send.medical,
.input-btn.send.property { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

.input-field {
    flex: 1;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    resize: none;
    outline: none;
    min-height: 40px;
    max-height: 120px;
    font-family: inherit;
}

.input-field:focus {
    border-color: #8b5cf6;
}

/* 统一输入框聚焦颜色 - 紫色 */
.input-field.hotel:focus,
.input-field.restaurant:focus,
.input-field.medical:focus,
.input-field.property:focus { border-color: #667eea; }

/* 底部占位空间 */
.bottom-space {
    height: 80px;
}

