* {
    padding:0;
    margin:0;
}
body {
    background-color: #000000;
}
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 245, 245, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: circle(100% at 50% 50%);
}

.loader::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    backdrop-filter: blur(5px);
}

.loader.hide {
    clip-path: circle(0 at 50% 50%);
    opacity: 0.5;
}

.cube-container {
    position: relative;
    width: 60px;
    height: 60px;
    animation: bounceScale 1s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 2.5s infinite linear;
}

.cube div {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #7f8c8d;
    border: 2px solid #ecf0f1;
    opacity: 0.9;
    backdrop-filter: blur(2px);
}

/* 立方体各面定位 */
.front { transform: translateZ(30px); }
.back { transform: translateZ(-30px) rotateY(180deg); }
.right { transform: rotateY(90deg) translateZ(30px); }
.left { transform: rotateY(-90deg) translateZ(30px); }
.top { transform: rotateX(90deg) translateZ(30px); }

@keyframes rotate {
    0% { transform: rotateX(35deg) rotateY(45deg); }
    100% { transform: rotateX(395deg) rotateY(405deg); }
}

@keyframes bounceScale {
    0%, 100% { 
        transform: translateY(0) scale(1);
    }
    50% { 
        transform: translateY(-25px) scale(1.2);
    }
}

.loader.hide .cube-container {
    animation: implode 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes implode {
    to {
        transform: scale(0);
        opacity: 0;
    }
}
h1 {
    color:white;
    position: relative; /* 修改定位方式 */
    margin-left: 80px;
    top: 0;
    line-height: 80px;
    width:210px;
}
header {
    background-color: rgba(20, 20, 20, 0.8);
    height: 80px;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000; /* 确保在加载动画之下 */
}
header ul {
    position:absolute;
    right:5vw;
    top:0;
    line-height:80px;
}
header li {
    display:inline;
    margin-right:4vw;    
}
header a {
    color:white;
    text-decoration: none;
}
header a:hover {
    text-decoration: underline;
}
.news {
    background-color: black;
    color:white;
    height:95vh;
    background-image: url("images/bg.jpeg");
    background-repeat: no-repeat;
    background-size:cover;
    background-position: center;
    display:flex;
    flex-direction:column;
    align-items: center;
    justify-content: center;
} 
.news h2 {
    font-size:60px;
    margin-top:60px;
} 
.news p {
    color:#FEF7E6;
    font-size:18px;
    margin:25px 0;
}
.news a {
    color:white;
    text-decoration: none;
    border: 1px solid #ACACAC;
    padding:10px 20px;
    border-radius: 5px;
}
.slogan {
    background-color: #485652;
    color:white;
    height:250px;
    display:flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    line-height: 1.8em;  
}
.slogan2 {
    background-image: url(images/bg2.jpeg);
    color:white;
    height:350px;
    display:flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    line-height: 1.8em;  
}
.shop {
    
   /* color: linear-gradient(to right, rgb(17, 24, 39), rgb(75, 85, 99)); */
    display:flex;
}
.shop img {
    width:50%;
}
.info {
    width:50%;
    background-color: white;
    display:flex;
    flex-direction:column;
    align-items: center;
    justify-content: center;
    border-color: black;
}
.info h2 {
    font-size:40px;
    margin-bottom: 30px;
}
.info p {
    text-align: center;
    line-height: 2em;
}
.connect {
    display:flex;
    background-image: url(images/bg2.jpeg);
    justify-content: space-around;
    align-items: flex-end;
    padding: 200px 280px 80px;
}
.connect div {
    width:300px;
    text-align:center;
}
.connect img {
    width:200px;
    border-radius: 10px;;
}
.connect h3 {
    color: white;
    font-size: 20px;    
    margin: 20px 0;
}
.connect p {
    color: white;
    font-size:14px;
    line-height: 1.6em;
}
.newsletter {
    background-color: #485652;
    color:white;
    padding:60px 0;
    display:flex;
    flex-direction: column;
    align-items: center;
}
.newsletter p {
    margin-bottom: 20px;
}
.newsletter input, .newsletter button {
    background-color: transparent;
    color:white;
    border: 1px solid #949d9a; 
    padding: 10px; 
    border-radius: 5px;;
}
.newsletter input {
    width:200px;
    margin-right: 15px;;
}
.newsletter button {
    width:80px;
    cursor:pointer;
}
input::placeholder {
    color:#DDDDDD;
}
input:focus {
    outline: none; /* 移除焦點效果 */
    border-color:#E0E9A3; /* 焦點時的邊框顏色 */
}
footer {
    background-color:#000000;
    color:#B7B7B7;
    height:100px;
    display:flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}
.menu {
    display:none;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
  .connect {
    flex-direction: column;
    align-items: center;
    padding: 100px 20px 40px !important;
  }

  .connect div {
    width: 80%;
    max-width: 400px;
    margin: 20px 0;
  }
    .menu {
        display:block;
        color:white;
        font-size:35px;
        position:absolute;
        left:20px;
        top:50%;
        transform:translateY(-50%);
        z-index:1001;
        background:transparent;
        border:none;
        cursor:pointer;
    }
    header h1 {
        left:50%;
        transform:translateX(-50%);
        width:auto;
    }
    .nav-list {
        display:none;
        position:fixed;
        top:80px;
        left:0;
        width:100%;
        background-color:rgba(20,20,20,0.8);
        flex-direction:column;
        padding:20px 0;
        text-align:center;
        margin:0;
        z-index:1000;
    }
    .nav-list.active {
        display:flex;
    }
    .nav-list li {
        margin:15px 0;
    }
    .nav-list a {
        font-size:18px;
        padding:10px 20px;
        display:block;
    }
    .news h2 {
        font-size:40px;
    }
    .shop {
        flex-direction: column;
    }
    .shop img {
        width:100%;
    }
    .info {
        width:100%;
        padding:40px 0;
    }
    .info h2 {
        font-size:30px;
    }
}