/* ============================================================================
 * 无作飞讯 · 用户前台
 *
 * 布局与组件数值全部实测自参考站（1264x805 视口），类名沿用它的体系，
 * 所以下面每条规则都能在浏览器里对照。图标层见 icons.css。
 * ==========================================================================*/

:root {
  --color-primary: #4de450;
  --primary-bright: #63e766;
  --primary-dim: #2d760e4d;
  --label-pink: rgb(189, 62, 113);
  --label-pink-text: #eb2f96;
  --text-dim: #adadad;
  --text-faint: #717171;
  --menu-w: 190px;
  --side-gap: 20px;
  --panel-w: 325px;
  --topbar-h: 80px;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  background: #000;
  color: #fff;
  font: 14px/1.57143 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, 'Noto Sans', 'PingFang SC', 'Microsoft YaHei',
    sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  -webkit-font-smoothing: antialiased;
}

/* 背景图铺满、模糊、压暗，.app-container 再叠一层 40% 黑 —— 对应参考站
   bg_layout_type=image / bg_layout_blur=high / bg_layout_opacity=0.4 */
body::before {
  content: '';
  position: fixed;
  inset: -40px;
  background: url('./img/bg.jpg') center/cover no-repeat;
  filter: blur(26px) brightness(0.6);
  z-index: 0;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  margin: 0;
  color: inherit;
  font: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

img {
  vertical-align: middle;
  border-style: none;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background-color: #3a3a3be6;
  min-height: 25px;
  min-width: 25px;
  border: 0;
  border-radius: 99px;
  display: none;
}
*:hover::-webkit-scrollbar-thumb {
  display: block;
}
::-webkit-scrollbar-track {
  background-color: transparent;
  border: 0;
}

.ph-icon {
  vertical-align: middle;
  display: inline-block;
  line-height: 1;
}
.ph-icon > i {
  display: block;
}

.muted {
  color: var(--text-faint);
}
.small {
  font-size: 12px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo,
    monospace;
}
.good {
  color: var(--color-primary);
}
.bad {
  color: #ff5a5f;
}

.flex {
  display: flex;
}
.flex-column {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.justify-center {
  justify-content: center;
}
.justify-end {
  justify-content: flex-end;
}
.justify-start {
  justify-content: flex-start;
}
.justify-between {
  justify-content: space-between;
}
.align-center {
  align-items: center;
}
.align-end {
  align-items: flex-end;
}
.align-start {
  align-items: flex-start;
}

/* ------------------------------------------------------------------ 骨架 */
.app-container {
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  position: relative;
  z-index: 1;
}

.layout-container {
  height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.layout-menu {
  width: var(--menu-w);
  position: absolute;
  left: var(--side-gap);
  top: 10px;
  overflow: hidden;
  transition: width 0.3s ease;
}

.menu-logo {
  margin: 0 0 10px;
  cursor: pointer;
  white-space: nowrap;
}
.menu-logo .logo-container {
  display: flex;
  align-items: center;
}
.menu-logo .in-logo {
  display: block;
  width: 42px;
  height: 42px;
  margin-right: 10px;
  flex: 0 0 42px;
  object-fit: contain;
}
.menu-logo span.in-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-logo img {
  margin-right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.menu-groups {
  height: calc(100vh - 88px);
  overflow: auto;
}
.menu-group {
  margin-top: 22px;
}
.menu-group .g-title {
  font-size: 18px;
  margin-bottom: 12px;
  padding-left: 42px;
  color: #ffffffba;
}
.menu-group .g-links li {
  margin-bottom: 8px;
}
.menu-group .g-links .link {
  display: flex;
  padding: 10px 25px 10px 42px;
  border-radius: 8px;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  cursor: pointer;
  color: #fff;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.menu-group .g-links li:hover .link {
  background-color: #2b710d4d;
  color: var(--color-primary);
}
.menu-group .g-links li.is-active .link {
  background-color: var(--primary-dim);
  color: var(--color-primary);
}
.menu-group .g-links .ph-icon {
  font-size: 23px;
}
.menu-group .g-links .tit {
  font-size: 16px;
  margin-left: 10px;
  white-space: nowrap;
}
.version {
  font-size: 13px;
  color: #ffffff5c;
  text-align: center;
  margin: 16px 0 0;
}

.layout-topbar {
  position: absolute;
  left: calc(var(--menu-w) + var(--side-gap) * 2);
  height: var(--topbar-h);
  top: 0;
  right: calc(var(--panel-w) + var(--side-gap));
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  z-index: 5;
}
.topbar-collapse {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}
.topbar-collapse .ph-icon {
  width: 26px;
  height: 26px;
  cursor: pointer;
  color: #fff;
  font-size: 26px;
}
.topbar-collapse .title {
  font-size: 22px;
  margin-left: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}
#more-btn {
  display: none;
}
.topbar-act {
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
}
.topbar-act:hover {
  color: var(--color-primary);
}

.search-input {
  width: 280px;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 0 10px;
  height: 34px;
  cursor: pointer;
  color: #666;
}
.search-input .ph-icon {
  font-size: 16px;
}
.search-input .ph-txt {
  font-size: 14px;
  padding-left: 10px;
  color: #c5c5c5;
  flex: 1;
}
.search-input .kbd {
  font-size: 12px;
  color: #666;
  border: 1px solid #ffffff26;
  border-radius: 4px;
  padding: 1px 6px;
}

.layout-main {
  position: absolute;
  left: calc(var(--menu-w) + var(--side-gap) * 2);
  top: var(--topbar-h);
  right: calc(var(--panel-w) + var(--side-gap));
  bottom: 0;
  overflow: auto;
  padding: 0 10px;
}
.layout-main .wrapper {
  padding: 30px 0;
  margin: 0 auto;
}

/* 设置面板：从右侧滑出，覆盖在右栏之上（参考站 .profile-container） */
.profile-container {
  width: 325px;
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 30;
  /* 参考站是 #2d2c2c8a，但那会让下面的右栏文字透上来，这里加实一点 */
  background-color: #2d2c2ce6;
  padding: 52px 15px 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: auto;
  transform: translateX(105%);
  transition: transform 0.28s ease;
}
.profile-container.open {
  transform: none;
  box-shadow: -12px 0 32px #0006;
}
.profile-container .collapse {
  position: absolute;
  left: 15px;
  top: 16px;
  font-size: 20px;
  cursor: pointer;
  color: #fff;
  line-height: 1;
}
.profile-container .collapse i {
  transform: rotate(180deg);
  display: inline-block;
}
.profile-container .collapse:hover {
  color: var(--color-primary);
}
.profile-container .pro-setting {
  position: relative;
  margin-bottom: 20px;
}
.profile-container .pro-setting .item {
  font-size: 14px;
  padding: 9px 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  border-bottom: 1px solid rgba(55, 57, 60, 0.3);
}
.profile-container .pro-setting .item > span {
  flex: 1;
  color: #ffffff99;
}
.profile-container .pro-setting .item > b {
  font-weight: 400;
  word-break: break-all;
  text-align: right;
}
.profile-container .panel-box {
  background-color: #2d2c2c63;
}
.profile-container .field {
  margin-bottom: 10px;
}
.profile-container .input-icon {
  height: 34px;
}
.profile-container .del-button {
  border: 1px solid #ff8085;
  color: #ff8085;
}
@media screen and (max-width: 1000px) {
  .profile-container {
    background-color: #2d2c2ce6;
  }
}
@media screen and (max-width: 700px) {
  .profile-container {
    width: 100%;
  }
}

/* 右栏 */
.client-panel {
  width: var(--panel-w);
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 5;
  background-color: #2d2c2c8a;
  padding: 15px 15px 90px;
  overflow: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.client-panel .user-detail {
  position: relative;
  padding-left: 64px;
  height: 54px;
  margin-bottom: 25px;
  margin-top: 10px;
  padding-top: 1px;
}
.client-panel .user-detail .avatar {
  width: 54px;
  height: 54px;
  border-radius: 4px;
  box-shadow: 0 0 20px #b7b5b536;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  background-color: var(--color-primary);
}
.client-panel .user-detail .name {
  font-weight: 700;
  display: block;
  margin: 6px 0 10px;
}
.client-panel .user-detail .email {
  color: var(--text-dim);
  display: block;
}
.client-panel .user-detail .setting {
  position: absolute;
  right: 0;
  top: 0;
  cursor: pointer;
}
.client-panel .user-detail .lang {
  position: absolute;
  right: 32px;
  top: 0;
  cursor: pointer;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.client-panel .user-detail .lang:hover {
  color: var(--color-primary);
}
.client-panel .client-link {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  background-color: #37393c;
  margin-top: 10px;
  padding: 0 20px;
  cursor: pointer;
  color: #fff;
}
.client-panel .client-link:first-child {
  margin-top: 0;
}
.client-panel .client-link:hover {
  background-color: #434649;
}
/* 图标只在包裹层留间距，内层 <i> 不再叠加 margin，否则一行会空出 30px */
.client-panel .client-link .ph-icon {
  font-size: 22px;
  margin-right: 15px;
}
.client-panel .client-link i[class^='metron-'] {
  font-size: 22px;
  margin-right: 15px;
}
.client-panel .client-link i.ph-duotone {
  font-size: 22px;
  margin-right: 0;
}
.client-panel .btndrop .mydown {
  visibility: hidden;
  margin-left: auto;
  font-size: 14px;
  margin-right: 0;
}
.client-panel .btndrop:hover .mydown {
  visibility: visible;
}
.tips {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  color: #eaeaea66;
  padding: 10px 0;
}

/* ------------------------------------------------------------------ 面板 */
.panel-box {
  margin-bottom: 20px;
  background-color: #2d2c2c73;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 15px;
  border-radius: 4px;
}
.panel-box.large {
  padding: 20px;
  margin-bottom: 30px;
}
.panel-box.large .panel-header .tit {
  font-size: 16px;
}
.panel-header {
  font-size: 20px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  position: relative;
}
.panel-header .tit {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 14px;
}
.panel-header .tit:before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--color-primary);
  border-radius: 0 3px 3px 0;
  margin-right: 8px;
}
.panel-header .right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-40%);
  font-size: 14px;
}
.panel-body {
  position: relative;
}
.use-shadow {
  border-radius: 8px;
  background-color: #2d2e32a1;
}
.empty-tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 0;
}
.empty-tip .tit {
  text-align: center;
  font-size: 18px;
  margin-bottom: 30px;
}
.empty-tip .ph-icon {
  font-size: 200px;
  color: #ffffff1f;
}
.line-hr {
  margin: 12px 0;
  border: none;
  height: 1px;
  background-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.4), transparent);
  opacity: 0.25;
}
.copy-link {
  color: var(--color-primary);
  cursor: pointer;
  font-size: 18px;
}
.hint {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.7;
}

/* ------------------------------------------------------------------ 按钮 */
.n-button {
  border: 1px solid var(--color-primary);
  outline: 0;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background: rgba(10, 28, 14, 0.88);
  border-radius: 4px;
  color: var(--color-primary);
  height: 42px;
  padding: 0 28px;
  font-size: 16px;
  transition: opacity 0.15s ease;
}
.n-button:hover {
  opacity: 0.9;
}
.n-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.n-button.block {
  width: 100%;
}
.n-button.mini {
  height: 26px;
  padding: 0 12px;
  font-size: 12px;
}
.n-button.small {
  height: 30px;
  padding: 0 16px;
  font-size: 14px;
}
.n-button.medium {
  height: 34px;
  padding: 0 20px;
  font-size: 16px;
}
.n-button.normal {
  height: 38px;
  padding: 0 24px;
  font-size: 16px;
}
.n-button.large {
  height: 42px;
  padding: 0 28px;
  font-size: 16px;
}
.n-button .ph-icon {
  margin-right: 5px;
  font-size: 1em;
}
.n-button.plain {
  border-color: #ffffff33;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.n-button.red {
  border-color: #ff8085;
  background: rgba(60, 12, 14, 0.6);
  color: #ff8085;
}
.n-btn {
  border: 1px solid var(--color-primary);
  outline: 0;
  cursor: pointer;
  line-height: 1;
  background: rgba(10, 28, 14, 0.88);
  border-radius: 4px;
  color: var(--color-primary);
  padding: 6px 12px;
  font-size: 13px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
}
.n-btn:hover {
  opacity: 0.9;
}
.n-btn .ph-icon {
  margin-right: 5px;
  font-size: 1em;
}
.n-btn.mini {
  height: 26px;
  padding: 0 12px;
  font-size: 12px;
}
.n-btn.small {
  height: 30px;
  padding: 0 16px;
  font-size: 14px;
}
.n-btn.btn-red {
  border-color: #f66;
  color: #ff8085;
  background: rgba(60, 12, 14, 0.55);
}
.n-btn.btn-blue {
  border-color: #00a2ff;
  color: #00a2ff;
  background: rgba(0, 34, 60, 0.55);
}
.n-btn.btn-yellow {
  border-color: #e5ff00;
  color: #e5ff00;
  background: rgba(48, 52, 0, 0.55);
}
.n-btn.link {
  border: 0;
  background: transparent;
  color: var(--color-primary);
  padding: 0;
  margin-left: 0;
  height: auto;
}

/* -------------------------------------------------------------- 数据表格 */
.data-table {
  padding: 10px;
  overflow-x: auto;
}
.data-table table {
  width: 100%;
  border-collapse: collapse;
}
.data-table .nowrap {
  white-space: nowrap;
}
/* 交易号很长，压到固定宽度内换行，别把整个表格撑出去 */
.data-table .order-no {
  font-size: 12.5px;
  max-width: 190px;
  word-break: break-all;
  line-height: 1.4;
}
.data-table .order-no .no-short {
  display: none;
}

/* 节点表：桌面按参考站列宽，手机压到一屏内 */
.data-table .table-server {
  table-layout: fixed;
  min-width: 800px;
}
.data-table .table-server th:nth-child(1),
.data-table .table-server td:nth-child(1) {
  width: 100px;
}
.data-table .table-server th:nth-child(2),
.data-table .table-server td:nth-child(2) {
  width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.data-table .table-server th:nth-child(3),
.data-table .table-server td:nth-child(3) {
  width: 110px;
}
.data-table .table-server th:nth-child(4),
.data-table .table-server td:nth-child(4) {
  width: 150px;
}

.data-table .table-flow {
  min-width: 560px;
}
.data-table thead th {
  background-color: #2d303e6b;
  border-bottom: 0;
  padding: 10px 12px;
  color: #ffffff80;
  font-weight: 400;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
}
.data-table thead th .ph-icon {
  font-size: 16px;
  cursor: pointer;
  position: relative;
  top: -2px;
  margin-left: 4px;
  color: #ffffff4a;
}
.data-table tbody td {
  font-size: 14px;
  border-bottom: 1px solid rgba(55, 57, 60, 0.3);
  padding: 12px;
  vertical-align: middle;
}
.data-table tbody tr:hover td {
  background-color: #5588f412;
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}
.data-table .label-tag {
  background: rgba(189, 62, 113, 0.46);
  border: 1px solid var(--label-pink);
  font-size: 12px;
  color: var(--label-pink-text);
  border-radius: 4px;
  padding: 2px 8px;
  display: inline-block;
  line-height: 1.4;
}
.data-table .tag-purple {
  background: rgba(146, 84, 222, 0.28);
  border: 1px solid rgb(146, 84, 222);
  color: #c8a2ff;
  font-size: 12px;
  border-radius: 4px;
  padding: 2px 8px;
  display: inline-block;
  margin-right: 6px;
  line-height: 1.4;
}
.data-table .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}
.data-table .dot.on {
  background: var(--color-primary);
  box-shadow: 0 0 8px #4de45099;
}
.data-table .dot.off {
  background: #ff5a5f;
  box-shadow: 0 0 8px #ff5a5f80;
}
.data-table .ops {
  white-space: nowrap;
}

/* --------------------------------------------------------------- 概览卡 */
.overview-box {
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.overview-box .item {
  position: relative;
  width: 100%;
  height: 120px;
  border-radius: 6px;
  overflow: hidden;
  padding: 20px;
  background-color: #2d2c2c73;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}
.overview-box .icon {
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 42px;
  margin-right: 15px;
  position: absolute;
  left: 20px;
  top: 20px;
  transition: background-color 0.5s ease;
}
.overview-box .icon .ph-icon {
  font-size: 24px;
}
.overview-box .item.item-1 .icon {
  background-color: #f440404d;
}
.overview-box .item.item-1 .icon .ph-icon {
  color: #f44040;
}
.overview-box .item.item-2 .icon {
  background-color: #bb34be4d;
}
.overview-box .item.item-2 .icon .ph-icon {
  color: #bb34be;
}
.overview-box .item.item-3 .icon {
  background-color: #1bf3e64d;
}
.overview-box .item.item-3 .icon .ph-icon {
  color: #1bf3e6;
}
.overview-box .item.item-4 .icon {
  background-color: #09ff214d;
}
.overview-box .item.item-4 .icon .ph-icon {
  color: #09ff21;
}
.overview-box .exp {
  color: #fff;
  font-size: 15px;
  position: absolute;
  left: 80px;
  top: 32px;
}
.overview-box .tit {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-top: 50px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------------------------------------ 公告轮播 */
.banner-carousel {
  position: relative;
  margin-bottom: 30px;
  border-radius: 6px;
  overflow: hidden;
}
.notice-track {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x;
}
.notice-track::-webkit-scrollbar {
  display: none;
}
.notice-track.grabbing {
  cursor: grabbing;
  user-select: none;
}
.notice-item {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  box-sizing: border-box;
  padding: 15px 65px 55px;
  background: url('./img/notice.jpg') no-repeat center;
  background-size: cover;
  min-height: 200px;
}
.notice-item.imaged {
  background-size: cover;
  background-position: center;
}
.notice-item:before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 0;
}
.notice-item .newsdm {
  position: relative;
  z-index: 1;
}
.notice-item .tag {
  min-width: 70px;
  display: inline-block;
  height: 32px;
  line-height: 28px;
  border-radius: 0 6px 0 8px;
  background-color: #4de450b3;
  color: #fff;
  font-size: 18px;
  text-align: center;
  margin-bottom: 20px;
  padding: 3px 12px;
}
.notice-item .title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}
.notice-item .content {
  line-height: 1.7;
  text-indent: 2em;
  max-height: 111px;
  overflow: hidden;
  overflow-y: auto;
  white-space: pre-wrap;
  /* 底部渐隐，暗示还能往下滚 */
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
.notice-item .content::-webkit-scrollbar {
  width: 4px;
}

/* 左右切换按钮：桌面 hover 才出现，手机靠手势 */
.car-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  font-size: 17px;
}
.car-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  color: var(--color-primary);
}
.banner-carousel:hover .car-arrow {
  opacity: 1;
}
.car-arrow.prev {
  left: 10px;
}
.car-arrow.next {
  right: 10px;
}
.car-arrow.prev i {
  transform: rotate(180deg);
}

.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}
.banner-dots i {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: #8b8b8b;
  cursor: pointer;
  display: block;
  transition: width 0.2s ease, background-color 0.2s ease;
}
.banner-dots i.on {
  background: rgb(6, 218, 94);
  width: 20px;
}

/* 仪表盘双栏：和参考站一样用 flex，个性化固定 490 上限在左（is-reverse） */
.grid-2col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 490px;
  gap: 30px;
  align-items: start;
}
.grid-2col > .panel-box {
  margin-bottom: 0;
}
@media screen and (max-width: 1100px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
  /* 主区变窄后下单页两列会挤，退回单列 */
  .order-row {
    flex-direction: column;
    gap: 20px;
  }
  .order-col-main,
  .order-col-side {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }
}

/* 订阅信息 + 个性化（对齐参考站的 .subscribe-info） */
.subscribe-info {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: stretch;
  margin-bottom: 30px;
}
.subscribe-info.is-reverse {
  flex-direction: row-reverse;
}
.subscribe-info .col-1 {
  flex: 1 1 auto;
  min-width: 0;
}
/* col-2 固定 490：用 flex:1 的话 grid 的 min-content 会把 basis 拉小，
   结果个性化面板被压窄、按钮文字全被省略号吃掉 */
.subscribe-info .col-2 {
  flex: 0 0 490px;
  max-width: 490px;
  display: flex;
  flex-direction: column;
}
.subscribe-info .panel-box {
  margin-bottom: 0;
}
.subscribe-info .col-2 .import-btns {
  flex: 1;
}
@media screen and (max-width: 1400px) {
  .subscribe-info {
    display: block;
  }
  .subscribe-info .col-2 {
    flex: 1 1 auto;
    max-width: 100%;
    margin-bottom: 20px;
  }
  .subscribe-info .col-1 {
    margin-bottom: 0;
  }
}

.subs-msg .t2 {
  font-size: 16px;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 10px;
  line-height: 1.7;
  gap: 4px;
}
.subs-msg .re {
  color: #eaeaea66;
  font-size: 14px;
}
.subs-msg .prog {
  margin-bottom: 15px;
  padding-right: 20px;
}
/* 进度条右侧带百分比，下面一行是「已用 / 总计」（参考站 antd Progress 的排法） */
.subs-msg .prog-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.subs-msg .prog-row .progress {
  flex: 1 1 auto;
  min-width: 0;
}
.subs-msg .prog-row .pct {
  flex: 0 0 auto;
  font-size: 14px;
  color: #fff;
}
.subs-msg .used {
  margin-top: 10px;
  font-size: 16px;
  color: #fff;
}
.subs-msg .used b {
  font-weight: 400;
}
.subs-msg .t3 {
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.subs-msg .t3 b {
  font-weight: 400;
  color: var(--color-primary);
}
.progress {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.progress > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #4de450 53.12%, #e44d63 100%);
  transition: width 0.4s ease;
}

/* 仪表盘的进度条按参考站 antd Progress 的实测量：stroke-width 16、linecap square */
.subs-msg .prog-row .progress {
  height: 16px;
  border-radius: 0;
}
.subs-msg .prog-row .progress > i {
  border-radius: 0;
}
/* 订阅区按钮里的图标是裸 <i>，不走 .ph-icon 包裹，间距要单独给 */
.subs-btns .n-button > i {
  margin-right: 6px;
  font-size: 1em;
}
.subs-btns .n-button {
  text-decoration: none;
}

/*
 * duotone 字体里 :before 是 20% 透明度的底色层、:after 是线条层。
 * 参考站的按钮图标是单色 regular，把底层关掉就得到同样的观感，
 * 不用再额外装一套 regular 字体。
 */
.ph-flat:before {
  display: none !important;
}
.ph-flat:after {
  margin-left: 0 !important;
}

/* 表头问号：参考站是 antd Tooltip 挂在 Phosphor question 上，悬停立刻出气泡 */
.tip-q {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  color: rgba(255, 255, 255, 0.45);
  cursor: help;
  vertical-align: middle;
}
.tip-q:hover {
  color: rgba(255, 255, 255, 0.85);
}
.tip-q .ph-duotone {
  font-size: 15px;
}

/* 自绘 tooltip（替代原生 title）：深色气泡，贴边自动收进视口 */
.wzfx-tip {
  position: fixed;
  z-index: 3000;
  max-width: 260px;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 6px;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  animation: wzfx-tip-in 0.12s ease;
}
@keyframes wzfx-tip-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.subs-btns {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 「个性化」标题右侧的当前设备标记 */
.current-client {
  font-size: 14px;
  position: absolute;
  right: 0;
  top: 0;
  height: 20px;
  display: flex;
  align-items: center;
  color: #fff;
  border-bottom: 2px solid #4de450;
}
.current-client .ph-duotone {
  margin-right: 5px;
  font-size: 16px;
}

.import-btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 0;
  margin-top: 4px;
}
.import-btns .btn {
  cursor: pointer;
  font-size: 14px;
  border-radius: 3px;
  padding: 10px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  color: #fff;
  min-width: 0;
}
.import-btns .btn > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.import-btns .btn .ph-icon,
.import-btns .btn i[class^='metron-'] {
  font-size: 20px;
  margin-right: 6px;
  flex: 0 0 auto;
}
.import-btns .btn i.ph-duotone {
  margin-right: 0;
}
/* 下拉箭头只在 hover 时出现，和参考站一致 */
.import-btns .btn.btndrop .mydown {
  visibility: hidden;
  margin-left: auto;
  font-size: 13px;
}
.import-btns .btn.btndrop:hover .mydown {
  visibility: visible;
}
.import-btns .btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-primary);
}

/* ---------------------------------------------------------------- 套餐卡 */
.buy-title {
  font-size: 20px;
  color: #fff;
  margin-bottom: 20px;
}
.buy-tabs {
  display: flex;
  margin-bottom: 6px;
}
.buy-tabs .sub {
  font-size: 20px;
  color: #fff;
}
.buy-tabs ul.header {
  display: flex;
  border: 1px solid var(--color-primary);
  border-radius: 38px;
  padding: 4px;
}
.buy-tabs ul.header li {
  height: 38px;
  padding: 0 38px;
  border-radius: 38px;
  font-size: 16px;
  line-height: 38px;
  color: var(--color-primary);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.buy-tabs ul.header li.is-active {
  background: rgba(77, 228, 80, 0.5);
  color: #fff;
}

.plan-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 20px;
}
.plan-card {
  width: 100%;
  padding: 20px 25px 30px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background-color: #2d2e32a1;
  display: flex;
  flex-direction: column;
}
.plan-card.has-tag {
  border: 1px solid var(--color-primary);
}
.plan-card .t0 {
  color: rgb(32, 32, 32);
  line-height: 40px;
  padding: 0 15px;
  position: absolute;
  right: 0;
  top: 0;
  border-radius: 0 0 0 8px;
  font-size: 18px;
  background: var(--color-primary) !important;
}
.plan-card .t1 {
  font-size: 21px;
  font-weight: 400;
  margin-bottom: 20px;
}
.plan-card .t2 {
  font-size: 30px;
  color: #fff;
  text-align: center;
  font-weight: 700;
  margin-bottom: 15px;
}
.plan-card .t2 small {
  font-size: 14px;
  color: var(--text-faint);
  font-weight: 400;
}
.plan-card .t3 {
  margin-bottom: 20px;
}
.plan-card .t3 .ph-icon {
  font-size: 22px;
  margin-right: 5px;
}
.plan-cont {
  font-size: 14px;
  flex: 1;
}
.plan-cont .row {
  text-align: left;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  line-height: 1.5;
}
.plan-cont .row .gou {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%231890ff' fill-opacity='.25' stroke='%231890ff' stroke-width='1.5'/%3E%3Cpath d='M6.6 12.3l3.4 3.4 7.5-7.5' fill='none' stroke='%231890ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.plan-cont .row span {
  padding-left: 8px;
  font-size: 18px;
  word-break: break-word;
}
/*
 * 富文本套餐说明：直接渲染参考站后台存的 HTML（每行 Ant 双色勾 + 18px 正文），
 * 这里只补 antd .anticon 的基础盒模型，否则内联的 font-size:21px 撑不起来。
 */
.plan-cont.rich {
  font-size: 18px;
  line-height: 1.5715;
}
.plan-cont.rich .anticon {
  display: inline-block;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.plan-cont.rich .anticon > * {
  line-height: 1;
}
.plan-cont.rich .anticon svg {
  display: inline-block;
}
.plan-cont.rich a {
  color: var(--color-primary);
  text-decoration: none;
}
.plan-cont.rich a:hover {
  text-decoration: underline;
}

/* ---- 卡密兑换：后端 gift-card 接口一直有，缺的是前端入口 ---- */
.redeem-form {
  display: flex;
  gap: 12px;
  align-items: center;
}
.redeem-input {
  flex: 1;
  height: 42px;
  padding: 0 16px;
  font-size: 16px;
  letter-spacing: 1px;
  color: #fff;
  background: rgba(10, 28, 14, 0.88);
  border: 1px solid rgba(77, 228, 80, 0.35);
  border-radius: 4px;
  outline: 0;
}
.redeem-input::placeholder {
  color: #ffffff40;
  letter-spacing: 0;
}
.redeem-input:focus {
  border-color: var(--color-primary);
}
.redeem-form .n-button {
  flex: 0 0 auto;
}

.redeem-plan {
  font-size: 18px;
  margin-bottom: 14px;
  color: var(--color-primary);
}
.redeem-rewards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.redeem-rewards .r-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 15px;
  border-radius: 4px;
  background: rgba(45, 46, 50, 0.63);
}
.redeem-rewards .r-item .ph-icon {
  font-size: 20px;
  color: var(--color-primary);
}
.redeem-rewards .r-label {
  color: var(--text-faint);
}
.redeem-rewards .r-value {
  margin-left: auto;
  font-weight: 700;
}
.redeem-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-faint);
}
.redeem-bad {
  margin-top: 14px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 4px;
  color: #ffb4b4;
  background: rgba(228, 77, 99, 0.16);
  border: 1px solid rgba(228, 77, 99, 0.5);
}

/* ---- 下单页：左套餐卡 + 右付款周期/订单详情（对齐参考站 .order-main） ---- */
.order-row {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}
.order-col-main {
  flex: 0 0 378px;
  max-width: 378px;
  min-width: 0;
}
.order-col-side {
  flex: 1 1 auto;
  min-width: 0;
}

.order-box {
  padding: 20px;
  border-radius: 8px;
  background-color: #2d2e32a1;
  margin-bottom: 30px;
}
.order-box .tit {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 700;
}
.order-box.order-make {
  padding: 20px 30px;
  margin-bottom: 0;
}

.period-list {
  display: block;
}
.period-item {
  display: block;
  margin-bottom: 10px;
  border-radius: 4px;
  border: 1px solid #ffffff26;
  padding: 9px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.period-item:last-child {
  margin-bottom: 0;
}
.period-item:hover {
  border-color: #ffffff4d;
}
.period-item.on {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: none;
}
.radio-flex {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.order-make .block {
  font-size: 16px;
  margin-bottom: 20px;
}
.order-make .block .f20 {
  font-size: 20px;
}
.order-make .block .bo {
  font-weight: 700;
}
.order-make .block .gra {
  color: #807e7e;
}
.order-make .block .h2 {
  color: #807e7e;
  margin-bottom: 5px;
  display: block;
  font-size: 16px;
}
.order-make .block .h2 .ph-icon {
  font-size: 22px;
  margin-right: 5px;
}
.order-make .block .h4 {
  padding-left: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
/* 右栏只有 261px：价格永远不换行，名字允许换行，否则 "¥14.90" 会被拆成两行 */
.order-make .block .h4 > .bo {
  min-width: 0;
  word-break: break-word;
}
.order-make .block .h4 > .f20,
.order-make .block .h4 > .bo:last-child {
  white-space: nowrap;
  flex: 0 0 auto;
}
/* 支付总计那两个 span 都不该换行 */
.order-make .block .h4.total-row > .bo {
  white-space: nowrap;
  flex: 0 0 auto;
}
/* 抵扣金额那行要放输入框，去掉左缩进给输入框腾点宽度 */
.order-make .block .h4.has-input {
  padding-left: 0;
}
.order-make .block .h4.has-input .coupon-input {
  min-width: 0;
  font-size: 13px;
}
.order-make .block .input {
  flex: 1 1 0%;
  margin-right: 15px;
  height: 32px;
}
.order-make .coupon-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #ffffff1f;
  border-radius: 4px;
  padding: 0 10px;
  color: #fff;
  font-size: 14px;
  outline: 0;
}
.order-make .coupon-input:focus {
  border-color: #4de45080;
}
/* 优惠码验证失败：输入框标红，原因常驻在下面（toast 两秒半就没了） */
.order-make .coupon-input.is-bad {
  border-color: #e44d63;
  background: rgba(228, 77, 99, 0.08);
}
.order-make .coupon-err {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-left: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #ff8a8a;
}
.order-make .coupon-err .ph-duotone {
  font-size: 15px;
  flex: 0 0 auto;
}
.order-make .coupon-hint {
  margin-left: 8px;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 3px;
  color: #ffc160;
  background: rgba(255, 193, 96, 0.14);
}
.order-make .btns {
  text-align: right;
  margin: 30px 0 10px;
}
.order-make .btns .n-button {
  height: 40px;
  padding: 0 30px;
}

/* 旧的横排周期样式留着给别处用 */
.order-panel .panel-header .tit {
  font-size: 16px;
}

/* 订单详情弹窗用的键值列表 */
.order-sum {
  font-size: 14px;
}
.order-sum .line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(55, 57, 60, 0.3);
}
.order-sum .line:last-child {
  border-bottom: none;
}
.order-sum .line .lbl {
  color: #ffffff99;
  display: flex;
  align-items: center;
}
.order-sum .line .lbl .ph-icon {
  margin-right: 8px;
  font-size: 16px;
}
.order-sum .line .val {
  text-align: right;
}
.order-sum .total {
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px solid rgba(55, 57, 60, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}
.order-sum .total b {
  font-size: 24px;
  color: var(--color-primary);
  font-weight: 700;
}

/* ------------------------------------------------------------------ 表单 */
.field {
  margin-bottom: 14px;
}
.field > label {
  display: block;
  font-size: 13px;
  color: #ffffff99;
  margin-bottom: 6px;
}
.input,
select.input,
textarea.input {
  width: 100%;
  height: 38px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #ffffff1f;
  border-radius: 4px;
  padding: 0 12px;
  color: #fff;
  font-size: 14px;
  outline: 0;
  transition: border-color 0.2s ease;
}
textarea.input {
  height: auto;
  padding: 10px 12px;
  line-height: 1.6;
  resize: vertical;
}
.input:focus,
select.input:focus,
textarea.input:focus {
  border-color: #4de45080;
}
.input::placeholder {
  color: #ffffff4a;
}
.input-icon {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #ffffff1f;
  border-radius: 4px;
  padding: 0 12px;
  height: 38px;
}
.input-icon .ph-icon {
  font-size: 18px;
  margin-right: 10px;
  color: #fff;
}
.input-icon input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 14px;
}
.input-icon input::placeholder {
  color: #ffffff4a;
}

/* -------------------------------------------------------------- 登录注册 */
/* 对齐参考站：右半露出整张背景图，左半 550px 半透明玻璃表单 */
.background-container {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.background-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.auth-container {
  height: 100vh;
  position: relative;
  z-index: 5;
}
.auth-form {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 100vh;
  width: 550px;
  padding: 0 70px 60px;
  box-sizing: border-box;
  position: relative;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.auth-form .wrapper {
  width: 100%;
}
.auth-form .title {
  font-weight: 400;
  font-size: 30px;
  text-align: center;
  margin-bottom: 45px;
}
.auth-form .logo {
  position: absolute;
  left: 20px;
  top: 20px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-form .logo .in-logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 42px;
}
.auth-form .logo .in-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.auth-form .control-item {
  margin-bottom: 30px;
}
.auth-form .control-item > label {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}
.auth-form .control-input {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 11px;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.auth-form .control-input:hover {
  border-color: #4d4d4d;
}
.auth-form .control-input:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(77, 228, 80, 0.14);
}
.auth-form .control-icon {
  font-size: 24px;
  color: #fff;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.auth-form .control-input > input {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 10px;
  background-color: transparent;
  border: 0;
  outline: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
}
.auth-form .control-input > input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.auth-form .control-eye {
  flex: 0 0 auto;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.45);
  font-size: 18px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}
.auth-form .control-eye:hover {
  color: var(--color-primary);
}
.auth-form .btns {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: 35px;
}
.auth-form .btns .lang {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: color 0.2s ease;
}
.auth-form .btns .lang:hover {
  color: var(--color-primary);
}
.auth-form .btns .btn {
  min-width: 130px;
  height: 44px;
  font-size: 18px;
  color: #fff;
  border: 0;
  box-shadow: none;
  border-radius: 4px;
  background-color: rgb(68, 197, 71);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, transform 0.12s ease;
}
.auth-form .btns .btn:hover {
  background-color: var(--color-primary);
}
.auth-form .btns .btn:active {
  transform: scale(0.98);
}
.auth-form .btns .btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.auth-form .btns .btn .ph-duotone {
  margin-left: 5px;
  display: block;
}
.auth-form .bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 50px;
}
.auth-form .bottom .link {
  font-size: 14px;
  margin: 0 50px;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}
.auth-form .bottom .link:hover {
  color: var(--color-primary);
}
.auth-error {
  background: rgba(255, 90, 95, 0.12);
  border: 1px solid rgba(255, 90, 95, 0.4);
  color: #ffb3b5;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13px;
  margin-bottom: 14px;
  animation: fade-up 0.24s ease both;
}

@media screen and (max-width: 1000px) {
  .auth-form {
    width: 100%;
    padding: 0 20% 60px;
  }
}
@media screen and (max-width: 700px) {
  .auth-form {
    width: 100%;
    padding: 0 40px 60px;
  }
  .auth-form .title {
    font-size: 24px;
    margin-bottom: 32px;
  }
  .auth-form .bottom {
    bottom: 32px;
  }
  .auth-form .bottom .link {
    margin: 0 30px;
  }
}

/* ------------------------------------------------------------------ 提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(12px);
  background: #23262b;
  border: 1px solid #4de45059;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: 80vw;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.err {
  border-color: rgba(255, 90, 95, 0.55);
  color: #ffb3b5;
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal {
  background: #33333de6;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 8px;
  padding: 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.modal .modal-title {
  font-size: 16px;
  margin-bottom: 16px;
}
.modal .qr-box {
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  display: inline-block;
}
.modal .qr-box img,
.modal .qr-box canvas {
  display: block;
  width: 220px;
  height: 220px;
}
.modal .modal-foot {
  margin-top: 16px;
}

.dropdown {
  position: absolute;
  z-index: 800;
  background: #23262be6;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid #ffffff1a;
  border-radius: 6px;
  padding: 6px;
  min-width: 150px;
  box-shadow: 0 6px 24px #0006;
}
.dropdown .item {
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.dropdown .item:hover {
  background: rgba(77, 228, 80, 0.14);
  color: var(--color-primary);
}
.dropdown .item.on {
  color: var(--color-primary);
  background: rgba(77, 228, 80, 0.1);
}
.dropdown .item .ph-icon {
  margin-right: 8px;
  font-size: 16px;
}

/* ------------------------------------------------------------ 流量图表 */
.flow-box .chart-box {
  height: 240px;
  width: 100%;
}
.chart-box {
  position: relative;
  width: 100%;
  height: 240px;
}
.chart-box .no-data {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 15px;
  color: #ffffff40;
}
.chart-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.chart-tip {
  position: absolute;
  pointer-events: none;
  background: rgba(30, 30, 34, 0.94);
  border: 1px solid #ffffff1f;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 4px 16px #0007;
}
.chart-tip .tip-name {
  color: #9a9a9a;
  margin-bottom: 5px;
}
.chart-tip .tip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.7;
}
.chart-tip .tip-row i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.chart-tip .tip-row b {
  margin-left: auto;
  font-weight: 600;
}

.chart-wrap {
  margin-top: 4px;
}
.chart-foot {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.kb-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(55, 57, 60, 0.4);
}
.kb-item:last-child {
  border-bottom: none;
}
.kb-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.kb-body {
  font-size: 14px;
  color: #ffffffc4;
  line-height: 1.85;
  white-space: pre-wrap;
}

/* 侧栏折叠（桌面端点顶栏按钮） */
.layout-container.is-collapse .layout-menu {
  width: 60px;
  left: 10px;
}
.layout-container.is-collapse .layout-topbar,
.layout-container.is-collapse .layout-main {
  left: 80px;
}
.layout-container.is-collapse .menu-logo {
  text-align: center;
}
.layout-container.is-collapse .menu-logo .logo-container {
  justify-content: center;
}
.layout-container.is-collapse .menu-logo .in-text,
.layout-container.is-collapse .menu-group .g-title,
.layout-container.is-collapse .version {
  display: none;
}
.layout-container.is-collapse .menu-group {
  margin-top: 14px;
}
.layout-container.is-collapse .menu-group .g-links .link {
  padding: 12px 0;
  border-radius: 8px;
  justify-content: center;
}
.layout-container.is-collapse .menu-group .g-links .ph-icon {
  font-size: 24px;
}
.layout-container.is-collapse .menu-group .g-links .tit {
  display: none;
}

/* 全局搜索面板 */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 950;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
}
.search-panel {
  width: 560px;
  max-width: 92vw;
  background-color: #a3a3a357;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px #0000000f;
}
.search-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #ffffff14;
}
.search-header .ph-icon {
  font-size: 18px;
  color: #c5c5c5;
  margin-right: 10px;
}
.search-header input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 15px;
}
.search-header input::placeholder {
  color: #ffffff66;
}
.search-header .kbd {
  font-size: 11px;
  color: #ffffff80;
  border: 1px solid #ffffff26;
  border-radius: 4px;
  padding: 1px 6px;
}
.search-result {
  background-color: #17171740;
  padding: 16px;
  max-height: 52vh;
  overflow: auto;
}
.search-result .group {
  margin-bottom: 14px;
}
.search-result .group .g-name {
  color: #ffffffba;
  margin-bottom: 8px;
  font-size: 13px;
}
.search-result ul {
  list-style: none;
}
.search-result li {
  display: flex;
  align-items: center;
  cursor: pointer;
  height: 34px;
  border-radius: 5px;
  padding: 0 10px;
  margin-bottom: 5px;
  font-size: 14px;
}
.search-result li:hover {
  background-color: #ffffff24;
}
.search-result li .ph-icon {
  color: #fff;
  font-size: 18px;
  margin-right: 12px;
}

/* ------------------------------------------------------------ 加载与特效 */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes sk {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}
@keyframes boot-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 24px #18a9c93d;
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 36px #18a9c97a;
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* 切页：参考站是 <transition name="slide"> 从右侧滑入，这里用轻量版 */
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes zoom-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes zoom-big-in {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
/* antd wave */
@keyframes ripple-out {
  to {
    transform: scale(1);
    opacity: 0;
  }
}
.ripple {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.28;
  transform: scale(0);
  animation: ripple-out 0.55s cubic-bezier(0.08, 0.82, 0.17, 1) forwards;
  pointer-events: none;
  z-index: 0;
}

.spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}

/* 首屏 loader：品牌方块 + 锥形渐变环 */
.boot-loader {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.62);
}
.boot-spin {
  position: relative;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.boot-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 90deg, rgba(24, 169, 201, 0) 0%, #18a9c9 92%, rgba(24, 169, 201, 0) 100%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  animation: spin 1.1s linear infinite;
}
.boot-mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  animation: boot-pulse 1.8s ease-in-out infinite;
}
.boot-mark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}
.boot-text {
  font-size: 13px;
  letter-spacing: 2px;
  color: #ffffff66;
}
.boot-text::after {
  content: '';
  animation: boot-dots 1.4s steps(4, end) infinite;
}
@keyframes boot-dots {
  0% {
    content: '';
  }
  25% {
    content: '.';
  }
  50% {
    content: '..';
  }
  75% {
    content: '...';
  }
}

/* 页面级 loading */
.spin-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 72px 0;
  font-size: 14px;
  color: #ffffff73;
  letter-spacing: 1px;
}
.spin-loading .ph-duotone {
  font-size: 32px;
  color: var(--color-primary);
  animation: spin 1s linear infinite;
}

/* 顶部进度条：切页时一闪而过 */
.page-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.page-bar.on {
  opacity: 1;
}
.page-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #4de45080, #4de450);
  box-shadow: 0 0 8px #4de450aa;
  transition: width 0.45s ease;
}
.page-bar.done > i {
  width: 100%;
  transition: width 0.18s ease;
}

/* 按钮里的 loading 图标 */
.n-button .ph-duotone.spin,
.n-btn .ph-duotone.spin {
  margin-right: 6px;
}

/* 骨架屏 */
.skeleton {
  background: linear-gradient(90deg, #ffffff1c 25%, #ffffff38 37%, #ffffff1c 63%);
  background-size: 400% 100%;
  animation: sk 1.4s ease infinite;
  border-radius: 6px;
}
.sk-page {
  animation: slide-in 0.3s cubic-bezier(0.08, 0.82, 0.17, 1) both;
}

/* 波纹要贴着按钮圆角裁切 */
.n-button,
.n-btn,
.auth-form .btn,
.client-link,
.import-btns .btn,
.period-item {
  position: relative;
  overflow: hidden;
}
/* 必须排除 .ripple 本身：否则它的 position:relative 会盖掉 .ripple 的 absolute，
   波纹变成 flex 子项把按钮文字挤成一列竖排。
   注意 :not(.ripple) 会把权重抬到 (0,2,0)，光靠后面的 .ripple 规则压不住，
   所以下面那条用 !important —— 绝对定位是波纹的本质，这点权重值得。 */
.n-button > *:not(.ripple),
.n-btn > *:not(.ripple),
.auth-form .btn > *:not(.ripple),
.client-link > *:not(.ripple),
.import-btns .btn > *:not(.ripple),
.period-item > *:not(.ripple) {
  position: relative;
  z-index: 1;
}
.ripple {
  position: absolute !important;
  z-index: 0 !important;
}

/* 下拉 / 弹窗进场 */
.dropdown {
  animation: zoom-in 0.16s ease both;
}
.modal {
  animation: zoom-big-in 0.24s cubic-bezier(0.08, 0.82, 0.17, 1) both;
}
.search-panel {
  animation: zoom-big-in 0.2s cubic-bezier(0.08, 0.82, 0.17, 1) both;
}
.modal-mask {
  animation: fade-in-mask 0.2s ease both;
}
@keyframes fade-in-mask {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* -------------------------------------------------------------- 响应式 */
@media screen and (max-width: 1400px) {
  .subscribe-info {
    display: block;
  }
  .subscribe-info .col-2 {
    max-width: 100%;
  }
  .overview-box {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 1000px) {
  .layout-main,
  .layout-topbar {
    right: 0;
  }
  #more-btn {
    display: inline-block;
  }
  .client-panel {
    display: none;
  }
  .client-panel.open {
    display: block;
    background-color: #2d2c2ce6;
    z-index: 20;
  }
  .btn-more {
    display: block;
  }
  .plan-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media screen and (max-width: 700px) {
  .layout-menu {
    left: 0;
    top: 0;
    height: 100vh;
    border-radius: 0;
    z-index: 30;
    background-color: #2d2c2c8c;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px;
    margin-left: -220px;
    transition: margin-left 0.3s ease;
  }
  .layout-menu.open {
    margin-left: 0;
  }
  .layout-main {
    left: 0;
    right: 0;
  }
  .layout-topbar {
    left: 0;
    right: 0;
    height: 60px;
    padding: 0 8px;
    gap: 10px;
  }
  /* 手机上搜索框收成一个图标，否则 280px 会把右侧按钮全挤出屏幕 */
  .layout-topbar .search-input {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
    margin-right: 0;
  }
  .layout-topbar .search-input .ph-txt,
  .layout-topbar .search-input .kbd {
    display: none;
  }
  .layout-topbar .search-input .ph-icon {
    font-size: 20px;
  }
  .topbar-right {
    gap: 12px;
  }
  .topbar-act {
    font-size: 22px;
  }
  .topbar-collapse .title {
    max-width: 38vw;
    font-size: 18px;
    margin-left: 10px;
  }
  .topbar-collapse .ph-icon {
    width: 22px;
    height: 22px;
    font-size: 22px;
  }
  .layout-main .wrapper {
    padding: 20px 0;
  }
  .plan-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .overview-box {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .overview-box .item {
    height: 100px;
  }
  .overview-box .tit {
    font-size: 16px;
    margin-top: 44px;
  }
  .buy-tabs {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .buy-tabs ul.header li {
    padding: 0 20px;
    font-size: 14px;
  }
  .notice-item {
    padding: 15px 20px 52px;
    min-height: 0;
  }
  .notice-item .content {
    height: auto;
    max-height: 160px;
  }
  .notice-item .tag {
    font-size: 15px;
    height: 28px;
    line-height: 24px;
    margin-bottom: 14px;
  }
  /* 手机上靠手势滑，不显示箭头 */
  .car-arrow {
    display: none;
  }
  .banner-dots {
    bottom: 14px;
    gap: 6px;
  }
  .subscribe-info .subs-btns {
    justify-content: center;
  }
  .data-table {
    overflow-x: auto;
  }
  /* 手机上订单号只留尾部，否则一行字被折成好几行 */
  .data-table .order-no {
    max-width: 90px;
    word-break: normal;
    white-space: nowrap;
  }
  .data-table .order-no .no-full {
    display: none;
  }
  .data-table .order-no .no-short {
    display: inline;
  }
  .data-table thead th,
  .data-table tbody td {
    padding: 10px 8px;
  }
  /* 节点表在手机上压进一屏，不再横向滚 */
  .data-table .table-server {
    min-width: 0;
  }
  .data-table .table-server th:nth-child(1),
  .data-table .table-server td:nth-child(1) {
    width: 30px;
  }
  .data-table .table-server th:nth-child(2),
  .data-table .table-server td:nth-child(2) {
    width: auto;
  }
  .data-table .table-server th:nth-child(3),
  .data-table .table-server td:nth-child(3) {
    width: 54px;
  }
  .data-table .table-server th:nth-child(4),
  .data-table .table-server td:nth-child(4) {
    width: 64px;
  }
  .data-table .table-server th:nth-child(5),
  .data-table .table-server td:nth-child(5) {
    width: 60px;
  }
  .data-table .table-server thead th .ph-icon {
    display: none;
  }
  .data-table .table-flow {
    min-width: 0;
  }
  .data-table .table-flow th,
  .data-table .table-flow td {
    font-size: 12.5px;
  }
}
