/* 常规体 */
@font-face {
  font-family: "MyCustomFont";
  src: url("./font/RESOURCEHANROUNDEDCN-REGULAR.TTF") format("truetype");
  font-weight: normal;
  /* 或 400 */
  font-style: normal;
  font-display: swap;
  /* 强烈建议加，防止 FOIT 闪烁 */
}

/* 粗体 */
@font-face {
  font-family: "MyCustomFont";
  src: url("./font/RESOURCEHANROUNDEDCN-BOLD.TTF") format("truetype");
  font-weight: bold;
  /* 或 700 */
  font-style: normal;
  font-display: swap;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "MyCustomFont",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

header {
  background: linear-gradient(119.36deg, #d8ebf4 0%, #fbecf2 100%);
  padding: 16px 0;
  width: 100%;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #3498db;
  text-decoration: none;
}
.logo img {
  height: 1.75rem;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}
.nav-links li.user-info {
  display: flex;
  align-items: center;
  display: none;
}
.nav-links li.user-info img {
  width: 32px;
  height: 32px;
  display: block;
  margin-right: 8px;
}
.nav-links li.user-info #username {
  color: #222;
  font-size: 14px;
  font-style: regular;
}
.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-links a.bench {
  font-weight: bold;
  font-size: 16px;
  color: #222;
  border: 2px solid #222222;
  box-shadow: 3px 3px 0px 0px #222222;
  padding: 6px 16px;
  border-radius: 16px;
  background-color: #fff;
}
.nav-links .login {
  font-style: bold;
  font-weight: 700;
  font-size: 16px;
  display: none;
}
.nav-links a:hover {
  color: #3498db;
}

.nav-links .user-info {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-links .user-info {
  position: relative;
  cursor: pointer;
  padding-bottom: 10px;
  display: none;
}

.nav-links .user-info-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links .user-info img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.nav-links .user-info #username {
  font-weight: 700;
  font-size: 16px;
  color: #333;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links .user-info .dropdown-toggle {
  font-size: 12px;
  color: #333;
  transition: transform 0.3s ease;
}

.nav-links .user-info:hover .dropdown-toggle {
  transform: rotate(180deg);
}

.nav-links .dropdown-menu {
  position: absolute;
  top: 90%;
  right: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  display: none;
  z-index: 1000;
  border: 0.041667rem solid #222;
  border-radius: 16px;
  font-size: 0.583333rem;
  font-weight: 700;
  overflow: hidden;
  color: #222;
}

.nav-links .user-info:hover .dropdown-menu {
  display: block;
}

.nav-links .dropdown-item {
  display: block;
  padding: 9px 24px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.nav-links .dropdown-item:hover {
  /* background-color: #f5f5f5; */
}

.nav-links .dropdown-item.logout {
  color: #222;
  font-weight: bold;
}

.nav-links .dropdown-item.logout:hover {
  /* background-color: #ffe6e6; */
}

.hero {
  color: #fff;
  padding: 48px 32px;
  border-radius: 8px;
  text-align: center;
}

.hero h1 {
  font-size: 56px;
  font-style: Bold;
  color: #ffffff;
  /* text-shadow: 5px 5px 1px #222222; */
  text-align: center;
  margin-bottom: 14px;
  font-weight: 900;
  -webkit-text-stroke: 5px #222;
  letter-spacing: -0.09rem;
  paint-order: stroke;
  z-index: 2;
  position: relative;
}
.hero h2 {
  font-size: 48px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 5px 5px 0rem #222222;
  text-align: center;
  margin-bottom: 14px;
  paint-order: stroke;
  -webkit-text-stroke: 4px #222;
}
.hero h3 {
  font-weight: 900;
  font-style: Bold;
  font-size: 24px;
  line-height: 100%;
  text-align: center;
  paint-order: stroke;
  /* text-shadow: 3px 3px 0px #FF7914; */
  -webkit-text-stroke: 4px #ff7914;
  z-index: 2;
  position: relative;
}
.hero-content {
  position: relative;
}
.hero-content .copy-text {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 100%;
  color: #ff7914;
  -webkit-text-stroke: 4px #ff7914;
}
.hero-content h1.copy-text {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 100%;
  color: #222527;
  -webkit-text-stroke: 4px #222527;
}
.hero p {
  font-size: 22px;
  margin-bottom: 48px;
  max-width: 905px;
  margin-left: auto;
  margin-right: auto;
  color: #222;
  font-weight: bold;
}

.btn {
  display: inline-block;
  background: linear-gradient(90deg, #ff3f64 0%, #ff6d00 100%);
  color: #fff;
  padding: 18px 32px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: bold;
  font-size: 24px;
  width: 280px;
  transition: all 0.3s ease;
  box-shadow: 4px 4px 0px 0px #222222;
}

.btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.two-column-layout {
  padding: 112px 0;
  background: linear-gradient(119.36deg, #feeddb 0%, #e3dff0 100%);
  width: 100%;
  opacity: 0;
  transform: translateY(50px) rotateX(15deg) scale(0.9);
  transition:
    opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.two-column-layout.animate {
  opacity: 1;
  transform: translateY(0) rotateX(0) scale(1);
}

.ai-column-layout {
  background: linear-gradient(119.36deg, #d8ebf4 0%, #fbecf2 100%);
  transform: translateX(-50px) rotateY(-15deg) scale(0.8);
  transition:
    opacity 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-column-layout.animate {
  transform: translateX(0) rotateY(0) scale(1);
}

.screenshot-column-layout {
  background: linear-gradient(119.36deg, #f5d6f3 0%, #ffebd4 100%);
  transform: translateX(50px) rotateX(-15deg) scale(0.8);
  transition:
    opacity 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    transform 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.screenshot-column-layout.animate {
  transform: translateX(0) rotateX(0) scale(1);
}

.more-column-layout {
  background: linear-gradient(119.36deg, #d2e9f3 0%, #e2f0f3 100%);
  transform: translateY(80px) rotateY(15deg) scale(0.95);
  transition:
    opacity 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.more-column-layout.animate {
  transform: translateY(0) rotateY(0) scale(1);
}

.step-column-layout {
  background: linear-gradient(119.36deg, #cae8f6 0%, #fcebf1 100%);
  transform: translateY(-50px) rotateX(15deg) scale(0.9);
  transition:
    opacity 1.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    transform 1.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step-column-layout.animate {
  transform: translateY(0) rotateX(0) scale(1);
}
.column-container {
  /* max-width: 1200px; */
  margin: 0 auto;
  display: flex;
  gap: 78px;
  padding: 0 2rem;
  justify-content: center;
  align-items: center;
}
.more-column-layout .column-container {
  grid-template-columns: 1fr 1fr 1fr;
}
.more-column-layout h1 {
  font-size: 56px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 5px 5px 0rem #222222;
  text-align: center;
  -webkit-text-stroke: 4px #222;
  margin-bottom: 50px;
  paint-order: stroke;
}
.step-column-layout h1 {
  margin-bottom: 24px;
}
.step-column-layout h3 {
  font-size: 22px;
  font-weight: bold;
  color: #222;
  text-align: center;
  margin-bottom: 66px;
}
.column {
  display: flex;
  justify-content: center;
  align-items: center;
}

.column img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.column img:hover {
  transform: scale(1.05);
}

footer {
  background-color: #282c58;
  color: #fff;
  padding: 3rem 0;
}

/* 视频弹窗样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  /* background-color: rgba(0,0,0,0.9); */
}

.modal-content {
  position: relative;
  background: #ffe9d3;
  margin: 5% auto;
  padding: 26px;
  border: 1.81px solid #e6c5a4;
  box-shadow: 8px 8px 0px 0px #e6c5a4;
  width: 80%;
  max-width: 1276px;
  border-radius: 30px;
}

.close {
  position: absolute;
  top: 43px;
  right: 52px;
  color: #aaa;
  width: 34px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#video-player {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 28px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-content h3 {
  margin-bottom: 1rem;
  color: #3498db;
}

.footer-content p,
.footer-content li {
  margin-bottom: 0.5rem;
  color: #ccc;
}

.footer-content ul {
  list-style: none;
}

.footer-content a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-content a:hover {
  color: #3498db;
}

.footer-bottom {
  text-align: center;
  color: #ccc;
}

.scroll-module {
  width: 100%;
  padding: 64px 0;
  padding-bottom: 48px;
  white-space: nowrap;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.scroll-row {
  display: flex;
  animation: scroll 15s linear infinite;
}

.scroll-left {
  animation-direction: normal;
}

.scroll-right {
  animation-direction: reverse;
  margin-top: 40px;
}

.scroll-item {
  flex-shrink: 0;
  padding: 32px 24px;
  font-size: 24px;
  font-weight: 700;
  color: #333;
  background-color: #fff;
  border-radius: 32px;
  margin-right: 32px;
  border: 2px solid #222222;
  box-shadow: 5px 5px 0px 0px #222222;
  cursor: pointer;
  transition: transform 0.3s ease;
  transform-origin: bottom;
}

.scroll-module:hover .scroll-row {
  animation-play-state: paused;
}

.scroll-item:hover {
  transform: scaleY(1.5) rotateX(30deg);
  z-index: 1000;
  position: relative;
}

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

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    margin-top: 1rem;
    flex-direction: column;
  }

  .nav-links li {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .scroll-item {
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    margin-right: 0.5rem;
  }

  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
