* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Microsoft YaHei', sans-serif; }
body { overflow: hidden; }

#bg-video {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* 手机端样式 */
.mobile-layout {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
}

.logo {
  font-size: 2em;
  color: gold;
  margin-bottom: 50px;
}

.pc-logo-img {
  width: 100px;
  margin-bottom: 60px;
}

.mobile-logo {
  width: 260px;
  margin-bottom: 210px;
}

.buttons .btn {
  display: block;
  width: 295px;
  margin: 10px auto;
  padding: 14px 0;
  font-size: 1.1em;
  font-weight: bold;
  color: #2b2b2b;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;

  /* 🌟 金色渐变背景 */
  background: linear-gradient(to bottom, #f9e18b, #d4a43a);

  /* 🌟 阴影效果让按钮更立体 */
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
}

.buttons .btn:hover {
  /* 鼠标悬停时更亮一点 */
  background: linear-gradient(to bottom, #ffe9a6, #c8962e);
  transform: scale(1.03);
}
}

.service-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: gold;
  padding: 10px 25px;
  border-radius: 50%;
  text-decoration: none;
  color: black;
  font-weight: bold;
}

/* 登录弹窗 */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: #222;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  color: gold;
  width: 80%;
  max-width: 300px;
}

.popup-content input {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #555;
}

.popup-content button {
  width: 100%;
  padding: 10px;
  background: gold;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
}

/* 电脑端样式 */
.pc-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  flex-direction: column;
}

.pc-login-box {
  background: rgba(0,0,0,0.6);
  padding: 139px;
  border-radius: 10px;
  text-align: center;
  color: gold;
}

.pc-login-box input {
  display: block;
  width: 100px;
  margin: 45px auto;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #444;
  background: #222;
  color: white;
}
}

.pc-btns .btn {
  display: inline-block;
  margin: 20px;
  padding: 10px 20px;
  background: gold;
  color: black;
  border-radius: 6px;
  text-decoration: none;
}

.side-buttons {
  position: fixed;
  right: 20px;
  top: 40%;
  display: flex;
  flex-direction: column;
}

.side-buttons button,
.side-buttons a {
  background: transparent !important;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  color: black;
  font-weight: bold;
}

.bottom-left, .bottom-right {
  position: fixed;
  bottom: 20px;
  background: transparent !important;
  padding: 0;
  border: none;
  text-decoration: none;
  color: black;
}

.bottom-left { left: 20px; }
.bottom-right { right: 20px; }

/* 响应式切换 */
@media (max-width: 768px) {
  .pc-layout { display: none; }
  .mobile-layout { display: flex; }
}
/* 客服按钮右上角 */
.service-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.service-btn img {
  width: 60px;
  height: 60px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.service-btn img:hover {
  transform: scale(1.1);
}

/* 聊天窗口整体 */
.chat-box {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  height: 400px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  display: none; /* 默认隐藏 */
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
}

/* 顶部标题栏 */
.chat-header {
  background: linear-gradient(to right, #f9e18b, #d4a43a);
  color: #2b2b2b;
  font-weight: bold;
  padding: 10px;
  text-align: center;
  position: relative;
}

.close-chat {
  position: absolute;
  right: 10px;
  top: 5px;
  cursor: pointer;
  font-size: 20px;
}

/* 聊天内容区 */
.chat-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
}

.msg {
  margin-bottom: 8px;
  line-height: 1.5;
  max-width: 80%;
  word-wrap: break-word;
  padding: 6px 10px;
  border-radius: 10px;
}

.msg.bot {
  background: #f0f0f0;
  color: #333;
}

.msg.user {
  background: #d4a43a;
  color: #fff;
  margin-left: auto;
}

/* 输入栏 */
.chat-input {
  display: flex;
  border-top: 1px solid #ddd;
}

.chat-input input {
  flex: 1;
  border: none;
  padding: 10px;
  outline: none;
}

.chat-input button {
  background: #d4a43a;
  color: #fff;
  border: none;
  padding: 0 15px;
  cursor: pointer;
  font-weight: bold;
}