:root {
  /* 颜色变量 */
  --color-default: #ffffff;
  --color-primary: #9e43ff;
  --color-primary-hover: #b876ff;

  --color-icon-hover: #32303f;

  --color-background: #0d0d12;

  /* aigc 表单 */
  --color-aigc-form-bg: #1c1c26;
  --color-aigc-form-box-bg: #2f2f38;
  --color-aigc-form-box-hover: #3c3c47;
  --color-aigc-form-box-border: #454552;
  --color-aigc-form-ratio-box: #4c4a5b;

  /* --color-input: #2f2f38; */

  --color-border: #4c4a5b;

  /* sidebar */
  --color-nav-hr: #1c1f1f;
  --color-nav-hover: #201e2a;

  /* 文本色 */
  --color-text: #ffffff;
  --color-text-secondary: #999;
  --color-text-subTitle: #bbb;
  --color-text-disable: #666;

  /* 按钮色 */
  --color-btn-text: #ffffff;
  --color-btn-login: #0d0d12;
  --color-btn-login-bg: #ffffff;

  /* 字体变量 */
  --font-family: "Inter", sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 16px;
  --font-size-lg: 20px;
  /* --font-size-xl: 24px; */

  --font-weight-base: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-sm: 18px;
  --line-height-base: 22px;
  --line-height-md: 24px;
  --line-height-lg: 28px;
  /* --line-height-xl: 36px; */

  /* 动画变量 */
  --transition-base: all 0.3s ease;

  /* header 高度 */
  --header-height: 68px;

  /* 按钮 */
  --btn-submit-size: 18px;
  --btn-submit-disable-bg: #0d0d12;

  --bg-gradient-color: linear-gradient(90deg, #4c47fe 0%, #972eff 100%);
  --text-gradient-color: linear-gradient(270deg, #5b66fe 0%, #ce48ff 100%);
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  font-weight: var(--font-weight-base);
  color: var(--color-text);
  background-color: var(--color-background);
}

a {
  cursor: pointer;
  text-decoration: none;
  user-select: none;
}

button {
  cursor: pointer;
}

.scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.scrollbar::-webkit-scrollbar-thumb {
  background-color: rgba(138, 138, 138, 0.4);
  border-radius: 3px;
}

.scrollbar textarea::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0);
}

.scrollbar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0);
  border-radius: 3px;
}

.publicity-btn {
  width: 280px;
  height: 52px;
  padding: 2px;
  border-radius: 12px;
  background: linear-gradient(
    360deg,
    rgba(91, 102, 254, 1),
    rgba(206, 72, 255, 1)
  );
  position: relative;
  transition: all 0.3s ease;
}

.publicity-btn .inner-box {
  height: 100%;
  border-radius: 10px;
  background: #0d0d12;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 16px;
  font-family: sans-serif;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

/* 渐变发光层 */
.publicity-btn::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 16px;
  background: linear-gradient(
    360deg,
    rgba(91, 102, 254, 1),
    rgba(206, 72, 255, 1)
  );
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.publicity-btn:hover {
  background: none; /* 去掉边框背景 */
}

.publicity-btn:hover::after {
  opacity: 0.9;
}

.publicity-btn .inner-box:hover {
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.15);
}

/* // 背景渐变背景 */
.bg-gradient {
  background: var(--bg-gradient-color);
}

/* // 背景渐变 hover 背景 */
.bg-gradient-hover:hover {
  background: var(--bg-gradient-color);
}

/* 基础文本样式 */
.text-base {
  font-size: 14px;
  line-height: 22px;
}

.text-base:hover {
  background: var(--text-gradient-color);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 文本 hover渐变 */
.text-hover-gradient:hover {
  background: var(--text-gradient-color);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* // 边框渐变背景 */
.border-gradient-box {
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  padding: 2px;
}

.border-gradient-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/border-gradient.png") no-repeat;
  background-size: cover;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.border-gradient-box:hover::before {
  opacity: 1;
}

.video-card {
  border-radius: 8px;
  background: #1c1a24;
  cursor: pointer;
  position: relative;
}

.card-info {
  background: linear-gradient(
    180deg,
    rgba(13, 13, 18, 0) 0%,
    rgba(13, 13, 18, 0.9) 100%
  );
}

.submenu {
  position: absolute;
  bottom: 30px;
  right: 0px;
  width: 112px;
  background: #393749;
  color: white;
  border-radius: 8px;
  box-sizing: border-box;
  z-index: 2;
  border: 1px solid #4a475a;
}

.submenu li.share-li {
  position: relative;
}

.submenu li.share-li:hover {
  .towMenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
}

.towMenu {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease-in-out;
  position: absolute;
  left: 100px;
  /* 调整位置与父级菜单对齐 */
  top: -6px;
  width: 150px;
  background: #393749;
  color: white;
  border-radius: 8px;
  box-sizing: border-box;
  z-index: 3;
  border: 1px solid #4a475a;
}

.submenu ul {
  list-style: none;
  padding: 6px;
}

.submenu li {
  margin: 2px 0;
  height: 28px;
  display: flex;
  align-items: center;
  font-size: 12px;
  display: flex;
  align-items: center;

  padding-left: 6px;

  span {
    margin-left: 3px;
  }
}

.submenu > ul > li:hover,
.towMenu > ul > li:hover {
  background: #31303e;
  border-radius: 4px;
}

.submenu > ul > li:hover > span,
.towMenu > ul > li:hover > span {
  background: var(--text-gradient-color);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.submenu .download:hover .download-icon {
  background-image: url("../images/icon/download-hover.png");
}

.submenu .download-icon {
  background-image: url("../images/icon/download.png");
}

.submenu .share-li:hover .share-li-icon {
  background-image: url("../images/icon/share-hover.png");
}

.submenu .share-li-icon {
  background-image: url("../images/icon/share.png");
}

.submenu .link:hover .link-icon {
  background-image: url("../images/icon/link-hover.png");
}

.submenu .link-icon {
  background-image: url("../images/icon/link.png");
}

.towMenu .shareX:hover .shareX-icon {
  background-image: url("../images/icon/share-x-hover.png");
}

.towMenu .shareX-icon {
  background-image: url("../images/icon/share-x.png");
}

.towMenu .shareF:hover .shareF-icon {
  background-image: url("../images/icon/share-f-hover.png");
}

.towMenu .shareF-icon {
  background-image: url("../images/icon/share-f.png");
}

.masonry-grid {
  width: 100%;
  margin: 0 auto;
}

.masonry-item {
  width: calc(25% - 16px);
  margin-bottom: 16px;
  break-inside: avoid;
}

@media (max-width: 1024px) {
  .masonry-item {
    width: calc(50% - 12px);
  }
}

@media (max-width: 640px) {
  .masonry-item {
    width: 100%;
  }
}

/* tabs */
#tabs .tab.isActive {
  color: #fff;
}

#inspiration-value-detail #tabs .tab.isActive {
  color: #333;
}

/* form input error */
.form-input-error {
  border-color: #ff7070;
}

#check-in-modal .modal-content {
  background-image: url("../images/check-in/bg-img.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 1024px) {
  #check-in-modal .modal-content {
    background-image: none;
    background-color: #fff;
  }
}

#check-in-modal .day-item {
  height: 150px;
  width: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 11px;
  /* background: #ffffff; */
  color: #999;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
}
#check-in-modal .day-item.isSelected {
  background: url("../images/check-in/border.png");
  height: 150px;
  width: 116px;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  border: none;
}
#check-in-modal .check-box.is-checked > div {
  border-color: var(--color-primary);
}

#check-in-modal .check-box.is-checked svg {
  opacity: 1;
}

.thumb {
  cursor: pointer;
  touch-action: none;
}

.upgrade-popular-tag {
  position: absolute;
  top: -16px;
  left: -2px;
  width: 120px;
  height: 32px;
  background: linear-gradient(47deg, #c25dfd 0%, #7f2fff 100%);
  border-radius: 16px 16px 16px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  line-height: 17px;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.animate-shimmer {
  animation-duration: 2s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-name: shimmer;
  animation-timing-function: linear;
}

/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/inter-v19-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/inter-v19-latin-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/inter-v19-latin-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/inter-v19-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
