/* Shared account and author pages; intentionally isolated from search and rank styles. */
.account-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5f6fa;
  color: #2b2b3a;
}

.account-site .page {
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 0;
  flex: 1 0 auto;
  flex-direction: column;
  background: transparent;
  box-shadow: none;
}

.account-site .content {
  flex: 1;
  background: transparent;
}

.account-site .site-header {
  position: sticky;
  top: 0;
  padding-bottom: 10px;
}

.account-site .site-header .hd {
  min-width: 0;
}

.account-site .page-tool {
  flex: 0 0 auto;
  padding: 2px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 4px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.account-site .page-tool:hover {
  background: rgba(251, 114, 153, .25);
}

.account-site .content > .module {
  width: 100%;
  max-width: 1280px;
  margin: 24px auto;
  padding: 0 16px;
}

.account-site .content > .module .module {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

.account-site .author-books-heading,
.account-site .user-page-heading,
.account-site .user-panel-heading {
  position: static;
  z-index: auto;
  top: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.account-site .search-popup {
  position: fixed;
  z-index: 300;
  inset: 0;
  overflow-y: auto;
  background: #f5f6fa;
}

.account-site .search-popup > header,
.account-site .search-popup header.search_header {
  position: static;
  display: block;
  padding: 14px 16px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(30, 30, 60, .08);
}

.account-site .search-popup .search-form {
  display: flex;
  max-width: 900px;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}

.account-site .search-popup .search-area {
  position: relative;
  display: flex;
  min-width: 0;
  height: 42px;
  flex: 1;
  align-items: center;
  border: 1px solid #e4e4ea;
  border-radius: 22px;
  background: #f5f6fa;
}

.account-site .search-popup .search-area svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: #888;
}

.account-site .search-popup .search-input {
  min-width: 0;
  outline: 0;
}

.account-site .search-popup .search-cancel {
  position: static;
  width: auto;
  height: auto;
  padding: 9px 13px;
  border-radius: 18px;
  background: #fff0f4;
  color: #e85f89;
  line-height: 1.4;
}

.account-site .search-hot-history {
  max-width: 900px;
  margin: 16px auto;
  padding: 0 16px;
}

.account-site .search-popup .search-popular {
  padding: 18px;
  border-radius: 12px;
  background: #fff;
}

.account-site .searchtip {
  padding: 16px;
  color: #777;
}

.account-site .searchtip b {
  padding: 3px 10px;
  border-radius: 14px;
  background: #fff0f4;
  color: #e85f89;
  font-weight: 600;
}

.account-site .guide {
  position: fixed;
  z-index: 200;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.account-site .guide.active {
  visibility: visible;
  pointer-events: auto;
}

.account-site .guide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 30, .48);
  opacity: 0;
  transition: opacity .2s ease;
}

.account-site .guide.active .guide-overlay {
  opacity: 1;
}

.account-site .guide-content {
  position: absolute;
  top: 116px;
  left: 50%;
  width: min(900px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid #ececf3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(26, 26, 45, .2);
  transform: translate(-50%, -12px);
  transition: transform .2s ease;
}

.account-site .guide.active .guide-content {
  transform: translate(-50%, 0);
}

.account-site .guide nav.guide-nav {
  position: static;
  top: auto;
  z-index: auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  border: 0;
  background: transparent;
}

.account-site .guide .guide-nav-a {
  display: flex;
  width: auto;
  height: auto;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #4a4a5a;
  font-size: 14px;
}

.account-site .guide .guide-nav-a:hover {
  background: #fff0f4;
  color: #e85f89;
}

.account-site .guide-footer {
  margin-top: 14px;
  text-align: right;
}

.account-site .guide-cta {
  display: inline-flex;
  padding: 8px 18px;
  border-radius: 18px;
  background: linear-gradient(90deg, #fb7299, #e85f89);
  color: #fff;
  font-weight: 600;
}

.account-site footer {
  margin-top: auto;
}

.account-site .flinks {
  gap: 6px;
}

.account-site .flinks a {
  margin: 0 6px;
}

.account-eyebrow,
.author-eyebrow,
.auth-eyebrow {
  color: #e56a91;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

/* Author page */
.author-page-layout {
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.author-sidebar {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.author-profile-card,
.author-popular-card,
.author-books-panel {
  overflow: hidden;
  border: 1px solid #ececf3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(36, 36, 56, .05);
}

.author-profile-card {
  position: relative;
  padding: 24px 22px 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(251, 114, 153, .18), transparent 45%),
    linear-gradient(145deg, #fff 0%, #fff8fb 100%);
  text-align: center;
}

.author-profile-card .author-eyebrow {
  display: block;
  text-align: left;
}

.author-avatar {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  margin: 24px auto 12px;
  border: 4px solid #fff;
  border-radius: 24px;
  background: linear-gradient(140deg, #fb7299, #9276f5);
  box-shadow: 0 8px 20px rgba(203, 85, 135, .2);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
}

.author-name {
  margin: 0;
  color: #29293a;
  font-size: 23px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.author-profile-caption {
  margin: 5px 0 20px;
  color: #9292a4;
  font-size: 13px;
}

.author-book-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding-top: 15px;
  border-top: 1px solid #f0e8ed;
  color: #818195;
  font-size: 13px;
}

.author-book-count strong {
  color: #e4618a;
  font-size: 30px;
  font-weight: 750;
  line-height: 1;
}

.author-popular-card {
  padding: 18px;
}

.author-popular-card h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid #f0f0f4;
  color: #343444;
  font-size: 16px;
}

.author-popular-card h2 span {
  color: #e56a91;
  font-size: 10px;
  letter-spacing: 1px;
}

.author-popular-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.author-popular-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 5px 8px;
  padding: 10px 0;
  border-bottom: 1px solid #f4f4f7;
}

.author-popular-list li:last-child {
  border-bottom: 0;
}

.author-popular-rank {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  background: #f2f2f6;
  color: #838397;
  font-size: 11px;
  font-weight: 700;
}

.author-popular-list li:nth-child(-n+3) .author-popular-rank {
  background: #fff0f4;
  color: #e45f89;
}

.author-popular-list a {
  overflow: hidden;
  color: #454556;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.author-popular-list a:hover {
  color: #e45f89;
}

.author-popular-views {
  grid-column: 2;
  color: #9999aa;
  font-size: 11px;
}

.author-popular-empty {
  margin: 18px 0 8px;
  color: #9999aa;
  font-size: 13px;
  text-align: center;
}

.author-books-panel {
  min-width: 0;
  padding: 22px;
}

.author-books-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.author-books-heading h2 {
  margin: 4px 0 0;
  color: #29293a;
  font-size: 21px;
}

.author-books-total {
  flex: 0 0 auto;
  padding: 6px 11px;
  border-radius: 16px;
  background: #fff0f4;
  color: #dc5b83;
  font-size: 12px;
}

.author-intro {
  margin-bottom: 14px;
  padding: 13px 15px;
  border-left: 3px solid #fb7299;
  border-radius: 0 9px 9px 0;
  background: #fff7fa;
  color: #757588;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.author-book-list .book-ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.author-book-list .book-li {
  min-width: 0;
  padding: 13px;
  border: 1px solid #eeeef3;
  border-radius: 11px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.author-book-list .book-li:hover {
  transform: translateY(-2px);
  border-color: #f4c4d3;
  box-shadow: 0 7px 18px rgba(40, 40, 60, .07);
}

.author-book-list .book-layout {
  display: flex;
  min-width: 0;
  gap: 14px;
}

.author-book-list .book-cover {
  width: 82px;
  height: 110px;
  flex: 0 0 82px;
  overflow: hidden;
  border-radius: 6px;
  background: #f0f0f4;
}

.author-book-list .book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-book-list .book-cell {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.author-book-list .book-title {
  margin: 0;
  color: #303040;
  font-size: 16px;
}

.author-book-list .book-desc {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0;
  color: #838397;
  font-size: 12px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 3;
}

.author-book-list .book-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  color: #9292a4;
  font-size: 11px;
}

.author-book-list .book-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.author-book-list .book-author .icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.author-book-list .tag-small {
  display: inline-block;
  margin: 2px;
  padding: 2px 7px;
  border-radius: 11px;
  background: #f1f1f5;
  color: #666;
  font-size: 10px;
  font-style: normal;
}

.author-book-list .tag-small.orange { background: #fff3e5; color: #d78b3b; }
.author-book-list .tag-small.red { background: #fff0f4; color: #e45f89; }
.author-book-list .tag-small.green { background: #eaf8ef; color: #39915d; }
.author-book-list .tag-small.blue { background: #edf4ff; color: #5484ca; }

.author-book-list .empty-bookshelf {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px 16px;
  border-radius: 10px;
  background: #fafafd;
  color: #9191a2;
  text-align: center;
}

.author-book-list .empty-bookshelf svg {
  width: 48px;
  height: 48px;
  fill: #c8c8d3;
}

.author-book-list .empty-bookshelf a {
  color: #e45f89;
}

/* Sign-in and registration */
.auth-module {
  display: grid;
  min-height: 490px;
  place-items: center;
}

.auth-layout {
  display: grid;
  width: min(98%);
  min-height: 520px;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
  overflow: hidden;
  border: 1px solid rgba(233, 225, 236, .9);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(44, 35, 63, .11);
}

.auth-visual {
  position: relative;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px);
  isolation: isolate;
  background-color: #fff8fd;
  background-image: linear-gradient(180deg, rgba(31, 21, 51, .08) 0%, rgba(34, 21, 46, .28) 38%, #48233f 100%), url(/css/img/login_bg.png);
  background-position: center, center 42%;
  background-repeat: no-repeat;
  background-size: cover, 112% auto;
  color: #fff;
}

.auth-visual::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(135deg, rgba(251, 114, 153, .16), transparent 50%);
  content: "";
}

.auth-visual-kicker {
  margin-bottom: 15px;
  color: #ffc2d2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.auth-visual h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 43px);
  font-weight: 750;
  letter-spacing: 1px;
  line-height: 1.35;
}

.auth-visual p {
  max-width: 360px;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  line-height: 1.8;
}

.auth-visual-mark {
  margin-top: 34px;
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.2px;
}

.auth-visual-register {
  min-height: 0;
}

.auth-layout-register .auth-visual {
  min-height: 0;
}

.auth-layout-register .auth-container {
  padding: clamp(12px, 3vw, 14px);
}

.auth-layout-register .auth-header {
  margin-bottom: 12px;
}

.auth-layout-register .auth-form .form-group {
  margin-bottom: 11px;
}

.auth-layout-register .auth-form .form-group label {
  margin-bottom: 5px;
}

.auth-layout-register .auth-form .form-control {
  height: 43px;
}

.auth-layout-register .auth-form .btn-submit {
  min-height: 45px;
  margin: 3px 0 8px;
}

.auth-layout-register .auth-footer,
.auth-layout-register .back-home {
  margin-top: 9px;
}

@media (max-width: 520px) {
  .auth-layout-register .auth-visual {
    min-height: 185px;
  }

  .auth-layout-register .auth-container {
    padding: 20px 18px;
  }

  .auth-layout-register .auth-header {
    margin-bottom: 15px;
  }

  .auth-layout-register .auth-form .form-group {
    margin-bottom: 9px;
  }

  .auth-layout-register .auth-form .form-control {
    height: 41px;
  }

  .auth-layout-register .auth-form .btn-submit {
    min-height: 43px;
  }

}

.auth-layout-register .auth-visual {
  background-position: center, 55% 42%;
}

.auth-layout-login {
  position: relative;
  width: min(100%, 1100px);
  min-height: 560px;
  grid-template-columns: minmax(0, 1.12fr) minmax(410px, .88fr);
  border-color: rgba(238, 220, 183, .8);
  border-radius: 26px;
  background: linear-gradient(115deg, #fffaf0 0%, #fff 50%, #fff 100%);
  box-shadow: 0 24px 70px rgba(131, 99, 45, .13);
}

.auth-layout-login .auth-visual {
  min-height: 560px;
  justify-content: center;
  padding: clamp(36px, 5.5vw, 68px);
  background:
    radial-gradient(ellipse at 18% 20%, rgba(255, 255, 255, .98) 0, rgba(255, 255, 255, .42) 30%, transparent 58%),
    radial-gradient(ellipse at 91% 8%, rgba(255, 224, 156, .66) 0, transparent 37%),
    linear-gradient(145deg, #fffdf6 0%, #fff4dc 48%, #ffe8d7 100%);
  color: #593d22;
}

.auth-layout-login .auth-visual::before {
  z-index: 0;
  inset: auto auto -28% -30%;
  width: 155%;
  height: 72%;
  border: 1px solid rgba(212, 165, 78, .48);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, .65), rgba(246, 202, 112, .12));
  box-shadow:
    0 -12px 32px rgba(246, 206, 129, .16),
    inset 0 1px 0 rgba(255, 255, 255, .85);
  transform: rotate(-16deg);
  pointer-events: none;
}

.auth-layout-login .auth-visual::after {
  position: absolute;
  z-index: 0;
  right: -42%;
  bottom: -35%;
  left: -23%;
  height: 76%;
  border: 1px solid rgba(233, 174, 79, .3);
  border-radius: 50%;
  background: linear-gradient(120deg, rgba(255, 255, 255, .12), rgba(255, 222, 154, .25));
  box-shadow: 0 -8px 28px rgba(241, 193, 104, .12);
  transform: rotate(-16deg);
  content: "";
  pointer-events: none;
}

.auth-layout-login .auth-visual > * {
  position: relative;
  z-index: 1;
}

.auth-layout-login .auth-visual-kicker {
  color: #b27a31;
  letter-spacing: 3px;
}

.auth-layout-login .auth-visual h1 {
  color: #50351c;
  font-size: clamp(38px, 4.8vw, 56px);
  letter-spacing: 3px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .62);
}

.auth-layout-login .auth-visual p {
  max-width: 390px;
  color: #806747;
  font-size: 15px;
}

.auth-layout-login .auth-visual-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  margin-top: 32px;
  padding: 9px 14px;
  border: 1px solid rgba(201, 157, 83, .27);
  border-radius: 20px;
  background: rgba(255, 255, 255, .52);
  color: #987443;
  font-size: 12px;
  letter-spacing: 1px;
  backdrop-filter: blur(8px);
}

.auth-layout-login .auth-visual-mark span {
  color: #dfa943;
  font-size: 16px;
}

.auth-layout-login .auth-container {
  max-width: 500px;
  padding: clamp(38px, 5vw, 60px);
}

.auth-layout-login .auth-header {
  margin-bottom: 32px;
}

.auth-layout-login .auth-header h2 {
  margin-top: 12px;
  font-size: 27px;
}

.auth-layout-login .auth-brand-name {
  color: #a97832;
  font-weight: 800;
  letter-spacing: .045em;
  text-shadow: 0 1px 0 rgba(255, 248, 232, .9);
}

.auth-layout-login .auth-header p {
  margin-top: 7px;
  font-size: 14px;
}

.auth-layout-login .auth-form .form-control {
  height: 51px;
  border-color: #e9e4dc;
  border-radius: 11px;
  background: #fcfbf8;
}

.auth-layout-login .auth-form .form-control:focus {
  border-color: #d9ad67;
  box-shadow: 0 0 0 4px rgba(223, 177, 102, .16);
}

.auth-layout-login .auth-form .btn-submit {
  min-height: 51px;
  margin-top: 10px;
  border-radius: 11px;
  background: linear-gradient(105deg, #e9bd6b, #d99c48 58%, #c98245);
  box-shadow: 0 9px 20px rgba(193, 135, 57, .24);
}

.auth-layout-login .auth-form .btn-submit:hover {
  box-shadow: 0 12px 25px rgba(193, 135, 57, .32);
}

.auth-layout-login .auth-eyebrow {
  color: #b27a31;
}

.auth-layout-login .auth-footer a,
.auth-layout-login .back-home a {
  color: #b27a31;
}

.auth-container {
  align-self: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px);
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.auth-header {
  margin-bottom: 26px;
  text-align: left;
}

.auth-header h2 {
  margin: 10px 0 5px;
  color: #29293a;
  font-size: 24px;
  font-weight: 750;
}

.auth-header p {
  color: #9292a4;
  font-size: 13px;
}

.auth-form .form-group {
  margin-bottom: 17px;
}

.auth-form .form-group label {
  display: block;
  margin-bottom: 7px;
  color: #4b4b5d;
  font-size: 13px;
  font-weight: 650;
}

.auth-form .form-control {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #e4e4ec;
  border-radius: 9px;
  outline: 0;
  background: #fafafd;
  color: #29293a;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-form .form-control::placeholder {
  color: #b0b0bf;
  font-size: 12px;
}

.auth-form .form-control:focus {
  border-color: #ee85a5;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(251, 114, 153, .12);
}

.auth-form .form-control.error {
  border-color: #e85f70;
  background: #fffafa;
}

.auth-form .error-message,
.auth-form .success-message {
  display: none;
  margin-top: 5px;
  font-size: 12px;
}

.auth-form .error-message { color: #d84c5c; }
.auth-form .success-message { color: #389a60; }
.auth-form .error-message.show,
.auth-form .success-message.show { display: block; }

/* 标签与提示同一行，提示右对齐，行高固定，出现/消失不会让页面抖动 */
.auth-form .form-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
  margin-bottom: 7px;
}

.auth-form .form-label-row label { margin-bottom: 0; flex-shrink: 0; }

.auth-form .field-hint {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: transparent;
  font-size: 12px;
  line-height: 18px;
  text-align: right;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.auth-form .field-hint.error { color: #d84c5c; }
.auth-form .field-hint.success { color: #389a60; }

/* 密码强度：固定高度，文字在左，色块在右 */
.auth-form .password-strength {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 18px;
  margin-top: 6px;
}

.auth-form .strength-text {
  flex-shrink: 0;
  width: 201em;
  CONTAIN-INTRINSIC-BLOCK-SIZE: AUTO 100PX;
  font-size: 12px;
  line-height: 18px;
}

.auth-form .strength-bar { flex: 1; height: 4px; overflow: hidden; border-radius: 3px; background: #eeeef3; }
.auth-form .strength-bar-fill { height: 100%; transition: width .2s ease; }
.auth-form .strength-bar-fill.weak { width: 33%; background: #e85f70; }
.auth-form .strength-bar-fill.medium { width: 66%; background: #e5a53b; }
.auth-form .strength-bar-fill.strong { width: 100%; background: #42a66b; }

.auth-form .btn-submit {
  width: 100%;
  min-height: 49px;
  margin: 5px 0 12px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(100deg, #fb7299 0%, #d95a91 100%);
  box-shadow: 0 8px 18px rgba(221, 87, 137, .23);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.auth-form .btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 22px rgba(221, 87, 137, .3);
}

.auth-form .btn-submit:disabled {
  opacity: .65;
  cursor: wait;
}

.auth-footer,
.back-home {
  margin-top: 13px;
  text-align: center;
}

.auth-footer p {
  color: #858598;
  font-size: 13px;
}

.auth-footer a,
.back-home a {
  color: #dc5b83;
  font-weight: 650;
}

.back-home a {
  font-size: 12px;
}

/* User center */

.user-page-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.user-page-heading {
  margin-bottom: 20px;
}

.user-page-heading h1 {
  margin: 6px 0 4px;
  color: #29293a;
  font-size: 28px;
  font-weight: 750;
}

.user-page-heading p {
  margin: 0;
  color: #89899c;
  font-size: 13px;
}

.user-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.user-welcome-card {
  display: flex;
  min-height: 156px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 30px;
  border: 1px solid #f0d9e1;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 92% 8%, rgba(251, 114, 153, .18), transparent 35%),
    linear-gradient(145deg, #fff 0%, #fff8fb 100%);
  box-shadow: 0 8px 24px rgba(232, 95, 137, .07);
}

.user-welcome-profile {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 20px;
}

.user-avatar {
  display: flex;
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 4px solid #fff;
  border-radius: 23px;
  background: linear-gradient(140deg, #fb7299, #9276f5);
  box-shadow: 0 7px 18px rgba(203, 85, 135, .2);
  color: #fff;
  font-size: 29px;
  font-weight: 750;
}

.user-profile-identity {
  min-width: 0;
}

.user-profile-caption {
  margin: 0 0 5px;
  color: #9a8790;
  font-size: 12px;
}

.user-nickname {
  margin: 0;
  color: #303040;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.user-username {
  margin-top: 5px;
  color: #9292a4;
  font-size: 12px;
}

.user-reading-links {
  display: grid;
  width: min(100%, 440px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.user-reading-link {
  display: flex;
  min-width: 0;
  min-height: 76px;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid #f0dfe6;
  border-radius: 13px;
  background: rgba(255, 255, 255, .9);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.user-reading-link:hover {
  transform: translateY(-2px);
  border-color: #f0b2c5;
  box-shadow: 0 5px 14px rgba(232, 95, 137, .08);
}

.user-reading-link-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 12px;
  background: #fff0f4;
  color: #e56a91;
}

.user-reading-link-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.user-reading-link-icon-bookmark {
  background: #f2efff;
  color: #806ce0;
}

.user-reading-link > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.user-reading-link strong {
  color: #454556;
  font-size: 13px;
  white-space: nowrap;
}

.user-reading-link small {
  color: #9696a7;
  font-size: 11px;
  white-space: nowrap;
}

.user-reading-link-arrow {
  margin-left: auto;
  color: #dc5b83;
  font-size: 18px;
}

.user-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #ece9ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(36, 36, 56, .035);
}

.user-stat-item {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  border-right: 1px solid #f0edf1;
  color: inherit;
  text-decoration: none;
  transition: background .2s ease;
}

.user-stat-item:last-child {
  border-right: 0;
}

a.user-stat-item:hover {
  background: #fff8fb;
}

.user-stat-value {
  color: #df628a;
  font-size: 25px;
  font-weight: 750;
  line-height: 1;
}

.user-stat-label {
  color: #8f8fa1;
  font-size: 12px;
}

.user-details-section {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 8px;
}

.user-panel {
  min-width: 0;
  padding: 25px 28px;
  border: 1px solid #ece9ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(36, 36, 56, .035);
  transition: all 0.3s ease;
}

.user-panel:hover {
  box-shadow: 0 8px 24px rgba(36, 36, 56, .08);
  border-color: #e0dce5;
}

.user-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f5f3f7;
}

.user-panel-heading h2 {
  margin: 0;
  color: #303040;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.user-details-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.user-detail-item {
  min-width: 0;
  padding: 10px 24px;
  border: 1.5px solid #f5f3f7;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffdfd 0%, #fff9fa 100%);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: all 0.3s ease;
}

.user-detail-item:hover {
  border-color: #e56a91;
  background: linear-gradient(135deg, #fff5f8 0%, #fffbfc 100%);
  box-shadow: 0 4px 12px rgba(229, 106, 145, .08);
  transform: translateX(4px);
}

.user-detail-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff0f4 0%, #ffe8ef 100%);
  flex-shrink: 0;
}

.user-detail-icon svg {
  width: 22px;
  height: 22px;
  fill: #e56a91;
}

.user-detail-content {
  min-width: 0;
  flex: 1;
  padding-top: 4px;
}

.user-detail-label {
  margin-bottom: 8px;
  color: #9696a7;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-detail-value {
  color: #303040;
  font-size: 16px;
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.user-security-copy {
  margin: 0 0 24px;
  color: #89899c;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.3px;
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.action-btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
  z-index: 0;
}

.action-btn:hover::before {
  left: 100%;
}

.action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(221, 87, 137, .25);
}

.action-btn-primary {
  background: linear-gradient(135deg, #fb7299 0%, #dc5b83 100%);
  box-shadow: 0 6px 16px rgba(221, 87, 137, .22);
  color: #fff;
  position: relative;
  z-index: 1;
}

.action-btn-primary:hover {
  background: linear-gradient(135deg, #fd85ab 0%, #e86a90 100%);
  box-shadow: 0 12px 28px rgba(221, 87, 137, .3);
}

.action-btn-secondary {
  border: 2px solid #e9e9f0!important;
  background: #fff!important;
  color: #626276;
  position: relative;
  z-index: 1;
}

.action-btn-secondary:hover {
  background: linear-gradient(135deg, #fefefd 0%, #fafafd 100%);
  border-color: #dc5b83;
  color: #303040;
  box-shadow: 0 6px 16px rgba(220, 91, 131, .12);
}

.action-btn svg {
  width: 18px;
  height: 18px;
}

/* Change-password and shared JavaScript modals */
.account-site #changePasswordModal {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(24, 24, 38, .52);
  backdrop-filter: blur(3px);
}

.account-site #changePasswordModal.show {
  display: flex;
}

.account-site #changePasswordModal .modal-content {
  width: min(100%, 460px);
  max-height: 85vh;
  overflow-y: auto;
  padding: 25px;
  border: 1px solid #ececf3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(20, 20, 30, .2);
  text-align: center;
}

.account-site #changePasswordModal .modal-header {
  margin-bottom: 20px;
  color: #303040;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.account-site #changePasswordModal .modal-form-group {
  margin-bottom: 14px;
  text-align: left;
}

.account-site #changePasswordModal .modal-form-label {
  display: block;
  margin-bottom: 6px;
  color: #555568;
  font-size: 13px;
  font-weight: 600;
}

.account-site #changePasswordModal .modal-form-input {
  width: 100%;
  min-height: 43px;
  padding: 8px 11px;
  border: 1px solid #dedee8;
  border-radius: 7px;
  outline: 0;
  font: inherit;
}

.account-site #changePasswordModal .modal-form-input:focus {
  border-color: #fb7299;
  box-shadow: 0 0 0 3px rgba(251, 114, 153, .12);
}

.account-site #changePasswordModal .modal-form-error {
  display: none;
  margin-top: 5px;
  color: #d84c5c;
  font-size: 12px;
}

.account-site #changePasswordModal .modal-form-error.show {
  display: block;
}

.account-site #changePasswordModal .modal-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.account-site #changePasswordModal .modal-btn {
  min-width: 120px;
  min-height: 42px;
  padding: 8px 18px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(100deg, #fb7299, #dc5b83);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.account-site #changePasswordModal .modal-btn-cancel {
  border: 1px solid #e7e7ee;
  background: #f5f5f8;
  color: #666679;
}

.account-site #changePasswordModal .modal-btn:disabled {
  opacity: .6;
  cursor: wait;
}

.account-site .universal-modal {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.account-site #modal.modal-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(24, 24, 38, .52);
  backdrop-filter: blur(3px);
}

.account-site #modal.modal-overlay.show {
  display: flex;
}

.account-site #modal .modal-content {
  width: min(420px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px 24px 24px;
  border: 1px solid #ececf3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(20, 20, 30, .2);
  text-align: center;
}

.account-site #modal .modal-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #eaf8ef;
  color: #389a60;
  font-size: 26px;
  font-weight: 700;
}

.account-site #modal .modal-icon.error {
  background: #fff0f1;
  color: #d84c5c;
}

.account-site #modal .modal-icon.success {
  background: #eaf8ef;
  color: #389a60;
}

.account-site #modal .modal-title {
  margin: 0 0 8px;
  color: #303040;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.account-site #modal .modal-message {
  margin: 0 0 20px;
  color: #77778b;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  overflow-wrap: anywhere;
}

.account-site #modal .modal-btn {
  min-width: 120px;
  min-height: 42px;
  padding: 9px 22px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(100deg, #fb7299, var(--color-primary));
  background: linear-gradient(100deg, #d99c48 58%, #c98245);
  box-shadow: 0 5px 13px rgba(221, 87, 137, .2);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.account-site #modal .modal-btn:hover {
  box-shadow: 0 8px 18px rgba(221, 87, 137, .28);
}
.account-site .universal-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(24, 24, 38, .52);
  backdrop-filter: blur(3px);
}

.account-site .universal-modal-content {
  position: relative;
  width: min(400px, 100%);
  max-width: 100%;
  max-height: 85vh;
  overflow: auto;
  border: 1px solid #ececf3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(20, 20, 30, .2);
  text-align: center;
}

.account-site .universal-modal-header {
  position: relative;
  min-height: 62px;
  justify-content: center;
  padding: 18px 52px;
  border-bottom-color: #f0f0f4;
  text-align: center;
}

.account-site .universal-modal-title {
  width: 100%;
  color: #303040;
  font-size: 18px;
  text-align: center;
}

.account-site .universal-modal-close {
  position: absolute;
  top: 16px;
  right: 15px;
}

.account-site .universal-modal-body {
  padding: 22px 24px;
  color: #68687b;
  line-height: 1.7;
  text-align: center;
  overflow-wrap: anywhere;
}

.account-site .universal-modal-footer {
  justify-content: center;
  gap: 10px;
  padding: 14px 20px 20px;
  border-top: 0;
}

.account-site .universal-modal-btn {
  min-width: 108px;
  min-height: 40px;
  padding: 9px 18px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}

.account-site .universal-modal-btn-confirm {
  background: linear-gradient(100deg, #fb7299, #dc5b83);
}

.account-site .universal-modal-btn-cancel {
  background: #f1f1f5;
  color: #666679;
}

@media (max-width: 900px) {
  .author-page-layout {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 14px;
  }

  .author-books-panel {
    padding: 16px;
  }

  .auth-module {
    min-height: 0;
  }

  .auth-layout {
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  }

  .auth-visual {
    min-height: 500px;
    padding: 30px;
  }

  .user-welcome-card {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
  }

  .user-reading-links {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .account-site .site-header .hd {
    flex-wrap: wrap;
    gap: 10px;
  }

  .account-site .logo {
    font-size: 19px;
  }

  .account-site .logo .badge {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .account-site .slogan,
  .account-site .hd-link {
    display: none;
  }

  .account-site .search {
    order: 3;
    flex: 1 0 100%;
  }

  .account-site .page-tool {
    padding: 2px 12px;
    font-size: 12px;
  }

  .account-site .guide-content {
    top: 136px;
  }

  .account-site .guide nav.guide-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-site .content > .module {
    margin: 16px auto;
    padding: 0 12px;
  }

  .author-page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .author-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .author-profile-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 15px;
  }

  .author-profile-card .author-eyebrow {
    display: none;
  }

  .author-avatar {
    width: 58px;
    height: 58px;
    margin: 0 auto 9px;
    border-radius: 18px;
    font-size: 24px;
  }

  .author-name {
    font-size: 18px;
  }

  .author-profile-caption {
    margin: 3px 0 12px;
    font-size: 11px;
  }

  .author-book-count {
    padding-top: 10px;
    font-size: 11px;
  }

  .author-book-count strong {
    font-size: 24px;
  }

  .author-popular-card {
    padding: 14px;
  }

  .author-popular-list li {
    padding: 7px 0;
  }

  .user-page-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 16px;
  }

  .user-page-heading h1 {
    font-size: 24px;
  }

  .user-welcome-card {
    padding: 22px;
  }

  .user-details-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .user-details-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .user-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .user-detail-icon {
    flex: 0 0 34px;
    margin-bottom: 0;
  }
}

@media (max-width: 520px) {
  .account-site .guide-content {
    top: 128px;
    width: calc(100% - 20px);
    padding: 12px;
  }

  .account-site .guide nav.guide-nav {
    gap: 4px;
  }

  .account-site .guide .guide-nav-a {
    font-size: 13px;
  }

  .author-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .author-profile-card {
    display: block;
    text-align: center;
  }

  .author-profile-card .author-eyebrow {
    display: block;
  }

  .author-avatar {
    width: 62px;
    height: 62px;
    margin: 12px auto 8px;
  }

  .author-profile-caption {
    margin: 3px 0 12px;
  }

  .author-popular-card h2 {
    font-size: 15px;
  }

  .author-books-panel {
    padding: 13px;
  }

  .author-books-heading h2 {
    font-size: 18px;
  }

  .author-book-list .book-layout {
    gap: 10px;
  }

  .author-book-list .book-cover {
    width: 65px;
    height: 88px;
    flex-basis: 65px;
  }

  .author-book-list .book-title {
    font-size: 14px;
  }

  .author-book-list .book-desc {
    font-size: 11px;
    -webkit-line-clamp: 2;
     line-clamp: 2;
  }

  .author-book-list .book-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .auth-layout {
    width: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    border-radius: 16px;
  }

  .auth-visual {
    min-height: 205px;
    padding: 22px;
    background-position: center, 52% 38%;
    background-size: cover, 82% auto;
  }

  .auth-visual-kicker {
    margin-bottom: 7px;
    font-size: 9px;
  }

  .auth-visual h1 {
    font-size: 25px;
  }

  .auth-visual p {
    max-width: 280px;
    margin-top: 7px;
    font-size: 12px;
  }

  .auth-visual-mark {
    display: none;
  }

  .auth-container {
    padding: 24px 20px;
  }

  .auth-header {
    margin-bottom: 20px;
  }

  .auth-header h2 {
    font-size: 23px;
  }

  .user-page-heading {
    margin-bottom: 15px;
  }

  .user-welcome-card {
    min-height: 0;
    gap: 17px;
    padding: 18px 16px;
    border-radius: 15px;
  }

  .user-welcome-profile {
    gap: 13px;
  }

  .user-avatar {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    border-radius: 19px;
    font-size: 24px;
  }

  .user-nickname {
    font-size: 20px;
  }

  .user-profile-caption {
    margin-bottom: 4px;
    font-size: 11px;
  }

  .user-reading-links {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .user-reading-link {
    min-height: 64px;
    padding: 10px;
  }

  .user-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 12px;
  }

  .user-stat-item {
    min-height: 68px;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #f0edf1;
  }

  .user-stat-item:nth-child(2) {
    border-right: 0;
  }

  .user-stat-item:nth-child(n + 3) {
    border-bottom: 0;
  }

  .user-stat-label {
    font-size: 11px;
  }

  .user-stat-value {
    font-size: 22px;
  }

  .user-details-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .user-panel {
    padding: 18px 16px;
  }

  .user-detail-item {
    padding: 11px;
  }

  .user-security-copy {
    margin-bottom: 16px;
    font-size: 12px;
  }

  .action-btn {
    width: 100%;
  }

  .account-site #changePasswordModal .modal-content {
    padding: 20px 16px;
  }

  .account-site #changePasswordModal .modal-buttons {
    flex-direction: column-reverse;
  }

  .account-site #changePasswordModal .modal-btn {
    width: 100%;
  }

  .account-site .universal-modal-header {
    padding: 16px 48px;
  }

  .account-site .universal-modal-body {
    padding: 18px 16px;
  }
}

@media (max-width: 520px) {
  .auth-layout.auth-layout-login {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    border-radius: 18px;
  }

  .auth-layout-login .auth-visual {
    min-height: 255px;
    padding: 28px 24px;
    display: none;
  }

  .auth-layout-login .auth-visual h1 {
    font-size: 34px;
  }

  .auth-layout-login .auth-visual p {
    margin-top: 9px;
    font-size: 13px;
  }

  .auth-layout-login .auth-visual-mark {
    margin-top: 16px;
    padding: 6px 11px;
  }

  .auth-layout-login .auth-container {
    padding: 29px 22px;
  }

  .auth-layout-login .auth-header {
    margin-bottom: 23px;
  }

  .auth-layout-login .auth-header h2 {
    font-size: 25px;
    margin-top: 2px;
  }
}


/* 修改密码模态框的动画 */
.account-site #changePasswordModal.modal-overlay {
  animation: fadeIn 0.3s ease !important;
}

.account-site #changePasswordModal .modal-content {
  animation: scaleInUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.account-site #changePasswordModal .modal-header {
  animation: slideInDown 0.4s ease 0.15s both !important;
}

.account-site #changePasswordModal .modal-form-group {
  animation: slideInUp 0.4s ease calc(0.2s + var(--form-index, 0) * 50ms) both !important;
}

.account-site #changePasswordModal .modal-buttons {
  animation: slideInUp 0.4s ease 0.35s both !important;
}

/* 修改密码窗口关闭动画 */
.account-site #changePasswordModal.modal-overlay.hide {
  animation: fadeOut 0.3s ease forwards !important;
}

.account-site #changePasswordModal.modal-overlay.hide .modal-content {
  animation: scaleOutDown 0.3s ease forwards !important;
}

    .modal-content {
      animation: scaleInUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }

    .modal-icon {
      animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both !important;
    }

    .modal-title {
      animation: slideInDown 0.4s ease 0.15s both !important;
    }

    .modal-message {
      animation: slideInUp 0.4s ease 0.2s both !important;
    }

    .modal-btn {
      animation: slideInUp 0.4s ease 0.25s both !important;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

    @keyframes scaleInUp {
      from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
      }
      to {
        opacity: 1;
        transform: scale(1) translateY(0);
      }
    }

    @keyframes popIn {
      0% {
        transform: scale(0);
        opacity: 0;
      }
      50% {
        transform: scale(1.1);
      }
      100% {
        transform: scale(1);
        opacity: 1;
      }
    }

    @keyframes slideInDown {
      from {
        opacity: 0;
        transform: translateY(-15px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes slideInUp {
      from {
        opacity: 0;
        transform: translateY(15px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* 关闭动画 */
    .modal-overlay.hide {
      animation: fadeOut 0.3s ease forwards !important;
    }

    .modal-overlay.hide .modal-content {
      animation: scaleOutDown 0.3s ease forwards !important;
    }

    @keyframes fadeOut {
      from {
        opacity: 1;
      }
      to {
        opacity: 0;
      }
    }

    @keyframes scaleOutDown {
      from {
        opacity: 1;
        transform: scale(1) translateY(0);
      }
      to {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
      }
    }