/* custom-theme.css */
/* 全局样式 - 覆盖 main.css 中的 body 样式 */
body {
  background-color: #F2F2F7;
  color: #333333;
}
/* 滚动条样式 - 修改为白色 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
}
/* 头部样式 */
.header {
  background-color: #FFFFFF !important;
  box-shadow: 0 5px 25px 0 rgba(0,0,0,0.1) !important;
}

.header__logo {
  background-color: #FFFFFF !important;
}
.header__logo img {
  margin-right: 110px;
}

.header__logo:hover {
  background-color: #f8f8f8 !important;
}

/* 头部搜索框样式 */
.header__search-item {
  display: flex;
  align-items: center;
}

.header__search {
  display: flex;
  align-items: center;
  background-color: #2d333f;
  border-radius: 20px;
  padding: 0 15px;
  height: 36px;
  margin-top: 2px;
  background-color: #f0f0f0 !important;
}

.header__search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #333333 !important;
  width: 100%;
  padding: 0;
}

.header__search input::placeholder {
  color: #999999 !important;
}

.header__search button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
  color: #999999 !important;
}

.header__search button svg {
  width: 18px;
  height: 18px;
}

/* 导航链接 */
.header__nav-link,
.header__nav-link:hover {
  font-family: Source Han Sans;
  font-size: 16px;
  font-weight: normal;
  line-height: normal;
  display: flex;
  align-items: center;
  letter-spacing: 0em;

  /*font-variation-settings: "opsz" auto;*/
  font-feature-settings: "kern" on;
  /* 安全黑 */
  color: #333333 !important;
}


/* 导航链接选中状态样式 */
.header__nav-link.active,
.header__nav-link:hover,
.header__nav-link:focus,
.header__nav-link:active {
  color: #9E6DFC !important;
  transition: color 0.3s ease;
}

.menu__nav-link {
  color: #333333 !important;
}

/* 为移动端菜单添加相同效果 */
.menu__nav-link.active,
.menu__nav-link:hover,
.menu__nav-link:focus,
.menu__nav-link:active {
  color: #9E6DFC !important;
  transition: color 0.3s ease;
}

/* 下拉菜单 */
.header__dropdown-menu {
  background-color: #FFFFFF !important;
  box-shadow: 0 5px 25px 0 rgba(0,0,0,0.1) !important;
}

.header__btn span {
  background-color: #333333 !important;
}

.header__dropdown-menu a {
  color: #333333 !important;
}

.header__dropdown-menu a:hover {
  color: #ff55a5 !important;
}

/* header actions 样式 */
.header__actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* 原始样式保持不变（PC端） */
.download-modal {
  position: absolute;
  left: 458px;
  top: 54px;
  width: 295.01px;
  height: 129px;
  border-radius: 16px;
  opacity: 1;
  display: flex;
  flex-direction: row;
  padding: 16px;
  gap: 16px;
  background: #FFFFFF;
  box-shadow: 0px 0px 32px 0px rgba(0, 0, 0, 0.15);
  z-index: 999;
  display: none;
}

.download-modal .qr-code-container {
  width: 97.01px;
  height: 97px;
  opacity: 1;
  z-index: 0;
}

.download-modal .download-buttons {
  width: 97.01px;
  height: 97px;
  opacity: 1;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-modal .download-button {
  width: 120px;
  height: 40px;
  border-radius: 6px;
  opacity: 1;
  background: #FFFFFF;
  box-sizing: border-box;
  /* border: 1px solid #000000; */
  border: none; /* 移除边框 */
  z-index: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.download-modal .download-button:hover {
  border-color: #007AFF;
  transform: scale(1.02);
}

.download-modal .download-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Go VIP 按钮样式 */
#header-vip {
  display: flex;
  align-items: center;
  width: 252px;
  height: 36px;
  background: #9E6DFC;
  border-radius: 100px 100px 100px 100px;
}

#header-vip img {
  height: 17px;
  margin-left: 15px;
  margin-right: 5px;
}

#header-vip .header__action-vip-text {
  width: 100%;
  height: 16px;
  font-family: Roboto, Roboto;
  font-weight: 700;
  font-size: 14px;
  color: #FFFFFF;
  line-height: 16px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  white-space: nowrap; /* 添加此行防止换行 */
  overflow: hidden;     /* 添加此行处理溢出内容 */
  text-overflow: ellipsis; /* 添加此行添加省略号 */
}

#header-library {
  font-family: 'Source Han Sans', sans-serif;
  font-size: 16px;
  font-weight: normal;
  line-height: normal;
  display: flex;
  align-items: center;
  letter-spacing: 0em;
  /*font-variation-settings: "opsz" auto;*/
  font-feature-settings: "kern" on;
  color: #333333;
  white-space: nowrap;
}

/* Sign In 链接样式 */
#header-signin {
  position: static;
  width: 40px;
  height: 40px;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #D8D8D8;
  border-radius: 50%;
  z-index: 2;
  text-decoration: none;
}

/* 图片样式调整 */
.header__actions img {
  display: block;
  max-width: 100%;
  height: 40px;
}

#header-library img {
  display: block;
  max-width: 100%;
  height: 40px;
}

#header-signin img {
  border-radius: 50%;
  background-color: #E5E7EB;
  width: 40px;
  height: 40px; /* 添加高度填充 */
  object-fit: cover; /* 确保图片填充整个容器 */
  object-position: center; /* 图片居中显示 */
}



/* 页脚 */
.footer {
  background-color: #FFFFFF !important;
}

.footer__email,
.footer__title,
.footer__list a {
  color: #333333 !important;
}

.footer__email:hover,
.footer__list a:hover {
  color: #ff55a5 !important;
}

.footer__tagline {
  color: #666666 !important;
}

/* footer调整样式 */
.footer__email {
  color: #333333;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  cursor: text;
}

.footer__email:hover {
  color: #fff;
  text-decoration: none;
}

.footer__logo {
  text-align: left;
}

.footer__tagline {
  text-align: left;
  margin-bottom: 0;
  color: #666666;
}

.footer__download {
  text-align: left;
}

.footer__list--download {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  flex-wrap: wrap;
  margin: 15px 0 0 0;
  padding: 0;
  list-style: none;
}

.footer__list--download li {
  margin: 0;
}

.footer__list--download img {
  height: 40px;
  width: auto;
  border-radius: 4px;
}



/* 搜索弹窗整体样式 */
.search-modal {
  position: absolute; /* 改为 absolute，相对于 body 或父容器定位 */
  top: 14px;           /* 设置在 header 下方（假设 header 高度约 80px） */
  left: 0;
  width: 100%;
  height: calc(100% - 80px); /* 高度减去 header 高度 */
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: flex-start; /* 内容从顶部开始，避免被 header 挡住 */
  z-index: 1000;
  overflow: hidden;
}

.search-modal-content {
  position: relative;
  width: 90%;
  max-width: 620px;
  min-width: 300px;
  height: auto;
  max-height: 80vh;
  border-radius: 16px;
  opacity: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 16px;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  margin: 20px;
}

/* 搜索输入框容器 */
.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

#search-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

/* 搜索框文本选择样式 */
 #search-input::selection {
   background-color: #1677FF; /* 选中文本的背景色 */
   color: #FFFFFF; /* 选中文本的颜色 */
 }

#search-input::-moz-selection {
  background-color: #1677FF; /* Firefox 选中文本的背景色 */
  color: #FFFFFF; /* Firefox 选中文本的颜色 */
}

/* 搜索框光标颜色 */
#search-input {
  caret-color: #333333; /* 光标颜色 */
}


.close-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: #666;
}

/* 标题样式 */
.section-title {
  width: 343px;
  height: 23px;
  font-family: Roboto, Roboto;
  font-weight: 700;
  font-size: 14px;
  color: #666666;
  line-height: 22px;
  text-align: left;
  font-style: normal;
  text-transform: none;
}
/*热门搜索*/
#popular-searches {
  display: flex;
  flex-direction: column;
}
#popular-searches .keyword {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  width: 317px;
  height: 23px;
  font-family: Roboto, Roboto;
  font-weight: 400;
  font-size: 16px;
  color: #999999;
  line-height: 19px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-top: 10px;
}
#popular-searches .keyword svg {
  margin-right: 4px;
}
/* 历史搜索 */
#search-history .keyword {
  display: inline-block;
  padding: 6px 12px;
  margin: 5px 5px 5px 0;
  background-color: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#popular-searches .keyword:hover,
#search-history .keyword:hover {
  background-color: #e0e0e0;
}

/* 提示文字 */
#press-enter {
  color: #999;
  font-size: 14px;
  text-align: center;
  margin-top: 10px;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.clear-btn {
  font-size: 16px;
  color: #666666;
  background: none;
  border: none;
  cursor: pointer;
}

.clear-btn:hover {
  color: #666;
}

/* 登录弹窗样式 */
.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: hidden;
}

.login-modal-content {
  width: 90%;
  max-width: 400px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
}

.login-modal-content h2 {
  font-size: 20px;
  margin-bottom: 24px;
  color: #333;
}

#get-code-btn {
  position: relative;
  padding: 12px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  min-width: 80px;
}

#get-code-btn:disabled {
  background: #e0e0e0;
  color: #999;
  cursor: not-allowed;
}

#get-code-btn .countdown {
  display: none;
}

#get-code-btn.countdown-active .btn-text {
  display: none;
}

#get-code-btn.countdown-active .countdown {
  display: inline;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.form-group input[type="email"],
.form-group input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.code-input-wrapper {
  display: flex;
  gap: 8px;
}

.code-input-wrapper input {
  flex: 1;
}

.code-input-wrapper button {
  padding: 12px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
}

.code-input-wrapper button:hover {
  background: #e0e0e0;
}

.btn-login {
  width: 200px;
  height: 48px;
  padding: 13px 52px;
  background: #9E6DFC;
  color: white;
  border: none;
  border-radius: 33.5px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-login:hover {
  transform: scale(1.02);
}

/* 个人信息窗口 */

/* 用户信息窗口 - PC模式 */
.user-profile-modal {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  display: none;
}

.user-profile-modal.show {
  display: block;
}
.user-profile-content {
  display: flex;
  flex-direction: column;
  padding: 17px;
  gap: 17px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0px 0px 32px 0px rgba(0, 0, 0, 0.15);
  z-index: 3;
  position: absolute;
  right: 10%;
  top: 68px;
  width: 380px;
  height: 462.5px;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #E5E7EB;
}

/* 进一步优化用户信息文本的间距 */
.user-info {
  flex: 1;
  margin-left: 8px; /* 控制文字与头像的间距 */
}

.user-info h3 {
  margin: 0;
  font-size: 18px;
  font-family: Source Han Sans;
  font-size: 18px;
  font-weight: 350;
  line-height: 16px;
  letter-spacing: 0em;
  /*font-variation-settings: "opsz" auto;*/
  font-feature-settings: "kern" on;
  color: #333333;
  margin-bottom: 4px; /* 减小标题与ID之间的间距 */
}

.user-info p {
  margin: 0;
  font-family: Source Han Sans;
  font-size: 16px;
  font-weight: normal;
  line-height: 16px;
  letter-spacing: 0em;

  /*font-variation-settings: "opsz" auto;*/
  font-feature-settings: "kern" on;
  /* 浅灰 */
  color: #999999;
}

.edit-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: Source Han Sans;
  font-size: 16px;
  font-weight: normal;
  line-height: 22.4px;
  text-align: right;
  display: flex;
  align-items: center;
  letter-spacing: 0px;

  /* 浅灰 */
  color: #999999;
}

.edit-btn svg {
  width: 16px;
  height: 16px;
}

.coins-section {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F3E8FF;
  padding: 10px;
  border-radius: 8px;
}

.coins-icon svg {
  color: #8B5CF6;
}

#coin-count {
  font-size: 16px;
  color: #8B5CF6;
}

.vip-section {
  background: linear-gradient(135deg, #D946EF, #8B5CF6);
  color: white;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.vip-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;

  font-family: Source Han Sans;
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0em;

  /*font-variation-settings: "opsz" auto;*/
  font-feature-settings: "kern" on;
  /* 纯白 */
  color: #FFFFFF;
}

.vip-badge svg {
  color: white;
  width: 23px;
  height: 18px;
}

.vip-section p {
  margin: 4px 0;
  font-size: 16px;
  text-align: left;
  top: 53px;
  /* width: 190px;
  height: 23px; */
  font-family: Source Han Sans;
  font-weight: normal;
  line-height: normal;
  display: flex;
  /*font-variation-settings: "opsz" auto;*/
  font-feature-settings: "kern" on;
  color: rgba(255, 255, 255, 0.8);
}

#vip-status {
  font-size: 14px;
  opacity: 0.9;
}

.menu {
  background-color: #FFFFFF;
}
.menu__search input {
  background-color: #f0f0f0
}
.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: #1F2937;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.menu-item:hover {
  color: #8B5CF6;
}

.logout-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.btn-logout {
  background: none;
  border: none;
  color: #6B7280;
  font-size: 14px;
  cursor: pointer;
}

/* 圆形复选框样式 - 显示对勾符号 */
.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #9E6DFC;
}

.remember-me input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #9E6DFC;
  border-radius: 50%;
  background-color: #9E6DFC;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.remember-me input[type="checkbox"]::after {
  content: "✔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: white;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.2s ease;
  opacity: 0;
}

.remember-me input[type="checkbox"]:checked::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.agreement-text {
  font-size: 14px;
  color: #666;
  margin: 20px 0;
  text-align: center;
}

.policy-links {
  margin-top: 8px;
  line-height: 1.4;
}

.policy-links a {
  color: #7b55ff;
  text-decoration: underline;
  margin: 0 4px;
}

.agreement-text a {
  color: #7b55ff;
  text-decoration: underline;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 14px;
  color: #666;
}

.footer-logo img {
  width: 138px;
  height: 40px;
  border-radius: 8px;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

.footer-logo-line {
  text-align: left;
  margin: 0;
}

.close-btn {
  position: absolute;
  top: 21px;
  right: 16px;
  background: none;
  border: none;
  font-size: 40px;
  cursor: pointer;
  color: #999;
}

.close-btn:hover {
  color: #666;
}

/* 下载弹窗关闭按钮 */
.download-modal .close-modal-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border: none;
  font-size: 20px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1001;
  border-radius: 4px;
}

.download-modal .close-modal-btn:hover {
  color: #666;
  background: #f0f0f0;
}

