/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html,body{
    width: 100%;
    height: 100%;
    background: #EBEBEB;
    font-size: 15px;
    color: #333;
}
a {
    text-decoration: none;
    color: #07C160;
}
input, button, textarea {
    outline: none;
    border: none;
}
button {
    cursor: pointer;
}

/* 手机全屏容器 */
.container {
    width: 100%;
    min-height: 100vh;
    padding-bottom: 50px;
    background: #EBEBEB;
}

/* 顶部导航 */
.navbar {
    background-color: #323232;
    color: white;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar-title {
    font-size: 18px;
    font-weight: 500;
}
.navbar-actions a {
    color: white;
    margin-left: 14px;
    font-size: 15px;
}

/* ======================
   底部导航  最终完美版
======================= */
.bottom-nav{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #fff;
    border-top:1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 999;
}
.bottom-nav .nav-item{
    flex:1;
    text-align: center;
    font-size:12px;
    color:#666;
}
.bottom-nav .nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
}
.bottom-nav .nav-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.bottom-nav .nav-item img:nth-child(2) {
    display: none;
}
.bottom-nav .nav-item.active a {
    color: #960000;
}
.bottom-nav .nav-item.active img:first-child {
    display: none;
}
.bottom-nav .nav-item.active img:nth-child(2) {
    display: block;
}

/* 好友列表 */
.friend-list-container {
    padding: 16px;
}
.search-box {
    background: white;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
    display: flex;
}
.search-box input {
    flex: 1;
    padding: 4px;
    font-size: 14px;
}
.section-title {
    font-size: 14px;
    color: #999;
    margin: 16px 0 8px;
}
.friend-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
}
.friend-avatar {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: #07C160;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}
.friend-info { flex:1; }
.friend-name { font-size:16px; font-weight:500; }
.friend-status { font-size:12px; color:#999; }
.action-btn { background:#07C160; color:white; padding:6px 12px; border-radius:4px; font-size:12px; }

/* 聊天页面 */
.chat-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 50px;
}
.chat-header {
    background:#323232;
    color:white;
    padding:14px 16px;
    display:flex;
    align-items:center;
    gap:12px;
}
.chat-back { color:white; }
.chat-box {
    flex:1;
    padding:20px 16px;
    overflow-y:auto;
    background:#EBEBEB;
}
.msg-item {
    margin-bottom:20px;
    display:flex;
}
.msg-me { justify-content:flex-end; }
.msg-other { justify-content:flex-start; }
.msg-bubble {
    max-width:70%;
    padding:12px 16px;
    border-radius:12px;
    line-height:1.5;
}
.msg-me .msg-bubble {
    background:#95EC69;
    margin-left:10px;
    border-top-right-radius:4px;
}
.msg-other .msg-bubble {
    background:white;
    margin-right:10px;
    border-top-left-radius:4px;
}
.msg-avatar {
    width:44px;
    height:44px;
    border-radius:6px;
    object-fit:cover;
}
.chat-input-area {
    background:#F7F7F7;
    padding:12px 16px;
    display:flex;
    align-items:center;
    border-top:1px solid #eee;
}
.chat-input {
    flex:1;
    background:#fff;
    border:1px solid #ddd;
    border-radius:8px;
    padding:10px 16px;
    margin:0 12px;
}
.send-btn {
    background:#07C160;
    color:white;
    padding:8px 16px;
    border-radius:6px;
}

/* 表单 */
.form-container {
    width:90%;
    margin:40px auto;
    background:white;
    padding:24px;
    border-radius:12px;
}
.form-title {
    text-align:center;
    font-size:22px;
    margin-bottom:24px;
}
.form-group { margin-bottom:16px; }
.form-group label { display:block; margin-bottom:8px; font-size:14px; }
.form-group input,.form-group select {
    width:100%;
    padding:12px;
    border:1px solid #eee;
    border-radius:8px;
}
.form-btn {
    width:100%;
    background:#07C160;
    color:white;
    padding:14px;
    border-radius:8px;
}
.form-link { text-align:center; margin-top:16px; }

/* 后台 */
.admin-container {
    width:95%;
    margin:20px auto;
    background:white;
    padding:20px;
    border-radius:8px;
}
.table { width:100%; border-collapse:collapse; }
.table th,.table td { padding:12px; border-bottom:1px solid #eee; }
.btn { padding:6px 12px; border-radius:4px; font-size:12px; }
.btn-success { background:#07C160; color:white; }
.btn-danger { background:red; color:white; }