/* ===== 国家划分页面专用样式 ===== */

/* 左侧边栏 */
.nav-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.sidebar-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

/* 大洲导航 */
.continent-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.continent-tab {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: #f5f5f5;
    border-radius: 20px;
    transition: all 0.3s;
    white-space: nowrap;
    box-sizing: border-box;
    text-decoration: none;
    line-height: 1.5;
}

.continent-tab:hover {
    color: var(--primary-color);
    background: #e6f7ff;
}

.continent-tab.active {
    color: var(--white);
    background: var(--primary-color);
}

/* 国家列表 */
.continent-block {
    margin-bottom: 15px;
}

.continent-block:last-child {
    margin-bottom: 0;
}

.continent-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.country-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 6px;
    background: #f9f9f9;
    border-radius: var(--radius);
    transition: all 0.3s;
}

.country-card:hover,
.country-card.active {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.country-card .country-flag {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #40a9ff);
    color: var(--white);
    font-size: 0.95rem;
    border-radius: 50%;
    margin-bottom: 4px;
}

.country-card.active .country-flag {
    background: rgba(255, 255, 255, 0.3);
}

.country-card .country-label {
    font-size: 0.75rem;
    text-align: center;
}

/* 主内容区 */
.nav-content {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    min-width: 0;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* 热门国家 */
.hot-countries {
    margin-bottom: 25px;
}

.hot-country-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hot-country-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: var(--radius);
    transition: all 0.3s;
}

.hot-country-item:hover,
.hot-country-item.active {
    background: var(--primary-color);
    color: var(--white);
}

.hot-country-item .country-name {
    font-size: 0.9rem;
}

.hot-country-item .site-count {
    font-size: 0.75rem;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.hot-country-item.active .site-count {
    background: rgba(255, 255, 255, 0.3);
}

/* 网站列表 */
.sites-section .sites-grid {
    grid-column: 1 / -1;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }

    .nav-sidebar {
        width: 100%;
    }

    .continent-nav {
        gap: 6px;
    }

    .continent-tab {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .nav-content {
        padding: 15px;
    }

    .hot-country-list {
        gap: 8px;
    }

    .hot-country-item {
        padding: 6px 12px;
    }

    .country-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 6px;
    }

    .country-card {
        padding: 8px 4px;
    }

    .country-card .country-flag {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .country-card .country-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .country-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}