/* Import Minecraft Font */
@font-face {
    font-family: 'Minecraft';
    src: url('Minecraft.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Base Styles */
body, html {
    width: 100%;
    height: 100%;
    font-family: 'Minecraft', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body, p {
    color: #787976; 
    font: 400 1rem/1.5625rem 'Minecraft', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: #484a46;
    font-family: 'Minecraft', sans-serif;
    font-weight: normal;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    line-height: 3rem;
}

h2 {
    font-size: 1.75rem;
    line-height: 2.125rem;
}

.text-container {
    text-align: center;
}

/* Navigation Bar Styles */
.navbar-custom {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    background-color: transparent;
    transition: all 0.3s ease;
    min-height: 50px;
}

.navbar-custom.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Logo */
.navbar-custom .navbar-brand.logo-image img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

/* PC Menu Button */
.pc-menu-btn {
    display: none;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.navbar-custom.scrolled .pc-menu-btn {
    color: #484a46;
}

.navbar-toggler {
    border: none;
    color: #fff;
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
}

.navbar-custom.scrolled .navbar-toggler {
    color: #484a46;
}

/* PC Dropdown Menu */
.pc-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.pc-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pc-dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #484a46;
    text-decoration: none;
    font-weight: normal;
    transition: all 0.2s ease;
    font-size: 1.05rem;
    font-family: 'Minecraft', sans-serif;
}

.pc-dropdown-menu a:hover {
    background-color: rgba(95, 158, 160, 0.1);
    color: #5F9EA0;
}

/* Mobile Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1050;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    padding: 80px 0 20px;
    overflow-y: auto;
}

.sidebar.open {
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
    transition: all 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
}

.sidebar-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
}

.sidebar-header h5 {
    margin: 0;
    font-weight: normal;
    font-family: 'Minecraft', sans-serif;
}

.sidebar-back {
    position: absolute;
    left: 20px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #484a46;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-back:hover {
    color: #5F9EA0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #484a46;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: left;
    border-left: 3px solid transparent;
    font-family: 'Minecraft', sans-serif;
}

.sidebar-menu a:hover {
    background-color: rgba(95, 158, 160, 0.1);
    color: #5F9EA0;
    border-left-color: #5F9EA0;
}

.sidebar-menu a.active {
    background-color: rgba(95, 158, 160, 0.15);
    color: #5F9EA0;
    border-left-color: #5F9EA0;
}

.sidebar-menu i {
    width: 24px;
    margin-right: 12px;
    text-align: center;
}

/* Loading Modal */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    text-align: center;
    font-family: 'Minecraft', sans-serif;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #5F9EA0;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: normal;
}

/* Button Styles */
.btn-solid-lg {
    display: inline-block;
    padding: 1.375rem 2.125rem;
    border: 0.125rem solid #5F9EA0;
    border-radius: 0.25rem;
    background-color: #5F9EA0;
    color: #fff;
    font: normal 0.75rem/0 'Minecraft', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-solid-lg:hover {
    background-color: transparent;
    color: #5F9EA0;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(95, 158, 160, 0.3);
}

.btn-solid-reg {
    display: inline-block;
    padding: 1.1875rem 1.875rem;
    border: 0.125rem solid #5F9EA0;
    border-radius: 0.25rem;
    background-color: #5F9EA0;
    color: #fff;
    font: normal 0.75rem/0 'Minecraft', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-solid-reg:hover {
    background-color: transparent;
    color: #5F9EA0;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(95, 158, 160, 0.3);
}

/* Header Section */
.header {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), url('header-background.jpg') center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center 30%;
    min-height: 600px;
}

.header .header-content {
    padding-top: 12rem;
    padding-bottom: 8rem;
}

.header h1 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.header p {
    color: #fff;
}

/* Introduction Section */
.basic-1 {
    padding-top: 6.5rem;
    padding-bottom: 3rem;
}

.basic-1 .text-container {
    margin-bottom: 3rem;
}

.basic-1 .image-container {
    overflow: hidden;
    border-radius: 0.25rem;
}

/* Introduction Image */
.basic-1 .image-container img {
    margin: 0;
    border-radius: 0.25rem;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Group Details */
.cards-2 {
    padding-top: 6.625rem;	
    padding-bottom: 1.25rem;	
    background-color: #fbfbfb;
}

.cards-2 h2 {
    margin-bottom: 3.25rem;
}

.cards-2 .card {
    margin-bottom: 5.625rem;
    border: none;
    background-color: transparent;
    text-align: center;
}

/* Group Card Images */
.cards-2 .card-image img {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.cards-2 .card-body {
    padding: 2.25rem 2rem 2.125rem 2rem;
    border: 1px solid #ebe8e8;
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    background-color: #fff;
}

/* Card Title */
.cards-2 h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.cards-2 .button-container {
    margin-top: 1.5rem;
    text-align: center;
}

/* Resources Showcase */
.accordion {
    display: flex;
    flex-wrap: wrap;
    background-color: #f8f9fa;
}

.accordion .area-1 {
    flex: 1;
    min-height: 400px;
    background: url('resources-background.jpg') center center no-repeat;
    background-size: cover;
    background-position: center 30%;
}

.accordion .area-2 {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 2rem;
}

.accordion-container {
    max-width: 100%;
}

.accordion-container h2 {
    margin-bottom: 1.625rem;
    text-align: left;
}

.accordion-container p {
    text-align: left;
}

/* Group Management Section */
.tabs {
    display: flex;
    flex-wrap: wrap;
}

.tabs .area-1 {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 2rem;
}

.tabs .area-2 {
    flex: 1;
    min-height: 400px;
    background: url('management-background.jpg') center center no-repeat;
    background-size: cover;
    background-position: center 30%;
}

.tabs-container {
    max-width: 100%;
}

.tabs-container h2 {
    margin-bottom: 1.625rem;
    text-align: left;
}

.tabs-container p {
    text-align: left;
}

/* Footer */
.footer {
    padding-top: 5rem;
    padding-bottom: 3rem;
    background-color: #f8f9fa;
}

.footer .text-container.about {
    margin-bottom: 2.25rem;
}

.footer h4 {
    margin-bottom: 0.75rem;
    color: #484a46;
    text-align: center;
}

/* Copyright Information */
.copyright {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    background-color: #e9ecef;
    text-align: center;
}

.copyright p {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.copyright a {
    color: #6c757d;
    text-decoration: none;
}

.copyright a:hover {
    color: #495057;
}

/* Security Seals */
.security-seals {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: nowrap; /* 确保始终在同一行 */
}

.security-seal {
    text-align: center;
    cursor: pointer;
    flex-shrink: 0; /* 防止缩小 */
}

.security-seal img {
    width: 100px;
    height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .header-content {
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
    
    .header {
        min-height: 400px;
        background-attachment: scroll;
    }
    
    .basic-1, .cards-2 {
        padding-top: 4rem;
        padding-bottom: 2rem;
    }
    
    .accordion .area-1, 
    .accordion .area-2,
    .tabs .area-1,
    .tabs .area-2 {
        flex: 100%;
        min-height: 300px;
    }
    
    .navbar-custom {
        padding-top: 0.2rem;
        padding-bottom: 0.2rem;
    }
    
    .navbar-custom .navbar-brand.logo-image img {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    /* Hide PC menu button on mobile */
    .pc-menu-btn {
        display: none !important;
    }
    
    /* Security seals adjustments for mobile */
    .security-seals {
        gap: 15px;
    }
    
    .security-seal img {
        width: 90px; /* 稍微缩小以适应移动端 */
    }
}

@media (min-width: 769px) {
    /* Hide mobile menu button on desktop */
    .navbar-toggler {
        display: none;
    }
    
    /* Show PC menu button */
    .pc-menu-btn {
        display: inline-block;
    }
    
    /* Hide sidebar elements */
    .sidebar,
    .sidebar-overlay {
        display: none !important;
    }
}