

:root {
  /* Base colors */
  --color-primary: #006cd8;
  --color-secondary: #303a4d;
  --color-background: #000;
  --color-text: #fff;
  --color-text-muted: #a0a0a0;
  --color-border: #333;

  /* Font settings */
  --font-primary: "Futura PT", "Inter", sans-serif;
  --font-secondary: "Inter", sans-serif;
  --font-size-base: 1rem;
  --font-size-small: 0.875rem;
  --font-size-large: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 2rem;
  --font-size-title: 3.5rem;

  /* Spacing */
  --space-xs: 0.625rem;
  --space-sm: 0.938rem;
  --space-md: 1.25rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-xxl: 3.75rem;

  /* Layout */
  --container-width: 72.624rem;
  --container-padding: 0.938rem;
  --header-height: 5rem;

  /* Transitions */
  --transition-fast: 0.3s;
  --transition-slow: 0.5s;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  border: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:focus,
:active {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

nav,
footer,
header,
aside {
  display: block;
}

html,
body {
  height: 100%;
  width: 100%;
  line-height: 1;
  font-size: 16px;
  text-size-adjust: 100%;
}

body.light-theme {
  --color-background: #fff;
  --color-text: #333;
  --color-text-muted: #9b9b9b;
  --color-border: #e5e5e5;
  --color-secondary: #006cd8;
}

.logo {
  font-weight: 700;
  font-size: var(--font-size-large);
  font-family: var(--font-secondary);
  color: var(--color-text);
  text-decoration: none;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-background);
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);

  /* Disable text selection to prevent copying */
  user-select: none;
}

.protected-media {
  /* Prevent context menu */
  user-select: none;

  /* Prevent dragging */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;

  /* Prevent saving through pointer events, but allow interaction */
  pointer-events: auto;

  /* Add subtle watermark-like effect */
  position: relative;
}

.project-detail__image img.protected-media::after {
  content: "© RAN 2025";
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 12px;
  color: rgb(255 255 255 / 70%);
  padding: 2px 5px;
  border-radius: 3px;
  background-color: rgb(0 0 0 / 30%);
  pointer-events: none;
  z-index: 10;
}

.video-protection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  cursor: pointer;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-detail__video {
  position: relative;
  overflow: hidden;
}

.video-custom-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

.video-play-button {
  width: 80px;
  height: 80px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 8px rgb(0 0 0 / 20%);
}

.project-detail__video:hover .video-play-button {
  opacity: 0.9;
  background-color: var(--color-primary);
  transform: scale(1.05);
}

.video-play-button svg {
  width: 28px;
  height: 28px;
}

.video-play-button path {
  fill: #3b3b3b;
  stroke: #3b3b3b;
  stroke-width: 0.5;
}

.project-detail__video:hover .video-play-button path {
  fill: white;
  stroke: white;
}

@media (width <= 768px) {
  .header__container {
    justify-content: space-between;

    /* 确保两端对齐 */
  }

  .header__logo {
    flex: 0 1 auto;

    /* 防止logo被压缩 */
  }

  .header__navigation {
    flex: 0 1 auto;

    /* 防止导航被压缩 */
  }

  .video-play-button {
    width: 70px;
    height: 70px;
  }

  .video-play-button svg {
    width: 24px;
    height: 24px;
  }
}

@media (width <= 600px) {
  .header__container {
    justify-content: space-between;

    /* 保持两端对齐 */
  }

  .header__logo {
    font-size: 16px;

    /* 稍微减小logo字体大小 */
  }

  .header__nav-link {
    font-size: 16px;

    /* 保持与完整宽度一致的导航字体大小 */
  }
}

@media (width <= 576px) {
  .video-play-button {
    width: 60px;
    height: 60px;
  }

  .video-play-button svg {
    width: 20px;
    height: 20px;
  }
}

[class*="__container"] {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.button {
  font-weight: 600;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  transition: all var(--transition-fast);
  color: #fff;
  background-color: var(--color-primary);
}

.button:hover {
  opacity: 0.9;
}

.title {
  font-size: var(--font-size-title);
  font-weight: 600;
  color: var(--color-text);
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-background);
  z-index: 1000;
  transition: background-color var(--transition-fast);
}

.header__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);

  /* 在 1rem 和 3rem 之间平滑变化，首选值为 4vw */
  padding: clamp(1rem, 2vw, 2rem) clamp(1rem, 4vw, 3rem);
  max-width: 100%;
}

.header__logo {
  position: relative;
  z-index: 2;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 18.125px;
  line-height: 1.65em;
  flex: 0 1 auto;
}

.header__navigation {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
}

.header__nav-list {
  display: flex;
  gap: 14.5px;
}

.header__nav-item {
  list-style: none;
}

.header__nav-link {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5em;
  color: var(--color-text);
  transition: color var(--transition-fast);
  display: inline-block;
  padding: 5px 0;
  text-decoration: none;
}

.header__nav-link:hover {
  color: var(--color-primary);
}

.header__nav-link_active {
  color: var(--color-primary);
}

@media (width <= 400px) {
  .header__container {
    flex-wrap: nowrap;

    /* 保持不换行 */
    justify-content: space-between;

    /* 保持两端对齐 */
    align-items: center;

    /* 确保垂直居中 */
  }

  .header__logo {
    flex: 0 1 auto;

    /* 防止logo被压缩 */
    font-size: 14px;

    /* 进一步减小logo字体 */
  }

  .header__navigation {
    flex: 0 1 auto;

    /* 防止导航被压缩 */
  }

  .header__nav-link {
    font-size: 16px;

    /* 保持与完整宽度一致的导航字体 */
    padding: 3px 0;

    /* 减小导航链接的内边距 */
  }

  .back-to-top {
    bottom: 10px;
    right: 10px;
  }
}

@media (width <= 360px) {
  .header__container {
    justify-content: space-between;

    /* 保持两端对齐 */
  }

  .header__logo {
    font-size: 12px;

    /* 极小的logo字体 */
  }

  .header__nav-link {
    font-size: 16px;

    /* 保持与完整宽度一致的导航字体 */
    padding: 2px 0;

    /* 极小的内边距 */
  }

  .back-to-top {
    width: 35px;
    height: 35px;
  }

  .back-to-top svg {
    width: 12px;
    height: 12px;
  }
}

.portfolio {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio__container {
  width: 100%;
  max-width: 100%;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  padding: 2rem 0;
}

.portfolio__item {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  width: 100%;
  height: auto;
}

.portfolio__item a {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  text-decoration: none;
}

.portfolio__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio__title {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  padding: 0 1rem;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.portfolio__item:hover .portfolio__overlay {
  opacity: 1;
}

.portfolio__item:hover .portfolio__title {
  transform: translateY(0);
}

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

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #3b3b3b;
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  z-index: 999;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

.back-to-top path {
  stroke: white;
}

.footer_portfolio {
  background-color: transparent;
  padding: 2rem 0;
}

.footer_portfolio .footer__container {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer_portfolio .footer__copyright {
  font-size: 0.9375rem;
  font-weight: 400;
  text-align: center;
  line-height: 4.03;
}

.main {
  min-height: 100vh;
}

.footer {
  margin-top: auto;
  padding: clamp(1rem, 2vw, 2rem) 0;
  width: 100%;
}

.footer__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 0.938rem;
  text-align: center;
  display: flex;
  justify-content: center;
}

.footer__copyright {
  color: var(--secondary-color);
  font-size: 0.875rem;
  text-align: center;
}

.main_pages {
  min-height: 676px !important;
}

iframe {
  width: 100vw;
  height: 482px;
  filter: grayscale(100%);
}

.title {
  font-size: calc(var(--font-size-title) * 0.8);
}

.portfolio__grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (width <= 62.6875rem) {
  .footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
  }
}

@media (width <= 47.999rem) {
  .menu-open .menu-open .menu-open .menu-open .menu-open .title {
    font-size: 2rem;
  }

  .logo {
    font-size: var(--font-size-large);
  }
}

@media (width <= 61.936rem) {
  .footer__container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    row-gap: 0.938rem;
  }

  .logo {
    font-size: var(--font-size-large);
  }
}

@media (width <= 1200px) {
  .portfolio__container {
    padding: 0 var(--space-md);
  }

  .portfolio__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
}


.project-detail {
  padding: 6.875rem 0 3.75rem;
}

.project-detail__container {
  max-width: 73.5rem;
  margin: 0 auto;
  padding: 0 0.938rem;
}

.project-detail__header {
  text-align: center;
  max-width: 50rem;
  margin: 0 auto;
  padding: 6.25rem 0 1.25rem;
}

.project-detail__title {
  font-size: 3.125rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.project-detail__description {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.project-detail__image {
  width: 100%;
  margin-bottom: 1.25rem;
  overflow: hidden;
  margin-top: 0;
  padding: 0;
  background-color: var(--color-background);
}

.project-detail__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border: none;
}

.project-detail__section {
  margin: 3.75rem 0;
  text-align: center;
}

.project-detail__section-title {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.project-detail__video video {
  width: 100%;
}

.video-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.video-grid .project-detail__video {
  flex: 1;
  min-width: 30%;
  margin-bottom: 0;
}

.project-container {
  max-width: 1176px;
  margin: 0 auto;
  padding: 100px 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-header {
  max-width: 800px;
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.project-title {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 50px;
  line-height: 1em;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 20.5px;
}

.project-description {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 19.84px;
  line-height: 1.31em;
  text-align: center;
  color: var(--color-text-muted);
}

.banner-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 19.84px;
  line-height: 1.31em;
  text-align: center;
  color: var(--color-text-muted);
  margin: 60px 0 20px;
  text-decoration: none;
}

.related-projects {
  margin: 4rem 0 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgb(0 0 0 / 10%);
}

.related-projects__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.related-projects__navigation {
  display: flex;
  gap: 1rem;
}

.related-projects__title {
  font-size: 1.5rem;
  font-weight: 400;
  text-align: left;
  margin-bottom: 0;
  color: var(--color-text);
}

.related-projects__container {
  position: relative;
  max-width: 73.5rem;
  margin: 0 auto;
  padding: 0 0.938rem;
}

.related-projects__slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1rem;
  -ms-overflow-style: none;

  /* Hide scrollbar IE and Edge */
  scrollbar-width: none;

  /* Hide scrollbar Firefox */
  scroll-snap-type: x mandatory;

  /* 启用滚动捕捉 */
  padding: 0.5rem 0;
}

.related-projects__slider::-webkit-scrollbar {
  display: none;

  /* Hide scrollbar Chrome, Safari, Opera */
}

.related-projects__item {
  flex: 0 0 auto;
  width: calc(25% - 0.75rem);

  /* 4个项目一排 */
  min-width: 220px;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  scroll-snap-align: center;

  /* 滚动时居中对齐 */
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.related-projects__item--current {
  position: relative;
  cursor: default;
  border: 2px solid var(--color-primary);
  scroll-snap-align: center;
}

.related-projects__item--first {
  scroll-snap-align: start;
}

.related-projects__item--last {
  scroll-snap-align: end;
}

.related-projects__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-projects__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.related-projects__name {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  padding: 0 1rem;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.related-projects__item:hover .related-projects__overlay {
  opacity: 1;
}

.related-projects__item:hover .related-projects__name {
  transform: translateY(0);
}

.related-projects__item:hover .related-projects__image {
  transform: scale(1.05);
}

.related-projects__button {
  width: 40px;
  height: 40px;
  background-color: #3b3b3b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  border: none;
  transition: all 0.3s ease;
}

.related-projects__button:hover {
  opacity: 0.9;
  background-color: var(--color-primary);
}

.related-projects__button--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.related-projects__button--disabled:hover {
  opacity: 0.4;
  background-color: #3b3b3b;
}

.related-projects__button svg {
  width: 16px;
  height: 16px;
}

@media (width <= 992px) {
  .related-projects__item {
    width: calc(50% - 0.5rem);
  }
}

@media (width <= 576px) {
  .related-projects__container {
    padding: 0 0.938rem;
  }

  .related-projects__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .related-projects__item {
    width: calc(75% - 1rem);

    /* Show more than one item at a time */
    min-width: unset;
    aspect-ratio: 16/10;

    /* Increased height */
  }

  /* Add visual indicator of more items */
  .related-projects__slider {
    padding-bottom: 1.5rem;

    /* Add space for indicator dots */
    margin-bottom: 1rem;
    position: relative;
  }

  /* Add scroll indicator dots */
  .related-projects__slider::after {
    content: "• • •";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text);
    font-size: 1.2rem;
    letter-spacing: 0.5rem;
  }

  .related-projects__name {
    font-size: 1.25rem;

    /* Larger font size for better visibility */
  }

  .related-projects__button {
    width: 36px;
    height: 36px;
  }

  .related-projects__button svg {
    width: 14px;
    height: 14px;
  }
}

/* 相关项目当前项目样式 */
.related-projects__item--current {
  position: relative;
  cursor: default;
  border: 2px solid var(--color-primary);
}

.related-projects__item--current .related-projects__overlay {
  background-color: rgb(0 0 0 / 70%);
  opacity: 1 !important;

  /* 确保始终显示 */
}

.related-projects__item--current .related-projects__name {
  transform: translateY(0) !important;

  /* 确保始终显示 */
}

.related-projects__overlay--visible {
  opacity: 1 !important;
}

.related-projects__item--current:hover .related-projects__image {
  transform: none;

  /* 禁用hover时的放大效果 */
}

.related-projects__current-label {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: var(--color-primary);
  color: white;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
}

.related-projects__item--previous {
  position: relative;
  border: 2px solid rgb(255 255 255 / 30%);
}

.related-projects__previous-label {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgb(255 255 255 / 70%);
  color: var(--color-background);
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
}

.related-projects__button:hover:not(:disabled) {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
