@import url('https://fonts.googleapis.com/css2?family=Jersey+15&family=Quantico:ital,wght@0,400;0,700;1,400;1,700&display=swap');

@font-face {
    font-family: 'jjhafnt';
    src: url("../Images/jjhafnt.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.2; }
  100% { opacity: 1; }
}

@keyframes planet-rotate {
    0% {
        transform: scale(1.5) rotateZ(-5deg);
    }
    50% {
        transform: scale(1.5) rotateZ(5deg);
    }
    100% {
        transform: scale(1.5) rotateZ(-5deg);
    }
}

*{
    box-sizing:border-box;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    scroll-behavior: smooth
}

body {
    position: relative;
    margin: auto;
}

img{
    max-width: 100%;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

h1{
    font-family: "jjhafnt", sans-serif;
    font-weight: 200;
    font-style: normal;
    font-size: 4vh;
    color: #ffffff;
}

h2{
    font-family: "jjhafnt", sans-serif;
    font-weight: 150;
    font-style: normal;
    font-size: 3vh;
    color: #ffffff;
}

h3{
    font-family: "jjhafnt", sans-serif;
    font-weight: 90;
    font-style: normal;
    font-size: 2.5vh;
    color: #ffffff;
}

h4{
    font-family: "jjhafnt", sans-serif;
    font-weight: 20;
    font-style: normal;
    font-size: 2.5vh;
    color: #ffffff;
}

p{
    font-family: "Quantico", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    color: #ffffff;
}

a{
    font-family: "jjhafnt", sans-serif;
    font-weight: 150;
    font-style: normal;
    font-size: 1.2rem;
    color: #ffffff;
}

button{
    font-family: "jjhafnt", sans-serif;
    font-weight: 100;
    font-style: normal;
    font-size: 1.5rem;
    color: #ffffff;
}

/** mobile layout **/

.moly{
    display:block;
}

.dely{
    display:none;
}

.tely{
    display:none;
}

#loadcont {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../Images/cm_m.jpg") center center no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
    box-sizing: border-box;
    padding: 20px;
    transition: opacity 1s ease-out;
}

#clign {
    cursor: pointer;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: opacity 0.5s ease-out;
    animation: pulse 2s infinite;
    transition: transform 0.5s ease;
}

#clixt {
    color: #00FFFF;
    font-size: 1.5em;
    margin-top: 20px;
    text-shadow: 0 0 5px #00FFFF, 0 0 10px #00FFFF;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#loadvid {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
}

#main-content {
    display: none;
    opacity: 0;
}

.fade-in {
    animation: fadeIn 1s ease-in forwards;
}


#wrapper {
    position: relative;
}

header {
    background-size: cover;
    padding:1.5rem;
    color:#fff;
}

.container .logo{
    position: fixed;
    top: 0.25rem;
    left: 1.5rem;
    width: 19%;
    justify-content:flex-start;
    justify-items:auto;
}

.hamburger img{
    width: 15%;
}

/** ham **/

.sticky {
    position: fixed;
    z-index: 1;
    top: 0;
    width: 100%;
    height: 50px;
    background-color: white;
}

/** for off canvas navi **/

.off_navigation {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    margin: 0;
    padding: 0 0 0 2rem;
    background: url("../Images/mng.png") center center no-repeat;
    background-size: cover;
    transition: right 500ms ease;
    z-index: 2;
}

.off_navigation img {
    padding: 2rem 1rem;
    margin: 3rem 0 0 0;
    width: 70%;
}

.off_navigation ul.navigation_bar {
  position: relative;
  list-style-type: none;
  padding: 0;
}
.off_navigation ul.navigation_bar li {
  position: relative;
  display: block;
}
.off_navigation ul.navigation_bar li:first-child {
}

.off_navigation ul.navigation_bar li a {
  position: relative;
  display: block;
  margin: 0;
  padding: 2rem;
  color: rgb(0, 0, 0);
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
}
.off_navigation ul.navigation_bar li a:before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  transition: width 250ms ease;
  z-index: 2;
}
.off_navigation ul.navigation_bar li a:hover {
  color: #ffffff;
  background-color: #000000;
}

.off_navigation ul.navigation_bar li a {
    color:#000000;
    font-weight: 100;
}

.off_navigation ul.navigation_bar li a:hover {
    color:#ffffff;
}

.off_navigation ul.social {
    list-style:none;
    font-size:2rem;
    display:flex;
    flex-direction: row;
    margin:0;
    padding:0 0 0 2rem;
}

.off_navigation ul.social li {
    padding:0 1rem 0 0;
}

.off_navigation ul.social li a {
    color:#fff;
}

.off_navigation ul.social li a:hover {
    color:#000000;
}

#menu {
  display: none;
}

#menu:checked ~ .off_navigation {
  right: 0;
  transition: right 500ms ease;
}
#menu:checked ~ #wrapper {
  transform: translateX(-300px);
  transition: transform 500ms ease;
}

.hamburger {
    position: fixed;
    top: 0.9rem;
    right: 1.5rem;
    display: flex;
    align-items: end;
    justify-content: center;
    flex-direction: column;
    color:#fff;
    transition: transform 250ms ease;
    cursor: pointer;
    z-index: 200;
}

#musicToggleBtn{
    position: fixed;
    top: 0.5rem;
    right: 4rem;
    display: flex;
    align-items: end;
    justify-content: center;
    flex-direction: column;
    transition: transform 250ms ease;
    cursor: pointer;
    background: none;
    stroke: none;
    border: none;
    z-index: 500; 
    width: 5rem;
}

#musicToggleBtn img{
    width: 45%;
}

.music-btn:hover {
    background-color: rgba(255, 255, 255, 1);
}

.music-btn img.spinning {
    animation: spin 2s linear infinite;
}


/** end of nav **/

#hero_card .cardm video{
    width: 100%;
}

#hero_card .cardm a{
    position: absolute;
    top: 40vh;
    left: 0vh;
    height: 300px;
}

#band1{
    overflow: hidden;
}

#band1 video{
    height: 60px;
}

#zwjsha {
    background: url("../Images/p2bg_m.jpg") center center no-repeat;
    height: 100%;
    background-size: cover;
}

#zwjsha .container {
    text-align: center;
    padding: 0 1rem 3rem 1rem;
}

#zwjsha .container .intrt{
    margin: 0 1rem;
}

#zwjsha .container .intrt img{
    max-width: 15%;
    margin: 0 auto;
}

#zwjsha .container .intrt .cnh3{
    margin: 1.8rem 0 0.3rem 0;
}

#zwjsha .container .intrt .h3{
    margin: 0;
}

#zwjsha .container .intrt .enh3{
    margin: 0 0 2rem 0;
}

#zwjsha .container .intrt .cnp{
    margin: 0 0 0.5rem 0;
    padding: 0 0.5rem;
}

#zwjsha .container .intrt .enp{
    margin: 0;
    padding: 0 0.5rem;
}

#zwjsha .container .video {
    margin: 2rem 0;
}

#zwjsha .container .video iframe {
    height: auto;
    width: auto;
}

#gc1{
    background: url("../Images/bgex.jpg") center center no-repeat;
    background-size: cover;
    text-align: center;
    margin: 0;
    padding: 1rem 0;
}

#qitsj{
    background:url("../Images/p3bg_m.jpg") center center no-repeat;
    background-size: cover;
}

#qitsj .head{
    padding: 2rem 0rem 0 0;
    text-align: center;
}

#qitsj .container{
    text-align: center;
}

#qitsj .head .h3cn{
    margin:1rem 0 0.3rem 0;
}

#qitsj .head .h3en{
    margin:0;
}

#qitsj .container .griddo {
    list-style:none;
    margin:0;
    padding:2rem 2rem;
}

#qitsj .container .griddo .cont1 {
    border: 10px solid transparent;
    border-image: url("../Images/backso.png") 130 stretch;
    margin:0 0 2.5rem 0;
}

#qitsj .container .griddo .cont2 {
    border: 10px solid transparent;
    border-image: url("../Images/backso.png") 130 stretch;
    margin:0 0 2.5rem 0;
}

#qitsj .container .griddo .cont3 {
    border: 10px solid transparent;
    border-image: url("../Images/backso.png") 130 stretch;
    margin:0 0 2.5rem 0;
}

#qitsj .container .griddo .cont1 .c1 a .b1{
    background: url("../Images/bzmb.png") center center no-repeat;
    background-size: cover;
}

#qitsj .container .griddo .cont2 .c1 a .b2{
    background: url("../Images/ttfbmb.png") center center no-repeat;
    background-size: cover;
}

#qitsj .container .griddo .cont3 .c1 a .b2{
    background: url("../Images/ttfbmb.png") center center no-repeat;
    background-size: cover;
}

#qitsj .container .griddo div .c1{
    background: #a6e6ef63;
    padding:2rem 1.5rem 3rem 1.5rem;
    background-size: cover;
}

#qitsj .container .griddo div .c1 img{
    margin: 0;
    max-height: 115px;
}

#qitsj .container .griddo div .c1 .h3cn{
    margin:1rem 0 0 0;
}

#qitsj .container .griddo div .c1 .h4cn{
    margin:1rem 0 0 0;
}

#qitsj .container .griddo div .c1 .h4enl{
    margin: 0;
}

#qitsj .container .griddo div .c1 .h4en{
    margin: 0;
}

#qitsj .container .griddo div .c1 .cnp{
    padding:1.5rem 0 0 0;
    margin:0;
    margin-bottom: 0.5rem;
}

#qitsj .container .griddo div .c1 .enp{
    padding:0 0 2rem 0;
    margin:0;
}

#qitsj .container .griddo div .c1 a video{
    object-fit:contain;
    width: 100%;
}

#qitsj .card:last-child{
    margin:0;
}

#dsxygsj{
    background: url("../Images/starbgmd.gif") center center no-repeat;
    background-size: cover;
    text-align: center;
    padding: 2rem 0rem 0 0;
}

#dsxygsj .container{
    text-align: center;
    padding: 0 0 1rem 0;
}

#dsxygsj .container .head{
    padding: 0 0 2rem 0;
    text-align: center;
}

#dsxygsj .container .head .h3cn{
    margin:1rem 0 0.3rem 0;
}

#dsxygsj .container .head .h3en{
    margin:0;
}

#dsxygsj .container .introcd{
    padding: 0 2rem 1rem 2rem;
}

#dsxygsj .container .introcd .cnp{
    margin: 0;
}

#dsxygsj .container .introcd .enp{
    margin: 0;
}


#dsxygsj .container #countdown-container {
    background:url("../Images/phtnml.png") center center no-repeat;
    background-size: contain;
    padding: 3rem 1rem;
    margin: auto;
    text-align: center;
    width: 85%;
    overflow: hidden;
}

.countdown-header {
    font-family: "jjhafnt", sans-serif;
    font-weight: 150;
    font-style: normal;
    font-size: 3vh;
    color: #ffffff;
}

.countdown-header-en {
    font-family: "jjhafnt", sans-serif;
    font-weight: 150;
    font-style: normal;
    font-size: 3vh;
    color: #ffffff;
    padding: 0 0 1.5rem 0;
}

.countdown-values {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}

.countdown-item span {
    font-family: "jjhafnt", sans-serif;
    font-weight: 20;
    font-style: normal;
    font-size: 3.5vh;
    color: #ffffff;
}

.countdown-item .label {
    font-family: "Quantico", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 0.8rem;
    color: #ffffff;
}

.countdown-separator {
    font-size: 2em;
    align-self: center;
    margin: 0 5px;
    color: white;
}

.countdown-item.lightyear-item span {
    font-size: 2em;
}

#arrival-message {
    position: relative;
    color: #ffffff;
    font-family: "jjhafnt", sans-serif;
    font-weight: 60;
    font-style: normal;
    font-size: 2.5vh;
    color: #ffffff;
    text-align: center;
    padding: 0 32px 8px 32px;
}

#journey-container {
    display: flex;
    flex-direction: column-reverse; 
    align-items: center;
    justify-content: flex-start;
    width: 90%;
    margin: 10px auto 30px;
    position: relative;
    padding: 0 10px;
}

.planet-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
    transition: transform 1s ease-in-out, opacity 1s ease-out;
}

.planet-wrapper img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.planet-desc h3{
    margin: 0;
}

.planet-desc p{
    margin: 0;
}

#flight-line {
    position: relative;
    width: 2px;
    height: 200px;
    margin: 20px 0;
    display: block;
    rotate: 180deg;
}

.dashed-line {
    height: 100%;
    width: 2px;
    border-right: 2px dashed #999;
    border-bottom: none;
}

#spaceship-wrapper {
    position: absolute;
    left: -2.5rem;
    top: var(--spaceship-move-percentage, 0%);
    transform: none;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    transition: top 20s ease-out;
}

#spaceship {
    max-width: 120px;
    rotate: 90deg;
    object-fit: contain;
}

.spaceship-info {
    font-size: 0.7em;
    color: white;
    margin-top: 5px;
    white-space: nowrap;
}

#bottom-arrival-message {
    font-family: "Quantico", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2rem;
    color: #ffffff;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease-in-out, transform 2s ease-in-out;
    animation: blink 2s linear infinite;
}

.arrived-state #bottom-arrival-message {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none !important;
}

.arrived-state #countdown-container .countdown-values {
    display: none;
}
.arrived-state #countdown-container #arrival-message {
    display: block !important;
}

.arrived-state #planetA,
.arrived-state #flight-line,
.arrived-state #spaceship-wrapper,
.arrived-state .countdown-header,
.arrived-state .countdown-header-en {
    display: none;
}

.arrived-state #planetB {
    transition: transform 1s ease-in-out;
    transform: scale(1.5);
    margin: 3rem auto;
}

.arrived-state #planetB img {
    transition: transform 1.5s ease-in-out;
    animation: planet-rotate 3s ease-in-out infinite;
    transform: rotateZ(-5deg);
    margin: 2rem;
}

.arrived-state #journey-container {
    justify-content: center;
    height: auto;
}

.scrolling-text-container {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    white-space: nowrap; 
    box-sizing: border-box;
    padding: 10px 0;
    background-color: #464646b9;
    position: relative;
}

#scrollingText {
    display: inline-block;
    animation: scrollText var(--animation-duration) linear infinite;
    will-change: transform;
    color: #ffffff;
}

#scrollingText .sentence-unit {
    display: inline-block;
    vertical-align: top;
    text-align: left;
    padding: 0 50px;
    box-sizing: border-box;
}

#scrollingText p {
    margin: 0;
    white-space: nowrap;
    line-height: 1.3;
}

#scrollingText .chinese {
    font-size: 0.8rem;
    color: #ffffff;
}

#scrollingText .english {
    font-size: 0.5rem;
    color: #ffffff;
    margin-top: -0.2em; 
    display: block;
}

@keyframes scrollText {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

#ptgly {
    background: url("../Images/p4bg_m.jpg") center center no-repeat;
    background-size: cover;
}

#ptgly .container {
    padding: 2rem 1rem 3rem 1rem;
}

#ptgly .container .intrt{
    margin: 0 1rem;
    text-align: center;
}

#ptgly .container .intrt .cnh3{
    margin: 1.8rem 0 0.3rem 0;
}

#ptgly .container .intrt .enh3{
    margin: 0 0 2rem 0;
}

#ptgly .container .intrt p{
    margin: 0;
}

#ptgly .container .intrt .enp{
    margin: 0.5rem 0 1.5rem 0;
}

.thumbnails-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.thumbnails-wrapper::-webkit-scrollbar {
    height: 8px;
}

.thumbnails-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.thumbnails-wrapper::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.1);
}

.row {
    display: inline-block;
    vertical-align: top;
}

.column {
    display: inline-block;
    width: 25%;
    box-sizing: border-box;
    padding: 0;
    vertical-align: top;
}

#ptgly .container .phtgly {
    position: relative;
    height: 30vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.mySlides {
    display: none;
    width: 100%;
    height: 100%;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 20;
}

.prev {
    left: 0;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 15;
}

.caption-container {
    text-align: center;
    background: url("../Images/phtnm.png") center center no-repeat;
    background-size: contain;
    padding: 2px 16px;
    color: white;
    z-index: 20;
}

.caption-container .photo-info {
    font-size: 0.9rem;
    margin: 0 0 0.1rem 2rem;
    text-align: left;
}

.caption-container .photo-infod {
    margin: 0 0 0.7rem 2rem;
    text-align: left;
}

.caption-container .cpright{
    text-align: center;
    font-size: 0.5rem;
    margin-top: 0.7rem;
}

#ptgly .container .upphoto{
    background-color: #00000081;
    padding: 1rem;
    margin-top: 2rem;
    text-align: center;
}

#ptgly .container .upphoto .infom .pcn{
    margin-top: 0.5rem;
}

#ptgly .container .upphoto .infom .pen{
    margin-bottom: 0.5rem;
}

#ptgly .container .upphoto .infom p{
    margin: 0;
    font-size: 0.8rem;
}

#ptgly .container .upphoto .formtian .form-container {
    padding: 50px 70px;
    box-sizing: border-box;
}

#sendMethod{
    background-color: #00000097;
}

.form-container, .form-container * {
    color: #ffffff; 
    font-family: "Quantico", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    color: #ffffff;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

.english-label {
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 30px;
}

input[type="text"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 8px 0; 
    border: none;
    border-bottom: 1px solid #ffffff; 
    background-color: transparent; 
    box-sizing: border-box;
    font-size: 1rem;
    color: #ffffff; 
    outline: none; 
}

textarea {
    resize: vertical; 
    border: 1px solid #ffffff; 
    padding: 10px;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="5" viewBox="0 0 10 5"><path d="M0 0l5 5 5-5z" fill="%23ffffff"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0 top 50%;
    padding-right: 20px; 
}

select option {
    color: #333; 
}

/* --- 底部按钮和复选框 --- */
.checkbox-group {
    display: flex;
    align-items: flex-start; 
    margin-bottom: 40px;
    font-size: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid #ffffff;
    cursor: pointer;
    background-color: transparent;
    flex-shrink: 0;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #ffffff; 
}

.checkbox-label {
    cursor: pointer;
    line-height: 1.4;
    font-size: 12px;
    font-weight: normal;
}

/* 确定按钮 */
.submit-button {
    background-color: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 10px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block; 
    margin: 0 auto; 
    min-width: 150px;
}

.submit-button p{
    margin-bottom: 0;
    margin-top: auto;
    text-align: center;
}

.submit-button:hover {
    background-color: #ffffff; 
    color: #000;
}

/* Done 标签 */
.submit-label {
    text-align: center;
    margin-top: 1px;
    font-size: 11px;
}

#imageModal{
    display: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    height: calc(100% - 100px);
    max-width: 1200px;
    background-color: transparent;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 1001;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.modal-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#modalImage {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transform-origin: center center;
    transition: none;
    cursor: grab;
}

#modalImage.dragging {
    cursor: grabbing;
}

.prev-modal,
.next-modal {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 1002;
}

.prev-modal {
    left: 0;
}

.next-modal {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-modal:hover,
.next-modal:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.caption-container-modal {
    text-align: center;
    padding: 10px 16px;
    color: white;
    width: 90%;
    max-width: 1200px;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    margin-top: 10px;
}

.caption-container-modal p {
    margin: 5px 0;
}

.caption-container-modal #captionModal {
    font-size: 1.2rem;
    font-weight: bold;
}

.caption-container-modal .photo-info-modal,
.caption-container-modal .photo-infod-modal {
    font-size: 0.9rem;
    text-align: left;
    margin-left: 20px;
}

.modal-controls {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1001;
    display: flex;
    gap: 10px;
}

.zoom-icon {
    font-size: 24px;
    color: white;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.zoom-icon:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

#xfccy{
    background: url("../Images/startt.gif") repeat;
}

#xfccy .container{
    text-align: center;
    padding: 0 1rem 2rem 1rem;
}

#xfccy .container .intrt{
    margin: 0 1rem;
}

#xfccy .container .intrt .cnh3{
    margin: 1.8rem 0 0.3rem 0;
}

#xfccy .container .intrt .h3{
    margin: 0;
}

#xfccy .container .intrt .enh3{
    margin: 0 0 2rem 0;
}

#xfccy .container .intrt .cnp{
    margin: 0 0 1rem 0;
    padding: 0 0.5rem;
}

#xfccy .container .intrt .enp{
    margin: 0;
    padding: 0 0.5rem;
}

.smallp{
    font-size: 1.8vh;
    padding-top: 0.1rem;
}

#cyidmz {
    list-style: none;
    padding-left: 0rem;
    margin: 0;
}

#cyidmz li {
    padding: 1rem 2rem;
    background: url("../Images/glsign.png") center center no-repeat;
    background-size: contain;
    padding: 1rem 0 2rem 1.8rem;
    margin: 0 0 0.8rem 0;
    align-items: center; 
}

#cyidmz li:after{
    display: table;
    clear: both;
}

#cyidmz li h3{
    float: left;
    width: 35%;
    margin: 0;
    font-weight: 30;
}

#cyidmz li h4{
    float: left;
    width: 65%;
    margin: 0;
    text-align: left;
    font-weight: 30;
}

#cyidmz li .smllp {
    font-size: 2.3vh;
}

#cyidmz li:last-child {
    border-bottom: none;
}

#pagi {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    overflow: hidden;
}


#pagi button {
    flex-shrink: 0;
    padding: 8px 15px;
    cursor: pointer;
    background-color: #232323;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
}

#pagi button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

#pagi button:hover:not(:disabled) {
    background-color: #232323;
    transform: translateY(-2px);
}

#pagi button:active:not(:disabled) {
    transform: translateY(0);
    background-color: #ffffff;
    color: #232323;
}

#panumbers {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    max-width: calc(100% - 150px);
}

#panumbers span {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 3px;
    border-radius: 4px;
    cursor: pointer;
    background-color: #f9f9f9;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
}

#panumbers span.active {
    background-color: #232323;
    color: #ffffff;
    font-weight: bold;
}

#panumbers span:not(.active):hover {
    background-color: #232323;
    color: rgb(255, 255, 255);
    transform: translateY(-2px);
}

#panumbers span:not(.active):active {
    transform: translateY(0);
}

#panumbers span.ellipsis {
    cursor: default;
    border: none;
    font-weight: normal;
    padding: 10px 5px;
    transform: none;
}

#panumbers span.ellipsis:hover {
    background-color: transparent;
    border-color: transparent;
    color: inherit;
}

#guangg{
    background-color: #1e1e1e;
    text-align: center;
}

#guangg .container{
    padding-top: 3rem;
    padding-bottom: 2rem;
}

#guangg .container .flx .info{
    padding: 1rem 2rem 2.5rem 2rem;
}

#guangg .container .flx .info .cnde{
    margin: 0 0 0.3rem 0;
    padding: 0;
}

#guangg .container .flx .info .cndc{
    margin: 0 0 3rem 0;
    padding: 0;
}

#guangg .container .flx .info p{
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

#guangg .container .flx .cpeap img{
    max-width: 70%;
    margin-bottom: 2rem;
}

#guangg .container .note p{
    font-size: 0.7rem;
    margin: 0;
    padding: 0 1rem;
}

footer{
    background-color: rgb(255, 255, 255);
}

footer .container{
    color: rgb(0, 0, 0);
    padding: 0 1rem 1rem 1rem;
    text-align: center;
    bottom: -8rem;
}


footer .container p{
    color: rgb(0, 0, 0);
    font-size: 13px;
}

/** end of leiyincard **/

/** start of leiyingall **/

#hero_gall .cardm{
    background: url("../Images/undmtm_m.jpg") center center no-repeat;
    background-size: cover;
    height: 100vh;
}

/** end of leiyingall **/

/** start of leiyintime **/

#hero_time .cardm{
    background: url("../Images/undmtm_m.jpg") center center no-repeat;
    background-size: cover;
    height: 100vh;
}

/** end of leiyintime **/

/** start of lytehkofi **/

#hero_kofi .cardm{
    background: url("../Images/kofibg1_m.jpg") center center no-repeat;
    background-size: cover;
    height: 100vh;
}

/** end of mobile layout **/

/** Start desktop layout **/

@media screen and (min-width:768px) {

    .moly{
        display:none;
    }

    .dely{
        display:block;
    }

    .tely{
        display:none;
    }

    html, body {
        overflow-x:unset;
    }

    h1{
        font-family: "jjhafnt", sans-serif;
        font-weight: 300;
        font-style: normal;
        font-size: 3rem;
        color: #ffffff;
    }
    
    h2{
        font-family: "jjhafnt", sans-serif;
        font-weight: 350;
        font-style: normal;
        font-size: 2.5rem;
        color: #ffffff;
    }
    
    h3{
        font-family: "jjhafnt", sans-serif;
        font-weight: 300;
        font-style: normal;
        font-size: 1.8rem;
        color: #ffffff;
    }

    h4{
        font-family: "jjhafnt", sans-serif;
        font-weight: 300;
        font-style: normal;
        font-size: 1.8rem;
        color: #ffffff;
    }
    
    p{
        font-family: "Quantico", sans-serif;
        font-optical-sizing: auto;
        font-weight: 500;
        font-style: normal;
        font-size: 1.2rem;
        color: #ffffff;
    }
    
    a{
        font-family: "jjhafnt", sans-serif;
        font-weight: 100;
        font-style: normal;
        font-size: 1.25rem;
        color: #ffffff;
    }
    
    button{
        font-weight: 500;
        font-style: normal;
        font-size: 1.5rem;
        color: #ffffff;
    }

    #loadcont {
        background: url("../Images/cm_d.jpg") center center no-repeat;
        background-size: cover;
        height: 100%;
    }

    #clign {
        cursor: pointer;
        max-width: 65%;
        max-height: 65%;
        object-fit: contain;
        transition: opacity 0.5s ease-out;
    }

    .container{
        max-width:1760px;
        margin:0 auto;
    }

    .container .logo{
        width: 130px;
        justify-content:flex-start;
        justify-items:auto;
        margin:0.2rem 0 0 12rem;
    }

    .flex_2column{
        display:flex;
        flex-direction:row;
        justify-content: space-between;
    }

    header{
        height: 130px;
        background-size: cover;
        padding: 2rem;
        background-color: none;
    }

    .sticky {
        background: url("../Images/hdrw_d.png") center center no-repeat;
        background-color: none;
        height: 130px;
    }

    #wrapper .sticky .container ul.main_navigation {
        position:absolute;
        left: 23rem;
        margin:0 3rem 0 3rem;
        padding:0;
        list-style:none;
        width: 770px;
        display:flex;
        flex-direction: row;
        justify-content: space-between;
    }
   
    .container ul.main_navigation li a {
        position: relative;
        display: block;
        color: rgb(0, 0, 0);
        text-decoration: none;
        text-transform: uppercase;
    }

    .container ul.main_navigation li a:hover {
        color:#273bea;
    }

    #musicToggleBtn{
        padding-top: 0.5rem;
    }

    #musicToggleBtn img{
        width: 95%;
    }


    #hero_card .card video{
        width: 100%;
    }

    #hero_card .card a{
        position: absolute;
        top: 50vh;
        left: 12vh;
        width: 100vh;
        height: 10vh;
    }

    #band1 video{
        overflow: hidden;
        height: 90px;
    }

    #zwjsha{
        background: url("../Images/p2bg.jpg") center center no-repeat;
        background-size: cover;
        height: auto;
    }

    #zwjsha .container{
    }

    #zwjsha .container .intrt .h3{
        margin-bottom: 2rem;
    }

    #zwjsha .container .intrt .cnp{
        margin: 0;
        padding: 0;
    }

    #zwjsha .container .intrt .enp{
        margin: 0 0 2rem 0;
        padding: 0;
    }

    #zwjsha .container .video iframe {
        height: 500px;
        width: 900px;
        margin: 0 0 0.5rem 0;
    }

    #gc1{
        background: url("../Images/bgex_d.jpg") center center no-repeat;
        background-size: cover;
        text-align: center;
        margin: 0;
        padding: 1.8rem;
    }

    #qitsj {
        background: url("../Images/p3bg.jpg") center center no-repeat;
        background-size: cover;
        text-align: center;
    }

    #qitsj .head .h3cn{
        padding-top: 4rem;
    }

    #qitsj .head h1{
        margin: 0;
    }

    #qitsj .container{
        align-content: center;
        padding:0 8rem 0 8rem;
        display:flex;
    }

    #qitsj .container .griddo {
        display:grid;
        grid-template-columns: 1fr 1fr 1fr;
        margin:1.5rem 0 0 0;
        gap: 3rem;
        height: fit-content;
    }

    #qitsj .container .griddo div .c1{
        padding: 3rem;
        height: 100%;
        position: relative;
    }

    #qitsj .container .griddo div .c1 a{
        margin: auto;
        position: absolute;
        left: 0;
        bottom: 0;
        margin: 3rem 1rem;
    }

    #qitsj .container .griddo .cont1 .pua .enp{
        margin:0 0 7rem 0;
    }

    #dsxygsj{
        background: url("../Images/starbgcd.gif") center center no-repeat;
        background-size: cover;
        padding: 0;
    }

    #dsxygsj .container #countdown-container {
        width: 80%;
        max-width: 900px;
        padding: 1rem 2rem;
        margin-top: 1.8rem;
        background: #a4e4ed8a;
        border: 20px solid transparent;
        border-image: url("../Images/backsopx.png") 130 stretch;
    }

    #dsxygsj .container{
        padding: 2rem 0rem 1rem 0rem;
    }

    #dsxygsj .container .head h1{
        margin: 0;
    }

    #dsxygsj .container .introcd{
        padding: 0;
    }

    #dsxygsj .container .introcd .cnp{
        margin: 1.8rem 0 0 0;
    }

    #dsxygsj .container .introcd .enp{
        margin: 0 0 1rem 0;
    }

    .countdown-header {
        font-size: 1.8em;
    }
    .countdown-header-en {
        font-size: 1.8em;
    }
    .countdown-values {
        gap: 2.5rem;
    }
    .countdown-item {
        min-width: 60px;
    }
    .countdown-item span {
        font-size: 3rem;
    }
    .countdown-item .label {
        font-size: 1r.2em;
    }
    .countdown-separator {
        font-size: 3em;
        margin: 0 10px;
    }
    .countdown-item.lightyear-item span {
        font-size: 3em;
    }
    #arrival-message {
        font-size: 1.5rem;
        padding: 10px 20px;
    }

    #journey-container {
        flex-direction: row;
        justify-content: space-between;
        width: 90%;
        margin: 30px auto 50px;
        padding: 0 2.5rem;
        min-height: 150px;
    }

    .planet-wrapper {
        margin-bottom: 0;
    }

    .planet-wrapper img {
        width: 330px;
        height: 300px;
    }

    .planet-name {
        font-size: 1.2em;
    }
    .planet-desc {
        font-size: 0.9em;
    }

    .arrived-state #planetA,
    .arrived-state #flight-line,
    .arrived-state #spaceship-wrapper,
    .arrived-state .countdown-header,
    .arrived-state .countdown-header-en {
        opacity: 0;
        pointer-events: none;
        transition: opacity 1s ease-out, transform 1s ease-out; 
        transform: scale(0.8);
    }

    #flight-line {
        position: absolute;
        left: 20rem;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 2px;
        margin: 0;
        width: 55.9%;
        rotate: 0deg;
    }

    .dashed-line {
        width: 100%;
        height: 2px;
        border-bottom: 2px dashed #999;
        border-right: none;
    }

    #spaceship-wrapper {
        position: absolute;
        top: -400%;
        left: var(--spaceship-move-percentage, 0%);
        transform: translate(-50%, -50%);
        flex-direction: column;
        align-items: center;
        z-index: 1;
        transition: left 20s ease-out;
    }

    #spaceship {
        max-width: 200px;
        height: 200px;
        rotate: 0deg;
    }

    .spaceship-info {
        font-size: 0.8em;
    }

    #bottom-arrival-message {
        font-size: 1.2em;
        margin-top: 30px;
        margin-bottom: 50px;
    }

    .arrived-state #planetB {
        transition: transform 1s ease-in-out;
        transform: scale(1);
    }

    .arrived-state #planetB .planet-desc {
        margin-top: 1rem;
    }

    .arrived-state #journey-container {
        justify-content: center;
        margin-bottom: 0;
    }

    #scrollingText .chinese {
        font-size: 1.2rem; 
    }

    #scrollingText .english {
        font-size: 0.8rem;
    }

    #ptgly {
        background: url("../Images/p4bg.jpg") center center no-repeat;
        background-size: cover;
    }

    #ptgly .container{
        padding:3rem 8rem;
    }

    #ptgly .container .intrt .enh3{
        margin-bottom: 2rem;
    }

    #ptgly .container .intrt .enp{
        margin: 0 0 2rem 0;
        padding: 0;
    }

    #ptgly .container .phtgly {
        height: 70vh;
        padding: 0;
    }

    .mySlides {
        height: unset;
        width: unset;
    }

    .numbertext {
        top: 20;
    }

    .column{
        width: 16.66%;
    }

    .mySlides img{
        height: unset;
        width: unset;
    }

    .prev, .next {
        font-size: 50px;
    }

    .next{
        right: 0;
    }

    #ptgly .container .informat{
        background-color: #1a1a1a;
    }

    .caption-container {
        background: none;
    }

    #caption{
        font-size: 1.8rem;
        margin: 0.7rem 0 0 0;
    }

    .caption-container .photo-info {
        font-size: 1.2rem;
    }

    .caption-container .photo-infod {
        font-size: 1.2rem;
    }

    #ptgly .container .upphoto{
        margin: 3.5rem 8rem 0 8rem;
    }

    #ptgly .container .upphoto .infom p {
        font-size: 1.2rem;
    }

    #ptgly .container .upphoto .infom a {
        font-size: 1.35rem;
    }

    .caption-container .cpright{
        text-align: center;
        font-size: 0.8rem;
        margin-top: 0.9rem;
    }

    .modal-content {
        width: 100%;
        height: calc(100% - 80px);
        max-width: none;
        max-height: none;
    }

    .caption-container-modal {
        width: 100%;
        max-width: none;
        margin-top: 5px;
        padding: 5px 10px;
    }

    .close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }

    .prev-modal,
    .next-modal {
        padding: 10px;
        font-size: 18px;
    }

    .caption-container-modal #captionModal {
        font-size: 1rem;
    }
    .caption-container-modal .photo-info-modal,
    .caption-container-modal .photo-infod-modal {
        font-size: 0.8rem;
        margin-left: 10px;
    }

    .modal-controls {
        top: 10px;
        left: 10px;
    }

    .zoom-icon {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    #xfccy .container {
        max-width: 1440px;
        margin: 0 auto;
    }

    #cyidmz {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        padding:2rem 7rem;
    }

    #cyidmz li {
        width: calc(50% - 15px);
        box-sizing: border-box;
    }

    #cyidmz li {
        border-bottom: none;
        padding: 1.5rem 0 1.5rem 1.8rem;
    }

    #cyidmz li:nth-last-child(-n + 2) {
        border-bottom: none;
    }

    #cyidmz li h3{
        float: left;
        width: 35%;
        font-weight: 30;
    }

    #cyidmz li h4{
        float: left;
        width: 65%;
        text-align: left;
        font-weight: 30;
    }

    #cyidmz li .smllp {
    font-size: 2.8vh;
    }

    #pagi {
        text-align: center;
        margin-top: 2rem;
        margin-bottom: 4rem;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    #pagi button {
        padding: 15px 30px;
        cursor: pointer;
        border: none;
        border-radius: 8px;
        font-size: 1.2em;
        font-weight: bold; 
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

    #pagi button:disabled {
        cursor: not-allowed;
        transform: none;
    }

    #pagi button:hover:not(:disabled) {
        transform: translateY(-2px);
    }

    #pagi button:active:not(:disabled) {
        transform: translateY(0);
    }

    #panumbers span {
        display: inline-block;
        padding: 12px 18px;
        margin: 0 8px;
        cursor: pointer;
        font-size: 1.2em;
        font-weight: bold;
        transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    }

    #panumbers span.active {
        font-weight: bold;
        transform: scale(1.05);
    }

    #panumbers span:not(.active):hover {
        transform: translateY(-2px);
    }

    #panumbers span:not(.active):active {
        transform: translateY(0);
    }

    #guangg .container{
        padding: 3rem 6rem 0 6rem;
    }

    #guangg .container .flx{
        display: flex;
    }

    #guangg .container .flx .info{
        flex: 45%;
        text-align: left;
        margin: 0 0 0 2rem;
    }

    #guangg .container .flx .cpeap{
        flex: 55%;
        margin: 0 2rem 0 8rem;
        text-align: right;
    }

    #guangg .container .flx .info p {
        font-size:1.2rem;
        padding: 0;
    }

    #guangg .container .flx .cpeap img {
        max-width: 100%;
        margin: auto;
    }

    #guangg .container .note{
        margin: 1.5rem 0 0 0;
    }

    #guangg .container .note p{
        margin: 0;
        font-size:1rem;
    }

    #guangg .container {
        padding-bottom: 0;
    }

    footer .container p{
        font-size: 20px;
    }

    /** end of leiyincard **/

    /** start of leiyingall **/

    #hero_gall .card{
        background: url("../Images/undmtm.jpg") center center no-repeat;
        background-size: cover;
        height: 100vh;
    }

    /** end of leiyingall **/

    /** start of leiyintime **/

    #hero_time .card{
        background: url("../Images/undmtm.jpg") center center no-repeat;
        background-size: cover;
        height: 100vh;
    }

    /** end of leiyintime **/

    /** start of lytehkofi **/

    #hero_kofi .card{
        background: url("../Images/kofibg1.jpg") center center no-repeat;
        background-size: cover;
        height: 100vh;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {

    .moly{
        display:block;
    }

    .dely{
        display:none;
    }
    
    .tely{
        display:block;
    }

    .container {
        width: 90%;
    }

    nav ul {
        display: flex;
        justify-content: space-around;
    }

    #notytbl .tely #tablet-notification {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #0000002d;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        display: none;
        box-sizing: border-box;
    }

    .notification-content {
        background-color: #404040;
        padding: 30px;
        border-radius: 8px;
        text-align: center;
        max-width: 500px;
        width: 90%;
        color: #333;
        box-sizing: border-box;
    }

    .notification-content p {
        margin-bottom: 15px;
        font-size: 1.1em;
        line-height: 1.5;
    }

    .notification-content p:last-of-type {
        margin-bottom: 25px;
    }

    .notification-content button {
        background-color: #3999ff;
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1em;
        transition: background-color 0.3s ease;
    }

    .notification-content button:hover {
        background-color: #0056b3;
    }

    #tablet-notification .notification-content .den{
        margin-bottom: 1.5rem;
    }

}