Discord 完整響應式 CSS 修正版
/* ======================================== */
/*             Base Styles                  */
/* ======================================== */

a,
abbr,
acronym,
address,
applet,
big,
blockquote,
body,
button,
caption,
cite,
code,
dd,
del,
dfn,
div,
dl,
dt,
em,
fieldset,
form,
h1,
h2,
h3,
h4,
h5,
h6,
html,
iframe,
img,
input,
ins,
kbd,
label,
legend,
li,
object,
ol,
p,
pre,
q,
s,
samp,
small,
span,
strike,
strong,
sub,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
tr,
tt,
ul,
var {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-weight: inherit;
  font-style: inherit;
  vertical-align: baseline;
}

/* ======================================== */
/*           Main Section Styles            */
/* ======================================== */

.main-section.version-2025 {
  padding-top: 6.125rem;
  background-image: url(https://cdn.prod.website-files.com/6257adef93867e50d84d30e2/664f212b9e15d13d199dd448_Texture%202.webp);
  background-position: 100% 100%;
  background-repeat: no-repeat;
  background-size: 93%;
  max-height: none; /* 移除高度限制 */
  margin-top: -1px;
  padding-bottom: 7.1875rem;
  position: relative;
  min-height: 100vh; /* 確保最小高度 */
  display: flex;
  align-items: center;
}

.main-section {
  background-image: url(https://cdn.prod.website-files.com/6257adef93867e50d84d30e2/664f212b9e15d13d199dd448_Texture%202.webp);
  background-position: 100% 100%;
  background-repeat: no-repeat;
  background-size: 93%;
  max-height: none; /* 移除高度限制 */
  margin-top: -1px;
  padding-top: 6.25rem;
  padding-bottom: 7.1875rem;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* ======================================== */
/*           Container Styles               */
/* ======================================== */

.global-padding {
  flex: 1;
  width: 100%;
  padding-left: 40px;
  padding-right: 40px;
}

.large-container.high-z-index {
  z-index: 5;
}

.large-container {
  z-index: 3;
  width: 100%;
  max-width: 75rem; /* 增加最大寬度 */
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.animation-3d {
  position: relative;
  overflow: visible;
}

/* ======================================== */
/*           Top Chat Elements              */
/* ======================================== */

.top-chat-image.hidden {
  margin-right: 8rem;
}

.hidden,
.hide-tablet {
  display: none !important;
}

.top-chat-image {
  z-index: 0;
  width: 100%;
  max-width: 8.8125rem;
  margin-top: -5rem;
  margin-left: 10.875rem;
  margin-right: 9.125rem;
  position: absolute;
  inset: 0% 0% auto auto;
}

.top-chat-icon.version-2025 {
  max-width: 10rem;
  margin-right: 8rem;
}

/* 貓頭鷹的位置 */
.top-chat-icon {
  z-index: 0;
  pointer-events: none;
  width: 100%;
  max-width: 8.8125rem;
  margin-top: -8.15rem;
  margin-left: 10.875rem;
  margin-right: 9.125rem;
  display: block;
  position: absolute;
  inset: 0% 0% auto auto;
}

/* ======================================== */
/*           Content Block Styles           */
/* ======================================== */

.content-block.first-block.style-2025 {
  box-shadow: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background-image: url(https://cdn.prod.website-files.com/6257adef93867e50d84d30e2/6787ce4640564a6c2690d6de_F-bg.png);
  background-position: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 88px;
  padding: 3rem 2.5rem; /* 增加內邊距 */
}

.content-block.first-block {
  grid-column-gap: 4rem; /* 增加間距 */
  grid-row-gap: 4rem;
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
  background-image: linear-gradient(135deg, #fff6, #ffffff12);
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem; /* 統一內邊距 */
  box-shadow: 0 2px 52px #452a7c1a, inset 0 0 0 3px #fff3;
}

.content-block {
  z-index: 2;
  -webkit-backdrop-filter: blur(60px);
  backdrop-filter: blur(60px);
  background-image: linear-gradient(
    135deg,
    #fff3,
    #ffffff1f 12%,
    #ffffff0a 50%,
    #ffffff14 83%,
    #fff3
  );
  border-radius: 40px;
  flex-flow: column;
  justify-content: center;
  align-items: stretch;
  padding: 20px 24px 20px 22px;
  display: flex;
  position: relative;
  box-shadow: inset 0 0 0 3px #fff3;
}

/* ======================================== */
/*         Two Column Layout - 核心修正      */
/* ======================================== */

.two-column-layout.version-2025 {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem; /* 增加間距 */
  width: 100%;
  position: relative;
}

.two-column-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.5rem;
  position: relative;
}

/* ======================================== */
/*         Image/Video Wrapper - 核心修正   */
/* ======================================== */

.image-wrapper.video-content.version-2025 {
  flex: 1.4; /* 影片區域佔更大比例 */
  width: 100%;
  max-width: none;
  overflow: visible;
  position: relative;
}

.image-wrapper.video-content {
  flex: 1.3;
  width: 100%;
  overflow: visible;
  position: relative;
}

.image-wrapper {
  flex: 0 auto;
  justify-content: center;
  align-items: center;
  width: 100%;
  display: flex;
  position: relative;
}

/* ======================================== */
/*         Chat Image Styles - 核心修正     */
/* ======================================== */

.chat-image-wrapper {
  width: 100%;
  aspect-ratio: 16/10; /* 固定寬高比 */
  border-radius: 72px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.chat-image {
  border-radius: 40px;
  width: 100%;
  max-width: none; /* 移除最大寬度限制 */
  margin-top: 0;
  position: relative;
}

.chat-image.video-content.style-2025 {
  border-radius: 72px;
  margin-right: auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-image.video-content {
  transform: translateZ(0);
  min-height: auto; /* 移除固定高度 */
  max-height: none; /* 移除最大高度限制 */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gift-block-image {
  width: 101%;
  max-width: none;
  margin-top: -1.5rem;
  position: absolute;
  inset: 0% 0% auto auto;
}

/* ======================================== */
/*         Background Video Styles          */
/* ======================================== */

.background-video {
  color: #fff;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 72px;
}

.background-video-element,
.w-background-video {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 72px;
}

.w-background-video > video,
.background-video-element > video {
  object-fit: cover;
  z-index: -100;
  background-position: 50%;
  background-size: cover;
  width: 100%;
  height: 100%;
  margin: auto;
  position: absolute;
  inset: 0;
  border-radius: 72px;
}

audio,
canvas,
progress,
video {
  vertical-align: baseline;
  display: inline-block;
}

/* ======================================== */
/*         Text Wrapper - 核心修正          */
/* ======================================== */

.text-wrapper.mobile-first.new-home,
.text-wrapper.mobile-first.version-2025 {
  flex: 0.8; /* 文字區域佔較小比例 */
  max-width: none; /* 移除最大寬度限制 */
  width: auto;
}

.text-wrapper.mobile-first {
  flex: 0.8;
  width: auto;
  max-width: none;
  position: relative;
}

.text-wrapper {
  color: var(--white);
  flex: 0.8;
  align-self: center;
  max-width: none; /* 移除最大寬度限制 */
  width: auto;
}

/* ======================================== */
/*         Typography Styles               */
/* ======================================== */

.main-heading.version-2025 {
  margin-bottom: 1.5rem;
  /* font-family: Abcgintodiscordnord, Arial, sans-serif; */
  font-size: 32px;
  font-weight: 800;
  line-height: 1.5;
  color: white;
  letter-spacing: -0.02em;
}

.main-heading {
  z-index: 4;
  color: var(--white);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 800;
  line-height: 1.2;
  position: relative;
}

.large-body-text.version-2025-normal {
  width: 100%;
  padding-right: 0;
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.large-body-text {
  letter-spacing: 0.02rem;
  /* font-family: Ggsans, sans-serif; */
  /* font-size: clamp(1rem, 2vw, 1.25rem); */
  font-weight: 400;
  line-height: 1.55556;
  color: rgba(255, 255, 255, 0.9);
}

/* ======================================== */
/*         Decorative Elements              */
/* ======================================== */

.decorative-egg.version-2025 {
  margin-bottom: -14rem;
  margin-left: -7.75rem;
  z-index: -1;
  position: absolute;
  inset: auto auto 0% 0%;
}

.decorative-egg {
  z-index: -1;
  width: 27rem;
  margin-bottom: -10rem;
  margin-left: -10.9rem;
  position: absolute;
  inset: auto auto 0% 0%;
}

.egg-icon.version-2025 {
  max-width: 221.5px;
}

.gem-icon,
.egg-icon {
  width: 100%;
}

/* ======================================== */
/*      響應式設計 - 平板 (768px-1199px)     */
/* ======================================== */

@media screen and (max-width: 1199px) and (min-width: 768px) {
  .large-container {
    max-width: 90%;
    padding: 0 2rem;
  }

  .global-padding {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .two-column-layout.version-2025,
  .two-column-layout {
    gap: 2.5rem;
  }

  .content-block.first-block.style-2025,
  .content-block.first-block {
    padding: 2rem;
  }

  .image-wrapper.video-content.version-2025 {
    flex: 1.2;
  }

  .text-wrapper.mobile-first.version-2025,
  .text-wrapper.mobile-first,
  .text-wrapper {
    flex: 0.9;
  }

  .main-heading.version-2025 {
    font-size: 24px;
    margin-bottom: 1.25rem;
  }

  .large-body-text.version-2025-normal {
    font-size: 16px;
  }

  .chat-image-wrapper {
    aspect-ratio: 4/4;
  }
}

/* ======================================== */
/*      響應式設計 - 手機 (< 768px)          */
/* ======================================== */

@media screen and (max-width: 767px) {
  .main-section.version-2025,
  .main-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background-size: 150%;
    background-position: center;
  }

  .global-padding {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .large-container {
    max-width: 100%;
    padding: 0;
  }

  /* 改為上下排列 */
  .two-column-layout.version-2025,
  .two-column-layout {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .content-block.first-block.style-2025,
  .content-block.first-block {
    padding: 1.5rem;
    border-radius: 40px;
  }

  /* 影片容器在手機版 */
  .image-wrapper.video-content.version-2025,
  .image-wrapper.video-content {
    flex: none;
    width: 100%;
    order: 2; /* 影片在文字下方 */
    max-width: 100%;
  }

  /* 文字容器在手機版 */
  .text-wrapper.mobile-first.version-2025,
  .text-wrapper.mobile-first,
  .text-wrapper {
    flex: none;
    width: 100%;
    order: 1; /* 文字在影片上方 */
    max-width: 100%;
    text-align: center;
  }
  .chat-image.video-content.style-2025 {
    border-radius: 40px;
  }
  .chat-image-wrapper {
    aspect-ratio: 16/9;
    border-radius: 40px;
  }

  .background-video,
  .background-video-element,
  .w-background-video {
    border-radius: 40px;
  }

  .w-background-video > video,
  .background-video-element > video {
    border-radius: 40px;
  }

  .main-heading.version-2025 {
    font-size: 24px;
    margin-bottom: 1rem;
    text-align: center;
  }

  .main-heading {
    /* font-size: clamp(1.5rem, 5vw, 2rem); */
    text-align: center;
  }

  .large-body-text.version-2025-normal,
  .large-body-text {
    font-size: 20px;
    text-align: center;
    padding-right: 0;
    margin-inline: auto;
  }

  /* 隱藏裝飾元素 */
  .decorative-egg.version-2025,
  .decorative-egg {
    display: none;
  }

  .top-chat-icon.version-2025,
  .top-chat-icon,
  .top-chat-image {
    display: none;
  }
}

/* ======================================== */
/*      響應式設計 - 超小螢幕 (< 480px)      */
/* ======================================== */

@media screen and (max-width: 479px) {
  .global-padding {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .two-column-layout.version-2025,
  .two-column-layout {
    gap: 1.5rem;
  }

  .content-block.first-block.style-2025,
  .content-block.first-block {
    padding: 1rem;
    border-radius: 30px;
  }

  .chat-image-wrapper {
    aspect-ratio: 4/3;
    border-radius: 30px;
  }

  .background-video,
  .background-video-element,
  .w-background-video {
    border-radius: 30px;
  }

  .w-background-video > video,
  .background-video-element > video {
    border-radius: 30px;
  }

  /* .main-heading.version-2025 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  } */

  .large-body-text.version-2025-normal,
  .large-body-text {
    font-size: 16px;
    line-height: 1.5;
  }
}

/* ======================================== */
/*         動畫和過渡效果                    */
/* ======================================== */

.two-column-layout.version-2025,
.two-column-layout,
.image-wrapper.video-content.version-2025,
.image-wrapper.video-content,
.text-wrapper.mobile-first.version-2025,
.text-wrapper.mobile-first,
.text-wrapper {
  transition: all 0.3s ease;
}

.chat-image-wrapper,
.background-video,
.background-video-element,
.w-background-video {
  transition: border-radius 0.3s ease;
}

/* ======================================== */
/*         CSS 變數定義                     */
/* ======================================== */

:root {
  --white: #ffffff;
  --primary-bg: linear-gradient(135deg, #5865f2, #7289da);
}

/* ======================================== */
/*         確保影片正常播放                  */
/* ======================================== */

video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* ======================================== */
/*         修正 Flexbox 在舊瀏覽器的問題     */
/* ======================================== */

.two-column-layout.version-2025,
.two-column-layout {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

@media screen and (max-width: 767px) {
  .two-column-layout.version-2025,
  .two-column-layout {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
}
