/* 客服页面样式 - 响应式设计 */

.service-page {
    background: #f5f5f5;
    min-height: 100vh;
    padding-bottom: 180px;
}

/* 顶部导航 */
.service-header {
    background: #4a6fa5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.service-header-back {
    position: absolute;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
}

.service-header-title {
    font-size: 18px;
    font-weight: bold;
}

.service-header-online {
    position: absolute;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #4cd964;
    border-radius: 50%;
}

/* 聊天区域 */
.chat-area {
    padding: 15px;
    height: calc(100vh - 280px);
    overflow-y: auto;
}

.chat-date {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-bottom: 20px;
}

.chat-welcome {
    background: #e5e5e5;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    max-width: 80%;
    margin: 0 auto 30px;
}

/* 常见问题 */
.faq-section {
    position: fixed;
    bottom: 56px;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    padding: 12px 15px;
    border-top: 1px solid #eee;
    transform: translateY(120%);
    transition: transform 0.3s ease;
    z-index: 55;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.faq-section.show {
    transform: translateY(0);
}

.faq-title {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.faq-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.faq-tag {
    background: #f0f4f8;
    border: none;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 13px;
    color: #3b82f6;
    cursor: pointer;
}

.faq-tag.wide {
    width: 100%;
    text-align: center;
}

@media (max-width: 375px) {
    .faq-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 输入栏 */
.chat-input-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #eee;
    max-width: 480px;
    margin: 0 auto;
    z-index: 100;
    box-sizing: border-box;
}

.chat-input-icon {
    font-size: 20px;
    color: #999;
    cursor: pointer;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.chat-input-icon.faq-toggle {
    color: #3b82f6;
}

@media (min-width: 400px) {
    .chat-input-icon {
        font-size: 22px;
        width: 26px;
        height: 26px;
    }
}

.chat-input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

@media (min-width: 400px) {
    .chat-input {
        padding: 12px 15px;
    }
}

.chat-send-btn {
    background: #ccc;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
}

@media (min-width: 400px) {
    .chat-send-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 表情弹窗 */
.emoji-modal {
    position: fixed;
    bottom: 56px;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-top: 1px solid #eee;
    transform: translateY(120%);
    transition: transform 0.3s ease;
    z-index: 55;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.emoji-modal.show {
    transform: translateY(0);
}

.emoji-modal-content {
    padding: 12px 15px;
    max-height: 180px;
    overflow-y: auto;
}

.emoji-list {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}

.emoji-item {
    font-size: 20px;
    text-align: center;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: background-color 0.2s;
    line-height: 1;
}

.emoji-item:hover {
    background-color: #f0f0f0;
}

@media (min-width: 400px) {
    .emoji-list {
        grid-template-columns: repeat(10, 1fr);
        gap: 8px;
    }
    .emoji-item {
        font-size: 22px;
    }
}
