* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: #0e1b2e;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
#pm_left, #pm_right {
  position: fixed;
  top: 0;
  width: 3.5px;
  height: 100%;
  z-index: 999;
  pointer-events: none;
  animation: edge 1s linear infinite alternate;
}
#pm_left { left: 0; background-image: linear-gradient(#c892cd, #00cd11); }
#pm_right { right: 0; background-image: linear-gradient(to bottom, #00cd11, #c892cd); animation-delay: 1s; }
@keyframes edge {
  33% { background-image: linear-gradient(#00ff00, #ff00c8); }
  66% { background-image: linear-gradient(#ff017c, #0066ff); }
  100% { background-image: linear-gradient(#ff00c8, #00ff00); }
}

/* 原站顶栏：整图背景 + 小头像 + 彩色文案 */
.top {
  position: relative;
  width: 100%;
  height: 132px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}
.top-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
}
.headimg {
  width: 70px;
  height: 70px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,.2);
}
.headimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.info {
  margin-left: 15px;
  min-width: 0;
  line-height: 1.45;
}
.info .name,
.info .ing,
.info .time {
  font-size: 16px;
  font-weight: 700;
}
.c-yellow { color: #ffe500; }
.c-red { color: #e53333; }
.c-black { color: #000; }
.info .time { color: #fff; font-weight: 700; }

/* 更新通知 + 时钟：白底，在顶栏下方 */
.notice-wrap {
  padding: 10px 12px 4px;
  text-align: center;
  background: #fff;
}
.update-link {
  color: #ff0000;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.clock {
  margin-top: 4px;
  color: #ff3030;
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  padding-right: 8px;
}

/* 绿色客服条 */
.kefu-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 75%;
  max-width: 540px;
  margin: 8px auto;
  line-height: 40px;
  border: 1px solid #00c250;
  border-radius: 4px;
  color: #00c250;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  overflow: hidden;
}
.kefu-bar .hand {
  width: 32px;
  height: 40px;
  margin-right: 6px;
  background: #00c250 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M13 2a2 2 0 0 0-2 2v7.5H9.5A2.5 2.5 0 0 0 7 14v.1c0 .8.4 1.5 1.1 1.9L14 20h5v-8.5h-2V4a2 2 0 0 0-2-2h-2z'/%3E%3C/svg%3E") center 8px / 20px no-repeat;
  flex-shrink: 0;
}

/* 五个身份按钮 */
.tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  padding: 12px 12px 18px;
}
.tab {
  flex: 0 0 65px;
  width: 65px;
  height: 61px;
  border-radius: 4px;
  border: 1px solid #1675fe;
  background: rgba(22,117,254,.06);
  color: #606178;
  font-size: 11px;
  line-height: 12px;
  text-align: center;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.tab .img {
  width: 30px;
  height: 30px;
  margin: 5px auto 2px;
  display: block;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.tab.t1 { background: rgba(255,206,84,.1); border-color: #ffce54; }
.tab.t2 { background: rgba(121,222,180,.1); border-color: #79deb4; }
.tab.t3 { background: rgba(148,193,255,.1); border-color: #94c1ff; }
.tab.t4 { background: rgba(250,194,163,.1); border-color: #fac2a3; }
.tab.on { color: #fff; border: none; }
.tab.t0.on { background: #1675fe; }
.tab.t1.on { background: #fdad12; }
.tab.t2.on { background: #00b386; }
.tab.t3.on { background: #247ade; }
.tab.t4.on { background: #ff8855; }
.tab.on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  border: 6px solid transparent;
}
.tab.t0.on::after { border-top-color: #1675fe; }
.tab.t1.on::after { border-top-color: #fdad12; }
.tab.t2.on::after { border-top-color: #00b386; }
.tab.t3.on::after { border-top-color: #247ade; }
.tab.t4.on::after { border-top-color: #ff8855; }

.panel { display: none; padding: 0 0 20px; }
.panel.on { display: block; }

.tableTit {
  background: #1675fe;
  color: #fff;
  text-align: center;
  font-weight: 500;
  font-size: 16px;
  line-height: 40px;
  border-radius: 0;
  white-space: pre-line;
}
.panel.t1 .tableTit { background: #fdad12; }
.panel.t2 .tableTit { background: #00b386; }
.panel.t3 .tableTit { background: #247ade; }
.panel.t4 .tableTit { background: #ff8855; }

.hash-tip {
  margin: 8px 10px 4px;
  padding: 0;
  color: #e53333;
  font-size: 15px;
  font-weight: 700;
  background: transparent;
  line-height: 1.55;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  table-layout: fixed;
}
th, td {
  border-bottom: 1px solid #f4f5f7;
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
  font-size: 14px;
  line-height: 1.55;
  color: #0e1b2e;
}
th {
  background: #f4f5f7;
  color: #606178;
  font-weight: 400;
  padding: 12px;
}
td:first-child, th:first-child { width: 34%; }
td:nth-child(2) { font-weight: 500; }

.note-h {
  margin: 0;
  background: #fff;
  color: #00d5ff;
  padding: 12px 10px 4px;
  font-size: 16px;
}

.promo {
  text-align: center;
  color: #ee33ee;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.7;
  padding: 10px 12px 28px;
}

.mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dialog {
  background: #fff;
  border-radius: 8px;
  padding: 22px 16px 16px;
  width: min(360px, 100%);
  text-align: left;
}
.dialog p { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: #333; }
.dialog-btns { display: flex; gap: 10px; justify-content: flex-end; }
.dialog button {
  background: #7cd1f9;
  border: 0;
  border-radius: 4px;
  padding: 8px 18px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
#musicOff { background: #7cd1f9; }
#musicOn { background: #c8c8c8; }

.kefu-page { background: #eee; min-height: 100vh; }
.kf-wrap { padding: 24px 16px 40px; text-align: center; }
.kf-wrap img { max-width: 260px; width: 100%; background: #fff; border-radius: 8px; }
.kf-wrap .wx { margin-top: 14px; font-size: 16px; color: #333; }
.kf-wrap .back { display: inline-block; margin-top: 18px; color: #1675fe; }
.page-body {
  width: min(480px, calc(100% - 24px));
  margin: 16px auto;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
}
.page-body img { max-width: 100%; height: auto; }

@media (max-width: 400px) {
  .info .name, .info .ing, .info .time { font-size: 14px; }
  .tab { flex: 0 0 58px; width: 58px; font-size: 10px; }
  .kefu-bar { width: 88%; font-size: 15px; }
}
