@font-face {
  font-family: 'UnifontJP';
  src: url('/public/fonts/unifont_jp-16.0.01.otf') format('opentype');
  font-display: swap;
}
html, body {
  font-family: 'UnifontJP', monospace !important;
  font-size: 18px;
}

@media (max-width: 1439px) {
  html, body {
    font-size: 16px;
  }
}

@media (max-width: 1024px) {
  html, body {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .main-card {
    min-width: 0; 
    min-height: 0; 
    border-radius: 0;
    
  }

  .main-card-header {
    padding:12px 12px 0px 12px;
  }

  .header-title, 
  .header-author,
  .header-slogan {
    font-size: min(10px, 2.5vw);
  }
  
  .header-slogan {
    letter-spacing: 1px;
  }
}

body {
  margin: 0;
  background: #565495;
  font-family: 'unifontjp', monospace;
  overflow: hidden;
  min-height: 100vh;
  padding: 0;
  box-sizing: border-box;
}
#three-canvas {
  position: fixed; 
  inset: 0; 
  z-index: 0;
  pointer-events: auto;
}
.bg-img {
  position: absolute;
  left: 150px; top: -100px;
  width: 1300px; height: auto;
  min-width: 400px;
  max-width: 1644px;
  opacity: 0.3;
  z-index: 1;
  pointer-events: none;
}
.main-card {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  margin: auto;
  width: calc(100vw - 48px);
  height: calc(100vh - 48px);
  max-width: 1920px;
  min-width: 320px;
  min-height: min(400px, 70vh);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  border: 1px solid #74FFE3;
  border-radius: 0px;
  box-shadow: 0 0 40px #00FFC840;
  z-index: 2;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}
.main-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding:12px 12px 0px 12px;
  flex-shrink: 0;
  pointer-events: auto;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}
.header-title {
  flex: 0 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: min(14px, 2.5vw);
  min-width: 0;
  color: #fff;
  font-weight: 400;
}
.header-author {
  flex: 0 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  font-size: min(14px, 2.5vw);
  min-width: 0;
  color: #fff;
  font-weight: 400;
}
.header-slogan {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  color: #04FFD5;
  font-weight: 400;
  letter-spacing: min(2px, 0.3vw);
  font-size: min(14px, 2.5vw);
  min-width: 0;
  padding: 0 4px;
}
.main-card-body {
  display: flex;
  flex-direction: row;
  gap: 32px;
  min-height: 0;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  align-items: stretch;
  pointer-events: auto;
  position: relative;
}
.env-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease;
  z-index: 10;
}
.env-switch:hover {
  background: rgba(255, 255, 255, 0.2);
}
.env-switch .arrow-down {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #fff;
  margin-left: 4px;
}
.side-nav {
  width: min(160px, 25vw);
  margin-top: 0;
  margin-bottom: 0;
  flex-shrink: 0;
  flex-direction: column;
  gap: 0px;
  min-height: 0;
  pointer-events: auto;
  padding: 50px 0px;
}
.side-nav-item {
  font-size: 17px;
  color: #00FFAE;
  background: linear-gradient(186deg, rgba(71, 186, 203, 0.306) 0%, rgba(84, 83, 89, 0.223) 100%);
  border: 1px solid #3CFFE5;
  height: calc((100%) / 6);
  line-height: normal;
  padding: min(1.5vh, 12px) 0;
  cursor: pointer;
  transition: 
    color 0.3s,
    box-shadow 0.3s,
    width 0.3s;
  text-align: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(80px);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  outline: none;
  pointer-events: auto;
  width: 100%;
  min-height: min(40px, 6vh);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.side-nav-item.active, .side-nav-item:hover {
  background: linear-gradient(54deg, rgba(74,255,246,0.8) 0%, rgba(246,244,255,0.22) 100%);
  color: #fff;
  box-shadow: 0 4px 20px #00FFF6;
  width: min(165px, 26vw);
}
/* 关键：hover/active时宽度动画 */
.side-nav-item:hover,
.side-nav-item.active {
  animation: nav-expand var(--nav-expand-duration, 0.3s) var(--nav-expand-timing, cubic-bezier(.68,-0.55,.27,1.55)) forwards;
  /* cubic-bezier 这个参数有弹性回弹效果 */
}

/* 鼠标移开时收缩回去 */
.side-nav-item:not(:hover):not(.active) {
  animation: nav-shrink var(--nav-expand-duration, 0.3s) var(--nav-expand-timing, cubic-bezier(.68,-0.55,.27,1.55)) forwards;
}

@keyframes nav-expand {
  from { width: var(--nav-width-from, min(160px, 25vw)); }
  80%  { width: var(--nav-width-peak, min(180px, 28vw)); }
  to   { width: var(--nav-width-to, min(175px, 27vw)); }
}
@keyframes nav-shrink {
  from { width: var(--nav-width-to, min(175px, 27vw)); }
  to   { width: var(--nav-width-from, min(160px, 25vw)); }
}
.panel-wrap {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  justify-content: flex-end;
  display: flex;
  justify-content: center;   /* 水平居中 */
  align-items: center;       /* 垂直居中 */
  width: 100vw;              /* 或你需要的宽度 */
  height: 100vh;  
}
.panel-content {
  width: 70%;
  box-sizing: border-box;
  border-right: 5px #00FFC8 solid;
  backdrop-filter: blur(15px);
  padding: 12px;
  margin: 156px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 0 0;
  background: #00000082;
  box-shadow: 0 10px 20px 0 #00fff6bd;
}
.panel-title {
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
}
.panel-desc {
  color: #fff;
  font-size: 14px;
  line-height: 1.8;
}
.main-card-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  font-size: clamp(12px, 1.5vw, 16px);
  background: #d0ffbbba;
  padding: 4px 16px;
  border-top: 2px solid #08FF00;
  box-shadow: 0px 4px 80px rgba(13,154,255,0.52) inset;
  color: #ffffff;
  pointer-events: auto;
  gap: 16px;
  overflow: visible;
}
.footer-left, .footer-right {
  display: flex;
  align-items: center;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
}
.footer-left * {
  font-size: 14px !important;
}
.footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: fit-content;
  flex-shrink: 0;
  margin-left: auto;
  padding-right: 36px;
}
.footer-avatar {
  width: 1.8em;
  height: 1.8em;
  margin-right: 6px;
}
.footer-date {
  display: inline-block;
  min-width: fit-content;
  white-space: nowrap;
  direction: ltr;
  flex-shrink: 0;
  padding: 0 4px;
  font-size: clamp(12px, 1.5vw, 16px);
}
.footer {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  text-overflow: ellipsis;
  width: 100%;
  color: #00FF5E;
  font-size: clamp(8px, 2vw, 16px);
  scrollbar-width: none; /* Firefox */
  background-color: #0000005d;
  pointer-events: auto;
}
.footer::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.footer-qq, .footer-phone {
  display: inline-flex;
  align-items: center;
  margin: 0 12px;
  white-space: nowrap;
}
.footer-icon {
  width: 1.2em;
  height: 1.2em;
  margin-right: 4px;
}

/* 响应式：1440px 以下 */
@media (max-width: 1440px) {
  

  .header-slogan {
    font-size: 14px;
    color: #04FFD5;
    font-family: 'unifontjp', monospace;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 6px;
    text-align: center;
    flex: 1;
    letter-spacing: 1px;
  }
  
  .bg-img { left: 40px; top: -60px; width: 900px; }
  .side-nav-item {
    font-size: 16px;
  }
}
@media (max-width: 1280px) {
  .side-nav-item {
    font-size: 15px;
  }
}
@media (max-width: 1000px) {
  .side-nav-item {
    font-size: clamp(11px, 2vw, 13px);  /* 动态缩放字号，最小11px */
  }
}
@media (max-width: 900px) {
  .main-card {
    flex-direction: column;

    height: calc(100vh - 24px);

    max-width: none; 
    max-height: none;
    border: 1px solid #74FFE3;
    box-shadow: 0 0 40px #00FFC840;
  }

  .header-slogan {
    font-size: 14px;
    letter-spacing: 1px;
    color: #04FFD5;
    font-family: 'unifontjp', monospace;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 6px;
    text-align: center;
    flex: 1;
  }

  .main-card-body { 
    flex-direction: column; 
    gap: 16px;
  }
  
  .side-nav { 
    flex-direction: row; 
    width: 100%; 
    height: auto; 
    gap: 8px; 
    margin-top: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  
  .side-nav-item { 
    flex: 0 0 auto;
    min-width: 120px;
    padding: 12px 8px; 
    font-size: 14px;
  }

  .side-nav-item.active, 
  .side-nav-item:hover {
    width: auto;
    min-width: 120px;
  }
  
  .panel-content { 
    width: 90%;
    margin: 8px 0; 
    padding: 12px;
    border-right: 3px #00FFC8 solid;
  }
}
@media (max-width: 400px) {
  .main-card-footer {
    padding: 4px 8px;
    font-size: 11px !important;
  }
  
  .footer-date {
    font-size: 11px;
  }
}

/* 横屏模式适配 */
@media (max-height: 600px) and (orientation: landscape) {
  .main-card-body {
    flex-direction: row;
  }


  .side-nav-item {
    width: 100%;
    min-width: 0;
  }

  .panel-content {
    margin: 8px;
    max-height: 80vh;
    overflow-y: auto;
  }

  .product-wrapper {
    flex-direction: row;
    gap: 16px;
    padding: 16px;
  }

 

  .product-info {
    width: 60%;
    max-height: 70vh;
    overflow-y: auto;
  }
}

/* 通用显示/隐藏 */
.show, .hide {
  /* display: block !important; */
  /* display: none !important; */
  /* opacity: 1 !important; */
  /* opacity: 0 !important; */
  /* 只用opacity和pointer-events控制显示隐藏 */
}

@keyframes pulse {
  0%   { opacity: 0.8; }
  50%  { opacity: 1; }
  100% { opacity: 0.8; }
}

/* 按钮样式 - 颜色值由 renderConfig.json 中的 styles.buttons 控制 */
.work-button, .uiux-button, .product-button, .visual-button {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: var(--button-padding, 15px 30px);
  color: white;
  border-radius: 0px;
  cursor: pointer;
  z-index: 1000;
  display: none;
  animation: pulse var(--button-pulse-duration, 1.8s) var(--button-pulse-timing, cubic-bezier(0.4,0,0.2,1)) infinite;
  transition: var(--button-transition-property, all) var(--button-transition-duration, 0.3s) var(--button-transition-timing, ease);
  font-size: var(--button-font-size, 17px);
  font-family: 'UnifontJP', monospace;
  letter-spacing: var(--button-letter-spacing, 2px);
  border: var(--button-border-default, 1px solid rgba(255, 255, 255, 0.2));
}

.work-button.show, .uiux-button.show, .product-button.show, .visual-button.show {
  display: block;
  animation: pulse var(--button-pulse-duration, 1.8s) var(--button-pulse-timing, cubic-bezier(0.4,0,0.2,1)) infinite;
  border: var(--button-border-active, 2px solid #00fff6);
  backdrop-filter: var(--button-blur, blur(50px));
  box-shadow: var(--button-shadow, 0 4px 70px #00FFF6);
  opacity: 1;
  transform: translate(-50%, -50%);
}

.work-button.show {
  background-color: var(--work-button-color, rgba(0, 255, 191, 0.557));
}

.uiux-button.show {
  background-color: var(--uiux-button-color, rgba(124, 66, 240, 0.388));
}

.visual-button.show {
  background-color: var(--visual-button-color, rgba(255, 97, 215, 0.67));
}

.product-button.show {
  background-color: var(--product-button-color, rgba(61, 207, 255, 0.504));
}

.work-button.hide, .uiux-button.hide, .product-button.hide, .visual-button.hide {
  display: none;
}

/* 保持hover效果一致 */
.work-button:hover,
.uiux-button:hover,
.visual-button:hover,
.product-button:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.footer-typer {
  font-family: 'UnifontJP', monospace, sans-serif;
  font-size: 16px;
  color: #222;
  letter-spacing: 1px;
  white-space: pre-line;
  word-break: break-all;
  line-height: 1.7;
  min-height: 24px;
  display: block;
  margin: 0;
  padding: 0 8px;
  background: transparent;
}

/* 单图轮播图片容器可见/隐藏 */
.work-image-container-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.work-image-container-hidden {
  opacity: 0 !important;
  transform: translateY(20px) !important;
}

/* 补充nav-button样式 */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 15px;
  cursor: pointer;
  border-radius: 0%;
  font-size: 24px;
  z-index: 2;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-button.prev { left: 20px; }
.nav-button.next { right: 20px; }

/* 通用发光效果 */
.glow-effect {
  transition: all 0.01s ease;
}

.glow-effect:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px #04FFD5;
  z-index: 1;
}

/* 工作履历图片容器样式 */
.work-images-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  z-index: 1000;
}

.work-images-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.work-image-container {
  flex: 1;
  height: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.work-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

.work-image-container:hover .work-image {
  transform: scale(1.2);
  z-index: 1;
}

.back-button {
  
  padding: 10px 30px;
  font-size: 16px;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  border-radius: 0px;
  cursor: pointer;
  transition: all 0.03s ease;
  margin-bottom: 24px;
}

/* 图片容器样式 */
.image-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
}

.image-container img {
  max-width: 80%;
  max-height: 80vh;
  object-fit: contain;
  transition: transform 0.1s ease-in-out;
}

/* 作品展示容器 */
.portfolio-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-container.visible {
  opacity: 1;
}

.portfolio-wrapper {
  position: relative;
  width: 80%;
  height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portfolio-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 0px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  box-shadow: 0 0 20px rgba(4, 255, 213, 0.3);
}

/* 图片切换动效 */
@keyframes slideInRight {
  from {
    transform: translateX(100%) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateX(100%) scale(0.8);
    opacity: 0;
  }
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateX(-100%) scale(0.8);
    opacity: 0;
  }
}

.slide-in-right {
  animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-left {
  animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-out-right {
  animation: slideOutRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-out-left {
  animation: slideOutLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 图片计数器 */
.image-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 0px;
  backdrop-filter: blur(5px);
}

/* UIUX图片切换与显示动效 */
.uiux-image {
  display: block !important;
  opacity: 1;
}
.uiux-image-animate-in {
  display: block !important;
  opacity: 1;
}
.uiux-image-animate-out {
  display: block !important;
  opacity: 0;
}

/* UIUX图片浏览背景+毛玻璃 */
.uiux-bg {
 
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.672) !important;
  backdrop-filter: blur(30px) !important;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 图片弹窗内容垂直居中且有安全边距 */
.uiux-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
  box-sizing: border-box;
  padding: 5vh 0 5vh 0;
  position: relative;
}

/* 返回按钮与图片间距、底部间距 */
.uiux-back-btn {
  margin-top: 12px;
  margin-bottom: 12px;
  align-self: center;
}

/* UIUX图片专用样式 */
.uiux-image {
  width: 95vw !important;
  max-width: 95vw !important;
  height: auto !important;
  max-height: 90vh !important;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  transition: transform 0.2s;
  box-shadow: none !important;
  pointer-events: auto !important;
  transform: unset !important;
}

/* 独立产品展示容器 */
.product-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 60px 60px 60px 120px;  /* 增加上下padding */
  box-sizing: border-box;
}

.product-container.visible {
  opacity: 1;
}

.product-wrapper {
  position: relative;
  width: 100%;
  height: calc(100% - 40px);  /* 减去一些高度，避免贴边 */
  max-height: 900px;  /* 限制最大高度 */
  margin: auto;  /* 自动居中 */
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.product-video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 85%;  /* 改用百分比 */
  margin: 0;
  position: relative;
  flex: 0 0 auto;
  padding: 36px;
  justify-content: center;  /* 水平居中内容 */
}

.product-video {
  height: 120%;
  width: 120%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 0 24px 2px #fff, 0 0 0 4px #fff;
  border: 1px solid #fff;
  opacity: 0;
  aspect-ratio: 0.4618;  /* iPhone比例 */
}

.product-video.loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.product-video:not(.loaded) {
  opacity: 0;
}


@media (max-height: 700px) {
  .product-video-container {
    height: 75vh;
  }
}

@media (max-width: 1000px) {
  .product-container {
    padding: 40px 40px 40px 80px;
  }
  .product-wrapper {
    height: calc(100% - 30px);
  }
}

@media (max-width: 768px) {
  .product-container {
    padding: 30px 30px 30px 60px;
  }
  .product-wrapper {
    height: calc(100% - 20px);
  }
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: white;
  padding: 24px;
  max-width: none;
  height: 85%;  /* 与视频容器保持一致 */
  overflow-y: auto;
  margin-right: 24px;
}

/* 自定义滚动条样式 */
.product-info::-webkit-scrollbar {
  width: 6px;
}

.product-info::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.product-info::-webkit-scrollbar-track {
  background: transparent;  /* 移除滚动条轨道的背景色 */
}

/* Firefox滚动条样式 */
.product-info {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.product-title {
  font-size: 32px;
  color: #fff;
  margin: 0;
}

.product-subtitle {
  font-size: 20px;
  
  color: #04FFD5;
  margin: 0;
  line-height: 1.5;
  letter-spacing: 2px;
}

.product-description {
  font-size: 16px;
  color: #fff;
  margin: 0;
  line-height: 1.8;
  letter-spacing: 2px;
}

/* 复用portfolio-container的导航按钮样式 */
.product-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 15px;
  cursor: pointer;
  border-radius: 0%;
  font-size: 24px;
  z-index: 2;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-nav-button.prev { left: 20px; }
.product-nav-button.next { right: 20px; }

.product-back-button {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 0%;
  font-size: 16px;
  z-index: 2;
  margin-bottom: 24px;
}



/* 联系我图片容器样式 */
.contact-image-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.contact-image-container.show {
  opacity: 1;
  transform: scale(1);
}

.contact-image {
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
  border-radius: 10px;
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    box-shadow: 0 0 30px rgba(0, 255, 200, 0.3);
  }
  to {
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.6));
    box-shadow: 0 0 50px rgba(0, 255, 200, 0.6);
  }
}

/* Loading动画 */
.loading-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 32px;
  z-index: 1;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #04FFD5;
  animation: spin 1s ease-in-out infinite;
}

.loading-text {
  color: #04FFD5;
  font-size: 14px;
  white-space: nowrap;
  margin-top: 15px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 加载界面样式 */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/public/0.jpg') no-repeat center center !important;
  background-size: cover !important;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: 'unifont_jp', sans-serif;
}

.loading-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent !important;
  backdrop-filter: blur(2px);
}

.loading-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 90%;
}

.loading-main-title {
  font-size: 52px;
  color: #fff;
  font-weight: bold;
  margin-bottom: 40px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  opacity: 1;
  letter-spacing: 2px;
  line-height: 1.2;
  font-family: 'UnifontJP', monospace;
}

.loading-main-title.typing {
  opacity: 1;
  border-right: 3px solid #fff;
  animation: blink 1s infinite;
}

.loading-main-title.typing-complete {
  opacity: 1;
  border-right: none;
}

@keyframes blink {
  0%, 50% { border-color: transparent; }
  51%, 100% { border-color: #fff; }
}

.loading-progress-wrapper {
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.loading-number {
  font-size: 72px;
  color: #fff;
  font-weight: bold;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
  font-family: 'UnifontJP', monospace;
}

.loading-text {
  font-size: 18px;
  color: #fff;
  opacity: 0.9;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  transition: opacity 0.3s ease-in-out;
  font-family: 'UnifontJP', monospace;
}

.loading-subtitle {
  font-size: 24px;
  color: #fff;
  font-weight: 300;
  margin-top: 40px;
  opacity: 1;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  line-height: 1.4;
  font-family: 'UnifontJP', monospace;
}

.loading-subtitle.typing {
  opacity: 1;
  border-right: 2px solid #fff;
  animation: blink-subtitle 1s infinite;
}

.loading-subtitle.typing-complete {
  opacity: 1;
  border-right: none;
}

@keyframes blink-subtitle {
  0%, 50% { border-color: transparent; }
  51%, 100% { border-color: #fff; }
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .loading-main-title {
    font-size: 42px;
  }
  .loading-number {
    font-size: 60px;
  }
  .loading-subtitle {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .loading-main-title {
    font-size: 32px;
    margin-bottom: 30px;
  }
  .loading-number {
    font-size: 48px;
  }
  .loading-subtitle {
    font-size: 16px;
    margin-top: 30px;
  }
  .loading-text {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .loading-main-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .loading-number {
    font-size: 36px;
  }
  .loading-subtitle {
    font-size: 14px;
    margin-top: 20px;
  }
  .loading-text {
    font-size: 12px;
  }
}

/* 隐藏主内容，直到加载完成 */
.content-hidden {
  opacity: 0;
  visibility: hidden;
}

.content-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-in-out;
}

/* 横屏提示遮罩 */
.landscape-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    font-family: 'unifont_jp', sans-serif;
}

.landscape-content {
    text-align: center;
    color: white;
}

.landscape-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: rotate 2s infinite linear;
}

.landscape-text {
    font-size: 18px;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 在小屏幕且竖屏时显示遮罩 */
@media screen and (max-width: 900px) and (orientation: portrait) {
    .landscape-mask {
        display: flex;
    }
}

@media (max-width: 1439px) {
  .product-title {
    font-size: 20px;
  }
  .product-subtitle {
    font-size: 14px;
  }
  .product-description {
    font-size: 12px;
  }
}

@media (max-width: 1024px) {
  .product-title {
    font-size: 17px;
  }
  .product-subtitle {
    font-size: 12px;
  }
  .product-description {
    font-size: 11px;
  }
}

@media (max-width: 1439px) {
  .main-card .main-card-footer .footer-left * {
    font-size: clamp(12px, 1.5vw, 13px) !important;
  }
}

@media (max-width: 1024px) {
  .main-card .main-card-footer .footer-left * {
    font-size: clamp(8px, 1.2vw, 12px) !important;
  }
}

@media (max-width: 1279px) {
  .side-nav-item {
    font-size: 15px;
    padding: clamp(14px, 2vh, 18px) clamp(6px, 1vw, 8px);
  }
}

@media (max-width: 999px) {
  .side-nav-item {
    font-size: clamp(12px, 1.4vw, 13px);
    padding: clamp(10px, 1.5vh, 14px) clamp(4px, 0.8vw, 6px);
  }
}

/* 添加响应式字号 */
@media (max-width: 1440px) {
  .work-button, .uiux-button, .product-button,
  .nav-button, .back-button,
  .product-nav-button, .product-back-button {
    font-size: 18px;
  }
}

@media (max-width: 1280px) {
  .work-button, .uiux-button, .product-button,
  .nav-button, .back-button,
  .product-nav-button, .product-back-button {
    font-size: 16px;
  }
}

@media (max-width: 1000px) {
  .work-button, .uiux-button, .product-button,
  .nav-button, .back-button,
  .product-nav-button, .product-back-button {
    font-size: clamp(14px, 2vw, 13px);
  }
}

/* 响应式调整 */

@media (max-width: 1280px) {
  .product-container {
    padding: 50px 50px 50px 100px;
  }
}

@media (max-width: 1000px) {
  .product-container {
    padding: 40px 40px 40px 80px;
  }
  .product-wrapper {
    height: calc(100% - 30px);
  }
}

@media (max-width: 768px) {
  .product-container {
    padding: 30px 30px 30px 60px;
  }
  .product-wrapper {
    height: calc(100% - 20px);
  }
}

@media (max-height: 500px) {
  .side-nav {
    padding:10px 0px;
  }
}

/* 全局滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #00FFAE;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 16px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.copy-toast.show {
  opacity: 1;
  pointer-events: auto;
}

/* 语言切换按钮样式 */
.lang-switch {
  position: absolute;
  top: 20px;
  right: 120px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease;
  z-index: 10;
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lang-switch .arrow-down {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #fff;
  margin-left: 4px;
}

/* 语言下拉菜单样式 */
.lang-dropdown {
  position: absolute;
  top: 60px;
  right: 120px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 120px;
  z-index: 11;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lang-option {
  padding: 8px 16px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.2s ease;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-option.active {
  background: rgba(0, 255, 174, 0.2);
  color: #00FFAE;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .lang-switch {
    right: 100px;
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .lang-dropdown {
    right: 100px;
    min-width: 100px;
  }
  
  .lang-option {
    font-size: 12px;
    padding: 6px 12px;
  }
}