/**
 * oiprics.css — 作品集主样式
 * 重构要点：用 .is-visible / .is-hidden 代替 JS 直接操控 style.display
 */



/* ===== 基础重置 ===== */

#v3d-container a {
  display: none;
}

body, html {
  width: 100%;
  height: 100%;
  color: rgba(0, 0, 0, 0.88);
  font-size: 14px;
  font-family: "MiSans Bold", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

img {
  width: 100%;
  height: auto;
}

p {
  margin: 0;
}

a {
  color: #45e2ee;
  text-decoration: none;
  margin: auto .5em;
}



/* ===== 状态 class（JS 只做 class 切换） ===== */

/** 面板/元素可见 */
.is-visible {
  display: flex !important;
}

/** nav 栏可见时用 flex */
.nav.is-visible {
  display: flex !important;
}

/** 详情页可见 */
.detailpage.is-visible {
  display: block !important;
}

/** 关闭按钮可见 */
.detailpage_close.is-visible {
  display: block !important;
}

/** 关于我面板可见（flex 居中布局） */
.aboutMe.is-visible {
  display: flex !important;
}



/* ===== 备案信息 ===== */

.beian {
  position: absolute;
  text-align: center;
  bottom: 15px;
  z-index: 0;
  color: #ffffff80;
  font-size: 10px;
  width: 100%;
}

.beian a {
  color: #ffffff80;
  text-decoration: none;
}



/* ===== 首屏头部 ===== */

.head {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  text-align: center;
  pointer-events: auto;
}

.head p {
  font-size: 5vw;
  color: #FFFFFF;
  text-align: center;
  font-weight: 300;
}

.head .mylogo {
  width: 22vw;
}



/* ===== Listener 容器 ===== */

#Listener {
  display: none;
  animation: show 2000ms;
  position: relative;
  z-index: 1;
  height: 100%;
  pointer-events: none;
}



/* ===== 桌面端适配 ===== */

.desktopPreview .head .mylogo {
  width: 10vh;
}

.desktopPreview .head p {
  font-size: 3.4vh;
}

.desktopPreview .profile_button {
  width: 8vh;
  height: 3vh;
  background: #85F6FF;
  border-radius: 4vh;
}



/* ===== 个人资料按钮 ===== */

.profile_button {
  width: 80px;
  height: 28px;
  background: #85F6FF;
  border-radius: 14px;
  display: block;
  margin: 0 auto;
  margin-top: 22px;
}

.profile_button img {
  height: 100%;
  width: auto;
}



/* ===== 首屏底部菜单 ===== */

.menu {
  position: absolute;
  z-index: 1;
  width: 100%;
  left: 0;
  bottom: 6%;
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  pointer-events: auto;
}

.menu div {
  font-size: 24px;
  color: #FFFFFF;
  text-align: center;
}

.desktopPreview .menu {
  width: 640px;
  left: 50%;
  margin-left: -320px;
}



/* ===== V3D 预加载器样式 ===== */

.v3d-simple-preloader-background {
  background-color: #272727;
  z-index: 4;
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100%;
}

.v3d-simple-preloader-bar {
  background: linear-gradient(90deg, #85F6FF, #85F6FF);
  border: none;
}

.v3d-simple-preloader-logo {
  background-image: url(../images/textlogo.svg);
  position: relative;
  bottom: -0px;
}



/* ===== 列表页顶部导航栏 ===== */

.nav {
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  text-align: center;
  height: 60px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  background: linear-gradient(0deg, #ffffff4f, #ffffffdb);
  display: none;
  animation: show 400ms;
  pointer-events: auto;
}

.desktopPreview .nav {
  width: 640px;
  position: absolute;
  left: 50%;
  margin-left: -320px;
}

.nav .mylogo img {
  display: inline;
  height: 60px;
}

.desktopPreview .nav .mylogo img {
  width: 5em;
}

.nav a {
  line-height: 1;
  width: 60px;
  height: 60px;
}

.nav div {
  font-size: 24px;
  color: #000;
  line-height: 60px;
}

.nav .current {
  position: relative;
}

.nav .current span {
  position: relative;
  z-index: 2;
}

.nav .current::before {
  content: "";
  display: block;
  width: 45px;
  height: 20px;
  position: absolute;
  left: 9px;
  top: 29px;
  background: #85F6FF;
  z-index: 1;
  animation: showR 1000ms ease-in-out forwards;
  mix-blend-mode: multiply;
}



/* ===== 列表容器 ===== */

.container {
  overflow: scroll;
  width: 100%;
  height: 100vh;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  background: #fff;
  padding: 60px 16px;
  animation: show 400ms;
  pointer-events: auto;
}

.desktopPreview .container,
.desktopPreview .container.logo_list,
.desktopPreview .container.industry_list,
.desktopPreview .container.ui_list,
.desktopPreview .container.project_list {
  padding: 60px 30vw;
}

.container div {
  animation: showS 400ms ease-in-out forwards;
}

.container.logo_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  justify-content: space-evenly;
  align-items: start;
  align-content: stretch;
  text-align: center;
}

.container.industry_list {
  padding: 60px 48px;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}

.container.ui_list,
.container.project_list {
  display: grid;
  padding: 60px 16px;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}



/* ===== 列表条目样式 ===== */

.ui_item,
.project_item {
  font-size: 16px;
  line-height: 1.4;
  color: #00000066;
}

b {
  color: #000000ba;
}

.ui_item img,
.project_item img {
  border-radius: 10px;
}

.ui_item span,
.project_item span {
  margin-top: .5em;
  color: rgba(0, 0, 0, 0.27);
  line-height: 1.7;
}

.container .industry_item {
  text-align: center;
  background-size: cover;
  background-position: center;
  height: 153px;
  color: #FFFFFF;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  border-radius: 16px;
}

.industry_list h3 {
  font-size: 36px;
  font-weight: 300;
  margin: 0px;
  line-height: 1;
}

.industry_list p {
  font-size: 14px;
  margin: 0px;
}

.logos_item {
  line-height: 1;
}

.container .logos_item span {
  text-align: center;
  font-size: 10px;
  color: #00000066;
}



/* ===== 有详情条目的标记 ===== */

.hasDetails {
  position: relative;
  z-index: 10;
}

.logos_item.hasDetails::after {
  display: inline-block;
  content: "";
  width: 6px;
  height: 6px;
  z-index: 9;
  background-color: #85F6FF;
  border-radius: 100%;
  margin-left: .2em;
}

.project_item.hasDetails p::before {
  display: inline-block;
  content: "";
  width: 8px;
  height: 8px;
  z-index: 9;
  background-color: #85F6FF;
  border-radius: 100%;
  margin-right: .2em;
  margin-bottom: .1em;
}



/* ===== 详情页 ===== */

.detailpage {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 60px;
  bottom: 0px;
  height: 100vh;
  z-index: 6;
  background: #fff;
  border-radius: 4px 4px 0px 0px;
  box-shadow: 0px 0px 9px #0000001c, 0px 0px 0px 90px #00000052;
  padding: 0px 16px 160px 16px;
  overflow: scroll;
  display: none;
  animation: showT 300ms ease-in-out forwards;
  pointer-events: auto;
}

.desktopPreview .detailpage {
  left: 29vw;
  right: 29vw;
  box-shadow: 0px 0px 9px #0000001c, 0px 0px 0px 29vw #00000052;
}

.detailpage h1 {
  margin: 14px 40px 8px 0px;
  line-height: 1.2;
  font-size: 32px;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.66);
}

.detailpage_close {
  position: absolute;
  right: 7px;
  top: 52px;
  width: 40px;
  height: 40px;
  padding: 8px;
  z-index: 10;
  background: #fff;
  border-radius: 100%;
  box-shadow: 0px 0px 7px #00000012;
  display: none;
  pointer-events: auto;
}

.desktopPreview .detailpage_close {
  right: 28vw;
}

.detailpage span {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 18px;
  color: rgb(0 0 0 / 31%);
}

.detailpage img {
  margin: 0;
  border-radius: 4px;
}

.detailpage p {
  font-size: 18px;
  color: rgba(0, 0, 0, 0.66);
  line-height: 1.5;
  margin: 4px 0px 16px 0px;
}

.detailpage hr {
  border: none;
  border-top: 1px solid #0000001a;
  margin: 16px 0;
}

.detailpage video {
  width: 100%;
}



/* ===== 关于我面板 ===== */

.aboutMe {
  background: #fff;
  border-radius: 28px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 360px;
  height: 420px;
  margin-left: -180px;
  margin-top: -210px;
  text-align: center;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  padding: 38px;
  animation: show 300ms ease-in-out forwards;
  display: none;
  pointer-events: auto;
  z-index: 9;
}

.aboutMe p {
  margin-bottom: 10px;
}

/* 替代原来的内联样式 */
.aboutMe-name {
  font-size: 33px;
  line-height: 1;
  font-weight: 300;
}

.aboutMe-title {
  font-weight: 800;
}

.aboutMe-birth {
  color: #0000009e;
}

.myNotes {
  line-height: 1.5;
  position: relative;
  margin-bottom: 20px;
}

.myNotes::before {
  display: block;
  position: absolute;
  left: -11px;
  top: -5px;
  content: "";
  width: 13px;
  height: 10px;
  background-image: url(../images/quotes.svg);
  background-repeat: no-repeat;
  background-size: contain;
}

.myNotes::after {
  display: block;
  position: absolute;
  right: -11px;
  bottom: -5px;
  content: "";
  width: 13px;
  height: 10px;
  background-image: url(../images/quotes.svg);
  background-repeat: no-repeat;
  background-size: contain;
  transform: rotate(180deg);
}

.vx {
  font-weight: 600;
}

.vx img {
  width: 18px;
  height: 18px;
  margin-bottom: -5px;
  margin-right: 2px;
}

.close_aboutMe {
  width: 32px;
  height: 32px;
}



/* ===== 通用视频 ===== */

video {
  width: 100%;
}



/* ===== 动画关键帧 ===== */

@keyframes show {
  from { opacity: 0; }
  to { opacity: 100; }
}

@keyframes showS {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 100; transform: scale(1.0); }
}

@keyframes showR {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 100; transform: translateX(0px); }
}

@keyframes showT {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 100; transform: translateY(0px); }
}
