/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5; /* 浅灰背景，突出白色卡片 */
    color: #333;
    padding-bottom: 70px; /* 为底部导航栏留出空间 */
}

/* 顶部导航栏 */
.header {
    background-color: #fff;
    padding: 15px 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #FF2442; /* 小红书红 */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .back-btn {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

/* 主容器 */
.container {
    max-width: 600px; /* 模拟手机宽度 */
    margin: 0 auto;
    padding: 10px;
}

/* 卡片通用样式 */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.card-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.card-info p {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}

.btn-primary {
    background-color: #FF2442;
    color: #fff;
}

.btn-outline {
    background-color: #fff;
    color: #FF2442;
    border: 1px solid #FF2442;
}

.btn:hover {
    opacity: 0.9;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #eee;
    z-index: 100;
}

.nav-item {
    text-decoration: none;
    color: #666;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-item.active {
    color: #FF2442;
    font-weight: bold;
}

/* 聊天界面专用 */
.chat-window {
    height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 10px;
}

.message {
    margin-bottom: 15px;
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.message.received {
    background: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.sent {
    background: #FF2442;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    position: fixed;
    bottom: 60px;
    width: 100%;
    max-width: 600px;
    padding: 10px;
    background: #fff;
    display: flex;
    border-top: 1px solid #eee;
}

.chat-input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    margin-right: 10px;
    outline: none;
}