/* --- 1. 全局重置 --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #050505;
  color: white;
  font-family: 'Noto Serif SC', serif;
  overflow-x: hidden;
  /* 防止横向滚动 */
}

/* --- 2. 通用模块样式 --- */
section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  z-index: 10;
}

/* --- 3. 第一模块：首屏 + WebGL --- */
.section-one {
  height: 100vh;
  background-image:
    url('./页面一素材/bg-corners.jpg'),
    url('./页面一素材/bg-wave.png');
  background-position: center center, center bottom;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, 100% auto;
  background-attachment: fixed;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  opacity: 0.95;
  pointer-events: none;
  background: transparent;
}

#ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 100vh;
  pointer-events: none;
}

.top-nav,
.bottom-bar {
  pointer-events: auto;
}

.top-nav {
  position: absolute;
  top: 40px;
  right: 50px;
}

.login-btn {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.login-btn:hover {
  border-color: #ffffff;
  transform: scale(1.05);
}

.login-btn .text {
  color: #ffffff;
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  letter-spacing: 2px;
}

.login-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.login-btn:hover .login-icon {
  opacity: 1;
  transform: scale(1.1);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  z-index: 20;
}

.main-title {
  font-size: 5rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
  opacity: 0;
  animation: fadeIn 2s ease-out forwards 0.5s;
}

.sub-title {
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  color: rgba(174, 238, 255, 0.7);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 2s ease-out forwards 1s;
}

.bottom-bar {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  z-index: 100;
}

.art-fingerprint-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.art-fingerprint-wrapper:hover {
  transform: scale(1.1);
}

.art-glow-bg {
  position: absolute;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.6) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  animation: art-breathe 4s ease-in-out infinite;
}

.art-ring-orbit {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: art-spin 20s linear infinite;
}

.orbit-dot {
  position: absolute;
  top: -2px;
  left: 50%;
  width: 4px;
  height: 4px;
  background-color: #00f2fe;
  border-radius: 50%;
  box-shadow: 0 0 8px #00f2fe;
}

.art-ring-flow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(0, 242, 254, 0.6);
  border-right-color: rgba(0, 242, 254, 0.2);
  animation: art-spin-reverse 8s linear infinite;
}

.art-icon {
  width: 45%;
  height: 45%;
  color: #d1f7ff;
  z-index: 2;
  animation: art-fade 3s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 2px rgba(0, 242, 254, 0.5));
}

.arrow-down-art {
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  transform: rotate(45deg);
  animation: art-float 2s ease-in-out infinite;
}

/* --- 第二模块：四大解码器 --- */
.section-two {
  height: 100vh;
  background: #05070a;
  background-image: url('./登录以及首页素材/登录以及首页素材/第二页/背景.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
}

.module-nav {
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  background: transparent;
}

.nav-container {
  width: 80%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  padding: 8px 30px;
  height: 60px;
}

.nav-logo {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: #fff;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 25px;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.nav-divider {
  margin-left: 25px;
  opacity: 0.3;
}

.decoder-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.center-header {
  text-align: center;
  z-index: 5;
}

.decoder-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: 15px;
  margin: 0;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.decoder-subtitle {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  letter-spacing: 5px;
  opacity: 0.5;
  margin-top: 10px;
  text-transform: uppercase;
}

.cards-wrapper {
  position: absolute;
  width: 95%;
  height: 70%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 200px;
  row-gap: 100px;
  transform: translateY(-90px);
  margin: 0 auto;
}

.decoder-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
  backdrop-filter: blur(5px);
  padding: 40px;
  width: 280px;
  height: 280px;
}

.card-order {
  justify-self: end;
  align-self: end;
  margin-right: 130px;
}

.card-logic {
  justify-self: start;
  align-self: end;
  margin-left: 130px;
}

.card-time {
  justify-self: end;
  align-self: start;
  margin-right: 130px;
}

.card-flow {
  justify-self: start;
  align-self: start;
  margin-left: 130px;
}

.card-icon img {
  width: 90px;
  height: auto;
  margin-bottom: 25px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.card-zh {
  font-family: 'Noto Serif SC', serif;
  font-size: 2rem;
  margin: 10px 0 8px 0;
  font-weight: 400;
  color: #969595;
}

.card-en {
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  opacity: 0.6;
  letter-spacing: 2px;
}

.one {
  color: #e09c39;
}

.two {
  color: #6da37a;
}

.three {
  color: #4993a8;
}

.four {
  color: #d55d97;
}

.decoder-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-10px) scale(1.05);
}

.card-order:hover {
  border-color: #f7b500;
  box-shadow: 0 0 30px rgba(247, 181, 0, 0.2);
}

.card-logic:hover {
  border-color: #6dd400;
  box-shadow: 0 0 30px rgba(109, 212, 0, 0.2);
}

.card-time:hover {
  border-color: #0091ff;
  box-shadow: 0 0 30px rgba(0, 145, 255, 0.2);
}

.card-flow:hover {
  border-color: #b620e0;
  box-shadow: 0 0 30px rgba(182, 32, 224, 0.2);
}

.module-nav-wrap {
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.ai-craftsman-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  color: #ffffff;
  font-size: 0.95rem;
  letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  transition: all 0.3s ease;
}

.ai-craftsman-btn:hover {
  color: #fff;
  border-color: rgba(0, 242, 254, 0.55);
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.18);
  transform: translateY(-2px);
}

/* --- 第三模块：纹理数字化解构 --- */
.philosophy-section {
  width: 100%;
  min-height: 80vh;
  position: relative;
  background-color: #121212;
  background-image:
    url('./登录以及首页素材/登录以及首页素材/第三页/暗纹.png'),
    url('./登录以及首页素材/登录以及首页素材/第三页/未标题-2.png');
  background-size: cover, cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  z-index: 20;
  overflow: hidden;
}

.philosophy-container {
  max-width: 1400px;
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

.philosophy-left {
  flex: 0 0 40%;
}

.philosophy-subtitle {
  font-size: 12px;
  letter-spacing: 8px;
  color: #666;
  margin-bottom: 20px;
  font-family: "Fira Code", monospace;
}

.philosophy-title {
  font-size: 60px;
  line-height: 1.2;
  color: #d4b572;
  font-weight: 300;
  margin-bottom: 40px;
  letter-spacing: 5px;
  font-family: "SimSun", "宋体", serif;
}

.philosophy-desc {
  font-size: 17px;
  line-height: 1.8;
  color: #c1c1c1;
  max-width: 480px;
}

.philosophy-right {
  flex: 0 0 50%;
}

.philosophy-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
}

.philosophy-number {
  width: 40px;
  height: 40px;
  border: 1px solid #446899;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #88a4cc;
  font-family: "Fira Code", monospace;
  margin-right: 25px;
  flex-shrink: 0;
}

.philosophy-text h3 {
  font-size: 22px;
  color: #ececec;
  margin-bottom: 10px;
  font-weight: 400;
}

.philosophy-text p {
  font-size: 17px;
  line-height: 1.6;
  color: #9a9a9a;
}


/* --- 第四个模块：文明代码库 --- */
.full-page-module {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: scroll;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: white;
  position: relative;
}

.beijing {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  z-index: 1;
  margin-top: -350px;
}

.header-content {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 30px;
  border-radius: 8px;
  z-index: 2;
}

.header-content h1.custom-songti {
  font-size: 2.5rem;
  letter-spacing: 8px;
  margin-bottom: 10px;
  font-family: "SimSun", "宋体", serif !important;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.header-content .subtitle {
  font-family: "Fira Code", monospace;
  letter-spacing: 5px;
  opacity: 0.8;
  text-transform: uppercase;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.search-section {
  display: flex;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin-top: -16px;
  gap: 15px;
  background: rgba(0, 0, 0, 0.1);
  padding: 10px 20px;
  border-radius: 12px;
  z-index: 2;
}

.search-bar-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(15, 15, 15, 0.6);
  padding: 12px 25px;
  border-radius: 50px;
  border: 1px solid rgba(0, 162, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 162, 255, 0.2);
  transition: all 0.4s ease;
}

.custom-search-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.search-bar-wrapper:hover .custom-search-icon {
  opacity: 1;
}

.search-bar-wrapper:focus-within {
  border-color: rgba(0, 162, 255, 0.8);
  box-shadow: 0 0 25px rgba(0, 162, 255, 0.6), inset 0 0 10px rgba(0, 162, 255, 0.1);
  transform: scale(1.01);
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  width: 100%;
  font-size: 16px;
  margin-left: 10px;
}

.search-input::placeholder {
  color: #ccc;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag-btn.click-glow {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  padding: 6px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tag-btn.click-glow:hover {
  background: rgba(0, 162, 255, 0.1);
  border-color: rgba(0, 162, 255, 0.5);
  color: white;
  box-shadow: 0 0 12px rgba(0, 162, 255, 0.3);
}

.tag-btn.click-glow:active,
.tag-btn.click-glow.active {
  background: rgba(0, 162, 255, 0.15);
  border-color: rgba(0, 162, 255, 0.7);
  box-shadow: 0 0 18px rgba(0, 162, 255, 0.4), inset 0 0 6px rgba(0, 162, 255, 0.2);
  color: #e0f7ff;
}

.filter-icon {
  margin-right: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  width: 90%;
  max-width: 1200px;
  margin-top: 30px;
  margin-bottom: 80px;
  z-index: 5;
}

.card {
  background: rgba(17, 17, 17, 0.9);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
  transform: translateY(-5px);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 3px;
}

.tag-order {
  background: rgba(255, 165, 0, 0.2);
  color: orange;
  border: 1px solid orange;
}

.tag-time {
  background: rgba(0, 191, 255, 0.2);
  color: deepskyblue;
  border: 1px solid deepskyblue;
}

.card-content {
  padding: 20px;
  font-size: 13px;
  color: #999;
}

.card-content .code-id {
  color: #ccc;
  margin-bottom: 10px;
  display: block;
}

.card-content .detail-item {
  margin: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-content .date {
  margin-top: 15px;
  font-size: 11px;
  color: #555;
}

.module-footer {
  margin-top: -40px;
  text-align: center;
  margin-bottom: 50px;
  z-index: 2;
}

.enter-btn {
  text-decoration: none;
  color: #e5e5e5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  /* font-size: 16px; */
}

.enter-btn span {
  font-size: 20px;
}



.arrow-down-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.enter-btn:hover .arrow-down-img {
  opacity: 1;
  transform: translateY(3px);
  color: #ffffff;
}

/* --- 图片放大模态框 --- */
#imageModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

#imageModal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
}

#imageModal .close-btn {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

#imageModal .close-btn:hover {
  color: #00f0ff;
}

/* 让图片可点击 */
.clickable-img {
  cursor: zoom-in;
}

/* --- 实验室模块 --- */
/* ==================== 实验室部分（单图背景版） ==================== */
.sci-fi-module {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background-color: #02050b;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 单张背景图，作为整块背景铺满 */
.lab-bg-single {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.lab-bg-single img {
  width: 120%;
  height: 120%;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 顶层内容区域 */
.center-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 35%;
  max-width: 400px;
  min-width: 280px;
  height: 75vh;
  max-height: 600px;
  min-height: 450px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 40px 20px;
  opacity: 1;
}

/* 顶部标题区 */
.header-title {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #00f3ff;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
  margin-left: -5vh;
}

.arrows {
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: -2px;
  color: #1b5b6f;
  animation: arrowGlow 2.8s ease-in-out infinite;
  margin-top: -150px;
}

.title-text {
  text-align: center;
}

.title-text h1 {
  font-size: clamp(60px, 4vw, 60px);
  font-weight: normal;
  letter-spacing: 5px;
  color: #ffffff;
  /* font-size: 60px; */
  margin-top: -150px;

}

.title-text p {
  font-size: 12px;
  letter-spacing: 5px;
  margin-top: 5px;
  color: #55798a;
}

/* 垂直文字 */
.vertical-text-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vertical-text {
  writing-mode: vertical-lr;
  letter-spacing: 15px;
  font-size: clamp(40px, 3vw, 35px);
  color: #00f3ff;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.6);
  margin-left: -7vh;
}

/* 指纹区域 */
.fingerprint-area {
  position: relative;
  width: clamp(80px, 12vw, 120px);
  height: clamp(80px, 12vw, 120px);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.fingerprint-img {
  width: 100%;
  height: 100%;
  position: relative;
}

.fingerprint-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 指纹恢复上下浮动 */
.fingerprint-img a {
  position: absolute;
  top: 13vh;
  left: -3vh;
  width: 170%;
  height: 170%;
  z-index: 100;
  display: block;
  animation: fingerprintFloat 3s ease-in-out infinite;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.fingerprint-img a:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px rgba(0, 243, 255, 0.35));
}

.fingerprint-img a img {
  width: 52%;
  height: 77%;
  object-fit: contain;
}

@keyframes fingerprintFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes arrowGlow {

  0%,
  100% {
    opacity: 0.55;
    text-shadow: 0 0 4px rgba(0, 243, 255, 0.18);
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.45);
  }
}

/* ==================== 实验室平板端 ==================== */
@media (max-width: 992px) {
  .sci-fi-module {
    min-height: 620px;
    height: 78vh;
  }

  .lab-bg-single img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
  }

  .center-content {
    width: 48%;
    max-width: 360px;
    min-width: 240px;
    height: 62vh;
    max-height: 520px;
    min-height: 360px;
    padding: 24px 12px;
  }

  .arrows {
    margin-top: 0;
    font-size: 14px;
  }

  .title-text h1 {
    font-size: 34px;
    margin-top: 0;
    letter-spacing: 3px;
  }

  .title-text p {
    font-size: 10px;
    letter-spacing: 3px;
  }

  .vertical-text {
    font-size: 24px;
    letter-spacing: 8px;
    margin-left: -24px;
  }

  .fingerprint-area {
    width: 86px;
    height: 86px;
  }

  .fingerprint-img a {
    top: 4px;
    left: 11px;
    width: 100%;
    height: 100%;
  }
}

/* ==================== 实验室手机端 ==================== */
@media (max-width: 768px) {
  .sci-fi-module {
    min-height: 520px;
    height: 72vh;
    padding: 0;
    overflow: hidden;
  }

  .lab-bg-single {
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lab-bg-single img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
  }

  .center-content {
    width: 180px !important;
    max-width: none !important;
    min-width: auto !important;
    height: 70% !important;
    max-height: none !important;
    min-height: auto !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 18px 8px;
    justify-content: space-between;
    z-index: 3;
  }

  .header-title {
    gap: 4px;
  }

  .arrows {
    margin-top: 0;
    font-size: 10px;
    letter-spacing: -1px;
  }

  .title-text h1 {
    font-size: 22px;
    margin-top: 0;
    letter-spacing: 2px;
  }

  .title-text p {
    font-size: 8px;
    letter-spacing: 2px;
    margin-top: 2px;
  }

  .vertical-text-box {
    margin-top: 0;
  }

  .vertical-text {
    font-size: 16px;
    letter-spacing: 4px;
    margin-left: 22px;
  }

  .fingerprint-area {
    width: 64px;
    height: 64px;
    margin: 0 auto;
  }

  .fingerprint-img a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: fingerprintFloatMobile 3s ease-in-out infinite;
  }

  .fingerprint-img a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}


/* --- 末尾模块 --- */
.footerr-module {
  position: relative;
  width: 100%;
  height: 290px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

.flowerr {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1;
  opacity: 0.8;
  pointer-events: none;
}

.content-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: -34px;
}

.main-title {
  font-family: "SimSun", "Songti SC", "STSong", serif;
  font-size: 4.5rem;
  font-weight: normal;
  color: #d4c4a8;
  letter-spacing: 5px;
  margin-bottom: 10px;
  text-align: center;
  text-shadow: 0 0 10px rgba(212, 196, 168, 0.3);
}

.sub-title {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: #555;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  color: #888;
  transition: all 0.3s ease;
  letter-spacing: 2px;
}

.nav-links a:hover {
  color: #d4c4a8;
  text-shadow: 0 0 5px #d4c4a8;
}

.fingerprint-box img {
  width: 50px;
  height: auto;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.fingerprint-box img:hover {
  opacity: 1;
}

/* 关键帧定义 */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes art-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes art-spin-reverse {
  0% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes art-breathe {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.6;
  }
}

@keyframes art-fade {
  0% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

@keyframes art-float {

  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 0.4;
  }

  50% {
    transform: rotate(45deg) translate(-4px, -4px);
    opacity: 1;
  }
}


/* ========================================================
   ================ 移动端 / 平板 全面响应式 ================
   ======================================================== */

/* 平板适配 (<= 1200px) */
@media (max-width: 1200px) {

  /* 第二模块网格魔术间距清空 */
  .cards-wrapper {
    column-gap: 50px;
    row-gap: 50px;
  }

  .card-order,
  .card-logic,
  .card-time,
  .card-flow {
    margin: 0 !important;
    justify-self: center !important;
    align-self: center !important;
  }
}

/* 小型平板适配 (<= 992px) */

@media (max-width: 992px) {

  /* 第二模块 */
  .cards-wrapper {
    position: relative;
    transform: none;
    margin-top: 40px;
  }

  .decoder-card {
    width: 220px;
    height: 220px;
    padding: 20px;
  }

  /* 第三模块 */
  .philosophy-container {
    flex-direction: column;
    padding: 80px 30px;
  }

  .philosophy-left,
  .philosophy-right {
    flex: 0 0 100%;
  }

  .philosophy-right {
    margin-top: 50px;
  }

  /* --- 实验室模块调整（平板） --- */
  .sci-fi-module {
    min-height: 600px;
  }

  /* 侧边门保持50%宽度 */
  .side-img {
    width: 50%;
  }

  /* 中间背景面板 */
  .center-bg {
    width: 60%;
    max-width: 450px;
    min-width: 320px;
    height: 70vh;
    max-height: 600px;
    min-height: 450px;
  }

  /* 中间内容容器 */
  .center-content {
    width: 55%;
    max-width: 380px;
    min-width: 280px;
    height: 65vh;
    max-height: 427px;
    min-height: 400px;
    padding: 30px 15px;
  }

  /* 指纹区域 */
  .fingerprint-area {
    width: 100px;
    height: 100px;
  }
}

/* ========================================================
   ================ 手机端彻底适配 (<= 768px) ================
   ======================================================== */
@media (max-width: 768px) {

  /* --- 第一模块 --- */
  .main-title {
    font-size: 2rem;
    letter-spacing: 0.1em;
  }

  .sub-title {
    font-size: 0.7rem;
  }

  .top-nav {
    top: 20px;
    right: 20px;
  }

  .login-btn {
    padding: 8px 20px;
  }

  /* --- 导航栏修复（防止文字挤压换行） --- */
  .module-nav {
    height: auto;
    padding-top: 15px;
  }

  .nav-container {
    flex-direction: column;
    height: auto;
    border-radius: 15px;
    padding: 15px;
    gap: 12px;
  }

  .nav-logo {
    font-size: 1.2rem;
    text-align: center;
    width: 100%;
    letter-spacing: 4px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
  }

  .nav-links a {
    margin: 0;
    font-size: 0.85rem;
  }

  .nav-divider {
    display: none;
  }

  /* --- 第二模块：四大解码器（改为居中 2x2 精致小网格） --- */
  .section-two {
    height: auto;
    min-height: 100vh;
    padding: 80px 0 50px 0;
    justify-content: flex-start;
  }

  .decoder-container {
    flex-direction: column;
  }

  .center-header {
    position: relative;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
  }

  .decoder-title {
    font-size: 2.2rem;
    letter-spacing: 6px;
  }

  .cards-wrapper {
    position: relative;
    transform: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 90%;
    max-width: 360px;
    margin: 0 auto;
    height: auto;
  }

  .decoder-card {
    width: 100%;
    max-width: none;
    height: 160px;
    padding: 15px;
    min-height: auto;
  }

  .card-icon img {
    width: 45px;
    margin-bottom: 10px;
  }

  .card-zh {
    font-size: 1.2rem;
    margin: 5px 0;
  }

  .card-en {
    font-size: 0.7rem;
    letter-spacing: 1px;
  }

  /* --- 第三模块：哲学文字 --- */
  .philosophy-title {
    font-size: 32px;
  }

  /* --- 第四模块：代码库 --- */
  .card-grid {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }

  .search-section {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
  }

  .beijing {
    margin-top: -100px;
    opacity: 0.6;
  }

  .header-content h1.custom-songti {
    font-size: 1.8rem;
  }

  .arrow-down-img {
    width: 16px;
    height: 16px;
  }

  /* --- 第五模块：实验室（响应式显示三张图片） --- */
  .sci-fi-module {
    min-height: 70vh;
    height: auto;
    padding: 30px 15px;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }

  /* 左右门：缩小显示在两侧 */
  .side-img {
    display: block !important;
    width: 60px !important;
    height: auto !important;
    aspect-ratio: 1 / 2.5;
    position: absolute;
    top: 50%;
    left: auto;
    right: auto;
    transform: translateY(-50%);
    z-index: 1;
    overflow: visible;
  }

  .side-img.left {
    left: 0;
    right: auto;
    transform: translateY(-50%) translateX(-100%);
  }

  .side-img.right {
    right: 0;
    left: auto;
    transform: translateY(-50%) translateX(100%);
  }

  .side-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* 开门动画状态 */
  .sci-fi-module.active .side-img.left {
    transform: translateY(-50%) translateX(0);
  }

  .sci-fi-module.active .side-img.right {
    transform: translateY(-50%) translateX(0);
  }

  /* 调整中心面板 */
  .center-bg {
    width: 180px !important;
    max-width: none !important;
    min-width: auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    aspect-ratio: 3 / 4;
    position: relative;
    top: auto;
    left: auto;
    transform: translateY(-120%);
    z-index: 2;
    margin: 0 auto;
  }

  .sci-fi-module.active .center-bg {
    transform: translateY(0);
  }

  .center-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* 居中内部的文字和指纹 */
  .center-content {
    width: 160px !important;
    max-width: none !important;
    min-width: auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    aspect-ratio: 3 / 4;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 10px;
    justify-content: space-between;
    z-index: 3;
  }

  .header-title {
    margin-top: -37px;
    gap: 6px;
    margin-left: -17px;
  }

  .arrows {
    font-size: 10px;
    letter-spacing: -1px;
  }

  .title-text h1 {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .title-text p {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .vertical-text-box {
    margin-top: 10px;
    margin-left: -39px;
  }

  .vertical-text {
    font-size: 14px;
    letter-spacing: 4px;
  }

  /* 指纹区域 */
  .fingerprint-area {
    width: 60px;
    height: 60px;
    margin-top: 15px;
    margin-bottom: 5px;
  }

  .fingerprint-img a {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .fingerprint-img a img {
    width: 65%;
    height: 216%;
    object-fit: contain;
  }

  /* --- Footer模块 --- */
  .footerr-module {
    height: auto;
    padding: 60px 0;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .content-wrapper {
    margin-top: 0;
  }

  .module-nav-wrap {
    width: 92%;
    flex-direction: column;
    gap: 12px;
  }

  .ai-craftsman-btn {
    width: 100%;
    max-width: 220px;
    height: 48px;
    font-size: 0.9rem;
  }
}