@charset "UTF-8";

:root {
  --hall-bg: #15161f;
  --hall-panel: #242634;
  --hall-panel-2: #1c1e29;
  --hall-line: rgba(255, 255, 255, .09);
  --hall-text: #f7f8fb;
  --hall-dim: rgba(247, 248, 251, .68);
  --hall-green: #42e8b4;
  --hall-red: #ff5b41;
  --hall-yellow: #ffca3a;
  --site-brand-size: 22px;
  --site-brand-weight: 900;
  --site-brand-color: var(--hall-green);
  --site-brand-color-hover: #6af0c8;
  --site-brand-color-on-light: #126853;
  --site-brand-max: none;
}

html, body {
  min-width: 1180px;
  background:
    radial-gradient(circle at 18% 0, rgba(66, 232, 180, .14), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(255, 91, 65, .14), transparent 25%),
    var(--hall-bg);
  color: var(--hall-text);
}

body {
  padding-top: 76px;
}

body.page-user,
body.p-author-index,
body.p-comic-info {
  padding-top: 0;
}

a {
  color: inherit;
}

img {
  object-fit: cover;
}

.container--response,
.in-header__wrap {
  width: calc(100vw - 76px);
  max-width: none;
  min-width: 1180px;
}

.in-header {
  height: 76px;
  background: rgba(21, 22, 31, .94);
  box-shadow: none;
  border-bottom: 1px solid var(--hall-line);
  backdrop-filter: blur(18px);
}

.in-header__wrap {
  display: flex;
  align-items: center;
  height: 76px;
}

.in-header__logo {
  float: none;
  flex-shrink: 0;
  width: auto;
  max-width: none;
  height: 76px;
  margin: 0 24px 0 0;
  background: none;
}

.in-header__logo:before {
  content: none;
  display: none;
}

.in-header__logo-text,
.read__logo-text,
.header-logo-text {
  display: block;
  max-width: var(--site-brand-max);
  font-size: var(--site-brand-size);
  font-weight: var(--site-brand-weight);
  letter-spacing: -0.02em;
  color: var(--site-brand-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  transition: color .2s ease;
}

.in-header__logo-text {
  height: 76px;
  line-height: 76px;
}

.in-header__logo:hover .in-header__logo-text,
.read__logo-link:hover .read__logo-text,
.header-logo:hover .header-logo-text {
  color: var(--site-brand-color-hover);
}

body.page-user .header-user-wrapper .header-logo-text,
body.p-author-index .header-user-wrapper .header-logo-text,
body.p-comic-info .header-user-wrapper .header-logo-text {
  max-width: 200px;
  height: 66px;
  line-height: 66px;
  font-size: 20px;
}

.in-header__nav {
  float: none;
  flex-shrink: 0;
  height: auto;
  margin-top: 0;
  line-height: 1;
  font-size: 15px;
  align-self: center;
}

.in-header__nav .nav-item {
  width: auto;
  min-width: 70px;
  height: 38px;
  margin: 0 5px 0 0;
  line-height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
}

.in-header__nav .nav-item a {
  display: block;
  padding: 0 16px;
  color: var(--hall-dim);
}

.in-header__nav .active,
.in-header__nav .nav-item:hover {
  background: var(--hall-red);
}

.in-header__nav .active a,
.in-header__nav .nav-item:hover a {
  color: #fff;
}

.in-header__nav .underline,
.in-header__nav .nav-item .new {
  display: none !important;
}

.in-header__search {
  position: relative;
  float: none;
  flex-shrink: 0;
  width: 330px;
  height: 42px;
  margin: 0 0 0 22px;
  align-self: center;
}

.in-header__search .input {
  width: 250px;
  height: 42px;
  color: #fff;
  border: 1px solid var(--hall-line);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: rgba(255, 255, 255, .06);
  text-indent: 38px;
}

.in-header__search .button {
  width: 76px;
  height: 42px;
  border-radius: 0 8px 8px 0;
  background: var(--hall-green);
}

.in-header__search .button:after {
  content: "搜索";
  color: #11151d;
  font-weight: 900;
}

.in-header__search > .iconfont {
  top: 2px;
  color: var(--hall-green);
}

.in-header__search .in-dialog--search {
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  width: 100%;
  margin-left: 0 !important;
  padding: 12px 0 10px;
  border: 1px solid var(--hall-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0, rgba(66, 232, 180, .12), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(255, 91, 65, .12), transparent 30%),
    linear-gradient(180deg, rgba(36, 38, 52, .98), rgba(21, 22, 31, .98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .38);
  box-sizing: border-box;
  z-index: 10001;
}

.in-header__search .in-dialog--search .dialog-title {
  margin: 0 14px 10px;
  color: var(--hall-dim);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.in-header__search .search-hot-wr,
.in-header__search .search-hot {
  width: 100%;
}

.in-header__search .search-hot-wr {
  padding-bottom: 4px;
}

.in-header__search .search-hot__item {
  width: 100%;
  transition: background-color .18s ease;
}

.in-header__search .search-hot__item:hover {
  background: rgba(255, 255, 255, .04);
}

.in-header__search .search-item__name {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--hall-text);
  font-size: 13px;
  line-height: 34px;
}

.in-header__search .search-item__name .comic-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--hall-text);
}

.in-header__search .search-hot__item .num {
  float: none;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  line-height: 20px;
  color: var(--hall-dim);
  background: rgba(255, 255, 255, .08);
  border-radius: 4px;
}

.in-header__search .search-hot__item .num--1 {
  color: #10161d;
  background: var(--hall-green);
}

.in-header__search .search-hot__item .num--2 {
  color: #10161d;
  background: #ffca3a;
}

.in-header__search .search-hot__item .num--3 {
  color: #10161d;
  background: #ffb347;
}

.in-header__search .search-hot__item.active .search-item__detail {
  display: grid !important;
  grid-template-columns: 22px 56px minmax(0, 1fr);
  grid-template-areas:
    "num cover title"
    "num cover author"
    "num cover desc";
  column-gap: 10px;
  row-gap: 4px;
  align-items: start;
  float: none !important;
  width: auto;
  margin: 0 10px 8px;
  padding: 10px 12px 10px 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  overflow: hidden;
}

.in-header__search .search-item__detail .num {
  grid-area: num;
  float: none;
  margin: 0;
}

.in-header__search .search-item__detail .cover {
  grid-area: cover;
  float: none;
  width: 56px;
  height: 74px;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
}

.in-header__search .search-item__detail .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.in-header__search .search-item__detail .title {
  grid-area: title;
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.in-header__search .search-item__detail .text {
  margin: 0;
  color: var(--hall-dim);
  font-size: 12px;
  line-height: 1.5;
}

.in-header__search .search-item__detail .text:nth-of-type(1) {
  grid-area: author;
}

.in-header__search .search-item__detail .text:nth-of-type(2) {
  grid-area: desc;
}

.in-header__search .search-item__detail .read {
  top: 28px;
  color: #10161d;
  background: var(--hall-green);
  border-radius: 6px;
}

.in-header__search .search-item__detail .read:hover {
  background: #b9ffe9;
}

.in-header__search .search-his__item {
  color: var(--hall-text);
  background: rgba(255, 255, 255, .06);
  border-radius: 6px;
}

.in-header__search .search-his__clear {
  color: var(--hall-dim);
}

.in-header__user {
  float: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  height: 76px;
  margin-top: 0;
  margin-left: auto;
}

.in-header__user .user-item {
  height: auto;
  padding-bottom: 0;
  color: var(--hall-dim);
}

.in-header__user .user-item a {
  color: var(--hall-dim);
}

.in-header__avatar img {
  border: 2px solid rgba(255, 255, 255, .12);
}

.hall-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) minmax(0, 310px);
  gap: 24px;
  align-items: start;
  width: calc(100% - 76px);
  max-width: calc(100vw - 76px);
  min-width: 0;
  margin: 24px auto;
  box-sizing: border-box;
}

@media screen and (min-width: 1256px) {
  .hall-shell {
    min-width: 1180px;
  }
}

.hall-sidebar,
.hall-panel,
.hall-card,
.hall-hero,
.in-sec-wr,
.cate-top-wr,
.cate-container,
.search-page-wr,
.top-list,
.de-container,
.de-rank-box,
.de-daily,
.in-rank-box,
.in-rank-box--aside {
  border-radius: 8px;
  background: var(--hall-panel);
  border: 1px solid var(--hall-line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}

.hall-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  min-width: 0;
  align-self: start;
}

.hall-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hall-sidebar-nav .hall-menu-item {
  margin-bottom: 12px;
}

.hall-sidebar-nav .hall-menu-item:last-child {
  margin-bottom: 0;
}

.hall-sidebar-panel {
  padding-top: 16px;
  border-top: 1px solid var(--hall-line);
}

.hall-sidebar-panel__head {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.hall-sidebar-rank-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hall-sidebar-rank {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--hall-dim);
  transition: background-color .18s ease, color .18s ease;
}

.hall-sidebar-rank:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

.hall-sidebar-rank .num {
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--hall-green);
  background: rgba(66, 232, 180, .12);
}

.hall-sidebar-rank .num--1 {
  color: #fff;
  background: var(--hall-red);
}

.hall-sidebar-rank .num--2,
.hall-sidebar-rank .num--3 {
  color: #11151d;
  background: var(--hall-yellow);
}

.hall-sidebar-rank .name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 700;
}

.hall-sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hall-sidebar-tags a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--hall-dim);
  background: rgba(255, 255, 255, .07);
  transition: background-color .18s ease, color .18s ease;
}

.hall-sidebar-tags a:hover {
  color: #fff;
  background: rgba(66, 232, 180, .18);
}

.hall-sidebar-quick {
  margin-top: auto;
}

.hall-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  margin-bottom: 12px;
  padding: 0 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-weight: 800;
}

.hall-menu-item.active,
.hall-menu-item:hover {
  background: var(--hall-red);
}

.hall-menu-item b {
  color: var(--hall-green);
}

.hall-stage {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.hall-hero {
  position: relative;
  height: 330px;
  overflow: hidden;
}

.hall-hero img {
  width: 100%;
  height: 100%;
}

.hall-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .78), transparent 72%);
}

.hall-hero-info {
  position: absolute;
  left: 34px;
  top: 42px;
  z-index: 2;
  width: 460px;
}

.hall-hero-info .badge {
  display: inline-block;
  height: 30px;
  padding: 0 12px;
  line-height: 30px;
  color: #10131a;
  font-weight: 900;
  border-radius: 8px;
  background: var(--hall-green);
}

.hall-hero-info h1 {
  margin: 18px 0 16px;
  font-size: 56px;
  line-height: 1.05;
  color: #fff;
  letter-spacing: 0;
}

.hall-hero-info p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--hall-dim);
}

.hall-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.hall-btn {
  height: 42px;
  padding: 0 18px;
  line-height: 42px;
  border-radius: 8px;
  font-weight: 900;
}

.hall-btn.primary {
  color: #11151d;
  background: var(--hall-green);
}

.hall-btn.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
}

.hall-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-items: start;
  box-sizing: border-box;
}

.hall-comic-card {
  min-width: 0;
  width: 100%;
}

.hall-comic-card .cover,
.in-comic--type-b .cover,
.common-comic-item .cover,
.guess-item .cover,
.daily__item .cover {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--hall-panel-2);
}

/* 主推下方五格：固定更高竖版比例，避免不同设备图片原始尺寸导致行高错位 */
.hall-comic-card .cover {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 5.5;
  height: auto;
  overflow: hidden;
}

.p-hall-index .hall-comic-card .cover > img,
.hall-comic-card .cover > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease;
}

.in-comic--type-b img,
.common-comic-item img,
.guess-item img,
.daily__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease;
}

.hall-comic-card:hover .cover > img,
.in-comic--type-b:hover img,
.common-comic-item:hover img,
.guess-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.15);
}

.hall-comic-card .comic__title,
.hall-comic-card .comic__title a {
  margin-top: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hall-comic-card .comic__feature {
  margin-top: 4px;
  color: var(--hall-dim);
}

.hall-right {
  display: grid;
  gap: 18px;
  min-width: 0;
  align-self: start;
}

.hall-daily,
.hall-updates {
  padding: 20px;
  border-radius: 8px;
  background: var(--hall-panel);
  border: 1px solid var(--hall-line);
}

.hall-daily h3,
.hall-updates h3 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 26px;
}

.hall-daily .cover {
  height: 180px;
  overflow: hidden;
  border-radius: 8px;
}

.hall-daily .title {
  margin-top: 12px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.hall-update-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hall-line);
  color: var(--hall-dim);
}

.hall-update-item b {
  color: var(--hall-green);
}

/* 首页上半区：窄屏下仅调整侧栏比例，封面仍随列宽等比缩放 */
@media screen and (max-width: 1440px) {
  .hall-shell {
    grid-template-columns: 220px minmax(0, 1fr) minmax(0, 280px);
    gap: 18px;
  }

  .hall-hero-info h1 {
    font-size: 44px;
  }
}

@media screen and (max-width: 1280px) {
  .hall-shell {
    grid-template-columns: 200px minmax(0, 1fr) minmax(0, 260px);
    gap: 14px;
  }

  .hall-card-grid {
    gap: 12px;
  }

  .hall-comic-card .comic__title,
  .hall-comic-card .comic__title a {
    font-size: 13px;
  }

  .hall-hero {
    height: 280px;
  }

  .hall-hero-info {
    width: min(460px, calc(100% - 68px));
  }

  .hall-hero-info h1 {
    font-size: 36px;
    margin: 12px 0 10px;
  }
}

.in-banner,
.in-nav,
.in-ad,
.in-friends {
  width: calc(100vw - 76px);
  max-width: none;
  min-width: 1180px;
  margin-left: 38px;
  margin-right: 38px;
}

.in-sec-wr,
.cate-top-wr,
.cate-container,
.search-page-wr,
.top-list__wr,
.de-container-wr {
  width: calc(100vw - 76px);
  max-width: none;
  min-width: 1180px;
  margin-left: 38px;
  margin-right: 38px;
}

.p-top .top-list__wr:not(:has(.top-list__box)) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  margin-top: 24px;
}

/* 单榜单页：标题 + 卡片网格，避免误用三列布局导致错位 */
.p-top .top-list__wr:has(.top-list__box) {
  display: block;
  margin-top: 24px;
  padding: 22px;
  border-radius: 8px;
  background: var(--hall-panel);
  border: 1px solid var(--hall-line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}

.p-top .top-list__wr:has(.top-list__box) .top-list__title {
  float: none;
  width: 100%;
  margin-bottom: 18px;
  padding-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  border-bottom: 1px solid var(--hall-line);
}

.p-top .top-list__wr:has(.top-list__box) .top-list__box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100% !important;
  margin-top: 0;
}

@media screen and (min-width: 1500px) {
  .p-top .top-list__wr:has(.top-list__box) .top-list__box {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.p-top .top-list__wr:has(.top-list__box) .top-list__box-item {
  position: relative;
  float: none !important;
  width: auto !important;
  height: auto;
  min-height: 150px;
  margin: 0 !important;
  padding: 14px 14px 14px 118px;
  border-radius: 8px;
  background: var(--hall-panel-2);
  border: 1px solid var(--hall-line);
  box-shadow: none;
  overflow: hidden;
}

.p-top .top-list__wr:has(.top-list__box) .top-list__box-item .tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}

.p-top .top-list__wr:has(.top-list__box) .top-list__box-item .cover {
  position: absolute;
  left: 14px;
  top: 14px;
  float: none;
  width: 92px;
  height: 122px;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
}

.p-top .top-list__wr:has(.top-list__box) .top-list__box-item .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-top .top-list__wr:has(.top-list__box) .top-list__box-item .comic__title {
  margin-top: 4px;
}

.p-top .top-list__wr:has(.top-list__box) .top-list__box-item .comic__title a {
  color: #fff;
  font-weight: 700;
}

.p-top .top-list__wr:has(.top-list__box) .top-list__box-item .comic-author {
  color: var(--hall-dim);
}

.p-top .top-list__wr:has(.top-list__box) .top-list__box-item .comic-feature,
.p-top .top-list__wr:has(.top-list__box) .top-list__box-item .comic-update,
.p-top .top-list__wr:has(.top-list__box) .top-list__box-item .comic-count {
  color: var(--hall-dim);
}

.p-top .top-list__wr:has(.top-list__box) .top-list__box-item .comic-feature {
  margin-top: 8px;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-top .top-list {
  float: none !important;
  width: auto !important;
  min-width: 0;
  min-height: 520px;
  margin: 0 !important;
  padding: 18px;
}

.p-top .top-list__head {
  height: 38px;
  margin: 0 0 14px;
  line-height: 38px;
}

.p-top .top-list__con {
  width: 100%;
}

.p-top .top-list__item--first {
  position: relative;
  min-height: 145px;
  margin-bottom: 10px;
  padding: 0 8px 10px 104px;
  border-bottom: 1px solid var(--hall-line);
  overflow: hidden;
}

.p-top .top-list__item--first .cover {
  position: absolute;
  left: 0;
  top: 0;
  width: 86px;
  height: 122px;
  overflow: hidden;
  border-radius: 8px;
}

.p-top .top-list__item--first .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-top .top-list__item--first .comic-title,
.p-top .top-list__item--first .comic-author,
.p-top .top-list__item--first .comic-feature,
.p-top .top-list__item--first .comic-update,
.p-top .top-list__item--first .comic-count {
  width: auto !important;
  margin-left: 0 !important;
}

.p-top .top-list__item--first .comic-title {
  height: 24px;
  margin-top: 0;
  line-height: 24px;
  font-size: 16px;
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.p-top .top-list__item--first .comic-feature {
  height: 40px;
  line-height: 20px;
  overflow: hidden;
}

.p-top .top-list__item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 32px;
  padding: 4px 0;
  border-bottom: 1px solid var(--hall-line);
}

.p-top .top-list__item .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(66, 232, 180, .16);
}

.p-top .top-list__item .comic-title {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.p-top .top-list__item .comic-count {
  margin-left: 10px;
  white-space: nowrap;
  color: var(--hall-dim);
}

.p-top .top-head-wr,
.p-top .top-nav,
.p-top .top-list__wr {
  width: auto;
  max-width: none;
  min-width: 0;
  margin-left: 38px;
  margin-right: 38px;
  box-sizing: border-box;
}

.p-top .top-head-wr {
  height: auto;
  background: transparent;
}

.p-top .top-head__bg {
  width: 100%;
  height: 200px;
  border: 1px solid var(--hall-line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
  background:
    radial-gradient(circle at 14% 22%, rgba(66, 232, 180, .24), transparent 44%),
    radial-gradient(circle at 90% 68%, rgba(255, 91, 65, .3), transparent 40%),
    linear-gradient(115deg, var(--hall-panel-2) 0%, #ff5b41 34%, #ff824d 56%, #24161a 100%);
}

.p-top .top-head__sub span {
  color: var(--hall-green);
}

.p-top .top-head__ring--2 {
  border-color: rgba(66, 232, 180, .24);
}

.p-top .top-head__wave::before {
  background: rgba(66, 232, 180, .14);
}

.p-top .top-head__wave::after {
  background: rgba(255, 91, 65, .18);
}

.p-top .top-nav {
  display: flex;
  align-items: center;
  height: auto;
  min-height: 52px;
  margin-top: 24px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--hall-panel);
  overflow: hidden;
}

.p-top .top-nav > ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-top .top-nav__item {
  float: none;
  margin: 0 !important;
  line-height: normal;
  color: var(--hall-dim);
}

.p-top .top-nav__item a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--hall-dim) !important;
  background: transparent !important;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}

.p-top .top-nav__item a .iconfont {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  min-width: 16px;
  height: 16px;
  font-size: 15px;
  line-height: 1;
  color: inherit !important;
}

.p-top .top-nav__item.active,
.p-top .top-nav__item.active .iconfont {
  color: inherit !important;
}

.p-top .top-nav__item.active a,
.p-top .top-nav__item a:hover {
  color: #fff !important;
  background: rgba(66, 232, 180, 0.22) !important;
}

.p-top .top-list__item--first .tag--first {
  top: 8px;
  right: 12px;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--hall-red);
  background-image: none !important;
  border-radius: 50%;
}

.p-top .top-list__item--first .tag--first::after {
  content: "1";
  display: block;
}

.p-top .top-list__head .more {
  color: var(--hall-green) !important;
  font-size: 13px;
}

.in-sec-wr {
  padding: 22px;
  margin-top: 24px;
}

.p-hall-index .in-sec-wr.clearfix:after,
.p-hall-index .recent-wr:after {
  content: "";
  display: block;
  clear: both;
}

.p-hall-index .hall-rank-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body.p-hall-index > .footer-wrapper {
  width: calc(100% - 76px) !important;
  max-width: calc(100vw - 76px);
  min-width: 0;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

@media screen and (min-width: 1256px) {
  body.p-hall-index > .footer-wrapper {
    min-width: 1180px;
  }
}

.p-hall-index .hall-rank-trio .in-rank-box {
  float: none !important;
  width: auto !important;
  min-height: 430px;
  margin-right: 0 !important;
  padding: 18px;
}

.p-hall-index .hall-rank-trio .in-rank-box:nth-child(3n) {
  margin-right: 0 !important;
}

.p-hall-index .hall-rank-trio .in-rank-box .head {
  height: 36px;
  margin-bottom: 12px;
  line-height: 36px;
}

.p-hall-index .rank-list {
  width: 100%;
}

.p-hall-index .rank-item {
  width: 100%;
  min-height: 38px;
  overflow: hidden;
  border-radius: 6px;
  transition: background-color .18s ease;
}

/* 紧凑榜单无详情块时，保持默认行可见 */
.p-hall-index .hall-rank-trio .rank-item.active .item--default {
  display: block;
}

.p-hall-index .hall-rank-trio .rank-item:hover,
.p-hall-index .hall-rank-trio .rank-item.active {
  background: rgba(66, 232, 180, 0.14);
}

.p-hall-index .hall-rank-trio .rank-item .comic-name a,
.p-hall-index .hall-rank-trio .rank-item .count {
  color: var(--hall-text);
}

.p-hall-index .hall-rank-trio .rank-item:hover .comic-name a,
.p-hall-index .hall-rank-trio .rank-item.active .comic-name a {
  color: #fff;
}

.p-hall-index .hall-rank-trio .rank-item .num {
  background: rgba(255, 255, 255, 0.1);
  color: var(--hall-dim);
}

.p-hall-index .recent-wr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.p-hall-index .in-sec-update,
.p-hall-index .in-rank-box--aside {
  float: none !important;
  width: auto !important;
  min-width: 0;
}

.p-hall-index .in-rank-box--aside {
  padding: 18px;
}

.p-hall-index .recent-wr .in-sec-update {
  width: 100% !important;
  max-width: none !important;
}

/* 首页漫画列表板块：网格展示全部作品（不含三列榜单 hall-rank-trio） */
.p-hall-index .in-sec-wr:not(.hall-rank-trio) .in-sec__box {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 6px;
  width: 100% !important;
  height: auto !important;
  min-height: 0;
  overflow: visible !important;
  position: relative;
}

.p-hall-index .in-sec-wr:not(.hall-rank-trio) .in-sec__box .slide-wrapper {
  position: static !important;
  width: 100% !important;
  display: contents;
}

.p-hall-index .in-sec-wr:not(.hall-rank-trio) .in-comic--type-b {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin-right: 0 !important;
}

.p-hall-index .in-sec-wr:not(.hall-rank-trio) .in-comic--type-b .cover {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 4;
}

.p-hall-index .in-sec-wr:not(.hall-rank-trio) .in-comic--type-b .cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-hall-index .in-sec-wr:not(.hall-rank-trio) .in-sec__box .prev,
.p-hall-index .in-sec-wr:not(.hall-rank-trio) .in-sec__box .next {
  display: none !important;
}

@media screen and (max-width: 1239px) {
  .p-hall-index .in-sec-wr:not(.hall-rank-trio) .in-sec__box {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media screen and (min-width: 990px) {
  .p-hall-index .in-sec-wr:not(.hall-rank-trio) .in-sec__box {
    height: auto !important;
  }
}

@media screen and (min-width: 1240px) {
  .p-hall-index .in-sec-wr:not(.hall-rank-trio) .in-sec__box {
    height: auto !important;
  }
}

@media screen and (min-width: 1500px) {
  .p-hall-index .in-sec-wr:not(.hall-rank-trio) .in-sec__box {
    height: auto !important;
  }
}

/* 首页专属：与顶栏同宽居中，避免 100vw + 固定左边距导致整体右偏、右侧被裁切 */
body.p-hall-index {
  overflow-x: clip;
  padding-top: 76px;
}

body.p-hall-index > .hall-shell,
body.p-hall-index > .in-sec-wr,
body.p-hall-index > .in-friends {
  width: calc(100% - 76px) !important;
  max-width: calc(100vw - 76px);
  min-width: 0;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 24px;
  box-sizing: border-box;
}

@media screen and (min-width: 1256px) {
  body.p-hall-index > .hall-shell,
  body.p-hall-index > .in-sec-wr,
  body.p-hall-index > .in-friends {
    min-width: 1180px;
  }
}

body.p-hall-index .in-header__wrap {
  width: calc(100% - 76px) !important;
  max-width: calc(100vw - 76px);
  min-width: 0;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media screen and (min-width: 1256px) {
  body.p-hall-index .in-header__wrap {
    min-width: 1180px;
  }
}

@media screen and (min-width: 990px) {
  body.p-hall-index > .in-sec-wr {
    width: calc(100% - 76px) !important;
    max-width: calc(100vw - 76px);
  }
}

.in-sec__head,
.top-list__head,
.de-gift__title,
.de-comment__title,
.de-chapter__title {
  color: #fff;
  border-bottom-color: var(--hall-line);
}

.in-sec__head span,
.top-list__head span,
.de-chapter__title span,
.de-comment__title {
  font-size: 24px;
  font-weight: 900;
}

.more,
.hl {
  color: var(--hall-green) !important;
}

.comic__title a,
.comic-title a,
.comic-title,
.common-comic-item .comic__title a,
.top-list__item .comic-title a {
  color: #fff;
}

.comic__feature,
.comic-update,
.comic-count,
.comic-author,
.comic-feature,
.top-list__item .comic-count,
.de-info__box .comic-status,
.de-info__box .comic-intro,
.daily__item .feature {
  color: var(--hall-dim);
}

.in-comic--type-b,
.common-comic-item {
  border-radius: 8px;
}

.in-comic--type-b .cover {
  box-shadow: none;
}

.cover__tag,
.cover__score,
.comic__rank {
  border-radius: 6px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
}

.rank-item,
.top-list__item,
.daily__item,
.chapter__item a {
  border-color: var(--hall-line) !important;
}

.rank-item:hover,
.rank-item.active,
.top-list__item:hover,
.chapter__item a:hover {
  background: rgba(255, 255, 255, .08);
}

.p-hall-index .in-rank-box--aside .rank-item:hover,
.p-hall-index .in-rank-box--aside .rank-item.active {
  background: rgba(66, 232, 180, 0.12);
}

.rank-item .num,
.top-list__item .tag,
.chapter__item a:hover {
  color: var(--hall-green);
}

.cate-selector,
.cate-container__title,
.search_head,
.top-nav,
.de-info-wr,
.de-gift,
.guess-u-like,
.de-comment,
.de-rank-box,
.de-daily {
  background: var(--hall-panel);
  color: #fff;
  border-color: var(--hall-line);
}

.cate-title,
.cate-item a,
.cate-container__title,
.search_head,
.top-nav__item a {
  color: var(--hall-dim);
}

.cate-selector .cate-item.active {
  background: var(--hall-red);
  border-radius: 11px;
}

.cate-selector .cate-item.active a,
.cate-selector .cate-item a:hover {
  color: #fff !important;
  background: transparent !important;
}

.top-nav__item.active a,
.top-nav__item a:hover {
  color: #11151d !important;
  background: var(--hall-green) !important;
  border-radius: 8px;
}

#Pagination a,
#Pagination span {
  border-radius: 8px;
  border-color: var(--hall-line);
  background: var(--hall-panel);
  color: var(--hall-dim);
}

#Pagination .current,
#Pagination a:hover {
  background: var(--hall-red);
  color: #fff;
}

.de-info-wr {
  width: calc(100vw - 76px);
  max-width: none;
  min-width: 1180px;
  margin: 24px 38px 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* 详情页通栏：与首页 hall 布局一致，覆盖 common_home 的 990/1200/1500 限宽 */
.p-detail .de-info-wr,
.p-detail .de-container-wr {
  width: calc(100vw - 76px) !important;
  max-width: none !important;
  min-width: 1180px !important;
  margin-left: 38px !important;
  margin-right: 38px !important;
  box-sizing: border-box;
}

.p-detail .de-info-wr > .container--response {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.de-info__overlay {
  background: linear-gradient(90deg, rgba(21, 22, 31, .96), rgba(21, 22, 31, .68));
}

.de-info__box {
  color: #fff;
}

.btn--read,
.btn--collect,
.btn--ticket,
.btn--gold,
.send-gift,
.de-comment__item--submit {
  border-radius: 8px !important;
}

.btn--read,
.send-gift,
.de-comment__item--submit {
  background: var(--hall-green) !important;
  color: #11151d !important;
  font-weight: 900;
}

.btn--collect,
.btn--ticket,
.btn--gold {
  background: rgba(255, 255, 255, .08) !important;
  color: #fff !important;
  border: 1px solid var(--hall-line);
}

.footer-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 30px 0 0;
  margin-left: 0;
  margin-right: 0;
  border-radius: 0;
  background: #101119;
  color: var(--hall-dim);
  box-sizing: border-box;
}

.footer-wrapper .container--response {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  padding-left: 38px;
  padding-right: 38px;
  box-sizing: border-box;
}

.footer-wrapper .footer-top {
  border-bottom-color: var(--hall-line);
}

.footer-wrapper .footer-bottom {
  padding-left: 0;
  padding-right: 0;
}

.footer-wrapper .footer-link {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-wrapper .footer-link li {
  float: none;
}

.in-aside-handle .aside__item {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(41, 45, 62, .98), rgba(24, 27, 39, .98));
  color: #dfe3ef;
  border-color: rgba(255, 255, 255, .12);
  line-height: 1;
}

.in-aside-handle .aside__item i.iconfont {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 18px;
  line-height: 1;
  color: inherit;
}

.in-aside-handle .aside__item:hover {
  background: linear-gradient(145deg, rgba(255, 98, 14, .95), rgba(31, 143, 120, .92));
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
}

.in-aside-handle .aside__item:hover i.iconfont {
  color: #fff;
}

.in-aside-handle .aside-custom-icon {
  color: inherit;
}

.in-aside-handle .aside__item .share-full,
.in-aside-handle .aside__item .feed-full,
.in-aside-handle .aside__item .back-full,
.in-aside-handle .aside__item .aside-pop--label {
  background: linear-gradient(90deg, #ff620e 0%, #ff7d23 68%, #1f8f78 100%);
}

.in-aside-handle .aside__item .aside-pop--follow {
  background: linear-gradient(145deg, #151823 0%, #252939 58%, #12342f 100%);
  border-color: rgba(66, 232, 180, .22);
}

/* 分类页 */
.cate-top-wr {
  float: none !important;
  clear: both;
  width: calc(100% - 76px);
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
  background: transparent;
}

.cate-selector {
  width: 100% !important;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 20px 22px 28px;
  border-top-color: var(--hall-green);
}

.cate-selector .cate-title {
  color: var(--hall-text);
}

.cate-selector .cate-item {
  color: var(--hall-dim);
}

.cate-container {
  float: none !important;
  clear: both;
  width: calc(100% - 76px);
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
  padding: 22px;
  margin-top: 0;
  border-radius: 8px;
  background: var(--hall-panel);
  border: 1px solid var(--hall-line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}

.cate-container .cate-comic-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 30px 20px;
  width: 100% !important;
  margin-top: 30px;
  overflow: visible;
}

.cate-container .common-comic-item {
  float: none;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
}

.cate-container .common-comic-item .cover {
  height: auto !important;
  aspect-ratio: 217 / 300;
}

@media screen and (min-width: 1240px) {
  .cate-container .cate-comic-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media screen and (min-width: 1500px) {
  .cate-container .cate-comic-list {
    column-gap: clamp(28px, 2.35vw, 48px);
  }
}

.cate-container__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  height: auto;
  min-height: 36px;
  margin-bottom: 8px;
  color: var(--hall-dim);
}

.cate-container__title .fr {
  margin-left: auto;
}

.cate-container__title .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  float: none;
  height: 36px;
  margin-right: 0;
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1;
  color: var(--hall-dim) !important;
  background: transparent !important;
  border-bottom: none !important;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}

.cate-container__title .btn .iconfont {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  height: 18px;
  font-size: 16px;
  line-height: 1;
  color: inherit;
}

.cate-container__title .btn span {
  line-height: 1;
}

.cate-container__title .btn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.cate-container__title .btn.active {
  color: #fff !important;
  background: rgba(66, 232, 180, 0.2) !important;
}

.cate-container__title .btn.active .iconfont {
  color: var(--hall-green) !important;
}

.cate-selector .tags-more {
  color: var(--hall-dim);
  transform: translateX(-50%);
}

.cate-selector .tags-more .layui-icon {
  font-size: 18px;
  line-height: 1;
  color: var(--hall-green);
}

.p-read {
  padding-top: 0;
  background: var(--read-bg-gradient, linear-gradient(180deg, #252a3a 0%, #212633 46%, #1c2030 100%)) !important;
  background-color: var(--read-bg-base, #1f2330) !important;
}

.read__header {
  background: rgba(35, 39, 54, .9);
  border-bottom: 1px solid var(--hall-line);
}

.read__crumb,
.read__crumb a,
.page-index__btn {
  color: var(--hall-dim);
}

.rd-aside__item,
.aside__catalog {
  background: var(--hall-panel);
  color: var(--hall-text);
  border-color: var(--hall-line);
}

.rd-article-wr {
  background: transparent !important;
}

/* Header account controls */
.in-header__user .j-header-nav-guest,
.in-header__user .j-header-nav-logged {
  display: none;
  align-items: center;
  gap: 8px;
  float: none !important;
  margin: 0;
  padding: 0;
  list-style: none;
}

.in-header__user .j-header-avatar {
  float: none !important;
}

.in-header__vip-promo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid rgba(255, 168, 58, .55);
  background: linear-gradient(135deg, rgba(255, 122, 45, .22), rgba(255, 202, 58, .14));
  color: #ffc96a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 0 14px rgba(255, 122, 45, .12);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.in-header__vip-promo:hover {
  color: #ffe2a8;
  border-color: rgba(255, 190, 92, .75);
  background: linear-gradient(135deg, rgba(255, 122, 45, .32), rgba(255, 202, 58, .22));
  box-shadow: 0 0 18px rgba(255, 122, 45, .22);
  transform: translateY(-1px);
}

.in-header__vip-promo-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
}

.in-header__vip-promo-text {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.header-user-guest .in-header__user .j-header-nav-guest {
  display: flex;
}

body.header-user-logged .in-header__user .j-header-nav-logged {
  display: flex;
}

body.header-user-guest .j-user-msg,
body.header-user-guest .j-header-his,
body.header-user-guest .j-header-coll,
body.header-user-guest .j-header-submit {
  display: none !important;
}

.j-header-nav-guest .user-item,
.j-header-nav-logged .user-item {
  float: none;
  width: auto;
  height: auto;
  margin: 0;
}

.j-header-nav-guest .user-item > a,
.j-header-nav-logged .user-item > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  min-width: 54px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .055);
  color: var(--hall-dim);
  line-height: 1;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.j-header-nav-guest .user-item > a:hover,
.j-header-nav-logged .user-item > a:hover {
  color: #fff;
  border-color: rgba(66, 232, 180, .36);
  background: rgba(66, 232, 180, .12);
  transform: translateY(-1px);
}

.j-header-nav-logged .iconfont {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  margin: 0;
  color: var(--hall-dim);
  font-size: 21px;
  line-height: 1;
}

.j-header-nav-logged .item-text,
.j-header-nav-guest .item-text {
  display: inline-block;
  padding: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.j-header-nav-guest .item-text--auth {
  line-height: 1 !important;
}

.in-header__user .j-header-nav-guest .item-text--auth {
  line-height: 1 !important;
}

.j-header-nav-guest .user-item--auth-login > a {
  color: #10161d;
  border-color: rgba(66, 232, 180, .55);
  background: linear-gradient(135deg, var(--hall-green), #b9ffe9);
  box-shadow: 0 12px 28px rgba(66, 232, 180, .18);
}

.j-header-nav-guest .user-item--auth-register > a {
  color: #fff;
  border-color: rgba(255, 94, 95, .55);
  background: linear-gradient(135deg, rgba(255, 94, 95, .92), rgba(255, 186, 73, .86));
  box-shadow: 0 12px 28px rgba(255, 94, 95, .16);
}

.j-header-nav-guest .user-item--auth > a::before,
.guest-auth-btn::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: none;
  border-radius: 0;
  background-color: currentColor;
  opacity: .95;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.j-header-nav-guest .user-item--auth-login > a::before,
.guest-auth-btn--login::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.25' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M6.5 5.2 9.3 8 6.5 10.8' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.25' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M6.5 5.2 9.3 8 6.5 10.8' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.j-header-nav-guest .user-item--auth-register > a::before,
.guest-auth-btn--register::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.25' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M8 5.1v5.8M5.1 8h5.8' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.25' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M8 5.1v5.8M5.1 8h5.8' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.j-header-nav-guest .user-item--auth-login > a::after,
.j-header-nav-guest .user-item--auth-register > a::after,
.guest-auth-btn--login::after,
.guest-auth-btn--register::after {
  display: none;
}

.in-header__user .j-header-avatar,
.in-header__avatar {
  position: relative;
  align-self: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  margin: 0;
  margin-top: 0 !important;
  padding: 2px;
  padding-bottom: 0 !important;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hall-green), var(--hall-red));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .05);
}

.in-header__avatar > a,
.in-header__avatar img {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.dialog__header-avatar {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  width: 340px;
  padding-top: 8px;
  margin-top: 0;
  z-index: 80;
}

.dialog__header-avatar .in-dialog--avatar {
  position: relative;
  top: auto;
  right: auto;
  width: 340px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 20%, rgba(66, 232, 180, .18), transparent 28%),
    radial-gradient(circle at 82% 26%, rgba(255, 94, 95, .2), transparent 30%),
    linear-gradient(145deg, rgba(29, 31, 43, .98), rgba(15, 16, 23, .98));
  box-shadow: 0 26px 70px rgba(0, 0, 0, .42);
}

.dialog__header-avatar .triangle {
  position: absolute;
  top: 3px;
  right: 18px;
  color: var(--hall-green);
  line-height: 1;
  transform: rotate(180deg);
}

.dialog__header-avatar .triangle > i {
  color: inherit;
  font-size: 18px;
}

.dialog__header-avatar .j-dialog-tourist {
  padding: 18px 20px 20px;
}

.dialog__header-avatar .guest-tip {
  margin: 0 0 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.dialog__header-avatar .guest-tip::after {
  content: "SIGN IN FOR MORE";
  display: block;
  margin-top: 8px;
  color: var(--hall-dim);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.dialog__header-avatar .guest-auth-btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dialog__header-avatar .guest-auth-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dialog__header-avatar .guest-auth-btn--login {
  color: #10161d;
  background: linear-gradient(135deg, var(--hall-green), #b9ffe9);
  box-shadow: 0 16px 34px rgba(66, 232, 180, .18);
}

.dialog__header-avatar .guest-auth-btn--register {
  color: #fff;
  border: 1px solid rgba(255, 94, 95, .58);
  background: rgba(255, 94, 95, .16);
}

.dialog__header-avatar .guest-auth-btn:hover {
  transform: translateY(-2px);
}


.dialog__header-avatar .j-dialog-user.row-1,
.dialog__header-avatar .row-2 {
  background: transparent;
}

.dialog__header-avatar .j-dialog-user.row-1 {
  position: relative;
  min-height: 104px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.dialog__header-avatar .base-info {
  height: auto;
  margin: 0 0 12px;
  line-height: 1.2;
}

.dialog__header-avatar .nickname {
  max-width: 170px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.dialog__header-avatar .logout {
  color: var(--hall-dim);
}

.dialog__header-avatar .expire {
  margin: 0;
  color: var(--hall-dim);
}

.dialog__header-avatar .buy-vip {
  right: 24px;
  bottom: 18px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--hall-gold), #ffe4a4);
  color: #231707;
  font-weight: 900;
  line-height: 34px;
}

.dialog__header-avatar .row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  height: auto;
}

.dialog__header-avatar .fund-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 94px;
  padding: 0 22px;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.dialog__header-avatar .fund-item:last-child {
  border-right: 0;
}

.dialog__header-avatar .fund-item__info {
  color: var(--hall-dim);
  font-size: 13px;
  line-height: 1.65;
}

.dialog__header-avatar .fund-item__info span {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

/* Final account button tuning */
.in-header__user .j-header-nav-guest {
  gap: 8px !important;
}

.in-header__user .j-header-nav-guest .user-item > a {
  height: 32px !important;
  min-width: 58px !important;
  padding: 0 11px !important;
  gap: 5px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  box-shadow: none !important;
  transform: none;
}

.in-header__user .j-header-nav-guest .item-text--auth {
  font-size: 12px !important;
  line-height: 1 !important;
}

.in-header__user .j-header-nav-guest .user-item--auth > a::before,
.dialog__header-avatar .guest-auth-btn::before {
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 15px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: currentColor !important;
  opacity: .92 !important;
  transform: none !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  -webkit-mask-size: 15px 15px !important;
  mask-size: 15px 15px !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
}

.in-header__user .j-header-nav-guest .user-item--auth > a::after,
.dialog__header-avatar .guest-auth-btn::after {
  content: none !important;
  display: none !important;
}

.in-header__user .j-header-nav-guest .user-item--auth-login > a::before,
.dialog__header-avatar .guest-auth-btn--login::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M8.2 3.2h-3a2 2 0 0 0-2 2v7.6a2 2 0 0 0 2 2h3' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M8.2 6 11.2 9l-3 3M6.2 9h8.2' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M8.2 3.2h-3a2 2 0 0 0-2 2v7.6a2 2 0 0 0 2 2h3' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M8.2 6 11.2 9l-3 3M6.2 9h8.2' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.in-header__user .j-header-nav-guest .user-item--auth-register > a::before,
.dialog__header-avatar .guest-auth-btn--register::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect x='3.2' y='3.2' width='11.6' height='11.6' rx='3' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3Cpath d='M9 5.9v6.2M5.9 9h6.2' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect x='3.2' y='3.2' width='11.6' height='11.6' rx='3' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3Cpath d='M9 5.9v6.2M5.9 9h6.2' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

.dialog__header-avatar {
  width: 320px !important;
}

.dialog__header-avatar .in-dialog--avatar {
  width: 320px !important;
}

.dialog__header-avatar .j-dialog-tourist {
  padding: 16px 18px 18px !important;
}

.dialog__header-avatar .guest-tip {
  margin-bottom: 12px !important;
  font-size: 14px !important;
}

.dialog__header-avatar .guest-auth-btns {
  gap: 10px !important;
}

.dialog__header-avatar .guest-auth-btn {
  height: 34px !important;
  gap: 5px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

/* Ranking interactions aligned with search popup */
.p-hall-index .hall-rank-trio .in-rank-box,
.p-top .top-list {
  position: relative;
  background:
    radial-gradient(circle at 18% 0, rgba(66, 232, 180, .1), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(255, 91, 65, .1), transparent 30%),
    linear-gradient(180deg, rgba(36, 38, 52, .96), rgba(21, 22, 31, .96)) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .26);
}

.p-hall-index .hall-rank-trio .rank-item,
.p-top .top-list__item,
.p-top .top-list__item--first,
.p-top .top-list__box-item {
  position: relative;
  border-radius: 8px;
  transition:
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.p-hall-index .hall-rank-trio .rank-item::before,
.p-top .top-list__item::before,
.p-top .top-list__item--first::before,
.p-top .top-list__box-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 8px 0 0 8px;
  background: var(--hall-green);
  opacity: 0;
  transition: opacity .18s ease;
}

.p-hall-index .hall-rank-trio .rank-item:hover,
.p-hall-index .hall-rank-trio .rank-item.active,
.p-top .top-list__item:hover,
.p-top .top-list__item.active,
.p-top .top-list__item--first:hover,
.p-top .top-list__box-item:hover {
  border-color: rgba(255, 255, 255, .1) !important;
  background: rgba(255, 255, 255, .055) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 22px rgba(0, 0, 0, .18);
  transform: translateY(-1px);
}

.p-hall-index .hall-rank-trio .rank-item:hover::before,
.p-hall-index .hall-rank-trio .rank-item.active::before,
.p-top .top-list__item:hover::before,
.p-top .top-list__item.active::before,
.p-top .top-list__item--first:hover::before,
.p-top .top-list__box-item:hover::before {
  opacity: 1;
}

.p-hall-index .hall-rank-trio .rank-item:hover .comic-name a,
.p-hall-index .hall-rank-trio .rank-item.active .comic-name a,
.p-top .top-list__item:hover .comic-title a,
.p-top .top-list__item.active .comic-title a,
.p-top .top-list__item--first:hover .comic-title a,
.p-top .top-list__box-item:hover .comic__title a {
  color: #fff !important;
}

.p-hall-index .hall-rank-trio .rank-item:hover .num,
.p-hall-index .hall-rank-trio .rank-item.active .num,
.p-top .top-list__item:hover .tag,
.p-top .top-list__item.active .tag,
.p-top .top-list__box-item:hover .tag {
  color: #10161d !important;
  background: var(--hall-green) !important;
}

.p-top .top-list__item .top-list__item-detail {
  display: none !important;
}

.p-top .top-list__item:hover {
  display: block;
  min-height: 145px;
  padding: 10px 58px 12px 104px;
  overflow: hidden;
}

.p-top .top-list__item:hover > .tag {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 50%;
  color: #fff !important;
  background: var(--hall-red) !important;
  font-size: 18px;
  font-weight: 900;
  line-height: 42px;
  text-align: center;
}

.p-top .top-list__item:hover > .comic-title,
.p-top .top-list__item:hover > .comic-count {
  display: none;
}

.p-top .top-list__item:hover .top-list__item-detail,
.p-top .top-list__item.active .top-list__item-detail {
  display: block !important;
  width: auto !important;
  min-height: 122px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.p-top .top-list__item-detail .cover {
  position: absolute;
  left: 0;
  top: 10px;
  width: 86px !important;
  height: 122px !important;
  margin: 0 !important;
  border-radius: 8px;
  overflow: hidden;
}

.p-top .top-list__item-detail .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.p-top .top-list__item:hover .top-list__item-detail .cover img {
  transform: scale(1.04);
}

.p-top .top-list__item-detail .comic-title,
.p-top .top-list__item-detail .comic-author,
.p-top .top-list__item-detail .comic-feature,
.p-top .top-list__item-detail .comic-update,
.p-top .top-list__item-detail .comic-count {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: hidden;
  line-height: 1.45 !important;
}

.p-top .top-list__item-detail .comic-title {
  height: 24px !important;
  margin-bottom: 8px !important;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.p-top .top-list__item-detail .comic-author {
  margin-bottom: 16px !important;
  color: var(--hall-dim);
}

.p-top .top-list__item-detail .comic-feature {
  max-height: 42px;
  margin-bottom: 14px !important;
  color: var(--hall-dim);
}

.p-top .top-list__item-detail .comic-count {
  color: var(--hall-dim);
}

.p-top .top-list__item-detail .comic-update {
  display: block;
  margin-bottom: 4px !important;
  color: var(--hall-dim);
}

.p-top .top-list__item--first {
  padding-top: 10px !important;
  padding-right: 12px !important;
  padding-left: 114px !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  background: rgba(255, 255, 255, .035);
}

.p-top .top-list__item--first .cover img,
.p-top .top-list__box-item .cover img {
  transition: transform .28s ease;
}

.p-top .top-list__item--first:hover .cover img,
.p-top .top-list__box-item:hover .cover img {
  transform: scale(1.04);
}

.p-top .top-list:has(.top-list__item:hover) .top-list__item--first {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 4px 0 !important;
  border-width: 0 0 1px !important;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.p-top .top-list:has(.top-list__item:hover) .top-list__item--first::before {
  opacity: 0;
}

.p-top .top-list:has(.top-list__item:hover) .top-list__item--first .cover,
.p-top .top-list:has(.top-list__item:hover) .top-list__item--first .comic-author,
.p-top .top-list:has(.top-list__item:hover) .top-list__item--first .comic-feature,
.p-top .top-list:has(.top-list__item:hover) .top-list__item--first .comic-update {
  display: none;
}

.p-top .top-list:has(.top-list__item:hover) .top-list__item--first .comic-title,
.p-top .top-list:has(.top-list__item:hover) .top-list__item--first .comic-count {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  line-height: 36px !important;
  white-space: nowrap;
}

.p-top .top-list:has(.top-list__item:hover) .top-list__item--first .comic-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 800;
}

.p-top .top-list:has(.top-list__item:hover) .top-list__item--first .comic-count {
  color: var(--hall-dim);
}

.p-top .top-list:has(.top-list__item:hover) .top-list__item--first .tag--first {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 8px 0 0;
  border-radius: 50%;
  background: rgba(255, 91, 65, .9);
}

.p-top .top-list:has(.top-list__item:hover) .top-list__item--first .tag--first::after {
  content: "1";
  position: static;
  width: auto;
  height: auto;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

/* Stable rank-card swap state */
.p-top .top-list.is-rank-hover .top-list__item--first {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  align-items: center !important;
  height: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-width: 0 0 1px !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  overflow: hidden !important;
}

.p-top .top-list.is-rank-hover .top-list__item--first .cover,
.p-top .top-list.is-rank-hover .top-list__item--first .comic-author,
.p-top .top-list.is-rank-hover .top-list__item--first .comic-feature,
.p-top .top-list.is-rank-hover .top-list__item--first .comic-update {
  display: none !important;
}

.p-top .top-list.is-rank-hover .top-list__item--first .tag--first {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  margin: 0 8px 0 0 !important;
  border-radius: 50% !important;
  background: rgba(66, 232, 180, .18) !important;
}

.p-top .top-list.is-rank-hover .top-list__item--first .tag--first::after {
  content: "1" !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  color: var(--hall-green) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.p-top .top-list.is-rank-hover .top-list__item--first .comic-title,
.p-top .top-list.is-rank-hover .top-list__item--first .comic-count {
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 48px !important;
  white-space: nowrap !important;
}

.p-top .top-list.is-rank-hover .top-list__item--first .comic-title {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #fff !important;
}

.p-top .top-list.is-rank-hover .top-list__item--first .comic-count {
  color: var(--hall-dim) !important;
}

.p-top .top-list__item.active {
  display: block !important;
  height: 180px !important;
  min-height: 180px !important;
  padding: 14px 58px 14px 112px !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .055) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 22px rgba(0, 0, 0, .18) !important;
  overflow: hidden !important;
}

.p-top .top-list__item.active > .tag {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: var(--hall-red) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.p-top .top-list__item.active > .comic-title,
.p-top .top-list__item.active > .comic-count {
  display: none !important;
}

.p-top .top-list__item.active .top-list__item-detail {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  min-height: 152px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  z-index: auto !important;
}

.p-top .top-list__item.active .top-list__item-detail .cover {
  position: absolute !important;
  left: 14px !important;
  top: 14px !important;
  float: none !important;
  width: 82px !important;
  height: 112px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.p-top .top-list__item.active .top-list__item-detail .comic-title,
.p-top .top-list__item.active .top-list__item-detail .comic-author,
.p-top .top-list__item.active .top-list__item-detail .comic-feature,
.p-top .top-list__item.active .top-list__item-detail .comic-update,
.p-top .top-list__item.active .top-list__item-detail .comic-count {
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  line-height: 1.5 !important;
}

.p-top .top-list__item.active .top-list__item-detail .comic-title {
  margin-top: 2px !important;
  margin-bottom: 10px !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

.p-top .top-list__item.active .top-list__item-detail .comic-author {
  margin-bottom: 22px !important;
}

.p-top .top-list__item.active .top-list__item-detail .comic-feature {
  margin-bottom: 16px !important;
}

.p-top .top-list.is-rank-hover .top-list__item--first .tag--first,
.p-top .top-list.is-rank-hover .top-list__item--first .tag--first::after {
  transform: none !important;
  box-shadow: none !important;
}

/* Force first rank to become an ordinary row while another row is focused */
.p-top .top-list.is-rank-hover .top-list__item--first {
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) auto !important;
  grid-template-areas: "rank title count" !important;
  align-items: center !important;
  column-gap: 8px !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hall-line) !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  overflow: hidden !important;
}

.p-top .top-list.is-rank-hover .top-list__item--first::before {
  opacity: 0 !important;
}

.p-top .top-list.is-rank-hover .top-list__item--first .cover,
.p-top .top-list.is-rank-hover .top-list__item--first .comic-author,
.p-top .top-list.is-rank-hover .top-list__item--first .comic-feature,
.p-top .top-list.is-rank-hover .top-list__item--first .comic-update {
  display: none !important;
}

.p-top .top-list.is-rank-hover .top-list__item--first .tag--first {
  grid-area: rank !important;
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(66, 232, 180, .18) !important;
  background-image: none !important;
  color: var(--hall-green) !important;
}

.p-top .top-list.is-rank-hover .top-list__item--first .tag--first::before,
.p-top .top-list.is-rank-hover .top-list__item--first .tag--first::after {
  content: "1" !important;
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--hall-green) !important;
  background: none !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.p-top .top-list.is-rank-hover .top-list__item--first .tag--first::before {
  content: none !important;
  display: none !important;
}

.p-top .top-list.is-rank-hover .top-list__item--first .comic-title {
  grid-area: title !important;
  float: none !important;
  min-width: 0 !important;
  width: auto !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 48px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.p-top .top-list.is-rank-hover .top-list__item--first .comic-title a {
  color: inherit !important;
}

.p-top .top-list.is-rank-hover .top-list__item--first .comic-count {
  grid-area: count !important;
  float: none !important;
  width: auto !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--hall-dim) !important;
  font-size: 13px !important;
  line-height: 48px !important;
  white-space: nowrap !important;
}

/* Let users move back onto rank #1 manually */
.p-top .top-list .top-list__item--first:hover {
  display: block !important;
  height: 180px !important;
  min-height: 180px !important;
  max-height: none !important;
  padding: 10px 58px 12px 114px !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .055) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 22px rgba(0, 0, 0, .18) !important;
  overflow: hidden !important;
}

.p-top .top-list .top-list__item--first:hover .cover {
  position: absolute !important;
  left: 14px !important;
  top: 14px !important;
  display: block !important;
  width: 82px !important;
  height: 112px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.p-top .top-list .top-list__item--first:hover .comic-author,
.p-top .top-list .top-list__item--first:hover .comic-feature,
.p-top .top-list .top-list__item--first:hover .comic-update {
  display: block !important;
}

.p-top .top-list .top-list__item--first:hover .tag--first {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: var(--hall-red) !important;
}

.p-top .top-list .top-list__item--first:hover .tag--first::after {
  content: "1" !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.p-top .top-list .top-list__item--first:hover .comic-title,
.p-top .top-list .top-list__item--first:hover .comic-author,
.p-top .top-list .top-list__item--first:hover .comic-feature,
.p-top .top-list .top-list__item--first:hover .comic-update,
.p-top .top-list .top-list__item--first:hover .comic-count {
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow: hidden !important;
  line-height: 1.5 !important;
}

.p-top .top-list .top-list__item--first:hover .comic-title {
  margin-top: 2px !important;
  margin-bottom: 10px !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

/* Logged-in avatar popup — vertical user card */
body.header-user-logged .dialog__header-avatar {
  width: 260px !important;
}

body.header-user-logged .dialog__header-avatar .in-dialog--avatar {
  width: 260px !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

.header-pop-user {
  color: #fff;
}

.header-pop-user--vertical .header-pop-user__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.header-pop-user--vertical .header-pop-user__avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hall-green), var(--hall-red));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .06);
}

.header-pop-user__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-pop-user--vertical .header-pop-user__name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}

body.header-user-logged .dialog__header-avatar .header-pop-user .nickname {
  display: block;
  max-width: 180px;
  overflow: hidden;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  text-decoration: none;
}

body.header-user-logged .dialog__header-avatar .header-pop-user .vip-tag {
  flex: 0 0 auto;
  margin: 0 !important;
}

.header-pop-user--vertical .header-pop-user__vip {
  margin: 8px 0 0 !important;
  color: var(--hall-dim) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.header-pop-user--vertical .header-pop-user__wallet {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .018);
}

.header-pop-user__balance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.header-pop-user__coin {
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-pop-user__coin .icon-user-yb {
  width: 32px;
  height: 32px;
}

.header-pop-user__balance-text {
  min-width: 0;
  text-align: left;
}

.header-pop-user__balance-label {
  display: block;
  color: var(--hall-dim);
  font-size: 12px;
  line-height: 1.3;
}

.header-pop-user__balance-text .j-user-gold {
  display: block;
  margin-top: 2px;
  color: #fff !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.header-user-logged .dialog__header-avatar .header-pop-user--vertical .buy-vip {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 36px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(255, 122, 45, .75) !important;
  border-radius: 999px !important;
  background: rgba(255, 122, 45, .08) !important;
  color: #ff7a2d !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 36px !important;
  box-shadow: none !important;
}

body.header-user-logged .dialog__header-avatar .header-pop-user--vertical .buy-vip:hover {
  background: rgba(255, 122, 45, .16) !important;
  color: #ff944f !important;
}

.header-pop-user__menu {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

.header-pop-user__menu-item > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: background-color .18s ease, color .18s ease;
}

.header-pop-user__menu-item > a:hover {
  background: rgba(255, 255, 255, .045);
  color: #fff;
}

.header-pop-user__menu-item .iconfont {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--hall-dim);
  font-size: 20px;
  line-height: 1;
  transition: color .18s ease;
}

.header-pop-user__menu-item > a:hover .iconfont {
  color: var(--hall-green);
}

.header-pop-user__menu-item > a span {
  flex: 1;
  min-width: 0;
}

.header-pop-user__badge {
  position: absolute;
  top: 50%;
  right: 18px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-top: -9px;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  background: #f44;
  border-radius: 9px;
}

.header-pop-user--vertical {
  display: flex;
  flex-direction: column;
}

.header-pop-user__logout-wrap {
  display: flex;
  flex-shrink: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

body.header-user-logged .dialog__header-avatar .header-pop-user__logout-wrap .logout {
  float: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 36px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .04) !important;
  color: rgba(255, 255, 255, .72) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

body.header-user-logged .dialog__header-avatar .header-pop-user__logout-wrap .logout:hover {
  border-color: rgba(255, 94, 95, .45) !important;
  background: rgba(255, 94, 95, .1) !important;
  color: #ffb4b4 !important;
}

/* Header history and collection popups */
.in-header__user .in-dialog--his,
.in-header__user .in-dialog--coll {
  position: absolute !important;
  top: calc(100% + 14px) !important;
  left: auto !important;
  right: 0 !important;
  width: 340px !important;
  max-width: 340px !important;
  padding: 0 !important;
  text-align: left !important;
  text-indent: 0 !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 8px !important;
  background:
    radial-gradient(circle at 18% 20%, rgba(66, 232, 180, .18), transparent 28%),
    radial-gradient(circle at 82% 26%, rgba(255, 94, 95, .2), transparent 30%),
    linear-gradient(145deg, rgba(29, 31, 43, .98), rgba(15, 16, 23, .98)) !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .42) !important;
  overflow: visible !important;
  z-index: 90 !important;
}

.in-header__user .in-dialog--his::before,
.in-header__user .in-dialog--coll::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
  background: transparent;
}

.in-header__user .in-dialog--his > .in-dialog__user-list,
.in-header__user .in-dialog--coll > .in-dialog__user-list,
.in-header__user .in-dialog--his > .in-dialog__empty,
.in-header__user .in-dialog--coll > .in-dialog__empty {
  overflow: hidden;
}

.in-header__user .in-dialog--his .triangle,
.in-header__user .in-dialog--coll .triangle {
  position: absolute !important;
  top: -12px !important;
  right: 22px !important;
  left: auto !important;
  width: 36px !important;
  height: 14px !important;
  color: var(--hall-green) !important;
  line-height: 14px !important;
  transform: rotate(180deg) !important;
}

.in-header__user .in-dialog--his .triangle > i,
.in-header__user .in-dialog--coll .triangle > i {
  color: inherit !important;
  font-size: 18px !important;
}

.in-header__user .in-dialog__title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 52px !important;
  box-sizing: border-box !important;
  border-radius: 8px 8px 0 0 !important;
}

.in-header__user .in-dialog__title .more {
  float: none !important;
  margin: 0 !important;
  color: var(--hall-green) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.in-header__user .in-dialog__title .more:hover {
  text-decoration: none !important;
  color: #b9ffe9 !important;
}

.in-header__user .in-dialog__offline {
  margin: 0 !important;
  padding: 10px 18px !important;
  color: var(--hall-dim) !important;
  font-size: 12px !important;
  line-height: 20px !important;
  background: rgba(255, 255, 255, .035) !important;
}

.in-header__user .in-dialog--his .hl,
.in-header__user .in-dialog--coll .hl {
  color: var(--hall-green) !important;
}

.in-header__user .in-dialog--his .hl:hover,
.in-header__user .in-dialog--coll .hl:hover {
  text-decoration: none !important;
  color: #b9ffe9 !important;
}

.in-header__user .in-dialog__user-list {
  width: 100% !important;
  max-height: 390px !important;
  padding: 10px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

.in-header__user .in-dialog__user-list::-webkit-scrollbar {
  width: 6px;
}

.in-header__user .in-dialog__user-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
}

.in-header__user .in-dialog__user-list .list-item {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  grid-template-areas:
    "cover title"
    "cover readat"
    "cover update"
    "cover action" !important;
  column-gap: 12px !important;
  row-gap: 4px !important;
  min-height: 92px !important;
  padding: 10px !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .045) !important;
  box-sizing: border-box !important;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

.in-header__user .in-dialog__user-list .list-item + .list-item {
  margin-top: 8px !important;
}

.in-header__user .in-dialog__user-list .list-item:hover {
  border-color: rgba(66, 232, 180, .32) !important;
  background: rgba(66, 232, 180, .08) !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .2) !important;
  transform: translateY(-1px) !important;
}

.in-header__user .in-dialog__user-list .cover {
  grid-area: cover !important;
  float: none !important;
  display: block !important;
  width: 64px !important;
  height: 86px !important;
  margin: 0 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}

.in-header__user .in-dialog__user-list .cover > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.in-header__user .in-dialog__user-list .comic-title {
  grid-area: title !important;
  width: auto !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 20px !important;
}

.in-header__user .in-dialog__user-list .comic-title a {
  color: inherit !important;
}

.in-header__user .in-dialog__user-list .read-at,
.in-header__user .in-dialog__user-list .update {
  width: auto !important;
  margin: 0 !important;
  color: var(--hall-dim) !important;
  font-size: 12px !important;
  line-height: 18px !important;
}

.in-header__user .in-dialog__user-list .read-at {
  grid-area: readat !important;
}

.in-header__user .in-dialog__user-list .update {
  grid-area: update !important;
}

.in-header__user .in-dialog__user-list .read {
  grid-area: action !important;
  position: static !important;
  justify-self: start !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 24px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  color: #10161d !important;
  background: var(--hall-green) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 24px !important;
}

.in-header__user .in-dialog__user-list .read:hover {
  text-decoration: none !important;
  background: #b9ffe9 !important;
}

.in-header__user .in-dialog__empty {
  width: auto !important;
  height: auto !important;
  min-height: 120px !important;
  margin: 10px !important;
  padding: 38px 18px !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 8px !important;
  color: var(--hall-dim) !important;
  font-size: 14px !important;
  line-height: 22px !important;
  text-align: center !important;
  background: rgba(255, 255, 255, .045) !important;
  box-sizing: border-box !important;
}

/* Detail page: remove white panel, keep original layout */
.p-detail .de-info-wr {
  padding-bottom: 0 !important;
  background:
    radial-gradient(circle at 14% 18%, rgba(66, 232, 180, .1), transparent 30%),
    radial-gradient(circle at 84% 14%, rgba(255, 94, 95, .1), transparent 28%),
    rgba(15, 16, 23, .72) !important;
}

.p-detail .de-info__bg {
  background-size: cover !important;
  background-position: center !important;
  filter: blur(8px) saturate(.9) brightness(.5) !important;
  transform: scale(1.04);
  opacity: .78;
}

.p-detail .de-info__overlay {
  background:
    linear-gradient(90deg, rgba(15, 16, 23, .86), rgba(15, 16, 23, .58) 55%, rgba(15, 16, 23, .82)),
    linear-gradient(180deg, rgba(15, 16, 23, .2), rgba(15, 16, 23, .88)) !important;
}

.p-detail .de-info__overlay .overlay-bottom {
  display: none !important;
}

.p-detail .de-info__box {
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
}

.p-detail .de-info__box::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(21, 22, 31, .5), rgba(21, 22, 31, .2));
  pointer-events: none;
  z-index: -1;
}

.p-detail .de-info__cover {
  top: -55px !important;
  border-color: rgba(255, 255, 255, .72) !important;
  background: rgba(255, 255, 255, .08) !important;
}

.p-detail .de-info__box .comic-title,
.p-detail .de-info__box .comic-intro .intro,
.p-detail .de-info__box .comic-status b {
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .42);
}

.p-detail .de-info__box .comic-author,
.p-detail .de-info__box .comic-status .text,
.p-detail .de-info__box .comic-intro,
.p-detail .de-info__box .comic-intro .title,
.p-detail .de-rate-wr .rate-count {
  color: rgba(238, 241, 247, .78) !important;
}

.p-detail .de-info__box .comic-author a,
.p-detail .de-info__box .comic-author .name,
.p-detail .de-info__box .comic-intro .show,
.p-detail .de-info__box .comic-intro .show .iconfont,
.p-detail .de-info__box .comic-intro .title {
  color: var(--hall-green) !important;
}

.p-detail .de-info__box .comic-author a {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}

.p-detail .de-info__box .comic-intro .show {
  background: transparent !important;
}

.p-detail .de-info__box {
  /* 封面 top:-55 + 高420 + 边框20；额外留白避免封面/按钮贴底 */
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  min-height: 430px !important;
  padding-bottom: 40px !important;
}

.p-detail .de-info__box .comic-status {
  margin-top: 16px !important;
}

.p-detail .de-info__box .comic-intro {
  position: relative;
  margin-top: 14px !important;
  margin-bottom: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding-right: 88px;
}

.p-detail .de-info__box .comic-intro .title {
  float: left;
  margin-right: 5px;
  padding-bottom: 0 !important;
}

.p-detail .de-info__box .comic-intro .intro-body {
  overflow: hidden;
}

.p-detail .de-info__box .comic-intro .intro,
.p-detail .de-info__box .comic-intro .intro-total {
  margin: 0;
  height: auto !important;
  text-indent: 0;
  color: #fff !important;
  line-height: 22px;
}

.p-detail .de-info__box .comic-intro:not(.is-expanded) .intro {
  max-height: 44px;
  overflow: hidden;
}

.p-detail .de-info__box .comic-intro .intro-total {
  display: none;
  position: static !important;
  top: auto !important;
  right: auto !important;
  width: auto !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  z-index: auto !important;
}

.p-detail .de-info__box .comic-intro.is-expanded .intro {
  display: none;
}

.p-detail .de-info__box .comic-intro.is-expanded .intro-total {
  display: block;
}

.p-detail .de-info__box .comic-intro .show {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: auto !important;
  min-width: 72px;
  height: 22px !important;
  padding: 0 4px;
  line-height: 22px !important;
  background: transparent !important;
  cursor: pointer;
}

.p-detail .de-rate-wr {
  right: 30px !important;
}

.p-detail .de-user-handle {
  position: absolute !important;
  top: auto !important;
  bottom: 40px !important;
  right: 30px !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  z-index: 2 !important;
}

.p-detail .de-user-handle .btn--ticket,
.p-detail .de-user-handle .btn--gold {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 8px 14px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 20px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  background: rgba(255, 255, 255, .08) !important;
  color: rgba(238, 241, 247, .92) !important;
  transition: border-color .2s ease, background .2s ease, color .2s ease !important;
}

.p-detail .de-user-handle .btn--ticket:hover,
.p-detail .de-user-handle .btn--gold:hover {
  border-color: rgba(66, 232, 180, .42) !important;
  background: rgba(66, 232, 180, .1) !important;
  color: #fff !important;
}

.p-detail .de-user-handle .btn--ticket::before,
.p-detail .de-user-handle .btn--gold::before {
  display: none !important;
}

.p-detail .de-user-handle .icon-de-ticket,
.p-detail .de-user-handle .icon-de-gold {
  display: inline-block !important;
  flex: 0 0 20px;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 20px 20px !important;
  vertical-align: middle;
}

.p-detail .de-user-handle .icon-de-ticket {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2342E8B4' d='M22 10c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v1h20v-1zm0 3H2v5c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-5zm-2.5 3.5c.8 0 1.5-.7 1.5-1.5s-.7-1.5-1.5-1.5-1.5.7-1.5 1.5.7 1.5 1.5 1.5zm-13 0c.8 0 1.5-.7 1.5-1.5S7.3 13 6.5 13 5 13.7 5 14.5 7.2 17 8 17z'/%3E%3C/svg%3E") !important;
}

.p-detail .de-user-handle .icon-de-gold {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2342E8B4' d='M20 12v8H4v-8h16zm0-2H4V7c0-1.1.9-2 2-2h1.17c.41-1.17 1.52-2 2.83-2 1.08 0 2.02.63 2.42 1.55L12 6l1.58-1.45C14.98 3.63 15.92 3 17 3c1.31 0 2.42.83 2.83 2H20c1.1 0 2 .9 2 2v3zm-9-4c0-1.1.9-2 2-2s2 .9 2 2h-4zm-4 0c0-1.1.9-2 2-2 .73 0 1.37.4 1.72 1H10V6z'/%3E%3C/svg%3E") !important;
}

.p-detail .de-info__box .btn--collect {
  background: rgba(255, 255, 255, .1) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
}

.p-detail .de-info__box .comic-handles {
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  margin-top: 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.p-detail .de-info__box .btn--read,
.p-detail .de-info__box .btn--collect {
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  height: 48px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 48px !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease !important;
}

.p-detail .de-info__box .btn--read {
  width: 186px !important;
  border: 1px solid rgba(66, 232, 180, .55) !important;
  background:
    linear-gradient(135deg, rgba(66, 232, 180, 1), rgba(127, 240, 210, 1)) !important;
  color: #10161d !important;
  box-shadow: 0 18px 34px rgba(66, 232, 180, .22) !important;
}

.p-detail .de-info__box .btn--collect {
  width: 142px !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  background: rgba(255, 255, 255, .08) !important;
  color: rgba(238, 241, 247, .9) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .18) !important;
}

.p-detail .de-info__box .btn--read:hover,
.p-detail .de-info__box .btn--collect:hover {
  transform: translateY(-2px) !important;
}

.p-detail .de-info__box .btn--read:hover {
  box-shadow: 0 22px 42px rgba(66, 232, 180, .3) !important;
}

.p-detail .de-info__box .btn--collect:hover {
  border-color: rgba(66, 232, 180, .42) !important;
  background: rgba(66, 232, 180, .1) !important;
  color: #fff !important;
}

.p-detail .de-info__box .btn--read .icon-de-read,
.p-detail .de-info__box .btn--collect .icon-de-coll_hl,
.p-detail .de-info__box .btn--collect .icon-de-coll {
  display: none !important;
}

.p-detail .de-info__box .btn--read::before,
.p-detail .de-info__box .btn--collect::before {
  content: "";
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.p-detail .de-info__box .btn--read::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.2 3.1c0-.7.6-1.2 1.3-1.1 1.7.2 3.5.8 5.5 1.9 2-1.1 3.8-1.7 5.5-1.9.7-.1 1.3.4 1.3 1.1v11.6c0 .6-.4 1.1-1 1.2-1.7.3-3.4.9-5.1 2-.4.2-.9.2-1.3 0-1.7-1.1-3.4-1.7-5.1-2-.6-.1-1-.6-1-1.2V3.1Zm6 2.4C7.8 4.8 6.5 4.4 5.3 4.2v9.6c1.3.3 2.6.7 3.9 1.4V5.5Zm1.6 9.7c1.3-.7 2.6-1.1 3.9-1.4V4.2c-1.2.2-2.5.6-3.9 1.3v9.7Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.2 3.1c0-.7.6-1.2 1.3-1.1 1.7.2 3.5.8 5.5 1.9 2-1.1 3.8-1.7 5.5-1.9.7-.1 1.3.4 1.3 1.1v11.6c0 .6-.4 1.1-1 1.2-1.7.3-3.4.9-5.1 2-.4.2-.9.2-1.3 0-1.7-1.1-3.4-1.7-5.1-2-.6-.1-1-.6-1-1.2V3.1Zm6 2.4C7.8 4.8 6.5 4.4 5.3 4.2v9.6c1.3.3 2.6.7 3.9 1.4V5.5Zm1.6 9.7c1.3-.7 2.6-1.1 3.9-1.4V4.2c-1.2.2-2.5.6-3.9 1.3v9.7Z'/%3E%3C/svg%3E");
}

.p-detail .de-info__box .btn--collect::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M10 2.2 12.4 7l5.3.8-3.8 3.7.9 5.3-4.8-2.5-4.8 2.5.9-5.3L2.3 7.8 7.6 7 10 2.2Zm0 3.6L8.7 8.4l-2.9.4 2.1 2-.5 2.9 2.6-1.4 2.6 1.4-.5-2.9 2.1-2-2.9-.4L10 5.8Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M10 2.2 12.4 7l5.3.8-3.8 3.7.9 5.3-4.8-2.5-4.8 2.5.9-5.3L2.3 7.8 7.6 7 10 2.2Zm0 3.6L8.7 8.4l-2.9.4 2.1 2-.5 2.9 2.6-1.4 2.6 1.4-.5-2.9 2.1-2-2.9-.4L10 5.8Z'/%3E%3C/svg%3E");
}

.p-detail .de-info__box .btn--collect .txt1,
.p-detail .de-info__box .btn--collect .txt2 {
  display: none !important;
}

.p-detail .de-info__box .btn--collect .txt1 {
  display: inline !important;
}

.p-detail .de-info__box .btn--collect.collected {
  border-color: rgba(66, 232, 180, .45) !important;
  background: rgba(66, 232, 180, .13) !important;
  color: var(--hall-green) !important;
}

.p-detail .de-info__box .btn--collect.collected::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 2.2 12.4 7l5.3.8-3.8 3.7.9 5.3-4.8-2.5-4.8 2.5.9-5.3L2.3 7.8 7.6 7 10 2.2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 2.2 12.4 7l5.3.8-3.8 3.7.9 5.3-4.8-2.5-4.8 2.5.9-5.3L2.3 7.8 7.6 7 10 2.2Z'/%3E%3C/svg%3E");
}

.p-detail .de-info__box .btn--collect.collected .txt1 {
  display: none !important;
}

.p-detail .de-info__box .btn--collect.collected .txt2 {
  display: inline !important;
}

.p-detail .de-container-wr {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  margin-top: 24px !important;
}

.p-detail .de-container {
  float: none !important;
  flex: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

.p-detail .de-rank-wr {
  float: none !important;
  flex: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

.p-detail .de-chapter,
.p-detail .de-gift,
.p-detail .guess-u-like,
.p-detail .de-comment,
.p-detail .de-rank-box,
.p-detail .de-daily {
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: 8px !important;
  background: rgba(31, 33, 47, .88) !important;
  box-sizing: border-box !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
}

.p-detail .de-chapter,
.p-detail .de-gift,
.p-detail .guess-u-like,
.p-detail .de-comment {
  margin-top: 0 !important;
  margin-bottom: 28px !important;
  padding: 28px !important;
}

.p-detail .de-rank-box,
.p-detail .de-daily {
  margin-top: 0 !important;
  margin-bottom: 22px !important;
  padding: 18px !important;
  overflow: hidden;
}

.p-detail .de-chapter__title,
.p-detail .de-gift__title,
.p-detail .guess__title,
.p-detail .de-comment__title,
.p-detail .de-rank-wr .head {
  margin-bottom: 22px !important;
  padding: 0 !important;
}

.p-detail .de-rank-wr .head {
  width: auto !important;
}

.p-detail .de-detail-slide {
  width: 100% !important;
  margin: 30px 0 !important;
  padding: 0 !important;
  clear: both;
}

.p-detail .de-detail-slide .layui-carousel {
  width: 100% !important;
  height: 160px !important;
  background: rgba(31, 33, 47, .88) !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
}

.p-detail .de-detail-slide .layui-carousel > [carousel-item] {
  height: 160px !important;
}

.p-detail .de-detail-slide .layui-carousel > [carousel-item] > .slide-item {
  width: 100%;
  height: 160px;
}

.p-detail .de-detail-slide .slide-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.p-detail .de-detail-slide .slide-item img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center center;
}

.p-detail .de-detail-slide .layui-carousel-ind {
  top: auto !important;
  bottom: 10px;
  z-index: 10;
}

.p-detail .de-detail-slide .layui-carousel-arrow {
  z-index: 10;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45) !important;
  color: #fff !important;
}

.p-detail .de-rank-wr .item--detail .cover img {
  display: block;
  width: 75px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--hall-panel-2);
}

.p-detail .de-rank-wr .daily__item .cover img {
  display: block;
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--hall-panel-2);
}

.p-detail .de-rank-wr .rank-item.active .item--detail {
  display: block !important;
}

.p-detail .de-comment__textarea-wrap {
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  box-shadow: none !important;
}

.p-detail .de-comment__item--textarea {
  color: #1a1d26 !important;
  caret-color: #1a1d26 !important;
}

.p-detail .de-comment__item--textarea.has-placeholder {
  color: rgba(26, 29, 38, .45) !important;
}

.p-detail .de-comment__item--nickname {
  color: rgba(238, 241, 247, .82) !important;
}

.p-detail .de-comment__item--emoji {
  color: rgba(238, 241, 247, .78) !important;
}

.p-detail .de-comment__item--content,
.p-detail .de-comment__item--reply-content,
.p-detail .mccms_comment_list,
.p-detail .mccms_comment_list .comment-text {
  color: rgba(238, 241, 247, .9) !important;
}

.p-detail .de-comment__item--date,
.p-detail .mccms_comment_list .comment-time {
  color: rgba(238, 241, 247, .55) !important;
}

.p-detail .de-comment__item--textarea img,
.p-detail .de-comment__item--textarea .j-comment-em {
  width: 22px !important;
  height: 22px !important;
  margin: 0 2px;
  vertical-align: middle;
}

.p-detail .de-gift__item-box {
  margin-top: 24px !important;
}

.p-detail .send-gift {
  margin-top: 6px !important;
  margin-bottom: 0 !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, var(--hall-green), #7ff0d2) !important;
  color: #10161d !important;
}

/* 打赏礼物弹窗（详情页未加载 read.css，在此补全布局） */
.layui-layer-content .dialog--gift,
.dialog--gift {
  position: relative;
  width: 670px;
  max-width: 100%;
  height: auto;
  min-height: 360px;
  padding-bottom: 12px;
  background: transparent;
  color: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

.dialog--gift .dialog__close {
  position: absolute;
  right: 12px;
  top: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
}

.dialog--gift .dialog__close .iconfont {
  font-size: 18px;
}

.dialog--gift .dialog__head {
  width: 100%;
  height: 44px;
  padding-right: 48px;
  font-size: 18px;
  font-weight: 900;
  line-height: 44px;
  text-indent: 16px;
  color: #fff;
  background: rgba(255, 255, 255, .04);
  border-top: 3px solid var(--hall-green);
  box-sizing: border-box;
}

.dialog--gift .dialog__info {
  width: auto;
  height: auto;
  margin: 0 16px;
  padding: 10px 0;
  line-height: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden;
}

.dialog--gift .dialog__info .comic-title {
  float: left;
  max-width: 58%;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dialog--gift .dialog__info .ticket-info {
  float: right;
  font-size: 12px;
  color: rgba(238, 241, 247, .72);
}

.dialog--gift .dialog__info .ticket-info > span {
  margin-left: 10px;
}

.dialog--gift .dialog__info .hl {
  color: var(--hall-green);
}

.dialog--gift .gift-handles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 10px;
  margin: 20px 16px 8px;
  padding: 0;
  overflow: visible;
}

.dialog--gift .gift-handles::after {
  display: none;
}

.dialog--gift .gift-item {
  position: relative;
  float: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: auto;
  min-height: 68px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.dialog--gift .gift-item:hover {
  border-color: rgba(66, 232, 180, .28);
  background: rgba(66, 232, 180, .06);
}

.dialog--gift .gift-item.active {
  border-color: rgba(66, 232, 180, .55);
  background: rgba(66, 232, 180, .12);
}

.dialog--gift .gift-item .gift-info {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.dialog--gift .gift-item.active .gift-info {
  border: none;
  background: transparent;
}

.dialog--gift .gift-item .gift-pic {
  float: none;
  flex: 0 0 52px;
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  object-fit: contain;
}

.dialog--gift .gift-title {
  margin-top: 0;
  font-size: 13px;
  line-height: 18px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dialog--gift .gift-price {
  margin-top: 2px;
  font-size: 12px;
  line-height: 16px;
  color: var(--hall-green);
}

.dialog--gift .gift__confirm,
.dialog--gift .gold__null {
  display: block;
  width: 180px;
  height: 40px;
  margin: 16px auto 10px;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  color: #10161d;
  line-height: 40px;
  background: linear-gradient(135deg, var(--hall-green), #7ff0d2);
  border-radius: 8px;
  cursor: pointer;
}

.dialog--gift .my-gold {
  text-align: center;
  font-size: 13px;
  color: rgba(238, 241, 247, .78);
}

.dialog--gift .my-gold .hl {
  color: var(--hall-green);
}

.layui-layer-page:has(.dialog--gift),
.layui-layer-dialog:has(.dialog--gift) {
  width: 680px !important;
  max-width: calc(100vw - 40px) !important;
}

.layui-layer-page:has(.dialog--gift) .layui-layer-content,
.layui-layer-dialog:has(.dialog--gift) .layui-layer-content {
  width: 100% !important;
  height: auto !important;
  overflow: visible !important;
  padding: 0 !important;
}

.layui-layer-content .dialog--gift {
  width: 100% !important;
  max-width: 680px;
}

/* 漫票弹窗（覆盖 read.css 白底，与大厅暗色主题一致） */
.layui-layer-content .dialog--ticket,
.dialog--ticket {
  position: relative;
  width: 490px;
  max-width: 100%;
  height: auto;
  min-height: 293px;
  padding-bottom: 12px;
  background: transparent !important;
  color: #fff !important;
  overflow: hidden;
  box-sizing: border-box;
}

.dialog--ticket .dialog__close {
  position: absolute;
  right: 12px !important;
  top: 8px !important;
  z-index: 2;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1) !important;
  color: #fff !important;
  cursor: pointer;
}

.dialog--ticket .dialog__close .iconfont {
  font-size: 18px;
  color: #fff !important;
}

.dialog--ticket .dialog__head {
  width: 100%;
  height: 44px;
  padding-right: 48px;
  font-size: 18px;
  font-weight: 900;
  line-height: 44px;
  text-indent: 16px;
  color: #fff !important;
  background: rgba(255, 255, 255, .04) !important;
  border-top: 3px solid var(--hall-green) !important;
  box-sizing: border-box;
}

.dialog--ticket .dialog__info {
  width: auto;
  height: auto;
  margin: 0 16px;
  padding: 10px 0;
  line-height: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
  overflow: hidden;
}

.dialog--ticket .dialog__info .comic-title {
  float: left;
  max-width: 58%;
  font-size: 15px;
  font-weight: 700;
  color: #fff !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dialog--ticket .dialog__info .ticket-info {
  float: right;
  font-size: 12px;
  color: rgba(238, 241, 247, .72) !important;
}

.dialog--ticket .dialog__info .ticket-info > span {
  margin-left: 10px;
}

.dialog--ticket .dialog__info .hl,
.dialog--ticket .my-ticket .hl {
  color: var(--hall-green) !important;
}

.dialog--ticket .ticket__handles {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  height: auto;
  min-height: 36px;
  padding: 0 16px;
  margin-top: 32px;
  line-height: 1;
  overflow: visible;
}

.dialog--ticket .ticket__handles .iconfont {
  float: none;
  font-size: 28px;
  color: #ff9654 !important;
}

.dialog--ticket .ticket__handles .result {
  float: none;
  width: 88px;
  height: 34px;
  text-align: center;
  line-height: 32px;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06) !important;
}

.dialog--ticket .ticket__handles .reduce,
.dialog--ticket .ticket__handles .add {
  float: none;
  width: 34px;
  height: 34px;
  color: rgba(238, 241, 247, .88) !important;
  font-size: 18px;
  text-align: center;
  line-height: 32px;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06) !important;
  cursor: pointer;
}

.dialog--ticket .ticket__handles .reduce {
  margin-left: 0;
  border-right: 1px solid rgba(255, 255, 255, .18) !important;
}

.dialog--ticket .ticket__handles .add {
  margin-right: 0;
  border-left: 1px solid rgba(255, 255, 255, .18) !important;
}

.dialog--ticket .ticket__handles > span {
  color: rgba(238, 241, 247, .78) !important;
  font-size: 13px;
}

.dialog--ticket .ticket__confirm,
.dialog--ticket .ticket__null,
.dialog--ticket .ticket__pay .ticket__null {
  display: block;
  width: 200px;
  height: 40px;
  margin: 28px auto 10px;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  color: #10161d !important;
  line-height: 40px;
  background: linear-gradient(135deg, var(--hall-green), #7ff0d2) !important;
  border-radius: 8px;
  cursor: pointer;
}

.dialog--ticket .ticket__pay {
  text-align: center;
}

.dialog--ticket .ticket__confirm.disabled,
.dialog--ticket .ticket__null.disabled {
  opacity: .72;
}

.dialog--ticket .my-ticket {
  text-align: center;
  font-size: 13px;
  color: rgba(238, 241, 247, .78) !important;
}

.layui-layer-page:has(.dialog--ticket),
.layui-layer-dialog:has(.dialog--ticket) {
  width: 500px !important;
  max-width: calc(100vw - 40px) !important;
}

.layui-layer-page:has(.dialog--ticket) .layui-layer-content,
.layui-layer-dialog:has(.dialog--ticket) .layui-layer-content {
  width: 100% !important;
  height: auto !important;
  overflow: visible !important;
  padding: 0 !important;
}

.layui-layer-content .dialog--ticket {
  width: 100% !important;
  max-width: 490px;
}

/* 阅读页付费章节弹窗 */
.layui-layer-content .read-chapter-buy,
.read-chapter-buy {
  width: 680px;
  max-width: 100%;
  background: transparent !important;
  color: #fff !important;
  overflow: hidden;
}

.read-chapter-buy .buy-head,
.read-chapter-buy .buy-handle {
  width: 100%;
  background: rgba(255, 255, 255, .03) !important;
}

.read-chapter-buy .buy-title {
  color: #fff !important;
}

.read-chapter-buy .comic-title,
.read-chapter-buy .fund-info,
.read-chapter-buy .handle__check,
.read-chapter-buy .handle__foot {
  color: rgba(238, 241, 247, .72) !important;
}

.read-chapter-buy .fund-info {
  border-top-color: rgba(255, 255, 255, .1) !important;
}

.read-chapter-buy .hl,
.read-chapter-buy .fund-info a {
  color: var(--hall-green) !important;
}

.read-chapter-buy .handle__nav {
  color: rgba(238, 241, 247, .82) !important;
  border-bottom-color: rgba(255, 255, 255, .1) !important;
}

.read-chapter-buy .handle__item.active {
  color: var(--hall-green) !important;
  border-bottom-color: var(--hall-green) !important;
}

.read-chapter-buy .handle__con {
  border-bottom-color: rgba(255, 255, 255, .1) !important;
}

.read-chapter-buy .handle__con .price-box {
  color: #ff9654 !important;
}

.read-chapter-buy .handle__confirm {
  background: linear-gradient(135deg, var(--hall-green), #7ff0d2) !important;
  color: #10161d !important;
  border-radius: 8px;
}

/* 阅读页开灯：弹窗浅色主题 */
body.p-read.theme-white .layui-layer-page,
body.p-read.theme-white .layui-layer-dialog {
  background: rgba(255, 252, 246, .98) !important;
  color: #252734 !important;
  border-color: rgba(37, 39, 52, .12) !important;
}

body.p-read.theme-white .layui-layer-page .layui-layer-content,
body.p-read.theme-white .layui-layer-dialog .layui-layer-content {
  color: #252734 !important;
}

body.p-read.theme-white .dialog--ticket,
body.p-read.theme-white .dialog--gift {
  color: #252734 !important;
}

body.p-read.theme-white .dialog--ticket .dialog__head,
body.p-read.theme-white .dialog--gift .dialog__head {
  color: #252734 !important;
  background: rgba(37, 39, 52, .05) !important;
  border-top-color: #126853 !important;
}

body.p-read.theme-white .dialog--ticket .dialog__info,
body.p-read.theme-white .dialog--gift .dialog__info {
  border-bottom-color: rgba(37, 39, 52, .1) !important;
}

body.p-read.theme-white .dialog--ticket .dialog__info .comic-title,
body.p-read.theme-white .dialog--gift .dialog__info .comic-title,
body.p-read.theme-white .dialog--gift .gift-title {
  color: #252734 !important;
}

body.p-read.theme-white .dialog--ticket .dialog__info .ticket-info,
body.p-read.theme-white .dialog--gift .dialog__info .ticket-info,
body.p-read.theme-white .dialog--ticket .my-ticket,
body.p-read.theme-white .dialog--gift .my-gold,
body.p-read.theme-white .dialog--ticket .ticket__handles > span {
  color: rgba(37, 39, 52, .62) !important;
}

body.p-read.theme-white .dialog--ticket .ticket__handles .result,
body.p-read.theme-white .dialog--ticket .ticket__handles .reduce,
body.p-read.theme-white .dialog--ticket .ticket__handles .add {
  color: #252734 !important;
  border-color: rgba(37, 39, 52, .16) !important;
  background: rgba(37, 39, 52, .04) !important;
}

body.p-read.theme-white .dialog--ticket .dialog__close,
body.p-read.theme-white .dialog--gift .dialog__close {
  background: rgba(37, 39, 52, .06) !important;
  color: #252734 !important;
}

body.p-read.theme-white .dialog--ticket .dialog__close .iconfont,
body.p-read.theme-white .dialog--gift .dialog__close .iconfont {
  color: #252734 !important;
}

body.p-read.theme-white .dialog--gift .gift-item {
  border-color: rgba(37, 39, 52, .12) !important;
  background: rgba(37, 39, 52, .03) !important;
}

body.p-read.theme-white .read-chapter-buy .buy-title {
  color: #252734 !important;
}

body.p-read.theme-white .read-chapter-buy .comic-title,
body.p-read.theme-white .read-chapter-buy .fund-info,
body.p-read.theme-white .read-chapter-buy .handle__nav,
body.p-read.theme-white .read-chapter-buy .handle__check,
body.p-read.theme-white .read-chapter-buy .handle__foot {
  color: rgba(37, 39, 52, .62) !important;
}

/* Theme all transient dialogs and toasts */
.layui-layer.dialog-toast,
.layui-layer-msg,
.layui-layer-hui {
  min-width: max-content !important;
  max-width: min(92vw, 720px) !important;
  width: auto !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 8px !important;
  background:
    radial-gradient(circle at 18% 20%, rgba(66, 232, 180, .18), transparent 30%),
    radial-gradient(circle at 82% 26%, rgba(255, 94, 95, .18), transparent 32%),
    linear-gradient(145deg, rgba(29, 31, 43, .98), rgba(15, 16, 23, .98)) !important;
  color: #fff !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .42) !important;
  opacity: 1 !important;
  white-space: nowrap !important;
}

.layui-layer.dialog-toast .layui-layer-content,
.layui-layer-msg .layui-layer-content,
.layui-layer-hui .layui-layer-content {
  padding: 12px 18px !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 22px !important;
  text-align: center !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow: visible !important;
}

.layui-layer-msg .layui-layer-content.layui-layer-padding {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 28px !important;
  padding: 12px 20px !important;
  text-align: left !important;
}

.layui-layer-msg .layui-layer-ico {
  position: static !important;
  display: inline-block !important;
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  background-image: none !important;
  background-color: var(--hall-green) !important;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  box-shadow: 0 0 22px rgba(66, 232, 180, .28);
}

.layui-layer-msg .layui-layer-ico1 {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2.4c5.3 0 9.6 4.3 9.6 9.6s-4.3 9.6-9.6 9.6S2.4 17.3 2.4 12 6.7 2.4 12 2.4Zm4.35 6.65-5.42 5.42-2.34-2.34-1.7 1.7 4.04 4.04 7.12-7.12-1.7-1.7Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2.4c5.3 0 9.6 4.3 9.6 9.6s-4.3 9.6-9.6 9.6S2.4 17.3 2.4 12 6.7 2.4 12 2.4Zm4.35 6.65-5.42 5.42-2.34-2.34-1.7 1.7 4.04 4.04 7.12-7.12-1.7-1.7Z'/%3E%3C/svg%3E");
}

.layui-layer-msg .layui-layer-ico2,
.layui-layer-msg .layui-layer-ico5 {
  background-color: #ff5e5f !important;
  box-shadow: 0 0 22px rgba(255, 94, 95, .26);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2.6 22 20H2L12 2.6Zm-1.05 6.2.25 6.15h1.6l.25-6.15h-2.1ZM12 18.15a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2.6 22 20H2L12 2.6Zm-1.05 6.2.25 6.15h1.6l.25-6.15h-2.1ZM12 18.15a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z'/%3E%3C/svg%3E");
}

.layui-layer-page,
.layui-layer-dialog {
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 8px !important;
  background:
    radial-gradient(circle at 18% 20%, rgba(66, 232, 180, .14), transparent 32%),
    radial-gradient(circle at 82% 26%, rgba(255, 94, 95, .16), transparent 34%),
    linear-gradient(145deg, rgba(29, 31, 43, .98), rgba(15, 16, 23, .98)) !important;
  color: #fff !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .46) !important;
  overflow: hidden !important;
}

.layui-layer-page .layui-layer-content,
.layui-layer-dialog .layui-layer-content {
  background: transparent !important;
  color: #fff !important;
}

.layui-layer-title {
  border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
  background: rgba(255, 255, 255, .04) !important;
  color: #fff !important;
}

.layui-layer-btn {
  border-top: 1px solid rgba(255, 255, 255, .08) !important;
  background: transparent !important;
}

.layui-layer-btn a {
  height: 34px !important;
  border-radius: 8px !important;
  border-color: rgba(255, 255, 255, .12) !important;
  background: rgba(255, 255, 255, .08) !important;
  color: #fff !important;
  font-weight: 900 !important;
  line-height: 34px !important;
}

.layui-layer-btn .layui-layer-btn0 {
  border-color: rgba(66, 232, 180, .45) !important;
  background: var(--hall-green) !important;
  color: #10161d !important;
}

.dialog-login {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 8px !important;
  background:
    radial-gradient(circle at 18% 20%, rgba(66, 232, 180, .12), transparent 32%),
    radial-gradient(circle at 82% 26%, rgba(255, 94, 95, .14), transparent 34%),
    linear-gradient(145deg, rgba(29, 31, 43, .98), rgba(15, 16, 23, .98)) !important;
  color: #fff !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .46) !important;
  overflow: hidden !important;
}

.dialog-login::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(66, 232, 180, .18), transparent 26%, transparent 74%, rgba(255, 122, 68, .16)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .024) 0, rgba(255, 255, 255, .024) 1px, transparent 1px, transparent 78px);
  opacity: .75;
}

.dialog-login::after {
  content: "MANGA HALL";
  position: absolute;
  right: 24px;
  bottom: 18px;
  pointer-events: none;
  color: rgba(255, 255, 255, .045);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
}

.dialog-login_content {
  position: relative;
  z-index: 1;
  width: auto !important;
  min-height: 0 !important;
  box-sizing: border-box;
  padding: 30px 34px 24px !important;
}

.dialog-login__header {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 0 !important;
  background: none !important;
  z-index: 20 !important;
}

.dialog-login__header--close {
  display: block !important;
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .1) !important;
  cursor: pointer !important;
  z-index: 30 !important;
  transition: background .2s ease, transform .2s ease;
}

.dialog-login__header--close:hover {
  background: rgba(255, 94, 95, .22) !important;
  transform: rotate(90deg);
}

.dialog-login__header--close::before,
.dialog-login__header--close::after {
  content: "";
  position: absolute;
  display: block !important;
  left: 8px;
  top: 12px;
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.dialog-login__header--close::before {
  transform: rotate(45deg);
}

.dialog-login__header--close::after {
  transform: rotate(-45deg);
}

.dialog-login_content .form-title {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  margin-bottom: 18px !important;
}

.dialog-login_content .form-title h3 {
  float: none !important;
  color: #fff !important;
  font-size: 22px !important;
  line-height: 1.1 !important;
  text-shadow: 0 0 18px rgba(66, 232, 180, .16);
  margin-right: auto !important;
}

.dialog-login_content .form-title span,
.dialog-login_form .remember-link,
.dialog-login_content .tip-protocol {
  color: var(--hall-dim) !important;
  font-size: 13px !important;
}

.dialog-login_form .remember-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  float: left !important;
  padding-left: 0 !important;
  line-height: 1 !important;
  user-select: none;
}

.dialog-login_form .remember-link .checkbox {
  position: static !important;
  float: none !important;
  top: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  margin: 0 !important;
  border: 1.5px solid rgba(66, 232, 180, .45) !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, .04) !important;
  box-sizing: border-box !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.dialog-login_form .remember-link .checkbox::before {
  content: none !important;
}

.dialog-login_form .remember-link .checkbox.icon-ic_read_choose_on1 {
  background: rgba(66, 232, 180, .16) !important;
  border-color: var(--hall-green) !important;
  box-shadow: 0 0 0 2px rgba(66, 232, 180, .12) !important;
}

.dialog-login_form .remember-link .checkbox.icon-ic_read_choose_on1::after {
  content: "" !important;
  display: block !important;
  width: 4px !important;
  height: 8px !important;
  border: solid var(--hall-green) !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
  margin-top: -1px !important;
}

.dialog-login_content .form-title a,
.dialog-login_form .forgot-link,
.dialog-login_content .tip-protocol a {
  color: var(--hall-green) !important;
  font-weight: 900 !important;
}

.dialog-login_content .form-title span {
  margin-left: 0 !important;
  margin-right: -8px !important;
  white-space: nowrap !important;
}

.dialog-login_content .form-title a {
  white-space: nowrap !important;
}

.dialog-login_content .tab-content,
.dialog-login_content .tab-item,
.dialog-login_form {
  width: 100% !important;
}

.dialog-login_content .tab-item {
  display: none !important;
}

.dialog-login_content .tab-item.active {
  display: block !important;
}

.dialog-login_form .form-item {
  margin-bottom: 12px !important;
}

.dialog-login_content .other-login .title-line {
  background: rgba(255, 255, 255, .12) !important;
}

.dialog-login_content .other-login .title-text {
  background: rgba(21, 22, 31, .98) !important;
  color: var(--hall-dim) !important;
}

.dialog-login_content .other-login {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  margin: 16px 0 0 !important;
}

.dialog-login_content .other-link {
  display: flex !important;
  justify-content: center !important;
  gap: 16px !important;
  margin-top: 12px !important;
}

.dialog-login_content .other-link a {
  width: 38px !important;
  height: 38px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  line-height: 38px !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .24) !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}

.dialog-login_content .other-link a:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 20px 34px rgba(0, 0, 0, .34) !important;
  filter: brightness(1.06);
}

.dialog-login_content .other-link a i {
  font-size: 20px !important;
}

.dialog-login_form .input-block input,
.dialog-login_form .input-block--inline input {
  width: 100% !important;
  height: 42px !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
  border-color: rgba(255, 255, 255, .12) !important;
  background: rgba(255, 255, 255, .07) !important;
  color: #fff !important;
  font-size: 14px !important;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease !important;
}

.dialog-login_form .input-block input:focus,
.dialog-login_form .input-block--inline input:focus {
  border-color: rgba(66, 232, 180, .68) !important;
  background: rgba(255, 255, 255, .1) !important;
  box-shadow: 0 0 0 3px rgba(66, 232, 180, .12) !important;
}

.dialog-login_form .input-block input::placeholder,
.dialog-login_form .input-block--inline input::placeholder {
  color: rgba(238, 241, 247, .48) !important;
}

.dialog-login_form .reg-captcha-block {
  position: relative;
}

.dialog-login_form .reg-captcha-block input {
  padding-right: 108px !important;
}

.dialog-login_form .reg-captcha-img {
  position: absolute;
  right: 1px;
  top: 1px;
  width: 99px;
  height: calc(100% - 2px);
  cursor: pointer;
  border-radius: 0 7px 7px 0;
  object-fit: cover;
}

.dialog-login_form .reg-email-code-inline {
  display: flex !important;
  align-items: stretch !important;
  gap: 8px !important;
}

.dialog-login_form .reg-email-code-inline input {
  flex: 1 1 auto !important;
  min-width: 0;
}

.dialog-login_form .reg-email-code-inline .pcode-send {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 96px;
  height: 42px !important;
  line-height: 42px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, var(--hall-green), #7ff0d2) !important;
  color: #10161d !important;
  box-shadow: 0 12px 28px rgba(66, 232, 180, .18);
}

.dialog-login_form .reg-email-code-inline .pcode-send.disabled {
  background: rgba(255, 255, 255, .16) !important;
  color: var(--hall-dim) !important;
  box-shadow: none !important;
  transform: none !important;
}

.dialog-login_form .reg-send-row .pcode-send,
.dialog-login_form .reg-resend-row .tcode-send {
  width: 100%;
  text-align: center;
  cursor: pointer;
}

.dialog-login_form .reg-resend-row .tcode-send {
  height: 40px !important;
  line-height: 40px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .08) !important;
  color: var(--hall-green) !important;
  box-shadow: none !important;
}

.dialog-login_form .reg-resend-row .tcode-send:hover {
  background: rgba(66, 232, 180, .12) !important;
  transform: none;
}

.dialog-login_form .input-block--inline .sms-btn,
.dialog-login_form .submit-btn {
  height: 44px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, var(--hall-green), #7ff0d2) !important;
  color: #10161d !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  line-height: 44px !important;
  box-shadow: 0 16px 34px rgba(66, 232, 180, .2);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.dialog-login_form .submit-btn:hover,
.dialog-login_form .input-block--inline .sms-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(66, 232, 180, .28);
}

.dialog-login_form .input-block--inline {
  display: flex !important;
  align-items: stretch !important;
  gap: 8px !important;
}

.dialog-login_form .input-block--inline input {
  flex: 1 1 auto !important;
}

.dialog-login_form .input-block--inline .sms-btn {
  flex: 0 0 104px !important;
  height: 42px !important;
  font-size: 13px !important;
  line-height: 42px !important;
  text-align: center !important;
  cursor: pointer !important;
  user-select: none !important;
}

.dialog-login_form .submit-btn.disabled,
.dialog-login_form .input-block--inline .sms-btn.disabled {
  background: rgba(255, 255, 255, .16) !important;
  color: var(--hall-dim) !important;
}

.dialog-login_form .j-verify-err {
  display: flex !important;
  align-items: flex-start !important;
  gap: 6px !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 8px 0 0 !important;
  padding: 8px 10px !important;
  line-height: 1.45 !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  box-sizing: border-box !important;
  border-color: rgba(255, 94, 95, .52) !important;
  background: rgba(255, 94, 95, .12) !important;
  color: #ff8f8f !important;
}

.dialog-login_form .j-verify-err i {
  flex: 0 0 auto;
  margin-top: 1px;
}

.layui-layer-page:has(.dialog-login) {
  border: none !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  height: auto !important;
}

.layui-layer-page:has(.dialog-login) .layui-layer-content {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

.dialog-protocol {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-height: 420px !important;
  max-height: 72vh !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 8px !important;
  background:
    radial-gradient(circle at 18% 20%, rgba(66, 232, 180, .12), transparent 32%),
    radial-gradient(circle at 82% 26%, rgba(255, 94, 95, .14), transparent 34%),
    linear-gradient(145deg, rgba(29, 31, 43, .98), rgba(15, 16, 23, .98)) !important;
  color: #fff !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .46) !important;
  overflow: hidden !important;
}

.dialog-protocol::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(66, 232, 180, .18), transparent 26%, transparent 74%, rgba(255, 122, 68, .16)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .024) 0, rgba(255, 255, 255, .024) 1px, transparent 1px, transparent 78px);
  opacity: .75;
}

.dialog-protocol__header {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 28px 34px 0;
  text-align: center;
}

.dialog-protocol__title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 0 18px rgba(66, 232, 180, .16);
}

.dialog-protocol__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.dialog-protocol__close:hover {
  background: rgba(255, 94, 95, .22);
  transform: rotate(90deg);
}

.dialog-protocol__close::before,
.dialog-protocol__close::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.dialog-protocol__close::before {
  transform: rotate(45deg);
}

.dialog-protocol__close::after {
  transform: rotate(-45deg);
}

.dialog-protocol__content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  max-height: calc(72vh - 150px);
  margin: 18px 8px 0 0;
  padding: 0 26px 0 34px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(247, 248, 251, .78);
}

.dialog-protocol__content::-webkit-scrollbar {
  width: 6px;
}

.dialog-protocol__content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .18);
  border-radius: 999px;
}

.dialog-protocol__content p {
  margin: 0 0 12px;
  text-indent: 0;
  color: rgba(247, 248, 251, .78);
}

.dialog-protocol__content b,
.dialog-protocol__content strong,
.dialog-protocol__content h2,
.dialog-protocol__content h3,
.dialog-protocol__content h4 {
  color: #fff;
  font-weight: 700;
}

.dialog-protocol__content a {
  color: var(--hall-green);
}

.dialog-protocol__footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 18px 34px 28px;
  text-align: center;
}

.dialog-protocol__btn {
  display: inline-block;
  min-width: 128px;
  height: 38px;
  line-height: 38px;
  padding: 0 28px;
  border-radius: 19px;
  font-size: 14px;
  font-weight: 700;
  color: #10161d;
  background: var(--hall-green);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 24px rgba(66, 232, 180, .22);
}

.dialog-protocol__btn:hover {
  background: #6af0c8;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(66, 232, 180, .28);
}

.layui-layer-page:has(.dialog-protocol) {
  border: none !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.layui-layer-page:has(.dialog-protocol) .layui-layer-content {
  height: auto !important;
  overflow: visible !important;
  padding: 0 !important;
  background: transparent !important;
}

.mkz-pay-success.layui-layer,
.mkz-pay-warning.layui-layer {
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 8px !important;
  background: linear-gradient(145deg, rgba(29, 31, 43, .98), rgba(15, 16, 23, .98)) !important;
  color: #fff !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .46) !important;
}

/* 帮助中心 / 关于 / 法律声明等静态页：暗色正文对比度 */
body.p-top .help-nav-wr {
  border-bottom-color: rgba(255, 255, 255, .1) !important;
}

body.p-top .help-nav__item,
body.p-top .help-nav__item a {
  color: var(--hall-dim) !important;
}

body.p-top .help-nav__item a:hover {
  color: var(--hall-text) !important;
}

body.p-top .help-nav__item.active,
body.p-top .help-nav__item.active a {
  color: var(--hall-red) !important;
}

body.p-top .contact-container .contact-content p,
body.p-top .contact-container .contact-content h2,
body.p-top .contact-container .contact-content h3,
body.p-top .contact-container .contact-content li,
body.p-top .contact-container .contact-content b,
body.p-top .contact-container .contact-content font,
body.p-top .about-wrapper .about-content,
body.p-top .about-wrapper .about-content p,
body.p-top .legal-container .detail dt,
body.p-top .legal-container .detail dd,
body.p-top .legal-container .legal-content,
body.p-top .info-page__hero h1,
body.p-top .info-card h3,
body.p-top .info-card p,
body.p-top .info-contact-item__body h3,
body.p-top .info-contact-item__body p,
body.p-top .info-map-section__head h2,
body.p-top .info-map-section .link-item a,
body.p-top .map-container .map__link-head,
body.p-top .map-container .map__link-box .link-item,
body.p-top .map-container .map__link-box .link-item a,
body.p-top .help-content,
body.p-top .help-content .content,
body.p-top .help-content .content b,
body.p-top .help-content__head,
body.p-top .help-aside .help-head,
body.p-top .help-faq__item {
  color: var(--hall-text) !important;
}

body.p-top .contact-container .contact-content p,
body.p-top .about-wrapper .about-content p,
body.p-top .info-card p,
body.p-top .info-contact-item__body p,
body.p-top .legal-container .detail dd,
body.p-top .help-content .content {
  color: var(--hall-dim) !important;
  line-height: 1.85;
}

body.p-top .contact-container .contact-content h2,
body.p-top .contact-container .contact-content h3,
body.p-top .legal-container .detail dt,
body.p-top .info-map-section__head h2,
body.p-top .map-container .map__link-head,
body.p-top .help-content__head {
  color: #e8f2f6 !important;
  font-weight: 600;
}

body.p-top .contact-container .contact-content b,
body.p-top .help-content .content b {
  color: #e8f2f6 !important;
}

body.p-top .legal-container {
  margin-top: 36px;
}

body.p-top .info-page__hero p {
  color: rgba(232, 242, 246, .55) !important;
}

body.p-top .info-map-section .link-item a:hover {
  color: var(--hall-green) !important;
}

body.p-top .help-aside {
  border-color: rgba(255, 255, 255, .12) !important;
  background: rgba(255, 255, 255, .03);
}

body.p-top .help-aside .help-head {
  border-color: rgba(255, 255, 255, .12) !important;
  background: rgba(255, 255, 255, .04);
}

body.p-top .help-faq__item.active {
  background: rgba(66, 232, 180, .08) !important;
  color: var(--hall-green) !important;
}

body.p-top .help-content {
  border-color: rgba(255, 255, 255, .12) !important;
  background: rgba(255, 255, 255, .03);
}

body.p-top .contact-container .map {
  border-color: rgba(255, 255, 255, .15) !important;
}

/* Detail chapter list dark-theme override */
.p-detail .de-chapter {
  overflow: hidden;
}

.p-detail .de-chapter__title {
  display: flex;
  align-items: center;
  gap: 12px;
  height: auto !important;
  min-height: 42px;
  margin-bottom: 24px !important;
  line-height: 1.2 !important;
  color: #fff !important;
}

.p-detail .de-chapter__title > span:first-child {
  flex: 0 0 auto;
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .28);
}

.p-detail .de-chapter__title .update-time {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: rgba(238, 241, 247, .52) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-detail .de-chapter__title .btn--sort {
  float: none !important;
  flex: 0 0 auto;
  display: block !important;
  min-width: 86px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: rgba(247, 248, 251, .86) !important;
  font-size: 15px !important;
  font-weight: 800;
  line-height: 36px;
  text-align: center;
  box-sizing: border-box;
}

.p-detail .de-chapter__title .btn--sort:hover {
  border-color: rgba(66, 232, 180, .45);
  background: rgba(66, 232, 180, .12);
  color: #fff !important;
}

.p-detail .de-chapter__title .btn--sort .iconfont {
  color: var(--hall-green) !important;
}

.p-detail .chapter__list {
  width: 100%;
}

.p-detail .chapter__list .chapter__list-box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px 12px;
  width: 100% !important;
  max-height: 302px;
  overflow: hidden;
}

.p-detail .chapter__list .chapter__list-box.is-expanded {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

.p-detail .chapter__list .chapter__item {
  float: none !important;
  width: auto !important;
  height: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .055) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.p-detail .chapter__list .chapter__item:hover {
  background: rgba(66, 232, 180, .12) !important;
  box-shadow: inset 0 0 0 1px rgba(66, 232, 180, .45), 0 10px 24px rgba(0, 0, 0, .18);
  transform: translateY(-1px);
}

.p-detail .chapter__list .chapter__item > a {
  position: relative;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  width: 100%;
  min-height: 52px;
  padding: 10px 30px 10px 30px;
  color: rgba(247, 248, 251, .92) !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.p-detail .chapter__list .chapter__item > a > .iconfont {
  position: absolute;
  left: 8px;
  top: 12px;
  z-index: 1;
  flex-shrink: 0;
  margin: 0 !important;
  line-height: 1;
}

.p-detail .chapter__list .chapter__item > a > .iconfont.icon-has-update,
.p-detail .chapter__list .chapter__item > a > .iconfont.j-update-icon {
  left: auto;
  right: 10px;
  top: 12px;
}

.p-detail .chapter__list .chapter__item > a:hover {
  background: transparent !important;
  color: #fff !important;
}

.p-detail .chapter__item .lock,
.p-detail .chapter__item .unlock {
  margin-right: 0 !important;
  color: var(--hall-yellow) !important;
}

.p-detail .chapter__item .vip-tag {
  left: 8px !important;
  top: 12px !important;
  color: var(--hall-yellow) !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
}

.p-detail .chapter__item .icon-has-update,
.p-detail .chapter__item .j-update-icon {
  right: 10px !important;
  top: 12px !important;
  width: 8px !important;
  height: 8px !important;
  background: var(--hall-red) !important;
  box-shadow: 0 0 0 3px rgba(255, 91, 65, .16);
}

.p-detail .chapter__more {
  margin-top: 14px;
  color: rgba(238, 241, 247, .62) !important;
}

.p-detail .chapter__more .btn {
  color: rgba(238, 241, 247, .72) !important;
}

.p-detail .chapter__more .btn:hover {
  color: var(--hall-green) !important;
}

/* Reader redesign: command bar + left catalog + right recommendations */
.p-read {
  min-width: 1180px;
  --read-bg-base: #1f2330;
  --read-bg-top: #252a3a;
  --read-bg-mid: #212633;
  --read-bg-bottom: #1c2030;
  --read-bg-gradient:
    radial-gradient(circle at 50% -120px, rgba(66, 232, 180, .14), transparent 420px),
    radial-gradient(circle at 8% 92%, rgba(66, 232, 180, .07), transparent 36%),
    radial-gradient(circle at 92% 78%, rgba(130, 150, 210, .08), transparent 40%),
    linear-gradient(180deg, var(--read-bg-top) 0%, var(--read-bg-mid) 46%, var(--read-bg-bottom) 100%);
  --read-header-h: 60px;
  --read-toolbar-y: auto;
  --read-toolbar-h: 68px;
  --read-toolbar-gap: 16px;
  --read-next-right: 308px;
  --read-next-btn-w: 74px;
  --read-next-btn-half-h: 59px;
  --read-guess-collapsed-w: 52px;
  --read-guess-w: 280px;
  --read-guess-tab-w: 34px;
  --read-guess-h: min(780px, calc(100vh - 72px));
  --read-guess-left: 0;
  background: var(--read-bg-gradient) !important;
  background-color: var(--read-bg-base) !important;
  background-attachment: fixed;
  color: var(--hall-text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body.p-read.theme-white {
  --read-bg-base: #f5f0e6;
  background:
    radial-gradient(circle at 50% -120px, rgba(255, 202, 58, .18), transparent 430px),
    linear-gradient(180deg, #f8f4eb 0%, #efe9dd 100%) !important;
  background-color: #f5f0e6 !important;
}

body.p-read.theme-white .read-container {
  background: transparent !important;
}

.p-read.theme-white {
  color: #252734;
}

.p-read .read-container {
  box-sizing: border-box;
  min-width: 1180px;
  min-height: 100vh;
  padding: calc(var(--read-header-h) + 16px) 24px calc(var(--read-toolbar-h) + var(--read-toolbar-gap) + 24px) 24px !important;
  background: transparent !important;
}

.p-read .read__header {
  top: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 60px;
  min-width: 1180px;
  padding: 0 220px 0 170px;
  text-align: center;
  background: rgba(35, 39, 54, .88) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 14px 40px rgba(31, 35, 48, .28);
  backdrop-filter: blur(16px);
}

.p-read.theme-white .read__header {
  background: rgba(255, 252, 246, .92) !important;
  border-bottom-color: rgba(34, 36, 44, .1);
  box-shadow: 0 12px 34px rgba(76, 61, 36, .13);
}

.p-read .read__logo {
  display: flex;
  align-items: center;
  top: 11px;
  left: 26px;
  height: 30px;
  max-width: 260px;
}

.p-read .read__logo-link,
.p-read .read__logo-link.in-header__logo {
  flex-shrink: 0;
  width: auto;
  height: auto;
  margin: 0;
  max-width: 168px;
}

.p-read .read__logo-text,
.p-read .read__logo-link .in-header__logo-text {
  max-width: 168px;
  height: 30px;
  line-height: 30px;
  font-size: 20px;
  color: var(--site-brand-color) !important;
}

.p-read .read__logo-link:hover .read__logo-text {
  color: var(--site-brand-color-hover) !important;
}

.p-read .read__feed {
  color: rgba(238, 241, 247, .5) !important;
  border-left-color: rgba(255, 255, 255, .16);
}

.p-read.theme-white .read__feed {
  color: rgba(37, 39, 52, .55) !important;
  border-left-color: rgba(37, 39, 52, .18);
}

.p-read.theme-white .read__logo .iconfont,
.p-read.theme-white .read__crumb,
.p-read.theme-white .read__crumb a,
.p-read.theme-white .page-index__btn,
.p-read.theme-white .in-header__user .user-item,
.p-read.theme-white .in-header__user .user-item a,
.p-read.theme-white .in-header__user .user-item .iconfont,
.p-read.theme-white .in-header__user .item-text,
.p-read.theme-white .in-header__avatar {
  color: rgba(37, 39, 52, .9) !important;
}

.p-read.theme-white .in-header__user .user-item {
  border-radius: 8px;
  background: rgba(37, 39, 52, .04);
}

.p-read.theme-white .in-header__user .user-item:hover {
  color: #126853 !important;
  background: rgba(66, 232, 180, .16);
}

.p-read.theme-white .read__logo-text,
.p-read.theme-white .read__logo-link .in-header__logo-text {
  color: var(--site-brand-color-on-light) !important;
}

.p-read.theme-white .read__logo-link:hover .read__logo-text {
  color: var(--site-brand-color) !important;
}

.p-read.theme-white .in-header__avatar img {
  box-shadow: 0 0 0 2px rgba(37, 39, 52, .08);
}

.p-read .read__crumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 560px;
  margin: 0;
  line-height: 1.4 !important;
  color: rgba(238, 241, 247, .76) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.p-read .read__crumb span,
.p-read .read__crumb .comic-title {
  display: inline-flex;
  align-items: center;
  margin: 0;
  line-height: 1.4;
}

.p-read .read__crumb .iconfont {
  font-size: 12px;
  line-height: 1;
}

.p-read .read__crumb a,
.p-read .read__crumb .comic-title,
.p-read .read__crumb .last-crumb {
  color: rgba(238, 241, 247, .82) !important;
}

.p-read.theme-white .read__crumb,
.p-read.theme-white .read__crumb a,
.p-read.theme-white .read__crumb .comic-title,
.p-read.theme-white .read__crumb .last-crumb {
  color: rgba(37, 39, 52, .78) !important;
}

.p-read .read__crumb a:hover,
.p-read .read__crumb .last-crumb:hover {
  color: var(--hall-green) !important;
}

.p-read .page-index__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 76px;
  height: 28px;
  margin: 0 0 0 16px;
  color: #f5f7fb !important;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 15px;
  background: rgba(255, 255, 255, .055);
  vertical-align: middle;
}

.p-read.theme-white .page-index__btn {
  color: #252734 !important;
  border-color: rgba(37, 39, 52, .16);
  background: rgba(255, 255, 255, .62);
}

.p-read .page-index__list {
  top: 44px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(28, 30, 41, .96) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .36);
}

.p-read.theme-white .page-index__list {
  border-color: rgba(37, 39, 52, .12);
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 14px 34px rgba(76, 61, 36, .15);
}

.p-read .page-list__item {
  color: rgba(238, 241, 247, .7) !important;
  background: rgba(255, 255, 255, .055) !important;
}

.p-read.theme-white .page-list__item {
  color: rgba(37, 39, 52, .7) !important;
  background: rgba(37, 39, 52, .055) !important;
}

.p-read .page-list__item:hover,
.p-read .page-list__item.active {
  color: var(--hall-green) !important;
}

.p-read .in-header__user {
  right: 18px;
  height: 60px;
  padding-right: 0;
}

.p-read .in-header__avatar {
  margin-top: 10px;
}

.p-read .rd-aside {
  position: fixed;
  top: auto !important;
  bottom: var(--read-toolbar-gap) !important;
  left: 50% !important;
  right: auto !important;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  width: max-content !important;
  max-width: min(calc(100vw - 120px), 1040px) !important;
  height: var(--read-toolbar-h) !important;
  margin: 0;
  padding: 0 12px !important;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(36, 38, 52, .94), rgba(28, 30, 41, .94)) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .36);
  backdrop-filter: blur(18px);
  transform: translateX(-50%) !important;
  transition: bottom .22s ease, transform .22s ease, opacity .22s ease;
}

.p-read.theme-white .rd-aside {
  border-color: rgba(37, 39, 52, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(246, 240, 229, .9)) !important;
  box-shadow: 0 14px 34px rgba(76, 61, 36, .15);
}

.p-read .rd-aside__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  box-sizing: border-box;
  min-width: 58px;
  height: 52px;
  margin: 0 !important;
  padding: 5px 6px;
  border: 0;
  border-radius: 8px;
  background: transparent !important;
  color: rgba(238, 241, 247, .78) !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.p-read.theme-white .rd-aside__item {
  color: rgba(37, 39, 52, .88) !important;
}

.p-read.theme-white .rd-aside__item .txt::after,
.p-read.theme-white .rd-aside__item .txt-hl::after {
  color: rgba(37, 39, 52, .88) !important;
}

.p-read.theme-white .rd-aside__item::before {
  color: #126853 !important;
}

.p-read .rd-aside__item:hover,
.p-read .rd-aside__item.active {
  color: #fff !important;
  background: rgba(66, 232, 180, .13) !important;
  box-shadow: inset 0 0 0 1px rgba(66, 232, 180, .22);
}

.p-read .rd-aside__item.j-rd-collect.hl,
.p-read .rd-aside__item.j-rd-collect.hl:hover {
  color: rgba(238, 241, 247, .78) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.p-read.theme-white .rd-aside__item:hover,
.p-read.theme-white .rd-aside__item.active {
  color: #126853 !important;
  background: rgba(66, 232, 180, .18) !important;
}

.p-read.theme-white .rd-aside__item.j-rd-collect.hl,
.p-read.theme-white .rd-aside__item.j-rd-collect.hl:hover {
  color: rgba(37, 39, 52, .82) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.p-read .rd-aside .rd-aside__item > .iconfont {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  color: var(--hall-green);
  font-size: 20px;
  line-height: 1;
}

.p-read .rd-aside .rd-aside__item::before {
  display: none !important;
  content: none !important;
}

.p-read .j-rd-collect.hl > .iconfont {
  color: #ff9654 !important;
}

.p-read.theme-white .j-rd-collect.hl > .iconfont {
  color: #ff620e !important;
}

.p-read .rd-aside__item .txt,
.p-read .rd-aside__item .txt-hl {
  color: inherit !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-align: center;
}

.p-read .rd-aside__item .txt {
  display: inline-block !important;
  min-width: 2em;
}

.p-read .rd-aside__item .txt-hl {
  display: none !important;
  min-width: 2em;
}

.p-read .rd-aside__item.hl .txt {
  display: none !important;
}

.p-read .rd-aside__item.hl .txt-hl {
  display: inline-block !important;
}

.p-read .rd-aside__item .txt::after,
.p-read .rd-aside__item .txt-hl::after {
  display: block;
  width: 100%;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  color: inherit;
}

.p-read .j-rd-catalog .txt::after { content: "\76ee\5f55"; }
.p-read .j-rd-collect .txt::after { content: "\6536\85cf"; }
.p-read .j-rd-collect .txt-hl::after { content: "\5df2\6536\85cf"; }
.p-read .j-rd-share .txt::after { content: "\5206\4eab"; }
.p-read .j-rd-mod .txt::after { content: "翻页"; }
.p-read:has(.rd-article-wr[data-type="2"]) .j-rd-mod .txt::after { content: "卷轴"; }
.p-read .j-rd-ticket .txt::after { content: "漫票"; }
.p-read .j-rd-gift .txt::after { content: "打赏"; }
.p-read .j-rd-ticket > .iconfont,
.p-read .j-rd-gift > .iconfont {
  color: #ff9654 !important;
}
.p-read.theme-white .j-rd-ticket > .iconfont,
.p-read.theme-white .j-rd-gift > .iconfont {
  color: #ff620e !important;
}
.p-read .j-rd-light .txt::after { content: "开灯"; }
.p-read.theme-white .j-rd-light .txt::after { content: "关灯"; }
.p-read .j-rd-prev .txt::after { content: "上一话"; }
.p-read .j-rd-next .txt::after { content: "下一话"; }

.p-read .j-rd-catalog {
  margin-right: 4px !important;
  color: var(--hall-green) !important;
  position: relative;
  z-index: 10001;
}

.p-read .j-rd-catalog::after {
  content: "";
  position: absolute;
  right: -6px;
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, .12);
}

.p-read.theme-white .j-rd-catalog::after {
  background: rgba(37, 39, 52, .12);
}

.p-read .rd-comic-stage {
  position: relative;
  box-sizing: border-box;
  width: min(860px, calc(100vw - 160px));
  min-width: 560px;
  margin: 0 auto;
}

.p-read .rd-comic-stage .rd-article-wr {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.p-read .rd-aside > a.j-rd-prev,
.p-read .rd-aside > a.j-rd-next {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: auto;
  transform: none !important;
  width: auto !important;
  min-width: 58px !important;
  max-width: none !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 5px 6px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(238, 241, 247, .78) !important;
  text-decoration: none;
}

.p-read .rd-aside > a.j-rd-prev > .iconfont,
.p-read .rd-aside > a.j-rd-next > .iconfont {
  width: 20px !important;
  height: 20px !important;
  font-size: 20px !important;
  color: var(--hall-green) !important;
}

.p-read .rd-comic-stage > a.j-rd-prev,
.p-read .rd-comic-stage > a.j-rd-next,
.p-read .j-rd-prev,
.p-read .j-rd-next,
.p-read > a.j-rd-prev,
.p-read > a.j-rd-next {
  position: fixed !important;
  top: 50vh !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 10002;
  pointer-events: auto !important;
  cursor: pointer !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
  width: 74px !important;
  min-width: 74px !important;
  max-width: 74px !important;
  height: 118px !important;
  min-height: 118px !important;
  margin: 0 !important;
  padding: 14px 0 !important;
  gap: 0 !important;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(42, 45, 59, .92), rgba(24, 27, 36, .92)) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .35);
  color: rgba(238, 241, 247, .9) !important;
  transform: translateY(-50%) !important;
  transition: top .22s ease, left .22s ease, right .22s ease, transform .22s ease;
}

.p-read.theme-white .j-rd-prev,
.p-read.theme-white .j-rd-next,
.p-read.theme-white > a.j-rd-prev,
.p-read.theme-white > a.j-rd-next {
  border-color: rgba(37, 39, 52, .12);
  background: rgba(255, 255, 255, .82) !important;
  box-shadow: 0 14px 34px rgba(76, 61, 36, .14);
}

.p-read > a.j-rd-prev.rd-aside__item:hover,
.p-read > a.j-rd-next.rd-aside__item:hover,
.p-read > a.j-rd-prev.rd-aside__item.active,
.p-read > a.j-rd-next.rd-aside__item.active {
  color: rgba(238, 241, 247, .9) !important;
  background: linear-gradient(180deg, rgba(42, 45, 59, .92), rgba(24, 27, 36, .92)) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .35) !important;
}

.p-read.theme-white > a.j-rd-prev.rd-aside__item:hover,
.p-read.theme-white > a.j-rd-next.rd-aside__item:hover {
  background: rgba(255, 255, 255, .82) !important;
  box-shadow: 0 14px 34px rgba(76, 61, 36, .14) !important;
}

.p-read > a.j-rd-prev > .iconfont,
.p-read > a.j-rd-next > .iconfont {
  display: block !important;
  width: auto;
  height: auto;
  margin: 0 auto;
  color: #f5f7fb;
  font-size: 32px;
  line-height: 1;
}

.p-read.theme-white > a.j-rd-prev > .iconfont,
.p-read.theme-white > a.j-rd-next > .iconfont {
  color: #252734;
}

.p-read > a.j-rd-prev::before,
.p-read > a.j-rd-next::before {
  display: none !important;
  content: none !important;
}

.p-read .j-rd-prev .txt::after,
.p-read .j-rd-next .txt::after {
  display: block;
  padding-top: 3px;
  font-size: 12px;
  font-weight: 700;
  color: inherit;
}

.p-read.theme-white .rd-aside > a.j-rd-prev,
.p-read.theme-white .rd-aside > a.j-rd-next,
.p-read.theme-white .rd-aside > a.j-rd-prev .txt::after,
.p-read.theme-white .rd-aside > a.j-rd-next .txt::after {
  color: rgba(37, 39, 52, .88) !important;
}

.p-read.theme-white .rd-aside > a.j-rd-prev > .iconfont,
.p-read.theme-white .rd-aside > a.j-rd-next > .iconfont {
  color: #126853 !important;
}

.p-read.theme-white .rd-aside > a.j-rd-prev:hover,
.p-read.theme-white .rd-aside > a.j-rd-next:hover,
.p-read.theme-white .rd-aside > a.j-rd-prev:hover .txt::after,
.p-read.theme-white .rd-aside > a.j-rd-next:hover .txt::after {
  color: #126853 !important;
}

.p-read .rd-article-wr {
  box-sizing: border-box;
  max-width: 900px;
  min-height: calc(100vh - 170px);
  margin: 0 auto;
  background: transparent !important;
}

.p-read .rd-article__pic {
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
  font-size: 0;
  text-align: center;
}

.p-read .rd-article-wr[data-type="1"] .rd-article__pic + .rd-article__pic {
  margin-top: 0 !important;
}

.p-read .rd-article__pic img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  vertical-align: top;
}

.p-read.theme-white .rd-article__pic img {
  background: transparent !important;
  box-shadow: none !important;
}

/* 翻页模式保留单页展示间距 */
.p-read .rd-article-wr[data-type="2"] .rd-article__pic {
  min-height: 360px;
  margin: 0 auto !important;
  line-height: normal;
  font-size: 14px;
}

.p-read .rd-article-wr[data-type="2"] .rd-article__pic img {
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(31, 35, 48, .2);
}

.p-read.theme-white .rd-article-wr[data-type="2"] .rd-article__pic img {
  background: #fff !important;
  box-shadow: 0 8px 28px rgba(76, 61, 36, .12);
}

.p-read .aside__catalog {
  position: absolute !important;
  top: auto !important;
  bottom: calc(100% + 12px) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  z-index: 10001;
  display: none;
  box-sizing: border-box;
  width: 196px !important;
  max-height: min(320px, calc(100vh - 180px));
  padding: 8px 10px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(36, 38, 52, .98), rgba(24, 27, 38, .96)) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .42);
  overflow: hidden;
}

.p-read .j-rd-catalog.active .aside__catalog,
.p-read.catalog-open .j-rd-catalog .aside__catalog {
  display: block !important;
}

.p-read.catalog-open .rd-aside {
  border-bottom-left-radius: 999px;
  border-bottom-right-radius: 999px;
}

.p-read .catalog__head {
  width: auto !important;
  height: auto;
  margin: 0;
  padding: 0 2px 6px;
  line-height: 1;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: transparent !important;
}

.p-read .catalog__head .head-title {
  display: none;
}

.p-read .catalog__list {
  max-height: min(260px, calc(100vh - 220px));
  margin: 0;
  padding: 4px 0 2px;
  overflow-y: auto;
  overflow-x: hidden;
}

.p-read .catalog__item {
  display: flex !important;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  width: 100% !important;
  height: auto;
  min-height: 36px;
  margin: 0 0 4px !important;
  padding: 8px 10px;
  border: 0 !important;
  border-radius: 8px;
  color: rgba(238, 241, 247, .76) !important;
  font-size: 13px;
  line-height: 1.35;
  background: rgba(255, 255, 255, .045);
}

.p-read .catalog__item .index {
  display: none;
}

.p-read .catalog__item .comic-title {
  flex: 1 1 auto;
  max-width: none !important;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.p-read.theme-white .aside__catalog {
  border-color: rgba(37, 39, 52, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(246, 240, 229, .94)) !important;
  box-shadow: 0 16px 40px rgba(76, 61, 36, .16);
}

.p-read.theme-white .catalog__item {
  color: rgba(37, 39, 52, .74) !important;
  background: rgba(37, 39, 52, .045);
}

.p-read .catalog__item:hover,
.p-read .catalog__item.active {
  color: var(--hall-green) !important;
  background: rgba(66, 232, 180, .14);
}

.p-read .catalog__item.active::after {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background: linear-gradient(180deg, var(--hall-green), #2bc896);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 10v4h2v-4H4zm5 0v4h2v-4H9zm5 0v4h2v-4h-2zm5 0v4h2v-4h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 10v4h2v-4H4zm5 0v4h2v-4H9zm5 0v4h2v-4h-2zm5 0v4h2v-4h-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.p-read.theme-white .catalog__item:hover,
.p-read.theme-white .catalog__item.active {
  color: #126853 !important;
  background: rgba(66, 232, 180, .18);
}

.p-read .j-rd-share::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 176px;
  height: 56px;
  margin-left: -88px;
  pointer-events: auto;
}

.p-read .rd-share {
  right: auto;
  left: 50%;
  top: auto;
  bottom: calc(100% + 10px);
  width: 176px;
  height: 42px;
  margin-left: -88px;
  overflow: visible;
  z-index: 2;
  border-radius: 10px;
  background: rgba(18, 20, 28, .94);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
}

.p-read .j-rd-share.share-open .rd-share {
  display: block !important;
}

.p-read .rd-share.share-full {
  list-style: none;
  margin: 0;
  padding: 8px 10px;
  box-sizing: border-box;
}

.p-read .rd-share .aside-share__item {
  float: left;
  width: 26px;
  height: 26px;
  padding: 0;
  margin: 0 4px;
  line-height: 26px;
  border-radius: 13px;
  cursor: pointer;
}

.p-read .rd-share .aside-share__item.qq {
  background: url("../images/home/icon/ic_share_toast_qq.png?v=644f7a2") no-repeat center center;
  background-size: cover;
}

.p-read .rd-share .aside-share__item.wx {
  background: url("../images/home/icon/ic_share_toast_wx.png?v=a1eadcd") no-repeat center center;
  background-size: cover;
}

.p-read .rd-share .aside-share__item.wb {
  background: url("../images/home/icon/ic_share_toast_wb.png?v=be68653") no-repeat center center;
  background-size: cover;
}

.p-read .rd-share .aside-share__item.kj {
  background: url("../images/home/icon/ic_share_toast_kj.png?v=5863f9e") no-repeat center center;
  background-size: cover;
}

.p-read .rd-guess {
  position: fixed;
  top: 50%;
  left: var(--read-guess-left, 0) !important;
  right: auto !important;
  bottom: auto;
  z-index: 10010;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  width: var(--read-guess-w);
  height: var(--read-guess-h);
  max-height: var(--read-guess-h);
  margin: 0;
  padding: 16px 12px 16px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-left: 0;
  border-radius: 0 16px 16px 0;
  background: linear-gradient(180deg, rgba(36, 38, 52, .96), rgba(25, 27, 37, .96)) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .36);
  backdrop-filter: blur(18px);
  overflow: visible;
  transform: translateY(-50%);
  transition: transform .22s ease, width .18s ease, padding .18s ease, opacity .18s ease, visibility .18s ease;
}

.p-read.theme-white .rd-guess {
  border-color: rgba(37, 39, 52, .12);
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: 0 14px 34px rgba(76, 61, 36, .15);
}

.p-read .rd-guess__handle {
  position: absolute;
  top: 50%;
  left: 100%;
  right: auto;
  z-index: 10011;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--read-guess-tab-w);
  min-height: 96px;
  height: auto;
  margin: 0 0 0 8px;
  padding: 0;
  border: 1px solid rgba(66, 232, 180, .28);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(180deg, rgba(66, 232, 180, .22), rgba(66, 232, 180, .1));
  color: var(--hall-green) !important;
  cursor: pointer;
  transform: translateY(-50%);
  user-select: none;
  touch-action: none;
  appearance: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

.p-read .rd-guess__handle-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: 96px;
  padding: 14px 6px;
}

.p-read .rd-guess__label {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 4px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.p-read .rd-guess__arrow {
  display: block;
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 0;
  box-sizing: border-box;
  background: transparent;
  transition: transform .18s ease;
}

.p-read .rd-guess__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  box-sizing: border-box;
  transition: transform .18s ease;
}

/* 展开：箭头向左（整体左移 2px 校正） */
.p-read .rd-guess:not(.slide-up) .rd-guess__arrow {
  transform: translateX(2px);
}

.p-read .rd-guess:not(.slide-up) .rd-guess__arrow::before {
  transform: translate(-50%, -50%) rotate(135deg);
}

/* 收起：箭头向右（整体右移 2px 校正） */
.p-read .rd-guess.slide-up .rd-guess__arrow {
  transform: translateX(-2px);
}

.p-read .rd-guess.slide-up .rd-guess__arrow::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.p-read .rd-guess__handle .iconfont {
  display: none !important;
}

.p-read.theme-white .rd-guess__handle {
  border-color: rgba(18, 104, 83, .22);
  background: linear-gradient(180deg, rgba(66, 232, 180, .2), rgba(66, 232, 180, .08));
  color: #126853 !important;
}

.p-read .rd-guess__comic-wr {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  align-content: start;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  max-height: 100%;
  margin: 0;
  padding: 2px 6px 2px 2px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(66, 232, 180, .45) rgba(255, 255, 255, .06);
}

.p-read .rd-guess__comic-wr::-webkit-scrollbar {
  width: 6px;
}

.p-read .rd-guess__comic-wr::-webkit-scrollbar-track {
  margin: 4px 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
}

.p-read .rd-guess__comic-wr::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: rgba(66, 232, 180, .42);
}

.p-read .rd-guess__comic-wr::-webkit-scrollbar-thumb:hover {
  background: rgba(66, 232, 180, .62);
}

.p-read .rd-guess__comic {
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
}

.p-read .rd-guess__comic .cover {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.p-read .rd-guess__comic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}

.p-read .rd-guess__comic:hover img {
  transform: scale(1.03);
}

.p-read .rd-guess.slide-up {
  --read-guess-w: var(--read-guess-collapsed-w);
  width: var(--read-guess-collapsed-w) !important;
  min-width: var(--read-guess-collapsed-w) !important;
  max-width: var(--read-guess-collapsed-w) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 10px 6px 12px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  background: linear-gradient(180deg, rgba(36, 38, 52, .96), rgba(25, 27, 37, .96)) !important;
  border-radius: 0 12px 12px 0;
  transform: translateY(-50%);
  transition: transform .22s ease, width .18s ease, padding .18s ease;
}

.p-read .rd-guess.slide-up .rd-guess__handle {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: 100%;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(66, 232, 180, .28);
  transform: none;
  box-shadow: none;
}

.p-read .rd-guess.slide-up .rd-guess__handle-inner {
  min-height: 88px;
  padding: 12px 5px;
  gap: 8px;
}

.p-read .rd-guess.slide-up .rd-guess__comic-wr,
.p-read .rd-guess.slide-up .rd-guess__comic,
.p-read .rd-guess.slide-up .rd-guess__pic {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
}

.p-read.theme-white .rd-guess.slide-up {
  background: rgba(255, 255, 255, .92) !important;
}

.p-read .rd-article__end,
.p-read .rd-end-bar {
  display: none !important;
}

.p-read .read-chapter-buy,
.p-read .dialog--gift,
.p-read .dialog--ticket {
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
}

@media (max-width: 1360px) {
  .p-read {
    min-width: 1040px;
  }

  .p-read .read-container,
  .p-read .read__header {
    min-width: 1040px;
  }

  .p-read .rd-guess {
    --read-guess-w: 256px;
    --read-guess-h: min(720px, calc(100vh - 64px));
    width: var(--read-guess-w);
  }

  .p-read .rd-comic-stage {
    width: min(800px, calc(100vw - 120px));
    min-width: 520px;
  }
}

/* Reader layout fixes: header hide / recommend tab */
.p-read .read__header {
  transition: transform .22s ease;
}

.p-read.read-header-hidden .read__header {
  transform: translateY(-100%);
}

.p-read.read-header-hidden .rd-guess:not(.slide-up) .rd-guess__comic-wr {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.p-read.read-header-hidden .rd-guess .rd-guess__handle,
.p-read.read-header-hidden .rd-guess.slide-up {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(-50%) !important;
}

.p-read.read-header-hidden .rd-guess.slide-up .rd-guess__handle {
  transform: none !important;
}

.p-read.guess-collapsed .rd-guess.slide-up,
.p-read:has(.rd-guess.slide-up) .rd-guess.slide-up {
  top: 50% !important;
  left: var(--read-guess-left, 0) !important;
  right: auto !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
}

/* 推荐浮层：不参与主内容排版，展开/收起不推动中间阅读区 */
.p-read .rd-guess {
  pointer-events: auto;
}

.p-read .rd-article-wr {
  margin-left: auto;
  margin-right: auto;
}

/* 阅读页统一背景：覆盖 read.css 灰/黑底，全页同一渐变 */
html:has(body.p-read),
body.p-read {
  background: var(--read-bg-gradient) !important;
  background-color: var(--read-bg-base) !important;
  background-attachment: fixed;
}

body.p-read .read-container,
body.p-read .rd-article-wr,
body.p-read .rd-comic-stage,
body.p-read .rd-article__pic {
  background: transparent !important;
}

body.p-read:not(.theme-white) .read-container {
  background: transparent !important;
}

.p-read .layui-layer-shade {
  background-color: rgba(31, 35, 48, .72) !important;
}

.p-read.theme-white .read__feed,
.p-read.theme-white .page-index__btn,
.p-read.theme-white .read__crumb,
.p-read.theme-white .read__crumb a,
.p-read.theme-white .read__crumb .comic-title,
.p-read.theme-white .read__crumb .last-crumb {
  color: rgba(37, 39, 52, .86) !important;
}

.p-read.theme-white .read__header .in-header__user .user-item,
.p-read.theme-white .read__header .in-header__user .user-item > a,
.p-read.theme-white .read__header .in-header__user .user-item .iconfont,
.p-read.theme-white .read__header .in-header__user .item-text,
.p-read.theme-white .read__header .in-header__user .j-header-nav-guest .item-text--auth,
.p-read.theme-white .read__header .in-header__user .j-header-nav-guest .user-item > a,
.p-read.theme-white .read__header .in-header__avatar,
.p-read.theme-white .read__header .in-header__avatar img {
  color: #252734 !important;
}

.p-read.theme-white .read__header .in-header__user .user-item > a,
.p-read.theme-white .read__header .in-header__user .j-header-nav-guest .user-item > a {
  border-color: rgba(37, 39, 52, .14) !important;
  background: rgba(37, 39, 52, .05) !important;
}

.p-read.theme-white .read__header .in-header__user .user-item:hover,
.p-read.theme-white .read__header .in-header__user .user-item:hover > a,
.p-read.theme-white .read__header .in-header__user .user-item:hover .iconfont,
.p-read.theme-white .read__header .in-header__user .user-item:hover .item-text {
  color: #126853 !important;
}

.p-read .rd-aside__item.active {
  z-index: 10000;
}

/* User/Author center & read page avatar popup — match hall homepage */
.header-user-wrapper .user-box .dialog__header-avatar,
.p-read .read__header .dialog__header-avatar {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  width: 340px !important;
  padding-top: 8px !important;
  margin-top: 0 !important;
  z-index: 999 !important;
}

.header-user-wrapper .user-box .dialog__header-avatar .in-dialog--avatar,
.p-read .read__header .dialog__header-avatar .in-dialog--avatar {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  width: 340px !important;
  min-height: 0 !important;
  overflow: hidden !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 8px !important;
  border-top-color: rgba(255, 255, 255, .12) !important;
  background:
    radial-gradient(circle at 18% 20%, rgba(66, 232, 180, .18), transparent 28%),
    radial-gradient(circle at 82% 26%, rgba(255, 94, 95, .2), transparent 30%),
    linear-gradient(145deg, rgba(29, 31, 43, .98), rgba(15, 16, 23, .98)) !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .42) !important;
}

.header-user-wrapper .user-box .dialog__header-avatar .triangle,
.p-read .read__header .dialog__header-avatar .triangle {
  position: absolute !important;
  top: 3px !important;
  right: 18px !important;
  left: auto !important;
  color: var(--hall-green) !important;
  line-height: 1 !important;
  transform: rotate(180deg) !important;
}

body.page-user .header-user-wrapper .dialog__header-avatar .in-dialog--avatar,
body.p-author-index .header-user-wrapper .dialog__header-avatar .in-dialog--avatar,
body.p-read .read__header .dialog__header-avatar .in-dialog--avatar {
  color: #fff !important;
}

body.page-user.header-user-logged .dialog__header-avatar,
body.p-author-index.header-user-logged .dialog__header-avatar,
body.p-read.header-user-logged .dialog__header-avatar,
body.header-user-logged .dialog__header-avatar {
  width: 260px !important;
}

/* Global avatar popup — override legacy common_* white dialog on every page */
.header-user-wrapper .dialog__header-avatar,
.in-header__avatar .dialog__header-avatar,
.story-header__user .dialog__header-avatar {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  width: 340px !important;
  padding-top: 8px !important;
  margin-top: 0 !important;
  z-index: 999 !important;
}

.header-user-wrapper .dialog__header-avatar .in-dialog--avatar,
.in-header__avatar .dialog__header-avatar .in-dialog--avatar,
.story-header__user .dialog__header-avatar .in-dialog--avatar,
.header-user-wrapper .user-box .dialog__header-avatar .in-dialog--avatar,
.p-read .read__header .dialog__header-avatar .in-dialog--avatar {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  width: 340px !important;
  min-height: 0 !important;
  overflow: hidden !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-top-color: rgba(255, 255, 255, .12) !important;
  border-radius: 8px !important;
  background:
    radial-gradient(circle at 18% 20%, rgba(66, 232, 180, .18), transparent 28%),
    radial-gradient(circle at 82% 26%, rgba(255, 94, 95, .2), transparent 30%),
    linear-gradient(145deg, rgba(29, 31, 43, .98), rgba(15, 16, 23, .98)) !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .42) !important;
}

.header-user-wrapper .dialog__header-avatar .triangle,
.in-header__avatar .dialog__header-avatar .triangle,
.story-header__user .dialog__header-avatar .triangle,
.p-read .read__header .dialog__header-avatar .triangle {
  position: absolute !important;
  top: 3px !important;
  right: 18px !important;
  left: auto !important;
  color: var(--hall-green) !important;
  line-height: 1 !important;
  transform: rotate(180deg) !important;
}

.dialog__header-avatar .in-dialog--avatar .row-1,
.dialog__header-avatar .j-dialog-user.row-1 {
  position: relative !important;
  height: auto !important;
  min-height: 104px !important;
  padding: 24px 24px 18px !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
}

.dialog__header-avatar .in-dialog--avatar .nickname,
.dialog__header-avatar .j-dialog-user .nickname {
  max-width: 170px !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}

.dialog__header-avatar .in-dialog--avatar .expire,
.dialog__header-avatar .j-dialog-user .expire {
  margin: 0 !important;
  color: var(--hall-dim) !important;
  font-size: 13px !important;
}

.dialog__header-avatar .in-dialog--avatar .logout,
.dialog__header-avatar .j-dialog-user .logout {
  color: var(--hall-dim) !important;
  font-size: 12px !important;
}

.dialog__header-avatar .header-pop-user__logout-wrap .logout {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  float: none !important;
}

body.header-user-logged .in-header__avatar .dialog__header-avatar .in-dialog--avatar,
body.header-user-logged .header-user-wrapper .dialog__header-avatar .in-dialog--avatar,
body.header-user-logged .story-header__user .dialog__header-avatar .in-dialog--avatar,
body.header-user-logged .p-read .read__header .dialog__header-avatar .in-dialog--avatar {
  height: auto !important;
  overflow: visible !important;
}

.dialog__header-avatar .in-dialog--avatar .logout:hover,
.dialog__header-avatar .j-dialog-user .logout:hover {
  color: var(--hall-green) !important;
}

.dialog__header-avatar .in-dialog--avatar .buy-vip,
.dialog__header-avatar .j-dialog-user .buy-vip {
  position: absolute !important;
  right: 24px !important;
  bottom: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 78px !important;
  height: 34px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(255, 122, 45, .75) !important;
  border-radius: 999px !important;
  background: rgba(255, 122, 45, .08) !important;
  color: #ff7a2d !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 34px !important;
  box-shadow: none !important;
}

.dialog__header-avatar .header-pop-user.buy-vip,
.dialog__header-avatar .header-pop-user .buy-vip,
.dialog__header-avatar .j-dialog-user.header-pop-user .buy-vip {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
}

.dialog__header-avatar .in-dialog--avatar .row-2,
.dialog__header-avatar .row-2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100% !important;
  height: auto !important;
  padding: 0 !important;
  background: rgba(255, 255, 255, .018) !important;
}

.dialog__header-avatar .in-dialog--avatar .fund-item,
.dialog__header-avatar .row-2 .fund-item {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  height: 92px !important;
  margin: 0 !important;
  padding: 0 22px !important;
  color: var(--hall-dim) !important;
  border-right: 1px solid rgba(255, 255, 255, .08) !important;
  box-sizing: border-box !important;
}

.dialog__header-avatar .in-dialog--avatar .fund-item:last-child,
.dialog__header-avatar .row-2 .fund-item:last-child {
  border-right: 0 !important;
}

.dialog__header-avatar .in-dialog--avatar .fund-item__info,
.dialog__header-avatar .row-2 .fund-item__info {
  color: var(--hall-dim) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.dialog__header-avatar .in-dialog--avatar .fund-item__info span,
.dialog__header-avatar .row-2 .fund-item__info span {
  display: block !important;
  margin-top: 4px !important;
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.dialog__header-avatar .guest-tip {
  margin: 0 0 14px !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.45 !important;
  text-align: left !important;
}

.dialog__header-avatar .j-dialog-tourist {
  padding: 18px 20px 20px !important;
  text-align: left !important;
}

.icon-user-yb,
.icon-user-yp {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.icon-user-yb {
  background-image: url("../images/icon/ic_me_yb.png?v=3f6a1d2");
}

.icon-user-yp {
  background-image: url("../images/icon/ic_me_yp.png?v=b7dfbcf");
}

.story-header__user .avatar {
  position: relative;
}

.story-header__user .user-dialogs .dialog__header-avatar {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  padding-top: 0 !important;
}

/* 大厅 / 首页 / 阅读页 / 作品预览：支付弹窗沿用 hall 暗色变量 */
body.p-index,
body.p-hall-index,
body.p-read,
body.p-detail {
  --center-accent: var(--hall-green);
  --center-accent-text: #081016;
  --center-orange: var(--hall-green);
  --center-panel: var(--hall-panel);
  --center-panel-2: var(--hall-panel-2);
  --center-line: var(--hall-line);
  --center-text: var(--hall-text);
  --center-dim: var(--hall-dim);
}

body.p-index .dialog-pay_body--tab-body .active.item--btn,
body.p-hall-index .dialog-pay_body--tab-body .active.item--btn,
body.p-read .dialog-pay_body--tab-body .active.item--btn,
body.p-detail .dialog-pay_body--tab-body .active.item--btn,
body.p-index .dialog-pay_body--tab-body .active.item--paytype-btn,
body.p-hall-index .dialog-pay_body--tab-body .active.item--paytype-btn,
body.p-read .dialog-pay_body--tab-body .active.item--paytype-btn,
body.p-detail .dialog-pay_body--tab-body .active.item--paytype-btn {
  border-color: var(--hall-green) !important;
  background: rgba(66, 232, 180, .08) !important;
}

body.p-index .dialog-pay_body--tab-body .item--input-warning,
body.p-hall-index .dialog-pay_body--tab-body .item--input-warning,
body.p-read .dialog-pay_body--tab-body .item--input-warning,
body.p-detail .dialog-pay_body--tab-body .item--input-warning {
  background: rgba(66, 232, 180, .1) !important;
  border-color: rgba(66, 232, 180, .45) !important;
  color: #8ef5d4 !important;
}
