* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", "SimHei", Arial, sans-serif;
    background: linear-gradient(to bottom, #5fc2ff, #b47bfe, #cb1158, #2533fc);
}
.navbar {
    background: linear-gradient(to bottom, #d54edf, #0a3395);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}
.navbar a {
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    font-size: 18px;
}
.navbar a:hover {
    background: linear-gradient(to bottom, #ff5f7c, #b47bfe, #11cb3c, #2533fc);
    border-radius: 5px;
}
.dropdown {
    position: relative;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #434242;
    min-width: 160px;
    border-radius: 5px;
}
.dropdown-content a {
    color: white;
    padding: 10px;
    display: block;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.container {
    text-align: center;
    padding: 80px 20px 20px;
}
.search-container {
    margin: 20px auto 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
}
.video-container {
    width: 100%;
    max-width: 100vw;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}
.card-container a {
    text-decoration: none;
    color: inherit;
}
.logo-container a {
    padding: 0;
    line-height: normal;
    display: flex;
    align-items: center;
}
.logo-container img {
    height: 40px;
    display: block;
}
.logo-container a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}
input {
    padding: 10px;
    width: 400px;
    font-size: 18px;
    border-radius: 5px;
}
button {
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    background-color: #0078D7;
    color: white;
    border-radius: 5px;
    margin-left: 10px;
}
.card {
    width: clamp(250px, 30%, 500px);
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
}
.card:hover {
    transform: scale(1.05);
}
.card img {
    width: 100%;
    height: clamp(250px, 30%, 400px);
    object-fit: cover;
}
.card-content {
    position: relative;
    min-height: 120px;
}
.card-content h2.title {
    display: block;
    height: 30px;
    line-height: 30px;
    overflow: hidden;
    white-space: nowrap;
}
.card-content h3.title {
    display: block;
    height: 30px;
    line-height: 30px;
    overflow: hidden;
    white-space: nowrap;
}
.card-content p.fade-text{
    display: inline-block;
    min-height: 30px;
    overflow: hidden;
    background:#222;
    font-size: 1rem;
    margin: 5px 0;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    visibility: hidden;
}
footer {
    text-align: center;
    padding: 10px;
    background-color: #222;
    color: white;
    margin-top: 20px;
}
.wallpaper-slider {
    width: 90vw;
    height: calc(100vw * 9 / 16);
    overflow: hidden;
    position: relative;
    margin: auto;
    margin-top: 20px;
}
.wallpaper-images {
    display: flex;
    width: 400vw;
    transition: transform 0.5s ease-in-out;
}
.wallpaper-slider img {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}
.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1;
}
.slider-button:hover {
    background: rgba(0, 0, 0, 0.7);
}
.prev {
    left: 10px;
}
.next {
    right: 10px;
}
input[type="text"] {
    margin-left: 10px;
    padding: 8px;
    font-size: 14px;
}
.custom-select {
    position: relative;
    display: flex;
    align-items: center;
}
.custom-select select {
    padding-left: 30px;
    font-size: 14px;
    height: 30px;
    width: 200px;
}
.custom-select img {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 20px;
    pointer-events: none;
}
.footer {
    background: linear-gradient(to bottom, #4edfb4, #c3cbde);
    padding: 20px;
    font-size: 14px;
    color: #333;
    text-align: center;
    border-top: 1px solid #ccc;
}
.footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.footer .footer-links p {
    margin: 0;
}
.footer .footer-links a {
    color: #0073e6;
    text-decoration: none;
    margin: 0 10px;
}
.footer .footer-links a:hover {
    text-decoration: underline;
}
.footer .footer-logo p {
    margin: 0;
    font-weight: bold;
}
.footer .footer-social a {
    margin: 0 10px;
}
.footer .footer-social img {
    width: 24px;
    height: 24px;
}
#minecraft-introduction .fade-text {
    display: block;
    min-height: 30px;
    overflow: hidden;
    background:linear-gradient(to right, #ff7e5f, #feb47b, #cb1158, #f525fc);
    font-size: 1rem;
    margin: 5px 0;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    visibility: hidden;
}
#minecraft-introduction h2 {
    background: linear-gradient(to right, #ff7e5f, #feb47b, #cb1158, #f525fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    min-height: 40px;
    font-size: 2rem;
    font-weight: bold;
    display: inline-block;
}
#minecraft-introduction .title {
    display: block;
    height: 40px;
    line-height: 40px;
    overflow: hidden;
    white-space: nowrap;
}
#minecraft-introduction p {
    display: inline-block;
    background: linear-gradient(to right, #e7e7d8, #feb47b, #cb115f, #fc2589);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1rem;
    margin: 5px 0;
}
h2 {
    font-size: 2em;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    text-shadow: none;
}
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}
@keyframes glow {
    0% { text-shadow: 0 0 5px #391c42, 0 0 10px rgb(140, 0, 255); }
    100% { text-shadow: 0 0 10px #fff, 0 0 20px #0ff; }
}
.sidebar,
.hamburger {
    display: none;
}
.hamburger {
    font-size: 30px;
    cursor: pointer;
    padding: 15px;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1100;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
}
.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 220px;
    height: 100vh;
    overflow-y: auto;
    background: linear-gradient(to bottom, #111, #444);
    padding-top: 60px;
    transition: left 0.3s ease;
    z-index: 1050;
}
.sidebar-logo {
    padding: 20px 15px;
    text-align: center;
}
.sidebar-logo img {
    max-width: 60%;
    height: auto;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.sidebar-logo:hover img {
    transform: scale(1.05);
}
.sidebar.show {
    left: 0;
}
.sidebar a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
}
.sidebar a:hover {
    background: rgba(255, 255, 255, 0.1);
}
.submenu {
    display: none;
    background-color: rgba(255, 255, 255, 0.05);
}
.submenu.show {
    display: block;
}
.submenu a {
    padding-left: 40px;
}
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1040;
}
#overlay.show {
    display: block;
}
.mobile-navbar {
    display: none;
}
.mobile-logo {
    height: 40px;
    margin: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}
@media (max-width: 768px) {
    .navbar {
        display: none;
    }
    .sidebar,
    .hamburger {
        display: block;
    }
    .card {
        width: 100%;
    } 
    .mobile-navbar {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        position: fixed;
        top: 0;
        left: 0;
        height: 60px;
        width: 100%;
        background: linear-gradient(to right, #111, #444);
        z-index: 1100;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    #minecraft-introduction h2 {
        font-size: 1.2rem;
    }

    #minecraft-introduction p {
        font-size: 0.9rem;
    }
}
/*
.sidebar,
.hamburger {
    display: block !important;
}*/