﻿:root {
  /* 主色调 - 改为浅蓝色 */
  --primary: #3498db;
  --primary-dark: #2980b9;
  --primary-light: #5dade2;
  
  /* 霓虹色调 */
  --neon-pink: #FF2E93;
  --neon-blue: #00E9FF;
  --neon-green: #00C853;
  
  /* 亮色背景 */
  --bg-light: #FFFFFF;
  --bg-card: #F5F7FA;
  --bg-card-hover: #E9EDF2;
  
  /* 文本颜色 */
  --text-primary: #333333;
  --text-secondary: rgba(51, 51, 51, 0.7);
  --text-tertiary: rgba(51, 51, 51, 0.5);
  
  /* 边框与阴影 */
  --border-light: rgba(0, 0, 0, 0.1);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-neon: 0 0 15px rgba(52, 152, 219, 0.3);
  
  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  
  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  height: 100vh;
  overflow: hidden;
}

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

/* 基础服务容器 */
.service {
  width: 100%;
  max-width: 640px;
  height: 100%;
  position: fixed;
  left: 0;
  right: 0;
  margin: auto;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-light);
  box-shadow: var(--shadow-card);
}

/* PC版布局 */
.pc-main {
  width: 1014px;
  height: 100%;
  position: fixed;
  left: 0;
  right: 0;
  margin: auto;
  background-color: var(--bg-light);
}

.pc-left {
  width: 372px;
  height: 100%;
  float: left;
  border-right: 1px solid var(--border-light);
  box-sizing: border-box;
}

.pc-right {
  width: 642px;
  height: 100%;
  float: left;
  box-sizing: border-box;
}

.pc-service {
  width: 372px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 消息头部 */
.msg-head {
  height: 60px;
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-size: 18px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.msg-head a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  position: absolute;
  left: 10px;
  top: 10px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.msg-head a:hover {
  background-color: rgba(52, 152, 219, 0.1);
}

.msg-head a i {
  font-size: 22px;
}

.msg-head .tha {
  font-weight: 600;
  color: var(--primary-dark);
}

.msg-head .thb {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* 消息框 */
.msg-box {
  flex: 1;
  background-color: var(--bg-light);
  padding: 16px;
  line-height: 1.5;
  box-sizing: border-box;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-card);
  background-image: linear-gradient(rgba(52, 152, 219, 0.03) 1px, transparent 1px), 
                    linear-gradient(90deg, rgba(52, 152, 219, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

.msg-box::-webkit-scrollbar {
  width: 6px;
}

.msg-box::-webkit-scrollbar-track {
  background: var(--bg-card);
}

.msg-box::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.msg {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
}

.msg:last-of-type {
  margin-bottom: 16px;
}

.msg .img1 {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.msg .img2 {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.msg .content {
  max-width: 70%;
  margin-left: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  position: relative;
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
  border-top-left-radius: 4px;
}

.msg.on {
  flex-direction: row-reverse;
}

.msg.on .img1 {
  display: none;
}

.msg.on .img2 {
  display: block;
  margin-left: 12px;
}

.msg.on .content {
  margin-left: 0;
  margin-right: 12px;
  background-color: var(--primary-light);
  color: white;
  border-top-right-radius: 4px;
  border-top-left-radius: var(--radius-md);
}

/* 消息发送区域 */
.msg-post {
  height: 70px;
  background-color: var(--bg-card);
  display: flex;
  padding: 12px;
  box-sizing: border-box;
  border-top: 1px solid var(--border-light);
  position: relative;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.msg-post textarea {
  resize: none;
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 16px;
  flex: 1;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-light);
  color: var(--text-primary);
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.msg-post textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  outline: none;
}

.msg-post textarea::placeholder {
  color: var(--text-tertiary);
}

.msg-post label {
  position: absolute;
  right: 80px;
  bottom: 10px;
  height: 46px;
  line-height: 30px;
  color: var(--text-tertiary);
  cursor: pointer;
}

.msg-post label .material-icons {
  font-size: 24px;
  color: var(--primary);
}

.msg-post input[type="file"] {
  display: none;
}

.msg-post input[type="button"] {
  padding: 0 16px;
  height: 46px;
  font-size: 15px;
  margin-left: 12px;
  background-color: var(--primary);
  border-radius: var(--radius-md);
  color: white;
  cursor: pointer;
  border: none;
  font-weight: 600;
  transition: background-color 0.2s;
}

.msg-post input[type="button"]:hover {
  background-color: var(--primary-dark);
}

/* 用户列表 */
.service-box {
  flex: 1;
  font-size: 14px;
  background-color: var(--bg-light);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-card);
  background-image: linear-gradient(rgba(52, 152, 219, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
}

.service-box::-webkit-scrollbar {
  width: 6px;
}

.service-box::-webkit-scrollbar-track {
  background: var(--bg-card);
}

.service-box::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.user-box {
  padding: 16px;
}

.user-box a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.user-list {
  height: 70px;
  background-color: var(--bg-card);
  padding: 12px;
  display: flex;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-left: 3px solid transparent;
}

.user-list:hover {
  transform: translateY(-2px);
  background-color: var(--bg-card-hover);
  border-left: 3px solid var(--primary-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.user-list img {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.user-list .user {
  margin-left: 12px;
  padding-top: 3px;
  flex: 1;
  width: 0;
}

.user-list .user .name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.user-list .user .name .ison {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: normal;
  padding: 2px 8px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-full);
}

.user-list .user .name .ison.online {
  color: var(--neon-green);
  background-color: rgba(0, 200, 83, 0.1);
  border: 1px solid rgba(0, 200, 83, 0.2);
}

.user-list .user .name .ison.hidden {
  color: var(--neon-blue);
  background-color: rgba(0, 233, 255, 0.1);
  border: 1px solid rgba(0, 233, 255, 0.2);
}

.user-list .user .last-msg {
  margin-top: 4px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-list .data {
  width: 82px;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.user-list .data .time {
  color: var(--text-tertiary);
  font-size: 12px;
}

.user-list .data .num {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background-color: var(--neon-pink);
  color: white;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(255, 46, 147, 0.3);
}

/* 底部功能区 */
.foot {
  height: 70px;
  background-color: var(--bg-card);
  padding: 10px;
  display: flex;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.foot > div {
  flex: 1;
  margin-right: 10px;
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
}

.foot > div:last-child {
  margin-right: 0;
}

.foot > div:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.foot a {
  display: flex;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  align-items: center;
  justify-content: center;
}

.foot a .material-icons {
  margin-right: 6px;
}

/* 响应式调整 */
@media (max-width: 1024px) {
  .pc-main {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .pc-left {
    width: 100%;
    float: none;
  }
  
  .pc-right {
    display: none;
  }
}

/* 圆形按钮样式 */
.circle-btn {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.circle-btn:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.circle-btn .material-icons {
  color: white;
  font-size: 22px;
}

/* 发送按钮样式 */
.send-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0 20px;
  height: 46px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.send-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}