﻿* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
}
.main_body_bg {
  position: absolute;
  top: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#main {
  position: absolute;
  top: 10vh;
  left: 0;
  height: 90vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

#click-section {
  width: 35%;
  height: 100%;
  padding: 20px 0;
  position: relative;
}

#drawerboxes {
  margin-left: 10%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

#drawerboxes::before {
  content: "";
  width: 8px;
  height: 94%;
  position: absolute;
  left: -10px;
  top: 3%;
  z-index: 3;
}

.drawerbox {
  height: calc(100% / 5.5);
  width: 70%;
  position: relative;
  z-index: 3;
  transform: translateX(-70%);
  transition: transform 0.5s ease-in-out;
}

.drawerbox.active {
  transform: translateX(0);
}

.drawer-btn {
  width: 100%;
  height: 100%;
  font: 800 30px "";
  background-color: rgb(205, 206, 214);
  opacity: 0.8;
  border: none;
  transition: background-color 0.5s ease-in-out;
  color: #ffffff00;
}

.drawer-btn.active {
  background: url(https://blog-image-1316340567.cos.ap-shanghai.myqcloud.com/blog/images/booking-bg.webp);
  opacity: 0.7;
  background-size: cover;
  color: rgb(14, 58, 205);
}

.drawer-btn:hover {
  cursor: pointer;
}

.drawer-head {
  opacity: 1;
  position: absolute;
  color: rgb(255, 255, 255);
  font-size: 70px;
  font-weight: 700;
  right: -18px;
  top: calc(50% - 35px);
  text-shadow: 1px 1px 6px rgb(43, 43, 43);
}

#slide-section {
  position: relative;
  height: 100%;
  width: 65%;
  display: flex;
  justify-content: center;
  padding: 0 40px;
}

#slide-bar {
  position: absolute;
  top: 10%;
  left: 40px;
  height: 80%;
  width: 1px;
  background-color: rgb(223, 223, 223);
}

#bar {
  position: absolute;
  height: calc(100% / 4);
  width: 5px;
  top: 0;
  left: -1.2px;
  background-color: rgb(48, 87, 218);
  transition: transform 0.5s ease-in-out;
}

#card-section {
  height: 100%;
  width: 80%;
  overflow: hidden;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding: 10% 0;
  color: white;
  font-size: 30px;
  transition: transform 0.5s ease-in-out;
  text-shadow: 1px 1px 6px rgb(0, 0, 0);
}

.card-small-title {
  font-size: 30px;
  font-weight: 600;
  padding-bottom: min(5%, 10px);
  color: #eeeeee
}

.card-title {
  font-size: 80px;
  font-weight: 700;
  padding-bottom: min(20%, 40px);
  color: rgb(116, 153, 255);
}

.card-content {
  font-size: 24px;
  font-weight: 400;
  color: rgb(255, 255, 255);
  margin-bottom: 60px;
}

.card-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  box-shadow: 0 0 6px rgb(0, 0, 0);
}
#audio-container {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.bar {
  width: 3%;
  margin: 0 1%;
  background-color: #0095dd;
  height: 50px;
  transition: height 0.1s ease;}
  



/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    /* 背景固定+深色兑底 */
    body {
        background-color: #1a1a2e;
    }
    .main_body_bg {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -4;
    }

    #main {
        position: fixed;
        top: 88px;
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;
        width: 100%;
        flex-direction: column;
        padding: 5px 10px 0;
    }

    /* 抽屉按钮横排 */
    #click-section {
        width: 100%;
        height: auto;
        padding: 5px 0;
        flex-shrink: 0;
    }
    #drawerboxes {
        flex-direction: row;
        margin-left: 0;
        padding: 0 5px;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 6px;
        justify-content: center;
        height: auto;
        -webkit-overflow-scrolling: touch;
    }
    #drawerboxes::before { display: none; }
    .drawerbox {
        width: auto;
        min-width: 70px;
        height: 36px;
        transform: translateX(0) !important;
        flex-shrink: 0;
    }
    .drawerbox.active { transform: translateX(0) !important; }
    .drawer-btn {
        font-size: 13px;
        padding: 0 10px;
        color: rgba(255,255,255,0.8) !important;
        height: 36px;
        line-height: 36px;
    }
    .drawer-btn.active { color: rgb(14, 58, 205) !important; }
    .drawer-head { display: none; }

    /* 内容区域 */
    #slide-section {
        width: 100%;
        flex: 1;
        min-height: 0;
        height: auto;
        padding: 5px 0 0;
        overflow: hidden;
    }
    #slide-bar { display: none; }
    #card-section {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    .card {
        padding: 8px 0;
        font-size: 14px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 4px;
    }
    .card-small-title {
        font-size: 20px;
        padding-bottom: 6px;
        flex-shrink: 0;
    }
    .card-title {
        font-size: 32px;
        padding-bottom: 10px;
        flex-shrink: 0;
    }
    .card-content {
        font-size: 20px;
        margin-bottom: 12px;
        line-height: 1.8;
        flex-shrink: 0;
    }
    /* 图片填满剩余空间，底部对齐 */
    .card-img {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }
    .card-img img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 6px;
    }

    /* 音频可视化填充底部空间 */
    #audio-container {
        padding: 3px 0;
        flex-shrink: 0;
    }
    .bar { width: 4%; margin: 0 0.5%; }
}

@media (max-width: 480px) {
    #main { top: 78px; }
    .drawerbox { min-width: 60px; height: 32px; }
    .drawer-btn { font-size: 11px; padding: 0 7px; height: 32px; line-height: 32px; }
    .card-title { font-size: 28px; }
    .card-content { font-size: 18px; }
    .card-small-title { font-size: 18px; }
}
