@font-face {
  font-family: "HarmonyOS Sans";
  src: url("assets/fonts/HarmonyOS_Sans_Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "HarmonyOS Sans";
  src: url("assets/fonts/HarmonyOS_Sans_Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "HarmonyOS Sans";
  src: url("assets/fonts/HarmonyOS_Sans_Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "HarmonyOS Sans", "Segoe UI", "Microsoft Yahei", sans-serif;
  color: #080808;
  background: #f8f8f8;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  scrollbar-width: thin;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f8f8f8;
  color: #080808;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5714285714;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  max-width: 100%;
  height: 64px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 64px;
  padding: 0 24px;
  background: rgb(248 248 248 / 40%);
  border-bottom: 1px solid rgb(0 0 0 / 8%);
  backdrop-filter: saturate(1.5) blur(8px);
}

.brand-slot {
  position: relative;
  z-index: 10;
  display: flex;
  flex: 0 1 0%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  height: 36px;
  font-size: 22px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
}

.brand-avatar {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 50%;
}

.brand-avatar img {
  display: block;
  width: 34px;
  height: 34px;
}

.desktop-nav {
  position: relative;
  display: flex;
  flex: 1 1 0%;
  align-items: center;
  height: 66px;
  margin-left: 48px;
  overflow: hidden;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  height: 34px;
  margin: 16px 4px 16px 0;
  padding: 6px 12px;
  color: #666;
  line-height: 22px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #080808;
}

.nav-link.active::after {
  position: absolute;
  right: 0;
  bottom: -16px;
  left: 0;
  height: 2px;
  background: #222;
  content: "";
}

.header-actions {
  position: relative;
  z-index: 10;
  display: flex;
  flex: 1 1 0%;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}

.actions-spacer {
  flex: 1 1 auto;
}

.search-box {
  position: relative;
  display: inline-flex;
  flex: 0 0 220px;
  align-items: center;
  width: 220px;
  height: 36px;
  padding: 0 8px 0 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: transparent;
  cursor: text;
}

.search-icon {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  fill: transparent;
  stroke: #999;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.search-box input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 54px 0 0;
  color: #080808;
  background: transparent;
  border: 0;
  outline: 0;
}

.search-box input::placeholder {
  color: #bbb;
}

.search-box:focus-within {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgb(5 145 255 / 10%);
}

.search-box kbd {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 5;
  display: block;
  height: 22px;
  margin: 0;
  padding: 0 7px;
  color: #999;
  background: #fbfbfb;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.icon-button {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  color: #999;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.icon-button:hover {
  color: #555;
  background: rgb(0 0 0 / 4%);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: transparent;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.appearance-button {
  margin-left: 8px;
}

.mobile-menu,
.mobile-drawer,
.appearance-menu {
  display: none;
}

.appearance-menu {
  position: absolute;
  top: 42px;
  right: 0;
  min-width: 156px;
  padding: 4px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgb(0 0 0 / 10%);
}

.appearance-menu.open {
  display: grid;
}

.appearance-menu button {
  padding: 7px 10px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.appearance-menu button:hover {
  background: #f4f4f4;
}

.appearance-menu button[aria-checked="true"] {
  color: #1677ff;
  background: #eaf4ff;
}

.menu-section-title {
  padding: 4px 10px 2px;
  color: #999;
  font-size: 12px;
}

.menu-divider {
  height: 1px;
  margin: 4px 6px;
  background: #eee;
}

main {
  position: relative;
  display: flex;
  align-items: stretch;
}

.page-section {
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
}

.page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 64vh;
  padding: 64px 24px;
  gap: 64px;
}

.hero-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-panel {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  top: -250px;
  left: 50%;
  z-index: 10;
  width: 600px;
  height: 400px;
  background: linear-gradient(-45deg, #ffb224, #e34ba9, #0072f5, #95f3d9);
  background-size: 400% 400%;
  filter: blur(100px);
  opacity: 0.2;
  transform: translateX(-50%) scale(1.5);
  animation: gradient-flow 5s ease 5s infinite;
  pointer-events: none;
}

.hero-copy {
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  position: relative;
  z-index: 10;
  margin: 0;
  padding: 0;
  font-size: 100px;
  font-weight: 700;
  line-height: 1.5714285714;
  white-space: nowrap;
}

h1 b {
  position: relative;
  z-index: 5;
  background: linear-gradient(-45deg, #ffb224, #e34ba9, #0072f5, #95f3d9);
  background-size: 400% 400%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 5s ease 5s infinite;
}

.hero-copy p {
  margin: 0 0 24px;
  color: #666;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5714285714;
  text-align: center;
  white-space: nowrap;
}

.hero-copy p b {
  color: red;
  font-weight: 700;
}

html[lang="en"] h1 {
  font-size: 82px;
  line-height: 1.5714285714;
}

html[lang="en"] .hero-copy p {
  max-width: 820px;
  font-size: 22px;
  white-space: normal;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.web-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 154px;
  height: 45px;
  padding: 0 32px;
  color: #080808;
  background: linear-gradient(-45deg, #ffb224, #e34ba9, #0072f5, #95f3d9);
  background-size: 400% 400%;
  border: 0;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
  cursor: pointer;
  animation: gradient-flow 5s ease 5s infinite;
}

.web-button::before {
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: #f8f8f8;
  border-radius: 7px;
  content: "";
}

.button-glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(-45deg, #ffb224, #e34ba9, #0072f5, #95f3d9);
  background-size: 400% 400%;
  border-radius: 8px;
  filter: blur(18px);
  opacity: 0.3;
  animation: gradient-flow 5s ease 5s infinite;
}

.perspective-grid {
  position: relative;
  width: 120%;
  max-width: 960px;
}

.perspective-grid svg {
  width: 100%;
}

.grid-scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  fill: none;
  stroke: #080808;
  stroke-width: 4;
  -webkit-mask-image: linear-gradient(to bottom, transparent 10%, #000 50%, transparent 90%);
  -webkit-mask-position: 100% 0;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 50%;
  animation: grid-scan 8s cubic-bezier(0.62, 0.62, 0.28, 0.67) infinite;
}

.scan-one {
  animation-delay: 0.94s;
}

.scan-two {
  animation-delay: 2.86s;
}

.scan-three {
  animation-delay: 4.98s;
}

.gallery-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 32px;
  gap: 32px;
}

.gallery-viewport {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  width: 100vw;
  padding: 16px;
}

.gallery-grid img {
  display: block;
  width: 100%;
  min-height: 300px;
  object-fit: cover;
}

footer {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.upload-main {
  min-height: 0;
}

.upload-section {
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
  overflow: visible;
}

.upload-glow {
  position: absolute;
  top: -100px;
  right: -20vw;
  z-index: 0;
  width: 60vw;
  height: 200px;
  background: linear-gradient(-45deg, #ffb224, #e34ba9, #0072f5, #95f3d9);
  background-size: 400% 400%;
  filter: blur(100px);
  opacity: 0.2;
  transform: rotate(4deg);
  animation: gradient-flow 5s ease 5s infinite;
  pointer-events: none;
}

.upload-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

.upload-column {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 24px;
}

.upload-spacer {
  height: 0;
}

.upload-card {
  flex: 1 1 auto;
  width: 100%;
  margin: 0;
  padding: 24px 48px;
  background: #fff;
  border-radius: 10px;
}

.upload-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.upload-body h1 {
  position: static;
  z-index: auto;
  margin: 0.67em 0;
  color: #080808;
  font-size: 28px;
  font-weight: 700;
  line-height: 44px;
  white-space: normal;
}

.upload-body h2 {
  max-width: 100%;
  margin: 0.83em 0 0;
  color: #080808;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.upload-body h5 {
  width: fit-content;
  max-width: 100%;
  font-weight: 700;
}

.upload-notice {
  margin: 1.67em 0 0;
  color: red;
  font-size: 14px;
  line-height: 22px;
}

.upload-limit {
  margin: 1.67em 0;
  color: #080808;
  font-size: 11.62px;
  line-height: 18.26px;
}

.upload-form {
  width: 100%;
  height: 102px;
  margin-top: 8px;
}

.description-input {
  display: block;
  width: 100%;
  height: 36px;
  margin: 0 0 8px;
  padding: 0 12px;
  color: #080808;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: 0;
}

.description-input::placeholder {
  color: #bbb;
}

.description-input:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgb(5 145 255 / 10%);
}

.file-picker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 76px;
  overflow: hidden;
  color: #555;
  background: #f0eeee;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 450;
  cursor: pointer;
}

.file-picker:hover {
  background: #e9e7e7;
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file-picker-status {
  display: none;
}

.file-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.file-preview figure {
  min-width: 0;
  margin: 0;
}

.file-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 5px;
}

.file-preview figcaption {
  overflow: hidden;
  margin-top: 3px;
  color: #666;
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[lang="en"] .upload-body h1 {
  font-size: 28px;
}

html[lang="en"] .upload-body h2,
html[lang="en"] .upload-body h5 {
  width: 100%;
  text-align: left;
}

@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes grid-scan {
  0% {
    -webkit-mask-position: 100% 0%;
  }
  16%,
  100% {
    -webkit-mask-position: 100% 200%;
  }
}

@media (max-width: 767px) {
  .header-inner {
    padding: 0 12px;
  }

  .mobile-menu {
    z-index: 11;
    display: flex;
    order: 0;
    width: 36px;
    height: 36px;
    color: #999;
  }

  .brand-slot {
    order: 1;
    flex: 1 1 0%;
    overflow: hidden;
  }

  .brand {
    height: 32px;
    font-size: 18px;
    line-height: 18px;
  }

  .brand-avatar {
    width: 32px;
    height: 32px;
  }

  .brand-avatar img {
    width: 30px;
    height: 30px;
  }

  .desktop-nav {
    display: none;
  }

  .header-actions {
    order: 2;
    flex: 0 0 34px;
    width: 34px;
  }

  .actions-spacer,
  .search-box {
    display: none;
  }

  .appearance-button {
    margin-left: 0;
  }

  .mobile-drawer {
    position: absolute;
    top: 56px;
    left: 12px;
    z-index: 20;
    width: 148px;
    padding: 5px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
  }

  .mobile-drawer.open {
    display: grid;
  }

  .mobile-drawer a {
    padding: 8px 10px;
    border-radius: 4px;
  }

  .mobile-drawer a:hover,
  .mobile-drawer a.active {
    background: #f4f4f4;
  }

  .appearance-menu {
    top: 42px;
    right: 0;
  }

  .hero-glow {
    top: -325px;
    width: 300px;
    height: 450px;
    filter: blur(80px);
    transform: translateX(-50%);
  }

  h1 {
    display: flex;
    font-size: 58px;
    line-height: 1.2;
  }

  .hero-copy p {
    margin: 24px 16px;
    font-size: 16px;
    line-height: 1.5714285714;
  }

  html[lang="en"] h1 {
    font-size: 36px;
    line-height: 1.3;
  }

  html[lang="en"] .hero-copy p {
    width: 342px;
    margin: 24px 0;
    font-size: 15px;
    line-height: 1.55;
  }

  .upload-page .site-header {
    height: 100px;
  }

  .upload-main {
    min-height: 0;
  }

  .upload-glow {
    top: -100px;
    right: -195px;
    width: 390px;
  }

  .upload-container {
    max-width: none;
    padding: 0;
  }

  .upload-column {
    gap: 36px;
  }

  .upload-column .upload-spacer:first-child {
    display: none;
  }

  .upload-card {
    padding: 8px 16px;
    border-radius: 0;
  }

  html[lang="en"] .upload-body h1 {
    font-size: 24px;
    line-height: 36px;
    text-align: center;
  }

  html[lang="en"] .upload-body h2,
  html[lang="en"] .upload-body h5 {
    text-align: left;
  }

  .file-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
