/* ================= 基础重置（暗夜娱乐风：纯黑轻渐变底 + 金色点缀 + 霓虹渐变按钮） ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --main-color: #ffc53d;          /* 金色主强调 */
  --main-dark: #e8a800;
  --bg: #000000;                  /* 纯黑底 */
  --card-bg: #15161c;             /* 玻璃卡片 */
  --card-border: rgba(255, 255, 255, .07);
  --text: #e9ecf5;
  --text-sub: #8f97b3;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(0, 0, 0, .45);
  --grad-main: linear-gradient(135deg, #ff6a3d, #ff2e88);   /* 主霓虹（提亮） */
  --grad-gold: linear-gradient(135deg, #ffc55c, #ffe08a);   /* 金色（提亮） */
  --grad-red: linear-gradient(135deg, #ff6a3d, #ff2e88);    /* 卡片左列：亮红粉渐变 */
  --grad-violet: linear-gradient(135deg, #5b8cff, #b44bff); /* 卡片右列：亮蓝紫渐变 */
  --grad-blue: linear-gradient(135deg, #58a6ff, #3b7bff);
  --grad-green: linear-gradient(135deg, #3ddc84, #14b890);
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #000000 0%, #121218 55%, #08080b 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.text-center { text-align: center; }

/* ================= 头部（黑金色带，与纯黑页面明显区分） ================= */
.header-wrap {
  background: linear-gradient(180deg, #2b2417 0%, #1d1810 55%, #141008 100%);
  border-bottom: 2px solid rgba(255, 197, 61, .55);
  padding: 14px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .55), 0 2px 14px rgba(255, 197, 61, .12);
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link { text-decoration: none; }
.logo-text {
  font-size: 26px;
  font-weight: 700;
  color: #ffd76a;
  letter-spacing: 2px;
  text-shadow: 0 0 18px rgba(255, 197, 61, .4);
}
.logo-text img { height: 70px; display: block; }

.zixun {
  display: inline-block;
  padding: 8px 22px;
  background: var(--grad-gold);
  color: #2b1c00;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 4px 18px rgba(255, 197, 61, .45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.zixun:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 179, 71, .5); }

/* ================= 公告栏（暗色玻璃盒 + 金色描边） ================= */
.lianxi {
  padding: 16px 16px 0;
  background: transparent;
}
.lianxi .container {
  max-width: 1170px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 197, 61, .25);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.lianxi .center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.vip {
  background: var(--grad-main);
  color: #fff;
  border-radius: 8px;
  padding: 6px 22px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 16px rgba(255, 46, 136, .4);
}
.vip p { margin: 0; }

.wave-text-container { overflow: hidden; width: 100%; max-width: 900px; text-align: center; }
.notice-track {
  display: inline-block;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  color: #ffd76a;
  will-change: transform;
  animation: marquee 30s linear infinite;
}
.notice-track span { margin-right: 48px; }
.notice-track a {
  color: var(--main-color);
  text-decoration: none;
  margin: 0 4px;
}
.notice-track a:hover { text-decoration: underline; }
.notice-viewport:hover .notice-track,
.wave-text-container:hover .notice-track { animation-play-state: paused; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================= 分类标签（暗色胶囊，选中霓虹金橙渐变） ================= */
.xilie2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 20px 0 6px;
}
.nav_box {
  display: inline-block;
  padding: 9px 22px;
  background: linear-gradient(180deg, #33363f 0%, #1d1f27 100%);
  color: #e6e9f2;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: all .15s ease;
  cursor: pointer;
  user-select: none;
}
.nav_box:hover { border-color: var(--main-color); color: var(--main-color); }
.nav_box.current {
  background: var(--grad-gold);
  border-color: transparent;
  color: #2b1c00;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 4px 16px rgba(255, 197, 61, .5);
}

/* ================= 卡片区（暗色玻璃卡 + 悬浮金色辉光） ================= */
.xilie {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 16px 0 30px;
}

.lm-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 16px 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lm-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 197, 61, .45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5), 0 0 18px rgba(255, 179, 71, .12);
}

.lm-icon-tall {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  background-color: #1e2028;
  font-size: 44px;
  line-height: 1;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.lm-icon-tall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.lm-title-lg {
  display: block;
  margin-top: 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.lm-title-lg a { color: inherit; text-decoration: none; }
.lm-title-lg a:hover { color: var(--main-color); }

/* 按钮区：2 列网格，1 个时通栏，4 个时 2×2 */
.lm-action-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.button {
  position: relative;
  display: inline-block;
  padding: 9px 0;
  border-radius: 8px;
  background: var(--grad-red);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  /* 顶部高光 + 底部内阴影 + 彩色外发光 = 亮度感 */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 5px rgba(0, 0, 0, .18), 0 4px 16px rgba(255, 70, 130, .4);
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
/* 悬停扫光：一道白色高光从左向右划过 */
.button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg);
  transition: left .5s ease;
  pointer-events: none;
}
.button:hover::after { left: 130%; }
.lm-action-row.single .button { grid-column: 1 / -1; }
.button:hover { filter: brightness(1.12); transform: translateY(-1px); }
.button strong { font-weight: 600; }
/* 卡片按钮按位置配色：左边一列（第1、3个）亮红粉渐变，右边一列（第2、4个）亮蓝紫渐变 */
.lm-action-row .button:nth-child(odd) {
  background: var(--grad-red);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 5px rgba(0, 0, 0, .18), 0 4px 16px rgba(255, 70, 130, .4);
}
.lm-action-row .button:nth-child(even) {
  background: var(--grad-violet);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 5px rgba(0, 0, 0, .18), 0 4px 16px rgba(130, 90, 255, .4);
}

/* ================= 卡片分页条 ================= */
.card-pager {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 30px;
}
.card-pager:empty { padding: 0 0 10px; }
.news-col-pager { padding: 10px 0 2px; justify-content: center; }
.pager-btn {
  min-width: 38px;
  padding: 7px 14px;
  background: linear-gradient(180deg, #33363f 0%, #1d1f27 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #e6e9f2;
  text-align: center;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: all .12s ease;
}
.pager-btn:hover { border-color: var(--main-color); color: var(--main-color); }
.pager-btn.current {
  background: var(--grad-gold);
  border-color: transparent;
  color: #2b1c00;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 4px 14px rgba(255, 197, 61, .5);
}
.pager-btn.disabled {
  opacity: .4;
  pointer-events: none;
}

/* ================= 新闻中心（暗色卡片栏） ================= */
.news-section { padding: 8px 0 36px; }
.news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--main-color);
  margin-bottom: 16px;
}
.news-title { font-size: 20px; color: var(--main-color); padding-bottom: 10px; }
.news-more { font-size: 14px; color: var(--text-sub); text-decoration: none; padding-bottom: 10px; }
.news-more:hover { color: var(--main-color); }

.news-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.news-col {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.news-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding-bottom: 10px;
  margin-bottom: 6px;
}
.news-col-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 12px rgba(0, 0, 0, .3);
}
.tag-c0 { background: var(--grad-main); }
.tag-c1 { background: var(--grad-blue); }
.tag-c2 { background: var(--grad-green); }
.news-col-more { font-size: 13px; color: var(--text-sub); text-decoration: none; }
.news-col-more:hover { color: var(--main-color); }

.news-list { list-style: none; }
.news-list li {
  display: flex;
  align-items: center;
  padding: 11px 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, .08);
  cursor: pointer;
  transition: background .12s ease;
}
.news-list li:last-child { border-bottom: none; }
.news-list li:hover { background: rgba(255, 255, 255, .045); }
.news-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--main-color);
  box-shadow: 0 0 6px rgba(255, 197, 61, .8);
  margin-right: 10px;
  flex-shrink: 0;
}
.news-item-title {
  flex: 1;
  font-size: 15px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.news-item-time { font-size: 13px; color: var(--text-sub); margin-left: 16px; flex-shrink: 0; }
.news-loading { justify-content: center; color: var(--text-sub); cursor: default; }

/* ================= 弹窗 ================= */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(5, 8, 20, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 17px;
}
.modal-close { font-size: 24px; cursor: pointer; color: #7c85a0; line-height: 1; }
.modal-close:hover { color: var(--main-color); }
.modal-meta { padding: 10px 20px 0; font-size: 13px; color: var(--text-sub); }
.modal-content { padding: 14px 20px 20px; font-size: 15px; line-height: 1.8; overflow-y: auto; }

/* ================= 右侧悬浮工具栏（客服 + 留言，屏幕右侧垂直居中，固定跟随滚动） ================= */
.side-fab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 900;
}
.fab-item {
  width: 62px;
  padding: 10px 0 8px;
  background: var(--grad-main);
  border-radius: 12px 0 0 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 18px rgba(255, 46, 136, .45);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: transform .15s ease, padding-right .15s ease;
}
.fab-item:hover { transform: translateX(-3px); }
.fab-icon { font-size: 20px; line-height: 1; }
.fab-label { font-size: 11px; color: #fff; margin-top: 3px; font-weight: 600; }
.fab-msg { background: var(--grad-blue); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 18px rgba(59, 123, 255, .45); }

.chat-panel {
  position: fixed;
  right: 74px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: 320px;
  height: 420px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .55);
  flex-direction: column;
  overflow: hidden;
  z-index: 901;
}
.chat-head {
  background: var(--grad-main);
  color: #fff;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-head.msg-head { background: var(--grad-blue); }
.chat-close { font-size: 22px; cursor: pointer; line-height: 1; }

/* 留言表单 */
.msg-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 14px;
  background: #101116;
  overflow-y: auto;
}
.msg-intro { font-size: 13px; color: var(--text-sub); line-height: 1.6; margin: 0; }
.msg-body input, .msg-body textarea {
  border: 1px solid rgba(255, 255, 255, .14);
  background: #1b1d26;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  resize: vertical;
  font-family: inherit;
}
.msg-body input::placeholder, .msg-body textarea::placeholder { color: #6f7896; }
.msg-body input:focus, .msg-body textarea:focus { border-color: var(--main-color); }
.msg-body textarea { min-height: 110px; }
.msg-body button {
  border: none;
  background: var(--grad-blue);
  color: #fff;
  border-radius: 8px;
  padding: 11px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 14px rgba(59, 123, 255, .35);
  transition: filter .15s ease;
}
.msg-body button:hover:not(:disabled) { filter: brightness(1.15); }
.msg-body button:disabled {
  background: #26282f;
  color: #6f7896;
  cursor: not-allowed;
}

/* 滑块验证 */
.slider-verify {
  position: relative;
  height: 42px;
  background: #1b1d26;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}
.slider-track-bg {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: rgba(74, 108, 247, .3);
}
.slider-verify.ok .slider-track-bg { background: rgba(46, 213, 115, .28); width: 100% !important; }
.slider-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #7c85a0;
  pointer-events: none;
}
.slider-verify.ok .slider-text { color: #2ed573; font-weight: 600; }
.slider-handle {
  position: absolute;
  left: 0; top: 0;
  width: 46px;
  height: 100%;
  background: #262f52;
  border-right: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--main-color);
  cursor: grab;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.slider-verify.ok .slider-handle {
  color: #2ed573;
  border-right-color: transparent;
  cursor: default;
}
.msg-tip { font-size: 13px; text-align: center; min-height: 18px; }
.msg-tip.ok { color: #2ed573; }
.msg-tip.err { color: #ff6b81; }
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #101116;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg { max-width: 82%; }
.chat-msg.me { align-self: flex-end; }
.chat-msg.cs, .chat-msg.sys { align-self: flex-start; }
.chat-bubble {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}
.chat-msg.me .chat-bubble { background: var(--grad-main); color: #fff; border-bottom-right-radius: 2px; }
.chat-msg.cs .chat-bubble { background: #1f212b; border: 1px solid rgba(255, 255, 255, .08); border-bottom-left-radius: 2px; }
.chat-msg.sys .chat-bubble { background: #191b23; color: #8f97b3; font-size: 13px; }
.chat-time { font-size: 11px; color: #5d6580; margin-top: 3px; }
.chat-msg.me .chat-time { text-align: right; }

.chat-input-row {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: var(--card-bg);
}
.chat-input-row input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px;
  font-size: 14px;
  background: transparent;
  color: var(--text);
}
.chat-input-row button {
  border: none;
  background: var(--grad-main);
  color: #fff;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: filter .15s ease;
}
.chat-input-row button:hover { filter: brightness(1.15); }

/* 常用问题快捷区 */
.chat-faq {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 8px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 92px;
  overflow-y: auto;
}
.faq-chip {
  background: #1f212b;
  color: #b9c1dd;
  font-size: 12px;
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
  user-select: none;
  transition: all .15s ease;
  white-space: nowrap;
}
.faq-chip:hover { background: var(--grad-gold); color: #2b1c00; }

/* 移动端悬浮栏与窗口 */
@media (max-width: 640px) {
  .fab-item { width: 50px; padding: 8px 0 6px; }
  .fab-icon { font-size: 16px; }
  .fab-label { font-size: 10px; }
  .chat-panel {
    right: 60px;
    left: auto;
    width: min(300px, calc(100vw - 72px));
    height: 62vh;
  }
  .news-cols { grid-template-columns: 1fr; gap: 14px; }
  .news-col { padding: 12px 12px; }
  .news-item-time { display: none; }
}

/* ================= 页脚 ================= */
.site-footer {
  margin-top: auto;
  background: #060608;
  border-top: 1px solid rgba(255, 197, 61, .12);
  padding: 20px 0;
  text-align: center;
}
.site-footer .text-white { color: #6f7896; font-size: 13px; }

/* ================= 移动端 H5 适配 ================= */
@media (max-width: 900px) {
  .xilie { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

@media (max-width: 640px) {
  .logo-text { font-size: 20px; }
  .logo-text img { height: 48px; }
  .zixun { padding: 6px 16px; font-size: 14px; }

  .notice-track { font-size: 13px; }
  .lianxi { padding: 10px 10px 0; }
  .lianxi .container { padding: 12px 14px; }
  .lianxi .center { gap: 8px; }

  /* 分类标签横向滚动（移动端靠左以便滑动） */
  .xilie2 {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  .xilie2::-webkit-scrollbar { display: none; }
  .nav_box { padding: 8px 16px; font-size: 14px; flex-shrink: 0; }

  .xilie { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .lm-card { padding: 16px 12px 14px; }
  .lm-icon-tall { width: 64px; height: 64px; border-radius: 14px; font-size: 32px; }
  .lm-title-lg { font-size: 15px; margin-top: 10px; }
  .button { font-size: 14px; padding: 8px 0; }
}

@media (max-width: 380px) {
  .xilie { grid-template-columns: 1fr 1fr; }
}
