/* 柔和UI风格 - 日间模式 */
@import url('../fonts/inter/inter.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #E8F4F8 0%, #F0E8F8 100%);
    color: #2D3748;
    min-height: 100vh;
    padding: 15px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4299E1;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #4A5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #4299E1;
}

.category-section {
    margin-bottom: 1.5rem;
}

.category-header {
    background: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}

.category-header:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.category-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4299E1, #667EEA);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2D3748;
    flex: 1;
}

.toggle-icon {
    color: #A0AEC0;
    transition: transform 0.3s;
}

.servers-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
}

.servers-grid::-webkit-scrollbar {
    height: 8px;
}

.servers-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.servers-grid::-webkit-scrollbar-thumb {
    background: rgba(66, 153, 225, 0.5);
    border-radius: 4px;
}

.servers-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(66, 153, 225, 0.7);
}

.server-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    flex: 0 0 calc(25% - 11.25px);
    min-width: 280px;
}

.server-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.server-image {
    width: 100%;
    height: 0;
    padding-bottom: 46.74%;
    background-size: cover;
    background-position: center;
}

.server-info {
    padding: 15px;
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.server-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2D3748;
    margin: 0;
}

.meta-badge {
    background: #EDF2F7;
    color: #4A5568;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.server-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #4299E1, #667EEA);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.server-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

/* Q群二维码弹窗 */
.qq-group-item {
    position: relative;
}

.qq-qrcode-popup {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
}

.qq-group-item:hover .qq-qrcode-popup {
    display: block;
}

.qq-qrcode-popup img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
