@charset "UTF-8";

body {
  margin: 0;
  font-family: "Noto Sans TC", sans-serif;
  background-color: #000;
  overflow-x: hidden;
}

.container {
  max-width: 14400px;
  width: 100%;
}

@media (max-width: 768px) {
  .container {
    width: 97%;
  }
}

#mouse-stars {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: visible;
  z-index: 5;
}

/* 把 .star 改成星形 */
.star {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fffd9d;
  pointer-events: none;
  will-change: transform, opacity;
  -webkit-clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 1;
  -webkit-transform-origin: center;
  transform-origin: center;
  -webkit-animation: star-fade 0.8s forwards;
  animation: star-fade 0.8s forwards;
}

@-webkit-keyframes star-fade {
  to {
    -webkit-transform: translate(var(--dx), var(--dy)) scale(0.3) rotate(30deg);
    transform: translate(var(--dx), var(--dy)) scale(0.3) rotate(30deg);
    opacity: 0;
  }
}

@keyframes star-fade {
  to {
    -webkit-transform: translate(var(--dx), var(--dy)) scale(0.3) rotate(30deg);
    transform: translate(var(--dx), var(--dy)) scale(0.3) rotate(30deg);
    opacity: 0;
  }
}

.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  background: -webkit-gradient(linear, left top, right top, from(rgba(8, 10, 62, 0.5)), to(rgba(1, 4, 45, 0.5))) !important;
  background: linear-gradient(90deg, rgba(8, 10, 62, 0.5), rgba(1, 4, 45, 0.5)) !important;
}

@media (max-width: 991px) {
  .navbar {
    background: -webkit-gradient(linear, left top, right top, from(rgba(8, 10, 62, 0.8)), to(rgba(1, 4, 45, 0.8))) !important;
    background: linear-gradient(90deg, rgba(8, 10, 62, 0.8), rgba(1, 4, 45, 0.8)) !important;
  }
}

@media (max-width: 991px) {
  .role-img {
    max-width: 80% !important;
  }
}

.block {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  padding-top: 8%;
  padding-bottom: 5%;
}

.block .block-title {
  font-size: 3rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

@media (max-width: 991px) {
  .block {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .block .block-title {
    font-size: 2rem;
    text-align: center;
  }

  .block .role-img {
    max-width: 100%;
  }
}

.star-bg {
  position: relative;
  overflow: hidden;
}

.star-bg #star-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.star-bg .container {
  position: relative;
  z-index: 2;
}

.block1 {
  background-image: url("../img/bg-block1.png");
  background-position: bottom;
  background-attachment: scroll;
  /* 打字容器樣式 */
  /* 游標閃爍效果 */
}

.block1 .logo {
  height: 40px;
}

.block1 .block1-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  background: -webkit-gradient(linear, left top, right top, from(#fcc1f5), to(#fff));
  background: linear-gradient(90deg, #fcc1f5, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

@media (min-width: 768px) {
  .block1 .block1-title {
    font-size: 3rem;
  }
}

@media (min-width: 1440px) {
  .block1 .block1-title {
    font-size: 4rem;
  }
}

.block1 #typing {
  display: inline-block;
  white-space: pre-wrap;
  /* 支援換行 */
  /* 新增：鎖定兩行高度並隱藏溢出 */
  height: 2.6em;
  /* 2 行 × 行高 */
  white-space: pre-wrap;
  /* 讓 \n 換行生效 */
}

.block1 #typing::after {
  content: "|";
  margin-left: 2px;
  -webkit-animation: blink 1s step-end infinite;
  animation: blink 1s step-end infinite;
}

@-webkit-keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.block1 .subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
}

.block1 .btn-pink {
  background-color: #d948b5;
  color: white;
  padding: 10px 24px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
}

.block1 .btn-pink:hover {
  background-color: #c5299e;
}

.block1 .role-img {
  max-width: 450px;
  width: 100%;
  margin-bottom: 5%;
}

@media (max-width: 991px) {
  .block1 {
    padding-top: 120px;
  }
}

.navbar {
  background-color: transparent;
}

.navbar .nav-link {
  color: white;
  font-weight: 500;
  margin-left: 1rem;
}

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

.navbar .navbar-brand span {
  font-weight: bold;
  font-size: 1.25rem;
  color: white;
}

.block2 {
  overflow: hidden;
  position: relative;
  background-image: url("../img/bg-block2.png");
}

@media (min-width: 992px) {
  .block2 .role-img {
    max-width: 500px;
  }
}

.block2 .block2-box {
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.block2 .block2-item {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 100%;
  border-radius: 20px;
  padding: 20px 25px;
  margin: 1.1rem 0;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(rgba(1, 4, 45, 0.35)));
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(1, 4, 45, 0.35));
}

.block2 .block2-item.block2-item1 {
  border: 2px solid #00d4ff;
  -webkit-box-shadow: 0 0 12px rgba(0, 212, 255, 0.6), 0 0 24px rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.6), 0 0 24px rgba(0, 212, 255, 0.4);
}

.block2 .block2-item.block2-item1 h5 {
  --start: #00ffd1;
  --end: #09c0d1;
}

.block2 .block2-item.block2-item2 {
  border: 2px solid #d100ff;
  -webkit-box-shadow: 0 0 12px rgba(209, 0, 255, 0.6), 0 0 24px rgba(209, 0, 255, 0.4);
  box-shadow: 0 0 12px rgba(209, 0, 255, 0.6), 0 0 24px rgba(209, 0, 255, 0.4);
}

.block2 .block2-item.block2-item2 h5 {
  --start: #ff00d4;
  --end: #d508b0;
}

.block2 .block2-item.block2-item3 {
  border: 2px solid #00ff88;
  -webkit-box-shadow: 0 0 12px rgba(0, 255, 136, 0.6), 0 0 24px rgba(0, 255, 136, 0.4);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.6), 0 0 24px rgba(0, 255, 136, 0.4);
}

.block2 .block2-item.block2-item3 h5 {
  --start: #00ff88;
  --end: #22c478;
}

.block2 .block2-item.block2-item4 {
  border: 2px solid #ffaa00;
  -webkit-box-shadow: 0 0 12px rgba(255, 170, 0, 0.6), 0 0 24px rgba(255, 170, 0, 0.4);
  box-shadow: 0 0 12px rgba(255, 170, 0, 0.6), 0 0 24px rgba(255, 170, 0, 0.4);
}

.block2 .block2-item.block2-item4 h5 {
  --start: #ff8c00;
  --end: #d46606;
}

.block2 .block2-item h5 {
  font-size: 1.5rem;
  font-weight: bold;
  background: -webkit-gradient(linear, left top, left bottom, from(var(--start)), to(var(--end)));
  background: linear-gradient(180deg, var(--start), var(--end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.block2 .block2-item p {
  color: #fff;
  line-height: 1.6;
}

.block2 .block2-item .icon {
  height: 80px;
  margin-right: 1.5rem;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .block2 .block2-item {
    width: 48%;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
  }

  .block2 .block2-item .icon {
    margin: 0 auto 10px;
  }

  .block2 .block2-item .block2-item-txt {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .block2 .block2-item {
    width: 100%;
  }
}

@media (max-width: 991px) {
  .block2 .about-txt {
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
  }

  .block2 .about-img {
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
  }
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.8);
  pointer-events: none;
  /* 不攔截滑鼠事件 */
}

.block3 {
  background-image: url("../img/expression-bg1.png");
  overflow: hidden;
}

@media (min-width: 992px) {
  .block3 .role-img-container {
    right: 5%;
  }

  .block3 .role-img {
    max-width: 750px;
    position: relative;
    right: 25%;
  }
}

.block3 .block3-title {
  font-size: 2.5rem;
  background: -webkit-gradient(linear, left top, right top, from(#fcc1f5), to(#fff));
  background: linear-gradient(90deg, #fcc1f5, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .block3 .block3-title {
    font-size: 3rem;
  }
}

.block3 .subtitle {
  font-size: 1.125rem;
  color: #fff;
}

.block3 .character-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  position: relative;
}

.block3 .character-modules::before {
  content: "✨";
  font-size: 1.5rem;
  position: absolute;
  top: -1rem;
  left: -1rem;
  -webkit-animation: twinkle 2s infinite alternate;
  animation: twinkle 2s infinite alternate;
  opacity: 0.5;
}

.block3 .character-modules .module-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 1.2rem;
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 0 50px rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 0 50px rgba(255, 255, 255, 0.1);
  -webkit-transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease, -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  will-change: transform, box-shadow;
}

.block3 .character-modules .module-card::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.35), transparent 60%);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  pointer-events: none;
  -webkit-filter: blur(20px);
  filter: blur(20px);
}

.block3 .character-modules .module-card:hover {
  -webkit-transform: translateY(-8px) rotateX(3deg) rotateY(2deg);
  transform: translateY(-8px) rotateX(3deg) rotateY(2deg);
  -webkit-box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35), inset 0 0 60px rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35), inset 0 0 60px rgba(255, 255, 255, 0.12);
}

.block3 .character-modules .module-card .icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.block3 .character-modules .module-card .title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.block3 .character-modules .module-card .desc {
  font-size: 1rem;
  line-height: 1.6;
}

@-webkit-keyframes twinkle {
  from {
    opacity: 0.3;
    -webkit-transform: scale(1);
    transform: scale(1);
  }

  to {
    opacity: 0.8;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
}

@keyframes twinkle {
  from {
    opacity: 0.3;
    -webkit-transform: scale(1);
    transform: scale(1);
  }

  to {
    opacity: 0.8;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
}

.block3 .block3-box {
  border: 2px solid #00cfff;
  border-radius: 16px;
  font-size: 1rem;
  line-height: 1.8;
}

.block3 .content-title {
  font-size: 1.5rem;
}

.block3 .btn-cta {
  background-color: #e350c3;
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: bold;
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
  margin-top: -25px;
  right: 5%;
}

.block3 .btn-cta:hover {
  background-color: #dc24b4;
  text-decoration: none;
}

.block3 .video-box {
  position: relative;
}

.block3 #video-img,
.block3 #introVideo {
  margin: 0 auto;
  max-width: 368px;
  width: 100%;
}

.block3 #introVideo {
  display: none;
}

.block3 .btn-play-glow {
  position: absolute;
  bottom: 50px;
  left: 50%;
  -webkit-transform: translate(-50%, 5px);
  transform: translate(-50%, 5px);
  background: linear-gradient(135deg, #ff91f0, #8bc7ff);
  border-radius: 30px;
  padding: 10px 20px;
  color: white;
  font-weight: bold;
  -webkit-animation: pulse 2s infinite;
  animation: pulse 2s infinite;
  border: none;
  z-index: 2;
  cursor: pointer;
}

@-webkit-keyframes pulse {

  0%,
  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(255, 145, 240, 0.6);
    box-shadow: 0 0 0 0 rgba(255, 145, 240, 0.6);
  }

  50% {
    -webkit-box-shadow: 0 0 0 15px rgba(255, 145, 240, 0);
    box-shadow: 0 0 0 15px rgba(255, 145, 240, 0);
  }
}

@keyframes pulse {

  0%,
  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(255, 145, 240, 0.6);
    box-shadow: 0 0 0 0 rgba(255, 145, 240, 0.6);
  }

  50% {
    -webkit-box-shadow: 0 0 0 15px rgba(255, 145, 240, 0);
    box-shadow: 0 0 0 15px rgba(255, 145, 240, 0);
  }
}

.flip-card {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16/9;
  -webkit-perspective: 1000px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-transition: -webkit-transform 0.6s ease;
  transition: -webkit-transform 0.6s ease;
  transition: transform 0.6s ease;
  transition: transform 0.6s ease, -webkit-transform 0.6s ease;
}

.flip-card:hover .flip-card-inner {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  border-radius: 1rem;
}

/* 正面 */
.flip-card-front {
  background-color: #e91e63;
  color: #fff;
}

/* 背面 */
.flip-card-back {
  background-color: #d81b60;
  color: #fff;
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

#view-switch .image-container {
  position: relative;
  height: 500px;
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

#view-switch .image-container .view-img {
  height: 100%;
  opacity: 0;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
  pointer-events: none;
  display: none;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

#view-switch .image-container .view-img.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

#view-switch .button-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-top: 1rem;
  margin-top: 20px;
}

#view-switch .button-group button {
  margin: 0 4px;
  padding: 5px 10px;
  border: none;
  border-radius: 20px;
  background: #ccc;
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
}

#view-switch .button-group button.active,
#view-switch .button-group button:hover {
  background: #4d6bff;
  color: #fff;
}

.expression-video-box {
  position: relative;
  min-height: 300px;
  padding-top: 120%;
}

@media (max-width: 600px) {
  .expression-video-box {
    min-height: 150px;
  }
}

.expression-video-box .preview-img {
  opacity: 1;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

.expression-video-box video {
  height: 0;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.expression-video-box video,
.expression-video-box .preview-img {
  top: 10%;
  width: 80%;
  position: absolute;
  border-radius: 15px;
  background: linear-gradient(#0a213b, #0a213b) padding-box, linear-gradient(145deg, #ffd700, #ffb700, #ffda44) border-box;
  border: 5px solid transparent;
  -webkit-box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), inset 0 0 20px rgba(255, 215, 0, 0.2);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), inset 0 0 20px rgba(255, 215, 0, 0.2);
  overflow: hidden;
  left: 10%;
  /* 內部星際背景 */
  /* 內容區 */
}

.expression-video-box video::before,
.expression-video-box .preview-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, #0ff 0%, #004d66 100%);
  opacity: 0.3;
  z-index: 0;
}

.expression-video-box video::after,
.expression-video-box .preview-img::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  -webkit-transform: rotate(25deg);
  transform: rotate(25deg);
  -webkit-animation: shimmer 3s infinite;
  animation: shimmer 3s infinite;
  pointer-events: none;
}

.expression-video-box video>*,
.expression-video-box .preview-img>* {
  position: relative;
  z-index: 1;
}

.expression-video-box .btn-play-expression {
  position: absolute;
  top: 55%;
  left: 50%;
  background: rgba(255, 255, 255, 0.3);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background-color: transparent;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  display: none;
}

.expression-video-box .btn-play-expression img {
  width: 100% !important;
  height: 100% !important;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

.expression-video-box .btn-play-expression:hover {
  background: rgba(255, 255, 255, 0.5);
  -webkit-transform: translate(-50%, -50%) scale(1.1);
  transform: translate(-50%, -50%) scale(1.1);
}

@-webkit-keyframes shimmer {
  0% {
    -webkit-transform: translate(-100%, -100%) rotate(25deg);
    transform: translate(-100%, -100%) rotate(25deg);
  }

  100% {
    -webkit-transform: translate(100%, 100%) rotate(25deg);
    transform: translate(100%, 100%) rotate(25deg);
  }
}

@keyframes shimmer {
  0% {
    -webkit-transform: translate(-100%, -100%) rotate(25deg);
    transform: translate(-100%, -100%) rotate(25deg);
  }

  100% {
    -webkit-transform: translate(100%, 100%) rotate(25deg);
    transform: translate(100%, 100%) rotate(25deg);
  }
}

.expression-block {
  padding-bottom: 60px;
  background-image: url(../img/expression-bg6.png);
}

@media (min-width: 991px) {
  .expression-block {
    padding: 5% 0;
  }
}

.expression-block h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.expression-block .main-display {
  margin-top: 40px;
}

.expression-block .main-display .preview-img {
  max-width: 350px;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
  margin: 0 auto;
  width: 80%;
}

.expression-block .main-display .slick-prev:before,
.expression-block .main-display .slick-next:before {
  font-size: 30px;
}

.expression-block .main-display .slick-prev {
  left: 25px;
  z-index: 30;
}

.expression-block .main-display .slick-next {
  right: 25px;
  z-index: 30;
}

.expression-block .main-display .slick-track {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.expression-block .main-display .slick-center {
  -webkit-transform: scale(1.15);
  transform: scale(1.15);
  padding-bottom: 80px;
}

.expression-block .main-display .slick-center .dialog-bubble {
  opacity: 1;
  -webkit-transform: scale(0.7);
  transform: scale(0.7);
}

.expression-block .main-display .slick-center .btn-play-expression {
  display: block;
}

.expression-block .main-display .slick-center video {
  height: 95%;
}

@media (max-width: 600px) {
  .expression-block .main-display .slick-center {
    -webkit-transform: scale(1);
    transform: scale(1);
    padding-top: 0;
    padding-bottom: 40px;
  }
}

.expression-block .main-display .slick-dots li {
  margin: 0 8px;
}

.expression-block .main-display .slick-dots li button:before {
  font-size: 15px;
  color: #fff;
}

@media (max-width: 600px) {
  .expression-block .main-display .slick-dots {
    bottom: -40px;
  }
}

.expression-block .main-display .expression-caption {
  margin: 25px 0 0;
  font-size: 1.2rem;
  border: 1px solid #3db9f0;
  -webkit-box-shadow: inset 0 0 10px #3db9f0;
  box-shadow: inset 0 0 10px #3db9f0;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 15px 25px;
  position: relative;
  z-index: 10;
  min-height: 90px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.expression-block .dialog-bubble {
  -webkit-animation: fadeIn 0.5s ease-in-out;
  animation: fadeIn 0.5s ease-in-out;
  opacity: 0;
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}

.expression-block .dialog-bubble .icon {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  border-width: 15px 15px 0;
  border-style: solid;
  border-color: #3db9f0 transparent transparent;
  z-index: 15;
}

.expression-block .expression-buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 10px;
}

.expression-block .expression-buttons button {
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: #ccc;
  border: none;
  cursor: pointer;
}

.expression-block .expression-buttons button:hover,
.expression-block .expression-buttons button.active {
  background: #4d6bff;
}

.block4 {
  background-image: url("../img/bg-block4.png");
}

.block4 .block4-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  margin-top: 0.5rem;
}

.block4 .block4-card {
  color: #ffffff;
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
  text-align: center;
}

.block4 .block4-card h5 {
  font-size: 1.5rem;
  color: #00d4ff;
  margin-bottom: 10px;
}

.block4 .block4-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

.block4 .block4-card .card-icon {
  max-width: 100%;
  -o-object-fit: contain;
  object-fit: contain;
}

.block4 .block4-card .btn-game {
  display: block;
  background: linear-gradient(45deg, #ff00cc, #3333ff);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  -webkit-transition: opacity 0.2s ease, -webkit-transform 0.2s ease;
  transition: opacity 0.2s ease, -webkit-transform 0.2s ease;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transition: opacity 0.2s ease, transform 0.2s ease, -webkit-transform 0.2s ease;
  -webkit-box-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
  width: 110px;
  margin: 20px auto 0;
}

.block4 .block4-card .btn-game:hover {
  opacity: 0.85;
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

@media (max-width: 575px) {
  .block4 .block4-card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-bottom: 0 !important;
  }

  .block4 .block4-card .block4-card-content {
    text-align: left;
    padding-left: 15px;
  }

  .block4 .block4-card .card-icon {
    max-width: 130px;
  }

  .block4 .block4-card .btn-game {
    margin-left: 0;
  }
}

.block5 {
  background-image: url("../img/bg-block5.png");
}

.block5 .head {
  max-width: 700px;
}

@media ((min-width: 992px)) {
  .block5 .book-list {
    width: 70%;
  }

  .block5 .book-role-img {
    width: 30%;
  }
}

.block5 .block5-title .highlight {
  color: #ff98ae;
}

.block5 .block5-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.block5 .block5-card {
  border-radius: 15px;
  text-align: center;
  padding: 10px;
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
  height: 100%;
  border: 2px solid #fec7d2;
  -webkit-box-shadow: inset 0 0 10px #fec7d2;
  box-shadow: inset 0 0 10px #fec7d2;
}

.block5 .block5-card:hover {
  -webkit-transform: translateY(-4px);
  transform: translateY(-4px);
  -webkit-box-shadow: 0 0 10px #fec7d2;
  box-shadow: 0 0 10px #fec7d2;
}

.block5 .block5-card img {
  border-radius: 10px;
  max-height: 150px;
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
}

.block5 .block5-card .card-caption {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .block5 .block5-card img {
    max-height: inherit;
  }
}

.block5 .copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 40px;
}

.hidden {
  display: none !important;
}

/* 按鈕共用樣式 */
.btn {
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  -webkit-transition: -webkit-transform 0.2s;
  transition: -webkit-transform 0.2s;
  transition: transform 0.2s;
  transition: transform 0.2s, -webkit-transform 0.2s;
}

.btn:hover {
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

/* 開始畫面置中 */
.minesweeper-start {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(27, 0, 59, 0.9), rgba(0, 42, 92, 0.9));
  z-index: 10;
}

.block6 {
  overflow: hidden;
  background-image: url("../img/expression-bg2.png");
  background-position: left 0;
  padding-bottom: 30px;
}

.block6 .block-title {
  background: -webkit-gradient(linear, left top, right top, from(#ccb0f7), to(#fff));
  background: linear-gradient(90deg, #ccb0f7, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.block6 .block4-subtitle {
  margin-bottom: 50px;
}

.block6 .social-card {
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #3db9f0;
  -webkit-box-shadow: inset 0 0 10px #3db9f0;
  box-shadow: inset 0 0 10px #3db9f0;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-transition: -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
  transition: -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
  transition: transform 0.3s, box-shadow 0.3s;
  transition: transform 0.3s, box-shadow 0.3s, -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
  color: #fff;
  margin-bottom: 20px;
}

.block6 .social-card:hover {
  -webkit-transform: translateY(-5px);
  transform: translateY(-5px);
  -webkit-box-shadow: 0 0 10px #3db9f0;
  box-shadow: 0 0 10px #3db9f0;
}

.block6 .social-image {
  width: 100%;
  -o-object-fit: contain;
  object-fit: contain;
  margin-bottom: 15px;
}

.block6 .social-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.block6 .social-desc {
  font-size: 14px;
  margin-bottom: 20px;
}

.block6 .social-btn {
  background: linear-gradient(45deg, #e056b0, #7175f4);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  width: 110px;
  text-align: center;
  margin: 0 auto;
  cursor: pointer;
  display: block;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.block6 .social-btn:hover {
  background: linear-gradient(45deg, #7175f4, #e056b0);
}

/* 回到頂部按鈕樣式 */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff00cc, #3333ff);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.scroll-top-btn .arrow-up {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
}

.scroll-top-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

/* 針對移動裝置的調整 */
@media (max-width: 768px) {
  .scroll-top-btn {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }

  .scroll-top-btn .arrow-up {
    font-size: 20px;
  }
}